openc3-cosmos-tool-cmdsender 5.19.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +2 -2
  3. data/tools/cmdsender/ArrayWidget-By62tXtU-ef1b996df6e28e34c43b.js +2 -0
  4. data/tools/cmdsender/BarColumn-Dm3D1Lhp-61f707e75a11029c0e9b.js +1 -0
  5. data/tools/cmdsender/BlockWidget-CrT45ode-348c3ddc56416a2146ab.js +2 -0
  6. data/tools/cmdsender/ButtonWidget-CKyBBv6m-6364e961031fb424242e.js +2 -0
  7. data/tools/cmdsender/CanvasWidget-PqkppHC7-fd79bd4b7029026acc5c.js +1 -0
  8. data/tools/cmdsender/CanvasdotWidget-BUbJgM2d-fa194d6394bd024c8c98.js +1 -0
  9. data/tools/cmdsender/CanvasimageWidget-DPVBY7mi-f0142b21f0fd88139b85.js +1 -0
  10. data/tools/cmdsender/CanvasimagevalueWidget-GX37zzNc-62b424af2b9d98e27ca5.js +1 -0
  11. data/tools/cmdsender/CanvaslabelWidget-P2_Y6Edw-b1e977b4b7759d576b2f.js +1 -0
  12. data/tools/cmdsender/CanvaslabelvalueWidget-Cuas1i9P-1d3918f6f84adfff0120.js +1 -0
  13. data/tools/cmdsender/CanvaslineWidget-BYOYgPya-e27cccd187a4ac905e59.js +1 -0
  14. data/tools/cmdsender/CanvaslinevalueWidget-3cVJMFo7-3577f5c9be34f37ff633.js +1 -0
  15. data/tools/cmdsender/CheckbuttonWidget-B3wgSMuB-d628399d9f46a9124cf4.js +1 -0
  16. data/tools/cmdsender/ComboboxWidget-Dzr4Scvf-80abf76befb1d2223300.js +1 -0
  17. data/tools/cmdsender/CommandSender-da769df0c665acc1ae58.js +1109 -0
  18. data/tools/cmdsender/CriticalCmdDialog-BzoO1Mw_-7299829c5253b39104cb.js +1 -0
  19. data/tools/cmdsender/DateWidget-BWh76Ibb-c0656ca3fd2db9656784.js +1 -0
  20. data/tools/cmdsender/DetailsDialog-EWjtBjle-91cf88ec81aca5f7f102.js +1 -0
  21. data/tools/cmdsender/DynamicWidget-m9EliUR2-3ed383238855e9d89b65.js +1 -0
  22. data/tools/cmdsender/FormatvalueWidget-Rk0_eeIm-b88e60c978fbcb4abfc1.js +1 -0
  23. data/tools/cmdsender/GraphWidget-LqekkNDr-2595500f5dc44b5a1fd4.js +1 -0
  24. data/tools/cmdsender/HorizontalWidget-BcfJ24Zn-7df1a9c1a9406fee3bc4.js +1 -0
  25. data/tools/cmdsender/HorizontalboxWidget-CQy1Hv9E-cb7847c9da6a2eb1b325.js +1 -0
  26. data/tools/cmdsender/HorizontallineWidget-BdlNB951-13449b3286fb177db656.js +1 -0
  27. data/tools/cmdsender/IframeWidget-BBaDrRLo-205665c65325fc71e124.js +1 -0
  28. data/tools/cmdsender/ImageLoader-CDLQopxJ-4c3bf06f2394935888d1.js +1 -0
  29. data/tools/cmdsender/ImageviewerWidget-BgO3Pq6I-0883370ad21501128eb7.js +1 -0
  30. data/tools/cmdsender/LabelWidget-B_C6lKOE-19e071c13acf72487206.js +1 -0
  31. data/tools/cmdsender/LabelledWidget-B_UGivhr-69437ddf1d915a331241.js +1 -0
  32. data/tools/cmdsender/LabelprogressbarWidget-BJWCmsYC-302c84efb6e5b94e45ef.js +1 -0
  33. data/tools/cmdsender/LabelsparklineWidget-DILCIh3q-f175d1ebf16bcb26b559.js +1 -0
  34. data/tools/cmdsender/LabelvalueWidget-CCZd1NXE-1e7c14b0cd1e2f34caab.js +1 -0
  35. data/tools/cmdsender/LabelvaluedescWidget-Bsllq8W6-e24fb554e1c7f60256b2.js +1 -0
  36. data/tools/cmdsender/LabelvaluelimitsbarWidget-BV-cfaD--1b7c02f3f4a64d0b20fc.js +1 -0
  37. data/tools/cmdsender/LabelvaluelimitscolumnWidget-DwA0eRBw-a36c733c1a100b9ef2cb.js +1 -0
  38. data/tools/cmdsender/LabelvaluerangebarWidget-3GDJz3dj-5edf485853463cdd7bdc.js +1 -0
  39. data/tools/cmdsender/Layout-klOVw-YN-5258887ddded63d92c90.js +1 -0
  40. data/tools/cmdsender/LedWidget-BAt02s0J-ee955f5837eb08c8c5b8.js +1 -0
  41. data/tools/cmdsender/LimitsbarWidget-JJiyzZjb-deabf599a5f021fb6643.js +1 -0
  42. data/tools/cmdsender/LimitscolorWidget-CYzXKbYd-fc74784cfd9fbce0d9b0.js +1 -0
  43. data/tools/cmdsender/LimitscolumnWidget-Cd76tBo7-5899f502fe0a778ce00f.js +1 -0
  44. data/tools/cmdsender/LinegraphWidget-DWRtO6Ej-2886f1ae49e4fe604ab4.js +1 -0
  45. data/tools/cmdsender/MatrixbycolumnsWidget-cwsyjNV2-fa7489fb9bcce39d54b3.js +1 -0
  46. data/tools/cmdsender/ProgressbarWidget-CYDziFej-78fe983908f2d55b8506.js +1 -0
  47. data/tools/cmdsender/RadiobuttonWidget-U6jcQZoD-28e2f2e59de016f7a467.js +1 -0
  48. data/tools/cmdsender/RadiogroupWidget-HTPJnsB0-673ba05cc1221683c64a.js +1 -0
  49. data/tools/cmdsender/RangebarWidget-DW0FJK6y-15a1d235dab1f5389508.js +1 -0
  50. data/tools/cmdsender/RollupWidget-B2qrx55f-e7877648fd0f7ebeaea7.js +1 -0
  51. data/tools/cmdsender/ScrollwindowWidget-CwIDxgO6-22c14acbcc8ae1aed916.js +1 -0
  52. data/tools/cmdsender/SignalWidget-Bosa3AbW-b3cc82444c17e3494e4d.js +1 -0
  53. data/tools/cmdsender/SpacerWidget-DYAlt5mt-79646b208c68ad086279.js +1 -0
  54. data/tools/cmdsender/SparklineWidget-CDrVXOFV-a2a5cd9bc98f09e6f5c4.js +1 -0
  55. data/tools/cmdsender/TabbookWidget-DDdlzCkv-b28195cb05ace2609c5f.js +1 -0
  56. data/tools/cmdsender/TextboxWidget-5euFelEq-198962282d99de2627fa.js +1 -0
  57. data/tools/cmdsender/TextfieldWidget-BFripYeh-36195e3160240dab144f.js +1 -0
  58. data/tools/cmdsender/TimeWidget-BBSbsUYJ-b8771bc53294d10f60d5.js +1 -0
  59. data/tools/cmdsender/TitleWidget-p8cjo-Bs-2538cd241465b2ac8f9c.js +1 -0
  60. data/tools/cmdsender/VWidget-Dmqf_jKM-4eabf4760e3b6f5e10b6.js +1 -0
  61. data/tools/cmdsender/ValueWidget-CZh7JWwT-67ae55abc70e2d6939b1.js +1 -0
  62. data/tools/cmdsender/ValuelimitsbarWidget-DU7ybswC-fc8834eac88586459180.js +1 -0
  63. data/tools/cmdsender/ValuelimitscolumnWidget-DMw-h5jM-d23e707bc9df0603b509.js +1 -0
  64. data/tools/cmdsender/ValuerangebarWidget-DPpofDpA-6eac85aa54ece67d19f2.js +1 -0
  65. data/tools/cmdsender/VerticalWidget-Ch7VAEmz-eb59265f50227b17e04e.js +1 -0
  66. data/tools/cmdsender/VerticalboxWidget-DYx-TFT4-5edc625784a41f39e567.js +1 -0
  67. data/tools/cmdsender/Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js +1 -0
  68. data/tools/cmdsender/main-da5f80eb5643ef8690b1.js +1423 -0
  69. data/tools/cmdsender/main.js +1 -0
  70. metadata +69 -11
  71. data/tools/cmdsender/index.html +0 -4
  72. data/tools/cmdsender/js/151.js +0 -2
  73. data/tools/cmdsender/js/151.js.map +0 -1
  74. data/tools/cmdsender/js/272.js +0 -2
  75. data/tools/cmdsender/js/272.js.map +0 -1
  76. data/tools/cmdsender/js/798.js +0 -18
  77. data/tools/cmdsender/js/798.js.map +0 -1
  78. data/tools/cmdsender/js/app.js +0 -2
  79. data/tools/cmdsender/js/app.js.map +0 -1
@@ -0,0 +1,1423 @@
1
+ System.register(["vue","vue-router","vuex","vuetify"],function(In,Oe){"use strict";var Pe,bt,Yt,_e,xe,qd,bs,Ro,Li,Mt,xt,Ut,kr,Bi,Wi,$r,On,Mc,Gd,Yd,Kd,Zd,Qd,Xd,Ec,Jd,ep,Lc,tp,np,ip,rp,op,sp;return{setters:[at=>{Pe=at.resolveComponent,bt=at.openBlock,Yt=at.createBlock,_e=at.withCtx,xe=at.createVNode,qd=at.defineAsyncComponent,bs=at.h,Ro=at.normalizeStyle,Li=at.createElementBlock,Mt=at.createTextVNode,xt=at.createElementVNode,Ut=at.toDisplayString,kr=at.withDirectives,Bi=at.normalizeProps,Wi=at.guardReactiveProps,$r=at.vShow,On=at.createCommentVNode,Mc=at.withModifiers,Gd=at.Fragment,Yd=at.renderList,Kd=at.mergeProps,Zd=at.defineComponent,Qd=at.warn,Xd=at.inject,Ec=at.computed,Jd=at.shallowRef,ep=at.watchEffect,Lc=at.createApp,tp=at.getCurrentInstance,np=at.provide},at=>{ip=at.createRouter,rp=at.createWebHistory},at=>{op=at.createStore},at=>{sp=at.createVuetify}],execute:function(){In({b:Pn,c:dp,d:VC,e:Oh,l:Vt,y:dn});var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ap(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(m){return Object.getOwnPropertyDescriptor(n,m).enumerable})),e.push.apply(e,i)}return e}function Qr(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ap(Object(e),!0).forEach(function(i){Hy(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ap(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Hy(n,t,e){return(t=function(i){var m=function(p,v){if(Xr(p)!=="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var h=w.call(p,v||"default");if(Xr(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(p)}(i,"string");return Xr(m)==="symbol"?m:String(m)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Xr(n){return Xr=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},Xr(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i,m=String(e),p=m.length,v=-1,w="",h=m.charCodeAt(0);++v<p;)(i=m.charCodeAt(v))!=0?w+=i>=1&&i<=31||i==127||v==0&&i>=48&&i<=57||v==1&&i>=48&&i<=57&&h==45?"\\"+i.toString(16)+" ":v==0&&p==1&&i==45||!(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122)?"\\"+m.charAt(v):m.charAt(v):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(at);var By={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Wy(n){if(Xr(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=Qr(Qr({},By),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(Xr(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:jy.bind(null,t,e),mount:Uy.bind(null,t,e),unmount:qy.bind(null,t,e),update:Vy.bind(null,t,e)}}function jy(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Uy(n,t,e){var i={};return Promise.resolve().then(function(){return function(m,p){return typeof m.appOptions=="function"?m.appOptions(p):Promise.resolve(Qr({},m.appOptions))}(n,e).then(function(m){var p;if(e.domElement&&!m.el&&(m.el=e.domElement),m.el)if(typeof m.el=="string"){if(!(p=document.querySelector(m.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(m.el))}else(p=m.el).id||(p.id="single-spa-application:".concat(e.name)),m.el="#".concat(CSS.escape(p.id));else{var v="single-spa-application:".concat(e.name);m.el="#".concat(CSS.escape(v)),(p=document.getElementById(v))||((p=document.createElement("div")).id=v,document.body.appendChild(p))}if(!n.replaceMode&&(m.el=m.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",p.appendChild(w)}i.domEl=p,m.render||m.template||!n.rootComponent||(m.render=function(f){return f(n.rootComponent)}),m.data||(m.data={});var h=m.data;if(m.data=function(){return Qr(Qr({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(i.vueInstance=n.createApp(m),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return i.root=i.vueInstance.mount(m.el),t[e.name]=i,i.vueInstance});i.root=i.vueInstance.mount(m.el)}else if(i.vueInstance=new n.Vue(m),i.vueInstance.bind&&(i.vueInstance=i.vueInstance.bind(i.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return t[e.name]=i,i.vueInstance});return t[e.name]=i,i.vueInstance})})}function Vy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name],m=Qr(Qr({},n.appOptions.data||{}),e),p=i.root||i.vueInstance;for(var v in m)p[v]=m[v]})}function qy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name];n.createApp?i.vueInstance.unmount(i.domEl):(i.vueInstance.$destroy(),i.vueInstance.$el.innerHTML=""),delete i.vueInstance,i.domEl&&(i.domEl.innerHTML="",delete i.domEl)})}const Gy=In("_",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Yy={};function Ky(n,t){const e=Pe("router-view"),i=Pe("v-app");return bt(),Yt(i,{id:"innerapp"},{default:_e(()=>[xe(e)]),_:1})}const Zy=Gy(Yy,[["render",Ky]]),QI="modulepreload",XI=function(n){return"/"+n},JI={},De=function(t,e,i){let m=Promise.resolve();function p(v){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=v,window.dispatchEvent(w),!w.defaultPrevented)throw v}return m.then(v=>{for(const w of v||[])w.status==="rejected"&&p(w.reason);return t().catch(p)})},lp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/cmdsender/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(lp)},Sr=In("s",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Ta=6e4,Rc=36e5,Qy=1e3,cp=Symbol.for("constructDateFrom");function dn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&cp in n?n[cp](t):n instanceof Date?new n.constructor(t):new Date(t)}function Vt(n,t){return dn(t||n,n)}let Xy={};function Io(){return Xy}function Cr(n,t){var e,i,m,p;const v=Io(),w=(t==null?void 0:t.weekStartsOn)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.weekStartsOn)??v.weekStartsOn??((p=(m=v.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,h=Vt(n,t==null?void 0:t.in),f=h.getDay(),s=(f<w?7:0)+f-w;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function Oo(n,t){return Cr(n,{...t,weekStartsOn:1})}function up(n,t){const e=Vt(n,void 0),i=e.getFullYear(),m=dn(e,0);m.setFullYear(i+1,0,4),m.setHours(0,0,0,0);const p=Oo(m),v=dn(e,0);v.setFullYear(i,0,4),v.setHours(0,0,0,0);const w=Oo(v);return e.getTime()>=p.getTime()?i+1:e.getTime()>=w.getTime()?i:i-1}function Ma(n){const t=Vt(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Jy(n,...t){const e=dn.bind(null,t.find(i=>typeof i=="object"));return t.map(e)}function hp(n,t){const e=Vt(n,void 0);return e.setHours(0,0,0,0),e}function ew(n,t,e){const[i,m]=Jy(void 0,n,t),p=hp(i),v=hp(m),w=+p-Ma(p),h=+v-Ma(v);return Math.round((w-h)/864e5)}function tw(n,t){const e=up(n),i=dn(n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oo(i)}function nw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function dp(n){return!(!nw(n)&&typeof n!="number"||isNaN(+Vt(n)))}function iw(n,t){const e=Vt(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const rw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ow=(n,t,e)=>{let i;const m=rw[n];return typeof m=="string"?i=m:t===1?i=m.one:i=m.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Ic(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const sw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},aw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cw={date:Ic({formats:sw,defaultWidth:"full"}),time:Ic({formats:aw,defaultWidth:"full"}),dateTime:Ic({formats:lw,defaultWidth:"full"})},uw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hw=(n,t,e,i)=>uw[n];function xs(n){return(t,e)=>{const i=e!=null&&e.context?String(e.context):"standalone";let m;if(i==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):v;m=n.formattingValues[w]||n.formattingValues[v]}else{const v=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;m=n.values[w]||n.values[v]}const p=n.argumentCallback?n.argumentCallback(t):t;return m[p]}}const dw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yw=(n,t)=>{const e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},ww={ordinalNumber:yw,era:xs({values:dw,defaultWidth:"wide"}),quarter:xs({values:pw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:xs({values:fw,defaultWidth:"wide"}),day:xs({values:gw,defaultWidth:"wide"}),dayPeriod:xs({values:mw,defaultWidth:"wide",formattingValues:vw,defaultFormattingWidth:"wide"})};function _s(n){return(t,e={})=>{const i=e.width,m=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],p=t.match(m);if(!p)return null;const v=p[0],w=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?xw(w,l=>l.test(v)):bw(w,l=>l.test(v));let f;f=n.valueCallback?n.valueCallback(h):h,f=e.valueCallback?e.valueCallback(f):f;const s=t.slice(v.length);return{value:f,rest:s}}}function bw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function xw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function _w(n){return(t,e={})=>{const i=t.match(n.matchPattern);if(!i)return null;const m=i[0],p=t.match(n.parsePattern);if(!p)return null;let v=n.valueCallback?n.valueCallback(p[0]):p[0];v=e.valueCallback?e.valueCallback(v):v;const w=t.slice(m.length);return{value:v,rest:w}}}const kw=/^(\d+)(th|st|nd|rd)?/i,$w=/\d+/i,Sw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Cw={any:[/^b/i,/^(a|c)/i]},Aw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tw={any:[/1/i,/2/i,/3/i,/4/i]},Mw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ew={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Lw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Rw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Iw={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ow={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dw={ordinalNumber:_w({matchPattern:kw,parsePattern:$w,valueCallback:n=>parseInt(n,10)}),era:_s({matchPatterns:Sw,defaultMatchWidth:"wide",parsePatterns:Cw,defaultParseWidth:"any"}),quarter:_s({matchPatterns:Aw,defaultMatchWidth:"wide",parsePatterns:Tw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:_s({matchPatterns:Mw,defaultMatchWidth:"wide",parsePatterns:Ew,defaultParseWidth:"any"}),day:_s({matchPatterns:Lw,defaultMatchWidth:"wide",parsePatterns:Rw,defaultParseWidth:"any"}),dayPeriod:_s({matchPatterns:Iw,defaultMatchWidth:"any",parsePatterns:Ow,defaultParseWidth:"any"})},pp={code:"en-US",formatDistance:ow,formatLong:cw,formatRelative:hw,localize:ww,match:Dw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nw(n,t){const e=Vt(n,void 0);return ew(e,iw(e))+1}function fp(n,t){const e=Vt(n,void 0),i=+Oo(e)-+tw(e);return Math.round(i/6048e5)+1}function Oc(n,t){var e,i,m,p;const v=Vt(n,t==null?void 0:t.in),w=v.getFullYear(),h=Io(),f=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(m=h.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=dn((t==null?void 0:t.in)||n,0);s.setFullYear(w+1,0,f),s.setHours(0,0,0,0);const l=Cr(s,t),a=dn((t==null?void 0:t.in)||n,0);a.setFullYear(w,0,f),a.setHours(0,0,0,0);const c=Cr(a,t);return+v>=+l?w+1:+v>=+c?w:w-1}function Fw(n,t){var e,i,m,p;const v=Io(),w=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??v.firstWeekContainsDate??((p=(m=v.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,h=Oc(n,t),f=dn((t==null?void 0:t.in)||n,0);return f.setFullYear(h,0,w),f.setHours(0,0,0,0),Cr(f,t)}function gp(n,t){const e=Vt(n,t==null?void 0:t.in),i=+Cr(e,t)-+Fw(e,t);return Math.round(i/6048e5)+1}function Et(n,t){const e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}const Ar={y(n,t){const e=n.getFullYear(),i=e>0?e:1-e;return Et(t==="yy"?i%100:i,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):Et(e+1,2)},d(n,t){return Et(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return Et(n.getHours()%12||12,t.length)},H(n,t){return Et(n.getHours(),t.length)},m(n,t){return Et(n.getMinutes(),t.length)},s(n,t){return Et(n.getSeconds(),t.length)},S(n,t){const e=t.length,i=n.getMilliseconds(),m=Math.trunc(i*Math.pow(10,e-3));return Et(m,t.length)}},Do={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mp={G:function(n,t,e){const i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const i=n.getFullYear(),m=i>0?i:1-i;return e.ordinalNumber(m,{unit:"year"})}return Ar.y(n,t)},Y:function(n,t,e,i){const m=Oc(n,i),p=m>0?m:1-m;if(t==="YY"){const v=p%100;return Et(v,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):Et(p,t.length)},R:function(n,t){const e=up(n);return Et(e,t.length)},u:function(n,t){const e=n.getFullYear();return Et(e,t.length)},Q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Et(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Et(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){const i=n.getMonth();switch(t){case"M":case"MM":return Ar.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){const i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return Et(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){const m=gp(n,i);return t==="wo"?e.ordinalNumber(m,{unit:"week"}):Et(m,t.length)},I:function(n,t,e){const i=fp(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):Et(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Ar.d(n,t)},D:function(n,t,e){const i=Nw(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):Et(i,t.length)},E:function(n,t,e){const i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){const m=n.getDay(),p=(m-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(p);case"ee":return Et(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(m,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(m,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(m,{width:"short",context:"formatting"});case"eeee":default:return e.day(m,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){const m=n.getDay(),p=(m-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(p);case"cc":return Et(p,t.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(m,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(m,{width:"narrow",context:"standalone"});case"cccccc":return e.day(m,{width:"short",context:"standalone"});case"cccc":default:return e.day(m,{width:"wide",context:"standalone"})}},i:function(n,t,e){const i=n.getDay(),m=i===0?7:i;switch(t){case"i":return String(m);case"ii":return Et(m,t.length);case"io":return e.ordinalNumber(m,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){const i=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,t,e){const i=n.getHours();let m;switch(i===12?m=Do.noon:i===0?m=Do.midnight:m=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},B:function(n,t,e){const i=n.getHours();let m;switch(i>=17?m=Do.evening:i>=12?m=Do.afternoon:i>=4?m=Do.morning:m=Do.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return Ar.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Ar.H(n,t)},K:function(n,t,e){const i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):Et(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):Et(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ar.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Ar.s(n,t)},S:function(n,t){return Ar.S(n,t)},X:function(n,t,e){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return yp(i);case"XXXX":case"XX":return Jr(i);case"XXXXX":case"XXX":default:return Jr(i,":")}},x:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"x":return yp(i);case"xxxx":case"xx":return Jr(i);case"xxxxx":case"xxx":default:return Jr(i,":")}},O:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vp(i,":");case"OOOO":default:return"GMT"+Jr(i,":")}},z:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vp(i,":");case"zzzz":default:return"GMT"+Jr(i,":")}},t:function(n,t,e){const i=Math.trunc(+n/1e3);return Et(i,t.length)},T:function(n,t,e){return Et(+n,t.length)}};function vp(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.trunc(i/60),p=i%60;return p===0?e+String(m):e+String(m)+t+Et(p,2)}function yp(n,t){return n%60===0?(n>0?"-":"+")+Et(Math.abs(n)/60,2):Jr(n,t)}function Jr(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Et(Math.trunc(i/60),2),p=Et(i%60,2);return e+m+t+p}const wp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},bp=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Pw=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],i=e[1],m=e[2];if(!m)return wp(n,t);let p;switch(i){case"P":p=t.dateTime({width:"short"});break;case"PP":p=t.dateTime({width:"medium"});break;case"PPP":p=t.dateTime({width:"long"});break;case"PPPP":default:p=t.dateTime({width:"full"});break}return p.replace("{{date}}",wp(i,t)).replace("{{time}}",bp(m,t))},Dc={p:bp,P:Pw},zw=/^D+$/,Hw=/^Y+$/,Bw=["D","DD","YY","YYYY"];function xp(n){return zw.test(n)}function _p(n){return Hw.test(n)}function Nc(n,t,e){const i=Ww(n,t,e);if(console.warn(i),Bw.includes(n))throw new RangeError(i)}function Ww(n,t,e){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const jw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Uw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vw=/^'([^]*?)'?$/,qw=/''/g,Gw=/[a-zA-Z]/;function eo(n,t,e){var i,m,p,v,w,h,f,s;const l=Io(),a=(e==null?void 0:e.locale)??l.locale??pp,c=(e==null?void 0:e.firstWeekContainsDate)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.firstWeekContainsDate)??l.firstWeekContainsDate??((v=(p=l.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((s=(f=l.locale)==null?void 0:f.options)==null?void 0:s.weekStartsOn)??0,u=Vt(n,e==null?void 0:e.in);if(!dp(u))throw new RangeError("Invalid time value");let g=t.match(Uw).map(b=>{const L=b[0];if(L==="p"||L==="P"){const A=Dc[L];return A(b,a.formatLong)}return b}).join("").match(jw).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const L=b[0];if(L==="'")return{isToken:!1,value:Yw(b)};if(mp[L])return{isToken:!0,value:b};if(L.match(Gw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return{isToken:!1,value:b}});a.localize.preprocessor&&(g=a.localize.preprocessor(u,g));const y={firstWeekContainsDate:c,weekStartsOn:o,locale:a};return g.map(b=>{if(!b.isToken)return b.value;const L=b.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&_p(L)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&xp(L))&&Nc(L,t,String(n));const A=mp[L[0]];return A(u,L,a.localize,y)}).join("")}function Yw(n){const t=n.match(Vw);return t?t[1].replace(qw,"'"):n}var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ea(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var kp={exports:{}},$p;function Kw(){return $p||($p=1,function(n,t){(function(){var e="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var m=function(s,l,a){if(typeof s!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=l),m.modules[s]||(m.payloads[s]=a,m.modules[s]=null)};m.modules={},m.payloads={};var p=function(s,l,a){if(typeof l=="string"){var c=h(s,l);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],u=0,g=l.length;u<g;++u){var y=h(s,l[u]);if(y==null&&v.original)return;o.push(y)}return a&&a.apply(null,o)||!0}},v=function(s,l){var a=p("",s,l);return a==null&&v.original?v.original.apply(this,arguments):a},w=function(s,l){if(l.indexOf("!")!==-1){var a=l.split("!");return w(s,a[0])+"!"+w(s,a[1])}if(l.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(s,l){l=w(s,l);var a=m.modules[l];if(!a){if(a=m.payloads[l],typeof a=="function"){var c={},o={id:l,uri:"",exports:c,packaged:!0},u=function(y,b){return p(l,y,b)},g=a(u,c,o);c=g||o.exports,m.modules[l]=c,delete m.payloads[l]}a=m.modules[l]=c||a}return a};function f(s){var l=i;i[s]||(i[s]={}),l=i[s],(!l.define||!l.define.packaged)&&(m.original=l.define,l.define=m,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(v.original=l.require,l.require=v,l.require.packaged=!0)}f(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,i,m){function p(v,w,h){Object.defineProperty(v,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(v,w){return w=w||0,this.lastIndexOf(v,w)===w}),String.prototype.endsWith||p(String.prototype,"endsWith",function(v,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=v.length;var f=h.indexOf(v,w);return f!==-1&&f===w}),String.prototype.repeat||p(String.prototype,"repeat",function(v){for(var w="",h=this;v>0;)v&1&&(w+=h),(v>>=1)&&(h+=h);return w}),String.prototype.includes||p(String.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Object.assign||(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(v),h=1;h<arguments.length;h++){var f=arguments[h];f!=null&&Object.keys(f).forEach(function(s){w[s]=f[s]})}return w}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(w){return v[w]})}),Array.prototype.find||p(Array.prototype,"find",function(v){for(var w=this.length,h=arguments[1],f=0;f<w;f++){var s=this[f];if(v.call(h,s,f,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(v){for(var w=this.length,h=arguments[1],f=0;f<w;f++){var s=this[f];if(v.call(h,s,f,this))return f}}),Array.prototype.includes||p(Array.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(v){for(var w=this,h=w.length>>>0,f=arguments[1],s=f>>0,l=s<0?Math.max(h+s,0):Math.min(s,h),a=arguments[2],c=a===void 0?h:a>>0,o=c<0?Math.max(h+c,0):Math.min(c,h);l<o;)w[l]=v,l++;return w}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,i,m){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,i,m){i.deepCopy=function p(v){if(typeof v!="object"||!v)return v;var w;if(Array.isArray(v)){w=[];for(var h=0;h<v.length;h++)w[h]=p(v[h]);return w}if(Object.prototype.toString.call(v)!=="[object Object]")return v;w={};for(var h in v)w[h]=p(v[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){i.last=function(w){return w[w.length-1]},i.stringReverse=function(w){return w.split("").reverse().join("")},i.stringRepeat=function(w,h){for(var f="";h>0;)h&1&&(f+=w),(h>>=1)&&(w+=w);return f};var p=/^\s\s*/,v=/\s\s*$/;i.stringTrimLeft=function(w){return w.replace(p,"")},i.stringTrimRight=function(w){return w.replace(v,"")},i.copyObject=function(w){var h={};for(var f in w)h[f]=w[f];return h},i.copyArray=function(w){for(var h=[],f=0,s=w.length;f<s;f++)w[f]&&typeof w[f]=="object"?h[f]=this.copyObject(w[f]):h[f]=w[f];return h},i.deepCopy=e("./deep_copy").deepCopy,i.arrayToMap=function(w){for(var h={},f=0;f<w.length;f++)h[w[f]]=1;return h},i.createMap=function(w){var h=Object.create(null);for(var f in w)h[f]=w[f];return h},i.arrayRemove=function(w,h){for(var f=0;f<=w.length;f++)h===w[f]&&w.splice(f,1)},i.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(w,h){var f=[];return w.replace(h,function(s){f.push({offset:arguments[arguments.length-2],length:s.length})}),f},i.deferredCall=function(w){var h=null,f=function(){h=null,w()},s=function(l){return s.cancel(),h=setTimeout(f,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),w(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},i.delayedCall=function(w,h){var f=null,s=function(){f=null,w()},l=function(a){f==null&&(f=setTimeout(s,a||h))};return l.delay=function(a){f&&clearTimeout(f),f=setTimeout(s,a||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){f&&clearTimeout(f),f=null},l.isPending=function(){return f},l},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(w,h,f){return f&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,i,m){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),w=p.userAgent||"",h=p.appName||"";i.isWin=v=="win",i.isMac=v=="mac",i.isLinux=v=="linux",i.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=w.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(w.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,i.isAIR=w.indexOf("AdobeAIR")>=0,i.isAndroid=w.indexOf("Android")>=0,i.isChromeOS=w.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,i,m){var p=e("./useragent"),v="http://www.w3.org/1999/xhtml";i.buildDom=function a(c,o,u){if(typeof c=="string"&&c){var g=document.createTextNode(c);return o&&o.appendChild(g),g}if(!Array.isArray(c))return c&&c.appendChild&&o&&o.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var y=[],b=0;b<c.length;b++){var L=a(c[b],o,u);L&&y.push(L)}return y}var A=document.createElement(c[0]),k=c[1],x=1;k&&typeof k=="object"&&!Array.isArray(k)&&(x=2);for(var b=x;b<c.length;b++)a(c[b],A,u);return x==2&&Object.keys(k).forEach(function(T){var E=k[T];T==="class"?A.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||T=="value"||T[0]=="$"?A[T]=E:T==="ref"?u&&(u[E]=A):T==="style"?typeof E=="string"&&(A.style.cssText=E):E!=null&&A.setAttribute(T,E)}),o&&o.appendChild(A),A},i.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},i.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||v,a):document.createElement(a)},i.removeChildren=function(a){a.innerHTML=""},i.createTextNode=function(a,c){var o=c?c.ownerDocument:document;return o.createTextNode(a)},i.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(a,c){var o=(a.className+"").split(/\s+/g);return o.indexOf(c)!==-1},i.addCssClass=function(a,c){i.hasCssClass(a,c)||(a.className+=" "+c)},i.removeCssClass=function(a,c){for(var o=a.className.split(/\s+/g);;){var u=o.indexOf(c);if(u==-1)break;o.splice(u,1)}a.className=o.join(" ")},i.toggleCssClass=function(a,c){for(var o=a.className.split(/\s+/g),u=!0;;){var g=o.indexOf(c);if(g==-1)break;u=!1,o.splice(g,1)}return u&&o.push(c),a.className=o.join(" "),u},i.setCssClass=function(a,c,o){o?i.addCssClass(a,c):i.removeCssClass(a,c)},i.hasCssString=function(a,c){var o=0,u;if(c=c||document,u=c.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===a)return!0}},i.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var w,h=[];i.useStrictCSP=function(a){w=a,a==!1?f():h||(h=[])};function f(){var a=h;h=null,a&&a.forEach(function(c){s(c[0],c[1])})}function s(a,c,o){if(!(typeof document>"u")){if(h){if(o)f();else if(o===!1)return h.push([a,c])}if(!w){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var g=u.ownerDocument||u;if(c&&i.hasCssString(c,u))return null;c&&(a+=`
2
+ /*# sourceURL=ace/css/`+c+" */");var y=i.createElement("style");y.appendChild(g.createTextNode(a)),c&&(y.id=c),u==g&&(u=i.getDocumentHead(g)),u.insertBefore(y,u.firstChild)}}}if(i.importCssString=s,i.importCssStylsheet=function(a,c){i.buildDom(["link",{rel:"stylesheet",href:a}],i.getDocumentHead(c))},i.scrollbarWidth=function(a){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var o=i.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(c);var g=a&&a.documentElement||document&&document.documentElement;if(!g)return 0;g.appendChild(o);var y=c.offsetWidth;u.overflow="scroll";var b=c.offsetWidth;return y===b&&(b=o.clientWidth),g.removeChild(o),y-b},i.computedStyle=function(a,c){return window.getComputedStyle(a,"")||{}},i.setStyle=function(a,c,o){a[c]!==o&&(a[c]=o)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");i.HI_DPI&&l.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof l.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),l=null}i.HAS_CSS_TRANSFORMS?i.translate=function(a,c,o){a.style.transform="translate("+Math.round(c)+"px, "+Math.round(o)+"px)"}:i.translate=function(a,c,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,i,m){/*
3
+ * based on code from:
4
+ *
5
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
6
+ * Available via the MIT or new BSD license.
7
+ * see: http://github.com/jrburke/requirejs for details
8
+ */var p=e("./dom");i.get=function(v,w){var h=new XMLHttpRequest;h.open("GET",v,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},i.loadScript=function(v,w){var h=p.getDocumentHead(),f=document.createElement("script");f.src=v,h.appendChild(f),f.onload=f.onreadystatechange=function(s,l){(l||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,l||w())}},i.qualifyURL=function(v){var w=document.createElement("a");return w.href=v,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,i,m){i.inherits=function(p,v){p.super_=v,p.prototype=Object.create(v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(p,v){for(var w in v)p[w]=v[w];return p},i.implement=function(p,v){i.mixin(p,v)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,i,m){var p={},v=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(h,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[h]||[],l=this._defaultHandlers[h];if(!(!s.length&&!l)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=h),f.stopPropagation||(f.stopPropagation=v),f.preventDefault||(f.preventDefault=w),s=s.slice();for(var a=0;a<s.length&&(s[a](f,this),!f.propagationStopped);a++);if(l&&!f.defaultPrevented)return l(f,this)}},p._signal=function(h,f){var s=(this._eventRegistry||{})[h];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](f,this)}},p.once=function(h,f){var s=this;if(this.on(h,function l(){s.off(h,l),f.apply(null,arguments)}),!f)return new Promise(function(l){f=l})},p.setDefaultHandler=function(h,f){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[h]){var l=s[h],a=s._disabled_[h];a||(s._disabled_[h]=a=[]),a.push(l);var c=a.indexOf(f);c!=-1&&a.splice(c,1)}s[h]=f},p.removeDefaultHandler=function(h,f){var s=this._defaultHandlers;if(s){var l=s._disabled_[h];if(s[h]==f)l&&this.setDefaultHandler(h,l.pop());else if(l){var a=l.indexOf(f);a!=-1&&l.splice(a,1)}}},p.on=p.addEventListener=function(h,f,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[h];return l||(l=this._eventRegistry[h]=[]),l.indexOf(f)==-1&&l[s?"unshift":"push"](f),f},p.off=p.removeListener=p.removeEventListener=function(h,f){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[h];if(s){var l=s.indexOf(f);l!==-1&&s.splice(l,1)}},p.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},i.EventEmitter=p}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,i,m){i.reportError=function(p,v){var w=new Error(p);w.data=v,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,i,m){var p={"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","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"};i.defaultEnglishMessages=p}),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(e,i,m){"no use strict";var p=e("./oop"),v=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,f={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var g=this.$options;o=Object.keys(g).filter(function(y){return!g[y].hidden})}return o.forEach(function(y){u[y]=this.getOption(y)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var g=this.$options[o];if(!g)return s('misspelled option "'+o+'"');if(g.forwardTo)return this[g.forwardTo]&&this[g.forwardTo].setOption(o,u);g.handlesSet||(this["$"+o]=u),g&&g.set&&g.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:s('misspelled option "'+o+'"')}};function s(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,a,c=function(){function o(){this.$defaultOptions={},l=h,a="dollarSigns"}return o.prototype.defineOptions=function(u,g,y){return u.$options||(this.$defaultOptions[g]=u.$options={}),Object.keys(y).forEach(function(b){var L=y[b];typeof L=="string"&&(L={forwardTo:L}),L.name||(L.name=b),u.$options[L.name]=L,"initialValue"in L&&(u["$"+L.name]=L.initialValue)}),p.implement(u,f),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(g){var y=u.$options[g];"value"in y&&u.setOption(g,y.value)})},o.prototype.setDefaultValue=function(u,g,y){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][g])break;if(!this.$defaultOptions[u][g])return!1}var b=this.$defaultOptions[u]||(this.$defaultOptions[u]={});b[g]&&(b.forwardTo?this.setDefaultValue(b.forwardTo,g,y):b[g].value=y)},o.prototype.setDefaultValues=function(u,g){Object.keys(g).forEach(function(y){this.setDefaultValue(u,y,g[y])},this)},o.prototype.setMessages=function(u,g){l=u,g&&g.placeholders&&(a=g.placeholders)},o.prototype.nls=function(u,g,y){l[u]||(s("No message found for the key '"+u+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+g+"'."),l[g]||s("No message found for the default string '"+g+"' in the provided messages. Falling back to the default English message."));var b=l[u]||l[g]||g;return y&&(a==="dollarSigns"&&(b=b.replace(/\$(\$|[\d]+)/g,function(L,A){return A=="$"?"$":y[A]})),a==="curlyBrackets"&&(b=b.replace(/\{([^\}]+)\}/g,function(L,A){return y[A]}))),b},o}();c.prototype.warn=s,c.prototype.reportError=w,p.implement(c.prototype,v),i.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,i,m){m.exports=`.ace-tm .ace_gutter {
9
+ background: #f0f0f0;
10
+ color: #333;
11
+ }
12
+
13
+ .ace-tm .ace_print-margin {
14
+ width: 1px;
15
+ background: #e8e8e8;
16
+ }
17
+
18
+ .ace-tm .ace_fold {
19
+ background-color: #6B72E6;
20
+ }
21
+
22
+ .ace-tm {
23
+ background-color: #FFFFFF;
24
+ color: black;
25
+ }
26
+
27
+ .ace-tm .ace_cursor {
28
+ color: black;
29
+ }
30
+
31
+ .ace-tm .ace_invisible {
32
+ color: rgb(191, 191, 191);
33
+ }
34
+
35
+ .ace-tm .ace_storage,
36
+ .ace-tm .ace_keyword {
37
+ color: blue;
38
+ }
39
+
40
+ .ace-tm .ace_constant {
41
+ color: rgb(197, 6, 11);
42
+ }
43
+
44
+ .ace-tm .ace_constant.ace_buildin {
45
+ color: rgb(88, 72, 246);
46
+ }
47
+
48
+ .ace-tm .ace_constant.ace_language {
49
+ color: rgb(88, 92, 246);
50
+ }
51
+
52
+ .ace-tm .ace_constant.ace_library {
53
+ color: rgb(6, 150, 14);
54
+ }
55
+
56
+ .ace-tm .ace_invalid {
57
+ background-color: rgba(255, 0, 0, 0.1);
58
+ color: red;
59
+ }
60
+
61
+ .ace-tm .ace_support.ace_function {
62
+ color: rgb(60, 76, 114);
63
+ }
64
+
65
+ .ace-tm .ace_support.ace_constant {
66
+ color: rgb(6, 150, 14);
67
+ }
68
+
69
+ .ace-tm .ace_support.ace_type,
70
+ .ace-tm .ace_support.ace_class {
71
+ color: rgb(109, 121, 222);
72
+ }
73
+
74
+ .ace-tm .ace_keyword.ace_operator {
75
+ color: rgb(104, 118, 135);
76
+ }
77
+
78
+ .ace-tm .ace_string {
79
+ color: rgb(3, 106, 7);
80
+ }
81
+
82
+ .ace-tm .ace_comment {
83
+ color: rgb(76, 136, 107);
84
+ }
85
+
86
+ .ace-tm .ace_comment.ace_doc {
87
+ color: rgb(0, 102, 255);
88
+ }
89
+
90
+ .ace-tm .ace_comment.ace_doc.ace_tag {
91
+ color: rgb(128, 159, 191);
92
+ }
93
+
94
+ .ace-tm .ace_constant.ace_numeric {
95
+ color: rgb(0, 0, 205);
96
+ }
97
+
98
+ .ace-tm .ace_variable {
99
+ color: rgb(49, 132, 149);
100
+ }
101
+
102
+ .ace-tm .ace_xml-pe {
103
+ color: rgb(104, 104, 91);
104
+ }
105
+
106
+ .ace-tm .ace_entity.ace_name.ace_function {
107
+ color: #0000A2;
108
+ }
109
+
110
+
111
+ .ace-tm .ace_heading {
112
+ color: rgb(12, 7, 255);
113
+ }
114
+
115
+ .ace-tm .ace_list {
116
+ color:rgb(185, 6, 144);
117
+ }
118
+
119
+ .ace-tm .ace_meta.ace_tag {
120
+ color:rgb(0, 22, 142);
121
+ }
122
+
123
+ .ace-tm .ace_string.ace_regex {
124
+ color: rgb(255, 0, 0)
125
+ }
126
+
127
+ .ace-tm .ace_marker-layer .ace_selection {
128
+ background: rgb(181, 213, 255);
129
+ }
130
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
131
+ box-shadow: 0 0 3px 0px white;
132
+ }
133
+ .ace-tm .ace_marker-layer .ace_step {
134
+ background: rgb(252, 255, 0);
135
+ }
136
+
137
+ .ace-tm .ace_marker-layer .ace_stack {
138
+ background: rgb(164, 229, 101);
139
+ }
140
+
141
+ .ace-tm .ace_marker-layer .ace_bracket {
142
+ margin: -1px 0 0 -1px;
143
+ border: 1px solid rgb(192, 192, 192);
144
+ }
145
+
146
+ .ace-tm .ace_marker-layer .ace_active-line {
147
+ background: rgba(0, 0, 0, 0.07);
148
+ }
149
+
150
+ .ace-tm .ace_gutter-active-line {
151
+ background-color : #dcdcdc;
152
+ }
153
+
154
+ .ace-tm .ace_marker-layer .ace_selected-word {
155
+ background: rgb(250, 250, 255);
156
+ border: 1px solid rgb(200, 200, 250);
157
+ }
158
+
159
+ .ace-tm .ace_indent-guide {
160
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
+ }
162
+
163
+ .ace-tm .ace_indent-guide-active {
164
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
+ }
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,i,m){i.isDark=!1,i.cssClass="ace-tm",i.cssText=e("./textmate-css"),i.$id="ace/theme/textmate";var p=e("../lib/dom");p.importCssString(i.cssText,i.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,i,m){"no use strict";var p=e("./lib/lang"),v=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;m.exports=i=new h;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!f.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return f[c]},i.set=function(c,o){if(f.hasOwnProperty(c))f[c]=o;else if(this.setDefaultValue("",c,o)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(o)},i.all=function(){return p.copyObject(f)},i.$modes={},i.moduleUrl=function(c,o){if(f.$moduleUrls[c])return f.$moduleUrls[c];var u=c.split("/");o=o||u[u.length-2]||"";var g=o=="snippets"?"/":"-",y=u[u.length-1];if(o=="worker"&&g=="-"){var b=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");y=y.replace(b,"")}(!y||y==o)&&u.length>1&&(y=u[u.length-2]);var L=f[o+"Path"];return L==null?L=f.basePath:g=="/"&&(o=g=""),L&&L.slice(-1)!="/"&&(L+="/"),L+o+g+y+this.get("suffix")},i.setModuleUrl=function(c,o){return f.$moduleUrls[c]=o};var s=function(c,o){if(c==="ace/theme/textmate"||c==="./theme/textmate")return o(null,e("./theme/textmate"));if(l)return l(c,o);console.error("loader is not configured")},l;i.setLoader=function(c){l=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,o){var u;if(Array.isArray(c))var g=c[0],y=c[1];else if(typeof c=="string")var y=c;var b=function(L){if(L&&!i.$loading[y])return o&&o(L);if(i.$loading[y]||(i.$loading[y]=[]),i.$loading[y].push(o),!(i.$loading[y].length>1)){var A=function(){s(y,function(k,x){x&&(i.$loaded[y]=x),i._emit("load.module",{name:y,module:x});var T=i.$loading[y];i.$loading[y]=null,T.forEach(function(E){E&&E(x)})})};if(!i.get("packaged"))return A();v.loadScript(i.moduleUrl(y,g),A),a()}};if(i.dynamicModules[y])i.dynamicModules[y]().then(function(L){L.default?b(L.default):b(L)});else{try{u=this.$require(y)}catch{}b(u||i.$loaded[y])}},i.$require=function(c){if(typeof m.require=="function"){var o="require";return m[o](c)}},i.setModuleLoader=function(c,o){i.dynamicModules[c]=o};var a=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),a=function(){})};i.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,i,m){e("./lib/fixoldbrowsers");var p=e("./config");p.setLoader(function(f,s){e([f],function(l){s(null,l)})});var v=function(){return this||typeof window<"u"&&window}();m.exports=function(f){p.init=w,p.$require=e,f.require=e},w(!0);function w(f){if(!(!v||!v.document)){p.set("packaged",f||e.packaged||m.packaged||v.define&&(void 0).packaged);var s={},l="",a=document.currentScript||document._currentScript,c=a&&a.ownerDocument||document;a&&a.src&&(l=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=c.getElementsByTagName("script"),u=0;u<o.length;u++){var g=o[u],y=g.src||g.getAttribute("src");if(y){for(var b=g.attributes,L=0,A=b.length;L<A;L++){var k=b[L];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var x=y.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);x&&(l=x[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var T in s)typeof s[T]<"u"&&p.set(T,s[T])}}function h(f){return f.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,i,m){var p=function(){function v(w,h,f,s){this.start={row:w,column:h},this.end={row:f,column:s}}return v.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},v.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},v.prototype.contains=function(w,h){return this.compare(w,h)==0},v.prototype.compareRange=function(w){var h,f=w.end,s=w.start;return h=this.compare(f.row,f.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},v.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},v.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},v.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},v.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},v.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},v.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},v.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},v.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},v.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},v.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},v.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},v.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},v.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.clipRows=function(w,h){if(this.end.row>h)var f={row:h+1,column:0};else if(this.end.row<w)var f={row:w,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<w)var s={row:w,column:0};return v.fromPoints(s||this.start,f||this.end)},v.prototype.extend=function(w,h){var f=this.compare(w,h);if(f==0)return this;if(f==-1)var s={row:w,column:h};else var l={row:w,column:h};return v.fromPoints(s||this.start,l||this.end)},v.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},v.prototype.isMultiLine=function(){return this.start.row!==this.end.row},v.prototype.clone=function(){return v.fromPoints(this.start,this.end)},v.prototype.collapseRows=function(){return this.end.column==0?new v(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new v(this.start.row,0,this.end.row,0)},v.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),f=w.documentToScreenPosition(this.end);return new v(h.row,h.column,f.row,f.column)},v.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},v}();p.fromPoints=function(v,w){return new p(v.row,v.column,w.row,w.column)},p.comparePoints=function(v,w){return v.row-w.row||v.column-w.column},i.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,i,m){for(var p=e("./oop"),v={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:"*"}},w={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},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,v.PRINTABLE_KEYS[48+h]=""+h,v.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var f=String.fromCharCode(h+32);w["Key"+f.toUpperCase()]=h,v.PRINTABLE_KEYS[h]=f}for(var h=1;h<13;h++)w["F"+h]=111+h,v.FUNCTION_KEYS[111+h]="F"+h;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)w[l]=w[l+"Left"]=w[l+"Right"]=s[l];i.$codeToKeyCode=w,v.PRINTABLE_KEYS[173]="-";for(var a in v.FUNCTION_KEYS){var c=v.FUNCTION_KEYS[a].toLowerCase();v[c]=parseInt(a,10)}for(var a in v.PRINTABLE_KEYS){var c=v.PRINTABLE_KEYS[a].toLowerCase();v[c]=parseInt(a,10)}p.mixin(v,v.MODIFIER_KEYS),p.mixin(v,v.PRINTABLE_KEYS),p.mixin(v,v.FUNCTION_KEYS),v.enter=v.return,v.escape=v.esc,v.del=v.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)v.KEY_MODS[u]=o.filter(function(g){return u&v.KEY_MODS[g]}).join("-")+"-"}(),v.KEY_MODS[0]="",v.KEY_MODS[-1]="input-",p.mixin(i,v),i.default=i,i.keyCodeToString=function(o){var u=v[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var p=e("./keys"),v=e("./useragent"),w=null,h=0,f;function s(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return f={passive:!1},!0}})}catch{}}function l(){return f==null&&s(),f}function a(L,A,k){this.elem=L,this.type=A,this.callback=k}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(L,A,k,x){L.addEventListener(A,k,l()),x&&x.$toDestroy.push(new a(L,A,k))},o=i.removeListener=function(L,A,k){L.removeEventListener(A,k,l())};i.stopEvent=function(L){return i.stopPropagation(L),i.preventDefault(L),!1},i.stopPropagation=function(L){L.stopPropagation&&L.stopPropagation()},i.preventDefault=function(L){L.preventDefault&&L.preventDefault()},i.getButton=function(L){return L.type=="dblclick"?0:L.type=="contextmenu"||v.isMac&&L.ctrlKey&&!L.altKey&&!L.shiftKey?2:L.button},i.capture=function(L,A,k){var x=L&&L.ownerDocument||document;function T(E){A&&A(E),k&&k(E),o(x,"mousemove",A),o(x,"mouseup",T),o(x,"dragstart",T)}return c(x,"mousemove",A),c(x,"mouseup",T),c(x,"dragstart",T),T},i.addMouseWheelListener=function(L,A,k){c(L,"wheel",function(x){var T=.15,E=x.deltaX||0,I=x.deltaY||0;switch(x.deltaMode){case x.DOM_DELTA_PIXEL:x.wheelX=E*T,x.wheelY=I*T;break;case x.DOM_DELTA_LINE:var M=15;x.wheelX=E*M,x.wheelY=I*M;break;case x.DOM_DELTA_PAGE:var N=150;x.wheelX=E*N,x.wheelY=I*N;break}A(x)},k)},i.addMultiMouseDownListener=function(L,A,k,x,T){var E=0,I,M,N,$={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(S){if(i.getButton(S)!==0?E=0:S.detail>1?(E++,E>4&&(E=1)):E=1,v.isIE){var R=Math.abs(S.clientX-I)>5||Math.abs(S.clientY-M)>5;(!N||R)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},A[E-1]||600),E==1&&(I=S.clientX,M=S.clientY)}if(S._clicks=E,k[x]("mousedown",S),E>4)E=0;else if(E>1)return k[x]($[E],S)}Array.isArray(L)||(L=[L]),L.forEach(function(S){c(S,"mousedown",_,T)})};function u(L){return 0|(L.ctrlKey?1:0)|(L.altKey?2:0)|(L.shiftKey?4:0)|(L.metaKey?8:0)}i.getModifierString=function(L){return p.KEY_MODS[u(L)]};function g(L,A,k){var x=u(A);if(!k&&A.code&&(k=p.$codeToKeyCode[A.code]||k),!v.isMac&&w){if(A.getModifierState&&(A.getModifierState("OS")||A.getModifierState("Win"))&&(x|=8),w.altGr)if((3&x)!=3)w.altGr=0;else return;if(k===18||k===17){var T=A.location;if(k===17&&T===1)w[k]==1&&(h=A.timeStamp);else if(k===18&&x===3&&T===2){var E=A.timeStamp-h;E<50&&(w.altGr=!0)}}}if(k in p.MODIFIER_KEYS&&(k=-1),!(!x&&k===13&&A.location===3&&(L(A,x,-k),A.defaultPrevented))){if(v.isChromeOS&&x&8){if(L(A,x,k),A.defaultPrevented)return;x&=-9}return!x&&!(k in p.FUNCTION_KEYS)&&!(k in p.PRINTABLE_KEYS)?!1:L(A,x,k)}}i.addCommandKeyListener=function(L,A,k){var x=null;c(L,"keydown",function(T){w[T.keyCode]=(w[T.keyCode]||0)+1;var E=g(A,T,T.keyCode);return x=T.defaultPrevented,E},k),c(L,"keypress",function(T){x&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(i.stopEvent(T),x=null)},k),c(L,"keyup",function(T){w[T.keyCode]=null},k),w||(y(),c(window,"focus",y))};function y(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var b=1;i.nextTick=function(L,A){A=A||window;var k="zero-timeout-message-"+b++,x=function(T){T.data==k&&(i.stopPropagation(T),o(A,"message",x),L())};c(A,"message",x),A.postMessage(k,"*")}}i.$idleBlocked=!1,i.onIdle=function(L,A){return setTimeout(function k(){i.$idleBlocked?setTimeout(k,100):L()},A)},i.$idleBlockId=null,i.blockIdle=function(L){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},L||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(L){setTimeout(L,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,i,m){var p;m.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=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(e,i,m){var p=e("../lib/event"),v=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),f=e("../lib/lang"),s=e("../clipboard"),l=w.isChrome<18,a=w.isIE,c=w.isChrome>63,o=400,u=e("../lib/keys"),g=u.KEY_MODS,y=w.isIOS,b=y?/\s/:/\n/,L=w.isMobile,A;A=function(k,x){var T=h.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var E=!1,I=!1,M=!1,N=!1,$="";L||(T.style.fontSize="1px");var _=!1,S=!1,R="",O=0,F=0,z=0,j=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var J=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(j=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(x.$textInputAriaLabel&&(ce+="".concat(x.$textInputAriaLabel,", ")),x.session){var Te=x.session.selection.cursor.row;ce+=v("text-input.aria-label","Cursor at row $0",[Te+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",v("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),p.addListener(T,"blur",function(ce){S||(x.onBlur(ce),J=!1)},x),p.addListener(T,"focus",function(ce){if(!S){if(J=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}x.onFocus(ce),w.isEdge?setTimeout(Q):Q()}},x),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:x.renderer.enableKeyboardAccessibility}),$||c||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Te=T.getBoundingClientRect().top!=0}catch{return}var Le=[];if(Te)for(var qe=T.parentElement;qe&&qe.nodeType==1;)Le.push(qe),qe.setAttribute("ace_nocontext","true"),!qe.parentElement&&qe.getRootNode?qe=qe.getRootNode().host:qe=qe.parentElement;T.focus({preventScroll:!0}),Te&&Le.forEach(function(Ye){Ye.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return J},x.on("beforeEndOperation",function(){var ce=x.curOp,Te=ce&&ce.command&&ce.command.name;if(Te!="insertstring"){var Le=Te&&(ce.docChanged||ce.selectionChanged);M&&Le&&(R=T.value="",Qt()),Q()}}),x.on("changeSelection",this.setAriaLabel);var G=function(ce,Te){for(var Le=Te,qe=1;qe<=ce-j&&qe<2*q+1;qe++)Le+=x.session.getLine(ce-qe).length+1;return Le},Q=y?function(ce){if(!(!J||E&&!ce||N)){ce||(ce="");var Te=`
167
+ ab`+ce+`cde fg
168
+ `;Te!=T.value&&(T.value=R=Te);var Le=4,qe=4+(ce.length||(x.selection.isEmpty()?0:1));(O!=Le||F!=qe)&&T.setSelectionRange(Le,qe),O=Le,F=qe}}:function(){if(!(M||N)&&!(!J&&!me)){M=!0;var ce=0,Te=0,Le="";if(x.session){var qe=x.selection,Ye=qe.getRange(),dt=qe.cursor.row;dt===V+1?(j=V+1,V=j+2*q):dt===j-1?(V=j-1,j=V-2*q):(dt<j-1||dt>V+1)&&(j=dt>q?dt-q:0,V=dt>q?dt+q:2*q);for(var pt=[],lt=j;lt<=V;lt++)pt.push(x.session.getLine(lt));if(Le=pt.join(`
169
+ `),ce=G(Ye.start.row,Ye.start.column),Te=G(Ye.end.row,Ye.end.column),Ye.start.row<j){var ct=x.session.getLine(j-1);ce=Ye.start.row<j-1?0:ce,Te+=ct.length+1,Le=ct+`
170
+ `+Le}else if(Ye.end.row>V){var nt=x.session.getLine(V+1);Te=Ye.end.row>V+1?nt.length:Ye.end.column,Te+=Le.length+1,Le=Le+`
171
+ `+nt}else L&&dt>0&&(Le=`
172
+ `+Le,Te+=1,ce+=1);Le.length>o&&(ce<o&&Te<o?Le=Le.slice(0,o):(Le=`
173
+ `,ce==Te?ce=Te=0:(ce=0,Te=1)));var jt=Le+`
174
+
175
+ `;jt!=R&&(T.value=R=jt,O=F=jt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Te||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Te),O=ce,F=Te}catch{}M=!1}};this.resetSelection=Q,J&&x.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=R.length&&ce.value===R&&R&&ce.selectionEnd!==F},X=function(ce){M||(E?E=!1:ie(T)?(x.selectAll(),Q()):L&&T.selectionStart!=O&&Q())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ye=function(ce,Te){if(me&&(me=!1),I)return Q(),ce&&x.onPaste(ce),I=!1,"";for(var Le=T.selectionStart,qe=T.selectionEnd,Ye=O,dt=R.length-F,pt=ce,lt=ce.length-Le,ct=ce.length-qe,nt=0;Ye>0&&R[nt]==ce[nt];)nt++,Ye--;for(pt=pt.slice(nt),nt=1;dt>0&&R.length-nt>O-1&&R[R.length-nt]==ce[ce.length-nt];)nt++,dt--;lt-=nt-1,ct-=nt-1;var jt=pt.length-nt+1;if(jt<0&&(Ye=-jt,jt=0),pt=pt.slice(0,jt),!Te&&!pt&&!lt&&!Ye&&!dt&&!ct)return"";N=!0;var Hn=!1;return w.isAndroid&&pt==". "&&(pt=" ",Hn=!0),pt&&!Ye&&!dt&&!lt&&!ct||_?x.onTextInput(pt):x.onTextInput(pt,{extendLeft:Ye,extendRight:dt,restoreStart:lt,restoreEnd:ct}),N=!1,R=ce,O=Le,F=qe,z=ct,Hn?`
176
+ `:pt},fe=function(ce){if(M)return Dt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return x.execCommand("undo");if(ce.inputType=="historyRedo")return x.execCommand("redo")}var Te=T.value,Le=ye(Te,!0);(Te.length>o+100||b.test(Le)||L&&O<1&&O==F)&&Q()},$e=function(ce,Te,Le){var qe=ce.clipboardData||window.clipboardData;if(!(!qe||l)){var Ye=a||Le?"Text":"text/plain";try{return Te?qe.setData(Ye,Te)!==!1:qe.getData(Ye)}catch(dt){if(!Le)return $e(dt,Te,!0)}}},ot=function(ce,Te){var Le=x.getCopyText();if(!Le)return p.preventDefault(ce);$e(ce,Le)?(y&&(Q(Le),E=Le,setTimeout(function(){E=!1},10)),Te?x.onCut():x.onCopy(),p.preventDefault(ce)):(E=!0,T.value=Le,T.select(),setTimeout(function(){E=!1,Q(),Te?x.onCut():x.onCopy()}))},zt=function(ce){ot(ce,!0)},ht=function(ce){ot(ce,!1)},ft=function(ce){var Te=$e(ce);s.pasteCancelled()||(typeof Te=="string"?(Te&&x.onPaste(Te,ce),w.isIE&&setTimeout(Q),p.preventDefault(ce)):(T.value="",I=!0))};p.addCommandKeyListener(T,function(ce,Te,Le){if(!M)return x.onCommandKey(ce,Te,Le)},x),p.addListener(T,"select",X,x),p.addListener(T,"input",fe,x),p.addListener(T,"cut",zt,x),p.addListener(T,"copy",ht,x),p.addListener(T,"paste",ft,x),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&p.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:ht(ce);break;case 86:ft(ce);break;case 88:zt(ce);break}},x);var cn=function(ce){if(!(M||!x.onCompositionStart||x.$readOnly)&&(M={},!_)){ce.data&&(M.useTextareaForIME=!1),setTimeout(Dt,0),x._signal("compositionStart"),x.on("mousedown",Yi);var Te=x.getSelectionRange();Te.end.row=Te.start.row,Te.end.column=Te.start.column,M.markerRange=Te,M.selectionStart=O,x.onCompositionStart(M),M.useTextareaForIME?(R=T.value="",O=0,F=0):(T.msGetInputContext&&(M.context=T.msGetInputContext()),T.getInputContext&&(M.context=T.getInputContext()))}},Dt=function(){if(!(!M||!x.onCompositionUpdate||x.$readOnly)){if(_)return Yi();if(M.useTextareaForIME)x.onCompositionUpdate(T.value);else{var ce=T.value;ye(ce),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+F-M.selectionStart+z)}}},Qt=function(ce){!x.onCompositionEnd||x.$readOnly||(M=!1,x.onCompositionEnd(),x.off("mousedown",Yi),ce&&fe())};function Yi(){S=!0,T.blur(),T.focus(),S=!1}var kn=f.delayedCall(Dt,50).schedule.bind(null,null);function nn(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(M||(R=T.value),O=F=-1,Q()),kn()}p.addListener(T,"compositionstart",cn,x),p.addListener(T,"compositionupdate",Dt,x),p.addListener(T,"keyup",nn,x),p.addListener(T,"keydown",kn,x),p.addListener(T,"compositionend",Qt,x),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Q(),x._emit("nativecontextmenu",{target:x,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Te){$||($=T.style.cssText),T.style.cssText=(Te?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*x.renderer.characterWidth*.5+"px;";var Le=x.container.getBoundingClientRect(),qe=h.computedStyle(x.container),Ye=Le.top+(parseInt(qe.borderTopWidth)||0),dt=Le.left+(parseInt(Le.borderLeftWidth)||0),pt=Le.bottom-Ye-T.clientHeight-2,lt=function(ct){h.translate(T,ct.clientX-dt-2,Math.min(ct.clientY-Ye-2,pt))};lt(ce),ce.type=="mousedown"&&(x.renderer.$isMousePressed=!0,clearTimeout(Fe),w.isWin&&p.capture(x.container,lt,Be))},this.onContextMenuClose=Be;var Fe;function Be(){clearTimeout(Fe),Fe=setTimeout(function(){$&&(T.style.cssText=$,$=""),x.renderer.$isMousePressed=!1,x.renderer.$keepTextAreaAtCursor&&x.renderer.$moveTextAreaToCursor()},0)}var rn=function(ce){x.textInput.onContextMenu(ce),Be()};p.addListener(T,"mouseup",rn,x),p.addListener(T,"mousedown",function(ce){ce.preventDefault(),Be()},x),p.addListener(x.renderer.scroller,"contextmenu",rn,x),p.addListener(T,"contextmenu",rn,x),y&&je(k,x,T);function je(ce,Te,Le){var qe=null,Ye=!1;Le.addEventListener("keydown",function(pt){qe&&clearTimeout(qe),Ye=!0},!0),Le.addEventListener("keyup",function(pt){qe=setTimeout(function(){Ye=!1},100)},!0);var dt=function(pt){if(document.activeElement===Le&&!(Ye||M||Te.$mouseHandler.isMousePressed)&&!E){var lt=Le.selectionStart,ct=Le.selectionEnd,nt=null,jt=0;if(lt==0?nt=u.up:lt==1?nt=u.home:ct>F&&R[ct]==`
177
+ `?nt=u.end:lt<O&&R[lt-1]==" "?(nt=u.left,jt=g.option):lt<O||lt==O&&F!=O&&lt==ct?nt=u.left:ct>F&&R.slice(0,ct).split(`
178
+ `).length>2?nt=u.down:ct>F&&R[ct-1]==" "?(nt=u.right,jt=g.option):(ct>F||ct==F&&F!=O&&lt==ct)&&(nt=u.right),lt!==ct&&(jt|=g.shift),nt){var Hn=Te.onCommandKey({},jt,nt);if(!Hn&&Te.commands){nt=u.keyCodeToString(nt);var ar=Te.commands.findKeyCommand(jt,nt);ar&&Te.execCommand(ar)}O=lt,F=ct,Q("")}}};document.addEventListener("selectionchange",dt),Te.on("destroy",function(){document.removeEventListener("selectionchange",dt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},i.TextInput=A,i.$setUserAgentForTests=function(k,x){L=k,y=x}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,i,m){var p=e("../lib/useragent"),v=0,w=550,h=function(){function l(a){a.$clickSelection=null;var c=a.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){a[u]=this[u]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return l.prototype.onMouseDown=function(a){var c=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var u=this.editor,g=a.getButton();if(g!==0){var y=u.getSelectionRange(),b=y.isEmpty();(b||g==1)&&u.selection.moveToPosition(o),g==2&&(u.textInput.onContextMenu(a.domEvent),p.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(o,a.domEvent._clicks>1),a.preventDefault()},l.prototype.startSelect=function(a,c){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):c||o.selection.moveToPosition(a),c||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var a,c=this.editor,o=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)a=this.$clickSelection.end;else if(u==1)a=this.$clickSelection.start;else{var g=s(this.$clickSelection,o);o=g.cursor,a=g.anchor}c.selection.setSelectionAnchor(a.row,a.column)}c.selection.selectToPosition(o),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(a){var c,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),g=o.selection[a](u.row,u.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(g.start),b=this.$clickSelection.comparePoint(g.end);if(y==-1&&b<=0)c=this.$clickSelection.end,(g.end.row!=u.row||g.end.column!=u.column)&&(u=g.start);else if(b==1&&y>=0)c=this.$clickSelection.start,(g.start.row!=u.row||g.start.column!=u.column)&&(u=g.end);else if(y==-1&&b==1)u=g.end,c=g.start;else{var L=s(this.$clickSelection,u);u=L.cursor,c=L.anchor}o.selection.setSelectionAnchor(c.row,c.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var a=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>v||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),o=this.editor,u=o.session,g=u.getBracketRange(c);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=o.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},l.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(c.row,c.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(a){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=a.domEvent.timeStamp,g=u-o.t,y=g?a.wheelX/g:o.vx,b=g?a.wheelY/g:o.vy;g<w&&(y=(y+o.vx)/2,b=(b+o.vy)/2);var L=Math.abs(y/b),A=!1;if(L>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(A=!0),L<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(A=!0),A)o.allowed=u;else if(u-o.allowed<w){var k=Math.abs(y)<=1.5*Math.abs(o.vx)&&Math.abs(b)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=y,o.vy=b,A)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,i.DefaultHandlers=h;function f(l,a,c,o){return Math.sqrt(Math.pow(c-l,2)+Math.pow(o-a,2))}function s(l,a){if(l.start.row==l.end.row)var c=2*a.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var c=a.column-4;else var c=2*a.row-l.start.row-l.end.row;return c<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,i,m){i.preventParentScroll=function(p){p.stopPropagation();var v=p.currentTarget,w=v.scrollHeight>v.clientHeight;w||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,i,m){var p=this&&this.__extends||function(){var u=function(g,y){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,L){b.__proto__=L}||function(b,L){for(var A in L)Object.prototype.hasOwnProperty.call(L,A)&&(b[A]=L[A])},u(g,y)};return function(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");u(g,y);function b(){this.constructor=g}g.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}}(),v=this&&this.__values||function(u){var g=typeof Symbol=="function"&&Symbol.iterator,y=g&&u[g],b=0;if(y)return y.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&b>=u.length&&(u=void 0),{value:u&&u[b++],done:!u}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,f=e("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function u(g){this.isOpen=!1,this.$element=null,this.$parentNode=g}return u.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(g){this.getElement().textContent=g},u.prototype.setHtml=function(g){this.getElement().innerHTML=g},u.prototype.setPosition=function(g,y){this.getElement().style.left=g+"px",this.getElement().style.top=y+"px"},u.prototype.setClassName=function(g){w.addCssClass(this.getElement(),g)},u.prototype.setTheme=function(g){this.$element.className=s+" "+(g.isDark?"ace_dark ":"")+(g.cssClass||"")},u.prototype.show=function(g,y,b){g!=null&&this.setText(g),y!=null&&b!=null&&this.setPosition(y,b),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(g){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),a=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(g){this.popups.push(g),this.updatePopups()},u.prototype.removePopup=function(g){var y=this.popups.indexOf(g);y!==-1&&(this.popups.splice(y,1),this.updatePopups())},u.prototype.updatePopups=function(){var g,y,b,L;this.popups.sort(function($,_){return _.priority-$.priority});var A=[];try{for(var k=v(this.popups),x=k.next();!x.done;x=k.next()){var T=x.value,E=!0;try{for(var I=(b=void 0,v(A)),M=I.next();!M.done;M=I.next()){var N=M.value;if(this.doPopupsOverlap(N,T)){E=!1;break}}}catch($){b={error:$}}finally{try{M&&!M.done&&(L=I.return)&&L.call(I)}finally{if(b)throw b.error}}E?A.push(T):T.hide()}}catch($){g={error:$}}finally{try{x&&!x.done&&(y=k.return)&&y.call(k)}finally{if(g)throw g.error}}},u.prototype.doPopupsOverlap=function(g,y){var b=g.getElement().getBoundingClientRect(),L=y.getElement().getBoundingClientRect();return b.left<L.right&&b.right>L.left&&b.top<L.bottom&&b.bottom>L.top},u}(),c=new a;i.popupManager=c,i.Tooltip=l;var o=function(u){p(g,u);function g(y){y===void 0&&(y=document.body);var b=u.call(this,y)||this;b.timeout=void 0,b.lastT=0,b.idleTime=350,b.lastEvent=void 0,b.onMouseOut=b.onMouseOut.bind(b),b.onMouseMove=b.onMouseMove.bind(b),b.waitForHover=b.waitForHover.bind(b),b.hide=b.hide.bind(b);var L=b.getElement();return L.style.whiteSpace="pre-wrap",L.style.pointerEvents="auto",L.addEventListener("mouseout",b.onMouseOut),L.tabIndex=-1,L.addEventListener("blur",(function(){L.contains(document.activeElement)||this.hide()}).bind(b)),L.addEventListener("wheel",f),b}return g.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},g.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},g.prototype.onMouseMove=function(y,b){this.lastEvent=y,this.lastT=Date.now();var L=b.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||L||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||L||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},g.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;if(this.idleTime-y>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-y);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},g.prototype.isOutsideOfText=function(y){var b=y.editor,L=y.getDocumentPosition(),A=b.session.getLine(L.row);if(L.column==A.length){var k=b.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),x=b.session.documentToScreenPosition(L.row,L.column);if(x.column!=k.column||x.row!=k.row)return!0}return!1},g.prototype.setDataProvider=function(y){this.$gatherData=y},g.prototype.showForRange=function(y,b,L,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var x=y.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(x.theme)),this.isOpen=!0,this.addMarker(b,y.session),this.range=h.fromPoints(b.start,b.end);var T=x.textToScreenCoordinates(b.start.row,b.start.column),E=x.scroller.getBoundingClientRect();T.pageX<E.left&&(T.pageX=E.left);var I=this.getElement();I.innerHTML="",I.appendChild(L),I.style.maxHeight="",I.style.display="block";var M=I.clientHeight,N=I.clientWidth,$=window.innerHeight-T.pageY-x.lineHeight,_=!0;T.pageY-M<0&&T.pageY<$&&(_=!1),I.style.maxHeight=(_?T.pageY:$)-k+"px",I.style.top=_?"":T.pageY+x.lineHeight+"px",I.style.bottom=_?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-N-k)+"px"}},g.prototype.addMarker=function(y,b){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=b,this.marker=b&&b.addMarker(y,"ace_highlight-marker","text")},g.prototype.hide=function(y){!y&&document.activeElement==this.getElement()||y&&y.target&&(y.type!="keydown"||y.ctrlKey||y.metaKey)&&this.$element.contains(y.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},g.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},g.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},g.prototype.onMouseOut=function(y){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!y.relatedTarget||this.getElement().contains(y.relatedTarget)||y&&y.currentTarget.contains(y.relatedTarget)||y.relatedTarget.classList.contains("ace_content")||this.hide())},g}(l);i.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,i,m){var p=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},c(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(o,u);function g(){this.constructor=o}o.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}}(),v=this&&this.__values||function(c){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&c[o],g=0;if(u)return u.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&g>=c.length&&(c=void 0),{value:c&&c[g++],done:!c}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("../lib/event"),f=e("../tooltip").Tooltip,s=e("../config").nls;e("../lib/lang");function l(c){var o=c.editor,u=o.renderer.$gutterLayer,g=new a(o);c.editor.setDefaultHandler("guttermousedown",function(x){if(!(!o.isFocused()||x.getButton()!=0)){var T=u.getRegion(x);if(T!="foldWidgets"){var E=x.getDocumentPosition().row,I=o.session.selection;if(x.getShiftKey())I.selectTo(E,0);else{if(x.domEvent.detail==2)return o.selectAll(),x.preventDefault();c.$clickSelection=o.selection.getLineRange(E)}return c.setState("selectByLines"),c.captureMouse(x),x.preventDefault()}}});var y,b;function L(){var x=b.getDocumentPosition().row,T=o.session.getLength();if(x==T){var E=o.renderer.pixelToScreenCoordinates(0,b.y).row,I=b.$pos;if(E>o.session.documentToScreenRow(I.row,I.column))return A()}if(g.showTooltip(x),!!g.isOpen)if(o.on("mousewheel",A),c.$tooltipFollowsMouse)k(b);else{var M=b.getGutterRow(),N=u.$lines.get(M);if(N){var $=N.element.querySelector(".ace_gutter_annotation"),_=$.getBoundingClientRect(),S=g.getElement().style;S.left=_.right+"px",S.top=_.bottom+"px"}else k(b)}}function A(){y&&(y=clearTimeout(y)),g.isOpen&&(g.hideTooltip(),o.off("mousewheel",A))}function k(x){g.setPosition(x.x,x.y)}c.editor.setDefaultHandler("guttermousemove",function(x){var T=x.domEvent.target||x.domEvent.srcElement;if(w.hasCssClass(T,"ace_fold-widget"))return A();g.isOpen&&c.$tooltipFollowsMouse&&k(x),b=x,!y&&(y=setTimeout(function(){y=null,b&&!c.isMousePressed?L():A()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(x){b=null,!(!g.isOpen||y)&&(y=setTimeout(function(){y=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}i.GutterHandler=l;var a=function(c){p(o,c);function o(u){var g=c.call(this,u.container)||this;return g.editor=u,g}return o.prototype.setPosition=function(u,g){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,L=this.getWidth(),A=this.getHeight();u+=15,g+=15,u+L>y&&(u-=u+L-y),g+A>b&&(g-=20+A),f.prototype.setPosition.call(this,u,g)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var g,y=this.editor.renderer.$gutterLayer,b=y.$annotations[u],L;b?L={displayText:Array.from(b.displayText),type:Array.from(b.type)}:L={displayText:[],type:[]};var A=y.session.getFoldLine(u);if(A&&y.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},x={error:1,security:2,warning:3,info:4,hint:5},T,E=u+1;E<=A.end.row;E++)if(y.$annotations[E])for(var I=0;I<y.$annotations[E].text.length;I++){var M=y.$annotations[E].type[I];k[M].push(y.$annotations[E].text[I]),(!T||x[M]<x[T])&&(T=M)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");L.displayText.push(N),L.type.push(T+"_fold")}}if(L.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},_=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<L.displayText.length;E++){var S=w.createElement("span"),R=w.createElement("span");(g=R.classList).add.apply(g,["ace_".concat(L.type[E]),_]),R.setAttribute("aria-label","".concat(o.annotationLabels[L.type[E].replace("_fold","")].singular)),R.setAttribute("role","img"),R.appendChild(w.createTextNode(" ")),S.appendChild(R),S.appendChild(w.createTextNode(L.displayText[E])),S.appendChild(w.createElement("br")),$[L.type[E].replace("_fold","")].push(S)}var O=this.getElement();w.removeChildren(O),$.error.forEach(function(F){return O.appendChild(F)}),$.security.forEach(function(F){return O.appendChild(F)}),$.warning.forEach(function(F){return O.appendChild(F)}),$.info.forEach(function(F){return O.appendChild(F)}),$.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},o.annotationsToSummaryString=function(u){var g,y,b=[],L=["error","security","warning","info","hint"];try{for(var A=v(L),k=A.next();!k.done;k=A.next()){var x=k.value;if(u[x].length){var T=u[x].length===1?o.annotationLabels[x].singular:o.annotationLabels[x].plural;b.push("".concat(u[x].length," ").concat(T))}}}catch(E){g={error:E}}finally{try{k&&!k.done&&(y=A.return)&&y.call(A)}finally{if(g)throw g.error}}return b.join(", ")},o}(f);i.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var p=e("../lib/event"),v=e("../lib/useragent"),w=function(){function h(f,s){this.speed,this.wheelX,this.wheelY,this.domEvent=f,this.editor=s,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(f,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var f=this.editor,s=f.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return v.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();i.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/event"),w=e("../lib/useragent"),h=200,f=200,s=5;function l(c){var o=c.editor,u=p.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(G){c[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(c));var y=o.container,b,L,A,k,x,T,E=0,I,M,N,$,_;this.onDragStart=function(G){if(this.cancelDrag||!y.draggable){var Q=this;return setTimeout(function(){Q.startSelect(),Q.captureMouse(G)},0),G.preventDefault()}x=o.getSelectionRange();var ie=G.dataTransfer;ie.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),ie.setDragImage&&ie.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),ie.clearData(),ie.setData("Text",o.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(G){if(y.draggable=!1,M=!1,this.setState(null),!o.getReadOnly()){var Q=G.dataTransfer.dropEffect;!I&&Q=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return L=G.clientX,A=G.clientY,b||F(),E++,G.dataTransfer.dropEffect=I=J(G),v.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return L=G.clientX,A=G.clientY,b||(F(),E++),j!==null&&(j=null),G.dataTransfer.dropEffect=I=J(G),v.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&b)return z(),I=null,v.preventDefault(G)},this.onDrop=function(G){if(T){var Q=G.dataTransfer;if(M)switch(I){case"move":x.contains(T.row,T.column)?x={start:T,end:T}:x=o.moveText(x,T);break;case"copy":x=o.moveText(x,T,!0);break}else{var ie=Q.getData("Text");x={start:T,end:o.session.insert(T,ie)},o.focus(),I=null}return z(),v.preventDefault(G)}},v.addListener(y,"dragstart",this.onDragStart.bind(c),o),v.addListener(y,"dragend",this.onDragEnd.bind(c),o),v.addListener(y,"dragenter",this.onDragEnter.bind(c),o),v.addListener(y,"dragover",this.onDragOver.bind(c),o),v.addListener(y,"dragleave",this.onDragLeave.bind(c),o),v.addListener(y,"drop",this.onDrop.bind(c),o);function S(G,Q){var ie=Date.now(),X=!Q||G.row!=Q.row,ae=!Q||G.column!=Q.column;if(!$||X||ae)o.moveCursorToPosition(G),$=ie,_={x:L,y:A};else{var me=a(_.x,_.y,L,A);me>s?$=null:ie-$>=f&&(o.renderer.scrollCursorIntoView(),$=null)}}function R(G,Q){var ie=Date.now(),X=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ye={x:{left:L-me.left,right:me.right-L},y:{top:A-me.top,bottom:me.bottom-A}},fe=Math.min(ye.x.left,ye.x.right),$e=Math.min(ye.y.top,ye.y.bottom),ot={row:G.row,column:G.column};fe/ae<=2&&(ot.column+=ye.x.left<ye.x.right?-3:2),$e/X<=1&&(ot.row+=ye.y.top<ye.y.bottom?-1:1);var zt=G.row!=ot.row,ht=G.column!=ot.column,ft=!Q||G.row!=Q.row;zt||ht&&!ft?N?ie-N>=h&&o.renderer.scrollCursorIntoView(ot):N=ie:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(L,A),S(T,G),R(T,G)}function F(){x=o.selection.toOrientedRange(),b=o.session.addMarker(x,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),E=0,v.addListener(document,"mousemove",V)}function z(){clearInterval(k),o.session.removeMarker(b),b=null,o.selection.fromOrientedRange(x),o.isFocused()&&!M&&o.$resetCursorStyle(),x=null,T=null,E=0,N=null,$=null,v.removeListener(document,"mousemove",V)}var j=null;function V(){j==null&&(j=setTimeout(function(){j!=null&&b&&z()},20))}function q(G){var Q=G.types;return!Q||Array.prototype.some.call(Q,function(ie){return ie=="text/plain"||ie=="Text"})}function J(G){var Q=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],X=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return X&&Q.indexOf(ae)>=0?me="copy":ie.indexOf(ae)>=0?me="move":Q.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,o=c.container;o.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var u=w.isWin?"default":"move";c.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(c){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var o=this.editor,u=c.inSelection(),g=c.getButton(),y=c.domEvent.detail||1;if(y===1&&g===0&&u){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),o.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var L=o.container;L.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function a(c,o,u,g){return Math.sqrt(Math.pow(u-c,2)+Math.pow(g-o,2))}i.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,i,m){var p=e("./mouse_event").MouseEvent,v=e("../lib/event"),w=e("../lib/dom");i.addTouchListeners=function(h,f){var s="scroll",l,a,c,o,u,g,y=0,b,L=0,A=0,k=0,x,T;function E(){var S=window.navigator&&window.navigator.clipboard,R=!1,O=function(){var j=f.getCopyText(),V=f.session.getUndoManager().hasUndo();T.replaceChild(w.buildDom(R?["span",!j&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],j&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],j&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(j){return f.commands.canExecute(j,f)},z=function(j){var V=j.target.getAttribute("action");if(V=="more"||!R)return R=!R,O();V=="paste"?S.readText().then(function(q){f.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(S?S.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(V)),T.firstChild.style.display="none",R=!1,V!="openCommandPalette"&&f.focus()};T=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(j){s="menu",j.stopPropagation(),j.preventDefault(),f.textInput.focus()},ontouchend:function(j){j.stopPropagation(),j.preventDefault(),z(j)},onclick:z},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function I(){if(!f.getOption("enableMobileMenu")){T&&M();return}T||E();var S=f.selection.cursor,R=f.renderer.textToScreenCoordinates(S.row,S.column),O=f.renderer.textToScreenCoordinates(0,0).pageX,F=f.renderer.scrollLeft,z=f.container.getBoundingClientRect();T.style.top=R.pageY-z.top-3+"px",R.pageX-z.left<z.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-z.left+"px"),T.style.display="",T.firstChild.style.display="none",f.on("input",M)}function M(S){T&&(T.style.display="none"),f.off("input",M)}function N(){u=null,clearTimeout(u);var S=f.selection.getRange(),R=S.contains(b.row,b.column);(S.isEmpty()||!R)&&(f.selection.moveToPosition(b),f.selection.selectWord()),s="wait",I()}function $(){u=null,clearTimeout(u),f.selection.moveToPosition(b);var S=L>=2?f.selection.getLineRange(b.row):f.session.getBracketRange(b);S&&!S.isEmpty()?f.selection.setRange(S):f.selection.selectWord(),s="wait"}v.addListener(h,"contextmenu",function(S){if(x){var R=f.textInput.getElement();R.focus()}},f),v.addListener(h,"touchstart",function(S){var R=S.touches;if(u||R.length>1){clearTimeout(u),u=null,c=-1,s="zoom";return}x=f.$mouseHandler.isMousePressed=!0;var O=f.renderer.layerConfig.lineHeight,F=f.renderer.layerConfig.lineHeight,z=S.timeStamp;o=z;var j=R[0],V=j.clientX,q=j.clientY;Math.abs(l-V)+Math.abs(a-q)>O&&(c=-1),l=S.clientX=V,a=S.clientY=q,A=k=0;var J=new p(S,f);if(b=J.getDocumentPosition(),z-c<500&&R.length==1&&!y)L++,S.preventDefault(),S.button=0,$();else{L=0;var G=f.selection.cursor,Q=f.selection.isEmpty()?G:f.selection.anchor,ie=f.renderer.$cursorLayer.getPixelPosition(G,!0),X=f.renderer.$cursorLayer.getPixelPosition(Q,!0),ae=f.renderer.scroller.getBoundingClientRect(),me=f.renderer.layerConfig.offset,ye=f.renderer.scrollLeft,fe=function(zt,ht){return zt=zt/F,ht=ht/O-.75,zt*zt+ht*ht};if(S.clientX<ae.left){s="zoom";return}var $e=fe(S.clientX-ae.left-ie.left+ye,S.clientY-ae.top-ie.top+me),ot=fe(S.clientX-ae.left-X.left+ye,S.clientY-ae.top-X.top+me);$e<3.5&&ot<3.5&&(s=$e>ot?"cursor":"anchor"),ot<3.5?s="anchor":$e<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}c=z},f),v.addListener(h,"touchend",function(S){x=f.$mouseHandler.isMousePressed=!1,g&&clearInterval(g),s=="zoom"?(s="",y=0):u?(f.selection.moveToPosition(b),y=0,I()):s=="scroll"?(_(),M()):I(),clearTimeout(u),u=null},f),v.addListener(h,"touchmove",function(S){u&&(clearTimeout(u),u=null);var R=S.touches;if(!(R.length>1||s=="zoom")){var O=R[0],F=l-O.clientX,z=a-O.clientY;if(s=="wait")if(F*F+z*z>4)s="cursor";else return S.preventDefault();l=O.clientX,a=O.clientY,S.clientX=O.clientX,S.clientY=O.clientY;var j=S.timeStamp,V=j-o;if(o=j,s=="scroll"){var q=new p(S,f);q.speed=1,q.wheelX=F,q.wheelY=z,10*Math.abs(F)<Math.abs(z)&&(F=0),10*Math.abs(z)<Math.abs(F)&&(z=0),V!=0&&(A=F/V,k=z/V),f._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var J=new p(S,f),G=J.getDocumentPosition();s=="cursor"?f.selection.moveCursorToPosition(G):s=="anchor"&&f.selection.setSelectionAnchor(G.row,G.column),f.renderer.scrollCursorIntoView(G),S.preventDefault()}}},f);function _(){y+=60,g=setInterval(function(){y--<=0&&(clearInterval(g),g=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),y<20&&(A=.9*A),y<20&&(k=.9*k);var S=f.session.getScrollTop();f.renderer.scrollBy(10*A,10*k),S==f.session.getScrollTop()&&(y=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,i,m){var p=e("../lib/event"),v=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,f=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,a=e("../config"),c=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var g=this;this.editor=u,new w(this),new h(this),new s(this);var y=function(A){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},b=u.renderer.getMouseEventTarget();p.addListener(b,"click",this.onMouseEvent.bind(this,"click"),u),p.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),p.addMultiMouseDownListener([b,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),p.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),l(u.container,u);var L=u.renderer.$gutter;p.addListener(L,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),p.addListener(L,"click",this.onMouseEvent.bind(this,"gutterclick"),u),p.addListener(L,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),p.addListener(L,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),p.addListener(b,"mousedown",y,u),p.addListener(L,"mousedown",y,u),v.isIE&&u.renderer.scrollBarV&&(p.addListener(u.renderer.scrollBarV.element,"mousedown",y,u),p.addListener(u.renderer.scrollBarH.element,"mousedown",y,u)),u.on("mousemove",function(A){if(!(g.state||g.$dragDelay||!g.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(A.x,A.y),x=u.session.selection.getRange(),T=u.renderer;!x.isEmpty()&&x.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,g){this.editor.session&&this.editor._emit(u,new f(g,this.editor))},o.prototype.onMouseMove=function(u,g){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(u,new f(g,this.editor))},o.prototype.onMouseWheel=function(u,g){var y=new f(g,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=g.wheelX,y.wheelY=g.wheelY,this.editor._emit(u,y)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,g){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var y=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var L=this,A=function(I){if(I){if(v.isWebKit&&!I.which&&L.releaseMouse)return L.releaseMouse();L.x=I.clientX,L.y=I.clientY,g&&g(I),L.mouseEvent=new f(I,L.editor),L.$mouseMoved=!0}},k=function(I){y.off("beforeEndOperation",T),clearInterval(E),y.session&&x(),L[L.state+"End"]&&L[L.state+"End"](I),L.state="",L.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),L.$onCaptureMouseMove=L.releaseMouse=null,I&&L.onMouseEvent("mouseup",I),y.endOperation()},x=function(){L[L.state]&&L[L.state](),L.$mouseMoved=!1};if(v.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var T=function(I){L.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(L[L.state+"End"]&&L[L.state+"End"](),L.state="",L.releaseMouse())};y.on("beforeEndOperation",T),y.startOperation({command:{name:"mouse"}}),L.$onCaptureMouseMove=A,L.releaseMouse=p.capture(this.editor.container,A,k);var E=setInterval(x,20)},o.prototype.cancelContextMenu=function(){var u=(function(g){g&&g.domEvent&&g.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),g&&g.domEvent&&p.stopEvent(g.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:v.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("../lib/dom"),v=function(){function w(h){h.on("click",function(f){var s=f.getDocumentPosition(),l=h.session,a=l.getFoldAt(s.row,s.column,1);a&&(f.getAccelKey()?l.removeFold(a):l.expandFold(a),f.stop());var c=f.domEvent&&f.domEvent.target;c&&p.hasCssClass(c,"ace_inline_button")&&p.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var l=f.getDocumentPosition().row,a=h.session;a.foldWidgets&&a.foldWidgets[l]&&h.session.onFoldWidgetClick(l,f),h.isFocused()||h.focus(),f.stop()}}),h.on("gutterdblclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var l=f.getDocumentPosition().row,a=h.session,c=a.getParentFoldRangeData(l,!0),o=c.range||c.firstRange;if(o){l=o.start.row;var u=a.getFoldAt(l,a.getLine(l).length,1);u?a.removeFold(u):(a.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}f.stop()}})}return w}();i.FoldHandler=v}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,i,m){var p=e("../lib/keys"),v=e("../lib/event"),w=function(){function h(f){this.$editor=f,this.$data={editor:f},this.$handlers=[],this.setDefaultHandler(f.commands)}return h.prototype.setDefaultHandler=function(f){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=f,this.addKeyboardHandler(f,0)},h.prototype.setKeyboardHandler=function(f){var s=this.$handlers;if(s[s.length-1]!=f){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(f,1)}},h.prototype.addKeyboardHandler=function(f,s){if(f){typeof f=="function"&&!f.handleKeyboard&&(f.handleKeyboard=f);var l=this.$handlers.indexOf(f);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(f):this.$handlers.splice(s,0,f),l==-1&&f.attach&&f.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(f){var s=this.$handlers.indexOf(f);return s==-1?!1:(this.$handlers.splice(s,1),f.detach&&f.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var f=this.$data,s=f.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,f)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(f,s,l,a){for(var c,o=!1,u=this.$editor.commands,g=this.$handlers.length;g--&&(c=this.$handlers[g].handleKeyboard(this.$data,f,s,l,a),!(!(!c||!c.command)&&(c.command=="null"?o=!0:o=u.exec(c.command,this.$editor,c.args,a),o&&a&&f!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&v.stopEvent(a),o))););return!o&&f==-1&&(c={command:"insertstring"},o=u.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),o},h.prototype.onCommandKey=function(f,s,l){var a=p.keyCodeToString(l);return this.$callKeyboardHandlers(s,a,l,f)},h.prototype.onTextInput=function(f){return this.$callKeyboardHandlers(-1,f)},h}();i.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,i,m){var p=0,v=0,w=!1,h=!1,f=!1,s=[[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]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],a=0,c=1,o=0,u=1,g=2,y=3,b=4,L=5,A=6,k=7,x=8,T=9,E=10,I=11,M=12,N=13,$=14,_=15,S=16,R=17,O=18,F=[O,O,O,O,O,O,O,O,O,A,L,A,x,L,O,O,O,O,O,O,O,O,O,O,O,O,O,O,L,L,L,A,x,b,b,I,I,I,b,b,b,b,b,E,T,E,T,T,g,g,g,g,g,g,g,g,g,g,T,b,b,b,b,b,b,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,b,b,b,b,b,b,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,b,b,b,b,O,O,O,O,O,O,L,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,b,I,I,I,I,b,b,b,b,o,b,b,O,b,b,I,I,g,g,b,o,b,b,b,g,o,b,b,b,b,b],z=[x,x,x,x,x,x,x,x,x,x,x,O,O,O,o,u,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x,L,N,$,_,S,R,T,I,I,I,I,I,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,T,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x];function j(G,Q,ie,X){var ae=p?l:s,me=null,ye=null,fe=null,$e=0,ot=null,zt=null,ht=-1,ft=null,cn=null,Dt=[];if(!X)for(ft=0,X=[];ft<ie;ft++)X[ft]=J(G[ft]);for(v=p,w=!1,h=!1,f=!1,cn=0;cn<ie;cn++){if(me=$e,Dt[cn]=ye=q(G,X,Dt,cn),$e=ae[me][ye],ot=$e&240,$e&=15,Q[cn]=fe=ae[$e][5],ot>0)if(ot==16){for(ft=ht;ft<cn;ft++)Q[ft]=1;ht=-1}else ht=-1;if(zt=ae[$e][6],zt)ht==-1&&(ht=cn);else if(ht>-1){for(ft=ht;ft<cn;ft++)Q[ft]=fe;ht=-1}X[cn]==L&&(Q[cn]=0),v|=fe}if(f){for(ft=0;ft<ie;ft++)if(X[ft]==A){Q[ft]=p;for(var Qt=ft-1;Qt>=0&&X[Qt]==x;Qt--)Q[Qt]=p}}}function V(G,Q,ie){if(!(v<G)){if(G==1&&p==c&&!h){ie.reverse();return}for(var X=ie.length,ae=0,me,ye,fe,$e;ae<X;){if(Q[ae]>=G){for(me=ae+1;me<X&&Q[me]>=G;)me++;for(ye=ae,fe=me-1;ye<fe;ye++,fe--)$e=ie[ye],ie[ye]=ie[fe],ie[fe]=$e;ae=me}ae++}}}function q(G,Q,ie,X){var ae=Q[X],me,ye,fe,$e;switch(ae){case o:case u:w=!1;case b:case y:return ae;case g:return w?y:g;case k:return w=!0,u;case x:return b;case T:return X<1||X+1>=Q.length||(me=ie[X-1])!=g&&me!=y||(ye=Q[X+1])!=g&&ye!=y?b:(w&&(ye=y),ye==me?ye:b);case E:return me=X>0?ie[X-1]:L,me==g&&X+1<Q.length&&Q[X+1]==g?g:b;case I:if(X>0&&ie[X-1]==g)return g;if(w)return b;for($e=X+1,fe=Q.length;$e<fe&&Q[$e]==I;)$e++;return $e<fe&&Q[$e]==g?g:b;case M:for(fe=Q.length,$e=X+1;$e<fe&&Q[$e]==M;)$e++;if($e<fe){var ot=G[X],zt=ot>=1425&&ot<=2303||ot==64286;if(me=Q[$e],zt&&(me==u||me==k))return u}return X<1||(me=Q[X-1])==L?b:ie[X-1];case L:return w=!1,h=!0,p;case A:return f=!0,b;case N:case $:case S:case R:case _:w=!1;case O:return b}}function J(G){var Q=G.charCodeAt(0),ie=Q>>8;return ie==0?Q>191?o:F[Q]:ie==5?/[\u0591-\u05f4]/.test(G)?u:o:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?M:/[\u0660-\u0669\u066b-\u066c]/.test(G)?y:Q==1642?I:/[\u06f0-\u06f9]/.test(G)?g:k:ie==32&&Q<=8287?z[Q&255]:ie==254&&Q>=65136?k:b}i.L=o,i.R=u,i.EN=g,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(G,Q,ie){if(G.length<2)return{};var X=G.split(""),ae=new Array(X.length),me=new Array(X.length),ye=[];p=ie?c:a,j(X,ye,X.length,Q);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,ye,ae),V(1,ye,ae);for(var fe=0;fe<ae.length-1;fe++)Q[fe]===y?ye[fe]=i.AN:ye[fe]===u&&(Q[fe]>k&&Q[fe]<N||Q[fe]===b||Q[fe]===O)?ye[fe]=i.ON_R:fe>0&&X[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(X[fe])&&(ye[fe-1]=ye[fe]=i.R_H,fe++);X[X.length-1]===i.DOT&&(ye[X.length-1]=i.B),X[0]==="‫"&&(ye[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)me[fe]=ye[ae[fe]];return{logicalFromVisual:ae,bidiLevels:me}},i.hasBidiCharacters=function(G,Q){for(var ie=!1,X=0;X<G.length;X++)Q[X]=J(G.charAt(X)),!ie&&(Q[X]==u||Q[X]==k||Q[X]==y)&&(ie=!0);return ie},i.getVisualFromLogicalIdx=function(G,Q){for(var ie=0;ie<Q.logicalFromVisual.length;ie++)if(Q.logicalFromVisual[ie]==G)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,i,m){var p=e("./lib/bidiutil"),v=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function f(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,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=w.test(s.getValue())}return f.prototype.isBidiRow=function(s,l,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},f.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
179
+ `))&&(this.seenBidi=!0,this.currentRow=null)},f.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var a=this.session.$getRowCacheIndex(l,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},f.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var a,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(l,this.currentRow-s-1),a===c);)c=a,s++;else s=this.currentRow;return s},f.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,c=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(l===void 0&&(l=this.getSplitIndex()),l>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=l<o.length?this.line.substring(o[l-1],o[l]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[l]),l==o.length&&(this.line+=this.showInvisibles?c:p.DOT))}else this.line+=this.showInvisibles?c:p.DOT;var u=this.session,g=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,L){return b===" "||u.isFullWidth(b.charCodeAt(0))?(y=b===" "?u.getScreenTabSize(L+g):2,g+=y-1,v.stringRepeat(p.DOT,y)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},f.prototype.updateBidiMap=function(){var s=[];p.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},f.prototype.markAsDirty=function(){this.currentRow=null},f.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=l,this.charWidths[p.R]=this.charWidths[p.AN]=a,this.charWidths[p.R_H]=a*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},f.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},f.prototype.setEolChar=function(s){this.EOL=s},f.prototype.setContentWidth=function(s){this.contentWidth=s},f.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},f.prototype.setRtlDirection=function(s,l){for(var a=s.getCursorPosition(),c=s.selection.getSelectionAnchor().row;c<=a.row;c++)!l&&s.session.getLine(c).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(c,0,1):l&&s.session.getLine(c).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:c},s.session.$bidiHandler.RLE)},f.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,a=s>l?this.session.getOverwrite()?s:s-1:l,c=p.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=l&&o[c]%2!==0&&c++;for(var g=0;g<c;g++)u+=this.charWidths[o[g]];return!this.session.getOverwrite()&&s>l&&o[c]%2===0&&(u+=this.charWidths[o[c]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},f.prototype.getSelections=function(s,l){var a=this.bidiMap,c=a.bidiLevels,o,u=[],g=0,y=Math.min(s,l)-this.wrapIndent,b=Math.max(s,l)-this.wrapIndent,L=!1,A=!1,k=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var x,T=0;T<c.length;T++)x=a.logicalFromVisual[T],o=c[T],L=x>=y&&x<b,L&&!A?k=g:!L&&A&&u.push({left:k,width:g-k}),g+=this.charWidths[o],A=L;if(L&&T===c.length&&u.push({left:k,width:g-k}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},f.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var l=0,a=Math.max(a,0),c=0,o=0,u=this.bidiMap.bidiLevels,g=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>c+g/2;){if(c+=g,o===u.length-1){g=0;break}g=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(a<c&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?l=1+(a>c?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&g===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&g!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},f}();i.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,f=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(c){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,a){this.$isEmpty=!1,this.anchor.setPosition(l,a)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,a=this.lead;return l.row>a.row||l.row==a.row&&l.column>a.column},s.prototype.getRange=function(){var l=this.anchor,a=this.lead;return this.$isEmpty?h.fromPoints(a,a):this.isBackwards()?h.fromPoints(a,l):h.fromPoints(l,a)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,a){var c=a?l.end:l.start,o=a?l.start:l.end;this.$setSelection(c.row,c.column,o.row,o.column)},s.prototype.$setSelection=function(l,a,c,o){if(!this.$silent){var u=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,a),this.cursor.setPosition(c,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||g)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),l.call(this)},s.prototype.selectTo=function(l,a){this.$moveSelection(function(){this.moveCursorTo(l,a)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,a){this.clearSelection(),this.moveCursorTo(l,a)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,a){if(typeof a>"u"){var c=l||this.lead;l=c.row,a=c.column}return this.session.getWordRange(l,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),a=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(l,a){var c=typeof l=="number"?l:this.lead.row,o,u=this.session.getFoldLine(c);return u?(c=u.start.row,o=u.end.row):o=c,a===!0?new h(c,0,o,this.session.getLine(o).length):new h(c,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,a,c){var o=l.column,u=l.column+a;return c<0&&(o=l.column-a,u=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,u).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(a.end.row,a.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,a=this.lead.column,c=this.session.documentToScreenRow(l,a),o=this.session.screenToDocumentPosition(c,0),u=this.session.getDisplayLine(l,null,o.row,o.column),g=u.match(/^\s*/);g[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=g[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,a=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==a.column){var c=this.session.getLine(a.row);if(a.column==c.length){var o=c.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,a=this.doc.getLine(l).length;this.moveCursorTo(l,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,a=this.lead.column,c=this.doc.getLine(l),o=c.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(l,a,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=c.substring(a)),a>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(l,a,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var o=this.session.getFoldStringAt(l,a,-1);o==null&&(o=this.doc.getLine(l).substring(0,a));var u=v.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(a-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.$shortWordEndIndex=function(l){var a=0,c,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(l))a=this.session.tokenRe.lastIndex;else{for(;(c=l[a])&&o.test(c);)a++;if(a<1){for(u.lastIndex=0;(c=l[a])&&!u.test(c);)if(u.lastIndex=0,a++,o.test(c))if(a>2){a--;break}else{for(;(c=l[a])&&o.test(c);)a++;if(a>2)break}}}return u.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,a=this.lead.column,c=this.doc.getLine(l),o=c.substring(a),u=this.session.getFoldAt(l,a,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(a==c.length){var g=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<g&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var y=this.$shortWordEndIndex(o);this.moveCursorTo(l,a+y)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(l,a,-1))return this.moveCursorTo(c.start.row,c.start.column);var o=this.session.getLine(l).substring(0,a);if(a===0){do l--,o=this.doc.getLine(l);while(l>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var u=v.stringReverse(o),g=this.$shortWordEndIndex(u);return this.moveCursorTo(l,a-g)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,a){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];l<0?l-=u.rowsAbove||0:l>0&&(l+=u.rowCount-(u.rowsAbove||0))}var g=this.session.screenToDocumentPosition(c.row+l,c.column,o);l!==0&&a===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+a,a===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,a,c){var o=this.session.getFoldAt(l,a,1);o&&(l=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(u.charAt(a))&&u.charAt(a-1)&&(this.lead.row==l&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(l,a),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,a,c){var o=this.session.screenToDocumentPosition(l,a);this.moveCursorTo(o.row,o.column,c)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var a=this.getRange();return l?(l.start.column=a.start.column,l.start.row=a.start.row,l.end.column=a.end.column,l.end.row=a.end.row):l=a,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var a=this.getCursor();try{l(this);var c=this.getCursor();return h.fromPoints(a,c)}catch{return h.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(a){var c=a.clone();return c.isBackwards=a.cursor==a.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var a=l.length;a--;){var c=h.fromPoints(l[a].start,l[a].end);l[a].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(l[a]))return!1;return!0},s}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,p.implement(f.prototype,w),i.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,i,m){var p=e("./lib/report_error").reportError,v=2e3,w=function(){function h(f){this.splitRegex,this.states=f,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],a=[],c=0,o=this.matchMappings[s]={defaultToken:"text"},u="g",g=[],y=0;y<l.length;y++){var b=l[y];if(b.defaultToken&&(o.defaultToken=b.defaultToken),b.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),b.unicode&&u.indexOf("u")===-1&&(u+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var L=b.regex,A=new RegExp("(?:("+L+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||A==1?b.token=b.token[0]:A-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:A-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&(A>1?b.onMatch=this.$applyToken:b.onMatch=b.token),A>1&&(/\\\d/.test(b.regex)?L=b.regex.replace(/\\([0-9]+)/g,function(k,x){return"\\"+(parseInt(x,10)+c+1)}):(A=1,L=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&g.push(b)),o[c]=y,c+=A,a.push(L),b.onMatch||(b.onMatch=null)}}a.length||(o[0]=0,a.push("$")),g.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(f){v=f|0},h.prototype.$applyToken=function(f){var s=this.splitRegex.exec(f).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:f}];for(var a=[],c=0,o=l.length;c<o;c++)s[c]&&(a[a.length]={type:l[c],value:s[c]});return a},h.prototype.$arrayTokens=function(f){if(!f)return[];var s=this.splitRegex.exec(f);if(!s)return"text";for(var l=[],a=this.tokenArray,c=0,o=a.length;c<o;c++)s[c+1]&&(l[l.length]={type:a[c],value:s[c+1]});return l},h.prototype.removeCapturingGroups=function(f){var s=f.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,a){return a?"(?:":l});return s},h.prototype.createSplitterRegexp=function(f,s){if(f.indexOf("(?=")!=-1){var l=0,a=!1,c={};f.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,g,y,b,L){return a?a=b!="]":b?a=!0:y?(l==c.stack&&(c.end=L+1,c.stack=-1),l--):g&&(l++,g.length!=1&&(c.stack=l,c.start=L)),o}),c.end!=null&&/^\)*$/.test(f.substr(c.end))&&(f=f.substring(0,c.start)+f.substr(c.end))}return f.charAt(0)!="^"&&(f="^"+f),f.charAt(f.length-1)!="$"&&(f+="$"),new RegExp(f,(s||"").replace("g",""))},h.prototype.getLineTokens=function(f,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var a=s||"start",c=this.states[a];c||(a="start",c=this.states[a]);var o=this.matchMappings[a],u=this.regExps[a];u.lastIndex=0;for(var g,y=[],b=0,L=0,A={type:null,value:""};g=u.exec(f);){var k=o.defaultToken,x=null,T=g[0],E=u.lastIndex;if(E-T.length>b){var I=f.substring(b,E-T.length);A.type==k?A.value+=I:(A.type&&y.push(A),A={type:k,value:I})}for(var M=0;M<g.length-2;M++)if(g[M+1]!==void 0){x=c[o[M]],x.onMatch?k=x.onMatch(T,a,l,f):k=x.token,x.next&&(typeof x.next=="string"?a=x.next:a=x.next(a,l),c=this.states[a],c||(this.reportError("state doesn't exist",a),a="start",c=this.states[a]),o=this.matchMappings[a],b=E,u=this.regExps[a],u.lastIndex=E),x.consumeLineEnd&&(b=E);break}if(T){if(typeof k=="string")(!x||x.merge!==!1)&&A.type===k?A.value+=T:(A.type&&y.push(A),A={type:k,value:T});else if(k){A.type&&y.push(A),A={type:null,value:""};for(var M=0;M<k.length;M++)y.push(k[M])}}if(b==f.length)break;if(b=E,L++>v){for(L>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:f});b<f.length;)A.type&&y.push(A),A={value:f.substring(b,b+=500),type:"overflow"};a="start",l=[];break}}return A.type&&y.push(A),l.length>1&&l[0]!==a&&l.unshift("#tmp",a),{tokens:y,state:l.length?l:a}},h}();w.prototype.reportError=p,i.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){var p=e("../lib/deep_copy").deepCopy,v;v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(f,s){if(!s){for(var l in f)this.$rules[l]=f[l];return}for(var l in f){for(var a=f[l],c=0;c<a.length;c++){var o=a[c];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+l]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(f,s,l,a,c){var o=typeof f=="function"?new f().getRules():f;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var g in o)a.push(s+g)}if(this.addRules(o,s),l)for(var y=Array.prototype[c?"push":"unshift"],u=0;u<a.length;u++)y.apply(this.$rules[a[u]],p(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(f,s){return(f!="start"||s.length)&&s.unshift(this.nextState,f),this.nextState},h=function(f,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var f=0,s=this.$rules;function l(a){var c=s[a];c.processed=!0;for(var o=0;o<c.length;o++){var u=c[o],g=null;Array.isArray(u)&&(g=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var y=u.next||u.push;if(y&&Array.isArray(y)){var b=u.stateName;b||(b=u.token,typeof b!="string"&&(b=b[0]||""),s[b]&&(b+=f++)),s[b]=y,u.next=b,l(b)}else y=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=w,delete u.push),u.rules)for(var L in u.rules)s[L]?s[L].push&&s[L].push.apply(s[L],u.rules[L]):s[L]=u.rules[L];var A=typeof u=="string"?u:u.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?g=A.map(function(x){return s[x]}):g=s[A]),g){var k=[o,1].concat(g);u.noEscape&&(k=k.filter(function(x){return!x.next})),c.splice.apply(c,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(f,s,l,a){var c=Object.create(null);return this.$keywordList=[],Object.keys(f).forEach(function(o){for(var u=f[o],g=u.split(a||"|"),y=g.length;y--;){var b=g[y];this.$keywordList.push(b),l&&(b=b.toLowerCase()),c[b]=o}},this),f=null,l?function(o){return c[o.toLowerCase()]||s}:function(o){return c[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(v.prototype),i.TextHighlightRules=v}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,i,m){var p;p=function(){this.$behaviours={}},(function(){this.add=function(v,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[v]:this.$behaviours[v]={}}this.$behaviours[v][w]=h},this.addBehaviours=function(v){for(var w in v)for(var h in v[w])this.add(w,h,v[w][h])},this.remove=function(v){this.$behaviours&&this.$behaviours[v]&&delete this.$behaviours[v]},this.inherit=function(v,w){if(typeof v=="function")var h=new v().getBehaviours(w);else var h=v.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(v){if(v){for(var w={},h=0;h<v.length;h++)this.$behaviours[v[h]]&&(w[v[h]]=this.$behaviours[v[h]]);return w}else return this.$behaviours}}).call(p.prototype),i.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,i,m){var p=e("./range").Range,v=function(){function w(h,f,s){this.$session=h,this.$row=f,this.$rowTokens=h.getTokens(f);var l=h.getTokenAt(f,s);this.$tokenIndex=l?l.index:-1}return w.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]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,f=this.$tokenIndex,s=h[f].start;if(s!==void 0)return s;for(s=0;f>0;)f-=1,s+=h[f].value.length;return s},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],f=this.getCurrentTokenColumn();return new p(this.$row,f,this.$row,f+h.value.length)},w}();i.TokenIterator=v}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,i,m){var p=e("../../lib/oop"),v=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,a={},c={'"':'"',"'":"'"},o=function(y){var b=-1;if(y.multiSelect&&(b=y.selection.index,a.rangeCount!=y.multiSelect.rangeCount&&(a={rangeCount:y.multiSelect.rangeCount})),a[b])return l=a[b];l=a[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(y,b,L,A){var k=y.end.row-y.start.row;return{text:L+b+A,selection:[0,y.start.column+1,k,y.end.column+(k?0:1)]}},g;g=function(y){y=y||{},this.add("braces","insertion",function(b,L,A,k,x){var T=A.getCursorPosition(),E=k.doc.getLine(T.row);if(x=="{"){o(A);var I=A.getSelectionRange(),M=k.doc.getTextRange(I),N=k.getTokenAt(T.row,T.column);if(M!==""&&M!=="{"&&A.getWrapBehavioursEnabled())return u(I,M,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var $=[/tag\-(?:open|name)/,/attribute\-name/];return $.some(function(j){return j.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(g.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(g.isSaneInsertion(A,k))return/[\]\}\)]/.test(E[T.column])||A.inMultiSelectMode||y.braces?(g.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(x=="}"){o(A);var _=E.substring(T.column,T.column+1);if(_=="}"){var S=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(S!==null&&g.isAutoInsertedClosing(T,E,x))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(x==`
180
+ `||x==`\r
181
+ `){o(A);var R="";g.isMaybeInsertedClosing(T,E)&&(R=h.stringRepeat("}",l.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var _=E.substring(T.column,T.column+1);if(_==="}"){var O=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(R)var F=this.$getIndent(E);else{g.clearMaybeInsertedClosing();return}var z=F+k.getTabString();return{text:`
182
+ `+z+`
183
+ `+F+R,selection:[1,z.length,1,z.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,L,A,k,x){var T=k.doc.getTextRange(x);if(!x.isMultiLine()&&T=="{"){o(A);var E=k.doc.getLine(x.start.row),I=E.substring(x.end.column,x.end.column+1);if(I=="}")return x.end.column++,x;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,L,A,k,x){if(x=="("){o(A);var T=A.getSelectionRange(),E=k.doc.getTextRange(T);if(E!==""&&A.getWrapBehavioursEnabled())return u(T,E,"(",")");if(g.isSaneInsertion(A,k))return g.recordAutoInsert(A,k,")"),{text:"()",selection:[1,1]}}else if(x==")"){o(A);var I=A.getCursorPosition(),M=k.doc.getLine(I.row),N=M.substring(I.column,I.column+1);if(N==")"){var $=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if($!==null&&g.isAutoInsertedClosing(I,M,x))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,L,A,k,x){var T=k.doc.getTextRange(x);if(!x.isMultiLine()&&T=="("){o(A);var E=k.doc.getLine(x.start.row),I=E.substring(x.start.column+1,x.start.column+2);if(I==")")return x.end.column++,x}}),this.add("brackets","insertion",function(b,L,A,k,x){if(x=="["){o(A);var T=A.getSelectionRange(),E=k.doc.getTextRange(T);if(E!==""&&A.getWrapBehavioursEnabled())return u(T,E,"[","]");if(g.isSaneInsertion(A,k))return g.recordAutoInsert(A,k,"]"),{text:"[]",selection:[1,1]}}else if(x=="]"){o(A);var I=A.getCursorPosition(),M=k.doc.getLine(I.row),N=M.substring(I.column,I.column+1);if(N=="]"){var $=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if($!==null&&g.isAutoInsertedClosing(I,M,x))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,L,A,k,x){var T=k.doc.getTextRange(x);if(!x.isMultiLine()&&T=="["){o(A);var E=k.doc.getLine(x.start.row),I=E.substring(x.start.column+1,x.start.column+2);if(I=="]")return x.end.column++,x}}),this.add("string_dquotes","insertion",function(b,L,A,k,x){var T=k.$mode.$quotes||c;if(x.length==1&&T[x]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(x)!=-1)return;o(A);var E=x,I=A.getSelectionRange(),M=k.doc.getTextRange(I);if(M!==""&&(M.length!=1||!T[M])&&A.getWrapBehavioursEnabled())return u(I,M,E,E);if(!M){var N=A.getCursorPosition(),$=k.doc.getLine(N.row),_=$.substring(N.column-1,N.column),S=$.substring(N.column,N.column+1),R=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&R&&/escape/.test(R.type))return null;var F=R&&/string|escape/.test(R.type),z=!O||/string|escape/.test(O.type),j;if(S==E)j=F!==z,j&&/string\.end/.test(O.type)&&(j=!1);else{if(F&&!z||F&&z)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var J=V.test(S),G=k.$mode.$pairQuotesAfter,Q=G&&G[E]&&G[E].test(_);if(!Q&&q||J||S&&!/[\s;,.})\]\\]/.test(S))return null;var ie=$[N.column-2];if(_==E&&(ie==E||V.test(ie)))return null;j=!0}return{text:j?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,L,A,k,x){var T=k.$mode.$quotes||c,E=k.doc.getTextRange(x);if(!x.isMultiLine()&&T.hasOwnProperty(E)){o(A);var I=k.doc.getLine(x.start.row),M=I.substring(x.start.column+1,x.start.column+2);if(M==E)return x.end.column++,x}}),y.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,L,A,k,x){if(b==="doc-start"&&(x===`
184
+ `||x===`\r
185
+ `)&&A.selection.isEmpty()){var T=A.getCursorPosition();if(T.column===0)return;for(var E=k.doc.getLine(T.row),I=k.doc.getLine(T.row+1),M=k.getTokens(T.row),N=0,$=0;$<M.length;$++){N+=M[$].value.length;var _=M[$];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var S=M[$+1];if(!S||!/\.doc/.test(S.type))return}}var R=T.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&R>F&&R<F+3||O!==-1&&F!==-1&&R>=O&&R<=F||!/\.doc/.test(_.type))return;break}}var z=this.$getIndent(E);if(/\s*\*/.test(I))return/^\s*\*/.test(E)?{text:x+z+"* ",selection:[1,2+z.length,1,2+z.length]}:{text:x+z+" * ",selection:[1,3+z.length,1,3+z.length]};if(/\/\*\*/.test(E.substring(0,T.column)))return{text:x+z+" * "+x+" "+z+"*/",selection:[1,4+z.length,1,4+z.length]}}})},g.isSaneInsertion=function(y,b){var L=y.getCursorPosition(),A=new w(b,L.row,L.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",f)){if(/[)}\]]/.test(y.session.getLine(L.row)[L.column]))return!0;var k=new w(b,L.row,L.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",f))return!1}return A.stepForward(),A.getCurrentTokenRow()!==L.row||this.$matchTokenType(A.getCurrentToken()||"text",s)},g.$matchTokenType=function(y,b){return b.indexOf(y.type||y)>-1},g.recordAutoInsert=function(y,b,L){var A=y.getCursorPosition(),k=b.doc.getLine(A.row);this.isAutoInsertedClosing(A,k,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=A.row,l.autoInsertedLineEnd=L+k.substr(A.column),l.autoInsertedBrackets++},g.recordMaybeInsert=function(y,b,L){var A=y.getCursorPosition(),k=b.doc.getLine(A.row);this.isMaybeInsertedClosing(A,k)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=A.row,l.maybeInsertedLineStart=k.substr(0,A.column)+L,l.maybeInsertedLineEnd=k.substr(A.column),l.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(y,b,L){return l.autoInsertedBrackets>0&&y.row===l.autoInsertedRow&&L===l.autoInsertedLineEnd[0]&&b.substr(y.column)===l.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(y,b){return l.maybeInsertedBrackets>0&&y.row===l.maybeInsertedRow&&b.substr(y.column)===l.maybeInsertedLineEnd&&b.substr(0,y.column)==l.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},p.inherits(g,v),i.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(e,i,m){for(var p=[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],v=0,w=[],h=0;h<p.length;h+=2)w.push(v+=p[h]),p[h+1]&&w.push(45,v+=p[h+1]);i.wordChars=String.fromCharCode.apply(null,w)}),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(e,i,m){var p=e("../config"),v=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,f=e("../unicode"),s=e("../lib/lang"),l=e("../token_iterator").TokenIterator,a=e("../range").Range,c;c=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+f.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+f.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new v(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,g,y){var b=u.doc,L=!0,A=!0,k=1/0,x=u.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(s.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var E=s.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),T=u.getUseSoftTabs();var M=function(j,V){var q=j.match(E);if(q){var J=q[1].length,G=q[0].length;!S(j,J,G)&&q[0][G-1]==" "&&G--,b.removeInLine(V,J,G)}},N=I+" ",$=function(j,V){(!L||/\S/.test(j))&&(S(j,k,k)?b.insertInLine({row:V,column:k},N):b.insertInLine({row:V,column:k},I))},_=function(j,V){return E.test(j)},S=function(j,V,q){for(var J=0;V--&&j.charAt(V)==" ";)J++;if(J%x!=0)return!1;for(var J=0;j.charAt(q++)==" ";)J++;return x>2?J%x!=x-1:J%x==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,R=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),O=new RegExp("(?:"+s.escapeRegExp(R)+")\\s*$"),$=function(Q,ie){_(Q,ie)||(!L||/\S/.test(Q))&&(b.insertInLine({row:ie,column:Q.length},R),b.insertInLine({row:ie,column:k},I))},M=function(Q,ie){var X;(X=Q.match(O))&&b.removeInLine(ie,Q.length-X[0].length,Q.length),(X=Q.match(E))&&b.removeInLine(ie,X[1].length,X[0].length)},_=function(Q,ie){if(E.test(Q))return!0;for(var X=u.getTokens(ie),ae=0;ae<X.length;ae++)if(X[ae].type==="comment")return!0}}function F(j){for(var V=g;V<=y;V++)j(b.getLine(V),V)}var z=1/0;F(function(j,V){var q=j.search(/\S/);q!==-1?(q<k&&(k=q),A&&!_(j,V)&&(A=!1)):z>j.length&&(z=j.length)}),k==1/0&&(k=z,L=!1,A=!1),T&&k%x!=0&&(k=Math.floor(k/x)*x),F(A?M:$)},this.toggleBlockComment=function(o,u,g,y){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var L=new l(u,y.row,y.column),A=L.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),x,T;if(A&&/comment/.test(A.type)){for(var E,I;A&&/comment/.test(A.type);){var M=A.value.indexOf(b.start);if(M!=-1){var N=L.getCurrentTokenRow(),$=L.getCurrentTokenColumn()+M;E=new a(N,$,N,$+b.start.length);break}A=L.stepBackward()}for(var L=new l(u,y.row,y.column),A=L.getCurrentToken();A&&/comment/.test(A.type);){var M=A.value.indexOf(b.end);if(M!=-1){var N=L.getCurrentTokenRow(),$=L.getCurrentTokenColumn()+M;I=new a(N,$,N,$+b.end.length);break}A=L.stepForward()}I&&u.remove(I),E&&(u.remove(E),x=E.start.row,T=-b.start.length)}else T=b.start.length,x=g.start.row,u.insert(g.end,b.end),u.insert(g.start,b.start);k.start.row==x&&(k.start.column+=T),k.end.row==x&&(k.end.column+=T),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,g){return this.$getIndent(u)},this.checkOutdent=function(o,u,g){return!1},this.autoOutdent=function(o,u,g){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var g=o[u],y=g.prototype.$id,b=p.$modes[y];b||(p.$modes[y]=b=new g),p.$modes[u]||(p.$modes[u]=b),this.$embeds.push(u),this.$modes[u]=b}for(var L=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],A=function(T){(function(E){var I=L[T],M=E[I];E[L[T]]=function(){return this.$delegator(I,arguments,M)}})(k)},k=this,u=0;u<L.length;u++)A(u)},this.$delegator=function(o,u,g){var y=u[0]||"start";if(typeof y!="string"){if(Array.isArray(y[2])){var b=y[2][y[2].length-1],L=this.$modes[b];if(L)return L[o].apply(L,[y[1]].concat([].slice.call(u,1)))}y=y[0]||"start"}for(var A=0;A<this.$embeds.length;A++)if(this.$modes[this.$embeds[A]]){var k=y.split(this.$embeds[A]);if(!k[0]&&k[1]){u[0]=k[1];var L=this.$modes[this.$embeds[A]];return L[o].apply(L,u)}}var x=g.apply(this,u);return g?x:void 0},this.transformAction=function(o,u,g,y,b){if(this.$behaviour){var L=this.$behaviour.getBehaviours();for(var A in L)if(L[A][u]){var k=L[A][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,g=[];for(var y in u)for(var b=u[y],L=0,A=b.length;L<A;L++)if(typeof b[L].token=="string")/keyword|support|storage/.test(b[L].token)&&g.push(b[L].regex);else if(typeof b[L].token=="object"){for(var k=0,x=b[L].token.length;k<x;k++)if(/keyword|support|storage/.test(b[L].token[k])){var y=b[L].regex.match(/\(.+?\)/g)[k];g.push(y.substr(1,y.length-2))}}this.completionKeywords=g}return o?g.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,g,y){var b=this.$keywordList||this.$createKeywordList();return b.map(function(L){return{name:L,value:L,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),i.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("./lib/dom"),v=function(){function w(h){this.session=h,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 w.prototype.getRowLength=function(h){var f;return this.lineWidgets?f=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:f=0,!this.$useWrapMode||!this.$wrapData[h]?1+f:this.$wrapData[h].length+1+f},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(f){f&&f.rowCount&&!f.hidden&&(h+=f.rowCount)}),h},w.prototype.$onChangeEditor=function(h){this.attach(h.editor)},w.prototype.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(h){var f=this.editor;if(f){this.editor=null,f.widgetManager=null,f.renderer.off("beforeRender",this.measureWidgets),f.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},w.prototype.updateOnFold=function(h,f){var s=f.lineWidgets;if(!(!s||!h.action)){for(var l=h.data,a=l.start.row,c=l.end.row,o=h.action=="add",u=a+1;u<c;u++)s[u]&&(s[u].hidden=o);s[c]&&(o?s[a]?s[c].hidden=o:s[a]=s[c]:(s[a]==s[c]&&(s[a]=void 0),s[c].hidden=o))}},w.prototype.updateOnChange=function(h){var f=this.session.lineWidgets;if(f){var s=h.start.row,l=h.end.row-s;if(l!==0)if(h.action=="remove"){var a=f.splice(s+1,l);!f[s]&&a[a.length-1]&&(f[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var c=new Array(l);f[s]&&f[s].column!=null&&h.start.column>f[s].column&&s++,c.unshift(s,0),f.splice.apply(f,c),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var f=!0;h.forEach(function(s,l){if(s)for(f=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),f&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[h.row];return f&&(h.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},w.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var f=this.editor.renderer;h.html&&!h.el&&(h.el=p.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=p.createElement("div"),h.el.textContent=h.text),h.el&&(p.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&p.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",f.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/f.layerConfig.lineHeight);var s=this.session.getFoldAt(h.row,0);if(h.$fold=s,s){var l=this.session.lineWidgets;h.row==s.end.row&&!l[s.start.row]?l[s.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,f),this.onWidgetChanged(h),h},w.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var f=this.session.lineWidgets[h.row];if(f==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;f;){if(f.$oldWidget==h){f.$oldWidget=h.$oldWidget;break}f=f.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var f=this.session.lineWidgets,s=f&&f[h],l=[];s;)l.push(s),s=s.$oldWidget;return l},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,f){var s=this.session._changedWidgets,l=f.layerConfig;if(!(!s||!s.length)){for(var a=1/0,c=0;c<s.length;c++){var o=s[c];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,f.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/l.characterWidth));var u=o.h/l.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(h,f){var s=f.layerConfig,l=this.session.lineWidgets;if(l){for(var a=Math.min(this.firstRow,s.firstRow),c=Math.max(this.lastRow,s.lastRow,l.length);a>0&&!l[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,f.$cursorLayer.config=s;for(var o=a;o<=c;o++){var u=l[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,f.container.appendChild(u.el));var g=f.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(g+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=g-s.offset+"px";var y=u.coverGutter?0:f.gutterWidth;u.fixedWidth||(y-=f.scrollLeft),u.el.style.left=y+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=s.width+2*s.padding+"px"),u.fixedWidth?u.el.style.right=f.scrollBar.getWidth()+"px":u.el.style.right=""}}}},w}();i.LineWidgets=v}),ace.define("ace/apply_delta",["require","exports","module"],function(e,i,m){i.applyDelta=function(p,v,w){var h=v.start.row,f=v.start.column,s=p[h]||"";switch(v.action){case"insert":var l=v.lines;if(l.length===1)p[h]=s.substring(0,f)+v.lines[0]+s.substring(f);else{var a=[h,1].concat(v.lines);p.splice.apply(p,a),p[h]=s.substring(0,f)+p[h],p[h+v.lines.length-1]+=s.substring(f)}break;case"remove":var c=v.end.column,o=v.end.row;h===o?p[h]=s.substring(0,f)+s.substring(c):p.splice(h,o-h+1,s.substring(0,f)+p[o].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function s(l,a,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,c)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var a=f(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(l,a,c){var o;if(c?o={row:l,column:a}:o=this.$clipPositionToDocument(l,a),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(l,a){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,a))),a<0&&(c.column=0),c},s}();w.prototype.$insertRight=!1,p.implement(w.prototype,v);function h(s,l,a){var c=a?s.column<=l.column:s.column<l.column;return s.row<l.row||s.row==l.row&&c}function f(s,l,a){var c=s.action=="insert",o=(c?1:-1)*(s.end.row-s.start.row),u=(c?1:-1)*(s.end.column-s.start.column),g=s.start,y=c?g:s.end;return h(l,g,a)?{row:l.row,column:l.column}:h(y,l,!a)?{row:l.row+o,column:l.column+(l.row==y.row?u:0)}:{row:g.row,column:g.column}}i.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,i,m){var p=e("./lib/oop"),v=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,f=e("./anchor").Anchor,s=function(){function l(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return l.prototype.setValue=function(a){var c=this.getLength()-1;this.remove(new h(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},a||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(a,c){return new f(this,a,c)},l.prototype.$detectNewLine=function(a){var c=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
186
+ `,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
187
+ `;case"unix":return`
188
+ `;default:return this.$autoNewLine||`
189
+ `}},l.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(a){return a==`\r
190
+ `||a=="\r"||a==`
191
+ `},l.prototype.getLine=function(a){return this.$lines[a]||""},l.prototype.getLines=function(a,c){return this.$lines.slice(a,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(a){var c;if(a.start.row===a.end.row)c=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{c=this.getLines(a.start.row,a.end.row),c[0]=(c[0]||"").substring(a.start.column);var o=c.length-1;a.end.row-a.start.row==o&&(c[o]=c[o].substring(0,a.end.column))}return c},l.prototype.insertLines=function(a,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,c)},l.prototype.removeLines=function(a,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,c)},l.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},l.prototype.insert=function(a,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(a,this.$split(c))},l.prototype.insertInLine=function(a,c){var o=this.clippedPos(a.row,a.column),u=this.pos(a.row,a.column+c.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[c]},!0),this.clonePos(u)},l.prototype.clippedPos=function(a,c){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,c=void 0);var u=this.getLine(a);return c==null&&(c=u.length),c=Math.min(Math.max(c,0),u.length),{row:a,column:c}},l.prototype.clonePos=function(a){return{row:a.row,column:a.column}},l.prototype.pos=function(a,c){return{row:a,column:c}},l.prototype.$clipPosition=function(a){var c=this.getLength();return a.row>=c?(a.row=Math.max(0,c-1),a.column=this.getLine(c-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},l.prototype.insertFullLines=function(a,c){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(c=c.concat([""]),o=0):(c=[""].concat(c),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},c)},l.prototype.insertMergedLines=function(a,c){var o=this.clippedPos(a.row,a.column),u={row:o.row+c.length-1,column:(c.length==1?o.column:0)+c[c.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:c}),this.clonePos(u)},l.prototype.remove=function(a){var c=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:c,end:o,action:"remove",lines:this.getLinesForRange({start:c,end:o})}),this.clonePos(c)},l.prototype.removeInLine=function(a,c,o){var u=this.clippedPos(a,c),g=this.clippedPos(a,o);return this.applyDelta({start:u,end:g,action:"remove",lines:this.getLinesForRange({start:u,end:g})},!0),this.clonePos(u)},l.prototype.removeFullLines=function(a,c){a=Math.min(Math.max(0,a),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var o=c==this.getLength()-1&&a>0,u=c<this.getLength()-1,g=o?a-1:a,y=o?this.getLine(g).length:0,b=u?c+1:c,L=u?0:this.getLine(b).length,A=new h(g,y,b,L),k=this.$lines.slice(a,c+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),k},l.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(a,c){if(a instanceof h||(a=h.fromPoints(a.start,a.end)),c.length===0&&a.isEmpty())return a.start;if(c==this.getTextRange(a))return a.end;this.remove(a);var o;return c?o=this.insert(a.start,c):o=a.start,o},l.prototype.applyDeltas=function(a){for(var c=0;c<a.length;c++)this.applyDelta(a[c])},l.prototype.revertDeltas=function(a){for(var c=a.length-1;c>=0;c--)this.revertDelta(a[c])},l.prototype.applyDelta=function(a,c){var o=a.action=="insert";(o?a.lines.length<=1&&!a.lines[0]:!h.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(v(this.$lines,a,c),this._signal("change",a)))},l.prototype.$safeApplyDelta=function(a){var c=this.$lines.length;(a.action=="remove"&&a.start.row<c&&a.end.row<c||a.action=="insert"&&a.start.row<=c)&&this.applyDelta(a)},l.prototype.$splitAndapplyLargeDelta=function(a,c){for(var o=a.lines,u=o.length-c+1,g=a.start.row,y=a.start.column,b=0,L=0;b<u;b=L){L+=c-1;var A=o.slice(b,L);A.push(""),this.applyDelta({start:this.pos(g+b,y),end:this.pos(g+L,y=0),action:a.action,lines:A},!0)}a.lines=o.slice(b),a.start.row=g+b,a.start.column=y,this.applyDelta(a,!0)},l.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},l.prototype.indexToPosition=function(a,c){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,g=c||0,y=o.length;g<y;g++)if(a-=o[g].length+u,a<0)return{row:g,column:a+o[g].length+u};return{row:y-1,column:a+o[y-1].length+u}},l.prototype.positionToIndex=function(a,c){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,g=0,y=Math.min(a.row,o.length),b=c||0;b<y;++b)g+=o[b].length+u;return g+a.column},l.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},l}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",p.implement(s.prototype,w),i.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var p=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function h(f,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=f;var l=this;this.$worker=function(){if(l.running){for(var a=new Date,c=l.currentLine,o=-1,u=l.doc,g=c;l.lines[c];)c++;var y=u.getLength(),b=0;for(l.running=!1;c<y;){l.$tokenizeRow(c),o=c;do c++;while(l.lines[c]);if(b++,b%5===0&&new Date-a>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,o==-1&&(o=c),g<=o&&l.fireUpdateEvent(g,o)}}}return h.prototype.setTokenizer=function(f){this.tokenizer=f,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(f){this.doc=f,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(f,s){var l={first:f,last:s};this._signal("update",{data:l})},h.prototype.start=function(f){this.currentLine=Math.min(f||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)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(f){var s=f.start.row,l=f.end.row-s;if(l===0)this.lines[s]=null;else if(f.action=="remove")this.lines.splice(s,l+1,null),this.states.splice(s,l+1,null);else{var a=Array(l+1);a.unshift(s,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(f){return this.lines[f]||this.$tokenizeRow(f)},h.prototype.getState=function(f){return this.currentLine==f&&this.$tokenizeRow(f),this.states[f]||"start"},h.prototype.$tokenizeRow=function(f){var s=this.doc.getLine(f),l=this.states[f-1],a=this.tokenizer.getLineTokens(s,l,f);return this.states[f]+""!=a.state+""?(this.states[f]=a.state,this.lines[f+1]=null,this.currentLine>f+1&&(this.currentLine=f+1)):this.currentLine==f&&(this.currentLine=f+1),this.lines[f]=a.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();p.implement(w.prototype,v),i.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,i,m){var p=e("./lib/lang"),v=e("./range").Range,w=function(){function h(f,s,l){l===void 0&&(l="text"),this.setRegexp(f),this.clazz=s,this.type=l}return h.prototype.setRegexp=function(f){this.regExp+""!=f+""&&(this.regExp=f,this.cache=[])},h.prototype.update=function(f,s,l,a){if(this.regExp)for(var c=a.firstRow,o=a.lastRow,u={},g=c;g<=o;g++){var y=this.cache[g];y==null&&(y=p.getMatchOffsets(l.getLine(g),this.regExp),y.length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(k){return new v(g,k.offset,g,k.offset+k.length)}),this.cache[g]=y.length?y:"");for(var b=y.length;b--;){var L=y[b].toScreenRange(l),A=L.toString();u[A]||(u[A]=!0,s.drawSingleLineMarker(f,L,this.clazz,a))}}},h}();w.prototype.MAX_RANGES=500,i.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,i,m){var p=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(x){this.$session=x},k.prototype.add=function(x,T,E){if(!this.$fromUndo&&x!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),x.id=this.$rev=++this.$maxRev}(x.action=="remove"||x.action=="insert")&&(this.$lastDelta=x),this.lastDeltas.push(x)}},k.prototype.addSelection=function(x,T){this.selections.push({value:x,rev:T||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(x,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,I=E.length;I--;){var M=E[I][0];if(M.id<=x)break;M.id<T&&(M.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(x,T){for(var E=this.selections,I=E.length;I--;){var M=E[I];if(M.rev<x)return T&&(M=E[I+1]),M}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(x,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,I=null,M=0,N=E.length;N--;){var $=E[N][0];if($.id<T&&!I&&(I=N+1),$.id<=x){M=N+1;break}}return E.slice(M,I)},k.prototype.getChangedRanges=function(x,T){T==null&&(T=this.$rev+1)},k.prototype.getChangedLines=function(x,T){T==null&&(T=this.$rev+1)},k.prototype.undo=function(x,T){this.lastDeltas=null;var E=this.$undoStack;if(v(E,E.length)){x||(x=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=E.pop(),M=null;return I&&(M=x.undoChanges(I,T),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,M}},k.prototype.redo=function(x,T){if(this.lastDeltas=null,x||(x=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);A(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),M=null;return I&&(M=x.redoChanges(I,T),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,M},k.prototype.$syncRev=function(){var x=this.$undoStack,T=x[x.length-1],E=T&&T[0].id||0;this.$redoStackBaseRev=E,this.$rev=E},k.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=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(x){x==null&&(x=this.$rev),this.mark=x},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(x){this.reset(),this.$undoStack=x.$undoStack,this.$redoStack=x.$redoStack},k.prototype.$prettyPrint=function(x){return x?l(x):l(this.$undoStack)+`
192
+ ---
193
+ `+l(this.$redoStack)},k}();p.prototype.hasUndo=p.prototype.canUndo,p.prototype.hasRedo=p.prototype.canRedo,p.prototype.isClean=p.prototype.isAtBookmark,p.prototype.markClean=p.prototype.bookmark;function v(k,x){for(var T=x;T--;){var E=k[T];if(E&&!E[0].ignore){for(;T<x-1;){var I=o(k[T],k[T+1]);k[T]=I[0],k[T+1]=I[1],T++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function f(k){return{row:k.row,column:k.column}}function s(k){return{start:f(k.start),end:f(k.end),action:k.action,lines:k.lines.slice()}}function l(k){if(k=k||this,Array.isArray(k))return k.map(l).join(`
194
+ `);var x="";return k.action?(x=k.action=="insert"?"+":"-",x+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?x=k.value.map(a).join(`
195
+ `):x=a(k.value)),k.start&&(x+=a(k)),(k.id||k.rev)&&(x+=" ("+(k.id||k.rev)+")"),x}function a(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function c(k,x){var T=k.action=="insert",E=x.action=="insert";if(T&&E)if(h(x.start,k.end)>=0)g(x,k,-1);else if(h(x.start,k.start)<=0)g(k,x,1);else return null;else if(T&&!E)if(h(x.start,k.end)>=0)g(x,k,-1);else if(h(x.end,k.start)<=0)g(k,x,-1);else return null;else if(!T&&E)if(h(x.start,k.start)>=0)g(x,k,1);else if(h(x.start,k.start)<=0)g(k,x,1);else return null;else if(!T&&!E)if(h(x.start,k.start)>=0)g(x,k,1);else if(h(x.end,k.start)<=0)g(k,x,-1);else return null;return[x,k]}function o(k,x){for(var T=k.length;T--;)for(var E=0;E<x.length;E++)if(!c(k[T],x[E])){for(;T<k.length;){for(;E--;)c(x[E],k[T]);E=x.length,T++}return[k,x]}return k.selectionBefore=x.selectionBefore=k.selectionAfter=x.selectionAfter=null,[x,k]}function u(k,x){var T=k.action=="insert",E=x.action=="insert";if(T&&E)h(k.start,x.start)<0?g(x,k,1):g(k,x,1);else if(T&&!E)h(k.start,x.end)>=0?g(k,x,-1):(h(k.start,x.start)<=0||g(k,w.fromPoints(x.start,k.start),-1),g(x,k,1));else if(!T&&E)h(x.start,k.end)>=0?g(x,k,-1):(h(x.start,k.start)<=0||g(x,w.fromPoints(k.start,x.start),-1),g(k,x,1));else if(!T&&!E)if(h(x.start,k.end)>=0)g(x,k,-1);else if(h(x.end,k.start)<=0)g(k,x,-1);else{var I,M;return h(k.start,x.start)<0&&(I=k,k=b(k,x.start)),h(k.end,x.end)>0&&(M=b(k,x.end)),y(x.end,k.start,k.end,-1),M&&!I&&(k.lines=M.lines,k.start=M.start,k.end=M.end,M=k),[x,I,M].filter(Boolean)}return[x,k]}function g(k,x,T){y(k.start,x.start,x.end,T),y(k.end,x.start,x.end,T)}function y(k,x,T,E){k.row==(E==1?x:T).row&&(k.column+=E*(T.column-x.column)),k.row+=E*(T.row-x.row)}function b(k,x){var T=k.lines,E=k.end;k.end=f(x);var I=k.end.row-k.start.row,M=T.splice(I,T.length),N=I?x.column:x.column-k.start.column;T.push(M[0].substring(0,N)),M[0]=M[0].substr(N);var $={start:f(x),end:E,lines:M,action:k.action};return $}function L(k,x){x=s(x);for(var T=k.length;T--;){for(var E=k[T],I=0;I<E.length;I++){var M=E[I],N=u(M,x);x=N[0],N.length!=2&&(N[2]?(E.splice(I+1,1,N[1],N[2]),I++):N[1]||(E.splice(I,1),I--))}E.length||k.splice(T,1)}return k}function A(k,x){for(var T=0;T<x.length;T++)for(var E=x[T],I=0;I<E.length;I++)L(k,E[I])}i.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){function w(h,f){this.foldData=h,Array.isArray(f)?this.folds=f:f=this.folds=[f];var s=f[f.length-1];this.range=new p(f[0].start.row,f[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return w.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(f){f.start.row+=h,f.end.row+=h})},w.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(f,s){return-f.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(h.start.row,h.start.column)>0?(this.end.row=h.end.row,this.end.column=h.end.column):this.range.compareStart(h.end.row,h.end.column)<0&&(this.start.row=h.start.row,this.start.column=h.start.column)}else if(h.start.row==this.end.row)this.folds.push(h),this.end.row=h.end.row,this.end.column=h.end.column;else if(h.end.row==this.start.row)this.folds.unshift(h),this.start.row=h.start.row,this.start.column=h.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");h.foldLine=this},w.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},w.prototype.walk=function(h,f,s){var l=0,a=this.folds,c,o,u,g=!0;f==null&&(f=this.end.row,s=this.end.column);for(var y=0;y<a.length;y++){if(c=a[y],o=c.range.compareStart(f,s),o==-1){h(null,f,s,l,g);return}if(u=h(null,c.start.row,c.start.column,l,g),u=!u&&h(c.placeholder,c.start.row,c.start.column,l),u||o===0)return;g=!c.sameRow,l=c.end.column}h(null,f,s,l,g)},w.prototype.getNextFoldTo=function(h,f){for(var s,l,a=0;a<this.folds.length;a++){if(s=this.folds[a],l=s.range.compareEnd(h,f),l==-1)return{fold:s,kind:"after"};if(l===0)return{fold:s,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,f,s){var l=this.getNextFoldTo(h,f),a,c;if(l){if(a=l.fold,l.kind=="inside"&&a.start.column!=f&&a.start.row!=h)window.console&&window.console.log(h,f,a);else if(a.start.row==h){c=this.folds;var o=c.indexOf(a);for(o===0&&(this.start.column+=s),o;o<c.length;o++){if(a=c[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},w.prototype.split=function(h,f){var s=this.getNextFoldTo(h,f);if(!s||s.kind=="inside")return null;var l=s.fold,a=this.folds,c=this.foldData,o=a.indexOf(l),u=a[o-1];this.end.row=u.end.row,this.end.column=u.end.column,a=a.splice(o,a.length-o);var g=new w(c,a);return c.splice(c.indexOf(this)+1,0,g),g},w.prototype.merge=function(h){for(var f=h.folds,s=0;s<f.length;s++)this.addFold(f[s]);var l=this.foldData;l.splice(l.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(f){h.push(" "+f.toString())}),h.push("]"),h.join(`
196
+ `)},w.prototype.idxToPosition=function(h){for(var f=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(h-=l.start.column-f,h<0)return{row:l.start.row,column:l.start.column+h};if(h-=l.placeholder.length,h<0)return l.start;f=l.end.column}return{row:this.end.row,column:this.end.column+h}},w}();i.FoldLine=v}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,i,m){var p=e("./range").Range,v=p.comparePoints,w=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(f,s,l){for(var a=this.ranges,c=l||0;c<a.length;c++){var o=a[c],u=v(f,o.end);if(!(u>0)){var g=v(f,o.start);return u===0?s&&g!==0?-c-2:c:g>0||g===0&&!s?c:-c-1}}return-c-1},h.prototype.add=function(f){var s=!f.isEmpty(),l=this.pointIndex(f.start,s);l<0&&(l=-l-1);var a=this.pointIndex(f.end,s,l);return a<0?a=-a-1:a++,this.ranges.splice(l,a-l,f)},h.prototype.addList=function(f){for(var s=[],l=f.length;l--;)s.push.apply(s,this.add(f[l]));return s},h.prototype.substractPoint=function(f){var s=this.pointIndex(f);if(s>=0)return this.ranges.splice(s,1)},h.prototype.merge=function(){var f=[],s=this.ranges;s=s.sort(function(u,g){return v(u.start,g.start)});for(var l=s[0],a,c=1;c<s.length;c++){a=l,l=s[c];var o=v(a.end,l.start);o<0||o==0&&!a.isEmpty()&&!l.isEmpty()||(v(a.end,l.end)<0&&(a.end.row=l.end.row,a.end.column=l.end.column),s.splice(c,1),f.push(l),l=a,c--)}return this.ranges=s,f},h.prototype.contains=function(f,s){return this.pointIndex({row:f,column:s})>=0},h.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},h.prototype.rangeAtPoint=function(f){var s=this.pointIndex(f);if(s>=0)return this.ranges[s]},h.prototype.clipRows=function(f,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<f)return[];var a=this.pointIndex({row:f,column:0});a<0&&(a=-a-1);var c=this.pointIndex({row:s,column:0},a);c<0&&(c=-c-1);for(var o=[],u=a;u<c;u++)o.push(l[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(f){this.session&&this.detach(),this.session=f,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(f){for(var s=f.start,l=f.end,a=s.row,c=l.row,o=this.ranges,u=0,g=o.length;u<g;u++){var y=o[u];if(y.end.row>=a)break}if(f.action=="insert")for(var b=c-a,L=-s.column+l.column;u<g;u++){var y=o[u];if(y.start.row>a)break;if(y.start.row==a&&y.start.column>=s.column&&(y.start.column==s.column&&this.$bias<=0||(y.start.column+=L,y.start.row+=b)),y.end.row==a&&y.end.column>=s.column){if(y.end.column==s.column&&this.$bias<0)continue;y.end.column==s.column&&L>0&&u<g-1&&y.end.column>y.start.column&&y.end.column==o[u+1].start.column&&(y.end.column-=L),y.end.column+=L,y.end.row+=b}}else for(var b=a-c,L=s.column-l.column;u<g;u++){var y=o[u];if(y.start.row>c)break;y.end.row<c&&(a<y.end.row||a==y.end.row&&s.column<y.end.column)?(y.end.row=a,y.end.column=s.column):y.end.row==c?y.end.column<=l.column?(b||y.end.column>s.column)&&(y.end.column=s.column,y.end.row=s.row):(y.end.column+=L,y.end.row+=b):y.end.row>c&&(y.end.row+=b),y.start.row<c&&(a<y.start.row||a==y.start.row&&s.column<y.start.column)?(y.start.row=a,y.start.column=s.column):y.start.row==c?y.start.column<=l.column?(b||y.start.column>s.column)&&(y.start.column=s.column,y.start.row=s.row):(y.start.column+=L,y.start.row+=b):y.start.row>c&&(y.start.row+=b)}if(b!=0&&u<g)for(;u<g;u++){var y=o[u];y.start.row+=b,y.end.row+=b}},h}();w.prototype.comparePoints=v,i.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,i,m){var p=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(u[y]=g[y])},a(c,o)};return function(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(c,o);function u(){this.constructor=c}c.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),v=e("../range_list").RangeList,w=function(a){p(c,a);function c(o,u){var g=a.call(this)||this;return g.foldLine=null,g.placeholder=u,g.range=o,g.start=o.start,g.end=o.end,g.sameRow=o.start.row==o.end.row,g.subFolds=g.ranges=[],g}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},c.prototype.clone=function(){var o=this.range.clone(),u=new c(o,this.placeholder);return this.subFolds.forEach(function(g){u.subFolds.push(g.clone())}),u.collapseChildren=this.collapseChildren,u},c.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){f(o,this.start);for(var u=o.start.row,g=o.start.column,y=0,b=-1;y<this.subFolds.length&&(b=this.subFolds[y].range.compare(u,g),b==1);y++);var L=this.subFolds[y],A=0;if(b==0){if(L.range.containsRange(o))return L.addSubFold(o);A=1}for(var u=o.range.end.row,g=o.range.end.column,k=y,b=-1;k<this.subFolds.length&&(b=this.subFolds[k].range.compare(u,g),b==1);k++);b==0&&k++;for(var x=this.subFolds.splice(y,k-y,o),T=b==0?x.length-1:x.length,E=A;E<T;E++)o.addSubFold(x[E]);return o.setFoldLine(this.foldLine),o}},c.prototype.restoreRange=function(o){return l(o,this.start)},c}(v);function h(a,c){a.row-=c.row,a.row==0&&(a.column-=c.column)}function f(a,c){h(a.start,c),h(a.end,c)}function s(a,c){a.row==0&&(a.column+=c.column),a.row+=c.row}function l(a,c){s(a.start,c),s(a.end,c)}i.Fold=w}),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(e,i,m){var p=e("../range").Range,v=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,f=e("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(l,a,c){var o=this.getFoldLine(l);if(!o)return null;for(var u=o.folds,g=0;g<u.length;g++){var y=u[g].range;if(y.contains(l,a)){if(c==1&&y.isEnd(l,a)&&!y.isEmpty()||c==-1&&y.isStart(l,a)&&!y.isEmpty())continue;return u[g]}}},this.getFoldsInRange=function(l){var a=l.start,c=l.end,o=this.$foldData,u=[];a.column+=1,c.column-=1;for(var g=0;g<o.length;g++){var y=o[g].range.compareRange(l);if(y!=2){if(y==-2)break;for(var b=o[g].folds,L=0;L<b.length;L++){var A=b[L];if(y=A.range.compareRange(l),y==-2)break;if(y!=2){if(y==42)break;u.push(A)}}}}return a.column-=1,c.column+=1,u},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var a=[];l.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(l);return a},this.getAllFolds=function(){for(var l=[],a=this.$foldData,c=0;c<a.length;c++)for(var o=0;o<a[c].folds.length;o++)l.push(a[c].folds[o]);return l},this.getFoldStringAt=function(l,a,c,o){if(o=o||this.getFoldLine(l),!o)return null;for(var u={end:{column:0}},g,y,b=0;b<o.folds.length;b++){y=o.folds[b];var L=y.range.compareEnd(l,a);if(L==-1){g=this.getLine(y.start.row).substring(u.end.column,y.start.column);break}else if(L===0)return null;u=y}return g||(g=this.getLine(y.start.row).substring(u.end.column)),c==-1?g.substring(0,a-u.end.column):c==1?g.substring(a-u.end.column):g},this.getFoldLine=function(l,a){var c=this.$foldData,o=0;for(a&&(o=c.indexOf(a)),o==-1&&(o=0),o;o<c.length;o++){var u=c[o];if(u.start.row<=l&&u.end.row>=l)return u;if(u.end.row>l)return null}return null},this.getNextFoldLine=function(l,a){var c=this.$foldData,o=0;for(a&&(o=c.indexOf(a)),o==-1&&(o=0),o;o<c.length;o++){var u=c[o];if(u.end.row>=l)return u}return null},this.getFoldedRowCount=function(l,a){for(var c=this.$foldData,o=a-l+1,u=0;u<c.length;u++){var g=c[u],y=g.end.row,b=g.start.row;if(y>=a){b<a&&(b>=l?o-=a-b:o=0);break}else y>=l&&(b>=l?o-=y-b:o-=y-l+1)}return o},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(a,c){return a.start.row-c.start.row}),l},this.addFold=function(l,a){var c=this.$foldData,o=!1,u;l instanceof w?u=l:(u=new w(a,l),u.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(u.range);var g=u.start.row,y=u.start.column,b=u.end.row,L=u.end.column,A=this.getFoldAt(g,y,1),k=this.getFoldAt(b,L,-1);if(A&&k==A)return A.addSubFold(u);A&&!A.range.isStart(g,y)&&this.removeFold(A),k&&!k.range.isEnd(b,L)&&this.removeFold(k);var x=this.getFoldsInRange(u.range);x.length>0&&(this.removeFolds(x),u.collapseChildren||x.forEach(function(M){u.addSubFold(M)}));for(var T=0;T<c.length;T++){var E=c[T];if(b==E.start.row){E.addFold(u),o=!0;break}else if(g==E.end.row){if(E.addFold(u),o=!0,!u.sameRow){var I=c[T+1];if(I&&I.start.row==b){E.merge(I);break}}break}else if(b<=E.start.row)break}return o||(E=this.$addFoldLine(new v(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(E.start.row,E.start.row):this.$updateRowLengthCache(E.start.row,E.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(l){l.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(l){var a=l.foldLine,c=a.start.row,o=a.end.row,u=this.$foldData,g=a.folds;if(g.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(l.end.row,l.end.column))g.pop(),a.end.row=g[g.length-1].end.row,a.end.column=g[g.length-1].end.column;else if(a.range.isStart(l.start.row,l.start.column))g.shift(),a.start.row=g[0].start.row,a.start.column=g[0].start.column;else if(l.sameRow)g.splice(g.indexOf(l),1);else{var y=a.split(l.start.row,l.start.column);g=y.folds,g.shift(),y.start.row=g[0].start.row,y.start.column=g[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,o):this.$updateRowLengthCache(c,o)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var a=[],c=0;c<l.length;c++)a.push(l[c]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(a){l.restoreRange(a),this.addFold(a)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(l,a){var c,o;if(l==null)c=new p(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof l=="number")c=new p(l,0,l,this.getLine(l).length);else if("row"in l)c=p.fromPoints(l,l);else{if(Array.isArray(l))return o=[],l.forEach(function(g){o=o.concat(this.unfold(g))},this),o;c=l}o=this.getFoldsInRangeList(c);for(var u=o;o.length==1&&p.comparePoints(o[0].start,c.start)<0&&p.comparePoints(o[0].end,c.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(c);if(a!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(l,a){return!!this.getFoldLine(l,a)},this.getRowFoldEnd=function(l,a){var c=this.getFoldLine(l,a);return c?c.end.row:l},this.getRowFoldStart=function(l,a){var c=this.getFoldLine(l,a);return c?c.start.row:l},this.getFoldDisplayLine=function(l,a,c,o,u){o==null&&(o=l.start.row),u==null&&(u=0),a==null&&(a=l.end.row),c==null&&(c=this.getLine(a).length);var g=this.doc,y="";return l.walk(function(b,L,A,k){if(!(L<o)){if(L==o){if(A<u)return;k=Math.max(u,k)}b!=null?y+=b:y+=g.getLine(L).substring(k,A)}},a,c),y},this.getDisplayLine=function(l,a,c,o){var u=this.getFoldLine(l);if(u)return this.getFoldDisplayLine(u,l,a,c,o);var g;return g=this.doc.getLine(l),g.substring(o||0,a||g.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(a){var c=a.folds.map(function(o){return o.clone()});return new v(l,c)}),l},this.toggleFold=function(l){var a=this.selection,c=a.getRange(),o,u;if(c.isEmpty()){var g=c.start;if(o=this.getFoldAt(g.row,g.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(g))?c.comparePoint(u)==1?c.end=u:(c.start=u,c.start.column++,c.end.column--):(u=this.findMatchingBracket({row:g.row,column:g.column+1}))?(c.comparePoint(u)==1?c.end=u:c.start=u,c.start.column++):c=this.getCommentFoldRange(g.row,g.column)||c}else{var y=this.getFoldsInRange(c);if(l&&y.length){this.expandFolds(y);return}else y.length==1&&(o=y[0])}if(o||(o=this.getFoldAt(c.start.row,c.start.column)),o&&o.range.toString()==c.toString()){this.expandFold(o);return}var b="...";if(!c.isMultiLine()){if(b=this.getTextRange(c),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,c)},this.getCommentFoldRange=function(l,a,c){var o=new h(this,l,a),u=o.getCurrentToken(),g=u&&u.type;if(u&&/^comment|string/.test(g)){g=g.match(/comment|string/)[0],g=="comment"&&(g+="|doc-start|\\.doc");var y=new RegExp(g),b=new p;if(c!=1){do u=o.stepBackward();while(u&&y.test(u.type));u=o.stepForward()}b.start.row=o.getCurrentTokenRow(),b.start.column=o.getCurrentTokenColumn()+u.value.length,o=new h(this,l,a);var L=this.getState(o.$row);if(c!=-1){var A=-1;do if(u=o.stepForward(),A==-1){var k=this.getState(o.$row);L.toString()!==k.toString()&&(A=o.$row)}else if(o.$row>A)break;while(u&&y.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return b.end.row=o.getCurrentTokenRow(),b.end.column=o.getCurrentTokenColumn(),b}},this.foldAll=function(l,a,c,o){c==null&&(c=1e5);var u=this.foldWidgets;if(u){a=a||this.getLength(),l=l||0;for(var g=l;g<a;g++)if(u[g]==null&&(u[g]=this.getFoldWidget(g)),u[g]=="start"&&!(o&&!o(g))){var y=this.getFoldWidgetRange(g);y&&y.isMultiLine()&&y.end.row<=a&&y.start.row>=l&&(g=y.end.row,y.collapseChildren=c,this.addFold("...",y))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(a){for(var c=l.getTokens(a),o=0;o<c.length;o++){var u=c[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,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(l,a){var c=this.foldWidgets;if(!c||a&&c[l])return{};for(var o=l-1,u;o>=0;){var g=c[o];if(g==null&&(g=c[o]=this.getFoldWidget(o)),g=="start"){var y=this.getFoldWidgetRange(o);if(u||(u=y),y&&y.end.row>=l)break}o--}return{range:o!==-1&&y,firstRange:u}},this.onFoldWidgetClick=function(l,a){a instanceof f&&(a=a.domEvent);var c={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(l,c);if(!o){var u=a.target||a.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,a){if(this.getFoldWidget){var c=this.getFoldWidget(l),o=this.getLine(l),u=c==="end"?-1:1,g=this.getFoldAt(l,u===-1?0:o.length,u);if(g)return a.children||a.all?this.removeFold(g):this.expandFold(g),g;var y=this.getFoldWidgetRange(l,!0);if(y&&!y.isMultiLine()&&(g=this.getFoldAt(y.start.row,y.start.column,1),g&&y.isEqual(g.range)))return this.removeFold(g),g;if(a.siblings){var b=this.getParentFoldRangeData(l);if(b.range)var L=b.range.start.row+1,A=b.range.end.row;this.foldAll(L,A,a.all?1e4:0)}else a.children?(A=y?y.end.row:this.getLength(),this.foldAll(l+1,A,a.all?1e4:0)):y&&(a.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(l){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var c=this.$toggleFoldWidget(a,{});if(!c){var o=this.getParentFoldRangeData(a,!0);if(c=o.range||o.firstRange,c){a=c.start.row;var u=this.getFoldAt(a,this.getLine(a).length,1);u?this.removeFold(u):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var a=l.start.row,c=l.end.row-a;if(c===0)this.foldWidgets[a]=null;else if(l.action=="remove")this.foldWidgets.splice(a,c+1,null);else{var o=Array(c+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(l){var a=l.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}i.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,i,m){var p=e("../token_iterator").TokenIterator,v=e("../range").Range;function w(){this.findMatchingBracket=function(h,f){if(h.column==0)return null;var s=f||this.getLine(h.row).charAt(h.column-1);if(s=="")return null;var l=s.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h):null},this.getBracketRange=function(h){var f=this.getLine(h.row),s=!0,l,a=f.charAt(h.column-1),c=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(c||(a=f.charAt(h.column),h={row:h.row,column:h.column+1},c=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!c)return null;if(c[1]){var o=this.$findClosingBracket(c[1],h);if(!o)return null;l=v.fromPoints(h,o),s||(l.end.column++,l.start.column--),l.cursor=l.end}else{var o=this.$findOpeningBracket(c[2],h);if(!o)return null;l=v.fromPoints(o,h),s||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(h,f){var s=this.getLine(h.row),l=/([\(\[\{])|([\)\]\}])/,a=!f&&s.charAt(h.column-1),c=a&&a.match(l);if(c||(a=(f===void 0||f)&&s.charAt(h.column),h={row:h.row,column:h.column+1},c=a&&a.match(l)),!c)return null;var o=new v(h.row,h.column-1,h.row,h.column),u=c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h);if(!u)return[o];var g=new v(u.row,u.column,u.row,u.column+1);return[o,g]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,f,s){var l=this.$brackets[h],a=1,c=new p(this,f.row,f.column),o=c.getCurrentToken();if(o||(o=c.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=f.column-c.getCurrentTokenColumn()-2,g=o.value;;){for(;u>=0;){var y=g.charAt(u);if(y==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:u+c.getCurrentTokenColumn()}}else y==h&&(a+=1);u-=1}do o=c.stepBackward();while(o&&!s.test(o.type));if(o==null)break;g=o.value,u=g.length-1}return null}},this.$findClosingBracket=function(h,f,s){var l=this.$brackets[h],a=1,c=new p(this,f.row,f.column),o=c.getCurrentToken();if(o||(o=c.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=f.column-c.getCurrentTokenColumn();;){for(var g=o.value,y=g.length;u<y;){var b=g.charAt(u);if(b==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:u+c.getCurrentTokenColumn()}}else b==h&&(a+=1);u+=1}do o=c.stepForward();while(o&&!s.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var f=new p(this,h.row,h.column),s=this.$findTagName(f);if(s){var l=f.stepBackward();return l.value==="<"?this.$findClosingTag(f,s):this.$findOpeningTag(f,s)}},this.$findTagName=function(h){var f=h.getCurrentToken(),s=!1,l=!1;if(f&&f.type.indexOf("tag-name")===-1)do l?f=h.stepBackward():f=h.stepForward(),f&&(f.value==="/>"?l=!0:f.type.indexOf("tag-name")!==-1&&(s=!0));while(f&&!s);return f},this.$findClosingTag=function(h,f){var s,l=f.value,a=f.value,c=0,o=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=h.stepForward();var u=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length),g=!1;do{if(s=f,s.type.indexOf("tag-close")!==-1&&!g){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=!0}if(f=h.stepForward(),f){if(f.value===">"&&!g){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=!0}if(f.type.indexOf("tag-name")!==-1){if(l=f.value,a===l){if(s.value==="<")c++;else if(s.value==="</"&&(c--,c<0)){h.stepBackward();var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);f=h.stepForward();var L=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length);if(f.type.indexOf("tag-close")===-1&&(f=h.stepForward()),f&&f.value===">")var A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(a===l&&f.value==="/>"&&(c--,c<0))var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),L=b,A=L,y=new v(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(f&&c>=0);if(o&&y&&b&&A&&u&&L)return{openTag:new v(o.start.row,o.start.column,y.end.row,y.end.column),closeTag:new v(b.start.row,b.start.column,A.end.row,A.end.column),openTagName:u,closeTagName:L}},this.$findOpeningTag=function(h,f){var s=h.getCurrentToken(),l=f.value,a=0,c=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,g=new v(c,o,c,u);h.stepForward();var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length);if(f.type.indexOf("tag-close")===-1&&(f=h.stepForward()),!(!f||f.value!==">")){var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(f=s,c=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+f.value.length,s=h.stepBackward(),f){if(f.type.indexOf("tag-name")!==-1){if(l===f.value)if(s.value==="<"){if(a++,a>0){var L=new v(c,o,c,u),A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do f=h.stepForward();while(f&&f.value!==">");var k=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(f.value==="/>"){for(var x=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===l){a--;break}else if(T.value==="<")break;T=h.stepBackward(),x++}for(var E=0;E<x;E++)h.stepForward()}}while(s&&a<=0);if(A&&k&&g&&b&&L&&y)return{openTag:new v(A.start.row,A.start.column,k.end.row,k.end.column),closeTag:new v(g.start.row,g.start.column,b.end.row,b.end.column),openTagName:L,closeTagName:y}}}}i.BracketMatch=w}),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(e,i,m){var p=e("./lib/oop"),v=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),f=e("./lib/event_emitter").EventEmitter,s=e("./selection").Selection,l=e("./mode/text").Mode,a=e("./range").Range,c=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,g=e("./search_highlight").SearchHighlight,y=e("./undomanager").UndoManager,b=function(){function $(_,S){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"+ ++$.$uid,this.$foldData.toString=function(){return this.join(`
197
+ `)},this.bgTokenizer=new u(new l().getTokenizer(),this);var R=this;this.bgTokenizer.on("update",function(O){R._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),h.resetOptions(this),this.setMode(S),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return $.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=v.delayedCall(this.endOperation.bind(this,!0))},$.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},$.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var S=this.selection.toJSON();this.curOp.selectionAfter=S,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(S),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},$.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},$.prototype.getDocument=function(){return this.doc},Object.defineProperty($.prototype,"widgetManager",{get:function(){var _=new c(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),$.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,R=this.$getRowCacheIndex(this.$docRowCache,_)+1;S>R&&(this.$docRowCache.splice(R,S),this.$screenRowCache.splice(R,S))},$.prototype.$getRowCacheIndex=function(_,S){for(var R=0,O=_.length-1;R<=O;){var F=R+O>>1,z=_[F];if(S>z)R=F+1;else if(S<z)O=F-1;else return F}return R-1},$.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},$.prototype.onChangeFold=function(_){var S=_.data;this.$resetRowCache(S.start.row)},$.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var S=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},$.prototype.onSelectionChange=function(){this._signal("changeSelection")},$.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},$.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var S=new y;S.$undoStack=_.history.undo,S.$redoStack=_.history.redo,S.mark=_.history.mark,S.$rev=_.history.rev;var R=new $(_.value);return _.folds.forEach(function(O){R.addFold("...",a.fromPoints(O.start,O.end))}),R.setAnnotations(_.annotations),R.setBreakpoints(_.breakpoints),R.setMode(_.mode),R.setScrollLeft(_.scrollLeft),R.setScrollTop(_.scrollTop),R.setUndoManager(S),R.selection.fromJSON(_.selection),R},$.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},$.prototype.toString=function(){return this.doc.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.getState=function(_){return this.bgTokenizer.getState(_)},$.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},$.prototype.getTokenAt=function(_,S){var R=this.bgTokenizer.getTokens(_),O,F=0;if(S==null){var z=R.length-1;F=this.getLine(_).length}else for(var z=0;z<R.length&&(F+=R[z].value.length,!(F>=S));z++);return O=R[z],O?(O.index=z,O.start=F-O.value.length,O):null},$.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var S=this;_.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=v.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},$.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},$.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},$.prototype.getTabString=function(){return this.getUseSoftTabs()?v.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(_){this.setOption("tabSize",_)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},$.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(_,S){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+S,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(_,S){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var S=0;S<_.length;S++)this.$breakpoints[_[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},$.prototype.setBreakpoint=function(_,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[_]=S:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},$.prototype.addMarker=function(_,S,R,O){var F=this.$markerId++,z={range:_,type:R||"line",renderer:typeof R=="function"?R:null,clazz:S,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=z,this._signal("changeFrontMarker")):(this.$backMarkers[F]=z,this._signal("changeBackMarker")),F},$.prototype.addDynamicMarker=function(_,S){if(_.update){var R=this.$markerId++;return _.id=R,_.inFront=!!S,S?(this.$frontMarkers[R]=_,this._signal("changeFrontMarker")):(this.$backMarkers[R]=_,this._signal("changeBackMarker")),_}},$.prototype.removeMarker=function(_){var S=this.$frontMarkers[_]||this.$backMarkers[_];if(S){var R=S.inFront?this.$frontMarkers:this.$backMarkers;delete R[_],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},$.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},$.prototype.highlight=function(_){if(!this.$searchHighlight){var S=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(_)},$.prototype.highlightLines=function(_,S,R,O){typeof S!="number"&&(R=S,S=_),R||(R="ace_step");var F=new a(_,0,S,1/0);return F.id=this.addMarker(F,R,"fullLine",O),F},$.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},$.prototype.getAnnotations=function(){return this.$annotations||[]},$.prototype.clearAnnotations=function(){this.setAnnotations([])},$.prototype.$detectNewLine=function(_){var S=_.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
198
+ `},$.prototype.getWordRange=function(_,S){var R=this.getLine(_),O=!1;if(S>0&&(O=!!R.charAt(S-1).match(this.tokenRe)),O||(O=!!R.charAt(S).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(R.slice(S-1,S+1)))var F=/\s/;else var F=this.nonTokenRe;var z=S;if(z>0){do z--;while(z>=0&&R.charAt(z).match(F));z++}for(var j=S;j<R.length&&R.charAt(j).match(F);)j++;return new a(_,z,_,j)},$.prototype.getAWordRange=function(_,S){for(var R=this.getWordRange(_,S),O=this.getLine(R.end.row);O.charAt(R.end.column).match(/[ \t]/);)R.end.column+=1;return R},$.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(_){var S=_.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",_)},$.prototype.setMode=function(_,S){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var R=_,O=R.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[O]&&!R){this.$onChangeMode(this.$modes[O]),S&&S();return}this.$modeId=O,h.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return S&&S();this.$modes[O]&&!R?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(R),R||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),S&&S()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},$.prototype.$onChangeMode=function(_,S){if(S||(this.$modeId=_.$id),this.$mode!==_){var R=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,S||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:R,mode:_}))}},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){h.warn("Could not load worker",_),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>_&&(_=S.screenWidth)}),this.lineWidgetWidth=_},$.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),R=this.$rowLengthCache,O=0,F=0,z=this.$foldData[F],j=z?z.start.row:1/0,V=S.length,q=0;q<V;q++){if(q>j){if(q=z.end.row+1,q>=V)break;z=this.$foldData[F++],j=z?z.start.row:1/0}R[q]==null&&(R[q]=this.$getStringScreenWidth(S[q])[0]),R[q]>O&&(O=R[q])}this.screenWidth=O}},$.prototype.getLine=function(_){return this.doc.getLine(_)},$.prototype.getLines=function(_,S){return this.doc.getLines(_,S)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},$.prototype.insert=function(_,S){return this.doc.insert(_,S)},$.prototype.remove=function(_){return this.doc.remove(_)},$.prototype.removeFullLines=function(_,S){return this.doc.removeFullLines(_,S)},$.prototype.undoChanges=function(_,S){if(_.length){this.$fromUndo=!0;for(var R=_.length-1;R!=-1;R--){var O=_[R];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!S&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(_,S){if(_.length){this.$fromUndo=!0;for(var R=0;R<_.length;R++){var O=_[R];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!S&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(_){this.$undoSelect=_},$.prototype.$getUndoSelection=function(_,S){function R(V){return S?V.action!=="insert":V.action==="insert"}for(var O,F,z=0;z<_.length;z++){var j=_[z];if(j.start){if(!O){R(j)?O=a.fromPoints(j.start,j.end):O=a.fromPoints(j.start,j.start);continue}R(j)?(F=j.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=j.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=j.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(j.start,j.start)))}}return O},$.prototype.replace=function(_,S){return this.doc.replace(_,S)},$.prototype.moveText=function(_,S,R){var O=this.getTextRange(_),F=this.getFoldsInRange(_),z=a.fromPoints(S,S);if(!R){this.remove(_);var j=_.start.row-_.end.row,V=j?-_.end.column:_.start.column-_.end.column;V&&(z.start.row==_.end.row&&z.start.column>_.end.column&&(z.start.column+=V),z.end.row==_.end.row&&z.end.column>_.end.column&&(z.end.column+=V)),j&&z.start.row>=_.end.row&&(z.start.row+=j,z.end.row+=j)}if(z.end=this.insert(z.start,O),F.length){var q=_.start,J=z.start,j=J.row-q.row,V=J.column-q.column;this.addFolds(F.map(function(ie){return ie=ie.clone(),ie.start.row==q.row&&(ie.start.column+=V),ie.end.row==q.row&&(ie.end.column+=V),ie.start.row+=j,ie.end.row+=j,ie}))}return z},$.prototype.indentRows=function(_,S,R){R=R.replace(/\t/g,this.getTabString());for(var O=_;O<=S;O++)this.doc.insertInLine({row:O,column:0},R)},$.prototype.outdentRows=function(_){for(var S=_.collapseRows(),R=new a(0,0,0,0),O=this.getTabSize(),F=S.start.row;F<=S.end.row;++F){var z=this.getLine(F);R.start.row=F,R.end.row=F;for(var j=0;j<O&&z.charAt(j)==" ";++j);j<O&&z.charAt(j)==" "?(R.start.column=j,R.end.column=j+1):(R.start.column=0,R.end.column=j),this.remove(R)}},$.prototype.$moveLines=function(_,S,R){if(_=this.getRowFoldStart(_),S=this.getRowFoldEnd(S),R<0){var O=this.getRowFoldStart(_+R);if(O<0)return 0;var F=O-_}else if(R>0){var O=this.getRowFoldEnd(S+R);if(O>this.doc.getLength()-1)return 0;var F=O-S}else{_=this.$clipRowToDocument(_),S=this.$clipRowToDocument(S);var F=S-_+1}var z=new a(_,0,S,Number.MAX_VALUE),j=this.getFoldsInRange(z).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=R==0?this.doc.getLines(_,S):this.doc.removeFullLines(_,S);return this.doc.insertFullLines(_+F,V),j.length&&this.addFolds(j),F},$.prototype.moveLinesUp=function(_,S){return this.$moveLines(_,S,-1)},$.prototype.moveLinesDown=function(_,S){return this.$moveLines(_,S,1)},$.prototype.duplicateLines=function(_,S){return this.$moveLines(_,S,0)},$.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(_,S){return S<0?0:Math.min(this.doc.getLine(_).length,S)},$.prototype.$clipPositionToDocument=function(_,S){if(S=Math.max(0,S),_<0)_=0,S=0;else{var R=this.doc.getLength();_>=R?(_=R-1,S=this.doc.getLine(R-1).length):S=Math.min(this.doc.getLine(_).length,S)}return{row:_,column:S}},$.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var S=this.doc.getLength()-1;return _.end.row>S?(_.end.row=S,_.end.column=this.doc.getLine(S).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},$.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.prototype.setWrapLimitRange=function(_,S){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:_,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},$.prototype.adjustWrapLimit=function(_,S){var R=this.$wrapLimitRange;R.max<0&&(R={min:S,max:S});var O=this.$constrainWrapLimit(_,R.min,R.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},$.prototype.$constrainWrapLimit=function(_,S,R){return S&&(_=Math.max(S,_)),R&&(_=Math.min(R,_)),_},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(_){var S=this.$useWrapMode,R=_.action,O=_.start,F=_.end,z=O.row,j=F.row,V=j-z,q=null;if(this.$updating=!0,V!=0)if(R==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(z,V);var J=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Q=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var ie=this.getFoldLine(z);ie&&ie!==G&&(ie.merge(G),G=ie),Q=J.indexOf(G)+1}for(Q;Q<J.length;Q++){var G=J[Q];G.start.row>=F.row&&G.shiftRow(-V)}j=z}else{var X=Array(V);X.unshift(z,0);var ae=S?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,X);var J=this.$foldData,G=this.getFoldLine(z),Q=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(j,0,F.column-O.column))):me==-1&&(G.addRemoveChars(z,0,F.column-O.column),G.shiftRow(V)),Q=J.indexOf(G)+1}for(Q;Q<J.length;Q++){var G=J[Q];G.start.row>=z&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),R==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(z);G&&G.addRemoveChars(z,O.column,V)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(z,j):this.$updateRowLengthCache(z,j),q},$.prototype.$updateRowLengthCache=function(_,S){this.$rowLengthCache[_]=null,this.$rowLengthCache[S]=null},$.prototype.$updateWrapData=function(_,S){var R=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,z=this.$wrapLimit,j,V,q=_;for(S=Math.min(S,R.length-1);q<=S;)V=this.getFoldLine(q,V),V?(j=[],V.walk((function(J,G,Q,ie){var X;if(J!=null){X=this.$getDisplayTokens(J,j.length),X[0]=k;for(var ae=1;ae<X.length;ae++)X[ae]=x}else X=this.$getDisplayTokens(R[G].substring(ie,Q),j.length);j=j.concat(X)}).bind(this),V.end.row,R[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(j,z,O),q=V.end.row+1):(j=this.$getDisplayTokens(R[q]),F[q]=this.$computeWrapSplits(j,z,O),q++)},$.prototype.$computeWrapSplits=function(_,S,R){if(_.length==0)return[];var O=[],F=_.length,z=0,j=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,J=S<=Math.max(2*R,8)||q===!1?0:Math.floor(S/2);function G(){var me=0;if(J===0)return me;if(q)for(var ye=0;ye<_.length;ye++){var fe=_[ye];if(fe==E)me+=1;else if(fe==I)me+=R;else{if(fe==M)continue;break}}return V&&q!==!1&&(me+=R),Math.min(me,J)}function Q(me){for(var ye=me-z,fe=z;fe<me;fe++){var $e=_[fe];($e===12||$e===2)&&(ye-=1)}O.length||(ie=G(),O.indent=ie),j+=ye,O.push(j),z=me}for(var ie=0;F-z>S-ie;){var X=z+S-ie;if(_[X-1]>=E&&_[X]>=E){Q(X);continue}if(_[X]==k||_[X]==x){for(X;X!=z-1&&_[X]!=k;X--);if(X>z){Q(X);continue}for(X=z+S,X;X<_.length&&_[X]==x;X++);if(X==_.length)break;Q(X);continue}for(var ae=Math.max(X-(S-(S>>2)),z-1);X>ae&&_[X]<k;)X--;if(V){for(;X>ae&&_[X]<k;)X--;for(;X>ae&&_[X]==T;)X--}else for(;X>ae&&_[X]<E;)X--;if(X>ae){Q(++X);continue}X=z+S,_[X]==A&&X--,Q(X-ie)}return O},$.prototype.$getDisplayTokens=function(_,S){var R=[],O;S=S||0;for(var F=0;F<_.length;F++){var z=_.charCodeAt(F);if(z==9){O=this.getScreenTabSize(R.length+S),R.push(I);for(var j=1;j<O;j++)R.push(M)}else z==32?R.push(E):z>39&&z<48||z>57&&z<64?R.push(T):z>=4352&&N(z)?R.push(L,A):R.push(L)}return R},$.prototype.$getStringScreenWidth=function(_,S,R){if(S==0)return[0,0];S==null&&(S=1/0),R=R||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?R+=this.getScreenTabSize(R):O>=4352&&N(O)?R+=2:R+=1,!(R>S));F++);return[R,F]},$.prototype.getRowLength=function(_){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?S:this.$wrapData[_].length+S},$.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},$.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var S=this.screenToDocumentPosition(_,Number.MAX_VALUE),R=this.$wrapData[S.row];return R.length&&R[0]<S.column?R.indent:0}else return 0},$.prototype.getScreenLastRowColumn=function(_){var S=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},$.prototype.getDocumentLastRowColumn=function(_,S){var R=this.documentToScreenRow(_,S);return this.getScreenLastRowColumn(R)},$.prototype.getDocumentLastRowColumnPosition=function(_,S){var R=this.documentToScreenRow(_,S);return this.screenToDocumentPosition(R,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},$.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(_,S){return this.screenToDocumentPosition(_,S).row},$.prototype.screenToDocumentColumn=function(_,S){return this.screenToDocumentPosition(_,S).column},$.prototype.screenToDocumentPosition=function(_,S,R){if(_<0)return{row:0,column:0};var O,Q=0,F=0,z,G=0,j=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),J=V.length;if(J&&q>=0)var G=V[q],Q=this.$docRowCache[q],ie=_>V[J-1];else var ie=!J;for(var X=this.getLength()-1,ae=this.getNextFoldLine(Q),me=ae?ae.start.row:1/0;G<=_&&(j=this.getRowLength(Q),!(G+j>_||Q>=X));)G+=j,Q++,Q>me&&(Q=ae.end.row+1,ae=this.getNextFoldLine(Q,ae),me=ae?ae.start.row:1/0),ie&&(this.$docRowCache.push(Q),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Q)O=this.getFoldDisplayLine(ae),Q=ae.start.row;else{if(G+j<=_||Q>X)return{row:X,column:this.getLine(X).length};O=this.getLine(Q),ae=null}var ye=0,fe=Math.floor(_-G);if(this.$useWrapMode){var $e=this.$wrapData[Q];$e&&(z=$e[fe],fe>0&&$e.length&&(ye=$e.indent,F=$e[fe-1]||$e[$e.length-1],O=O.substring(F)))}return R!==void 0&&this.$bidiHandler.isBidiRow(G+fe,Q,fe)&&(S=this.$bidiHandler.offsetToCol(R)),F+=this.$getStringScreenWidth(O,S-ye)[1],this.$useWrapMode&&F>=z&&(F=z-1),ae?ae.idxToPosition(F):{row:Q,column:F}},$.prototype.documentToScreenPosition=function(_,S){if(typeof S>"u")var R=this.$clipPositionToDocument(_.row,_.column);else R=this.$clipPositionToDocument(_,S);_=R.row,S=R.column;var G=0,O=null,F=null;F=this.getFoldAt(_,S,1),F&&(_=F.start.row,S=F.start.column);var z,J=0,j=this.$docRowCache,V=this.$getRowCacheIndex(j,_),q=j.length;if(q&&V>=0)var J=j[V],G=this.$screenRowCache[V],Q=_>j[q-1];else var Q=!q;for(var ie=this.getNextFoldLine(J),X=ie?ie.start.row:1/0;J<_;){if(J>=X){if(z=ie.end.row+1,z>_)break;ie=this.getNextFoldLine(z,ie),X=ie?ie.start.row:1/0}else z=J+1;G+=this.getRowLength(J),J=z,Q&&(this.$docRowCache.push(J),this.$screenRowCache.push(G))}var ae="";ie&&J>=X?(ae=this.getFoldDisplayLine(ie,_,S),O=ie.start.row):(ae=this.getLine(_).substring(0,S),O=_);var me=0;if(this.$useWrapMode){var ye=this.$wrapData[O];if(ye){for(var fe=0;ae.length>=ye[fe];)G++,fe++;ae=ae.substring(ye[fe-1]||0,ae.length),me=fe>0?ye.indent:0}}return this.lineWidgets&&this.lineWidgets[J]&&this.lineWidgets[J].rowsAbove&&(G+=this.lineWidgets[J].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},$.prototype.documentToScreenColumn=function(_,S){return this.documentToScreenPosition(_,S).column},$.prototype.documentToScreenRow=function(_,S){return this.documentToScreenPosition(_,S).row},$.prototype.getScreenLength=function(){var _=0,S=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,O=0,F=0,S=this.$foldData[F++],z=S?S.start.row:1/0;O<R;){var j=this.$wrapData[O];_+=j?j.length+1:1,O++,O>z&&(O=S.end.row+1,S=this.$foldData[F++],z=S?S.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)S=V[F],_-=S.end.row-S.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},$.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,R,O){if(R===0)return[0,0];R||(R=1/0),O=O||0;var F,z;for(z=0;z<S.length&&(F=S.charAt(z),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>R));z++);return[O,z]})},$.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine(_.row);return S[_.column-1]},$.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()},$}();b.$uid=0,b.prototype.$modes=h.$modes,b.prototype.getValue=b.prototype.toString,b.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},b.prototype.$overwrite=!1,b.prototype.$mode=null,b.prototype.$modeId=null,b.prototype.$scrollTop=0,b.prototype.$scrollLeft=0,b.prototype.$wrapLimit=80,b.prototype.$useWrapMode=!1,b.prototype.$wrapLimitRange={min:null,max:null},b.prototype.lineWidgets=null,b.prototype.isFullWidth=N,p.implement(b.prototype,f);var L=1,A=2,k=3,x=4,T=9,E=10,I=11,M=12;function N($){return $<4352?!1:$>=4352&&$<=4447||$>=4515&&$<=4519||$>=4602&&$<=4607||$>=9001&&$<=9002||$>=11904&&$<=11929||$>=11931&&$<=12019||$>=12032&&$<=12245||$>=12272&&$<=12283||$>=12288&&$<=12350||$>=12353&&$<=12438||$>=12441&&$<=12543||$>=12549&&$<=12589||$>=12593&&$<=12686||$>=12688&&$<=12730||$>=12736&&$<=12771||$>=12784&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=13054||$>=13056&&$<=19903||$>=19968&&$<=42124||$>=42128&&$<=42182||$>=43360&&$<=43388||$>=44032&&$<=55203||$>=55216&&$<=55238||$>=55243&&$<=55291||$>=63744&&$<=64255||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=65281&&$<=65376||$>=65504&&$<=65510}e("./edit_session/folding").Folding.call(b.prototype),e("./edit_session/bracket_match").BracketMatch.call(b.prototype),h.defineOptions(b.prototype,"session",{wrap:{set:function($){if(!$||$=="off"?$=!1:$=="free"?$=!0:$=="printMargin"?$=-1:typeof $=="string"&&($=parseInt($,10)||!1),this.$wrap!=$)if(this.$wrap=$,!$)this.setUseWrapMode(!1);else{var _=typeof $=="number"?$:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function($){$=$=="auto"?this.$mode.type!="text":$!="text",$!=this.$wrapAsCode&&(this.$wrapAsCode=$,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function($){this.$useWorker=$,this.$stopWorker(),$&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function($){$=parseInt($),$>0&&this.$tabSize!==$&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=$,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function($){this.setFoldStyle($)},handlesSet:!0},overwrite:{set:function($){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function($){this.doc.setNewLineMode($)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function($){this.setMode($)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,i,m){var p=e("./lib/lang"),v=e("./lib/oop"),w=e("./range").Range,h=function(){function s(){this.$options={}}return s.prototype.set=function(l){return v.mixin(this.$options,l),this},s.prototype.getOptions=function(){return p.copyObject(this.$options)},s.prototype.setOptions=function(l){this.$options=l},s.prototype.find=function(l){var a=this.$options,c=this.$matchIterator(l,a);if(!c)return!1;var o=null;return c.forEach(function(u,g,y,b){return o=new w(u,g,y,b),g==b&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(l){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var c=a.range,o=c?l.getLines(c.start.row,c.end.row):l.doc.getAllLines(),u=[],g=a.re;if(a.$isMultiLine){var y=g.length,b=o.length-y,L;e:for(var A=g.offset||0;A<=b;A++){for(var k=0;k<y;k++)if(o[A+k].search(g[k])==-1)continue e;var x=o[A],T=o[A+y-1],E=x.length-x.match(g[0])[0].length,I=T.match(g[y-1])[0].length;L&&L.end.row===A&&L.end.column>E||(u.push(L=new w(A,E,A+y-1,I)),y>2&&(A=A+y-2))}}else for(var M=0;M<o.length;M++)for(var N=p.getMatchOffsets(o[M],g),k=0;k<N.length;k++){var $=N[k];u.push(new w(M,$.offset,M,$.offset+$.length))}if(c){for(var _=c.start.column,S=c.end.column,M=0,k=u.length-1;M<k&&u[M].start.column<_&&u[M].start.row==0;)M++;for(var R=c.end.row-c.start.row;M<k&&u[k].end.column>S&&u[k].end.row==R;)k--;for(u=u.slice(M,k+1),M=0,k=u.length;M<k;M++)u[M].start.row+=c.start.row,u[M].end.row+=c.start.row}return u},s.prototype.replace=function(l,a){var c=this.$options,o=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(o){var u=o.exec(l);if(!u||u[0].length!=l.length)return null;if(c.regExp||(a=a.replace(/\$/g,"$$$$")),a=l.replace(o,a),c.preserveCase){a=a.split("");for(var g=Math.min(l.length,l.length);g--;){var y=l[g];y&&y.toLowerCase()!=y?a[g]=a[g].toUpperCase():a[g]=a[g].toLowerCase()}a=a.join("")}return a}},s.prototype.$assembleRegExp=function(l,a){if(l.needle instanceof RegExp)return l.re=l.needle;var c=l.needle;if(!l.needle)return l.re=!1;l.regExp||(c=p.escapeRegExp(c));var o=l.caseSensitive?"gm":"gmi";try{new RegExp(c,"u"),l.$supportsUnicodeFlag=!0,o+="u"}catch{l.$supportsUnicodeFlag=!1}if(l.wholeWord&&(c=f(c,l)),l.$isMultiLine=!a&&/[\n\r]/.test(c),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(c,o);try{var u=new RegExp(c,o)}catch{u=!1}return l.re=u},s.prototype.$assembleMultilineRegExp=function(l,a){for(var c=l.replace(/\r\n|\r|\n/g,`$
199
+ ^`).split(`
200
+ `),o=[],u=0;u<c.length;u++)try{o.push(new RegExp(c[u],a))}catch{return!1}return o},s.prototype.$matchIterator=function(l,a){var c=this.$assembleRegExp(a);if(!c)return!1;var o=a.backwards==!0,u=a.skipCurrent!=!1,g=c.unicode,y=a.range,b=a.start;b||(b=y?y[o?"end":"start"]:l.selection.getRange()),b.start&&(b=b[u!=o?"end":"start"]);var L=y?y.start.row:0,A=y?y.end.row:l.getLength()-1;if(o)var k=function(E){var I=b.row;if(!T(I,b.column,E)){for(I--;I>=L;I--)if(T(I,Number.MAX_VALUE,E))return;if(a.wrap!=!1){for(I=A,L=b.row;I>=L;I--)if(T(I,Number.MAX_VALUE,E))return}}};else var k=function(E){var I=b.row;if(!T(I,b.column,E)){for(I=I+1;I<=A;I++)if(T(I,0,E))return;if(a.wrap!=!1){for(I=L,A=b.row;I<=A;I++)if(T(I,0,E))return}}};if(a.$isMultiLine)var x=c.length,T=function(E,I,M){var N=o?E-x+1:E;if(!(N<0||N+x>l.getLength())){var $=l.getLine(N),_=$.search(c[0]);if(!(!o&&_<I||_===-1)){for(var S=1;S<x;S++)if($=l.getLine(N+S),$.search(c[S])==-1)return;var R=$.match(c[x-1])[0].length;if(!(o&&R>I)&&M(N,_,N+x-1,R))return!0}}};else if(o)var T=function(E,I,M){var N=l.getLine(E),$=[],_,S=0;for(c.lastIndex=0;_=c.exec(N);){var R=_[0].length;if(S=_.index,!R){if(S>=N.length)break;c.lastIndex=S+=p.skipEmptyMatch(N,S,g)}if(_.index+R>I)break;$.push(_.index,R)}for(var O=$.length-1;O>=0;O-=2){var F=$[O-1],R=$[O];if(M(E,F,E,F+R))return!0}};else var T=function(E,I,M){var N=l.getLine(E),$,_;for(c.lastIndex=I;_=c.exec(N);){var S=_[0].length;if($=_.index,M(E,$,E,$+S))return!0;if(!S&&(c.lastIndex=$+=p.skipEmptyMatch(N,$,g),$>=N.length))return!1}};return{forEach:k}},s}();function f(s,l){var a=p.supportsLookbehind();function c(y,b){b===void 0&&(b=!0);var L=a&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return L.test(y)||l.regExp?a&&l.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],g=o[o.length-1];return c(u)+s+c(g,!1)}i.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var p=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(u[y]=g[y])},a(c,o)};return function(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(c,o);function u(){this.constructor=c}c.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),v=e("../lib/keys"),w=e("../lib/useragent"),h=v.KEY_MODS,f=function(){function a(c,o){this.$init(c,o,!1)}return a.prototype.$init=function(c,o,u){this.platform=o||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=u},a.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},a.prototype.removeCommand=function(c,o){var u=c&&(typeof c=="string"?c:c.name);c=this.commands[u],o||delete this.commands[u];var g=this.commandKeyBinding;for(var y in g){var b=g[y];if(b==c)delete g[y];else if(Array.isArray(b)){var L=b.indexOf(c);L!=-1&&(b.splice(L,1),b.length==1&&(g[y]=b[0]))}}},a.prototype.bindKey=function(c,o,u){if(typeof c=="object"&&c&&(u==null&&(u=c.position),c=c[this.platform]),!!c){if(typeof o=="function")return this.addCommand({exec:o,bindKey:c,name:o.name||c});c.split("|").forEach(function(g){var y="";if(g.indexOf(" ")!=-1){var b=g.split(/\s+/);g=b.pop(),b.forEach(function(k){var x=this.parseKeys(k),T=h[x.hashId]+x.key;y+=(y?" ":"")+T,this._addCommandToBinding(y,"chainKeys")},this),y+=" "}var L=this.parseKeys(g),A=h[L.hashId]+L.key;this._addCommandToBinding(y+A,o,u)},this)}},a.prototype._addCommandToBinding=function(c,o,u){var g=this.commandKeyBinding,y;if(!o)delete g[c];else if(!g[c]||this.$singleCommand)g[c]=o;else{Array.isArray(g[c])?(y=g[c].indexOf(o))!=-1&&g[c].splice(y,1):g[c]=[g[c]],typeof u!="number"&&(u=s(o));var b=g[c];for(y=0;y<b.length;y++){var L=b[y],A=s(L);if(A>u)break}b.splice(y,0,o)}},a.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(o){var u=c[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},a.prototype.removeCommands=function(c){Object.keys(c).forEach(function(o){this.removeCommand(c[o])},this)},a.prototype.bindKeys=function(c){Object.keys(c).forEach(function(o){this.bindKey(o,c[o])},this)},a.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},a.prototype.parseKeys=function(c){var o=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(A){return A}),u=o.pop(),g=v[u];if(v.FUNCTION_KEYS[g])u=v.FUNCTION_KEYS[g].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var y=0,b=o.length;b--;){var L=v.KEY_MODS[o[b]];if(L==null)return typeof console<"u"&&console.error("invalid modifier "+o[b]+" in "+c),!1;y|=L}return{key:u,hashId:y}},a.prototype.findKeyCommand=function(c,o){var u=h[c]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(c,o,u,g){if(!(g<0)){var y=h[o]+u,b=this.commandKeyBinding[y];return c.$keyChain&&(c.$keyChain+=" "+y,b=this.commandKeyBinding[c.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||y,{command:"null"}):(c.$keyChain&&((!o||o==4)&&u.length==1?c.$keyChain=c.$keyChain.slice(0,-y.length-1):(o==-1||g>0)&&(c.$keyChain="")),{command:b})}},a.prototype.getStatusText=function(c,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var l=function(a){p(c,a);function c(o,u){var g=a.call(this,o,u)||this;return g.$singleCommand=!0,g}return c}(f);l.call=function(a,c,o){f.prototype.$init.call(a,c,o,!0)},f.call=function(a,c,o){f.prototype.$init.call(a,c,o,!1)},i.HashHandler=l,i.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,i,m){var p=this&&this.__extends||function(){var s=function(l,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(c[u]=o[u])},s(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");s(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),v=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,f=function(s){p(l,s);function l(a,c){var o=s.call(this,c,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return l.prototype.exec=function(a,c,o){if(Array.isArray(a)){for(var u=a.length;u--;)if(this.exec(a[u],c,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,c))return!1;var g={editor:c,command:a,args:o};return g.returnValue=this._emit("exec",g),this._signal("afterExec",g),g.returnValue!==!1},l.prototype.canExecute=function(a,c){return typeof a=="string"&&(a=this.commands[a]),!(!a||c&&c.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(c))},l.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,a):this.exec(c[0],a,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(a){return a.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l}(w);v.implement(f.prototype,h),i.CommandManager=f}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,i,m){var p=e("../lib/lang"),v=e("../config"),w=e("../range").Range;function h(s,l){return{win:s,mac:l}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(s){v.loadModule("ace/ext/settings_menu",function(l){l.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(s){v.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(s){v.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("Ctrl-L","Command-L"),exec:function(s,l){typeof l=="number"&&!isNaN(l)&&s.gotoLine(l),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:h("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:h("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:h("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:h("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(s){v.loadModule("ace/ext/searchbox",function(l){l.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:h("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:h("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:h("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:h("Up","Up|Ctrl-P"),exec:function(s,l){s.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:h("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:h("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:h("Down","Down|Ctrl-N"),exec:function(s,l){s.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:h("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:h("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:h("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:h("Left","Left|Ctrl-B"),exec:function(s,l){s.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:h("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:h("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:h("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("Right","Right|Ctrl-F"),exec:function(s,l){s.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:h(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:h(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:h("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:h("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:h("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:h(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var l=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=l?s.selection.getLineRange():s.selection.getRange();s._emit("cut",a),a.isEmpty()||s.session.remove(a),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,l){s.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:h("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(s){v.loadModule("ace/ext/searchbox",function(l){l.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:h("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:h("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("Ctrl-Shift-Backspace",null),exec:function(s){var l=s.selection.getRange();l.start.column=0,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(s){var l=s.selection.getRange();l.end.column=Number.MAX_VALUE,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,l){s.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,l){s.insert(p.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var l=s.selection.getRange();l.start.column=l.end.column=0,l.end.row++,s.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:h("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(null,null),exec:function(s){for(var l=s.selection.isBackwards(),a=l?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),c=l?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,u=s.session.doc.getTextRange(s.selection.getRange()),g=u.replace(/\n\s*/," ").length,y=s.session.doc.getLine(a.row),b=a.row+1;b<=c.row+1;b++){var L=p.stringTrimLeft(p.stringTrimRight(s.session.doc.getLine(b)));L.length!==0&&(L=" "+L),y+=L}c.row+1<s.session.doc.getLength()-1&&(y+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new w(a.row,0,c.row+2,0),y),g>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+g)):(o=s.session.doc.getLine(a.row).length>o?o+1:o,s.selection.moveCursorTo(a.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(s){var l=s.session.doc.getLength()-1,a=s.session.doc.getLine(l).length,c=s.selection.rangeList.ranges,o=[];c.length<1&&(c=[s.selection.getRange()]);for(var u=0;u<c.length;u++)u==c.length-1&&(c[u].end.row===l&&c[u].end.column===a||o.push(new w(c[u].end.row,c[u].end.column,l,a))),u===0?c[u].start.row===0&&c[u].start.column===0||o.push(new w(0,0,c[u].start.row,c[u].start.column)):o.push(new w(c[u-1].end.row,c[u-1].end.column,c[u].start.row,c[u].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var u=0;u<o.length;u++)s.selection.addRange(o[u],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
201
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var l=s.getCursorPosition();s.selection.moveTo(l.row-1,Number.MAX_VALUE),s.insert(`
202
+ `),l.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:h("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var f=1;f<9;f++)i.commands.push({name:"foldToLevel"+f,description:"Fold To Level "+f,level:f,exec:function(s){s.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(e,i,m){var p=e("../lib/keys"),v=e("../mouse/default_gutter_handler").GutterTooltip,w=function(){function f(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new v(this.editor)}return f.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))},f.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))},f.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===p.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=p.enter)return;s.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(c===null&&o===null)){if(c===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&o===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(c-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new h(s,this))}).bind(this),10)},f.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===p.tab){s.preventDefault();return}if(s.keyCode===p.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===p.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===p.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===p.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===p.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===p.enter||s.keyCode===p.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var l=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==l&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(l),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=c.right+"px",o.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},f.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},f.prototype.$isFoldWidgetVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return l&&a},f.prototype.$isAnnotationVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return l&&a},f.prototype.$getFoldWidget=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[1]},f.prototype.$getAnnotation=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[2]},f.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isFoldWidgetVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+l))return s+l}return null},f.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isAnnotationVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+l))return s+l}return null},f.prototype.$focusFoldWidget=function(s){if(s!=null){var l=this.$getFoldWidget(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},f.prototype.$focusAnnotation=function(s){if(s!=null){var l=this.$getAnnotation(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},f.prototype.$blurFoldWidget=function(s){var l=this.$getFoldWidget(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},f.prototype.$blurAnnotation=function(s){var l=this.$getAnnotation(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},f.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},f.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},f.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},f.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},f.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var l=this.$findNearestAnnotation(this.activeRowIndex);if(l==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=l,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},f.prototype.$rowIndexToRow=function(s){var l=this.lines.get(s);return l?l.row:null},f.prototype.$rowToRowIndex=function(s){for(var l=0;l<this.lines.getLength();l++){var a=this.lines.get(l);if(a.row==s)return l}return null},f}();i.GutterKeyboardHandler=w;var h=function(){function f(s,l){this.gutterKeyboardHandler=l,this.domEvent=s}return f.prototype.getKey=function(){return p.keyCodeToString(this.domEvent.keyCode)},f.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},f.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},f.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},f}();i.GutterKeyboardEvent=h}),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"],function(e,i,m){var p=this&&this.__values||function($){var _=typeof Symbol=="function"&&Symbol.iterator,S=_&&$[_],R=0;if(S)return S.call($);if($&&typeof $.length=="number")return{next:function(){return $&&R>=$.length&&($=void 0),{value:$&&$[R++],done:!$}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/lang"),f=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,a=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,g=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,b=e("./commands/command_manager").CommandManager,L=e("./commands/default_commands").commands,A=e("./config"),k=e("./token_iterator").TokenIterator,x=e("./keyboard/gutter_handler").GutterKeyboardHandler,T=e("./config").nls,E=e("./clipboard"),I=e("./lib/keys"),M=function(){function $(_,S,R){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++$.$uid,this.commands=new b(f.isMac?"mac":"win",L),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new a(this)),this.keyBinding=new c(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,z){z._$emitInputEvent.schedule(31)}),this.setSession(S||R&&R.session||new o("")),A.resetOptions(this),R&&this.setOptions(R),A._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(_){this.session.startOperation(_)},$.prototype.endOperation=function(_){this.session.endOperation(_)},$.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},$.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var S=this.curOp.command,R=S&&S.scrollIntoView;if(R){switch(R){case"center-animate":R="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}R=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var S=this.prevOp,R=this.$mergeableCommands,O=S.command&&_.command.name==S.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(S.args)),this.mergeNextCommand=!0}else O=O&&R.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:R.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(_,S){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var R=this;A.loadModule(["keybinding",_],function(O){R.$keybindingId==_&&R.keyBinding.setKeyboardHandler(O&&O.handler),S&&S()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),S&&S()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var S=this.session;if(S){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 R=this.session.getSelection();R.off("changeCursor",this.$onCursorChange),R.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.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=_.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(_)),this._signal("changeSession",{session:_,oldSession:S}),this.curOp=null,S&&S._signal("changeEditor",{oldEditor:this}),S&&(S.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(_,S){return this.session.doc.setValue(_),S?S==1?this.navigateFileEnd():S==-1&&this.navigateFileStart():this.selectAll(),_},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(_){this.renderer.onResize(_)},$.prototype.setTheme=function(_,S){this.renderer.setTheme(_,S)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(_){this.renderer.setStyle(_)},$.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(_){this.setOption("fontSize",_)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var S=_.session;if(!(!S||S.destroyed)){S.$bracketHighlight&&(S.$bracketHighlight.markerIds.forEach(function(G){S.removeMarker(G)}),S.$bracketHighlight=null);var R=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),z=S.getMatchingBracketRanges(R,F);if(!z){var j=new k(S,R.row,R.column),V=j.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=S.getMatchingTags(R);q&&(z=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!z&&S.$mode.getMatching&&(z=S.$mode.getMatching(_.session)),!z){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var J="ace_bracket";Array.isArray(z)?z.length==1&&(J="ace_error_bracket"):z=[z],z.length==2&&(g.comparePoints(z[0].end,z[1].start)==0?z=[g.fromPoints(z[0].start,z[1].end)]:g.comparePoints(z[0].start,z[1].end)==0&&(z=[g.fromPoints(z[1].start,z[0].end)])),S.$bracketHighlight={ranges:z,markerIds:z.map(function(G){return S.addMarker(G,J,"text")})},_.getHighlightIndentGuides()&&_.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(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},$.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(_){var S=this.session.$useWrapMode,R=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,R,S),this._signal("change",_),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(_){var S=_.data;this.renderer.updateLines(S.first,S.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 _=this.getSession(),S;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(S=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(S=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(S=!1)),_.$highlightLineMarker&&!S)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&S){var R=new g(S.row,S.column,S.row,1/0);R.id=_.addMarker(R,"ace_active-line","screenLine"),_.$highlightLineMarker=R}else S&&(_.$highlightLineMarker.start.row=S.row,_.$highlightLineMarker.end.row=S.row,_.$highlightLineMarker.start.column=S.column,_._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(_){var S=this.session;if(S.$selectionMarker&&S.removeMarker(S.$selectionMarker),S.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var R=this.selection.getRange(),O=this.getSelectionStyle();S.$selectionMarker=S.addMarker(R,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,S=this.getSelectionRange();if(!(S.isEmpty()||S.isMultiLine())){var R=S.start.column,O=S.end.column,F=_.getLine(S.start.row),z=F.substring(R,O);if(!(z.length>5e3||!/[\w\d]/.test(z))){var j=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:z}),V=F.substring(R-1,O+1);if(j.test(V))return j}}},$.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(_){this.renderer.updateText(),this._emit("changeMode",_)},$.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 _=this.getSelectedText(),S=this.session.doc.getNewLineCharacter(),R=!1;if(!_&&this.$copyWithEmptySelection){R=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var z=O[F];F&&O[F-1].start.row==z.start.row||(_+=this.session.getLine(z.start.row)+S)}}var j={text:_};return this._signal("copy",j),E.lineMode=R?j.text:!1,j.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(_,S){var R={text:_,event:S};this.commands.exec("paste",this,R)},$.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var S=_.text,R=S===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)R?O.insert({row:this.selection.lead.row,column:0},S):this.insert(S);else if(R)this.selection.rangeList.ranges.forEach(function(J){O.insert({row:J.start.row,column:0},S)});else{var F=S.split(/\r\n|\r|\n/),z=this.selection.rangeList.ranges,j=F.length==2&&(!F[0]||!F[1]);if(F.length!=z.length||j)return this.commands.exec("insertstring",this,S);for(var V=z.length;V--;){var q=z[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},$.prototype.execCommand=function(_,S){return this.commands.exec(_,this,S)},$.prototype.insert=function(_,S){var R=this.session,O=R.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!S){var z=O.transformAction(R.getState(F.row),"insertion",this,R,_);z&&(_!==z.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=z.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
203
+ `)==-1){var j=g.fromPoints(F,F);j.end.column+=_.length,this.session.remove(j)}}else{var j=this.getSelectionRange();F=this.session.remove(j),this.clearSelection()}if(_==`
204
+ `||_==`\r
205
+ `){var G=R.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);R.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,J=R.getState(F.row),G=R.getLine(F.row),Q=O.checkOutdent(J,G,_);if(R.insert(F,_),z&&z.selection&&(z.selection.length==2?this.selection.setSelectionRange(new g(F.row,q+z.selection[0],F.row,q+z.selection[1])):this.selection.setSelectionRange(new g(F.row+z.selection[0],z.selection[1],F.row+z.selection[2],z.selection[3]))),this.$enableAutoIndent){if(R.getDocument().isNewLine(_)){var ie=O.getNextLineIndent(J,G.slice(0,F.column),R.getTabString());R.insert({row:F.row+1,column:0},ie)}Q&&O.autoOutdent(J,R,F.row)}},$.prototype.autoIndent=function(){for(var _=this.session,S=_.getMode(),R=this.selection.isEmpty()?[new g(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",z="",j=_.getTabString(),V=0;V<R.length;V++)for(var q=R[V].start.row,J=R[V].end.row,G=q;G<=J;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),z=S.getNextLineIndent(O,F,j));var Q=_.getLine(G),ie=S.$getIndent(Q);if(z!==ie){if(ie.length>0){var X=new g(G,0,G,ie.length);_.remove(X)}z.length>0&&_.insert({row:G,column:0},z)}S.autoOutdent(O,_,G)}},$.prototype.onTextInput=function(_,S){if(!S)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var R=this.applyComposition.bind(this,_,S);this.selection.rangeCount?this.forEachSelection(R):R(),this.endOperation()},$.prototype.applyComposition=function(_,S){if(S.extendLeft||S.extendRight){var R=this.selection.getRange();R.start.column-=S.extendLeft,R.end.column+=S.extendRight,R.start.column<0&&(R.start.row--,R.start.column+=this.session.getLine(R.start.row).length+1),this.selection.setRange(R),!_&&!R.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),S.restoreStart||S.restoreEnd){var R=this.selection.getRange();R.start.column-=S.restoreStart,R.end.column-=S.restoreEnd,this.selection.setRange(R)}},$.prototype.onCommandKey=function(_,S,R){return this.keyBinding.onCommandKey(_,S,R)},$.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var S=this.getSelectionRange();if(this.getBehavioursEnabled()){var R=this.session,O=R.getState(S.start.row),F=R.getMode().transformAction(O,"deletion",this,R,S);if(S.end.column===0){var z=R.getTextRange(S);if(z[z.length-1]==`
206
+ `){var j=R.getLine(S.end.row);/^\s+$/.test(j)&&(S.end.column=j.length)}}F&&(S=F)}this.session.remove(S),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 _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
207
+ `),this.moveCursorToPosition(_)},$.prototype.setGhostText=function(_,S){this.renderer.setGhostText(_,S)},$.prototype.removeGhostText=function(){this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),S=_.column;if(S!==0){var R=this.session.getLine(_.row),O,F;S<R.length?(O=R.charAt(S)+R.charAt(S-1),F=new g(_.row,S-1,_.row,S+1)):(O=R.charAt(S-1)+R.charAt(S-2),F=new g(_.row,S-2,_.row,S)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},$.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),R=this.session.getTextRange(S);this.session.replace(S,R.toLowerCase()),this.selection.setSelectionRange(_)},$.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),R=this.session.getTextRange(S);this.session.replace(S,R.toUpperCase()),this.selection.setSelectionRange(_)},$.prototype.indent=function(){var _=this.session,S=this.getSelectionRange();if(S.start.row<S.end.row){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}else if(S.start.column<S.end.column){var O=_.getTextRange(S);if(!/^\s+$/.test(O)){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}}var F=_.getLine(S.start.row),z=S.start,j=_.getTabSize(),V=_.documentToScreenColumn(z.row,z.column);if(this.session.getUseSoftTabs())var q=j-V%j,J=h.stringRepeat(" ",q);else{for(var q=V%j;F[S.start.column-1]==" "&&q;)S.start.column--,q--;this.selection.setSelectionRange(S),J=" "}return this.insert(J)},$.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},$.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},$.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),S=this.session,R=[],O=_.first;O<=_.last;O++)R.push(S.getLine(O));R.sort(function(j,V){return j.toLowerCase()<V.toLowerCase()?-1:j.toLowerCase()>V.toLowerCase()?1:0});for(var F=new g(0,0,0,0),O=_.first;O<=_.last;O++){var z=S.getLine(O);F.start.row=O,F.end.row=O,F.end.column=z.length,S.replace(F,R[O-_.first])}},$.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),S=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,S.first,S.last)},$.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),S=this.session.getState(_.row),R=this.getSelectionRange();this.session.getMode().toggleBlockComment(S,this.session,R,_)},$.prototype.getNumberAt=function(_,S){var R=/[\-]?[0-9]+(?:\.[0-9]+)?/g;R.lastIndex=0;for(var O=this.session.getLine(_);R.lastIndex<S;){var F=R.exec(O);if(F.index<=S&&F.index+F[0].length>=S){var z={value:F[0],start:F.index,end:F.index+F[0].length};return z}}return null},$.prototype.modifyNumber=function(_){var S=this.selection.getCursor().row,R=this.selection.getCursor().column,O=new g(S,R-1,S,R),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var z=this.getNumberAt(S,R);if(z){var j=z.value.indexOf(".")>=0?z.start+z.value.indexOf(".")+1:z.end,V=z.start+z.value.length-j,q=parseFloat(z.value);q*=Math.pow(10,V),j!==z.end&&R<j?_*=Math.pow(10,z.end-R-1):_*=Math.pow(10,z.end-R),q+=_,q/=Math.pow(10,V);var J=q.toFixed(V),G=new g(S,z.start,S,z.end);this.session.replace(G,J),this.moveCursorTo(S,Math.max(z.start+1,R+J.length-z.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var _=this.selection.getCursor().row,S=this.selection.getCursor().column;this.selection.selectWord();var R=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=R.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),z=S-O-1;z<0&&(z=0);var j=0,V=0,q=this;R.match(/[A-Za-z0-9_]+/)&&F.forEach(function(fe,$e){V=j+fe.length,z>=j&&z<=V&&(R=fe,q.selection.clearSelection(),q.moveCursorTo(_,j+O),q.selection.selectTo(_,V+O)),j=V});for(var J=this.$toggleWordPairs,G,Q=0;Q<J.length;Q++)for(var ie=J[Q],X=0;X<=1;X++){var ae=+!X,me=R.match(new RegExp("^\\s?_?("+h.escapeRegExp(ie[X])+")\\s?$","i"));if(me){var ye=R.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(me[1])+")($|\\s)","g"));ye&&(G=R.replace(new RegExp(h.escapeRegExp(ie[X]),"i"),function(fe){var $e=ie[ae];return fe.toUpperCase()==fe?$e=$e.toUpperCase():fe.charAt(0).toUpperCase()==fe.charAt(0)&&($e=$e.substr(0,0)+ie[ae].charAt(0).toUpperCase()+$e.substr(1)),$e}),this.insert(G),G="")}}},$.prototype.findLinkAt=function(_,S){var R,O,F=this.session.getLine(_),z=F.split(/((?:https?|ftp):\/\/[\S]+)/),j=S;j<0&&(j=0);var V=0,q=0,J;try{for(var G=p(z),Q=G.next();!Q.done;Q=G.next()){var ie=Q.value;if(q=V+ie.length,j>=V&&j<=q&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){J=ie.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(X){R={error:X}}finally{try{Q&&!Q.done&&(O=G.return)&&O.call(G)}finally{if(R)throw R.error}}return J},$.prototype.openLink=function(){var _=this.selection.getCursor(),S=this.findLinkAt(_.row,_.column);return S&&window.open(S,"_blank"),S!=null},$.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var _=this.selection,S=this.session,R=_.getRange(),O=_.isBackwards();if(R.isEmpty()){var F=R.start.row;S.duplicateLines(F,F)}else{var z=O?R.start:R.end,j=S.insert(z,S.getTextRange(R));R.start=z,R.end=j,_.setSelectionRange(R,O)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(_,S,R){return this.session.moveText(_,S,R)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(_,S){var R,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var z=F.toOrientedRange();R=this.$getSelectedRows(z),O=this.session.$moveLines(R.first,R.last,S?0:_),S&&_==-1&&(O=0),z.moveBy(O,0),F.fromOrientedRange(z)}else{var j=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,J=j.length,G=0;G<J;G++){var Q=G;j[G].moveBy(V,0),R=this.$getSelectedRows(j[G]);for(var ie=R.first,X=R.last;++G<J;){q&&j[G].moveBy(q,0);var ae=this.$getSelectedRows(j[G]);if(S&&ae.first!=X||!S&&ae.first>X+1)break;X=ae.last}for(G--,V=this.session.$moveLines(ie,X,S?0:_),S&&_==-1&&(Q=G+1);Q<=G;)j[Q].moveBy(V,0),Q++;S||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},$.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},$.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(_,S){var R=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);S===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):S===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var z=R.scrollTop;R.scrollBy(0,F*O.lineHeight),S!=null&&R.scrollCursorIntoView(null,.5),R.animateScrolling(z)},$.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(_){this.renderer.scrollToRow(_)},$.prototype.scrollToLine=function(_,S,R,O){this.renderer.scrollToLine(_,S,R,O)},$.prototype.centerSelection=function(){var _=this.getSelectionRange(),S={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor(S,.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(_,S){this.selection.moveCursorTo(_,S)},$.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},$.prototype.jumpToMatching=function(_,S){var R=this.getCursorPosition(),O=new k(this.session,R.row,R.column),F=O.getCurrentToken(),z=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var j=F||O.stepForward();if(j){var V,q=!1,J={},G=R.column-j.start,Q,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(j.value.match(/[{}()\[\]]/g)){for(;G<j.value.length&&!q;G++)if(ie[j.value[G]])switch(Q=ie[j.value[G]]+"."+j.type.replace("rparen","lparen"),isNaN(J[Q])&&(J[Q]=0),j.value[G]){case"(":case"[":case"{":J[Q]++;break;case")":case"]":case"}":J[Q]--,J[Q]===-1&&(V="bracket",q=!0);break}}else j.type.indexOf("tag-name")!==-1&&(isNaN(J[j.value])&&(J[j.value]=0),F.value==="<"&&z>1?J[j.value]++:F.value==="</"&&J[j.value]--,J[j.value]===-1&&(V="tag",q=!0));q||(F=j,z++,j=O.stepForward(),G=0)}while(j&&!q);if(V){var X,ae;if(V==="bracket")X=this.session.getBracketRange(R),X||(X=new g(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=X.start,(S||ae.row===R.row&&Math.abs(ae.column-R.column)<2)&&(X=this.session.getBracketRange(ae)));else if(V==="tag"){if(!j||j.type.indexOf("tag-name")===-1)return;if(X=new g(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),X.compare(R.row,R.column)===0){var me=this.session.getMatchingTags(R);me&&(me.openTag.contains(R.row,R.column)?(X=me.closeTag,ae=X.start):(X=me.openTag,me.closeTag.start.row===R.row&&me.closeTag.start.column===R.column?ae=X.end:ae=X.start))}ae=ae||X.start}ae=X&&X.cursor||ae,ae&&(_?X&&S?this.selection.setRange(X):X&&X.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},$.prototype.gotoLine=function(_,S,R){this.selection.clearSelection(),this.session.unfold({row:_-1,column:S||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,S||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,R)},$.prototype.navigateTo=function(_,S){this.selection.moveTo(_,S)},$.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var S=this.selection.anchor.getPosition();return this.moveCursorToPosition(S)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},$.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var S=this.selection.anchor.getPosition();return this.moveCursorToPosition(S)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},$.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var S=this.getSelectionRange().start;this.moveCursorToPosition(S)}this.clearSelection()},$.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var S=this.getSelectionRange().end;this.moveCursorToPosition(S)}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(_,S){S&&this.$search.set(S);var R=this.$search.find(this.session),O=0;return R&&(this.$tryReplace(R,_)&&(O=1),this.selection.setSelectionRange(R),this.renderer.scrollSelectionIntoView(R.start,R.end)),O},$.prototype.replaceAll=function(_,S){S&&this.$search.set(S);var R=this.$search.findAll(this.session),O=0;if(!R.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var z=R.length-1;z>=0;--z)this.$tryReplace(R[z],_)&&O++;return this.selection.setSelectionRange(F),O},$.prototype.$tryReplace=function(_,S){var R=this.session.getTextRange(_);return S=this.$search.replace(R,S),S!==null?(_.end=this.session.replace(_,S),_):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(_,S,R){S||(S={}),typeof _=="string"||_ instanceof RegExp?S.needle=_:typeof _=="object"&&v.mixin(S,_);var O=this.selection.getRange();S.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set(S),S.start||this.$search.set({start:O});var F=this.$search.find(this.session);if(S.preventScroll)return F;if(F)return this.revealRange(F,R),F;S.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},$.prototype.findNext=function(_,S){this.find({skipCurrent:!0,backwards:!1},_,S)},$.prototype.findPrevious=function(_,S){this.find(_,{skipCurrent:!0,backwards:!0},S)},$.prototype.revealRange=function(_,S){this.session.unfold(_),this.selection.setSelectionRange(_);var R=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),S!==!1&&this.renderer.animateScrolling(R)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},$.prototype.setAutoScrollEditorIntoView=function(_){if(_){var S,R=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var z=this.on("changeSelection",function(){O=!0}),j=this.renderer.on("beforeRender",function(){O&&(S=R.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&S&&(R.isFocused()||R.searchBox&&R.searchBox.isFocused())){var q=R.renderer,J=q.$cursorLayer.$pixelPos,G=q.layerConfig,Q=J.top-G.offset;J.top>=0&&Q+S.top<0?O=!0:J.top<G.height&&J.top+S.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Q+"px",F.style.left=J.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=S=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",z),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",j))}}},$.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",S=this.renderer.$cursorLayer;S&&(S.setSmoothBlinking(/smooth/.test(_)),S.isBlinking=!this.$readOnly&&_!="wide",w.setCssClass(S.element,"ace_slim-cursors",/slim/.test(_)))},$.prototype.prompt=function(_,S,R){var O=this;A.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,S,R)})},$}();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"],["&&","||"],["==","!="]],v.implement(M.prototype,y),A.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($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?N.attach(this):N.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var S=w.createElement("div");S.className="ace_placeholder",S.textContent=this.$placeholder||"",this.renderer.placeholderNode=S,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},S=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},R;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(f.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",S.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",T("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),R||(R=new x(this)),R.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",S.bind(this)),this.commands.removeCommand(_),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),R&&R.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 N={getText:function($,_){return(Math.abs($.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function($,_,S){return Math.max(_.toString().length,(S.lastRow+1).toString().length,2)*S.characterWidth},update:function($,_){_.renderer.$loop.schedule(_.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,$)}};i.Editor=M}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("../lib/dom"),v=function(){function w(h,f){this.element=h,this.canvasHeight=f||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){p.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,f){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,f,s){var l=f.firstRowScreen*f.lineHeight,a=Math.floor(l/this.canvasHeight),c=s.documentToScreenRow(h,0)*f.lineHeight;return c-a*this.canvasHeight},w.prototype.computeLineHeight=function(h,f,s){return f.lineHeight*s.getRowLineCount(h)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(h){return this.cells[h]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var f=p.createFragment(this.element),s=0;s<h.length;s++)f.appendChild(h[s].element);this.element.appendChild(f)}else this.cells.push(h),this.element.appendChild(h.element)},w.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var f=p.createFragment(this.element),s=0;s<h.length;s++)f.appendChild(h[s].element);this.element.firstChild?this.element.insertBefore(f,this.element.firstChild):this.element.appendChild(f)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},w.prototype.createCell=function(h,f,s,l){var a=this.cellCache.pop();if(!a){var c=p.createElement("div");l&&l(c),this.element.appendChild(c),a={element:c,text:"",row:h}}return a.row=h,a},w}();i.Lines=v}),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(e,i,m){var p=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,f=e("./lines").Lines,s=e("../config").nls,l=function(){function c(o){this.element=p.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new f(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},c.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},c.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var g=o[u],y=g.row,b=this.$annotations[y];b||(b=this.$annotations[y]={text:[],type:[],displayText:[]});var L=g.text,A=g.text,k=g.type;L=L?w.escapeHTML(L):g.html||"",A=A||g.html||"",b.text.indexOf(L)===-1&&(b.text.push(L),b.type.push(k),b.displayText.push(A));var x=g.className;x?b.className=x:k==="error"?b.className=" ace_error":k==="security"&&!/\bace_error\b/.test(b.className)?b.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(b.className)?b.className=" ace_warning":k==="info"&&!b.className?b.className=" ace_info":k==="hint"&&!b.className&&(b.className=" ace_hint")}},c.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,g=o.end.row-u;if(g!==0)if(o.action=="remove")this.$annotations.splice(u,g+1,null);else{var y=new Array(g+1);y.unshift(u,1),this.$annotations.splice.apply(this.$annotations,y)}}},c.prototype.update=function(o){this.config=o;var u=this.session,g=o.firstRow,y=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=y,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var b=u.getNextFoldLine(g),L=b?b.start.row:1/0,A=null,k=-1,x=g;;){if(x>L&&(x=b.end.row+1,b=u.getNextFoldLine(x,b),L=b?b.start.row:1/0),x>y){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}A=this.$lines.get(++k),A?A.row=x:(A=this.$lines.createCell(x,o,this.session,a),this.$lines.push(A)),this.$renderCell(A,o,b,x),x++}this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$updateGutterWidth=function(o){var u=this.session,g=u.gutterRenderer||this.$renderer,y=u.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(b=u.getLength()+y-1);var L=g?g.getWidth(u,b,o):b.toString().length*o.characterWidth,A=this.$padding||this.$computePadding();L+=A.left+A.right,L!==this.gutterWidth&&!isNaN(L)&&(this.gutterWidth=L,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",L))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var g=0;g<u.length;g++){var y=u[g];if(y.row>=this.$cursorRow){if(y.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(g>0&&b&&b.start.row==u[g-1].row)y=u[g-1];else break}y.element.className="ace_gutter-active-line "+y.element.className,this.$cursorCell=y;break}}}}},c.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var g=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),y=this.oldLastRow;if(this.oldLastRow=g,!u||y<o.firstRow)return this.update(o);if(g<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var b=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);b>0;b--)this.$lines.shift();if(y>g)for(var b=this.session.getFoldedRowCount(g+1,y);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),g>y&&this.$lines.push(this.$renderLines(o,y+1,g)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$renderLines=function(o,u,g){for(var y=[],b=u,L=this.session.getNextFoldLine(b),A=L?L.start.row:1/0;b>A&&(b=L.end.row+1,L=this.session.getNextFoldLine(b,L),A=L?L.start.row:1/0),!(b>g);){var k=this.$lines.createCell(b,o,this.session,a);this.$renderCell(k,o,L,b),y.push(k),b++}return y},c.prototype.$renderCell=function(o,u,g,y){var b=o.element,L=this.session,A=b.childNodes[0],k=b.childNodes[1],x=b.childNodes[2],T=x.firstChild,E=L.$firstLineNumber,I=L.$breakpoints,M=L.$decorations,N=L.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&L.foldWidgets,_=g?g.start.row:Number.MAX_VALUE,S=u.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(L,y):y+E).toString();if(this.$highlightGutterLine&&(y==this.$cursorRow||g&&y<this.$cursorRow&&y>=_&&this.$cursorRow<=g.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),I[y]&&(R+=I[y]),M[y]&&(R+=M[y]),this.$annotations[y]&&y!==_&&(R+=this.$annotations[y].className),$){var z=$[y];z==null&&(z=$[y]=L.getFoldWidget(y))}if(z){var j="ace_fold-widget ace_"+z,V=z=="start"&&y==_&&y<g.end.row;if(V){j+=" ace_closed";for(var q="",J=!1,G=y+1;G<=g.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){J=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(J=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(J=!0,q=" ace_warning_fold")}R+=q}else j+=" ace_open";k.className!=j&&(k.className=j),p.setStyle(k.style,"height",S),p.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Q=L.getFoldWidgetRange(y);Q?k.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Q.start.row+1,Q.end.row+1])):g?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[g.start.row+1,g.end.row+1])):k.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[y+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else k&&(p.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(J&&this.$showFoldedAnnotations){x.className="ace_gutter_annotation",T.className=O,T.className+=q,p.setStyle(T.style,"height",S),p.setStyle(x.style,"display","block"),p.setStyle(x.style,"height",S);var ie;switch(q){case" ace_error_fold":ie=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":ie=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":ie=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}x.setAttribute("aria-label",ie),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else if(this.$annotations[y]){x.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[y].className:b.classList.add(this.$annotations[y].className.replace(" ","")),p.setStyle(T.style,"height",S),p.setStyle(x.style,"display","block"),p.setStyle(x.style,"height",S);var ie;switch(this.$annotations[y].className){case" ace_error":ie=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":ie=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":ie=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":ie=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":ie=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}x.setAttribute("aria-label",ie),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else p.setStyle(x.style,"display","none"),x.removeAttribute("aria-label"),x.removeAttribute("role"),x.setAttribute("tabindex","0");return F!==A.data&&(A.data=F),b.className!=R&&(b.className=R),p.setStyle(o.element.style,"height",this.$lines.computeLineHeight(y,u,L)+"px"),p.setStyle(o.element.style,"top",this.$lines.computeLineTop(y,u,L)+"px"),o.text=F,x.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},c.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},c.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(o){o?p.addCssClass(this.element,"ace_folding-enabled"):p.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=p.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},c.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),g=this.element.getBoundingClientRect();if(o.x<u.left+g.left)return"markers";if(this.$showFoldWidgets&&o.x>g.right-u.right)return"foldWidgets"},c}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,v.implement(l.prototype,h);function a(c){var o=document.createTextNode("");c.appendChild(o);var u=p.createElement("span");c.appendChild(u);var g=p.createElement("span");c.appendChild(g);var y=p.createElement("span");return g.appendChild(y),c}i.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,i,m){var p=e("../range").Range,v=e("../lib/dom"),w=function(){function f(s){this.element=v.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return f.prototype.setPadding=function(s){this.$padding=s},f.prototype.setSession=function(s){this.session=s},f.prototype.setMarkers=function(s){this.markers=s},f.prototype.elt=function(s,l){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=l,a.className=s},f.prototype.update=function(s){if(s){this.config=s,this.i=0;var l;for(var a in this.markers){var c=this.markers[a];if(!c.range){c.update(l,this,this.session,s);continue}var o=c.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),c.renderer){var u=this.$getTop(o.start.row,s),g=this.$padding+o.start.column*s.characterWidth;c.renderer(l,o,g,u,s)}else c.type=="fullLine"?this.drawFullLineMarker(l,o,c.clazz,s):c.type=="screenLine"?this.drawScreenLineMarker(l,o,c.clazz,s):o.isMultiLine()?c.type=="text"?this.drawTextMarker(l,o,c.clazz,s):this.drawMultiLineMarker(l,o,c.clazz,s):this.drawSingleLineMarker(l,o,c.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},f.prototype.$getTop=function(s,l){return(s-l.firstRowScreen)*l.lineHeight},f.prototype.drawTextMarker=function(s,l,a,c,o){for(var u=this.session,g=l.start.row,y=l.end.row,b=g,L=0,A=0,k=u.getScreenLastRowColumn(b),x=new p(b,l.start.column,b,A);b<=y;b++)x.start.row=x.end.row=b,x.start.column=b==g?l.start.column:u.getRowWrapIndent(b),x.end.column=k,L=A,A=k,k=b+1<y?u.getScreenLastRowColumn(b+1):b==y?0:l.end.column,this.drawSingleLineMarker(s,x,a+(b==g?" ace_start":"")+" ace_br"+h(b==g||b==g+1&&l.start.column,L<A,A>k,b==y),c,b==y?0:1,o)},f.prototype.drawMultiLineMarker=function(s,l,a,c,o){var u=this.$padding,g=c.lineHeight,y=this.$getTop(l.start.row,c),b=u+l.start.column*c.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var L=l.clone();L.end.row=L.start.row,L.end.column=this.session.getLine(L.start.row).length,this.drawBidiSingleLineMarker(s,L,a+" ace_br1 ace_start",c,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+g+"px;right:"+u+"px;top:"+y+"px;left:"+b+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var L=l.clone();L.start.row=L.end.row,L.start.column=0,this.drawBidiSingleLineMarker(s,L,a+" ace_br12",c,null,o)}else{y=this.$getTop(l.end.row,c);var A=l.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+g+"px;width:"+A+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}if(g=(l.end.row-l.start.row-1)*c.lineHeight,!(g<=0)){y=this.$getTop(l.start.row+1,c);var k=(l.start.column?1:0)|(l.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+g+"px;right:"+u+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}},f.prototype.drawSingleLineMarker=function(s,l,a,c,o,u){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(s,l,a,c,o,u);var g=c.lineHeight,y=(l.end.column+(o||0)-l.start.column)*c.characterWidth,b=this.$getTop(l.start.row,c),L=this.$padding+l.start.column*c.characterWidth;this.elt(a,"height:"+g+"px;width:"+y+"px;top:"+b+"px;left:"+L+"px;"+(u||""))},f.prototype.drawBidiSingleLineMarker=function(s,l,a,c,o,u){var g=c.lineHeight,y=this.$getTop(l.start.row,c),b=this.$padding,L=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);L.forEach(function(A){this.elt(a,"height:"+g+"px;width:"+(A.width+(o||0))+"px;top:"+y+"px;left:"+(b+A.left)+"px;"+(u||""))},this)},f.prototype.drawFullLineMarker=function(s,l,a,c,o){var u=this.$getTop(l.start.row,c),g=c.lineHeight;l.start.row!=l.end.row&&(g+=this.$getTop(l.end.row,c)-u),this.elt(a,"height:"+g+"px;top:"+u+"px;left:0;right:0;"+(o||""))},f.prototype.drawScreenLineMarker=function(s,l,a,c,o){var u=this.$getTop(l.start.row,c),g=c.lineHeight;this.elt(a,"height:"+g+"px;top:"+u+"px;left:0;right:0;"+(o||""))},f}();w.prototype.$padding=0;function h(f,s,l,a){return(f?1:0)|(s?2:0)|(l?4:0)|(a?8:0)}i.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,i,m){var p=new Set(["text","rparen","lparen"]);i.isTextToken=function(v){return p.has(v)}}),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(e,i,m){var p=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,f=e("../lib/event_emitter").EventEmitter,s=e("../config").nls,l=e("./text_util").isTextToken,a=function(){function c(o){this.dom=v,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return c.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
208
+ `&&o.getNewLineMode()!="windows",g=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=g)return this.EOL_CHAR=g,!0},c.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},c.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},c.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],g=1;g<o+1;g++)if(this.showTabs){var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_tab",y.textContent=w.stringRepeat(this.TAB_CHAR,g),u.push(y)}else u.push(this.dom.createTextNode(w.stringRepeat(" ",g),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",L=this.showSpaces?" ace_invisible ace_invisible_space":"",A=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",x=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):A,y=this.dom.createElement("span");y.className=b+L,y.textContent=A,this.$tabStrings[" "]=y;var y=this.dom.createElement("span");y.className=b+k,y.textContent=x,this.$tabStrings[" "]=y}},c.prototype.updateLines=function(o,u,g){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var y=Math.max(u,o.firstRow),b=Math.min(g,o.lastRow),L=this.element.childNodes,A=0,k=o.firstRow;k<y;k++){var x=this.session.getFoldLine(k);if(x)if(x.containsRow(y)){y=x.start.row;break}else k=x.end.row;A++}for(var T=!1,k=y,x=this.session.getNextFoldLine(k),E=x?x.start.row:1/0;k>E&&(k=x.end.row+1,x=this.session.getNextFoldLine(k,x),E=x?x.start.row:1/0),!(k>b);){var I=L[A++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==E?x:!1),T&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var M=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=M&&(T=!0,I.style.height=M)}k++}if(T)for(;A<this.$lines.cells.length;){var N=this.$lines.cells[A++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},c.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var g=o.lastRow,y=u?u.lastRow:-1;if(!u||y<o.firstRow)return this.update(o);if(g<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var b=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);b>0;b--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var b=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(o,u,g){for(var y=[],b=u,L=this.session.getNextFoldLine(b),A=L?L.start.row:1/0;b>A&&(b=L.end.row+1,L=this.session.getNextFoldLine(b,L),A=L?L.start.row:1/0),!(b>g);){var k=this.$lines.createCell(b,o,this.session),x=k.element;this.dom.removeChildren(x),v.setStyle(x.style,"height",this.$lines.computeLineHeight(b,o,this.session)+"px"),v.setStyle(x.style,"top",this.$lines.computeLineTop(b,o,this.session)+"px"),this.$renderLine(x,b,b==A?L:!1),this.$useLineGroups()?x.className="ace_line_group":x.className="ace_line",y.push(k),b++}return y},c.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,g=o.lastRow,y=this.$lines;y.getLength();)y.pop();y.push(this.$renderLinesFragment(o,u,g))},c.prototype.$renderToken=function(o,u,g,y){for(var b=this,L=/(\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,A=this.dom.createFragment(this.element),k,x=0;k=L.exec(y);){var T=k[1],E=k[2],I=k[3],M=k[4],N=k[5];if(!(!b.showSpaces&&E)){var $=x!=k.index?y.slice(x,k.index):"";if(x=k.index+k[0].length,$&&A.appendChild(this.dom.createTextNode($,this.element)),T){var _=b.session.getScreenTabSize(u+k.index);A.appendChild(b.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(E)if(b.showSpaces){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space",S.textContent=w.stringRepeat(b.SPACE_CHAR,E.length),A.appendChild(S)}else A.appendChild(this.dom.createTextNode(E,this.element));else if(I){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space ace_invalid",S.textContent=w.stringRepeat(b.SPACE_CHAR,I.length),A.appendChild(S)}else if(M){u+=1;var S=this.dom.createElement("span");S.style.width=b.config.characterWidth*2+"px",S.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",S.textContent=b.showSpaces?b.SPACE_CHAR:M,A.appendChild(S)}else if(N){u+=1;var S=this.dom.createElement("span");S.style.width=b.config.characterWidth*2+"px",S.className="ace_cjk",S.textContent=N,A.appendChild(S)}}}if(A.appendChild(this.dom.createTextNode(x?y.slice(x):y,this.element)),l(g.type))o.appendChild(A);else{var R="ace_"+g.type.replace(/\./g," ace_"),S=this.dom.createElement("span");g.type=="fold"&&(S.style.width=g.value.length*this.config.characterWidth+"px",S.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),S.className=R,S.appendChild(A),o.appendChild(S)}return u+y.length},c.prototype.renderIndentGuide=function(o,u,g){var y=u.search(this.$indentGuideRe);if(y<=0||y>=g)return u;if(u[0]==" "){y-=y%this.tabSize;for(var b=y/this.tabSize,L=0;L<b;L++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}else if(u[0]==" "){for(var L=0;L<y;L++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}return this.$highlightIndentGuide(),u},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),g=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,y=Math.floor(g/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:y,start:u.row};var b=this.session.$bracketHighlight;if(b){for(var L=this.session.$bracketHighlight.ranges,A=0;A<L.length;A++)if(u.row!==L[A].start.row){this.$highlightIndentGuideMarker.end=L[A].start.row,u.row>L[A].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var A=u.row+1;A<o.length;A++){var k=o[A],x=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=A,x<=g))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var g=o[u],y=g.element.childNodes;if(y.length>0){for(var b=0;b<y.length;b++)if(y[b].classList&&y[b].classList.contains("ace_indent-guide-active")){y[b].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(o,u){var g=this.session.doc.getLine(o.row);if(g!==""){var y=o.element.childNodes;if(y){var b=y[u-1];b&&b.classList&&b.classList.contains("ace_indent-guide")&&b.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var g=0;g<o.length;g++){var y=o[g];if(this.$highlightIndentGuideMarker.end&&y.row>=this.$highlightIndentGuideMarker.start+1){if(y.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}else for(var g=o.length-1;g>=0;g--){var y=o[g];if(this.$highlightIndentGuideMarker.end&&y.row<this.$highlightIndentGuideMarker.start){if(y.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}}},c.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},c.prototype.$renderWrappedLine=function(o,u,g){var y=0,b=0,L=g[0],A=0,k=this.$createLineElement();o.appendChild(k);for(var x=0;x<u.length;x++){var T=u[x],E=T.value;if(x==0&&this.displayIndentGuides){if(y=E.length,E=this.renderIndentGuide(k,E,L),!E)continue;y-=E.length}if(y+E.length<L)A=this.$renderToken(k,A,T,E),y+=E.length;else{for(;y+E.length>=L;)A=this.$renderToken(k,A,T,E.substring(0,L-y)),E=E.substring(L-y),y=L,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(w.stringRepeat(" ",g.indent),this.element)),b++,A=0,L=g[b]||Number.MAX_VALUE;E.length!=0&&(y+=E.length,A=this.$renderToken(k,A,T,E))}}g[g.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,A,null,"",!0)},c.prototype.$renderSimpleLine=function(o,u){for(var g=0,y=0;y<u.length;y++){var b=u[y],L=b.value;if(!(y==0&&this.displayIndentGuides&&(L=this.renderIndentGuide(o,L),!L))){if(g+L.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,g,b,L);g=this.$renderToken(o,g,b,L)}}},c.prototype.$renderOverflowMessage=function(o,u,g,y,b){g&&this.$renderToken(o,u,g,y.slice(0,this.MAX_LINE_LENGTH-u));var L=this.dom.createElement("span");L.className="ace_inline_button ace_keyword ace_toggle_wrap",L.textContent=b?"<hide>":"<click to see more...>",o.appendChild(L)},c.prototype.$renderLine=function(o,u,g){if(!g&&g!=!1&&(g=this.session.getFoldLine(u)),g)var y=this.$getFoldLineTokens(u,g);else var y=this.session.getTokens(u);var b=o;if(y.length){var L=this.session.getRowSplitData(u);if(L&&L.length){this.$renderWrappedLine(o,y,L);var b=o.lastChild}else{var b=o;this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b)),this.$renderSimpleLine(b,y)}}else this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b));if(this.showEOL&&b){g&&(u=g.end.row);var A=this.dom.createElement("span");A.className="ace_invisible ace_invisible_eol",A.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild(A)}},c.prototype.$getFoldLineTokens=function(o,u){var g=this.session,y=[];function b(A,k,x){for(var T=0,E=0;E+A[T].value.length<k;)if(E+=A[T].value.length,T++,T==A.length)return;if(E!=k){var I=A[T].value.substring(k-E);I.length>x-k&&(I=I.substring(0,x-k)),y.push({type:A[T].type,value:I}),E=k+I.length,T+=1}for(;E<x&&T<A.length;){var I=A[T].value;I.length+E>x?y.push({type:A[T].type,value:I.substring(0,x-E)}):y.push(A[T]),E+=I.length,T+=1}}var L=g.getTokens(o);return u.walk(function(A,k,x,T,E){A!=null?y.push({type:"fold",value:A}):(E&&(L=g.getTokens(k)),L.length&&b(L,T,x))},u.end.row,this.session.getLine(u.end.row).length),y},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,p.implement(a.prototype,f),i.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,i,m){var p=e("../lib/dom"),v=function(){function w(h){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var f=this.cursors,s=f.length;s--;)p.setStyle(f[s].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,f=h.length;f--;)h[f].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,p.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=p.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,p.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&p.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),p.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var f=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),f()},this.blinkInterval),f()}},w.prototype.getPixelPosition=function(h,f){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(h),l=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,h.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(f?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:a}},w.prototype.isCursorInView=function(h,f){return h.top>=0&&h.top<f.maxHeight},w.prototype.update=function(h){this.config=h;var f=this.session.$selectionMarkers,s=0,l=0;(f===void 0||f.length===0)&&(f=[{cursor:null}]);for(var s=0,a=f.length;s<a;s++){var c=this.getPixelPosition(f[s].cursor,!0);if(!((c.top>h.height+h.offset||c.top<0)&&s>1)){var o=this.cursors[l++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,c,h,f[s],this.session):this.isCursorInView(c,h)?(p.setStyle(u,"display","block"),p.translate(o,c.left,c.top),p.setStyle(u,"width",Math.round(h.characterWidth)+"px"),p.setStyle(u,"height",h.lineHeight+"px")):p.setStyle(u,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=c,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w}();v.prototype.$padding=0,v.prototype.drawCursor=null,i.Cursor=v}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,i,m){var p=this&&this.__extends||function(){var o=function(u,g){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&(y[L]=b[L])},o(u,g)};return function(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");o(u,g);function y(){this.constructor=u}u.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),f=e("./lib/event_emitter").EventEmitter,s=32768,l=function(){function o(u,g){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+g,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();v.implement(l.prototype,f);var a=function(o){p(u,o);function u(g,y){var b=o.call(this,g,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,y.$scrollbarWidth=b.width=w.scrollbarWidth(g.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var g=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-g)/(this.coeff-g)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(g){this.element.style.height=g+"px"},u.prototype.setScrollHeight=function(g){this.scrollHeight=g,g>s?(this.coeff=s/g,g=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=g+"px"},u.prototype.setScrollTop=function(g){this.scrollTop!=g&&(this.skipEvent=!0,this.scrollTop=g,this.element.scrollTop=g*this.coeff)},u}(l);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(o){p(u,o);function u(g,y){var b=o.call(this,g,"-h")||this;return b.scrollLeft=0,b.height=y.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(g){this.element.style.width=g+"px"},u.prototype.setInnerWidth=function(g){this.inner.style.width=g+"px"},u.prototype.setScrollWidth=function(g){this.inner.style.width=g+"px"},u.prototype.setScrollLeft=function(g){this.scrollLeft!=g&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=g)},u}(l);i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=c,i.VScrollBar=a,i.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,i,m){var p=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},c(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(o,u);function g(){this.constructor=o}o.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),f=e("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
209
+ position: absolute;
210
+ background: rgba(128, 128, 128, 0.6);
211
+ -moz-box-sizing: border-box;
212
+ box-sizing: border-box;
213
+ border: 1px solid #bbb;
214
+ border-radius: 2px;
215
+ z-index: 8;
216
+ }
217
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
218
+ position: absolute;
219
+ z-index: 6;
220
+ background: none;
221
+ overflow: hidden!important;
222
+ }
223
+ .ace_editor>.ace_sb-v {
224
+ z-index: 6;
225
+ right: 0;
226
+ top: 0;
227
+ width: 12px;
228
+ }
229
+ .ace_editor>.ace_sb-v div {
230
+ z-index: 8;
231
+ right: 0;
232
+ width: 100%;
233
+ }
234
+ .ace_editor>.ace_sb-h {
235
+ bottom: 0;
236
+ left: 0;
237
+ height: 12px;
238
+ }
239
+ .ace_editor>.ace_sb-h div {
240
+ bottom: 0;
241
+ height: 100%;
242
+ }
243
+ .ace_editor>.ace_sb_grabbed {
244
+ z-index: 8;
245
+ background: #000;
246
+ }`,"ace_scrollbar.css",!1);var s=function(){function c(o,u){this.element=w.createElement("div"),this.element.className="ace_sb"+u,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},c}();v.implement(s.prototype,f);var l=function(c){p(o,c);function o(u,g){var y=c.call(this,u,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,y.parent=u,y.width=y.VScrollWidth,y.renderer=g,y.inner.style.width=y.element.style.width=(y.width||15)+"px",y.$minWidth=0,y}return o.prototype.onMouseDown=function(u,g){if(u==="mousedown"&&!(h.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var y=this,b=g.clientY,L=function(M){b=M.clientY},A=function(){clearInterval(E)},k=g.clientY,x=this.thumbTop,T=function(){if(b!==void 0){var M=y.scrollTopFromThumbTop(x+b-k);M!==y.scrollTop&&y._emit("scroll",{data:M})}};h.capture(this.inner,L,A);var E=setInterval(T,20);return h.preventDefault(g)}var I=g.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),h.preventDefault(g)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var g=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return g=g>>0,g<0?g=0:g>this.pageHeight-this.viewHeight&&(g=this.pageHeight-this.viewHeight),g},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,g){this.pageHeight===u&&!g||(this.pageHeight=u,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})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var a=function(c){p(o,c);function o(u,g){var y=c.call(this,u,"-h")||this;return y.scrollLeft=0,y.scrollWidth=0,y.height=y.HScrollHeight,y.inner.style.height=y.element.style.height=(y.height||12)+"px",y.renderer=g,y}return o.prototype.onMouseDown=function(u,g){if(u==="mousedown"&&!(h.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var y=this,b=g.clientX,L=function(M){b=M.clientX},A=function(){clearInterval(E)},k=g.clientX,x=this.thumbLeft,T=function(){if(b!==void 0){var M=y.scrollLeftFromThumbLeft(x+b-k);M!==y.scrollLeft&&y._emit("scroll",{data:M})}};h.capture(this.inner,L,A);var E=setInterval(T,20);return h.preventDefault(g)}var I=g.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),h.preventDefault(g)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var g=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return g=g>>0,g<0?g=0:g>this.pageWidth-this.viewWidth&&(g=this.pageWidth-this.viewWidth),g},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,g){this.pageWidth===u&&!g||(this.pageWidth=u,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})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,i.ScrollBar=l,i.ScrollBarV=l,i.ScrollBarH=a,i.VScrollBar=l,i.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,i,m){var p=e("./lib/event"),v=function(){function w(h,f){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=f||window;var s=this;this._flush=function(l){s.pending=!1;var a=s.changes;if(a&&(p.blockIdle(100),s.changes=0,s.onRender(a)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return w.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var f=this.changes;return this.changes=0,f},w}();i.RenderLoop=v}),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(e,i,m){var p=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),f=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,l=512,a=typeof ResizeObserver=="function",c=200,o=function(){function u(g){this.el=v.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=v.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=v.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",l),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(g,y){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",f.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=y?"hidden":"visible"},u.prototype.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===g.width&&y.height===g.height,this._emit("changeCharacterSize",{data:g})}},u.prototype.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(y){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=h.onIdle(function y(){g.checkForSizeChanges(),h.onIdle(y,500)},500)},u.prototype.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(g){var y={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/l};return y.width===0||y.height===0?null:y},u.prototype.$measureCharWidth=function(g){this.$main.textContent=w.stringRepeat(g,l);var y=this.$main.getBoundingClientRect();return y.width/l},u.prototype.getCharacterWidth=function(g){var y=this.charSizes[g];return y===void 0&&(y=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),y},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(g){return!g||!g.parentElement?1:(Number(window.getComputedStyle(g).zoom)||1)*this.$getZoom(g.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var g=function(y,b){return["div",{style:"position: absolute;top:"+y+"px;left:"+b+"px;"}]};this.els=v.buildDom([g(0,0),g(c,0),g(0,c),g(c,c)],this.el)},u.prototype.transformCoordinates=function(g,y){if(g){var b=this.$getZoom(this.el);g=x(1/b,g)}function L(V,q,J){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*J[0]+q[0]*J[1])/G,(+V[1]*J[0]-V[0]*J[1])/G]}function A(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function x(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var E=T(this.els[0]),I=T(this.els[1]),M=T(this.els[2]),N=T(this.els[3]),$=L(A(N,I),A(N,M),A(k(I,M),k(N,E))),_=x(1+$[0],A(I,E)),S=x(1+$[1],A(M,E));if(y){var R=y,O=$[0]*R[0]/c+$[1]*R[1]/c+1,F=k(x(R[0],_),x(R[1],S));return k(x(1/O/c,F),E)}var z=A(g,E),j=L(A(_,x($[0],z)),A(S,x($[1],z)),z);return x(c,j)},u}();o.prototype.$characterSize={width:0,height:0},p.implement(o.prototype,s),i.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,i,m){m.exports=`
247
+ .ace_br1 {border-top-left-radius : 3px;}
248
+ .ace_br2 {border-top-right-radius : 3px;}
249
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
250
+ .ace_br4 {border-bottom-right-radius: 3px;}
251
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
252
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
253
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
254
+ .ace_br8 {border-bottom-left-radius : 3px;}
255
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
256
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
257
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
258
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
259
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
260
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
261
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
262
+
263
+
264
+ .ace_editor {
265
+ position: relative;
266
+ overflow: hidden;
267
+ padding: 0;
268
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
269
+ direction: ltr;
270
+ text-align: left;
271
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
272
+ forced-color-adjust: none;
273
+ }
274
+
275
+ .ace_scroller {
276
+ position: absolute;
277
+ overflow: hidden;
278
+ top: 0;
279
+ bottom: 0;
280
+ background-color: inherit;
281
+ -ms-user-select: none;
282
+ -moz-user-select: none;
283
+ -webkit-user-select: none;
284
+ user-select: none;
285
+ cursor: text;
286
+ }
287
+
288
+ .ace_content {
289
+ position: absolute;
290
+ box-sizing: border-box;
291
+ min-width: 100%;
292
+ contain: style size layout;
293
+ font-variant-ligatures: no-common-ligatures;
294
+ }
295
+
296
+ .ace_keyboard-focus:focus {
297
+ box-shadow: inset 0 0 0 2px #5E9ED6;
298
+ outline: none;
299
+ }
300
+
301
+ .ace_dragging .ace_scroller:before{
302
+ position: absolute;
303
+ top: 0;
304
+ left: 0;
305
+ right: 0;
306
+ bottom: 0;
307
+ content: '';
308
+ background: rgba(250, 250, 250, 0.01);
309
+ z-index: 1000;
310
+ }
311
+ .ace_dragging.ace_dark .ace_scroller:before{
312
+ background: rgba(0, 0, 0, 0.01);
313
+ }
314
+
315
+ .ace_gutter {
316
+ position: absolute;
317
+ overflow : hidden;
318
+ width: auto;
319
+ top: 0;
320
+ bottom: 0;
321
+ left: 0;
322
+ cursor: default;
323
+ z-index: 4;
324
+ -ms-user-select: none;
325
+ -moz-user-select: none;
326
+ -webkit-user-select: none;
327
+ user-select: none;
328
+ contain: style size layout;
329
+ }
330
+
331
+ .ace_gutter-active-line {
332
+ position: absolute;
333
+ left: 0;
334
+ right: 0;
335
+ }
336
+
337
+ .ace_scroller.ace_scroll-left:after {
338
+ content: "";
339
+ position: absolute;
340
+ top: 0;
341
+ right: 0;
342
+ bottom: 0;
343
+ left: 0;
344
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
345
+ pointer-events: none;
346
+ }
347
+
348
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
349
+ position: absolute;
350
+ top: 0;
351
+ left: 0;
352
+ right: 0;
353
+ padding-left: 19px;
354
+ padding-right: 6px;
355
+ background-repeat: no-repeat;
356
+ }
357
+
358
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
359
+ margin-left: -14px;
360
+ float: left;
361
+ }
362
+
363
+ .ace_gutter-cell .ace_gutter_annotation {
364
+ margin-left: -19px;
365
+ float: left;
366
+ }
367
+
368
+ .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 {
369
+ 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==");
370
+ background-repeat: no-repeat;
371
+ background-position: 2px center;
372
+ }
373
+
374
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
375
+ 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==");
376
+ background-repeat: no-repeat;
377
+ background-position: 2px center;
378
+ }
379
+
380
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
381
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
382
+ background-repeat: no-repeat;
383
+ background-position: 2px center;
384
+ }
385
+
386
+ .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 {
387
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
388
+ }
389
+
390
+ .ace_icon_svg.ace_error {
391
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
392
+ background-color: crimson;
393
+ }
394
+ .ace_icon_svg.ace_security {
395
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
396
+ background-color: crimson;
397
+ }
398
+ .ace_icon_svg.ace_warning {
399
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
400
+ background-color: darkorange;
401
+ }
402
+ .ace_icon_svg.ace_info {
403
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
404
+ background-color: royalblue;
405
+ }
406
+ .ace_icon_svg.ace_hint {
407
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
408
+ background-color: silver;
409
+ }
410
+
411
+ .ace_icon_svg.ace_error_fold {
412
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
413
+ background-color: crimson;
414
+ }
415
+ .ace_icon_svg.ace_security_fold {
416
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
417
+ background-color: crimson;
418
+ }
419
+ .ace_icon_svg.ace_warning_fold {
420
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
421
+ background-color: darkorange;
422
+ }
423
+
424
+ .ace_scrollbar {
425
+ contain: strict;
426
+ position: absolute;
427
+ right: 0;
428
+ bottom: 0;
429
+ z-index: 6;
430
+ }
431
+
432
+ .ace_scrollbar-inner {
433
+ position: absolute;
434
+ cursor: text;
435
+ left: 0;
436
+ top: 0;
437
+ }
438
+
439
+ .ace_scrollbar-v{
440
+ overflow-x: hidden;
441
+ overflow-y: scroll;
442
+ top: 0;
443
+ }
444
+
445
+ .ace_scrollbar-h {
446
+ overflow-x: scroll;
447
+ overflow-y: hidden;
448
+ left: 0;
449
+ }
450
+
451
+ .ace_print-margin {
452
+ position: absolute;
453
+ height: 100%;
454
+ }
455
+
456
+ .ace_text-input {
457
+ position: absolute;
458
+ z-index: 0;
459
+ width: 0.5em;
460
+ height: 1em;
461
+ opacity: 0;
462
+ background: transparent;
463
+ -moz-appearance: none;
464
+ appearance: none;
465
+ border: none;
466
+ resize: none;
467
+ outline: none;
468
+ overflow: hidden;
469
+ font: inherit;
470
+ padding: 0 1px;
471
+ margin: 0 -1px;
472
+ contain: strict;
473
+ -ms-user-select: text;
474
+ -moz-user-select: text;
475
+ -webkit-user-select: text;
476
+ user-select: text;
477
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
478
+ white-space: pre!important;
479
+ }
480
+ .ace_text-input.ace_composition {
481
+ background: transparent;
482
+ color: inherit;
483
+ z-index: 1000;
484
+ opacity: 1;
485
+ }
486
+ .ace_composition_placeholder { color: transparent }
487
+ .ace_composition_marker {
488
+ border-bottom: 1px solid;
489
+ position: absolute;
490
+ border-radius: 0;
491
+ margin-top: 1px;
492
+ }
493
+
494
+ [ace_nocontext=true] {
495
+ transform: none!important;
496
+ filter: none!important;
497
+ clip-path: none!important;
498
+ mask : none!important;
499
+ contain: none!important;
500
+ perspective: none!important;
501
+ mix-blend-mode: initial!important;
502
+ z-index: auto;
503
+ }
504
+
505
+ .ace_layer {
506
+ z-index: 1;
507
+ position: absolute;
508
+ overflow: hidden;
509
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
510
+ word-wrap: normal;
511
+ white-space: pre;
512
+ height: 100%;
513
+ width: 100%;
514
+ box-sizing: border-box;
515
+ /* setting pointer-events: auto; on node under the mouse, which changes
516
+ during scroll, will break mouse wheel scrolling in Safari */
517
+ pointer-events: none;
518
+ }
519
+
520
+ .ace_gutter-layer {
521
+ position: relative;
522
+ width: auto;
523
+ text-align: right;
524
+ pointer-events: auto;
525
+ height: 1000000px;
526
+ contain: style size layout;
527
+ }
528
+
529
+ .ace_text-layer {
530
+ font: inherit !important;
531
+ position: absolute;
532
+ height: 1000000px;
533
+ width: 1000000px;
534
+ contain: style size layout;
535
+ }
536
+
537
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
538
+ contain: style size layout;
539
+ position: absolute;
540
+ top: 0;
541
+ left: 0;
542
+ right: 0;
543
+ }
544
+
545
+ .ace_hidpi .ace_text-layer,
546
+ .ace_hidpi .ace_gutter-layer,
547
+ .ace_hidpi .ace_content,
548
+ .ace_hidpi .ace_gutter {
549
+ contain: strict;
550
+ }
551
+ .ace_hidpi .ace_text-layer > .ace_line,
552
+ .ace_hidpi .ace_text-layer > .ace_line_group {
553
+ contain: strict;
554
+ }
555
+
556
+ .ace_cjk {
557
+ display: inline-block;
558
+ text-align: center;
559
+ }
560
+
561
+ .ace_cursor-layer {
562
+ z-index: 4;
563
+ }
564
+
565
+ .ace_cursor {
566
+ z-index: 4;
567
+ position: absolute;
568
+ box-sizing: border-box;
569
+ border-left: 2px solid;
570
+ /* workaround for smooth cursor repaintng whole screen in chrome */
571
+ transform: translatez(0);
572
+ }
573
+
574
+ .ace_multiselect .ace_cursor {
575
+ border-left-width: 1px;
576
+ }
577
+
578
+ .ace_slim-cursors .ace_cursor {
579
+ border-left-width: 1px;
580
+ }
581
+
582
+ .ace_overwrite-cursors .ace_cursor {
583
+ border-left-width: 0;
584
+ border-bottom: 1px solid;
585
+ }
586
+
587
+ .ace_hidden-cursors .ace_cursor {
588
+ opacity: 0.2;
589
+ }
590
+
591
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
592
+ opacity: 0;
593
+ }
594
+
595
+ .ace_smooth-blinking .ace_cursor {
596
+ transition: opacity 0.18s;
597
+ }
598
+
599
+ .ace_animate-blinking .ace_cursor {
600
+ animation-duration: 1000ms;
601
+ animation-timing-function: step-end;
602
+ animation-name: blink-ace-animate;
603
+ animation-iteration-count: infinite;
604
+ }
605
+
606
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
607
+ animation-duration: 1000ms;
608
+ animation-timing-function: ease-in-out;
609
+ animation-name: blink-ace-animate-smooth;
610
+ }
611
+
612
+ @keyframes blink-ace-animate {
613
+ from, to { opacity: 1; }
614
+ 60% { opacity: 0; }
615
+ }
616
+
617
+ @keyframes blink-ace-animate-smooth {
618
+ from, to { opacity: 1; }
619
+ 45% { opacity: 1; }
620
+ 60% { opacity: 0; }
621
+ 85% { opacity: 0; }
622
+ }
623
+
624
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
625
+ position: absolute;
626
+ z-index: 3;
627
+ }
628
+
629
+ .ace_marker-layer .ace_selection {
630
+ position: absolute;
631
+ z-index: 5;
632
+ }
633
+
634
+ .ace_marker-layer .ace_bracket {
635
+ position: absolute;
636
+ z-index: 6;
637
+ }
638
+
639
+ .ace_marker-layer .ace_error_bracket {
640
+ position: absolute;
641
+ border-bottom: 1px solid #DE5555;
642
+ border-radius: 0;
643
+ }
644
+
645
+ .ace_marker-layer .ace_active-line {
646
+ position: absolute;
647
+ z-index: 2;
648
+ }
649
+
650
+ .ace_marker-layer .ace_selected-word {
651
+ position: absolute;
652
+ z-index: 4;
653
+ box-sizing: border-box;
654
+ }
655
+
656
+ .ace_line .ace_fold {
657
+ box-sizing: border-box;
658
+
659
+ display: inline-block;
660
+ height: 11px;
661
+ margin-top: -2px;
662
+ vertical-align: middle;
663
+
664
+ background-image:
665
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
666
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
667
+ background-repeat: no-repeat, repeat-x;
668
+ background-position: center center, top left;
669
+ color: transparent;
670
+
671
+ border: 1px solid black;
672
+ border-radius: 2px;
673
+
674
+ cursor: pointer;
675
+ pointer-events: auto;
676
+ }
677
+
678
+ .ace_dark .ace_fold {
679
+ }
680
+
681
+ .ace_fold:hover{
682
+ background-image:
683
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
684
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
685
+ }
686
+
687
+ .ace_tooltip {
688
+ background-color: #f5f5f5;
689
+ border: 1px solid gray;
690
+ border-radius: 1px;
691
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
692
+ color: black;
693
+ max-width: 100%;
694
+ padding: 3px 4px;
695
+ position: fixed;
696
+ z-index: 999999;
697
+ box-sizing: border-box;
698
+ cursor: default;
699
+ white-space: pre-wrap;
700
+ word-wrap: break-word;
701
+ line-height: normal;
702
+ font-style: normal;
703
+ font-weight: normal;
704
+ letter-spacing: normal;
705
+ pointer-events: none;
706
+ overflow: auto;
707
+ max-width: min(60em, 66vw);
708
+ overscroll-behavior: contain;
709
+ }
710
+ .ace_tooltip pre {
711
+ white-space: pre-wrap;
712
+ }
713
+
714
+ .ace_tooltip.ace_dark {
715
+ background-color: #636363;
716
+ color: #fff;
717
+ }
718
+
719
+ .ace_tooltip:focus {
720
+ outline: 1px solid #5E9ED6;
721
+ }
722
+
723
+ .ace_icon {
724
+ display: inline-block;
725
+ width: 18px;
726
+ vertical-align: top;
727
+ }
728
+
729
+ .ace_icon_svg {
730
+ display: inline-block;
731
+ width: 12px;
732
+ vertical-align: top;
733
+ -webkit-mask-repeat: no-repeat;
734
+ -webkit-mask-size: 12px;
735
+ -webkit-mask-position: center;
736
+ }
737
+
738
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
739
+ padding-right: 13px;
740
+ }
741
+
742
+ .ace_fold-widget {
743
+ box-sizing: border-box;
744
+
745
+ margin: 0 -12px 0 1px;
746
+ display: none;
747
+ width: 11px;
748
+ vertical-align: top;
749
+
750
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
751
+ background-repeat: no-repeat;
752
+ background-position: center;
753
+
754
+ border-radius: 3px;
755
+
756
+ border: 1px solid transparent;
757
+ cursor: pointer;
758
+ }
759
+
760
+ .ace_folding-enabled .ace_fold-widget {
761
+ display: inline-block;
762
+ }
763
+
764
+ .ace_fold-widget.ace_end {
765
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
766
+ }
767
+
768
+ .ace_fold-widget.ace_closed {
769
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
770
+ }
771
+
772
+ .ace_fold-widget:hover {
773
+ border: 1px solid rgba(0, 0, 0, 0.3);
774
+ background-color: rgba(255, 255, 255, 0.2);
775
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
776
+ }
777
+
778
+ .ace_fold-widget:active {
779
+ border: 1px solid rgba(0, 0, 0, 0.4);
780
+ background-color: rgba(0, 0, 0, 0.05);
781
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
782
+ }
783
+ /**
784
+ * Dark version for fold widgets
785
+ */
786
+ .ace_dark .ace_fold-widget {
787
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
788
+ }
789
+ .ace_dark .ace_fold-widget.ace_end {
790
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
791
+ }
792
+ .ace_dark .ace_fold-widget.ace_closed {
793
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
794
+ }
795
+ .ace_dark .ace_fold-widget:hover {
796
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
797
+ background-color: rgba(255, 255, 255, 0.1);
798
+ }
799
+ .ace_dark .ace_fold-widget:active {
800
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
801
+ }
802
+
803
+ .ace_inline_button {
804
+ border: 1px solid lightgray;
805
+ display: inline-block;
806
+ margin: -1px 8px;
807
+ padding: 0 5px;
808
+ pointer-events: auto;
809
+ cursor: pointer;
810
+ }
811
+ .ace_inline_button:hover {
812
+ border-color: gray;
813
+ background: rgba(200,200,200,0.2);
814
+ display: inline-block;
815
+ pointer-events: auto;
816
+ }
817
+
818
+ .ace_fold-widget.ace_invalid {
819
+ background-color: #FFB4B4;
820
+ border-color: #DE5555;
821
+ }
822
+
823
+ .ace_fade-fold-widgets .ace_fold-widget {
824
+ transition: opacity 0.4s ease 0.05s;
825
+ opacity: 0;
826
+ }
827
+
828
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
829
+ transition: opacity 0.05s ease 0.05s;
830
+ opacity:1;
831
+ }
832
+
833
+ .ace_underline {
834
+ text-decoration: underline;
835
+ }
836
+
837
+ .ace_bold {
838
+ font-weight: bold;
839
+ }
840
+
841
+ .ace_nobold .ace_bold {
842
+ font-weight: normal;
843
+ }
844
+
845
+ .ace_italic {
846
+ font-style: italic;
847
+ }
848
+
849
+
850
+ .ace_error-marker {
851
+ background-color: rgba(255, 0, 0,0.2);
852
+ position: absolute;
853
+ z-index: 9;
854
+ }
855
+
856
+ .ace_highlight-marker {
857
+ background-color: rgba(255, 255, 0,0.2);
858
+ position: absolute;
859
+ z-index: 8;
860
+ }
861
+
862
+ .ace_mobile-menu {
863
+ position: absolute;
864
+ line-height: 1.5;
865
+ border-radius: 4px;
866
+ -ms-user-select: none;
867
+ -moz-user-select: none;
868
+ -webkit-user-select: none;
869
+ user-select: none;
870
+ background: white;
871
+ box-shadow: 1px 3px 2px grey;
872
+ border: 1px solid #dcdcdc;
873
+ color: black;
874
+ }
875
+ .ace_dark > .ace_mobile-menu {
876
+ background: #333;
877
+ color: #ccc;
878
+ box-shadow: 1px 3px 2px grey;
879
+ border: 1px solid #444;
880
+
881
+ }
882
+ .ace_mobile-button {
883
+ padding: 2px;
884
+ cursor: pointer;
885
+ overflow: hidden;
886
+ }
887
+ .ace_mobile-button:hover {
888
+ background-color: #eee;
889
+ opacity:1;
890
+ }
891
+ .ace_mobile-button:active {
892
+ background-color: #ddd;
893
+ }
894
+
895
+ .ace_placeholder {
896
+ position: relative;
897
+ font-family: arial;
898
+ transform: scale(0.9);
899
+ transform-origin: left;
900
+ white-space: pre;
901
+ opacity: 0.7;
902
+ margin: 0 10px;
903
+ z-index: 1;
904
+ }
905
+
906
+ .ace_ghost_text {
907
+ opacity: 0.5;
908
+ font-style: italic;
909
+ }
910
+
911
+ .ace_ghost_text_container > div {
912
+ white-space: pre;
913
+ }
914
+
915
+ .ghost_text_line_wrapped::after {
916
+ content: "↩";
917
+ position: absolute;
918
+ }
919
+
920
+ .ace_lineWidgetContainer.ace_ghost_text {
921
+ margin: 0px 4px
922
+ }
923
+
924
+ .ace_screenreader-only {
925
+ position:absolute;
926
+ left:-10000px;
927
+ top:auto;
928
+ width:1px;
929
+ height:1px;
930
+ overflow:hidden;
931
+ }
932
+
933
+ .ace_hidden_token {
934
+ display: none;
935
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=function(){function f(s,l){this.canvas=p.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return f.prototype.$updateDecorators=function(s){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var a=(s.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function o(N,$){return N.priority<$.priority?-1:N.priority>$.priority?1:0}var u=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),u){var g={info:1,warning:2,error:3};u.forEach(function(N){N.priority=g[N.type]||null}),u=u.sort(o);for(var y=this.renderer.session.$foldData,b=0;b<u.length;b++){var L=u[b].row,A=this.compensateFoldRows(L,y),k=Math.round((L-A)*this.lineHeight*this.heightRatio),x=Math.round((L-A)*this.lineHeight*this.heightRatio),T=Math.round(((L-A)*this.lineHeight+this.lineHeight)*this.heightRatio),E=T-x;if(E<this.minDecorationHeight){var I=(x+T)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),x=Math.round(I-this.halfMinDecorationHeight),T=Math.round(I+this.halfMinDecorationHeight)}c.fillStyle=l[u[b].type]||null,c.fillRect(0,k,this.canvasWidth,T-x)}}var M=this.renderer.session.selection.getCursor();if(M){var A=this.compensateFoldRows(M.row,y),k=Math.round((M.row-A)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,k,this.canvasWidth,2)}},f.prototype.compensateFoldRows=function(s,l){var a=0;if(l&&l.length>0)for(var c=0;c<l.length;c++)s>l[c].start.row&&s<l[c].end.row?a+=s-l[c].start.row:s>=l[c].end.row&&(a+=l[c].end.row-l[c].start.row);return a},f}();v.implement(h.prototype,w),i.Decorator=h}),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(e,i,m){var p=e("./lib/oop"),v=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),f=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,a=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,g=e("./scrollbar_custom").VScrollBar,y=e("./renderloop").RenderLoop,b=e("./layer/font_metrics").FontMetrics,L=e("./lib/event_emitter").EventEmitter,A=e("./css/editor-css"),k=e("./layer/decorators").Decorator,x=e("./lib/useragent"),T=e("./layer/text_util").isTextToken;v.importCssString(A,"ace_editor.css",!1);var E=function(){function I(M,N){var $=this;this.container=M||v.createElement("div"),v.addCssClass(this.container,"ace_editor"),v.HI_DPI&&v.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=v.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=v.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=v.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new f(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new l(this.content);this.canvas=_.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(S){$.$scrollAnimation||$.session.setScrollTop(S.data-$.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){$.$scrollAnimation||$.session.setScrollLeft(S.data-$.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(S){$.updateCharacterSize(),$.onResize(!0,$.gutterWidth,$.$size.width,$.$size.height),$._signal("changeCharacterSize",S)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!x.isIOS,this.$loop=new y(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return I.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(),v.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.prototype.setSession=function(M){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=M,M&&this.scrollMargin.top&&M.getScrollTop()<=0&&M.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(M),this.$markerBack.setSession(M),this.$markerFront.setSession(M),this.$gutterLayer.setSession(M),this.$textLayer.setSession(M),M&&(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))},I.prototype.updateLines=function(M,N,$){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>M&&(this.$changedLines.firstRow=M),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:M,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if($)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(M){M?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(M,N,$,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=M?1:0;var S=this.container;_||(_=S.clientHeight||S.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!S.style.height||S.style.height=="0px")&&(S.style.height="1px",_=S.clientHeight||S.scrollHeight),$||($=S.clientWidth||S.scrollWidth);var R=this.$updateCachedSize(M,N,$,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!_)return this.resizing=0;M&&(this.$gutterLayer.$padding=null),M?this.$renderChanges(R|this.$changes,!0):this.$loop.schedule(R|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(M,N,$,_){_-=this.$extraHeight||0;var S=0,R=this.$size,O={width:R.width,height:R.height,scrollerHeight:R.scrollerHeight,scrollerWidth:R.scrollerWidth};if(_&&(M||R.height!=_)&&(R.height=_,S|=this.CHANGE_SIZE,R.scrollerHeight=R.height,this.$horizScroll&&(R.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(R.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),$&&(M||R.width!=$)){S|=this.CHANGE_SIZE,R.width=$,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,v.setStyle(this.scrollBarH.element.style,"left",N+"px"),v.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),R.scrollerWidth=Math.max(0,$-N-this.scrollBarV.getWidth()-this.margin.h),v.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";v.setStyle(this.scrollBarH.element.style,"right",F),v.setStyle(this.scroller.style,"right",F),v.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(R.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||M)&&(S|=this.CHANGE_FULL)}return R.$dirty=!$||!_,S&&this._signal("resize",O),S},I.prototype.onGutterResize=function(M){var N=this.$showGutter?M:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,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()},I.prototype.adjustWrapLimit=function(){var M=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(M/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(M){this.setOption("animatedScroll",M)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(M){this.setOption("showInvisibles",M),this.session.$bidiHandler.setShowInvisibles(M)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(M){this.setOption("displayIndentGuides",M)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(M){this.setOption("highlightIndentGuides",M)},I.prototype.setShowPrintMargin=function(M){this.setOption("showPrintMargin",M)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(M){this.setOption("printMarginColumn",M)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(M){return this.setOption("showGutter",M)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},I.prototype.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var M=v.createElement("div");M.className="ace_layer ace_print-margin-layer",this.$printMarginEl=v.createElement("div"),this.$printMarginEl.className="ace_print-margin",M.appendChild(this.$printMarginEl),this.content.insertBefore(M,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var M=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){v.translate(this.textarea,-100,0);return}var $=this.$cursorLayer.$pixelPos;if($){N&&N.markerRange&&($=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,S=$.top,R=$.left;S-=_.offset;var O=N&&N.useTextareaForIME||x.isMobile?this.lineHeight:1;if(S<0||S>_.height-O){v.translate(this.textarea,0,0);return}var F=1,z=this.$size.height-O;if(!N)S+=this.lineHeight;else if(N.useTextareaForIME){var j=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(j)[0]}else S+=this.lineHeight+2;R-=this.scrollLeft,R>this.$size.scrollerWidth-F&&(R=this.$size.scrollerWidth-F),R+=this.gutterWidth+this.margin.left,v.setStyle(M,"height",O+"px"),v.setStyle(M,"width",F+"px"),v.translate(this.textarea,Math.min(R,this.$size.scrollerWidth-F),Math.min(S,z))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var M=this.layerConfig,N=M.lastRow,$=this.session.documentToScreenRow(N,0)*M.lineHeight;return $-this.session.getScrollTop()>M.height-M.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(M){this.$padding=M,this.$textLayer.setPadding(M),this.$cursorLayer.setPadding(M),this.$markerFront.setPadding(M),this.$markerBack.setPadding(M),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(M,N,$,_){var S=this.scrollMargin;S.top=M|0,S.bottom=N|0,S.right=_|0,S.left=$|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},I.prototype.setMargin=function(M,N,$,_){var S=this.margin;S.top=M|0,S.bottom=N|0,S.right=_|0,S.left=$|0,S.v=S.top+S.bottom,S.h=S.left+S.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(M){this.setOption("hScrollBarAlwaysVisible",M)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(M){this.setOption("vScrollBarAlwaysVisible",M)},I.prototype.$updateScrollBarV=function(){var M=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(M-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>M-N&&(M=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(M+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(M,N){if(this.$changes&&(M|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!M&&!N){this.$changes|=M;return}if(this.$size.$dirty)return this.$changes|=M,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",M),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(M&this.CHANGE_FULL||M&this.CHANGE_SIZE||M&this.CHANGE_TEXT||M&this.CHANGE_LINES||M&this.CHANGE_SCROLL||M&this.CHANGE_H_SCROLL){if(M|=this.$computeLayerConfig()|this.$loop.clear(),$.firstRow!=this.layerConfig.firstRow&&$.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+($.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,M=M|this.CHANGE_SCROLL,M|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),M&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),v.translate(this.content,-this.scrollLeft,-$.offset);var S=$.width+2*this.$padding+"px",R=$.minHeight+"px";v.setStyle(this.content.style,"width",S),v.setStyle(this.content.style,"height",R)}if(M&this.CHANGE_H_SCROLL&&(v.translate(this.content,-this.scrollLeft,-$.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),M&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}if(M&this.CHANGE_SCROLL){this.$changedLines=null,M&this.CHANGE_TEXT||M&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(M&this.CHANGE_GUTTER||M&this.CHANGE_LINES?this.$gutterLayer.update($):this.$gutterLayer.scrollLines($)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}M&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):M&this.CHANGE_LINES?((this.$updateLines()||M&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):M&this.CHANGE_TEXT||M&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):M&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),M&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",M)},I.prototype.$autosize=function(){var M=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,$=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,M))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var _=$<=2*this.lineHeight,S=!_&&M>N;if($!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var R=this.container.clientWidth;this.container.style.height=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,R,$),this.desiredHeight=$,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var M=this.session,N=this.$size,$=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),S=_*this.lineHeight,R=this.$getLongestLine(),O=!$&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-R-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var z=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var j=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,S-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,R+2*this.$padding-N.scrollerWidth+q.right)));var J=!$&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-S+V<0||this.scrollTop>q.top),G=z!==J;G&&(this.$vScroll=J,this.scrollBarV.setVisible(J));var Q=this.scrollTop%this.lineHeight,ie=Math.ceil(j/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-Q)/this.lineHeight)),ae=X+ie,me,ye,fe=this.lineHeight;X=M.screenToDocumentRow(X,0);var $e=M.getFoldLine(X);$e&&(X=$e.start.row),me=M.documentToScreenRow(X,0),ye=M.getRowLength(X)*fe,ae=Math.min(M.screenToDocumentRow(ae,0),M.getLength()-1),j=N.scrollerHeight+M.getRowLength(ae)*fe+ye,Q=this.scrollTop-me*fe;var ot=0;return(this.layerConfig.width!=R||F)&&(ot=this.CHANGE_H_SCROLL),(F||G)&&(ot|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(R=this.$getLongestLine())),this.layerConfig={width:R,padding:this.$padding,firstRow:X,firstRowScreen:me,lastRow:ae,lineHeight:fe,characterWidth:this.characterWidth,minHeight:j,maxHeight:S,offset:Q,gutterOffset:fe?Math.max(0,Math.ceil((Q+N.height-N.scrollerHeight)/fe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(R-this.$padding),ot},I.prototype.$updateLines=function(){if(this.$changedLines){var M=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(M>$.lastRow+1)&&!(N<$.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,M,N),!0}}},I.prototype.$getLongestLine=function(){var M=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(M+=1),this.$textLayer&&M>this.$textLayer.MAX_LINE_LENGTH&&(M=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(M*this.characterWidth))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(M,N){this.$gutterLayer.addGutterDecoration(M,N)},I.prototype.removeGutterDecoration=function(M,N){this.$gutterLayer.removeGutterDecoration(M,N)},I.prototype.updateBreakpoints=function(M){this._rows=M,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(M){this.$gutterLayer.setAnnotations(M),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(M,N,$){this.scrollCursorIntoView(M,$),this.scrollCursorIntoView(N,$)},I.prototype.scrollCursorIntoView=function(M,N,$){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(M),S=_.left,R=_.top,O=$&&$.top||0,F=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var z=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;z+O>R?(N&&z+O>R+this.lineHeight&&(R-=N*this.$size.scrollerHeight),R===0&&(R=-this.scrollMargin.top),this.session.setScrollTop(R)):z+this.$size.scrollerHeight-F<R+this.lineHeight&&(N&&z+this.$size.scrollerHeight-F<R-this.lineHeight&&(R+=N*this.$size.scrollerHeight),this.session.setScrollTop(R+this.lineHeight+F-this.$size.scrollerHeight));var j=this.scrollLeft,V=2*this.layerConfig.characterWidth;S-V<j?(S-=V,S<this.$padding+V&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=V,j+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):j<=this.$padding&&S-j<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(M){this.session.setScrollTop(M*this.lineHeight)},I.prototype.alignCursor=function(M,N){typeof M=="number"&&(M={row:M,column:0});var $=this.$cursorLayer.getPixelPosition(M),_=this.$size.scrollerHeight-this.lineHeight,S=$.top-_*(N||0);return this.session.setScrollTop(S),S},I.prototype.$calcSteps=function(M,N){var $=0,_=this.STEPS,S=[],R=function(O,F,z){return z*(Math.pow(O-1,3)+1)+F};for($=0;$<_;++$)S.push(R($/this.STEPS,M,N-M));return S},I.prototype.scrollToLine=function(M,N,$,_){var S=this.$cursorLayer.getPixelPosition({row:M,column:0}),R=S.top;N&&(R-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(R),$!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(M,N){var $=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(M==$)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(M=S[0],M==$))return}var R=_.$calcSteps(M,$);this.$scrollAnimation={from:M,to:$,steps:R},clearInterval(this.$timer),_.session.setScrollTop(R.shift()),_.session.$scrollTop=$;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);R.length?(_.session.setScrollTop(R.shift()),_.session.$scrollTop=$):$!=null?(_.session.$scrollTop=-1,_.session.setScrollTop($),$=null):O()},10)},I.prototype.scrollToY=function(M){this.scrollTop!==M&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=M)},I.prototype.scrollToX=function(M){this.scrollLeft!==M&&(this.scrollLeft=M),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(M,N){this.session.setScrollTop(N),this.session.setScrollLeft(M)},I.prototype.scrollBy=function(M,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),M&&this.session.setScrollLeft(this.session.getScrollLeft()+M)},I.prototype.isScrollableBy=function(M,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||M<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||M>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(M,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([M,N]);M=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=M+this.scrollLeft-$.left-this.$padding,R=S/this.characterWidth,O=Math.floor((N+this.scrollTop-$.top)/this.lineHeight),F=this.$blockCursor?Math.floor(R):Math.round(R);return{row:O,column:F,side:R-F>0?1:-1,offsetX:S}},I.prototype.screenToTextCoordinates=function(M,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([M,N]);M=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=M+this.scrollLeft-$.left-this.$padding,R=S/this.characterWidth,O=this.$blockCursor?Math.floor(R):Math.round(R),F=Math.floor((N+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),S)},I.prototype.textToScreenCoordinates=function(M,N){var $=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(M,N),S=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,M)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),R=_.row*this.lineHeight;return{pageX:$.left+S-this.scrollLeft,pageY:$.top+R-this.scrollTop}},I.prototype.visualizeFocus=function(){v.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){v.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(M){this.$composition=M,M.cssText||(M.cssText=this.textarea.style.cssText),M.useTextareaForIME==null&&(M.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(v.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):M.markerId=this.session.addMarker(M.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(M){var N=this.session.selection.cursor;this.addToken(M,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),v.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var M=this.session.selection.cursor;this.removeExtraToken(M.row,M.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(M,N){var $=this.session.selection.cursor,_=N||{row:$.row,column:$.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(M,_);this.addToken(S[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:M,position:{row:_.row,column:_.column}};var R=v.createElement("div");if(S.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;S.slice(1).forEach(function(G){var Q=v.createElement("div"),ie=v.createElement("span");ie.className="ace_ghost_text",G.wrapped&&(Q.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),ie.appendChild(v.createTextNode(G.text)),Q.appendChild(ie),R.appendChild(Q),F=Q}),O.forEach(function(G){var Q=v.createElement("span");T(G.type)||(Q.className="ace_"+G.type.replace(/\./g," ace_")),Q.appendChild(v.createTextNode(G.value)),F.appendChild(Q)}),this.$ghostTextWidget={el:R,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var z=this.$cursorLayer.getPixelPosition(_,!0),j=this.container,V=j.getBoundingClientRect().height,q=S.length*this.lineHeight,J=q<V-z.top;if(J)return;q<V?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(M,N){var $=this.$size.scrollerWidth-this.$padding*2,_=Math.floor($/this.characterWidth)-2;_=_<=0?60:_;for(var S=M.split(/\r?\n/),R=[],O=0;O<S.length;O++){var F=this.session.$getDisplayTokens(S[O],N.column),z=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(z.length>0){var j=0;z.push(S[O].length);for(var V=0;V<z.length;V++){var q=S[O].slice(j,z[V]);R.push({text:q,wrapped:!0}),j=z[V]}}else R.push({text:S[O],wrapped:!1})}return R},I.prototype.removeGhostText=function(){if(this.$ghostText){var M=this.$ghostText.position;this.removeExtraToken(M.row,M.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(M,N,$,_){var S=this.session;S.bgTokenizer.lines[$]=null;var R={type:N,value:M},O=S.getTokens($);if(_==null||!O.length)O.push(R);else for(var F=0,z=0;z<O.length;z++){var j=O[z];if(F+=j.value.length,_<=F){var V=j.value.length-(F-_),q=j.value.slice(0,V),J=j.value.slice(V);O.splice(z,1,{type:j.type,value:q},R,{type:j.type,value:J});break}}this.updateLines($,$)},I.prototype.hideTokensAfterPosition=function(M,N){for(var $=this.session.getTokens(M),_=0,S=!1,R=[],O=0;O<$.length;O++){var F=$[O];if(_+=F.value.length,F.type!=="ghost_text"){if(S){R.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&(S=!0)}}return this.updateLines(M,M),R},I.prototype.removeExtraToken=function(M,N){this.session.bgTokenizer.lines[M]=null,this.updateLines(M,M)},I.prototype.setTheme=function(M,N){var $=this;if(this.$themeId=M,$._dispatchEvent("themeChange",{theme:M}),!M||typeof M=="string"){var _=M||this.$options.theme.initialValue;h.loadModule(["theme",_],S)}else S(M);function S(R){if($.$themeId!=M)return N&&N();if(!R||!R.cssClass)throw new Error("couldn't load module "+M+" or it didn't call define");R.$id&&($.$themeId=R.$id),v.importCssString(R.cssText,R.cssClass,$.container),$.theme&&v.removeCssClass($.container,$.theme.cssClass);var O="padding"in R?R.padding:"padding"in($.theme||{})?4:$.$padding;$.$padding&&O!=$.$padding&&$.setPadding(O),$.$theme=R.cssClass,$.theme=R,v.addCssClass($.container,R.cssClass),v.setCssClass($.container,"ace_dark",R.isDark),$.$size&&($.$size.width=0,$.$updateSizeAsync()),$._dispatchEvent("themeLoaded",{theme:R}),N&&N(),x.isSafari&&$.scroller&&($.scroller.style.background="red",$.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(M,N){v.setCssClass(this.container,M,N!==!1)},I.prototype.unsetStyle=function(M){v.removeCssClass(this.container,M)},I.prototype.setCursorStyle=function(M){v.setStyle(this.scroller.style,"cursor",M)},I.prototype.setMouseCursor=function(M){v.setStyle(this.scroller.style,"cursor",M)},I.prototype.attachToShadowRoot=function(){v.importCssString(A,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(M){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,M===!0?(this.scrollBarV=new g(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollTop($.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollLeft($.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollTop($.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollLeft($.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var M=this;this.$resizeTimer=w.delayedCall(function(){M.destroyed||M.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var $=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(M.$size.width-$)>1||Math.abs(M.$size.height-_)>1?M.$resizeTimer.delay():M.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,p.implement(E.prototype,L),h.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&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(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){v.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!x.isMobile&&!x.isIE}}),i.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function f(c){var o="importScripts('"+v.qualifyURL(c)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,g=new u;return g.append(o),g.getBlob("application/javascript")}}function s(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=f(c),u=window.URL||window.webkitURL,g=u.createObjectURL(o);return new Worker(g)}return new Worker(c)}var l=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,w),this.$createWorkerFromOldConfig=function(c,o,u,g,y){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)g=g||h.moduleUrl(o,"worker");else{var b=this.$normalizePath;g=g||b(e.toUrl("ace/worker/worker.js",null,"_"));var L={};c.forEach(function(A){L[A]=b(e.toUrl(A,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(g),y&&this.send("importScripts",y),this.$worker.postMessage({init:!0,tlns:L,module:o,classname:u}),this.$worker},this.onMessage=function(c){var o=c.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return v.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,o){this.$worker.postMessage({command:c,args:o})},this.call=function(c,o,u){if(u){var g=this.callbackId++;this.callbacks[g]=u,o.push(g)}this.send(c,o)},this.emit=function(c,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(l.prototype);var a=function(c,o,u){var g=null,y=!1,b=Object.create(w),L=[],A=new l({messageBuffer:L,terminate:function(){},postMessage:function(x){L.push(x),g&&(y?setTimeout(k):k())}});A.setEmitSync=function(x){y=x};var k=function(){var x=L.shift();x.command?g[x.command].apply(g,x.args):x.event&&b._signal(x.event,x.data)};return b.postMessage=function(x){A.onMessage({data:x})},b.callback=function(x,T){this.postMessage({type:"call",id:T,data:x})},b.emit=function(x,T){this.postMessage({type:"event",name:x,data:T})},h.loadModule(["worker",o],function(x){for(g=new x[u](b);L.length;)k()}),A};i.UIWorkerClient=a,i.WorkerClient=l,i.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,i,m){var p=e("./range").Range,v=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=function(){function f(s,l,a,c,o,u){var g=this;this.length=l,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=a;var y=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return f.prototype.setup=function(){var s=this,l=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=a.addMarker(new p(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=l.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),s.others.push(u)}),a.setUndoSelect(!1)},f.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,l=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new p(a.row,a.column,a.row,a.column+l.length),l.othersClass,null,!1)})}},f.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},f.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var l=s;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,o=l.start.column-this.pos.column;if(this.updateAnchors(s),c&&(this.length+=a),c&&!this.session.$fromUndo){if(s.action==="insert")for(var u=this.others.length-1;u>=0;u--){var g=this.others[u],y={row:g.row,column:g.column+o};this.doc.insertMergedLines(y,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var g=this.others[u],y={row:g.row,column:g.column+o};this.doc.remove(new p(y.row,y.column,y.row,y.column-a))}}this.$updating=!1,this.updateMarkers()}},f.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var l=this.others.length;l--;)this.others[l].onChange(s);this.updateMarkers()},f.prototype.updateMarkers=function(){if(!this.$updating){var s=this,l=this.session,a=function(o,u){l.removeMarker(o.markerId),o.markerId=l.addMarker(new p(o.row,o.column,o.row,o.column+s.length),u,null,!1)};a(this.pos,this.mainClass);for(var c=this.others.length;c--;)a(this.others[c],this.othersClass)}},f.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},f.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},f.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),l=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<l;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},f}();w.implement(h.prototype,v),i.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var p=e("../lib/event"),v=e("../lib/useragent");function w(f,s){return f.row==s.row&&f.column==s.column}function h(f){var s=f.domEvent,l=s.altKey,a=s.shiftKey,c=s.ctrlKey,o=f.getAccelKey(),u=f.getButton();if(c&&v.isMac&&(u=s.button),f.editor.inMultiSelectMode&&u==2){f.editor.textInput.onContextMenu(f.domEvent);return}if(!c&&!l&&!o){u===0&&f.editor.inMultiSelectMode&&f.editor.exitMultiSelectMode();return}if(u===0){var g=f.editor,y=g.selection,b=g.inMultiSelectMode,L=f.getDocumentPosition(),A=y.getCursor(),k=f.inSelection()||y.isEmpty()&&w(L,A),x=f.x,T=f.y,E=function(q){x=q.clientX,T=q.clientY},I=g.session,M=g.renderer.pixelToScreenCoordinates(x,T),N=M,$;if(g.$mouseHandler.$enableJumpToDef)c&&l||o&&l?$=a?"block":"add":l&&g.$blockSelectEnabled&&($="block");else if(o&&!l){if($="add",!b&&a)return}else l&&g.$blockSelectEnabled&&($="block");if($&&v.isMac&&s.ctrlKey&&g.$mouseHandler.cancelContextMenu(),$=="add"){if(!b&&k)return;if(!b){var _=y.toOrientedRange();g.addSelectionMarker(_)}var S=y.rangeList.rangeAtPoint(L);g.inVirtualSelectionMode=!0,a&&(S=null,_=y.ranges[0]||_,g.removeSelectionMarker(_)),g.once("mouseup",function(){var q=y.toOrientedRange();S&&q.isEmpty()&&w(S.cursor,q.cursor)?y.substractPoint(q.cursor):(a?y.substractPoint(_.cursor):_&&(g.removeSelectionMarker(_),y.addRange(_)),y.addRange(q)),g.inVirtualSelectionMode=!1})}else if($=="block"){f.stop(),g.inVirtualSelectionMode=!0;var R,O=[],F=function(){var q=g.renderer.pixelToScreenCoordinates(x,T),J=I.screenToDocumentPosition(q.row,q.column,q.offsetX);w(N,q)&&w(J,y.lead)||(N=q,g.selection.moveToPosition(J),g.renderer.scrollCursorIntoView(),g.removeSelectionMarkers(O),O=y.rectangularRangeBlock(N,M),g.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=g.$mouseHandler.$clickSelection.clone()),O.forEach(g.addSelectionMarker,g),g.updateSelectionMarkers())};b&&!o?y.toSingleRange():!b&&o&&(R=y.toOrientedRange(),g.addSelectionMarker(R)),a?M=I.documentToScreenPosition(y.lead):y.moveToPosition(L),N={row:-1,column:-1};var z=function(q){F(),clearInterval(V),g.removeSelectionMarkers(O),O.length||(O=[y.toOrientedRange()]),R&&(g.removeSelectionMarker(R),y.toSingleRange(R));for(var J=0;J<O.length;J++)y.addRange(O[J]);g.inVirtualSelectionMode=!1,g.$mouseHandler.$clickSelection=null},j=F;p.capture(g.container,E,z);var V=setInterval(function(){j()},20);return f.preventDefault()}}}i.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,i,m){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(v){v.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(v){v.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(v){v.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(v){v.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(v){v.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(v){v.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(v){v.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(v){v.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(v){v.multiSelect.rangeCount>1?v.multiSelect.joinSelections():v.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(v){v.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(v){v.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(v){v.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(v){v.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(v){return v&&v.inMultiSelectMode}}];var p=e("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new p(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,i,m){var p=e("./range_list").RangeList,v=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,f=e("./lib/event"),s=e("./lib/lang"),l=e("./commands/multi_select_commands");i.commands=l.defaultCommands.concat(l.multiSelectCommands);var a=e("./search").Search,c=new a;function o(A,k,x){return c.$options.wrap=!0,c.$options.needle=k,c.$options.backwards=x==-1,c.find(A)}var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(A,k){if(A){if(!this.inMultiSelectMode&&this.rangeCount===0){var x=this.toOrientedRange();if(this.rangeList.add(x),this.rangeList.add(A),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(A);this.rangeList.removeAll(),this.rangeList.add(x),this.$onAddRange(x)}A.cursor||(A.cursor=A.end);var T=this.rangeList.add(A);return this.$onAddRange(A),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(A)}},this.toSingleRange=function(A){A=A||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),A&&this.fromOrientedRange(A)},this.substractPoint=function(A){var k=this.rangeList.substractPoint(A);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var A=this.rangeList.merge();A.length&&this.$onRemoveRange(A)},this.$onAddRange=function(A){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(A),this._signal("addRange",{range:A})},this.$onRemoveRange=function(A){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();A.push(k),this.rangeCount=0}for(var x=A.length;x--;){var T=this.ranges.indexOf(A[x]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:A}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var A=this.ranges.length?this.ranges:[this.getRange()],k=[],x=0;x<A.length;x++){var T=A[x],E=T.start.row,I=T.end.row;if(E===I)k.push(T.clone());else{for(k.push(new v(E,T.start.column,E,this.session.getLine(E).length));++E<I;)k.push(this.getLineRange(E,!0));k.push(new v(I,0,I,T.end.column))}x==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var x=k.length;x--;)this.addRange(k[x])},this.joinSelections=function(){var A=this.rangeList.ranges,k=A[A.length-1],x=v.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(x,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var A=this.rangeList.ranges,k=A[A.length-1],x=v.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(x,k.cursor==k.start)}else{var T=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(T,E);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(A,k,x){var T=[],E=A.column<k.column;if(E)var I=A.column,M=k.column,N=A.offsetX,$=k.offsetX;else var I=k.column,M=A.column,N=k.offsetX,$=A.offsetX;var _=A.row<k.row;if(_)var S=A.row,R=k.row;else var S=k.row,R=A.row;I<0&&(I=0),S<0&&(S=0),S==R&&(x=!0);for(var O,F=S;F<=R;F++){var z=v.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,M,$));if(z.isEmpty()){if(O&&y(z.end,O))break;O=z.end}z.cursor=E?z.start:z.end,T.push(z)}if(_&&T.reverse(),!x){for(var j=T.length-1;T[j].isEmpty()&&j>0;)j--;if(j>0)for(var V=0;T[V].isEmpty();)V++;for(var q=j;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(w.prototype);var g=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(A){A.cursor||(A.cursor=A.end);var k=this.getSelectionStyle();return A.marker=this.session.addMarker(A,"ace_selection",k),this.session.$selectionMarkers.push(A),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,A},this.removeSelectionMarker=function(A){if(A.marker){this.session.removeMarker(A.marker);var k=this.session.$selectionMarkers.indexOf(A);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(A){for(var k=this.session.$selectionMarkers,x=A.length;x--;){var T=A[x];if(T.marker){this.session.removeMarker(T.marker);var E=k.indexOf(T);E!=-1&&k.splice(E,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(A){this.addSelectionMarker(A.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(A){this.removeSelectionMarkers(A.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(A){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(A){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(A){var k=A.command,x=A.editor;if(x.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?T=x.forEachSelection(k,A.args):k.multiSelectAction=="forEachLine"?T=x.forEachSelection(k,A.args,!0):k.multiSelectAction=="single"?(x.exitMultiSelectMode(),T=k.exec(x,A.args||{})):T=k.multiSelectAction(x,A.args||{});else{var T=k.exec(x,A.args||{});x.multiSelect.addRange(x.multiSelect.toOrientedRange()),x.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(A,k,x){if(!this.inVirtualSelectionMode){var T=x&&x.keepOrder,E=x==!0||x&&x.$byLines,I=this.session,M=this.selection,N=M.rangeList,$=(T?M:N).ranges,_;if(!$.length)return A.exec?A.exec(this,k||{}):A(this,k||{});var S=M._eventRegistry;M._eventRegistry={};var R=new w(I);this.inVirtualSelectionMode=!0;for(var O=$.length;O--;){if(E)for(;O>0&&$[O].start.row==$[O-1].end.row;)O--;R.fromOrientedRange($[O]),R.index=O,this.selection=I.selection=R;var F=A.exec?A.exec(this,k||{}):A(this,k||{});!_&&F!==void 0&&(_=F),R.toOrientedRange($[O])}R.detach(),this.selection=I.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=S,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var z=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),z&&z.from==z.to&&this.renderer.animateScrolling(z.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var A="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,x=[],T=0;T<k.length;T++)x.push(this.session.getTextRange(k[T]));var E=this.session.getDocument().getNewLineCharacter();A=x.join(E),A.length==(x.length-1)*E.length&&(A="")}else this.selection.isEmpty()||(A=this.session.getTextRange(this.getSelectionRange()));return A},this.$checkMultiselectChange=function(A,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var x=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var T=k==this.multiSelect.anchor?x.cursor==x.start?x.end:x.start:x.cursor;T.row!=k.row||this.session.$clipPositionToDocument(T.row,T.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(A,k,x){if(k=k||{},k.needle=A||k.needle,k.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(T)}this.$search.set(k);var E=this.$search.findAll(this.session);if(!E.length)return 0;var I=this.multiSelect;x||I.toSingleRange(E[0]);for(var M=E.length;M--;)I.addRange(E[M],!0);return T&&I.rangeList.rangeAtPoint(T.start)&&I.addRange(T,!0),E.length},this.selectMoreLines=function(A,k){var x=this.selection.toOrientedRange(),T=x.cursor==x.end,E=this.session.documentToScreenPosition(x.cursor);this.selection.$desiredColumn&&(E.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(E.row+A,E.column);if(x.isEmpty())var N=I;else var M=this.session.documentToScreenPosition(T?x.end:x.start),N=this.session.screenToDocumentPosition(M.row+A,M.column);if(T){var $=v.fromPoints(I,N);$.cursor=$.start}else{var $=v.fromPoints(N,I);$.cursor=$.end}if($.desiredColumn=E.column,!this.selection.inMultiSelectMode)this.selection.addRange(x);else if(k)var _=x.cursor;this.selection.addRange($),_&&this.selection.substractPoint(_)},this.transposeSelections=function(A){for(var k=this.session,x=k.multiSelect,T=x.ranges,E=T.length;E--;){var I=T[E];if(I.isEmpty()){var M=k.getWordRange(I.start.row,I.start.column);I.start.row=M.start.row,I.start.column=M.start.column,I.end.row=M.end.row,I.end.column=M.end.column}}x.mergeOverlappingRanges();for(var N=[],E=T.length;E--;){var I=T[E];N.unshift(k.getTextRange(I))}A<0?N.unshift(N.pop()):N.push(N.shift());for(var E=T.length;E--;){var I=T[E],$=I.clone();k.replace(I,N[E]),I.start.row=$.start.row,I.start.column=$.start.column}x.fromOrientedRange(x.ranges[0])},this.selectMore=function(A,k,x){var T=this.session,E=T.multiSelect,I=E.toOrientedRange();if(!(I.isEmpty()&&(I=T.getWordRange(I.start.row,I.start.column),I.cursor=A==-1?I.start:I.end,this.multiSelect.addRange(I),x))){var M=T.getTextRange(I),N=o(T,M,A);N&&(N.cursor=A==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var A=this.session,k=A.multiSelect,x=k.ranges,T=-1,E=x.filter(function(j){if(j.cursor.row==T)return!0;T=j.cursor.row});if(!x.length||E.length==x.length-1){var I=this.selection.getRange(),M=I.start.row,N=I.end.row,$=M==N;if($){var _=this.session.getLength(),S;do S=this.session.getLine(N);while(/[=:]/.test(S)&&++N<_);do S=this.session.getLine(M);while(/[=:]/.test(S)&&--M>0);M<0&&(M=0),N>=_&&(N=_-1)}var R=this.session.removeFullLines(M,N);R=this.$reAlignText(R,$),this.session.insert({row:M,column:0},R.join(`
936
+ `)+`
937
+ `),$||(I.start.column=0,I.end.column=R[R.length-1].length),this.selection.setRange(I)}else{E.forEach(function(j){k.substractPoint(j.cursor)});var O=0,F=1/0,z=x.map(function(j){var V=j.cursor,q=A.getLine(V.row),J=q.substr(V.column).search(/\S/g);return J==-1&&(J=0),V.column>O&&(O=V.column),J<F&&(F=J),J});x.forEach(function(j,V){var q=j.cursor,J=O-q.column,G=z[V]-F;J>G?A.insert(q,s.stringRepeat(" ",J-G)):A.remove(new v(q.row,q.column,q.row,q.column-J+G)),j.start.column=j.end.column=O,j.start.row=j.end.row=q.row,j.cursor=j.end}),k.fromOrientedRange(x[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,k){var x=!0,T=!0,E,I,M;return A.map(function(R){var O=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?E==null?(E=O[1].length,I=O[2].length,M=O[3].length,O):(E+I+M!=O[1].length+O[2].length+O[3].length&&(T=!1),E!=O[1].length&&(x=!1),E>O[1].length&&(E=O[1].length),I<O[2].length&&(I=O[2].length),M>O[3].length&&(M=O[3].length),O):[R]}).map(k?$:x?T?_:$:S);function N(R){return s.stringRepeat(" ",R)}function $(R){return R[2]?N(E)+R[2]+N(I-R[2].length+M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function _(R){return R[2]?N(E+I-R[2].length)+R[2]+N(M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function S(R){return R[2]?N(E)+R[2]+N(M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(g.prototype);function y(A,k){return A.row==k.row&&A.column==k.column}i.onSessionChange=function(A){var k=A.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var x=A.oldSession;x&&(x.multiSelect.off("addRange",this.$onAddRange),x.multiSelect.off("removeRange",this.$onRemoveRange),x.multiSelect.off("multiSelect",this.$onMultiSelect),x.multiSelect.off("singleSelect",this.$onSingleSelect),x.multiSelect.lead.off("change",this.$checkMultiselectChange),x.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(A){A.$multiselectOnSessionChange||(A.$onAddRange=A.$onAddRange.bind(A),A.$onRemoveRange=A.$onRemoveRange.bind(A),A.$onMultiSelect=A.$onMultiSelect.bind(A),A.$onSingleSelect=A.$onSingleSelect.bind(A),A.$multiselectOnSessionChange=i.onSessionChange.bind(A),A.$checkMultiselectChange=A.$checkMultiselectChange.bind(A),A.$multiselectOnSessionChange(A),A.on("changeSession",A.$multiselectOnSessionChange),A.on("mousedown",h),A.commands.addCommands(l.defaultCommands),L(A))}function L(A){if(!A.textInput)return;var k=A.textInput.getElement(),x=!1;f.addListener(k,"keydown",function(E){var I=E.keyCode==18&&!(E.ctrlKey||E.shiftKey||E.metaKey);A.$blockSelectEnabled&&I?x||(A.renderer.setMouseCursor("crosshair"),x=!0):x&&T()},A),f.addListener(k,"keyup",T,A),f.addListener(k,"blur",T,A);function T(E){x&&(A.renderer.setMouseCursor(""),x=!1)}}i.MultiSelect=b,e("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(A){b(this),A?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(A){this.$blockSelectEnabled=A},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,i,m){var p=e("../../range").Range,v=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,f){var s=w.getLine(f);return this.foldingStartMarker.test(s)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(w,h,f){return null},this.indentationBlock=function(w,h,f){var s=/\S/,l=w.getLine(h),a=l.search(s);if(a!=-1){for(var c=f||l.length,o=w.getLength(),u=h,g=h;++h<o;){var y=w.getLine(h).search(s);if(y!=-1){if(y<=a){var b=w.getTokenAt(h,0);if(!b||b.type!=="string")break}g=h}}if(g>u){var L=w.getLine(g).length;return new p(u,c,g,L)}}},this.openingBracketBlock=function(w,h,f,s,l){var a={row:f,column:s+1},c=w.$findClosingBracket(h,a,l);if(c){var o=w.foldWidgets[c.row];return o==null&&(o=w.getFoldWidget(c.row)),o=="start"&&c.row>a.row&&(c.row--,c.column=w.getLine(c.row).length),p.fromPoints(a,c)}},this.closingBracketBlock=function(w,h,f,s,l){var a={row:f,column:s},c=w.$findOpeningBracket(h,a);if(c)return c.column++,a.column--,p.fromPoints(c,a)}}).call(v.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,i,m){var p=e("../lib/dom"),v=e("../range").Range,w=e("../config").nls;function h(s,l,a){for(var c=0,o=s.length-1;c<=o;){var u=c+o>>1,g=a(l,s[u]);if(g>0)c=u+1;else if(g<0)o=u-1;else return u}return-(c+1)}function f(s,l,a){var c=s.getAnnotations().sort(v.comparePoints);if(c.length){var o=h(c,{row:l,column:-1},v.comparePoints);o<0&&(o=-o-1),o>=c.length?o=a>0?0:c.length-1:o===0&&a<0&&(o=c.length-1);var u=c[o];if(!(!u||!a)){if(u.row===l){do u=c[o+=a];while(u&&u.row===l);if(!u)return c.slice()}var g=[];l=u.row;do g[a<0?"unshift":"push"](u),u=c[o+=a];while(u&&u.row==l);return g.length&&g}}}i.showErrorMarker=function(s,l){var a=s.session,c=s.getCursorPosition(),o=c.row,u=a.widgetManager.getWidgetsAtRow(o).filter(function(E){return E.type=="errorMarker"})[0];u?u.destroy():o-=l;var g=f(a,o,l),y;if(g){var b=g[0];c.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,c.row=b.row,y=s.renderer.$gutterLayer.$annotations[c.row]}else{if(u)return;y={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(c.row),s.selection.moveToPosition(c);var L={row:c.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},A=L.el.appendChild(p.createElement("div")),k=L.el.appendChild(p.createElement("div"));k.className="error_widget_arrow "+y.className;var x=s.renderer.$cursorLayer.getPixelPosition(c).left;k.style.left=x+s.renderer.gutterWidth-5+"px",L.el.className="error_widget_wrapper",A.className="error_widget "+y.className,y.displayText.forEach(function(E,I){A.appendChild(p.createTextNode(E)),I<y.displayText.length-1&&A.appendChild(p.createElement("br"))}),A.appendChild(p.createElement("div"));var T=function(E,I,M){if(I===0&&(M==="esc"||M==="return"))return L.destroy(),{command:"null"}};L.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(T),a.widgetManager.removeLineWidget(L),s.off("changeSelection",L.destroy),s.off("changeSession",L.destroy),s.off("mouseup",L.destroy),s.off("change",L.destroy))},s.keyBinding.addKeyboardHandler(T),s.on("changeSelection",L.destroy),s.on("changeSession",L.destroy),s.on("mouseup",L.destroy),s.on("change",L.destroy),s.session.widgetManager.addLineWidget(L),L.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:L.el.offsetHeight})},p.importCssString(`
938
+ .error_widget_wrapper {
939
+ background: inherit;
940
+ color: inherit;
941
+ border:none
942
+ }
943
+ .error_widget {
944
+ border-top: solid 2px;
945
+ border-bottom: solid 2px;
946
+ margin: 5px 0;
947
+ padding: 10px 40px;
948
+ white-space: pre-wrap;
949
+ }
950
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
951
+ border-color: #ff5a5a
952
+ }
953
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
954
+ border-color: #F1D817
955
+ }
956
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
957
+ border-color: #5a5a5a
958
+ }
959
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
960
+ border-color: #5aaa5a
961
+ }
962
+ .error_widget_arrow {
963
+ position: absolute;
964
+ border: solid 5px;
965
+ border-top-color: transparent!important;
966
+ border-right-color: transparent!important;
967
+ border-left-color: transparent!important;
968
+ top: -5px;
969
+ }
970
+ `,"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(e,i,m){e("./loader_build")(i);var p=e("./lib/dom"),v=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,f=e("./undomanager").UndoManager,s=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),i.config=e("./config"),i.edit=function(a,c){if(typeof a=="string"){var o=a;if(a=document.getElementById(o),!a)throw new Error("ace.edit can't find div #"+o)}if(a&&a.env&&a.env.editor instanceof w)return a.env.editor;var u="";if(a&&/input|textarea/i.test(a.tagName)){var g=a;u=g.value,a=p.createElement("pre"),g.parentNode.replaceChild(a,g)}else a&&(u=a.textContent,a.innerHTML="");var y=i.createEditSession(u),b=new w(new s(a),y,c),L={document:y,editor:b,onResize:b.resize.bind(b,null)};return g&&(L.textarea=g),b.on("destroy",function(){L.editor.container.env=null}),b.container.env=b.env=L,b},i.createEditSession=function(a,c){var o=new h(a,c);return o.setUndoManager(new f),o},i.Range=v,i.Editor=w,i.EditSession=h,i.UndoManager=f,i.VirtualRenderer=s;var l=i.config.version;i.version=l}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=e);for(var m in e)e.hasOwnProperty(m)&&(i.ace[m]=e[m]);i.ace.default=i.ace,n&&(n.exports=i.ace)})}()}(kp)),kp.exports}var La=Kw(),Sp={exports:{}},Cp;function Zw(){return Cp||(Cp=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};i.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},i.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},i.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=i.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},f=i.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=i.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=i.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=i.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=i.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=i.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=i.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},g=function(){var y="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",b="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",L="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:b,"constant.language":L,"variable.language":A,"support.function":y,"invalid.deprecated":"debugger"},"identifier"),x=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:x},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:x},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var N=E[E.length-1];return M.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+x+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,c,w,h,o,f,s,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(E,I,M){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",$=E.split(this.splitRegex);return M.push(N,$[3]),[{type:"constant",value:$[1]},{type:"string",value:$[2]},{type:"support.class",value:$[3]},{type:"string",value:$[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,I,M){return this.next="",E=="}"&&M.length>1&&M[1]!="start"&&(M.shift(),this.next=M.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:x},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:x},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,I,M){return M.length&&E[0]===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};p.inherits(g,v),i.RubyHighlightRules=g}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),s=f.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=w.findMatchingBracket({row:h,column:l});if(!a||a.row==h)return 0;var c=this.$getIndent(w.getLine(a.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,f=i.FoldMode=function(){};p.inherits(f,v),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(s,l,a){var c=s.getLine(a),o=this.foldingStartMarker.test(c),u=this.foldingStopMarker.test(c);if(o&&!u){var g=c.match(this.foldingStartMarker);if(g[1]){if((g[1]=="if"||g[1]=="else"||g[1]=="while"||g[1]=="until"||g[1]=="unless")&&(g[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||g[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(s.getTokenAt(a,g.index+2).type==="keyword")return"start"}else if(!g[3]||s.getTokenAt(a,g.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!u||o&&u)return"";var g=c.match(this.foldingStopMarker);if(g[3]==="end"){if(s.getTokenAt(a,g.index+1).type==="keyword")return"end"}else if(!g[1]||s.getTokenAt(a,g.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,l,a){var c=s.doc.getLine(a),o=this.foldingStartMarker.exec(c);if(o)return o[1]||o[3]?this.rubyBlock(s,a,o.index+2):this.openingBracketBlock(s,"{",a,o.index);var o=this.foldingStopMarker.exec(c);if(o)return o[3]==="end"&&s.getTokenAt(a,o.index+1).type==="keyword"?this.rubyBlock(s,a,o.index+1):o[1]==="=end"&&s.getTokenAt(a,o.index+1).type==="comment.multiline"?this.rubyBlock(s,a,o.index+1):this.closingBracketBlock(s,"}",a,o.index+o[0].length)},this.rubyBlock=function(s,l,a,c){var o=new h(s,l,a),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var g=u.value,y=s.getLine(l);switch(u.value){case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);if(!b.test(y))return;var L=this.indentKeywords[g];break;case"when":if(/\sthen\s/.test(y))return;case"elsif":case"rescue":case"ensure":var L=1;break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");if(!b.test(y))return;var L=1;break;default:var L=this.indentKeywords[g]}var A=[g];if(L){var k=L===-1?s.getLine(l-1).length:s.getLine(l).length,x=l,T=[];if(T.push(o.getCurrentTokenRange()),o.step=L===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(L==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var I=L*this.indentKeywords[u.value];switch(y=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var M=o.$tokenIndex-1;M>=0;M--){var N=o.$rowTokens[M];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");(!b.test(y)||g=="case")&&(I=0,E=!0);break;case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);b.test(y)||(I=0,E=!0);break;case"when":(/\sthen\s/.test(y)||g=="case")&&(I=0,E=!0)}if(I>0)A.unshift(u.value);else if(I<=0&&E===!1){if(A.shift(),!A.length&&((g=="while"||g=="until"||g=="for")&&u.value!="do"||u.value=="do"&&L==-1&&I!=0||u.value!="do"))break;I===0&&A.unshift(u.value)}}}if(!u)return null;if(c)return T.push(o.getCurrentTokenRange()),T;var l=o.getCurrentTokenRow();if(L===-1){if(u.type==="comment.multiline")var $=6;else var $=s.getLine(l).length;return new w(l,$,x-1,k)}return new w(x,k,l-1,s.getLine(l-1).length)}}}}).call(f.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../range").Range,s=e("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};p.inherits(l,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),g=this.getTokenizer().getLineTokens(c,a),y=g.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=c.match(/^.*[\{\(\[]\s*$/),L=c.match(/^\s*(class|def|module)\s.*$/),A=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(b||L||A||k)&&(u+=o)}return u},this.checkOutdent=function(a,c,o){return/^\s+(end|else|rescue|ensure)$/.test(c+o)||this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(a,c,o){var u=c.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(c,o);var g=this.$getIndent(u),y=c.getLine(o-1),b=this.$getIndent(y),L=c.getTabString();b.length<=g.length&&g.slice(-L.length)==L&&c.remove(new f(o,g.length-L.length,o,g.length))},this.getMatching=function(a,c,o){if(c==null){var u=a.selection.lead;o=u.column,c=u.row}var g=a.getTokenAt(c,o);if(g&&g.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,c,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(Sp)),Sp.exports}Zw();var Ap={exports:{}},Tp;function Qw(){return Tp||(Tp=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",f="True|False|None|NotImplemented|Ellipsis|__debug__",s="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":f,keyword:h},"identifier"),a="[uU]?",c="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",g="(?:(?:[1-9]\\d*)|(?:0))",y="(?:0[oO]?[0-7]+)",b="(?:0[xX][\\dA-Fa-f]+)",L="(?:0[bB][01]+)",A="(?:"+g+"|"+y+"|"+b+"|"+L+")",k="(?:[eE][+-]?\\d+)",x="(?:\\.\\d+)",T="(?:\\d+)",E="(?:(?:"+T+"?"+x+")|(?:"+T+"\\.))",I="(?:(?:"+E+"|"+T+")"+k+")",M="(?:"+I+"|"+E+")",N=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:a+'"{3}',next:"qqstring3"},{token:"string",regex:a+'"(?=.)',next:"qqstring"},{token:"string",regex:a+"'{3}",next:"qstring3"},{token:"string",regex:a+"'(?=.)",next:"qstring"},{token:"string",regex:c+'"{3}',next:"rawqqstring3"},{token:"string",regex:c+'"(?=.)',next:"rawqqstring"},{token:"string",regex:c+"'{3}",next:"rawqstring3"},{token:"string",regex:c+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};p.inherits(w,v),i.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};p.inherits(w,v),(function(){this.getFoldWidgetRange=function(h,f,s){var l=h.getLine(s),a=l.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(h,a[1],s,a.index):a[2]?this.indentationBlock(h,s,a.index+a[2].length):this.indentationBlock(h,s)}}).call(w.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,f=e("../range").Range,s=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};p.inherits(s,v),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),g=this.getTokenizer().getLineTokens(c,a),y=g.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=c.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,c,o){if(o!==`\r
971
+ `&&o!=="\r"&&o!==`
972
+ `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!u)return!1;do var g=u.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&l[g.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),g=c.getTabString();u.slice(-g.length)==g&&c.remove(new f(o,u.length-g.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),i.Mode=s}),function(){ace.require(["ace/mode/python"],function(e){n&&(n.exports=e)})}()}(Ap)),Ap.exports}Qw();var Mp={exports:{}},Ep;function Xw(){return Ep||(Ep=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};p.inherits(w,v),i.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),s=f.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=w.findMatchingBracket({row:h,column:l});if(!a||a.row==h)return 0;var c=this.$getIndent(w.getLine(a.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,s,l){var a=f.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(f,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(f,s,l,a){var c=f.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(f,c,l);var o=c.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(f,o[1],l,u);var g=f.getCommentFoldRange(l,u+o[0].length,1);return g&&!g.isMultiLine()&&(a?g=this.getSectionRange(f,l):s!="all"&&(g=null)),g}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(f,o[1],l,u):f.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(f,s){var l=f.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var u=s,g=f.getLength();++s<g;){l=f.getLine(s);var y=l.search(/\S/);if(y!==-1){if(a>y)break;var b=this.getFoldWidgetRange(f,"all",s);if(b){if(b.start.row<=c)break;if(b.isMultiLine())s=b.end.row;else if(a==y)break}u=s}}return new v(c,o,u,f.getLine(u).length)},this.getCommentRegionBlock=function(f,s,l){for(var a=s.search(/\s*$/),c=f.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++l<c;){s=f.getLine(l);var y=u.exec(s);if(y&&(y[1]?g--:g++,!g))break}var b=l;if(b>o)return new v(o,a,b,s.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("./folding/cstyle").FoldMode,s=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new f};p.inherits(l,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c);if(a=="start"){var g=c.match(/^.*[\{\(\[]\s*$/);g&&(u+=o)}return u},this.checkOutdent=function(a,c,o){return this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(a,c,o){this.$outdent.autoOutdent(c,o)},this.createWorker=function(a){var c=new s(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(a.getDocument()),c.on("annotate",function(o){a.setAnnotations(o.data)}),c.on("terminate",function(){a.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}(Mp)),Mp.exports}Xw();var Lp={exports:{}},Rp;function Jw(){return Rp||(Rp=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop");e("../lib/lang");var v=e("./text_highlight_rules").TextHighlightRules,w=i.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=i.supportFunction="rgb|rgba|url|attr|counter|counters",f=i.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",s=i.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=i.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",a=i.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=i.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=i.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var g=this.createKeywordMapper({"support.function":h,"support.constant":f,"support.type":w,"support.constant.color":s,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:a},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+a+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:g,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};p.inherits(u,v),i.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(w,v),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},i.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,i,m){function p(){var a=s.replace("\\d","\\d\\-"),c={onMatch:function(u,g,y){var b=u.charAt(1)=="/"?2:1;return b==1?(g!=this.nextState?y.unshift(this.next,this.nextState,0):y.unshift(this.next),y[2]++):b==2&&g==this.nextState&&(y[1]--,(!y[1]||y[1]<0)&&(y.shift(),y.shift())),[{type:"meta.tag.punctuation."+(b==1?"":"end-")+"tag-open.xml",value:u.slice(0,b)},{type:"meta.tag.tag-name.xml",value:u.substr(b)}]},regex:"</?(?:"+a+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(c);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,c,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,g,y){return g==y[0]&&y.shift(),u.length==2&&(y[0]==this.nextState&&y[1]--,(!y[1]||y[1]<0)&&y.splice(0,2)),this.next=y[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,v("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:a},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function v(a){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,f=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",l=function(a){var c={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},o=this.createKeywordMapper(c,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",y="(function)(\\s*)(\\*?)",b={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),v("no_regex"),b,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),v("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[v("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(L,A,k){if(this.next=L=="{"?this.nextState:"",L=="{"&&k.length)k.unshift("start",A);else if(L=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return L=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!a||a.jsx!=0)&&p.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,f),i.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(h){var f="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+f+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:f},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+f+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+f+":)?"+f+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:f},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,f,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:f+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,a,c){return c.splice(0),this.token}}],this.embedRules(h,f,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(v.prototype),p.inherits(w,v),i.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,f=e("./xml_highlight_rules").XmlHighlightRules,s=v.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){f.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(a,c){var o=s[c];return["meta.tag.punctuation."+(a=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};p.inherits(l,f),i.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,i,m){var p=e("../config").$modes,v=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,f=e("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+w.escapeRegExp(a)+"\\\\]|\\\\.)*"},l=function(){f.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,g,y){var b=o.match(/^(\s*)([`~]+)(.*)/),L=/[\w-]+|$/.exec(b[3])[0];return p[L]||(L=""),g.unshift("githubblock",[],[b[1],b[2],L],u),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(o,u,g,y){var b=g[1],L=g[2][0],A=g[2][1],k=g[2][2],x=/^(\s*)(`+|~+)\s*$/.exec(o);if(x&&x[1].length<L.length+3&&x[2].length>=A.length&&x[2][0]==A[0])return g.splice(0,3),this.next=g.shift(),this.token;if(this.next="",k&&p[k]){var T=p[k].getTokenizer().getLineTokens(o,b.slice(0));return g[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},a,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},a,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:c}),this.normalizeRules()};v.inherits(l,h),i.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=i.FoldMode=function(){};p.inherits(h,v),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(f,s,l){var a=f.getLine(l);return this.foldingStartMarker.test(a)?a[0]=="`"&&f.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(f,s,l){function a(E){return L=f.getTokens(E)[0],L&&L.type.lastIndexOf(A,0)===0}function c(){var E=L.value[0];return E=="="?6:E=="-"?5:7-L.value.search(/[^#]|$/)}var o=f.getLine(l),u=o.length,g=f.getLength(),y=l,b=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(f.bgTokenizer.getState(l)!=="start"){for(;++l<g&&(o=f.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(y,u,l,0)}for(;l-- >0&&(o=f.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(l,o.length,y,0)}var L,A="markup.heading";if(a(l)){for(var k=c();++l<g;)if(a(l)){var x=c();if(x>=k)break}if(b=l-(!L||["=","-"].indexOf(L.value[0])==-1?1:2),b>y)for(;b>y&&/^\s*$/.test(f.getLine(b));)b--;if(b>y){var T=f.getLine(b).length;return new w(y,u,b,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var p=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),s=f.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=w.findMatchingBracket({row:h,column:l});if(!a||a.row==h)return 0;var c=this.$getIndent(w.getLine(a.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,i,m){function p(s,l){return s&&s.type.lastIndexOf(l+".xml")>-1}var v=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,f=function(){this.add("string_dquotes","insertion",function(s,l,a,c,o){if(o=='"'||o=="'"){var u=o,g=c.doc.getTextRange(a.getSelectionRange());if(g!==""&&g!=="'"&&g!='"'&&a.getWrapBehavioursEnabled())return{text:u+g+u,selection:!1};var y=a.getCursorPosition(),b=c.doc.getLine(y.row),L=b.substring(y.column,y.column+1),A=new h(c,y.row,y.column),k=A.getCurrentToken();if(L==u&&(p(k,"attribute-value")||p(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;p(k,"tag-whitespace")||p(k,"whitespace");)k=A.stepBackward();var x=!L||L.match(/\s/);if(p(k,"attribute-equals")&&(x||L==">")||p(k,"decl-attribute-equals")&&(x||L=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,l,a,c,o){var u=c.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var g=c.doc.getLine(o.start.row),y=g.substring(o.start.column+1,o.start.column+2);if(y==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,l,a,c,o){if(o==">"){var u=a.getSelectionRange().start,g=new h(c,u.row,u.column),y=g.getCurrentToken()||g.stepBackward();if(!y||!(p(y,"tag-name")||p(y,"tag-whitespace")||p(y,"attribute-name")||p(y,"attribute-equals")||p(y,"attribute-value"))||p(y,"reference.attribute-value"))return;if(p(y,"attribute-value")){var b=g.getCurrentTokenColumn()+y.value.length;if(u.column<b)return;if(u.column==b){var L=g.stepForward();if(L&&p(L,"attribute-value"))return;g.stepBackward()}}if(/^\s*>/.test(c.getLine(u.row).slice(u.column)))return;for(;!p(y,"tag-name");)if(y=g.stepBackward(),y.value=="<"){y=g.stepForward();break}var A=g.getCurrentTokenRow(),k=g.getCurrentTokenColumn();if(p(g.stepBackward(),"end-tag-open"))return;var x=y.value;return A==u.row&&(x=x.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(x.toLowerCase())?void 0:{text:"></"+x+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,l,a,c,o){if(o==`
973
+ `){var u=a.getCursorPosition(),g=c.getLine(u.row),y=new h(c,u.row,u.column),b=y.getCurrentToken();if(p(b,"")&&b.type.indexOf("tag-close")!==-1){if(b.value=="/>")return;for(;b&&b.type.indexOf("tag-name")===-1;)b=y.stepBackward();if(!b)return;var L=b.value,A=y.getCurrentTokenRow();if(b=y.stepBackward(),!b||b.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[L]||!this.voidElements){var k=c.getTokenAt(u.row,u.column+1),g=c.getLine(A),x=this.$getIndent(g),T=x+c.getTabString();return k&&k.value==="</"?{text:`
974
+ `+T+`
975
+ `+x,selection:[1,T.length,1,T.length]}:{text:`
976
+ `+T}}}}})};v.inherits(f,w),i.XmlBehaviour=f}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,i,m){var p=e("../../lib/oop"),v=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,f=function(){var s=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(w),this.add("autoclosing-fragment","insertion",function(l,a,c,o,u){if(u==">"){var g=c.getSelectionRange().start,y=new v(o,g.row,g.column),b=y.getCurrentToken()||y.stepBackward();if(!b)return;if(b.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(f,w),i.JavaScriptBehaviour=f}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){function p(l,a){return l.type.lastIndexOf(a+".xml")>-1}var v=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,f=i.FoldMode=function(l,a){h.call(this),this.voidElements=l||{},this.optionalEndTags=v.mixin({},this.voidElements),a&&v.mixin(this.optionalEndTags,a)};v.inherits(f,h);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(l,a,c){var o=this._getFirstTagInLine(l,c);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(l,c,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(l,c)},this.getCommentFoldWidget=function(l,a){return/comment/.test(l.getState(a))&&/<!-/.test(l.getLine(a))?"start":""},this._getFirstTagInLine=function(l,a){for(var c=l.getTokens(a),o=new s,u=0;u<c.length;u++){var g=c[u];if(p(g,"tag-open")){if(o.end.column=o.start.column+g.value.length,o.closing=p(g,"end-tag-open"),g=c[++u],!g)return null;if(o.tagName=g.value,g.value===""){if(g=c[++u],!g)return null;o.tagName=g.value}for(o.end.column+=g.value.length,u++;u<c.length;u++)if(g=c[u],o.end.column+=g.value.length,p(g,"tag-close")){o.selfClosing=g.value=="/>";break}return o}if(p(g,"tag-close"))return o.selfClosing=g.value=="/>",o;o.start.column+=g.value.length}return null},this._findEndTagInLine=function(l,a,c,o){for(var u=l.getTokens(a),g=0,y=0;y<u.length;y++){var b=u[y];if(g+=b.value.length,!(g<o-1)&&p(b,"end-tag-open")&&(b=u[y+1],p(b,"tag-name")&&b.value===""&&(b=u[y+2]),b&&b.value==c))return!0}return!1},this.getFoldWidgetRange=function(l,a,c){var o=this._getFirstTagInLine(l,c);if(!o)return this.getCommentFoldWidget(l,c)&&l.getCommentFoldRange(c,l.getLine(c).length);var u=l.getMatchingTags({row:c,column:0});if(u)return new w(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(f.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,s,l){var a=f.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(f,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(f,s,l,a){var c=f.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(f,c,l);var o=c.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(f,o[1],l,u);var g=f.getCommentFoldRange(l,u+o[0].length,1);return g&&!g.isMultiLine()&&(a?g=this.getSectionRange(f,l):s!="all"&&(g=null)),g}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(f,o[1],l,u):f.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(f,s){var l=f.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var u=s,g=f.getLength();++s<g;){l=f.getLine(s);var y=l.search(/\S/);if(y!==-1){if(a>y)break;var b=this.getFoldWidgetRange(f,"all",s);if(b){if(b.start.row<=c)break;if(b.isMultiLine())s=b.end.row;else if(a==y)break}u=s}}return new v(c,o,u,f.getLine(u).length)},this.getCommentRegionBlock=function(f,s,l){for(var a=s.search(/\s*$/),c=f.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++l<c;){s=f.getLine(l);var y=u.exec(s);if(y&&(y[1]?g--:g++,!g))break}var b=l;if(b>o)return new v(o,a,b,s.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,i,m){var p=e("../../lib/oop"),v=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end))),this.xmlFoldMode=new v};p.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,s,l){var a=this.getFoldWidgetBase(f,s,l);return a||this.xmlFoldMode.getFoldWidget(f,s,l)},this.getFoldWidgetRange=function(f,s,l,a){var c=this.getFoldWidgetRangeBase(f,s,l,a);return c||this.xmlFoldMode.getFoldWidgetRange(f,s,l)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../worker/worker_client").WorkerClient,s=e("./behaviour/javascript").JavaScriptBehaviour,l=e("./folding/javascript").FoldMode,a=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new s,this.foldingRules=new l};p.inherits(a,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,o,u){var g=this.$getIndent(o),y=this.getTokenizer().getLineTokens(o,c),b=y.tokens,L=y.state;if(b.length&&b[b.length-1].type=="comment")return g;if(c=="start"||c=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(g+=u)}else if(c=="doc-start"&&(L=="start"||L=="no_regex"))return"";return g},this.checkOutdent=function(c,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(c,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(c){var o=new f(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(c.getDocument()),o.on("annotate",function(u){c.setAnnotations(u.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),i.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,i,m){var p={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},v=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var h in w)if(typeof w[h]=="string"){var f=h.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});p.hasOwnProperty(f)||(p[f]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,f,s){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var l=h.getLine(f.row).substr(0,f.column),a=/\([^)]*$/.test(l);return a&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(w,h,f,s):this.getPropertyCompletions(w,h,f,s,a)}return[]},this.getPropertyCompletions=function(w,h,f,s,l){l=l||!1;var a=Object.keys(p);return a.map(function(c){return{caption:c,snippet:c+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,f,s){var l=h.getLine(f.row).substr(0,f.column),a=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!a)return[];var c=[];return a in p&&typeof p[a]=="object"&&(c=Object.keys(p[a])),c.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(v.prototype),i.CssCompletions=v}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,i,m){var p=e("../../lib/oop");e("../behaviour").Behaviour;var v=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(v),this.add("colon","insertion",function(f,s,l,a,c){if(c===":"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=new w(a,o.row,o.column),g=u.getCurrentToken();if(g&&g.value.match(/\s+/)&&(g=u.stepBackward()),g&&g.type==="support.type"){var y=a.doc.getLine(o.row),b=y.substring(o.column,o.column+1);if(b===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(y.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(f,s,l,a,c){var o=a.doc.getTextRange(c);if(!c.isMultiLine()&&o===":"){var u=l.getCursorPosition(),g=new w(a,u.row,u.column),y=g.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=g.stepBackward()),y&&y.type==="support.type"){var b=a.doc.getLine(c.start.row),L=b.substring(c.end.column,c.end.column+1);if(L===";")return c.end.column++,c}}}),this.add("semicolon","insertion",function(f,s,l,a,c){if(c===";"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=a.doc.getLine(o.row),g=u.substring(o.column,o.column+1);if(g===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(f,s,l,a,c){if(c==="!"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};p.inherits(h,v),i.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../worker/worker_client").WorkerClient,s=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,a=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new l,this.$completer=new s,this.foldingRules=new a};p.inherits(c,v),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,g){var y=this.$getIndent(u),b=this.getTokenizer().getLineTokens(u,o).tokens;if(b.length&&b[b.length-1].type=="comment")return y;var L=u.match(/^.*\{\s*$/);return L&&(y+=g),y},this.checkOutdent=function(o,u,g){return this.$outdent.checkOutdent(u,g)},this.autoOutdent=function(o,u,g){this.$outdent.autoOutdent(u,g)},this.getCompletions=function(o,u,g,y){return this.$completer.getCompletions(o,u,g,y)},this.createWorker=function(o){var u=new f(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(g){o.setAnnotations(g.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),i.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var p=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h,f){this.defaultMode=h,this.subModes=f};p.inherits(w,v),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var f in this.subModes)if(h.indexOf(f)===0)return this.subModes[f];return null},this.$tryMode=function(h,f,s,l){var a=this.$getMode(h);return a?a.getFoldWidget(f,s,l):""},this.getFoldWidget=function(h,f,s){return this.$tryMode(h.getState(s-1),h,f,s)||this.$tryMode(h.getState(s),h,f,s)||this.defaultMode.getFoldWidget(h,f,s)},this.getFoldWidgetRange=function(h,f,s){var l=this.$getMode(h.getState(s-1));return(!l||!l.getFoldWidget(h,f,s))&&(l=this.$getMode(h.getState(s))),(!l||!l.getFoldWidget(h,f,s))&&(l=this.defaultMode),l.getFoldWidgetRange(h,f,s)}}).call(w.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,i,m){var p=e("../../lib/oop"),v=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,f=i.FoldMode=function(s,l){v.call(this,new w(s,l),{"js-":new h,"css-":new h})};p.inherits(f,v)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,i,m){function p(u,g){return u.type.lastIndexOf(g+".xml")>-1}function v(u,g){for(var y=new h(u,g.row,g.column),b=y.getCurrentToken();b&&!p(b,"tag-name");)b=y.stepBackward();if(b)return b.value}function w(u,g){for(var y=new h(u,g.row,g.column),b=y.getCurrentToken();b&&!p(b,"attribute-name");)b=y.stepBackward();if(b)return b.value}var h=e("../token_iterator").TokenIterator,f=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=f.concat(s),a={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(a),o=function(){};(function(){this.getCompletions=function(u,g,y,b){var L=g.getTokenAt(y.row,y.column);if(!L)return[];if(p(L,"tag-name")||p(L,"tag-open")||p(L,"end-tag-open"))return this.getTagCompletions(u,g,y,b);if(p(L,"tag-whitespace")||p(L,"attribute-name"))return this.getAttributeCompletions(u,g,y,b);if(p(L,"attribute-value"))return this.getAttributeValueCompletions(u,g,y,b);var A=g.getLine(y.row).substr(0,y.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(u,g,y,b):[]},this.getTagCompletions=function(u,g,y,b){return c.map(function(L){return{value:L,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,g,y,b){var L=v(g,y);if(!L)return[];var A=l;return L in a&&(A=A.concat(Object.keys(a[L]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,g,y,b){var L=v(g,y),A=w(g,y);if(!L)return[];var k=[];return L in a&&A in a[L]&&typeof a[L][A]=="object"&&(k=Object.keys(a[L][A])),k.map(function(x){return{caption:x,snippet:x,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,g,y,b){var L=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return L.map(function(A){return{caption:A,snippet:A,meta:"html entity",score:1e6}})}}).call(o.prototype),i.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,f=e("./css").Mode,s=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,a=e("./folding/html").FoldMode,c=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],y=function(b){this.fragmentContext=b&&b.fragmentContext,this.HighlightRules=s,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":h,"css-":f}),this.foldingRules=new a(this.voidElements,v.arrayToMap(g))};p.inherits(y,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=v.arrayToMap(u),this.getNextLineIndent=function(b,L,A){return this.$getIndent(L)},this.checkOutdent=function(b,L,A){return!1},this.getCompletions=function(b,L,A,k){return this.$completer.getCompletions(b,L,A,k)},this.createWorker=function(b){if(this.constructor==y){var L=new o(["ace"],"ace/mode/html_worker","Worker");return L.attachToDocument(b.getDocument()),this.fragmentContext&&L.call("setOptions",[{context:this.fragmentContext}]),L.on("error",function(A){b.setAnnotations(A.data)}),L.on("terminate",function(){b.clearAnnotations()}),L}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(y.prototype),i.Mode=y}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var p=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",h=i.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",f=function(){var s=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",c="(?:\\d+)",o="(?:(?:"+c+"?"+a+")|(?:"+c+"\\.))",u="(?:(?:"+o+"|"+c+"))",g="(?:"+u+"|"+o+")",y="(?:&"+c+")",b="[a-zA-Z_][a-zA-Z0-9_]*",L="(?:"+b+"(?==))",A="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+b+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(x,T,E){var I=x[2]=="-"?"indentedHeredoc":"heredoc",M=x.split(this.splitRegex);return E.push(I,M[4]),[{type:"constant",value:M[1]},{type:"text",value:M[2]},{type:"string",value:M[3]},{type:"support.class",value:M[4]},{type:"string",value:M[5]}]},rules:{heredoc:[{onMatch:function(x,T,E){return x===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(x,T,E){return x===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(x,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:x}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:A},{token:"variable",regex:L},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:y},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:g},{token:"constant.numeric",regex:l+"\\b"},{token:s,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};p.inherits(f,v),i.ShHighlightRules=f}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,i,m){var p=e("../lib/oop"),v=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,f=e("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=w,this.foldingRules=new f,this.$behaviour=this.$defaultBehaviour};p.inherits(s,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),g=this.getTokenizer().getLineTokens(c,a),y=g.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=c.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,c,o){if(o!==`\r
977
+ `&&o!=="\r"&&o!==`
978
+ `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!u)return!1;do var g=u.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&l[g.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),g=c.getTabString();u.slice(-g.length)==g&&c.remove(new h(o,u.length-g.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),i.Mode=s}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,i,m){var p=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,f=e("./behaviour/xml").XmlBehaviour,s=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=h,this.$behaviour=new f,this.foldingRules=new s};p.inherits(a,w),(function(){this.voidElements=v.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(c){var o=new l(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(c.getDocument()),o.on("error",function(u){c.setAnnotations(u.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),i.Mode=a}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,i,m){var p=e("../lib/oop"),v=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,f=e("./folding/markdown").FoldMode,s=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new f,this.$behaviour=new v({braces:!0})};p.inherits(s,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,a,c){if(l=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(a);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),i.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(e){n&&(n.exports=e)})}()}(Lp)),Lp.exports}Jw();var Ip={exports:{}},Op;function eb(){return Op||(Op=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,i,m){m.exports=`.ace-twilight .ace_gutter {
979
+ background: #232323;
980
+ color: #E2E2E2
981
+ }
982
+
983
+ .ace-twilight .ace_print-margin {
984
+ width: 1px;
985
+ background: #232323
986
+ }
987
+
988
+ .ace-twilight {
989
+ background-color: #141414;
990
+ color: #F8F8F8
991
+ }
992
+
993
+ .ace-twilight .ace_cursor {
994
+ color: #A7A7A7
995
+ }
996
+
997
+ .ace-twilight .ace_marker-layer .ace_selection {
998
+ background: rgba(221, 240, 255, 0.20)
999
+ }
1000
+
1001
+ .ace-twilight.ace_multiselect .ace_selection.ace_start {
1002
+ box-shadow: 0 0 3px 0px #141414;
1003
+ }
1004
+
1005
+ .ace-twilight .ace_marker-layer .ace_step {
1006
+ background: rgb(102, 82, 0)
1007
+ }
1008
+
1009
+ .ace-twilight .ace_marker-layer .ace_bracket {
1010
+ margin: -1px 0 0 -1px;
1011
+ border: 1px solid rgba(255, 255, 255, 0.25)
1012
+ }
1013
+
1014
+ .ace-twilight .ace_marker-layer .ace_active-line {
1015
+ background: rgba(255, 255, 255, 0.031)
1016
+ }
1017
+
1018
+ .ace-twilight .ace_gutter-active-line {
1019
+ background-color: rgba(255, 255, 255, 0.031)
1020
+ }
1021
+
1022
+ .ace-twilight .ace_marker-layer .ace_selected-word {
1023
+ border: 1px solid rgba(221, 240, 255, 0.20)
1024
+ }
1025
+
1026
+ .ace-twilight .ace_invisible {
1027
+ color: rgba(255, 255, 255, 0.25)
1028
+ }
1029
+
1030
+ .ace-twilight .ace_keyword,
1031
+ .ace-twilight .ace_meta {
1032
+ color: #CDA869
1033
+ }
1034
+
1035
+ .ace-twilight .ace_constant,
1036
+ .ace-twilight .ace_constant.ace_character,
1037
+ .ace-twilight .ace_constant.ace_character.ace_escape,
1038
+ .ace-twilight .ace_constant.ace_other,
1039
+ .ace-twilight .ace_heading,
1040
+ .ace-twilight .ace_markup.ace_heading,
1041
+ .ace-twilight .ace_support.ace_constant {
1042
+ color: #CF6A4C
1043
+ }
1044
+
1045
+ .ace-twilight .ace_invalid.ace_illegal {
1046
+ color: #F8F8F8;
1047
+ background-color: rgba(86, 45, 86, 0.75)
1048
+ }
1049
+
1050
+ .ace-twilight .ace_invalid.ace_deprecated {
1051
+ text-decoration: underline;
1052
+ font-style: italic;
1053
+ color: #D2A8A1
1054
+ }
1055
+
1056
+ .ace-twilight .ace_support {
1057
+ color: #9B859D
1058
+ }
1059
+
1060
+ .ace-twilight .ace_fold {
1061
+ background-color: #AC885B;
1062
+ border-color: #F8F8F8
1063
+ }
1064
+
1065
+ .ace-twilight .ace_support.ace_function {
1066
+ color: #DAD085
1067
+ }
1068
+
1069
+ .ace-twilight .ace_list,
1070
+ .ace-twilight .ace_markup.ace_list,
1071
+ .ace-twilight .ace_storage {
1072
+ color: #F9EE98
1073
+ }
1074
+
1075
+ .ace-twilight .ace_entity.ace_name.ace_function,
1076
+ .ace-twilight .ace_meta.ace_tag {
1077
+ color: #AC885B
1078
+ }
1079
+
1080
+ .ace-twilight .ace_string {
1081
+ color: #8F9D6A
1082
+ }
1083
+
1084
+ .ace-twilight .ace_string.ace_regexp {
1085
+ color: #E9C062
1086
+ }
1087
+
1088
+ .ace-twilight .ace_comment {
1089
+ font-style: italic;
1090
+ color: #5F5A60
1091
+ }
1092
+
1093
+ .ace-twilight .ace_variable {
1094
+ color: #7587A6
1095
+ }
1096
+
1097
+ .ace-twilight .ace_xml-pe {
1098
+ color: #494949
1099
+ }
1100
+
1101
+ .ace-twilight .ace_indent-guide {
1102
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1103
+ }
1104
+
1105
+ .ace-twilight .ace_indent-guide-active {
1106
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
+ }
1108
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,i,m){i.isDark=!0,i.cssClass="ace-twilight",i.cssText=e("./twilight-css");var p=e("../lib/dom");p.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n&&(n.exports=e)})}()}(Ip)),Ip.exports}eb();var Dp={exports:{}},Np;function tb(){return Np||(Np=1,function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,i,m){function p(x){var T=new Date().toLocaleString("en-us",x);return T.length==1?"0"+T:T}var v=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,f=e("./lib/lang"),s=e("./range").Range,l=e("./range_list").RangeList,a=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(x){return x.session.getTextRange(x.session.getWordRange())},SELECTION:function(x,T,E){var I=x.session.getTextRange();return E?I.replace(/\n\r?([ \t]*\S)/g,`
1109
+ `+E+"$1"):I},CURRENT_LINE:function(x){return x.session.getLine(x.getCursorPosition().row)},PREV_LINE:function(x){return x.session.getLine(x.getCursorPosition().row-1)},LINE_INDEX:function(x){return x.getCursorPosition().row},LINE_NUMBER:function(x){return x.getCursorPosition().row+1},SOFT_TABS:function(x){return x.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(x){return x.session.getTabSize()},CLIPBOARD:function(x){return o.getText&&o.getText()},FILENAME:function(x){return/[^/\\]*$/.exec(this.FILEPATH(x))[0]},FILENAME_BASE:function(x){return/[^/\\]*$/.exec(this.FILEPATH(x))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(x){return this.FILEPATH(x).replace(/[^/\\]*$/,"")},FILEPATH:function(x){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(x){var T=x.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(x){var T=x.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(x){var T=x.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var g=function(){function x(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return x.prototype.getTokenizer=function(){return x.$tokenizer||this.createTokenizer()},x.prototype.createTokenizer=function(){function T(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function E(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var I={regex:"/("+E("/")+"+)/",onMatch:function(M,N,$){var _=$[0];return _.fmtString=!0,_.guard=M.slice(1,-1),_.flag="",""},next:"formatString"};return x.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(M,N,$){var _=M[1];return(_=="}"&&$.length||"`$\\".indexOf(_)!=-1)&&(M=_),[M]}},{regex:/}/,onMatch:function(M,N,$){return[$.length?$.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,N,$){var _=T(M.substr(1));return $.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(M,N,$){var _=M.slice(1,-1).replace(/\\[,|\\]|,/g,function(S){return S.length==2?S[1]:"\0"}).split("\0").map(function(S){return{value:S}});return $[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,N,$){return $.length&&$[0].expectElse?($[0].expectElse=!1,$[0].ifEnd={elseEnd:$[0]},[$[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,N,$){var _=M[1];return _=="}"&&$.length||"`$\\".indexOf(_)!=-1?M=_:_=="n"?M=`
1110
+ `:_=="t"?M=" ":"ulULE".indexOf(_)!=-1&&(M={changeCase:_,local:_>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,N,$){var _=$.shift();return _&&(_.flag=M.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,N,$){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,N,$){var _={text:M.slice(2)};return $.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,N,$){var _=$.shift();return this.next=_&&_.tabstopId?"start":"",[_||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,N,$){var _=$[0];return _.formatFunction=M.slice(2,-1),[$.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(M,N,$){M[1]=="+"&&($[0].ifEnd=$[0]),M[1]=="?"&&($[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),x.$tokenizer},x.prototype.tokenizeTmSnippet=function(T,E){return this.getTokenizer().getLineTokens(T,E).tokens.map(function(I){return I.value||I})},x.prototype.getVariableValue=function(T,E,I){if(/^\d+$/.test(E))return(this.variables.__||{})[E]||"";if(/^[A-Z]\d+$/.test(E))return(this.variables[E[0]+"__"]||{})[E.substr(1)]||"";if(E=E.replace(/^TM_/,""),!this.variables.hasOwnProperty(E))return"";var M=this.variables[E];return typeof M=="function"&&(M=this.variables[E](T,E,I)),M??""},x.prototype.tmStrFormat=function(T,E,I){if(!E.fmt)return T;var M=E.flag||"",N=E.guard;N=new RegExp(N,M.replace(/[^gim]/g,""));var $=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,_=this,S=T.replace(N,function(){var R=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables($,I),F="E",z=0;z<O.length;z++){var j=O[z];if(typeof j=="object")if(O[z]="",j.changeCase&&j.local){var V=O[z+1];V&&typeof V=="string"&&(j.changeCase=="u"?O[z]=V[0].toUpperCase():O[z]=V[0].toLowerCase(),O[z+1]=V.substr(1))}else j.changeCase&&(F=j.changeCase);else F=="U"?O[z]=j.toUpperCase():F=="L"&&(O[z]=j.toLowerCase())}return _.variables.__=R,O.join("")});return S},x.prototype.tmFormatFunction=function(T,E,I){return E.formatFunction=="upcase"?T.toUpperCase():E.formatFunction=="downcase"?T.toLowerCase():T},x.prototype.resolveVariables=function(T,E){function I(F){var z=T.indexOf(F,_+1);z!=-1&&(_=z)}for(var M=[],N="",$=!0,_=0;_<T.length;_++){var S=T[_];if(typeof S=="string"){M.push(S),S==`
1111
+ `?($=!0,N=""):$&&(N=/^\t*/.exec(S)[0],$=/\S/.test(S));continue}if(S){if($=!1,S.fmtString){var R=T.indexOf(S,_+1);R==-1&&(R=T.length),S.fmt=T.slice(_+1,R),_=R}if(S.text){var O=this.getVariableValue(E,S.text,N)+"";S.fmtString&&(O=this.tmStrFormat(O,S,E)),S.formatFunction&&(O=this.tmFormatFunction(O,S,E)),O&&!S.ifEnd?(M.push(O),I(S)):!O&&S.ifEnd&&I(S.ifEnd)}else S.elseEnd?I(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&M.push(S)}}return M},x.prototype.getDisplayTextForSnippet=function(T,E){var I=y.call(this,T,E);return I.text},x.prototype.insertSnippetForSelection=function(T,E,I){I===void 0&&(I={});var M=y.call(this,T,E,I),N=T.getSelectionRange(),$=T.session.replace(N,M.text),_=new b(T),S=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(M.tabstops,N.start,$,S)},x.prototype.insertSnippet=function(T,E,I){I===void 0&&(I={});var M=this;if(T.inVirtualSelectionMode)return M.insertSnippetForSelection(T,E,I);T.forEachSelection(function(){M.insertSnippetForSelection(T,E,I)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},x.prototype.$getScope=function(T){var E=T.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!T.session.$mode.inlinePhp&&(E="html");var I=T.getCursorPosition(),M=T.session.getState(I.row);typeof M=="object"&&(M=M[0]),M.substring&&(M.substring(0,3)=="js-"?E="javascript":M.substring(0,4)=="css-"?E="css":M.substring(0,4)=="php-"&&(E="php"))}return E},x.prototype.getActiveScopes=function(T){var E=this.$getScope(T),I=[E],M=this.snippetMap;return M[E]&&M[E].includeScopes&&I.push.apply(I,M[E].includeScopes),I.push("_"),I},x.prototype.expandWithTab=function(T,E){var I=this,M=T.forEachSelection(function(){return I.expandSnippetForSelection(T,E)},null,{keepOrder:!0});return M&&T.tabstopManager&&T.tabstopManager.tabNext(),M},x.prototype.expandSnippetForSelection=function(T,E){var I=T.getCursorPosition(),M=T.session.getLine(I.row),N=M.substring(0,I.column),$=M.substr(I.column),_=this.snippetMap,S;return this.getActiveScopes(T).some(function(R){var O=_[R];return O&&(S=this.findMatchingSnippet(O,N,$)),!!S},this),S?(E&&E.dryRun||(T.session.doc.removeInLine(I.row,I.column-S.replaceBefore.length,I.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(T,S.content),this.variables.M__=this.variables.T__=null),!0):!1},x.prototype.findMatchingSnippet=function(T,E,I){for(var M=T.length;M--;){var N=T[M];if(!(N.startRe&&!N.startRe.test(E))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(E):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(E)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},x.prototype.register=function(T,E){function I(R){return R&&!/^\^?\(.*\)\$?$|^\\b$/.test(R)&&(R="(?:"+R+")"),R||""}function M(R,O,F){return R=I(R),O=I(O),R=O+R,R&&R[R.length-1]!="$"&&(R+="$"),new RegExp(R)}function N(R){R.scope||(R.scope=E||"_"),E=R.scope,$[E]||($[E]=[],_[E]={});var O=_[E];if(R.name){var F=O[R.name];F&&S.unregister(F),O[R.name]=R}$[E].push(R),R.prefix&&(R.tabTrigger=R.prefix),!R.content&&R.body&&(R.content=Array.isArray(R.body)?R.body.join(`
1112
+ `):R.body),R.tabTrigger&&!R.trigger&&(!R.guard&&/^\w/.test(R.tabTrigger)&&(R.guard="\\b"),R.trigger=f.escapeRegExp(R.tabTrigger)),!(!R.trigger&&!R.guard&&!R.endTrigger&&!R.endGuard)&&(R.startRe=M(R.trigger,R.guard),R.triggerRe=new RegExp(R.trigger),R.endRe=M(R.endTrigger,R.endGuard),R.endTriggerRe=new RegExp(R.endTrigger))}var $=this.snippetMap,_=this.snippetNameMap,S=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(R){N(T[R])}),this._signal("registerSnippets",{scope:E})},x.prototype.unregister=function(T,E){function I($){var _=N[$.scope||E];if(_&&_[$.name]){delete _[$.name];var S=M[$.scope||E],R=S&&S.indexOf($);R>=0&&S.splice(R,1)}}var M=this.snippetMap,N=this.snippetNameMap;T.content?I(T):Array.isArray(T)&&T.forEach(I)},x.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var E=[],I={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=M.exec(T);){if(N[1])try{I=JSON.parse(N[1]),E.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),E.push(I),I={};else{var $=N[2],_=N[3];if($=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=S.exec(_)[1],I.trigger=S.exec(_)[1],I.endTrigger=S.exec(_)[1],I.endGuard=S.exec(_)[1]}else $=="snippet"?(I.tabTrigger=_.match(/^\S*/)[0],I.name||(I.name=_)):$&&(I[$]=_)}}return E},x.prototype.getSnippetByName=function(T,E){var I=this.snippetNameMap,M;return this.getActiveScopes(E).some(function(N){var $=I[N];return $&&(M=$[T]),!!M},this),M},x}();w.implement(g.prototype,h);var y=function(x,T,E){function I(X){for(var ae=[],me=0;me<X.length;me++){var ye=X[me];if(typeof ye=="object"){if(O[ye.tabstopId])continue;var fe=X.lastIndexOf(ye,me-1);ye=ae[fe]||{tabstopId:ye.tabstopId}}ae[me]=ye}return ae}E===void 0&&(E={});var M=x.getCursorPosition(),N=x.session.getLine(M.row),$=x.session.getTabString(),_=N.match(/^\s*/)[0];M.column<_.length&&(_=_.slice(0,M.column)),T=T.replace(/\r/g,"");var S=this.tokenizeTmSnippet(T);S=this.resolveVariables(S,x),S=S.map(function(X){return X==`
1113
+ `&&!E.excludeExtraIndent?X+_:typeof X=="string"?X.replace(/\t/g,$):X});var R=[];S.forEach(function(X,ae){if(typeof X=="object"){var me=X.tabstopId,ye=R[me];if(ye||(ye=R[me]=[],ye.index=me,ye.value="",ye.parents={}),ye.indexOf(X)===-1){X.choices&&!ye.choices&&(ye.choices=X.choices),ye.push(X);var fe=S.indexOf(X,ae+1);if(fe!==-1){var $e=S.slice(ae+1,fe),ot=$e.some(function(zt){return typeof zt=="object"});ot&&!ye.value?ye.value=$e:$e.length&&(!ye.value||typeof ye.value!="string")&&(ye.value=$e.join(""))}}}}),R.forEach(function(X){X.length=0});for(var O={},F=0;F<S.length;F++){var z=S[F];if(typeof z=="object"){var j=z.tabstopId,V=R[j],q=S.indexOf(z,F+1);if(O[j]){O[j]===z&&(delete O[j],Object.keys(O).forEach(function(X){V.parents[X]=!0}));continue}O[j]=z;var J=V.value;typeof J!="string"?J=I(J):z.fmt&&(J=this.tmStrFormat(J,z,x)),S.splice.apply(S,[F+1,Math.max(0,q-F)].concat(J,z)),V.indexOf(z)===-1&&V.push(z)}}var G=0,Q=0,ie="";return S.forEach(function(X){if(typeof X=="string"){var ae=X.split(`
1114
+ `);ae.length>1?(Q=ae[ae.length-1].length,G+=ae.length-1):Q+=X.length,ie+=X}else X&&(X.start?X.end={row:G,column:Q}:X.start={row:G,column:Q})}),{text:ie,tabstops:R,tokens:S}},b=function(){function x(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return x.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},x.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},x.prototype.onChange=function(T){for(var E=T.action[0]=="r",I=this.selectedTabstop||{},M=I.parents||{},N=this.tabstops.slice(),$=0;$<N.length;$++){var _=N[$],S=_==I||M[_.index];if(_.rangeList.$bias=S?0:1,T.action=="remove"&&_!==I){var R=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(T.start,R);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(T.end,R);F=F<0?-F-1:F-1;for(var z=_.rangeList.ranges.slice(O,F),j=0;j<z.length;j++)this.removeRange(z[j])}_.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},x.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var E=this.session,I=E.getTextRange(T.firstNonLinked),M=0;M<T.length;M++){var N=T[M];if(N.linked){var $=N.original,_=i.snippetManager.tmStrFormat(I,$,this.editor);E.replace(N,_)}}this.$inChange=!1}},x.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},x.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,E=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),M=0;M<this.ranges.length;M++)if(!this.ranges[M].linked){var N=this.ranges[M].contains(T.row,T.column),$=I||this.ranges[M].contains(E.row,E.column);if(N&&$)return}this.detach()}},x.prototype.onChangeSession=function(){this.detach()},x.prototype.tabNext=function(T){var E=this.tabstops.length,I=this.index+(T||1);I=Math.min(Math.max(I,1),E),I==E&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},x.prototype.selectTabstop=function(T){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=T,E=this.tabstops[this.index],!(!E||!E.length)){this.selectedTabstop=E;var I=E.firstNonLinked||E;if(E.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var M=this.editor.multiSelect;M.toSingleRange(I);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||M.addRange(E[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},x.prototype.addTabstops=function(T,E,I){var M=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(I,I);A(N.start,E),A(N.end,E),T[0]=[N],T[0].index=0}var $=this.index,_=[$+1,0],S=this.ranges,R=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var z=this.$openTabstops[F]||O;z.snippetId=R;for(var j=0;j<O.length;j++){var V=O[j],q=s.fromPoints(V.start,V.end||V.start);L(q.start,E),L(q.end,E),q.original=V,q.tabstop=z,S.push(q),z!=O?z.unshift(q):z[j]=q,V.fmtString||z.firstNonLinked&&M?(q.linked=!0,z.hasLinkedRanges=!0):z.firstNonLinked||(z.firstNonLinked=q)}z.firstNonLinked||(z.hasLinkedRanges=!1),z===O&&(_.push(z),this.$openTabstops[F]=z),this.addTabstopMarkers(z),z.rangeList=z.rangeList||new l,z.rangeList.$bias=0,z.rangeList.addList(z)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},x.prototype.addTabstopMarkers=function(T){var E=this.session;T.forEach(function(I){I.markerId||(I.markerId=E.addMarker(I,"ace_snippet-marker","text"))})},x.prototype.removeTabstopMarkers=function(T){var E=this.session;T.forEach(function(I){E.removeMarker(I.markerId),I.markerId=null})},x.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(E){E.snippetId===T?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},x.prototype.removeRange=function(T){var E=T.tabstop.indexOf(T);E!=-1&&T.tabstop.splice(E,1),E=this.ranges.indexOf(T),E!=-1&&this.ranges.splice(E,1),E=T.tabstop.rangeList.ranges.indexOf(T),E!=-1&&T.tabstop.splice(E,1),this.session.removeMarker(T.markerId),T.tabstop.length||(E=this.tabstops.indexOf(T.tabstop),E!=-1&&this.tabstops.splice(E,1),this.tabstops.length||this.detach())},x}();b.prototype.keyboardHandler=new a,b.prototype.keyboardHandler.bindKeys({Tab:function(x){i.snippetManager&&i.snippetManager.expandWithTab(x)||(x.tabstopManager.tabNext(1),x.renderer.scrollCursorIntoView())},"Shift-Tab":function(x){x.tabstopManager.tabNext(-1),x.renderer.scrollCursorIntoView()},Esc:function(x){x.tabstopManager.detach()}});var L=function(x,T){x.row==0&&(x.column+=T.column),x.row+=T.row},A=function(x,T){x.row==T.row&&(x.column-=T.column),x.row-=T.row};v.importCssString(`
1115
+ .ace_snippet-marker {
1116
+ -moz-box-sizing: border-box;
1117
+ box-sizing: border-box;
1118
+ background: rgba(194, 193, 208, 0.09);
1119
+ border: 1px dotted rgba(211, 208, 235, 0.62);
1120
+ position: absolute;
1121
+ }`,"snippets.css",!1),i.snippetManager=new g;var k=e("./editor").Editor;(function(){this.insertSnippet=function(x,T){return i.snippetManager.insertSnippet(this,x,T)},this.expandSnippet=function(x){return i.snippetManager.expandWithTab(this,x)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,i,m){var p=e("../virtual_renderer").VirtualRenderer,v=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),f=e("../lib/lang"),s=e("../lib/dom"),l=e("../config").nls,a=e("./../lib/useragent"),c=function(L){return"suggest-aria-id:".concat(L)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",g=a.isSafari?"aria-current":"aria-selected",y=function(L){var A=new p(L);A.$maxLines=4;var k=new v(A);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},b=function(){function L(A){var k=s.createElement("div"),x=y(k);A&&A.appendChild(k),k.style.display="none",x.renderer.content.style.cursor="default",x.renderer.setStyle("ace_autocomplete"),x.renderer.$textLayer.element.setAttribute("role",o),x.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),x.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),x.renderer.textarea.setAttribute("aria-hidden","true"),x.setOption("displayIndentGuides",!1),x.setOption("dragDelay",150);var T=function(){};x.focus=T,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=T,x.renderer.$cursorLayer.element.style.opacity="0",x.renderer.$maxLines=8,x.renderer.$keepTextAreaAtCursor=!1,x.setHighlightActiveLine(!1),x.session.highlight(""),x.session.$searchHighlight.clazz="ace_highlight-marker",x.on("mousedown",function(S){var R=S.getDocumentPosition();x.selection.moveToPosition(R),M.start.row=M.end.row=R.row,S.stop()});var E,I=new w(-1,0,-1,1/0),M=new w(-1,0,-1,1/0);M.id=x.session.addMarker(M,"ace_active-line","fullLine"),x.setSelectOnHover=function(S){S?I.id&&(x.session.removeMarker(I.id),I.id=null):I.id=x.session.addMarker(I,"ace_line-hover","fullLine")},x.setSelectOnHover(!1),x.on("mousemove",function(S){if(!E){E=S;return}if(!(E.x==S.x&&E.y==S.y)){E=S,E.scrollTop=x.renderer.scrollTop,x.isMouseOver=!0;var R=E.getDocumentPosition().row;I.start.row!=R&&(I.id||x.setRow(R),$(R))}}),x.renderer.on("beforeRender",function(){if(E&&I.start.row!=-1){E.$pos=null;var S=E.getDocumentPosition().row;I.id||x.setRow(S),$(S,!0)}}),x.renderer.on("afterRender",function(){var S=x.getRow(),R=x.renderer.$textLayer,O=R.element.childNodes[S-R.config.firstRow],F=document.activeElement;if(O!==x.selectedNode&&x.selectedNode&&(s.removeCssClass(x.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),x.selectedNode.removeAttribute(g),x.selectedNode.removeAttribute("id")),x.selectedNode=O,O){s.addCssClass(O,"ace_selected");var z=c(S);O.id=z,R.element.setAttribute("aria-activedescendant",z),F.setAttribute("aria-activedescendant",z),O.setAttribute("role",u),O.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",x.getData(S).caption||x.getData(S).value),O.setAttribute("aria-setsize",x.data.length),O.setAttribute("aria-posinset",S+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(g,"true")}});var N=function(){$(-1)},$=function(S,R){S!==I.start.row&&(I.start.row=I.end.row=S,R||x.session._emit("changeBackMarker"),x._emit("changeHoverMarker"))};x.getHoveredRow=function(){return I.start.row},h.addListener(x.container,"mouseout",function(){x.isMouseOver=!1,N()}),x.on("hide",N),x.on("changeSelection",N),x.session.doc.getLength=function(){return x.data.length},x.session.doc.getLine=function(S){var R=x.data[S];return typeof R=="string"?R:R&&R.value||""};var _=x.session.bgTokenizer;return _.$tokenizeRow=function(S){function R(X,ae){X&&F.push({type:(O.className||"")+(ae||""),value:X})}var O=x.data[S],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var z=O.caption||O.value||O.name,j=z.toLowerCase(),V=(x.filterText||"").toLowerCase(),q=0,J=0,G=0;G<=V.length;G++)if(G!=J&&(O.matchMask&1<<G||G==V.length)){var Q=V.slice(J,G);J=G;var ie=j.indexOf(Q,q);if(ie==-1)continue;R(z.slice(q,ie),""),q=ie+Q.length,R(z.slice(ie,q),"completion-highlight")}return R(z.slice(q,z.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=T,_.start=T,x.session.$computeWidth=function(){return this.screenWidth=0},x.isOpen=!1,x.isTopdown=!1,x.autoSelect=!0,x.filterText="",x.isMouseOver=!1,x.data=[],x.setData=function(S,R){x.filterText=R||"",x.setValue(f.stringRepeat(`
1122
+ `,S.length),-1),x.data=S||[],x.setRow(0)},x.getData=function(S){return x.data[S]},x.getRow=function(){return M.start.row},x.setRow=function(S){S=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,S)),M.start.row!=S&&(x.selection.clearSelection(),M.start.row=M.end.row=S||0,x.session._emit("changeBackMarker"),x.moveCursorTo(S||0,0),x.isOpen&&x._signal("select"))},x.on("changeSelection",function(){x.isOpen&&x.setRow(x.selection.lead.row),x.renderer.scrollCursorIntoView()}),x.hide=function(){this.container.style.display="none",x.anchorPos=null,x.anchor=null,x.isOpen&&(x.isOpen=!1,this._signal("hide"))},x.tryShow=function(S,R,O,F){if(!F&&x.isOpen&&x.anchorPos&&x.anchor&&x.anchorPos.top===S.top&&x.anchorPos.left===S.left&&x.anchor===O)return!0;var z=this.container,j=window.innerHeight,V=window.innerWidth,q=this.renderer,J=q.$maxLines*R*1.4,G={top:0,bottom:0,left:0},Q=j-S.top-3*this.$borderSize-R,ie=S.top-3*this.$borderSize;O||(ie<=Q||Q>=J?O="bottom":O="top"),O==="top"?(G.bottom=S.top-this.$borderSize,G.top=G.bottom-J):O==="bottom"&&(G.top=S.top+R+this.$borderSize,G.bottom=G.top+J);var X=G.top>=0&&G.bottom<=j;if(!F&&!X)return!1;X?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=ie:q.$maxPixelHeight=Q,O==="top"?(z.style.top="",z.style.bottom=j-G.bottom+"px",x.isTopdown=!1):(z.style.top=G.top+"px",z.style.bottom="",x.isTopdown=!0),z.style.display="";var ae=S.left;return ae+z.offsetWidth>V&&(ae=V-z.offsetWidth),z.style.left=ae+"px",z.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),E=null),x.anchorPos=S,x.anchor=O,!0},x.show=function(S,R,O){this.tryShow(S,R,O?"bottom":void 0,!0)},x.goTo=function(S){var R=this.getRow(),O=this.session.getLength()-1;switch(S){case"up":R=R<=0?O:R-1;break;case"down":R=R>=O?-1:R+1;break;case"start":R=0;break;case"end":R=O}this.setRow(R)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return L}();s.importCssString(`
1123
+ .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1124
+ background-color: #CAD6FA;
1125
+ z-index: 1;
1126
+ }
1127
+ .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1128
+ background-color: #3a674e;
1129
+ }
1130
+ .ace_editor.ace_autocomplete .ace_line-hover {
1131
+ border: 1px solid #abbffe;
1132
+ margin-top: -1px;
1133
+ background: rgba(233,233,253,0.4);
1134
+ position: absolute;
1135
+ z-index: 2;
1136
+ }
1137
+ .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1138
+ border: 1px solid rgba(109, 150, 13, 0.8);
1139
+ background: rgba(58, 103, 78, 0.62);
1140
+ }
1141
+ .ace_completion-meta {
1142
+ opacity: 0.5;
1143
+ margin-left: 0.9em;
1144
+ }
1145
+ .ace_completion-message {
1146
+ margin-left: 0.9em;
1147
+ color: blue;
1148
+ }
1149
+ .ace_editor.ace_autocomplete .ace_completion-highlight{
1150
+ color: #2d69c7;
1151
+ }
1152
+ .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1153
+ color: #93ca12;
1154
+ }
1155
+ .ace_editor.ace_autocomplete {
1156
+ width: 300px;
1157
+ z-index: 200000;
1158
+ border: 1px lightgray solid;
1159
+ position: fixed;
1160
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1161
+ line-height: 1.4;
1162
+ background: #fefefe;
1163
+ color: #111;
1164
+ }
1165
+ .ace_dark.ace_editor.ace_autocomplete {
1166
+ border: 1px #484747 solid;
1167
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1168
+ line-height: 1.4;
1169
+ background: #25282c;
1170
+ color: #c1c1c1;
1171
+ }
1172
+ .ace_autocomplete .ace_text-layer {
1173
+ width: calc(100% - 8px);
1174
+ }
1175
+ .ace_autocomplete .ace_line {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ }
1179
+ .ace_autocomplete .ace_line > * {
1180
+ min-width: 0;
1181
+ flex: 0 0 auto;
1182
+ }
1183
+ .ace_autocomplete .ace_line .ace_ {
1184
+ flex: 0 1 auto;
1185
+ overflow: hidden;
1186
+ text-overflow: ellipsis;
1187
+ }
1188
+ .ace_autocomplete .ace_completion-spacer {
1189
+ flex: 1;
1190
+ }
1191
+ .ace_autocomplete.ace_loading:after {
1192
+ content: "";
1193
+ position: absolute;
1194
+ top: 0px;
1195
+ height: 2px;
1196
+ width: 8%;
1197
+ background: blue;
1198
+ z-index: 100;
1199
+ animation: ace_progress 3s infinite linear;
1200
+ animation-delay: 300ms;
1201
+ transform: translateX(-100%) scaleX(1);
1202
+ }
1203
+ @keyframes ace_progress {
1204
+ 0% { transform: translateX(-100%) scaleX(1) }
1205
+ 50% { transform: translateX(625%) scaleX(2) }
1206
+ 100% { transform: translateX(1500%) scaleX(3) }
1207
+ }
1208
+ @media (prefers-reduced-motion) {
1209
+ .ace_autocomplete.ace_loading:after {
1210
+ transform: translateX(625%) scaleX(2);
1211
+ animation: none;
1212
+ }
1213
+ }
1214
+ `,"autocompletion.css",!1),i.AcePopup=b,i.$singleLineEditor=y,i.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,i,m){var p=function(){function v(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return v.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var f=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[f-s.config.firstRow];if(l){for(var a="doc-tooltip ",c=0;c<this._lines.length;c++)a+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",a)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},v.prototype.destroy=function(){this.screenReaderDiv.remove()},v.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);f.appendChild(s),w.appendChild(f)}return w},v}();i.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,i,m){var p=e("../snippets").snippetManager,v=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(f,s,l){if(l=l||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new v(f));var a=s.snippet?p.getDisplayTextForSnippet(f,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(l)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(l.length),a===""?f.removeGhostText():f.setGhostText(a),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();i.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,i,m){i.parForEach=function(v,w,h){var f=0,s=v.length;s===0&&h();for(var l=0;l<s;l++)w(v[l],function(a,c){f++,f===s&&h(a,c)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(v,w,h){h=h||p;for(var f=[],s=w-1;s>=0&&h.test(v[s]);s--)f.push(v[s]);return f.reverse().join("")},i.retrieveFollowingIdentifier=function(v,w,h){h=h||p;for(var f=[],s=w;s<v.length&&h.test(v[s]);s++)f.push(v[s]);return f},i.getCompletionPrefix=function(v){var w=v.getCursorPosition(),h=v.session.getLine(w.row),f;return v.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!f&&l&&(f=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(h,w.column)},i.triggerAutocomplete=function(v,h){var h=h??v.session.getPrecedingCharacter();return v.completers.some(function(f){if(f.triggerCharacters&&Array.isArray(f.triggerCharacters))return f.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,i,m){var p=e("./keyboard/hash_handler").HashHandler,v=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,f=e("./autocomplete/util"),s=e("./lib/lang"),l=e("./lib/dom"),a=e("./snippets").snippetManager,c=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,g=function(A,k){k.completer&&k.completer.destroy()},y=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new L(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new v(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var x=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(x),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},A.prototype.$updateGhostText=function(k){var x=this.base.row,T=this.base.column,E=this.editor.getCursorPosition().column,I=this.editor.session.getLine(x).slice(T,E);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var x=this.popup.getFirstVisibleRow();x<=this.popup.getLastVisibleRow();x++){var T=this.popup.getData(x);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,x=[];k;)x.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=x}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(x){x.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,x=k.renderer,T=x.layerConfig.lineHeight,E=x.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();E.top+=I.top-x.layerConfig.offset,E.left+=I.left-k.renderer.scrollLeft,E.left+=x.gutterWidth;var M={top:E.top,left:E.left};x.$ghostText&&x.$ghostTextWidget&&this.base.row===x.$ghostText.position.row&&(M.top+=x.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-T,$=N<M.top?{top:N,left:M.left}:M;this.popup.tryShow($,T,"bottom")||this.popup.tryShow(E,T,"top")||this.popup.show(E,T)},A.prototype.openPopup=function(k,x,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E=this.popup.getRow(),I=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var M;this.stickySelection&&(M=this.popup.data.indexOf(I)),(!M||M===-1)&&(M=0),this.popup.setRow(this.autoSelect?M:-1),M===E&&I!==this.completions.filtered[M]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(M===E&&N){var $=this.popup.getData(this.popup.getRow());this.$updateGhostText($)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},A.prototype.changeListener=function(k){var x=this.editor.selection.lead;(x.row!=this.base.row||x.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},A.prototype.blurListener=function(k){var x=document.activeElement,T=this.editor.textInput.getElement(),E=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;x!=T&&x.parentNode!=I&&!E&&x!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,x){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,x);return this.completions==T&&this.detach(),E},A.prototype.showPopup=function(k,x){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,x)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new b(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,x){return this.getCompletionProvider().gatherCompletions(k,x)},A.prototype.updateCompletions=function(k,x){if(k&&this.base&&this.completions){var E=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:E});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,k);return}if(x&&x.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new L(x.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),E=this.editor.getCursorPosition(),I=f.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(E.row,E.column-I.length),this.base.$insertRight=!0;var M={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:E}).provideCompletions(this.editor,M,(function(N,$,_){var S=$.filtered,R=f.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!S.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(R)),O){var F=[{caption:O,value:""}];this.completions=new L(F),this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(S.length==1&&S[0].value==R&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!_&&this.showLoadingState?new L(A.completionsForLoading.concat(S),$.filterText):$,this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,x=this.completions.filtered,T=x&&(x[k.getHoveredRow()]||x[k.getRow()]),E=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,M=0;M<I;M++){var N=this.editor.completers[M];if(N.getDocTooltip&&T.completerId===N.id){E=N.getDocTooltip(T);break}}if(!E&&typeof T!="string"&&(E=T),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var x=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(x.isDark?"ace_dark ":"")+(x.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,I=E.container.getBoundingClientRect();T.style.top=E.container.style.top,T.style.bottom=E.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?E.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=E.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var x=k.target;x&&x!=this.tooltipNode;){if(x.nodeName=="A"&&x.href){x.rel="noreferrer",x.target="_blank";break}x=x.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",g),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",g))),k.completer},A}();y.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=f.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},y.startCommand={name:"startAutocomplete",exec:function(A,k){var x=y.for(A);x.autoInsert=!1,x.autoSelect=!0,x.autoShown=!1,x.showPopup(A,k),x.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var b=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,x,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[x],T)},A.prototype.insertMatch=function(k,x,T){if(!x)return!1;if(k.startOperation({command:{name:"insertMatch"}}),x.completer&&x.completer.insertMatch)x.completer.insertMatch(k,x);else{if(!this.completions)return!1;var E=this.completions.filterText.length,I=0;if(x.range&&x.range.start.row===x.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-x.range.start.column,I+=x.range.end.column-this.initialPosition.pos.column),E||I){var M;k.selection.getAllRanges?M=k.selection.getAllRanges():M=[k.getSelectionRange()];for(var N=0,$;$=M[N];N++)$.start.column-=E,$.end.column+=I,k.session.remove($)}x.snippet?a.insertSnippet(k,x.snippet):this.$insertString(k,x),x.completer&&x.completer.onInsert&&typeof x.completer.onInsert=="function"&&x.completer.onInsert(k,x),x.command&&x.command==="startAutocomplete"&&k.execCommand(x.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,x){var T=x.value||x;k.execCommand("insertstring",T)},A.prototype.gatherCompletions=function(k,x){var T=k.getSession(),E=k.getCursorPosition(),I=f.getCompletionPrefix(k),M=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function($,_){$.getCompletions(k,T,E,I,function(S,R){$.hideInlinePreview&&(R=R.map(function(O){return Object.assign(O,{hideInlinePreview:$.hideInlinePreview})})),!S&&R&&(M=M.concat(R)),x(null,{prefix:f.getCompletionPrefix(k),matches:M,finished:--N===0})})}),!0},A.prototype.provideCompletions=function(k,x,T){var E=(function($){var _=$.prefix,S=$.matches;this.completions=new L(S),x.exactMatch&&(this.completions.exactMatch=!0),x.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),($.finished||this.completions.filtered.length)&&T(null,this.completions,$.finished)}).bind(this),I=!0,M=null;if(this.gatherCompletions(k,(function($,_){if(this.active){$&&(T($,[],!0),this.detach());var S=_.prefix;if(S.indexOf(_.prefix)===0){if(I){M=_;return}E(_)}}}).bind(this)),I=!1,M){var N=M;M=null,E(N)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),L=function(){function A(k,x){this.all=k,this.filtered=k,this.filterText=x||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var x=this.filtered;else var x=this.all;this.filterText=k,x=this.filterCompletions(x,this.filterText),x=x.sort(function(E,I){return I.exactMatch-E.exactMatch||I.$score-E.$score||(E.caption||E.value).localeCompare(I.caption||I.value)});var T=null;x=x.filter(function(E){var I=E.snippet||E.caption||E.value;return I===T?!1:(T=I,!0)}),this.filtered=x},A.prototype.filterCompletions=function(k,x){var T=[],E=x.toUpperCase(),I=x.toLowerCase();e:for(var M=0,N;N=k[M];M++){var $=!this.ignoreCaption&&N.caption||N.value||N.snippet;if($){var _=-1,S=0,R=0,O,F;if(this.exactMatch){if(x!==$.substr(0,x.length))continue e}else{var z=$.toLowerCase().indexOf(I);if(z>-1)R=z;else for(var j=0;j<x.length;j++){var V=$.indexOf(I[j],_+1),q=$.indexOf(E[j],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(R+=10),R+=F,S|=1<<j),_=O}}N.matchMask=S,N.exactMatch=R?0:1,N.$score=(N.score||0)-R,T.push(N)}}return T},A}();i.Autocomplete=y,i.CompletionProvider=b,i.FilteredList=L}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,i,m){function p(f,s){var l=f.getTextRange(w.fromPoints({row:0,column:0},s));return l.split(h).length-1}function v(f,s){var l=p(f,s),a=f.getValue().split(h),c=Object.create(null),o=a[l];return a.forEach(function(u,g){if(!(!u||u===o)){var y=Math.abs(l-g),b=a.length-y;c[u]?c[u]=Math.max(b,c[u]):c[u]=b}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(f,s,l,a,c){var o=v(s,l),u=Object.keys(o);c(null,u.map(function(g){return{caption:g,value:g,score:o[g],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,i,m){var p=e("../snippets").snippetManager,v=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),f=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),l={getCompletions:function(E,I,M,N,$){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,M,N,$);var _=E.session.getState(M.row),S=I.$mode.getCompletions(_,I,M,N);S=S.map(function(R){return R.completerId=l.id,R}),$(null,S)},id:"keywordCompleter"},a=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(M,N,$,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(M,N){return I[N]})},c={getCompletions:function(E,I,M,N,$){var _=[],S=I.getTokenAt(M.row,M.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=p.getActiveScopes(E);var R=p.snippetMap,O=[];_.forEach(function(F){for(var z=R[F]||[],j=z.length;j--;){var V=z[j],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:c.id})}},this),$(null,O)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(a(E.snippet))].join(""))},id:"snippetCompleter"},o=[c,s,l];i.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},i.addCompleter=function(E){o.push(E)},i.textCompleter=s,i.keyWordCompleter=l,i.snippetCompleter=c;var u={name:"expandSnippet",exec:function(E){return p.expandWithTab(E)},bindKey:"Tab"},g=function(E,I){y(I.session.$mode)},y=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(p.files||(p.files={}),b(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(y))},b=function(E,I){!I||!E||p.files[E]||(p.files[E]={},w.loadModule(I,function(M){M&&(p.files[E]=M,!M.snippets&&M.snippetText&&(M.snippets=p.parseSnippetFile(M.snippetText)),p.register(M.snippets||[],M.scope),M.includeScopes&&(p.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(N){y("ace/mode/"+N)})))}))},L=function(E){var I=E.editor,M=I.completer&&I.completer.activated;if(E.command.name==="backspace")M&&!f.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!M){A=E;var N=E.editor.$liveAutocompletionDelay;N?k.delay(N):x(E)}},A,k=h.delayedCall(function(){x(A)},0),x=function(E){var I=E.editor,M=f.getCompletionPrefix(I),N=E.args,$=f.triggerAutocomplete(I,N);if(M&&M.length>=I.$liveAutocompletionThreshold||$){var _=v.for(I);_.autoShown=!0,_.showPopup(I)}},T=e("../editor").Editor;e("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(v.startCommand)):this.commands.removeCommand(v.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",L)):this.commands.off("afterExec",L)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",g),g(null,this)):(this.commands.removeCommand(u),this.off("changeMode",g))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(Dp)),Dp.exports}tb();var Fp={exports:{}},Pp;function nb(){return Pp||(Pp=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,i,m){m.exports=`
1215
+
1216
+ /* ------------------------------------------------------------------------------------------
1217
+ * Editor Search Form
1218
+ * --------------------------------------------------------------------------------------- */
1219
+ .ace_search {
1220
+ background-color: #ddd;
1221
+ color: #666;
1222
+ border: 1px solid #cbcbcb;
1223
+ border-top: 0 none;
1224
+ overflow: hidden;
1225
+ margin: 0;
1226
+ padding: 4px 6px 0 4px;
1227
+ position: absolute;
1228
+ top: 0;
1229
+ z-index: 99;
1230
+ white-space: normal;
1231
+ }
1232
+ .ace_search.left {
1233
+ border-left: 0 none;
1234
+ border-radius: 0px 0px 5px 0px;
1235
+ left: 0;
1236
+ }
1237
+ .ace_search.right {
1238
+ border-radius: 0px 0px 0px 5px;
1239
+ border-right: 0 none;
1240
+ right: 0;
1241
+ }
1242
+
1243
+ .ace_search_form, .ace_replace_form {
1244
+ margin: 0 20px 4px 0;
1245
+ overflow: hidden;
1246
+ line-height: 1.9;
1247
+ }
1248
+ .ace_replace_form {
1249
+ margin-right: 0;
1250
+ }
1251
+ .ace_search_form.ace_nomatch {
1252
+ outline: 1px solid red;
1253
+ }
1254
+
1255
+ .ace_search_field {
1256
+ border-radius: 3px 0 0 3px;
1257
+ background-color: white;
1258
+ color: black;
1259
+ border: 1px solid #cbcbcb;
1260
+ border-right: 0 none;
1261
+ outline: 0;
1262
+ padding: 0;
1263
+ font-size: inherit;
1264
+ margin: 0;
1265
+ line-height: inherit;
1266
+ padding: 0 6px;
1267
+ min-width: 17em;
1268
+ vertical-align: top;
1269
+ min-height: 1.8em;
1270
+ box-sizing: content-box;
1271
+ }
1272
+ .ace_searchbtn {
1273
+ border: 1px solid #cbcbcb;
1274
+ line-height: inherit;
1275
+ display: inline-block;
1276
+ padding: 0 6px;
1277
+ background: #fff;
1278
+ border-right: 0 none;
1279
+ border-left: 1px solid #dcdcdc;
1280
+ cursor: pointer;
1281
+ margin: 0;
1282
+ position: relative;
1283
+ color: #666;
1284
+ }
1285
+ .ace_searchbtn:last-child {
1286
+ border-radius: 0 3px 3px 0;
1287
+ border-right: 1px solid #cbcbcb;
1288
+ }
1289
+ .ace_searchbtn:disabled {
1290
+ background: none;
1291
+ cursor: default;
1292
+ }
1293
+ .ace_searchbtn:hover {
1294
+ background-color: #eef1f6;
1295
+ }
1296
+ .ace_searchbtn.prev, .ace_searchbtn.next {
1297
+ padding: 0px 0.7em
1298
+ }
1299
+ .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1300
+ content: "";
1301
+ border: solid 2px #888;
1302
+ width: 0.5em;
1303
+ height: 0.5em;
1304
+ border-width: 2px 0 0 2px;
1305
+ display:inline-block;
1306
+ transform: rotate(-45deg);
1307
+ }
1308
+ .ace_searchbtn.next:after {
1309
+ border-width: 0 2px 2px 0 ;
1310
+ }
1311
+ .ace_searchbtn_close {
1312
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1313
+ border-radius: 50%;
1314
+ border: 0 none;
1315
+ color: #656565;
1316
+ cursor: pointer;
1317
+ font: 16px/16px Arial;
1318
+ padding: 0;
1319
+ height: 14px;
1320
+ width: 14px;
1321
+ top: 9px;
1322
+ right: 7px;
1323
+ position: absolute;
1324
+ }
1325
+ .ace_searchbtn_close:hover {
1326
+ background-color: #656565;
1327
+ background-position: 50% 100%;
1328
+ color: white;
1329
+ }
1330
+
1331
+ .ace_button {
1332
+ margin-left: 2px;
1333
+ cursor: pointer;
1334
+ -webkit-user-select: none;
1335
+ -moz-user-select: none;
1336
+ -o-user-select: none;
1337
+ -ms-user-select: none;
1338
+ user-select: none;
1339
+ overflow: hidden;
1340
+ opacity: 0.7;
1341
+ border: 1px solid rgba(100,100,100,0.23);
1342
+ padding: 1px;
1343
+ box-sizing: border-box!important;
1344
+ color: black;
1345
+ }
1346
+
1347
+ .ace_button:hover {
1348
+ background-color: #eee;
1349
+ opacity:1;
1350
+ }
1351
+ .ace_button:active {
1352
+ background-color: #ddd;
1353
+ }
1354
+
1355
+ .ace_button.checked {
1356
+ border-color: #3399ff;
1357
+ opacity:1;
1358
+ }
1359
+
1360
+ .ace_search_options{
1361
+ margin-bottom: 3px;
1362
+ text-align: right;
1363
+ -webkit-user-select: none;
1364
+ -moz-user-select: none;
1365
+ -o-user-select: none;
1366
+ -ms-user-select: none;
1367
+ user-select: none;
1368
+ clear: both;
1369
+ }
1370
+
1371
+ .ace_search_counter {
1372
+ float: left;
1373
+ font-family: arial;
1374
+ padding: 0 8px;
1375
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,i,m){var p=e("../lib/dom"),v=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),f=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),l=e("../config").nls,a=999;p.importCssString(h,"ace_searchbox",!1);var c=function(){function g(y,b,L){this.activeInput;var A=p.createElement("div");p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(y),p.importCssString(h,"ace_searchbox",y.container)}return g.prototype.setEditor=function(y){y.searchBox=this,y.renderer.scroller.appendChild(this.element),this.editor=y},g.prototype.setSession=function(y){this.searchRange=null,this.$syncOptions(!0)},g.prototype.$initElements=function(y){this.searchBox=y.querySelector(".ace_search_form"),this.replaceBox=y.querySelector(".ace_replace_form"),this.searchOption=y.querySelector("[action=searchInSelection]"),this.replaceOption=y.querySelector("[action=toggleReplace]"),this.regExpOption=y.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=y.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=y.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=y.querySelector(".ace_search_counter")},g.prototype.$init=function(){var y=this.element;this.$initElements(y);var b=this;w.addListener(y,"mousedown",function(L){setTimeout(function(){b.activeInput.focus()},0),w.stopPropagation(L)}),w.addListener(y,"click",function(L){var A=L.target||L.srcElement,k=A.getAttribute("action");k&&b[k]?b[k]():b.$searchBarKb.commands[k]&&b.$searchBarKb.commands[k].exec(b),w.stopPropagation(L)}),w.addCommandKeyListener(y,function(L,A,k){var x=s.keyCodeToString(k),T=b.$searchBarKb.findKeyCommand(A,x);T&&T.exec&&(T.exec(b),w.stopEvent(L))}),this.$onChange=v.delayedCall(function(){b.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),w.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},g.prototype.setSearchRange=function(y){this.searchRange=y,y?this.searchRangeMarker=this.editor.session.addMarker(y,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},g.prototype.$syncOptions=function(y){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var b=this.editor.getReadOnly();this.replaceOption.style.display=b?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!b?"":"none",this.find(!1,!1,y)},g.prototype.highlight=function(y){this.editor.session.highlight(y||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},g.prototype.find=function(y,b,L){var A=this.editor.find(this.searchInput.value,{skipCurrent:y,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:L,range:this.searchRange}),k=!A&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},g.prototype.updateCounter=function(){var y=this.editor,b=y.$search.$options.re,L=b.unicode,A=0,k=0;if(b){var x=this.searchRange?y.session.getTextRange(this.searchRange):y.getValue(),T=y.session.doc.positionToIndex(y.selection.anchor);this.searchRange&&(T-=y.session.doc.positionToIndex(this.searchRange.start));for(var E=b.lastIndex=0,I;(I=b.exec(x))&&(A++,E=I.index,E<=T&&k++,!(A>a||!I[0]&&(b.lastIndex=E+=v.skipEmptyMatch(x,E,L),E>=x.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[k,A>a?a+"+":A])},g.prototype.findNext=function(){this.find(!0,!1)},g.prototype.findPrev=function(){this.find(!0,!0)},g.prototype.findAll=function(){var y=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!y&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},g.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},g.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},g.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},g.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},g.prototype.show=function(y,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,y&&(this.searchInput.value=y),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},g.prototype.isFocused=function(){var y=document.activeElement;return y==this.searchInput||y==this.replaceInput},g}(),o=new f;o.bindKeys({"Ctrl-f|Command-f":function(g){var y=g.isReplace=!g.isReplace;g.replaceBox.style.display=y?"":"none",g.replaceOption.checked=!1,g.$syncOptions(),g.searchInput.focus()},"Ctrl-H|Command-Option-F":function(g){g.editor.getReadOnly()||(g.replaceOption.checked=!0,g.$syncOptions(),g.replaceInput.focus())},"Ctrl-G|Command-G":function(g){g.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(g){g.findPrev()},esc:function(g){setTimeout(function(){g.hide()})},Return:function(g){g.activeInput==g.replaceInput&&g.replace(),g.findNext()},"Shift-Return":function(g){g.activeInput==g.replaceInput&&g.replace(),g.findPrev()},"Alt-Return":function(g){g.activeInput==g.replaceInput&&g.replaceAll(),g.findAll()},Tab:function(g){(g.activeInput==g.replaceInput?g.searchInput:g.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(g){g.regExpOption.checked=!g.regExpOption.checked,g.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(g){g.caseSensitiveOption.checked=!g.caseSensitiveOption.checked,g.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(g){g.wholeWordOption.checked=!g.wholeWordOption.checked,g.$syncOptions()}},{name:"toggleReplace",exec:function(g){g.replaceOption.checked=!g.replaceOption.checked,g.$syncOptions()}},{name:"searchInSelection",exec:function(g){g.searchOption.checked=!g.searchRange,g.setSearchRange(g.searchOption.checked&&g.editor.getSelectionRange()),g.$syncOptions()}}]);var u=new f([{bindKey:"Esc",name:"closeSearchBar",exec:function(g){g.searchBox.hide()}}]);c.prototype.$searchBarKb=o,c.prototype.$closeSearchBarKb=u,i.SearchBox=c,i.Search=function(g,y){var b=g.searchBox||new c(g);b.show(g.session.getTextRange(),y)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(Fp)),Fp.exports}nb();var ib=Object.defineProperty,rb=(n,t,e)=>t in n?ib(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,to=(n,t,e)=>rb(n,typeof t!="symbol"?t+"":t,e);function zp(n,t){return function(){return n.apply(t,arguments)}}const{toString:ob}=Object.prototype,{getPrototypeOf:Fc}=Object,Ra=(n=>t=>{const e=ob.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ri=n=>(n=n.toLowerCase(),t=>Ra(t)===n),Ia=n=>t=>typeof t===n,{isArray:No}=Array,ks=Ia("undefined");function sb(n){return n!==null&&!ks(n)&&n.constructor!==null&&!ks(n.constructor)&&ci(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Hp=Ri("ArrayBuffer");function ab(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Hp(n.buffer),t}const lb=Ia("string"),ci=Ia("function"),Bp=Ia("number"),Oa=n=>n!==null&&typeof n=="object",cb=n=>n===!0||n===!1,Da=n=>{if(Ra(n)!=="object")return!1;const t=Fc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},ub=Ri("Date"),hb=Ri("File"),db=Ri("Blob"),pb=Ri("FileList"),fb=n=>Oa(n)&&ci(n.pipe),gb=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ci(n.append)&&((t=Ra(n))==="formdata"||t==="object"&&ci(n.toString)&&n.toString()==="[object FormData]"))},mb=Ri("URLSearchParams"),[vb,yb,wb,bb]=["ReadableStream","Request","Response","Headers"].map(Ri),xb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $s(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),No(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),v=p.length;let w;for(i=0;i<v;i++)w=p[i],t.call(null,n[w],w,n)}}function Wp(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const no=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jp=n=>!ks(n)&&n!==no;function Pc(){const{caseless:n}=jp(this)&&this||{},t={},e=(i,m)=>{const p=n&&Wp(t,m)||m;Da(t[p])&&Da(i)?t[p]=Pc(t[p],i):Da(i)?t[p]=Pc({},i):No(i)?t[p]=i.slice():t[p]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&$s(arguments[i],e);return t}const _b=(n,t,e,{allOwnKeys:i}={})=>($s(t,(m,p)=>{e&&ci(m)?n[p]=zp(m,e):n[p]=m},{allOwnKeys:i}),n),kb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),$b=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Sb=(n,t,e,i)=>{let m,p,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),p=m.length;p-- >0;)v=m[p],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&Fc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Cb=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Ab=n=>{if(!n)return null;if(No(n))return n;let t=n.length;if(!Bp(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Tb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Fc(Uint8Array)),Mb=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Eb=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Lb=Ri("HTMLFormElement"),Rb=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Up=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Ib=Ri("RegExp"),Vp=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};$s(e,(m,p)=>{let v;(v=t(m,p,n))!==!1&&(i[p]=v||m)}),Object.defineProperties(n,i)},Ob=n=>{Vp(n,(t,e)=>{if(ci(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(ci(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Db=(n,t)=>{const e={},i=m=>{m.forEach(p=>{e[p]=!0})};return No(n)?i(n):i(String(n).split(t)),e},Nb=()=>{},Fb=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,zc="abcdefghijklmnopqrstuvwxyz",qp="0123456789",Gp={DIGIT:qp,ALPHA:zc,ALPHA_DIGIT:zc+zc.toUpperCase()+qp},Pb=(n=16,t=Gp.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function zb(n){return!!(n&&ci(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Hb=n=>{const t=new Array(10),e=(i,m)=>{if(Oa(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const p=No(i)?[]:{};return $s(i,(v,w)=>{const h=e(v,m+1);!ks(h)&&(p[w]=h)}),t[m]=void 0,p}}return i};return e(n,0)},Bb=Ri("AsyncFunction"),Wb=n=>n&&(Oa(n)||ci(n))&&ci(n.then)&&ci(n.catch),Yp=((n,t)=>n?setImmediate:t?((e,i)=>(no.addEventListener("message",({source:m,data:p})=>{m===no&&p===e&&i.length&&i.shift()()},!1),m=>{i.push(m),no.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ci(no.postMessage)),jb=typeof queueMicrotask<"u"?queueMicrotask.bind(no):typeof process<"u"&&process.nextTick||Yp,ue={isArray:No,isArrayBuffer:Hp,isBuffer:sb,isFormData:gb,isArrayBufferView:ab,isString:lb,isNumber:Bp,isBoolean:cb,isObject:Oa,isPlainObject:Da,isReadableStream:vb,isRequest:yb,isResponse:wb,isHeaders:bb,isUndefined:ks,isDate:ub,isFile:hb,isBlob:db,isRegExp:Ib,isFunction:ci,isStream:fb,isURLSearchParams:mb,isTypedArray:Tb,isFileList:pb,forEach:$s,merge:Pc,extend:_b,trim:xb,stripBOM:kb,inherits:$b,toFlatObject:Sb,kindOf:Ra,kindOfTest:Ri,endsWith:Cb,toArray:Ab,forEachEntry:Mb,matchAll:Eb,isHTMLForm:Lb,hasOwnProperty:Up,hasOwnProp:Up,reduceDescriptors:Vp,freezeMethods:Ob,toObjectSet:Db,toCamelCase:Rb,noop:Nb,toFiniteNumber:Fb,findKey:Wp,global:no,isContextDefined:jp,ALPHABET:Gp,generateString:Pb,isSpecCompliantForm:zb,toJSONObject:Hb,isAsyncFn:Bb,isThenable:Wb,setImmediate:Yp,asap:jb};function et(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}ue.inherits(et,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:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const Kp=et.prototype,Zp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Zp[n]={value:n}}),Object.defineProperties(et,Zp),Object.defineProperty(Kp,"isAxiosError",{value:!0}),et.from=(n,t,e,i,m,p)=>{const v=Object.create(Kp);return ue.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),et.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,p&&Object.assign(v,p),v};const Ub=null;function Hc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Qp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function Xp(n,t,e){return n?n.concat(t).map(function(i,m){return i=Qp(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function Vb(n){return ue.isArray(n)&&!n.some(Hc)}const qb=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Na(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!ue.isUndefined(o[c])});const i=e.metaTokens,m=e.visitor||f,p=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(m))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(ue.isDate(c))return c.toISOString();if(!w&&ue.isBlob(c))throw new et("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(c)||ue.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,o,u){let g=c;if(c&&!u&&typeof c=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(ue.isArray(c)&&Vb(c)||(ue.isFileList(c)||ue.endsWith(o,"[]"))&&(g=ue.toArray(c)))return o=Qp(o),g.forEach(function(y,b){!(ue.isUndefined(y)||y===null)&&t.append(v===!0?Xp([o],b,p):v===null?o:o+"[]",h(y))}),!1}return Hc(c)?!0:(t.append(Xp(u,o,p),h(c)),!1)}const s=[],l=Object.assign(qb,{defaultVisitor:f,convertValue:h,isVisitable:Hc});function a(c,o){if(!ue.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(c),ue.forEach(c,function(u,g){(!(ue.isUndefined(u)||u===null)&&m.call(t,u,ue.isString(g)?g.trim():g,o,l))===!0&&a(u,o?o.concat(g):[g])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),t}function Jp(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Bc(n,t){this._pairs=[],n&&Na(n,this,t)}const ef=Bc.prototype;ef.append=function(n,t){this._pairs.push([n,t])},ef.toString=function(n){const t=n?function(e){return n.call(this,e,Jp)}:Jp;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Gb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tf(n,t,e){if(!t)return n;const i=e&&e.encode||Gb;ue.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let p;if(m?p=m(t,e):p=ue.isURLSearchParams(t)?t.toString():new Bc(t,e).toString(i),p){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class nf{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const rf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yb=typeof URLSearchParams<"u"?URLSearchParams:Bc,Kb=typeof FormData<"u"?FormData:null,Zb=typeof Blob<"u"?Blob:null,Qb={isBrowser:!0,classes:{URLSearchParams:Yb,FormData:Kb,Blob:Zb},protocols:["http","https","file","blob","url","data"]},Wc=typeof window<"u"&&typeof document<"u",jc=typeof navigator=="object"&&navigator||void 0,Xb=Wc&&(!jc||["ReactNative","NativeScript","NS"].indexOf(jc.product)<0),Jb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",e1=Wc&&window.location.href||"http://localhost",t1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wc,hasStandardBrowserEnv:Xb,hasStandardBrowserWebWorkerEnv:Jb,navigator:jc,origin:e1},Symbol.toStringTag,{value:"Module"})),Nn={...t1,...Qb};function n1(n,t){return Na(n,new Nn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,p){return Nn.isNode&&ue.isBuffer(e)?(this.append(i,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function i1(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function r1(n){const t={},e=Object.keys(n);let i;const m=e.length;let p;for(i=0;i<m;i++)p=e[i],t[p]=n[p];return t}function of(n){function t(e,i,m,p){let v=e[p++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=p>=e.length;return v=!v&&ue.isArray(m)?m.length:v,h?(ue.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!ue.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],p)&&ue.isArray(m[v])&&(m[v]=r1(m[v])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(i,m)=>{t(i1(i),m,e,0)}),e}return null}function o1(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const Ss={transitional:rf,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=ue.isObject(n);if(m&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return i?JSON.stringify(of(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return n1(n,this.formSerializer).toString();if((p=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Na(p?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),o1(n)):n}],transformResponse:[function(n){const t=this.transitional||Ss.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(p){if(m)throw p.name==="SyntaxError"?et.from(p,et.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nn.classes.FormData,Blob:Nn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{Ss.headers[n]={}});const s1=ue.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"]),a1=n=>{const t={};let e,i,m;return n&&n.split(`
1376
+ `).forEach(function(p){m=p.indexOf(":"),e=p.substring(0,m).trim().toLowerCase(),i=p.substring(m+1).trim(),!(!e||t[e]&&s1[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},sf=Symbol("internals");function Cs(n){return n&&String(n).trim().toLowerCase()}function Fa(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Fa):String(n)}function l1(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const c1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Uc(n,t,e,i,m){if(ue.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!ue.isString(t)){if(ue.isString(i))return t.indexOf(i)!==-1;if(ue.isRegExp(i))return i.test(t)}}function u1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function h1(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,p,v){return this[i].call(this,t,m,p,v)},configurable:!0})})}class Jn{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function p(w,h,f){const s=Cs(h);if(!s)throw new Error("header name must be a non-empty string");const l=ue.findKey(m,s);(!l||m[l]===void 0||f===!0||f===void 0&&m[l]!==!1)&&(m[l||h]=Fa(w))}const v=(w,h)=>ue.forEach(w,(f,s)=>p(f,s,h));if(ue.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(ue.isString(t)&&(t=t.trim())&&!c1(t))v(a1(t),e);else if(ue.isHeaders(t))for(const[w,h]of t.entries())p(h,w,i);else t!=null&&p(e,t,i);return this}get(t,e){if(t=Cs(t),t){const i=ue.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return l1(m);if(ue.isFunction(e))return e.call(this,m,i);if(ue.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Cs(t),t){const i=ue.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||Uc(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function p(v){if(v=Cs(v),v){const w=ue.findKey(i,v);w&&(!e||Uc(i,i[w],w,e))&&(delete i[w],m=!0)}}return ue.isArray(t)?t.forEach(p):p(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const p=e[i];(!t||Uc(this,this[p],p,t,!0))&&(delete this[p],m=!0)}return m}normalize(t){const e=this,i={};return ue.forEach(this,(m,p)=>{const v=ue.findKey(i,p);if(v){e[v]=Fa(m),delete e[p];return}const w=t?u1(p):String(p).trim();w!==p&&delete e[p],e[w]=Fa(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&ue.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[sf]=this[sf]={accessors:{}}).accessors,i=this.prototype;function m(p){const v=Cs(p);e[v]||(h1(i,p),e[v]=!0)}return ue.isArray(t)?t.forEach(m):m(t),this}}Jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Jn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),ue.freezeMethods(Jn);function Vc(n,t){const e=this||Ss,i=t||e,m=Jn.from(i.headers);let p=i.data;return ue.forEach(n,function(v){p=v.call(e,p,m.normalize(),t?t.status:void 0)}),m.normalize(),p}function af(n){return!!(n&&n.__CANCEL__)}function Fo(n,t,e){et.call(this,n??"canceled",et.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Fo,et,{__CANCEL__:!0});function lf(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new et("Request failed with status code "+e.status,[et.ERR_BAD_REQUEST,et.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function d1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function p1(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,p=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),f=i[p];v||(v=h),e[m]=w,i[m]=h;let s=p,l=0;for(;s!==m;)l+=e[s++],s=s%n;if(m=(m+1)%n,m===p&&(p=(p+1)%n),h-v<t)return;const a=f&&h-f;return a?Math.round(l*1e3/a):void 0}}function f1(n,t){let e=0,i=1e3/t,m,p;const v=(w,h=Date.now())=>{e=h,m=null,p&&(clearTimeout(p),p=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),f=h-e;f>=i?v(w,h):(m=w,p||(p=setTimeout(()=>{p=null,v(m)},i-f)))},()=>m&&v(m)]}const Pa=(n,t,e=3)=>{let i=0;const m=p1(50,250);return f1(p=>{const v=p.loaded,w=p.lengthComputable?p.total:void 0,h=v-i,f=m(h),s=v<=w;i=v;const l={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:f||void 0,estimated:f&&w&&s?(w-v)/f:void 0,event:p,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},cf=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},uf=n=>(...t)=>ue.asap(()=>n(...t)),g1=Nn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Nn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Nn.origin),Nn.navigator&&/(msie|trident)/i.test(Nn.navigator.userAgent)):()=>!0,m1=Nn.hasStandardBrowserEnv?{write(n,t,e,i,m,p){const v=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),ue.isString(i)&&v.push("path="+i),ue.isString(m)&&v.push("domain="+m),p===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function y1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function hf(n,t){return n&&!v1(t)?y1(n,t):t}const df=n=>n instanceof Jn?{...n}:n;function io(n,t){t=t||{};const e={};function i(f,s,l,a){return ue.isPlainObject(f)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},f,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function m(f,s,l,a){if(ue.isUndefined(s)){if(!ue.isUndefined(f))return i(void 0,f,l,a)}else return i(f,s,l,a)}function p(f,s){if(!ue.isUndefined(s))return i(void 0,s)}function v(f,s){if(ue.isUndefined(s)){if(!ue.isUndefined(f))return i(void 0,f)}else return i(void 0,s)}function w(f,s,l){if(l in t)return i(f,s);if(l in n)return i(void 0,f)}const h={url:p,method:p,data:p,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(f,s,l)=>m(df(f),df(s),l,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(f){const s=h[f]||m,l=s(n[f],t[f],f);ue.isUndefined(l)&&s!==w||(e[f]=l)}),e}const pf=n=>{const t=io({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:p,headers:v,auth:w}=t;t.headers=v=Jn.from(v),t.url=tf(hf(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(ue.isFormData(e)){if(Nn.hasStandardBrowserEnv||Nn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[f,...s]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];v.setContentType([f||"multipart/form-data",...s].join("; "))}}if(Nn.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(t)),i||i!==!1&&g1(t.url))){const f=m&&p&&m1.read(p);f&&v.set(m,f)}return t},w1=typeof XMLHttpRequest<"u",b1=w1&&function(n){return new Promise(function(t,e){const i=pf(n);let m=i.data;const p=Jn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,f,s,l,a,c;function o(){a&&a(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function g(){if(!u)return;const b=Jn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),L={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};lf(function(A){t(A),o()},function(A){e(A),o()},L),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(e(new et("Request aborted",et.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new et("Network Error",et.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||rf;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),e(new et(b,L.clarifyTimeoutError?et.ETIMEDOUT:et.ECONNABORTED,n,u)),u=null},m===void 0&&p.setContentType(null),"setRequestHeader"in u&&ue.forEach(p.toJSON(),function(b,L){u.setRequestHeader(L,b)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([l,c]=Pa(h,!0),u.addEventListener("progress",l)),w&&u.upload&&([s,a]=Pa(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(f=b=>{u&&(e(!b||b.type?new Fo(null,n,u):b),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=d1(i.url);if(y&&Nn.protocols.indexOf(y)===-1){e(new et("Unsupported protocol "+y+":",et.ERR_BAD_REQUEST,n));return}u.send(m||null)})},x1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const p=function(f){if(!m){m=!0,w();const s=f instanceof Error?f:this.reason;i.abort(s instanceof et?s:new Fo(s instanceof Error?s.message:s))}};let v=t&&setTimeout(()=>{v=null,p(new et(`timeout ${t} of ms exceeded`,et.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(p):f.removeEventListener("abort",p)}),n=null)};n.forEach(f=>f.addEventListener("abort",p));const{signal:h}=i;return h.unsubscribe=()=>ue.asap(w),h}},_1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},k1=async function*(n,t){for await(const e of $1(n))yield*_1(e,t)},$1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},ff=(n,t,e,i)=>{const m=k1(n,t);let p=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:f,value:s}=await m.next();if(f){w(),h.close();return}let l=s.byteLength;if(e){let a=p+=l;e(a)}h.enqueue(new Uint8Array(s))}catch(f){throw w(f),f}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},za=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gf=za&&typeof ReadableStream=="function",S1=za&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),mf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},C1=gf&&mf(()=>{let n=!1;const t=new Request(Nn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),vf=64*1024,qc=gf&&mf(()=>ue.isReadableStream(new Response("").body)),Ha={stream:qc&&(n=>n.body)};za&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ha[t]&&(Ha[t]=ue.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new et(`Response type '${t}' is not supported`,et.ERR_NOT_SUPPORT,i)})})})(new Response);const A1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Nn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await S1(n)).byteLength},T1=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??A1(t),M1=za&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:p,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:f,headers:s,withCredentials:l="same-origin",fetchOptions:a}=pf(n);f=f?(f+"").toLowerCase():"text";let c=x1([m,p&&p.toAbortSignal()],v),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let g;try{if(h&&C1&&e!=="get"&&e!=="head"&&(g=await T1(s,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),x;if(ue.isFormData(i)&&(x=k.headers.get("content-type"))&&s.setContentType(x),k.body){const[T,E]=cf(g,Pa(uf(h)));i=ff(k.body,vf,T,E)}}ue.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...a,signal:c,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:y?l:void 0});let b=await fetch(o);const L=qc&&(f==="stream"||f==="response");if(qc&&(w||L&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=ue.toFiniteNumber(b.headers.get("content-length")),[T,E]=w&&cf(x,Pa(uf(w),!0))||[];b=new Response(ff(b.body,vf,T,()=>{E&&E(),u&&u()}),k)}f=f||"text";let A=await Ha[ue.findKey(Ha,f)||"text"](b,n);return!L&&u&&u(),await new Promise((k,x)=>{lf(k,x,{data:A,headers:Jn.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new et("Network Error",et.ERR_NETWORK,n,o),{cause:y.cause||y}):et.from(y,y&&y.code,n,o)}}),Gc={http:Ub,xhr:b1,fetch:M1};ue.forEach(Gc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const yf=n=>`- ${n}`,E1=n=>ue.isFunction(n)||n===null||n===!1,wf={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let p=0;p<t;p++){e=n[p];let v;if(i=e,!E1(e)&&(i=Gc[(v=String(e)).toLowerCase()],i===void 0))throw new et(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+p]=i}if(!i){const p=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?p.length>1?`since :
1378
+ `+p.map(yf).join(`
1379
+ `):" "+yf(p[0]):"as no adapter specified";throw new et("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:Gc};function Yc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Fo(null,n)}function bf(n){return Yc(n),n.headers=Jn.from(n.headers),n.data=Vc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),wf.getAdapter(n.adapter||Ss.adapter)(n).then(function(t){return Yc(n),t.data=Vc.call(n,n.transformResponse,t),t.headers=Jn.from(t.headers),t},function(t){return af(t)||(Yc(n),t&&t.response&&(t.response.data=Vc.call(n,n.transformResponse,t.response),t.response.headers=Jn.from(t.response.headers))),Promise.reject(t)})}const xf="1.7.9",Ba={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Ba[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const _f={};Ba.transitional=function(n,t,e){function i(m,p){return"[Axios v"+xf+"] Transitional option '"+m+"'"+p+(e?". "+e:"")}return(m,p,v)=>{if(n===!1)throw new et(i(p," has been removed"+(t?" in "+t:"")),et.ERR_DEPRECATED);return t&&!_f[p]&&(_f[p]=!0,console.warn(i(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,p,v):!0}},Ba.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function L1(n,t,e){if(typeof n!="object")throw new et("options must be an object",et.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const p=i[m],v=t[p];if(v){const w=n[p],h=w===void 0||v(w,p,n);if(h!==!0)throw new et("option "+p+" must be "+h,et.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new et("Unknown option "+p,et.ERR_BAD_OPTION)}}const Wa={assertOptions:L1,validators:Ba},ji=Wa.validators;class ro{constructor(t){this.defaults=t,this.interceptors={request:new nf,response:new nf}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const p=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?p&&!String(i.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1380
+ `+p):i.stack=p}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=io(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:p}=e;i!==void 0&&Wa.assertOptions(i,{silentJSONParsing:ji.transitional(ji.boolean),forcedJSONParsing:ji.transitional(ji.boolean),clarifyTimeoutError:ji.transitional(ji.boolean)},!1),m!=null&&(ue.isFunction(m)?e.paramsSerializer={serialize:m}:Wa.assertOptions(m,{encode:ji.function,serialize:ji.function},!0)),Wa.assertOptions(e,{baseUrl:ji.spelling("baseURL"),withXsrfToken:ji.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=p&&ue.merge(p.common,p[e.method]);p&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=Jn.concat(v,p);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!h){const o=[bf.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,f),a=o.length,s=Promise.resolve(e);l<a;)s=s.then(o[l++],o[l++]);return s}a=w.length;let c=e;for(l=0;l<a;){const o=w[l++],u=w[l++];try{c=o(c)}catch(g){u.call(this,g);break}}try{s=bf.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=f.length;l<a;)s=s.then(f[l++],f[l++]);return s}getUri(t){t=io(this.defaults,t);const e=hf(t.baseURL,t.url);return tf(e,t.params,t.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){ro.prototype[n]=function(t,e){return this.request(io(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,p){return this.request(io(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}ro.prototype[n]=t(),ro.prototype[n+"Form"]=t(!0)});class Kc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let p=i._listeners.length;for(;p-- >0;)i._listeners[p](m);i._listeners=null}),this.promise.then=m=>{let p;const v=new Promise(w=>{i.subscribe(w),p=w}).then(m);return v.cancel=function(){i.unsubscribe(p)},v},t(function(m,p,v){i.reason||(i.reason=new Fo(m,p,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Kc(function(e){t=e}),cancel:t}}}function R1(n){return function(t){return n.apply(null,t)}}function I1(n){return ue.isObject(n)&&n.isAxiosError===!0}const Zc={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(Zc).forEach(([n,t])=>{Zc[t]=n});function kf(n){const t=new ro(n),e=zp(ro.prototype.request,t);return ue.extend(e,ro.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return kf(io(n,i))},e}const pn=kf(Ss);pn.Axios=ro,pn.CanceledError=Fo,pn.CancelToken=Kc,pn.isCancel=af,pn.VERSION=xf,pn.toFormData=Na,pn.AxiosError=et,pn.Cancel=pn.CanceledError,pn.all=function(n){return Promise.all(n)},pn.spread=R1,pn.isAxiosError=I1,pn.mergeConfig=io,pn.AxiosHeaders=Jn,pn.formToJSON=n=>of(ue.isHTMLForm(n)?new FormData(n):n),pn.getAdapter=wf.getAdapter,pn.HttpStatusCode=Zc,pn.default=pn;const Qc=pn.create({baseURL:location.origin,timeout:6e4,params:{}});Qc.interceptors.response.use(n=>n,n=>{var t,e,i,m,p,v,w,h,f,s,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let a=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(a+=`${n.response.statusText} `),(i=(e=n.response)==null?void 0:e.config)!=null&&i.data&&(a+=`${n.response.config.data} `),(p=(m=n.response)==null?void 0:m.data)!=null&&p.message?a+=`${n.response.data.message}`:(w=(v=n.response)==null?void 0:v.data)!=null&&w.exception?a+=`${n.response.data.exception}`:(s=(f=(h=n.response)==null?void 0:h.data)==null?void 0:f.error)!=null&&s.message?(n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`):a+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:a}),n}else throw n});const ja=async function(n,t,{data:e,params:i={},headers:m,noAuth:p=!1,noScope:v=!1,onUploadProgress:w=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}m.Authorization=localStorage.openc3Token}return m.manual=!0,!v&&!i.scope&&(i.scope=window.openc3Scope),Qc({method:n,url:t,data:e,params:i,headers:m,onUploadProgress:w})},Xc={Accept:"application/json"},$f={...Xc,"Content-Type":"application/json"},Jc=In("O",{get:function(n,{params:t,headers:e=Xc,noScope:i,noAuth:m,onUploadProgress:p}={}){return ja("get",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:p})},put:function(n,{data:t,params:e,headers:i=$f,noScope:m,noAuth:p,onUploadProgress:v}={}){return ja("put",n,{data:t,params:e,headers:i,noScope:m,noAuth:p,onUploadProgress:v})},post:function(n,{data:t,params:e,headers:i=$f,noScope:m,noAuth:p,onUploadProgress:v}={}){return ja("post",n,{data:t,params:e,headers:i,noScope:m,noAuth:p,onUploadProgress:v})},delete:function(n,{params:t,headers:e=Xc,noScope:i,noAuth:m,onUploadProgress:p}={}){return ja("delete",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:p})}});var Ua={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Kt={log(...n){this.enabled&&(n.push(Date.now()),Ua.logger.log("[ActionCable]",...n))}};const As=()=>new Date().getTime(),Va=n=>(As()-n)/1e3;class qa{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=As(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Kt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=As(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Kt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=As()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Kt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=As(),Kt.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),m=(this.reconnectAttempts===0?1:e)*Math.random();return t*1e3*i*(1+m)}reconnectIfStale(){this.connectionIsStale()&&(Kt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Va(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Kt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Va(this.disconnectedAt)} s`):(Kt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Va(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Va(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Kt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}qa.staleThreshold=6,qa.reconnectionBackoffRate=.15;var Sf={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:Ts,protocols:eu}=Sf,O1=eu.slice(0,eu.length-1),Cf=[].indexOf;class tu{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new qa(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){if(this.isActive())return Kt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...eu,...this.consumer.subprotocols||[]];return Kt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Ua.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Kt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Kt.log("Failed to reopen WebSocket",t)}finally{Kt.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return Cf.call(O1,this.getProtocol())>=0}isState(...t){return Cf.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in Ua.WebSocket)if(Ua.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}tu.reopenDelay=500,tu.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:t,message:e,reason:i,reconnect:m,type:p}=JSON.parse(n.data);switch(p){case Ts.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Ts.disconnect:return Kt.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:m});case Ts.ping:return this.monitor.recordPing();case Ts.confirmation:return this.subscriptions.confirmSubscription(t),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(t,"connected",{reconnected:!0})):this.subscriptions.notify(t,"connected",{reconnected:!1});case Ts.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",e)}},open(){if(Kt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Kt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Kt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Kt.log("WebSocket onerror event")}};const D1=function(n,t){if(t!=null)for(let e in t){const i=t[e];n[e]=i}return n};class N1{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),D1(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class F1{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Kt.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Kt.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Kt.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(e=>e!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(t=>{Kt.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class P1{constructor(t){this.consumer=t,this.guarantor=new F1(this),this.subscriptions=[]}create(t,e){const i=t,m=typeof i=="object"?i:{channel:i},p=new N1(this.consumer,m,e);return this.add(p)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(e=>e!==t),t}findAll(t){return this.subscriptions.filter(e=>e.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...e){return this.subscriptions.map(i=>this.notify(i,t,...e))}notify(t,e,...i){let m;return typeof t=="string"?m=this.findAll(t):m=[t],m.map(p=>typeof p[e]=="function"?p[e](...i):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Kt.log(`Subscription confirmed ${t}`),this.findAll(t).map(e=>this.guarantor.forget(e))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class z1{constructor(t){this._url=t,this.subscriptions=new P1(this),this.connection=new tu(this),this.subprotocols=[]}get url(){return H1(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function H1(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const t=document.createElement("a");return t.href=n,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}else return n}function B1(n=W1("url")||Sf.default_mount_path){return new z1(n)}function W1(n){const t=document.head.querySelector(`meta[name='action-cable-${n}']`);if(t)return t.getAttribute("content")}qa.staleThreshold=10;let eO=In("D",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,t,e={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(m=>{if(m&&OpenC3Auth.setTokens(),this._cable==null){let p=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=B1(p)}return this._cable.subscriptions.create({channel:n,...i},e)})}recordPing(){this._cable.connection.monitor.recordPing()}});class nu{constructor(t,e,i="",m=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=i,this.url=m}}In("a",nu);class j1{constructor(){to(this,"keyword",null),to(this,"parameters",[]),to(this,"filename",""),to(this,"line",""),to(this,"lineNumber",0),to(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(t,e,i=""){for(let m=1;m<=t;m++)if(this.parameters[m-1]===void 0)throw new nu(this,`Not enough parameters for ${this.keyword}.`,i,this.url);if(e&&this.parameters[e]!==void 0)throw new nu(this,`Too many parameters for ${this.keyword}.`,i,this.url)}remove_quotes(t){if(t.length<2)return t;let e=t.charAt(0);if(e!=='"'&&e!=="'")return t;let i=t.charAt(t.length-1);return e!==i?t:t.substring(1,t.length-1)}scan_string(t,e){if(!e.global)throw"rx must have 'global' flag set";let i=[];return t.replace(e,function(m){return i.push(m),m}),i}parse_string(t,e,i,m,p){let v=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=e;let w=t.split(`
1381
+ `),h=w.length;for(let f=0;f<h;f++){this.lineNumber=f+1;let s=w[f].trim();if(s.length===0)continue;if(v===!0){if(s[0]==="#")continue;s=s.substring(1,s.length)}let l=s.charAt(s.length-1),a=!1;switch(l){case"+":a=!0;case"\\":let y=s.substring(0,s.length-1).trim();this.line+=y.substring(0,y.length-1),a&&(this.line+=`
1382
+ `),v=!0;continue;case"&":this.line+=s.substring(0,s.length-1);continue;default:this.line+=s}v=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,o=this.scan_string(this.line,c),u="";if(o.length>0&&(u=u+o[0]),u.length===0||u.charAt(0)==="#"?this.keyword=null:this.keyword=u.toUpperCase(),this.parameters=[],this.keyword===null){i&&p(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let g=o.length;if(g>1)for(let y=1;y<g;y++){let b=o[y];if(b.length>0&&b.charAt(0)==="#")break;m?this.parameters.push(this.remove_quotes(b)):this.parameters.push(b)}p(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}class Ga{constructor(){to(this,"id",1)}async exec(t,e,i={},m={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,m.manual=!0,(await Qc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...m},timeout:p})).data.result}catch(v){let w=new Error;throw v.response?(w.name=v.response.data.error.data.class,w.message=v.response.data.error.data.message,w.object=v.response.data.error):v.request?(w.name="Request error",w.message="Request error, no response received"):w.name="Unknown error",w}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...i){return this.exec("interface_cmd",[t,e,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,i){return this.exec("get_item",[t,e,i])}get_param(t,e,i){return this.exec("get_param",[t,e,i])}get_parameter(t,e,i){return this.exec("get_param",[t,e,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,i,m=30){const p=await this.exec("get_tlm_packet",[t,e],{type:i,stale_time:m});if(p!=null){let v=p.length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(p[h][1]),w!==null&&(p[h][1]=w)}return p}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,i=null){let m={stale_time:e};i!==null&&(m.cache_timeout=i);const p=await this.exec("get_tlm_values",[t],m,{},1e4);let v=p[0].length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(p[0][h]),w!==null&&(p[0][h]=w);return p}get_limits(t,e,i){return this.exec("get_limits",[t,e,i])}async tlm(t,e,i,m="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[t]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))p=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else p=await this.exec("tlm",[t,e,i],{type:m});let v=this.decode_openc3_type(p);return v!==null&&(p=v),p}async inject_tlm(t,e,i=null,m="CONVERTED"){data=await this.exec("inject_tlm",[t,e,i],{type:m})}set_tlm(t,e,i,m){return this.exec("set_tlm",[t,e,i],{type:m})}override_tlm(t,e,i,m){return this.exec("override_tlm",[t,e,i],{type:m})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,i,m){return this.exec("normalize_tlm",[t,e,i],{type:m})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,i,m="CONVERTED"){return this.exec("get_cmd_value",[t,e,i,m])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,i,m,p){let v=null;for(let w in m)Object.prototype.hasOwnProperty.call(m,w)&&(v=this.encode_openc3_type(m[w]),v!==null&&(m[w]=v));return this.exec(t,[e,i,m],{},p)}get_cmd_hazardous(t,e,i,m={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},m):this._cmd("get_cmd_hazardous",t,e,i,m)}cmd(t,e,i,m={}){return e===void 0?this.exec("cmd",t,{},m):this._cmd("cmd",t,e,i,m)}cmd_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_range_check",t,{},m):this._cmd("cmd_no_range_check",t,e,i,m)}cmd_raw(t,e,i,m={}){return e===void 0?this.exec("cmd_raw",t,{},m):this._cmd("cmd_raw",t,e,i,m)}cmd_raw_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},m):this._cmd("cmd_raw_no_range_check",t,e,i,m)}cmd_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},m):this._cmd("cmd_no_hazardous_check",t,e,i,m)}cmd_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_no_checks",t,{},m):this._cmd("cmd_no_checks",t,e,i,m)}cmd_raw_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},m):this._cmd("cmd_raw_no_hazardous_check",t,e,i,m)}cmd_raw_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},m):this._cmd("cmd_raw_no_checks",t,e,i,m)}build_cmd(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}build_command(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,i){return this.exec("save_config",[t,e,i])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,i){return this.exec("enable_limits",[t,e,i])}disable_limits(t,e,i){return this.exec("disable_limits",[t,e,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",e),m=new Uint8Array(i);return Array.from(m).map(p=>p.toString(16).padStart(2,"0")).join("")}}}In("W",Ga);const U1={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}};var Ya={exports:{}};/**
1383
+ * @license
1384
+ * Lodash <https://lodash.com/>
1385
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1386
+ * Released under MIT license <https://lodash.com/license>
1387
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1388
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1389
+ */var V1=Ya.exports,Af;function q1(){return Af||(Af=1,function(n,t){(function(){var e,i="4.17.21",m=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,s="__lodash_placeholder__",l=1,a=2,c=4,o=1,u=2,g=1,y=2,b=4,L=8,A=16,k=32,x=64,T=128,E=256,I=512,M=30,N="...",$=800,_=16,S=1,R=2,O=3,F=1/0,z=9007199254740991,j=17976931348623157e292,V=NaN,q=4294967295,J=q-1,G=q>>>1,Q=[["ary",T],["bind",g],["bindKey",y],["curry",L],["curryRight",A],["flip",I],["partial",k],["partialRight",x],["rearg",E]],ie="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ye="[object Date]",fe="[object DOMException]",$e="[object Error]",ot="[object Function]",zt="[object GeneratorFunction]",ht="[object Map]",ft="[object Number]",cn="[object Null]",Dt="[object Object]",Qt="[object Promise]",Yi="[object Proxy]",kn="[object RegExp]",nn="[object Set]",Fe="[object String]",Be="[object Symbol]",rn="[object Undefined]",je="[object WeakMap]",ce="[object WeakSet]",Te="[object ArrayBuffer]",Le="[object DataView]",qe="[object Float32Array]",Ye="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",lt="[object Int32Array]",ct="[object Uint8Array]",nt="[object Uint8ClampedArray]",jt="[object Uint16Array]",Hn="[object Uint32Array]",ar=/\b__p \+= '';/g,ti=/\b(__p \+=) '' \+/g,js=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Us=/&(?:amp|lt|gt|quot|#39);/g,Cl=/[&<>"']/g,Wh=RegExp(Us.source),jh=RegExp(Cl.source),Uh=/<%-([\s\S]+?)%>/g,Vh=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,Ki=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zi=/[\\^$.*+?()[\]{}|]/g,Lr=RegExp(Zi.source),Bn=/^\s+/,Rr=/\s/,Ir=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Al=/\{\n\/\* \[wrapped with (.+)\] \*/,Tl=/,? & /,qh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gh=/[()=,{}\[\]\/\s]/,cr=/\\(\\)?/g,Yh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Or=/\w*$/,Ml=/^[-+]0x[0-9a-f]+$/i,Qi=/^0b[01]+$/i,$n=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,Xo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,go=/['\n\r\u2028\u2029\\]/g,mo="\\ud800-\\udfff",Vs="\\u0300-\\u036f",Jo="\\ufe20-\\ufe2f",Dr="\\u20d0-\\u20ff",es=Vs+Jo+Dr,ts="\\u2700-\\u27bf",ns="a-z\\xdf-\\xf6\\xf8-\\xff",qs="\\xac\\xb1\\xd7\\xf7",Gs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ys="\\u2000-\\u206f",Ks=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",Zs="\\ufe0e\\ufe0f",Qs=qs+Gs+Ys+Ks,vo="['’]",El="["+mo+"]",Ll="["+Qs+"]",is="["+es+"]",Rl="\\d+",Il="["+ts+"]",Xs="["+ns+"]",Ol="[^"+mo+Qs+Rl+ts+ns+_i+"]",rs="\\ud83c[\\udffb-\\udfff]",Js="(?:"+is+"|"+rs+")",yo="[^"+mo+"]",Nr="(?:\\ud83c[\\udde6-\\uddff]){2}",ea="[\\ud800-\\udbff][\\udc00-\\udfff]",Xi="["+_i+"]",Dl="\\u200d",Nl="(?:"+Xs+"|"+Ol+")",Kh="(?:"+Xi+"|"+Ol+")",ur="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",wo="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",os=Js+"?",Fr="["+Zs+"]?",Zh="(?:"+Dl+"(?:"+[yo,Nr,ea].join("|")+")"+Fr+os+")*",Pr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ta=Fr+os+Zh,na="(?:"+[Il,Nr,ea].join("|")+")"+ta,ia="(?:"+[yo+is+"?",is,Nr,ea,El].join("|")+")",ra=RegExp(vo,"g"),zr=RegExp(is,"g"),Ji=RegExp(rs+"(?="+rs+")|"+ia+ta,"g"),Fl=RegExp([Xi+"?"+Xs+"+"+ur+"(?="+[Ll,Xi,"$"].join("|")+")",Kh+"+"+wo+"(?="+[Ll,Xi+Nl,"$"].join("|")+")",Xi+"?"+Nl+"+"+ur,Xi+"+"+wo,Qh,Pr,Rl,na].join("|"),"g"),Pl=RegExp("["+Dl+mo+es+Zs+"]"),Hr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Br=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zl=-1,It={};It[qe]=It[Ye]=It[dt]=It[pt]=It[lt]=It[ct]=It[nt]=It[jt]=It[Hn]=!0,It[ie]=It[X]=It[Te]=It[me]=It[Le]=It[ye]=It[$e]=It[ot]=It[ht]=It[ft]=It[Dt]=It[kn]=It[nn]=It[Fe]=It[je]=!1;var He={};He[ie]=He[X]=He[Te]=He[Le]=He[me]=He[ye]=He[qe]=He[Ye]=He[dt]=He[pt]=He[lt]=He[ht]=He[ft]=He[Dt]=He[kn]=He[nn]=He[Fe]=He[Be]=He[ct]=He[nt]=He[jt]=He[Hn]=!0,He[$e]=He[ot]=He[je]=!1;var Ht={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},er={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},vn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yn=parseFloat,Nt=parseInt,hr=typeof Tr=="object"&&Tr&&Tr.Object===Object&&Tr,ss=typeof self=="object"&&self&&self.Object===Object&&self,Cn=hr||ss||Function("return this")(),ki=t&&!t.nodeType&&t,Ln=ki&&!0&&n&&!n.nodeType&&n,Hl=Ln&&Ln.exports===ki,oa=Hl&&hr.process,ni=function(){try{var ne=Ln&&Ln.require&&Ln.require("util").types;return ne||oa&&oa.binding&&oa.binding("util")}catch{}}(),Bl=ni&&ni.isArrayBuffer,$i=ni&&ni.isDate,Ni=ni&&ni.isMap,tr=ni&&ni.isRegExp,dr=ni&&ni.isSet,Wl=ni&&ni.isTypedArray;function qt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function Xh(ne,le,se,Se){for(var Ne=-1,Ze=ne==null?0:ne.length;++Ne<Ze;){var At=ne[Ne];le(Se,At,se(At),ne)}return Se}function Yn(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se&&le(ne[se],se,ne)!==!1;);return ne}function jl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Wr(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se;)if(!le(ne[se],se,ne))return!1;return!0}function ii(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Ne=0,Ze=[];++se<Se;){var At=ne[se];le(At,se,ne)&&(Ze[Ne++]=At)}return Ze}function as(ne,le){var se=ne==null?0:ne.length;return!!se&&pr(ne,le,0)>-1}function bo(ne,le,se){for(var Se=-1,Ne=ne==null?0:ne.length;++Se<Ne;)if(se(le,ne[Se]))return!0;return!1}function Bt(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Ne=Array(Se);++se<Se;)Ne[se]=le(ne[se],se,ne);return Ne}function jn(ne,le){for(var se=-1,Se=le.length,Ne=ne.length;++se<Se;)ne[Ne+se]=le[se];return ne}function Si(ne,le,se,Se){var Ne=-1,Ze=ne==null?0:ne.length;for(Se&&Ze&&(se=ne[++Ne]);++Ne<Ze;)se=le(se,ne[Ne],Ne,ne);return se}function xo(ne,le,se,Se){var Ne=ne==null?0:ne.length;for(Se&&Ne&&(se=ne[--Ne]);Ne--;)se=le(se,ne[Ne],Ne,ne);return se}function ls(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se;)if(le(ne[se],se,ne))return!0;return!1}var sa=ha("length");function aa(ne){return ne.split("")}function cs(ne){return ne.match(qh)||[]}function la(ne,le,se){var Se;return se(ne,function(Ne,Ze,At){if(le(Ne,Ze,At))return Se=Ze,!1}),Se}function _o(ne,le,se,Se){for(var Ne=ne.length,Ze=se+(Se?1:-1);Se?Ze--:++Ze<Ne;)if(le(ne[Ze],Ze,ne))return Ze;return-1}function pr(ne,le,se){return le===le?Ke(ne,le,se):_o(ne,ca,se)}function Ul(ne,le,se,Se){for(var Ne=se-1,Ze=ne.length;++Ne<Ze;)if(Se(ne[Ne],le))return Ne;return-1}function ca(ne){return ne!==ne}function ua(ne,le){var se=ne==null?0:ne.length;return se?Ur(ne,le)/se:V}function ha(ne){return function(le){return le==null?e:le[ne]}}function us(ne){return function(le){return ne==null?e:ne[le]}}function da(ne,le,se,Se,Ne){return Ne(ne,function(Ze,At,Xe){se=Se?(Se=!1,Ze):le(se,Ze,At,Xe)}),se}function jr(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Ur(ne,le){for(var se,Se=-1,Ne=ne.length;++Se<Ne;){var Ze=le(ne[Se]);Ze!==e&&(se=se===e?Ze:se+Ze)}return se}function on(ne,le){for(var se=-1,Se=Array(ne);++se<ne;)Se[se]=le(se);return Se}function Vl(ne,le){return Bt(le,function(se){return[se,ne[se]]})}function Xt(ne){return ne&&ne.slice(0,Qe(ne)+1).replace(Bn,"")}function Un(ne){return function(le){return ne(le)}}function ko(ne,le){return Bt(le,function(se){return ne[se]})}function Fi(ne,le){return ne.has(le)}function ql(ne,le){for(var se=-1,Se=ne.length;++se<Se&&pr(le,ne[se],0)>-1;);return se}function Gl(ne,le){for(var se=ne.length;se--&&pr(le,ne[se],0)>-1;);return se}function pa(ne,le){for(var se=ne.length,Se=0;se--;)ne[se]===le&&++Se;return Se}var P=us(Ht),B=us(er);function Y(ne){return"\\"+vn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Pl.test(ne)}function oe(ne){return Hr.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function we(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se,Ne){se[++le]=[Ne,Se]}),se}function be(ne,le){return function(se){return ne(le(se))}}function ke(ne,le){for(var se=-1,Se=ne.length,Ne=0,Ze=[];++se<Se;){var At=ne[se];(At===le||At===s)&&(ne[se]=s,Ze[Ne++]=se)}return Ze}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=Se}),se}function Me(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=[Se,Se]}),se}function Ke(ne,le,se){for(var Se=se-1,Ne=ne.length;++Se<Ne;)if(ne[Se]===le)return Se;return-1}function Lt(ne,le,se){for(var Se=se+1;Se--;)if(ne[Se]===le)return Se;return Se}function it(ne){return te(ne)?Ct(ne):sa(ne)}function Ge(ne){return te(ne)?Jt(ne):aa(ne)}function Qe(ne){for(var le=ne.length;le--&&Rr.test(ne.charAt(le)););return le}var Re=us(Sn);function Ct(ne){for(var le=Ji.lastIndex=0;Ji.test(ne);)++le;return le}function Jt(ne){return ne.match(Ji)||[]}function Gt(ne){return ne.match(Fl)||[]}var Ft=function ne(le){le=le==null?Cn:Pt.defaults(Cn.Object(),le,Pt.pick(Cn,Br));var se=le.Array,Se=le.Date,Ne=le.Error,Ze=le.Function,At=le.Math,Xe=le.Object,An=le.RegExp,Kn=le.String,Tn=le.TypeError,fi=se.prototype,ri=Ze.prototype,hs=Xe.prototype,Yl=le["__core-js_shared__"],Kl=ri.toString,Rt=hs.hasOwnProperty,qA=0,Z0=function(){var r=/[^.]+$/.exec(Yl&&Yl.keys&&Yl.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Zl=hs.toString,GA=Kl.call(Xe),YA=Cn._,KA=An("^"+Kl.call(Rt).replace(Zi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ql=Hl?le.Buffer:e,Vr=le.Symbol,Xl=le.Uint8Array,Q0=Ql?Ql.allocUnsafe:e,Jl=be(Xe.getPrototypeOf,Xe),X0=Xe.create,J0=hs.propertyIsEnumerable,ec=fi.splice,ev=Vr?Vr.isConcatSpreadable:e,fa=Vr?Vr.iterator:e,$o=Vr?Vr.toStringTag:e,tc=function(){try{var r=Mo(Xe,"defineProperty");return r({},"",{}),r}catch{}}(),ZA=le.clearTimeout!==Cn.clearTimeout&&le.clearTimeout,QA=Se&&Se.now!==Cn.Date.now&&Se.now,XA=le.setTimeout!==Cn.setTimeout&&le.setTimeout,nc=At.ceil,ic=At.floor,Jh=Xe.getOwnPropertySymbols,JA=Ql?Ql.isBuffer:e,tv=le.isFinite,eT=fi.join,tT=be(Xe.keys,Xe),Mn=At.max,Vn=At.min,nT=Se.now,iT=le.parseInt,nv=At.random,rT=fi.reverse,ed=Mo(le,"DataView"),ga=Mo(le,"Map"),td=Mo(le,"Promise"),ds=Mo(le,"Set"),ma=Mo(le,"WeakMap"),va=Mo(Xe,"create"),rc=ma&&new ma,ps={},oT=Eo(ed),sT=Eo(ga),aT=Eo(td),lT=Eo(ds),cT=Eo(ma),oc=Vr?Vr.prototype:e,ya=oc?oc.valueOf:e,iv=oc?oc.toString:e;function W(r){if(sn(r)&&!Je(r)&&!(r instanceof yt)){if(r instanceof Ci)return r;if(Rt.call(r,"__wrapped__"))return ry(r)}return new Ci(r)}var fs=function(){function r(){}return function(d){if(!en(d))return{};if(X0)return X0(d);r.prototype=d;var C=new r;return r.prototype=e,C}}();function sc(){}function Ci(r,d){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}W.templateSettings={escape:Uh,evaluate:Vh,interpolate:ze,variable:"",imports:{_:W}},W.prototype=sc.prototype,W.prototype.constructor=W,Ci.prototype=fs(sc.prototype),Ci.prototype.constructor=Ci;function yt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function uT(){var r=new yt(this.__wrapped__);return r.__actions__=oi(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=oi(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=oi(this.__views__),r}function hT(){if(this.__filtered__){var r=new yt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function dT(){var r=this.__wrapped__.value(),d=this.__dir__,C=Je(r),D=d<0,H=C?r.length:0,U=$M(0,H,this.__views__),Z=U.start,ee=U.end,re=ee-Z,pe=D?ee:Z-1,ge=this.__iteratees__,ve=ge.length,Ae=0,Ie=Vn(re,this.__takeCount__);if(!C||!D&&H==re&&Ie==re)return Av(r,this.__actions__);var Ue=[];e:for(;re--&&Ae<Ie;){pe+=d;for(var st=-1,Ve=r[pe];++st<ve;){var gt=ge[st],wt=gt.iteratee,vi=gt.type,Xn=wt(Ve);if(vi==R)Ve=Xn;else if(!Xn){if(vi==S)continue e;break e}}Ue[Ae++]=Ve}return Ue}yt.prototype=fs(sc.prototype),yt.prototype.constructor=yt;function So(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function pT(){this.__data__=va?va(null):{},this.size=0}function fT(r){var d=this.has(r)&&delete this.__data__[r];return this.size-=d?1:0,d}function gT(r){var d=this.__data__;if(va){var C=d[r];return C===h?e:C}return Rt.call(d,r)?d[r]:e}function mT(r){var d=this.__data__;return va?d[r]!==e:Rt.call(d,r)}function vT(r,d){var C=this.__data__;return this.size+=this.has(r)?0:1,C[r]=va&&d===e?h:d,this}So.prototype.clear=pT,So.prototype.delete=fT,So.prototype.get=gT,So.prototype.has=mT,So.prototype.set=vT;function fr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function yT(){this.__data__=[],this.size=0}function wT(r){var d=this.__data__,C=ac(d,r);if(C<0)return!1;var D=d.length-1;return C==D?d.pop():ec.call(d,C,1),--this.size,!0}function bT(r){var d=this.__data__,C=ac(d,r);return C<0?e:d[C][1]}function xT(r){return ac(this.__data__,r)>-1}function _T(r,d){var C=this.__data__,D=ac(C,r);return D<0?(++this.size,C.push([r,d])):C[D][1]=d,this}fr.prototype.clear=yT,fr.prototype.delete=wT,fr.prototype.get=bT,fr.prototype.has=xT,fr.prototype.set=_T;function gr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function kT(){this.size=0,this.__data__={hash:new So,map:new(ga||fr),string:new So}}function $T(r){var d=wc(this,r).delete(r);return this.size-=d?1:0,d}function ST(r){return wc(this,r).get(r)}function CT(r){return wc(this,r).has(r)}function AT(r,d){var C=wc(this,r),D=C.size;return C.set(r,d),this.size+=C.size==D?0:1,this}gr.prototype.clear=kT,gr.prototype.delete=$T,gr.prototype.get=ST,gr.prototype.has=CT,gr.prototype.set=AT;function Co(r){var d=-1,C=r==null?0:r.length;for(this.__data__=new gr;++d<C;)this.add(r[d])}function TT(r){return this.__data__.set(r,h),this}function MT(r){return this.__data__.has(r)}Co.prototype.add=Co.prototype.push=TT,Co.prototype.has=MT;function Pi(r){var d=this.__data__=new fr(r);this.size=d.size}function ET(){this.__data__=new fr,this.size=0}function LT(r){var d=this.__data__,C=d.delete(r);return this.size=d.size,C}function RT(r){return this.__data__.get(r)}function IT(r){return this.__data__.has(r)}function OT(r,d){var C=this.__data__;if(C instanceof fr){var D=C.__data__;if(!ga||D.length<m-1)return D.push([r,d]),this.size=++C.size,this;C=this.__data__=new gr(D)}return C.set(r,d),this.size=C.size,this}Pi.prototype.clear=ET,Pi.prototype.delete=LT,Pi.prototype.get=RT,Pi.prototype.has=IT,Pi.prototype.set=OT;function rv(r,d){var C=Je(r),D=!C&&Lo(r),H=!C&&!D&&Zr(r),U=!C&&!D&&!H&&ys(r),Z=C||D||H||U,ee=Z?on(r.length,Kn):[],re=ee.length;for(var pe in r)(d||Rt.call(r,pe))&&!(Z&&(pe=="length"||H&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||wr(pe,re)))&&ee.push(pe);return ee}function ov(r){var d=r.length;return d?r[dd(0,d-1)]:e}function DT(r,d){return bc(oi(r),Ao(d,0,r.length))}function NT(r){return bc(oi(r))}function nd(r,d,C){(C!==e&&!zi(r[d],C)||C===e&&!(d in r))&&mr(r,d,C)}function wa(r,d,C){var D=r[d];(!(Rt.call(r,d)&&zi(D,C))||C===e&&!(d in r))&&mr(r,d,C)}function ac(r,d){for(var C=r.length;C--;)if(zi(r[C][0],d))return C;return-1}function FT(r,d,C,D){return qr(r,function(H,U,Z){d(D,H,C(H),Z)}),D}function sv(r,d){return r&&ir(d,Rn(d),r)}function PT(r,d){return r&&ir(d,ai(d),r)}function mr(r,d,C){d=="__proto__"&&tc?tc(r,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):r[d]=C}function id(r,d){for(var C=-1,D=d.length,H=se(D),U=r==null;++C<D;)H[C]=U?e:Fd(r,d[C]);return H}function Ao(r,d,C){return r===r&&(C!==e&&(r=r<=C?r:C),d!==e&&(r=r>=d?r:d)),r}function Ai(r,d,C,D,H,U){var Z,ee=d&l,re=d&a,pe=d&c;if(C&&(Z=H?C(r,D,H,U):C(r)),Z!==e)return Z;if(!en(r))return r;var ge=Je(r);if(ge){if(Z=CM(r),!ee)return oi(r,Z)}else{var ve=qn(r),Ae=ve==ot||ve==zt;if(Zr(r))return Ev(r,ee);if(ve==Dt||ve==ie||Ae&&!H){if(Z=re||Ae?{}:Kv(r),!ee)return re?gM(r,PT(Z,r)):fM(r,sv(Z,r))}else{if(!He[ve])return H?r:{};Z=AM(r,ve,ee)}}U||(U=new Pi);var Ie=U.get(r);if(Ie)return Ie;U.set(r,Z),$y(r)?r.forEach(function(Ve){Z.add(Ai(Ve,d,C,Ve,r,U))}):_y(r)&&r.forEach(function(Ve,gt){Z.set(gt,Ai(Ve,d,C,gt,r,U))});var Ue=pe?re?kd:_d:re?ai:Rn,st=ge?e:Ue(r);return Yn(st||r,function(Ve,gt){st&&(gt=Ve,Ve=r[gt]),wa(Z,gt,Ai(Ve,d,C,gt,r,U))}),Z}function zT(r){var d=Rn(r);return function(C){return av(C,r,d)}}function av(r,d,C){var D=C.length;if(r==null)return!D;for(r=Xe(r);D--;){var H=C[D],U=d[H],Z=r[H];if(Z===e&&!(H in r)||!U(Z))return!1}return!0}function lv(r,d,C){if(typeof r!="function")throw new Tn(v);return Ca(function(){r.apply(e,C)},d)}function ba(r,d,C,D){var H=-1,U=as,Z=!0,ee=r.length,re=[],pe=d.length;if(!ee)return re;C&&(d=Bt(d,Un(C))),D?(U=bo,Z=!1):d.length>=m&&(U=Fi,Z=!1,d=new Co(d));e:for(;++H<ee;){var ge=r[H],ve=C==null?ge:C(ge);if(ge=D||ge!==0?ge:0,Z&&ve===ve){for(var Ae=pe;Ae--;)if(d[Ae]===ve)continue e;re.push(ge)}else U(d,ve,D)||re.push(ge)}return re}var qr=Dv(nr),cv=Dv(od,!0);function HT(r,d){var C=!0;return qr(r,function(D,H,U){return C=!!d(D,H,U),C}),C}function lc(r,d,C){for(var D=-1,H=r.length;++D<H;){var U=r[D],Z=d(U);if(Z!=null&&(ee===e?Z===Z&&!mi(Z):C(Z,ee)))var ee=Z,re=U}return re}function BT(r,d,C,D){var H=r.length;for(C=rt(C),C<0&&(C=-C>H?0:H+C),D=D===e||D>H?H:rt(D),D<0&&(D+=H),D=C>D?0:Cy(D);C<D;)r[C++]=d;return r}function uv(r,d){var C=[];return qr(r,function(D,H,U){d(D,H,U)&&C.push(D)}),C}function Dn(r,d,C,D,H){var U=-1,Z=r.length;for(C||(C=MM),H||(H=[]);++U<Z;){var ee=r[U];d>0&&C(ee)?d>1?Dn(ee,d-1,C,D,H):jn(H,ee):D||(H[H.length]=ee)}return H}var rd=Nv(),hv=Nv(!0);function nr(r,d){return r&&rd(r,d,Rn)}function od(r,d){return r&&hv(r,d,Rn)}function cc(r,d){return ii(d,function(C){return br(r[C])})}function To(r,d){d=Yr(d,r);for(var C=0,D=d.length;r!=null&&C<D;)r=r[rr(d[C++])];return C&&C==D?r:e}function dv(r,d,C){var D=d(r);return Je(r)?D:jn(D,C(r))}function Zn(r){return r==null?r===e?rn:cn:$o&&$o in Xe(r)?kM(r):NM(r)}function sd(r,d){return r>d}function WT(r,d){return r!=null&&Rt.call(r,d)}function jT(r,d){return r!=null&&d in Xe(r)}function UT(r,d,C){return r>=Vn(d,C)&&r<Mn(d,C)}function ad(r,d,C){for(var D=C?bo:as,H=r[0].length,U=r.length,Z=U,ee=se(U),re=1/0,pe=[];Z--;){var ge=r[Z];Z&&d&&(ge=Bt(ge,Un(d))),re=Vn(ge.length,re),ee[Z]=!C&&(d||H>=120&&ge.length>=120)?new Co(Z&&ge):e}ge=r[0];var ve=-1,Ae=ee[0];e:for(;++ve<H&&pe.length<re;){var Ie=ge[ve],Ue=d?d(Ie):Ie;if(Ie=C||Ie!==0?Ie:0,!(Ae?Fi(Ae,Ue):D(pe,Ue,C))){for(Z=U;--Z;){var st=ee[Z];if(!(st?Fi(st,Ue):D(r[Z],Ue,C)))continue e}Ae&&Ae.push(Ue),pe.push(Ie)}}return pe}function VT(r,d,C,D){return nr(r,function(H,U,Z){d(D,C(H),U,Z)}),D}function xa(r,d,C){d=Yr(d,r),r=Jv(r,d);var D=r==null?r:r[rr(Mi(d))];return D==null?e:qt(D,r,C)}function pv(r){return sn(r)&&Zn(r)==ie}function qT(r){return sn(r)&&Zn(r)==Te}function GT(r){return sn(r)&&Zn(r)==ye}function _a(r,d,C,D,H){return r===d?!0:r==null||d==null||!sn(r)&&!sn(d)?r!==r&&d!==d:YT(r,d,C,D,_a,H)}function YT(r,d,C,D,H,U){var Z=Je(r),ee=Je(d),re=Z?X:qn(r),pe=ee?X:qn(d);re=re==ie?Dt:re,pe=pe==ie?Dt:pe;var ge=re==Dt,ve=pe==Dt,Ae=re==pe;if(Ae&&Zr(r)){if(!Zr(d))return!1;Z=!0,ge=!1}if(Ae&&!ge)return U||(U=new Pi),Z||ys(r)?qv(r,d,C,D,H,U):xM(r,d,re,C,D,H,U);if(!(C&o)){var Ie=ge&&Rt.call(r,"__wrapped__"),Ue=ve&&Rt.call(d,"__wrapped__");if(Ie||Ue){var st=Ie?r.value():r,Ve=Ue?d.value():d;return U||(U=new Pi),H(st,Ve,C,D,U)}}return Ae?(U||(U=new Pi),_M(r,d,C,D,H,U)):!1}function KT(r){return sn(r)&&qn(r)==ht}function ld(r,d,C,D){var H=C.length,U=H,Z=!D;if(r==null)return!U;for(r=Xe(r);H--;){var ee=C[H];if(Z&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++H<U;){ee=C[H];var re=ee[0],pe=r[re],ge=ee[1];if(Z&&ee[2]){if(pe===e&&!(re in r))return!1}else{var ve=new Pi;if(D)var Ae=D(pe,ge,re,r,d,ve);if(!(Ae===e?_a(ge,pe,o|u,D,ve):Ae))return!1}}return!0}function fv(r){if(!en(r)||LM(r))return!1;var d=br(r)?KA:$n;return d.test(Eo(r))}function ZT(r){return sn(r)&&Zn(r)==kn}function QT(r){return sn(r)&&qn(r)==nn}function XT(r){return sn(r)&&Cc(r.length)&&!!It[Zn(r)]}function gv(r){return typeof r=="function"?r:r==null?li:typeof r=="object"?Je(r)?yv(r[0],r[1]):vv(r):Fy(r)}function cd(r){if(!Sa(r))return tT(r);var d=[];for(var C in Xe(r))Rt.call(r,C)&&C!="constructor"&&d.push(C);return d}function JT(r){if(!en(r))return DM(r);var d=Sa(r),C=[];for(var D in r)D=="constructor"&&(d||!Rt.call(r,D))||C.push(D);return C}function ud(r,d){return r<d}function mv(r,d){var C=-1,D=si(r)?se(r.length):[];return qr(r,function(H,U,Z){D[++C]=d(H,U,Z)}),D}function vv(r){var d=Sd(r);return d.length==1&&d[0][2]?Qv(d[0][0],d[0][1]):function(C){return C===r||ld(C,r,d)}}function yv(r,d){return Ad(r)&&Zv(d)?Qv(rr(r),d):function(C){var D=Fd(C,r);return D===e&&D===d?Pd(C,r):_a(d,D,o|u)}}function uc(r,d,C,D,H){r!==d&&rd(d,function(U,Z){if(H||(H=new Pi),en(U))eM(r,d,Z,C,uc,D,H);else{var ee=D?D(Md(r,Z),U,Z+"",r,d,H):e;ee===e&&(ee=U),nd(r,Z,ee)}},ai)}function eM(r,d,C,D,H,U,Z){var ee=Md(r,C),re=Md(d,C),pe=Z.get(re);if(pe){nd(r,C,pe);return}var ge=U?U(ee,re,C+"",r,d,Z):e,ve=ge===e;if(ve){var Ae=Je(re),Ie=!Ae&&Zr(re),Ue=!Ae&&!Ie&&ys(re);ge=re,Ae||Ie||Ue?Je(ee)?ge=ee:un(ee)?ge=oi(ee):Ie?(ve=!1,ge=Ev(re,!0)):Ue?(ve=!1,ge=Lv(re,!0)):ge=[]:Aa(re)||Lo(re)?(ge=ee,Lo(ee)?ge=Ay(ee):(!en(ee)||br(ee))&&(ge=Kv(re))):ve=!1}ve&&(Z.set(re,ge),H(ge,re,D,U,Z),Z.delete(re)),nd(r,C,ge)}function wv(r,d){var C=r.length;if(C)return d+=d<0?C:0,wr(d,C)?r[d]:e}function bv(r,d,C){d.length?d=Bt(d,function(U){return Je(U)?function(Z){return To(Z,U.length===1?U[0]:U)}:U}):d=[li];var D=-1;d=Bt(d,Un(We()));var H=mv(r,function(U,Z,ee){var re=Bt(d,function(pe){return pe(U)});return{criteria:re,index:++D,value:U}});return jr(H,function(U,Z){return pM(U,Z,C)})}function tM(r,d){return xv(r,d,function(C,D){return Pd(r,D)})}function xv(r,d,C){for(var D=-1,H=d.length,U={};++D<H;){var Z=d[D],ee=To(r,Z);C(ee,Z)&&ka(U,Yr(Z,r),ee)}return U}function nM(r){return function(d){return To(d,r)}}function hd(r,d,C,D){var H=D?Ul:pr,U=-1,Z=d.length,ee=r;for(r===d&&(d=oi(d)),C&&(ee=Bt(r,Un(C)));++U<Z;)for(var re=0,pe=d[U],ge=C?C(pe):pe;(re=H(ee,ge,re,D))>-1;)ee!==r&&ec.call(ee,re,1),ec.call(r,re,1);return r}function _v(r,d){for(var C=r?d.length:0,D=C-1;C--;){var H=d[C];if(C==D||H!==U){var U=H;wr(H)?ec.call(r,H,1):gd(r,H)}}return r}function dd(r,d){return r+ic(nv()*(d-r+1))}function iM(r,d,C,D){for(var H=-1,U=Mn(nc((d-r)/(C||1)),0),Z=se(U);U--;)Z[D?U:++H]=r,r+=C;return Z}function pd(r,d){var C="";if(!r||d<1||d>z)return C;do d%2&&(C+=r),d=ic(d/2),d&&(r+=r);while(d);return C}function ut(r,d){return Ed(Xv(r,d,li),r+"")}function rM(r){return ov(ws(r))}function oM(r,d){var C=ws(r);return bc(C,Ao(d,0,C.length))}function ka(r,d,C,D){if(!en(r))return r;d=Yr(d,r);for(var H=-1,U=d.length,Z=U-1,ee=r;ee!=null&&++H<U;){var re=rr(d[H]),pe=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(H!=Z){var ge=ee[re];pe=D?D(ge,re,ee):e,pe===e&&(pe=en(ge)?ge:wr(d[H+1])?[]:{})}wa(ee,re,pe),ee=ee[re]}return r}var kv=rc?function(r,d){return rc.set(r,d),r}:li,sM=tc?function(r,d){return tc(r,"toString",{configurable:!0,enumerable:!1,value:Hd(d),writable:!0})}:li;function aM(r){return bc(ws(r))}function Ti(r,d,C){var D=-1,H=r.length;d<0&&(d=-d>H?0:H+d),C=C>H?H:C,C<0&&(C+=H),H=d>C?0:C-d>>>0,d>>>=0;for(var U=se(H);++D<H;)U[D]=r[D+d];return U}function lM(r,d){var C;return qr(r,function(D,H,U){return C=d(D,H,U),!C}),!!C}function hc(r,d,C){var D=0,H=r==null?D:r.length;if(typeof d=="number"&&d===d&&H<=G){for(;D<H;){var U=D+H>>>1,Z=r[U];Z!==null&&!mi(Z)&&(C?Z<=d:Z<d)?D=U+1:H=U}return H}return fd(r,d,li,C)}function fd(r,d,C,D){var H=0,U=r==null?0:r.length;if(U===0)return 0;d=C(d);for(var Z=d!==d,ee=d===null,re=mi(d),pe=d===e;H<U;){var ge=ic((H+U)/2),ve=C(r[ge]),Ae=ve!==e,Ie=ve===null,Ue=ve===ve,st=mi(ve);if(Z)var Ve=D||Ue;else pe?Ve=Ue&&(D||Ae):ee?Ve=Ue&&Ae&&(D||!Ie):re?Ve=Ue&&Ae&&!Ie&&(D||!st):Ie||st?Ve=!1:Ve=D?ve<=d:ve<d;Ve?H=ge+1:U=ge}return Vn(U,J)}function $v(r,d){for(var C=-1,D=r.length,H=0,U=[];++C<D;){var Z=r[C],ee=d?d(Z):Z;if(!C||!zi(ee,re)){var re=ee;U[H++]=Z===0?0:Z}}return U}function Sv(r){return typeof r=="number"?r:mi(r)?V:+r}function gi(r){if(typeof r=="string")return r;if(Je(r))return Bt(r,gi)+"";if(mi(r))return iv?iv.call(r):"";var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Gr(r,d,C){var D=-1,H=as,U=r.length,Z=!0,ee=[],re=ee;if(C)Z=!1,H=bo;else if(U>=m){var pe=d?null:wM(r);if(pe)return Ce(pe);Z=!1,H=Fi,re=new Co}else re=d?[]:ee;e:for(;++D<U;){var ge=r[D],ve=d?d(ge):ge;if(ge=C||ge!==0?ge:0,Z&&ve===ve){for(var Ae=re.length;Ae--;)if(re[Ae]===ve)continue e;d&&re.push(ve),ee.push(ge)}else H(re,ve,C)||(re!==ee&&re.push(ve),ee.push(ge))}return ee}function gd(r,d){return d=Yr(d,r),r=Jv(r,d),r==null||delete r[rr(Mi(d))]}function Cv(r,d,C,D){return ka(r,d,C(To(r,d)),D)}function dc(r,d,C,D){for(var H=r.length,U=D?H:-1;(D?U--:++U<H)&&d(r[U],U,r););return C?Ti(r,D?0:U,D?U+1:H):Ti(r,D?U+1:0,D?H:U)}function Av(r,d){var C=r;return C instanceof yt&&(C=C.value()),Si(d,function(D,H){return H.func.apply(H.thisArg,jn([D],H.args))},C)}function md(r,d,C){var D=r.length;if(D<2)return D?Gr(r[0]):[];for(var H=-1,U=se(D);++H<D;)for(var Z=r[H],ee=-1;++ee<D;)ee!=H&&(U[H]=ba(U[H]||Z,r[ee],d,C));return Gr(Dn(U,1),d,C)}function Tv(r,d,C){for(var D=-1,H=r.length,U=d.length,Z={};++D<H;){var ee=D<U?d[D]:e;C(Z,r[D],ee)}return Z}function vd(r){return un(r)?r:[]}function yd(r){return typeof r=="function"?r:li}function Yr(r,d){return Je(r)?r:Ad(r,d)?[r]:iy(Tt(r))}var cM=ut;function Kr(r,d,C){var D=r.length;return C=C===e?D:C,!d&&C>=D?r:Ti(r,d,C)}var Mv=ZA||function(r){return Cn.clearTimeout(r)};function Ev(r,d){if(d)return r.slice();var C=r.length,D=Q0?Q0(C):new r.constructor(C);return r.copy(D),D}function wd(r){var d=new r.constructor(r.byteLength);return new Xl(d).set(new Xl(r)),d}function uM(r,d){var C=d?wd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.byteLength)}function hM(r){var d=new r.constructor(r.source,Or.exec(r));return d.lastIndex=r.lastIndex,d}function dM(r){return ya?Xe(ya.call(r)):{}}function Lv(r,d){var C=d?wd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.length)}function Rv(r,d){if(r!==d){var C=r!==e,D=r===null,H=r===r,U=mi(r),Z=d!==e,ee=d===null,re=d===d,pe=mi(d);if(!ee&&!pe&&!U&&r>d||U&&Z&&re&&!ee&&!pe||D&&Z&&re||!C&&re||!H)return 1;if(!D&&!U&&!pe&&r<d||pe&&C&&H&&!D&&!U||ee&&C&&H||!Z&&H||!re)return-1}return 0}function pM(r,d,C){for(var D=-1,H=r.criteria,U=d.criteria,Z=H.length,ee=C.length;++D<Z;){var re=Rv(H[D],U[D]);if(re){if(D>=ee)return re;var pe=C[D];return re*(pe=="desc"?-1:1)}}return r.index-d.index}function Iv(r,d,C,D){for(var H=-1,U=r.length,Z=C.length,ee=-1,re=d.length,pe=Mn(U-Z,0),ge=se(re+pe),ve=!D;++ee<re;)ge[ee]=d[ee];for(;++H<Z;)(ve||H<U)&&(ge[C[H]]=r[H]);for(;pe--;)ge[ee++]=r[H++];return ge}function Ov(r,d,C,D){for(var H=-1,U=r.length,Z=-1,ee=C.length,re=-1,pe=d.length,ge=Mn(U-ee,0),ve=se(ge+pe),Ae=!D;++H<ge;)ve[H]=r[H];for(var Ie=H;++re<pe;)ve[Ie+re]=d[re];for(;++Z<ee;)(Ae||H<U)&&(ve[Ie+C[Z]]=r[H++]);return ve}function oi(r,d){var C=-1,D=r.length;for(d||(d=se(D));++C<D;)d[C]=r[C];return d}function ir(r,d,C,D){var H=!C;C||(C={});for(var U=-1,Z=d.length;++U<Z;){var ee=d[U],re=D?D(C[ee],r[ee],ee,C,r):e;re===e&&(re=r[ee]),H?mr(C,ee,re):wa(C,ee,re)}return C}function fM(r,d){return ir(r,Cd(r),d)}function gM(r,d){return ir(r,Gv(r),d)}function pc(r,d){return function(C,D){var H=Je(C)?Xh:FT,U=d?d():{};return H(C,r,We(D,2),U)}}function gs(r){return ut(function(d,C){var D=-1,H=C.length,U=H>1?C[H-1]:e,Z=H>2?C[2]:e;for(U=r.length>3&&typeof U=="function"?(H--,U):e,Z&&Qn(C[0],C[1],Z)&&(U=H<3?e:U,H=1),d=Xe(d);++D<H;){var ee=C[D];ee&&r(d,ee,D,U)}return d})}function Dv(r,d){return function(C,D){if(C==null)return C;if(!si(C))return r(C,D);for(var H=C.length,U=d?H:-1,Z=Xe(C);(d?U--:++U<H)&&D(Z[U],U,Z)!==!1;);return C}}function Nv(r){return function(d,C,D){for(var H=-1,U=Xe(d),Z=D(d),ee=Z.length;ee--;){var re=Z[r?ee:++H];if(C(U[re],re,U)===!1)break}return d}}function mM(r,d,C){var D=d&g,H=$a(r);function U(){var Z=this&&this!==Cn&&this instanceof U?H:r;return Z.apply(D?C:this,arguments)}return U}function Fv(r){return function(d){d=Tt(d);var C=te(d)?Ge(d):e,D=C?C[0]:d.charAt(0),H=C?Kr(C,1).join(""):d.slice(1);return D[r]()+H}}function ms(r){return function(d){return Si(Dy(Oy(d).replace(ra,"")),r,"")}}function $a(r){return function(){var d=arguments;switch(d.length){case 0:return new r;case 1:return new r(d[0]);case 2:return new r(d[0],d[1]);case 3:return new r(d[0],d[1],d[2]);case 4:return new r(d[0],d[1],d[2],d[3]);case 5:return new r(d[0],d[1],d[2],d[3],d[4]);case 6:return new r(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new r(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var C=fs(r.prototype),D=r.apply(C,d);return en(D)?D:C}}function vM(r,d,C){var D=$a(r);function H(){for(var U=arguments.length,Z=se(U),ee=U,re=vs(H);ee--;)Z[ee]=arguments[ee];var pe=U<3&&Z[0]!==re&&Z[U-1]!==re?[]:ke(Z,re);if(U-=pe.length,U<C)return Wv(r,d,fc,H.placeholder,e,Z,pe,e,e,C-U);var ge=this&&this!==Cn&&this instanceof H?D:r;return qt(ge,this,Z)}return H}function Pv(r){return function(d,C,D){var H=Xe(d);if(!si(d)){var U=We(C,3);d=Rn(d),C=function(ee){return U(H[ee],ee,H)}}var Z=r(d,C,D);return Z>-1?H[U?d[Z]:Z]:e}}function zv(r){return yr(function(d){var C=d.length,D=C,H=Ci.prototype.thru;for(r&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new Tn(v);if(H&&!Z&&yc(U)=="wrapper")var Z=new Ci([],!0)}for(D=Z?D:C;++D<C;){U=d[D];var ee=yc(U),re=ee=="wrapper"?$d(U):e;re&&Td(re[0])&&re[1]==(T|L|k|E)&&!re[4].length&&re[9]==1?Z=Z[yc(re[0])].apply(Z,re[3]):Z=U.length==1&&Td(U)?Z[ee]():Z.thru(U)}return function(){var pe=arguments,ge=pe[0];if(Z&&pe.length==1&&Je(ge))return Z.plant(ge).value();for(var ve=0,Ae=C?d[ve].apply(this,pe):ge;++ve<C;)Ae=d[ve].call(this,Ae);return Ae}})}function fc(r,d,C,D,H,U,Z,ee,re,pe){var ge=d&T,ve=d&g,Ae=d&y,Ie=d&(L|A),Ue=d&I,st=Ae?e:$a(r);function Ve(){for(var gt=arguments.length,wt=se(gt),vi=gt;vi--;)wt[vi]=arguments[vi];if(Ie)var Xn=vs(Ve),yi=pa(wt,Xn);if(D&&(wt=Iv(wt,D,H,Ie)),U&&(wt=Ov(wt,U,Z,Ie)),gt-=yi,Ie&&gt<pe){var hn=ke(wt,Xn);return Wv(r,d,fc,Ve.placeholder,C,wt,hn,ee,re,pe-gt)}var Hi=ve?C:this,_r=Ae?Hi[r]:r;return gt=wt.length,ee?wt=FM(wt,ee):Ue&&gt>1&&wt.reverse(),ge&&re<gt&&(wt.length=re),this&&this!==Cn&&this instanceof Ve&&(_r=st||$a(_r)),_r.apply(Hi,wt)}return Ve}function Hv(r,d){return function(C,D){return VT(C,r,d(D),{})}}function gc(r,d){return function(C,D){var H;if(C===e&&D===e)return d;if(C!==e&&(H=C),D!==e){if(H===e)return D;typeof C=="string"||typeof D=="string"?(C=gi(C),D=gi(D)):(C=Sv(C),D=Sv(D)),H=r(C,D)}return H}}function bd(r){return yr(function(d){return d=Bt(d,Un(We())),ut(function(C){var D=this;return r(d,function(H){return qt(H,D,C)})})})}function mc(r,d){d=d===e?" ":gi(d);var C=d.length;if(C<2)return C?pd(d,r):d;var D=pd(d,nc(r/it(d)));return te(d)?Kr(Ge(D),0,r).join(""):D.slice(0,r)}function yM(r,d,C,D){var H=d&g,U=$a(r);function Z(){for(var ee=-1,re=arguments.length,pe=-1,ge=D.length,ve=se(ge+re),Ae=this&&this!==Cn&&this instanceof Z?U:r;++pe<ge;)ve[pe]=D[pe];for(;re--;)ve[pe++]=arguments[++ee];return qt(Ae,H?C:this,ve)}return Z}function Bv(r){return function(d,C,D){return D&&typeof D!="number"&&Qn(d,C,D)&&(C=D=e),d=xr(d),C===e?(C=d,d=0):C=xr(C),D=D===e?d<C?1:-1:xr(D),iM(d,C,D,r)}}function vc(r){return function(d,C){return typeof d=="string"&&typeof C=="string"||(d=Ei(d),C=Ei(C)),r(d,C)}}function Wv(r,d,C,D,H,U,Z,ee,re,pe){var ge=d&L,ve=ge?Z:e,Ae=ge?e:Z,Ie=ge?U:e,Ue=ge?e:U;d|=ge?k:x,d&=~(ge?x:k),d&b||(d&=~(g|y));var st=[r,d,H,Ie,ve,Ue,Ae,ee,re,pe],Ve=C.apply(e,st);return Td(r)&&ey(Ve,st),Ve.placeholder=D,ty(Ve,r,d)}function xd(r){var d=At[r];return function(C,D){if(C=Ei(C),D=D==null?0:Vn(rt(D),292),D&&tv(C)){var H=(Tt(C)+"e").split("e"),U=d(H[0]+"e"+(+H[1]+D));return H=(Tt(U)+"e").split("e"),+(H[0]+"e"+(+H[1]-D))}return d(C)}}var wM=ds&&1/Ce(new ds([,-0]))[1]==F?function(r){return new ds(r)}:jd;function jv(r){return function(d){var C=qn(d);return C==ht?we(d):C==nn?Me(d):Vl(d,r(d))}}function vr(r,d,C,D,H,U,Z,ee){var re=d&y;if(!re&&typeof r!="function")throw new Tn(v);var pe=D?D.length:0;if(pe||(d&=~(k|x),D=H=e),Z=Z===e?Z:Mn(rt(Z),0),ee=ee===e?ee:rt(ee),pe-=H?H.length:0,d&x){var ge=D,ve=H;D=H=e}var Ae=re?e:$d(r),Ie=[r,d,C,D,H,ge,ve,U,Z,ee];if(Ae&&OM(Ie,Ae),r=Ie[0],d=Ie[1],C=Ie[2],D=Ie[3],H=Ie[4],ee=Ie[9]=Ie[9]===e?re?0:r.length:Mn(Ie[9]-pe,0),!ee&&d&(L|A)&&(d&=~(L|A)),!d||d==g)var Ue=mM(r,d,C);else d==L||d==A?Ue=vM(r,d,ee):(d==k||d==(g|k))&&!H.length?Ue=yM(r,d,C,D):Ue=fc.apply(e,Ie);var st=Ae?kv:ey;return ty(st(Ue,Ie),r,d)}function Uv(r,d,C,D){return r===e||zi(r,hs[C])&&!Rt.call(D,C)?d:r}function Vv(r,d,C,D,H,U){return en(r)&&en(d)&&(U.set(d,r),uc(r,d,e,Vv,U),U.delete(d)),r}function bM(r){return Aa(r)?e:r}function qv(r,d,C,D,H,U){var Z=C&o,ee=r.length,re=d.length;if(ee!=re&&!(Z&&re>ee))return!1;var pe=U.get(r),ge=U.get(d);if(pe&&ge)return pe==d&&ge==r;var ve=-1,Ae=!0,Ie=C&u?new Co:e;for(U.set(r,d),U.set(d,r);++ve<ee;){var Ue=r[ve],st=d[ve];if(D)var Ve=Z?D(st,Ue,ve,d,r,U):D(Ue,st,ve,r,d,U);if(Ve!==e){if(Ve)continue;Ae=!1;break}if(Ie){if(!ls(d,function(gt,wt){if(!Fi(Ie,wt)&&(Ue===gt||H(Ue,gt,C,D,U)))return Ie.push(wt)})){Ae=!1;break}}else if(!(Ue===st||H(Ue,st,C,D,U))){Ae=!1;break}}return U.delete(r),U.delete(d),Ae}function xM(r,d,C,D,H,U,Z){switch(C){case Le:if(r.byteLength!=d.byteLength||r.byteOffset!=d.byteOffset)return!1;r=r.buffer,d=d.buffer;case Te:return!(r.byteLength!=d.byteLength||!U(new Xl(r),new Xl(d)));case me:case ye:case ft:return zi(+r,+d);case $e:return r.name==d.name&&r.message==d.message;case kn:case Fe:return r==d+"";case ht:var ee=we;case nn:var re=D&o;if(ee||(ee=Ce),r.size!=d.size&&!re)return!1;var pe=Z.get(r);if(pe)return pe==d;D|=u,Z.set(r,d);var ge=qv(ee(r),ee(d),D,H,U,Z);return Z.delete(r),ge;case Be:if(ya)return ya.call(r)==ya.call(d)}return!1}function _M(r,d,C,D,H,U){var Z=C&o,ee=_d(r),re=ee.length,pe=_d(d),ge=pe.length;if(re!=ge&&!Z)return!1;for(var ve=re;ve--;){var Ae=ee[ve];if(!(Z?Ae in d:Rt.call(d,Ae)))return!1}var Ie=U.get(r),Ue=U.get(d);if(Ie&&Ue)return Ie==d&&Ue==r;var st=!0;U.set(r,d),U.set(d,r);for(var Ve=Z;++ve<re;){Ae=ee[ve];var gt=r[Ae],wt=d[Ae];if(D)var vi=Z?D(wt,gt,Ae,d,r,U):D(gt,wt,Ae,r,d,U);if(!(vi===e?gt===wt||H(gt,wt,C,D,U):vi)){st=!1;break}Ve||(Ve=Ae=="constructor")}if(st&&!Ve){var Xn=r.constructor,yi=d.constructor;Xn!=yi&&"constructor"in r&&"constructor"in d&&!(typeof Xn=="function"&&Xn instanceof Xn&&typeof yi=="function"&&yi instanceof yi)&&(st=!1)}return U.delete(r),U.delete(d),st}function yr(r){return Ed(Xv(r,e,ay),r+"")}function _d(r){return dv(r,Rn,Cd)}function kd(r){return dv(r,ai,Gv)}var $d=rc?function(r){return rc.get(r)}:jd;function yc(r){for(var d=r.name+"",C=ps[d],D=Rt.call(ps,d)?C.length:0;D--;){var H=C[D],U=H.func;if(U==null||U==r)return H.name}return d}function vs(r){var d=Rt.call(W,"placeholder")?W:r;return d.placeholder}function We(){var r=W.iteratee||Bd;return r=r===Bd?gv:r,arguments.length?r(arguments[0],arguments[1]):r}function wc(r,d){var C=r.__data__;return EM(d)?C[typeof d=="string"?"string":"hash"]:C.map}function Sd(r){for(var d=Rn(r),C=d.length;C--;){var D=d[C],H=r[D];d[C]=[D,H,Zv(H)]}return d}function Mo(r,d){var C=K(r,d);return fv(C)?C:e}function kM(r){var d=Rt.call(r,$o),C=r[$o];try{r[$o]=e;var D=!0}catch{}var H=Zl.call(r);return D&&(d?r[$o]=C:delete r[$o]),H}var Cd=Jh?function(r){return r==null?[]:(r=Xe(r),ii(Jh(r),function(d){return J0.call(r,d)}))}:Ud,Gv=Jh?function(r){for(var d=[];r;)jn(d,Cd(r)),r=Jl(r);return d}:Ud,qn=Zn;(ed&&qn(new ed(new ArrayBuffer(1)))!=Le||ga&&qn(new ga)!=ht||td&&qn(td.resolve())!=Qt||ds&&qn(new ds)!=nn||ma&&qn(new ma)!=je)&&(qn=function(r){var d=Zn(r),C=d==Dt?r.constructor:e,D=C?Eo(C):"";if(D)switch(D){case oT:return Le;case sT:return ht;case aT:return Qt;case lT:return nn;case cT:return je}return d});function $M(r,d,C){for(var D=-1,H=C.length;++D<H;){var U=C[D],Z=U.size;switch(U.type){case"drop":r+=Z;break;case"dropRight":d-=Z;break;case"take":d=Vn(d,r+Z);break;case"takeRight":r=Mn(r,d-Z);break}}return{start:r,end:d}}function SM(r){var d=r.match(Al);return d?d[1].split(Tl):[]}function Yv(r,d,C){d=Yr(d,r);for(var D=-1,H=d.length,U=!1;++D<H;){var Z=rr(d[D]);if(!(U=r!=null&&C(r,Z)))break;r=r[Z]}return U||++D!=H?U:(H=r==null?0:r.length,!!H&&Cc(H)&&wr(Z,H)&&(Je(r)||Lo(r)))}function CM(r){var d=r.length,C=new r.constructor(d);return d&&typeof r[0]=="string"&&Rt.call(r,"index")&&(C.index=r.index,C.input=r.input),C}function Kv(r){return typeof r.constructor=="function"&&!Sa(r)?fs(Jl(r)):{}}function AM(r,d,C){var D=r.constructor;switch(d){case Te:return wd(r);case me:case ye:return new D(+r);case Le:return uM(r,C);case qe:case Ye:case dt:case pt:case lt:case ct:case nt:case jt:case Hn:return Lv(r,C);case ht:return new D;case ft:case Fe:return new D(r);case kn:return hM(r);case nn:return new D;case Be:return dM(r)}}function TM(r,d){var C=d.length;if(!C)return r;var D=C-1;return d[D]=(C>1?"& ":"")+d[D],d=d.join(C>2?", ":" "),r.replace(Ir,`{
1390
+ /* [wrapped with `+d+`] */
1391
+ `)}function MM(r){return Je(r)||Lo(r)||!!(ev&&r&&r[ev])}function wr(r,d){var C=typeof r;return d=d??z,!!d&&(C=="number"||C!="symbol"&&mn.test(r))&&r>-1&&r%1==0&&r<d}function Qn(r,d,C){if(!en(C))return!1;var D=typeof d;return(D=="number"?si(C)&&wr(d,C.length):D=="string"&&d in C)?zi(C[d],r):!1}function Ad(r,d){if(Je(r))return!1;var C=typeof r;return C=="number"||C=="symbol"||C=="boolean"||r==null||mi(r)?!0:En.test(r)||!lr.test(r)||d!=null&&r in Xe(d)}function EM(r){var d=typeof r;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?r!=="__proto__":r===null}function Td(r){var d=yc(r),C=W[d];if(typeof C!="function"||!(d in yt.prototype))return!1;if(r===C)return!0;var D=$d(C);return!!D&&r===D[0]}function LM(r){return!!Z0&&Z0 in r}var RM=Yl?br:Vd;function Sa(r){var d=r&&r.constructor,C=typeof d=="function"&&d.prototype||hs;return r===C}function Zv(r){return r===r&&!en(r)}function Qv(r,d){return function(C){return C==null?!1:C[r]===d&&(d!==e||r in Xe(C))}}function IM(r){var d=$c(r,function(D){return C.size===f&&C.clear(),D}),C=d.cache;return d}function OM(r,d){var C=r[1],D=d[1],H=C|D,U=H<(g|y|T),Z=D==T&&C==L||D==T&&C==E&&r[7].length<=d[8]||D==(T|E)&&d[7].length<=d[8]&&C==L;if(!(U||Z))return r;D&g&&(r[2]=d[2],H|=C&g?0:b);var ee=d[3];if(ee){var re=r[3];r[3]=re?Iv(re,ee,d[4]):ee,r[4]=re?ke(r[3],s):d[4]}return ee=d[5],ee&&(re=r[5],r[5]=re?Ov(re,ee,d[6]):ee,r[6]=re?ke(r[5],s):d[6]),ee=d[7],ee&&(r[7]=ee),D&T&&(r[8]=r[8]==null?d[8]:Vn(r[8],d[8])),r[9]==null&&(r[9]=d[9]),r[0]=d[0],r[1]=H,r}function DM(r){var d=[];if(r!=null)for(var C in Xe(r))d.push(C);return d}function NM(r){return Zl.call(r)}function Xv(r,d,C){return d=Mn(d===e?r.length-1:d,0),function(){for(var D=arguments,H=-1,U=Mn(D.length-d,0),Z=se(U);++H<U;)Z[H]=D[d+H];H=-1;for(var ee=se(d+1);++H<d;)ee[H]=D[H];return ee[d]=C(Z),qt(r,this,ee)}}function Jv(r,d){return d.length<2?r:To(r,Ti(d,0,-1))}function FM(r,d){for(var C=r.length,D=Vn(d.length,C),H=oi(r);D--;){var U=d[D];r[D]=wr(U,C)?H[U]:e}return r}function Md(r,d){if(!(d==="constructor"&&typeof r[d]=="function")&&d!="__proto__")return r[d]}var ey=ny(kv),Ca=XA||function(r,d){return Cn.setTimeout(r,d)},Ed=ny(sM);function ty(r,d,C){var D=d+"";return Ed(r,TM(D,PM(SM(D),C)))}function ny(r){var d=0,C=0;return function(){var D=nT(),H=_-(D-C);if(C=D,H>0){if(++d>=$)return arguments[0]}else d=0;return r.apply(e,arguments)}}function bc(r,d){var C=-1,D=r.length,H=D-1;for(d=d===e?D:d;++C<d;){var U=dd(C,H),Z=r[U];r[U]=r[C],r[C]=Z}return r.length=d,r}var iy=IM(function(r){var d=[];return r.charCodeAt(0)===46&&d.push(""),r.replace(Ki,function(C,D,H,U){d.push(H?U.replace(cr,"$1"):D||C)}),d});function rr(r){if(typeof r=="string"||mi(r))return r;var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Eo(r){if(r!=null){try{return Kl.call(r)}catch{}try{return r+""}catch{}}return""}function PM(r,d){return Yn(Q,function(C){var D="_."+C[0];d&C[1]&&!as(r,D)&&r.push(D)}),r.sort()}function ry(r){if(r instanceof yt)return r.clone();var d=new Ci(r.__wrapped__,r.__chain__);return d.__actions__=oi(r.__actions__),d.__index__=r.__index__,d.__values__=r.__values__,d}function zM(r,d,C){(C?Qn(r,d,C):d===e)?d=1:d=Mn(rt(d),0);var D=r==null?0:r.length;if(!D||d<1)return[];for(var H=0,U=0,Z=se(nc(D/d));H<D;)Z[U++]=Ti(r,H,H+=d);return Z}function HM(r){for(var d=-1,C=r==null?0:r.length,D=0,H=[];++d<C;){var U=r[d];U&&(H[D++]=U)}return H}function BM(){var r=arguments.length;if(!r)return[];for(var d=se(r-1),C=arguments[0],D=r;D--;)d[D-1]=arguments[D];return jn(Je(C)?oi(C):[C],Dn(d,1))}var WM=ut(function(r,d){return un(r)?ba(r,Dn(d,1,un,!0)):[]}),jM=ut(function(r,d){var C=Mi(d);return un(C)&&(C=e),un(r)?ba(r,Dn(d,1,un,!0),We(C,2)):[]}),UM=ut(function(r,d){var C=Mi(d);return un(C)&&(C=e),un(r)?ba(r,Dn(d,1,un,!0),e,C):[]});function VM(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:rt(d),Ti(r,d<0?0:d,D)):[]}function qM(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:rt(d),d=D-d,Ti(r,0,d<0?0:d)):[]}function GM(r,d){return r&&r.length?dc(r,We(d,3),!0,!0):[]}function YM(r,d){return r&&r.length?dc(r,We(d,3),!0):[]}function KM(r,d,C,D){var H=r==null?0:r.length;return H?(C&&typeof C!="number"&&Qn(r,d,C)&&(C=0,D=H),BT(r,d,C,D)):[]}function oy(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var H=C==null?0:rt(C);return H<0&&(H=Mn(D+H,0)),_o(r,We(d,3),H)}function sy(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var H=D-1;return C!==e&&(H=rt(C),H=C<0?Mn(D+H,0):Vn(H,D-1)),_o(r,We(d,3),H,!0)}function ay(r){var d=r==null?0:r.length;return d?Dn(r,1):[]}function ZM(r){var d=r==null?0:r.length;return d?Dn(r,F):[]}function QM(r,d){var C=r==null?0:r.length;return C?(d=d===e?1:rt(d),Dn(r,d)):[]}function XM(r){for(var d=-1,C=r==null?0:r.length,D={};++d<C;){var H=r[d];D[H[0]]=H[1]}return D}function ly(r){return r&&r.length?r[0]:e}function JM(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var H=C==null?0:rt(C);return H<0&&(H=Mn(D+H,0)),pr(r,d,H)}function eE(r){var d=r==null?0:r.length;return d?Ti(r,0,-1):[]}var tE=ut(function(r){var d=Bt(r,vd);return d.length&&d[0]===r[0]?ad(d):[]}),nE=ut(function(r){var d=Mi(r),C=Bt(r,vd);return d===Mi(C)?d=e:C.pop(),C.length&&C[0]===r[0]?ad(C,We(d,2)):[]}),iE=ut(function(r){var d=Mi(r),C=Bt(r,vd);return d=typeof d=="function"?d:e,d&&C.pop(),C.length&&C[0]===r[0]?ad(C,e,d):[]});function rE(r,d){return r==null?"":eT.call(r,d)}function Mi(r){var d=r==null?0:r.length;return d?r[d-1]:e}function oE(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var H=D;return C!==e&&(H=rt(C),H=H<0?Mn(D+H,0):Vn(H,D-1)),d===d?Lt(r,d,H):_o(r,ca,H,!0)}function sE(r,d){return r&&r.length?wv(r,rt(d)):e}var aE=ut(cy);function cy(r,d){return r&&r.length&&d&&d.length?hd(r,d):r}function lE(r,d,C){return r&&r.length&&d&&d.length?hd(r,d,We(C,2)):r}function cE(r,d,C){return r&&r.length&&d&&d.length?hd(r,d,e,C):r}var uE=yr(function(r,d){var C=r==null?0:r.length,D=id(r,d);return _v(r,Bt(d,function(H){return wr(H,C)?+H:H}).sort(Rv)),D});function hE(r,d){var C=[];if(!(r&&r.length))return C;var D=-1,H=[],U=r.length;for(d=We(d,3);++D<U;){var Z=r[D];d(Z,D,r)&&(C.push(Z),H.push(D))}return _v(r,H),C}function Ld(r){return r==null?r:rT.call(r)}function dE(r,d,C){var D=r==null?0:r.length;return D?(C&&typeof C!="number"&&Qn(r,d,C)?(d=0,C=D):(d=d==null?0:rt(d),C=C===e?D:rt(C)),Ti(r,d,C)):[]}function pE(r,d){return hc(r,d)}function fE(r,d,C){return fd(r,d,We(C,2))}function gE(r,d){var C=r==null?0:r.length;if(C){var D=hc(r,d);if(D<C&&zi(r[D],d))return D}return-1}function mE(r,d){return hc(r,d,!0)}function vE(r,d,C){return fd(r,d,We(C,2),!0)}function yE(r,d){var C=r==null?0:r.length;if(C){var D=hc(r,d,!0)-1;if(zi(r[D],d))return D}return-1}function wE(r){return r&&r.length?$v(r):[]}function bE(r,d){return r&&r.length?$v(r,We(d,2)):[]}function xE(r){var d=r==null?0:r.length;return d?Ti(r,1,d):[]}function _E(r,d,C){return r&&r.length?(d=C||d===e?1:rt(d),Ti(r,0,d<0?0:d)):[]}function kE(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:rt(d),d=D-d,Ti(r,d<0?0:d,D)):[]}function $E(r,d){return r&&r.length?dc(r,We(d,3),!1,!0):[]}function SE(r,d){return r&&r.length?dc(r,We(d,3)):[]}var CE=ut(function(r){return Gr(Dn(r,1,un,!0))}),AE=ut(function(r){var d=Mi(r);return un(d)&&(d=e),Gr(Dn(r,1,un,!0),We(d,2))}),TE=ut(function(r){var d=Mi(r);return d=typeof d=="function"?d:e,Gr(Dn(r,1,un,!0),e,d)});function ME(r){return r&&r.length?Gr(r):[]}function EE(r,d){return r&&r.length?Gr(r,We(d,2)):[]}function LE(r,d){return d=typeof d=="function"?d:e,r&&r.length?Gr(r,e,d):[]}function Rd(r){if(!(r&&r.length))return[];var d=0;return r=ii(r,function(C){if(un(C))return d=Mn(C.length,d),!0}),on(d,function(C){return Bt(r,ha(C))})}function uy(r,d){if(!(r&&r.length))return[];var C=Rd(r);return d==null?C:Bt(C,function(D){return qt(d,e,D)})}var RE=ut(function(r,d){return un(r)?ba(r,d):[]}),IE=ut(function(r){return md(ii(r,un))}),OE=ut(function(r){var d=Mi(r);return un(d)&&(d=e),md(ii(r,un),We(d,2))}),DE=ut(function(r){var d=Mi(r);return d=typeof d=="function"?d:e,md(ii(r,un),e,d)}),NE=ut(Rd);function FE(r,d){return Tv(r||[],d||[],wa)}function PE(r,d){return Tv(r||[],d||[],ka)}var zE=ut(function(r){var d=r.length,C=d>1?r[d-1]:e;return C=typeof C=="function"?(r.pop(),C):e,uy(r,C)});function hy(r){var d=W(r);return d.__chain__=!0,d}function HE(r,d){return d(r),r}function xc(r,d){return d(r)}var BE=yr(function(r){var d=r.length,C=d?r[0]:0,D=this.__wrapped__,H=function(U){return id(U,r)};return d>1||this.__actions__.length||!(D instanceof yt)||!wr(C)?this.thru(H):(D=D.slice(C,+C+(d?1:0)),D.__actions__.push({func:xc,args:[H],thisArg:e}),new Ci(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function WE(){return hy(this)}function jE(){return new Ci(this.value(),this.__chain__)}function UE(){this.__values__===e&&(this.__values__=Sy(this.value()));var r=this.__index__>=this.__values__.length,d=r?e:this.__values__[this.__index__++];return{done:r,value:d}}function VE(){return this}function qE(r){for(var d,C=this;C instanceof sc;){var D=ry(C);D.__index__=0,D.__values__=e,d?H.__wrapped__=D:d=D;var H=D;C=C.__wrapped__}return H.__wrapped__=r,d}function GE(){var r=this.__wrapped__;if(r instanceof yt){var d=r;return this.__actions__.length&&(d=new yt(this)),d=d.reverse(),d.__actions__.push({func:xc,args:[Ld],thisArg:e}),new Ci(d,this.__chain__)}return this.thru(Ld)}function YE(){return Av(this.__wrapped__,this.__actions__)}var KE=pc(function(r,d,C){Rt.call(r,C)?++r[C]:mr(r,C,1)});function ZE(r,d,C){var D=Je(r)?Wr:HT;return C&&Qn(r,d,C)&&(d=e),D(r,We(d,3))}function QE(r,d){var C=Je(r)?ii:uv;return C(r,We(d,3))}var XE=Pv(oy),JE=Pv(sy);function eL(r,d){return Dn(_c(r,d),1)}function tL(r,d){return Dn(_c(r,d),F)}function nL(r,d,C){return C=C===e?1:rt(C),Dn(_c(r,d),C)}function dy(r,d){var C=Je(r)?Yn:qr;return C(r,We(d,3))}function py(r,d){var C=Je(r)?jl:cv;return C(r,We(d,3))}var iL=pc(function(r,d,C){Rt.call(r,C)?r[C].push(d):mr(r,C,[d])});function rL(r,d,C,D){r=si(r)?r:ws(r),C=C&&!D?rt(C):0;var H=r.length;return C<0&&(C=Mn(H+C,0)),Ac(r)?C<=H&&r.indexOf(d,C)>-1:!!H&&pr(r,d,C)>-1}var oL=ut(function(r,d,C){var D=-1,H=typeof d=="function",U=si(r)?se(r.length):[];return qr(r,function(Z){U[++D]=H?qt(d,Z,C):xa(Z,d,C)}),U}),sL=pc(function(r,d,C){mr(r,C,d)});function _c(r,d){var C=Je(r)?Bt:mv;return C(r,We(d,3))}function aL(r,d,C,D){return r==null?[]:(Je(d)||(d=d==null?[]:[d]),C=D?e:C,Je(C)||(C=C==null?[]:[C]),bv(r,d,C))}var lL=pc(function(r,d,C){r[C?0:1].push(d)},function(){return[[],[]]});function cL(r,d,C){var D=Je(r)?Si:da,H=arguments.length<3;return D(r,We(d,4),C,H,qr)}function uL(r,d,C){var D=Je(r)?xo:da,H=arguments.length<3;return D(r,We(d,4),C,H,cv)}function hL(r,d){var C=Je(r)?ii:uv;return C(r,Sc(We(d,3)))}function dL(r){var d=Je(r)?ov:rM;return d(r)}function pL(r,d,C){(C?Qn(r,d,C):d===e)?d=1:d=rt(d);var D=Je(r)?DT:oM;return D(r,d)}function fL(r){var d=Je(r)?NT:aM;return d(r)}function gL(r){if(r==null)return 0;if(si(r))return Ac(r)?it(r):r.length;var d=qn(r);return d==ht||d==nn?r.size:cd(r).length}function mL(r,d,C){var D=Je(r)?ls:lM;return C&&Qn(r,d,C)&&(d=e),D(r,We(d,3))}var vL=ut(function(r,d){if(r==null)return[];var C=d.length;return C>1&&Qn(r,d[0],d[1])?d=[]:C>2&&Qn(d[0],d[1],d[2])&&(d=[d[0]]),bv(r,Dn(d,1),[])}),kc=QA||function(){return Cn.Date.now()};function yL(r,d){if(typeof d!="function")throw new Tn(v);return r=rt(r),function(){if(--r<1)return d.apply(this,arguments)}}function fy(r,d,C){return d=C?e:d,d=r&&d==null?r.length:d,vr(r,T,e,e,e,e,d)}function gy(r,d){var C;if(typeof d!="function")throw new Tn(v);return r=rt(r),function(){return--r>0&&(C=d.apply(this,arguments)),r<=1&&(d=e),C}}var Id=ut(function(r,d,C){var D=g;if(C.length){var H=ke(C,vs(Id));D|=k}return vr(r,D,d,C,H)}),my=ut(function(r,d,C){var D=g|y;if(C.length){var H=ke(C,vs(my));D|=k}return vr(d,D,r,C,H)});function vy(r,d,C){d=C?e:d;var D=vr(r,L,e,e,e,e,e,d);return D.placeholder=vy.placeholder,D}function yy(r,d,C){d=C?e:d;var D=vr(r,A,e,e,e,e,e,d);return D.placeholder=yy.placeholder,D}function wy(r,d,C){var D,H,U,Z,ee,re,pe=0,ge=!1,ve=!1,Ae=!0;if(typeof r!="function")throw new Tn(v);d=Ei(d)||0,en(C)&&(ge=!!C.leading,ve="maxWait"in C,U=ve?Mn(Ei(C.maxWait)||0,d):U,Ae="trailing"in C?!!C.trailing:Ae);function Ie(hn){var Hi=D,_r=H;return D=H=e,pe=hn,Z=r.apply(_r,Hi),Z}function Ue(hn){return pe=hn,ee=Ca(gt,d),ge?Ie(hn):Z}function st(hn){var Hi=hn-re,_r=hn-pe,Py=d-Hi;return ve?Vn(Py,U-_r):Py}function Ve(hn){var Hi=hn-re,_r=hn-pe;return re===e||Hi>=d||Hi<0||ve&&_r>=U}function gt(){var hn=kc();if(Ve(hn))return wt(hn);ee=Ca(gt,st(hn))}function wt(hn){return ee=e,Ae&&D?Ie(hn):(D=H=e,Z)}function vi(){ee!==e&&Mv(ee),pe=0,D=re=H=ee=e}function Xn(){return ee===e?Z:wt(kc())}function yi(){var hn=kc(),Hi=Ve(hn);if(D=arguments,H=this,re=hn,Hi){if(ee===e)return Ue(re);if(ve)return Mv(ee),ee=Ca(gt,d),Ie(re)}return ee===e&&(ee=Ca(gt,d)),Z}return yi.cancel=vi,yi.flush=Xn,yi}var wL=ut(function(r,d){return lv(r,1,d)}),bL=ut(function(r,d,C){return lv(r,Ei(d)||0,C)});function xL(r){return vr(r,I)}function $c(r,d){if(typeof r!="function"||d!=null&&typeof d!="function")throw new Tn(v);var C=function(){var D=arguments,H=d?d.apply(this,D):D[0],U=C.cache;if(U.has(H))return U.get(H);var Z=r.apply(this,D);return C.cache=U.set(H,Z)||U,Z};return C.cache=new($c.Cache||gr),C}$c.Cache=gr;function Sc(r){if(typeof r!="function")throw new Tn(v);return function(){var d=arguments;switch(d.length){case 0:return!r.call(this);case 1:return!r.call(this,d[0]);case 2:return!r.call(this,d[0],d[1]);case 3:return!r.call(this,d[0],d[1],d[2])}return!r.apply(this,d)}}function _L(r){return gy(2,r)}var kL=cM(function(r,d){d=d.length==1&&Je(d[0])?Bt(d[0],Un(We())):Bt(Dn(d,1),Un(We()));var C=d.length;return ut(function(D){for(var H=-1,U=Vn(D.length,C);++H<U;)D[H]=d[H].call(this,D[H]);return qt(r,this,D)})}),Od=ut(function(r,d){var C=ke(d,vs(Od));return vr(r,k,e,d,C)}),by=ut(function(r,d){var C=ke(d,vs(by));return vr(r,x,e,d,C)}),$L=yr(function(r,d){return vr(r,E,e,e,e,d)});function SL(r,d){if(typeof r!="function")throw new Tn(v);return d=d===e?d:rt(d),ut(r,d)}function CL(r,d){if(typeof r!="function")throw new Tn(v);return d=d==null?0:Mn(rt(d),0),ut(function(C){var D=C[d],H=Kr(C,0,d);return D&&jn(H,D),qt(r,this,H)})}function AL(r,d,C){var D=!0,H=!0;if(typeof r!="function")throw new Tn(v);return en(C)&&(D="leading"in C?!!C.leading:D,H="trailing"in C?!!C.trailing:H),wy(r,d,{leading:D,maxWait:d,trailing:H})}function TL(r){return fy(r,1)}function ML(r,d){return Od(yd(d),r)}function EL(){if(!arguments.length)return[];var r=arguments[0];return Je(r)?r:[r]}function LL(r){return Ai(r,c)}function RL(r,d){return d=typeof d=="function"?d:e,Ai(r,c,d)}function IL(r){return Ai(r,l|c)}function OL(r,d){return d=typeof d=="function"?d:e,Ai(r,l|c,d)}function DL(r,d){return d==null||av(r,d,Rn(d))}function zi(r,d){return r===d||r!==r&&d!==d}var NL=vc(sd),FL=vc(function(r,d){return r>=d}),Lo=pv(function(){return arguments}())?pv:function(r){return sn(r)&&Rt.call(r,"callee")&&!J0.call(r,"callee")},Je=se.isArray,PL=Bl?Un(Bl):qT;function si(r){return r!=null&&Cc(r.length)&&!br(r)}function un(r){return sn(r)&&si(r)}function zL(r){return r===!0||r===!1||sn(r)&&Zn(r)==me}var Zr=JA||Vd,HL=$i?Un($i):GT;function BL(r){return sn(r)&&r.nodeType===1&&!Aa(r)}function WL(r){if(r==null)return!0;if(si(r)&&(Je(r)||typeof r=="string"||typeof r.splice=="function"||Zr(r)||ys(r)||Lo(r)))return!r.length;var d=qn(r);if(d==ht||d==nn)return!r.size;if(Sa(r))return!cd(r).length;for(var C in r)if(Rt.call(r,C))return!1;return!0}function jL(r,d){return _a(r,d)}function UL(r,d,C){C=typeof C=="function"?C:e;var D=C?C(r,d):e;return D===e?_a(r,d,e,C):!!D}function Dd(r){if(!sn(r))return!1;var d=Zn(r);return d==$e||d==fe||typeof r.message=="string"&&typeof r.name=="string"&&!Aa(r)}function VL(r){return typeof r=="number"&&tv(r)}function br(r){if(!en(r))return!1;var d=Zn(r);return d==ot||d==zt||d==ae||d==Yi}function xy(r){return typeof r=="number"&&r==rt(r)}function Cc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=z}function en(r){var d=typeof r;return r!=null&&(d=="object"||d=="function")}function sn(r){return r!=null&&typeof r=="object"}var _y=Ni?Un(Ni):KT;function qL(r,d){return r===d||ld(r,d,Sd(d))}function GL(r,d,C){return C=typeof C=="function"?C:e,ld(r,d,Sd(d),C)}function YL(r){return ky(r)&&r!=+r}function KL(r){if(RM(r))throw new Ne(p);return fv(r)}function ZL(r){return r===null}function QL(r){return r==null}function ky(r){return typeof r=="number"||sn(r)&&Zn(r)==ft}function Aa(r){if(!sn(r)||Zn(r)!=Dt)return!1;var d=Jl(r);if(d===null)return!0;var C=Rt.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&Kl.call(C)==GA}var Nd=tr?Un(tr):ZT;function XL(r){return xy(r)&&r>=-z&&r<=z}var $y=dr?Un(dr):QT;function Ac(r){return typeof r=="string"||!Je(r)&&sn(r)&&Zn(r)==Fe}function mi(r){return typeof r=="symbol"||sn(r)&&Zn(r)==Be}var ys=Wl?Un(Wl):XT;function JL(r){return r===e}function eR(r){return sn(r)&&qn(r)==je}function tR(r){return sn(r)&&Zn(r)==ce}var nR=vc(ud),iR=vc(function(r,d){return r<=d});function Sy(r){if(!r)return[];if(si(r))return Ac(r)?Ge(r):oi(r);if(fa&&r[fa])return de(r[fa]());var d=qn(r),C=d==ht?we:d==nn?Ce:ws;return C(r)}function xr(r){if(!r)return r===0?r:0;if(r=Ei(r),r===F||r===-F){var d=r<0?-1:1;return d*j}return r===r?r:0}function rt(r){var d=xr(r),C=d%1;return d===d?C?d-C:d:0}function Cy(r){return r?Ao(rt(r),0,q):0}function Ei(r){if(typeof r=="number")return r;if(mi(r))return V;if(en(r)){var d=typeof r.valueOf=="function"?r.valueOf():r;r=en(d)?d+"":d}if(typeof r!="string")return r===0?r:+r;r=Xt(r);var C=Qi.test(r);return C||gn.test(r)?Nt(r.slice(2),C?2:8):Ml.test(r)?V:+r}function Ay(r){return ir(r,ai(r))}function rR(r){return r?Ao(rt(r),-z,z):r===0?r:0}function Tt(r){return r==null?"":gi(r)}var oR=gs(function(r,d){if(Sa(d)||si(d)){ir(d,Rn(d),r);return}for(var C in d)Rt.call(d,C)&&wa(r,C,d[C])}),Ty=gs(function(r,d){ir(d,ai(d),r)}),Tc=gs(function(r,d,C,D){ir(d,ai(d),r,D)}),sR=gs(function(r,d,C,D){ir(d,Rn(d),r,D)}),aR=yr(id);function lR(r,d){var C=fs(r);return d==null?C:sv(C,d)}var cR=ut(function(r,d){r=Xe(r);var C=-1,D=d.length,H=D>2?d[2]:e;for(H&&Qn(d[0],d[1],H)&&(D=1);++C<D;)for(var U=d[C],Z=ai(U),ee=-1,re=Z.length;++ee<re;){var pe=Z[ee],ge=r[pe];(ge===e||zi(ge,hs[pe])&&!Rt.call(r,pe))&&(r[pe]=U[pe])}return r}),uR=ut(function(r){return r.push(e,Vv),qt(My,e,r)});function hR(r,d){return la(r,We(d,3),nr)}function dR(r,d){return la(r,We(d,3),od)}function pR(r,d){return r==null?r:rd(r,We(d,3),ai)}function fR(r,d){return r==null?r:hv(r,We(d,3),ai)}function gR(r,d){return r&&nr(r,We(d,3))}function mR(r,d){return r&&od(r,We(d,3))}function vR(r){return r==null?[]:cc(r,Rn(r))}function yR(r){return r==null?[]:cc(r,ai(r))}function Fd(r,d,C){var D=r==null?e:To(r,d);return D===e?C:D}function wR(r,d){return r!=null&&Yv(r,d,WT)}function Pd(r,d){return r!=null&&Yv(r,d,jT)}var bR=Hv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Zl.call(d)),r[d]=C},Hd(li)),xR=Hv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Zl.call(d)),Rt.call(r,d)?r[d].push(C):r[d]=[C]},We),_R=ut(xa);function Rn(r){return si(r)?rv(r):cd(r)}function ai(r){return si(r)?rv(r,!0):JT(r)}function kR(r,d){var C={};return d=We(d,3),nr(r,function(D,H,U){mr(C,d(D,H,U),D)}),C}function $R(r,d){var C={};return d=We(d,3),nr(r,function(D,H,U){mr(C,H,d(D,H,U))}),C}var SR=gs(function(r,d,C){uc(r,d,C)}),My=gs(function(r,d,C,D){uc(r,d,C,D)}),CR=yr(function(r,d){var C={};if(r==null)return C;var D=!1;d=Bt(d,function(U){return U=Yr(U,r),D||(D=U.length>1),U}),ir(r,kd(r),C),D&&(C=Ai(C,l|a|c,bM));for(var H=d.length;H--;)gd(C,d[H]);return C});function AR(r,d){return Ey(r,Sc(We(d)))}var TR=yr(function(r,d){return r==null?{}:tM(r,d)});function Ey(r,d){if(r==null)return{};var C=Bt(kd(r),function(D){return[D]});return d=We(d),xv(r,C,function(D,H){return d(D,H[0])})}function MR(r,d,C){d=Yr(d,r);var D=-1,H=d.length;for(H||(H=1,r=e);++D<H;){var U=r==null?e:r[rr(d[D])];U===e&&(D=H,U=C),r=br(U)?U.call(r):U}return r}function ER(r,d,C){return r==null?r:ka(r,d,C)}function LR(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:ka(r,d,C,D)}var Ly=jv(Rn),Ry=jv(ai);function RR(r,d,C){var D=Je(r),H=D||Zr(r)||ys(r);if(d=We(d,4),C==null){var U=r&&r.constructor;H?C=D?new U:[]:en(r)?C=br(U)?fs(Jl(r)):{}:C={}}return(H?Yn:nr)(r,function(Z,ee,re){return d(C,Z,ee,re)}),C}function IR(r,d){return r==null?!0:gd(r,d)}function OR(r,d,C){return r==null?r:Cv(r,d,yd(C))}function DR(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:Cv(r,d,yd(C),D)}function ws(r){return r==null?[]:ko(r,Rn(r))}function NR(r){return r==null?[]:ko(r,ai(r))}function FR(r,d,C){return C===e&&(C=d,d=e),C!==e&&(C=Ei(C),C=C===C?C:0),d!==e&&(d=Ei(d),d=d===d?d:0),Ao(Ei(r),d,C)}function PR(r,d,C){return d=xr(d),C===e?(C=d,d=0):C=xr(C),r=Ei(r),UT(r,d,C)}function zR(r,d,C){if(C&&typeof C!="boolean"&&Qn(r,d,C)&&(d=C=e),C===e&&(typeof d=="boolean"?(C=d,d=e):typeof r=="boolean"&&(C=r,r=e)),r===e&&d===e?(r=0,d=1):(r=xr(r),d===e?(d=r,r=0):d=xr(d)),r>d){var D=r;r=d,d=D}if(C||r%1||d%1){var H=nv();return Vn(r+H*(d-r+yn("1e-"+((H+"").length-1))),d)}return dd(r,d)}var HR=ms(function(r,d,C){return d=d.toLowerCase(),r+(C?Iy(d):d)});function Iy(r){return zd(Tt(r).toLowerCase())}function Oy(r){return r=Tt(r),r&&r.replace(Xo,P).replace(zr,"")}function BR(r,d,C){r=Tt(r),d=gi(d);var D=r.length;C=C===e?D:Ao(rt(C),0,D);var H=C;return C-=d.length,C>=0&&r.slice(C,H)==d}function WR(r){return r=Tt(r),r&&jh.test(r)?r.replace(Cl,B):r}function jR(r){return r=Tt(r),r&&Lr.test(r)?r.replace(Zi,"\\$&"):r}var UR=ms(function(r,d,C){return r+(C?"-":"")+d.toLowerCase()}),VR=ms(function(r,d,C){return r+(C?" ":"")+d.toLowerCase()}),qR=Fv("toLowerCase");function GR(r,d,C){r=Tt(r),d=rt(d);var D=d?it(r):0;if(!d||D>=d)return r;var H=(d-D)/2;return mc(ic(H),C)+r+mc(nc(H),C)}function YR(r,d,C){r=Tt(r),d=rt(d);var D=d?it(r):0;return d&&D<d?r+mc(d-D,C):r}function KR(r,d,C){r=Tt(r),d=rt(d);var D=d?it(r):0;return d&&D<d?mc(d-D,C)+r:r}function ZR(r,d,C){return C||d==null?d=0:d&&(d=+d),iT(Tt(r).replace(Bn,""),d||0)}function QR(r,d,C){return(C?Qn(r,d,C):d===e)?d=1:d=rt(d),pd(Tt(r),d)}function XR(){var r=arguments,d=Tt(r[0]);return r.length<3?d:d.replace(r[1],r[2])}var JR=ms(function(r,d,C){return r+(C?"_":"")+d.toLowerCase()});function eI(r,d,C){return C&&typeof C!="number"&&Qn(r,d,C)&&(d=C=e),C=C===e?q:C>>>0,C?(r=Tt(r),r&&(typeof d=="string"||d!=null&&!Nd(d))&&(d=gi(d),!d&&te(r))?Kr(Ge(r),0,C):r.split(d,C)):[]}var tI=ms(function(r,d,C){return r+(C?" ":"")+zd(d)});function nI(r,d,C){return r=Tt(r),C=C==null?0:Ao(rt(C),0,r.length),d=gi(d),r.slice(C,C+d.length)==d}function iI(r,d,C){var D=W.templateSettings;C&&Qn(r,d,C)&&(d=e),r=Tt(r),d=Tc({},d,D,Uv);var H=Tc({},d.imports,D.imports,Uv),U=Rn(H),Z=ko(H,U),ee,re,pe=0,ge=d.interpolate||Wn,ve="__p += '",Ae=An((d.escape||Wn).source+"|"+ge.source+"|"+(ge===ze?Yh:Wn).source+"|"+(d.evaluate||Wn).source+"|$","g"),Ie="//# sourceURL="+(Rt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zl+"]")+`
1392
+ `;r.replace(Ae,function(Ve,gt,wt,vi,Xn,yi){return wt||(wt=vi),ve+=r.slice(pe,yi).replace(go,Y),gt&&(ee=!0,ve+=`' +
1393
+ __e(`+gt+`) +
1394
+ '`),Xn&&(re=!0,ve+=`';
1395
+ `+Xn+`;
1396
+ __p += '`),wt&&(ve+=`' +
1397
+ ((__t = (`+wt+`)) == null ? '' : __t) +
1398
+ '`),pe=yi+Ve.length,Ve}),ve+=`';
1399
+ `;var Ue=Rt.call(d,"variable")&&d.variable;if(!Ue)ve=`with (obj) {
1400
+ `+ve+`
1401
+ }
1402
+ `;else if(Gh.test(Ue))throw new Ne(w);ve=(re?ve.replace(ar,""):ve).replace(ti,"$1").replace(js,"$1;"),ve="function("+(Ue||"obj")+`) {
1403
+ `+(Ue?"":`obj || (obj = {});
1404
+ `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
1405
+ function print() { __p += __j.call(arguments, '') }
1406
+ `:`;
1407
+ `)+ve+`return __p
1408
+ }`;var st=Ny(function(){return Ze(U,Ie+"return "+ve).apply(e,Z)});if(st.source=ve,Dd(st))throw st;return st}function rI(r){return Tt(r).toLowerCase()}function oI(r){return Tt(r).toUpperCase()}function sI(r,d,C){if(r=Tt(r),r&&(C||d===e))return Xt(r);if(!r||!(d=gi(d)))return r;var D=Ge(r),H=Ge(d),U=ql(D,H),Z=Gl(D,H)+1;return Kr(D,U,Z).join("")}function aI(r,d,C){if(r=Tt(r),r&&(C||d===e))return r.slice(0,Qe(r)+1);if(!r||!(d=gi(d)))return r;var D=Ge(r),H=Gl(D,Ge(d))+1;return Kr(D,0,H).join("")}function lI(r,d,C){if(r=Tt(r),r&&(C||d===e))return r.replace(Bn,"");if(!r||!(d=gi(d)))return r;var D=Ge(r),H=ql(D,Ge(d));return Kr(D,H).join("")}function cI(r,d){var C=M,D=N;if(en(d)){var H="separator"in d?d.separator:H;C="length"in d?rt(d.length):C,D="omission"in d?gi(d.omission):D}r=Tt(r);var U=r.length;if(te(r)){var Z=Ge(r);U=Z.length}if(C>=U)return r;var ee=C-it(D);if(ee<1)return D;var re=Z?Kr(Z,0,ee).join(""):r.slice(0,ee);if(H===e)return re+D;if(Z&&(ee+=re.length-ee),Nd(H)){if(r.slice(ee).search(H)){var pe,ge=re;for(H.global||(H=An(H.source,Tt(Or.exec(H))+"g")),H.lastIndex=0;pe=H.exec(ge);)var ve=pe.index;re=re.slice(0,ve===e?ee:ve)}}else if(r.indexOf(gi(H),ee)!=ee){var Ae=re.lastIndexOf(H);Ae>-1&&(re=re.slice(0,Ae))}return re+D}function uI(r){return r=Tt(r),r&&Wh.test(r)?r.replace(Us,Re):r}var hI=ms(function(r,d,C){return r+(C?" ":"")+d.toUpperCase()}),zd=Fv("toUpperCase");function Dy(r,d,C){return r=Tt(r),d=C?e:d,d===e?oe(r)?Gt(r):cs(r):r.match(d)||[]}var Ny=ut(function(r,d){try{return qt(r,e,d)}catch(C){return Dd(C)?C:new Ne(C)}}),dI=yr(function(r,d){return Yn(d,function(C){C=rr(C),mr(r,C,Id(r[C],r))}),r});function pI(r){var d=r==null?0:r.length,C=We();return r=d?Bt(r,function(D){if(typeof D[1]!="function")throw new Tn(v);return[C(D[0]),D[1]]}):[],ut(function(D){for(var H=-1;++H<d;){var U=r[H];if(qt(U[0],this,D))return qt(U[1],this,D)}})}function fI(r){return zT(Ai(r,l))}function Hd(r){return function(){return r}}function gI(r,d){return r==null||r!==r?d:r}var mI=zv(),vI=zv(!0);function li(r){return r}function Bd(r){return gv(typeof r=="function"?r:Ai(r,l))}function yI(r){return vv(Ai(r,l))}function wI(r,d){return yv(r,Ai(d,l))}var bI=ut(function(r,d){return function(C){return xa(C,r,d)}}),xI=ut(function(r,d){return function(C){return xa(r,C,d)}});function Wd(r,d,C){var D=Rn(d),H=cc(d,D);C==null&&!(en(d)&&(H.length||!D.length))&&(C=d,d=r,r=this,H=cc(d,Rn(d)));var U=!(en(C)&&"chain"in C)||!!C.chain,Z=br(r);return Yn(H,function(ee){var re=d[ee];r[ee]=re,Z&&(r.prototype[ee]=function(){var pe=this.__chain__;if(U||pe){var ge=r(this.__wrapped__),ve=ge.__actions__=oi(this.__actions__);return ve.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,jn([this.value()],arguments))})}),r}function _I(){return Cn._===this&&(Cn._=YA),this}function jd(){}function kI(r){return r=rt(r),ut(function(d){return wv(d,r)})}var $I=bd(Bt),SI=bd(Wr),CI=bd(ls);function Fy(r){return Ad(r)?ha(rr(r)):nM(r)}function AI(r){return function(d){return r==null?e:To(r,d)}}var TI=Bv(),MI=Bv(!0);function Ud(){return[]}function Vd(){return!1}function EI(){return{}}function LI(){return""}function RI(){return!0}function II(r,d){if(r=rt(r),r<1||r>z)return[];var C=q,D=Vn(r,q);d=We(d),r-=q;for(var H=on(D,d);++C<r;)d(C);return H}function OI(r){return Je(r)?Bt(r,rr):mi(r)?[r]:oi(iy(Tt(r)))}function DI(r){var d=++qA;return Tt(r)+d}var NI=gc(function(r,d){return r+d},0),FI=xd("ceil"),PI=gc(function(r,d){return r/d},1),zI=xd("floor");function HI(r){return r&&r.length?lc(r,li,sd):e}function BI(r,d){return r&&r.length?lc(r,We(d,2),sd):e}function WI(r){return ua(r,li)}function jI(r,d){return ua(r,We(d,2))}function UI(r){return r&&r.length?lc(r,li,ud):e}function VI(r,d){return r&&r.length?lc(r,We(d,2),ud):e}var qI=gc(function(r,d){return r*d},1),GI=xd("round"),YI=gc(function(r,d){return r-d},0);function KI(r){return r&&r.length?Ur(r,li):0}function ZI(r,d){return r&&r.length?Ur(r,We(d,2)):0}return W.after=yL,W.ary=fy,W.assign=oR,W.assignIn=Ty,W.assignInWith=Tc,W.assignWith=sR,W.at=aR,W.before=gy,W.bind=Id,W.bindAll=dI,W.bindKey=my,W.castArray=EL,W.chain=hy,W.chunk=zM,W.compact=HM,W.concat=BM,W.cond=pI,W.conforms=fI,W.constant=Hd,W.countBy=KE,W.create=lR,W.curry=vy,W.curryRight=yy,W.debounce=wy,W.defaults=cR,W.defaultsDeep=uR,W.defer=wL,W.delay=bL,W.difference=WM,W.differenceBy=jM,W.differenceWith=UM,W.drop=VM,W.dropRight=qM,W.dropRightWhile=GM,W.dropWhile=YM,W.fill=KM,W.filter=QE,W.flatMap=eL,W.flatMapDeep=tL,W.flatMapDepth=nL,W.flatten=ay,W.flattenDeep=ZM,W.flattenDepth=QM,W.flip=xL,W.flow=mI,W.flowRight=vI,W.fromPairs=XM,W.functions=vR,W.functionsIn=yR,W.groupBy=iL,W.initial=eE,W.intersection=tE,W.intersectionBy=nE,W.intersectionWith=iE,W.invert=bR,W.invertBy=xR,W.invokeMap=oL,W.iteratee=Bd,W.keyBy=sL,W.keys=Rn,W.keysIn=ai,W.map=_c,W.mapKeys=kR,W.mapValues=$R,W.matches=yI,W.matchesProperty=wI,W.memoize=$c,W.merge=SR,W.mergeWith=My,W.method=bI,W.methodOf=xI,W.mixin=Wd,W.negate=Sc,W.nthArg=kI,W.omit=CR,W.omitBy=AR,W.once=_L,W.orderBy=aL,W.over=$I,W.overArgs=kL,W.overEvery=SI,W.overSome=CI,W.partial=Od,W.partialRight=by,W.partition=lL,W.pick=TR,W.pickBy=Ey,W.property=Fy,W.propertyOf=AI,W.pull=aE,W.pullAll=cy,W.pullAllBy=lE,W.pullAllWith=cE,W.pullAt=uE,W.range=TI,W.rangeRight=MI,W.rearg=$L,W.reject=hL,W.remove=hE,W.rest=SL,W.reverse=Ld,W.sampleSize=pL,W.set=ER,W.setWith=LR,W.shuffle=fL,W.slice=dE,W.sortBy=vL,W.sortedUniq=wE,W.sortedUniqBy=bE,W.split=eI,W.spread=CL,W.tail=xE,W.take=_E,W.takeRight=kE,W.takeRightWhile=$E,W.takeWhile=SE,W.tap=HE,W.throttle=AL,W.thru=xc,W.toArray=Sy,W.toPairs=Ly,W.toPairsIn=Ry,W.toPath=OI,W.toPlainObject=Ay,W.transform=RR,W.unary=TL,W.union=CE,W.unionBy=AE,W.unionWith=TE,W.uniq=ME,W.uniqBy=EE,W.uniqWith=LE,W.unset=IR,W.unzip=Rd,W.unzipWith=uy,W.update=OR,W.updateWith=DR,W.values=ws,W.valuesIn=NR,W.without=RE,W.words=Dy,W.wrap=ML,W.xor=IE,W.xorBy=OE,W.xorWith=DE,W.zip=NE,W.zipObject=FE,W.zipObjectDeep=PE,W.zipWith=zE,W.entries=Ly,W.entriesIn=Ry,W.extend=Ty,W.extendWith=Tc,Wd(W,W),W.add=NI,W.attempt=Ny,W.camelCase=HR,W.capitalize=Iy,W.ceil=FI,W.clamp=FR,W.clone=LL,W.cloneDeep=IL,W.cloneDeepWith=OL,W.cloneWith=RL,W.conformsTo=DL,W.deburr=Oy,W.defaultTo=gI,W.divide=PI,W.endsWith=BR,W.eq=zi,W.escape=WR,W.escapeRegExp=jR,W.every=ZE,W.find=XE,W.findIndex=oy,W.findKey=hR,W.findLast=JE,W.findLastIndex=sy,W.findLastKey=dR,W.floor=zI,W.forEach=dy,W.forEachRight=py,W.forIn=pR,W.forInRight=fR,W.forOwn=gR,W.forOwnRight=mR,W.get=Fd,W.gt=NL,W.gte=FL,W.has=wR,W.hasIn=Pd,W.head=ly,W.identity=li,W.includes=rL,W.indexOf=JM,W.inRange=PR,W.invoke=_R,W.isArguments=Lo,W.isArray=Je,W.isArrayBuffer=PL,W.isArrayLike=si,W.isArrayLikeObject=un,W.isBoolean=zL,W.isBuffer=Zr,W.isDate=HL,W.isElement=BL,W.isEmpty=WL,W.isEqual=jL,W.isEqualWith=UL,W.isError=Dd,W.isFinite=VL,W.isFunction=br,W.isInteger=xy,W.isLength=Cc,W.isMap=_y,W.isMatch=qL,W.isMatchWith=GL,W.isNaN=YL,W.isNative=KL,W.isNil=QL,W.isNull=ZL,W.isNumber=ky,W.isObject=en,W.isObjectLike=sn,W.isPlainObject=Aa,W.isRegExp=Nd,W.isSafeInteger=XL,W.isSet=$y,W.isString=Ac,W.isSymbol=mi,W.isTypedArray=ys,W.isUndefined=JL,W.isWeakMap=eR,W.isWeakSet=tR,W.join=rE,W.kebabCase=UR,W.last=Mi,W.lastIndexOf=oE,W.lowerCase=VR,W.lowerFirst=qR,W.lt=nR,W.lte=iR,W.max=HI,W.maxBy=BI,W.mean=WI,W.meanBy=jI,W.min=UI,W.minBy=VI,W.stubArray=Ud,W.stubFalse=Vd,W.stubObject=EI,W.stubString=LI,W.stubTrue=RI,W.multiply=qI,W.nth=sE,W.noConflict=_I,W.noop=jd,W.now=kc,W.pad=GR,W.padEnd=YR,W.padStart=KR,W.parseInt=ZR,W.random=zR,W.reduce=cL,W.reduceRight=uL,W.repeat=QR,W.replace=XR,W.result=MR,W.round=GI,W.runInContext=ne,W.sample=dL,W.size=gL,W.snakeCase=JR,W.some=mL,W.sortedIndex=pE,W.sortedIndexBy=fE,W.sortedIndexOf=gE,W.sortedLastIndex=mE,W.sortedLastIndexBy=vE,W.sortedLastIndexOf=yE,W.startCase=tI,W.startsWith=nI,W.subtract=YI,W.sum=KI,W.sumBy=ZI,W.template=iI,W.times=II,W.toFinite=xr,W.toInteger=rt,W.toLength=Cy,W.toLower=rI,W.toNumber=Ei,W.toSafeInteger=rR,W.toString=Tt,W.toUpper=oI,W.trim=sI,W.trimEnd=aI,W.trimStart=lI,W.truncate=cI,W.unescape=uI,W.uniqueId=DI,W.upperCase=hI,W.upperFirst=zd,W.each=dy,W.eachRight=py,W.first=ly,Wd(W,function(){var r={};return nr(W,function(d,C){Rt.call(W.prototype,C)||(r[C]=d)}),r}(),{chain:!1}),W.VERSION=i,Yn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){W[r].placeholder=W}),Yn(["drop","take"],function(r,d){yt.prototype[r]=function(C){C=C===e?1:Mn(rt(C),0);var D=this.__filtered__&&!d?new yt(this):this.clone();return D.__filtered__?D.__takeCount__=Vn(C,D.__takeCount__):D.__views__.push({size:Vn(C,q),type:r+(D.__dir__<0?"Right":"")}),D},yt.prototype[r+"Right"]=function(C){return this.reverse()[r](C).reverse()}}),Yn(["filter","map","takeWhile"],function(r,d){var C=d+1,D=C==S||C==O;yt.prototype[r]=function(H){var U=this.clone();return U.__iteratees__.push({iteratee:We(H,3),type:C}),U.__filtered__=U.__filtered__||D,U}}),Yn(["head","last"],function(r,d){var C="take"+(d?"Right":"");yt.prototype[r]=function(){return this[C](1).value()[0]}}),Yn(["initial","tail"],function(r,d){var C="drop"+(d?"":"Right");yt.prototype[r]=function(){return this.__filtered__?new yt(this):this[C](1)}}),yt.prototype.compact=function(){return this.filter(li)},yt.prototype.find=function(r){return this.filter(r).head()},yt.prototype.findLast=function(r){return this.reverse().find(r)},yt.prototype.invokeMap=ut(function(r,d){return typeof r=="function"?new yt(this):this.map(function(C){return xa(C,r,d)})}),yt.prototype.reject=function(r){return this.filter(Sc(We(r)))},yt.prototype.slice=function(r,d){r=rt(r);var C=this;return C.__filtered__&&(r>0||d<0)?new yt(C):(r<0?C=C.takeRight(-r):r&&(C=C.drop(r)),d!==e&&(d=rt(d),C=d<0?C.dropRight(-d):C.take(d-r)),C)},yt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},yt.prototype.toArray=function(){return this.take(q)},nr(yt.prototype,function(r,d){var C=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),H=W[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);H&&(W.prototype[d]=function(){var Z=this.__wrapped__,ee=D?[1]:arguments,re=Z instanceof yt,pe=ee[0],ge=re||Je(Z),ve=function(gt){var wt=H.apply(W,jn([gt],ee));return D&&Ae?wt[0]:wt};ge&&C&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Ae=this.__chain__,Ie=!!this.__actions__.length,Ue=U&&!Ae,st=re&&!Ie;if(!U&&ge){Z=st?Z:new yt(this);var Ve=r.apply(Z,ee);return Ve.__actions__.push({func:xc,args:[ve],thisArg:e}),new Ci(Ve,Ae)}return Ue&&st?r.apply(this,ee):(Ve=this.thru(ve),Ue?D?Ve.value()[0]:Ve.value():Ve)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(r){var d=fi[r],C=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",D=/^(?:pop|shift)$/.test(r);W.prototype[r]=function(){var H=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Je(U)?U:[],H)}return this[C](function(Z){return d.apply(Je(Z)?Z:[],H)})}}),nr(yt.prototype,function(r,d){var C=W[d];if(C){var D=C.name+"";Rt.call(ps,D)||(ps[D]=[]),ps[D].push({name:d,func:C})}}),ps[fc(e,y).name]=[{name:"wrapper",func:e}],yt.prototype.clone=uT,yt.prototype.reverse=hT,yt.prototype.value=dT,W.prototype.at=BE,W.prototype.chain=WE,W.prototype.commit=jE,W.prototype.next=UE,W.prototype.plant=qE,W.prototype.reverse=GE,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=YE,W.prototype.first=W.prototype.head,fa&&(W.prototype[fa]=VE),W},Pt=Ft();Ln?((Ln.exports=Pt)._=Pt,ki._=Pt):Cn._=Pt}).call(V1)}(Ya,Ya.exports)),Ya.exports}var Tf=q1();In("K",Ea(Tf)).debounce(function(){this.rebuildDisplayText()},300);var Mf={exports:{}},Ef;function G1(){return Ef||(Ef=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Mf)),Mf.exports}G1();const Y1=!0,wn="u-",K1="uplot",Z1=wn+"hz",Q1=wn+"vt",X1=wn+"title",J1=wn+"wrap",ex=wn+"under",tx=wn+"over",nx=wn+"axis",oo=wn+"off",ix=wn+"select",rx=wn+"cursor-x",ox=wn+"cursor-y",sx=wn+"cursor-pt",ax=wn+"legend",lx=wn+"live",cx=wn+"inline",ux=wn+"series",hx=wn+"marker",Lf=wn+"label",dx=wn+"value",Ms="width",Es="height",Ls="top",Rf="bottom",Po="left",iu="right",ru="#000",If=ru+"0",Of="mousemove",Df="mousedown",ou="mouseup",Nf="mouseenter",Ff="mouseleave",Pf="dblclick",px="resize",fx="scroll",zf="change",Ka="dppxchange",su="--",zo=typeof window<"u",au=zo?document:null,Ho=zo?window:null,gx=zo?navigator:null;let kt,Za;function lu(){let n=devicePixelRatio;kt!=n&&(kt=n,Za&&hu(zf,Za,lu),Za=matchMedia(`(min-resolution: ${kt-.001}dppx) and (max-resolution: ${kt+.001}dppx)`),so(zf,Za,lu),Ho.dispatchEvent(new CustomEvent(Ka)))}function ui(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function cu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Wt(n,t,e){n.style[t]=e+"px"}function Ii(n,t,e,i){let m=au.createElement(n);return t!=null&&ui(m,t),e!=null&&e.insertBefore(m,i),m}function wi(n,t){return Ii("div",n,t)}const Hf=new WeakMap;function Ui(n,t,e,i,m){let p="translate("+t+"px,"+e+"px)",v=Hf.get(n);p!=v&&(n.style.transform=p,Hf.set(n,p),t<0||e<0||t>i||e>m?ui(n,oo):cu(n,oo))}const Bf=new WeakMap;function Wf(n,t,e){let i=t+e,m=Bf.get(n);i!=m&&(Bf.set(n,i),n.style.background=t,n.style.borderColor=e)}const jf=new WeakMap;function Uf(n,t,e,i){let m=t+""+e,p=jf.get(n);m!=p&&(jf.set(n,m),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=i?-t/2+"px":0,n.style.marginTop=i?-e/2+"px":0)}const uu={passive:!0},mx={...uu,capture:!0};function so(n,t,e,i){t.addEventListener(n,e,i?mx:uu)}function hu(n,t,e,i){t.removeEventListener(n,e,uu)}zo&&lu();function Oi(n,t,e,i){let m;e=e||0,i=i||t.length-1;let p=i<=2147483647;for(;i-e>1;)m=p?e+i>>1:di((e+i)/2),t[m]<n?e=m:i=m;return n-t[e]<=t[i]-n?e:i}function Bo(n,t,e,i){for(let m=i==1?t:e;m>=t&&m<=e;m+=i)if(n[m]!=null)return m;return-1}function vx(n,t,e,i){let m=mt,p=-mt;if(i==1)m=n[t],p=n[e];else if(i==-1)m=n[e],p=n[t];else for(let v=t;v<=e;v++){let w=n[v];w!=null&&(w<m&&(m=w),w>p&&(p=w))}return[m,p]}function yx(n,t,e){let i=mt,m=-mt;for(let p=t;p<=e;p++){let v=n[p];v!=null&&v>0&&(v<i&&(i=v),v>m&&(m=v))}return[i,m]}function Qa(n,t,e,i){let m=Gf(n),p=Gf(t);n==t&&(m==-1?(n*=e,t/=e):(n/=e,t*=e));let v=e==10?or:Yf,w=m==1?di:bi,h=p==1?bi:di,f=w(v(bn(n))),s=h(v(bn(t))),l=Wo(e,f),a=Wo(e,s);return e==10&&(f<0&&(l=Ot(l,-f)),s<0&&(a=Ot(a,-s))),i||e==2?(n=l*m,t=a*p):(n=eg(n,l),t=el(t,a)),[n,t]}function du(n,t,e,i){let m=Qa(n,t,e,i);return n==0&&(m[0]=0),t==0&&(m[1]=0),m}const pu=.1,Vf={mode:3,pad:pu},Rs={pad:0,soft:null,mode:0},wx={min:Rs,max:Rs};function Xa(n,t,e,i){return tl(e)?qf(n,t,e):(Rs.pad=e,Rs.soft=i?0:null,Rs.mode=i?3:0,qf(n,t,wx))}function _t(n,t){return n??t}function bx(n,t,e){for(t=_t(t,0),e=_t(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function qf(n,t,e){let i=e.min,m=e.max,p=_t(i.pad,0),v=_t(m.pad,0),w=_t(i.hard,-mt),h=_t(m.hard,mt),f=_t(i.soft,mt),s=_t(m.soft,-mt),l=_t(i.mode,0),a=_t(m.mode,0),c=t-n,o=or(c),u=Fn(bn(n),bn(t)),g=or(u),y=bn(g-o);(c<1e-24||y>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&f!=mt&&(p=0),a==2&&s!=-mt&&(v=0)));let b=c||u||1e3,L=or(b),A=Wo(10,di(L)),k=b*(c==0?n==0?.1:1:p),x=Ot(eg(n-k,A/10),24),T=n>=f&&(l==1||l==3&&x<=f||l==2&&x>=f)?f:mt,E=Fn(w,x<T&&n>=T?T:xi(T,x)),I=b*(c==0?t==0?.1:1:v),M=Ot(el(t+I,A/10),24),N=t<=s&&(a==1||a==3&&M>=s||a==2&&M<=s)?s:-mt,$=xi(h,M>N&&t<=N?N:Fn(N,M));return E==$&&E==0&&($=100),[E,$]}const xx=new Intl.NumberFormat(zo?gx.language:"en-US"),fu=n=>xx.format(n),hi=Math,Ja=hi.PI,bn=hi.abs,di=hi.floor,xn=hi.round,bi=hi.ceil,xi=hi.min,Fn=hi.max,Wo=hi.pow,Gf=hi.sign,or=hi.log10,Yf=hi.log2,_x=(n,t=1)=>hi.sinh(n)*t,gu=(n,t=1)=>hi.asinh(n/t),mt=1/0;function Kf(n){return(or((n^n>>31)-(n>>31))|0)+1}function mu(n,t,e){return xi(Fn(n,t),e)}function vt(n){return typeof n=="function"?n:()=>n}const kx=()=>{},Zf=n=>n,Qf=(n,t)=>t,$x=n=>null,Xf=n=>!0,Jf=(n,t)=>n==t,Sx=/\.\d*?(?=9{6,}|0{6,})/gm,ao=n=>{if(ng(n)||Mr.has(n))return n;const t=`${n}`,e=t.match(Sx);if(e==null)return n;let i=e[0].length-1;if(t.indexOf("e-")!=-1){let[m,p]=t.split("e");return+`${ao(m)}e${p}`}return Ot(n,i)};function lo(n,t){return ao(Ot(ao(n/t))*t)}function el(n,t){return ao(bi(ao(n/t))*t)}function eg(n,t){return ao(di(ao(n/t))*t)}function Ot(n,t=0){if(ng(n))return n;let e=10**t,i=n*e*(1+Number.EPSILON);return xn(i)/e}const Mr=new Map;function tg(n){return((""+n).split(".")[1]||"").length}function Is(n,t,e,i){let m=[],p=i.map(tg);for(let v=t;v<e;v++){let w=bn(v),h=Ot(Wo(n,v),w);for(let f=0;f<i.length;f++){let s=n==10?+`${i[f]}e${v}`:i[f]*h,l=(v>=0?0:w)+(v>=p[f]?0:p[f]),a=n==10?s:Ot(s,l);m.push(a),Mr.set(a,l)}}return m}const Os={},vu=[],jo=[null,null],Er=Array.isArray,ng=Number.isInteger,Cx=n=>n===void 0;function ig(n){return typeof n=="string"}function tl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function Ax(n){return n!=null&&typeof n=="object"}const Tx=Object.getPrototypeOf(Uint8Array),rg="__proto__";function Uo(n,t=tl){let e;if(Er(n)){let i=n.find(m=>m!=null);if(Er(i)||t(i)){e=Array(n.length);for(let m=0;m<n.length;m++)e[m]=Uo(n[m],t)}else e=n.slice()}else if(n instanceof Tx)e=n.slice();else if(t(n)){e={};for(let i in n)i!=rg&&(e[i]=Uo(n[i],t))}else e=n;return e}function fn(n){let t=arguments;for(let e=1;e<t.length;e++){let i=t[e];for(let m in i)m!=rg&&(tl(n[m])?fn(n[m],Uo(i[m])):n[m]=Uo(i[m]))}return n}const Mx=0,Ex=1,Lx=2;function Rx(n,t,e){for(let i=0,m,p=-1;i<t.length;i++){let v=t[i];if(v>p){for(m=v-1;m>=0&&n[m]==null;)n[m--]=null;for(m=v+1;m<e&&n[m]==null;)n[p=m++]=null}}}function Ix(n,t){if(Nx(n)){let v=n[0].slice();for(let w=1;w<n.length;w++)v.push(...n[w].slice(1));return Fx(v[0])||(v=Dx(v)),v}let e=new Set;for(let v=0;v<n.length;v++){let w=n[v][0],h=w.length;for(let f=0;f<h;f++)e.add(w[f])}let i=[Array.from(e).sort((v,w)=>v-w)],m=i[0].length,p=new Map;for(let v=0;v<m;v++)p.set(i[0][v],v);for(let v=0;v<n.length;v++){let w=n[v],h=w[0];for(let f=1;f<w.length;f++){let s=w[f],l=Array(m).fill(void 0),a=t?t[v][f]:Ex,c=[];for(let o=0;o<s.length;o++){let u=s[o],g=p.get(h[o]);u===null?a!=Mx&&(l[g]=u,a==Lx&&c.push(g)):l[g]=u}Rx(l,c,m),i.push(l)}}return i}const Ox=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Dx(n){let t=n[0],e=t.length,i=Array(e);for(let p=0;p<i.length;p++)i[p]=p;i.sort((p,v)=>t[p]-t[v]);let m=[];for(let p=0;p<n.length;p++){let v=n[p],w=Array(e);for(let h=0;h<e;h++)w[h]=v[i[h]];m.push(w)}return m}function Nx(n){let t=n[0][0],e=t.length;for(let i=1;i<n.length;i++){let m=n[i][0];if(m.length!=e)return!1;if(m!=t){for(let p=0;p<e;p++)if(m[p]!=t[p])return!1}}return!0}function Fx(n,t=100){const e=n.length;if(e<=1)return!0;let i=0,m=e-1;for(;i<=m&&n[i]==null;)i++;for(;m>=i&&n[m]==null;)m--;if(m<=i)return!0;const p=Fn(1,di((m-i+1)/t));for(let v=n[i],w=i+p;w<=m;w+=p){const h=n[w];if(h!=null){if(h<=v)return!1;v=h}}return!0}const og=["January","February","March","April","May","June","July","August","September","October","November","December"],sg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function ag(n){return n.slice(0,3)}const Px=sg.map(ag),zx=og.map(ag),Hx={MMMM:og,MMM:zx,WWWW:sg,WWW:Px};function Ds(n){return(n<10?"0":"")+n}function Bx(n){return(n<10?"00":n<100?"0":"")+n}const Wx={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Ds(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Ds(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Ds(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Ds(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Ds(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>Bx(n.getMilliseconds())};function yu(n,t){t=t||Hx;let e=[],i=/\{([a-z]+)\}|[^{]+/gi,m;for(;m=i.exec(n);)e.push(m[0][0]=="{"?Wx[m[1]]:m[0]);return p=>{let v="";for(let w=0;w<e.length;w++)v+=typeof e[w]=="string"?e[w]:e[w](p,t);return v}}const jx=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Ux(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==jx?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const lg=n=>n%1==0,nl=[1,2,2.5,5],Vx=Is(10,-32,0,nl),cg=Is(10,0,32,nl),qx=cg.filter(lg),co=Vx.concat(cg),wu=`
1409
+ `,ug="{YYYY}",hg=wu+ug,dg="{M}/{D}",Ns=wu+dg,il=Ns+"/{YY}",pg="{aa}",Gx="{h}:{mm}",Vo=Gx+pg,fg=wu+Vo,gg=":{ss}",St=null;function mg(n){let t=n*1e3,e=t*60,i=e*60,m=i*24,p=m*30,v=m*365,w=(n==1?Is(10,0,3,nl).filter(lg):Is(10,-3,0,nl)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,i,i*2,i*3,i*4,i*6,i*8,i*12,m,m*2,m*3,m*4,m*5,m*6,m*7,m*8,m*9,m*10,m*15,p,p*2,p*3,p*4,p*6,v,v*2,v*5,v*10,v*25,v*50,v*100]);const h=[[v,ug,St,St,St,St,St,St,1],[m*28,"{MMM}",hg,St,St,St,St,St,1],[m,dg,hg,St,St,St,St,St,1],[i,"{h}"+pg,il,St,Ns,St,St,St,1],[e,Vo,il,St,Ns,St,St,St,1],[t,gg,il+" "+Vo,St,Ns+" "+Vo,St,fg,St,1],[n,gg+".{fff}",il+" "+Vo,St,Ns+" "+Vo,St,fg,St,1]];function f(s){return(l,a,c,o,u,g)=>{let y=[],b=u>=v,L=u>=p&&u<v,A=s(c),k=Ot(A*n,3),x=bu(A.getFullYear(),b?0:A.getMonth(),L||b?1:A.getDate()),T=Ot(x*n,3);if(L||b){let E=L?u/p:0,I=b?u/v:0,M=k==T?k:Ot(bu(x.getFullYear()+I,x.getMonth()+E,1)*n,3),N=new Date(xn(M/n)),$=N.getFullYear(),_=N.getMonth();for(let S=0;M<=o;S++){let R=bu($+I*S,_+E*S,1),O=R-s(Ot(R*n,3));M=Ot((+R+O)*n,3),M<=o&&y.push(M)}}else{let E=u>=m?m:u,I=di(c)-di(k),M=T+I+el(k-T,E);y.push(M);let N=s(M),$=N.getHours()+N.getMinutes()/e+N.getSeconds()/i,_=u/i,S=l.axes[a]._space,R=g/S;for(;M=Ot(M+u,n==1?0:3),!(M>o);)if(_>1){let O=di(Ot($+_,6))%24,F=s(M).getHours()-O;F>1&&(F=-1),M-=F*i,$=($+_)%24;let z=y[y.length-1];Ot((M-z)/u,3)*R>=.7&&y.push(M)}else y.push(M)}return y}}return[w,h,f]}const[Yx,Kx,Zx]=mg(1),[Qx,Xx,Jx]=mg(.001);Is(2,-53,53,[1]);function vg(n,t){return n.map(e=>e.map((i,m)=>m==0||m==8||i==null?i:t(m==1||e[8]==0?i:e[1]+i)))}function yg(n,t){return(e,i,m,p,v)=>{let w=t.find(o=>v>=o[0])||t[t.length-1],h,f,s,l,a,c;return i.map(o=>{let u=n(o),g=u.getFullYear(),y=u.getMonth(),b=u.getDate(),L=u.getHours(),A=u.getMinutes(),k=u.getSeconds(),x=g!=h&&w[2]||y!=f&&w[3]||b!=s&&w[4]||L!=l&&w[5]||A!=a&&w[6]||k!=c&&w[7]||w[1];return h=g,f=y,s=b,l=L,a=A,c=k,x(u)})}}function e_(n,t){let e=yu(t);return(i,m,p,v,w)=>m.map(h=>e(n(h)))}function bu(n,t,e){return new Date(n,t,e)}function wg(n,t){return t(n)}const t_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function bg(n,t){return(e,i,m,p)=>p==null?su:t(n(i))}function n_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function i_(n,t){return n.series[t].fill(n,t)}const r_={show:!0,live:!0,isolate:!1,mount:kx,markers:{show:!0,width:2,stroke:n_,fill:i_,dash:"solid"},idx:null,idxs:null,values:[]};function o_(n,t){let e=n.cursor.points,i=wi(),m=e.size(n,t);Wt(i,Ms,m),Wt(i,Es,m);let p=m/-2;Wt(i,"marginLeft",p),Wt(i,"marginTop",p);let v=e.width(n,t,m);return v&&Wt(i,"borderWidth",v),i}function s_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function a_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function l_(n,t){return n.series[t].points.size}const xu=[0,0];function c_(n,t,e){return xu[0]=t,xu[1]=e,xu}function rl(n,t,e,i=!0){return m=>{m.button==0&&(!i||m.target==t)&&e(m)}}function _u(n,t,e,i=!0){return m=>{(!i||m.target==t)&&e(m)}}const u_={show:!0,x:!0,y:!0,lock:!1,move:c_,points:{one:!1,show:o_,size:l_,width:0,stroke:a_,fill:s_},bind:{mousedown:rl,mouseup:rl,click:rl,dblclick:rl,mousemove:_u,mouseleave:_u,mouseenter:_u},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,i,m)=>i-m,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},xg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ku=fn({},xg,{filter:Qf}),_g=fn({},ku,{size:10}),kg=fn({},xg,{show:!1}),$u='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',$g="bold "+$u,Sg=1.5,Cg={show:!0,scale:"x",stroke:ru,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:$g,side:2,grid:ku,ticks:_g,border:kg,font:$u,lineGap:Sg,rotate:0},h_="Value",d_="Time",Ag={show:!0,scale:"x",auto:!1,sorted:1,min:mt,max:-mt,idxs:[]};function p_(n,t,e,i,m){return t.map(p=>p==null?"":fu(p))}function f_(n,t,e,i,m,p,v){let w=[],h=Mr.get(m)||0;e=v?e:Ot(el(e,m),h);for(let f=e;f<=i;f=Ot(f+m,h))w.push(Object.is(f,-0)?0:f);return w}function Su(n,t,e,i,m,p,v){const w=[],h=n.scales[n.axes[t].scale].log,f=h==10?or:Yf,s=di(f(e));m=Wo(h,s),h==10&&(m=co[Oi(m,co)]);let l=e,a=m*h;h==10&&(a=co[Oi(a,co)]);do w.push(l),l=l+m,h==10&&!Mr.has(l)&&(l=Ot(l,Mr.get(m))),l>=a&&(m=l,a=m*h,h==10&&(a=co[Oi(a,co)]));while(l<=i);return w}function g_(n,t,e,i,m,p,v){let w=n.scales[n.axes[t].scale].asinh,h=i>w?Su(n,t,Fn(w,e),i,m):[w],f=i>=0&&e<=0?[0]:[];return(e<-w?Su(n,t,Fn(w,-i),-e,m):[w]).reverse().map(s=>-s).concat(f,h)}const Tg=/./,m_=/[12357]/,v_=/[125]/,Mg=/1/,Cu=(n,t,e,i)=>n.map((m,p)=>t==4&&m==0||p%i==0&&e.test(m.toExponential()[m<0?1:0])?m:null);function y_(n,t,e,i,m){let p=n.axes[e],v=p.scale,w=n.scales[v],h=n.valToPos,f=p._space,s=h(10,v),l=h(9,v)-s>=f?Tg:h(7,v)-s>=f?m_:h(5,v)-s>=f?v_:Mg;if(l==Mg){let a=bn(h(1,v)-s);if(a<f)return Cu(t.slice().reverse(),w.distr,l,bi(f/a)).reverse()}return Cu(t,w.distr,l,1)}function w_(n,t,e,i,m){let p=n.axes[e],v=p.scale,w=p._space,h=n.valToPos,f=bn(h(1,v)-h(2,v));return f<w?Cu(t.slice().reverse(),3,Tg,bi(w/f)).reverse():t}function b_(n,t,e,i){return i==null?su:t==null?"":fu(t)}const Eg={show:!0,scale:"y",stroke:ru,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:$g,side:3,grid:ku,ticks:_g,border:kg,font:$u,lineGap:Sg,rotate:0};function x_(n,t){let e=3+(n||1)*2;return Ot(e*t,3)}function __(n,t){let{scale:e,idxs:i}=n.series[0],m=n._data[0],p=n.valToPos(m[i[0]],e,!0),v=n.valToPos(m[i[1]],e,!0),w=bn(v-p),h=n.series[t],f=w/(h.points.space*kt);return i[1]-i[0]<=f}const Lg={scale:null,auto:!0,sorted:0,min:mt,max:-mt},Rg=(n,t,e,i,m)=>m,Ig={show:!0,auto:!0,sorted:0,gaps:Rg,alpha:1,facets:[fn({},Lg,{scale:"x"}),fn({},Lg,{scale:"y"})]},Og={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Rg,alpha:1,points:{show:__,filter:null},values:null,min:mt,max:-mt,idxs:[],path:null,clip:null};function k_(n,t,e,i,m){return e/10}const Dg={time:Y1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},$_=fn({},Dg,{time:!1,ori:1}),Ng={};function Fg(n,t){let e=Ng[n];return e||(e={key:n,plots:[],sub(i){e.plots.push(i)},unsub(i){e.plots=e.plots.filter(m=>m!=i)},pub(i,m,p,v,w,h,f){for(let s=0;s<e.plots.length;s++)e.plots[s]!=m&&e.plots[s].pub(i,m,p,v,w,h,f)}},n!=null&&(Ng[n]=e)),e}const qo=1,Au=2;function uo(n,t,e){const i=n.mode,m=n.series[t],p=i==2?n._data[t]:n._data,v=n.scales,w=n.bbox;let h=p[0],f=i==2?p[1]:p[t],s=i==2?v[m.facets[0].scale]:v[n.series[0].scale],l=i==2?v[m.facets[1].scale]:v[m.scale],a=w.left,c=w.top,o=w.width,u=w.height,g=n.valToPosH,y=n.valToPosV;return s.ori==0?e(m,h,f,s,l,g,y,a,c,o,u,sl,Go,ll,Hg,Wg):e(m,h,f,s,l,y,g,c,a,u,o,al,Yo,Eu,Bg,jg)}function Tu(n,t){let e=0,i=0,m=_t(n.bands,vu);for(let p=0;p<m.length;p++){let v=m[p];v.series[0]==t?e=v.dir:v.series[1]==t&&(v.dir==1?i|=1:i|=2)}return[e,i==1?-1:i==2?1:i==3?2:0]}function S_(n,t,e,i,m){let p=n.mode,v=n.series[t],w=p==2?v.facets[1].scale:v.scale,h=n.scales[w];return m==-1?h.min:m==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function sr(n,t,e,i,m,p){return uo(n,t,(v,w,h,f,s,l,a,c,o,u,g)=>{let y=v.pxRound;const b=f.dir*(f.ori==0?1:-1),L=f.ori==0?Go:Yo;let A,k;b==1?(A=e,k=i):(A=i,k=e);let x=y(l(w[A],f,u,c)),T=y(a(h[A],s,g,o)),E=y(l(w[k],f,u,c)),I=y(a(p==1?s.max:s.min,s,g,o)),M=new Path2D(m);return L(M,E,I),L(M,x,I),L(M,x,T),M})}function ol(n,t,e,i,m,p){let v=null;if(n.length>0){v=new Path2D;const w=t==0?ll:Eu;let h=e;for(let l=0;l<n.length;l++){let a=n[l];if(a[1]>a[0]){let c=a[0]-h;c>0&&w(v,h,i,c,i+p),h=a[1]}}let f=e+m-h,s=10;f>0&&w(v,h,i-s/2,f,i+p+s)}return v}function C_(n,t,e){let i=n[n.length-1];i&&i[0]==t?i[1]=e:n.push([t,e])}function Mu(n,t,e,i,m,p,v){let w=[],h=n.length;for(let f=m==1?e:i;f>=e&&f<=i;f+=m)if(t[f]===null){let s=f,l=f;if(m==1)for(;++f<=i&&t[f]===null;)l=f;else for(;--f>=e&&t[f]===null;)l=f;let a=p(n[s]),c=l==s?a:p(n[l]),o=s-m;a=v<=0&&o>=0&&o<h?p(n[o]):a;let u=l+m;c=v>=0&&u>=0&&u<h?p(n[u]):c,c>=a&&w.push([a,c])}return w}function Pg(n){return n==0?Zf:n==1?xn:t=>lo(t,n)}function zg(n){let t=n==0?sl:al,e=n==0?(m,p,v,w,h,f)=>{m.arcTo(p,v,w,h,f)}:(m,p,v,w,h,f)=>{m.arcTo(v,p,h,w,f)},i=n==0?(m,p,v,w,h)=>{m.rect(p,v,w,h)}:(m,p,v,w,h)=>{m.rect(v,p,h,w)};return(m,p,v,w,h,f=0,s=0)=>{f==0&&s==0?i(m,p,v,w,h):(f=xi(f,w/2,h/2),s=xi(s,w/2,h/2),t(m,p+f,v),e(m,p+w,v,p+w,v+h,f),e(m,p+w,v+h,p,v+h,s),e(m,p,v+h,p,v,s),e(m,p,v,p+w,v,f),m.closePath())}}const sl=(n,t,e)=>{n.moveTo(t,e)},al=(n,t,e)=>{n.moveTo(e,t)},Go=(n,t,e)=>{n.lineTo(t,e)},Yo=(n,t,e)=>{n.lineTo(e,t)},ll=zg(0),Eu=zg(1),Hg=(n,t,e,i,m,p)=>{n.arc(t,e,i,m,p)},Bg=(n,t,e,i,m,p)=>{n.arc(e,t,i,m,p)},Wg=(n,t,e,i,m,p,v)=>{n.bezierCurveTo(t,e,i,m,p,v)},jg=(n,t,e,i,m,p,v)=>{n.bezierCurveTo(e,t,m,i,v,p)};function Ug(n){return(t,e,i,m,p)=>uo(t,e,(v,w,h,f,s,l,a,c,o,u,g)=>{let{pxRound:y,points:b}=v,L,A;f.ori==0?(L=sl,A=Hg):(L=al,A=Bg);const k=Ot(b.width*kt,3);let x=(b.size-b.width)/2*kt,T=Ot(x*2,3),E=new Path2D,I=new Path2D,{left:M,top:N,width:$,height:_}=t.bbox;ll(I,M-T,N-T,$+T*2,_+T*2);const S=R=>{if(h[R]!=null){let O=y(l(w[R],f,u,c)),F=y(a(h[R],s,g,o));L(E,O+x,F),A(E,O,F,x,0,Ja*2)}};if(p)p.forEach(S);else for(let R=i;R<=m;R++)S(R);return{stroke:k>0?E:null,fill:E,clip:I,flags:qo|Au}})}function Vg(n){return(t,e,i,m,p,v)=>{i!=m&&(p!=i&&v!=i&&n(t,e,i),p!=m&&v!=m&&n(t,e,m),n(t,e,v))}}const A_=Vg(Go),T_=Vg(Yo);function qg(n){const t=_t(n==null?void 0:n.alignGaps,0);return(e,i,m,p)=>uo(e,i,(v,w,h,f,s,l,a,c,o,u,g)=>{let y=v.pxRound,b=J=>y(l(J,f,u,c)),L=J=>y(a(J,s,g,o)),A,k;f.ori==0?(A=Go,k=A_):(A=Yo,k=T_);const x=f.dir*(f.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:qo},E=T.stroke;let I=mt,M=-mt,N,$,_,S=b(w[x==1?m:p]),R=Bo(h,m,p,1*x),O=Bo(h,m,p,-1*x),F=b(w[R]),z=b(w[O]),j=!1;for(let J=x==1?m:p;J>=m&&J<=p;J+=x){let G=b(w[J]),Q=h[J];G==S?Q!=null?($=L(Q),I==mt&&(A(E,G,$),N=$),I=xi($,I),M=Fn($,M)):Q===null&&(j=!0):(I!=mt&&(k(E,S,I,M,N,$),_=S),Q!=null?($=L(Q),A(E,G,$),I=M=N=$):(I=mt,M=-mt,Q===null&&(j=!0)),S=G)}I!=mt&&I!=M&&_!=S&&k(E,S,I,M,N,$);let[V,q]=Tu(e,i);if(v.fill!=null||V!=0){let J=T.fill=new Path2D(E),G=v.fillTo(e,i,v.min,v.max,V),Q=L(G);A(J,z,Q),A(J,F,Q)}if(!v.spanGaps){let J=[];j&&J.push(...Mu(w,h,m,p,x,b,t)),T.gaps=J=v.gaps(e,i,m,p,J),T.clip=ol(J,f.ori,c,o,u,g)}return q!=0&&(T.band=q==2?[sr(e,i,m,p,E,-1),sr(e,i,m,p,E,1)]:sr(e,i,m,p,E,q)),T})}function M_(n){const t=_t(n.align,1),e=_t(n.ascDesc,!1),i=_t(n.alignGaps,0),m=_t(n.extend,!1);return(p,v,w,h)=>uo(p,v,(f,s,l,a,c,o,u,g,y,b,L)=>{let A=f.pxRound,{left:k,width:x}=p.bbox,T=V=>A(o(V,a,b,g)),E=V=>A(u(V,c,L,y)),I=a.ori==0?Go:Yo;const M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:qo},N=M.stroke,$=a.dir*(a.ori==0?1:-1);w=Bo(l,w,h,1),h=Bo(l,w,h,-1);let _=E(l[$==1?w:h]),S=T(s[$==1?w:h]),R=S,O=S;m&&t==-1&&(O=k,I(N,O,_)),I(N,S,_);for(let V=$==1?w:h;V>=w&&V<=h;V+=$){let q=l[V];if(q==null)continue;let J=T(s[V]),G=E(q);t==1?I(N,J,_):I(N,R,G),I(N,J,G),_=G,R=J}let F=R;m&&t==1&&(F=k+x,I(N,F,_));let[z,j]=Tu(p,v);if(f.fill!=null||z!=0){let V=M.fill=new Path2D(N),q=f.fillTo(p,v,f.min,f.max,z),J=E(q);I(V,F,J),I(V,O,J)}if(!f.spanGaps){let V=[];V.push(...Mu(s,l,w,h,$,T,i));let q=f.width*kt/2,J=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Q=>{Q[0]+=J,Q[1]+=G}),M.gaps=V=f.gaps(p,v,w,h,V),M.clip=ol(V,a.ori,g,y,b,L)}return j!=0&&(M.band=j==2?[sr(p,v,w,h,N,-1),sr(p,v,w,h,N,1)]:sr(p,v,w,h,N,j)),M})}function Gg(n,t,e,i,m,p,v=mt){if(n.length>1){let w=null;for(let h=0,f=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let s=bn(n[h]-n[w]);s<f&&(f=s,v=bn(e(n[h],i,m,p)-e(n[w],i,m,p)))}w=h}}return v}function E_(n){n=n||Os;const t=_t(n.size,[.6,mt,1]),e=n.align||0,i=n.gap||0;let m=n.radius;m=m==null?[0,0]:typeof m=="number"?[m,0]:m;const p=vt(m),v=1-t[0],w=_t(t[1],mt),h=_t(t[2],1),f=_t(n.disp,Os),s=_t(n.each,c=>{}),{fill:l,stroke:a}=f;return(c,o,u,g)=>uo(c,o,(y,b,L,A,k,x,T,E,I,M,N)=>{let $=y.pxRound,_=e,S=i*kt,R=w*kt,O=h*kt,F,z;A.ori==0?[F,z]=p(c,o):[z,F]=p(c,o);const j=A.dir*(A.ori==0?1:-1);let V=A.ori==0?ll:Eu,q=A.ori==0?s:(je,ce,Te,Le,qe,Ye,dt)=>{s(je,ce,Te,qe,Le,dt,Ye)},J=_t(c.bands,vu).find(je=>je.series[0]==o),G=J!=null?J.dir:0,Q=y.fillTo(c,o,y.min,y.max,G),ie=$(T(Q,k,N,I)),X,ae,me,ye=M,fe=$(y.width*kt),$e=!1,ot=null,zt=null,ht=null,ft=null;l!=null&&(fe==0||a!=null)&&($e=!0,ot=l.values(c,o,u,g),zt=new Map,new Set(ot).forEach(je=>{je!=null&&zt.set(je,new Path2D)}),fe>0&&(ht=a.values(c,o,u,g),ft=new Map,new Set(ht).forEach(je=>{je!=null&&ft.set(je,new Path2D)})));let{x0:cn,size:Dt}=f;if(cn!=null&&Dt!=null){_=1,b=cn.values(c,o,u,g),cn.unit==2&&(b=b.map(ce=>c.posToVal(E+ce*M,A.key,!0)));let je=Dt.values(c,o,u,g);Dt.unit==2?ae=je[0]*M:ae=x(je[0],A,M,E)-x(0,A,M,E),ye=Gg(b,L,x,A,M,E,ye),me=ye-ae+S}else ye=Gg(b,L,x,A,M,E,ye),me=ye*v+S,ae=ye-me;me<1&&(me=0),fe>=ae/2&&(fe=0),me<5&&($=Zf);let Qt=me>0,Yi=ye-me-(Qt?fe:0);ae=$(mu(Yi,O,R)),X=(_==0?ae/2:_==j?0:ae)-_*j*((_==0?S/2:0)+(Qt?fe/2:0));const kn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},nn=$e?null:new Path2D;let Fe=null;if(J!=null)Fe=c.data[J.series[1]];else{let{y0:je,y1:ce}=f;je!=null&&ce!=null&&(L=ce.values(c,o,u,g),Fe=je.values(c,o,u,g))}let Be=F*ae,rn=z*ae;for(let je=j==1?u:g;je>=u&&je<=g;je+=j){let ce=L[je];if(ce==null)continue;if(Fe!=null){let ct=Fe[je]??0;if(ce-ct==0)continue;ie=T(ct,k,N,I)}let Te=A.distr!=2||f!=null?b[je]:je,Le=x(Te,A,M,E),qe=T(_t(ce,Q),k,N,I),Ye=$(Le-X),dt=$(Fn(qe,ie)),pt=$(xi(qe,ie)),lt=dt-pt;if(ce!=null){let ct=ce<0?rn:Be,nt=ce<0?Be:rn;$e?(fe>0&&ht[je]!=null&&V(ft.get(ht[je]),Ye,pt+di(fe/2),ae,Fn(0,lt-fe),ct,nt),ot[je]!=null&&V(zt.get(ot[je]),Ye,pt+di(fe/2),ae,Fn(0,lt-fe),ct,nt)):V(nn,Ye,pt+di(fe/2),ae,Fn(0,lt-fe),ct,nt),q(c,o,je,Ye-fe/2,pt,ae+fe,lt)}}return fe>0?kn.stroke=$e?ft:nn:$e||(kn._fill=y.width==0?y._fill:y._stroke??y._fill,kn.width=0),kn.fill=$e?zt:nn,kn})}function L_(n,t){const e=_t(t==null?void 0:t.alignGaps,0);return(i,m,p,v)=>uo(i,m,(w,h,f,s,l,a,c,o,u,g,y)=>{let b=w.pxRound,L=F=>b(a(F,s,g,o)),A=F=>b(c(F,l,y,u)),k,x,T;s.ori==0?(k=sl,T=Go,x=Wg):(k=al,T=Yo,x=jg);const E=s.dir*(s.ori==0?1:-1);p=Bo(f,p,v,1),v=Bo(f,p,v,-1);let I=L(h[E==1?p:v]),M=I,N=[],$=[];for(let F=E==1?p:v;F>=p&&F<=v;F+=E)if(f[F]!=null){let z=h[F],j=L(z);N.push(M=j),$.push(A(f[F]))}const _={stroke:n(N,$,k,T,x,b),fill:null,clip:null,band:null,gaps:null,flags:qo},S=_.stroke;let[R,O]=Tu(i,m);if(w.fill!=null||R!=0){let F=_.fill=new Path2D(S),z=w.fillTo(i,m,w.min,w.max,R),j=A(z);T(F,M,j),T(F,I,j)}if(!w.spanGaps){let F=[];F.push(...Mu(h,f,p,v,E,L,e)),_.gaps=F=w.gaps(i,m,p,v,F),_.clip=ol(F,s.ori,o,u,g,y)}return O!=0&&(_.band=O==2?[sr(i,m,p,v,S,-1),sr(i,m,p,v,S,1)]:sr(i,m,p,v,S,O)),_})}function R_(n){return L_(I_,n)}function I_(n,t,e,i,m,p){const v=n.length;if(v<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),v==2)i(w,n[1],t[1]);else{let h=Array(v),f=Array(v-1),s=Array(v-1),l=Array(v-1);for(let a=0;a<v-1;a++)s[a]=t[a+1]-t[a],l[a]=n[a+1]-n[a],f[a]=s[a]/l[a];h[0]=f[0];for(let a=1;a<v-1;a++)f[a]===0||f[a-1]===0||f[a-1]>0!=f[a]>0?h[a]=0:(h[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/f[a-1]+(l[a]+2*l[a-1])/f[a]),isFinite(h[a])||(h[a]=0));h[v-1]=f[v-2];for(let a=0;a<v-1;a++)m(w,n[a]+l[a]/3,t[a]+h[a]*l[a]/3,n[a+1]-l[a]/3,t[a+1]-h[a+1]*l[a]/3,n[a+1],t[a+1])}return w}const Lu=new Set;function Yg(){for(let n of Lu)n.syncRect(!0)}zo&&(so(px,Ho,Yg),so(fx,Ho,Yg,!0),so(Ka,Ho,()=>{Pn.pxRatio=kt}));const O_=qg(),D_=Ug();function Kg(n,t,e,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((m,p)=>Ru(m,p,t,e))}function N_(n,t){return n.map((e,i)=>i==0?{}:fn({},t,e))}function Ru(n,t,e,i){return fn({},t==0?e:i,n)}function Zg(n,t,e){return t==null?jo:[t,e]}const F_=Zg;function P_(n,t,e){return t==null?jo:Xa(t,e,pu,!0)}function Qg(n,t,e,i){return t==null?jo:Qa(t,e,n.scales[i].log,!1)}const z_=Qg;function Xg(n,t,e,i){return t==null?jo:du(t,e,n.scales[i].log,!1)}const H_=Xg;function B_(n,t,e,i,m){let p=Fn(Kf(n),Kf(t)),v=t-n,w=Oi(m/i*v,e);do{let h=e[w],f=i*h/v;if(f>=m&&p+(h<5?Mr.get(h):0)<=17)return[h,f]}while(++w<e.length);return[0,0]}function Jg(n){let t,e;return n=n.replace(/(\d+)px/,(i,m)=>(t=xn((e=+m)*kt))+"px"),[n,t,e]}function W_(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Ot(t[2]*kt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Pn(n,t,e){const i={mode:_t(n.mode,1)},m=i.mode;function p(P,B){return((B.distr==3?or(P>0?P:B.clamp(i,P,B.min,B.max,B.key)):B.distr==4?gu(P,B.asinh):B.distr==100?B.fwd(P):P)-B._min)/(B._max-B._min)}function v(P,B,Y,K){let te=p(P,B);return K+Y*(B.dir==-1?1-te:te)}function w(P,B,Y,K){let te=p(P,B);return K+Y*(B.dir==-1?te:1-te)}function h(P,B,Y,K){return B.ori==0?v(P,B,Y,K):w(P,B,Y,K)}i.valToPosH=v,i.valToPosV=w;let f=!1;i.status=0;const s=i.root=wi(K1);if(n.id!=null&&(s.id=n.id),ui(s,n.class),n.title){let P=wi(X1,s);P.textContent=n.title}const l=Ii("canvas"),a=i.ctx=l.getContext("2d"),c=wi(J1,s);so("click",c,P=>{P.target===u&&(He!=Hr||Ht!=Br)&&Sn.click(i,P)},!0);const o=i.under=wi(ex,c);c.appendChild(l);const u=i.over=wi(tx,c);n=Uo(n);const g=+_t(n.pxAlign,1),y=Pg(g);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const b=n.ms||.001,L=i.series=m==1?Kg(n.series||[],Ag,Og,!1):N_(n.series||[null],Ig),A=i.axes=Kg(n.axes||[],Cg,Eg,!0),k=i.scales={},x=i.bands=n.bands||[];x.forEach(P=>{P.fill=vt(P.fill||null),P.dir=_t(P.dir,-1)});const T=m==2?L[1].facets[0].scale:L[0].scale,E={axes:Kh,series:Rl},I=(n.drawOrder||["axes","series"]).map(P=>E[P]);function M(P){let B=k[P];if(B==null){let Y=(n.scales||Os)[P]||Os;if(Y.from!=null)M(Y.from),k[P]=fn({},k[Y.from],Y,{key:P});else{B=k[P]=fn({},P==T?Dg:$_,Y),B.key=P;let K=B.time,te=B.range,oe=Er(te);if((P!=T||m==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Vf:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Vf:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&tl(te))){let de=te;te=(we,be,ke)=>be==null?jo:Xa(be,ke,de)}B.range=vt(te||(K?F_:P==T?B.distr==3?z_:B.distr==4?H_:Zg:B.distr==3?Qg:B.distr==4?Xg:P_)),B.auto=vt(oe?!1:B.auto),B.clamp=vt(B.clamp||k_),B._min=B._max=null}}}M("x"),M("y"),m==1&&L.forEach(P=>{M(P.scale)}),A.forEach(P=>{M(P.scale)});for(let P in n.scales)M(P);const N=k[T],$=N.distr;let _,S;N.ori==0?(ui(s,Z1),_=v,S=w):(ui(s,Q1),_=w,S=v);const R={};for(let P in k){let B=k[P];(B.min!=null||B.max!=null)&&(R[P]={min:B.min,max:B.max},B.min=B.max=null)}const O=n.tzDate||(P=>new Date(xn(P/b))),F=n.fmtDate||yu,z=b==1?Zx(O):Jx(O),j=yg(O,vg(b==1?Kx:Xx,F)),V=bg(O,wg(t_,F)),q=[],J=i.legend=fn({},r_,n.legend),G=J.show,Q=J.markers;J.idxs=q,Q.width=vt(Q.width),Q.dash=vt(Q.dash),Q.stroke=vt(Q.stroke),Q.fill=vt(Q.fill);let ie,X,ae,me=[],ye=[],fe,$e=!1,ot={};if(J.live){const P=L[1]?L[1].values:null;$e=P!=null,fe=$e?P(i,1,0):{_:0};for(let B in fe)ot[B]=su}if(G)if(ie=Ii("table",ax,s),ae=Ii("tbody",null,ie),J.mount(i,ie),$e){X=Ii("thead",null,ie,ae);let P=Ii("tr",null,X);Ii("th",null,P);for(var zt in fe)Ii("th",Lf,P).textContent=zt}else ui(ie,cx),J.live&&ui(ie,lx);const ht={show:!0},ft={show:!1};function cn(P,B){if(B==0&&($e||!J.live||m==2))return jo;let Y=[],K=Ii("tr",ux,ae,ae.childNodes[B]);ui(K,P.class),P.show||ui(K,oo);let te=Ii("th",null,K);if(Q.show){let we=wi(hx,te);if(B>0){let be=Q.width(i,B);be&&(we.style.border=be+"px "+Q.dash(i,B)+" "+Q.stroke(i,B)),we.style.background=Q.fill(i,B)}}let oe=wi(Lf,te);oe.textContent=P.label,B>0&&(Q.show||(oe.style.color=P.width>0?Q.stroke(i,B):Q.fill(i,B)),Qt("click",te,we=>{if(ze._lock)return;lr(we);let be=L.indexOf(P);if((we.ctrlKey||we.metaKey)!=J.isolate){let ke=L.some((Ce,Me)=>Me>0&&Me!=be&&Ce.show);L.forEach((Ce,Me)=>{Me>0&&Ln(Me,ke?Me==be?ht:ft:ht,!0,Xt.setSeries)})}else Ln(be,{show:!P.show},!0,Xt.setSeries)},!1),Zi&&Qt(Nf,te,we=>{ze._lock||(lr(we),Ln(L.indexOf(P),dr,!0,Xt.setSeries))},!1));for(var de in fe){let we=Ii("td",dx,K);we.textContent="--",Y.push(we)}return[K,Y]}const Dt=new Map;function Qt(P,B,Y,K=!0){const te=Dt.get(B)||{},oe=ze.bind[P](i,B,Y,K);oe&&(so(P,B,te[P]=oe),Dt.set(B,te))}function Yi(P,B,Y){const K=Dt.get(B)||{};for(let te in K)(P==null||te==P)&&(hu(te,B,K[te]),delete K[te]);P==null&&Dt.delete(B)}let kn=0,nn=0,Fe=0,Be=0,rn=0,je=0,ce=rn,Te=je,Le=Fe,qe=Be,Ye=0,dt=0,pt=0,lt=0;i.bbox={};let ct=!1,nt=!1,jt=!1,Hn=!1,ar=!1,ti=!1;function js(P,B,Y){(Y||P!=i.width||B!=i.height)&&Us(P,B),ur(!1),jt=!0,nt=!0,Pr()}function Us(P,B){i.width=kn=Fe=P,i.height=nn=Be=B,rn=je=0,Uh(),Vh();let Y=i.bbox;Ye=Y.left=lo(rn*kt,.5),dt=Y.top=lo(je*kt,.5),pt=Y.width=lo(Fe*kt,.5),lt=Y.height=lo(Be*kt,.5)}const Cl=3;function Wh(){let P=!1,B=0;for(;!P;){B++;let Y=Dl(B),K=Nl(B);P=B==Cl||Y&&K,P||(Us(i.width,i.height),nt=!0)}}function jh({width:P,height:B}){js(P,B)}i.setSize=jh;function Uh(){let P=!1,B=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:we}=te,be=de%2,ke=te.label!=null?te.labelSize:0,Ce=we+ke;Ce>0&&(be?(Fe-=Ce,de==3?(rn+=Ce,K=!0):Y=!0):(Be-=Ce,de==0?(je+=Ce,P=!0):B=!0))}}),cr[0]=P,cr[1]=Y,cr[2]=B,cr[3]=K,Fe-=Qi[1]+Qi[3],rn+=Qi[3],Be-=Qi[2]+Qi[0],je+=Qi[0]}function Vh(){let P=rn+Fe,B=je+Be,Y=rn,K=je;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return B+=de,B-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}A.forEach((oe,de)=>{if(oe.show&&oe._show){let we=oe.side;oe._pos=te(we,oe._size),oe.label!=null&&(oe._lpos=te(we,oe.labelSize))}})}const ze=i.cursor=fn({},u_,{drag:{y:m==2}},n.cursor);if(ze.dataIdx==null){let P=ze.hover,B=P.skip=new Set(P.skip??[]);B.add(void 0);let Y=P.prox=vt(P.prox),K=P.bias??(P.bias=0);ze.dataIdx=(te,oe,de,we)=>{if(oe==0)return de;let be=de,ke=Y(te,oe,de,we)??mt,Ce=ke>=0&&ke<mt,Me=N.ori==0?Fe:Be,Ke=ze.left,Lt=t[0],it=t[oe];if(B.has(it[de])){be=null;let Ge=null,Qe=null,Re;if(K==0||K==-1)for(Re=de;Ge==null&&Re-- >0;)B.has(it[Re])||(Ge=Re);if(K==0||K==1)for(Re=de;Qe==null&&Re++<it.length;)B.has(it[Re])||(Qe=Re);if(Ge!=null||Qe!=null)if(Ce){let Ct=Ge==null?-1/0:_(Lt[Ge],N,Me,0),Jt=Qe==null?1/0:_(Lt[Qe],N,Me,0),Gt=Ke-Ct,Ft=Jt-Ke;Gt<=Ft?Gt<=ke&&(be=Ge):Ft<=ke&&(be=Qe)}else be=Qe==null?Ge:Ge==null?Qe:de-Ge<=Qe-de?Ge:Qe}else Ce&&bn(Ke-_(Lt[de],N,Me,0))>ke&&(be=null);return be}}const lr=P=>{ze.event=P};ze.idxs=q,ze._lock=!1;let En=ze.points;En.show=vt(En.show),En.size=vt(En.size),En.stroke=vt(En.stroke),En.width=vt(En.width),En.fill=vt(En.fill);const Ki=i.focus=fn({},n.focus||{alpha:.3},ze.focus),Zi=Ki.prox>=0,Lr=Zi&&En.one;let Bn=[],Rr=[],Ir=[];function Al(P,B){let Y=En.show(i,B);if(Y)return ui(Y,sx),ui(Y,P.class),Ui(Y,-10,-10,Fe,Be),u.insertBefore(Y,Bn[B]),Y}function Tl(P,B){if(m==1||B>0){let Y=m==1&&k[P.scale].time,K=P.value;P.value=Y?ig(K)?bg(O,wg(K,F)):K||V:K||b_,P.label=P.label||(Y?d_:h_)}if(Lr||B>0){P.width=P.width==null?1:P.width,P.paths=P.paths||O_||$x,P.fillTo=vt(P.fillTo||S_),P.pxAlign=+_t(P.pxAlign,g),P.pxRound=Pg(P.pxAlign),P.stroke=vt(P.stroke||null),P.fill=vt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=x_(Fn(1,P.width),1),K=P.points=fn({},{size:Y,width:Fn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:D_,_stroke:null,_fill:null},P.points);K.show=vt(K.show),K.filter=vt(K.filter),K.fill=vt(K.fill),K.stroke=vt(K.stroke),K.paths=vt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=cn(P,B);me.splice(B,0,Y[0]),ye.splice(B,0,Y[1]),J.values.push(null)}if(ze.show){q.splice(B,0,null);let Y=null;Lr?B==0&&(Y=Al(P,B)):B>0&&(Y=Al(P,B)),Bn.splice(B,0,Y),Rr.splice(B,0,0),Ir.splice(B,0,0)}on("addSeries",B)}function qh(P,B){B=B??L.length,P=m==1?Ru(P,B,Ag,Og):Ru(P,B,{},Ig),L.splice(B,0,P),Tl(L[B],B)}i.addSeries=qh;function Gh(P){if(L.splice(P,1),G){J.values.splice(P,1),ye.splice(P,1);let B=me.splice(P,1)[0];Yi(null,B.firstChild),B.remove()}ze.show&&(q.splice(P,1),Bn.splice(P,1)[0].remove(),Rr.splice(P,1),Ir.splice(P,1)),on("delSeries",P)}i.delSeries=Gh;const cr=[!1,!1,!1,!1];function Yh(P,B){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?L[1].scale:T,K=k[P.scale]);let te=K.time;P.size=vt(P.size),P.space=vt(P.space),P.rotate=vt(P.rotate),Er(P.incrs)&&P.incrs.forEach(de=>{!Mr.has(de)&&Mr.set(de,tg(de))}),P.incrs=vt(P.incrs||(K.distr==2?qx:te?b==1?Yx:Qx:co)),P.splits=vt(P.splits||(te&&K.distr==1?z:K.distr==3?Su:K.distr==4?g_:f_)),P.stroke=vt(P.stroke),P.grid.stroke=vt(P.grid.stroke),P.ticks.stroke=vt(P.ticks.stroke),P.border.stroke=vt(P.border.stroke);let oe=P.values;P.values=Er(oe)&&!Er(oe[0])?vt(oe):te?Er(oe)?yg(O,vg(oe,F)):ig(oe)?e_(O,oe):oe||j:oe||p_,P.filter=vt(P.filter||(K.distr>=3&&K.log==10?y_:K.distr==3&&K.log==2?w_:Qf)),P.font=Jg(P.font),P.labelFont=Jg(P.labelFont),P._size=P.size(i,null,B,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(cr[B]=!0,P._el=wi(nx,c))}}function Or(P,B,Y,K){let[te,oe,de,we]=Y,be=B%2,ke=0;return be==0&&(we||oe)&&(ke=B==0&&!te||B==2&&!de?xn(Cg.size/3):0),be==1&&(te||de)&&(ke=B==1&&!oe||B==3&&!we?xn(Eg.size/2):0),ke}const Ml=i.padding=(n.padding||[Or,Or,Or,Or]).map(P=>vt(_t(P,Or))),Qi=i._padding=Ml.map((P,B)=>P(i,B,cr,0));let $n,gn=null,mn=null;const Xo=m==1?L[0].idxs:null;let Wn=null,go=!1;function mo(P,B){if(t=P??[],i.data=i._data=t,m==2){$n=0;for(let Y=1;Y<L.length;Y++)$n+=t[Y][0].length}else{t.length==0&&(i.data=i._data=t=[[]]),Wn=t[0],$n=Wn.length;let Y=t;if($==2){Y=t.slice();let K=Y[0]=Array($n);for(let te=0;te<$n;te++)K[te]=te}i._data=t=Y}if(ur(!0),on("setData"),$==2&&(jt=!0),B!==!1){let Y=N;Y.auto(i,go)?Vs():ki(T,Y.min,Y.max),Hn=Hn||ze.left>=0,ti=!0,Pr()}}i.setData=mo;function Vs(){go=!0;let P,B;m==1&&($n>0?(gn=Xo[0]=0,mn=Xo[1]=$n-1,P=t[0][gn],B=t[0][mn],$==2?(P=gn,B=mn):P==B&&($==3?[P,B]=Qa(P,P,N.log,!1):$==4?[P,B]=du(P,P,N.log,!1):N.time?B=P+xn(86400/b):[P,B]=Xa(P,B,pu,!0))):(gn=Xo[0]=P=null,mn=Xo[1]=B=null)),ki(T,P,B)}let Jo,Dr,es,ts,ns,qs,Gs,Ys,Ks,_i;function Zs(P,B,Y,K,te,oe){P??(P=If),Y??(Y=vu),K??(K="butt"),te??(te=If),oe??(oe="round"),P!=Jo&&(a.strokeStyle=Jo=P),te!=Dr&&(a.fillStyle=Dr=te),B!=es&&(a.lineWidth=es=B),oe!=ns&&(a.lineJoin=ns=oe),K!=qs&&(a.lineCap=qs=K),Y!=ts&&a.setLineDash(ts=Y)}function Qs(P,B,Y,K){B!=Dr&&(a.fillStyle=Dr=B),P!=Gs&&(a.font=Gs=P),Y!=Ys&&(a.textAlign=Ys=Y),K!=Ks&&(a.textBaseline=Ks=K)}function vo(P,B,Y,K,te=0){if(K.length>0&&P.auto(i,go)&&(B==null||B.min==null)){let oe=_t(gn,0),de=_t(mn,K.length-1),we=Y.min==null?P.distr==3?yx(K,oe,de):vx(K,oe,de,te):[Y.min,Y.max];P.min=xi(P.min,Y.min=we[0]),P.max=Fn(P.max,Y.max=we[1])}}const El={min:null,max:null};function Ll(){for(let K in k){let te=k[K];R[K]==null&&(te.min==null||R[T]!=null&&te.auto(i,go))&&(R[K]=El)}for(let K in k){let te=k[K];R[K]==null&&te.from!=null&&R[te.from]!=null&&(R[K]=El)}R[T]!=null&&ur(!0);let P={};for(let K in R){let te=R[K];if(te!=null){let oe=P[K]=Uo(k[K],Ax);if(te.min!=null)fn(oe,te);else if(K!=T||m==2)if($n==0&&oe.from==null){let de=oe.range(i,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=mt,oe.max=-mt}}if($n>0){L.forEach((K,te)=>{if(m==1){let oe=K.scale,de=R[oe];if(de==null)return;let we=P[oe];if(te==0){let be=we.range(i,we.min,we.max,oe);we.min=be[0],we.max=be[1],gn=Oi(we.min,t[0]),mn=Oi(we.max,t[0]),mn-gn>1&&(t[0][gn]<we.min&&gn++,t[0][mn]>we.max&&mn--),K.min=Wn[gn],K.max=Wn[mn]}else K.show&&K.auto&&vo(we,de,K,t[te],K.sorted);K.idxs[0]=gn,K.idxs[1]=mn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,we=oe.scale,be=de.scale,[ke,Ce]=t[te],Me=P[we],Ke=P[be];Me!=null&&vo(Me,R[we],oe,ke,oe.sorted),Ke!=null&&vo(Ke,R[be],de,Ce,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=R[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==mt?null:te.min,te.max==-mt?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(i,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let B={},Y=!1;for(let K in P){let te=P[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?or(oe.min):de==4?gu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?or(oe.max):de==4?gu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,B[K]=Y=!0}}if(Y){L.forEach((K,te)=>{m==2?te>0&&B.y&&(K._paths=null):B[K.scale]&&(K._paths=null)});for(let K in B)jt=!0,on("setScale",K);ze.show&&ze.left>=0&&(Hn=ti=!0)}for(let K in R)R[K]=null}function is(P){let B=mu(gn-1,0,$n-1),Y=mu(mn+1,0,$n-1);for(;P[B]==null&&B>0;)B--;for(;P[Y]==null&&Y<$n-1;)Y++;return[B,Y]}function Rl(){$n>0&&(L.forEach((P,B)=>{if(B>0&&P.show&&(Il(B,!1),Il(B,!0),P._paths==null)){_i!=P.alpha&&(a.globalAlpha=_i=P.alpha);let Y=m==2?[0,t[B][0].length-1]:is(t[B]);P._paths=P.paths(i,B,Y[0],Y[1]),_i!=1&&(a.globalAlpha=_i=1)}}),L.forEach((P,B)=>{if(B>0&&P.show){_i!=P.alpha&&(a.globalAlpha=_i=P.alpha),P._paths!=null&&Xs(B,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,B,gn,mn,Y),te=P.points.filter(i,B,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,B,gn,mn,te),Xs(B,!0))}_i!=1&&(a.globalAlpha=_i=1),on("drawSeries",B)}}))}function Il(P,B){let Y=B?L[P].points:L[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function Xs(P,B){let Y=B?L[P].points:L[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:we=Y._stroke,_fill:be=Y._fill,_width:ke=Y.width}=Y._paths;ke=Ot(ke*kt,3);let Ce=null,Me=ke%2/2;B&&be==null&&(be=ke>0?"#fff":we);let Ke=Y.pxAlign==1&&Me>0;if(Ke&&a.translate(Me,Me),!B){let Lt=Ye-ke/2,it=dt-ke/2,Ge=pt+ke,Qe=lt+ke;Ce=new Path2D,Ce.rect(Lt,it,Ge,Qe)}B?Js(we,ke,Y.dash,Y.cap,be,K,te,de,oe):Ol(P,we,ke,Y.dash,Y.cap,be,K,te,de,Ce,oe),Ke&&a.translate(-Me,-Me)}function Ol(P,B,Y,K,te,oe,de,we,be,ke,Ce){let Me=!1;be!=0&&x.forEach((Ke,Lt)=>{if(Ke.series[0]==P){let it=L[Ke.series[1]],Ge=t[Ke.series[1]],Qe=(it._paths||Os).band;Er(Qe)&&(Qe=Ke.dir==1?Qe[0]:Qe[1]);let Re,Ct=null;it.show&&Qe&&bx(Ge,gn,mn)?(Ct=Ke.fill(i,Lt)||oe,Re=it._paths.clip):Qe=null,Js(B,Y,K,te,Ct,de,we,be,ke,Ce,Re,Qe),Me=!0}}),Me||Js(B,Y,K,te,oe,de,we,be,ke,Ce)}const rs=qo|Au;function Js(P,B,Y,K,te,oe,de,we,be,ke,Ce,Me){Zs(P,B,Y,K,te),(be||ke||Me)&&(a.save(),be&&a.clip(be),ke&&a.clip(ke)),Me?(we&rs)==rs?(a.clip(Me),Ce&&a.clip(Ce),Nr(te,de),yo(P,oe,B)):we&Au?(Nr(te,de),a.clip(Me),yo(P,oe,B)):we&qo&&(a.save(),a.clip(Me),Ce&&a.clip(Ce),Nr(te,de),a.restore(),yo(P,oe,B)):(Nr(te,de),yo(P,oe,B)),(be||ke||Me)&&a.restore()}function yo(P,B,Y){Y>0&&(B instanceof Map?B.forEach((K,te)=>{a.strokeStyle=Jo=te,a.stroke(K)}):B!=null&&P&&a.stroke(B))}function Nr(P,B){B instanceof Map?B.forEach((Y,K)=>{a.fillStyle=Dr=K,a.fill(Y)}):B!=null&&P&&a.fill(B)}function ea(P,B,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(i,P,B,Y,K),we=te._incrs=te.incrs(i,P,B,Y,K,de);oe=B_(B,Y,we,K,de)}return te._found=oe}function Xi(P,B,Y,K,te,oe,de,we,be,ke){let Ce=de%2/2;g==1&&a.translate(Ce,Ce),Zs(we,de,be,ke,we),a.beginPath();let Me,Ke,Lt,it,Ge=te+(K==0||K==3?-oe:oe);Y==0?(Ke=te,it=Ge):(Me=te,Lt=Ge);for(let Qe=0;Qe<P.length;Qe++)B[Qe]!=null&&(Y==0?Me=Lt=P[Qe]:Ke=it=P[Qe],a.moveTo(Me,Ke),a.lineTo(Lt,it));a.stroke(),g==1&&a.translate(-Ce,-Ce)}function Dl(P){let B=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(B=!1,Y._show=!1,ur(!1));return}else Y._show||(B=!1,Y._show=!0,ur(!1));let oe=Y.side,de=oe%2,{min:we,max:be}=te,[ke,Ce]=ea(K,we,be,de==0?Fe:Be);if(Ce==0)return;let Me=te.distr==2,Ke=Y._splits=Y.splits(i,K,we,be,ke,Ce,Me),Lt=te.distr==2?Ke.map(Re=>Wn[Re]):Ke,it=te.distr==2?Wn[Ke[1]]-Wn[Ke[0]]:ke,Ge=Y._values=Y.values(i,Y.filter(i,Lt,K,Ce,it),K,Ce,it);Y._rotate=oe==2?Y.rotate(i,Ge,K,Ce):0;let Qe=Y._size;Y._size=bi(Y.size(i,Ge,K,P)),Qe!=null&&Y._size!=Qe&&(B=!1)}),B}function Nl(P){let B=!0;return Ml.forEach((Y,K)=>{let te=Y(i,K,cr,P);te!=Qi[K]&&(B=!1),Qi[K]=te}),B}function Kh(){for(let P=0;P<A.length;P++){let B=A[P];if(!B.show||!B._show)continue;let Y=B.side,K=Y%2,te,oe,de=B.stroke(i,P),we=Y==0||Y==3?-1:1;if(B.label){let An=B.labelGap*we,Kn=xn((B._lpos+An)*kt);Qs(B.labelFont[0],de,"center",Y==2?Ls:Rf),a.save(),K==1?(te=oe=0,a.translate(Kn,xn(dt+lt/2)),a.rotate((Y==3?-Ja:Ja)/2)):(te=xn(Ye+pt/2),oe=Kn),a.fillText(B.label,te,oe),a.restore()}let[be,ke]=B._found;if(ke==0)continue;let Ce=k[B.scale],Me=K==0?pt:lt,Ke=K==0?Ye:dt,Lt=xn(B.gap*kt),it=B._splits,Ge=Ce.distr==2?it.map(An=>Wn[An]):it,Qe=Ce.distr==2?Wn[it[1]]-Wn[it[0]]:be,Re=B.ticks,Ct=B.border,Jt=Re.show?xn(Re.size*kt):0,Gt=B._rotate*-Ja/180,Ft=y(B._pos*kt),Pt=(Jt+Lt)*we,ne=Ft+Pt;oe=K==0?ne:0,te=K==1?ne:0;let le=B.font[0],se=B.align==1?Po:B.align==2?iu:Gt>0?Po:Gt<0?iu:K==0?"center":Y==3?iu:Po,Se=Gt||K==1?"middle":Y==2?Ls:Rf;Qs(le,de,se,Se);let Ne=B.font[1]*B.lineGap,Ze=it.map(An=>y(h(An,Ce,Me,Ke))),At=B._values;for(let An=0;An<At.length;An++){let Kn=At[An];if(Kn!=null){K==0?te=Ze[An]:oe=Ze[An],Kn=""+Kn;let Tn=Kn.indexOf(`
1410
+ `)==-1?[Kn]:Kn.split(/\n/gm);for(let fi=0;fi<Tn.length;fi++){let ri=Tn[fi];Gt?(a.save(),a.translate(te,oe+fi*Ne),a.rotate(Gt),a.fillText(ri,0,0),a.restore()):a.fillText(ri,te,oe+fi*Ne)}}}Re.show&&Xi(Ze,Re.filter(i,Ge,P,ke,Qe),K,Y,Ft,Jt,Ot(Re.width*kt,3),Re.stroke(i,P),Re.dash,Re.cap);let Xe=B.grid;Xe.show&&Xi(Ze,Xe.filter(i,Ge,P,ke,Qe),K,K==0?2:1,K==0?dt:Ye,K==0?lt:pt,Ot(Xe.width*kt,3),Xe.stroke(i,P),Xe.dash,Xe.cap),Ct.show&&Xi([Ft],[1],K==0?1:0,K==0?1:2,K==1?dt:Ye,K==1?lt:pt,Ot(Ct.width*kt,3),Ct.stroke(i,P),Ct.dash,Ct.cap)}on("drawAxes")}function ur(P){L.forEach((B,Y)=>{Y>0&&(B._paths=null,P&&(m==1?(B.min=null,B.max=null):B.facets.forEach(K=>{K.min=null,K.max=null})))})}let wo=!1,os=!1,Fr=[];function Zh(){os=!1;for(let P=0;P<Fr.length;P++)on(...Fr[P]);Fr.length=0}function Pr(){wo||(Ox(ta),wo=!0)}function Qh(P,B=!1){wo=!0,os=B,P(i),ta(),B&&Fr.length>0&&queueMicrotask(Zh)}i.batch=Qh;function ta(){if(ct&&(Ll(),ct=!1),jt&&(Wh(),jt=!1),nt){if(Wt(o,Po,rn),Wt(o,Ls,je),Wt(o,Ms,Fe),Wt(o,Es,Be),Wt(u,Po,rn),Wt(u,Ls,je),Wt(u,Ms,Fe),Wt(u,Es,Be),Wt(c,Ms,kn),Wt(c,Es,nn),l.width=xn(kn*kt),l.height=xn(nn*kt),A.forEach(({_el:P,_show:B,_size:Y,_pos:K,side:te})=>{if(P!=null)if(B){let oe=te===3||te===0?Y:0,de=te%2==1;Wt(P,de?"left":"top",K-oe),Wt(P,de?"width":"height",Y),Wt(P,de?"top":"left",de?je:rn),Wt(P,de?"height":"width",de?Be:Fe),cu(P,oo)}else ui(P,oo)}),Jo=Dr=es=ns=qs=Gs=Ys=Ks=ts=null,_i=1,xo(!0),rn!=ce||je!=Te||Fe!=Le||Be!=qe){ur(!1);let P=Fe/Le,B=Be/qe;if(ze.show&&!Hn&&ze.left>=0){ze.left*=P,ze.top*=B,zr&&Ui(zr,xn(ze.left),0,Fe,Be),Ji&&Ui(Ji,0,xn(ze.top),Fe,Be);for(let Y=0;Y<Bn.length;Y++){let K=Bn[Y];K!=null&&(Rr[Y]*=P,Ir[Y]*=B,Ui(K,bi(Rr[Y]),bi(Ir[Y]),Fe,Be))}}if(Nt.show&&!ar&&Nt.left>=0&&Nt.width>0){Nt.left*=P,Nt.width*=P,Nt.top*=B,Nt.height*=B;for(let Y in aa)Wt(hr,Y,Nt[Y])}ce=rn,Te=je,Le=Fe,qe=Be}on("setSize"),nt=!1}kn>0&&nn>0&&(a.clearRect(0,0,l.width,l.height),on("drawClear"),I.forEach(P=>P()),on("draw")),Nt.show&&ar&&(ss(Nt),ar=!1),ze.show&&Hn&&(jn(null,!0,!1),Hn=!1),J.show&&J.live&&ti&&(bo(),ti=!1),f||(f=!0,i.status=1,on("ready")),go=!1,wo=!1}i.redraw=(P,B)=>{jt=B||!1,P!==!1?ki(T,N.min,N.max):Pr()};function na(P,B){let Y=k[P];if(Y.from==null){if($n==0){let K=Y.range(i,B.min,B.max,P);B.min=K[0],B.max=K[1]}if(B.min>B.max){let K=B.min;B.min=B.max,B.max=K}if($n>1&&B.min!=null&&B.max!=null&&B.max-B.min<1e-16)return;P==T&&Y.distr==2&&$n>0&&(B.min=Oi(B.min,t[0]),B.max=Oi(B.max,t[0]),B.min==B.max&&B.max++),R[P]=B,ct=!0,Pr()}}i.setScale=na;let ia,ra,zr,Ji,Fl,Pl,Hr,Br,zl,It,He,Ht,er=!1;const Sn=ze.drag;let vn=Sn.x,yn=Sn.y;ze.show&&(ze.x&&(ia=wi(rx,u)),ze.y&&(ra=wi(ox,u)),N.ori==0?(zr=ia,Ji=ra):(zr=ra,Ji=ia),He=ze.left,Ht=ze.top);const Nt=i.select=fn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),hr=Nt.show?wi(ix,Nt.over?u:o):null;function ss(P,B){if(Nt.show){for(let Y in P)Nt[Y]=P[Y],Y in aa&&Wt(hr,Y,P[Y]);B!==!1&&on("setSelect")}}i.setSelect=ss;function Cn(P,B){let Y=L[P],K=G?me[P]:null;if(Y.show)K&&cu(K,oo);else{K&&ui(K,oo);let te=Lr?Bn[0]:Bn[P];Ui(te,-10,-10,Fe,Be)}}function ki(P,B,Y){na(P,{min:B,max:Y})}function Ln(P,B,Y,K){B.focus!=null&&Wl(P),B.show!=null&&L.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=B.show,Cn(oe,B.show),m==2?(ki(te.facets[0].scale,null,null),ki(te.facets[1].scale,null,null)):ki(te.scale,null,null),Pr())}),Y!==!1&&on("setSeries",P,B),K&&Fi("setSeries",i,P,B)}i.setSeries=Ln;function Hl(P,B){fn(x[P],B)}function oa(P,B){P.fill=vt(P.fill||null),P.dir=_t(P.dir,-1),B=B??x.length,x.splice(B,0,P)}function ni(P){P==null?x.length=0:x.splice(P,1)}i.addBand=oa,i.setBand=Hl,i.delBand=ni;function Bl(P,B){L[P].alpha=B,ze.show&&Bn[P]&&(Bn[P].style.opacity=B),G&&me[P]&&(me[P].style.opacity=B)}let $i,Ni,tr;const dr={focus:!0};function Wl(P){if(P!=tr){let B=P==null,Y=Ki.alpha!=1;L.forEach((K,te)=>{if(m==1||te>0){let oe=B||te==0||te==P;K._focus=B?null:oe,Y&&Bl(te,oe?1:Ki.alpha)}}),tr=P,Y&&Pr()}}G&&Zi&&Qt(Ff,ie,P=>{ze._lock||(lr(P),tr!=null&&Ln(null,dr,!0,Xt.setSeries))});function qt(P,B,Y){let K=k[B];Y&&(P=P/kt-(K.ori==1?je:rn));let te=Fe;K.ori==1&&(te=Be,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,we=P/te,be=oe+(de-oe)*we,ke=K.distr;return ke==3?Wo(10,be):ke==4?_x(be,K.asinh):ke==100?K.bwd(be):be}function Xh(P,B){let Y=qt(P,T,B);return Oi(Y,t[0],gn,mn)}i.valToIdx=P=>Oi(P,t[0]),i.posToIdx=Xh,i.posToVal=qt,i.valToPos=(P,B,Y)=>k[B].ori==0?v(P,k[B],Y?pt:Fe,Y?Ye:0):w(P,k[B],Y?lt:Be,Y?dt:0),i.setCursor=(P,B,Y)=>{He=P.left,Ht=P.top,jn(null,B,Y)};function Yn(P,B){Wt(hr,Po,Nt.left=P),Wt(hr,Ms,Nt.width=B)}function jl(P,B){Wt(hr,Ls,Nt.top=P),Wt(hr,Es,Nt.height=B)}let Wr=N.ori==0?Yn:jl,ii=N.ori==1?Yn:jl;function as(){if(G&&J.live)for(let P=m==2?1:0;P<L.length;P++){if(P==0&&$e)continue;let B=J.values[P],Y=0;for(let K in B)ye[P][Y++].firstChild.nodeValue=B[K]}}function bo(P,B){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):Cx(P.idx)||q.fill(P.idx),J.idx=q[0]),G&&J.live){for(let Y=0;Y<L.length;Y++)(Y>0||m==1&&!$e)&&Bt(Y,q[Y]);as()}ti=!1,B!==!1&&on("setLegend")}i.setLegend=bo;function Bt(P,B){let Y=L[P],K=P==0&&$==2?Wn:t[P],te;$e?te=Y.values(i,P,B)??ot:(te=Y.value(i,B==null?null:K[B],P,B),te=te==null?ot:{_:te}),J.values[P]=te}function jn(P,B,Y){zl=He,It=Ht,[He,Ht]=ze.move(i,He,Ht),ze.left=He,ze.top=Ht,ze.show&&(zr&&Ui(zr,xn(He),0,Fe,Be),Ji&&Ui(Ji,0,xn(Ht),Fe,Be));let K,te=gn>mn;$i=mt,Ni=null;let oe=N.ori==0?Fe:Be,de=N.ori==1?Fe:Be;if(He<0||$n==0||te){K=ze.idx=null;for(let we=0;we<L.length;we++){let be=Bn[we];be!=null&&Ui(be,-10,-10,Fe,Be)}Zi&&Ln(null,dr,!0,P==null&&Xt.setSeries),J.live&&(q.fill(K),ti=!0)}else{let we,be,ke;m==1&&(we=N.ori==0?He:Ht,be=qt(we,T),K=ze.idx=Oi(be,t[0],gn,mn),ke=_(t[0][K],N,oe,0));let Ce=-10,Me=-10,Ke=0,Lt=0,it=!0,Ge="",Qe="";for(let Re=m==2?1:0;Re<L.length;Re++){let Ct=L[Re],Jt=q[Re],Gt=Jt==null?null:m==1?t[Re][Jt]:t[Re][1][Jt],Ft=ze.dataIdx(i,Re,K,be),Pt=Ft==null?null:m==1?t[Re][Ft]:t[Re][1][Ft];ti=ti||Pt!=Gt||Ft!=Jt,q[Re]=Ft;let ne=Ft==K?ke:_(m==1?t[0][Ft]:t[Re][0][Ft],N,oe,0);if(Re>0&&Ct.show){let le=Pt==null?-10:S(Pt,m==1?k[Ct.scale]:k[Ct.facets[1].scale],de,0);if(Zi&&Pt!=null){let se=N.ori==1?He:Ht,Se=bn(Ki.dist(i,Re,Ft,le,se));if(Se<$i){let Ne=Ki.bias;if(Ne!=0){let Ze=qt(se,Ct.scale),At=Pt>=0?1:-1,Xe=Ze>=0?1:-1;Xe==At&&(Xe==1?Ne==1?Pt>=Ze:Pt<=Ze:Ne==1?Pt<=Ze:Pt>=Ze)&&($i=Se,Ni=Re)}else $i=Se,Ni=Re}}if(ti||Lr){let se,Se;N.ori==0?(se=ne,Se=le):(se=le,Se=ne);let Ne,Ze,At,Xe,An,Kn,Tn=!0,fi=En.bbox;if(fi!=null){Tn=!1;let ri=fi(i,Re);At=ri.left,Xe=ri.top,Ne=ri.width,Ze=ri.height}else At=se,Xe=Se,Ne=Ze=En.size(i,Re);if(Kn=En.fill(i,Re),An=En.stroke(i,Re),Lr)Re==Ni&&$i<=Ki.prox&&(Ce=At,Me=Xe,Ke=Ne,Lt=Ze,it=Tn,Ge=Kn,Qe=An);else{let ri=Bn[Re];ri!=null&&(Rr[Re]=At,Ir[Re]=Xe,Uf(ri,Ne,Ze,Tn),Wf(ri,Kn,An),Ui(ri,bi(At),bi(Xe),Fe,Be))}}}}if(Lr){let Re=Ki.prox,Ct=tr==null?$i<=Re:$i>Re||Ni!=tr;if(ti||Ct){let Jt=Bn[0];Rr[0]=Ce,Ir[0]=Me,Uf(Jt,Ke,Lt,it),Wf(Jt,Ge,Qe),Ui(Jt,bi(Ce),bi(Me),Fe,Be)}}}if(Nt.show&&er)if(P!=null){let[we,be]=Xt.scales,[ke,Ce]=Xt.match,[Me,Ke]=P.cursor.sync.scales,Lt=P.cursor.drag;if(vn=Lt._x,yn=Lt._y,vn||yn){let{left:it,top:Ge,width:Qe,height:Re}=P.select,Ct=P.scales[Me].ori,Jt=P.posToVal,Gt,Ft,Pt,ne,le,se=we!=null&&ke(we,Me),Se=be!=null&&Ce(be,Ke);se&&vn?(Ct==0?(Gt=it,Ft=Qe):(Gt=Ge,Ft=Re),Pt=k[we],ne=_(Jt(Gt,Me),Pt,oe,0),le=_(Jt(Gt+Ft,Me),Pt,oe,0),Wr(xi(ne,le),bn(le-ne))):Wr(0,oe),Se&&yn?(Ct==1?(Gt=it,Ft=Qe):(Gt=Ge,Ft=Re),Pt=k[be],ne=S(Jt(Gt,Ke),Pt,de,0),le=S(Jt(Gt+Ft,Ke),Pt,de,0),ii(xi(ne,le),bn(le-ne))):ii(0,de)}else cs()}else{let we=bn(zl-Fl),be=bn(It-Pl);if(N.ori==1){let Ke=we;we=be,be=Ke}vn=Sn.x&&we>=Sn.dist,yn=Sn.y&&be>=Sn.dist;let ke=Sn.uni;ke!=null?vn&&yn&&(vn=we>=ke,yn=be>=ke,!vn&&!yn&&(be>we?yn=!0:vn=!0)):Sn.x&&Sn.y&&(vn||yn)&&(vn=yn=!0);let Ce,Me;vn&&(N.ori==0?(Ce=Hr,Me=He):(Ce=Br,Me=Ht),Wr(xi(Ce,Me),bn(Me-Ce)),yn||ii(0,de)),yn&&(N.ori==1?(Ce=Hr,Me=He):(Ce=Br,Me=Ht),ii(xi(Ce,Me),bn(Me-Ce)),vn||Wr(0,oe)),!vn&&!yn&&(Wr(0,0),ii(0,0))}if(Sn._x=vn,Sn._y=yn,P==null){if(Y){if(Un!=null){let[we,be]=Xt.scales;Xt.values[0]=we!=null?qt(N.ori==0?He:Ht,we):null,Xt.values[1]=be!=null?qt(N.ori==1?He:Ht,be):null}Fi(Of,i,He,Ht,Fe,Be,K)}if(Zi){let we=Y&&Xt.setSeries,be=Ki.prox;tr==null?$i<=be&&Ln(Ni,dr,!0,we):$i>be?Ln(null,dr,!0,we):Ni!=tr&&Ln(Ni,dr,!0,we)}}ti&&(J.idx=K,bo()),B!==!1&&on("setCursor")}let Si=null;Object.defineProperty(i,"rect",{get(){return Si==null&&xo(!1),Si}});function xo(P=!1){P?Si=null:(Si=u.getBoundingClientRect(),on("syncRect",Si))}function ls(P,B,Y,K,te,oe,de){ze._lock||er&&P!=null&&P.movementX==0&&P.movementY==0||(sa(P,B,Y,K,te,oe,de,!1,P!=null),P!=null?jn(null,!0,!0):jn(B,!0,!1))}function sa(P,B,Y,K,te,oe,de,we,be){if(Si==null&&xo(!1),lr(P),P!=null)Y=P.clientX-Si.left,K=P.clientY-Si.top;else{if(Y<0||K<0){He=-10,Ht=-10;return}let[ke,Ce]=Xt.scales,Me=B.cursor.sync,[Ke,Lt]=Me.values,[it,Ge]=Me.scales,[Qe,Re]=Xt.match,Ct=B.axes[0].side%2==1,Jt=N.ori==0?Fe:Be,Gt=N.ori==1?Fe:Be,Ft=Ct?oe:te,Pt=Ct?te:oe,ne=Ct?K:Y,le=Ct?Y:K;if(it!=null?Y=Qe(ke,it)?h(Ke,k[ke],Jt,0):-10:Y=Jt*(ne/Ft),Ge!=null?K=Re(Ce,Ge)?h(Lt,k[Ce],Gt,0):-10:K=Gt*(le/Pt),N.ori==1){let se=Y;Y=K,K=se}}be&&((Y<=1||Y>=Fe-1)&&(Y=lo(Y,Fe)),(K<=1||K>=Be-1)&&(K=lo(K,Be))),we?(Fl=Y,Pl=K,[Hr,Br]=ze.move(i,Y,K)):(He=Y,Ht=K)}const aa={width:0,height:0,left:0,top:0};function cs(){ss(aa,!1)}let la,_o,pr,Ul;function ca(P,B,Y,K,te,oe,de){er=!0,vn=yn=Sn._x=Sn._y=!1,sa(P,B,Y,K,te,oe,de,!0,!1),P!=null&&(Qt(ou,au,ua,!1),Fi(Df,i,Hr,Br,Fe,Be,null));let{left:we,top:be,width:ke,height:Ce}=Nt;la=we,_o=be,pr=ke,Ul=Ce,cs()}function ua(P,B,Y,K,te,oe,de){er=Sn._x=Sn._y=!1,sa(P,B,Y,K,te,oe,de,!1,!0);let{left:we,top:be,width:ke,height:Ce}=Nt,Me=ke>0||Ce>0,Ke=la!=we||_o!=be||pr!=ke||Ul!=Ce;if(Me&&Ke&&ss(Nt),Sn.setScale&&Me&&Ke){let Lt=we,it=ke,Ge=be,Qe=Ce;if(N.ori==1&&(Lt=be,it=Ce,Ge=we,Qe=ke),vn&&ki(T,qt(Lt,T),qt(Lt+it,T)),yn)for(let Re in k){let Ct=k[Re];Re!=T&&Ct.from==null&&Ct.min!=mt&&ki(Re,qt(Ge+Qe,Re),qt(Ge,Re))}cs()}else ze.lock&&(ze._lock=!ze._lock,jn(null,!0,!1));P!=null&&(Yi(ou,au),Fi(ou,i,He,Ht,Fe,Be,null))}function ha(P,B,Y,K,te,oe,de){if(ze._lock)return;lr(P);let we=er;if(er){let be=!0,ke=!0,Ce=10,Me,Ke;N.ori==0?(Me=vn,Ke=yn):(Me=yn,Ke=vn),Me&&Ke&&(be=He<=Ce||He>=Fe-Ce,ke=Ht<=Ce||Ht>=Be-Ce),Me&&be&&(He=He<Hr?0:Fe),Ke&&ke&&(Ht=Ht<Br?0:Be),jn(null,!0,!0),er=!1}He=-10,Ht=-10,jn(null,!0,!0),we&&(er=we)}function us(P,B,Y,K,te,oe,de){ze._lock||(lr(P),Vs(),cs(),P!=null&&Fi(Pf,i,He,Ht,Fe,Be,null))}function da(){A.forEach(W_),js(i.width,i.height,!0)}so(Ka,Ho,da);const jr={};jr.mousedown=ca,jr.mousemove=ls,jr.mouseup=ua,jr.dblclick=us,jr.setSeries=(P,B,Y,K)=>{let te=Xt.match[2];Y=te(i,B,Y),Y!=-1&&Ln(Y,K,!0,!1)},ze.show&&(Qt(Df,u,ca),Qt(Of,u,ls),Qt(Nf,u,P=>{lr(P),xo(!1)}),Qt(Ff,u,ha),Qt(Pf,u,us),Lu.add(i),i.syncRect=xo);const Ur=i.hooks=n.hooks||{};function on(P,B,Y){os?Fr.push([P,B,Y]):P in Ur&&Ur[P].forEach(K=>{K.call(null,i,B,Y)})}(n.plugins||[]).forEach(P=>{for(let B in P.hooks)Ur[B]=(Ur[B]||[]).concat(P.hooks[B])});const Vl=(P,B,Y)=>Y,Xt=fn({key:null,setSeries:!1,filters:{pub:Xf,sub:Xf},scales:[T,L[1]?L[1].scale:null],match:[Jf,Jf,Vl],values:[null,null]},ze.sync);Xt.match.length==2&&Xt.match.push(Vl),ze.sync=Xt;const Un=Xt.key,ko=Fg(Un);function Fi(P,B,Y,K,te,oe,de){Xt.filters.pub(P,B,Y,K,te,oe,de)&&ko.pub(P,B,Y,K,te,oe,de)}ko.sub(i);function ql(P,B,Y,K,te,oe,de){Xt.filters.sub(P,B,Y,K,te,oe,de)&&jr[P](null,B,Y,K,te,oe,de)}i.pub=ql;function Gl(){ko.unsub(i),Lu.delete(i),Dt.clear(),hu(Ka,Ho,da),s.remove(),ie==null||ie.remove(),on("destroy")}i.destroy=Gl;function pa(){on("init",n,t),mo(t||n.data,!1),R[T]?na(T,R[T]):Vs(),ar=Nt.show&&(Nt.width>0||Nt.height>0),Hn=ti=!0,js(n.width,n.height)}return L.forEach(Tl),A.forEach(Yh),e?e instanceof HTMLElement?(e.appendChild(s),pa()):e(i,pa):pa(),i}Pn.assign=fn,Pn.fmtNum=fu,Pn.rangeNum=Xa,Pn.rangeLog=Qa,Pn.rangeAsinh=du,Pn.orient=uo,Pn.pxRatio=kt,Pn.join=Ix,Pn.fmtDate=yu,Pn.tzDate=Ux,Pn.sync=Fg;{Pn.addGap=C_,Pn.clipGaps=ol;let n=Pn.paths={points:Ug};n.linear=qg,n.stepped=M_,n.bars=E_,n.spline=R_}var em,tm;function j_(){return tm||(tm=1,em=function(n,t,e,i,m){var p,v;if(i===void 0)i=0;else if(i=i|0,i<0||i>=n.length)throw new RangeError("invalid lower bound");if(m===void 0)m=n.length-1;else if(m=m|0,m<i||m>=n.length)throw new RangeError("invalid upper bound");for(;i<=m;)if(p=i+(m-i>>>1),v=+e(n[p],t,p,n),v<0)i=p+1;else if(v>0)m=p-1;else return p;return~i}),em}var U_=j_();const nO=In("B",Ea(U_));var Iu,nm;function V_(){if(nm)return Iu;nm=1;function n(t,e,i){var m=-1,p=t.length;e<0&&(e=-e>p?0:p+e),i=i>p?p:i,i<0&&(i+=p),p=e>i?0:i-e>>>0,e>>>=0;for(var v=Array(p);++m<p;)v[m]=t[m+e];return v}return Iu=n,Iu}var Ou,im;function q_(){if(im)return Ou;im=1;var n=V_();function t(e,i,m){var p=e.length;return m=m===void 0?p:m,!i&&m>=p?e:n(e,i,m)}return Ou=t,Ou}var Du,rm;function om(){if(rm)return Du;rm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,p="\\ufe0e\\ufe0f",v="\\u200d",w=RegExp("["+v+n+m+p+"]");function h(f){return w.test(f)}return Du=h,Du}var Nu,sm;function G_(){if(sm)return Nu;sm=1;function n(t){return t.split("")}return Nu=n,Nu}var Fu,am;function Y_(){if(am)return Fu;am=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,p="\\ufe0e\\ufe0f",v="["+n+"]",w="["+m+"]",h="\\ud83c[\\udffb-\\udfff]",f="(?:"+w+"|"+h+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",o=f+"?",u="["+p+"]?",g="(?:"+c+"(?:"+[s,l,a].join("|")+")"+u+o+")*",y=u+o+g,b="(?:"+[s+w+"?",w,l,a,v].join("|")+")",L=RegExp(h+"(?="+h+")|"+b+y,"g");function A(k){return k.match(L)||[]}return Fu=A,Fu}var Pu,lm;function K_(){if(lm)return Pu;lm=1;var n=G_(),t=om(),e=Y_();function i(m){return t(m)?e(m):n(m)}return Pu=i,Pu}var zu,cm;function Z_(){if(cm)return zu;cm=1;var n=typeof Tr=="object"&&Tr&&Tr.Object===Object&&Tr;return zu=n,zu}var Hu,um;function Q_(){if(um)return Hu;um=1;var n=Z_(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Hu=e,Hu}var Bu,hm;function Wu(){if(hm)return Bu;hm=1;var n=Q_(),t=n.Symbol;return Bu=t,Bu}var ju,dm;function X_(){if(dm)return ju;dm=1;function n(t,e){for(var i=-1,m=t==null?0:t.length,p=Array(m);++i<m;)p[i]=e(t[i],i,t);return p}return ju=n,ju}var Uu,pm;function J_(){if(pm)return Uu;pm=1;var n=Array.isArray;return Uu=n,Uu}var Vu,fm;function ek(){if(fm)return Vu;fm=1;var n=Wu(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,m=n?n.toStringTag:void 0;function p(v){var w=e.call(v,m),h=v[m];try{v[m]=void 0;var f=!0}catch{}var s=i.call(v);return f&&(w?v[m]=h:delete v[m]),s}return Vu=p,Vu}var qu,gm;function tk(){if(gm)return qu;gm=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return qu=e,qu}var Gu,mm;function nk(){if(mm)return Gu;mm=1;var n=Wu(),t=ek(),e=tk(),i="[object Null]",m="[object Undefined]",p=n?n.toStringTag:void 0;function v(w){return w==null?w===void 0?m:i:p&&p in Object(w)?t(w):e(w)}return Gu=v,Gu}var Yu,vm;function ik(){if(vm)return Yu;vm=1;function n(t){return t!=null&&typeof t=="object"}return Yu=n,Yu}var Ku,ym;function rk(){if(ym)return Ku;ym=1;var n=nk(),t=ik(),e="[object Symbol]";function i(m){return typeof m=="symbol"||t(m)&&n(m)==e}return Ku=i,Ku}var Zu,wm;function ok(){if(wm)return Zu;wm=1;var n=Wu(),t=X_(),e=J_(),i=rk(),m=1/0,p=n?n.prototype:void 0,v=p?p.toString:void 0;function w(h){if(typeof h=="string")return h;if(e(h))return t(h,w)+"";if(i(h))return v?v.call(h):"";var f=h+"";return f=="0"&&1/h==-m?"-0":f}return Zu=w,Zu}var Qu,bm;function cl(){if(bm)return Qu;bm=1;var n=ok();function t(e){return e==null?"":n(e)}return Qu=t,Qu}var Xu,xm;function sk(){if(xm)return Xu;xm=1;var n=q_(),t=om(),e=K_(),i=cl();function m(p){return function(v){v=i(v);var w=t(v)?e(v):void 0,h=w?w[0]:v.charAt(0),f=w?n(w,1).join(""):v.slice(1);return h[p]()+f}}return Xu=m,Xu}var Ju,_m;function km(){if(_m)return Ju;_m=1;var n=sk(),t=n("toUpperCase");return Ju=t,Ju}var ak=km();const lk=Ea(ak);var eh,$m;function ck(){if($m)return eh;$m=1;var n=cl(),t=km();function e(i){return t(n(i).toLowerCase())}return eh=e,eh}var th,Sm;function uk(){if(Sm)return th;Sm=1;function n(t,e,i,m){var p=-1,v=t==null?0:t.length;for(m&&v&&(i=t[++p]);++p<v;)i=e(i,t[p],p,t);return i}return th=n,th}var nh,Cm;function hk(){if(Cm)return nh;Cm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return nh=n,nh}var ih,Am;function dk(){if(Am)return ih;Am=1;var n=hk(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=n(t);return ih=e,ih}var rh,Tm;function pk(){if(Tm)return rh;Tm=1;var n=dk(),t=cl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",v=i+m+p,w="["+v+"]",h=RegExp(w,"g");function f(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return rh=f,rh}var oh,Mm;function fk(){if(Mm)return oh;Mm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return oh=t,oh}var sh,Em;function gk(){if(Em)return sh;Em=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return sh=t,sh}var ah,Lm;function mk(){if(Lm)return ah;Lm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,p="\\u2700-\\u27bf",v="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",c=w+h+f+s,o="['’]",u="["+c+"]",g="["+m+"]",y="\\d+",b="["+p+"]",L="["+v+"]",A="[^"+n+c+y+p+v+l+"]",k="\\ud83c[\\udffb-\\udfff]",x="(?:"+g+"|"+k+")",T="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+l+"]",N="\\u200d",$="(?:"+L+"|"+A+")",_="(?:"+M+"|"+A+")",S="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",R="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=x+"?",F="["+a+"]?",z="(?:"+N+"(?:"+[T,E,I].join("|")+")"+F+O+")*",j="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+z,J="(?:"+[b,E,I].join("|")+")"+q,G=RegExp([M+"?"+L+"+"+S+"(?="+[u,M,"$"].join("|")+")",_+"+"+R+"(?="+[u,M+$,"$"].join("|")+")",M+"?"+$+"+"+S,M+"+"+R,V,j,y,J].join("|"),"g");function Q(ie){return ie.match(G)||[]}return ah=Q,ah}var lh,Rm;function vk(){if(Rm)return lh;Rm=1;var n=fk(),t=gk(),e=cl(),i=mk();function m(p,v,w){return p=e(p),v=w?void 0:v,v===void 0?t(p)?i(p):n(p):p.match(v)||[]}return lh=m,lh}var ch,Im;function yk(){if(Im)return ch;Im=1;var n=uk(),t=pk(),e=vk(),i="['’]",m=RegExp(i,"g");function p(v){return function(w){return n(e(t(w).replace(m,"")),v,"")}}return ch=p,ch}var uh,Om;function wk(){if(Om)return uh;Om=1;var n=ck(),t=yk(),e=t(function(i,m,p){return m=m.toLowerCase(),i+(p?n(m):m)});return uh=e,uh}var bk=wk();const xk=Ea(bk),_k=Object.assign({"./ArrayWidget.vue":()=>De(()=>Oe.import("./ArrayWidget-By62tXtU-ef1b996df6e28e34c43b.js"),void 0),"./BlockWidget.vue":()=>De(()=>Oe.import("./BlockWidget-CrT45ode-348c3ddc56416a2146ab.js"),void 0),"./ButtonWidget.vue":()=>De(()=>Oe.import("./ButtonWidget-CKyBBv6m-6364e961031fb424242e.js"),void 0),"./CanvasWidget.vue":()=>De(()=>Oe.import("./CanvasWidget-PqkppHC7-fd79bd4b7029026acc5c.js"),void 0),"./CanvasdotWidget.vue":()=>De(()=>Oe.import("./CanvasdotWidget-BUbJgM2d-fa194d6394bd024c8c98.js"),void 0),"./CanvasimageWidget.vue":()=>De(()=>Oe.import("./CanvasimageWidget-DPVBY7mi-f0142b21f0fd88139b85.js"),void 0),"./CanvasimagevalueWidget.vue":()=>De(()=>Oe.import("./CanvasimagevalueWidget-GX37zzNc-62b424af2b9d98e27ca5.js"),void 0),"./CanvaslabelWidget.vue":()=>De(()=>Oe.import("./CanvaslabelWidget-P2_Y6Edw-b1e977b4b7759d576b2f.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>De(()=>Oe.import("./CanvaslabelvalueWidget-Cuas1i9P-1d3918f6f84adfff0120.js"),void 0),"./CanvaslineWidget.vue":()=>De(()=>Oe.import("./CanvaslineWidget-BYOYgPya-e27cccd187a4ac905e59.js"),void 0),"./CanvaslinevalueWidget.vue":()=>De(()=>Oe.import("./CanvaslinevalueWidget-3cVJMFo7-3577f5c9be34f37ff633.js"),void 0),"./CheckbuttonWidget.vue":()=>De(()=>Oe.import("./CheckbuttonWidget-B3wgSMuB-d628399d9f46a9124cf4.js"),void 0),"./ComboboxWidget.vue":()=>De(()=>Oe.import("./ComboboxWidget-Dzr4Scvf-80abf76befb1d2223300.js"),void 0),"./DateWidget.vue":()=>De(()=>Oe.import("./DateWidget-BWh76Ibb-c0656ca3fd2db9656784.js"),void 0),"./DynamicWidget.vue":()=>De(()=>Oe.import("./DynamicWidget-m9EliUR2-3ed383238855e9d89b65.js"),void 0),"./FormatvalueWidget.vue":()=>De(()=>Oe.import("./FormatvalueWidget-Rk0_eeIm-b88e60c978fbcb4abfc1.js"),void 0),"./HorizontalWidget.vue":()=>De(()=>Oe.import("./HorizontalWidget-BcfJ24Zn-7df1a9c1a9406fee3bc4.js"),void 0),"./HorizontalboxWidget.vue":()=>De(()=>Oe.import("./HorizontalboxWidget-CQy1Hv9E-cb7847c9da6a2eb1b325.js"),void 0),"./HorizontallineWidget.vue":()=>De(()=>Oe.import("./HorizontallineWidget-BdlNB951-13449b3286fb177db656.js"),void 0),"./IframeWidget.vue":()=>De(()=>Oe.import("./IframeWidget-BBaDrRLo-205665c65325fc71e124.js"),void 0),"./ImageviewerWidget.vue":()=>De(()=>Oe.import("./ImageviewerWidget-BgO3Pq6I-0883370ad21501128eb7.js"),void 0),"./LabelWidget.vue":()=>De(()=>Oe.import("./LabelWidget-B_C6lKOE-19e071c13acf72487206.js"),void 0),"./LabelledWidget.vue":()=>De(()=>Oe.import("./LabelledWidget-B_UGivhr-69437ddf1d915a331241.js"),void 0),"./LabelprogressbarWidget.vue":()=>De(()=>Oe.import("./LabelprogressbarWidget-BJWCmsYC-302c84efb6e5b94e45ef.js"),void 0),"./LabelsparklineWidget.vue":()=>De(()=>Oe.import("./LabelsparklineWidget-DILCIh3q-f175d1ebf16bcb26b559.js"),void 0),"./LabelvalueWidget.vue":()=>De(()=>Oe.import("./LabelvalueWidget-CCZd1NXE-1e7c14b0cd1e2f34caab.js"),void 0),"./LabelvaluedescWidget.vue":()=>De(()=>Oe.import("./LabelvaluedescWidget-Bsllq8W6-e24fb554e1c7f60256b2.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>De(()=>Oe.import("./LabelvaluelimitsbarWidget-BV-cfaD--1b7c02f3f4a64d0b20fc.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>De(()=>Oe.import("./LabelvaluelimitscolumnWidget-DwA0eRBw-a36c733c1a100b9ef2cb.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>De(()=>Oe.import("./LabelvaluerangebarWidget-3GDJz3dj-5edf485853463cdd7bdc.js"),void 0),"./LedWidget.vue":()=>De(()=>Oe.import("./LedWidget-BAt02s0J-ee955f5837eb08c8c5b8.js"),void 0),"./LimitsbarWidget.vue":()=>De(()=>Oe.import("./LimitsbarWidget-JJiyzZjb-deabf599a5f021fb6643.js"),void 0),"./LimitscolorWidget.vue":()=>De(()=>Oe.import("./LimitscolorWidget-CYzXKbYd-fc74784cfd9fbce0d9b0.js"),void 0),"./LimitscolumnWidget.vue":()=>De(()=>Oe.import("./LimitscolumnWidget-Cd76tBo7-5899f502fe0a778ce00f.js"),void 0),"./LinegraphWidget.vue":()=>De(()=>Oe.import("./LinegraphWidget-DWRtO6Ej-2886f1ae49e4fe604ab4.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>De(()=>Oe.import("./MatrixbycolumnsWidget-cwsyjNV2-fa7489fb9bcce39d54b3.js"),void 0),"./ProgressbarWidget.vue":()=>De(()=>Oe.import("./ProgressbarWidget-CYDziFej-78fe983908f2d55b8506.js"),void 0),"./RadiobuttonWidget.vue":()=>De(()=>Oe.import("./RadiobuttonWidget-U6jcQZoD-28e2f2e59de016f7a467.js"),void 0),"./RadiogroupWidget.vue":()=>De(()=>Oe.import("./RadiogroupWidget-HTPJnsB0-673ba05cc1221683c64a.js"),void 0),"./RangebarWidget.vue":()=>De(()=>Oe.import("./RangebarWidget-DW0FJK6y-15a1d235dab1f5389508.js"),void 0),"./RollupWidget.vue":()=>De(()=>Oe.import("./RollupWidget-B2qrx55f-e7877648fd0f7ebeaea7.js"),void 0),"./ScrollwindowWidget.vue":()=>De(()=>Oe.import("./ScrollwindowWidget-CwIDxgO6-22c14acbcc8ae1aed916.js"),void 0),"./SignalWidget.vue":()=>De(()=>Oe.import("./SignalWidget-Bosa3AbW-b3cc82444c17e3494e4d.js"),void 0),"./SpacerWidget.vue":()=>De(()=>Oe.import("./SpacerWidget-DYAlt5mt-79646b208c68ad086279.js"),void 0),"./SparklineWidget.vue":()=>De(()=>Oe.import("./SparklineWidget-CDrVXOFV-a2a5cd9bc98f09e6f5c4.js"),void 0),"./TabbookWidget.vue":()=>De(()=>Oe.import("./TabbookWidget-DDdlzCkv-b28195cb05ace2609c5f.js"),void 0),"./TextboxWidget.vue":()=>De(()=>Oe.import("./TextboxWidget-5euFelEq-198962282d99de2627fa.js"),void 0),"./TextfieldWidget.vue":()=>De(()=>Oe.import("./TextfieldWidget-BFripYeh-36195e3160240dab144f.js"),void 0),"./TimeWidget.vue":()=>De(()=>Oe.import("./TimeWidget-BBSbsUYJ-b8771bc53294d10f60d5.js"),void 0),"./TitleWidget.vue":()=>De(()=>Oe.import("./TitleWidget-p8cjo-Bs-2538cd241465b2ac8f9c.js"),void 0),"./ValueWidget.vue":()=>De(()=>Oe.import("./ValueWidget-CZh7JWwT-67ae55abc70e2d6939b1.js"),void 0),"./ValuelimitsbarWidget.vue":()=>De(()=>Oe.import("./ValuelimitsbarWidget-DU7ybswC-fc8834eac88586459180.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>De(()=>Oe.import("./ValuelimitscolumnWidget-DMw-h5jM-d23e707bc9df0603b509.js"),void 0),"./ValuerangebarWidget.vue":()=>De(()=>Oe.import("./ValuerangebarWidget-DPpofDpA-6eac85aa54ece67d19f2.js"),void 0),"./VerticalWidget.vue":()=>De(()=>Oe.import("./VerticalWidget-Ch7VAEmz-eb59265f50227b17e04e.js"),void 0),"./VerticalboxWidget.vue":()=>De(()=>Oe.import("./VerticalboxWidget-DYx-TFT4-5edc625784a41f39e567.js"),void 0)}),kk=Object.entries(_k).reduce((n,[t,e])=>{t=t.split("/").pop();const i=lk(xk(t.replace(/\.\w+$/,"")));return{...n,[i]:qd(e)}},{}),$k=In("z",{components:kk});function Dm(n,t){return function(){return n.apply(t,arguments)}}const{toString:Sk}=Object.prototype,{getPrototypeOf:hh}=Object,ul=(n=>t=>{const e=Sk.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Di=n=>(n=n.toLowerCase(),t=>ul(t)===n),hl=n=>t=>typeof t===n,{isArray:Ko}=Array,Fs=hl("undefined");function Ck(n){return n!==null&&!Fs(n)&&n.constructor!==null&&!Fs(n.constructor)&&pi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Nm=Di("ArrayBuffer");function Ak(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Nm(n.buffer),t}const Tk=hl("string"),pi=hl("function"),Fm=hl("number"),dl=n=>n!==null&&typeof n=="object",Mk=n=>n===!0||n===!1,pl=n=>{if(ul(n)!=="object")return!1;const t=hh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Ek=Di("Date"),Lk=Di("File"),Rk=Di("Blob"),Ik=Di("FileList"),Ok=n=>dl(n)&&pi(n.pipe),Dk=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||pi(n.append)&&((t=ul(n))==="formdata"||t==="object"&&pi(n.toString)&&n.toString()==="[object FormData]"))},Nk=Di("URLSearchParams"),[Fk,Pk,zk,Hk]=["ReadableStream","Request","Response","Headers"].map(Di),Bk=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ps(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Ko(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),v=p.length;let w;for(i=0;i<v;i++)w=p[i],t.call(null,n[w],w,n)}}function Pm(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const ho=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zm=n=>!Fs(n)&&n!==ho;function dh(){const{caseless:n}=zm(this)&&this||{},t={},e=(i,m)=>{const p=n&&Pm(t,m)||m;pl(t[p])&&pl(i)?t[p]=dh(t[p],i):pl(i)?t[p]=dh({},i):Ko(i)?t[p]=i.slice():t[p]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Ps(arguments[i],e);return t}const Wk=(n,t,e,{allOwnKeys:i}={})=>(Ps(t,(m,p)=>{e&&pi(m)?n[p]=Dm(m,e):n[p]=m},{allOwnKeys:i}),n),jk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Uk=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Vk=(n,t,e,i)=>{let m,p,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),p=m.length;p-- >0;)v=m[p],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&hh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},qk=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Gk=n=>{if(!n)return null;if(Ko(n))return n;let t=n.length;if(!Fm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Yk=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&hh(Uint8Array)),Kk=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Zk=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Qk=Di("HTMLFormElement"),Xk=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Hm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Jk=Di("RegExp"),Bm=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Ps(e,(m,p)=>{let v;(v=t(m,p,n))!==!1&&(i[p]=v||m)}),Object.defineProperties(n,i)},e$=n=>{Bm(n,(t,e)=>{if(pi(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(pi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},t$=(n,t)=>{const e={},i=m=>{m.forEach(p=>{e[p]=!0})};return Ko(n)?i(n):i(String(n).split(t)),e},n$=()=>{},i$=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,ph="abcdefghijklmnopqrstuvwxyz",Wm="0123456789",jm={DIGIT:Wm,ALPHA:ph,ALPHA_DIGIT:ph+ph.toUpperCase()+Wm},r$=(n=16,t=jm.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function o$(n){return!!(n&&pi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const s$=n=>{const t=new Array(10),e=(i,m)=>{if(dl(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const p=Ko(i)?[]:{};return Ps(i,(v,w)=>{const h=e(v,m+1);!Fs(h)&&(p[w]=h)}),t[m]=void 0,p}}return i};return e(n,0)},a$=Di("AsyncFunction"),l$=n=>n&&(dl(n)||pi(n))&&pi(n.then)&&pi(n.catch),Um=((n,t)=>n?setImmediate:t?((e,i)=>(ho.addEventListener("message",({source:m,data:p})=>{m===ho&&p===e&&i.length&&i.shift()()},!1),m=>{i.push(m),ho.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",pi(ho.postMessage)),c$=typeof queueMicrotask<"u"?queueMicrotask.bind(ho):typeof process<"u"&&process.nextTick||Um,he={isArray:Ko,isArrayBuffer:Nm,isBuffer:Ck,isFormData:Dk,isArrayBufferView:Ak,isString:Tk,isNumber:Fm,isBoolean:Mk,isObject:dl,isPlainObject:pl,isReadableStream:Fk,isRequest:Pk,isResponse:zk,isHeaders:Hk,isUndefined:Fs,isDate:Ek,isFile:Lk,isBlob:Rk,isRegExp:Jk,isFunction:pi,isStream:Ok,isURLSearchParams:Nk,isTypedArray:Yk,isFileList:Ik,forEach:Ps,merge:dh,extend:Wk,trim:Bk,stripBOM:jk,inherits:Uk,toFlatObject:Vk,kindOf:ul,kindOfTest:Di,endsWith:qk,toArray:Gk,forEachEntry:Kk,matchAll:Zk,isHTMLForm:Qk,hasOwnProperty:Hm,hasOwnProp:Hm,reduceDescriptors:Bm,freezeMethods:e$,toObjectSet:t$,toCamelCase:Xk,noop:n$,toFiniteNumber:i$,findKey:Pm,global:ho,isContextDefined:zm,ALPHABET:jm,generateString:r$,isSpecCompliantForm:o$,toJSONObject:s$,isAsyncFn:a$,isThenable:l$,setImmediate:Um,asap:c$};function tt(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}he.inherits(tt,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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const Vm=tt.prototype,qm={};["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(n=>{qm[n]={value:n}}),Object.defineProperties(tt,qm),Object.defineProperty(Vm,"isAxiosError",{value:!0}),tt.from=(n,t,e,i,m,p)=>{const v=Object.create(Vm);return he.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),tt.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,p&&Object.assign(v,p),v};const u$=null;function fh(n){return he.isPlainObject(n)||he.isArray(n)}function Gm(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Ym(n,t,e){return n?n.concat(t).map(function(i,m){return i=Gm(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function h$(n){return he.isArray(n)&&!n.some(fh)}const d$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function fl(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!he.isUndefined(o[c])});const i=e.metaTokens,m=e.visitor||f,p=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(m))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(he.isDate(c))return c.toISOString();if(!w&&he.isBlob(c))throw new tt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(c)||he.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,o,u){let g=c;if(c&&!u&&typeof c=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(he.isArray(c)&&h$(c)||(he.isFileList(c)||he.endsWith(o,"[]"))&&(g=he.toArray(c)))return o=Gm(o),g.forEach(function(y,b){!(he.isUndefined(y)||y===null)&&t.append(v===!0?Ym([o],b,p):v===null?o:o+"[]",h(y))}),!1}return fh(c)?!0:(t.append(Ym(u,o,p),h(c)),!1)}const s=[],l=Object.assign(d$,{defaultVisitor:f,convertValue:h,isVisitable:fh});function a(c,o){if(!he.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(c),he.forEach(c,function(u,g){(!(he.isUndefined(u)||u===null)&&m.call(t,u,he.isString(g)?g.trim():g,o,l))===!0&&a(u,o?o.concat(g):[g])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),t}function Km(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function gh(n,t){this._pairs=[],n&&fl(n,this,t)}const Zm=gh.prototype;Zm.append=function(n,t){this._pairs.push([n,t])},Zm.toString=function(n){const t=n?function(e){return n.call(this,e,Km)}:Km;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function p$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qm(n,t,e){if(!t)return n;const i=e&&e.encode||p$;he.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let p;if(m?p=m(t,e):p=he.isURLSearchParams(t)?t.toString():new gh(t,e).toString(i),p){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let Xm=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const Jm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},f$=typeof URLSearchParams<"u"?URLSearchParams:gh,g$=typeof FormData<"u"?FormData:null,m$=typeof Blob<"u"?Blob:null,v$={isBrowser:!0,classes:{URLSearchParams:f$,FormData:g$,Blob:m$},protocols:["http","https","file","blob","url","data"]},mh=typeof window<"u"&&typeof document<"u",vh=typeof navigator=="object"&&navigator||void 0,y$=mh&&(!vh||["ReactNative","NativeScript","NS"].indexOf(vh.product)<0),w$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b$=mh&&window.location.href||"http://localhost",x$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mh,hasStandardBrowserEnv:y$,hasStandardBrowserWebWorkerEnv:w$,navigator:vh,origin:b$},Symbol.toStringTag,{value:"Module"})),zn={...x$,...v$};function _$(n,t){return fl(n,new zn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,p){return zn.isNode&&he.isBuffer(e)?(this.append(i,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function k$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $$(n){const t={},e=Object.keys(n);let i;const m=e.length;let p;for(i=0;i<m;i++)p=e[i],t[p]=n[p];return t}function e0(n){function t(e,i,m,p){let v=e[p++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=p>=e.length;return v=!v&&he.isArray(m)?m.length:v,h?(he.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!he.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],p)&&he.isArray(m[v])&&(m[v]=$$(m[v])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(i,m)=>{t(k$(i),m,e,0)}),e}return null}function S$(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const zs={transitional:Jm,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=he.isObject(n);if(m&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return i?JSON.stringify(e0(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return _$(n,this.formSerializer).toString();if((p=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return fl(p?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),S$(n)):n}],transformResponse:[function(n){const t=this.transitional||zs.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(p){if(m)throw p.name==="SyntaxError"?tt.from(p,tt.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zn.classes.FormData,Blob:zn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{zs.headers[n]={}});const C$=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),A$=n=>{const t={};let e,i,m;return n&&n.split(`
1411
+ `).forEach(function(p){m=p.indexOf(":"),e=p.substring(0,m).trim().toLowerCase(),i=p.substring(m+1).trim(),!(!e||t[e]&&C$[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},t0=Symbol("internals");function Hs(n){return n&&String(n).trim().toLowerCase()}function gl(n){return n===!1||n==null?n:he.isArray(n)?n.map(gl):String(n)}function T$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const M$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function yh(n,t,e,i,m){if(he.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!he.isString(t)){if(he.isString(i))return t.indexOf(i)!==-1;if(he.isRegExp(i))return i.test(t)}}function E$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function L$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,p,v){return this[i].call(this,t,m,p,v)},configurable:!0})})}let ei=class{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function p(w,h,f){const s=Hs(h);if(!s)throw new Error("header name must be a non-empty string");const l=he.findKey(m,s);(!l||m[l]===void 0||f===!0||f===void 0&&m[l]!==!1)&&(m[l||h]=gl(w))}const v=(w,h)=>he.forEach(w,(f,s)=>p(f,s,h));if(he.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(he.isString(t)&&(t=t.trim())&&!M$(t))v(A$(t),e);else if(he.isHeaders(t))for(const[w,h]of t.entries())p(h,w,i);else t!=null&&p(e,t,i);return this}get(t,e){if(t=Hs(t),t){const i=he.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return T$(m);if(he.isFunction(e))return e.call(this,m,i);if(he.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Hs(t),t){const i=he.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||yh(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function p(v){if(v=Hs(v),v){const w=he.findKey(i,v);w&&(!e||yh(i,i[w],w,e))&&(delete i[w],m=!0)}}return he.isArray(t)?t.forEach(p):p(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const p=e[i];(!t||yh(this,this[p],p,t,!0))&&(delete this[p],m=!0)}return m}normalize(t){const e=this,i={};return he.forEach(this,(m,p)=>{const v=he.findKey(i,p);if(v){e[v]=gl(m),delete e[p];return}const w=t?E$(p):String(p).trim();w!==p&&delete e[p],e[w]=gl(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&he.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1412
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[t0]=this[t0]={accessors:{}}).accessors,i=this.prototype;function m(p){const v=Hs(p);e[v]||(L$(i,p),e[v]=!0)}return he.isArray(t)?t.forEach(m):m(t),this}};ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(ei.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),he.freezeMethods(ei);function wh(n,t){const e=this||zs,i=t||e,m=ei.from(i.headers);let p=i.data;return he.forEach(n,function(v){p=v.call(e,p,m.normalize(),t?t.status:void 0)}),m.normalize(),p}function n0(n){return!!(n&&n.__CANCEL__)}function Zo(n,t,e){tt.call(this,n??"canceled",tt.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Zo,tt,{__CANCEL__:!0});function i0(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new tt("Request failed with status code "+e.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function R$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function I$(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,p=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),f=i[p];v||(v=h),e[m]=w,i[m]=h;let s=p,l=0;for(;s!==m;)l+=e[s++],s=s%n;if(m=(m+1)%n,m===p&&(p=(p+1)%n),h-v<t)return;const a=f&&h-f;return a?Math.round(l*1e3/a):void 0}}function O$(n,t){let e=0,i=1e3/t,m,p;const v=(w,h=Date.now())=>{e=h,m=null,p&&(clearTimeout(p),p=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),f=h-e;f>=i?v(w,h):(m=w,p||(p=setTimeout(()=>{p=null,v(m)},i-f)))},()=>m&&v(m)]}const ml=(n,t,e=3)=>{let i=0;const m=I$(50,250);return O$(p=>{const v=p.loaded,w=p.lengthComputable?p.total:void 0,h=v-i,f=m(h),s=v<=w;i=v;const l={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:f||void 0,estimated:f&&w&&s?(w-v)/f:void 0,event:p,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},r0=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},o0=n=>(...t)=>he.asap(()=>n(...t)),D$=zn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,zn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(zn.origin),zn.navigator&&/(msie|trident)/i.test(zn.navigator.userAgent)):()=>!0,N$=zn.hasStandardBrowserEnv?{write(n,t,e,i,m,p){const v=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),he.isString(i)&&v.push("path="+i),he.isString(m)&&v.push("domain="+m),p===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function F$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function P$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function s0(n,t){return n&&!F$(t)?P$(n,t):t}const a0=n=>n instanceof ei?{...n}:n;function po(n,t){t=t||{};const e={};function i(f,s,l,a){return he.isPlainObject(f)&&he.isPlainObject(s)?he.merge.call({caseless:a},f,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function m(f,s,l,a){if(he.isUndefined(s)){if(!he.isUndefined(f))return i(void 0,f,l,a)}else return i(f,s,l,a)}function p(f,s){if(!he.isUndefined(s))return i(void 0,s)}function v(f,s){if(he.isUndefined(s)){if(!he.isUndefined(f))return i(void 0,f)}else return i(void 0,s)}function w(f,s,l){if(l in t)return i(f,s);if(l in n)return i(void 0,f)}const h={url:p,method:p,data:p,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(f,s,l)=>m(a0(f),a0(s),l,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(f){const s=h[f]||m,l=s(n[f],t[f],f);he.isUndefined(l)&&s!==w||(e[f]=l)}),e}const l0=n=>{const t=po({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:p,headers:v,auth:w}=t;t.headers=v=ei.from(v),t.url=Qm(s0(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(he.isFormData(e)){if(zn.hasStandardBrowserEnv||zn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[f,...s]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];v.setContentType([f||"multipart/form-data",...s].join("; "))}}if(zn.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(t)),i||i!==!1&&D$(t.url))){const f=m&&p&&N$.read(p);f&&v.set(m,f)}return t},z$=typeof XMLHttpRequest<"u",H$=z$&&function(n){return new Promise(function(t,e){const i=l0(n);let m=i.data;const p=ei.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,f,s,l,a,c;function o(){a&&a(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function g(){if(!u)return;const b=ei.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),L={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};i0(function(A){t(A),o()},function(A){e(A),o()},L),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(e(new tt("Request aborted",tt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new tt("Network Error",tt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||Jm;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),e(new tt(b,L.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,n,u)),u=null},m===void 0&&p.setContentType(null),"setRequestHeader"in u&&he.forEach(p.toJSON(),function(b,L){u.setRequestHeader(L,b)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([l,c]=ml(h,!0),u.addEventListener("progress",l)),w&&u.upload&&([s,a]=ml(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(f=b=>{u&&(e(!b||b.type?new Zo(null,n,u):b),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=R$(i.url);if(y&&zn.protocols.indexOf(y)===-1){e(new tt("Unsupported protocol "+y+":",tt.ERR_BAD_REQUEST,n));return}u.send(m||null)})},B$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const p=function(f){if(!m){m=!0,w();const s=f instanceof Error?f:this.reason;i.abort(s instanceof tt?s:new Zo(s instanceof Error?s.message:s))}};let v=t&&setTimeout(()=>{v=null,p(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(p):f.removeEventListener("abort",p)}),n=null)};n.forEach(f=>f.addEventListener("abort",p));const{signal:h}=i;return h.unsubscribe=()=>he.asap(w),h}},W$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},j$=async function*(n,t){for await(const e of U$(n))yield*W$(e,t)},U$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},c0=(n,t,e,i)=>{const m=j$(n,t);let p=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:f,value:s}=await m.next();if(f){w(),h.close();return}let l=s.byteLength;if(e){let a=p+=l;e(a)}h.enqueue(new Uint8Array(s))}catch(f){throw w(f),f}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},vl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",u0=vl&&typeof ReadableStream=="function",V$=vl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),h0=(n,...t)=>{try{return!!n(...t)}catch{return!1}},q$=u0&&h0(()=>{let n=!1;const t=new Request(zn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),d0=64*1024,bh=u0&&h0(()=>he.isReadableStream(new Response("").body)),yl={stream:bh&&(n=>n.body)};vl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!yl[t]&&(yl[t]=he.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new tt(`Response type '${t}' is not supported`,tt.ERR_NOT_SUPPORT,i)})})})(new Response);const G$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(zn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await V$(n)).byteLength},Y$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??G$(t),K$=vl&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:p,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:f,headers:s,withCredentials:l="same-origin",fetchOptions:a}=l0(n);f=f?(f+"").toLowerCase():"text";let c=B$([m,p&&p.toAbortSignal()],v),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let g;try{if(h&&q$&&e!=="get"&&e!=="head"&&(g=await Y$(s,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),x;if(he.isFormData(i)&&(x=k.headers.get("content-type"))&&s.setContentType(x),k.body){const[T,E]=r0(g,ml(o0(h)));i=c0(k.body,d0,T,E)}}he.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...a,signal:c,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:y?l:void 0});let b=await fetch(o);const L=bh&&(f==="stream"||f==="response");if(bh&&(w||L&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=he.toFiniteNumber(b.headers.get("content-length")),[T,E]=w&&r0(x,ml(o0(w),!0))||[];b=new Response(c0(b.body,d0,T,()=>{E&&E(),u&&u()}),k)}f=f||"text";let A=await yl[he.findKey(yl,f)||"text"](b,n);return!L&&u&&u(),await new Promise((k,x)=>{i0(k,x,{data:A,headers:ei.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,n,o),{cause:y.cause||y}):tt.from(y,y&&y.code,n,o)}}),xh={http:u$,xhr:H$,fetch:K$};he.forEach(xh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const p0=n=>`- ${n}`,Z$=n=>he.isFunction(n)||n===null||n===!1,f0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let p=0;p<t;p++){e=n[p];let v;if(i=e,!Z$(e)&&(i=xh[(v=String(e)).toLowerCase()],i===void 0))throw new tt(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+p]=i}if(!i){const p=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?p.length>1?`since :
1413
+ `+p.map(p0).join(`
1414
+ `):" "+p0(p[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:xh};function _h(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zo(null,n)}function g0(n){return _h(n),n.headers=ei.from(n.headers),n.data=wh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),f0.getAdapter(n.adapter||zs.adapter)(n).then(function(t){return _h(n),t.data=wh.call(n,n.transformResponse,t),t.headers=ei.from(t.headers),t},function(t){return n0(t)||(_h(n),t&&t.response&&(t.response.data=wh.call(n,n.transformResponse,t.response),t.response.headers=ei.from(t.response.headers))),Promise.reject(t)})}const m0="1.7.9",wl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{wl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const v0={};wl.transitional=function(n,t,e){function i(m,p){return"[Axios v"+m0+"] Transitional option '"+m+"'"+p+(e?". "+e:"")}return(m,p,v)=>{if(n===!1)throw new tt(i(p," has been removed"+(t?" in "+t:"")),tt.ERR_DEPRECATED);return t&&!v0[p]&&(v0[p]=!0,console.warn(i(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,p,v):!0}},wl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function Q$(n,t,e){if(typeof n!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const p=i[m],v=t[p];if(v){const w=n[p],h=w===void 0||v(w,p,n);if(h!==!0)throw new tt("option "+p+" must be "+h,tt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new tt("Unknown option "+p,tt.ERR_BAD_OPTION)}}const bl={assertOptions:Q$,validators:wl},Vi=bl.validators;let fo=class{constructor(t){this.defaults=t,this.interceptors={request:new Xm,response:new Xm}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const p=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?p&&!String(i.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1415
+ `+p):i.stack=p}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=po(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:p}=e;i!==void 0&&bl.assertOptions(i,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),m!=null&&(he.isFunction(m)?e.paramsSerializer={serialize:m}:bl.assertOptions(m,{encode:Vi.function,serialize:Vi.function},!0)),bl.assertOptions(e,{baseUrl:Vi.spelling("baseURL"),withXsrfToken:Vi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=p&&he.merge(p.common,p[e.method]);p&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=ei.concat(v,p);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!h){const o=[g0.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,f),a=o.length,s=Promise.resolve(e);l<a;)s=s.then(o[l++],o[l++]);return s}a=w.length;let c=e;for(l=0;l<a;){const o=w[l++],u=w[l++];try{c=o(c)}catch(g){u.call(this,g);break}}try{s=g0.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=f.length;l<a;)s=s.then(f[l++],f[l++]);return s}getUri(t){t=po(this.defaults,t);const e=s0(t.baseURL,t.url);return Qm(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){fo.prototype[n]=function(t,e){return this.request(po(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,p){return this.request(po(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}fo.prototype[n]=t(),fo.prototype[n+"Form"]=t(!0)});let X$=class zy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let p=i._listeners.length;for(;p-- >0;)i._listeners[p](m);i._listeners=null}),this.promise.then=m=>{let p;const v=new Promise(w=>{i.subscribe(w),p=w}).then(m);return v.cancel=function(){i.unsubscribe(p)},v},t(function(m,p,v){i.reason||(i.reason=new Zo(m,p,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new zy(function(e){t=e}),cancel:t}}};function J$(n){return function(t){return n.apply(null,t)}}function eS(n){return he.isObject(n)&&n.isAxiosError===!0}const kh={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(kh).forEach(([n,t])=>{kh[t]=n});function y0(n){const t=new fo(n),e=Dm(fo.prototype.request,t);return he.extend(e,fo.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return y0(po(n,i))},e}const _n=In("S",y0(zs));_n.Axios=fo,_n.CanceledError=Zo,_n.CancelToken=X$,_n.isCancel=n0,_n.VERSION=m0,_n.toFormData=fl,_n.AxiosError=tt,_n.Cancel=_n.CanceledError,_n.all=function(n){return Promise.all(n)},_n.spread=J$,_n.isAxiosError=eS,_n.mergeConfig=po,_n.AxiosHeaders=ei,_n.formToJSON=n=>e0(he.isHTMLForm(n)?new FormData(n):n),_n.getAdapter=f0.getAdapter,_n.HttpStatusCode=kh,_n.default=_n;function tS(n,t,e){const i=Vt(n,void 0);return i.setTime(i.getTime()+t*Ta),i}function w0(){return Object.assign({},Io())}function nS(n,t){const e=()=>dn(void 0,NaN),i=sS(n);let m;if(i.date){const h=aS(i.date,2);m=lS(h.restDateString,h.year)}if(!m||isNaN(+m))return e();const p=+m;let v=0,w;if(i.time&&(v=cS(i.time),isNaN(v)))return e();if(i.timezone){if(w=uS(i.timezone),isNaN(w))return e()}else{const h=new Date(p+v),f=Vt(0,void 0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return Vt(p+v+w,void 0)}const xl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},iS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,rS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,oS=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sS(n){const t={},e=n.split(xl.dateTimeDelimiter);let i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],xl.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xl.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){const m=xl.timezone.exec(i);m?(t.time=i.replace(m[1],""),t.timezone=m[1]):t.time=i}return t}function aS(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};const m=i[1]?parseInt(i[1]):null,p=i[2]?parseInt(i[2]):null;return{year:p===null?m:p*100,restDateString:n.slice((i[1]||i[2]).length)}}function lS(n,t){if(t===null)return new Date(NaN);const e=n.match(iS);if(!e)return new Date(NaN);const i=!!e[4],m=Bs(e[1]),p=Bs(e[2])-1,v=Bs(e[3]),w=Bs(e[4]),h=Bs(e[5])-1;if(i)return gS(t,w,h)?hS(t,w,h):new Date(NaN);{const f=new Date(0);return!pS(t,p,v)||!fS(t,m)?new Date(NaN):(f.setUTCFullYear(t,p,Math.max(m,v)),f)}}function Bs(n){return n?parseInt(n):1}function cS(n){const t=n.match(rS);if(!t)return NaN;const e=$h(t[1]),i=$h(t[2]),m=$h(t[3]);return mS(e,i,m)?e*Rc+i*Ta+m*1e3:NaN}function $h(n){return n&&parseFloat(n.replace(",","."))||0}function uS(n){if(n==="Z")return 0;const t=n.match(oS);if(!t)return 0;const e=t[1]==="+"?-1:1,i=parseInt(t[2]),m=t[3]&&parseInt(t[3])||0;return vS(i,m)?e*(i*Rc+m*Ta):NaN}function hS(n,t,e){const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,p=(t-1)*7+e+1-m;return i.setUTCDate(i.getUTCDate()+p),i}const dS=[31,null,31,30,31,30,31,31,30,31,30,31];function b0(n){return n%400===0||n%4===0&&n%100!==0}function pS(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(dS[t]||(b0(n)?29:28))}function fS(n,t){return t>=1&&t<=(b0(n)?366:365)}function gS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function mS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function vS(n,t){return t>=0&&t<=59}function yS(n,t,e){return tS(n,-t)}function x0(n,t,e){const i=w0(),m=xS(n,e.timeZone,e.locale??i.locale);return"formatToParts"in m?wS(m,t):bS(m,t)}function wS(n,t){const e=n.formatToParts(t);for(let i=e.length-1;i>=0;--i)if(e[i].type==="timeZoneName")return e[i].value}function bS(n,t){const e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function xS(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function _S(n,t){const e=AS(t);return"formatToParts"in e?$S(e,n):SS(e,n)}const kS={year:0,month:1,day:2,hour:3,minute:4,second:5};function $S(n,t){try{const e=n.formatToParts(t),i=[];for(let m=0;m<e.length;m++){const p=kS[e[m].type];p!==void 0&&(i[p]=parseInt(e[m].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function SS(n,t){const e=n.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const Sh={},_0=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),CS=_0==="06/25/2014, 00:00:00"||_0==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function AS(n){return Sh[n]||(Sh[n]=CS?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Sh[n]}function k0(n,t,e,i,m,p,v){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(i,m,p,v),w}const $0=36e5,TS=6e4,Ch={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Ah(n,t,e){if(!n)return 0;let i=Ch.timezoneZ.exec(n);if(i)return 0;let m,p;if(i=Ch.timezoneHH.exec(n),i)return m=parseInt(i[1],10),S0(m)?-(m*$0):NaN;if(i=Ch.timezoneHHMM.exec(n),i){m=parseInt(i[2],10);const v=parseInt(i[3],10);return S0(m,v)?(p=Math.abs(m)*$0+v*TS,i[1]==="+"?-p:p):NaN}if(LS(n)){t=new Date(t||Date.now());const v=e?t:MS(t),w=Th(v,n);return-(e?w:ES(t,w,n))}return NaN}function MS(n){return k0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Th(n,t){const e=_S(n,t),i=k0(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let m=n.getTime();const p=m%1e3;return m-=p>=0?p:1e3+p,i-m}function ES(n,t,e){let i=n.getTime()-t;const m=Th(new Date(i),e);if(t===m)return t;i-=m-t;const p=Th(new Date(i),e);return m===p?m:Math.max(m,p)}function S0(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const C0={};function LS(n){if(C0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),C0[n]=!0,!0}catch{return!1}}const RS=60*1e3,IS={X:function(n,t,e){const i=Mh(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return A0(i);case"XXXX":case"XX":return Qo(i);case"XXXXX":case"XXX":default:return Qo(i,":")}},x:function(n,t,e){const i=Mh(e.timeZone,n);switch(t){case"x":return A0(i);case"xxxx":case"xx":return Qo(i);case"xxxxx":case"xxx":default:return Qo(i,":")}},O:function(n,t,e){const i=Mh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+OS(i,":");case"OOOO":default:return"GMT"+Qo(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return x0("short",n,e);case"zzzz":default:return x0("long",n,e)}}};function Mh(n,t){const e=n?Ah(n,t,!0)/RS:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function _l(n,t){const e=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<t;)i="0"+i;return e+i}function Qo(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=_l(Math.floor(i/60),2),p=_l(Math.floor(i%60),2);return e+m+t+p}function A0(n,t){return n%60===0?(n>0?"-":"+")+_l(Math.abs(n)/60,2):Qo(n,t)}function OS(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.floor(i/60),p=i%60;return p===0?e+String(m):e+String(m)+t+_l(p,2)}function T0(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const DS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Eh=36e5,M0=6e4,NS=2,Gn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:DS};function E0(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?NS:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const i=FS(n),{year:m,restDateString:p}=PS(i.date,e),v=zS(p,m);if(v===null||isNaN(v.getTime()))return new Date(NaN);if(v){const w=v.getTime();let h=0,f;if(i.time&&(h=HS(i.time),h===null||isNaN(h)))return new Date(NaN);if(i.timeZone||t.timeZone){if(f=Ah(i.timeZone||t.timeZone,new Date(w+h)),isNaN(f))return new Date(NaN)}else f=T0(new Date(w+h)),f=T0(new Date(w+h+f));return new Date(w+h+f)}else return new Date(NaN)}function FS(n){const t={};let e=Gn.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=Gn.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){const m=Gn.timeZone.exec(i);m?(t.time=i.replace(m[1],""),t.timeZone=m[1].trim()):t.time=i}return t}function PS(n,t){if(n){const e=Gn.YYY[t],i=Gn.YYYYY[t];let m=Gn.YYYY.exec(n)||i.exec(n);if(m){const p=m[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(m=Gn.YY.exec(n)||e.exec(n),m){const p=m[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function zS(n,t){if(t===null)return null;let e,i,m;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let p=Gn.MM.exec(n);if(p)return e=new Date(0),i=parseInt(p[1],10)-1,I0(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(p=Gn.DDD.exec(n),p){e=new Date(0);const v=parseInt(p[1],10);return jS(t,v)?(e.setUTCFullYear(t,0,v),e):new Date(NaN)}if(p=Gn.MMDD.exec(n),p){e=new Date(0),i=parseInt(p[1],10)-1;const v=parseInt(p[2],10);return I0(t,i,v)?(e.setUTCFullYear(t,i,v),e):new Date(NaN)}if(p=Gn.Www.exec(n),p)return m=parseInt(p[1],10)-1,O0(m)?L0(t,m):new Date(NaN);if(p=Gn.WwwD.exec(n),p){m=parseInt(p[1],10)-1;const v=parseInt(p[2],10)-1;return O0(m,v)?L0(t,m,v):new Date(NaN)}return null}function HS(n){let t,e,i=Gn.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),Lh(t)?t%24*Eh:NaN;if(i=Gn.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),Lh(t,e)?t%24*Eh+e*M0:NaN;if(i=Gn.HHMMSS.exec(n),i){t=parseInt(i[1],10),e=parseInt(i[2],10);const m=parseFloat(i[3].replace(",","."));return Lh(t,e,m)?t%24*Eh+e*M0+m*1e3:NaN}return null}function L0(n,t,e){t=t||0,e=e||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,p=t*7+e+1-m;return i.setUTCDate(i.getUTCDate()+p),i}const BS=[31,28,31,30,31,30,31,31,30,31,30,31],WS=[31,29,31,30,31,30,31,31,30,31,30,31];function R0(n){return n%400===0||n%4===0&&n%100!==0}function I0(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const i=R0(n);if(i&&e>WS[t]||!i&&e>BS[t])return!1}return!0}function jS(n,t){if(t<1)return!1;const e=R0(n);return!(e&&t>366||!e&&t>365)}function O0(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Lh(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const US=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function VS(n,t,e={}){t=String(t);const i=t.match(US);if(i){const m=E0(e.originalDate||n,e);t=i.reduce(function(p,v){if(v[0]==="'")return p;const w=p.indexOf(v),h=p[w-1]==="'",f=p.replace(v,"'"+IS[v[0]](m,v,e)+"'");return h?f.substring(0,w-1)+f.substring(w+1):f},t)}return eo(n,t,e)}function qS(n,t,e){n=E0(n,e);const i=Ah(t,n,!0),m=new Date(n.getTime()-i),p=new Date(0);return p.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),p.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),p}function Rh(n,t,e,i){return i={...i,timeZone:t,originalDate:n},VS(qS(n,t,{timeZone:i.timeZone}),e,i)}const Ih="yyyy-MM-dd",D0="HH:mm:ss.SSS",GS="HH:mm:ss",kl=`${Ih} ${D0}`,iO=In("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return eo(!t||t==="local"?yS(n,n.getTimezoneOffset()):n,kl)},formatDateTime(n,t){return!t||t==="local"?eo(n,kl):Rh(n,t,kl)},formatDate:function(n,t){return!t||t==="local"?eo(n,Ih):Rh(n,this.timeZone,Ih)},formatTime:function(n,t,e=D0){return!t||t==="local"?eo(n,e):Rh(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,GS)},formatTimestamp(n,t){return this.formatDateTime(nS(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var YS=Object.defineProperty,KS=(n,t,e)=>t in n?YS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ee=(n,t,e)=>KS(n,typeof t!="symbol"?t+"":t,e);function Oh(n,t,e){const i=Vt(n,e==null?void 0:e.in);return isNaN(t)?dn((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function ZS(n,t){const e=Vt(n,void 0).getDay();return e===0?7:e}function QS(n,t){const e=XS(t)?new t(0):dn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function XS(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const JS=10;class N0{constructor(){Ee(this,"subPriority",0)}validate(t,e){return!0}}let eC=class extends N0{constructor(t,e,i,m,p){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=m,p&&(this.subPriority=p)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}},tC=class extends N0{constructor(t,e){super(),Ee(this,"priority",JS),Ee(this,"subPriority",-1),this.context=t||(i=>dn(e,i))}set(t,e){return e.timestampIsSet?t:dn(t,QS(t,this.context))}};class $t{run(t,e,i,m){const p=this.parse(t,e,i,m);return p?{setter:new eC(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,i){return!0}}class nC extends $t{constructor(){super(...arguments),Ee(this,"priority",140),Ee(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}const an={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},qi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ln(n,t){return n&&{value:t(n.value),rest:n.rest}}function Zt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Gi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const i=e[1]==="+"?1:-1,m=e[2]?parseInt(e[2],10):0,p=e[3]?parseInt(e[3],10):0,v=e[5]?parseInt(e[5],10):0;return{value:i*(m*Rc+p*Ta+v*Qy),rest:t.slice(e[0].length)}}function F0(n){return Zt(an.anyDigitsSigned,n)}function tn(n,t){switch(n){case 1:return Zt(an.singleDigit,t);case 2:return Zt(an.twoDigits,t);case 3:return Zt(an.threeDigits,t);case 4:return Zt(an.fourDigits,t);default:return Zt(new RegExp("^\\d{1,"+n+"}"),t)}}function P0(n,t){switch(n){case 1:return Zt(an.singleDigitSigned,t);case 2:return Zt(an.twoDigitsSigned,t);case 3:return Zt(an.threeDigitsSigned,t);case 4:return Zt(an.fourDigitsSigned,t);default:return Zt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Dh(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function z0(n,t){const e=t>0,i=e?t:1-t;let m;if(i<=50)m=n||100;else{const p=i+50,v=Math.trunc(p/100)*100,w=n>=p%100;m=n+v-(w?100:0)}return e?m:1-m}function H0(n){return n%400===0||n%4===0&&n%100!==0}class iC extends $t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,i){const m=p=>({year:p,isTwoDigitYear:e==="yy"});switch(e){case"y":return ln(tn(4,t),m);case"yo":return ln(i.ordinalNumber(t,{unit:"year"}),m);default:return ln(tn(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const m=t.getFullYear();if(i.isTwoDigitYear){const v=z0(i.year,m);return t.setFullYear(v,0,1),t.setHours(0,0,0,0),t}const p=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(p,0,1),t.setHours(0,0,0,0),t}}class rC extends $t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,i){const m=p=>({year:p,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ln(tn(4,t),m);case"Yo":return ln(i.ordinalNumber(t,{unit:"year"}),m);default:return ln(tn(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,m){const p=Oc(t,m);if(i.isTwoDigitYear){const w=z0(i.year,p);return t.setFullYear(w,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),Cr(t,m)}const v=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(v,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),Cr(t,m)}}let oC=class extends $t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return P0(e==="R"?4:e.length,t)}set(t,e,i){const m=dn(t,0);return m.setFullYear(i,0,4),m.setHours(0,0,0,0),Oo(m)}},sC=class extends $t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return P0(e==="u"?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};class aC extends $t{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"Q":case"QQ":return tn(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}let lC=class extends $t{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"q":case"qq":return tn(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}};class cC extends $t{constructor(){super(...arguments),Ee(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ee(this,"priority",110)}parse(t,e,i){const m=p=>p-1;switch(e){case"M":return ln(Zt(an.month,t),m);case"MM":return ln(tn(2,t),m);case"Mo":return ln(i.ordinalNumber(t,{unit:"month"}),m);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class uC extends $t{constructor(){super(...arguments),Ee(this,"priority",110),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,i){const m=p=>p-1;switch(e){case"L":return ln(Zt(an.month,t),m);case"LL":return ln(tn(2,t),m);case"Lo":return ln(i.ordinalNumber(t,{unit:"month"}),m);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}function hC(n,t,e){const i=Vt(n,e==null?void 0:e.in),m=gp(i,e)-t;return i.setDate(i.getDate()-m*7),Vt(i,e==null?void 0:e.in)}class dC extends $t{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,i){switch(e){case"w":return Zt(an.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return tn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,m){return Cr(hC(t,i,m),m)}}function pC(n,t,e){const i=Vt(n,void 0),m=fp(i)-t;return i.setDate(i.getDate()-m*7),i}class fC extends $t{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,i){switch(e){case"I":return Zt(an.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return tn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return Oo(pC(t,i))}}const gC=[31,28,31,30,31,30,31,31,30,31,30,31],mC=[31,29,31,30,31,30,31,31,30,31,30,31];class vC extends $t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subPriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"d":return Zt(an.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return tn(e.length,t)}}validate(t,e){const i=t.getFullYear(),m=H0(i),p=t.getMonth();return m?e>=1&&e<=mC[p]:e>=1&&e<=gC[p]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}}class yC extends $t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subpriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,i){switch(e){case"D":case"DD":return Zt(an.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return tn(e.length,t)}}validate(t,e){const i=t.getFullYear();return H0(i)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}}function Nh(n,t,e){var i,m,p,v;const w=Io(),h=(e==null?void 0:e.weekStartsOn)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.weekStartsOn)??w.weekStartsOn??((v=(p=w.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,f=Vt(n,e==null?void 0:e.in),s=f.getDay(),l=(t%7+7)%7,a=7-h,c=t<0||t>6?t-(s+a)%7:(l+a)%7-(s+a)%7;return Oh(f,c,e)}class wC extends $t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Nh(t,i,m),t.setHours(0,0,0,0),t}}let bC=class extends $t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,i,m){const p=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return ln(tn(e.length,t),p);case"eo":return ln(i.ordinalNumber(t,{unit:"day"}),p);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Nh(t,i,m),t.setHours(0,0,0,0),t}};class xC extends $t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,i,m){const p=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return ln(tn(e.length,t),p);case"co":return ln(i.ordinalNumber(t,{unit:"day"}),p);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Nh(t,i,m),t.setHours(0,0,0,0),t}}function _C(n,t,e){const i=Vt(n,void 0),m=ZS(i),p=t-m;return Oh(i,p,e)}class kC extends $t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,i){const m=p=>p===0?7:p;switch(e){case"i":case"ii":return tn(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ln(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiii":return ln(i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiiii":return ln(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiii":default:return ln(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=_C(t,i),t.setHours(0,0,0,0),t}}let $C=class extends $t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Dh(i),0,0,0),t}};class SC extends $t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Dh(i),0,0,0),t}}class CC extends $t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Dh(i),0,0,0),t}}class AC extends $t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,i){switch(e){case"h":return Zt(an.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return tn(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const m=t.getHours()>=12;return m&&i<12?t.setHours(i+12,0,0,0):!m&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}}class TC extends $t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,i){switch(e){case"H":return Zt(an.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return tn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}}class MC extends $t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,i){switch(e){case"K":return Zt(an.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return tn(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}}class EC extends $t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,i){switch(e){case"k":return Zt(an.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return tn(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const m=i<=24?i%24:i;return t.setHours(m,0,0,0),t}}let LC=class extends $t{constructor(){super(...arguments),Ee(this,"priority",60),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"m":return Zt(an.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return tn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}};class RC extends $t{constructor(){super(...arguments),Ee(this,"priority",50),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"s":return Zt(an.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return tn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}}class IC extends $t{constructor(){super(...arguments),Ee(this,"priority",30),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e){const i=m=>Math.trunc(m*Math.pow(10,-e.length+3));return ln(tn(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}}class OC extends $t{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Gi(qi.basicOptionalMinutes,t);case"XX":return Gi(qi.basic,t);case"XXXX":return Gi(qi.basicOptionalSeconds,t);case"XXXXX":return Gi(qi.extendedOptionalSeconds,t);case"XXX":default:return Gi(qi.extended,t)}}set(t,e,i){return e.timestampIsSet?t:dn(t,t.getTime()-Ma(t)-i)}}let DC=class extends $t{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Gi(qi.basicOptionalMinutes,t);case"xx":return Gi(qi.basic,t);case"xxxx":return Gi(qi.basicOptionalSeconds,t);case"xxxxx":return Gi(qi.extendedOptionalSeconds,t);case"xxx":default:return Gi(qi.extended,t)}}set(t,e,i){return e.timestampIsSet?t:dn(t,t.getTime()-Ma(t)-i)}};class NC extends $t{constructor(){super(...arguments),Ee(this,"priority",40),Ee(this,"incompatibleTokens","*")}parse(t){return F0(t)}set(t,e,i){return[dn(t,i*1e3),{timestampIsSet:!0}]}}class FC extends $t{constructor(){super(...arguments),Ee(this,"priority",20),Ee(this,"incompatibleTokens","*")}parse(t){return F0(t)}set(t,e,i){return[dn(t,i),{timestampIsSet:!0}]}}const PC={G:new nC,y:new iC,Y:new rC,R:new oC,u:new sC,Q:new aC,q:new lC,M:new cC,L:new uC,w:new dC,I:new fC,d:new vC,D:new yC,E:new wC,e:new bC,c:new xC,i:new kC,a:new $C,b:new SC,B:new CC,h:new AC,H:new TC,K:new MC,k:new EC,m:new LC,s:new RC,S:new IC,X:new OC,x:new DC,t:new NC,T:new FC},zC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BC=/^'([^]*?)'?$/,WC=/''/g,jC=/\S/,UC=/[a-zA-Z]/;function VC(n,t,e,i){var m,p,v,w;const h=()=>dn(e,NaN),f=w0(),s=f.locale??pp,l=f.firstWeekContainsDate??((p=(m=f.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,a=f.weekStartsOn??((w=(v=f.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():Vt(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:a,locale:s},o=[new tC(void 0,e)],u=t.match(HC).map(A=>{const k=A[0];if(k in Dc){const x=Dc[k];return x(A,s.formatLong)}return A}).join("").match(zC),g=[];for(let A of u){_p(A)&&Nc(A,t,n),xp(A)&&Nc(A,t,n);const k=A[0],x=PC[k];if(x){const{incompatibleTokens:T}=x;if(Array.isArray(T)){const I=g.find(M=>T.includes(M.token)||M.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${A}\` at the same time`)}else if(x.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);g.push({token:k,fullToken:A});const E=x.run(n,A,s.match,c);if(!E)return h();o.push(E.setter),n=E.rest}else{if(k.match(UC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=qC(A)),n.indexOf(A)===0)n=n.slice(A.length);else return h()}}if(n.length>0&&jC.test(n))return h();const y=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,x)=>x.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,x)=>x.subPriority-k.subPriority)).map(A=>A[0]);let b=Vt(e,void 0);if(isNaN(+b))return h();const L={};for(const A of y){if(!A.validate(b,c))return h();const k=A.set(b,L,c);Array.isArray(k)?(b=k[0],Object.assign(L,k[1])):b=k}return b}function qC(n){return n.match(BC)[1].replace(WC,"'")}const GC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function YC(n,t,e,i,m,p){const v=Pe("rux-icon");return bt(),Yt(v,{size:e.size,icon:e.icon,style:Ro(p.colorStyle)},null,8,["size","icon","style"])}const KC=Sr(GC,[["render",YC],["__scopeId","data-v-9af48e85"]]),ZC="/icons/status-dark.png",QC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return ZC},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=tA.indexOf(B0[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,i=32*this.scaleFactor*t,m=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*m}px;`,`background-size: ${e}px ${i}px;`,`height: ${m}px;`,`width: ${m}px;`,`padding-top: ${n-1}px;`].join("")}}};function XC(n,t,e,i,m,p){return bt(),Li("div",{style:Ro(p.iconStyle)},null,4)}const JC=Sr(QC,[["render",XC]]),B0={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},Fh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},eA=function(n){const t="#000000",e="#ffffff",i=Fh[B0[n]];if(i){const m=+`0x${i.slice(1,3)}`,p=+`0x${i.slice(3,5)}`,v=+`0x${i.slice(5,7)}`;if((m*299+p*587+v*114)/1e3>128)return t}return e},tA=Object.keys(Fh),nA={astro:{component:n=>bs(KC,{...n})},"astro-status":{component:n=>bs(JC,{...n,status:n.icon})}};class iA{constructor(){Jc.get("/openc3-api/autocomplete/data/screen").then(t=>{this.autocompleteData=t.data}),this.api=new Ga}async getCompletions(t,e,i,m,p){var v=e.getLine(i.row),w=v.slice(0,i.column),h=w.trimStart().split(/ (?![^<]*>)/),f=this.autocompleteData;h.length>1&&(f=f.find(y=>y.caption===h[0]));var s={},l=!0;if(f&&f.params){f.params.length==h.length-1&&(l=!1);var a=f.params[h.length-2];if(a["Target name"]){var c=await this.api.get_target_names();f=c.reduce((y,b)=>(y[b]=1,y),{})}else if(a["Packet name"]){var o=h[h.length-2],u=await this.api.get_all_tlm(o);f=u.reduce((y,b)=>(y[b.packet_name]=b.description,y),{})}else if(a["Item name"]){var o=h[h.length-3],g=h[h.length-2],g=await this.api.get_tlm(o,g);f=g.items.reduce((b,L)=>(b[L.name]=L.description,b),{})}else f=a;s=Object.keys(f||{}).map(y=>{var b={value:y+(l?" ":""),command:l&&"startAutocomplete"};return typeof f[y]=="string"&&(b.meta=f[y]),b})}else s=f;p(null,s)}}const rA={props:{modelValue:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null,docsKeyword:"",contextMenu:!1,menuX:0,menuY:0}},computed:{editErrors:function(){if(this.definition===""&&!this.file)return["Input can not be blank."];if(this.errors.length!==0){let n=new Set,t=[];for(const e of this.errors){if(n.has(e.message))continue;let i=`At ${e.lineNumber}: (${e.line}) ${e.message}.`;e.usage&&(i+=` Usage: ${e.usage}`),t.push(i),n.add(e.message)}return t}return[]},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted:function(){this.editor=La.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const n=this.buildScreenMode();this.editor.session.setMode(new n),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new iA],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeUnmount(){this.editor.destroy(),this.editor.container.remove()},methods:{showContextMenu:function(n){this.menuX=n.pageX,this.menuY=n.pageY;let t=this.editor.getCursorPosition(),e=this.editor.session.getTokenAt(t.row,t.column);if(e){let i=e.value.trim();i.includes(" ")?this.docsKeyword=i.split(" ")[0]:this.docsKeyword=i,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){let n=La.require("ace/lib/oop"),t=La.require("ace/mode/text_highlight_rules").TextHighlightRules,e=this.keywords.join("|"),i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${e})\\b`)}]},this.normalizeRules()};n.inherits(i,t);let m=function(){this.HighlightRules=i},p=La.require("ace/mode/text").Mode;return n.inherits(m,p),(function(){this.$id="ace/mode/openc3"}).call(m.prototype),m},downloadScreen:function(){const n=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(n),t.setAttribute("download",`${this.screen.toLowerCase()}.txt`),t.click()},loadFile:function(){const n=new FileReader;n.readAsText(this.file);const t=this;n.onload=function(){t.editor.setValue(n.result),t.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then(n=>{this.$emit("delete")})}}},oA={class:"mx-2"},sA={class:"mx-2"},aA=["textContent"];function lA(n,t,e,i,m,p){const v=Pe("v-icon"),w=Pe("v-tooltip"),h=Pe("v-spacer"),f=Pe("v-toolbar"),s=Pe("v-row"),l=Pe("v-btn"),a=Pe("v-file-input"),c=Pe("v-list-item-title"),o=Pe("v-list-item"),u=Pe("v-list"),g=Pe("v-menu"),y=Pe("v-card-text"),b=Pe("v-card"),L=Pe("v-dialog");return bt(),Yt(L,{persistent:"",modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=A=>p.show=A),width:"75vw"},{default:_e(()=>[xe(b,null,{default:_e(()=>[xe(f,{height:"24"},{default:_e(()=>[xt("div",oA,[xe(w,{location:"top"},{activator:_e(({props:A})=>[xt("div",Bi(Wi(A)),[xe(v,{"data-test":"delete-screen-icon",onClick:p.deleteScreen},{default:_e(()=>t[6]||(t[6]=[Mt(" mdi-delete ")])),_:1},8,["onClick"])],16)]),default:_e(()=>[t[7]||(t[7]=xt("span",null," Delete Screen ",-1))]),_:1})]),xe(h),xt("span",null," Edit Screen: "+Ut(e.target)+" "+Ut(e.screen),1),xe(h),xt("div",sA,[xe(w,{location:"top"},{activator:_e(({props:A})=>[xt("div",Bi(Wi(A)),[xe(v,{"data-test":"download-screen-icon",onClick:p.downloadScreen},{default:_e(()=>t[8]||(t[8]=[Mt(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:_e(()=>[t[9]||(t[9]=xt("span",null," Download Screen ",-1))]),_:1})])]),_:1}),xe(y,null,{default:_e(()=>[xe(s,{class:"mt-3"},{default:_e(()=>t[10]||(t[10]=[Mt(" Upload a screen file. ")])),_:1}),xe(s,{"no-gutters":"",align:"center"},{default:_e(()=>[xe(l,{onClick:p.loadFile,disabled:!m.file,color:"primary",class:"mr-3","data-test":"edit-screen-load"},{default:_e(()=>t[11]||(t[11]=[Mt(" Load ")])),_:1},8,["onClick","disabled"]),xe(a,{modelValue:m.file,"onUpdate:modelValue":t[0]||(t[0]=A=>m.file=A),"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},null,8,["modelValue"])]),_:1}),xe(s,{class:"mb-2"},{default:_e(()=>t[12]||(t[12]=[Mt(" Edit the screen definition. ")])),_:1}),xe(s,{class:"mb-2"},{default:_e(()=>[xt("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=Mc((...A)=>p.showContextMenu&&p.showContextMenu(...A),["prevent"]))},null,544),xe(g,{modelValue:m.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=A=>m.contextMenu=A),target:[m.menuX,m.menuY]},{default:_e(()=>[xe(u,null,{default:_e(()=>[xe(o,{link:""},{default:_e(()=>[xe(c,{onClick:p.openDocumentation},{default:_e(()=>[Mt(Ut(m.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),(bt(!0),Li(Gd,null,Yd(p.editErrors,(A,k)=>(bt(),Yt(s,{key:k,class:"my-3"},{default:_e(()=>[xt("span",{class:"text-red",textContent:Ut(A)},null,8,aA)]),_:2},1024))),128)),xe(s,null,{default:_e(()=>[t[15]||(t[15]=xt("span",null,"Ctrl-space brings up autocomplete. Right click keywords for documentation.",-1)),xe(h),xe(l,{onClick:t[3]||(t[3]=A=>n.$emit("cancel")),class:"mx-2",variant:"outlined","data-test":"edit-screen-cancel"},{default:_e(()=>t[13]||(t[13]=[Mt(" Cancel ")])),_:1}),xe(l,{onClick:t[4]||(t[4]=A=>n.$emit("save",n.editor.getValue())),class:"mx-2",color:"primary","data-test":"edit-screen-save"},{default:_e(()=>t[14]||(t[14]=[Mt(" Save ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const cA=Sr(rA,[["render",lA],["__scopeId","data-v-9e086b45"]]),uA={};function hA(n,t){const e=Pe("v-card-title"),i=Pe("v-card-text"),m=Pe("v-card");return bt(),Yt(m,null,{default:_e(()=>[xe(e,null,{default:_e(()=>t[0]||(t[0]=[Mt("404 Not Found Error")])),_:1}),xe(i,null,{default:_e(()=>[t[1]||(t[1]=Mt("The requested URL ")),xt("code",null,Ut(n.$route.fullPath),1),t[2]||(t[2]=Mt(" was not routable."))]),_:1})]),_:1})}const dA=Sr(uA,[["render",hA]]),Ph=20,pA={mixins:[$k],components:{EditScreenDialog:cA},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0},timeZone:{type:String,default:"local"}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0,screenId:Tf.uniqueId("openc3-screen_")}},watch:{count:{handler(n,t){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let n=new Set,t="";for(const e of this.errors){if(n.has(e.message))continue;let i=`${e.time}: (${e.type}) ${e.message}
1416
+ `;t+=i,n.add(e.message)}return t}return null},computedStyle(){var n;let t={};const e=this.width||((n=this.$refs.bar)==null?void 0:n.clientWidth);return this.floated&&(t.position="absolute",t.top=this.top+"px",t.left=this.left+"px",t.width=e+"px"),t}},errorCaptured(n,t,e){return console.log({err:n,vm:t,info:e}),this.errors.length<Ph&&(console.log({errors:this.errors}),n.usage?this.errors.push({type:"usage",message:n.message,usage:n.usage,line:n.line,lineNumber:n.lineNumber,time:new Date().getTime()}):this.errors.push({type:"error",message:n,time:new Date().getTime()}),this.configError=!0),!1},created(){this.api=new Ga,this.configParser=new j1,this.parseDefinition(),this.screenKey=Math.floor(Math.random()*1e6)},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},unmounted(){this.updater!=null&&(clearInterval(this.updater),this.updater=null)},methods:{open(n,t){this.$parent.showScreen(n,t)},close(n,t){this.$parent.closeScreenByName(n,t)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let n=this.pollingPeriod*1e3;this.updater&&clearInterval(this.updater),this.updater=setInterval(()=>{this.update()},n)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,(n,t,e,i)=>{if(n)switch(n){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${n} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(t[0]),this.height=parseInt(t[1]),this.pollingPeriod=parseFloat(t[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${n}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${n} <Time (s)>`),this.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":(this.currentLayout.widgets[this.currentLayout.widgets.length-1]??this.currentLayout).settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(t);break;default:this.processWidget(n,t,e,i);break}}),typeof this.layoutStack[0]>"u"){let n=[],t=[];for(const e of this.dynamicWidgets)n.push(e.name),t.push(e.lineNumber);this.errors.length<Ph&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${n.join(",")}?`,lineNumber:t.join(","),time:new Date().getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let n=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),t=this.$refs.bar.getBoundingClientRect();this.top=t.top-n.top-5,this.left=t.left-n.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(n){n=n||window.event,n.preventDefault(),this.dragX=n.clientX,this.dragY=n.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(n){n=n||window.event,n.preventDefault();let t=this.dragX-n.clientX,e=this.dragY-n.clientY;this.dragX=n.clientX,this.dragY=n.clientY,this.top=this.$refs.bar.offsetTop-e,this.left=this.$refs.bar.offsetLeft-t,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(Math.random()*1e6),this.$nextTick(function(){this.clearErrors(),this.$emit("edit-screen")})},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(n){this.editDialog=!1,this.currentDefinition=n,this.rerender(),this.$nextTick(function(){Jc.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)})},deleteScreen:function(){this.editDialog=!1,Jc.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then(n=>{this.$emit("delete-screen")})},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(n,t,e,i){let m=null;n==="NAMED_WIDGET"&&(this.configParser.verify_num_parameters(2,null,`${n} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),m=t[0].toUpperCase(),n=t[1].toUpperCase(),t=t.slice(2,t.length));const p=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()+"Widget";let v=[];if(v.push(["__SCREEN_ID__",this.screenId]),m!==null&&v.push(["NAMED_WIDGET",m]),n==="VERTICAL"||n==="VERTICALBOX"||n==="HORIZONTAL"||n==="HORIZONTALBOX"||n==="MATRIXBYCOLUMNS"||n==="TABBOOK"||n==="TABITEM"||n==="CANVAS"||n==="RADIOGROUP"||n==="SCROLLWINDOW"){const w={type:p,parameters:t,settings:v,screenValues:this.screenValues,screenTimeZone:this.timeZone,widgets:[]};this.layoutStack.push(w),this.currentLayout.widgets.push(w),this.currentLayout=w}else if(this.$options.components[p])this.currentLayout.widgets.push({type:p,target:this.target,parameters:t,settings:v,screenValues:this.screenValues,screenTimeZone:this.timeZone,line:e,lineNumber:i});else{let w={type:"DynamicWidget",target:this.target,parameters:t,settings:v,screenValues:this.screenValues,screenTimeZone:this.timeZone,name:p,line:e,lineNumber:i};this.currentLayout.widgets.push(w),this.dynamicWidgets.push(w)}},applyGlobalSettings:function(n){n.forEach(t=>{this.globalSettings.forEach(e=>{t.type.toLowerCase()===e[0].toLowerCase()+"widget"&&t.settings.push(e.slice(1))}),t.widgets&&this.applyGlobalSettings(t.widgets)})},update:function(){this.screenItems.length!==0&&this.configError===!1&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then(n=>{this.clearErrors(),this.updateValues(n)}).catch(n=>{let t=JSON.stringify(n,null,2);t.includes("no response received")||(this.configError=!0),this.errors.find(e=>e.message===t)||this.errors.length<Ph&&this.errors.push({type:"error",message:t,time:new Date().getTime()})})},updateValues:function(n){this.updateCounter+=1;for(let t=0;t<n.length;t++)n[t].push(this.updateCounter),this.screenValues[this.screenItems[t]]=n[t]},addItem:function(n){this.screenItems.push(n),this.screenValues[n]=[null,null,0]},deleteItem:function(n){let t=this.screenItems.indexOf(n);this.screenItems.splice(t,1)}}},fA={class:"pa-1",style:{position:"relative"},ref:"screen"};function gA(n,t,e,i,m,p){const v=Pe("v-icon"),w=Pe("v-tooltip"),h=Pe("v-spacer"),f=Pe("v-toolbar"),s=Pe("v-overlay"),l=Pe("vertical-widget"),a=Pe("v-expand-transition"),c=Pe("v-card"),o=Pe("edit-screen-dialog"),u=Pe("v-textarea"),g=Pe("v-dialog");return bt(),Li("div",{style:Ro(p.computedStyle),ref:"bar"},[xe(c,{"min-height":m.height,"min-width":m.width,style:{cursor:"default"}},{default:_e(()=>[xe(f,{height:"24"},{default:_e(()=>[kr(xt("div",null,[xe(w,{location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[xe(v,{"data-test":"error-graph-icon",onClick:t[0]||(t[0]=b=>m.errorDialog=!0)},{default:_e(()=>t[7]||(t[7]=[Mt(" mdi-alert ")])),_:1})],16)]),default:_e(()=>[t[8]||(t[8]=xt("span",null," Errors ",-1))]),_:1})],512),[[$r,m.errors.length!==0]]),xe(w,{location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[xe(v,{"data-test":"edit-screen-icon",onClick:p.openEdit},{default:_e(()=>t[9]||(t[9]=[Mt(" mdi-pencil ")])),_:1},8,["onClick"])],16)]),default:_e(()=>[t[10]||(t[10]=xt("span",null," Edit Screen ",-1))]),_:1}),e.fixFloated?On("",!0):(bt(),Yt(w,{key:0,location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[xe(v,{"data-test":"float-screen-icon",onClick:p.floatScreen},{default:_e(()=>[Mt(Ut(m.floated?"mdi-balloon":"mdi-view-grid-outline"),1)]),_:1},8,["onClick"])],16)]),default:_e(()=>[xt("span",null,Ut(m.floated?"Unfloat Screen":"Float Screen"),1)]),_:1})),m.floated?(bt(),Yt(w,{key:1,location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[xe(v,{"data-test":"up-screen-icon",onClick:p.upScreen},{default:_e(()=>t[11]||(t[11]=[Mt(" mdi-arrow-up ")])),_:1},8,["onClick"])],16)]),default:_e(()=>[t[12]||(t[12]=xt("span",null," Move Screen Up ",-1))]),_:1})):On("",!0),m.floated&&m.zIndex>e.minZ?(bt(),Yt(w,{key:2,location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[xe(v,{"data-test":"down-screen-icon",onClick:p.downScreen},{default:_e(()=>t[13]||(t[13]=[Mt(" mdi-arrow-down ")])),_:1},8,["onClick"])],16)]),default:_e(()=>[t[14]||(t[14]=xt("span",null," Move Screen Down ",-1))]),_:1})):On("",!0),xe(h),xt("span",null,Ut(e.target)+" "+Ut(e.screen),1),xe(h),xe(w,{location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[kr(xe(v,{"data-test":"minimize-screen-icon",onClick:p.minMaxTransition},{default:_e(()=>t[15]||(t[15]=[Mt(" mdi-window-minimize ")])),_:1},8,["onClick"]),[[$r,m.expand]]),kr(xe(v,{"data-test":"maximize-screen-icon",onClick:p.minMaxTransition},{default:_e(()=>t[16]||(t[16]=[Mt(" mdi-window-maximize ")])),_:1},8,["onClick"]),[[$r,!m.expand]])],16)]),default:_e(()=>[kr(xt("span",null," Minimize Screen ",512),[[$r,m.expand]]),kr(xt("span",null," Maximize Screen ",512),[[$r,!m.expand]])]),_:1}),e.showClose?(bt(),Yt(w,{key:3,location:"top"},{activator:_e(({props:y})=>[xt("div",Bi(Wi(y)),[xe(v,{"data-test":"close-screen-icon",onClick:t[1]||(t[1]=b=>n.$emit("close-screen"))},{default:_e(()=>t[17]||(t[17]=[Mt(" mdi-close-box ")])),_:1})],16)]),default:_e(()=>[t[18]||(t[18]=xt("span",null," Close Screen ",-1))]),_:1})):On("",!0)]),_:1}),m.editDialog?On("",!0):(bt(),Yt(a,{key:0},{default:_e(()=>[kr(xt("div",fA,[xe(s,{style:{"pointer-events":"none"},"model-value":m.errors.length!==0,opacity:"0.8",absolute:"",attach:""},null,8,["model-value"]),(bt(),Yt(l,{key:m.screenKey,widgets:m.layoutStack[0].widgets,"screen-values":m.screenValues,"screen-time-zone":e.timeZone,onAddItem:p.addItem,onDeleteItem:p.deleteItem,onOpen:p.open,onClose:p.close,onCloseAll:p.closeAll},null,8,["widgets","screen-values","screen-time-zone","onAddItem","onDeleteItem","onOpen","onClose","onCloseAll"]))],512),[[$r,m.expand]])]),_:1}))]),_:1},8,["min-height","min-width"]),m.editDialog?(bt(),Yt(o,{key:0,modelValue:m.editDialog,"onUpdate:modelValue":t[2]||(t[2]=y=>m.editDialog=y),target:e.target,screen:e.screen,definition:m.currentDefinition,keywords:e.keywords,errors:m.errors,onSave:t[3]||(t[3]=y=>p.saveEdit(y)),onCancel:t[4]||(t[4]=y=>p.cancelEdit()),onDelete:t[5]||(t[5]=y=>p.deleteScreen())},null,8,["modelValue","target","screen","definition","keywords","errors"])):On("",!0),xe(g,{modelValue:m.errorDialog,"onUpdate:modelValue":t[6]||(t[6]=y=>m.errorDialog=y),"max-width":"600"},{default:_e(()=>[xe(f,{height:"24"},{default:_e(()=>[xe(h),xt("span",null," Screen: "+Ut(e.target)+" "+Ut(e.screen)+" Errors ",1),xe(h)]),_:1}),xe(c,null,{default:_e(()=>[xe(u,{class:"errors",readonly:"",rows:"13","model-value":p.error},null,8,["model-value"])]),_:1})]),_:1},8,["modelValue"])],4)}const rO=In("Q",Sr(pA,[["render",gA],["__scopeId","data-v-1e67d382"]])),mA={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:n=>["cmd","tlm"].includes(n)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},data(){var n,t,e;return{targetNames:[],selectedTargetName:(n=this.initialTargetName)==null?void 0:n.toUpperCase(),packetNames:[],selectedPacketName:(t=this.initialPacketName)==null?void 0:t.toUpperCase(),itemNames:[],selectedItemName:(e=this.initialItemName)==null?void 0:e.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created(){this.internalDisabled=!0,this.api=new Ga,this.api.get_target_names().then(n=>{this.targetNames=n.flatMap(t=>t=="UNKNOWN"?[]:{label:t,value:t}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)})},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray()&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(n,t){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(n,t){n?this.updateItems():this.itemNames=[]}},methods:{updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const n=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[n](this.selectedTargetName,this.hidden).then(t=>{this.packetNames=t.map(e=>({label:e,value:e})),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName),this.packetNames.find(e=>e.value===this.selectedPacketName)&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1})},updateItems:function(){if(this.selectedPacketName==="ALL")return;this.internalDisabled=!0;const n=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[n](this.selectedTargetName,this.selectedPacketName).then(t=>{this.itemNames=t.items.map(e=>{let i=e.name;return e.data_type=="DERIVED"&&(i+=" *"),[{label:i,value:e.name,description:e.description,array:e.array_size/e.bit_size}]}).reduce((e,i)=>e.concat(i),[]),this.itemNames.sort((e,i)=>e.label>i.label?1:-1),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1})},itemIsArray:function(){let n=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return n===-1?(this.selectedArrayIndex=null,!1):isNaN(this.itemNames[n].array)?(this.selectedArrayIndex=null,!1):(this.selectedArrayIndex===null&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let n=this.itemNames.findIndex(e=>e.value===this.selectedItemName),t=[...Array(this.itemNames[n].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(n){this.selectedTargetName=n,this.selectedPacketName="",this.selectedItemName="",n!==null&&this.updatePackets()},packetNameChanged:function(n){this.selectedItemName="",n!==null&&this.updatePacketDetails(n)},updatePacketDetails:function(n){if(n==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find(e=>n===e.value);if(t){this.selectedPacketName=t.value;const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then(i=>{this.description=i.description,this.hazardous=i.hazardous})}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(n){const t=this.itemNames.find(e=>n===e.value);t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(n){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(n=>{if(n===this.ALL)return;const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,n.value).then(e=>{e.items.forEach(i=>{this.$emit("addItem",{targetName:this.selectedTargetName,packetName:n.value,itemName:i.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(n=>{n!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:n.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},vA={class:"pt-4 pb-4"};function yA(n,t,e,i,m,p){const v=Pe("v-autocomplete"),w=Pe("v-col"),h=Pe("v-combobox"),f=Pe("v-btn"),s=Pe("v-row");return bt(),Li("div",vA,[xe(s,{"no-gutters":!e.vertical},{default:_e(()=>[xe(w,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:_e(()=>[xe(v,{label:"Select Target","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[p.targetNameChanged,t[0]||(t[0]=l=>m.selectedTargetName=l)],items:m.targetNames,"item-title":"label","item-value":"value",modelValue:m.selectedTargetName},null,8,["onUpdate:modelValue","items","modelValue"])]),_:1},8,["cols"]),xe(w,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:_e(()=>[xe(v,{label:"Select Packet","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[p.packetNameChanged,t[1]||(t[1]=l=>m.selectedPacketName=l)],disabled:m.packetsDisabled||p.autocompleteDisabled,items:m.packetNames,"item-title":"label","item-value":"value",modelValue:m.selectedPacketName},null,8,["onUpdate:modelValue","disabled","items","modelValue"])]),_:1},8,["cols"]),e.chooseItem?(bt(),Yt(w,{key:0,cols:p.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:_e(()=>[xe(v,{label:"Select Item","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[2]||(t[2]=l=>p.itemNameChanged(l)),t[3]||(t[3]=l=>m.selectedItemName=l)],disabled:m.itemsDisabled||p.autocompleteDisabled,items:m.itemNames,"item-title":"label","item-value":"value",modelValue:m.selectedItemName},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"])):On("",!0),e.chooseItem&&p.itemIsArray()?(bt(),Yt(w,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:_e(()=>[xe(h,{label:"Index","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[4]||(t[4]=l=>p.indexChanged(l)),t[5]||(t[5]=l=>m.selectedArrayIndex=l)],disabled:m.itemsDisabled||p.autocompleteDisabled,items:p.arrayIndexes(),"item-title":"label","item-value":"value",modelValue:m.selectedArrayIndex},null,8,["disabled","items","modelValue"])]),_:1})):On("",!0),e.buttonText?(bt(),Yt(w,{key:2,cols:p.colSize,style:{"max-width":"140px"}},{default:_e(()=>[xe(f,{disabled:p.buttonDisabled,color:"primary","data-test":"select-send",onClick:p.buttonPressed},{default:_e(()=>[Mt(Ut(p.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):On("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(bt(),Yt(s,{key:0,"no-gutters":"",class:"pt-6"},{default:_e(()=>[xe(w,{cols:p.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:_e(()=>[xe(v,{label:"Value Type","hide-details":"",density:"compact",variant:"outlined",items:m.valueTypes,modelValue:m.selectedValueType,"onUpdate:modelValue":t[6]||(t[6]=l=>m.selectedValueType=l)},null,8,["items","modelValue"])]),_:1},8,["cols"]),xe(w,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:_e(()=>[xe(v,{label:"Reduced","hide-details":"",density:"compact",variant:"outlined",items:m.reductionModes,modelValue:m.selectedReduced,"onUpdate:modelValue":t[7]||(t[7]=l=>m.selectedReduced=l)},null,8,["items","modelValue"])]),_:1},8,["cols"]),xe(w,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:_e(()=>[xe(v,{label:"Reduced Type","hide-details":"",density:"compact",variant:"outlined",disabled:m.selectedReduced==="DECOM",items:m.reducedTypes,modelValue:m.selectedReducedType,"onUpdate:modelValue":t[8]||(t[8]=l=>m.selectedReducedType=l)},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"]),xe(w,{cols:p.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):On("",!0),xe(s,{"no-gutters":"",class:"pa-3"},{default:_e(()=>[m.hazardous?(bt(),Yt(w,{key:0,cols:p.colSize,class:"openc3-yellow"},{default:_e(()=>[Mt("Description: "+Ut(m.description)+" (HAZARDOUS)",1)]),_:1},8,["cols"])):(bt(),Yt(w,{key:1,cols:p.colSize},{default:_e(()=>[Mt("Description: "+Ut(m.description),1)]),_:1},8,["cols"]))]),_:1})])}const oO=In("$",Sr(mA,[["render",yA],["__scopeId","data-v-980a401d"]])),W0=[{path:"/:target?/:packet?",name:"CommandSender",component:()=>De(()=>Oe.import("./CommandSender-da769df0c665acc1ae58.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:dA}];W0.forEach(lp);const wA=ip({history:rp(),routes:W0}),bA={dark:!0,colors:{primary:"#005A8F",secondary:"#4DACFF",tertiary:"#BBC1C9","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},xA={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},_A=["innerHTML"],kA={key:2},$A={key:3,class:"validate mt-4"};function SA(n,t,e,i,m,p){const v=Pe("v-spacer"),w=Pe("v-toolbar"),h=Pe("v-icon"),f=Pe("v-text-field"),s=Pe("v-card-text"),l=Pe("v-btn"),a=Pe("v-card-actions"),c=Pe("v-card"),o=Pe("v-dialog"),u=Pe("v-app");return bt(),Yt(u,null,{default:_e(()=>[xe(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=g=>n.show=g),width:"600"},{default:_e(()=>[xe(c,null,{default:_e(()=>[xe(w,{height:"24"},{default:_e(()=>[xe(v),xt("span",null,Ut(n.params.title),1),xe(v)]),_:1}),xe(s,{class:"mt-4 pa-3"},{default:_e(()=>[n.params.validateText?(bt(),Yt(h,{key:0,class:"mr-2"},{default:_e(()=>t[2]||(t[2]=[Mt(" mdi-alert ")])),_:1})):On("",!0),n.params.html?(bt(),Li("span",{key:1,innerHTML:n.params.text},null,8,_A)):(bt(),Li("span",kA,Ut(n.params.text),1)),n.params.validateText?(bt(),Li("div",$A,[Mt(" Enter "+Ut(n.params.validateText)+" to confirm! ",1),xe(f,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=g=>n.validationText=g),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):On("",!0)]),_:1}),xe(a,{class:"px-2"},{default:_e(()=>[xe(v),n.params.cancelText?(bt(),Yt(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:_e(()=>[Mt(Ut(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):On("",!0),xe(l,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:_e(()=>[Mt(Ut(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const CA=Sr(xA,[["render",SA],["__scopeId","data-v-581c0293"]]);class AA{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(CA);t.use(Hh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:i,okClass:m,validateText:p,cancelText:v,html:w}){return this.mount(),new Promise((h,f)=>{this.$root.dialog({title:t,text:e,okText:i,okClass:m,validateText:p,cancelText:v,html:w},h,f)})}confirm(t,{okText:e="Ok",cancelText:i="Cancel",okClass:m="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:m,validateText:null,cancelText:i,html:!1})}alert(t,{okText:e="Ok",html:i=!1,okClass:m="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:m,validateText:null,cancelText:null,html:i})}validate(t,{okText:e="Ok",validateText:i="CONFIRM",cancelText:m="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:p,validateText:i,cancelText:m,html:!1})}}const TA={install(n,t){const e=new AA;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},MA={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
1417
+ --toast-bg-color:${Fh[this.toastNotification.level]};
1418
+ --toast-fg-color:${eA(this.toastNotification.level)};
1419
+ `},contentStyle:function(){return`
1420
+ white-space: ${this.expanded?"normal":"nowrap"};
1421
+ overflow-x: ${this.expanded?"visible":"hidden"};
1422
+ text-overflow: ${this.expanded?"unset":"ellipsis"};
1423
+ `}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},EA={key:0,class:"text-subtitle-1 mr-1 notification-text"},LA={key:1,class:"text-body-2 notification-text"},RA={key:2,class:"text-body-2 notification-text"};function IA(n,t,e,i,m,p){const v=Pe("v-icon"),w=Pe("v-spacer"),h=Pe("v-btn"),f=Pe("v-sheet"),s=Pe("v-slide-y-transition");return bt(),Yt(s,null,{default:_e(()=>[kr(xe(f,{style:Ro(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:_e(()=>[xe(v,{class:"mr-1 notification-text"},{default:_e(()=>[Mt(Ut(p.toastNotificationIcon),1)]),_:1}),xt("div",{class:"toast-content",style:Ro(p.contentStyle)},[n.toastNotification.title?(bt(),Li("span",EA,Ut(n.toastNotification.title)+": ",1)):On("",!0),n.toastNotification.body?(bt(),Li("span",LA,Ut(n.toastNotification.body),1)):On("",!0),n.toastNotification.message?(bt(),Li("span",RA,Ut(n.toastNotification.message),1)):On("",!0)],4),xe(w),xe(h,{variant:"text",onClick:Mc(p.hide,["stop"]),class:"notification-text"},{default:_e(()=>t[0]||(t[0]=[Mt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[$r,n.showToast]])]),_:1})}const OA=Sr(MA,[["render",IA],["__scopeId","data-v-b0459ba8"]]);class DA{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Lc(OA);t.use(Hh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:i,message:m,level:p,duration:v,type:w="alert",logToConsole:h=!1,saveToHistory:f=!0}){this.mount(),h&&console.log(m?`${p.toUpperCase()} - ${m}`:`${p.toUpperCase()} - ${e}: ${i}`),f&&this.$store.commit("notifyAddHistory",{title:e,body:i,message:m,level:p}),this[t]({title:e,body:i,message:m,level:p,duration:v,type:w})}toast({title:t,body:e,message:i,level:m,duration:p,type:v}){this.$root.toast({title:t,body:e,message:i,level:m,type:v},p)}critical({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}caution({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}off({title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:i,type:m,duration:p,logToConsole:v,saveToHistory:w})}}const NA={install(n,t){const e=new DA(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},j0=100,U0=op({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=j0&&(n.notifyHistory.length=j0-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function V0(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function FA(n,t){const e={},i=new Set(Object.keys(n));for(const m of t)i.has(m)&&(e[m]=n[m]);return e}function q0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const i={};for(const m in n)i[m]=n[m];for(const m in t){const p=n[m],v=t[m];if(V0(p)&&V0(v)){i[m]=q0(p,v,e);continue}if(e&&Array.isArray(p)&&Array.isArray(v)){i[m]=e(p,v);continue}i[m]=v}return i}function Ws(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ws.cache.has(n))return Ws.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ws.cache.set(n,t),t}Ws.cache=new Map;function PA(n){Qd(`Vuetify: ${n}`)}function G0(n,t){return e=>Object.keys(n).reduce((i,m)=>{const p=typeof n[m]=="object"&&n[m]!=null&&!Array.isArray(n[m])?n[m]:{type:n[m]};return e&&m in e?i[m]={...p,default:e[m]}:i[m]=p,t&&!i[m].source&&(i[m].source=t),i},{})}function Y0(n,t){const e=tp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function zA(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y0("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const zh=Symbol.for("vuetify:defaults");function K0(){const n=Xd(zh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function HA(n,t){var e,i;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((i=n.props)==null?void 0:i[Ws(t)])<"u"}function BA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:K0();const i=Y0("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const m=Ec(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),p=new Proxy(n,{get(h,f){var s,l,a,c,o,u,g;const y=Reflect.get(h,f);return f==="class"||f==="style"?[(s=m.value)==null?void 0:s[f],y].filter(b=>b!=null):typeof f=="string"&&!HA(i.vnode,f)?((l=m.value)==null?void 0:l[f])!==void 0?(a=m.value)==null?void 0:a[f]:((o=(c=e.value)==null?void 0:c.global)==null?void 0:o[f])!==void 0?(g=(u=e.value)==null?void 0:u.global)==null?void 0:g[f]:y:y}}),v=Jd();ep(()=>{if(m.value){const h=Object.entries(m.value).filter(f=>{let[s]=f;return s.startsWith(s[0].toUpperCase())});v.value=h.length?Object.fromEntries(h):void 0}else v.value=void 0});function w(){const h=zA(zh,i);np(zh,Ec(()=>v.value?q0((h==null?void 0:h.value)??{},v.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:w}}function $l(n){if(n._setup=n._setup??n.setup,!n.name)return PA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=G0(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return FA(e,t)},n.props._as=String,n.setup=function(e,i){const m=K0();if(!m.value)return n._setup(e,i);const{props:p,provideSubDefaults:v}=BA(e,e._as??n.name,m),w=n._setup(p,i);return v(),w}}return n}function WA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?$l:Zd)(t)}const jA=[String,Function,Object,Array],Sl=G0({icon:{type:jA},tag:{type:String,required:!0}},"icon");WA()({name:"VComponentIcon",props:Sl(),setup(n,t){let{slots:e}=t;return()=>{const i=n.icon;return xe(n.tag,null,{default:()=>{var m;return[n.icon?xe(i,null,null):(m=e.default)==null?void 0:m.call(e)]}})}}}),$l({name:"VSvgIcon",inheritAttrs:!1,props:Sl(),setup(n,t){let{attrs:e}=t;return()=>xe(n.tag,Kd(e,{style:null}),{default:()=>[xe("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(i=>Array.isArray(i)?xe("path",{d:i[0],"fill-opacity":i[1]},null):xe("path",{d:i},null)):xe("path",{d:n.icon},null)])]})}}),$l({name:"VLigatureIcon",props:Sl(),setup(n){return()=>xe(n.tag,null,{default:()=>[n.icon]})}});const UA=$l({name:"VClassIcon",props:Sl(),setup(n){return()=>xe(n.tag,{class:n.icon},null)}}),VA={component:n=>bs(UA,{...n,class:"mdi"})},Hh=sp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:bA}},icons:{defaultSet:"mdi",sets:{mdi:VA,...nA}}}),Bh=Wy({createApp:Lc,appOptions:{render(){return bs(Zy,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(wA),n.use(U0),n.use(Hh),n.use(TA),n.use(NA,{store:U0})}}),sO=In("f",Bh.bootstrap),aO=In("m",Bh.mount),lO=In("u",Bh.unmount)}}});