openc3-cosmos-tool-tlmviewer 5.20.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +1 -1
- data/tools/tlmviewer/ArrayWidget-BTxChSds-f9d7aff0cd64dc4af677.js +2 -0
- data/tools/tlmviewer/BarColumn-Cdu3OoMa-8d82722b7b5e62629a35.js +1 -0
- data/tools/tlmviewer/BlockWidget-PmjzrkXF-5ae8e08c4a33e66be878.js +2 -0
- data/tools/tlmviewer/ButtonWidget-nwDlOBJT-9c62e34d1c157b97bd44.js +2 -0
- data/tools/tlmviewer/CanvasWidget-BL8930eT-188b85274dd6e0481076.js +1 -0
- data/tools/tlmviewer/CanvasdotWidget-VCf1fL-G-4addafa734fbe01e01d2.js +1 -0
- data/tools/tlmviewer/CanvasimageWidget-BIw7Wbf2-f556e479f270b6f7e1e8.js +1 -0
- data/tools/tlmviewer/CanvasimagevalueWidget-CE3Dj5bH-61813e93f4ce39b4cce2.js +1 -0
- data/tools/tlmviewer/CanvaslabelWidget-DWmb356h-b87dfe68f77561ff7eab.js +1 -0
- data/tools/tlmviewer/CanvaslabelvalueWidget-CI3yYwFs-cd3e5ce0d875355790e8.js +1 -0
- data/tools/tlmviewer/CanvaslineWidget-COeapH3P-5ed0f7c483b60fba1b20.js +1 -0
- data/tools/tlmviewer/CanvaslinevalueWidget-CI-Bbzfi-2d4e44e28522af7ed0fc.js +1 -0
- data/tools/tlmviewer/CheckbuttonWidget-BQhggcZ2-d1f2a4351b6b5b9a9b81.js +1 -0
- data/tools/tlmviewer/ComboboxWidget-BzsbOv54-6fd16140b1b60078529d.js +1 -0
- data/tools/tlmviewer/DateWidget-B5R_9rA8-4b8f5a655a8cf17aa907.js +1 -0
- data/tools/tlmviewer/DetailsDialog-DLRMqetn-8f3b8c2058cbb4487dd9.js +1 -0
- data/tools/tlmviewer/DynamicWidget-m9EliUR2-7760dada6647945b4903.js +1 -0
- data/tools/tlmviewer/FormatvalueWidget-DZkRJce8-6973ff704f1f01e6eb53.js +1 -0
- data/tools/tlmviewer/GraphWidget-amwxyH1r-163128d49b76f4de0524.js +1 -0
- data/tools/tlmviewer/HorizontalWidget-CirtfuL8-d0c976471f208754a41e.js +1 -0
- data/tools/tlmviewer/HorizontalboxWidget-CyTDt2nl-bbf9f59fbabdb01980b8.js +1 -0
- data/tools/tlmviewer/HorizontallineWidget-BdlNB951-ab49ce4d35551b3018b8.js +1 -0
- data/tools/tlmviewer/IframeWidget-DnJmCrCA-62af6b154ccc91fd8cb5.js +1 -0
- data/tools/tlmviewer/ImageLoader-CpcR6tPi-1b62c2941e0b49298f1a.js +1 -0
- data/tools/tlmviewer/ImageviewerWidget-DIkmb_C9-485cc1d532e23ae4b5b2.js +1 -0
- data/tools/tlmviewer/LabelWidget-BDsypYho-377347a49c09b718a1f6.js +1 -0
- data/tools/tlmviewer/LabelledWidget-DjturGl5-7f24cc5599b66c12b2f1.js +1 -0
- data/tools/tlmviewer/LabelprogressbarWidget-RADJGLj3-9d2243f7ddf8904a0cfe.js +1 -0
- data/tools/tlmviewer/LabelsparklineWidget-BlJoICxu-cf16050d0ee486966ec7.js +1 -0
- data/tools/tlmviewer/LabelvalueWidget-DVWJqnlY-05fecfc99fd33ad654aa.js +1 -0
- data/tools/tlmviewer/LabelvaluedescWidget-CsUP7J4U-1e6251e1cf3a6a7e5b59.js +1 -0
- data/tools/tlmviewer/LabelvaluelimitsbarWidget-Blj1QXV8-e030775dfb9553618269.js +1 -0
- data/tools/tlmviewer/LabelvaluelimitscolumnWidget-CvCo-uCe-5854a22f738f11b61b9c.js +1 -0
- data/tools/tlmviewer/LabelvaluerangebarWidget-DpcXhlfF-a2dc9567d0f19cfeb8f9.js +1 -0
- data/tools/tlmviewer/Layout-C1HoM4Kl-16582a7fb597a91b7893.js +1 -0
- data/tools/tlmviewer/LedWidget-B_K2e5tq-838e2eb68c3aeea79b43.js +1 -0
- data/tools/tlmviewer/LimitsbarWidget-DXbqsi4J-a0b11379621e58f2e076.js +1 -0
- data/tools/tlmviewer/LimitscolorWidget-Ckmuw0YX-1642733882daa04ec5a0.js +1 -0
- data/tools/tlmviewer/LimitscolumnWidget-BfY4su5U-5b67e1bac65777add469.js +1 -0
- data/tools/tlmviewer/LinegraphWidget-y-Qy9P0R-fc12c36171d5e5f0e604.js +1 -0
- data/tools/tlmviewer/MatrixbycolumnsWidget-BTBColrs-838970fd44fd6454be07.js +1 -0
- data/tools/tlmviewer/ProgressbarWidget-DpA_-vy9-3a38ee774aba10a8a15c.js +1 -0
- data/tools/tlmviewer/RadiobuttonWidget-BO8zpgwW-b471e7a498cb16db4d70.js +1 -0
- data/tools/tlmviewer/RadiogroupWidget-Oy7V4S-V-723fa661d99951386278.js +1 -0
- data/tools/tlmviewer/RangebarWidget-DHS7S3vI-e692659dc1e7d71f25e6.js +1 -0
- data/tools/tlmviewer/RollupWidget-CTk9Kjwr-391c07e5ac0e51fa806e.js +1 -0
- data/tools/tlmviewer/ScrollwindowWidget-DD0TOW6s-a5fd68b09f66a4acd2e7.js +1 -0
- data/tools/tlmviewer/SignalWidget-CC33KMTW-9154de9a5c061b69776b.js +1 -0
- data/tools/tlmviewer/SpacerWidget-BnJe_Hq6-135347689671755db50c.js +1 -0
- data/tools/tlmviewer/SparklineWidget-DMvMQCPm-ad781334905d009b9a21.js +1 -0
- data/tools/tlmviewer/TabbookWidget-B3w0JtWe-a647fc460af62f1f1b91.js +1 -0
- data/tools/tlmviewer/TextboxWidget-D2f0-eol-31186bae50782d8dda72.js +1 -0
- data/tools/tlmviewer/TextfieldWidget-DXSdgqVP-1c8963dce21e79e8dbc5.js +1 -0
- data/tools/tlmviewer/TimeWidget-DvrRaEMz-35c62ea9c5dee8a5a3bc.js +1 -0
- data/tools/tlmviewer/TitleWidget-DqViFQl--d6f64895e3b40ae46c97.js +1 -0
- data/tools/tlmviewer/TlmViewer-e2b4d4da607104f90f56.js +33 -0
- data/tools/tlmviewer/VWidget-02CG-3Av-6dd8f41abb30e51c1336.js +1 -0
- data/tools/tlmviewer/ValueWidget-KLYY8L8U-981e9679ee74d7dd44a0.js +1 -0
- data/tools/tlmviewer/ValuelimitsbarWidget-SR8XNZFB-cd276c1535176693d52e.js +1 -0
- data/tools/tlmviewer/ValuelimitscolumnWidget-xYZSp6YZ-a661323401b786db843a.js +1 -0
- data/tools/tlmviewer/ValuerangebarWidget-B6M02a9d-d84d57d18b05c4d935d4.js +1 -0
- data/tools/tlmviewer/VerticalWidget-z6xUM-ql-8b2da906efb985d05096.js +1 -0
- data/tools/tlmviewer/VerticalboxWidget-3a9cVsW--6ebcd76b12070a5f66d1.js +1 -0
- data/tools/tlmviewer/Widget-C4QVI4IH-77557544d86f5014c3b6.js +1 -0
- data/tools/tlmviewer/main-77da3e732b4aa0419678.js +1423 -0
- data/tools/tlmviewer/main.js +1 -0
- metadata +68 -11
- data/tools/tlmviewer/index.html +0 -4
- data/tools/tlmviewer/js/272.js +0 -2
- data/tools/tlmviewer/js/272.js.map +0 -1
- data/tools/tlmviewer/js/299.js +0 -2
- data/tools/tlmviewer/js/299.js.map +0 -1
- data/tools/tlmviewer/js/79.js +0 -39
- data/tools/tlmviewer/js/79.js.map +0 -1
- data/tools/tlmviewer/js/app.js +0 -2
- data/tools/tlmviewer/js/app.js.map +0 -1
@@ -0,0 +1,1423 @@
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(yn,De){"use strict";var Ee,Lt,En,xe,ve,Gd,_s,Oo,Ri,Ec,et,Xr,Bi,Gt,ji,$t,Xn,Wi,Ui,Yd,Kd,Zd,Qd,Xd,Jd,Rc,ep,tp,Lc,np,ip,rp,op,sp,ap,lp;return{setters:[tt=>{Ee=tt.resolveComponent,Lt=tt.openBlock,En=tt.createBlock,xe=tt.withCtx,ve=tt.createVNode,Gd=tt.defineAsyncComponent,_s=tt.h,Oo=tt.normalizeStyle,Ri=tt.createElementBlock,Ec=tt.withKeys,et=tt.createElementVNode,Xr=tt.withModifiers,Bi=tt.withDirectives,Gt=tt.toDisplayString,ji=tt.vShow,$t=tt.createTextVNode,Xn=tt.createCommentVNode,Wi=tt.normalizeProps,Ui=tt.guardReactiveProps,Yd=tt.Fragment,Kd=tt.renderList,Zd=tt.mergeProps,Qd=tt.defineComponent,Xd=tt.warn,Jd=tt.inject,Rc=tt.computed,ep=tt.shallowRef,tp=tt.watchEffect,Lc=tt.createApp,np=tt.getCurrentInstance,ip=tt.provide},tt=>{rp=tt.createRouter,op=tt.createWebHistory},tt=>{sp=tt.getMountedApps},tt=>{ap=tt.createStore},tt=>{lp=tt.createVuetify}],execute:function(){yn({b:Fn,d:fp,e:GC,l:Ut,y:hn,z:Dh});var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cp(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 Jr(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?cp(Object(e),!0).forEach(function(i){Wy(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):cp(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Wy(n,t,e){return(t=function(i){var m=function(f,v){if(eo(f)!=="object"||f===null)return f;var w=f[Symbol.toPrimitive];if(w!==void 0){var h=w.call(f,v||"default");if(eo(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(f)}(i,"string");return eo(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 eo(n){return eo=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},eo(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),f=m.length,v=-1,w="",h=m.charCodeAt(0);++v<f;)(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&&f==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})(tt);var Uy={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Vy(n){if(eo(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=Jr(Jr({},Uy),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(eo(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:qy.bind(null,t,e),mount:Gy.bind(null,t,e),unmount:Ky.bind(null,t,e),update:Yy.bind(null,t,e)}}function qy(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Gy(n,t,e){var i={};return Promise.resolve().then(function(){return function(m,f){return typeof m.appOptions=="function"?m.appOptions(f):Promise.resolve(Jr({},m.appOptions))}(n,e).then(function(m){var f;if(e.domElement&&!m.el&&(m.el=e.domElement),m.el)if(typeof m.el=="string"){if(!(f=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(f=m.el).id||(f.id="single-spa-application:".concat(e.name)),m.el="#".concat(CSS.escape(f.id));else{var v="single-spa-application:".concat(e.name);m.el="#".concat(CSS.escape(v)),(f=document.getElementById(v))||((f=document.createElement("div")).id=v,document.body.appendChild(f))}if(!n.replaceMode&&(m.el=m.el+" .single-spa-container",!f.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",f.appendChild(w)}i.domEl=f,m.render||m.template||!n.rootComponent||(m.render=function(g){return g(n.rootComponent)}),m.data||(m.data={});var h=m.data;if(m.data=function(){return Jr(Jr({},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 Yy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name],m=Jr(Jr({},n.appOptions.data||{}),e),f=i.root||i.vueInstance;for(var v in m)f[v]=m[v]})}function Ky(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 Zy=yn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Qy={};function Xy(n,t){const e=Ee("router-view"),i=Ee("v-app");return Lt(),En(i,{id:"innerapp"},{default:xe(()=>[ve(e)]),_:1})}const Jy=Zy(Qy,[["render",Xy]]),oO="modulepreload",sO=function(n){return"/"+n},aO={},Ne=function(t,e,i){let m=Promise.resolve();function f(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"&&f(w.reason);return t().catch(f)})},up=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tlmviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(up)},ar=yn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Ea=6e4,Ic=36e5,ew=1e3,hp=Symbol.for("constructDateFrom");function hn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&hp in n?n[hp](t):n instanceof Date?new n.constructor(t):new Date(t)}function Ut(n,t){return hn(t||n,n)}let tw={};function Do(){return tw}function Ar(n,t){var e,i,m,f;const v=Do(),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??((f=(m=v.locale)==null?void 0:m.options)==null?void 0:f.weekStartsOn)??0,h=Ut(n,t==null?void 0:t.in),g=h.getDay(),s=(g<w?7:0)+g-w;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function No(n,t){return Ar(n,{...t,weekStartsOn:1})}function dp(n,t){const e=Ut(n,void 0),i=e.getFullYear(),m=hn(e,0);m.setFullYear(i+1,0,4),m.setHours(0,0,0,0);const f=No(m),v=hn(e,0);v.setFullYear(i,0,4),v.setHours(0,0,0,0);const w=No(v);return e.getTime()>=f.getTime()?i+1:e.getTime()>=w.getTime()?i:i-1}function Ra(n){const t=Ut(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 nw(n,...t){const e=hn.bind(null,t.find(i=>typeof i=="object"));return t.map(e)}function pp(n,t){const e=Ut(n,void 0);return e.setHours(0,0,0,0),e}function iw(n,t,e){const[i,m]=nw(void 0,n,t),f=pp(i),v=pp(m),w=+f-Ra(f),h=+v-Ra(v);return Math.round((w-h)/864e5)}function rw(n,t){const e=dp(n),i=hn(n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),No(i)}function ow(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function fp(n){return!(!ow(n)&&typeof n!="number"||isNaN(+Ut(n)))}function sw(n,t){const e=Ut(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const aw={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"}},lw=(n,t,e)=>{let i;const m=aw[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 Oc(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const cw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dw={date:Oc({formats:cw,defaultWidth:"full"}),time:Oc({formats:uw,defaultWidth:"full"}),dateTime:Oc({formats:hw,defaultWidth:"full"})},pw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fw=(n,t,e,i)=>pw[n];function ks(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 f=n.argumentCallback?n.argumentCallback(t):t;return m[f]}}const gw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vw={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"]},yw={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"]},ww={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"}},bw={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"}},xw=(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"},_w={ordinalNumber:xw,era:ks({values:gw,defaultWidth:"wide"}),quarter:ks({values:mw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ks({values:vw,defaultWidth:"wide"}),day:ks({values:yw,defaultWidth:"wide"}),dayPeriod:ks({values:ww,defaultWidth:"wide",formattingValues:bw,defaultFormattingWidth:"wide"})};function $s(n){return(t,e={})=>{const i=e.width,m=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],f=t.match(m);if(!f)return null;const v=f[0],w=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?$w(w,c=>c.test(v)):kw(w,c=>c.test(v));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const s=t.slice(v.length);return{value:g,rest:s}}}function kw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function $w(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Sw(n){return(t,e={})=>{const i=t.match(n.matchPattern);if(!i)return null;const m=i[0],f=t.match(n.parsePattern);if(!f)return null;let v=n.valueCallback?n.valueCallback(f[0]):f[0];v=e.valueCallback?e.valueCallback(v):v;const w=t.slice(m.length);return{value:v,rest:w}}}const Cw=/^(\d+)(th|st|nd|rd)?/i,Aw=/\d+/i,Mw={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},Tw={any:[/^b/i,/^(a|c)/i]},Ew={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rw={any:[/1/i,/2/i,/3/i,/4/i]},Lw={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},Iw={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]},Ow={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},Dw={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]},Nw={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},Fw={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}},Pw={ordinalNumber:Sw({matchPattern:Cw,parsePattern:Aw,valueCallback:n=>parseInt(n,10)}),era:$s({matchPatterns:Mw,defaultMatchWidth:"wide",parsePatterns:Tw,defaultParseWidth:"any"}),quarter:$s({matchPatterns:Ew,defaultMatchWidth:"wide",parsePatterns:Rw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:$s({matchPatterns:Lw,defaultMatchWidth:"wide",parsePatterns:Iw,defaultParseWidth:"any"}),day:$s({matchPatterns:Ow,defaultMatchWidth:"wide",parsePatterns:Dw,defaultParseWidth:"any"}),dayPeriod:$s({matchPatterns:Nw,defaultMatchWidth:"any",parsePatterns:Fw,defaultParseWidth:"any"})},gp={code:"en-US",formatDistance:lw,formatLong:dw,formatRelative:fw,localize:_w,match:Pw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hw(n,t){const e=Ut(n,void 0);return iw(e,sw(e))+1}function mp(n,t){const e=Ut(n,void 0),i=+No(e)-+rw(e);return Math.round(i/6048e5)+1}function Dc(n,t){var e,i,m,f;const v=Ut(n,t==null?void 0:t.in),w=v.getFullYear(),h=Do(),g=(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??((f=(m=h.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,s=hn((t==null?void 0:t.in)||n,0);s.setFullYear(w+1,0,g),s.setHours(0,0,0,0);const c=Ar(s,t),a=hn((t==null?void 0:t.in)||n,0);a.setFullYear(w,0,g),a.setHours(0,0,0,0);const l=Ar(a,t);return+v>=+c?w+1:+v>=+l?w:w-1}function zw(n,t){var e,i,m,f;const v=Do(),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??((f=(m=v.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,h=Dc(n,t),g=hn((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,w),g.setHours(0,0,0,0),Ar(g,t)}function vp(n,t){const e=Ut(n,t==null?void 0:t.in),i=+Ar(e,t)-+zw(e,t);return Math.round(i/6048e5)+1}function Tt(n,t){const e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}const Mr={y(n,t){const e=n.getFullYear(),i=e>0?e:1-e;return Tt(t==="yy"?i%100:i,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):Tt(e+1,2)},d(n,t){return Tt(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 Tt(n.getHours()%12||12,t.length)},H(n,t){return Tt(n.getHours(),t.length)},m(n,t){return Tt(n.getMinutes(),t.length)},s(n,t){return Tt(n.getSeconds(),t.length)},S(n,t){const e=t.length,i=n.getMilliseconds(),m=Math.trunc(i*Math.pow(10,e-3));return Tt(m,t.length)}},Fo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yp={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 Mr.y(n,t)},Y:function(n,t,e,i){const m=Dc(n,i),f=m>0?m:1-m;if(t==="YY"){const v=f%100;return Tt(v,2)}return t==="Yo"?e.ordinalNumber(f,{unit:"year"}):Tt(f,t.length)},R:function(n,t){const e=dp(n);return Tt(e,t.length)},u:function(n,t){const e=n.getFullYear();return Tt(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 Tt(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 Tt(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 Mr.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 Tt(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=vp(n,i);return t==="wo"?e.ordinalNumber(m,{unit:"week"}):Tt(m,t.length)},I:function(n,t,e){const i=mp(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Mr.d(n,t)},D:function(n,t,e){const i=Hw(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):Tt(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(),f=(m-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return Tt(f,2);case"eo":return e.ordinalNumber(f,{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(),f=(m-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return Tt(f,t.length);case"co":return e.ordinalNumber(f,{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 Tt(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=Fo.noon:i===0?m=Fo.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=Fo.evening:i>=12?m=Fo.afternoon:i>=4?m=Fo.morning:m=Fo.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 Mr.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Mr.H(n,t)},K:function(n,t,e){const i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Mr.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Mr.s(n,t)},S:function(n,t){return Mr.S(n,t)},X:function(n,t,e){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return bp(i);case"XXXX":case"XX":return to(i);case"XXXXX":case"XXX":default:return to(i,":")}},x:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"x":return bp(i);case"xxxx":case"xx":return to(i);case"xxxxx":case"xxx":default:return to(i,":")}},O:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wp(i,":");case"OOOO":default:return"GMT"+to(i,":")}},z:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wp(i,":");case"zzzz":default:return"GMT"+to(i,":")}},t:function(n,t,e){const i=Math.trunc(+n/1e3);return Tt(i,t.length)},T:function(n,t,e){return Tt(+n,t.length)}};function wp(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.trunc(i/60),f=i%60;return f===0?e+String(m):e+String(m)+t+Tt(f,2)}function bp(n,t){return n%60===0?(n>0?"-":"+")+Tt(Math.abs(n)/60,2):to(n,t)}function to(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Tt(Math.trunc(i/60),2),f=Tt(i%60,2);return e+m+t+f}const xp=(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"})}},_p=(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"})}},Bw=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],i=e[1],m=e[2];if(!m)return xp(n,t);let f;switch(i){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",xp(i,t)).replace("{{time}}",_p(m,t))},Nc={p:_p,P:Bw},jw=/^D+$/,Ww=/^Y+$/,Uw=["D","DD","YY","YYYY"];function kp(n){return jw.test(n)}function $p(n){return Ww.test(n)}function Fc(n,t,e){const i=Vw(n,t,e);if(console.warn(i),Uw.includes(n))throw new RangeError(i)}function Vw(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 qw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yw=/^'([^]*?)'?$/,Kw=/''/g,Zw=/[a-zA-Z]/;function no(n,t,e){var i,m,f,v,w,h,g,s;const c=Do(),a=(e==null?void 0:e.locale)??c.locale??gp,l=(e==null?void 0:e.firstWeekContainsDate)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.firstWeekContainsDate)??c.firstWeekContainsDate??((v=(f=c.locale)==null?void 0:f.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)??c.weekStartsOn??((s=(g=c.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,u=Ut(n,e==null?void 0:e.in);if(!fp(u))throw new RangeError("Invalid time value");let p=t.match(Gw).map(b=>{const R=b[0];if(R==="p"||R==="P"){const A=Nc[R];return A(b,a.formatLong)}return b}).join("").match(qw).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const R=b[0];if(R==="'")return{isToken:!1,value:Qw(b)};if(yp[R])return{isToken:!0,value:b};if(R.match(Zw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:b}});a.localize.preprocessor&&(p=a.localize.preprocessor(u,p));const y={firstWeekContainsDate:l,weekStartsOn:o,locale:a};return p.map(b=>{if(!b.isToken)return b.value;const R=b.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&$p(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&kp(R))&&Fc(R,t,String(n));const A=yp[R[0]];return A(u,R,a.localize,y)}).join("")}function Qw(n){const t=n.match(Yw);return t?t[1].replace(Kw,"'"):n}var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function La(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Sp={exports:{}},Cp;function Xw(){return Cp||(Cp=1,function(n,t){(function(){var e="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var m=function(s,c,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=c),m.modules[s]||(m.payloads[s]=a,m.modules[s]=null)};m.modules={},m.payloads={};var f=function(s,c,a){if(typeof c=="string"){var l=h(s,c);if(l!=null)return a&&a(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],u=0,p=c.length;u<p;++u){var y=h(s,c[u]);if(y==null&&v.original)return;o.push(y)}return a&&a.apply(null,o)||!0}},v=function(s,c){var a=f("",s,c);return a==null&&v.original?v.original.apply(this,arguments):a},w=function(s,c){if(c.indexOf("!")!==-1){var a=c.split("!");return w(s,a[0])+"!"+w(s,a[1])}if(c.charAt(0)=="."){var l=s.split("/").slice(0,-1).join("/");for(c=l+"/"+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},h=function(s,c){c=w(s,c);var a=m.modules[c];if(!a){if(a=m.payloads[c],typeof a=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(y,b){return f(c,y,b)},p=a(u,l,o);l=p||o.exports,m.modules[c]=l,delete m.payloads[c]}a=m.modules[c]=l||a}return a};function g(s){var c=i;i[s]||(i[s]={}),c=i[s],(!c.define||!c.define.packaged)&&(m.original=c.define,c.define=m,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(v.original=c.require,c.require=v,c.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,i,m){function f(v,w,h){Object.defineProperty(v,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||f(String.prototype,"startsWith",function(v,w){return w=w||0,this.lastIndexOf(v,w)===w}),String.prototype.endsWith||f(String.prototype,"endsWith",function(v,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=v.length;var g=h.indexOf(v,w);return g!==-1&&g===w}),String.prototype.repeat||f(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||f(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 g=arguments[h];g!=null&&Object.keys(g).forEach(function(s){w[s]=g[s]})}return w}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(w){return v[w]})}),Array.prototype.find||f(Array.prototype,"find",function(v){for(var w=this.length,h=arguments[1],g=0;g<w;g++){var s=this[g];if(v.call(h,s,g,this))return s}}),Array.prototype.findIndex||f(Array.prototype,"findIndex",function(v){for(var w=this.length,h=arguments[1],g=0;g<w;g++){var s=this[g];if(v.call(h,s,g,this))return g}}),Array.prototype.includes||f(Array.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Array.prototype.fill||f(Array.prototype,"fill",function(v){for(var w=this,h=w.length>>>0,g=arguments[1],s=g>>0,c=s<0?Math.max(h+s,0):Math.min(s,h),a=arguments[2],l=a===void 0?h:a>>0,o=l<0?Math.max(h+l,0):Math.min(l,h);c<o;)w[c]=v,c++;return w}),Array.of||f(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 f(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]=f(v[h]);return w}if(Object.prototype.toString.call(v)!=="[object Object]")return v;w={};for(var h in v)w[h]=f(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 g="";h>0;)h&1&&(g+=w),(h>>=1)&&(w+=w);return g};var f=/^\s\s*/,v=/\s\s*$/;i.stringTrimLeft=function(w){return w.replace(f,"")},i.stringTrimRight=function(w){return w.replace(v,"")},i.copyObject=function(w){var h={};for(var g in w)h[g]=w[g];return h},i.copyArray=function(w){for(var h=[],g=0,s=w.length;g<s;g++)w[g]&&typeof w[g]=="object"?h[g]=this.copyObject(w[g]):h[g]=w[g];return h},i.deepCopy=e("./deep_copy").deepCopy,i.arrayToMap=function(w){for(var h={},g=0;g<w.length;g++)h[w[g]]=1;return h},i.createMap=function(w){var h=Object.create(null);for(var g in w)h[g]=w[g];return h},i.arrayRemove=function(w,h){for(var g=0;g<=w.length;g++)h===w[g]&&w.splice(g,1)},i.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},i.getMatchOffsets=function(w,h){var g=[];return w.replace(h,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},i.deferredCall=function(w){var h=null,g=function(){h=null,w()},s=function(c){return s.cancel(),h=setTimeout(g,c||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 g=null,s=function(){g=null,w()},c=function(a){g==null&&(g=setTimeout(s,a||h))};return c.delay=function(a){g&&clearTimeout(g),g=setTimeout(s,a||h)},c.schedule=c,c.call=function(){this.cancel(),w()},c.cancel=function(){g&&clearTimeout(g),g=null},c.isPending=function(){return g},c},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(w,h,g){return g&&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 f=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(f.platform)||["other"])[0].toLowerCase(),w=f.userAgent||"",h=f.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 f=e("./useragent"),v="http://www.w3.org/1999/xhtml";i.buildDom=function a(l,o,u){if(typeof l=="string"&&l){var p=document.createTextNode(l);return o&&o.appendChild(p),p}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var y=[],b=0;b<l.length;b++){var R=a(l[b],o,u);R&&y.push(R)}return y}var A=document.createElement(l[0]),k=l[1],x=1;k&&typeof k=="object"&&!Array.isArray(k)&&(x=2);for(var b=x;b<l.length;b++)a(l[b],A,u);return x==2&&Object.keys(k).forEach(function(M){var E=k[M];M==="class"?A.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||M=="value"||M[0]=="$"?A[M]=E:M==="ref"?u&&(u[E]=A):M==="style"?typeof E=="string"&&(A.style.cssText=E):E!=null&&A.setAttribute(M,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,l){return document.createElementNS?document.createElementNS(l||v,a):document.createElement(a)},i.removeChildren=function(a){a.innerHTML=""},i.createTextNode=function(a,l){var o=l?l.ownerDocument:document;return o.createTextNode(a)},i.createFragment=function(a){var l=a?a.ownerDocument:document;return l.createDocumentFragment()},i.hasCssClass=function(a,l){var o=(a.className+"").split(/\s+/g);return o.indexOf(l)!==-1},i.addCssClass=function(a,l){i.hasCssClass(a,l)||(a.className+=" "+l)},i.removeCssClass=function(a,l){for(var o=a.className.split(/\s+/g);;){var u=o.indexOf(l);if(u==-1)break;o.splice(u,1)}a.className=o.join(" ")},i.toggleCssClass=function(a,l){for(var o=a.className.split(/\s+/g),u=!0;;){var p=o.indexOf(l);if(p==-1)break;u=!1,o.splice(p,1)}return u&&o.push(l),a.className=o.join(" "),u},i.setCssClass=function(a,l,o){o?i.addCssClass(a,l):i.removeCssClass(a,l)},i.hasCssString=function(a,l){var o=0,u;if(l=l||document,u=l.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===a)return!0}},i.removeElementById=function(a,l){l=l||document,l.getElementById(a)&&l.getElementById(a).remove()};var w,h=[];i.useStrictCSP=function(a){w=a,a==!1?g():h||(h=[])};function g(){var a=h;h=null,a&&a.forEach(function(l){s(l[0],l[1])})}function s(a,l,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([a,l])}if(!w){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var p=u.ownerDocument||u;if(l&&i.hasCssString(l,u))return null;l&&(a+=`
|
2
|
+
/*# sourceURL=ace/css/`+l+" */");var y=i.createElement("style");y.appendChild(p.createTextNode(a)),l&&(y.id=l),u==p&&(u=i.getDocumentHead(p)),u.insertBefore(y,u.firstChild)}}}if(i.importCssString=s,i.importCssStylsheet=function(a,l){i.buildDom(["link",{rel:"stylesheet",href:a}],i.getDocumentHead(l))},i.scrollbarWidth=function(a){var l=i.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.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(l);var p=a&&a.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(o);var y=l.offsetWidth;u.overflow="scroll";var b=l.offsetWidth;return y===b&&(b=o.clientWidth),p.removeChild(o),y-b},i.computedStyle=function(a,l){return window.getComputedStyle(a,"")||{}},i.setStyle=function(a,l,o){a[l]!==o&&(a[l]=o)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=f.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,f.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");i.HI_DPI&&c.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!f.isEdge&&typeof c.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),c=null}i.HAS_CSS_TRANSFORMS?i.translate=function(a,l,o){a.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:i.translate=function(a,l,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(l)+"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 f=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=f.getDocumentHead(),g=document.createElement("script");g.src=v,h.appendChild(g),g.onload=g.onreadystatechange=function(s,c){(c||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,c||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(f,v){f.super_=v,f.prototype=Object.create(v.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(f,v){for(var w in v)f[w]=v[w];return f},i.implement=function(f,v){i.mixin(f,v)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,i,m){var f={},v=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};f._emit=f._dispatchEvent=function(h,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!s.length&&!c)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=h),g.stopPropagation||(g.stopPropagation=v),g.preventDefault||(g.preventDefault=w),s=s.slice();for(var a=0;a<s.length&&(s[a](g,this),!g.propagationStopped);a++);if(c&&!g.defaultPrevented)return c(g,this)}},f._signal=function(h,g){var s=(this._eventRegistry||{})[h];if(s){s=s.slice();for(var c=0;c<s.length;c++)s[c](g,this)}},f.once=function(h,g){var s=this;if(this.on(h,function c(){s.off(h,c),g.apply(null,arguments)}),!g)return new Promise(function(c){g=c})},f.setDefaultHandler=function(h,g){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[h]){var c=s[h],a=s._disabled_[h];a||(s._disabled_[h]=a=[]),a.push(c);var l=a.indexOf(g);l!=-1&&a.splice(l,1)}s[h]=g},f.removeDefaultHandler=function(h,g){var s=this._defaultHandlers;if(s){var c=s._disabled_[h];if(s[h]==g)c&&this.setDefaultHandler(h,c.pop());else if(c){var a=c.indexOf(g);a!=-1&&c.splice(a,1)}}},f.on=f.addEventListener=function(h,g,s){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(g)==-1&&c[s?"unshift":"push"](g),g},f.off=f.removeListener=f.removeEventListener=function(h,g){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[h];if(s){var c=s.indexOf(g);c!==-1&&s.splice(c,1)}},f.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=f}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,i,m){i.reportError=function(f,v){var w=new Error(f);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 f={"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=f}),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 f=e("./oop"),v=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,g={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 p=this.$options;o=Object.keys(p).filter(function(y){return!p[y].hidden})}return o.forEach(function(y){u[y]=this.getOption(y)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var p=this.$options[o];if(!p)return s('misspelled option "'+o+'"');if(p.forwardTo)return this[p.forwardTo]&&this[p.forwardTo].setOption(o,u);p.handlesSet||(this["$"+o]=u),p&&p.set&&p.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 c,a,l=function(){function o(){this.$defaultOptions={},c=h,a="dollarSigns"}return o.prototype.defineOptions=function(u,p,y){return u.$options||(this.$defaultOptions[p]=u.$options={}),Object.keys(y).forEach(function(b){var R=y[b];typeof R=="string"&&(R={forwardTo:R}),R.name||(R.name=b),u.$options[R.name]=R,"initialValue"in R&&(u["$"+R.name]=R.initialValue)}),f.implement(u,g),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(p){var y=u.$options[p];"value"in y&&u.setOption(p,y.value)})},o.prototype.setDefaultValue=function(u,p,y){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][p])break;if(!this.$defaultOptions[u][p])return!1}var b=this.$defaultOptions[u]||(this.$defaultOptions[u]={});b[p]&&(b.forwardTo?this.setDefaultValue(b.forwardTo,p,y):b[p].value=y)},o.prototype.setDefaultValues=function(u,p){Object.keys(p).forEach(function(y){this.setDefaultValue(u,y,p[y])},this)},o.prototype.setMessages=function(u,p){c=u,p&&p.placeholders&&(a=p.placeholders)},o.prototype.nls=function(u,p,y){c[u]||(s("No message found for the key '"+u+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+p+"'."),c[p]||s("No message found for the default string '"+p+"' in the provided messages. Falling back to the default English message."));var b=c[u]||c[p]||p;return y&&(a==="dollarSigns"&&(b=b.replace(/\$(\$|[\d]+)/g,function(R,A){return A=="$"?"$":y[A]})),a==="curlyBrackets"&&(b=b.replace(/\{([^\}]+)\}/g,function(R,A){return y[A]}))),b},o}();l.prototype.warn=s,l.prototype.reportError=w,f.implement(l.prototype,v),i.AppConfig=l}),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 f=e("../lib/dom");f.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 f=e("./lib/lang"),v=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;m.exports=i=new h;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(l){if(!g.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return g[l]},i.set=function(l,o){if(g.hasOwnProperty(l))g[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&w.useStrictCSP(o)},i.all=function(){return f.copyObject(g)},i.$modes={},i.moduleUrl=function(l,o){if(g.$moduleUrls[l])return g.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var p=o=="snippets"?"/":"-",y=u[u.length-1];if(o=="worker"&&p=="-"){var b=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");y=y.replace(b,"")}(!y||y==o)&&u.length>1&&(y=u[u.length-2]);var R=g[o+"Path"];return R==null?R=g.basePath:p=="/"&&(o=p=""),R&&R.slice(-1)!="/"&&(R+="/"),R+o+p+y+this.get("suffix")},i.setModuleUrl=function(l,o){return g.$moduleUrls[l]=o};var s=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,e("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;i.setLoader=function(l){c=l},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(l,o){var u;if(Array.isArray(l))var p=l[0],y=l[1];else if(typeof l=="string")var y=l;var b=function(R){if(R&&!i.$loading[y])return o&&o(R);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 M=i.$loading[y];i.$loading[y]=null,M.forEach(function(E){E&&E(x)})})};if(!i.get("packaged"))return A();v.loadScript(i.moduleUrl(y,p),A),a()}};if(i.dynamicModules[y])i.dynamicModules[y]().then(function(R){R.default?b(R.default):b(R)});else{try{u=this.$require(y)}catch{}b(u||i.$loaded[y])}},i.$require=function(l){if(typeof m.require=="function"){var o="require";return m[o](l)}},i.setModuleLoader=function(l,o){i.dynamicModules[l]=o};var a=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),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 f=e("./config");f.setLoader(function(g,s){e([g],function(c){s(null,c)})});var v=function(){return this||typeof window<"u"&&window}();m.exports=function(g){f.init=w,f.$require=e,g.require=e},w(!0);function w(g){if(!(!v||!v.document)){f.set("packaged",g||e.packaged||m.packaged||v.define&&(void 0).packaged);var s={},c="",a=document.currentScript||document._currentScript,l=a&&a.ownerDocument||document;a&&a.src&&(c=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=l.getElementsByTagName("script"),u=0;u<o.length;u++){var p=o[u],y=p.src||p.getAttribute("src");if(y){for(var b=p.attributes,R=0,A=b.length;R<A;R++){var k=b[R];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var x=y.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);x&&(c=x[1])}}c&&(s.base=s.base||c,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 M in s)typeof s[M]<"u"&&f.set(M,s[M])}}function h(g){return g.replace(/-(.)/g,function(s,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,i,m){var f=function(){function v(w,h,g,s){this.start={row:w,column:h},this.end={row:g,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,g=w.end,s=w.start;return h=this.compare(g.row,g.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 g={row:h+1,column:0};else if(this.end.row<w)var g={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,g||this.end)},v.prototype.extend=function(w,h){var g=this.compare(w,h);if(g==0)return this;if(g==-1)var s={row:w,column:h};else var c={row:w,column:h};return v.fromPoints(s||this.start,c||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),g=w.documentToScreenPosition(this.end);return new v(h.row,h.column,g.row,g.column)},v.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},v}();f.fromPoints=function(v,w){return new f(v.row,v.column,w.row,w.column)},f.comparePoints=function(v,w){return v.row-w.row||v.column-w.column},i.Range=f}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,i,m){for(var f=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 g=String.fromCharCode(h+32);w["Key"+g.toUpperCase()]=h,v.PRINTABLE_KEYS[h]=g}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 c in s)w[c]=w[c+"Left"]=w[c+"Right"]=s[c];i.$codeToKeyCode=w,v.PRINTABLE_KEYS[173]="-";for(var a in v.FUNCTION_KEYS){var l=v.FUNCTION_KEYS[a].toLowerCase();v[l]=parseInt(a,10)}for(var a in v.PRINTABLE_KEYS){var l=v.PRINTABLE_KEYS[a].toLowerCase();v[l]=parseInt(a,10)}f.mixin(v,v.MODIFIER_KEYS),f.mixin(v,v.PRINTABLE_KEYS),f.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(p){return u&v.KEY_MODS[p]}).join("-")+"-"}(),v.KEY_MODS[0]="",v.KEY_MODS[-1]="input-",f.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 f=e("./keys"),v=e("./useragent"),w=null,h=0,g;function s(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function c(){return g==null&&s(),g}function a(R,A,k){this.elem=R,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 l=i.addListener=function(R,A,k,x){R.addEventListener(A,k,c()),x&&x.$toDestroy.push(new a(R,A,k))},o=i.removeListener=function(R,A,k){R.removeEventListener(A,k,c())};i.stopEvent=function(R){return i.stopPropagation(R),i.preventDefault(R),!1},i.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},i.preventDefault=function(R){R.preventDefault&&R.preventDefault()},i.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||v.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},i.capture=function(R,A,k){var x=R&&R.ownerDocument||document;function M(E){A&&A(E),k&&k(E),o(x,"mousemove",A),o(x,"mouseup",M),o(x,"dragstart",M)}return l(x,"mousemove",A),l(x,"mouseup",M),l(x,"dragstart",M),M},i.addMouseWheelListener=function(R,A,k){l(R,"wheel",function(x){var M=.15,E=x.deltaX||0,I=x.deltaY||0;switch(x.deltaMode){case x.DOM_DELTA_PIXEL:x.wheelX=E*M,x.wheelY=I*M;break;case x.DOM_DELTA_LINE:var T=15;x.wheelX=E*T,x.wheelY=I*T;break;case x.DOM_DELTA_PAGE:var N=150;x.wheelX=E*N,x.wheelY=I*N;break}A(x)},k)},i.addMultiMouseDownListener=function(R,A,k,x,M){var E=0,I,T,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 L=Math.abs(S.clientX-I)>5||Math.abs(S.clientY-T)>5;(!N||L)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},A[E-1]||600),E==1&&(I=S.clientX,T=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(R)||(R=[R]),R.forEach(function(S){l(S,"mousedown",_,M)})};function u(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}i.getModifierString=function(R){return f.KEY_MODS[u(R)]};function p(R,A,k){var x=u(A);if(!k&&A.code&&(k=f.$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 M=A.location;if(k===17&&M===1)w[k]==1&&(h=A.timeStamp);else if(k===18&&x===3&&M===2){var E=A.timeStamp-h;E<50&&(w.altGr=!0)}}}if(k in f.MODIFIER_KEYS&&(k=-1),!(!x&&k===13&&A.location===3&&(R(A,x,-k),A.defaultPrevented))){if(v.isChromeOS&&x&8){if(R(A,x,k),A.defaultPrevented)return;x&=-9}return!x&&!(k in f.FUNCTION_KEYS)&&!(k in f.PRINTABLE_KEYS)?!1:R(A,x,k)}}i.addCommandKeyListener=function(R,A,k){var x=null;l(R,"keydown",function(M){w[M.keyCode]=(w[M.keyCode]||0)+1;var E=p(A,M,M.keyCode);return x=M.defaultPrevented,E},k),l(R,"keypress",function(M){x&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(i.stopEvent(M),x=null)},k),l(R,"keyup",function(M){w[M.keyCode]=null},k),w||(y(),l(window,"focus",y))};function y(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var b=1;i.nextTick=function(R,A){A=A||window;var k="zero-timeout-message-"+b++,x=function(M){M.data==k&&(i.stopPropagation(M),o(A,"message",x),R())};l(A,"message",x),A.postMessage(k,"*")}}i.$idleBlocked=!1,i.onIdle=function(R,A){return setTimeout(function k(){i.$idleBlocked?setTimeout(k,100):R()},A)},i.$idleBlockId=null,i.blockIdle=function(R){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},R||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(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,i,m){var f;m.exports={lineMode:!1,pasteCancelled:function(){return f&&f>Date.now()-50?!0:f=!1},cancel:function(){f=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 f=e("../lib/event"),v=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),g=e("../lib/lang"),s=e("../clipboard"),c=w.isChrome<18,a=w.isIE,l=w.isChrome>63,o=400,u=e("../lib/keys"),p=u.KEY_MODS,y=w.isIOS,b=y?/\s/:/\n/,R=w.isMobile,A;A=function(k,x){var M=h.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck","false"),M.style.opacity="0",k.insertBefore(M,k.firstChild);var E=!1,I=!1,T=!1,N=!1,$="";R||(M.style.fontSize="1px");var _=!1,S=!1,L="",O=0,F=0,H=0,W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var J=document.activeElement===M}catch{}this.setNumberOfExtraLines=function(ce){if(W=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 Me=x.session.selection.cursor.row;ce+=v("text-input.aria-label","Cursor at row $0",[Me+1])}M.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",ce.inline?"both":"list"),M.setAttribute("aria-activedescendant",ce.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),ce.role&&M.setAttribute("role",ce.role),ce.setLabel&&(M.setAttribute("aria-roledescription",v("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),f.addListener(M,"blur",function(ce){S||(x.onBlur(ce),J=!1)},x),f.addListener(M,"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}),$||l||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var ce=M.style.top;M.style.position="fixed",M.style.top="0px";try{var Me=M.getBoundingClientRect().top!=0}catch{return}var Le=[];if(Me)for(var qe=M.parentElement;qe&&qe.nodeType==1;)Le.push(qe),qe.setAttribute("ace_nocontext","true"),!qe.parentElement&&qe.getRootNode?qe=qe.getRootNode().host:qe=qe.parentElement;M.focus({preventScroll:!0}),Me&&Le.forEach(function(Ye){Ye.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=ce)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return J},x.on("beforeEndOperation",function(){var ce=x.curOp,Me=ce&&ce.command&&ce.command.name;if(Me!="insertstring"){var Le=Me&&(ce.docChanged||ce.selectionChanged);T&&Le&&(L=M.value="",Zt()),Q()}}),x.on("changeSelection",this.setAriaLabel);var G=function(ce,Me){for(var Le=Me,qe=1;qe<=ce-W&&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 Me=`
|
167
|
+
ab`+ce+`cde fg
|
168
|
+
`;Me!=M.value&&(M.value=L=Me);var Le=4,qe=4+(ce.length||(x.selection.isEmpty()?0:1));(O!=Le||F!=qe)&&M.setSelectionRange(Le,qe),O=Le,F=qe}}:function(){if(!(T||N)&&!(!J&&!me)){T=!0;var ce=0,Me=0,Le="";if(x.session){var qe=x.selection,Ye=qe.getRange(),pt=qe.cursor.row;pt===V+1?(W=V+1,V=W+2*q):pt===W-1?(V=W-1,W=V-2*q):(pt<W-1||pt>V+1)&&(W=pt>q?pt-q:0,V=pt>q?pt+q:2*q);for(var ft=[],ct=W;ct<=V;ct++)ft.push(x.session.getLine(ct));if(Le=ft.join(`
|
169
|
+
`),ce=G(Ye.start.row,Ye.start.column),Me=G(Ye.end.row,Ye.end.column),Ye.start.row<W){var ut=x.session.getLine(W-1);ce=Ye.start.row<W-1?0:ce,Me+=ut.length+1,Le=ut+`
|
170
|
+
`+Le}else if(Ye.end.row>V){var rt=x.session.getLine(V+1);Me=Ye.end.row>V+1?rt.length:Ye.end.column,Me+=Le.length+1,Le=Le+`
|
171
|
+
`+rt}else R&&pt>0&&(Le=`
|
172
|
+
`+Le,Me+=1,ce+=1);Le.length>o&&(ce<o&&Me<o?Le=Le.slice(0,o):(Le=`
|
173
|
+
`,ce==Me?ce=Me=0:(ce=0,Me=1)));var Wt=Le+`
|
174
|
+
|
175
|
+
`;Wt!=L&&(M.value=L=Wt,O=F=Wt.length)}if(me&&(O=M.selectionStart,F=M.selectionEnd),F!=Me||O!=ce||M.selectionEnd!=F)try{M.setSelectionRange(ce,Me),O=ce,F=Me}catch{}T=!1}};this.resetSelection=Q,J&&x.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},X=function(ce){T||(E?E=!1:ie(M)?(x.selectAll(),Q()):R&&M.selectionStart!=O&&Q())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,we=function(ce,Me){if(me&&(me=!1),I)return Q(),ce&&x.onPaste(ce),I=!1,"";for(var Le=M.selectionStart,qe=M.selectionEnd,Ye=O,pt=L.length-F,ft=ce,ct=ce.length-Le,ut=ce.length-qe,rt=0;Ye>0&&L[rt]==ce[rt];)rt++,Ye--;for(ft=ft.slice(rt),rt=1;pt>0&&L.length-rt>O-1&&L[L.length-rt]==ce[ce.length-rt];)rt++,pt--;ct-=rt-1,ut-=rt-1;var Wt=ft.length-rt+1;if(Wt<0&&(Ye=-Wt,Wt=0),ft=ft.slice(0,Wt),!Me&&!ft&&!ct&&!Ye&&!pt&&!ut)return"";N=!0;var Hn=!1;return w.isAndroid&&ft==". "&&(ft=" ",Hn=!0),ft&&!Ye&&!pt&&!ct&&!ut||_?x.onTextInput(ft):x.onTextInput(ft,{extendLeft:Ye,extendRight:pt,restoreStart:ct,restoreEnd:ut}),N=!1,L=ce,O=Le,F=qe,H=ut,Hn?`
|
176
|
+
`:ft},fe=function(ce){if(T)return Dt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return x.execCommand("undo");if(ce.inputType=="historyRedo")return x.execCommand("redo")}var Me=M.value,Le=we(Me,!0);(Me.length>o+100||b.test(Le)||R&&O<1&&O==F)&&Q()},$e=function(ce,Me,Le){var qe=ce.clipboardData||window.clipboardData;if(!(!qe||c)){var Ye=a||Le?"Text":"text/plain";try{return Me?qe.setData(Ye,Me)!==!1:qe.getData(Ye)}catch(pt){if(!Le)return $e(pt,Me,!0)}}},at=function(ce,Me){var Le=x.getCopyText();if(!Le)return f.preventDefault(ce);$e(ce,Le)?(y&&(Q(Le),E=Le,setTimeout(function(){E=!1},10)),Me?x.onCut():x.onCopy(),f.preventDefault(ce)):(E=!0,M.value=Le,M.select(),setTimeout(function(){E=!1,Q(),Me?x.onCut():x.onCopy()}))},Ht=function(ce){at(ce,!0)},dt=function(ce){at(ce,!1)},gt=function(ce){var Me=$e(ce);s.pasteCancelled()||(typeof Me=="string"?(Me&&x.onPaste(Me,ce),w.isIE&&setTimeout(Q),f.preventDefault(ce)):(M.value="",I=!0))};f.addCommandKeyListener(M,function(ce,Me,Le){if(!T)return x.onCommandKey(ce,Me,Le)},x),f.addListener(M,"select",X,x),f.addListener(M,"input",fe,x),f.addListener(M,"cut",Ht,x),f.addListener(M,"copy",dt,x),f.addListener(M,"paste",gt,x),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&f.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:dt(ce);break;case 86:gt(ce);break;case 88:Ht(ce);break}},x);var ln=function(ce){if(!(T||!x.onCompositionStart||x.$readOnly)&&(T={},!_)){ce.data&&(T.useTextareaForIME=!1),setTimeout(Dt,0),x._signal("compositionStart"),x.on("mousedown",Zi);var Me=x.getSelectionRange();Me.end.row=Me.start.row,Me.end.column=Me.start.column,T.markerRange=Me,T.selectionStart=O,x.onCompositionStart(T),T.useTextareaForIME?(L=M.value="",O=0,F=0):(M.msGetInputContext&&(T.context=M.msGetInputContext()),M.getInputContext&&(T.context=M.getInputContext()))}},Dt=function(){if(!(!T||!x.onCompositionUpdate||x.$readOnly)){if(_)return Zi();if(T.useTextareaForIME)x.onCompositionUpdate(M.value);else{var ce=M.value;we(ce),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+F-T.selectionStart+H)}}},Zt=function(ce){!x.onCompositionEnd||x.$readOnly||(T=!1,x.onCompositionEnd(),x.off("mousedown",Zi),ce&&fe())};function Zi(){S=!0,M.blur(),M.focus(),S=!1}var kn=g.delayedCall(Dt,50).schedule.bind(null,null);function tn(ce){ce.keyCode==27&&M.value.length<M.selectionStart&&(T||(L=M.value),O=F=-1,Q()),kn()}f.addListener(M,"compositionstart",ln,x),f.addListener(M,"compositionupdate",Dt,x),f.addListener(M,"keyup",tn,x),f.addListener(M,"keydown",kn,x),f.addListener(M,"compositionend",Zt,x),this.getElement=function(){return M},this.setCommandMode=function(ce){_=ce,M.readOnly=!1},this.setReadOnly=function(ce){_||(M.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,Me){$||($=M.style.cssText),M.style.cssText=(Me?"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),pt=Le.left+(parseInt(Le.borderLeftWidth)||0),ft=Le.bottom-Ye-M.clientHeight-2,ct=function(ut){h.translate(M,ut.clientX-pt-2,Math.min(ut.clientY-Ye-2,ft))};ct(ce),ce.type=="mousedown"&&(x.renderer.$isMousePressed=!0,clearTimeout(Pe),w.isWin&&f.capture(x.container,ct,Be))},this.onContextMenuClose=Be;var Pe;function Be(){clearTimeout(Pe),Pe=setTimeout(function(){$&&(M.style.cssText=$,$=""),x.renderer.$isMousePressed=!1,x.renderer.$keepTextAreaAtCursor&&x.renderer.$moveTextAreaToCursor()},0)}var nn=function(ce){x.textInput.onContextMenu(ce),Be()};f.addListener(M,"mouseup",nn,x),f.addListener(M,"mousedown",function(ce){ce.preventDefault(),Be()},x),f.addListener(x.renderer.scroller,"contextmenu",nn,x),f.addListener(M,"contextmenu",nn,x),y&&We(k,x,M);function We(ce,Me,Le){var qe=null,Ye=!1;Le.addEventListener("keydown",function(ft){qe&&clearTimeout(qe),Ye=!0},!0),Le.addEventListener("keyup",function(ft){qe=setTimeout(function(){Ye=!1},100)},!0);var pt=function(ft){if(document.activeElement===Le&&!(Ye||T||Me.$mouseHandler.isMousePressed)&&!E){var ct=Le.selectionStart,ut=Le.selectionEnd,rt=null,Wt=0;if(ct==0?rt=u.up:ct==1?rt=u.home:ut>F&&L[ut]==`
|
177
|
+
`?rt=u.end:ct<O&&L[ct-1]==" "?(rt=u.left,Wt=p.option):ct<O||ct==O&&F!=O&&ct==ut?rt=u.left:ut>F&&L.slice(0,ut).split(`
|
178
|
+
`).length>2?rt=u.down:ut>F&&L[ut-1]==" "?(rt=u.right,Wt=p.option):(ut>F||ut==F&&F!=O&&ct==ut)&&(rt=u.right),ct!==ut&&(Wt|=p.shift),rt){var Hn=Me.onCommandKey({},Wt,rt);if(!Hn&&Me.commands){rt=u.keyCodeToString(rt);var hr=Me.commands.findKeyCommand(Wt,rt);hr&&Me.execCommand(hr)}O=ct,F=ut,Q("")}}};document.addEventListener("selectionchange",pt),Me.on("destroy",function(){document.removeEventListener("selectionchange",pt)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}},i.TextInput=A,i.$setUserAgentForTests=function(k,x){R=k,y=x}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,i,m){var f=e("../lib/useragent"),v=0,w=550,h=function(){function c(a){a.$clickSelection=null;var l=a.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),l.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 c.prototype.onMouseDown=function(a){var l=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var u=this.editor,p=a.getButton();if(p!==0){var y=u.getSelectionRange(),b=y.isEmpty();(b||p==1)&&u.selection.moveToPosition(o),p==2&&(u.textInput.onContextMenu(a.domEvent),f.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!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()},c.prototype.startSelect=function(a,l){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):l||o.selection.moveToPosition(a),l||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},c.prototype.select=function(){var a,l=this.editor,o=l.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 p=s(this.$clickSelection,o);o=p.cursor,a=p.anchor}l.selection.setSelectionAnchor(a.row,a.column)}l.selection.selectToPosition(o),l.renderer.scrollCursorIntoView()},c.prototype.extendSelectionBy=function(a){var l,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),p=o.selection[a](u.row,u.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(p.start),b=this.$clickSelection.comparePoint(p.end);if(y==-1&&b<=0)l=this.$clickSelection.end,(p.end.row!=u.row||p.end.column!=u.column)&&(u=p.start);else if(b==1&&y>=0)l=this.$clickSelection.start,(p.start.row!=u.row||p.start.column!=u.column)&&(u=p.end);else if(y==-1&&b==1)u=p.end,l=p.start;else{var R=s(this.$clickSelection,u);u=R.cursor,l=R.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var a=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(a>v||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(a){var l=a.getDocumentPosition(),o=this.editor,u=o.session,p=u.getBracketRange(l);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},c.prototype.onTripleClick=function(a){var l=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(a){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},c.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=a.domEvent.timeStamp,p=u-o.t,y=p?a.wheelX/p:o.vx,b=p?a.wheelY/p:o.vy;p<w&&(y=(y+o.vx)/2,b=(b+o.vy)/2);var R=Math.abs(y/b),A=!1;if(R>=1&&l.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(A=!0),R<=1&&l.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 l.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},c}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,i.DefaultHandlers=h;function g(c,a,l,o){return Math.sqrt(Math.pow(l-c,2)+Math.pow(o-a,2))}function s(c,a){if(c.start.row==c.end.row)var l=2*a.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var l=a.column-4;else var l=2*a.row-c.start.row-c.end.row;return l<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,i,m){i.preventParentScroll=function(f){f.stopPropagation();var v=f.currentTarget,w=v.scrollHeight>v.clientHeight;w||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,i,m){var f=this&&this.__extends||function(){var u=function(p,y){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,R){b.__proto__=R}||function(b,R){for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&(b[A]=R[A])},u(p,y)};return function(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");u(p,y);function b(){this.constructor=p}p.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}}(),v=this&&this.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,y=p&&u[p],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(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,s="ace_tooltip",c=function(){function u(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}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(p){this.getElement().textContent=p},u.prototype.setHtml=function(p){this.getElement().innerHTML=p},u.prototype.setPosition=function(p,y){this.getElement().style.left=p+"px",this.getElement().style.top=y+"px"},u.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},u.prototype.setTheme=function(p){this.$element.className=s+" "+(p.isDark?"ace_dark ":"")+(p.cssClass||"")},u.prototype.show=function(p,y,b){p!=null&&this.setText(p),y!=null&&b!=null&&this.setPosition(y,b),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(p){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(p){this.popups.push(p),this.updatePopups()},u.prototype.removePopup=function(p){var y=this.popups.indexOf(p);y!==-1&&(this.popups.splice(y,1),this.updatePopups())},u.prototype.updatePopups=function(){var p,y,b,R;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 M=x.value,E=!0;try{for(var I=(b=void 0,v(A)),T=I.next();!T.done;T=I.next()){var N=T.value;if(this.doPopupsOverlap(N,M)){E=!1;break}}}catch($){b={error:$}}finally{try{T&&!T.done&&(R=I.return)&&R.call(I)}finally{if(b)throw b.error}}E?A.push(M):M.hide()}}catch($){p={error:$}}finally{try{x&&!x.done&&(y=k.return)&&y.call(k)}finally{if(p)throw p.error}}},u.prototype.doPopupsOverlap=function(p,y){var b=p.getElement().getBoundingClientRect(),R=y.getElement().getBoundingClientRect();return b.left<R.right&&b.right>R.left&&b.top<R.bottom&&b.bottom>R.top},u}(),l=new a;i.popupManager=l,i.Tooltip=c;var o=function(u){f(p,u);function p(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 R=b.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",b.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(b)),R.addEventListener("wheel",g),b}return p.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},p.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)},p.prototype.onMouseMove=function(y,b){this.lastEvent=y,this.lastT=Date.now();var R=b.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.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)},p.prototype.isOutsideOfText=function(y){var b=y.editor,R=y.getDocumentPosition(),A=b.session.getLine(R.row);if(R.column==A.length){var k=b.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),x=b.session.documentToScreenPosition(R.row,R.column);if(x.column!=k.column||x.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(y){this.$gatherData=y},p.prototype.showForRange=function(y,b,R,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var x=y.renderer;this.isOpen||(l.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 M=x.textToScreenCoordinates(b.start.row,b.start.column),E=x.scroller.getBoundingClientRect();M.pageX<E.left&&(M.pageX=E.left);var I=this.getElement();I.innerHTML="",I.appendChild(R),I.style.maxHeight="",I.style.display="block";var T=I.clientHeight,N=I.clientWidth,$=window.innerHeight-M.pageY-x.lineHeight,_=!0;M.pageY-T<0&&M.pageY<$&&(_=!1),I.style.maxHeight=(_?M.pageY:$)-k+"px",I.style.top=_?"":M.pageY+x.lineHeight+"px",I.style.bottom=_?window.innerHeight-M.pageY+"px":"",I.style.left=Math.min(M.pageX,window.innerWidth-N-k)+"px"}},p.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")},p.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,l.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.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())},p}(c);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 f=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(p[b]=y[b])},l(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");l(o,u);function p(){this.constructor=o}o.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),v=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],p=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&p>=l.length&&(l=void 0),{value:l&&l[p++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,s=e("../config").nls;e("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,p=new a(o);l.editor.setDefaultHandler("guttermousedown",function(x){if(!(!o.isFocused()||x.getButton()!=0)){var M=u.getRegion(x);if(M!="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();l.$clickSelection=o.selection.getLineRange(E)}return l.setState("selectByLines"),l.captureMouse(x),x.preventDefault()}}});var y,b;function R(){var x=b.getDocumentPosition().row,M=o.session.getLength();if(x==M){var E=o.renderer.pixelToScreenCoordinates(0,b.y).row,I=b.$pos;if(E>o.session.documentToScreenRow(I.row,I.column))return A()}if(p.showTooltip(x),!!p.isOpen)if(o.on("mousewheel",A),l.$tooltipFollowsMouse)k(b);else{var T=b.getGutterRow(),N=u.$lines.get(T);if(N){var $=N.element.querySelector(".ace_gutter_annotation"),_=$.getBoundingClientRect(),S=p.getElement().style;S.left=_.right+"px",S.top=_.bottom+"px"}else k(b)}}function A(){y&&(y=clearTimeout(y)),p.isOpen&&(p.hideTooltip(),o.off("mousewheel",A))}function k(x){p.setPosition(x.x,x.y)}l.editor.setDefaultHandler("guttermousemove",function(x){var M=x.domEvent.target||x.domEvent.srcElement;if(w.hasCssClass(M,"ace_fold-widget"))return A();p.isOpen&&l.$tooltipFollowsMouse&&k(x),b=x,!y&&(y=setTimeout(function(){y=null,b&&!l.isMousePressed?R():A()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(x){b=null,!(!p.isOpen||y)&&(y=setTimeout(function(){y=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}i.GutterHandler=c;var a=function(l){f(o,l);function o(u){var p=l.call(this,u.container)||this;return p.editor=u,p}return o.prototype.setPosition=function(u,p){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),A=this.getHeight();u+=15,p+=15,u+R>y&&(u-=u+R-y),p+A>b&&(p-=20+A),g.prototype.setPosition.call(this,u,p)},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 p,y=this.editor.renderer.$gutterLayer,b=y.$annotations[u],R;b?R={displayText:Array.from(b.displayText),type:Array.from(b.type)}:R={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},M,E=u+1;E<=A.end.row;E++)if(y.$annotations[E])for(var I=0;I<y.$annotations[E].text.length;I++){var T=y.$annotations[E].type[I];k[T].push(y.$annotations[E].text[I]),(!M||x[T]<x[M])&&(M=T)}if(["error","security","warning"].includes(M)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");R.displayText.push(N),R.type.push(M+"_fold")}}if(R.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},_=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var S=w.createElement("span"),L=w.createElement("span");(p=L.classList).add.apply(p,["ace_".concat(R.type[E]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[R.type[E].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(w.createTextNode(" ")),S.appendChild(L),S.appendChild(w.createTextNode(R.displayText[E])),S.appendChild(w.createElement("br")),$[R.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 p,y,b=[],R=["error","security","warning","info","hint"];try{for(var A=v(R),k=A.next();!k.done;k=A.next()){var x=k.value;if(u[x].length){var M=u[x].length===1?o.annotationLabels[x].singular:o.annotationLabels[x].plural;b.push("".concat(u[x].length," ").concat(M))}}}catch(E){p={error:E}}finally{try{k&&!k.done&&(y=A.return)&&y.call(A)}finally{if(p)throw p.error}}return b.join(", ")},o}(g);i.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var f=e("../lib/event"),v=e("../lib/useragent"),w=function(){function h(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){f.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){f.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 g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-c},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=s.contains(c.row,c.column)}return this.$inSelection},h.prototype.getButton=function(){return f.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 f=e("../lib/dom"),v=e("../lib/event"),w=e("../lib/useragent"),h=200,g=200,s=5;function c(l){var o=l.editor,u=f.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var y=o.container,b,R,A,k,x,M,E=0,I,T,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()),T=!0,this.setState("drag")},this.onDragEnd=function(G){if(y.draggable=!1,T=!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 R=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 R=G.clientX,A=G.clientY,b||(F(),E++),W!==null&&(W=null),G.dataTransfer.dropEffect=I=J(G),v.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&b)return H(),I=null,v.preventDefault(G)},this.onDrop=function(G){if(M){var Q=G.dataTransfer;if(T)switch(I){case"move":x.contains(M.row,M.column)?x={start:M,end:M}:x=o.moveText(x,M);break;case"copy":x=o.moveText(x,M,!0);break}else{var ie=Q.getData("Text");x={start:M,end:o.session.insert(M,ie)},o.focus(),I=null}return H(),v.preventDefault(G)}},v.addListener(y,"dragstart",this.onDragStart.bind(l),o),v.addListener(y,"dragend",this.onDragEnd.bind(l),o),v.addListener(y,"dragenter",this.onDragEnter.bind(l),o),v.addListener(y,"dragover",this.onDragOver.bind(l),o),v.addListener(y,"dragleave",this.onDragLeave.bind(l),o),v.addListener(y,"drop",this.onDrop.bind(l),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:R,y:A};else{var me=a(_.x,_.y,R,A);me>s?$=null:ie-$>=g&&(o.renderer.scrollCursorIntoView(),$=null)}}function L(G,Q){var ie=Date.now(),X=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),we={x:{left:R-me.left,right:me.right-R},y:{top:A-me.top,bottom:me.bottom-A}},fe=Math.min(we.x.left,we.x.right),$e=Math.min(we.y.top,we.y.bottom),at={row:G.row,column:G.column};fe/ae<=2&&(at.column+=we.x.left<we.x.right?-3:2),$e/X<=1&&(at.row+=we.y.top<we.y.bottom?-1:1);var Ht=G.row!=at.row,dt=G.column!=at.column,gt=!Q||G.row!=Q.row;Ht||dt&&!gt?N?ie-N>=h&&o.renderer.scrollCursorIntoView(at):N=ie:N=null}function O(){var G=M;M=o.renderer.screenToTextCoordinates(R,A),S(M,G),L(M,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 H(){clearInterval(k),o.session.removeMarker(b),b=null,o.selection.fromOrientedRange(x),o.isFocused()&&!T&&o.$resetCursorStyle(),x=null,M=null,E=0,N=null,$=null,v.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&b&&H()},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 l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var u=w.isWin?"default":"move";l.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(l){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(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,u=l.inSelection(),p=l.getButton(),y=l.domEvent.detail||1;if(y===1&&p===0&&u){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),o.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var R=o.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(c.prototype);function a(l,o,u,p){return Math.sqrt(Math.pow(u-l,2)+Math.pow(p-o,2))}i.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,i,m){var f=e("./mouse_event").MouseEvent,v=e("../lib/event"),w=e("../lib/dom");i.addTouchListeners=function(h,g){var s="scroll",c,a,l,o,u,p,y=0,b,R=0,A=0,k=0,x,M;function E(){var S=window.navigator&&window.navigator.clipboard,L=!1,O=function(){var W=g.getCopyText(),V=g.session.getUndoManager().hasUndo();M.replaceChild(w.buildDom(L?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&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"]),M.firstChild)},F=function(W){return g.commands.canExecute(W,g)},H=function(W){var V=W.target.getAttribute("action");if(V=="more"||!L)return L=!L,O();V=="paste"?S.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(S?S.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),M.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&g.focus()};M=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){s="menu",W.stopPropagation(),W.preventDefault(),g.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),H(W)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function I(){if(!g.getOption("enableMobileMenu")){M&&T();return}M||E();var S=g.selection.cursor,L=g.renderer.textToScreenCoordinates(S.row,S.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,H=g.container.getBoundingClientRect();M.style.top=L.pageY-H.top-3+"px",L.pageX-H.left<H.width-70?(M.style.left="",M.style.right="10px"):(M.style.right="",M.style.left=O+F-H.left+"px"),M.style.display="",M.firstChild.style.display="none",g.on("input",T)}function T(S){M&&(M.style.display="none"),g.off("input",T)}function N(){u=null,clearTimeout(u);var S=g.selection.getRange(),L=S.contains(b.row,b.column);(S.isEmpty()||!L)&&(g.selection.moveToPosition(b),g.selection.selectWord()),s="wait",I()}function $(){u=null,clearTimeout(u),g.selection.moveToPosition(b);var S=R>=2?g.selection.getLineRange(b.row):g.session.getBracketRange(b);S&&!S.isEmpty()?g.selection.setRange(S):g.selection.selectWord(),s="wait"}v.addListener(h,"contextmenu",function(S){if(x){var L=g.textInput.getElement();L.focus()}},g),v.addListener(h,"touchstart",function(S){var L=S.touches;if(u||L.length>1){clearTimeout(u),u=null,l=-1,s="zoom";return}x=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,H=S.timeStamp;o=H;var W=L[0],V=W.clientX,q=W.clientY;Math.abs(c-V)+Math.abs(a-q)>O&&(l=-1),c=S.clientX=V,a=S.clientY=q,A=k=0;var J=new f(S,g);if(b=J.getDocumentPosition(),H-l<500&&L.length==1&&!y)R++,S.preventDefault(),S.button=0,$();else{R=0;var G=g.selection.cursor,Q=g.selection.isEmpty()?G:g.selection.anchor,ie=g.renderer.$cursorLayer.getPixelPosition(G,!0),X=g.renderer.$cursorLayer.getPixelPosition(Q,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,we=g.renderer.scrollLeft,fe=function(Ht,dt){return Ht=Ht/F,dt=dt/O-.75,Ht*Ht+dt*dt};if(S.clientX<ae.left){s="zoom";return}var $e=fe(S.clientX-ae.left-ie.left+we,S.clientY-ae.top-ie.top+me),at=fe(S.clientX-ae.left-X.left+we,S.clientY-ae.top-X.top+me);$e<3.5&&at<3.5&&(s=$e>at?"cursor":"anchor"),at<3.5?s="anchor":$e<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}l=H},g),v.addListener(h,"touchend",function(S){x=g.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),s=="zoom"?(s="",y=0):u?(g.selection.moveToPosition(b),y=0,I()):s=="scroll"?(_(),T()):I(),clearTimeout(u),u=null},g),v.addListener(h,"touchmove",function(S){u&&(clearTimeout(u),u=null);var L=S.touches;if(!(L.length>1||s=="zoom")){var O=L[0],F=c-O.clientX,H=a-O.clientY;if(s=="wait")if(F*F+H*H>4)s="cursor";else return S.preventDefault();c=O.clientX,a=O.clientY,S.clientX=O.clientX,S.clientY=O.clientY;var W=S.timeStamp,V=W-o;if(o=W,s=="scroll"){var q=new f(S,g);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(A=F/V,k=H/V),g._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var J=new f(S,g),G=J.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(G):s=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),S.preventDefault()}}},g);function _(){y+=60,p=setInterval(function(){y--<=0&&(clearInterval(p),p=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=g.session.getScrollTop();g.renderer.scrollBy(10*A,10*k),S==g.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 f=e("../lib/event"),v=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,a=e("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=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();f.addListener(b,"click",this.onMouseEvent.bind(this,"click"),u),f.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),f.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),f.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var R=u.renderer.$gutter;f.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),f.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),u),f.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),f.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),f.addListener(b,"mousedown",y,u),f.addListener(R,"mousedown",y,u),v.isIE&&u.renderer.scrollBarV&&(f.addListener(u.renderer.scrollBarV.element,"mousedown",y,u),f.addListener(u.renderer.scrollBarH.element,"mousedown",y,u)),u.on("mousemove",function(A){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(A.x,A.y),x=u.session.selection.getRange(),M=u.renderer;!x.isEmpty()&&x.insideStart(k.row,k.column)?M.setCursorStyle("default"):M.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,p){this.editor.session&&this.editor._emit(u,new g(p,this.editor))},o.prototype.onMouseMove=function(u,p){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(u,new g(p,this.editor))},o.prototype.onMouseWheel=function(u,p){var y=new g(p,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=p.wheelX,y.wheelY=p.wheelY,this.editor._emit(u,y)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,p){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var y=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var R=this,A=function(I){if(I){if(v.isWebKit&&!I.which&&R.releaseMouse)return R.releaseMouse();R.x=I.clientX,R.y=I.clientY,p&&p(I),R.mouseEvent=new g(I,R.editor),R.$mouseMoved=!0}},k=function(I){y.off("beforeEndOperation",M),clearInterval(E),y.session&&x(),R[R.state+"End"]&&R[R.state+"End"](I),R.state="",R.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,I&&R.onMouseEvent("mouseup",I),y.endOperation()},x=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(v.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var M=function(I){R.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};y.on("beforeEndOperation",M),y.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=A,R.releaseMouse=f.capture(this.editor.container,A,k);var E=setInterval(x,20)},o.prototype.cancelContextMenu=function(){var u=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),p&&p.domEvent&&f.stopEvent(p.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,a.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:v.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,i,m){var f=e("../lib/dom"),v=function(){function w(h){h.on("click",function(g){var s=g.getDocumentPosition(),c=h.session,a=c.getFoldAt(s.row,s.column,1);a&&(g.getAccelKey()?c.removeFold(a):c.expandFold(a),g.stop());var l=g.domEvent&&g.domEvent.target;l&&f.hasCssClass(l,"ace_inline_button")&&f.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var c=g.getDocumentPosition().row,a=h.session;a.foldWidgets&&a.foldWidgets[c]&&h.session.onFoldWidgetClick(c,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var c=g.getDocumentPosition().row,a=h.session,l=a.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var u=a.getFoldAt(c,a.getLine(c).length,1);u?a.removeFold(u):(a.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.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 f=e("../lib/keys"),v=e("../lib/event"),w=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var c=this.$handlers.indexOf(g);c!=-1&&this.$handlers.splice(c,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),c==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(s,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,s,c,a){for(var l,o=!1,u=this.$editor.commands,p=this.$handlers.length;p--&&(l=this.$handlers[p].handleKeyboard(this.$data,g,s,c,a),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,a),o&&a&&g!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&v.stopEvent(a),o))););return!o&&g==-1&&(l={command:"insertstring"},o=u.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},h.prototype.onCommandKey=function(g,s,c){var a=f.keyCodeToString(c);return this.$callKeyboardHandlers(s,a,c,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();i.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,i,m){var f=0,v=0,w=!1,h=!1,g=!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]],c=[[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,l=1,o=0,u=1,p=2,y=3,b=4,R=5,A=6,k=7,x=8,M=9,E=10,I=11,T=12,N=13,$=14,_=15,S=16,L=17,O=18,F=[O,O,O,O,O,O,O,O,O,A,R,A,x,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,R,R,R,A,x,b,b,I,I,I,b,b,b,b,b,E,M,E,M,M,p,p,p,p,p,p,p,p,p,p,M,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,R,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,M,b,I,I,I,I,b,b,b,b,o,b,b,O,b,b,I,I,p,p,b,o,b,b,b,p,o,b,b,b,b,b],H=[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,R,N,$,_,S,L,M,I,I,I,I,I,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,M,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 W(G,Q,ie,X){var ae=f?c:s,me=null,we=null,fe=null,$e=0,at=null,Ht=null,dt=-1,gt=null,ln=null,Dt=[];if(!X)for(gt=0,X=[];gt<ie;gt++)X[gt]=J(G[gt]);for(v=f,w=!1,h=!1,g=!1,ln=0;ln<ie;ln++){if(me=$e,Dt[ln]=we=q(G,X,Dt,ln),$e=ae[me][we],at=$e&240,$e&=15,Q[ln]=fe=ae[$e][5],at>0)if(at==16){for(gt=dt;gt<ln;gt++)Q[gt]=1;dt=-1}else dt=-1;if(Ht=ae[$e][6],Ht)dt==-1&&(dt=ln);else if(dt>-1){for(gt=dt;gt<ln;gt++)Q[gt]=fe;dt=-1}X[ln]==R&&(Q[ln]=0),v|=fe}if(g){for(gt=0;gt<ie;gt++)if(X[gt]==A){Q[gt]=f;for(var Zt=gt-1;Zt>=0&&X[Zt]==x;Zt--)Q[Zt]=f}}}function V(G,Q,ie){if(!(v<G)){if(G==1&&f==l&&!h){ie.reverse();return}for(var X=ie.length,ae=0,me,we,fe,$e;ae<X;){if(Q[ae]>=G){for(me=ae+1;me<X&&Q[me]>=G;)me++;for(we=ae,fe=me-1;we<fe;we++,fe--)$e=ie[we],ie[we]=ie[fe],ie[fe]=$e;ae=me}ae++}}}function q(G,Q,ie,X){var ae=Q[X],me,we,fe,$e;switch(ae){case o:case u:w=!1;case b:case y:return ae;case p:return w?y:p;case k:return w=!0,u;case x:return b;case M:return X<1||X+1>=Q.length||(me=ie[X-1])!=p&&me!=y||(we=Q[X+1])!=p&&we!=y?b:(w&&(we=y),we==me?we:b);case E:return me=X>0?ie[X-1]:R,me==p&&X+1<Q.length&&Q[X+1]==p?p:b;case I:if(X>0&&ie[X-1]==p)return p;if(w)return b;for($e=X+1,fe=Q.length;$e<fe&&Q[$e]==I;)$e++;return $e<fe&&Q[$e]==p?p:b;case T:for(fe=Q.length,$e=X+1;$e<fe&&Q[$e]==T;)$e++;if($e<fe){var at=G[X],Ht=at>=1425&&at<=2303||at==64286;if(me=Q[$e],Ht&&(me==u||me==k))return u}return X<1||(me=Q[X-1])==R?b:ie[X-1];case R:return w=!1,h=!0,f;case A:return g=!0,b;case N:case $:case S:case L: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)?T:/[\u0660-\u0669\u066b-\u066c]/.test(G)?y:Q==1642?I:/[\u06f0-\u06f9]/.test(G)?p:k:ie==32&&Q<=8287?H[Q&255]:ie==254&&Q>=65136?k:b}i.L=o,i.R=u,i.EN=p,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),we=[];f=ie?l:a,W(X,we,X.length,Q);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,we,ae),V(1,we,ae);for(var fe=0;fe<ae.length-1;fe++)Q[fe]===y?we[fe]=i.AN:we[fe]===u&&(Q[fe]>k&&Q[fe]<N||Q[fe]===b||Q[fe]===O)?we[fe]=i.ON_R:fe>0&&X[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(X[fe])&&(we[fe-1]=we[fe]=i.R_H,fe++);X[X.length-1]===i.DOT&&(we[X.length-1]=i.B),X[0]===""&&(we[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)me[fe]=we[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 f=e("./lib/bidiutil"),v=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=f,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 g.prototype.isBidiRow=function(s,c,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(c,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,c=this.session.$screenRowCache;if(c.length){var a=this.session.$getRowCacheIndex(c,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},g.prototype.getSplitIndex=function(){var s=0,c=this.session.$screenRowCache;if(c.length)for(var a,l=this.session.$getRowCacheIndex(c,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(c,this.currentRow-s-1),a===l);)l=a,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,c){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,l=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&&(c===void 0&&(c=this.getSplitIndex()),c>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[f.L],this.line=c<o.length?this.line.substring(o[c-1],o[c]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[c]),c==o.length&&(this.line+=this.showInvisibles?l:f.DOT))}else this.line+=this.showInvisibles?l:f.DOT;var u=this.session,p=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,R){return b===" "||u.isFullWidth(b.charCodeAt(0))?(y=b===" "?u.getScreenTabSize(R+p):2,p+=y-1,v.stringRepeat(f.DOT,y)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==f.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];f.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=f.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var c=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[f.L]=this.charWidths[f.EN]=this.charWidths[f.ON_R]=c,this.charWidths[f.R]=this.charWidths[f.AN]=a,this.charWidths[f.R_H]=a*.45,this.charWidths[f.B]=this.charWidths[f.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,c){for(var a=s.getCursorPosition(),l=s.selection.getSelectionAnchor().row;l<=a.row;l++)!c&&s.session.getLine(l).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(l,0,1):c&&s.session.getLine(l).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:l},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var c=this.line.charAt(0)===this.RLE?1:0,a=s>c?this.session.getOverwrite()?s:s-1:c,l=f.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=c&&o[l]%2!==0&&l++;for(var p=0;p<l;p++)u+=this.charWidths[o[p]];return!this.session.getOverwrite()&&s>c&&o[l]%2===0&&(u+=this.charWidths[o[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},g.prototype.getSelections=function(s,c){var a=this.bidiMap,l=a.bidiLevels,o,u=[],p=0,y=Math.min(s,c)-this.wrapIndent,b=Math.max(s,c)-this.wrapIndent,R=!1,A=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var x,M=0;M<l.length;M++)x=a.logicalFromVisual[M],o=l[M],R=x>=y&&x<b,R&&!A?k=p:!R&&A&&u.push({left:k,width:p-k}),p+=this.charWidths[o],A=R;if(R&&M===l.length&&u.push({left:k,width:p-k}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},g.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var c=0,a=Math.max(a,0),l=0,o=0,u=this.bidiMap.bidiLevels,p=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>l+p/2;){if(l+=p,o===u.length-1){p=0;break}p=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(a<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?c=1+(a>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&p===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&p!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},g}();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 f=e("./lib/oop"),v=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=function(){function s(c){this.session=c,this.doc=c.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(l){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&l.old.column!=l.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(c,a){this.$isEmpty=!1,this.anchor.setPosition(c,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 c=this.anchor,a=this.lead;return c.row>a.row||c.row==a.row&&c.column>a.column},s.prototype.getRange=function(){var c=this.anchor,a=this.lead;return this.$isEmpty?h.fromPoints(a,a):this.isBackwards()?h.fromPoints(a,c):h.fromPoints(c,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(c,a){var l=a?c.end:c.start,o=a?c.start:c.end;this.$setSelection(l.row,l.column,o.row,o.column)},s.prototype.$setSelection=function(c,a,l,o){if(!this.$silent){var u=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,a),this.cursor.setPosition(l,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||p)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(c){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),c.call(this)},s.prototype.selectTo=function(c,a){this.$moveSelection(function(){this.moveCursorTo(c,a)})},s.prototype.selectToPosition=function(c){this.$moveSelection(function(){this.moveCursorToPosition(c)})},s.prototype.moveTo=function(c,a){this.clearSelection(),this.moveCursorTo(c,a)},s.prototype.moveToPosition=function(c){this.clearSelection(),this.moveCursorToPosition(c)},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(c,a){if(typeof a>"u"){var l=c||this.lead;c=l.row,a=l.column}return this.session.getWordRange(c,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var c=this.getCursor(),a=this.session.getAWordRange(c.row,c.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(c,a){var l=typeof c=="number"?c:this.lead.row,o,u=this.session.getFoldLine(l);return u?(l=u.start.row,o=u.end.row):o=l,a===!0?new h(l,0,o,this.session.getLine(o).length):new h(l,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(c,a,l){var o=c.column,u=c.column+a;return l<0&&(o=c.column-a,u=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,u).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var c=this.lead.getPosition(),a;if(a=this.session.getFoldAt(c.row,c.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(c.column===0)c.row>0&&this.moveCursorTo(c.row-1,this.doc.getLine(c.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(c,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var c=this.lead.getPosition(),a;if(a=this.session.getFoldAt(c.row,c.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 l=this.session.getTabSize(),c=this.lead;this.wouldMoveIntoSoftTab(c,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var c=this.lead.row,a=this.lead.column,l=this.session.documentToScreenRow(c,a),o=this.session.screenToDocumentPosition(l,0),u=this.session.getDisplayLine(c,null,o.row,o.column),p=u.match(/^\s*/);p[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=p[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var c=this.lead,a=this.session.getDocumentLastRowColumnPosition(c.row,c.column);if(this.lead.column==a.column){var l=this.session.getLine(a.row);if(a.column==l.length){var o=l.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var c=this.doc.getLength()-1,a=this.doc.getLine(c).length;this.moveCursorTo(c,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var c=this.lead.row,a=this.lead.column,l=this.doc.getLine(c),o=l.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(c,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=l.substring(a)),a>=l.length){this.moveCursorTo(c,l.length),this.moveCursorRight(),c<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,a)},s.prototype.moveCursorLongWordLeft=function(){var c=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(c,a,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var o=this.session.getFoldStringAt(c,a,-1);o==null&&(o=this.doc.getLine(c).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(c,0),this.moveCursorLeft(),c>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,a)},s.prototype.$shortWordEndIndex=function(c){var a=0,l,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(c))a=this.session.tokenRe.lastIndex;else{for(;(l=c[a])&&o.test(l);)a++;if(a<1){for(u.lastIndex=0;(l=c[a])&&!u.test(l);)if(u.lastIndex=0,a++,o.test(l))if(a>2){a--;break}else{for(;(l=c[a])&&o.test(l);)a++;if(a>2)break}}}return u.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var c=this.lead.row,a=this.lead.column,l=this.doc.getLine(c),o=l.substring(a),u=this.session.getFoldAt(c,a,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(a==l.length){var p=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<p&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var y=this.$shortWordEndIndex(o);this.moveCursorTo(c,a+y)},s.prototype.moveCursorShortWordLeft=function(){var c=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(c,a,-1))return this.moveCursorTo(l.start.row,l.start.column);var o=this.session.getLine(c).substring(0,a);if(a===0){do c--,o=this.doc.getLine(c);while(c>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var u=v.stringReverse(o),p=this.$shortWordEndIndex(u);return this.moveCursorTo(c,a-p)},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(c,a){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(c!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),c!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];c<0?c-=u.rowsAbove||0:c>0&&(c+=u.rowCount-(u.rowsAbove||0))}var p=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&a===0&&p.row===this.lead.row&&(p.column,this.lead.column),this.moveCursorTo(p.row,p.column+a,a===0)},s.prototype.moveCursorToPosition=function(c){this.moveCursorTo(c.row,c.column)},s.prototype.moveCursorTo=function(c,a,l){var o=this.session.getFoldAt(c,a,1);o&&(c=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(u.charAt(a))&&u.charAt(a-1)&&(this.lead.row==c&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(c,a),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(c,a,l){var o=this.session.screenToDocumentPosition(c,a);this.moveCursorTo(o.row,o.column,l)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(c){this.setSelectionRange(c,c.cursor==c.start),this.$desiredColumn=c.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(c){var a=this.getRange();return c?(c.start.column=a.start.column,c.start.row=a.start.row,c.end.column=a.end.column,c.end.row=a.end.row):c=a,c.cursor=this.isBackwards()?c.start:c.end,c.desiredColumn=this.$desiredColumn,c},s.prototype.getRangeOfMovements=function(c){var a=this.getCursor();try{c(this);var l=this.getCursor();return h.fromPoints(a,l)}catch{return h.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var c=this.ranges.map(function(a){var l=a.clone();return l.isBackwards=a.cursor==a.start,l});else{var c=this.getRange();c.isBackwards=this.isBackwards()}return c},s.prototype.fromJSON=function(c){if(c.start==null)if(this.rangeList&&c.length>1){this.toSingleRange(c[0]);for(var a=c.length;a--;){var l=h.fromPoints(c[a].start,c[a].end);c[a].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else c=c[0];this.rangeList&&this.toSingleRange(c),this.setSelectionRange(c,c.isBackwards)},s.prototype.isEqual=function(c){if((c.length||this.rangeCount)&&c.length!=this.rangeCount)return!1;if(!c.length||!this.ranges)return this.getRange().isEqual(c);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(c[a]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,f.implement(g.prototype,w),i.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,i,m){var f=e("./lib/report_error").reportError,v=2e3,w=function(){function h(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var c=this.states[s],a=[],l=0,o=this.matchMappings[s]={defaultToken:"text"},u="g",p=[],y=0;y<c.length;y++){var b=c[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 R=b.regex,A=new RegExp("(?:("+R+")|(.))").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)?R=b.regex.replace(/\\([0-9]+)/g,function(k,x){return"\\"+(parseInt(x,10)+l+1)}):(A=1,R=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&p.push(b)),o[l]=y,l+=A,a.push(R),b.onMatch||(b.onMatch=null)}}a.length||(o[0]=0,a.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(g){v=g|0},h.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),c=this.token.apply(this,s);if(typeof c=="string")return[{type:c,value:g}];for(var a=[],l=0,o=c.length;l<o;l++)s[l]&&(a[a.length]={type:c[l],value:s[l]});return a},h.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var c=[],a=this.tokenArray,l=0,o=a.length;l<o;l++)s[l+1]&&(c[c.length]={type:a[l],value:s[l+1]});return c},h.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,a){return a?"(?:":c});return s},h.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var c=0,a=!1,l={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,p,y,b,R){return a?a=b!="]":b?a=!0:y?(c==l.stack&&(l.end=R+1,l.stack=-1),c--):p&&(c++,p.length!=1&&(l.stack=c,l.start=R)),o}),l.end!=null&&/^\)*$/.test(g.substr(l.end))&&(g=g.substring(0,l.start)+g.substr(l.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},h.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var c=s.slice(0);s=c[0],s==="#tmp"&&(c.shift(),s=c.shift())}else var c=[];var a=s||"start",l=this.states[a];l||(a="start",l=this.states[a]);var o=this.matchMappings[a],u=this.regExps[a];u.lastIndex=0;for(var p,y=[],b=0,R=0,A={type:null,value:""};p=u.exec(g);){var k=o.defaultToken,x=null,M=p[0],E=u.lastIndex;if(E-M.length>b){var I=g.substring(b,E-M.length);A.type==k?A.value+=I:(A.type&&y.push(A),A={type:k,value:I})}for(var T=0;T<p.length-2;T++)if(p[T+1]!==void 0){x=l[o[T]],x.onMatch?k=x.onMatch(M,a,c,g):k=x.token,x.next&&(typeof x.next=="string"?a=x.next:a=x.next(a,c),l=this.states[a],l||(this.reportError("state doesn't exist",a),a="start",l=this.states[a]),o=this.matchMappings[a],b=E,u=this.regExps[a],u.lastIndex=E),x.consumeLineEnd&&(b=E);break}if(M){if(typeof k=="string")(!x||x.merge!==!1)&&A.type===k?A.value+=M:(A.type&&y.push(A),A={type:k,value:M});else if(k){A.type&&y.push(A),A={type:null,value:""};for(var T=0;T<k.length;T++)y.push(k[T])}}if(b==g.length)break;if(b=E,R++>v){for(R>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});b<g.length;)A.type&&y.push(A),A={value:g.substring(b,b+=500),type:"overflow"};a="start",c=[];break}}return A.type&&y.push(A),c.length>1&&c[0]!==a&&c.unshift("#tmp",a),{tokens:y,state:c.length?c:a}},h}();w.prototype.reportError=f,i.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){var f=e("../lib/deep_copy").deepCopy,v;v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var c in g)this.$rules[c]=g[c];return}for(var c in g){for(var a=g[c],l=0;l<a.length;l++){var o=a[l];(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+c]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,c,a,l){var o=typeof g=="function"?new g().getRules():g;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var p in o)a.push(s+p)}if(this.addRules(o,s),c)for(var y=Array.prototype[l?"push":"unshift"],u=0;u<a.length;u++)y.apply(this.$rules[a[u]],f(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},h=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function c(a){var l=s[a];l.processed=!0;for(var o=0;o<l.length;o++){var u=l[o],p=null;Array.isArray(u)&&(p=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+=g++)),s[b]=y,u.next=b,c(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 R in u.rules)s[R]?s[R].push&&s[R].push.apply(s[R],u.rules[R]):s[R]=u.rules[R];var A=typeof u=="string"?u:u.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?p=A.map(function(x){return s[x]}):p=s[A]),p){var k=[o,1].concat(p);u.noEscape&&(k=k.filter(function(x){return!x.next})),l.splice.apply(l,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(c,this)},this.createKeywordMapper=function(g,s,c,a){var l=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var u=g[o],p=u.split(a||"|"),y=p.length;y--;){var b=p[y];this.$keywordList.push(b),c&&(b=b.toLowerCase()),l[b]=o}},this),g=null,c?function(o){return l[o.toLowerCase()]||s}:function(o){return l[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 f;f=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(f.prototype),i.Behaviour=f}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,i,m){var f=e("./range").Range,v=function(){function w(h,g,s){this.$session=h,this.$row=g,this.$rowTokens=h.getTokens(g);var c=h.getTokenAt(g,s);this.$tokenIndex=c?c.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,g=this.$tokenIndex,s=h[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=h[g].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],g=this.getCurrentTokenColumn();return new f(this.$row,g,this.$row,g+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 f=e("../../lib/oop"),v=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,a={},l={'"':'"',"'":"'"},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 c=a[b];c=a[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(y,b,R,A){var k=y.end.row-y.start.row;return{text:R+b+A,selection:[0,y.start.column+1,k,y.end.column+(k?0:1)]}},p;p=function(y){y=y||{},this.add("braces","insertion",function(b,R,A,k,x){var M=A.getCursorPosition(),E=k.doc.getLine(M.row);if(x=="{"){o(A);var I=A.getSelectionRange(),T=k.doc.getTextRange(I),N=k.getTokenAt(M.row,M.column);if(T!==""&&T!=="{"&&A.getWrapBehavioursEnabled())return u(I,T,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var $=[/tag\-(?:open|name)/,/attribute\-name/];return $.some(function(W){return W.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[M.column-N.start-1]!=="$"?void 0:(p.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(p.isSaneInsertion(A,k))return/[\]\}\)]/.test(E[M.column])||A.inMultiSelectMode||y.braces?(p.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(x=="}"){o(A);var _=E.substring(M.column,M.column+1);if(_=="}"){var S=k.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(S!==null&&p.isAutoInsertedClosing(M,E,x))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(x==`
|
180
|
+
`||x==`\r
|
181
|
+
`){o(A);var L="";p.isMaybeInsertedClosing(M,E)&&(L=h.stringRepeat("}",c.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var _=E.substring(M.column,M.column+1);if(_==="}"){var O=k.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(L)var F=this.$getIndent(E);else{p.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
|
182
|
+
`+H+`
|
183
|
+
`+F+L,selection:[1,H.length,1,H.length]}}else p.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,R,A,k,x){var M=k.doc.getTextRange(x);if(!x.isMultiLine()&&M=="{"){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;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,R,A,k,x){if(x=="("){o(A);var M=A.getSelectionRange(),E=k.doc.getTextRange(M);if(E!==""&&A.getWrapBehavioursEnabled())return u(M,E,"(",")");if(p.isSaneInsertion(A,k))return p.recordAutoInsert(A,k,")"),{text:"()",selection:[1,1]}}else if(x==")"){o(A);var I=A.getCursorPosition(),T=k.doc.getLine(I.row),N=T.substring(I.column,I.column+1);if(N==")"){var $=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if($!==null&&p.isAutoInsertedClosing(I,T,x))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,R,A,k,x){var M=k.doc.getTextRange(x);if(!x.isMultiLine()&&M=="("){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,R,A,k,x){if(x=="["){o(A);var M=A.getSelectionRange(),E=k.doc.getTextRange(M);if(E!==""&&A.getWrapBehavioursEnabled())return u(M,E,"[","]");if(p.isSaneInsertion(A,k))return p.recordAutoInsert(A,k,"]"),{text:"[]",selection:[1,1]}}else if(x=="]"){o(A);var I=A.getCursorPosition(),T=k.doc.getLine(I.row),N=T.substring(I.column,I.column+1);if(N=="]"){var $=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if($!==null&&p.isAutoInsertedClosing(I,T,x))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,R,A,k,x){var M=k.doc.getTextRange(x);if(!x.isMultiLine()&&M=="["){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,R,A,k,x){var M=k.$mode.$quotes||l;if(x.length==1&&M[x]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(x)!=-1)return;o(A);var E=x,I=A.getSelectionRange(),T=k.doc.getTextRange(I);if(T!==""&&(T.length!=1||!M[T])&&A.getWrapBehavioursEnabled())return u(I,T,E,E);if(!T){var N=A.getCursorPosition(),$=k.doc.getLine(N.row),_=$.substring(N.column-1,N.column),S=$.substring(N.column,N.column+1),L=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),H=!O||/string|escape/.test(O.type),W;if(S==E)W=F!==H,W&&/string\.end/.test(O.type)&&(W=!1);else{if(F&&!H||F&&H)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;W=!0}return{text:W?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,R,A,k,x){var M=k.$mode.$quotes||l,E=k.doc.getTextRange(x);if(!x.isMultiLine()&&M.hasOwnProperty(E)){o(A);var I=k.doc.getLine(x.start.row),T=I.substring(x.start.column+1,x.start.column+2);if(T==E)return x.end.column++,x}}),y.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,R,A,k,x){if(b==="doc-start"&&(x===`
|
184
|
+
`||x===`\r
|
185
|
+
`)&&A.selection.isEmpty()){var M=A.getCursorPosition();if(M.column===0)return;for(var E=k.doc.getLine(M.row),I=k.doc.getLine(M.row+1),T=k.getTokens(M.row),N=0,$=0;$<T.length;$++){N+=T[$].value.length;var _=T[$];if(N>=M.column){if(N===M.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var S=T[$+1];if(!S||!/\.doc/.test(S.type))return}}var L=M.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&L>F&&L<F+3||O!==-1&&F!==-1&&L>=O&&L<=F||!/\.doc/.test(_.type))return;break}}var H=this.$getIndent(E);if(/\s*\*/.test(I))return/^\s*\*/.test(E)?{text:x+H+"* ",selection:[1,2+H.length,1,2+H.length]}:{text:x+H+" * ",selection:[1,3+H.length,1,3+H.length]};if(/\/\*\*/.test(E.substring(0,M.column)))return{text:x+H+" * "+x+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},p.isSaneInsertion=function(y,b){var R=y.getCursorPosition(),A=new w(b,R.row,R.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",g)){if(/[)}\]]/.test(y.session.getLine(R.row)[R.column]))return!0;var k=new w(b,R.row,R.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",g))return!1}return A.stepForward(),A.getCurrentTokenRow()!==R.row||this.$matchTokenType(A.getCurrentToken()||"text",s)},p.$matchTokenType=function(y,b){return b.indexOf(y.type||y)>-1},p.recordAutoInsert=function(y,b,R){var A=y.getCursorPosition(),k=b.doc.getLine(A.row);this.isAutoInsertedClosing(A,k,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=A.row,c.autoInsertedLineEnd=R+k.substr(A.column),c.autoInsertedBrackets++},p.recordMaybeInsert=function(y,b,R){var A=y.getCursorPosition(),k=b.doc.getLine(A.row);this.isMaybeInsertedClosing(A,k)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=A.row,c.maybeInsertedLineStart=k.substr(0,A.column)+R,c.maybeInsertedLineEnd=k.substr(A.column),c.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(y,b,R){return c.autoInsertedBrackets>0&&y.row===c.autoInsertedRow&&R===c.autoInsertedLineEnd[0]&&b.substr(y.column)===c.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(y,b){return c.maybeInsertedBrackets>0&&y.row===c.maybeInsertedRow&&b.substr(y.column)===c.maybeInsertedLineEnd&&b.substr(0,y.column)==c.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},f.inherits(p,v),i.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(e,i,m){for(var f=[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<f.length;h+=2)w.push(v+=f[h]),f[h+1]&&w.push(45,v+=f[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 f=e("../config"),v=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,g=e("../unicode"),s=e("../lib/lang"),c=e("../token_iterator").TokenIterator,a=e("../range").Range,l;l=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new v(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,p,y){var b=u.doc,R=!0,A=!0,k=1/0,x=u.getTabSize(),M=!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+") ?"),M=u.getUseSoftTabs();var T=function(W,V){var q=W.match(E);if(q){var J=q[1].length,G=q[0].length;!S(W,J,G)&&q[0][G-1]==" "&&G--,b.removeInLine(V,J,G)}},N=I+" ",$=function(W,V){(!R||/\S/.test(W))&&(S(W,k,k)?b.insertInLine({row:V,column:k},N):b.insertInLine({row:V,column:k},I))},_=function(W,V){return E.test(W)},S=function(W,V,q){for(var J=0;V--&&W.charAt(V)==" ";)J++;if(J%x!=0)return!1;for(var J=0;W.charAt(q++)==" ";)J++;return x>2?J%x!=x-1:J%x==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,L=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),O=new RegExp("(?:"+s.escapeRegExp(L)+")\\s*$"),$=function(Q,ie){_(Q,ie)||(!R||/\S/.test(Q))&&(b.insertInLine({row:ie,column:Q.length},L),b.insertInLine({row:ie,column:k},I))},T=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(W){for(var V=p;V<=y;V++)W(b.getLine(V),V)}var H=1/0;F(function(W,V){var q=W.search(/\S/);q!==-1?(q<k&&(k=q),A&&!_(W,V)&&(A=!1)):H>W.length&&(H=W.length)}),k==1/0&&(k=H,R=!1,A=!1),M&&k%x!=0&&(k=Math.floor(k/x)*x),F(A?T:$)},this.toggleBlockComment=function(o,u,p,y){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var R=new c(u,y.row,y.column),A=R.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),x,M;if(A&&/comment/.test(A.type)){for(var E,I;A&&/comment/.test(A.type);){var T=A.value.indexOf(b.start);if(T!=-1){var N=R.getCurrentTokenRow(),$=R.getCurrentTokenColumn()+T;E=new a(N,$,N,$+b.start.length);break}A=R.stepBackward()}for(var R=new c(u,y.row,y.column),A=R.getCurrentToken();A&&/comment/.test(A.type);){var T=A.value.indexOf(b.end);if(T!=-1){var N=R.getCurrentTokenRow(),$=R.getCurrentTokenColumn()+T;I=new a(N,$,N,$+b.end.length);break}A=R.stepForward()}I&&u.remove(I),E&&(u.remove(E),x=E.start.row,M=-b.start.length)}else M=b.start.length,x=p.start.row,u.insert(p.end,b.end),u.insert(p.start,b.start);k.start.row==x&&(k.start.column+=M),k.end.row==x&&(k.end.column+=M),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,p){return this.$getIndent(u)},this.checkOutdent=function(o,u,p){return!1},this.autoOutdent=function(o,u,p){},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 p=o[u],y=p.prototype.$id,b=f.$modes[y];b||(f.$modes[y]=b=new p),f.$modes[u]||(f.$modes[u]=b),this.$embeds.push(u),this.$modes[u]=b}for(var R=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],A=function(M){(function(E){var I=R[M],T=E[I];E[R[M]]=function(){return this.$delegator(I,arguments,T)}})(k)},k=this,u=0;u<R.length;u++)A(u)},this.$delegator=function(o,u,p){var y=u[0]||"start";if(typeof y!="string"){if(Array.isArray(y[2])){var b=y[2][y[2].length-1],R=this.$modes[b];if(R)return R[o].apply(R,[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 R=this.$modes[this.$embeds[A]];return R[o].apply(R,u)}}var x=p.apply(this,u);return p?x:void 0},this.transformAction=function(o,u,p,y,b){if(this.$behaviour){var R=this.$behaviour.getBehaviours();for(var A in R)if(R[A][u]){var k=R[A][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,p=[];for(var y in u)for(var b=u[y],R=0,A=b.length;R<A;R++)if(typeof b[R].token=="string")/keyword|support|storage/.test(b[R].token)&&p.push(b[R].regex);else if(typeof b[R].token=="object"){for(var k=0,x=b[R].token.length;k<x;k++)if(/keyword|support|storage/.test(b[R].token[k])){var y=b[R].regex.match(/\(.+?\)/g)[k];p.push(y.substr(1,y.length-2))}}this.completionKeywords=p}return o?p.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,p,y){var b=this.$keywordList||this.$createKeywordList();return b.map(function(R){return{name:R,value:R,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),i.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,i,m){var f=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 g;return this.lineWidgets?g=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[h]?1+g:this.$wrapData[h].length+1+g},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(h+=g.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 g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(c){c&&c.el&&c.el.parentNode&&(c._inDocument=!1,c.el.parentNode.removeChild(c.el))})}},w.prototype.updateOnFold=function(h,g){var s=g.lineWidgets;if(!(!s||!h.action)){for(var c=h.data,a=c.start.row,l=c.end.row,o=h.action=="add",u=a+1;u<l;u++)s[u]&&(s[u].hidden=o);s[l]&&(o?s[a]?s[l].hidden=o:s[a]=s[l]:(s[a]==s[l]&&(s[a]=void 0),s[l].hidden=o))}},w.prototype.updateOnChange=function(h){var g=this.session.lineWidgets;if(g){var s=h.start.row,c=h.end.row-s;if(c!==0)if(h.action=="remove"){var a=g.splice(s+1,c);!g[s]&&a[a.length-1]&&(g[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);g[s]&&g[s].column!=null&&h.start.column>g[s].column&&s++,l.unshift(s,0),g.splice.apply(g,l),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var g=!0;h.forEach(function(s,c){if(s)for(g=!1,s.row=c;s.$oldWidget;)s.$oldWidget.row=c,s=s.$oldWidget}),g&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[h.row];return g&&(h.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._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 g=this.editor.renderer;h.html&&!h.el&&(h.el=f.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=f.createElement("div"),h.el.textContent=h.text),h.el&&(f.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&f.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",g.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/g.layerConfig.lineHeight);var s=this.session.getFoldAt(h.row,0);if(h.$fold=s,s){var c=this.session.lineWidgets;h.row==s.end.row&&!c[s.start.row]?c[s.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,g),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 g=this.session.lineWidgets[h.row];if(g==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;g;){if(g.$oldWidget==h){g.$oldWidget=h.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var g=this.session.lineWidgets,s=g&&g[h],c=[];s;)c.push(s),s=s.$oldWidget;return c},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,g){var s=this.session._changedWidgets,c=g.layerConfig;if(!(!s||!s.length)){for(var a=1/0,l=0;l<s.length;l++){var o=s[l];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var u=o.h/c.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,g){var s=g.layerConfig,c=this.session.lineWidgets;if(c){for(var a=Math.min(this.firstRow,s.firstRow),l=Math.max(this.lastRow,s.lastRow,c.length);a>0&&!c[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,g.$cursorLayer.config=s;for(var o=a;o<=l;o++){var u=c[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,g.container.appendChild(u.el));var p=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(p+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=p-s.offset+"px";var y=u.coverGutter?0:g.gutterWidth;u.fixedWidth||(y-=g.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=g.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(f,v,w){var h=v.start.row,g=v.start.column,s=f[h]||"";switch(v.action){case"insert":var c=v.lines;if(c.length===1)f[h]=s.substring(0,g)+v.lines[0]+s.substring(g);else{var a=[h,1].concat(v.lines);f.splice.apply(f,a),f[h]=s.substring(0,g)+f[h],f[h+v.lines.length-1]+=s.substring(g)}break;case"remove":var l=v.end.column,o=v.end.row;h===o?f[h]=s.substring(0,g)+s.substring(l):f.splice(h,o-h+1,s.substring(0,g)+f[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var f=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function s(c,a,l){this.$onChange=this.onChange.bind(this),this.attach(c),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,l)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var a=g(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(c,a,l){var o;if(l?o={row:c,column:a}:o=this.$clipPositionToDocument(c,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(c){this.document=c||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(c,a){var l={};return c>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):c<0?(l.row=0,l.column=0):(l.row=c,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,a))),a<0&&(l.column=0),l},s}();w.prototype.$insertRight=!1,f.implement(w.prototype,v);function h(s,c,a){var l=a?s.column<=c.column:s.column<c.column;return s.row<c.row||s.row==c.row&&l}function g(s,c,a){var l=s.action=="insert",o=(l?1:-1)*(s.end.row-s.start.row),u=(l?1:-1)*(s.end.column-s.start.column),p=s.start,y=l?p:s.end;return h(c,p,a)?{row:c.row,column:c.column}:h(y,c,!a)?{row:c.row+o,column:c.column+(c.row==y.row?u:0)}:{row:p.row,column:p.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 f=e("./lib/oop"),v=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=e("./anchor").Anchor,s=function(){function c(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 c.prototype.setValue=function(a){var l=this.getLength()-1;this.remove(new h(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},a||"")},c.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},c.prototype.createAnchor=function(a,l){return new g(this,a,l)},c.prototype.$detectNewLine=function(a){var l=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
|
186
|
+
`,this._signal("changeNewLineMode")},c.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
187
|
+
`;case"unix":return`
|
188
|
+
`;default:return this.$autoNewLine||`
|
189
|
+
`}},c.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},c.prototype.getNewLineMode=function(){return this.$newLineMode},c.prototype.isNewLine=function(a){return a==`\r
|
190
|
+
`||a=="\r"||a==`
|
191
|
+
`},c.prototype.getLine=function(a){return this.$lines[a]||""},c.prototype.getLines=function(a,l){return this.$lines.slice(a,l+1)},c.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},c.prototype.getLength=function(){return this.$lines.length},c.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},c.prototype.getLinesForRange=function(a){var l;if(a.start.row===a.end.row)l=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{l=this.getLines(a.start.row,a.end.row),l[0]=(l[0]||"").substring(a.start.column);var o=l.length-1;a.end.row-a.start.row==o&&(l[o]=l[o].substring(0,a.end.column))}return l},c.prototype.insertLines=function(a,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,l)},c.prototype.removeLines=function(a,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,l)},c.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},c.prototype.insert=function(a,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(a,this.$split(l))},c.prototype.insertInLine=function(a,l){var o=this.clippedPos(a.row,a.column),u=this.pos(a.row,a.column+l.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},c.prototype.clippedPos=function(a,l){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,l=void 0);var u=this.getLine(a);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.length),{row:a,column:l}},c.prototype.clonePos=function(a){return{row:a.row,column:a.column}},c.prototype.pos=function(a,l){return{row:a,column:l}},c.prototype.$clipPosition=function(a){var l=this.getLength();return a.row>=l?(a.row=Math.max(0,l-1),a.column=this.getLine(l-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},c.prototype.insertFullLines=function(a,l){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(l=l.concat([""]),o=0):(l=[""].concat(l),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},l)},c.prototype.insertMergedLines=function(a,l){var o=this.clippedPos(a.row,a.column),u={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:l}),this.clonePos(u)},c.prototype.remove=function(a){var l=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:l,end:o,action:"remove",lines:this.getLinesForRange({start:l,end:o})}),this.clonePos(l)},c.prototype.removeInLine=function(a,l,o){var u=this.clippedPos(a,l),p=this.clippedPos(a,o);return this.applyDelta({start:u,end:p,action:"remove",lines:this.getLinesForRange({start:u,end:p})},!0),this.clonePos(u)},c.prototype.removeFullLines=function(a,l){a=Math.min(Math.max(0,a),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var o=l==this.getLength()-1&&a>0,u=l<this.getLength()-1,p=o?a-1:a,y=o?this.getLine(p).length:0,b=u?l+1:l,R=u?0:this.getLine(b).length,A=new h(p,y,b,R),k=this.$lines.slice(a,l+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),k},c.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:["",""]})},c.prototype.replace=function(a,l){if(a instanceof h||(a=h.fromPoints(a.start,a.end)),l.length===0&&a.isEmpty())return a.start;if(l==this.getTextRange(a))return a.end;this.remove(a);var o;return l?o=this.insert(a.start,l):o=a.start,o},c.prototype.applyDeltas=function(a){for(var l=0;l<a.length;l++)this.applyDelta(a[l])},c.prototype.revertDeltas=function(a){for(var l=a.length-1;l>=0;l--)this.revertDelta(a[l])},c.prototype.applyDelta=function(a,l){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,l),this._signal("change",a)))},c.prototype.$safeApplyDelta=function(a){var l=this.$lines.length;(a.action=="remove"&&a.start.row<l&&a.end.row<l||a.action=="insert"&&a.start.row<=l)&&this.applyDelta(a)},c.prototype.$splitAndapplyLargeDelta=function(a,l){for(var o=a.lines,u=o.length-l+1,p=a.start.row,y=a.start.column,b=0,R=0;b<u;b=R){R+=l-1;var A=o.slice(b,R);A.push(""),this.applyDelta({start:this.pos(p+b,y),end:this.pos(p+R,y=0),action:a.action,lines:A},!0)}a.lines=o.slice(b),a.start.row=p+b,a.start.column=y,this.applyDelta(a,!0)},c.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()})},c.prototype.indexToPosition=function(a,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,p=l||0,y=o.length;p<y;p++)if(a-=o[p].length+u,a<0)return{row:p,column:a+o[p].length+u};return{row:y-1,column:a+o[y-1].length+u}},c.prototype.positionToIndex=function(a,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,p=0,y=Math.min(a.row,o.length),b=l||0;b<y;++b)p+=o[b].length+u;return p+a.column},c.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},c}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",f.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 f=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function h(g,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var c=this;this.$worker=function(){if(c.running){for(var a=new Date,l=c.currentLine,o=-1,u=c.doc,p=l;c.lines[l];)l++;var y=u.getLength(),b=0;for(c.running=!1;l<y;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(b++,b%5===0&&new Date-a>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),p<=o&&c.fireUpdateEvent(p,o)}}}return h.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(g,s){var c={first:g,last:s};this._signal("update",{data:c})},h.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(g){var s=g.start.row,c=g.end.row-s;if(c===0)this.lines[s]=null;else if(g.action=="remove")this.lines.splice(s,c+1,null),this.states.splice(s,c+1,null);else{var a=Array(c+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(g){return this.lines[g]||this.$tokenizeRow(g)},h.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},h.prototype.$tokenizeRow=function(g){var s=this.doc.getLine(g),c=this.states[g-1],a=this.tokenizer.getLineTokens(s,c,g);return this.states[g]+""!=a.state+""?(this.states[g]=a.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=a.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();f.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 f=e("./lib/lang"),v=e("./range").Range,w=function(){function h(g,s,c){c===void 0&&(c="text"),this.setRegexp(g),this.clazz=s,this.type=c}return h.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},h.prototype.update=function(g,s,c,a){if(this.regExp)for(var l=a.firstRow,o=a.lastRow,u={},p=l;p<=o;p++){var y=this.cache[p];y==null&&(y=f.getMatchOffsets(c.getLine(p),this.regExp),y.length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(k){return new v(p,k.offset,p,k.offset+k.length)}),this.cache[p]=y.length?y:"");for(var b=y.length;b--;){var R=y[b].toScreenRange(c),A=R.toString();u[A]||(u[A]=!0,s.drawSingleLineMarker(g,R,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 f=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,M,E){if(!this.$fromUndo&&x!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),M===!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,M){this.selections.push({value:x,rev:M||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(x,M){M==null&&(M=this.$rev+1);for(var E=this.$undoStack,I=E.length;I--;){var T=E[I][0];if(T.id<=x)break;T.id<M&&(T.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(x,M){for(var E=this.selections,I=E.length;I--;){var T=E[I];if(T.rev<x)return M&&(T=E[I+1]),T}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(x,M){M==null&&(M=this.$rev+1);for(var E=this.$undoStack,I=null,T=0,N=E.length;N--;){var $=E[N][0];if($.id<M&&!I&&(I=N+1),$.id<=x){T=N+1;break}}return E.slice(T,I)},k.prototype.getChangedRanges=function(x,M){M==null&&(M=this.$rev+1)},k.prototype.getChangedLines=function(x,M){M==null&&(M=this.$rev+1)},k.prototype.undo=function(x,M){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(),T=null;return I&&(T=x.undoChanges(I,M),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,T}},k.prototype.redo=function(x,M){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(),T=null;return I&&(T=x.redoChanges(I,M),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,T},k.prototype.$syncRev=function(){var x=this.$undoStack,M=x[x.length-1],E=M&&M[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?c(x):c(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+c(this.$redoStack)},k}();f.prototype.hasUndo=f.prototype.canUndo,f.prototype.hasRedo=f.prototype.canRedo,f.prototype.isClean=f.prototype.isAtBookmark,f.prototype.markClean=f.prototype.bookmark;function v(k,x){for(var M=x;M--;){var E=k[M];if(E&&!E[0].ignore){for(;M<x-1;){var I=o(k[M],k[M+1]);k[M]=I[0],k[M+1]=I[1],M++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function g(k){return{row:k.row,column:k.column}}function s(k){return{start:g(k.start),end:g(k.end),action:k.action,lines:k.lines.slice()}}function c(k){if(k=k||this,Array.isArray(k))return k.map(c).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 l(k,x){var M=k.action=="insert",E=x.action=="insert";if(M&&E)if(h(x.start,k.end)>=0)p(x,k,-1);else if(h(x.start,k.start)<=0)p(k,x,1);else return null;else if(M&&!E)if(h(x.start,k.end)>=0)p(x,k,-1);else if(h(x.end,k.start)<=0)p(k,x,-1);else return null;else if(!M&&E)if(h(x.start,k.start)>=0)p(x,k,1);else if(h(x.start,k.start)<=0)p(k,x,1);else return null;else if(!M&&!E)if(h(x.start,k.start)>=0)p(x,k,1);else if(h(x.end,k.start)<=0)p(k,x,-1);else return null;return[x,k]}function o(k,x){for(var M=k.length;M--;)for(var E=0;E<x.length;E++)if(!l(k[M],x[E])){for(;M<k.length;){for(;E--;)l(x[E],k[M]);E=x.length,M++}return[k,x]}return k.selectionBefore=x.selectionBefore=k.selectionAfter=x.selectionAfter=null,[x,k]}function u(k,x){var M=k.action=="insert",E=x.action=="insert";if(M&&E)h(k.start,x.start)<0?p(x,k,1):p(k,x,1);else if(M&&!E)h(k.start,x.end)>=0?p(k,x,-1):(h(k.start,x.start)<=0||p(k,w.fromPoints(x.start,k.start),-1),p(x,k,1));else if(!M&&E)h(x.start,k.end)>=0?p(x,k,-1):(h(x.start,k.start)<=0||p(x,w.fromPoints(k.start,x.start),-1),p(k,x,1));else if(!M&&!E)if(h(x.start,k.end)>=0)p(x,k,-1);else if(h(x.end,k.start)<=0)p(k,x,-1);else{var I,T;return h(k.start,x.start)<0&&(I=k,k=b(k,x.start)),h(k.end,x.end)>0&&(T=b(k,x.end)),y(x.end,k.start,k.end,-1),T&&!I&&(k.lines=T.lines,k.start=T.start,k.end=T.end,T=k),[x,I,T].filter(Boolean)}return[x,k]}function p(k,x,M){y(k.start,x.start,x.end,M),y(k.end,x.start,x.end,M)}function y(k,x,M,E){k.row==(E==1?x:M).row&&(k.column+=E*(M.column-x.column)),k.row+=E*(M.row-x.row)}function b(k,x){var M=k.lines,E=k.end;k.end=g(x);var I=k.end.row-k.start.row,T=M.splice(I,M.length),N=I?x.column:x.column-k.start.column;M.push(T[0].substring(0,N)),T[0]=T[0].substr(N);var $={start:g(x),end:E,lines:T,action:k.action};return $}function R(k,x){x=s(x);for(var M=k.length;M--;){for(var E=k[M],I=0;I<E.length;I++){var T=E[I],N=u(T,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(M,1)}return k}function A(k,x){for(var M=0;M<x.length;M++)for(var E=x[M],I=0;I<E.length;I++)R(k,E[I])}i.UndoManager=f}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){function w(h,g){this.foldData=h,Array.isArray(g)?this.folds=g:g=this.folds=[g];var s=g[g.length-1];this.range=new f(g[0].start.row,g[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(c){c.setFoldLine(this)},this)}return w.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(g){g.start.row+=h,g.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(g,s){return-g.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,g,s){var c=0,a=this.folds,l,o,u,p=!0;g==null&&(g=this.end.row,s=this.end.column);for(var y=0;y<a.length;y++){if(l=a[y],o=l.range.compareStart(g,s),o==-1){h(null,g,s,c,p);return}if(u=h(null,l.start.row,l.start.column,c,p),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;p=!l.sameRow,c=l.end.column}h(null,g,s,c,p)},w.prototype.getNextFoldTo=function(h,g){for(var s,c,a=0;a<this.folds.length;a++){if(s=this.folds[a],c=s.range.compareEnd(h,g),c==-1)return{fold:s,kind:"after"};if(c===0)return{fold:s,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,g,s){var c=this.getNextFoldTo(h,g),a,l;if(c){if(a=c.fold,c.kind=="inside"&&a.start.column!=g&&a.start.row!=h)window.console&&window.console.log(h,g,a);else if(a.start.row==h){l=this.folds;var o=l.indexOf(a);for(o===0&&(this.start.column+=s),o;o<l.length;o++){if(a=l[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},w.prototype.split=function(h,g){var s=this.getNextFoldTo(h,g);if(!s||s.kind=="inside")return null;var c=s.fold,a=this.folds,l=this.foldData,o=a.indexOf(c),u=a[o-1];this.end.row=u.end.row,this.end.column=u.end.column,a=a.splice(o,a.length-o);var p=new w(l,a);return l.splice(l.indexOf(this)+1,0,p),p},w.prototype.merge=function(h){for(var g=h.folds,s=0;s<g.length;s++)this.addFold(g[s]);var c=this.foldData;c.splice(c.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(g){h.push(" "+g.toString())}),h.push("]"),h.join(`
|
196
|
+
`)},w.prototype.idxToPosition=function(h){for(var g=0,s=0;s<this.folds.length;s++){var c=this.folds[s];if(h-=c.start.column-g,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;g=c.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 f=e("./range").Range,v=f.comparePoints,w=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(g,s,c){for(var a=this.ranges,l=c||0;l<a.length;l++){var o=a[l],u=v(g,o.end);if(!(u>0)){var p=v(g,o.start);return u===0?s&&p!==0?-l-2:l:p>0||p===0&&!s?l:-l-1}}return-l-1},h.prototype.add=function(g){var s=!g.isEmpty(),c=this.pointIndex(g.start,s);c<0&&(c=-c-1);var a=this.pointIndex(g.end,s,c);return a<0?a=-a-1:a++,this.ranges.splice(c,a-c,g)},h.prototype.addList=function(g){for(var s=[],c=g.length;c--;)s.push.apply(s,this.add(g[c]));return s},h.prototype.substractPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges.splice(s,1)},h.prototype.merge=function(){var g=[],s=this.ranges;s=s.sort(function(u,p){return v(u.start,p.start)});for(var c=s[0],a,l=1;l<s.length;l++){a=c,c=s[l];var o=v(a.end,c.start);o<0||o==0&&!a.isEmpty()&&!c.isEmpty()||(v(a.end,c.end)<0&&(a.end.row=c.end.row,a.end.column=c.end.column),s.splice(l,1),g.push(c),c=a,l--)}return this.ranges=s,g},h.prototype.contains=function(g,s){return this.pointIndex({row:g,column:s})>=0},h.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},h.prototype.rangeAtPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges[s]},h.prototype.clipRows=function(g,s){var c=this.ranges;if(c[0].start.row>s||c[c.length-1].start.row<g)return[];var a=this.pointIndex({row:g,column:0});a<0&&(a=-a-1);var l=this.pointIndex({row:s,column:0},a);l<0&&(l=-l-1);for(var o=[],u=a;u<l;u++)o.push(c[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(g){this.session&&this.detach(),this.session=g,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(g){for(var s=g.start,c=g.end,a=s.row,l=c.row,o=this.ranges,u=0,p=o.length;u<p;u++){var y=o[u];if(y.end.row>=a)break}if(g.action=="insert")for(var b=l-a,R=-s.column+c.column;u<p;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+=R,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&&R>0&&u<p-1&&y.end.column>y.start.column&&y.end.column==o[u+1].start.column&&(y.end.column-=R),y.end.column+=R,y.end.row+=b}}else for(var b=a-l,R=s.column-c.column;u<p;u++){var y=o[u];if(y.start.row>l)break;y.end.row<l&&(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==l?y.end.column<=c.column?(b||y.end.column>s.column)&&(y.end.column=s.column,y.end.row=s.row):(y.end.column+=R,y.end.row+=b):y.end.row>l&&(y.end.row+=b),y.start.row<l&&(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==l?y.start.column<=c.column?(b||y.start.column>s.column)&&(y.start.column=s.column,y.start.row=s.row):(y.start.column+=R,y.start.row+=b):y.start.row>l&&(y.start.row+=b)}if(b!=0&&u<p)for(;u<p;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 f=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(u[y]=p[y])},a(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),v=e("../range_list").RangeList,w=function(a){f(l,a);function l(o,u){var p=a.call(this)||this;return p.foldLine=null,p.placeholder=u,p.range=o,p.start=o.start,p.end=o.end,p.sameRow=o.start.row==o.end.row,p.subFolds=p.ranges=[],p}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(p){u.subFolds.push(p.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var u=o.start.row,p=o.start.column,y=0,b=-1;y<this.subFolds.length&&(b=this.subFolds[y].range.compare(u,p),b==1);y++);var R=this.subFolds[y],A=0;if(b==0){if(R.range.containsRange(o))return R.addSubFold(o);A=1}for(var u=o.range.end.row,p=o.range.end.column,k=y,b=-1;k<this.subFolds.length&&(b=this.subFolds[k].range.compare(u,p),b==1);k++);b==0&&k++;for(var x=this.subFolds.splice(y,k-y,o),M=b==0?x.length-1:x.length,E=A;E<M;E++)o.addSubFold(x[E]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(v);function h(a,l){a.row-=l.row,a.row==0&&(a.column-=l.column)}function g(a,l){h(a.start,l),h(a.end,l)}function s(a,l){a.row==0&&(a.column+=l.column),a.row+=l.row}function c(a,l){s(a.start,l),s(a.end,l)}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 f=e("../range").Range,v=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,g=e("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(c,a,l){var o=this.getFoldLine(c);if(!o)return null;for(var u=o.folds,p=0;p<u.length;p++){var y=u[p].range;if(y.contains(c,a)){if(l==1&&y.isEnd(c,a)&&!y.isEmpty()||l==-1&&y.isStart(c,a)&&!y.isEmpty())continue;return u[p]}}},this.getFoldsInRange=function(c){var a=c.start,l=c.end,o=this.$foldData,u=[];a.column+=1,l.column-=1;for(var p=0;p<o.length;p++){var y=o[p].range.compareRange(c);if(y!=2){if(y==-2)break;for(var b=o[p].folds,R=0;R<b.length;R++){var A=b[R];if(y=A.range.compareRange(c),y==-2)break;if(y!=2){if(y==42)break;u.push(A)}}}}return a.column-=1,l.column+=1,u},this.getFoldsInRangeList=function(c){if(Array.isArray(c)){var a=[];c.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(c);return a},this.getAllFolds=function(){for(var c=[],a=this.$foldData,l=0;l<a.length;l++)for(var o=0;o<a[l].folds.length;o++)c.push(a[l].folds[o]);return c},this.getFoldStringAt=function(c,a,l,o){if(o=o||this.getFoldLine(c),!o)return null;for(var u={end:{column:0}},p,y,b=0;b<o.folds.length;b++){y=o.folds[b];var R=y.range.compareEnd(c,a);if(R==-1){p=this.getLine(y.start.row).substring(u.end.column,y.start.column);break}else if(R===0)return null;u=y}return p||(p=this.getLine(y.start.row).substring(u.end.column)),l==-1?p.substring(0,a-u.end.column):l==1?p.substring(a-u.end.column):p},this.getFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.start.row<=c&&u.end.row>=c)return u;if(u.end.row>c)return null}return null},this.getNextFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.end.row>=c)return u}return null},this.getFoldedRowCount=function(c,a){for(var l=this.$foldData,o=a-c+1,u=0;u<l.length;u++){var p=l[u],y=p.end.row,b=p.start.row;if(y>=a){b<a&&(b>=c?o-=a-b:o=0);break}else y>=c&&(b>=c?o-=y-b:o-=y-c+1)}return o},this.$addFoldLine=function(c){return this.$foldData.push(c),this.$foldData.sort(function(a,l){return a.start.row-l.start.row}),c},this.addFold=function(c,a){var l=this.$foldData,o=!1,u;c instanceof w?u=c:(u=new w(a,c),u.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(u.range);var p=u.start.row,y=u.start.column,b=u.end.row,R=u.end.column,A=this.getFoldAt(p,y,1),k=this.getFoldAt(b,R,-1);if(A&&k==A)return A.addSubFold(u);A&&!A.range.isStart(p,y)&&this.removeFold(A),k&&!k.range.isEnd(b,R)&&this.removeFold(k);var x=this.getFoldsInRange(u.range);x.length>0&&(this.removeFolds(x),u.collapseChildren||x.forEach(function(T){u.addSubFold(T)}));for(var M=0;M<l.length;M++){var E=l[M];if(b==E.start.row){E.addFold(u),o=!0;break}else if(p==E.end.row){if(E.addFold(u),o=!0,!u.sameRow){var I=l[M+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(c){c.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(c){var a=c.foldLine,l=a.start.row,o=a.end.row,u=this.$foldData,p=a.folds;if(p.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(c.end.row,c.end.column))p.pop(),a.end.row=p[p.length-1].end.row,a.end.column=p[p.length-1].end.column;else if(a.range.isStart(c.start.row,c.start.column))p.shift(),a.start.row=p[0].start.row,a.start.column=p[0].start.column;else if(c.sameRow)p.splice(p.indexOf(c),1);else{var y=a.split(c.start.row,c.start.column);p=y.folds,p.shift(),y.start.row=p[0].start.row,y.start.column=p[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var a=[],l=0;l<c.length;l++)a.push(c[l]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(c){this.removeFold(c),c.subFolds.forEach(function(a){c.restoreRange(a),this.addFold(a)},this),c.collapseChildren>0&&this.foldAll(c.start.row+1,c.end.row,c.collapseChildren-1),c.subFolds=[]},this.expandFolds=function(c){c.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(c,a){var l,o;if(c==null)l=new f(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof c=="number")l=new f(c,0,c,this.getLine(c).length);else if("row"in c)l=f.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(p){o=o.concat(this.unfold(p))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&f.comparePoints(o[0].start,l.start)<0&&f.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(a!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(c,a){return!!this.getFoldLine(c,a)},this.getRowFoldEnd=function(c,a){var l=this.getFoldLine(c,a);return l?l.end.row:c},this.getRowFoldStart=function(c,a){var l=this.getFoldLine(c,a);return l?l.start.row:c},this.getFoldDisplayLine=function(c,a,l,o,u){o==null&&(o=c.start.row),u==null&&(u=0),a==null&&(a=c.end.row),l==null&&(l=this.getLine(a).length);var p=this.doc,y="";return c.walk(function(b,R,A,k){if(!(R<o)){if(R==o){if(A<u)return;k=Math.max(u,k)}b!=null?y+=b:y+=p.getLine(R).substring(k,A)}},a,l),y},this.getDisplayLine=function(c,a,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,a,l,o);var p;return p=this.doc.getLine(c),p.substring(o||0,a||p.length)},this.$cloneFoldData=function(){var c=[];return c=this.$foldData.map(function(a){var l=a.folds.map(function(o){return o.clone()});return new v(c,l)}),c},this.toggleFold=function(c){var a=this.selection,l=a.getRange(),o,u;if(l.isEmpty()){var p=l.start;if(o=this.getFoldAt(p.row,p.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(p))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:p.row,column:p.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(p.row,p.column)||l}else{var y=this.getFoldsInRange(l);if(c&&y.length){this.expandFolds(y);return}else y.length==1&&(o=y[0])}if(o||(o=this.getFoldAt(l.start.row,l.start.column)),o&&o.range.toString()==l.toString()){this.expandFold(o);return}var b="...";if(!l.isMultiLine()){if(b=this.getTextRange(l),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,l)},this.getCommentFoldRange=function(c,a,l){var o=new h(this,c,a),u=o.getCurrentToken(),p=u&&u.type;if(u&&/^comment|string/.test(p)){p=p.match(/comment|string/)[0],p=="comment"&&(p+="|doc-start|\\.doc");var y=new RegExp(p),b=new f;if(l!=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,c,a);var R=this.getState(o.$row);if(l!=-1){var A=-1;do if(u=o.stepForward(),A==-1){var k=this.getState(o.$row);R.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(c,a,l,o){l==null&&(l=1e5);var u=this.foldWidgets;if(u){a=a||this.getLength(),c=c||0;for(var p=c;p<a;p++)if(u[p]==null&&(u[p]=this.getFoldWidget(p)),u[p]=="start"&&!(o&&!o(p))){var y=this.getFoldWidgetRange(p);y&&y.isMultiLine()&&y.end.row<=a&&y.start.row>=c&&(p=y.end.row,y.collapseChildren=l,this.addFold("...",y))}}},this.foldToLevel=function(c){for(this.foldAll();c-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var c=this;this.foldAll(null,null,null,function(a){for(var l=c.getTokens(a),o=0;o<l.length;o++){var u=l[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(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(c){if(this.$foldMode!=c){if(this.$foldMode=c,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!c||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=c.getFoldWidget.bind(c,this,this.$foldStyle),this.getFoldWidgetRange=c.getFoldWidgetRange.bind(c,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(c,a){var l=this.foldWidgets;if(!l||a&&l[c])return{};for(var o=c-1,u;o>=0;){var p=l[o];if(p==null&&(p=l[o]=this.getFoldWidget(o)),p=="start"){var y=this.getFoldWidgetRange(o);if(u||(u=y),y&&y.end.row>=c)break}o--}return{range:o!==-1&&y,firstRange:u}},this.onFoldWidgetClick=function(c,a){a instanceof g&&(a=a.domEvent);var l={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var u=a.target||a.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,a){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),u=l==="end"?-1:1,p=this.getFoldAt(c,u===-1?0:o.length,u);if(p)return a.children||a.all?this.removeFold(p):this.expandFold(p),p;var y=this.getFoldWidgetRange(c,!0);if(y&&!y.isMultiLine()&&(p=this.getFoldAt(y.start.row,y.start.column,1),p&&y.isEqual(p.range)))return this.removeFold(p),p;if(a.siblings){var b=this.getParentFoldRangeData(c);if(b.range)var R=b.range.start.row+1,A=b.range.end.row;this.foldAll(R,A,a.all?1e4:0)}else a.children?(A=y?y.end.row:this.getLength(),this.foldAll(c+1,A,a.all?1e4:0)):y&&(a.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(c){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var l=this.$toggleFoldWidget(a,{});if(!l){var o=this.getParentFoldRangeData(a,!0);if(l=o.range||o.firstRange,l){a=l.start.row;var u=this.getFoldAt(a,this.getLine(a).length,1);u?this.removeFold(u):this.addFold("...",l)}}},this.updateFoldWidgets=function(c){var a=c.start.row,l=c.end.row-a;if(l===0)this.foldWidgets[a]=null;else if(c.action=="remove")this.foldWidgets.splice(a,l+1,null);else{var o=Array(l+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(c){var a=c.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 f=e("../token_iterator").TokenIterator,v=e("../range").Range;function w(){this.findMatchingBracket=function(h,g){if(h.column==0)return null;var s=g||this.getLine(h.row).charAt(h.column-1);if(s=="")return null;var c=s.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h):null},this.getBracketRange=function(h){var g=this.getLine(h.row),s=!0,c,a=g.charAt(h.column-1),l=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(l||(a=g.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],h);if(!o)return null;c=v.fromPoints(h,o),s||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],h);if(!o)return null;c=v.fromPoints(o,h),s||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,g){var s=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,a=!g&&s.charAt(h.column-1),l=a&&a.match(c);if(l||(a=(g===void 0||g)&&s.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(c)),!l)return null;var o=new v(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var p=new v(u.row,u.column,u.row,u.column+1);return[o,p]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,g,s){var c=this.$brackets[h],a=1,l=new f(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.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=g.column-l.getCurrentTokenColumn()-2,p=o.value;;){for(;u>=0;){var y=p.charAt(u);if(y==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else y==h&&(a+=1);u-=1}do o=l.stepBackward();while(o&&!s.test(o.type));if(o==null)break;p=o.value,u=p.length-1}return null}},this.$findClosingBracket=function(h,g,s){var c=this.$brackets[h],a=1,l=new f(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.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=g.column-l.getCurrentTokenColumn();;){for(var p=o.value,y=p.length;u<y;){var b=p.charAt(u);if(b==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else b==h&&(a+=1);u+=1}do o=l.stepForward();while(o&&!s.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var g=new f(this,h.row,h.column),s=this.$findTagName(g);if(s){var c=g.stepBackward();return c.value==="<"?this.$findClosingTag(g,s):this.$findOpeningTag(g,s)}},this.$findTagName=function(h){var g=h.getCurrentToken(),s=!1,c=!1;if(g&&g.type.indexOf("tag-name")===-1)do c?g=h.stepBackward():g=h.stepForward(),g&&(g.value==="/>"?c=!0:g.type.indexOf("tag-name")!==-1&&(s=!0));while(g&&!s);return g},this.$findClosingTag=function(h,g){var s,c=g.value,a=g.value,l=0,o=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=h.stepForward();var u=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length),p=!1;do{if(s=g,s.type.indexOf("tag-close")!==-1&&!p){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);p=!0}if(g=h.stepForward(),g){if(g.value===">"&&!p){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);p=!0}if(g.type.indexOf("tag-name")!==-1){if(c=g.value,a===c){if(s.value==="<")l++;else if(s.value==="</"&&(l--,l<0)){h.stepBackward();var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);g=h.stepForward();var R=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=h.stepForward()),g&&g.value===">")var A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(a===c&&g.value==="/>"&&(l--,l<0))var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),R=b,A=R,y=new v(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(g&&l>=0);if(o&&y&&b&&A&&u&&R)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:R}},this.$findOpeningTag=function(h,g){var s=h.getCurrentToken(),c=g.value,a=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,p=new v(l,o,l,u);h.stepForward();var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=h.stepForward()),!(!g||g.value!==">")){var b=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(g=s,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+g.value.length,s=h.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(c===g.value)if(s.value==="<"){if(a++,a>0){var R=new v(l,o,l,u),A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do g=h.stepForward();while(g&&g.value!==">");var k=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(g.value==="/>"){for(var x=0,M=s;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===c){a--;break}else if(M.value==="<")break;M=h.stepBackward(),x++}for(var E=0;E<x;E++)h.stepForward()}}while(s&&a<=0);if(A&&k&&p&&b&&R&&y)return{openTag:new v(A.start.row,A.start.column,k.end.row,k.end.column),closeTag:new v(p.start.row,p.start.column,b.end.row,b.end.column),openTagName:R,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 f=e("./lib/oop"),v=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),g=e("./lib/event_emitter").EventEmitter,s=e("./selection").Selection,c=e("./mode/text").Mode,a=e("./range").Range,l=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,p=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 c().getTokenizer(),this);var L=this;this.bgTokenizer.on("update",function(O){L._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 l(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,L=this.$getRowCacheIndex(this.$docRowCache,_)+1;S>L&&(this.$docRowCache.splice(L,S),this.$screenRowCache.splice(L,S))},$.prototype.$getRowCacheIndex=function(_,S){for(var L=0,O=_.length-1;L<=O;){var F=L+O>>1,H=_[F];if(S>H)L=F+1;else if(S<H)O=F-1;else return F}return L-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 L=new $(_.value);return _.folds.forEach(function(O){L.addFold("...",a.fromPoints(O.start,O.end))}),L.setAnnotations(_.annotations),L.setBreakpoints(_.breakpoints),L.setMode(_.mode),L.setScrollLeft(_.scrollLeft),L.setScrollTop(_.scrollTop),L.setUndoManager(S),L.selection.fromJSON(_.selection),L},$.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 L=this.bgTokenizer.getTokens(_),O,F=0;if(S==null){var H=L.length-1;F=this.getLine(_).length}else for(var H=0;H<L.length&&(F+=L[H].value.length,!(F>=S));H++);return O=L[H],O?(O.index=H,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,L,O){var F=this.$markerId++,H={range:_,type:L||"line",renderer:typeof L=="function"?L:null,clazz:S,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},$.prototype.addDynamicMarker=function(_,S){if(_.update){var L=this.$markerId++;return _.id=L,_.inFront=!!S,S?(this.$frontMarkers[L]=_,this._signal("changeFrontMarker")):(this.$backMarkers[L]=_,this._signal("changeBackMarker")),_}},$.prototype.removeMarker=function(_){var S=this.$frontMarkers[_]||this.$backMarkers[_];if(S){var L=S.inFront?this.$frontMarkers:this.$backMarkers;delete L[_],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},$.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},$.prototype.highlight=function(_){if(!this.$searchHighlight){var S=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(_)},$.prototype.highlightLines=function(_,S,L,O){typeof S!="number"&&(L=S,S=_),L||(L="ace_step");var F=new a(_,0,S,1/0);return F.id=this.addMarker(F,L,"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 L=this.getLine(_),O=!1;if(S>0&&(O=!!L.charAt(S-1).match(this.tokenRe)),O||(O=!!L.charAt(S).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(L.slice(S-1,S+1)))var F=/\s/;else var F=this.nonTokenRe;var H=S;if(H>0){do H--;while(H>=0&&L.charAt(H).match(F));H++}for(var W=S;W<L.length&&L.charAt(W).match(F);)W++;return new a(_,H,_,W)},$.prototype.getAWordRange=function(_,S){for(var L=this.getWordRange(_,S),O=this.getLine(L.end.row);O.charAt(L.end.column).match(/[ \t]/);)L.end.column+=1;return L},$.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 L=_,O=L.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!L){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]&&!L?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(L),L||(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 L=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:L,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(),L=this.$rowLengthCache,O=0,F=0,H=this.$foldData[F],W=H?H.start.row:1/0,V=S.length,q=0;q<V;q++){if(q>W){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],W=H?H.start.row:1/0}L[q]==null&&(L[q]=this.$getStringScreenWidth(S[q])[0]),L[q]>O&&(O=L[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 L=_.length-1;L!=-1;L--){var O=_[L];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 L=0;L<_.length;L++){var O=_[L];(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 L(V){return S?V.action!=="insert":V.action==="insert"}for(var O,F,H=0;H<_.length;H++){var W=_[H];if(W.start){if(!O){L(W)?O=a.fromPoints(W.start,W.end):O=a.fromPoints(W.start,W.start);continue}L(W)?(F=W.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=W.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=W.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(W.start,W.start)))}}return O},$.prototype.replace=function(_,S){return this.doc.replace(_,S)},$.prototype.moveText=function(_,S,L){var O=this.getTextRange(_),F=this.getFoldsInRange(_),H=a.fromPoints(S,S);if(!L){this.remove(_);var W=_.start.row-_.end.row,V=W?-_.end.column:_.start.column-_.end.column;V&&(H.start.row==_.end.row&&H.start.column>_.end.column&&(H.start.column+=V),H.end.row==_.end.row&&H.end.column>_.end.column&&(H.end.column+=V)),W&&H.start.row>=_.end.row&&(H.start.row+=W,H.end.row+=W)}if(H.end=this.insert(H.start,O),F.length){var q=_.start,J=H.start,W=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+=W,ie.end.row+=W,ie}))}return H},$.prototype.indentRows=function(_,S,L){L=L.replace(/\t/g,this.getTabString());for(var O=_;O<=S;O++)this.doc.insertInLine({row:O,column:0},L)},$.prototype.outdentRows=function(_){for(var S=_.collapseRows(),L=new a(0,0,0,0),O=this.getTabSize(),F=S.start.row;F<=S.end.row;++F){var H=this.getLine(F);L.start.row=F,L.end.row=F;for(var W=0;W<O&&H.charAt(W)==" ";++W);W<O&&H.charAt(W)==" "?(L.start.column=W,L.end.column=W+1):(L.start.column=0,L.end.column=W),this.remove(L)}},$.prototype.$moveLines=function(_,S,L){if(_=this.getRowFoldStart(_),S=this.getRowFoldEnd(S),L<0){var O=this.getRowFoldStart(_+L);if(O<0)return 0;var F=O-_}else if(L>0){var O=this.getRowFoldEnd(S+L);if(O>this.doc.getLength()-1)return 0;var F=O-S}else{_=this.$clipRowToDocument(_),S=this.$clipRowToDocument(S);var F=S-_+1}var H=new a(_,0,S,Number.MAX_VALUE),W=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=L==0?this.doc.getLines(_,S):this.doc.removeFullLines(_,S);return this.doc.insertFullLines(_+F,V),W.length&&this.addFolds(W),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 L=this.doc.getLength();_>=L?(_=L-1,S=this.doc.getLine(L-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 L=this.$wrapLimitRange;L.max<0&&(L={min:S,max:S});var O=this.$constrainWrapLimit(_,L.min,L.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,L){return S&&(_=Math.max(S,_)),L&&(_=Math.min(L,_)),_},$.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,L=_.action,O=_.start,F=_.end,H=O.row,W=F.row,V=W-H,q=null;if(this.$updating=!0,V!=0)if(L==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(H,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(H);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)}W=H}else{var X=Array(V);X.unshift(H,0);var ae=S?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,X);var J=this.$foldData,G=this.getFoldLine(H),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(W,0,F.column-O.column))):me==-1&&(G.addRemoveChars(H,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>=H&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),L==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(H);G&&G.addRemoveChars(H,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(H,W):this.$updateRowLengthCache(H,W),q},$.prototype.$updateRowLengthCache=function(_,S){this.$rowLengthCache[_]=null,this.$rowLengthCache[S]=null},$.prototype.$updateWrapData=function(_,S){var L=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,W,V,q=_;for(S=Math.min(S,L.length-1);q<=S;)V=this.getFoldLine(q,V),V?(W=[],V.walk((function(J,G,Q,ie){var X;if(J!=null){X=this.$getDisplayTokens(J,W.length),X[0]=k;for(var ae=1;ae<X.length;ae++)X[ae]=x}else X=this.$getDisplayTokens(L[G].substring(ie,Q),W.length);W=W.concat(X)}).bind(this),V.end.row,L[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(W,H,O),q=V.end.row+1):(W=this.$getDisplayTokens(L[q]),F[q]=this.$computeWrapSplits(W,H,O),q++)},$.prototype.$computeWrapSplits=function(_,S,L){if(_.length==0)return[];var O=[],F=_.length,H=0,W=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,J=S<=Math.max(2*L,8)||q===!1?0:Math.floor(S/2);function G(){var me=0;if(J===0)return me;if(q)for(var we=0;we<_.length;we++){var fe=_[we];if(fe==E)me+=1;else if(fe==I)me+=L;else{if(fe==T)continue;break}}return V&&q!==!1&&(me+=L),Math.min(me,J)}function Q(me){for(var we=me-H,fe=H;fe<me;fe++){var $e=_[fe];($e===12||$e===2)&&(we-=1)}O.length||(ie=G(),O.indent=ie),W+=we,O.push(W),H=me}for(var ie=0;F-H>S-ie;){var X=H+S-ie;if(_[X-1]>=E&&_[X]>=E){Q(X);continue}if(_[X]==k||_[X]==x){for(X;X!=H-1&&_[X]!=k;X--);if(X>H){Q(X);continue}for(X=H+S,X;X<_.length&&_[X]==x;X++);if(X==_.length)break;Q(X);continue}for(var ae=Math.max(X-(S-(S>>2)),H-1);X>ae&&_[X]<k;)X--;if(V){for(;X>ae&&_[X]<k;)X--;for(;X>ae&&_[X]==M;)X--}else for(;X>ae&&_[X]<E;)X--;if(X>ae){Q(++X);continue}X=H+S,_[X]==A&&X--,Q(X-ie)}return O},$.prototype.$getDisplayTokens=function(_,S){var L=[],O;S=S||0;for(var F=0;F<_.length;F++){var H=_.charCodeAt(F);if(H==9){O=this.getScreenTabSize(L.length+S),L.push(I);for(var W=1;W<O;W++)L.push(T)}else H==32?L.push(E):H>39&&H<48||H>57&&H<64?L.push(M):H>=4352&&N(H)?L.push(R,A):L.push(R)}return L},$.prototype.$getStringScreenWidth=function(_,S,L){if(S==0)return[0,0];S==null&&(S=1/0),L=L||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?L+=this.getScreenTabSize(L):O>=4352&&N(O)?L+=2:L+=1,!(L>S));F++);return[L,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),L=this.$wrapData[S.row];return L.length&&L[0]<S.column?L.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 L=this.documentToScreenRow(_,S);return this.getScreenLastRowColumn(L)},$.prototype.getDocumentLastRowColumnPosition=function(_,S){var L=this.documentToScreenRow(_,S);return this.screenToDocumentPosition(L,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,L){if(_<0)return{row:0,column:0};var O,Q=0,F=0,H,G=0,W=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<=_&&(W=this.getRowLength(Q),!(G+W>_||Q>=X));)G+=W,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+W<=_||Q>X)return{row:X,column:this.getLine(X).length};O=this.getLine(Q),ae=null}var we=0,fe=Math.floor(_-G);if(this.$useWrapMode){var $e=this.$wrapData[Q];$e&&(H=$e[fe],fe>0&&$e.length&&(we=$e.indent,F=$e[fe-1]||$e[$e.length-1],O=O.substring(F)))}return L!==void 0&&this.$bidiHandler.isBidiRow(G+fe,Q,fe)&&(S=this.$bidiHandler.offsetToCol(L)),F+=this.$getStringScreenWidth(O,S-we)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Q,column:F}},$.prototype.documentToScreenPosition=function(_,S){if(typeof S>"u")var L=this.$clipPositionToDocument(_.row,_.column);else L=this.$clipPositionToDocument(_,S);_=L.row,S=L.column;var G=0,O=null,F=null;F=this.getFoldAt(_,S,1),F&&(_=F.start.row,S=F.start.column);var H,J=0,W=this.$docRowCache,V=this.$getRowCacheIndex(W,_),q=W.length;if(q&&V>=0)var J=W[V],G=this.$screenRowCache[V],Q=_>W[q-1];else var Q=!q;for(var ie=this.getNextFoldLine(J),X=ie?ie.start.row:1/0;J<_;){if(J>=X){if(H=ie.end.row+1,H>_)break;ie=this.getNextFoldLine(H,ie),X=ie?ie.start.row:1/0}else H=J+1;G+=this.getRowLength(J),J=H,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 we=this.$wrapData[O];if(we){for(var fe=0;ae.length>=we[fe];)G++,fe++;ae=ae.substring(we[fe-1]||0,ae.length),me=fe>0?we.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 L=this.$wrapData.length,O=0,F=0,S=this.$foldData[F++],H=S?S.start.row:1/0;O<L;){var W=this.$wrapData[O];_+=W?W.length+1:1,O++,O>H&&(O=S.end.row+1,S=this.$foldData[F++],H=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,L,O){if(L===0)return[0,0];L||(L=1/0),O=O||0;var F,H;for(H=0;H<S.length&&(F=S.charAt(H),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>L));H++);return[O,H]})},$.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,f.implement(b.prototype,g);var R=1,A=2,k=3,x=4,M=9,E=10,I=11,T=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 f=e("./lib/lang"),v=e("./lib/oop"),w=e("./range").Range,h=function(){function s(){this.$options={}}return s.prototype.set=function(c){return v.mixin(this.$options,c),this},s.prototype.getOptions=function(){return f.copyObject(this.$options)},s.prototype.setOptions=function(c){this.$options=c},s.prototype.find=function(c){var a=this.$options,l=this.$matchIterator(c,a);if(!l)return!1;var o=null;return l.forEach(function(u,p,y,b){return o=new w(u,p,y,b),p==b&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(c){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var l=a.range,o=l?c.getLines(l.start.row,l.end.row):c.doc.getAllLines(),u=[],p=a.re;if(a.$isMultiLine){var y=p.length,b=o.length-y,R;e:for(var A=p.offset||0;A<=b;A++){for(var k=0;k<y;k++)if(o[A+k].search(p[k])==-1)continue e;var x=o[A],M=o[A+y-1],E=x.length-x.match(p[0])[0].length,I=M.match(p[y-1])[0].length;R&&R.end.row===A&&R.end.column>E||(u.push(R=new w(A,E,A+y-1,I)),y>2&&(A=A+y-2))}}else for(var T=0;T<o.length;T++)for(var N=f.getMatchOffsets(o[T],p),k=0;k<N.length;k++){var $=N[k];u.push(new w(T,$.offset,T,$.offset+$.length))}if(l){for(var _=l.start.column,S=l.end.column,T=0,k=u.length-1;T<k&&u[T].start.column<_&&u[T].start.row==0;)T++;for(var L=l.end.row-l.start.row;T<k&&u[k].end.column>S&&u[k].end.row==L;)k--;for(u=u.slice(T,k+1),T=0,k=u.length;T<k;T++)u[T].start.row+=l.start.row,u[T].end.row+=l.start.row}return u},s.prototype.replace=function(c,a){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return a;if(o){var u=o.exec(c);if(!u||u[0].length!=c.length)return null;if(l.regExp||(a=a.replace(/\$/g,"$$$$")),a=c.replace(o,a),l.preserveCase){a=a.split("");for(var p=Math.min(c.length,c.length);p--;){var y=c[p];y&&y.toLowerCase()!=y?a[p]=a[p].toUpperCase():a[p]=a[p].toLowerCase()}a=a.join("")}return a}},s.prototype.$assembleRegExp=function(c,a){if(c.needle instanceof RegExp)return c.re=c.needle;var l=c.needle;if(!c.needle)return c.re=!1;c.regExp||(l=f.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=g(l,c)),c.$isMultiLine=!a&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var u=new RegExp(l,o)}catch{u=!1}return c.re=u},s.prototype.$assembleMultilineRegExp=function(c,a){for(var l=c.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),o=[],u=0;u<l.length;u++)try{o.push(new RegExp(l[u],a))}catch{return!1}return o},s.prototype.$matchIterator=function(c,a){var l=this.$assembleRegExp(a);if(!l)return!1;var o=a.backwards==!0,u=a.skipCurrent!=!1,p=l.unicode,y=a.range,b=a.start;b||(b=y?y[o?"end":"start"]:c.selection.getRange()),b.start&&(b=b[u!=o?"end":"start"]);var R=y?y.start.row:0,A=y?y.end.row:c.getLength()-1;if(o)var k=function(E){var I=b.row;if(!M(I,b.column,E)){for(I--;I>=R;I--)if(M(I,Number.MAX_VALUE,E))return;if(a.wrap!=!1){for(I=A,R=b.row;I>=R;I--)if(M(I,Number.MAX_VALUE,E))return}}};else var k=function(E){var I=b.row;if(!M(I,b.column,E)){for(I=I+1;I<=A;I++)if(M(I,0,E))return;if(a.wrap!=!1){for(I=R,A=b.row;I<=A;I++)if(M(I,0,E))return}}};if(a.$isMultiLine)var x=l.length,M=function(E,I,T){var N=o?E-x+1:E;if(!(N<0||N+x>c.getLength())){var $=c.getLine(N),_=$.search(l[0]);if(!(!o&&_<I||_===-1)){for(var S=1;S<x;S++)if($=c.getLine(N+S),$.search(l[S])==-1)return;var L=$.match(l[x-1])[0].length;if(!(o&&L>I)&&T(N,_,N+x-1,L))return!0}}};else if(o)var M=function(E,I,T){var N=c.getLine(E),$=[],_,S=0;for(l.lastIndex=0;_=l.exec(N);){var L=_[0].length;if(S=_.index,!L){if(S>=N.length)break;l.lastIndex=S+=f.skipEmptyMatch(N,S,p)}if(_.index+L>I)break;$.push(_.index,L)}for(var O=$.length-1;O>=0;O-=2){var F=$[O-1],L=$[O];if(T(E,F,E,F+L))return!0}};else var M=function(E,I,T){var N=c.getLine(E),$,_;for(l.lastIndex=I;_=l.exec(N);){var S=_[0].length;if($=_.index,T(E,$,E,$+S))return!0;if(!S&&(l.lastIndex=$+=f.skipEmptyMatch(N,$,p),$>=N.length))return!1}};return{forEach:k}},s}();function g(s,c){var a=f.supportsLookbehind();function l(y,b){b===void 0&&(b=!0);var R=a&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return R.test(y)||c.regExp?a&&c.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],p=o[o.length-1];return l(u)+s+l(p,!1)}i.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var f=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(u[y]=p[y])},a(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),v=e("../lib/keys"),w=e("../lib/useragent"),h=v.KEY_MODS,g=function(){function a(l,o){this.$init(l,o,!1)}return a.prototype.$init=function(l,o,u){this.platform=o||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},a.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},a.prototype.removeCommand=function(l,o){var u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],o||delete this.commands[u];var p=this.commandKeyBinding;for(var y in p){var b=p[y];if(b==l)delete p[y];else if(Array.isArray(b)){var R=b.indexOf(l);R!=-1&&(b.splice(R,1),b.length==1&&(p[y]=b[0]))}}},a.prototype.bindKey=function(l,o,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(p){var y="";if(p.indexOf(" ")!=-1){var b=p.split(/\s+/);p=b.pop(),b.forEach(function(k){var x=this.parseKeys(k),M=h[x.hashId]+x.key;y+=(y?" ":"")+M,this._addCommandToBinding(y,"chainKeys")},this),y+=" "}var R=this.parseKeys(p),A=h[R.hashId]+R.key;this._addCommandToBinding(y+A,o,u)},this)}},a.prototype._addCommandToBinding=function(l,o,u){var p=this.commandKeyBinding,y;if(!o)delete p[l];else if(!p[l]||this.$singleCommand)p[l]=o;else{Array.isArray(p[l])?(y=p[l].indexOf(o))!=-1&&p[l].splice(y,1):p[l]=[p[l]],typeof u!="number"&&(u=s(o));var b=p[l];for(y=0;y<b.length;y++){var R=b[y],A=s(R);if(A>u)break}b.splice(y,0,o)}},a.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var u=l[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(l){Object.keys(l).forEach(function(o){this.removeCommand(l[o])},this)},a.prototype.bindKeys=function(l){Object.keys(l).forEach(function(o){this.bindKey(o,l[o])},this)},a.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},a.prototype.parseKeys=function(l){var o=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(A){return A}),u=o.pop(),p=v[u];if(v.FUNCTION_KEYS[p])u=v.FUNCTION_KEYS[p].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 R=v.KEY_MODS[o[b]];if(R==null)return typeof console<"u"&&console.error("invalid modifier "+o[b]+" in "+l),!1;y|=R}return{key:u,hashId:y}},a.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(l,o,u,p){if(!(p<0)){var y=h[o]+u,b=this.commandKeyBinding[y];return l.$keyChain&&(l.$keyChain+=" "+y,b=this.commandKeyBinding[l.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||y,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-y.length-1):(o==-1||p>0)&&(l.$keyChain="")),{command:b})}},a.prototype.getStatusText=function(l,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var c=function(a){f(l,a);function l(o,u){var p=a.call(this,o,u)||this;return p.$singleCommand=!0,p}return l}(g);c.call=function(a,l,o){g.prototype.$init.call(a,l,o,!0)},g.call=function(a,l,o){g.prototype.$init.call(a,l,o,!1)},i.HashHandler=c,i.MultiHashHandler=g}),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 f=this&&this.__extends||function(){var s=function(c,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},s(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");s(c,a);function l(){this.constructor=c}c.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),v=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,g=function(s){f(c,s);function c(a,l){var o=s.call(this,l,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 c.prototype.exec=function(a,l,o){if(Array.isArray(a)){for(var u=a.length;u--;)if(this.exec(a[u],l,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,l))return!1;var p={editor:l,command:a,args:o};return p.returnValue=this._emit("exec",p),this._signal("afterExec",p),p.returnValue!==!1},c.prototype.canExecute=function(a,l){return typeof a=="string"&&(a=this.commands[a]),!(!a||l&&l.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(l))},c.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(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},c.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,a):this.exec(l[0],a,l[1])},this)}finally{this.$inReplay=!1}}},c.prototype.trimMacro=function(a){return a.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},c}(w);v.implement(g.prototype,h),i.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,i,m){var f=e("../lib/lang"),v=e("../config"),w=e("../range").Range;function h(s,c){return{win:s,mac:c}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(s){v.loadModule("ace/ext/settings_menu",function(c){c.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(c){c.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(c){c.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,c){typeof c=="number"&&!isNaN(c)&&s.gotoLine(c),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(c){c.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,c){s.navigateUp(c.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,c){s.navigateDown(c.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,c){s.navigateLeft(c.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,c){s.navigateRight(c.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 c=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=c?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,c){s.$handlePaste(c)},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(c){c.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 c=s.selection.getRange();c.start.column=0,s.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(s){var c=s.selection.getRange();c.end.column=Number.MAX_VALUE,s.session.remove(c)},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,c){s.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,c){s.insert(f.stringRepeat(c.text||"",c.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 c=s.selection.getRange();c.start.column=c.end.column=0,c.end.row++,s.selection.setRange(c,!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 c=s.selection.isBackwards(),a=c?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),l=c?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,u=s.session.doc.getTextRange(s.selection.getRange()),p=u.replace(/\n\s*/," ").length,y=s.session.doc.getLine(a.row),b=a.row+1;b<=l.row+1;b++){var R=f.stringTrimLeft(f.stringTrimRight(s.session.doc.getLine(b)));R.length!==0&&(R=" "+R),y+=R}l.row+1<s.session.doc.getLength()-1&&(y+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new w(a.row,0,l.row+2,0),y),p>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+p)):(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 c=s.session.doc.getLength()-1,a=s.session.doc.getLine(c).length,l=s.selection.rangeList.ranges,o=[];l.length<1&&(l=[s.selection.getRange()]);for(var u=0;u<l.length;u++)u==l.length-1&&(l[u].end.row===c&&l[u].end.column===a||o.push(new w(l[u].end.row,l[u].end.column,c,a))),u===0?l[u].start.row===0&&l[u].start.column===0||o.push(new w(0,0,l[u].start.row,l[u].start.column)):o.push(new w(l[u-1].end.row,l[u-1].end.column,l[u].start.row,l[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 c=s.getCursorPosition();s.selection.moveTo(c.row-1,Number.MAX_VALUE),s.insert(`
|
202
|
+
`),c.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 g=1;g<9;g++)i.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,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 f=e("../lib/keys"),v=e("../mouse/default_gutter_handler").GutterTooltip,w=function(){function g(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 g.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},g.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},g.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===f.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=f.enter)return;s.preventDefault();var c=this.editor.getCursorPosition().row;this.editor.isRowVisible(c)||this.editor.scrollToLine(c,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(l===null&&o===null)){if(l===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&o===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(l-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,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)},g.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===f.tab){s.preventDefault();return}if(s.keyCode===f.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===f.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===f.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===f.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===f.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===f.enter||s.keyCode===f.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var c=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==c&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(c),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],l=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=l.right+"px",o.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return c&&a},g.prototype.$isAnnotationVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return c&&a},g.prototype.$getFoldWidget=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[1]},g.prototype.$getAnnotation=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[2]},g.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var c=0;s-c>0||s+c<this.lines.getLength()-1;){if(c++,s-c>=0&&this.$isFoldWidgetVisible(s-c))return s-c;if(s+c<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+c))return s+c}return null},g.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var c=0;s-c>0||s+c<this.lines.getLength()-1;){if(c++,s-c>=0&&this.$isAnnotationVisible(s-c))return s-c;if(s+c<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+c))return s+c}return null},g.prototype.$focusFoldWidget=function(s){if(s!=null){var c=this.$getFoldWidget(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$focusAnnotation=function(s){if(s!=null){var c=this.$getAnnotation(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$blurFoldWidget=function(s){var c=this.$getFoldWidget(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$blurAnnotation=function(s){var c=this.$getAnnotation(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.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}},g.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}},g.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}},g.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}},g.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var c=this.$findNearestAnnotation(this.activeRowIndex);if(c==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,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}},g.prototype.$rowIndexToRow=function(s){var c=this.lines.get(s);return c?c.row:null},g.prototype.$rowToRowIndex=function(s){for(var c=0;c<this.lines.getLength();c++){var a=this.lines.get(c);if(a.row==s)return c}return null},g}();i.GutterKeyboardHandler=w;var h=function(){function g(s,c){this.gutterKeyboardHandler=c,this.domEvent=s}return g.prototype.getKey=function(){return f.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();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 f=this&&this.__values||function($){var _=typeof Symbol=="function"&&Symbol.iterator,S=_&&$[_],L=0;if(S)return S.call($);if($&&typeof $.length=="number")return{next:function(){return $&&L>=$.length&&($=void 0),{value:$&&$[L++],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"),g=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,a=e("./mouse/fold_handler").FoldHandler,l=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,p=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,b=e("./commands/command_manager").CommandManager,R=e("./commands/default_commands").commands,A=e("./config"),k=e("./token_iterator").TokenIterator,x=e("./keyboard/gutter_handler").GutterKeyboardHandler,M=e("./config").nls,E=e("./clipboard"),I=e("./lib/keys"),T=function(){function $(_,S,L){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++$.$uid,this.commands=new b(g.isMac?"mac":"win",R),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new a(this)),this.keyBinding=new l(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,H){H._$emitInputEvent.schedule(31)}),this.setSession(S||L&&L.session||new o("")),A.resetOptions(this),L&&this.setOptions(L),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,L=S&&S.scrollIntoView;if(L){switch(L){case"center-animate":L="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}L=="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,L=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&&L.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:L.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(_,S){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var L=this;A.loadModule(["keybinding",_],function(O){L.$keybindingId==_&&L.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 L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.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 L=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),H=S.getMatchingBracketRanges(L,F);if(!H){var W=new k(S,L.row,L.column),V=W.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=S.getMatchingTags(L);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&S.$mode.getMatching&&(H=S.$mode.getMatching(_.session)),!H){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var J="ace_bracket";Array.isArray(H)?H.length==1&&(J="ace_error_bracket"):H=[H],H.length==2&&(p.comparePoints(H[0].end,H[1].start)==0?H=[p.fromPoints(H[0].start,H[1].end)]:p.comparePoints(H[0].start,H[1].end)==0&&(H=[p.fromPoints(H[1].start,H[0].end)])),S.$bracketHighlight={ranges:H,markerIds:H.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,L=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,L,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 L=new p(S.row,S.column,S.row,1/0);L.id=_.addMarker(L,"ace_active-line","screenLine"),_.$highlightLineMarker=L}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 L=this.selection.getRange(),O=this.getSelectionStyle();S.$selectionMarker=S.addMarker(L,"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 L=S.start.column,O=S.end.column,F=_.getLine(S.start.row),H=F.substring(L,O);if(!(H.length>5e3||!/[\w\d]/.test(H))){var W=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(L-1,O+1);if(W.test(V))return W}}},$.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(),L=!1;if(!_&&this.$copyWithEmptySelection){L=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var H=O[F];F&&O[F-1].start.row==H.start.row||(_+=this.session.getLine(H.start.row)+S)}}var W={text:_};return this._signal("copy",W),E.lineMode=L?W.text:!1,W.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(_,S){var L={text:_,event:S};this.commands.exec("paste",this,L)},$.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var S=_.text,L=S===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?O.insert({row:this.selection.lead.row,column:0},S):this.insert(S);else if(L)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/),H=this.selection.rangeList.ranges,W=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||W)return this.commands.exec("insertstring",this,S);for(var V=H.length;V--;){var q=H[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 L=this.session,O=L.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!S){var H=O.transformAction(L.getState(F.row),"insertion",this,L,_);H&&(_!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=H.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
|
203
|
+
`)==-1){var W=p.fromPoints(F,F);W.end.column+=_.length,this.session.remove(W)}}else{var W=this.getSelectionRange();F=this.session.remove(W),this.clearSelection()}if(_==`
|
204
|
+
`||_==`\r
|
205
|
+
`){var G=L.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);L.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,J=L.getState(F.row),G=L.getLine(F.row),Q=O.checkOutdent(J,G,_);if(L.insert(F,_),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new p(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new p(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(_)){var ie=O.getNextLineIndent(J,G.slice(0,F.column),L.getTabString());L.insert({row:F.row+1,column:0},ie)}Q&&O.autoOutdent(J,L,F.row)}},$.prototype.autoIndent=function(){for(var _=this.session,S=_.getMode(),L=this.selection.isEmpty()?[new p(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",H="",W=_.getTabString(),V=0;V<L.length;V++)for(var q=L[V].start.row,J=L[V].end.row,G=q;G<=J;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),H=S.getNextLineIndent(O,F,W));var Q=_.getLine(G),ie=S.$getIndent(Q);if(H!==ie){if(ie.length>0){var X=new p(G,0,G,ie.length);_.remove(X)}H.length>0&&_.insert({row:G,column:0},H)}S.autoOutdent(O,_,G)}},$.prototype.onTextInput=function(_,S){if(!S)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,_,S);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},$.prototype.applyComposition=function(_,S){if(S.extendLeft||S.extendRight){var L=this.selection.getRange();L.start.column-=S.extendLeft,L.end.column+=S.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!_&&!L.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),S.restoreStart||S.restoreEnd){var L=this.selection.getRange();L.start.column-=S.restoreStart,L.end.column-=S.restoreEnd,this.selection.setRange(L)}},$.prototype.onCommandKey=function(_,S,L){return this.keyBinding.onCommandKey(_,S,L)},$.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 L=this.session,O=L.getState(S.start.row),F=L.getMode().transformAction(O,"deletion",this,L,S);if(S.end.column===0){var H=L.getTextRange(S);if(H[H.length-1]==`
|
206
|
+
`){var W=L.getLine(S.end.row);/^\s+$/.test(W)&&(S.end.column=W.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 L=this.session.getLine(_.row),O,F;S<L.length?(O=L.charAt(S)+L.charAt(S-1),F=new p(_.row,S-1,_.row,S+1)):(O=L.charAt(S-1)+L.charAt(S-2),F=new p(_.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(),L=this.session.getTextRange(S);this.session.replace(S,L.toLowerCase()),this.selection.setSelectionRange(_)},$.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),L=this.session.getTextRange(S);this.session.replace(S,L.toUpperCase()),this.selection.setSelectionRange(_)},$.prototype.indent=function(){var _=this.session,S=this.getSelectionRange();if(S.start.row<S.end.row){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}else if(S.start.column<S.end.column){var O=_.getTextRange(S);if(!/^\s+$/.test(O)){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}}var F=_.getLine(S.start.row),H=S.start,W=_.getTabSize(),V=_.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=W-V%W,J=h.stringRepeat(" ",q);else{for(var q=V%W;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,L=[],O=_.first;O<=_.last;O++)L.push(S.getLine(O));L.sort(function(W,V){return W.toLowerCase()<V.toLowerCase()?-1:W.toLowerCase()>V.toLowerCase()?1:0});for(var F=new p(0,0,0,0),O=_.first;O<=_.last;O++){var H=S.getLine(O);F.start.row=O,F.end.row=O,F.end.column=H.length,S.replace(F,L[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),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(S,this.session,L,_)},$.prototype.getNumberAt=function(_,S){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var O=this.session.getLine(_);L.lastIndex<S;){var F=L.exec(O);if(F.index<=S&&F.index+F[0].length>=S){var H={value:F[0],start:F.index,end:F.index+F[0].length};return H}}return null},$.prototype.modifyNumber=function(_){var S=this.selection.getCursor().row,L=this.selection.getCursor().column,O=new p(S,L-1,S,L),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt(S,L);if(H){var W=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-W,q=parseFloat(H.value);q*=Math.pow(10,V),W!==H.end&&L<W?_*=Math.pow(10,H.end-L-1):_*=Math.pow(10,H.end-L),q+=_,q/=Math.pow(10,V);var J=q.toFixed(V),G=new p(S,H.start,S,H.end);this.session.replace(G,J),this.moveCursorTo(S,Math.max(H.start+1,L+J.length-H.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var _=this.selection.getCursor().row,S=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=S-O-1;H<0&&(H=0);var W=0,V=0,q=this;L.match(/[A-Za-z0-9_]+/)&&F.forEach(function(fe,$e){V=W+fe.length,H>=W&&H<=V&&(L=fe,q.selection.clearSelection(),q.moveCursorTo(_,W+O),q.selection.selectTo(_,V+O)),W=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=L.match(new RegExp("^\\s?_?("+h.escapeRegExp(ie[X])+")\\s?$","i"));if(me){var we=L.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(me[1])+")($|\\s)","g"));we&&(G=L.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 L,O,F=this.session.getLine(_),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),W=S;W<0&&(W=0);var V=0,q=0,J;try{for(var G=f(H),Q=G.next();!Q.done;Q=G.next()){var ie=Q.value;if(q=V+ie.length,W>=V&&W<=q&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){J=ie.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(X){L={error:X}}finally{try{Q&&!Q.done&&(O=G.return)&&O.call(G)}finally{if(L)throw L.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,L=_.getRange(),O=_.isBackwards();if(L.isEmpty()){var F=L.start.row;S.duplicateLines(F,F)}else{var H=O?L.start:L.end,W=S.insert(H,S.getTextRange(L));L.start=H,L.end=W,_.setSelectionRange(L,O)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(_,S,L){return this.session.moveText(_,S,L)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(_,S){var L,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();L=this.$getSelectedRows(H),O=this.session.$moveLines(L.first,L.last,S?0:_),S&&_==-1&&(O=0),H.moveBy(O,0),F.fromOrientedRange(H)}else{var W=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,J=W.length,G=0;G<J;G++){var Q=G;W[G].moveBy(V,0),L=this.$getSelectedRows(W[G]);for(var ie=L.first,X=L.last;++G<J;){q&&W[G].moveBy(q,0);var ae=this.$getSelectedRows(W[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;)W[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 L=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 H=L.scrollTop;L.scrollBy(0,F*O.lineHeight),S!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(H)},$.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,L,O){this.renderer.scrollToLine(_,S,L,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 L=this.getCursorPosition(),O=new k(this.session,L.row,L.column),F=O.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var W=F||O.stepForward();if(W){var V,q=!1,J={},G=L.column-W.start,Q,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(W.value.match(/[{}()\[\]]/g)){for(;G<W.value.length&&!q;G++)if(ie[W.value[G]])switch(Q=ie[W.value[G]]+"."+W.type.replace("rparen","lparen"),isNaN(J[Q])&&(J[Q]=0),W.value[G]){case"(":case"[":case"{":J[Q]++;break;case")":case"]":case"}":J[Q]--,J[Q]===-1&&(V="bracket",q=!0);break}}else W.type.indexOf("tag-name")!==-1&&(isNaN(J[W.value])&&(J[W.value]=0),F.value==="<"&&H>1?J[W.value]++:F.value==="</"&&J[W.value]--,J[W.value]===-1&&(V="tag",q=!0));q||(F=W,H++,W=O.stepForward(),G=0)}while(W&&!q);if(V){var X,ae;if(V==="bracket")X=this.session.getBracketRange(L),X||(X=new p(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=X.start,(S||ae.row===L.row&&Math.abs(ae.column-L.column)<2)&&(X=this.session.getBracketRange(ae)));else if(V==="tag"){if(!W||W.type.indexOf("tag-name")===-1)return;if(X=new p(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),X.compare(L.row,L.column)===0){var me=this.session.getMatchingTags(L);me&&(me.openTag.contains(L.row,L.column)?(X=me.closeTag,ae=X.start):(X=me.openTag,me.closeTag.start.row===L.row&&me.closeTag.start.column===L.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,L){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,L)},$.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 L=this.$search.find(this.session),O=0;return L&&(this.$tryReplace(L,_)&&(O=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),O},$.prototype.replaceAll=function(_,S){S&&this.$search.set(S);var L=this.$search.findAll(this.session),O=0;if(!L.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=L.length-1;H>=0;--H)this.$tryReplace(L[H],_)&&O++;return this.selection.setSelectionRange(F),O},$.prototype.$tryReplace=function(_,S){var L=this.session.getTextRange(_);return S=this.$search.replace(L,S),S!==null?(_.end=this.session.replace(_,S),_):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(_,S,L){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,L),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 L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),S!==!1&&this.renderer.animateScrolling(L)},$.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,L=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 H=this.on("changeSelection",function(){O=!0}),W=this.renderer.on("beforeRender",function(){O&&(S=L.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&S&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var q=L.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",H),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",W))}}},$.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,L){var O=this;A.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,S,L)})},$}();T.$uid=0,T.prototype.curOp=null,T.prototype.prevOp={},T.prototype.$mergeableCommands=["backspace","del","insertstring"],T.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(T.prototype,y),A.defineOptions(T.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()}},L;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",M("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",M("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",M("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",M("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),L||(L=new x(this)),L.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),L&&L.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=T}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,i,m){var f=e("../lib/dom"),v=function(){function w(h,g){this.element=h,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){f.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,g){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,g,s){var c=g.firstRowScreen*g.lineHeight,a=Math.floor(c/this.canvasHeight),l=s.documentToScreenRow(h,0)*g.lineHeight;return l-a*this.canvasHeight},w.prototype.computeLineHeight=function(h,g,s){return g.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 g=f.createFragment(this.element),s=0;s<h.length;s++)g.appendChild(h[s].element);this.element.appendChild(g)}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 g=f.createFragment(this.element),s=0;s<h.length;s++)g.appendChild(h[s].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}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,g,s,c){var a=this.cellCache.pop();if(!a){var l=f.createElement("div");c&&c(l),this.element.appendChild(l),a={element:l,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 f=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,g=e("./lines").Lines,s=e("../config").nls,c=function(){function l(o){this.element=f.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 g(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var p=o[u],y=p.row,b=this.$annotations[y];b||(b=this.$annotations[y]={text:[],type:[],displayText:[]});var R=p.text,A=p.text,k=p.type;R=R?w.escapeHTML(R):p.html||"",A=A||p.html||"",b.text.indexOf(R)===-1&&(b.text.push(R),b.type.push(k),b.displayText.push(A));var x=p.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")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,p=o.end.row-u;if(p!==0)if(o.action=="remove")this.$annotations.splice(u,p+1,null);else{var y=new Array(p+1);y.unshift(u,1),this.$annotations.splice.apply(this.$annotations,y)}}},l.prototype.update=function(o){this.config=o;var u=this.session,p=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(p),R=b?b.start.row:1/0,A=null,k=-1,x=p;;){if(x>R&&(x=b.end.row+1,b=u.getNextFoldLine(x,b),R=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)},l.prototype.$updateGutterWidth=function(o){var u=this.session,p=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 R=p?p.getWidth(u,b,o):b.toString().length*o.characterWidth,A=this.$padding||this.$computePadding();R+=A.left+A.right,R!==this.gutterWidth&&!isNaN(R)&&(this.gutterWidth=R,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",R))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.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 p=0;p<u.length;p++){var y=u[p];if(y.row>=this.$cursorRow){if(y.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(p>0&&b&&b.start.row==u[p-1].row)y=u[p-1];else break}y.element.className="ace_gutter-active-line "+y.element.className,this.$cursorCell=y;break}}}}},l.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 p=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),y=this.oldLastRow;if(this.oldLastRow=p,!u||y<o.firstRow)return this.update(o);if(p<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>p)for(var b=this.session.getFoldedRowCount(p+1,y);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),p>y&&this.$lines.push(this.$renderLines(o,y+1,p)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,p){for(var y=[],b=u,R=this.session.getNextFoldLine(b),A=R?R.start.row:1/0;b>A&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),A=R?R.start.row:1/0),!(b>p);){var k=this.$lines.createCell(b,o,this.session,a);this.$renderCell(k,o,R,b),y.push(k),b++}return y},l.prototype.$renderCell=function(o,u,p,y){var b=o.element,R=this.session,A=b.childNodes[0],k=b.childNodes[1],x=b.childNodes[2],M=x.firstChild,E=R.$firstLineNumber,I=R.$breakpoints,T=R.$decorations,N=R.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&R.foldWidgets,_=p?p.start.row:Number.MAX_VALUE,S=u.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(R,y):y+E).toString();if(this.$highlightGutterLine&&(y==this.$cursorRow||p&&y<this.$cursorRow&&y>=_&&this.$cursorRow<=p.end.row)&&(L+="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]&&(L+=I[y]),T[y]&&(L+=T[y]),this.$annotations[y]&&y!==_&&(L+=this.$annotations[y].className),$){var H=$[y];H==null&&(H=$[y]=R.getFoldWidget(y))}if(H){var W="ace_fold-widget ace_"+H,V=H=="start"&&y==_&&y<p.end.row;if(V){W+=" ace_closed";for(var q="",J=!1,G=y+1;G<=p.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")}L+=q}else W+=" ace_open";k.className!=W&&(k.className=W),f.setStyle(k.style,"height",S),f.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Q=R.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])):p?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[p.start.row+1,p.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&&(f.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",M.className=O,M.className+=q,f.setStyle(M.style,"height",S),f.setStyle(x.style,"display","block"),f.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",M.className=O,this.$useSvgGutterIcons?M.className+=this.$annotations[y].className:b.classList.add(this.$annotations[y].className.replace(" ","")),f.setStyle(M.style,"height",S),f.setStyle(x.style,"display","block"),f.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 f.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!=L&&(b.className=L),f.setStyle(o.element.style,"height",this.$lines.computeLineHeight(y,u,R)+"px"),f.setStyle(o.element.style,"top",this.$lines.computeLineTop(y,u,R)+"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},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?f.addCssClass(this.element,"ace_folding-enabled"):f.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=f.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},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),p=this.element.getBoundingClientRect();if(o.x<u.left+p.left)return"markers";if(this.$showFoldWidgets&&o.x>p.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,v.implement(c.prototype,h);function a(l){var o=document.createTextNode("");l.appendChild(o);var u=f.createElement("span");l.appendChild(u);var p=f.createElement("span");l.appendChild(p);var y=f.createElement("span");return p.appendChild(y),l}i.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,i,m){var f=e("../range").Range,v=e("../lib/dom"),w=function(){function g(s){this.element=v.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setMarkers=function(s){this.markers=s},g.prototype.elt=function(s,c){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=c,a.className=s},g.prototype.update=function(s){if(s){this.config=s,this.i=0;var c;for(var a in this.markers){var l=this.markers[a];if(!l.range){l.update(c,this,this.session,s);continue}var o=l.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),l.renderer){var u=this.$getTop(o.start.row,s),p=this.$padding+o.start.column*s.characterWidth;l.renderer(c,o,p,u,s)}else l.type=="fullLine"?this.drawFullLineMarker(c,o,l.clazz,s):l.type=="screenLine"?this.drawScreenLineMarker(c,o,l.clazz,s):o.isMultiLine()?l.type=="text"?this.drawTextMarker(c,o,l.clazz,s):this.drawMultiLineMarker(c,o,l.clazz,s):this.drawSingleLineMarker(c,o,l.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(s,c){return(s-c.firstRowScreen)*c.lineHeight},g.prototype.drawTextMarker=function(s,c,a,l,o){for(var u=this.session,p=c.start.row,y=c.end.row,b=p,R=0,A=0,k=u.getScreenLastRowColumn(b),x=new f(b,c.start.column,b,A);b<=y;b++)x.start.row=x.end.row=b,x.start.column=b==p?c.start.column:u.getRowWrapIndent(b),x.end.column=k,R=A,A=k,k=b+1<y?u.getScreenLastRowColumn(b+1):b==y?0:c.end.column,this.drawSingleLineMarker(s,x,a+(b==p?" ace_start":"")+" ace_br"+h(b==p||b==p+1&&c.start.column,R<A,A>k,b==y),l,b==y?0:1,o)},g.prototype.drawMultiLineMarker=function(s,c,a,l,o){var u=this.$padding,p=l.lineHeight,y=this.$getTop(c.start.row,l),b=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var R=c.clone();R.end.row=R.start.row,R.end.column=this.session.getLine(R.start.row).length,this.drawBidiSingleLineMarker(s,R,a+" ace_br1 ace_start",l,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+p+"px;right:"+u+"px;top:"+y+"px;left:"+b+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var R=c.clone();R.start.row=R.end.row,R.start.column=0,this.drawBidiSingleLineMarker(s,R,a+" ace_br12",l,null,o)}else{y=this.$getTop(c.end.row,l);var A=c.end.column*l.characterWidth;this.elt(a+" ace_br12","height:"+p+"px;width:"+A+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}if(p=(c.end.row-c.start.row-1)*l.lineHeight,!(p<=0)){y=this.$getTop(c.start.row+1,l);var k=(c.start.column?1:0)|(c.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+p+"px;right:"+u+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(s,c,a,l,o,u){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(s,c,a,l,o,u);var p=l.lineHeight,y=(c.end.column+(o||0)-c.start.column)*l.characterWidth,b=this.$getTop(c.start.row,l),R=this.$padding+c.start.column*l.characterWidth;this.elt(a,"height:"+p+"px;width:"+y+"px;top:"+b+"px;left:"+R+"px;"+(u||""))},g.prototype.drawBidiSingleLineMarker=function(s,c,a,l,o,u){var p=l.lineHeight,y=this.$getTop(c.start.row,l),b=this.$padding,R=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);R.forEach(function(A){this.elt(a,"height:"+p+"px;width:"+(A.width+(o||0))+"px;top:"+y+"px;left:"+(b+A.left)+"px;"+(u||""))},this)},g.prototype.drawFullLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),p=l.lineHeight;c.start.row!=c.end.row&&(p+=this.$getTop(c.end.row,l)-u),this.elt(a,"height:"+p+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),p=l.lineHeight;this.elt(a,"height:"+p+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g}();w.prototype.$padding=0;function h(g,s,c,a){return(g?1:0)|(s?2:0)|(c?4:0)|(a?8:0)}i.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,i,m){var f=new Set(["text","rparen","lparen"]);i.isTextToken=function(v){return f.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 f=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,g=e("../lib/event_emitter").EventEmitter,s=e("../config").nls,c=e("./text_util").isTextToken,a=function(){function l(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 l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
|
208
|
+
`&&o.getNewLineMode()!="windows",p=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.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)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],p=1;p<o+1;p++)if(this.showTabs){var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_tab",y.textContent=w.stringRepeat(this.TAB_CHAR,p),u.push(y)}else u.push(this.dom.createTextNode(w.stringRepeat(" ",p),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",R=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+R,y.textContent=A,this.$tabStrings[" "]=y;var y=this.dom.createElement("span");y.className=b+k,y.textContent=x,this.$tabStrings[" "]=y}},l.prototype.updateLines=function(o,u,p){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(p,o.lastRow),R=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 M=!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=R[A++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==E?x:!1),M&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var T=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=T&&(M=!0,I.style.height=T)}k++}if(M)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"}},l.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 p=o.lastRow,y=u?u.lastRow:-1;if(!u||y<o.firstRow)return this.update(o);if(p<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()},l.prototype.$renderLinesFragment=function(o,u,p){for(var y=[],b=u,R=this.session.getNextFoldLine(b),A=R?R.start.row:1/0;b>A&&(b=R.end.row+1,R=this.session.getNextFoldLine(b,R),A=R?R.start.row:1/0),!(b>p);){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?R:!1),this.$useLineGroups()?x.className="ace_line_group":x.className="ace_line",y.push(k),b++}return y},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,p=o.lastRow,y=this.$lines;y.getLength();)y.pop();y.push(this.$renderLinesFragment(o,u,p))},l.prototype.$renderToken=function(o,u,p,y){for(var b=this,R=/(\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=R.exec(y);){var M=k[1],E=k[2],I=k[3],T=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)),M){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(T){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:T,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)),c(p.type))o.appendChild(A);else{var L="ace_"+p.type.replace(/\./g," ace_"),S=this.dom.createElement("span");p.type=="fold"&&(S.style.width=p.value.length*this.config.characterWidth+"px",S.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),S.className=L,S.appendChild(A),o.appendChild(S)}return u+y.length},l.prototype.renderIndentGuide=function(o,u,p){var y=u.search(this.$indentGuideRe);if(y<=0||y>=p)return u;if(u[0]==" "){y-=y%this.tabSize;for(var b=y/this.tabSize,R=0;R<b;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}else if(u[0]==" "){for(var R=0;R<y;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}return this.$highlightIndentGuide(),u},l.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(),p=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,y=Math.floor(p/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:y,start:u.row};var b=this.session.$bracketHighlight;if(b){for(var R=this.session.$bracketHighlight.ranges,A=0;A<R.length;A++)if(u.row!==R[A].start.row){this.$highlightIndentGuideMarker.end=R[A].start.row,u.row>R[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<=p))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var p=o[u],y=p.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}}}},l.prototype.$setIndentGuideActive=function(o,u){var p=this.session.doc.getLine(o.row);if(p!==""){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")}}},l.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 p=0;p<o.length;p++){var y=o[p];if(this.$highlightIndentGuideMarker.end&&y.row>=this.$highlightIndentGuideMarker.start+1){if(y.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}else for(var p=o.length-1;p>=0;p--){var y=o[p];if(this.$highlightIndentGuideMarker.end&&y.row<this.$highlightIndentGuideMarker.start){if(y.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,p){var y=0,b=0,R=p[0],A=0,k=this.$createLineElement();o.appendChild(k);for(var x=0;x<u.length;x++){var M=u[x],E=M.value;if(x==0&&this.displayIndentGuides){if(y=E.length,E=this.renderIndentGuide(k,E,R),!E)continue;y-=E.length}if(y+E.length<R)A=this.$renderToken(k,A,M,E),y+=E.length;else{for(;y+E.length>=R;)A=this.$renderToken(k,A,M,E.substring(0,R-y)),E=E.substring(R-y),y=R,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(w.stringRepeat(" ",p.indent),this.element)),b++,A=0,R=p[b]||Number.MAX_VALUE;E.length!=0&&(y+=E.length,A=this.$renderToken(k,A,M,E))}}p[p.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,A,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var p=0,y=0;y<u.length;y++){var b=u[y],R=b.value;if(!(y==0&&this.displayIndentGuides&&(R=this.renderIndentGuide(o,R),!R))){if(p+R.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,p,b,R);p=this.$renderToken(o,p,b,R)}}},l.prototype.$renderOverflowMessage=function(o,u,p,y,b){p&&this.$renderToken(o,u,p,y.slice(0,this.MAX_LINE_LENGTH-u));var R=this.dom.createElement("span");R.className="ace_inline_button ace_keyword ace_toggle_wrap",R.textContent=b?"<hide>":"<click to see more...>",o.appendChild(R)},l.prototype.$renderLine=function(o,u,p){if(!p&&p!=!1&&(p=this.session.getFoldLine(u)),p)var y=this.$getFoldLineTokens(u,p);else var y=this.session.getTokens(u);var b=o;if(y.length){var R=this.session.getRowSplitData(u);if(R&&R.length){this.$renderWrappedLine(o,y,R);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){p&&(u=p.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)}},l.prototype.$getFoldLineTokens=function(o,u){var p=this.session,y=[];function b(A,k,x){for(var M=0,E=0;E+A[M].value.length<k;)if(E+=A[M].value.length,M++,M==A.length)return;if(E!=k){var I=A[M].value.substring(k-E);I.length>x-k&&(I=I.substring(0,x-k)),y.push({type:A[M].type,value:I}),E=k+I.length,M+=1}for(;E<x&&M<A.length;){var I=A[M].value;I.length+E>x?y.push({type:A[M].type,value:I.substring(0,x-E)}):y.push(A[M]),E+=I.length,M+=1}}var R=p.getTokens(o);return u.walk(function(A,k,x,M,E){A!=null?y.push({type:"fold",value:A}):(E&&(R=p.getTokens(k)),R.length&&b(R,M,x))},u.end.row,this.session.getLine(u.end.row).length),y},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();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,f.implement(a.prototype,g),i.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,i,m){var f=e("../lib/dom"),v=function(){function w(h){this.element=f.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(),f.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var g=this.cursors,s=g.length;s--;)f.setStyle(g[s].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,g=h.length;g--;)h[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&f.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,f.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,f.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=f.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,f.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,f.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,f.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&&f.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),f.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),g()},this.blinkInterval),g()}},w.prototype.getPixelPosition=function(h,g){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(h),c=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,h.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:a}},w.prototype.isCursorInView=function(h,g){return h.top>=0&&h.top<g.maxHeight},w.prototype.update=function(h){this.config=h;var g=this.session.$selectionMarkers,s=0,c=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var s=0,a=g.length;s<a;s++){var l=this.getPixelPosition(g[s].cursor,!0);if(!((l.top>h.height+h.offset||l.top<0)&&s>1)){var o=this.cursors[c++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,l,h,g[s],this.session):this.isCursorInView(l,h)?(f.setStyle(u,"display","block"),f.translate(o,l.left,l.top),f.setStyle(u,"width",Math.round(h.characterWidth)+"px"),f.setStyle(u,"height",h.lineHeight+"px")):f.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var p=this.session.getOverwrite();this.$setOverwrite(p),this.$pixelPos=l,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?f.addCssClass(this.element,"ace_overwrite-cursors"):f.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 f=this&&this.__extends||function(){var o=function(u,p){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&(y[R]=b[R])},o(u,p)};return function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");o(u,p);function y(){this.constructor=u}u.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter,s=32768,c=function(){function o(u,p){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+p,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(c.prototype,g);var a=function(o){f(u,o);function u(p,y){var b=o.call(this,p,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,y.$scrollbarWidth=b.width=w.scrollbarWidth(p.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 p=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-p)/(this.coeff-p)}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(p){this.element.style.height=p+"px"},u.prototype.setScrollHeight=function(p){this.scrollHeight=p,p>s?(this.coeff=s/p,p=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=p+"px"},u.prototype.setScrollTop=function(p){this.scrollTop!=p&&(this.skipEvent=!0,this.scrollTop=p,this.element.scrollTop=p*this.coeff)},u}(c);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(o){f(u,o);function u(p,y){var b=o.call(this,p,"-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(p){this.element.style.width=p+"px"},u.prototype.setInnerWidth=function(p){this.inner.style.width=p+"px"},u.prototype.setScrollWidth=function(p){this.inner.style.width=p+"px"},u.prototype.setScrollLeft=function(p){this.scrollLeft!=p&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=p)},u}(c);i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=l,i.VScrollBar=a,i.HScrollBar=l}),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 f=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(p[b]=y[b])},l(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");l(o,u);function p(){this.constructor=o}o.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),g=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 l(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 l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();v.implement(s.prototype,g);var c=function(l){f(o,l);function o(u,p){var y=l.call(this,u,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,y.parent=u,y.width=y.VScrollWidth,y.renderer=p,y.inner.style.width=y.element.style.width=(y.width||15)+"px",y.$minWidth=0,y}return o.prototype.onMouseDown=function(u,p){if(u==="mousedown"&&!(h.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var y=this,b=p.clientY,R=function(T){b=T.clientY},A=function(){clearInterval(E)},k=p.clientY,x=this.thumbTop,M=function(){if(b!==void 0){var T=y.scrollTopFromThumbTop(x+b-k);T!==y.scrollTop&&y._emit("scroll",{data:T})}};h.capture(this.inner,R,A);var E=setInterval(M,20);return h.preventDefault(p)}var I=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),h.preventDefault(p)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var p=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return p=p>>0,p<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},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,p){this.pageHeight===u&&!p||(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);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var a=function(l){f(o,l);function o(u,p){var y=l.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=p,y}return o.prototype.onMouseDown=function(u,p){if(u==="mousedown"&&!(h.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var y=this,b=p.clientX,R=function(T){b=T.clientX},A=function(){clearInterval(E)},k=p.clientX,x=this.thumbLeft,M=function(){if(b!==void 0){var T=y.scrollLeftFromThumbLeft(x+b-k);T!==y.scrollLeft&&y._emit("scroll",{data:T})}};h.capture(this.inner,R,A);var E=setInterval(M,20);return h.preventDefault(p)}var I=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),h.preventDefault(p)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var p=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return p=p>>0,p<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},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,p){this.pageWidth===u&&!p||(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=c,i.ScrollBarV=c,i.ScrollBarH=a,i.VScrollBar=c,i.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,i,m){var f=e("./lib/event"),v=function(){function w(h,g){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var s=this;this._flush=function(c){s.pending=!1;var a=s.changes;if(a&&(f.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&&(f.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var g=this.changes;return this.changes=0,g},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 f=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),g=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,c=512,a=typeof ResizeObserver=="function",l=200,o=function(){function u(p){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),p.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",c),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(p,y){p.width=p.height="auto",p.left=p.top="0px",p.visibility="hidden",p.position="absolute",p.whiteSpace="pre",g.isIE<8?p["font-family"]="inherit":p.font="inherit",p.overflow=y?"hidden":"visible"},u.prototype.checkForSizeChanges=function(p){if(p===void 0&&(p=this.$measureSizes()),p&&(this.$characterSize.width!==p.width||this.$characterSize.height!==p.height)){this.$measureNode.style.fontWeight="bold";var y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=p,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===p.width&&y.height===p.height,this._emit("changeCharacterSize",{data:p})}},u.prototype.$addObserver=function(){var p=this;this.$observer=new window.ResizeObserver(function(y){p.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var p=this;return this.$pollSizeChangesTimer=h.onIdle(function y(){p.checkForSizeChanges(),h.onIdle(y,500)},500)},u.prototype.setPolling=function(p){p?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(p){var y={height:(p||this.$measureNode).clientHeight,width:(p||this.$measureNode).clientWidth/c};return y.width===0||y.height===0?null:y},u.prototype.$measureCharWidth=function(p){this.$main.textContent=w.stringRepeat(p,c);var y=this.$main.getBoundingClientRect();return y.width/c},u.prototype.getCharacterWidth=function(p){var y=this.charSizes[p];return y===void 0&&(y=this.charSizes[p]=this.$measureCharWidth(p)/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(p){return!p||!p.parentElement?1:(Number(window.getComputedStyle(p).zoom)||1)*this.$getZoom(p.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var p=function(y,b){return["div",{style:"position: absolute;top:"+y+"px;left:"+b+"px;"}]};this.els=v.buildDom([p(0,0),p(l,0),p(0,l),p(l,l)],this.el)},u.prototype.transformCoordinates=function(p,y){if(p){var b=this.$getZoom(this.el);p=x(1/b,p)}function R(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 M(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var E=M(this.els[0]),I=M(this.els[1]),T=M(this.els[2]),N=M(this.els[3]),$=R(A(N,I),A(N,T),A(k(I,T),k(N,E))),_=x(1+$[0],A(I,E)),S=x(1+$[1],A(T,E));if(y){var L=y,O=$[0]*L[0]/l+$[1]*L[1]/l+1,F=k(x(L[0],_),x(L[1],S));return k(x(1/O/l,F),E)}var H=A(p,E),W=R(A(_,x($[0],H)),A(S,x($[1],H)),H);return x(l,W)},u}();o.prototype.$characterSize={width:0,height:0},f.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 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 f=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=function(){function g(s,c){this.canvas=f.createElement("canvas"),this.renderer=c,this.pixelRatio=1,this.maxHeight=c.layerConfig.maxHeight,this.lineHeight=c.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 g.prototype.$updateDecorators=function(s){var c=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 l=this.canvas.getContext("2d");function o(N,$){return N.priority<$.priority?-1:N.priority>$.priority?1:0}var u=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),u){var p={info:1,warning:2,error:3};u.forEach(function(N){N.priority=p[N.type]||null}),u=u.sort(o);for(var y=this.renderer.session.$foldData,b=0;b<u.length;b++){var R=u[b].row,A=this.compensateFoldRows(R,y),k=Math.round((R-A)*this.lineHeight*this.heightRatio),x=Math.round((R-A)*this.lineHeight*this.heightRatio),M=Math.round(((R-A)*this.lineHeight+this.lineHeight)*this.heightRatio),E=M-x;if(E<this.minDecorationHeight){var I=(x+M)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),x=Math.round(I-this.halfMinDecorationHeight),M=Math.round(I+this.halfMinDecorationHeight)}l.fillStyle=c[u[b].type]||null,l.fillRect(0,k,this.canvasWidth,M-x)}}var T=this.renderer.session.selection.getCursor();if(T){var A=this.compensateFoldRows(T.row,y),k=Math.round((T.row-A)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,k,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(s,c){var a=0;if(c&&c.length>0)for(var l=0;l<c.length;l++)s>c[l].start.row&&s<c[l].end.row?a+=s-c[l].start.row:s>=c[l].end.row&&(a+=c[l].end.row-c[l].start.row);return a},g}();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 f=e("./lib/oop"),v=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),g=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,c=e("./layer/text").Text,a=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,p=e("./scrollbar_custom").VScrollBar,y=e("./renderloop").RenderLoop,b=e("./layer/font_metrics").FontMetrics,R=e("./lib/event_emitter").EventEmitter,A=e("./css/editor-css"),k=e("./layer/decorators").Decorator,x=e("./lib/useragent"),M=e("./layer/text_util").isTextToken;v.importCssString(A,"ace_editor.css",!1);var E=function(){function I(T,N){var $=this;this.container=T||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 g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new c(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 l(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(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(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(T,N,$){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:T,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(T){T?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(T,N,$,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?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 L=this.$updateCachedSize(T,N,$,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!_)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(L|this.$changes,!0):this.$loop.schedule(L|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(T,N,$,_){_-=this.$extraHeight||0;var S=0,L=this.$size,O={width:L.width,height:L.height,scrollerHeight:L.scrollerHeight,scrollerWidth:L.scrollerWidth};if(_&&(T||L.height!=_)&&(L.height=_,S|=this.CHANGE_SIZE,L.scrollerHeight=L.height,this.$horizScroll&&(L.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(L.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),$&&(T||L.width!=$)){S|=this.CHANGE_SIZE,L.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"),L.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(L.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(S|=this.CHANGE_FULL)}return L.$dirty=!$||!_,S&&this._signal("resize",O),S},I.prototype.onGutterResize=function(T){var N=this.$showGutter?T: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 T=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},I.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},I.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=v.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=v.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,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 T=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,L=$.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,H=this.$size.height-O;if(!N)S+=this.lineHeight;else if(N.useTextareaForIME){var W=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(W)[0]}else S+=this.lineHeight+2;L-=this.scrollLeft,L>this.$size.scrollerWidth-F&&(L=this.$size.scrollerWidth-F),L+=this.gutterWidth+this.margin.left,v.setStyle(T,"height",O+"px"),v.setStyle(T,"width",F+"px"),v.translate(this.textarea,Math.min(L,this.$size.scrollerWidth-F),Math.min(S,H))}}},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 T=this.layerConfig,N=T.lastRow,$=this.session.documentToScreenRow(N,0)*T.lineHeight;return $-this.session.getScrollTop()>T.height-T.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(T,N,$,_){var S=this.scrollMargin;S.top=T|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(T,N,$,_){var S=this.margin;S.top=T|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(T){this.setOption("hScrollBarAlwaysVisible",T)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},I.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-N&&(T=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+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(T,N){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!N){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=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=_,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),v.translate(this.content,-this.scrollLeft,-$.offset);var S=$.width+2*this.$padding+"px",L=$.minHeight+"px";v.setStyle(this.content.style,"width",S),v.setStyle(this.content.style,"height",L)}if(T&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)),T&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",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(T&this.CHANGE_GUTTER||T&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",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",T)},I.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,$=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var _=$<=2*this.lineHeight,S=!_&&T>N;if($!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var L=this.container.clientWidth;this.container.style.height=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,L,$),this.desiredHeight=$,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var T=this.session,N=this.$size,$=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),S=_*this.lineHeight,L=this.$getLongestLine(),O=!$&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-L-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var H=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var W=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,L+2*this.$padding-N.scrollerWidth+q.right)));var J=!$&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-S+V<0||this.scrollTop>q.top),G=H!==J;G&&(this.$vScroll=J,this.scrollBarV.setVisible(J));var Q=this.scrollTop%this.lineHeight,ie=Math.ceil(W/this.lineHeight)-1,X=Math.max(0,Math.round((this.scrollTop-Q)/this.lineHeight)),ae=X+ie,me,we,fe=this.lineHeight;X=T.screenToDocumentRow(X,0);var $e=T.getFoldLine(X);$e&&(X=$e.start.row),me=T.documentToScreenRow(X,0),we=T.getRowLength(X)*fe,ae=Math.min(T.screenToDocumentRow(ae,0),T.getLength()-1),W=N.scrollerHeight+T.getRowLength(ae)*fe+we,Q=this.scrollTop-me*fe;var at=0;return(this.layerConfig.width!=L||F)&&(at=this.CHANGE_H_SCROLL),(F||G)&&(at|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(L=this.$getLongestLine())),this.layerConfig={width:L,padding:this.$padding,firstRow:X,firstRowScreen:me,lastRow:ae,lineHeight:fe,characterWidth:this.characterWidth,minHeight:W,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(L-this.$padding),at},I.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(T>$.lastRow+1)&&!(N<$.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,T,N),!0}}},I.prototype.$getLongestLine=function(){var T=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(T+=1),this.$textLayer&&T>this.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*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(T,N){this.$gutterLayer.addGutterDecoration(T,N)},I.prototype.removeGutterDecoration=function(T,N){this.$gutterLayer.removeGutterDecoration(T,N)},I.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),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(T,N,$){this.scrollCursorIntoView(T,$),this.scrollCursorIntoView(N,$)},I.prototype.scrollCursorIntoView=function(T,N,$){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(T),S=_.left,L=_.top,O=$&&$.top||0,F=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+O>L?(N&&H+O>L+this.lineHeight&&(L-=N*this.$size.scrollerHeight),L===0&&(L=-this.scrollMargin.top),this.session.setScrollTop(L)):H+this.$size.scrollerHeight-F<L+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<L-this.lineHeight&&(L+=N*this.$size.scrollerHeight),this.session.setScrollTop(L+this.lineHeight+F-this.$size.scrollerHeight));var W=this.scrollLeft,V=2*this.layerConfig.characterWidth;S-V<W?(S-=V,S<this.$padding+V&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=V,W+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&S-W<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(T){this.session.setScrollTop(T*this.lineHeight)},I.prototype.alignCursor=function(T,N){typeof T=="number"&&(T={row:T,column:0});var $=this.$cursorLayer.getPixelPosition(T),_=this.$size.scrollerHeight-this.lineHeight,S=$.top-_*(N||0);return this.session.setScrollTop(S),S},I.prototype.$calcSteps=function(T,N){var $=0,_=this.STEPS,S=[],L=function(O,F,H){return H*(Math.pow(O-1,3)+1)+F};for($=0;$<_;++$)S.push(L($/this.STEPS,T,N-T));return S},I.prototype.scrollToLine=function(T,N,$,_){var S=this.$cursorLayer.getPixelPosition({row:T,column:0}),L=S.top;N&&(L-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(L),$!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(T,N){var $=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(T==$)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(T=S[0],T==$))return}var L=_.$calcSteps(T,$);this.$scrollAnimation={from:T,to:$,steps:L},clearInterval(this.$timer),_.session.setScrollTop(L.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);L.length?(_.session.setScrollTop(L.shift()),_.session.$scrollTop=$):$!=null?(_.session.$scrollTop=-1,_.session.setScrollTop($),$=null):O()},10)},I.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},I.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(T,N){this.session.setScrollTop(N),this.session.setScrollLeft(T)},I.prototype.scrollBy=function(T,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},I.prototype.isScrollableBy=function(T,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||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(T,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=T+this.scrollLeft-$.left-this.$padding,L=S/this.characterWidth,O=Math.floor((N+this.scrollTop-$.top)/this.lineHeight),F=this.$blockCursor?Math.floor(L):Math.round(L);return{row:O,column:F,side:L-F>0?1:-1,offsetX:S}},I.prototype.screenToTextCoordinates=function(T,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=T+this.scrollLeft-$.left-this.$padding,L=S/this.characterWidth,O=this.$blockCursor?Math.floor(L):Math.round(L),F=Math.floor((N+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),S)},I.prototype.textToScreenCoordinates=function(T,N){var $=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(T,N),S=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,T)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),L=_.row*this.lineHeight;return{pageX:$.left+S-this.scrollLeft,pageY:$.top+L-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(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(v.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(T){var N=this.session.selection.cursor;this.addToken(T,"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 T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(T,N){var $=this.session.selection.cursor,_=N||{row:$.row,column:$.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(T,_);this.addToken(S[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:T,position:{row:_.row,column:_.column}};var L=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),L.appendChild(Q),F=Q}),O.forEach(function(G){var Q=v.createElement("span");M(G.type)||(Q.className="ace_"+G.type.replace(/\./g," ace_")),Q.appendChild(v.createTextNode(G.value)),F.appendChild(Q)}),this.$ghostTextWidget={el:L,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(_,!0),W=this.container,V=W.getBoundingClientRect().height,q=S.length*this.lineHeight,J=q<V-H.top;if(J)return;q<V?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(T,N){var $=this.$size.scrollerWidth-this.$padding*2,_=Math.floor($/this.characterWidth)-2;_=_<=0?60:_;for(var S=T.split(/\r?\n/),L=[],O=0;O<S.length;O++){var F=this.session.$getDisplayTokens(S[O],N.column),H=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(H.length>0){var W=0;H.push(S[O].length);for(var V=0;V<H.length;V++){var q=S[O].slice(W,H[V]);L.push({text:q,wrapped:!0}),W=H[V]}}else L.push({text:S[O],wrapped:!1})}return L},I.prototype.removeGhostText=function(){if(this.$ghostText){var T=this.$ghostText.position;this.removeExtraToken(T.row,T.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(T,N,$,_){var S=this.session;S.bgTokenizer.lines[$]=null;var L={type:N,value:T},O=S.getTokens($);if(_==null||!O.length)O.push(L);else for(var F=0,H=0;H<O.length;H++){var W=O[H];if(F+=W.value.length,_<=F){var V=W.value.length-(F-_),q=W.value.slice(0,V),J=W.value.slice(V);O.splice(H,1,{type:W.type,value:q},L,{type:W.type,value:J});break}}this.updateLines($,$)},I.prototype.hideTokensAfterPosition=function(T,N){for(var $=this.session.getTokens(T),_=0,S=!1,L=[],O=0;O<$.length;O++){var F=$[O];if(_+=F.value.length,F.type!=="ghost_text"){if(S){L.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&(S=!0)}}return this.updateLines(T,T),L},I.prototype.removeExtraToken=function(T,N){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},I.prototype.setTheme=function(T,N){var $=this;if(this.$themeId=T,$._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var _=T||this.$options.theme.initialValue;h.loadModule(["theme",_],S)}else S(T);function S(L){if($.$themeId!=T)return N&&N();if(!L||!L.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");L.$id&&($.$themeId=L.$id),v.importCssString(L.cssText,L.cssClass,$.container),$.theme&&v.removeCssClass($.container,$.theme.cssClass);var O="padding"in L?L.padding:"padding"in($.theme||{})?4:$.$padding;$.$padding&&O!=$.$padding&&$.setPadding(O),$.$theme=L.cssClass,$.theme=L,v.addCssClass($.container,L.cssClass),v.setCssClass($.container,"ace_dark",L.isDark),$.$size&&($.$size.width=0,$.$updateSizeAsync()),$._dispatchEvent("themeLoaded",{theme:L}),N&&N(),x.isSafari&&$.scroller&&($.scroller.style.background="red",$.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(T,N){v.setCssClass(this.container,T,N!==!1)},I.prototype.unsetStyle=function(T){v.removeCssClass(this.container,T)},I.prototype.setCursorStyle=function(T){v.setStyle(this.scroller.style,"cursor",T)},I.prototype.setMouseCursor=function(T){v.setStyle(this.scroller.style,"cursor",T)},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(T){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,T===!0?(this.scrollBarV=new p(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 l(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 T=this;this.$resizeTimer=w.delayedCall(function(){T.destroyed||T.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var $=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(T.$size.width-$)>1||Math.abs(T.$size.height-_)>1?T.$resizeTimer.delay():T.$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,f.implement(E.prototype,R),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 f=e("../lib/oop"),v=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function g(l){var o="importScripts('"+v.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,p=new u;return p.append(o),p.getBlob("application/javascript")}}function s(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=g(l),u=window.URL||window.webkitURL,p=u.createObjectURL(o);return new Worker(p)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,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(){f.implement(this,w),this.$createWorkerFromOldConfig=function(l,o,u,p,y){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)p=p||h.moduleUrl(o,"worker");else{var b=this.$normalizePath;p=p||b(e.toUrl("ace/worker/worker.js",null,"_"));var R={};l.forEach(function(A){R[A]=b(e.toUrl(A,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(p),y&&this.send("importScripts",y),this.$worker.postMessage({init:!0,tlns:R,module:o,classname:u}),this.$worker},this.onMessage=function(l){var o=l.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(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return v.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var p=this.callbackId++;this.callbacks[p]=u,o.push(p)}this.send(l,o)},this.emit=function(l,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:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var a=function(l,o,u){var p=null,y=!1,b=Object.create(w),R=[],A=new c({messageBuffer:R,terminate:function(){},postMessage:function(x){R.push(x),p&&(y?setTimeout(k):k())}});A.setEmitSync=function(x){y=x};var k=function(){var x=R.shift();x.command?p[x.command].apply(p,x.args):x.event&&b._signal(x.event,x.data)};return b.postMessage=function(x){A.onMessage({data:x})},b.callback=function(x,M){this.postMessage({type:"call",id:M,data:x})},b.emit=function(x,M){this.postMessage({type:"event",name:x,data:M})},h.loadModule(["worker",o],function(x){for(p=new x[u](b);R.length;)k()}),A};i.UIWorkerClient=a,i.WorkerClient=c,i.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,i,m){var f=e("./range").Range,v=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=function(){function g(s,c,a,l,o,u){var p=this;this.length=c,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=l,this.$onCursorChange=function(){setTimeout(function(){p.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 g.prototype.setup=function(){var s=this,c=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=c.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=a.addMarker(new f(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=c.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),s.others.push(u)}),a.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,c=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new f(a.row,a.column,a.row,a.column+c.length),c.othersClass,null,!1)})}},g.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)}},g.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var c=s;if(c.start.row===c.end.row&&c.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?c.end.column-c.start.column:c.start.column-c.end.column,l=c.start.column>=this.pos.column&&c.start.column<=this.pos.column+this.length+1,o=c.start.column-this.pos.column;if(this.updateAnchors(s),l&&(this.length+=a),l&&!this.session.$fromUndo){if(s.action==="insert")for(var u=this.others.length-1;u>=0;u--){var p=this.others[u],y={row:p.row,column:p.column+o};this.doc.insertMergedLines(y,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var p=this.others[u],y={row:p.row,column:p.column+o};this.doc.remove(new f(y.row,y.column,y.row,y.column-a))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var c=this.others.length;c--;)this.others[c].onChange(s);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var s=this,c=this.session,a=function(o,u){c.removeMarker(o.markerId),o.markerId=c.addMarker(new f(o.row,o.column,o.row,o.column+s.length),u,null,!1)};a(this.pos,this.mainClass);for(var l=this.others.length;l--;)a(this.others[l],this.othersClass)}},g.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var c=this.session.selection.getCursor();c.row===this.pos.row&&c.column>=this.pos.column&&c.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),c=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<c;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();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 f=e("../lib/event"),v=e("../lib/useragent");function w(g,s){return g.row==s.row&&g.column==s.column}function h(g){var s=g.domEvent,c=s.altKey,a=s.shiftKey,l=s.ctrlKey,o=g.getAccelKey(),u=g.getButton();if(l&&v.isMac&&(u=s.button),g.editor.inMultiSelectMode&&u==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!l&&!c&&!o){u===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(u===0){var p=g.editor,y=p.selection,b=p.inMultiSelectMode,R=g.getDocumentPosition(),A=y.getCursor(),k=g.inSelection()||y.isEmpty()&&w(R,A),x=g.x,M=g.y,E=function(q){x=q.clientX,M=q.clientY},I=p.session,T=p.renderer.pixelToScreenCoordinates(x,M),N=T,$;if(p.$mouseHandler.$enableJumpToDef)l&&c||o&&c?$=a?"block":"add":c&&p.$blockSelectEnabled&&($="block");else if(o&&!c){if($="add",!b&&a)return}else c&&p.$blockSelectEnabled&&($="block");if($&&v.isMac&&s.ctrlKey&&p.$mouseHandler.cancelContextMenu(),$=="add"){if(!b&&k)return;if(!b){var _=y.toOrientedRange();p.addSelectionMarker(_)}var S=y.rangeList.rangeAtPoint(R);p.inVirtualSelectionMode=!0,a&&(S=null,_=y.ranges[0]||_,p.removeSelectionMarker(_)),p.once("mouseup",function(){var q=y.toOrientedRange();S&&q.isEmpty()&&w(S.cursor,q.cursor)?y.substractPoint(q.cursor):(a?y.substractPoint(_.cursor):_&&(p.removeSelectionMarker(_),y.addRange(_)),y.addRange(q)),p.inVirtualSelectionMode=!1})}else if($=="block"){g.stop(),p.inVirtualSelectionMode=!0;var L,O=[],F=function(){var q=p.renderer.pixelToScreenCoordinates(x,M),J=I.screenToDocumentPosition(q.row,q.column,q.offsetX);w(N,q)&&w(J,y.lead)||(N=q,p.selection.moveToPosition(J),p.renderer.scrollCursorIntoView(),p.removeSelectionMarkers(O),O=y.rectangularRangeBlock(N,T),p.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=p.$mouseHandler.$clickSelection.clone()),O.forEach(p.addSelectionMarker,p),p.updateSelectionMarkers())};b&&!o?y.toSingleRange():!b&&o&&(L=y.toOrientedRange(),p.addSelectionMarker(L)),a?T=I.documentToScreenPosition(y.lead):y.moveToPosition(R),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),p.removeSelectionMarkers(O),O.length||(O=[y.toOrientedRange()]),L&&(p.removeSelectionMarker(L),y.toSingleRange(L));for(var J=0;J<O.length;J++)y.addRange(O[J]);p.inVirtualSelectionMode=!1,p.$mouseHandler.$clickSelection=null},W=F;f.capture(p.container,E,H);var V=setInterval(function(){W()},20);return g.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 f=e("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new f(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 f=e("./range_list").RangeList,v=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,g=e("./lib/event"),s=e("./lib/lang"),c=e("./commands/multi_select_commands");i.commands=c.defaultCommands.concat(c.multiSelectCommands);var a=e("./search").Search,l=new a;function o(A,k,x){return l.$options.wrap=!0,l.$options.needle=k,l.$options.backwards=x==-1,l.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 M=this.rangeList.add(A);return this.$onAddRange(A),M.length&&this.$onRemoveRange(M),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 M=this.ranges.indexOf(A[x]);this.ranges.splice(M,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 f,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 M=A[x],E=M.start.row,I=M.end.row;if(E===I)k.push(M.clone());else{for(k.push(new v(E,M.start.column,E,this.session.getLine(E).length));++E<I;)k.push(this.getLineRange(E,!0));k.push(new v(I,0,I,M.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 M=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(M,E);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(A,k,x){var M=[],E=A.column<k.column;if(E)var I=A.column,T=k.column,N=A.offsetX,$=k.offsetX;else var I=k.column,T=A.column,N=k.offsetX,$=A.offsetX;var _=A.row<k.row;if(_)var S=A.row,L=k.row;else var S=k.row,L=A.row;I<0&&(I=0),S<0&&(S=0),S==L&&(x=!0);for(var O,F=S;F<=L;F++){var H=v.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,T,$));if(H.isEmpty()){if(O&&y(H.end,O))break;O=H.end}H.cursor=E?H.start:H.end,M.push(H)}if(_&&M.reverse(),!x){for(var W=M.length-1;M[W].isEmpty()&&W>0;)W--;if(W>0)for(var V=0;M[V].isEmpty();)V++;for(var q=W;q>=V;q--)M[q].isEmpty()&&M.splice(q,1)}return M}}).call(w.prototype);var p=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 M=A[x];if(M.marker){this.session.removeMarker(M.marker);var E=k.indexOf(M);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(c.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(c.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"?M=x.forEachSelection(k,A.args):k.multiSelectAction=="forEachLine"?M=x.forEachSelection(k,A.args,!0):k.multiSelectAction=="single"?(x.exitMultiSelectMode(),M=k.exec(x,A.args||{})):M=k.multiSelectAction(x,A.args||{});else{var M=k.exec(x,A.args||{});x.multiSelect.addRange(x.multiSelect.toOrientedRange()),x.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(A,k,x){if(!this.inVirtualSelectionMode){var M=x&&x.keepOrder,E=x==!0||x&&x.$byLines,I=this.session,T=this.selection,N=T.rangeList,$=(M?T:N).ranges,_;if(!$.length)return A.exec?A.exec(this,k||{}):A(this,k||{});var S=T._eventRegistry;T._eventRegistry={};var L=new w(I);this.inVirtualSelectionMode=!0;for(var O=$.length;O--;){if(E)for(;O>0&&$[O].start.row==$[O-1].end.row;)O--;L.fromOrientedRange($[O]),L.index=O,this.selection=I.selection=L;var F=A.exec?A.exec(this,k||{}):A(this,k||{});!_&&F!==void 0&&(_=F),L.toOrientedRange($[O])}L.detach(),this.selection=I.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=S,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.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=[],M=0;M<k.length;M++)x.push(this.session.getTextRange(k[M]));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 M=k==this.multiSelect.anchor?x.cursor==x.start?x.end:x.start:x.cursor;M.row!=k.row||this.session.$clipPositionToDocument(M.row,M.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 M=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(M)}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 T=E.length;T--;)I.addRange(E[T],!0);return M&&I.rangeList.rangeAtPoint(M.start)&&I.addRange(M,!0),E.length},this.selectMoreLines=function(A,k){var x=this.selection.toOrientedRange(),M=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 T=this.session.documentToScreenPosition(M?x.end:x.start),N=this.session.screenToDocumentPosition(T.row+A,T.column);if(M){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,M=x.ranges,E=M.length;E--;){var I=M[E];if(I.isEmpty()){var T=k.getWordRange(I.start.row,I.start.column);I.start.row=T.start.row,I.start.column=T.start.column,I.end.row=T.end.row,I.end.column=T.end.column}}x.mergeOverlappingRanges();for(var N=[],E=M.length;E--;){var I=M[E];N.unshift(k.getTextRange(I))}A<0?N.unshift(N.pop()):N.push(N.shift());for(var E=M.length;E--;){var I=M[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 M=this.session,E=M.multiSelect,I=E.toOrientedRange();if(!(I.isEmpty()&&(I=M.getWordRange(I.start.row,I.start.column),I.cursor=A==-1?I.start:I.end,this.multiSelect.addRange(I),x))){var T=M.getTextRange(I),N=o(M,T,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,M=-1,E=x.filter(function(W){if(W.cursor.row==M)return!0;M=W.cursor.row});if(!x.length||E.length==x.length-1){var I=this.selection.getRange(),T=I.start.row,N=I.end.row,$=T==N;if($){var _=this.session.getLength(),S;do S=this.session.getLine(N);while(/[=:]/.test(S)&&++N<_);do S=this.session.getLine(T);while(/[=:]/.test(S)&&--T>0);T<0&&(T=0),N>=_&&(N=_-1)}var L=this.session.removeFullLines(T,N);L=this.$reAlignText(L,$),this.session.insert({row:T,column:0},L.join(`
|
936
|
+
`)+`
|
937
|
+
`),$||(I.start.column=0,I.end.column=L[L.length-1].length),this.selection.setRange(I)}else{E.forEach(function(W){k.substractPoint(W.cursor)});var O=0,F=1/0,H=x.map(function(W){var V=W.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(W,V){var q=W.cursor,J=O-q.column,G=H[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)),W.start.column=W.end.column=O,W.start.row=W.end.row=q.row,W.cursor=W.end}),k.fromOrientedRange(x[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,k){var x=!0,M=!0,E,I,T;return A.map(function(L){var O=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?E==null?(E=O[1].length,I=O[2].length,T=O[3].length,O):(E+I+T!=O[1].length+O[2].length+O[3].length&&(M=!1),E!=O[1].length&&(x=!1),E>O[1].length&&(E=O[1].length),I<O[2].length&&(I=O[2].length),T>O[3].length&&(T=O[3].length),O):[L]}).map(k?$:x?M?_:$:S);function N(L){return s.stringRepeat(" ",L)}function $(L){return L[2]?N(E)+L[2]+N(I-L[2].length+T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function _(L){return L[2]?N(E+I-L[2].length)+L[2]+N(T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function S(L){return L[2]?N(E)+L[2]+N(T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(p.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(c.defaultCommands),R(A))}function R(A){if(!A.textInput)return;var k=A.textInput.getElement(),x=!1;g.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&&M()},A),g.addListener(k,"keyup",M,A),g.addListener(k,"blur",M,A);function M(E){x&&(A.renderer.setMouseCursor(""),x=!1)}}i.MultiSelect=b,e("./config").defineOptions(p.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 f=e("../../range").Range,v=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,g){var s=w.getLine(g);return this.foldingStartMarker.test(s)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(w,h,g){return null},this.indentationBlock=function(w,h,g){var s=/\S/,c=w.getLine(h),a=c.search(s);if(a!=-1){for(var l=g||c.length,o=w.getLength(),u=h,p=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}p=h}}if(p>u){var R=w.getLine(p).length;return new f(u,l,p,R)}}},this.openingBracketBlock=function(w,h,g,s,c){var a={row:g,column:s+1},l=w.$findClosingBracket(h,a,c);if(l){var o=w.foldWidgets[l.row];return o==null&&(o=w.getFoldWidget(l.row)),o=="start"&&l.row>a.row&&(l.row--,l.column=w.getLine(l.row).length),f.fromPoints(a,l)}},this.closingBracketBlock=function(w,h,g,s,c){var a={row:g,column:s},l=w.$findOpeningBracket(h,a);if(l)return l.column++,a.column--,f.fromPoints(l,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 f=e("../lib/dom"),v=e("../range").Range,w=e("../config").nls;function h(s,c,a){for(var l=0,o=s.length-1;l<=o;){var u=l+o>>1,p=a(c,s[u]);if(p>0)l=u+1;else if(p<0)o=u-1;else return u}return-(l+1)}function g(s,c,a){var l=s.getAnnotations().sort(v.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},v.comparePoints);o<0&&(o=-o-1),o>=l.length?o=a>0?0:l.length-1:o===0&&a<0&&(o=l.length-1);var u=l[o];if(!(!u||!a)){if(u.row===c){do u=l[o+=a];while(u&&u.row===c);if(!u)return l.slice()}var p=[];c=u.row;do p[a<0?"unshift":"push"](u),u=l[o+=a];while(u&&u.row==c);return p.length&&p}}}i.showErrorMarker=function(s,c){var a=s.session,l=s.getCursorPosition(),o=l.row,u=a.widgetManager.getWidgetsAtRow(o).filter(function(E){return E.type=="errorMarker"})[0];u?u.destroy():o-=c;var p=g(a,o,c),y;if(p){var b=p[0];l.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,l.row=b.row,y=s.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;y={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(l.row),s.selection.moveToPosition(l);var R={row:l.row,fixedWidth:!0,coverGutter:!0,el:f.createElement("div"),type:"errorMarker"},A=R.el.appendChild(f.createElement("div")),k=R.el.appendChild(f.createElement("div"));k.className="error_widget_arrow "+y.className;var x=s.renderer.$cursorLayer.getPixelPosition(l).left;k.style.left=x+s.renderer.gutterWidth-5+"px",R.el.className="error_widget_wrapper",A.className="error_widget "+y.className,y.displayText.forEach(function(E,I){A.appendChild(f.createTextNode(E)),I<y.displayText.length-1&&A.appendChild(f.createElement("br"))}),A.appendChild(f.createElement("div"));var M=function(E,I,T){if(I===0&&(T==="esc"||T==="return"))return R.destroy(),{command:"null"}};R.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(M),a.widgetManager.removeLineWidget(R),s.off("changeSelection",R.destroy),s.off("changeSession",R.destroy),s.off("mouseup",R.destroy),s.off("change",R.destroy))},s.keyBinding.addKeyboardHandler(M),s.on("changeSelection",R.destroy),s.on("changeSession",R.destroy),s.on("mouseup",R.destroy),s.on("change",R.destroy),s.session.widgetManager.addLineWidget(R),R.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:R.el.offsetHeight})},f.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 f=e("./lib/dom"),v=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,g=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,l){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 p=a;u=p.value,a=f.createElement("pre"),p.parentNode.replaceChild(a,p)}else a&&(u=a.textContent,a.innerHTML="");var y=i.createEditSession(u),b=new w(new s(a),y,l),R={document:y,editor:b,onResize:b.resize.bind(b,null)};return p&&(R.textarea=p),b.on("destroy",function(){R.editor.container.env=null}),b.container.env=b.env=R,b},i.createEditSession=function(a,l){var o=new h(a,l);return o.setUndoManager(new g),o},i.Range=v,i.Editor=w,i.EditSession=h,i.UndoManager=g,i.VirtualRenderer=s;var c=i.config.version;i.version=c}),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.exports=i.ace})}()}(Sp)),Sp.exports}var Ia=Xw(),Ap={exports:{}},Mp;function Jw(){return Mp||(Mp=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 f=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"},g=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/},c=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/},l=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]+"},p=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",R="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":R,"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})*})`,M={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,I,T){T.length&&(T=[]);var N=E[E.length-1];return T.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,l,w,h,o,g,s,c,{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,T){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",$=E.split(this.splitRegex);return T.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,T){return E===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,I,T){return E===T[1]?(T.shift(),T.shift(),this.next=T[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,T){return this.next="",E=="}"&&T.length>1&&T[1]!="start"&&(T.shift(),this.next=T.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,T){return T.length&&E===T[0]?(T.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,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.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,T){return T.length&&E===T[0]?(T.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,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,I,T){return T.length&&E===T[0]?(T.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,T){return T.length&&E[0]===M[T[0]]?(T.shift(),this.next=T.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()};f.inherits(p,v),i.RubyHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=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 g=w.getLine(h),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new f(h,0,h,c-1),l)},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 f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,g=i.FoldMode=function(){};f.inherits(g,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,c,a){var l=s.getLine(a),o=this.foldingStartMarker.test(l),u=this.foldingStopMarker.test(l);if(o&&!u){var p=l.match(this.foldingStartMarker);if(p[1]){if((p[1]=="if"||p[1]=="else"||p[1]=="while"||p[1]=="until"||p[1]=="unless")&&(p[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||p[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(s.getTokenAt(a,p.index+2).type==="keyword")return"start"}else if(!p[3]||s.getTokenAt(a,p.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var p=l.match(this.foldingStopMarker);if(p[3]==="end"){if(s.getTokenAt(a,p.index+1).type==="keyword")return"end"}else if(!p[1]||s.getTokenAt(a,p.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,c,a){var l=s.doc.getLine(a),o=this.foldingStartMarker.exec(l);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(l);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,c,a,l){var o=new h(s,c,a),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var p=u.value,y=s.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);if(!b.test(y))return;var R=this.indentKeywords[p];break;case"when":if(/\sthen\s/.test(y))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");if(!b.test(y))return;var R=1;break;default:var R=this.indentKeywords[p]}var A=[p];if(R){var k=R===-1?s.getLine(c-1).length:s.getLine(c).length,x=c,M=[];if(M.push(o.getCurrentTokenRange()),o.step=R===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(R==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=R*this.indentKeywords[u.value];switch(y=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var T=o.$tokenIndex-1;T>=0;T--){var N=o.$rowTokens[T];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)||p=="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)||p=="case")&&(I=0,E=!0)}if(I>0)A.unshift(u.value);else if(I<=0&&E===!1){if(A.shift(),!A.length&&((p=="while"||p=="until"||p=="for")&&u.value!="do"||u.value=="do"&&R==-1&&I!=0||u.value!="do"))break;I===0&&A.unshift(u.value)}}}if(!u)return null;if(l)return M.push(o.getCurrentTokenRange()),M;var c=o.getCurrentTokenRow();if(R===-1){if(u.type==="comment.multiline")var $=6;else var $=s.getLine(c).length;return new w(c,$,x-1,k)}return new w(x,k,c-1,s.getLine(c-1).length)}}}}).call(g.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 f=e("../lib/oop"),v=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../range").Range,s=e("./folding/ruby").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};f.inherits(c,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),p=this.getTokenizer().getLineTokens(l,a),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[]\s*$/),R=l.match(/^\s*(class|def|module)\s.*$/),A=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(b||R||A||k)&&(u+=o)}return u},this.checkOutdent=function(a,l,o){return/^\s+(end|else|rescue|ensure)$/.test(l+o)||this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(a,l,o){var u=l.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(l,o);var p=this.$getIndent(u),y=l.getLine(o-1),b=this.$getIndent(y),R=l.getTabString();b.length<=p.length&&p.slice(-R.length)==R&&l.remove(new g(o,p.length-R.length,o,p.length))},this.getMatching=function(a,l,o){if(l==null){var u=a.selection.lead;o=u.column,l=u.row}var p=a.getTokenAt(l,o);if(p&&p.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,l,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(c.prototype),i.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(e){n.exports=e})}()}(Ap)),Ap.exports}Jw();var Tp={exports:{}},Ep;function eb(){return Ep||(Ep=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 f=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",g="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",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":g,keyword:h},"identifier"),a="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",p="(?:(?:[1-9]\\d*)|(?:0))",y="(?:0[oO]?[0-7]+)",b="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",A="(?:"+p+"|"+y+"|"+b+"|"+R+")",k="(?:[eE][+-]?\\d+)",x="(?:\\.\\d+)",M="(?:\\d+)",E="(?:(?:"+M+"?"+x+")|(?:"+M+"\\.))",I="(?:(?:"+E+"|"+M+")"+k+")",T="(?:"+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:l+'"{3}',next:"rawqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rawqqstring"},{token:"string",regex:l+"'{3}",next:"rawqstring3"},{token:"string",regex:l+"'(?=.)",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:"(?:"+T+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:T},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};f.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 f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};f.inherits(w,v),(function(){this.getFoldWidgetRange=function(h,g,s){var c=h.getLine(s),a=c.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 f=e("../lib/oop"),v=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,g=e("../range").Range,s=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};f.inherits(s,v),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),p=this.getTokenizer().getLineTokens(l,a),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,l,o){if(o!==`\r
|
971
|
+
`&&o!=="\r"&&o!==`
|
972
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&c[p.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),p=l.getTabString();u.slice(-p.length)==p&&l.remove(new g(o,u.length-p.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.exports=e})}()}(Tp)),Tp.exports}eb();var Rp={exports:{}},Lp;function tb(){return Lp||(Lp=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 f=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"}]}};f.inherits(w,v),i.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=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 g=w.getLine(h),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new f(h,0,h,c-1),l)},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 f=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};f.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(g,s,c){var a=g.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(g,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(g,s,c,a){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,u);var p=g.getCommentFoldRange(c,u+o[0].length,1);return p&&!p.isMultiLine()&&(a?p=this.getSectionRange(g,c):s!="all"&&(p=null)),p}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,u):g.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(g,s){var c=g.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,p=g.getLength();++s<p;){c=g.getLine(s);var y=c.search(/\S/);if(y!==-1){if(a>y)break;var b=this.getFoldWidgetRange(g,"all",s);if(b){if(b.start.row<=l)break;if(b.isMultiLine())s=b.end.row;else if(a==y)break}u=s}}return new v(l,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,c){for(var a=s.search(/\s*$/),l=g.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++c<l;){s=g.getLine(c);var y=u.exec(s);if(y&&(y[1]?p--:p++,!p))break}var b=c;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 f=e("../lib/oop"),v=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("./folding/cstyle").FoldMode,s=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};f.inherits(c,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l);if(a=="start"){var p=l.match(/^.*[\{\(\[]\s*$/);p&&(u+=o)}return u},this.checkOutdent=function(a,l,o){return this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(a,l,o){this.$outdent.autoOutdent(l,o)},this.createWorker=function(a){var l=new s(["ace"],"ace/mode/json_worker","JsonWorker");return l.attachToDocument(a.getDocument()),l.on("annotate",function(o){a.setAnnotations(o.data)}),l.on("terminate",function(){a.clearAnnotations()}),l},this.$id="ace/mode/json"}).call(c.prototype),i.Mode=c}),function(){ace.require(["ace/mode/json"],function(e){n.exports=e})}()}(Rp)),Rp.exports}tb();var Ip={exports:{}},Op;function nb(){return Op||(Op=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 f=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",g=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",c=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]+))",l=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 p=this.createKeywordMapper({"support.function":h,"support.constant":g,"support.type":w,"support.constant.color":s,"support.constant.fonts":c},"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:l},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:p,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()};f.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 f=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()};f.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 f(){var a=s.replace("\\d","\\d\\-"),l={onMatch:function(u,p,y){var b=u.charAt(1)=="/"?2:1;return b==1?(p!=this.nextState?y.unshift(this.next,this.nextState,0):y.unshift(this.next),y[2]++):b==2&&p==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(l);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,p,y){return p==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"}]},l],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,g=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(a){var l={"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(l,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",p="\\\\(?: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(l).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:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,A,k){if(this.next=R=="{"?this.nextState:"",R=="{"&&k.length)k.unshift("start",A);else if(R=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:p},{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)&&f.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(c,g),i.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(h){var g="[_: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:"(<\\?)("+g+")",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:g},{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:"(<\\!)("+g+")",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:"(?:(<)|(</))((?:"+g+":)?"+g+")",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:g},{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,g,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:g+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,a,l){return l.splice(0),this.token}}],this.embedRules(h,g,[{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),f.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 f=e("../lib/oop"),v=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,g=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"}),c=function(){g.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,l){var o=s[l];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===c&&this.normalizeRules()};f.inherits(c,g),i.HtmlHighlightRules=c}),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 f=e("../config").$modes,v=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,g=e("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+w.escapeRegExp(a)+"\\\\]|\\\\.)*"},c=function(){g.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,p,y){var b=o.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(b[3])[0];return f[R]||(R=""),p.unshift("githubblock",[],[b[1],b[2],R],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,p,y){var b=p[1],R=p[2][0],A=p[2][1],k=p[2][2],x=/^(\s*)(`+|~+)\s*$/.exec(o);if(x&&x[1].length<R.length+3&&x[2].length>=A.length&&x[2][0]==A[0])return p.splice(0,3),this.next=p.shift(),this.token;if(this.next="",k&&f[k]){var M=f[k].getTokenizer().getLineTokens(o,b.slice(0));return p[1]=M.state,M.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:l}),this.normalizeRules()};v.inherits(c,h),i.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=i.FoldMode=function(){};f.inherits(h,v),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,s,c){var a=g.getLine(c);return this.foldingStartMarker.test(a)?a[0]=="`"&&g.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,s,c){function a(E){return R=g.getTokens(E)[0],R&&R.type.lastIndexOf(A,0)===0}function l(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var o=g.getLine(c),u=o.length,p=g.getLength(),y=c,b=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(c)!=="start"){for(;++c<p&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(y,u,c,0)}for(;c-- >0&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(c,o.length,y,0)}var R,A="markup.heading";if(a(c)){for(var k=l();++c<p;)if(a(c)){var x=l();if(x>=k)break}if(b=c-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),b>y)for(;b>y&&/^\s*$/.test(g.getLine(b));)b--;if(b>y){var M=g.getLine(b).length;return new w(y,u,b,M)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=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 g=w.getLine(h),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=w.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(w.getLine(a.row));w.replace(new f(h,0,h,c-1),l)},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 f(s,c){return s&&s.type.lastIndexOf(c+".xml")>-1}var v=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(s,c,a,l,o){if(o=='"'||o=="'"){var u=o,p=l.doc.getTextRange(a.getSelectionRange());if(p!==""&&p!=="'"&&p!='"'&&a.getWrapBehavioursEnabled())return{text:u+p+u,selection:!1};var y=a.getCursorPosition(),b=l.doc.getLine(y.row),R=b.substring(y.column,y.column+1),A=new h(l,y.row,y.column),k=A.getCurrentToken();if(R==u&&(f(k,"attribute-value")||f(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;f(k,"tag-whitespace")||f(k,"whitespace");)k=A.stepBackward();var x=!R||R.match(/\s/);if(f(k,"attribute-equals")&&(x||R==">")||f(k,"decl-attribute-equals")&&(x||R=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,c,a,l,o){var u=l.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var p=l.doc.getLine(o.start.row),y=p.substring(o.start.column+1,o.start.column+2);if(y==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,c,a,l,o){if(o==">"){var u=a.getSelectionRange().start,p=new h(l,u.row,u.column),y=p.getCurrentToken()||p.stepBackward();if(!y||!(f(y,"tag-name")||f(y,"tag-whitespace")||f(y,"attribute-name")||f(y,"attribute-equals")||f(y,"attribute-value"))||f(y,"reference.attribute-value"))return;if(f(y,"attribute-value")){var b=p.getCurrentTokenColumn()+y.value.length;if(u.column<b)return;if(u.column==b){var R=p.stepForward();if(R&&f(R,"attribute-value"))return;p.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!f(y,"tag-name");)if(y=p.stepBackward(),y.value=="<"){y=p.stepForward();break}var A=p.getCurrentTokenRow(),k=p.getCurrentTokenColumn();if(f(p.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,c,a,l,o){if(o==`
|
973
|
+
`){var u=a.getCursorPosition(),p=l.getLine(u.row),y=new h(l,u.row,u.column),b=y.getCurrentToken();if(f(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 R=b.value,A=y.getCurrentTokenRow();if(b=y.stepBackward(),!b||b.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var k=l.getTokenAt(u.row,u.column+1),p=l.getLine(A),x=this.$getIndent(p),M=x+l.getTabString();return k&&k.value==="</"?{text:`
|
974
|
+
`+M+`
|
975
|
+
`+x,selection:[1,M.length,1,M.length]}:{text:`
|
976
|
+
`+M}}}}})};v.inherits(g,w),i.XmlBehaviour=g}),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 f=e("../../lib/oop"),v=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,g=function(){var s=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(w),this.add("autoclosing-fragment","insertion",function(c,a,l,o,u){if(u==">"){var p=l.getSelectionRange().start,y=new v(o,p.row,p.column),b=y.getCurrentToken()||y.stepBackward();if(!b)return;if(b.value=="<")return{text:"></>",selection:[1,1]}}})};f.inherits(g,w),i.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){function f(c,a){return c.type.lastIndexOf(a+".xml")>-1}var v=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,g=i.FoldMode=function(c,a){h.call(this),this.voidElements=c||{},this.optionalEndTags=v.mixin({},this.voidElements),a&&v.mixin(this.optionalEndTags,a)};v.inherits(g,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(c,a,l){var o=this._getFirstTagInLine(c,l);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(c,l,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(c,l)},this.getCommentFoldWidget=function(c,a){return/comment/.test(c.getState(a))&&/<!-/.test(c.getLine(a))?"start":""},this._getFirstTagInLine=function(c,a){for(var l=c.getTokens(a),o=new s,u=0;u<l.length;u++){var p=l[u];if(f(p,"tag-open")){if(o.end.column=o.start.column+p.value.length,o.closing=f(p,"end-tag-open"),p=l[++u],!p)return null;if(o.tagName=p.value,p.value===""){if(p=l[++u],!p)return null;o.tagName=p.value}for(o.end.column+=p.value.length,u++;u<l.length;u++)if(p=l[u],o.end.column+=p.value.length,f(p,"tag-close")){o.selfClosing=p.value=="/>";break}return o}if(f(p,"tag-close"))return o.selfClosing=p.value=="/>",o;o.start.column+=p.value.length}return null},this._findEndTagInLine=function(c,a,l,o){for(var u=c.getTokens(a),p=0,y=0;y<u.length;y++){var b=u[y];if(p+=b.value.length,!(p<o-1)&&f(b,"end-tag-open")&&(b=u[y+1],f(b,"tag-name")&&b.value===""&&(b=u[y+2]),b&&b.value==l))return!0}return!1},this.getFoldWidgetRange=function(c,a,l){var o=this._getFirstTagInLine(c,l);if(!o)return this.getCommentFoldWidget(c,l)&&c.getCommentFoldRange(l,c.getLine(l).length);var u=c.getMatchingTags({row:l,column:0});if(u)return new w(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(g.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 f=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};f.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(g,s,c){var a=g.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(g,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(g,s,c,a){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,u);var p=g.getCommentFoldRange(c,u+o[0].length,1);return p&&!p.isMultiLine()&&(a?p=this.getSectionRange(g,c):s!="all"&&(p=null)),p}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,u):g.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(g,s){var c=g.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,p=g.getLength();++s<p;){c=g.getLine(s);var y=c.search(/\S/);if(y!==-1){if(a>y)break;var b=this.getFoldWidgetRange(g,"all",s);if(b){if(b.start.row<=l)break;if(b.isMultiLine())s=b.end.row;else if(a==y)break}u=s}}return new v(l,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,c){for(var a=s.search(/\s*$/),l=g.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++c<l;){s=g.getLine(c);var y=u.exec(s);if(y&&(y[1]?p--:p++,!p))break}var b=c;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 f=e("../../lib/oop"),v=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new v};f.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,c){var a=this.getFoldWidgetBase(g,s,c);return a||this.xmlFoldMode.getFoldWidget(g,s,c)},this.getFoldWidgetRange=function(g,s,c,a){var l=this.getFoldWidgetRangeBase(g,s,c,a);return l||this.xmlFoldMode.getFoldWidgetRange(g,s,c)}}).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 f=e("../lib/oop"),v=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,s=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,a=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new s,this.foldingRules=new c};f.inherits(a,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var p=this.$getIndent(o),y=this.getTokenizer().getLineTokens(o,l),b=y.tokens,R=y.state;if(b.length&&b[b.length-1].type=="comment")return p;if(l=="start"||l=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(p+=u)}else if(l=="doc-start"&&(R=="start"||R=="no_regex"))return"";return p},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.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 f={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 g=h.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});f.hasOwnProperty(g)||(f[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,g,s){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(g.row).substr(0,g.column),a=/\([^)]*$/.test(c);return a&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(w,h,g,s):this.getPropertyCompletions(w,h,g,s,a)}return[]},this.getPropertyCompletions=function(w,h,g,s,c){c=c||!1;var a=Object.keys(f);return a.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,g,s){var c=h.getLine(g.row).substr(0,g.column),a=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!a)return[];var l=[];return a in f&&typeof f[a]=="object"&&(l=Object.keys(f[a])),l.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 f=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(g,s,c,a,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new w(a,o.row,o.column),p=u.getCurrentToken();if(p&&p.value.match(/\s+/)&&(p=u.stepBackward()),p&&p.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(g,s,c,a,l){var o=a.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),p=new w(a,u.row,u.column),y=p.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=p.stepBackward()),y&&y.type==="support.type"){var b=a.doc.getLine(l.start.row),R=b.substring(l.end.column,l.end.column+1);if(R===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(g,s,c,a,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row),p=u.substring(o.column,o.column+1);if(p===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,s,c,a,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};f.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 f=e("../lib/oop"),v=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,s=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,a=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new c,this.$completer=new s,this.foldingRules=new a};f.inherits(l,v),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,p){var y=this.$getIndent(u),b=this.getTokenizer().getLineTokens(u,o).tokens;if(b.length&&b[b.length-1].type=="comment")return y;var R=u.match(/^.*\{\s*$/);return R&&(y+=p),y},this.checkOutdent=function(o,u,p){return this.$outdent.checkOutdent(u,p)},this.autoOutdent=function(o,u,p){this.$outdent.autoOutdent(u,p)},this.getCompletions=function(o,u,p,y){return this.$completer.getCompletions(o,u,p,y)},this.createWorker=function(o){var u=new g(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(p){o.setAnnotations(p.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),i.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h,g){this.defaultMode=h,this.subModes=g};f.inherits(w,v),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var g in this.subModes)if(h.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(h,g,s,c){var a=this.$getMode(h);return a?a.getFoldWidget(g,s,c):""},this.getFoldWidget=function(h,g,s){return this.$tryMode(h.getState(s-1),h,g,s)||this.$tryMode(h.getState(s),h,g,s)||this.defaultMode.getFoldWidget(h,g,s)},this.getFoldWidgetRange=function(h,g,s){var c=this.$getMode(h.getState(s-1));return(!c||!c.getFoldWidget(h,g,s))&&(c=this.$getMode(h.getState(s))),(!c||!c.getFoldWidget(h,g,s))&&(c=this.defaultMode),c.getFoldWidgetRange(h,g,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 f=e("../../lib/oop"),v=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,g=i.FoldMode=function(s,c){v.call(this,new w(s,c),{"js-":new h,"css-":new h})};f.inherits(g,v)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,i,m){function f(u,p){return u.type.lastIndexOf(p+".xml")>-1}function v(u,p){for(var y=new h(u,p.row,p.column),b=y.getCurrentToken();b&&!f(b,"tag-name");)b=y.stepBackward();if(b)return b.value}function w(u,p){for(var y=new h(u,p.row,p.column),b=y.getCurrentToken();b&&!f(b,"attribute-name");)b=y.stepBackward();if(b)return b.value}var h=e("../token_iterator").TokenIterator,g=["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"],c=g.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:{}},l=Object.keys(a),o=function(){};(function(){this.getCompletions=function(u,p,y,b){var R=p.getTokenAt(y.row,y.column);if(!R)return[];if(f(R,"tag-name")||f(R,"tag-open")||f(R,"end-tag-open"))return this.getTagCompletions(u,p,y,b);if(f(R,"tag-whitespace")||f(R,"attribute-name"))return this.getAttributeCompletions(u,p,y,b);if(f(R,"attribute-value"))return this.getAttributeValueCompletions(u,p,y,b);var A=p.getLine(y.row).substr(0,y.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(u,p,y,b):[]},this.getTagCompletions=function(u,p,y,b){return l.map(function(R){return{value:R,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,p,y,b){var R=v(p,y);if(!R)return[];var A=c;return R in a&&(A=A.concat(Object.keys(a[R]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,p,y,b){var R=v(p,y),A=w(p,y);if(!R)return[];var k=[];return R in a&&A in a[R]&&typeof a[R][A]=="object"&&(k=Object.keys(a[R][A])),k.map(function(x){return{caption:x,snippet:x,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,p,y,b){var R=["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 R.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 f=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,g=e("./css").Mode,s=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,a=e("./folding/html").FoldMode,l=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"],p=["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 c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":g}),this.foldingRules=new a(this.voidElements,v.arrayToMap(p))};f.inherits(y,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=v.arrayToMap(u),this.getNextLineIndent=function(b,R,A){return this.$getIndent(R)},this.checkOutdent=function(b,R,A){return!1},this.getCompletions=function(b,R,A,k){return this.$completer.getCompletions(b,R,A,k)},this.createWorker=function(b){if(this.constructor==y){var R=new o(["ace"],"ace/mode/html_worker","Worker");return R.attachToDocument(b.getDocument()),this.fragmentContext&&R.call("setOptions",[{context:this.fragmentContext}]),R.on("error",function(A){b.setAnnotations(A.data)}),R.on("terminate",function(){b.clearAnnotations()}),R}},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 f=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",g=function(){var s=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+a+")|(?:"+l+"\\.))",u="(?:(?:"+o+"|"+l+"))",p="(?:"+u+"|"+o+")",y="(?:&"+l+")",b="[a-zA-Z_][a-zA-Z0-9_]*",R="(?:"+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,M,E){var I=x[2]=="-"?"indentedHeredoc":"heredoc",T=x.split(this.splitRegex);return E.push(I,T[4]),[{type:"constant",value:T[1]},{type:"text",value:T[2]},{type:"string",value:T[3]},{type:"support.class",value:T[4]},{type:"string",value:T[5]}]},rules:{heredoc:[{onMatch:function(x,M,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,M,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,M){return M[0]==="heredoc"||M[0]==="indentedHeredoc"?M[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:R},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:y},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:p},{token:"constant.numeric",regex:c+"\\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()};f.inherits(g,v),i.ShHighlightRules=g}),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 f=e("../lib/oop"),v=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,g=e("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=w,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};f.inherits(s,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),p=this.getTokenizer().getLineTokens(l,a),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(a=="start"){var b=l.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,l,o){if(o!==`\r
|
977
|
+
`&&o!=="\r"&&o!==`
|
978
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&c[p.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),p=l.getTabString();u.slice(-p.length)==p&&l.remove(new h(o,u.length-p.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 f=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,g=e("./behaviour/xml").XmlBehaviour,s=e("./folding/xml").FoldMode,c=e("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=h,this.$behaviour=new g,this.foldingRules=new s};f.inherits(a,w),(function(){this.voidElements=v.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.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 f=e("../lib/oop"),v=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,g=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 g,this.$behaviour=new v({braces:!0})};f.inherits(s,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(c,a,l){if(c=="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.exports=e})}()}(Ip)),Ip.exports}nb();var Dp={exports:{}},Np;function ib(){return Np||(Np=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 f=e("../lib/dom");f.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n.exports=e})}()}(Dp)),Dp.exports}ib();var Fp={exports:{}},Pp;function rb(){return Pp||(Pp=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 f(x){var M=new Date().toLocaleString("en-us",x);return M.length==1?"0"+M:M}var v=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,g=e("./lib/lang"),s=e("./range").Range,c=e("./range_list").RangeList,a=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(x){return x.session.getTextRange(x.session.getWordRange())},SELECTION:function(x,M,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 M=x.session.$mode||{};return M.blockComment&&M.blockComment.start||""},BLOCK_COMMENT_END:function(x){var M=x.session.$mode||{};return M.blockComment&&M.blockComment.end||""},LINE_COMMENT:function(x){var M=x.session.$mode||{};return M.lineCommentStart||""},CURRENT_YEAR:f.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:f.bind(null,{year:"2-digit"}),CURRENT_MONTH:f.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:f.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:f.bind(null,{month:"short"}),CURRENT_DATE:f.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:f.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:f.bind(null,{weekday:"short"}),CURRENT_HOUR:f.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:f.bind(null,{minute:"2-digit"}),CURRENT_SECOND:f.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var p=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 M(T){return T=T.substr(1),/^\d+$/.test(T)?[{tabstopId:parseInt(T,10)}]:[{text:T}]}function E(T){return"(?:[^\\\\"+T+"]|\\\\.)"}var I={regex:"/("+E("/")+"+)/",onMatch:function(T,N,$){var _=$[0];return _.fmtString=!0,_.guard=T.slice(1,-1),_.flag="",""},next:"formatString"};return x.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(T,N,$){var _=T[1];return(_=="}"&&$.length||"`$\\".indexOf(_)!=-1)&&(T=_),[T]}},{regex:/}/,onMatch:function(T,N,$){return[$.length?$.shift():T]}},{regex:/\$(?:\d+|\w+)/,onMatch:M},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(T,N,$){var _=M(T.substr(1));return $.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(T,N,$){var _=T.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(T,N,$){return $.length&&$[0].expectElse?($[0].expectElse=!1,$[0].ifEnd={elseEnd:$[0]},[$[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(T,N,$){var _=T[1];return _=="}"&&$.length||"`$\\".indexOf(_)!=-1?T=_:_=="n"?T=`
|
1110
|
+
`:_=="t"?T=" ":"ulULE".indexOf(_)!=-1&&(T={changeCase:_,local:_>"a"}),[T]}},{regex:"/\\w*}",onMatch:function(T,N,$){var _=$.shift();return _&&(_.flag=T.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(T,N,$){return[{text:T.slice(1)}]}},{regex:/\${\w+/,onMatch:function(T,N,$){var _={text:T.slice(2)};return $.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(T,N,$){var _=$.shift();return this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(T,N,$){var _=$[0];return _.formatFunction=T.slice(2,-1),[$.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(T,N,$){T[1]=="+"&&($[0].ifEnd=$[0]),T[1]=="?"&&($[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),x.$tokenizer},x.prototype.tokenizeTmSnippet=function(M,E){return this.getTokenizer().getLineTokens(M,E).tokens.map(function(I){return I.value||I})},x.prototype.getVariableValue=function(M,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 T=this.variables[E];return typeof T=="function"&&(T=this.variables[E](M,E,I)),T??""},x.prototype.tmStrFormat=function(M,E,I){if(!E.fmt)return M;var T=E.flag||"",N=E.guard;N=new RegExp(N,T.replace(/[^gim]/g,""));var $=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,_=this,S=M.replace(N,function(){var L=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables($,I),F="E",H=0;H<O.length;H++){var W=O[H];if(typeof W=="object")if(O[H]="",W.changeCase&&W.local){var V=O[H+1];V&&typeof V=="string"&&(W.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?O[H]=W.toUpperCase():F=="L"&&(O[H]=W.toLowerCase())}return _.variables.__=L,O.join("")});return S},x.prototype.tmFormatFunction=function(M,E,I){return E.formatFunction=="upcase"?M.toUpperCase():E.formatFunction=="downcase"?M.toLowerCase():M},x.prototype.resolveVariables=function(M,E){function I(F){var H=M.indexOf(F,_+1);H!=-1&&(_=H)}for(var T=[],N="",$=!0,_=0;_<M.length;_++){var S=M[_];if(typeof S=="string"){T.push(S),S==`
|
1111
|
+
`?($=!0,N=""):$&&(N=/^\t*/.exec(S)[0],$=/\S/.test(S));continue}if(S){if($=!1,S.fmtString){var L=M.indexOf(S,_+1);L==-1&&(L=M.length),S.fmt=M.slice(_+1,L),_=L}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?(T.push(O),I(S)):!O&&S.ifEnd&&I(S.ifEnd)}else S.elseEnd?I(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&T.push(S)}}return T},x.prototype.getDisplayTextForSnippet=function(M,E){var I=y.call(this,M,E);return I.text},x.prototype.insertSnippetForSelection=function(M,E,I){I===void 0&&(I={});var T=y.call(this,M,E,I),N=M.getSelectionRange(),$=M.session.replace(N,T.text),_=new b(M),S=M.inVirtualSelectionMode&&M.selection.index;_.addTabstops(T.tabstops,N.start,$,S)},x.prototype.insertSnippet=function(M,E,I){I===void 0&&(I={});var T=this;if(M.inVirtualSelectionMode)return T.insertSnippetForSelection(M,E,I);M.forEachSelection(function(){T.insertSnippetForSelection(M,E,I)},null,{keepOrder:!0}),M.tabstopManager&&M.tabstopManager.tabNext()},x.prototype.$getScope=function(M){var E=M.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!M.session.$mode.inlinePhp&&(E="html");var I=M.getCursorPosition(),T=M.session.getState(I.row);typeof T=="object"&&(T=T[0]),T.substring&&(T.substring(0,3)=="js-"?E="javascript":T.substring(0,4)=="css-"?E="css":T.substring(0,4)=="php-"&&(E="php"))}return E},x.prototype.getActiveScopes=function(M){var E=this.$getScope(M),I=[E],T=this.snippetMap;return T[E]&&T[E].includeScopes&&I.push.apply(I,T[E].includeScopes),I.push("_"),I},x.prototype.expandWithTab=function(M,E){var I=this,T=M.forEachSelection(function(){return I.expandSnippetForSelection(M,E)},null,{keepOrder:!0});return T&&M.tabstopManager&&M.tabstopManager.tabNext(),T},x.prototype.expandSnippetForSelection=function(M,E){var I=M.getCursorPosition(),T=M.session.getLine(I.row),N=T.substring(0,I.column),$=T.substr(I.column),_=this.snippetMap,S;return this.getActiveScopes(M).some(function(L){var O=_[L];return O&&(S=this.findMatchingSnippet(O,N,$)),!!S},this),S?(E&&E.dryRun||(M.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(M,S.content),this.variables.M__=this.variables.T__=null),!0):!1},x.prototype.findMatchingSnippet=function(M,E,I){for(var T=M.length;T--;){var N=M[T];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(M,E){function I(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function T(L,O,F){return L=I(L),O=I(O),L=O+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function N(L){L.scope||(L.scope=E||"_"),E=L.scope,$[E]||($[E]=[],_[E]={});var O=_[E];if(L.name){var F=O[L.name];F&&S.unregister(F),O[L.name]=L}$[E].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
|
1112
|
+
`):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=g.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=T(L.trigger,L.guard),L.triggerRe=new RegExp(L.trigger),L.endRe=T(L.endTrigger,L.endGuard),L.endTriggerRe=new RegExp(L.endTrigger))}var $=this.snippetMap,_=this.snippetNameMap,S=this;M||(M=[]),Array.isArray(M)?M.forEach(N):Object.keys(M).forEach(function(L){N(M[L])}),this._signal("registerSnippets",{scope:E})},x.prototype.unregister=function(M,E){function I($){var _=N[$.scope||E];if(_&&_[$.name]){delete _[$.name];var S=T[$.scope||E],L=S&&S.indexOf($);L>=0&&S.splice(L,1)}}var T=this.snippetMap,N=this.snippetNameMap;M.content?I(M):Array.isArray(M)&&M.forEach(I)},x.prototype.parseSnippetFile=function(M){M=M.replace(/\r/g,"");for(var E=[],I={},T=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=T.exec(M);){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(M,E){var I=this.snippetNameMap,T;return this.getActiveScopes(E).some(function(N){var $=I[N];return $&&(T=$[M]),!!T},this),T},x}();w.implement(p.prototype,h);var y=function(x,M,E){function I(X){for(var ae=[],me=0;me<X.length;me++){var we=X[me];if(typeof we=="object"){if(O[we.tabstopId])continue;var fe=X.lastIndexOf(we,me-1);we=ae[fe]||{tabstopId:we.tabstopId}}ae[me]=we}return ae}E===void 0&&(E={});var T=x.getCursorPosition(),N=x.session.getLine(T.row),$=x.session.getTabString(),_=N.match(/^\s*/)[0];T.column<_.length&&(_=_.slice(0,T.column)),M=M.replace(/\r/g,"");var S=this.tokenizeTmSnippet(M);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 L=[];S.forEach(function(X,ae){if(typeof X=="object"){var me=X.tabstopId,we=L[me];if(we||(we=L[me]=[],we.index=me,we.value="",we.parents={}),we.indexOf(X)===-1){X.choices&&!we.choices&&(we.choices=X.choices),we.push(X);var fe=S.indexOf(X,ae+1);if(fe!==-1){var $e=S.slice(ae+1,fe),at=$e.some(function(Ht){return typeof Ht=="object"});at&&!we.value?we.value=$e:$e.length&&(!we.value||typeof we.value!="string")&&(we.value=$e.join(""))}}}}),L.forEach(function(X){X.length=0});for(var O={},F=0;F<S.length;F++){var H=S[F];if(typeof H=="object"){var W=H.tabstopId,V=L[W],q=S.indexOf(H,F+1);if(O[W]){O[W]===H&&(delete O[W],Object.keys(O).forEach(function(X){V.parents[X]=!0}));continue}O[W]=H;var J=V.value;typeof J!="string"?J=I(J):H.fmt&&(J=this.tmStrFormat(J,H,x)),S.splice.apply(S,[F+1,Math.max(0,q-F)].concat(J,H)),V.indexOf(H)===-1&&V.push(H)}}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:L,tokens:S}},b=function(){function x(M){if(this.index=0,this.ranges=[],this.tabstops=[],M.tabstopManager)return M.tabstopManager;M.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(M)}return x.prototype.attach=function(M){this.$openTabstops=null,this.selectedTabstop=null,this.editor=M,this.session=M.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(M){for(var E=M.action[0]=="r",I=this.selectedTabstop||{},T=I.parents||{},N=this.tabstops.slice(),$=0;$<N.length;$++){var _=N[$],S=_==I||T[_.index];if(_.rangeList.$bias=S?0:1,M.action=="remove"&&_!==I){var L=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(M.start,L);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(M.end,L);F=F<0?-F-1:F-1;for(var H=_.rangeList.ranges.slice(O,F),W=0;W<H.length;W++)this.removeRange(H[W])}_.rangeList.$onChange(M)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},x.prototype.updateLinkedFields=function(){var M=this.selectedTabstop;if(!(!M||!M.hasLinkedRanges||!M.firstNonLinked)){this.$inChange=!0;for(var E=this.session,I=E.getTextRange(M.firstNonLinked),T=0;T<M.length;T++){var N=M[T];if(N.linked){var $=N.original,_=i.snippetManager.tmStrFormat(I,$,this.editor);E.replace(N,_)}}this.$inChange=!1}},x.prototype.onAfterExec=function(M){M.command&&!M.command.readOnly&&this.updateLinkedFields()},x.prototype.onChangeSelection=function(){if(this.editor){for(var M=this.editor.selection.lead,E=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),T=0;T<this.ranges.length;T++)if(!this.ranges[T].linked){var N=this.ranges[T].contains(M.row,M.column),$=I||this.ranges[T].contains(E.row,E.column);if(N&&$)return}this.detach()}},x.prototype.onChangeSession=function(){this.detach()},x.prototype.tabNext=function(M){var E=this.tabstops.length,I=this.index+(M||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(M){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=M,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 T=this.editor.multiSelect;T.toSingleRange(I);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||T.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(M,E,I){var T=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!M[0]){var N=s.fromPoints(I,I);A(N.start,E),A(N.end,E),M[0]=[N],M[0].index=0}var $=this.index,_=[$+1,0],S=this.ranges,L=this.snippetId=(this.snippetId||0)+1;M.forEach(function(O,F){var H=this.$openTabstops[F]||O;H.snippetId=L;for(var W=0;W<O.length;W++){var V=O[W],q=s.fromPoints(V.start,V.end||V.start);R(q.start,E),R(q.end,E),q.original=V,q.tabstop=H,S.push(q),H!=O?H.unshift(q):H[W]=q,V.fmtString||H.firstNonLinked&&T?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===O&&(_.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new c,H.rangeList.$bias=0,H.rangeList.addList(H)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},x.prototype.addTabstopMarkers=function(M){var E=this.session;M.forEach(function(I){I.markerId||(I.markerId=E.addMarker(I,"ace_snippet-marker","text"))})},x.prototype.removeTabstopMarkers=function(M){var E=this.session;M.forEach(function(I){E.removeMarker(I.markerId),I.markerId=null})},x.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var M=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&M--,this.tabstops.forEach(function(E){E.snippetId===M?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},x.prototype.removeRange=function(M){var E=M.tabstop.indexOf(M);E!=-1&&M.tabstop.splice(E,1),E=this.ranges.indexOf(M),E!=-1&&this.ranges.splice(E,1),E=M.tabstop.rangeList.ranges.indexOf(M),E!=-1&&M.tabstop.splice(E,1),this.session.removeMarker(M.markerId),M.tabstop.length||(E=this.tabstops.indexOf(M.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 R=function(x,M){x.row==0&&(x.column+=M.column),x.row+=M.row},A=function(x,M){x.row==M.row&&(x.column-=M.column),x.row-=M.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 p;var k=e("./editor").Editor;(function(){this.insertSnippet=function(x,M){return i.snippetManager.insertSnippet(this,x,M)},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 f=e("../virtual_renderer").VirtualRenderer,v=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),g=e("../lib/lang"),s=e("../lib/dom"),c=e("../config").nls,a=e("./../lib/useragent"),l=function(R){return"suggest-aria-id:".concat(R)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",p=a.isSafari?"aria-current":"aria-selected",y=function(R){var A=new f(R);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 R(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",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),x.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),x.renderer.textarea.setAttribute("aria-hidden","true"),x.setOption("displayIndentGuides",!1),x.setOption("dragDelay",150);var M=function(){};x.focus=M,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=M,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 L=S.getDocumentPosition();x.selection.moveToPosition(L),T.start.row=T.end.row=L.row,S.stop()});var E,I=new w(-1,0,-1,1/0),T=new w(-1,0,-1,1/0);T.id=x.session.addMarker(T,"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 L=E.getDocumentPosition().row;I.start.row!=L&&(I.id||x.setRow(L),$(L))}}),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(),L=x.renderer.$textLayer,O=L.element.childNodes[S-L.config.firstRow],F=document.activeElement;if(O!==x.selectedNode&&x.selectedNode&&(s.removeCssClass(x.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),x.selectedNode.removeAttribute(p),x.selectedNode.removeAttribute("id")),x.selectedNode=O,O){s.addCssClass(O,"ace_selected");var H=l(S);O.id=H,L.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),O.setAttribute("role",u),O.setAttribute("aria-roledescription",c("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(p,"true")}});var N=function(){$(-1)},$=function(S,L){S!==I.start.row&&(I.start.row=I.end.row=S,L||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 L=x.data[S];return typeof L=="string"?L:L&&L.value||""};var _=x.session.bgTokenizer;return _.$tokenizeRow=function(S){function L(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 H=O.caption||O.value||O.name,W=H.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=W.indexOf(Q,q);if(ie==-1)continue;L(H.slice(q,ie),""),q=ie+Q.length,L(H.slice(ie,q),"completion-highlight")}return L(H.slice(q,H.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=M,_.start=M,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,L){x.filterText=L||"",x.setValue(g.stringRepeat(`
|
1122
|
+
`,S.length),-1),x.data=S||[],x.setRow(0)},x.getData=function(S){return x.data[S]},x.getRow=function(){return T.start.row},x.setRow=function(S){S=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,S)),T.start.row!=S&&(x.selection.clearSelection(),T.start.row=T.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,L,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 H=this.container,W=window.innerHeight,V=window.innerWidth,q=this.renderer,J=q.$maxLines*L*1.4,G={top:0,bottom:0,left:0},Q=W-S.top-3*this.$borderSize-L,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+L+this.$borderSize,G.bottom=G.top+J);var X=G.top>=0&&G.bottom<=W;if(!F&&!X)return!1;X?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=ie:q.$maxPixelHeight=Q,O==="top"?(H.style.top="",H.style.bottom=W-G.bottom+"px",x.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",x.isTopdown=!0),H.style.display="";var ae=S.left;return ae+H.offsetWidth>V&&(ae=V-H.offsetWidth),H.style.left=ae+"px",H.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),E=null),x.anchorPos=S,x.anchor=O,!0},x.show=function(S,L,O){this.tryShow(S,L,O?"bottom":void 0,!0)},x.goTo=function(S){var L=this.getRow(),O=this.session.getLength()-1;switch(S){case"up":L=L<=0?O:L-1;break;case"down":L=L>=O?-1:L+1;break;case"start":L=0;break;case"end":L=O}this.setRow(L)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return R}();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=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,i,m){var f=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 g=this.popup.getRow(),s=this.popup.renderer.$textLayer,c=s.element.childNodes[g-s.config.firstRow];if(c){for(var a="doc-tooltip ",l=0;l<this._lines.length;l++)a+="ace-inline-screenreader-line-".concat(l," ");c.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 g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);g.appendChild(s),w.appendChild(g)}return w},v}();i.AceInlineScreenReader=f}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,i,m){var f=e("../snippets").snippetManager,v=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(g,s,c){if(c=c||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new v(g));var a=s.snippet?f.getDisplayTextForSnippet(g,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(c)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(c.length),a===""?g.removeGhostText():g.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 g=0,s=v.length;s===0&&h();for(var c=0;c<s;c++)w(v[c],function(a,l){g++,g===s&&h(a,l)})};var f=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(v,w,h){h=h||f;for(var g=[],s=w-1;s>=0&&h.test(v[s]);s--)g.push(v[s]);return g.reverse().join("")},i.retrieveFollowingIdentifier=function(v,w,h){h=h||f;for(var g=[],s=w;s<v.length&&h.test(v[s]);s++)g.push(v[s]);return g},i.getCompletionPrefix=function(v){var w=v.getCursorPosition(),h=v.session.getLine(w.row),g;return v.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!g&&c&&(g=this.retrievePrecedingIdentifier(h,w.column,c))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(h,w.column)},i.triggerAutocomplete=function(v,h){var h=h??v.session.getPrecedingCharacter();return v.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.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 f=e("./keyboard/hash_handler").HashHandler,v=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,g=e("./autocomplete/util"),s=e("./lib/lang"),c=e("./lib/dom"),a=e("./snippets").snippetManager,l=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,p=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 f,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 R(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:l.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,M=this.base.column,E=this.editor.getCursorPosition().column,I=this.editor.session.getLine(x).slice(M,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 M=this.popup.getData(x);M&&(!k||M.hideInlinePreview)&&this.$seen(M)}},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,M=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 T={top:E.top,left:E.left};x.$ghostText&&x.$ghostTextWidget&&this.base.row===x.$ghostText.position.row&&(T.top+=x.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-M,$=N<T.top?{top:N,left:T.left}:T;this.popup.tryShow($,M,"bottom")||this.popup.tryShow(E,M,"top")||this.popup.show(E,M)},A.prototype.openPopup=function(k,x,M){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 T;this.stickySelection&&(T=this.popup.data.indexOf(I)),(!T||T===-1)&&(T=0),this.popup.setRow(this.autoSelect?T:-1),T===E&&I!==this.completions.filtered[T]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(T===E&&N){var $=this.popup.getData(this.popup.getRow());this.$updateGhostText($)}M||(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,M=this.editor.textInput.getElement(),E=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;x!=M&&x.parentNode!=I&&!E&&x!=this.tooltipNode&&k.relatedTarget!=M&&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 M=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,k,M.filterText,x);return this.completions==M&&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 R(x.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var M=this.editor.getSession(),E=this.editor.getCursorPosition(),I=g.getCompletionPrefix(this.editor);this.base=M.doc.createAnchor(E.row,E.column-I.length),this.base.$insertRight=!0;var T={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:E}).provideCompletions(this.editor,T,(function(N,$,_){var S=$.filtered,L=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!S.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(L)),O){var F=[{caption:O,value:""}];this.completions=new R(F),this.openPopup(this.editor,L,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==L&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!_&&this.showLoadingState?new R(A.completionsForLoading.concat(S),$.filterText):$,this.openPopup(this.editor,L,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,M=x&&(x[k.getHoveredRow()]||x[k.getRow()]),E=null;if(!M||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,T=0;T<I;T++){var N=this.editor.completers[T];if(N.getDocTooltip&&M.completerId===N.id){E=N.getDocTooltip(M);break}}if(!E&&typeof M!="string"&&(E=M),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=c.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 M=this.tooltipNode;k.docHTML?M.innerHTML=k.docHTML:k.docText&&(M.textContent=k.docText),M.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,I=E.container.getBoundingClientRect();M.style.top=E.container.style.top,M.style.bottom=E.container.style.bottom,M.style.display="block",window.innerWidth-I.right<320?I.left<320?E.isTopdown?(M.style.top=I.bottom+"px",M.style.left=I.left+"px",M.style.right="",M.style.bottom=""):(M.style.top=E.container.offsetTop-M.offsetHeight+"px",M.style.left=I.left+"px",M.style.right="",M.style.bottom=""):(M.style.right=window.innerWidth-I.left+"px",M.style.left=""):(M.style.left=I.right+1+"px",M.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",p),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),l.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",p))),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=g.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,M){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[x],M)},A.prototype.insertMatch=function(k,x,M){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 T;k.selection.getAllRanges?T=k.selection.getAllRanges():T=[k.getSelectionRange()];for(var N=0,$;$=T[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 M=x.value||x;k.execCommand("insertstring",M)},A.prototype.gatherCompletions=function(k,x){var M=k.getSession(),E=k.getCursorPosition(),I=g.getCompletionPrefix(k),T=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function($,_){$.getCompletions(k,M,E,I,function(S,L){$.hideInlinePreview&&(L=L.map(function(O){return Object.assign(O,{hideInlinePreview:$.hideInlinePreview})})),!S&&L&&(T=T.concat(L)),x(null,{prefix:g.getCompletionPrefix(k),matches:T,finished:--N===0})})}),!0},A.prototype.provideCompletions=function(k,x,M){var E=(function($){var _=$.prefix,S=$.matches;this.completions=new R(S),x.exactMatch&&(this.completions.exactMatch=!0),x.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),($.finished||this.completions.filtered.length)&&M(null,this.completions,$.finished)}).bind(this),I=!0,T=null;if(this.gatherCompletions(k,(function($,_){if(this.active){$&&(M($,[],!0),this.detach());var S=_.prefix;if(S.indexOf(_.prefix)===0){if(I){T=_;return}E(_)}}}).bind(this)),I=!1,T){var N=T;T=null,E(N)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),R=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 M=null;x=x.filter(function(E){var I=E.snippet||E.caption||E.value;return I===M?!1:(M=I,!0)}),this.filtered=x},A.prototype.filterCompletions=function(k,x){var M=[],E=x.toUpperCase(),I=x.toLowerCase();e:for(var T=0,N;N=k[T];T++){var $=!this.ignoreCaption&&N.caption||N.value||N.snippet;if($){var _=-1,S=0,L=0,O,F;if(this.exactMatch){if(x!==$.substr(0,x.length))continue e}else{var H=$.toLowerCase().indexOf(I);if(H>-1)L=H;else for(var W=0;W<x.length;W++){var V=$.indexOf(I[W],_+1),q=$.indexOf(E[W],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(L+=10),L+=F,S|=1<<W),_=O}}N.matchMask=S,N.exactMatch=L?0:1,N.$score=(N.score||0)-L,M.push(N)}}return M},A}();i.Autocomplete=y,i.CompletionProvider=b,i.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,i,m){function f(g,s){var c=g.getTextRange(w.fromPoints({row:0,column:0},s));return c.split(h).length-1}function v(g,s){var c=f(g,s),a=g.getValue().split(h),l=Object.create(null),o=a[c];return a.forEach(function(u,p){if(!(!u||u===o)){var y=Math.abs(c-p),b=a.length-y;l[u]?l[u]=Math.max(b,l[u]):l[u]=b}}),l}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(g,s,c,a,l){var o=v(s,c),u=Object.keys(o);l(null,u.map(function(p){return{caption:p,value:p,score:o[p],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 f=e("../snippets").snippetManager,v=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),g=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(E,I,T,N,$){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,T,N,$);var _=E.session.getState(T.row),S=I.$mode.getCompletions(_,I,T,N);S=S.map(function(L){return L.completerId=c.id,L}),$(null,S)},id:"keywordCompleter"},a=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(T,N,$,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(T,N){return I[N]})},l={getCompletions:function(E,I,T,N,$){var _=[],S=I.getTokenAt(T.row,T.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=f.getActiveScopes(E);var L=f.snippetMap,O=[];_.forEach(function(F){for(var H=L[F]||[],W=H.length;W--;){var V=H[W],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:l.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=[l,s,c];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=c,i.snippetCompleter=l;var u={name:"expandSnippet",exec:function(E){return f.expandWithTab(E)},bindKey:"Tab"},p=function(E,I){y(I.session.$mode)},y=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(f.files||(f.files={}),b(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(y))},b=function(E,I){!I||!E||f.files[E]||(f.files[E]={},w.loadModule(I,function(T){T&&(f.files[E]=T,!T.snippets&&T.snippetText&&(T.snippets=f.parseSnippetFile(T.snippetText)),f.register(T.snippets||[],T.scope),T.includeScopes&&(f.snippetMap[T.scope].includeScopes=T.includeScopes,T.includeScopes.forEach(function(N){y("ace/mode/"+N)})))}))},R=function(E){var I=E.editor,T=I.completer&&I.completer.activated;if(E.command.name==="backspace")T&&!g.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!T){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,T=g.getCompletionPrefix(I),N=E.args,$=g.triggerAutocomplete(I,N);if(T&&T.length>=I.$liveAutocompletionThreshold||$){var _=v.for(I);_.autoShown=!0,_.showPopup(I)}},M=e("../editor").Editor;e("../config").defineOptions(M.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",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",p),p(null,this)):(this.commands.removeCommand(u),this.off("changeMode",p))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n.exports=e})}()}(Fp)),Fp.exports}rb();var Hp={exports:{}},zp;function ob(){return zp||(zp=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 f=e("../lib/dom"),v=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=e("../config").nls,a=999;f.importCssString(h,"ace_searchbox",!1);var l=function(){function p(y,b,R){this.activeInput;var A=f.createElement("div");f.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("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"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("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:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("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),f.importCssString(h,"ace_searchbox",y.container)}return p.prototype.setEditor=function(y){y.searchBox=this,y.renderer.scroller.appendChild(this.element),this.editor=y},p.prototype.setSession=function(y){this.searchRange=null,this.$syncOptions(!0)},p.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")},p.prototype.$init=function(){var y=this.element;this.$initElements(y);var b=this;w.addListener(y,"mousedown",function(R){setTimeout(function(){b.activeInput.focus()},0),w.stopPropagation(R)}),w.addListener(y,"click",function(R){var A=R.target||R.srcElement,k=A.getAttribute("action");k&&b[k]?b[k]():b.$searchBarKb.commands[k]&&b.$searchBarKb.commands[k].exec(b),w.stopPropagation(R)}),w.addCommandKeyListener(y,function(R,A,k){var x=s.keyCodeToString(k),M=b.$searchBarKb.findKeyCommand(A,x);M&&M.exec&&(M.exec(b),w.stopEvent(R))}),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()})},p.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)},p.prototype.$syncOptions=function(y){f.setCssClass(this.replaceOption,"checked",this.searchRange),f.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",f.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),f.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),f.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)},p.prototype.highlight=function(y){this.editor.session.highlight(y||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},p.prototype.find=function(y,b,R){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:R,range:this.searchRange}),k=!A&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},p.prototype.updateCounter=function(){var y=this.editor,b=y.$search.$options.re,R=b.unicode,A=0,k=0;if(b){var x=this.searchRange?y.session.getTextRange(this.searchRange):y.getValue(),M=y.session.doc.positionToIndex(y.selection.anchor);this.searchRange&&(M-=y.session.doc.positionToIndex(this.searchRange.start));for(var E=b.lastIndex=0,I;(I=b.exec(x))&&(A++,E=I.index,E<=M&&k++,!(A>a||!I[0]&&(b.lastIndex=E+=v.skipEmptyMatch(x,E,R),E>=x.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[k,A>a?a+"+":A])},p.prototype.findNext=function(){this.find(!0,!1)},p.prototype.findPrev=function(){this.find(!0,!0)},p.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;f.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},p.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},p.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},p.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},p.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()},p.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)},p.prototype.isFocused=function(){var y=document.activeElement;return y==this.searchInput||y==this.replaceInput},p}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(p){var y=p.isReplace=!p.isReplace;p.replaceBox.style.display=y?"":"none",p.replaceOption.checked=!1,p.$syncOptions(),p.searchInput.focus()},"Ctrl-H|Command-Option-F":function(p){p.editor.getReadOnly()||(p.replaceOption.checked=!0,p.$syncOptions(),p.replaceInput.focus())},"Ctrl-G|Command-G":function(p){p.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(p){p.findPrev()},esc:function(p){setTimeout(function(){p.hide()})},Return:function(p){p.activeInput==p.replaceInput&&p.replace(),p.findNext()},"Shift-Return":function(p){p.activeInput==p.replaceInput&&p.replace(),p.findPrev()},"Alt-Return":function(p){p.activeInput==p.replaceInput&&p.replaceAll(),p.findAll()},Tab:function(p){(p.activeInput==p.replaceInput?p.searchInput:p.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(p){p.regExpOption.checked=!p.regExpOption.checked,p.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(p){p.caseSensitiveOption.checked=!p.caseSensitiveOption.checked,p.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(p){p.wholeWordOption.checked=!p.wholeWordOption.checked,p.$syncOptions()}},{name:"toggleReplace",exec:function(p){p.replaceOption.checked=!p.replaceOption.checked,p.$syncOptions()}},{name:"searchInSelection",exec:function(p){p.searchOption.checked=!p.searchRange,p.setSearchRange(p.searchOption.checked&&p.editor.getSelectionRange()),p.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(p){p.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,i.SearchBox=l,i.Search=function(p,y){var b=p.searchBox||new l(p);b.show(p.session.getTextRange(),y)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n.exports=e})}()}(Hp)),Hp.exports}ob();var sb=Object.defineProperty,ab=(n,t,e)=>t in n?sb(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,io=(n,t,e)=>ab(n,typeof t!="symbol"?t+"":t,e);function Bp(n,t){return function(){return n.apply(t,arguments)}}const{toString:lb}=Object.prototype,{getPrototypeOf:Pc}=Object,Oa=(n=>t=>{const e=lb.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Li=n=>(n=n.toLowerCase(),t=>Oa(t)===n),Da=n=>t=>typeof t===n,{isArray:Po}=Array,Ss=Da("undefined");function cb(n){return n!==null&&!Ss(n)&&n.constructor!==null&&!Ss(n.constructor)&&ci(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const jp=Li("ArrayBuffer");function ub(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&jp(n.buffer),t}const hb=Da("string"),ci=Da("function"),Wp=Da("number"),Na=n=>n!==null&&typeof n=="object",db=n=>n===!0||n===!1,Fa=n=>{if(Oa(n)!=="object")return!1;const t=Pc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},pb=Li("Date"),fb=Li("File"),gb=Li("Blob"),mb=Li("FileList"),vb=n=>Na(n)&&ci(n.pipe),yb=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ci(n.append)&&((t=Oa(n))==="formdata"||t==="object"&&ci(n.toString)&&n.toString()==="[object FormData]"))},wb=Li("URLSearchParams"),[bb,xb,_b,kb]=["ReadableStream","Request","Response","Headers"].map(Li),$b=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Po(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const f=e?Object.getOwnPropertyNames(n):Object.keys(n),v=f.length;let w;for(i=0;i<v;i++)w=f[i],t.call(null,n[w],w,n)}}function Up(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 ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vp=n=>!Ss(n)&&n!==ro;function Hc(){const{caseless:n}=Vp(this)&&this||{},t={},e=(i,m)=>{const f=n&&Up(t,m)||m;Fa(t[f])&&Fa(i)?t[f]=Hc(t[f],i):Fa(i)?t[f]=Hc({},i):Po(i)?t[f]=i.slice():t[f]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Cs(arguments[i],e);return t}const Sb=(n,t,e,{allOwnKeys:i}={})=>(Cs(t,(m,f)=>{e&&ci(m)?n[f]=Bp(m,e):n[f]=m},{allOwnKeys:i}),n),Cb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Ab=(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)},Mb=(n,t,e,i)=>{let m,f,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),f=m.length;f-- >0;)v=m[f],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&Pc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Tb=(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},Eb=n=>{if(!n)return null;if(Po(n))return n;let t=n.length;if(!Wp(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Rb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Pc(Uint8Array)),Lb=(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])}},Ib=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Ob=Li("HTMLFormElement"),Db=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),qp=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Nb=Li("RegExp"),Gp=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Cs(e,(m,f)=>{let v;(v=t(m,f,n))!==!1&&(i[f]=v||m)}),Object.defineProperties(n,i)},Fb=n=>{Gp(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+"'")})}})},Pb=(n,t)=>{const e={},i=m=>{m.forEach(f=>{e[f]=!0})};return Po(n)?i(n):i(String(n).split(t)),e},Hb=()=>{},zb=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,zc="abcdefghijklmnopqrstuvwxyz",Yp="0123456789",Kp={DIGIT:Yp,ALPHA:zc,ALPHA_DIGIT:zc+zc.toUpperCase()+Yp},Bb=(n=16,t=Kp.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function jb(n){return!!(n&&ci(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Wb=n=>{const t=new Array(10),e=(i,m)=>{if(Na(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const f=Po(i)?[]:{};return Cs(i,(v,w)=>{const h=e(v,m+1);!Ss(h)&&(f[w]=h)}),t[m]=void 0,f}}return i};return e(n,0)},Ub=Li("AsyncFunction"),Vb=n=>n&&(Na(n)||ci(n))&&ci(n.then)&&ci(n.catch),Zp=((n,t)=>n?setImmediate:t?((e,i)=>(ro.addEventListener("message",({source:m,data:f})=>{m===ro&&f===e&&i.length&&i.shift()()},!1),m=>{i.push(m),ro.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ci(ro.postMessage)),qb=typeof queueMicrotask<"u"?queueMicrotask.bind(ro):typeof process<"u"&&process.nextTick||Zp,ue={isArray:Po,isArrayBuffer:jp,isBuffer:cb,isFormData:yb,isArrayBufferView:ub,isString:hb,isNumber:Wp,isBoolean:db,isObject:Na,isPlainObject:Fa,isReadableStream:bb,isRequest:xb,isResponse:_b,isHeaders:kb,isUndefined:Ss,isDate:pb,isFile:fb,isBlob:gb,isRegExp:Nb,isFunction:ci,isStream:vb,isURLSearchParams:wb,isTypedArray:Rb,isFileList:mb,forEach:Cs,merge:Hc,extend:Sb,trim:$b,stripBOM:Cb,inherits:Ab,toFlatObject:Mb,kindOf:Oa,kindOfTest:Li,endsWith:Tb,toArray:Eb,forEachEntry:Lb,matchAll:Ib,isHTMLForm:Ob,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Gp,freezeMethods:Fb,toObjectSet:Pb,toCamelCase:Db,noop:Hb,toFiniteNumber:zb,findKey:Up,global:ro,isContextDefined:Vp,ALPHABET:Kp,generateString:Bb,isSpecCompliantForm:jb,toJSONObject:Wb,isAsyncFn:Ub,isThenable:Vb,setImmediate:Zp,asap:qb};function nt(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(nt,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 Qp=nt.prototype,Xp={};["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=>{Xp[n]={value:n}}),Object.defineProperties(nt,Xp),Object.defineProperty(Qp,"isAxiosError",{value:!0}),nt.from=(n,t,e,i,m,f)=>{const v=Object.create(Qp);return ue.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),nt.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,f&&Object.assign(v,f),v};const Gb=null;function Bc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Jp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function ef(n,t,e){return n?n.concat(t).map(function(i,m){return i=Jp(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function Yb(n){return ue.isArray(n)&&!n.some(Bc)}const Kb=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Pa(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(l,o){return!ue.isUndefined(o[l])});const i=e.metaTokens,m=e.visitor||g,f=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(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!w&&ue.isBlob(l))throw new nt("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(l)||ue.isTypedArray(l)?w&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,u){let p=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&Yb(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(p=ue.toArray(l)))return o=Jp(o),p.forEach(function(y,b){!(ue.isUndefined(y)||y===null)&&t.append(v===!0?ef([o],b,f):v===null?o:o+"[]",h(y))}),!1}return Bc(l)?!0:(t.append(ef(u,o,f),h(l)),!1)}const s=[],c=Object.assign(Kb,{defaultVisitor:g,convertValue:h,isVisitable:Bc});function a(l,o){if(!ue.isUndefined(l)){if(s.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(l),ue.forEach(l,function(u,p){(!(ue.isUndefined(u)||u===null)&&m.call(t,u,ue.isString(p)?p.trim():p,o,c))===!0&&a(u,o?o.concat(p):[p])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),t}function tf(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function jc(n,t){this._pairs=[],n&&Pa(n,this,t)}const nf=jc.prototype;nf.append=function(n,t){this._pairs.push([n,t])},nf.toString=function(n){const t=n?function(e){return n.call(this,e,tf)}:tf;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Zb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rf(n,t,e){if(!t)return n;const i=e&&e.encode||Zb;ue.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let f;if(m?f=m(t,e):f=ue.isURLSearchParams(t)?t.toString():new jc(t,e).toString(i),f){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class of{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 sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qb=typeof URLSearchParams<"u"?URLSearchParams:jc,Xb=typeof FormData<"u"?FormData:null,Jb=typeof Blob<"u"?Blob:null,e1={isBrowser:!0,classes:{URLSearchParams:Qb,FormData:Xb,Blob:Jb},protocols:["http","https","file","blob","url","data"]},Wc=typeof window<"u"&&typeof document<"u",Uc=typeof navigator=="object"&&navigator||void 0,t1=Wc&&(!Uc||["ReactNative","NativeScript","NS"].indexOf(Uc.product)<0),n1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",i1=Wc&&window.location.href||"http://localhost",r1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wc,hasStandardBrowserEnv:t1,hasStandardBrowserWebWorkerEnv:n1,navigator:Uc,origin:i1},Symbol.toStringTag,{value:"Module"})),Dn={...r1,...e1};function o1(n,t){return Pa(n,new Dn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,f){return Dn.isNode&&ue.isBuffer(e)?(this.append(i,e.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},t))}function s1(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function a1(n){const t={},e=Object.keys(n);let i;const m=e.length;let f;for(i=0;i<m;i++)f=e[i],t[f]=n[f];return t}function af(n){function t(e,i,m,f){let v=e[f++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=f>=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],f)&&ue.isArray(m[v])&&(m[v]=a1(m[v])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(i,m)=>{t(s1(i),m,e,0)}),e}return null}function l1(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 As={transitional:sf,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(af(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 f;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return o1(n,this.formSerializer).toString();if((f=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Pa(f?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),l1(n)):n}],transformResponse:[function(n){const t=this.transitional||As.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(f){if(m)throw f.name==="SyntaxError"?nt.from(f,nt.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.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=>{As.headers[n]={}});const c1=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"]),u1=n=>{const t={};let e,i,m;return n&&n.split(`
|
1376
|
+
`).forEach(function(f){m=f.indexOf(":"),e=f.substring(0,m).trim().toLowerCase(),i=f.substring(m+1).trim(),!(!e||t[e]&&c1[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},lf=Symbol("internals");function Ms(n){return n&&String(n).trim().toLowerCase()}function Ha(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Ha):String(n)}function h1(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 d1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Vc(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 p1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function f1(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,f,v){return this[i].call(this,t,m,f,v)},configurable:!0})})}class Jn{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function f(w,h,g){const s=Ms(h);if(!s)throw new Error("header name must be a non-empty string");const c=ue.findKey(m,s);(!c||m[c]===void 0||g===!0||g===void 0&&m[c]!==!1)&&(m[c||h]=Ha(w))}const v=(w,h)=>ue.forEach(w,(g,s)=>f(g,s,h));if(ue.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(ue.isString(t)&&(t=t.trim())&&!d1(t))v(u1(t),e);else if(ue.isHeaders(t))for(const[w,h]of t.entries())f(h,w,i);else t!=null&&f(e,t,i);return this}get(t,e){if(t=Ms(t),t){const i=ue.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return h1(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=Ms(t),t){const i=ue.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||Vc(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function f(v){if(v=Ms(v),v){const w=ue.findKey(i,v);w&&(!e||Vc(i,i[w],w,e))&&(delete i[w],m=!0)}}return ue.isArray(t)?t.forEach(f):f(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const f=e[i];(!t||Vc(this,this[f],f,t,!0))&&(delete this[f],m=!0)}return m}normalize(t){const e=this,i={};return ue.forEach(this,(m,f)=>{const v=ue.findKey(i,f);if(v){e[v]=Ha(m),delete e[f];return}const w=t?p1(f):String(f).trim();w!==f&&delete e[f],e[w]=Ha(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[lf]=this[lf]={accessors:{}}).accessors,i=this.prototype;function m(f){const v=Ms(f);e[v]||(f1(i,f),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 qc(n,t){const e=this||As,i=t||e,m=Jn.from(i.headers);let f=i.data;return ue.forEach(n,function(v){f=v.call(e,f,m.normalize(),t?t.status:void 0)}),m.normalize(),f}function cf(n){return!!(n&&n.__CANCEL__)}function Ho(n,t,e){nt.call(this,n??"canceled",nt.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Ho,nt,{__CANCEL__:!0});function uf(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new nt("Request failed with status code "+e.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function g1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function m1(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,f=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),g=i[f];v||(v=h),e[m]=w,i[m]=h;let s=f,c=0;for(;s!==m;)c+=e[s++],s=s%n;if(m=(m+1)%n,m===f&&(f=(f+1)%n),h-v<t)return;const a=g&&h-g;return a?Math.round(c*1e3/a):void 0}}function v1(n,t){let e=0,i=1e3/t,m,f;const v=(w,h=Date.now())=>{e=h,m=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),g=h-e;g>=i?v(w,h):(m=w,f||(f=setTimeout(()=>{f=null,v(m)},i-g)))},()=>m&&v(m)]}const za=(n,t,e=3)=>{let i=0;const m=m1(50,250);return v1(f=>{const v=f.loaded,w=f.lengthComputable?f.total:void 0,h=v-i,g=m(h),s=v<=w;i=v;const c={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:g||void 0,estimated:g&&w&&s?(w-v)/g:void 0,event:f,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(c)},e)},hf=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},df=n=>(...t)=>ue.asap(()=>n(...t)),y1=Dn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Dn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,w1=Dn.hasStandardBrowserEnv?{write(n,t,e,i,m,f){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),f===!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 b1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function x1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function pf(n,t){return n&&!b1(t)?x1(n,t):t}const ff=n=>n instanceof Jn?{...n}:n;function oo(n,t){t=t||{};const e={};function i(g,s,c,a){return ue.isPlainObject(g)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},g,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function m(g,s,c,a){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return i(void 0,g,c,a)}else return i(g,s,c,a)}function f(g,s){if(!ue.isUndefined(s))return i(void 0,s)}function v(g,s){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return i(void 0,g)}else return i(void 0,s)}function w(g,s,c){if(c in t)return i(g,s);if(c in n)return i(void 0,g)}const h={url:f,method:f,data:f,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:(g,s,c)=>m(ff(g),ff(s),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(g){const s=h[g]||m,c=s(n[g],t[g],g);ue.isUndefined(c)&&s!==w||(e[g]=c)}),e}const gf=n=>{const t=oo({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:f,headers:v,auth:w}=t;t.headers=v=Jn.from(v),t.url=rf(pf(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(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[g,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];v.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Dn.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(t)),i||i!==!1&&y1(t.url))){const g=m&&f&&w1.read(f);g&&v.set(m,g)}return t},_1=typeof XMLHttpRequest<"u",k1=_1&&function(n){return new Promise(function(t,e){const i=gf(n);let m=i.data;const f=Jn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,g,s,c,a,l;function o(){a&&a(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const b=Jn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};uf(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new nt("Request aborted",nt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new nt("Network Error",nt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||sf;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),e(new nt(b,R.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,n,u)),u=null},m===void 0&&f.setContentType(null),"setRequestHeader"in u&&ue.forEach(f.toJSON(),function(b,R){u.setRequestHeader(R,b)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([c,l]=za(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([s,a]=za(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(g=b=>{u&&(e(!b||b.type?new Ho(null,n,u):b),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const y=g1(i.url);if(y&&Dn.protocols.indexOf(y)===-1){e(new nt("Unsupported protocol "+y+":",nt.ERR_BAD_REQUEST,n));return}u.send(m||null)})},$1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const f=function(g){if(!m){m=!0,w();const s=g instanceof Error?g:this.reason;i.abort(s instanceof nt?s:new Ho(s instanceof Error?s.message:s))}};let v=t&&setTimeout(()=>{v=null,f(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:h}=i;return h.unsubscribe=()=>ue.asap(w),h}},S1=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},C1=async function*(n,t){for await(const e of A1(n))yield*S1(e,t)},A1=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()}},mf=(n,t,e,i)=>{const m=C1(n,t);let f=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:s}=await m.next();if(g){w(),h.close();return}let c=s.byteLength;if(e){let a=f+=c;e(a)}h.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},Ba=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vf=Ba&&typeof ReadableStream=="function",M1=Ba&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),yf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},T1=vf&&yf(()=>{let n=!1;const t=new Request(Dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),wf=64*1024,Gc=vf&&yf(()=>ue.isReadableStream(new Response("").body)),ja={stream:Gc&&(n=>n.body)};Ba&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ja[t]&&(ja[t]=ue.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,i)})})})(new Response);const E1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Dn.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 M1(n)).byteLength},R1=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??E1(t),L1=Ba&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:f,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:g,headers:s,withCredentials:c="same-origin",fetchOptions:a}=gf(n);g=g?(g+"").toLowerCase():"text";let l=$1([m,f&&f.toAbortSignal()],v),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let p;try{if(h&&T1&&e!=="get"&&e!=="head"&&(p=await R1(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[M,E]=hf(p,za(df(h)));i=mf(k.body,wf,M,E)}}ue.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...a,signal:l,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:y?c:void 0});let b=await fetch(o);const R=Gc&&(g==="stream"||g==="response");if(Gc&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=ue.toFiniteNumber(b.headers.get("content-length")),[M,E]=w&&hf(x,za(df(w),!0))||[];b=new Response(mf(b.body,wf,M,()=>{E&&E(),u&&u()}),k)}g=g||"text";let A=await ja[ue.findKey(ja,g)||"text"](b,n);return!R&&u&&u(),await new Promise((k,x)=>{uf(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 nt("Network Error",nt.ERR_NETWORK,n,o),{cause:y.cause||y}):nt.from(y,y&&y.code,n,o)}}),Yc={http:Gb,xhr:k1,fetch:L1};ue.forEach(Yc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const bf=n=>`- ${n}`,I1=n=>ue.isFunction(n)||n===null||n===!1,xf={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let f=0;f<t;f++){e=n[f];let v;if(i=e,!I1(e)&&(i=Yc[(v=String(e)).toLowerCase()],i===void 0))throw new nt(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+f]=i}if(!i){const f=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?f.length>1?`since :
|
1378
|
+
`+f.map(bf).join(`
|
1379
|
+
`):" "+bf(f[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:Yc};function Kc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ho(null,n)}function _f(n){return Kc(n),n.headers=Jn.from(n.headers),n.data=qc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xf.getAdapter(n.adapter||As.adapter)(n).then(function(t){return Kc(n),t.data=qc.call(n,n.transformResponse,t),t.headers=Jn.from(t.headers),t},function(t){return cf(t)||(Kc(n),t&&t.response&&(t.response.data=qc.call(n,n.transformResponse,t.response),t.response.headers=Jn.from(t.response.headers))),Promise.reject(t)})}const kf="1.7.9",Wa={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Wa[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const $f={};Wa.transitional=function(n,t,e){function i(m,f){return"[Axios v"+kf+"] Transitional option '"+m+"'"+f+(e?". "+e:"")}return(m,f,v)=>{if(n===!1)throw new nt(i(f," has been removed"+(t?" in "+t:"")),nt.ERR_DEPRECATED);return t&&!$f[f]&&($f[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,f,v):!0}},Wa.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function O1(n,t,e){if(typeof n!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const f=i[m],v=t[f];if(v){const w=n[f],h=w===void 0||v(w,f,n);if(h!==!0)throw new nt("option "+f+" must be "+h,nt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new nt("Unknown option "+f,nt.ERR_BAD_OPTION)}}const Ua={assertOptions:O1,validators:Wa},Vi=Ua.validators;class so{constructor(t){this.defaults=t,this.interceptors={request:new of,response:new of}}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 f=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
1380
|
+
`+f):i.stack=f}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=oo(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:f}=e;i!==void 0&&Ua.assertOptions(i,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),m!=null&&(ue.isFunction(m)?e.paramsSerializer={serialize:m}:Ua.assertOptions(m,{encode:Vi.function,serialize:Vi.function},!0)),Ua.assertOptions(e,{baseUrl:Vi.spelling("baseURL"),withXsrfToken:Vi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=f&&ue.merge(f.common,f[e.method]);f&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),e.headers=Jn.concat(v,f);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 g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!h){const o=[_f.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(e);c<a;)s=s.then(o[c++],o[c++]);return s}a=w.length;let l=e;for(c=0;c<a;){const o=w[c++],u=w[c++];try{l=o(l)}catch(p){u.call(this,p);break}}try{s=_f.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=g.length;c<a;)s=s.then(g[c++],g[c++]);return s}getUri(t){t=oo(this.defaults,t);const e=pf(t.baseURL,t.url);return rf(e,t.params,t.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){so.prototype[n]=function(t,e){return this.request(oo(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,f){return this.request(oo(f||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}so.prototype[n]=t(),so.prototype[n+"Form"]=t(!0)});class Zc{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 f=i._listeners.length;for(;f-- >0;)i._listeners[f](m);i._listeners=null}),this.promise.then=m=>{let f;const v=new Promise(w=>{i.subscribe(w),f=w}).then(m);return v.cancel=function(){i.unsubscribe(f)},v},t(function(m,f,v){i.reason||(i.reason=new Ho(m,f,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 Zc(function(e){t=e}),cancel:t}}}function D1(n){return function(t){return n.apply(null,t)}}function N1(n){return ue.isObject(n)&&n.isAxiosError===!0}const Qc={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(Qc).forEach(([n,t])=>{Qc[t]=n});function Sf(n){const t=new so(n),e=Bp(so.prototype.request,t);return ue.extend(e,so.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return Sf(oo(n,i))},e}const dn=Sf(As);dn.Axios=so,dn.CanceledError=Ho,dn.CancelToken=Zc,dn.isCancel=cf,dn.VERSION=kf,dn.toFormData=Pa,dn.AxiosError=nt,dn.Cancel=dn.CanceledError,dn.all=function(n){return Promise.all(n)},dn.spread=D1,dn.isAxiosError=N1,dn.mergeConfig=oo,dn.AxiosHeaders=Jn,dn.formToJSON=n=>af(ue.isHTMLForm(n)?new FormData(n):n),dn.getAdapter=xf.getAdapter,dn.HttpStatusCode=Qc,dn.default=dn;const Xc=dn.create({baseURL:location.origin,timeout:6e4,params:{}});Xc.interceptors.response.use(n=>n,n=>{var t,e,i,m,f,v,w,h,g,s,c;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} `),(f=(m=n.response)==null?void 0:m.data)!=null&&f.message?a+=`${n.response.data.message}`:(w=(v=n.response)==null?void 0:v.data)!=null&&w.exception?a+=`${n.response.data.exception}`:(s=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`):a+=`${(c=n.response)==null?void 0:c.data}`;const{$cosmosNotify:l}=window;throw l&&l.serious({title:"Network error",body:a}),n}else throw n});const Va=async function(n,t,{data:e,params:i={},headers:m,noAuth:f=!1,noScope:v=!1,onUploadProgress:w=!1}={}){if(!f){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),Xc({method:n,url:t,data:e,params:i,headers:m,onUploadProgress:w})},Jc={Accept:"application/json"},Cf={...Jc,"Content-Type":"application/json"},eu=yn("I",{get:function(n,{params:t,headers:e=Jc,noScope:i,noAuth:m,onUploadProgress:f}={}){return Va("get",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:f})},put:function(n,{data:t,params:e,headers:i=Cf,noScope:m,noAuth:f,onUploadProgress:v}={}){return Va("put",n,{data:t,params:e,headers:i,noScope:m,noAuth:f,onUploadProgress:v})},post:function(n,{data:t,params:e,headers:i=Cf,noScope:m,noAuth:f,onUploadProgress:v}={}){return Va("post",n,{data:t,params:e,headers:i,noScope:m,noAuth:f,onUploadProgress:v})},delete:function(n,{params:t,headers:e=Jc,noScope:i,noAuth:m,onUploadProgress:f}={}){return Va("delete",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:f})}});var qa={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Yt={log(...n){this.enabled&&(n.push(Date.now()),qa.logger.log("[ActionCable]",...n))}};const Ts=()=>new Date().getTime(),Ga=n=>(Ts()-n)/1e3;class Ya{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=Ts(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Yt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=Ts(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Yt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=Ts()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Yt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=Ts(),Yt.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()&&(Yt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Ga(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Yt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Ga(this.disconnectedAt)} s`):(Yt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Ga(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Ga(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Yt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Ya.staleThreshold=6,Ya.reconnectionBackoffRate=.15;var Af={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:Es,protocols:tu}=Af,F1=tu.slice(0,tu.length-1),Mf=[].indexOf;class nu{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new Ya(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){if(this.isActive())return Yt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...tu,...this.consumer.subprotocols||[]];return Yt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new qa.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(Yt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Yt.log("Failed to reopen WebSocket",t)}finally{Yt.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 Mf.call(F1,this.getProtocol())>=0}isState(...t){return Mf.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in qa.WebSocket)if(qa.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(){}}}nu.reopenDelay=500,nu.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:t,message:e,reason:i,reconnect:m,type:f}=JSON.parse(n.data);switch(f){case Es.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Es.disconnect:return Yt.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:m});case Es.ping:return this.monitor.recordPing();case Es.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 Es.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",e)}},open(){if(Yt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Yt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Yt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Yt.log("WebSocket onerror event")}};const P1=function(n,t){if(t!=null)for(let e in t){const i=t[e];n[e]=i}return n};class H1{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),P1(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 z1{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Yt.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Yt.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Yt.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=>{Yt.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class B1{constructor(t){this.consumer=t,this.guarantor=new z1(this),this.subscriptions=[]}create(t,e){const i=t,m=typeof i=="object"?i:{channel:i},f=new H1(this.consumer,m,e);return this.add(f)}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(f=>typeof f[e]=="function"?f[e](...i):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Yt.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 j1{constructor(t){this._url=t,this.subscriptions=new B1(this),this.connection=new nu(this),this.subprotocols=[]}get url(){return W1(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 W1(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 U1(n=V1("url")||Af.default_mount_path){return new j1(n)}function V1(n){const t=document.head.querySelector(`meta[name='action-cable-${n}']`);if(t)return t.getAttribute("content")}Ya.staleThreshold=10;let lO=yn("O",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 f=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=U1(f)}return this._cable.subscriptions.create({channel:n,...i},e)})}recordPing(){this._cable.connection.monitor.recordPing()}});class iu{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}}yn("a",iu);class q1{constructor(){io(this,"keyword",null),io(this,"parameters",[]),io(this,"filename",""),io(this,"line",""),io(this,"lineNumber",0),io(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 iu(this,`Not enough parameters for ${this.keyword}.`,i,this.url);if(e&&this.parameters[e]!==void 0)throw new iu(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,f){let v=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=e;let w=t.split(`
|
1381
|
+
`),h=w.length;for(let g=0;g<h;g++){this.lineNumber=g+1;let s=w[g].trim();if(s.length===0)continue;if(v===!0){if(s[0]==="#")continue;s=s.substring(1,s.length)}let c=s.charAt(s.length-1),a=!1;switch(c){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 l=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,o=this.scan_string(this.line,l),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&&f(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let p=o.length;if(p>1)for(let y=1;y<p;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)}f(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}class lr{constructor(){io(this,"id",1)}async exec(t,e,i={},m={},f=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 Xc.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:f})).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 f=await this.exec("get_tlm_packet",[t,e],{type:i,stale_time:m});if(f!=null){let v=f.length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(f[h][1]),w!==null&&(f[h][1]=w)}return f}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 f=await this.exec("get_tlm_values",[t],m,{},1e4);let v=f[0].length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(f[0][h]),w!==null&&(f[0][h]=w);return f}get_limits(t,e,i){return this.exec("get_limits",[t,e,i])}async tlm(t,e,i,m="CONVERTED"){let f=null;if(e===void 0)f=await this.exec("tlm",[t]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))f=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 f=await this.exec("tlm",[t,e,i],{type:m});let v=this.decode_openc3_type(f);return v!==null&&(f=v),f}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,f){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],{},f)}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(f=>f.toString(16).padStart(2,"0")).join("")}}}yn("F",lr);const G1={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 Ka={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 Y1=Ka.exports,Tf;function K1(){return Tf||(Tf=1,function(n,t){(function(){var e,i="4.17.21",m=200,f="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__",g=500,s="__lodash_placeholder__",c=1,a=2,l=4,o=1,u=2,p=1,y=2,b=4,R=8,A=16,k=32,x=64,M=128,E=256,I=512,T=30,N="...",$=800,_=16,S=1,L=2,O=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,J=q-1,G=q>>>1,Q=[["ary",M],["bind",p],["bindKey",y],["curry",R],["curryRight",A],["flip",I],["partial",k],["partialRight",x],["rearg",E]],ie="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",we="[object Date]",fe="[object DOMException]",$e="[object Error]",at="[object Function]",Ht="[object GeneratorFunction]",dt="[object Map]",gt="[object Number]",ln="[object Null]",Dt="[object Object]",Zt="[object Promise]",Zi="[object Proxy]",kn="[object RegExp]",tn="[object Set]",Pe="[object String]",Be="[object Symbol]",nn="[object Undefined]",We="[object WeakMap]",ce="[object WeakSet]",Me="[object ArrayBuffer]",Le="[object DataView]",qe="[object Float32Array]",Ye="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",ct="[object Int32Array]",ut="[object Uint8Array]",rt="[object Uint8ClampedArray]",Wt="[object Uint16Array]",Hn="[object Uint32Array]",hr=/\b__p \+= '';/g,ti=/\b(__p \+=) '' \+/g,Vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qs=/&(?:amp|lt|gt|quot|#39);/g,Al=/[&<>"']/g,Wh=RegExp(qs.source),Uh=RegExp(Al.source),Vh=/<%-([\s\S]+?)%>/g,qh=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rn=/^\w*$/,Qi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xi=/[\\^$.*+?()[\]{}|]/g,Lr=RegExp(Xi.source),zn=/^\s+/,Ir=/\s/,Or=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Tl=/,? & /,Gh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yh=/[()=,{}\[\]\/\s]/,pr=/\\(\\)?/g,Kh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dr=/\w*$/,El=/^[-+]0x[0-9a-f]+$/i,Ji=/^0b[01]+$/i,$n=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,gn=/^(?:0|[1-9]\d*)$/,es=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bn=/($^)/,vo=/['\n\r\u2028\u2029\\]/g,yo="\\ud800-\\udfff",Gs="\\u0300-\\u036f",ts="\\ufe20-\\ufe2f",Nr="\\u20d0-\\u20ff",ns=Gs+ts+Nr,is="\\u2700-\\u27bf",rs="a-z\\xdf-\\xf6\\xf8-\\xff",Ys="\\xac\\xb1\\xd7\\xf7",Ks="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zs="\\u2000-\\u206f",Qs=" \\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",Xs="\\ufe0e\\ufe0f",Js=Ys+Ks+Zs+Qs,wo="['’]",Rl="["+yo+"]",Ll="["+Js+"]",os="["+ns+"]",Il="\\d+",Ol="["+is+"]",ea="["+rs+"]",Dl="[^"+yo+Js+Il+is+rs+_i+"]",ss="\\ud83c[\\udffb-\\udfff]",ta="(?:"+os+"|"+ss+")",bo="[^"+yo+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",na="[\\ud800-\\udbff][\\udc00-\\udfff]",er="["+_i+"]",Nl="\\u200d",Fl="(?:"+ea+"|"+Dl+")",Zh="(?:"+er+"|"+Dl+")",fr="(?:"+wo+"(?:d|ll|m|re|s|t|ve))?",xo="(?:"+wo+"(?:D|LL|M|RE|S|T|VE))?",as=ta+"?",Pr="["+Xs+"]?",Qh="(?:"+Nl+"(?:"+[bo,Fr,na].join("|")+")"+Pr+as+")*",Hr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ia=Pr+as+Qh,ra="(?:"+[Ol,Fr,na].join("|")+")"+ia,oa="(?:"+[bo+os+"?",os,Fr,na,Rl].join("|")+")",sa=RegExp(wo,"g"),zr=RegExp(os,"g"),tr=RegExp(ss+"(?="+ss+")|"+oa+ia,"g"),Pl=RegExp([er+"?"+ea+"+"+fr+"(?="+[Ll,er,"$"].join("|")+")",Zh+"+"+xo+"(?="+[Ll,er+Fl,"$"].join("|")+")",er+"?"+Fl+"+"+fr,er+"+"+xo,Xh,Hr,Il,ra].join("|"),"g"),Hl=RegExp("["+Nl+yo+ns+Xs+"]"),Br=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jr=["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[pt]=It[ft]=It[ct]=It[ut]=It[rt]=It[Wt]=It[Hn]=!0,It[ie]=It[X]=It[Me]=It[me]=It[Le]=It[we]=It[$e]=It[at]=It[dt]=It[gt]=It[Dt]=It[kn]=It[tn]=It[Pe]=It[We]=!1;var ze={};ze[ie]=ze[X]=ze[Me]=ze[Le]=ze[me]=ze[we]=ze[qe]=ze[Ye]=ze[pt]=ze[ft]=ze[ct]=ze[dt]=ze[gt]=ze[Dt]=ze[kn]=ze[tn]=ze[Pe]=ze[Be]=ze[ut]=ze[rt]=ze[Wt]=ze[Hn]=!0,ze[$e]=ze[at]=ze[We]=!1;var zt={À:"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"},nr={"&":"&","<":"<",">":">",'"':""","'":"'"},Sn={"&":"&","<":"<",">":">",""":'"',"'":"'"},mn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,Nt=parseInt,gr=typeof Tr=="object"&&Tr&&Tr.Object===Object&&Tr,ls=typeof self=="object"&&self&&self.Object===Object&&self,Cn=gr||ls||Function("return this")(),ki=t&&!t.nodeType&&t,Ln=ki&&!0&&n&&!n.nodeType&&n,Bl=Ln&&Ln.exports===ki,aa=Bl&&gr.process,ni=function(){try{var ne=Ln&&Ln.require&&Ln.require("util").types;return ne||aa&&aa.binding&&aa.binding("util")}catch{}}(),jl=ni&&ni.isArrayBuffer,$i=ni&&ni.isDate,Ni=ni&&ni.isMap,ir=ni&&ni.isRegExp,mr=ni&&ni.isSet,Wl=ni&&ni.isTypedArray;function Vt(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 Jh(ne,le,se,Se){for(var Fe=-1,Ze=ne==null?0:ne.length;++Fe<Ze;){var At=ne[Fe];le(Se,At,se(At),ne)}return Se}function Gn(ne,le){for(var se=-1,Se=ne==null?0:ne.length;++se<Se&&le(ne[se],se,ne)!==!1;);return ne}function Ul(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,Fe=0,Ze=[];++se<Se;){var At=ne[se];le(At,se,ne)&&(Ze[Fe++]=At)}return Ze}function cs(ne,le){var se=ne==null?0:ne.length;return!!se&&vr(ne,le,0)>-1}function _o(ne,le,se){for(var Se=-1,Fe=ne==null?0:ne.length;++Se<Fe;)if(se(le,ne[Se]))return!0;return!1}function Bt(ne,le){for(var se=-1,Se=ne==null?0:ne.length,Fe=Array(Se);++se<Se;)Fe[se]=le(ne[se],se,ne);return Fe}function jn(ne,le){for(var se=-1,Se=le.length,Fe=ne.length;++se<Se;)ne[Fe+se]=le[se];return ne}function Si(ne,le,se,Se){var Fe=-1,Ze=ne==null?0:ne.length;for(Se&&Ze&&(se=ne[++Fe]);++Fe<Ze;)se=le(se,ne[Fe],Fe,ne);return se}function ko(ne,le,se,Se){var Fe=ne==null?0:ne.length;for(Se&&Fe&&(se=ne[--Fe]);Fe--;)se=le(se,ne[Fe],Fe,ne);return se}function us(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 la=pa("length");function ca(ne){return ne.split("")}function hs(ne){return ne.match(Gh)||[]}function ua(ne,le,se){var Se;return se(ne,function(Fe,Ze,At){if(le(Fe,Ze,At))return Se=Ze,!1}),Se}function $o(ne,le,se,Se){for(var Fe=ne.length,Ze=se+(Se?1:-1);Se?Ze--:++Ze<Fe;)if(le(ne[Ze],Ze,ne))return Ze;return-1}function vr(ne,le,se){return le===le?Ke(ne,le,se):$o(ne,ha,se)}function Vl(ne,le,se,Se){for(var Fe=se-1,Ze=ne.length;++Fe<Ze;)if(Se(ne[Fe],le))return Fe;return-1}function ha(ne){return ne!==ne}function da(ne,le){var se=ne==null?0:ne.length;return se?Vr(ne,le)/se:V}function pa(ne){return function(le){return le==null?e:le[ne]}}function ds(ne){return function(le){return ne==null?e:ne[le]}}function fa(ne,le,se,Se,Fe){return Fe(ne,function(Ze,At,Xe){se=Se?(Se=!1,Ze):le(se,Ze,At,Xe)}),se}function Ur(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Vr(ne,le){for(var se,Se=-1,Fe=ne.length;++Se<Fe;){var Ze=le(ne[Se]);Ze!==e&&(se=se===e?Ze:se+Ze)}return se}function rn(ne,le){for(var se=-1,Se=Array(ne);++se<ne;)Se[se]=le(se);return Se}function ql(ne,le){return Bt(le,function(se){return[se,ne[se]]})}function Qt(ne){return ne&&ne.slice(0,Qe(ne)+1).replace(zn,"")}function Wn(ne){return function(le){return ne(le)}}function So(ne,le){return Bt(le,function(se){return ne[se]})}function Fi(ne,le){return ne.has(le)}function Gl(ne,le){for(var se=-1,Se=ne.length;++se<Se&&vr(le,ne[se],0)>-1;);return se}function Yl(ne,le){for(var se=ne.length;se--&&vr(le,ne[se],0)>-1;);return se}function ga(ne,le){for(var se=ne.length,Se=0;se--;)ne[se]===le&&++Se;return Se}var P=ds(zt),B=ds(nr);function Y(ne){return"\\"+mn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Hl.test(ne)}function oe(ne){return Br.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function be(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se,Fe){se[++le]=[Fe,Se]}),se}function _e(ne,le){return function(se){return ne(le(se))}}function ke(ne,le){for(var se=-1,Se=ne.length,Fe=0,Ze=[];++se<Se;){var At=ne[se];(At===le||At===s)&&(ne[se]=s,Ze[Fe++]=se)}return Ze}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Se){se[++le]=Se}),se}function Te(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,Fe=ne.length;++Se<Fe;)if(ne[Se]===le)return Se;return-1}function Et(ne,le,se){for(var Se=se+1;Se--;)if(ne[Se]===le)return Se;return Se}function ot(ne){return te(ne)?Ct(ne):la(ne)}function Ge(ne){return te(ne)?Xt(ne):ca(ne)}function Qe(ne){for(var le=ne.length;le--&&Ir.test(ne.charAt(le)););return le}var Ie=ds(Sn);function Ct(ne){for(var le=tr.lastIndex=0;tr.test(ne);)++le;return le}function Xt(ne){return ne.match(tr)||[]}function qt(ne){return ne.match(Pl)||[]}var Ft=function ne(le){le=le==null?Cn:Pt.defaults(Cn.Object(),le,Pt.pick(Cn,jr));var se=le.Array,Se=le.Date,Fe=le.Error,Ze=le.Function,At=le.Math,Xe=le.Object,An=le.RegExp,Yn=le.String,Mn=le.TypeError,fi=se.prototype,ri=Ze.prototype,ps=Xe.prototype,Kl=le["__core-js_shared__"],Zl=ri.toString,Rt=ps.hasOwnProperty,eM=0,J0=function(){var r=/[^.]+$/.exec(Kl&&Kl.keys&&Kl.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ql=ps.toString,tM=Zl.call(Xe),nM=Cn._,iM=An("^"+Zl.call(Rt).replace(Xi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xl=Bl?le.Buffer:e,qr=le.Symbol,Jl=le.Uint8Array,ev=Xl?Xl.allocUnsafe:e,ec=_e(Xe.getPrototypeOf,Xe),tv=Xe.create,nv=ps.propertyIsEnumerable,tc=fi.splice,iv=qr?qr.isConcatSpreadable:e,ma=qr?qr.iterator:e,Co=qr?qr.toStringTag:e,nc=function(){try{var r=Ro(Xe,"defineProperty");return r({},"",{}),r}catch{}}(),rM=le.clearTimeout!==Cn.clearTimeout&&le.clearTimeout,oM=Se&&Se.now!==Cn.Date.now&&Se.now,sM=le.setTimeout!==Cn.setTimeout&&le.setTimeout,ic=At.ceil,rc=At.floor,ed=Xe.getOwnPropertySymbols,aM=Xl?Xl.isBuffer:e,rv=le.isFinite,lM=fi.join,cM=_e(Xe.keys,Xe),Tn=At.max,Un=At.min,uM=Se.now,hM=le.parseInt,ov=At.random,dM=fi.reverse,td=Ro(le,"DataView"),va=Ro(le,"Map"),nd=Ro(le,"Promise"),fs=Ro(le,"Set"),ya=Ro(le,"WeakMap"),wa=Ro(Xe,"create"),oc=ya&&new ya,gs={},pM=Lo(td),fM=Lo(va),gM=Lo(nd),mM=Lo(fs),vM=Lo(ya),sc=qr?qr.prototype:e,ba=sc?sc.valueOf:e,sv=sc?sc.toString:e;function j(r){if(on(r)&&!Je(r)&&!(r instanceof wt)){if(r instanceof Ci)return r;if(Rt.call(r,"__wrapped__"))return ay(r)}return new Ci(r)}var ms=function(){function r(){}return function(d){if(!Jt(d))return{};if(tv)return tv(d);r.prototype=d;var C=new r;return r.prototype=e,C}}();function ac(){}function Ci(r,d){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}j.templateSettings={escape:Vh,evaluate:qh,interpolate:He,variable:"",imports:{_:j}},j.prototype=ac.prototype,j.prototype.constructor=j,Ci.prototype=ms(ac.prototype),Ci.prototype.constructor=Ci;function wt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function yM(){var r=new wt(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 wM(){if(this.__filtered__){var r=new wt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function bM(){var r=this.__wrapped__.value(),d=this.__dir__,C=Je(r),D=d<0,z=C?r.length:0,U=LT(0,z,this.__views__),Z=U.start,ee=U.end,re=ee-Z,pe=D?ee:Z-1,ge=this.__iteratees__,ye=ge.length,Ae=0,Oe=Un(re,this.__takeCount__);if(!C||!D&&z==re&&Oe==re)return Ev(r,this.__actions__);var Ue=[];e:for(;re--&&Ae<Oe;){pe+=d;for(var lt=-1,Ve=r[pe];++lt<ye;){var mt=ge[lt],bt=mt.iteratee,vi=mt.type,Qn=bt(Ve);if(vi==L)Ve=Qn;else if(!Qn){if(vi==S)continue e;break e}}Ue[Ae++]=Ve}return Ue}wt.prototype=ms(ac.prototype),wt.prototype.constructor=wt;function Ao(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 xM(){this.__data__=wa?wa(null):{},this.size=0}function _M(r){var d=this.has(r)&&delete this.__data__[r];return this.size-=d?1:0,d}function kM(r){var d=this.__data__;if(wa){var C=d[r];return C===h?e:C}return Rt.call(d,r)?d[r]:e}function $M(r){var d=this.__data__;return wa?d[r]!==e:Rt.call(d,r)}function SM(r,d){var C=this.__data__;return this.size+=this.has(r)?0:1,C[r]=wa&&d===e?h:d,this}Ao.prototype.clear=xM,Ao.prototype.delete=_M,Ao.prototype.get=kM,Ao.prototype.has=$M,Ao.prototype.set=SM;function yr(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 CM(){this.__data__=[],this.size=0}function AM(r){var d=this.__data__,C=lc(d,r);if(C<0)return!1;var D=d.length-1;return C==D?d.pop():tc.call(d,C,1),--this.size,!0}function MM(r){var d=this.__data__,C=lc(d,r);return C<0?e:d[C][1]}function TM(r){return lc(this.__data__,r)>-1}function EM(r,d){var C=this.__data__,D=lc(C,r);return D<0?(++this.size,C.push([r,d])):C[D][1]=d,this}yr.prototype.clear=CM,yr.prototype.delete=AM,yr.prototype.get=MM,yr.prototype.has=TM,yr.prototype.set=EM;function wr(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 RM(){this.size=0,this.__data__={hash:new Ao,map:new(va||yr),string:new Ao}}function LM(r){var d=bc(this,r).delete(r);return this.size-=d?1:0,d}function IM(r){return bc(this,r).get(r)}function OM(r){return bc(this,r).has(r)}function DM(r,d){var C=bc(this,r),D=C.size;return C.set(r,d),this.size+=C.size==D?0:1,this}wr.prototype.clear=RM,wr.prototype.delete=LM,wr.prototype.get=IM,wr.prototype.has=OM,wr.prototype.set=DM;function Mo(r){var d=-1,C=r==null?0:r.length;for(this.__data__=new wr;++d<C;)this.add(r[d])}function NM(r){return this.__data__.set(r,h),this}function FM(r){return this.__data__.has(r)}Mo.prototype.add=Mo.prototype.push=NM,Mo.prototype.has=FM;function Pi(r){var d=this.__data__=new yr(r);this.size=d.size}function PM(){this.__data__=new yr,this.size=0}function HM(r){var d=this.__data__,C=d.delete(r);return this.size=d.size,C}function zM(r){return this.__data__.get(r)}function BM(r){return this.__data__.has(r)}function jM(r,d){var C=this.__data__;if(C instanceof yr){var D=C.__data__;if(!va||D.length<m-1)return D.push([r,d]),this.size=++C.size,this;C=this.__data__=new wr(D)}return C.set(r,d),this.size=C.size,this}Pi.prototype.clear=PM,Pi.prototype.delete=HM,Pi.prototype.get=zM,Pi.prototype.has=BM,Pi.prototype.set=jM;function av(r,d){var C=Je(r),D=!C&&Io(r),z=!C&&!D&&Qr(r),U=!C&&!D&&!z&&bs(r),Z=C||D||z||U,ee=Z?rn(r.length,Yn):[],re=ee.length;for(var pe in r)(d||Rt.call(r,pe))&&!(Z&&(pe=="length"||z&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||kr(pe,re)))&&ee.push(pe);return ee}function lv(r){var d=r.length;return d?r[pd(0,d-1)]:e}function WM(r,d){return xc(oi(r),To(d,0,r.length))}function UM(r){return xc(oi(r))}function id(r,d,C){(C!==e&&!Hi(r[d],C)||C===e&&!(d in r))&&br(r,d,C)}function xa(r,d,C){var D=r[d];(!(Rt.call(r,d)&&Hi(D,C))||C===e&&!(d in r))&&br(r,d,C)}function lc(r,d){for(var C=r.length;C--;)if(Hi(r[C][0],d))return C;return-1}function VM(r,d,C,D){return Gr(r,function(z,U,Z){d(D,z,C(z),Z)}),D}function cv(r,d){return r&&or(d,In(d),r)}function qM(r,d){return r&&or(d,ai(d),r)}function br(r,d,C){d=="__proto__"&&nc?nc(r,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):r[d]=C}function rd(r,d){for(var C=-1,D=d.length,z=se(D),U=r==null;++C<D;)z[C]=U?e:Pd(r,d[C]);return z}function To(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,z,U){var Z,ee=d&c,re=d&a,pe=d&l;if(C&&(Z=z?C(r,D,z,U):C(r)),Z!==e)return Z;if(!Jt(r))return r;var ge=Je(r);if(ge){if(Z=OT(r),!ee)return oi(r,Z)}else{var ye=Vn(r),Ae=ye==at||ye==Ht;if(Qr(r))return Iv(r,ee);if(ye==Dt||ye==ie||Ae&&!z){if(Z=re||Ae?{}:Xv(r),!ee)return re?kT(r,qM(Z,r)):_T(r,cv(Z,r))}else{if(!ze[ye])return z?r:{};Z=DT(r,ye,ee)}}U||(U=new Pi);var Oe=U.get(r);if(Oe)return Oe;U.set(r,Z),Ay(r)?r.forEach(function(Ve){Z.add(Ai(Ve,d,C,Ve,r,U))}):Sy(r)&&r.forEach(function(Ve,mt){Z.set(mt,Ai(Ve,d,C,mt,r,U))});var Ue=pe?re?$d:kd:re?ai:In,lt=ge?e:Ue(r);return Gn(lt||r,function(Ve,mt){lt&&(mt=Ve,Ve=r[mt]),xa(Z,mt,Ai(Ve,d,C,mt,r,U))}),Z}function GM(r){var d=In(r);return function(C){return uv(C,r,d)}}function uv(r,d,C){var D=C.length;if(r==null)return!D;for(r=Xe(r);D--;){var z=C[D],U=d[z],Z=r[z];if(Z===e&&!(z in r)||!U(Z))return!1}return!0}function hv(r,d,C){if(typeof r!="function")throw new Mn(v);return Ma(function(){r.apply(e,C)},d)}function _a(r,d,C,D){var z=-1,U=cs,Z=!0,ee=r.length,re=[],pe=d.length;if(!ee)return re;C&&(d=Bt(d,Wn(C))),D?(U=_o,Z=!1):d.length>=m&&(U=Fi,Z=!1,d=new Mo(d));e:for(;++z<ee;){var ge=r[z],ye=C==null?ge:C(ge);if(ge=D||ge!==0?ge:0,Z&&ye===ye){for(var Ae=pe;Ae--;)if(d[Ae]===ye)continue e;re.push(ge)}else U(d,ye,D)||re.push(ge)}return re}var Gr=Pv(rr),dv=Pv(sd,!0);function YM(r,d){var C=!0;return Gr(r,function(D,z,U){return C=!!d(D,z,U),C}),C}function cc(r,d,C){for(var D=-1,z=r.length;++D<z;){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 KM(r,d,C,D){var z=r.length;for(C=st(C),C<0&&(C=-C>z?0:z+C),D=D===e||D>z?z:st(D),D<0&&(D+=z),D=C>D?0:Ty(D);C<D;)r[C++]=d;return r}function pv(r,d){var C=[];return Gr(r,function(D,z,U){d(D,z,U)&&C.push(D)}),C}function On(r,d,C,D,z){var U=-1,Z=r.length;for(C||(C=FT),z||(z=[]);++U<Z;){var ee=r[U];d>0&&C(ee)?d>1?On(ee,d-1,C,D,z):jn(z,ee):D||(z[z.length]=ee)}return z}var od=Hv(),fv=Hv(!0);function rr(r,d){return r&&od(r,d,In)}function sd(r,d){return r&&fv(r,d,In)}function uc(r,d){return ii(d,function(C){return $r(r[C])})}function Eo(r,d){d=Kr(d,r);for(var C=0,D=d.length;r!=null&&C<D;)r=r[sr(d[C++])];return C&&C==D?r:e}function gv(r,d,C){var D=d(r);return Je(r)?D:jn(D,C(r))}function Kn(r){return r==null?r===e?nn:ln:Co&&Co in Xe(r)?RT(r):UT(r)}function ad(r,d){return r>d}function ZM(r,d){return r!=null&&Rt.call(r,d)}function QM(r,d){return r!=null&&d in Xe(r)}function XM(r,d,C){return r>=Un(d,C)&&r<Tn(d,C)}function ld(r,d,C){for(var D=C?_o:cs,z=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,Wn(d))),re=Un(ge.length,re),ee[Z]=!C&&(d||z>=120&&ge.length>=120)?new Mo(Z&&ge):e}ge=r[0];var ye=-1,Ae=ee[0];e:for(;++ye<z&&pe.length<re;){var Oe=ge[ye],Ue=d?d(Oe):Oe;if(Oe=C||Oe!==0?Oe:0,!(Ae?Fi(Ae,Ue):D(pe,Ue,C))){for(Z=U;--Z;){var lt=ee[Z];if(!(lt?Fi(lt,Ue):D(r[Z],Ue,C)))continue e}Ae&&Ae.push(Ue),pe.push(Oe)}}return pe}function JM(r,d,C,D){return rr(r,function(z,U,Z){d(D,C(z),U,Z)}),D}function ka(r,d,C){d=Kr(d,r),r=ny(r,d);var D=r==null?r:r[sr(Ti(d))];return D==null?e:Vt(D,r,C)}function mv(r){return on(r)&&Kn(r)==ie}function eT(r){return on(r)&&Kn(r)==Me}function tT(r){return on(r)&&Kn(r)==we}function $a(r,d,C,D,z){return r===d?!0:r==null||d==null||!on(r)&&!on(d)?r!==r&&d!==d:nT(r,d,C,D,$a,z)}function nT(r,d,C,D,z,U){var Z=Je(r),ee=Je(d),re=Z?X:Vn(r),pe=ee?X:Vn(d);re=re==ie?Dt:re,pe=pe==ie?Dt:pe;var ge=re==Dt,ye=pe==Dt,Ae=re==pe;if(Ae&&Qr(r)){if(!Qr(d))return!1;Z=!0,ge=!1}if(Ae&&!ge)return U||(U=new Pi),Z||bs(r)?Kv(r,d,C,D,z,U):TT(r,d,re,C,D,z,U);if(!(C&o)){var Oe=ge&&Rt.call(r,"__wrapped__"),Ue=ye&&Rt.call(d,"__wrapped__");if(Oe||Ue){var lt=Oe?r.value():r,Ve=Ue?d.value():d;return U||(U=new Pi),z(lt,Ve,C,D,U)}}return Ae?(U||(U=new Pi),ET(r,d,C,D,z,U)):!1}function iT(r){return on(r)&&Vn(r)==dt}function cd(r,d,C,D){var z=C.length,U=z,Z=!D;if(r==null)return!U;for(r=Xe(r);z--;){var ee=C[z];if(Z&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++z<U;){ee=C[z];var re=ee[0],pe=r[re],ge=ee[1];if(Z&&ee[2]){if(pe===e&&!(re in r))return!1}else{var ye=new Pi;if(D)var Ae=D(pe,ge,re,r,d,ye);if(!(Ae===e?$a(ge,pe,o|u,D,ye):Ae))return!1}}return!0}function vv(r){if(!Jt(r)||HT(r))return!1;var d=$r(r)?iM:$n;return d.test(Lo(r))}function rT(r){return on(r)&&Kn(r)==kn}function oT(r){return on(r)&&Vn(r)==tn}function sT(r){return on(r)&&Ac(r.length)&&!!It[Kn(r)]}function yv(r){return typeof r=="function"?r:r==null?li:typeof r=="object"?Je(r)?xv(r[0],r[1]):bv(r):zy(r)}function ud(r){if(!Aa(r))return cM(r);var d=[];for(var C in Xe(r))Rt.call(r,C)&&C!="constructor"&&d.push(C);return d}function aT(r){if(!Jt(r))return WT(r);var d=Aa(r),C=[];for(var D in r)D=="constructor"&&(d||!Rt.call(r,D))||C.push(D);return C}function hd(r,d){return r<d}function wv(r,d){var C=-1,D=si(r)?se(r.length):[];return Gr(r,function(z,U,Z){D[++C]=d(z,U,Z)}),D}function bv(r){var d=Cd(r);return d.length==1&&d[0][2]?ey(d[0][0],d[0][1]):function(C){return C===r||cd(C,r,d)}}function xv(r,d){return Md(r)&&Jv(d)?ey(sr(r),d):function(C){var D=Pd(C,r);return D===e&&D===d?Hd(C,r):$a(d,D,o|u)}}function hc(r,d,C,D,z){r!==d&&od(d,function(U,Z){if(z||(z=new Pi),Jt(U))lT(r,d,Z,C,hc,D,z);else{var ee=D?D(Ed(r,Z),U,Z+"",r,d,z):e;ee===e&&(ee=U),id(r,Z,ee)}},ai)}function lT(r,d,C,D,z,U,Z){var ee=Ed(r,C),re=Ed(d,C),pe=Z.get(re);if(pe){id(r,C,pe);return}var ge=U?U(ee,re,C+"",r,d,Z):e,ye=ge===e;if(ye){var Ae=Je(re),Oe=!Ae&&Qr(re),Ue=!Ae&&!Oe&&bs(re);ge=re,Ae||Oe||Ue?Je(ee)?ge=ee:cn(ee)?ge=oi(ee):Oe?(ye=!1,ge=Iv(re,!0)):Ue?(ye=!1,ge=Ov(re,!0)):ge=[]:Ta(re)||Io(re)?(ge=ee,Io(ee)?ge=Ey(ee):(!Jt(ee)||$r(ee))&&(ge=Xv(re))):ye=!1}ye&&(Z.set(re,ge),z(ge,re,D,U,Z),Z.delete(re)),id(r,C,ge)}function _v(r,d){var C=r.length;if(C)return d+=d<0?C:0,kr(d,C)?r[d]:e}function kv(r,d,C){d.length?d=Bt(d,function(U){return Je(U)?function(Z){return Eo(Z,U.length===1?U[0]:U)}:U}):d=[li];var D=-1;d=Bt(d,Wn(je()));var z=wv(r,function(U,Z,ee){var re=Bt(d,function(pe){return pe(U)});return{criteria:re,index:++D,value:U}});return Ur(z,function(U,Z){return xT(U,Z,C)})}function cT(r,d){return $v(r,d,function(C,D){return Hd(r,D)})}function $v(r,d,C){for(var D=-1,z=d.length,U={};++D<z;){var Z=d[D],ee=Eo(r,Z);C(ee,Z)&&Sa(U,Kr(Z,r),ee)}return U}function uT(r){return function(d){return Eo(d,r)}}function dd(r,d,C,D){var z=D?Vl:vr,U=-1,Z=d.length,ee=r;for(r===d&&(d=oi(d)),C&&(ee=Bt(r,Wn(C)));++U<Z;)for(var re=0,pe=d[U],ge=C?C(pe):pe;(re=z(ee,ge,re,D))>-1;)ee!==r&&tc.call(ee,re,1),tc.call(r,re,1);return r}function Sv(r,d){for(var C=r?d.length:0,D=C-1;C--;){var z=d[C];if(C==D||z!==U){var U=z;kr(z)?tc.call(r,z,1):md(r,z)}}return r}function pd(r,d){return r+rc(ov()*(d-r+1))}function hT(r,d,C,D){for(var z=-1,U=Tn(ic((d-r)/(C||1)),0),Z=se(U);U--;)Z[D?U:++z]=r,r+=C;return Z}function fd(r,d){var C="";if(!r||d<1||d>H)return C;do d%2&&(C+=r),d=rc(d/2),d&&(r+=r);while(d);return C}function ht(r,d){return Rd(ty(r,d,li),r+"")}function dT(r){return lv(xs(r))}function pT(r,d){var C=xs(r);return xc(C,To(d,0,C.length))}function Sa(r,d,C,D){if(!Jt(r))return r;d=Kr(d,r);for(var z=-1,U=d.length,Z=U-1,ee=r;ee!=null&&++z<U;){var re=sr(d[z]),pe=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(z!=Z){var ge=ee[re];pe=D?D(ge,re,ee):e,pe===e&&(pe=Jt(ge)?ge:kr(d[z+1])?[]:{})}xa(ee,re,pe),ee=ee[re]}return r}var Cv=oc?function(r,d){return oc.set(r,d),r}:li,fT=nc?function(r,d){return nc(r,"toString",{configurable:!0,enumerable:!1,value:Bd(d),writable:!0})}:li;function gT(r){return xc(xs(r))}function Mi(r,d,C){var D=-1,z=r.length;d<0&&(d=-d>z?0:z+d),C=C>z?z:C,C<0&&(C+=z),z=d>C?0:C-d>>>0,d>>>=0;for(var U=se(z);++D<z;)U[D]=r[D+d];return U}function mT(r,d){var C;return Gr(r,function(D,z,U){return C=d(D,z,U),!C}),!!C}function dc(r,d,C){var D=0,z=r==null?D:r.length;if(typeof d=="number"&&d===d&&z<=G){for(;D<z;){var U=D+z>>>1,Z=r[U];Z!==null&&!mi(Z)&&(C?Z<=d:Z<d)?D=U+1:z=U}return z}return gd(r,d,li,C)}function gd(r,d,C,D){var z=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;z<U;){var ge=rc((z+U)/2),ye=C(r[ge]),Ae=ye!==e,Oe=ye===null,Ue=ye===ye,lt=mi(ye);if(Z)var Ve=D||Ue;else pe?Ve=Ue&&(D||Ae):ee?Ve=Ue&&Ae&&(D||!Oe):re?Ve=Ue&&Ae&&!Oe&&(D||!lt):Oe||lt?Ve=!1:Ve=D?ye<=d:ye<d;Ve?z=ge+1:U=ge}return Un(U,J)}function Av(r,d){for(var C=-1,D=r.length,z=0,U=[];++C<D;){var Z=r[C],ee=d?d(Z):Z;if(!C||!Hi(ee,re)){var re=ee;U[z++]=Z===0?0:Z}}return U}function Mv(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 sv?sv.call(r):"";var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Yr(r,d,C){var D=-1,z=cs,U=r.length,Z=!0,ee=[],re=ee;if(C)Z=!1,z=_o;else if(U>=m){var pe=d?null:AT(r);if(pe)return Ce(pe);Z=!1,z=Fi,re=new Mo}else re=d?[]:ee;e:for(;++D<U;){var ge=r[D],ye=d?d(ge):ge;if(ge=C||ge!==0?ge:0,Z&&ye===ye){for(var Ae=re.length;Ae--;)if(re[Ae]===ye)continue e;d&&re.push(ye),ee.push(ge)}else z(re,ye,C)||(re!==ee&&re.push(ye),ee.push(ge))}return ee}function md(r,d){return d=Kr(d,r),r=ny(r,d),r==null||delete r[sr(Ti(d))]}function Tv(r,d,C,D){return Sa(r,d,C(Eo(r,d)),D)}function pc(r,d,C,D){for(var z=r.length,U=D?z:-1;(D?U--:++U<z)&&d(r[U],U,r););return C?Mi(r,D?0:U,D?U+1:z):Mi(r,D?U+1:0,D?z:U)}function Ev(r,d){var C=r;return C instanceof wt&&(C=C.value()),Si(d,function(D,z){return z.func.apply(z.thisArg,jn([D],z.args))},C)}function vd(r,d,C){var D=r.length;if(D<2)return D?Yr(r[0]):[];for(var z=-1,U=se(D);++z<D;)for(var Z=r[z],ee=-1;++ee<D;)ee!=z&&(U[z]=_a(U[z]||Z,r[ee],d,C));return Yr(On(U,1),d,C)}function Rv(r,d,C){for(var D=-1,z=r.length,U=d.length,Z={};++D<z;){var ee=D<U?d[D]:e;C(Z,r[D],ee)}return Z}function yd(r){return cn(r)?r:[]}function wd(r){return typeof r=="function"?r:li}function Kr(r,d){return Je(r)?r:Md(r,d)?[r]:sy(Mt(r))}var vT=ht;function Zr(r,d,C){var D=r.length;return C=C===e?D:C,!d&&C>=D?r:Mi(r,d,C)}var Lv=rM||function(r){return Cn.clearTimeout(r)};function Iv(r,d){if(d)return r.slice();var C=r.length,D=ev?ev(C):new r.constructor(C);return r.copy(D),D}function bd(r){var d=new r.constructor(r.byteLength);return new Jl(d).set(new Jl(r)),d}function yT(r,d){var C=d?bd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.byteLength)}function wT(r){var d=new r.constructor(r.source,Dr.exec(r));return d.lastIndex=r.lastIndex,d}function bT(r){return ba?Xe(ba.call(r)):{}}function Ov(r,d){var C=d?bd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.length)}function Dv(r,d){if(r!==d){var C=r!==e,D=r===null,z=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||!z)return 1;if(!D&&!U&&!pe&&r<d||pe&&C&&z&&!D&&!U||ee&&C&&z||!Z&&z||!re)return-1}return 0}function xT(r,d,C){for(var D=-1,z=r.criteria,U=d.criteria,Z=z.length,ee=C.length;++D<Z;){var re=Dv(z[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 Nv(r,d,C,D){for(var z=-1,U=r.length,Z=C.length,ee=-1,re=d.length,pe=Tn(U-Z,0),ge=se(re+pe),ye=!D;++ee<re;)ge[ee]=d[ee];for(;++z<Z;)(ye||z<U)&&(ge[C[z]]=r[z]);for(;pe--;)ge[ee++]=r[z++];return ge}function Fv(r,d,C,D){for(var z=-1,U=r.length,Z=-1,ee=C.length,re=-1,pe=d.length,ge=Tn(U-ee,0),ye=se(ge+pe),Ae=!D;++z<ge;)ye[z]=r[z];for(var Oe=z;++re<pe;)ye[Oe+re]=d[re];for(;++Z<ee;)(Ae||z<U)&&(ye[Oe+C[Z]]=r[z++]);return ye}function oi(r,d){var C=-1,D=r.length;for(d||(d=se(D));++C<D;)d[C]=r[C];return d}function or(r,d,C,D){var z=!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]),z?br(C,ee,re):xa(C,ee,re)}return C}function _T(r,d){return or(r,Ad(r),d)}function kT(r,d){return or(r,Zv(r),d)}function fc(r,d){return function(C,D){var z=Je(C)?Jh:VM,U=d?d():{};return z(C,r,je(D,2),U)}}function vs(r){return ht(function(d,C){var D=-1,z=C.length,U=z>1?C[z-1]:e,Z=z>2?C[2]:e;for(U=r.length>3&&typeof U=="function"?(z--,U):e,Z&&Zn(C[0],C[1],Z)&&(U=z<3?e:U,z=1),d=Xe(d);++D<z;){var ee=C[D];ee&&r(d,ee,D,U)}return d})}function Pv(r,d){return function(C,D){if(C==null)return C;if(!si(C))return r(C,D);for(var z=C.length,U=d?z:-1,Z=Xe(C);(d?U--:++U<z)&&D(Z[U],U,Z)!==!1;);return C}}function Hv(r){return function(d,C,D){for(var z=-1,U=Xe(d),Z=D(d),ee=Z.length;ee--;){var re=Z[r?ee:++z];if(C(U[re],re,U)===!1)break}return d}}function $T(r,d,C){var D=d&p,z=Ca(r);function U(){var Z=this&&this!==Cn&&this instanceof U?z:r;return Z.apply(D?C:this,arguments)}return U}function zv(r){return function(d){d=Mt(d);var C=te(d)?Ge(d):e,D=C?C[0]:d.charAt(0),z=C?Zr(C,1).join(""):d.slice(1);return D[r]()+z}}function ys(r){return function(d){return Si(Py(Fy(d).replace(sa,"")),r,"")}}function Ca(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=ms(r.prototype),D=r.apply(C,d);return Jt(D)?D:C}}function ST(r,d,C){var D=Ca(r);function z(){for(var U=arguments.length,Z=se(U),ee=U,re=ws(z);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 Vv(r,d,gc,z.placeholder,e,Z,pe,e,e,C-U);var ge=this&&this!==Cn&&this instanceof z?D:r;return Vt(ge,this,Z)}return z}function Bv(r){return function(d,C,D){var z=Xe(d);if(!si(d)){var U=je(C,3);d=In(d),C=function(ee){return U(z[ee],ee,z)}}var Z=r(d,C,D);return Z>-1?z[U?d[Z]:Z]:e}}function jv(r){return _r(function(d){var C=d.length,D=C,z=Ci.prototype.thru;for(r&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new Mn(v);if(z&&!Z&&wc(U)=="wrapper")var Z=new Ci([],!0)}for(D=Z?D:C;++D<C;){U=d[D];var ee=wc(U),re=ee=="wrapper"?Sd(U):e;re&&Td(re[0])&&re[1]==(M|R|k|E)&&!re[4].length&&re[9]==1?Z=Z[wc(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 ye=0,Ae=C?d[ye].apply(this,pe):ge;++ye<C;)Ae=d[ye].call(this,Ae);return Ae}})}function gc(r,d,C,D,z,U,Z,ee,re,pe){var ge=d&M,ye=d&p,Ae=d&y,Oe=d&(R|A),Ue=d&I,lt=Ae?e:Ca(r);function Ve(){for(var mt=arguments.length,bt=se(mt),vi=mt;vi--;)bt[vi]=arguments[vi];if(Oe)var Qn=ws(Ve),yi=ga(bt,Qn);if(D&&(bt=Nv(bt,D,z,Oe)),U&&(bt=Fv(bt,U,Z,Oe)),mt-=yi,Oe&&mt<pe){var un=ke(bt,Qn);return Vv(r,d,gc,Ve.placeholder,C,bt,un,ee,re,pe-mt)}var zi=ye?C:this,Cr=Ae?zi[r]:r;return mt=bt.length,ee?bt=VT(bt,ee):Ue&&mt>1&&bt.reverse(),ge&&re<mt&&(bt.length=re),this&&this!==Cn&&this instanceof Ve&&(Cr=lt||Ca(Cr)),Cr.apply(zi,bt)}return Ve}function Wv(r,d){return function(C,D){return JM(C,r,d(D),{})}}function mc(r,d){return function(C,D){var z;if(C===e&&D===e)return d;if(C!==e&&(z=C),D!==e){if(z===e)return D;typeof C=="string"||typeof D=="string"?(C=gi(C),D=gi(D)):(C=Mv(C),D=Mv(D)),z=r(C,D)}return z}}function xd(r){return _r(function(d){return d=Bt(d,Wn(je())),ht(function(C){var D=this;return r(d,function(z){return Vt(z,D,C)})})})}function vc(r,d){d=d===e?" ":gi(d);var C=d.length;if(C<2)return C?fd(d,r):d;var D=fd(d,ic(r/ot(d)));return te(d)?Zr(Ge(D),0,r).join(""):D.slice(0,r)}function CT(r,d,C,D){var z=d&p,U=Ca(r);function Z(){for(var ee=-1,re=arguments.length,pe=-1,ge=D.length,ye=se(ge+re),Ae=this&&this!==Cn&&this instanceof Z?U:r;++pe<ge;)ye[pe]=D[pe];for(;re--;)ye[pe++]=arguments[++ee];return Vt(Ae,z?C:this,ye)}return Z}function Uv(r){return function(d,C,D){return D&&typeof D!="number"&&Zn(d,C,D)&&(C=D=e),d=Sr(d),C===e?(C=d,d=0):C=Sr(C),D=D===e?d<C?1:-1:Sr(D),hT(d,C,D,r)}}function yc(r){return function(d,C){return typeof d=="string"&&typeof C=="string"||(d=Ei(d),C=Ei(C)),r(d,C)}}function Vv(r,d,C,D,z,U,Z,ee,re,pe){var ge=d&R,ye=ge?Z:e,Ae=ge?e:Z,Oe=ge?U:e,Ue=ge?e:U;d|=ge?k:x,d&=~(ge?x:k),d&b||(d&=~(p|y));var lt=[r,d,z,Oe,ye,Ue,Ae,ee,re,pe],Ve=C.apply(e,lt);return Td(r)&&iy(Ve,lt),Ve.placeholder=D,ry(Ve,r,d)}function _d(r){var d=At[r];return function(C,D){if(C=Ei(C),D=D==null?0:Un(st(D),292),D&&rv(C)){var z=(Mt(C)+"e").split("e"),U=d(z[0]+"e"+(+z[1]+D));return z=(Mt(U)+"e").split("e"),+(z[0]+"e"+(+z[1]-D))}return d(C)}}var AT=fs&&1/Ce(new fs([,-0]))[1]==F?function(r){return new fs(r)}:Ud;function qv(r){return function(d){var C=Vn(d);return C==dt?be(d):C==tn?Te(d):ql(d,r(d))}}function xr(r,d,C,D,z,U,Z,ee){var re=d&y;if(!re&&typeof r!="function")throw new Mn(v);var pe=D?D.length:0;if(pe||(d&=~(k|x),D=z=e),Z=Z===e?Z:Tn(st(Z),0),ee=ee===e?ee:st(ee),pe-=z?z.length:0,d&x){var ge=D,ye=z;D=z=e}var Ae=re?e:Sd(r),Oe=[r,d,C,D,z,ge,ye,U,Z,ee];if(Ae&&jT(Oe,Ae),r=Oe[0],d=Oe[1],C=Oe[2],D=Oe[3],z=Oe[4],ee=Oe[9]=Oe[9]===e?re?0:r.length:Tn(Oe[9]-pe,0),!ee&&d&(R|A)&&(d&=~(R|A)),!d||d==p)var Ue=$T(r,d,C);else d==R||d==A?Ue=ST(r,d,ee):(d==k||d==(p|k))&&!z.length?Ue=CT(r,d,C,D):Ue=gc.apply(e,Oe);var lt=Ae?Cv:iy;return ry(lt(Ue,Oe),r,d)}function Gv(r,d,C,D){return r===e||Hi(r,ps[C])&&!Rt.call(D,C)?d:r}function Yv(r,d,C,D,z,U){return Jt(r)&&Jt(d)&&(U.set(d,r),hc(r,d,e,Yv,U),U.delete(d)),r}function MT(r){return Ta(r)?e:r}function Kv(r,d,C,D,z,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 ye=-1,Ae=!0,Oe=C&u?new Mo:e;for(U.set(r,d),U.set(d,r);++ye<ee;){var Ue=r[ye],lt=d[ye];if(D)var Ve=Z?D(lt,Ue,ye,d,r,U):D(Ue,lt,ye,r,d,U);if(Ve!==e){if(Ve)continue;Ae=!1;break}if(Oe){if(!us(d,function(mt,bt){if(!Fi(Oe,bt)&&(Ue===mt||z(Ue,mt,C,D,U)))return Oe.push(bt)})){Ae=!1;break}}else if(!(Ue===lt||z(Ue,lt,C,D,U))){Ae=!1;break}}return U.delete(r),U.delete(d),Ae}function TT(r,d,C,D,z,U,Z){switch(C){case Le:if(r.byteLength!=d.byteLength||r.byteOffset!=d.byteOffset)return!1;r=r.buffer,d=d.buffer;case Me:return!(r.byteLength!=d.byteLength||!U(new Jl(r),new Jl(d)));case me:case we:case gt:return Hi(+r,+d);case $e:return r.name==d.name&&r.message==d.message;case kn:case Pe:return r==d+"";case dt:var ee=be;case tn: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=Kv(ee(r),ee(d),D,z,U,Z);return Z.delete(r),ge;case Be:if(ba)return ba.call(r)==ba.call(d)}return!1}function ET(r,d,C,D,z,U){var Z=C&o,ee=kd(r),re=ee.length,pe=kd(d),ge=pe.length;if(re!=ge&&!Z)return!1;for(var ye=re;ye--;){var Ae=ee[ye];if(!(Z?Ae in d:Rt.call(d,Ae)))return!1}var Oe=U.get(r),Ue=U.get(d);if(Oe&&Ue)return Oe==d&&Ue==r;var lt=!0;U.set(r,d),U.set(d,r);for(var Ve=Z;++ye<re;){Ae=ee[ye];var mt=r[Ae],bt=d[Ae];if(D)var vi=Z?D(bt,mt,Ae,d,r,U):D(mt,bt,Ae,r,d,U);if(!(vi===e?mt===bt||z(mt,bt,C,D,U):vi)){lt=!1;break}Ve||(Ve=Ae=="constructor")}if(lt&&!Ve){var Qn=r.constructor,yi=d.constructor;Qn!=yi&&"constructor"in r&&"constructor"in d&&!(typeof Qn=="function"&&Qn instanceof Qn&&typeof yi=="function"&&yi instanceof yi)&&(lt=!1)}return U.delete(r),U.delete(d),lt}function _r(r){return Rd(ty(r,e,uy),r+"")}function kd(r){return gv(r,In,Ad)}function $d(r){return gv(r,ai,Zv)}var Sd=oc?function(r){return oc.get(r)}:Ud;function wc(r){for(var d=r.name+"",C=gs[d],D=Rt.call(gs,d)?C.length:0;D--;){var z=C[D],U=z.func;if(U==null||U==r)return z.name}return d}function ws(r){var d=Rt.call(j,"placeholder")?j:r;return d.placeholder}function je(){var r=j.iteratee||jd;return r=r===jd?yv:r,arguments.length?r(arguments[0],arguments[1]):r}function bc(r,d){var C=r.__data__;return PT(d)?C[typeof d=="string"?"string":"hash"]:C.map}function Cd(r){for(var d=In(r),C=d.length;C--;){var D=d[C],z=r[D];d[C]=[D,z,Jv(z)]}return d}function Ro(r,d){var C=K(r,d);return vv(C)?C:e}function RT(r){var d=Rt.call(r,Co),C=r[Co];try{r[Co]=e;var D=!0}catch{}var z=Ql.call(r);return D&&(d?r[Co]=C:delete r[Co]),z}var Ad=ed?function(r){return r==null?[]:(r=Xe(r),ii(ed(r),function(d){return nv.call(r,d)}))}:Vd,Zv=ed?function(r){for(var d=[];r;)jn(d,Ad(r)),r=ec(r);return d}:Vd,Vn=Kn;(td&&Vn(new td(new ArrayBuffer(1)))!=Le||va&&Vn(new va)!=dt||nd&&Vn(nd.resolve())!=Zt||fs&&Vn(new fs)!=tn||ya&&Vn(new ya)!=We)&&(Vn=function(r){var d=Kn(r),C=d==Dt?r.constructor:e,D=C?Lo(C):"";if(D)switch(D){case pM:return Le;case fM:return dt;case gM:return Zt;case mM:return tn;case vM:return We}return d});function LT(r,d,C){for(var D=-1,z=C.length;++D<z;){var U=C[D],Z=U.size;switch(U.type){case"drop":r+=Z;break;case"dropRight":d-=Z;break;case"take":d=Un(d,r+Z);break;case"takeRight":r=Tn(r,d-Z);break}}return{start:r,end:d}}function IT(r){var d=r.match(Ml);return d?d[1].split(Tl):[]}function Qv(r,d,C){d=Kr(d,r);for(var D=-1,z=d.length,U=!1;++D<z;){var Z=sr(d[D]);if(!(U=r!=null&&C(r,Z)))break;r=r[Z]}return U||++D!=z?U:(z=r==null?0:r.length,!!z&&Ac(z)&&kr(Z,z)&&(Je(r)||Io(r)))}function OT(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 Xv(r){return typeof r.constructor=="function"&&!Aa(r)?ms(ec(r)):{}}function DT(r,d,C){var D=r.constructor;switch(d){case Me:return bd(r);case me:case we:return new D(+r);case Le:return yT(r,C);case qe:case Ye:case pt:case ft:case ct:case ut:case rt:case Wt:case Hn:return Ov(r,C);case dt:return new D;case gt:case Pe:return new D(r);case kn:return wT(r);case tn:return new D;case Be:return bT(r)}}function NT(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(Or,`{
|
1390
|
+
/* [wrapped with `+d+`] */
|
1391
|
+
`)}function FT(r){return Je(r)||Io(r)||!!(iv&&r&&r[iv])}function kr(r,d){var C=typeof r;return d=d??H,!!d&&(C=="number"||C!="symbol"&&gn.test(r))&&r>-1&&r%1==0&&r<d}function Zn(r,d,C){if(!Jt(C))return!1;var D=typeof d;return(D=="number"?si(C)&&kr(d,C.length):D=="string"&&d in C)?Hi(C[d],r):!1}function Md(r,d){if(Je(r))return!1;var C=typeof r;return C=="number"||C=="symbol"||C=="boolean"||r==null||mi(r)?!0:Rn.test(r)||!dr.test(r)||d!=null&&r in Xe(d)}function PT(r){var d=typeof r;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?r!=="__proto__":r===null}function Td(r){var d=wc(r),C=j[d];if(typeof C!="function"||!(d in wt.prototype))return!1;if(r===C)return!0;var D=Sd(C);return!!D&&r===D[0]}function HT(r){return!!J0&&J0 in r}var zT=Kl?$r:qd;function Aa(r){var d=r&&r.constructor,C=typeof d=="function"&&d.prototype||ps;return r===C}function Jv(r){return r===r&&!Jt(r)}function ey(r,d){return function(C){return C==null?!1:C[r]===d&&(d!==e||r in Xe(C))}}function BT(r){var d=Sc(r,function(D){return C.size===g&&C.clear(),D}),C=d.cache;return d}function jT(r,d){var C=r[1],D=d[1],z=C|D,U=z<(p|y|M),Z=D==M&&C==R||D==M&&C==E&&r[7].length<=d[8]||D==(M|E)&&d[7].length<=d[8]&&C==R;if(!(U||Z))return r;D&p&&(r[2]=d[2],z|=C&p?0:b);var ee=d[3];if(ee){var re=r[3];r[3]=re?Nv(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?Fv(re,ee,d[6]):ee,r[6]=re?ke(r[5],s):d[6]),ee=d[7],ee&&(r[7]=ee),D&M&&(r[8]=r[8]==null?d[8]:Un(r[8],d[8])),r[9]==null&&(r[9]=d[9]),r[0]=d[0],r[1]=z,r}function WT(r){var d=[];if(r!=null)for(var C in Xe(r))d.push(C);return d}function UT(r){return Ql.call(r)}function ty(r,d,C){return d=Tn(d===e?r.length-1:d,0),function(){for(var D=arguments,z=-1,U=Tn(D.length-d,0),Z=se(U);++z<U;)Z[z]=D[d+z];z=-1;for(var ee=se(d+1);++z<d;)ee[z]=D[z];return ee[d]=C(Z),Vt(r,this,ee)}}function ny(r,d){return d.length<2?r:Eo(r,Mi(d,0,-1))}function VT(r,d){for(var C=r.length,D=Un(d.length,C),z=oi(r);D--;){var U=d[D];r[D]=kr(U,C)?z[U]:e}return r}function Ed(r,d){if(!(d==="constructor"&&typeof r[d]=="function")&&d!="__proto__")return r[d]}var iy=oy(Cv),Ma=sM||function(r,d){return Cn.setTimeout(r,d)},Rd=oy(fT);function ry(r,d,C){var D=d+"";return Rd(r,NT(D,qT(IT(D),C)))}function oy(r){var d=0,C=0;return function(){var D=uM(),z=_-(D-C);if(C=D,z>0){if(++d>=$)return arguments[0]}else d=0;return r.apply(e,arguments)}}function xc(r,d){var C=-1,D=r.length,z=D-1;for(d=d===e?D:d;++C<d;){var U=pd(C,z),Z=r[U];r[U]=r[C],r[C]=Z}return r.length=d,r}var sy=BT(function(r){var d=[];return r.charCodeAt(0)===46&&d.push(""),r.replace(Qi,function(C,D,z,U){d.push(z?U.replace(pr,"$1"):D||C)}),d});function sr(r){if(typeof r=="string"||mi(r))return r;var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Lo(r){if(r!=null){try{return Zl.call(r)}catch{}try{return r+""}catch{}}return""}function qT(r,d){return Gn(Q,function(C){var D="_."+C[0];d&C[1]&&!cs(r,D)&&r.push(D)}),r.sort()}function ay(r){if(r instanceof wt)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 GT(r,d,C){(C?Zn(r,d,C):d===e)?d=1:d=Tn(st(d),0);var D=r==null?0:r.length;if(!D||d<1)return[];for(var z=0,U=0,Z=se(ic(D/d));z<D;)Z[U++]=Mi(r,z,z+=d);return Z}function YT(r){for(var d=-1,C=r==null?0:r.length,D=0,z=[];++d<C;){var U=r[d];U&&(z[D++]=U)}return z}function KT(){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],On(d,1))}var ZT=ht(function(r,d){return cn(r)?_a(r,On(d,1,cn,!0)):[]}),QT=ht(function(r,d){var C=Ti(d);return cn(C)&&(C=e),cn(r)?_a(r,On(d,1,cn,!0),je(C,2)):[]}),XT=ht(function(r,d){var C=Ti(d);return cn(C)&&(C=e),cn(r)?_a(r,On(d,1,cn,!0),e,C):[]});function JT(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:st(d),Mi(r,d<0?0:d,D)):[]}function eE(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:st(d),d=D-d,Mi(r,0,d<0?0:d)):[]}function tE(r,d){return r&&r.length?pc(r,je(d,3),!0,!0):[]}function nE(r,d){return r&&r.length?pc(r,je(d,3),!0):[]}function iE(r,d,C,D){var z=r==null?0:r.length;return z?(C&&typeof C!="number"&&Zn(r,d,C)&&(C=0,D=z),KM(r,d,C,D)):[]}function ly(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var z=C==null?0:st(C);return z<0&&(z=Tn(D+z,0)),$o(r,je(d,3),z)}function cy(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var z=D-1;return C!==e&&(z=st(C),z=C<0?Tn(D+z,0):Un(z,D-1)),$o(r,je(d,3),z,!0)}function uy(r){var d=r==null?0:r.length;return d?On(r,1):[]}function rE(r){var d=r==null?0:r.length;return d?On(r,F):[]}function oE(r,d){var C=r==null?0:r.length;return C?(d=d===e?1:st(d),On(r,d)):[]}function sE(r){for(var d=-1,C=r==null?0:r.length,D={};++d<C;){var z=r[d];D[z[0]]=z[1]}return D}function hy(r){return r&&r.length?r[0]:e}function aE(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var z=C==null?0:st(C);return z<0&&(z=Tn(D+z,0)),vr(r,d,z)}function lE(r){var d=r==null?0:r.length;return d?Mi(r,0,-1):[]}var cE=ht(function(r){var d=Bt(r,yd);return d.length&&d[0]===r[0]?ld(d):[]}),uE=ht(function(r){var d=Ti(r),C=Bt(r,yd);return d===Ti(C)?d=e:C.pop(),C.length&&C[0]===r[0]?ld(C,je(d,2)):[]}),hE=ht(function(r){var d=Ti(r),C=Bt(r,yd);return d=typeof d=="function"?d:e,d&&C.pop(),C.length&&C[0]===r[0]?ld(C,e,d):[]});function dE(r,d){return r==null?"":lM.call(r,d)}function Ti(r){var d=r==null?0:r.length;return d?r[d-1]:e}function pE(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var z=D;return C!==e&&(z=st(C),z=z<0?Tn(D+z,0):Un(z,D-1)),d===d?Et(r,d,z):$o(r,ha,z,!0)}function fE(r,d){return r&&r.length?_v(r,st(d)):e}var gE=ht(dy);function dy(r,d){return r&&r.length&&d&&d.length?dd(r,d):r}function mE(r,d,C){return r&&r.length&&d&&d.length?dd(r,d,je(C,2)):r}function vE(r,d,C){return r&&r.length&&d&&d.length?dd(r,d,e,C):r}var yE=_r(function(r,d){var C=r==null?0:r.length,D=rd(r,d);return Sv(r,Bt(d,function(z){return kr(z,C)?+z:z}).sort(Dv)),D});function wE(r,d){var C=[];if(!(r&&r.length))return C;var D=-1,z=[],U=r.length;for(d=je(d,3);++D<U;){var Z=r[D];d(Z,D,r)&&(C.push(Z),z.push(D))}return Sv(r,z),C}function Ld(r){return r==null?r:dM.call(r)}function bE(r,d,C){var D=r==null?0:r.length;return D?(C&&typeof C!="number"&&Zn(r,d,C)?(d=0,C=D):(d=d==null?0:st(d),C=C===e?D:st(C)),Mi(r,d,C)):[]}function xE(r,d){return dc(r,d)}function _E(r,d,C){return gd(r,d,je(C,2))}function kE(r,d){var C=r==null?0:r.length;if(C){var D=dc(r,d);if(D<C&&Hi(r[D],d))return D}return-1}function $E(r,d){return dc(r,d,!0)}function SE(r,d,C){return gd(r,d,je(C,2),!0)}function CE(r,d){var C=r==null?0:r.length;if(C){var D=dc(r,d,!0)-1;if(Hi(r[D],d))return D}return-1}function AE(r){return r&&r.length?Av(r):[]}function ME(r,d){return r&&r.length?Av(r,je(d,2)):[]}function TE(r){var d=r==null?0:r.length;return d?Mi(r,1,d):[]}function EE(r,d,C){return r&&r.length?(d=C||d===e?1:st(d),Mi(r,0,d<0?0:d)):[]}function RE(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:st(d),d=D-d,Mi(r,d<0?0:d,D)):[]}function LE(r,d){return r&&r.length?pc(r,je(d,3),!1,!0):[]}function IE(r,d){return r&&r.length?pc(r,je(d,3)):[]}var OE=ht(function(r){return Yr(On(r,1,cn,!0))}),DE=ht(function(r){var d=Ti(r);return cn(d)&&(d=e),Yr(On(r,1,cn,!0),je(d,2))}),NE=ht(function(r){var d=Ti(r);return d=typeof d=="function"?d:e,Yr(On(r,1,cn,!0),e,d)});function FE(r){return r&&r.length?Yr(r):[]}function PE(r,d){return r&&r.length?Yr(r,je(d,2)):[]}function HE(r,d){return d=typeof d=="function"?d:e,r&&r.length?Yr(r,e,d):[]}function Id(r){if(!(r&&r.length))return[];var d=0;return r=ii(r,function(C){if(cn(C))return d=Tn(C.length,d),!0}),rn(d,function(C){return Bt(r,pa(C))})}function py(r,d){if(!(r&&r.length))return[];var C=Id(r);return d==null?C:Bt(C,function(D){return Vt(d,e,D)})}var zE=ht(function(r,d){return cn(r)?_a(r,d):[]}),BE=ht(function(r){return vd(ii(r,cn))}),jE=ht(function(r){var d=Ti(r);return cn(d)&&(d=e),vd(ii(r,cn),je(d,2))}),WE=ht(function(r){var d=Ti(r);return d=typeof d=="function"?d:e,vd(ii(r,cn),e,d)}),UE=ht(Id);function VE(r,d){return Rv(r||[],d||[],xa)}function qE(r,d){return Rv(r||[],d||[],Sa)}var GE=ht(function(r){var d=r.length,C=d>1?r[d-1]:e;return C=typeof C=="function"?(r.pop(),C):e,py(r,C)});function fy(r){var d=j(r);return d.__chain__=!0,d}function YE(r,d){return d(r),r}function _c(r,d){return d(r)}var KE=_r(function(r){var d=r.length,C=d?r[0]:0,D=this.__wrapped__,z=function(U){return rd(U,r)};return d>1||this.__actions__.length||!(D instanceof wt)||!kr(C)?this.thru(z):(D=D.slice(C,+C+(d?1:0)),D.__actions__.push({func:_c,args:[z],thisArg:e}),new Ci(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function ZE(){return fy(this)}function QE(){return new Ci(this.value(),this.__chain__)}function XE(){this.__values__===e&&(this.__values__=My(this.value()));var r=this.__index__>=this.__values__.length,d=r?e:this.__values__[this.__index__++];return{done:r,value:d}}function JE(){return this}function eR(r){for(var d,C=this;C instanceof ac;){var D=ay(C);D.__index__=0,D.__values__=e,d?z.__wrapped__=D:d=D;var z=D;C=C.__wrapped__}return z.__wrapped__=r,d}function tR(){var r=this.__wrapped__;if(r instanceof wt){var d=r;return this.__actions__.length&&(d=new wt(this)),d=d.reverse(),d.__actions__.push({func:_c,args:[Ld],thisArg:e}),new Ci(d,this.__chain__)}return this.thru(Ld)}function nR(){return Ev(this.__wrapped__,this.__actions__)}var iR=fc(function(r,d,C){Rt.call(r,C)?++r[C]:br(r,C,1)});function rR(r,d,C){var D=Je(r)?Wr:YM;return C&&Zn(r,d,C)&&(d=e),D(r,je(d,3))}function oR(r,d){var C=Je(r)?ii:pv;return C(r,je(d,3))}var sR=Bv(ly),aR=Bv(cy);function lR(r,d){return On(kc(r,d),1)}function cR(r,d){return On(kc(r,d),F)}function uR(r,d,C){return C=C===e?1:st(C),On(kc(r,d),C)}function gy(r,d){var C=Je(r)?Gn:Gr;return C(r,je(d,3))}function my(r,d){var C=Je(r)?Ul:dv;return C(r,je(d,3))}var hR=fc(function(r,d,C){Rt.call(r,C)?r[C].push(d):br(r,C,[d])});function dR(r,d,C,D){r=si(r)?r:xs(r),C=C&&!D?st(C):0;var z=r.length;return C<0&&(C=Tn(z+C,0)),Mc(r)?C<=z&&r.indexOf(d,C)>-1:!!z&&vr(r,d,C)>-1}var pR=ht(function(r,d,C){var D=-1,z=typeof d=="function",U=si(r)?se(r.length):[];return Gr(r,function(Z){U[++D]=z?Vt(d,Z,C):ka(Z,d,C)}),U}),fR=fc(function(r,d,C){br(r,C,d)});function kc(r,d){var C=Je(r)?Bt:wv;return C(r,je(d,3))}function gR(r,d,C,D){return r==null?[]:(Je(d)||(d=d==null?[]:[d]),C=D?e:C,Je(C)||(C=C==null?[]:[C]),kv(r,d,C))}var mR=fc(function(r,d,C){r[C?0:1].push(d)},function(){return[[],[]]});function vR(r,d,C){var D=Je(r)?Si:fa,z=arguments.length<3;return D(r,je(d,4),C,z,Gr)}function yR(r,d,C){var D=Je(r)?ko:fa,z=arguments.length<3;return D(r,je(d,4),C,z,dv)}function wR(r,d){var C=Je(r)?ii:pv;return C(r,Cc(je(d,3)))}function bR(r){var d=Je(r)?lv:dT;return d(r)}function xR(r,d,C){(C?Zn(r,d,C):d===e)?d=1:d=st(d);var D=Je(r)?WM:pT;return D(r,d)}function _R(r){var d=Je(r)?UM:gT;return d(r)}function kR(r){if(r==null)return 0;if(si(r))return Mc(r)?ot(r):r.length;var d=Vn(r);return d==dt||d==tn?r.size:ud(r).length}function $R(r,d,C){var D=Je(r)?us:mT;return C&&Zn(r,d,C)&&(d=e),D(r,je(d,3))}var SR=ht(function(r,d){if(r==null)return[];var C=d.length;return C>1&&Zn(r,d[0],d[1])?d=[]:C>2&&Zn(d[0],d[1],d[2])&&(d=[d[0]]),kv(r,On(d,1),[])}),$c=oM||function(){return Cn.Date.now()};function CR(r,d){if(typeof d!="function")throw new Mn(v);return r=st(r),function(){if(--r<1)return d.apply(this,arguments)}}function vy(r,d,C){return d=C?e:d,d=r&&d==null?r.length:d,xr(r,M,e,e,e,e,d)}function yy(r,d){var C;if(typeof d!="function")throw new Mn(v);return r=st(r),function(){return--r>0&&(C=d.apply(this,arguments)),r<=1&&(d=e),C}}var Od=ht(function(r,d,C){var D=p;if(C.length){var z=ke(C,ws(Od));D|=k}return xr(r,D,d,C,z)}),wy=ht(function(r,d,C){var D=p|y;if(C.length){var z=ke(C,ws(wy));D|=k}return xr(d,D,r,C,z)});function by(r,d,C){d=C?e:d;var D=xr(r,R,e,e,e,e,e,d);return D.placeholder=by.placeholder,D}function xy(r,d,C){d=C?e:d;var D=xr(r,A,e,e,e,e,e,d);return D.placeholder=xy.placeholder,D}function _y(r,d,C){var D,z,U,Z,ee,re,pe=0,ge=!1,ye=!1,Ae=!0;if(typeof r!="function")throw new Mn(v);d=Ei(d)||0,Jt(C)&&(ge=!!C.leading,ye="maxWait"in C,U=ye?Tn(Ei(C.maxWait)||0,d):U,Ae="trailing"in C?!!C.trailing:Ae);function Oe(un){var zi=D,Cr=z;return D=z=e,pe=un,Z=r.apply(Cr,zi),Z}function Ue(un){return pe=un,ee=Ma(mt,d),ge?Oe(un):Z}function lt(un){var zi=un-re,Cr=un-pe,By=d-zi;return ye?Un(By,U-Cr):By}function Ve(un){var zi=un-re,Cr=un-pe;return re===e||zi>=d||zi<0||ye&&Cr>=U}function mt(){var un=$c();if(Ve(un))return bt(un);ee=Ma(mt,lt(un))}function bt(un){return ee=e,Ae&&D?Oe(un):(D=z=e,Z)}function vi(){ee!==e&&Lv(ee),pe=0,D=re=z=ee=e}function Qn(){return ee===e?Z:bt($c())}function yi(){var un=$c(),zi=Ve(un);if(D=arguments,z=this,re=un,zi){if(ee===e)return Ue(re);if(ye)return Lv(ee),ee=Ma(mt,d),Oe(re)}return ee===e&&(ee=Ma(mt,d)),Z}return yi.cancel=vi,yi.flush=Qn,yi}var AR=ht(function(r,d){return hv(r,1,d)}),MR=ht(function(r,d,C){return hv(r,Ei(d)||0,C)});function TR(r){return xr(r,I)}function Sc(r,d){if(typeof r!="function"||d!=null&&typeof d!="function")throw new Mn(v);var C=function(){var D=arguments,z=d?d.apply(this,D):D[0],U=C.cache;if(U.has(z))return U.get(z);var Z=r.apply(this,D);return C.cache=U.set(z,Z)||U,Z};return C.cache=new(Sc.Cache||wr),C}Sc.Cache=wr;function Cc(r){if(typeof r!="function")throw new Mn(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 ER(r){return yy(2,r)}var RR=vT(function(r,d){d=d.length==1&&Je(d[0])?Bt(d[0],Wn(je())):Bt(On(d,1),Wn(je()));var C=d.length;return ht(function(D){for(var z=-1,U=Un(D.length,C);++z<U;)D[z]=d[z].call(this,D[z]);return Vt(r,this,D)})}),Dd=ht(function(r,d){var C=ke(d,ws(Dd));return xr(r,k,e,d,C)}),ky=ht(function(r,d){var C=ke(d,ws(ky));return xr(r,x,e,d,C)}),LR=_r(function(r,d){return xr(r,E,e,e,e,d)});function IR(r,d){if(typeof r!="function")throw new Mn(v);return d=d===e?d:st(d),ht(r,d)}function OR(r,d){if(typeof r!="function")throw new Mn(v);return d=d==null?0:Tn(st(d),0),ht(function(C){var D=C[d],z=Zr(C,0,d);return D&&jn(z,D),Vt(r,this,z)})}function DR(r,d,C){var D=!0,z=!0;if(typeof r!="function")throw new Mn(v);return Jt(C)&&(D="leading"in C?!!C.leading:D,z="trailing"in C?!!C.trailing:z),_y(r,d,{leading:D,maxWait:d,trailing:z})}function NR(r){return vy(r,1)}function FR(r,d){return Dd(wd(d),r)}function PR(){if(!arguments.length)return[];var r=arguments[0];return Je(r)?r:[r]}function HR(r){return Ai(r,l)}function zR(r,d){return d=typeof d=="function"?d:e,Ai(r,l,d)}function BR(r){return Ai(r,c|l)}function jR(r,d){return d=typeof d=="function"?d:e,Ai(r,c|l,d)}function WR(r,d){return d==null||uv(r,d,In(d))}function Hi(r,d){return r===d||r!==r&&d!==d}var UR=yc(ad),VR=yc(function(r,d){return r>=d}),Io=mv(function(){return arguments}())?mv:function(r){return on(r)&&Rt.call(r,"callee")&&!nv.call(r,"callee")},Je=se.isArray,qR=jl?Wn(jl):eT;function si(r){return r!=null&&Ac(r.length)&&!$r(r)}function cn(r){return on(r)&&si(r)}function GR(r){return r===!0||r===!1||on(r)&&Kn(r)==me}var Qr=aM||qd,YR=$i?Wn($i):tT;function KR(r){return on(r)&&r.nodeType===1&&!Ta(r)}function ZR(r){if(r==null)return!0;if(si(r)&&(Je(r)||typeof r=="string"||typeof r.splice=="function"||Qr(r)||bs(r)||Io(r)))return!r.length;var d=Vn(r);if(d==dt||d==tn)return!r.size;if(Aa(r))return!ud(r).length;for(var C in r)if(Rt.call(r,C))return!1;return!0}function QR(r,d){return $a(r,d)}function XR(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 Nd(r){if(!on(r))return!1;var d=Kn(r);return d==$e||d==fe||typeof r.message=="string"&&typeof r.name=="string"&&!Ta(r)}function JR(r){return typeof r=="number"&&rv(r)}function $r(r){if(!Jt(r))return!1;var d=Kn(r);return d==at||d==Ht||d==ae||d==Zi}function $y(r){return typeof r=="number"&&r==st(r)}function Ac(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=H}function Jt(r){var d=typeof r;return r!=null&&(d=="object"||d=="function")}function on(r){return r!=null&&typeof r=="object"}var Sy=Ni?Wn(Ni):iT;function eL(r,d){return r===d||cd(r,d,Cd(d))}function tL(r,d,C){return C=typeof C=="function"?C:e,cd(r,d,Cd(d),C)}function nL(r){return Cy(r)&&r!=+r}function iL(r){if(zT(r))throw new Fe(f);return vv(r)}function rL(r){return r===null}function oL(r){return r==null}function Cy(r){return typeof r=="number"||on(r)&&Kn(r)==gt}function Ta(r){if(!on(r)||Kn(r)!=Dt)return!1;var d=ec(r);if(d===null)return!0;var C=Rt.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&Zl.call(C)==tM}var Fd=ir?Wn(ir):rT;function sL(r){return $y(r)&&r>=-H&&r<=H}var Ay=mr?Wn(mr):oT;function Mc(r){return typeof r=="string"||!Je(r)&&on(r)&&Kn(r)==Pe}function mi(r){return typeof r=="symbol"||on(r)&&Kn(r)==Be}var bs=Wl?Wn(Wl):sT;function aL(r){return r===e}function lL(r){return on(r)&&Vn(r)==We}function cL(r){return on(r)&&Kn(r)==ce}var uL=yc(hd),hL=yc(function(r,d){return r<=d});function My(r){if(!r)return[];if(si(r))return Mc(r)?Ge(r):oi(r);if(ma&&r[ma])return de(r[ma]());var d=Vn(r),C=d==dt?be:d==tn?Ce:xs;return C(r)}function Sr(r){if(!r)return r===0?r:0;if(r=Ei(r),r===F||r===-F){var d=r<0?-1:1;return d*W}return r===r?r:0}function st(r){var d=Sr(r),C=d%1;return d===d?C?d-C:d:0}function Ty(r){return r?To(st(r),0,q):0}function Ei(r){if(typeof r=="number")return r;if(mi(r))return V;if(Jt(r)){var d=typeof r.valueOf=="function"?r.valueOf():r;r=Jt(d)?d+"":d}if(typeof r!="string")return r===0?r:+r;r=Qt(r);var C=Ji.test(r);return C||fn.test(r)?Nt(r.slice(2),C?2:8):El.test(r)?V:+r}function Ey(r){return or(r,ai(r))}function dL(r){return r?To(st(r),-H,H):r===0?r:0}function Mt(r){return r==null?"":gi(r)}var pL=vs(function(r,d){if(Aa(d)||si(d)){or(d,In(d),r);return}for(var C in d)Rt.call(d,C)&&xa(r,C,d[C])}),Ry=vs(function(r,d){or(d,ai(d),r)}),Tc=vs(function(r,d,C,D){or(d,ai(d),r,D)}),fL=vs(function(r,d,C,D){or(d,In(d),r,D)}),gL=_r(rd);function mL(r,d){var C=ms(r);return d==null?C:cv(C,d)}var vL=ht(function(r,d){r=Xe(r);var C=-1,D=d.length,z=D>2?d[2]:e;for(z&&Zn(d[0],d[1],z)&&(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||Hi(ge,ps[pe])&&!Rt.call(r,pe))&&(r[pe]=U[pe])}return r}),yL=ht(function(r){return r.push(e,Yv),Vt(Ly,e,r)});function wL(r,d){return ua(r,je(d,3),rr)}function bL(r,d){return ua(r,je(d,3),sd)}function xL(r,d){return r==null?r:od(r,je(d,3),ai)}function _L(r,d){return r==null?r:fv(r,je(d,3),ai)}function kL(r,d){return r&&rr(r,je(d,3))}function $L(r,d){return r&&sd(r,je(d,3))}function SL(r){return r==null?[]:uc(r,In(r))}function CL(r){return r==null?[]:uc(r,ai(r))}function Pd(r,d,C){var D=r==null?e:Eo(r,d);return D===e?C:D}function AL(r,d){return r!=null&&Qv(r,d,ZM)}function Hd(r,d){return r!=null&&Qv(r,d,QM)}var ML=Wv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Ql.call(d)),r[d]=C},Bd(li)),TL=Wv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Ql.call(d)),Rt.call(r,d)?r[d].push(C):r[d]=[C]},je),EL=ht(ka);function In(r){return si(r)?av(r):ud(r)}function ai(r){return si(r)?av(r,!0):aT(r)}function RL(r,d){var C={};return d=je(d,3),rr(r,function(D,z,U){br(C,d(D,z,U),D)}),C}function LL(r,d){var C={};return d=je(d,3),rr(r,function(D,z,U){br(C,z,d(D,z,U))}),C}var IL=vs(function(r,d,C){hc(r,d,C)}),Ly=vs(function(r,d,C,D){hc(r,d,C,D)}),OL=_r(function(r,d){var C={};if(r==null)return C;var D=!1;d=Bt(d,function(U){return U=Kr(U,r),D||(D=U.length>1),U}),or(r,$d(r),C),D&&(C=Ai(C,c|a|l,MT));for(var z=d.length;z--;)md(C,d[z]);return C});function DL(r,d){return Iy(r,Cc(je(d)))}var NL=_r(function(r,d){return r==null?{}:cT(r,d)});function Iy(r,d){if(r==null)return{};var C=Bt($d(r),function(D){return[D]});return d=je(d),$v(r,C,function(D,z){return d(D,z[0])})}function FL(r,d,C){d=Kr(d,r);var D=-1,z=d.length;for(z||(z=1,r=e);++D<z;){var U=r==null?e:r[sr(d[D])];U===e&&(D=z,U=C),r=$r(U)?U.call(r):U}return r}function PL(r,d,C){return r==null?r:Sa(r,d,C)}function HL(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:Sa(r,d,C,D)}var Oy=qv(In),Dy=qv(ai);function zL(r,d,C){var D=Je(r),z=D||Qr(r)||bs(r);if(d=je(d,4),C==null){var U=r&&r.constructor;z?C=D?new U:[]:Jt(r)?C=$r(U)?ms(ec(r)):{}:C={}}return(z?Gn:rr)(r,function(Z,ee,re){return d(C,Z,ee,re)}),C}function BL(r,d){return r==null?!0:md(r,d)}function jL(r,d,C){return r==null?r:Tv(r,d,wd(C))}function WL(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:Tv(r,d,wd(C),D)}function xs(r){return r==null?[]:So(r,In(r))}function UL(r){return r==null?[]:So(r,ai(r))}function VL(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),To(Ei(r),d,C)}function qL(r,d,C){return d=Sr(d),C===e?(C=d,d=0):C=Sr(C),r=Ei(r),XM(r,d,C)}function GL(r,d,C){if(C&&typeof C!="boolean"&&Zn(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=Sr(r),d===e?(d=r,r=0):d=Sr(d)),r>d){var D=r;r=d,d=D}if(C||r%1||d%1){var z=ov();return Un(r+z*(d-r+vn("1e-"+((z+"").length-1))),d)}return pd(r,d)}var YL=ys(function(r,d,C){return d=d.toLowerCase(),r+(C?Ny(d):d)});function Ny(r){return zd(Mt(r).toLowerCase())}function Fy(r){return r=Mt(r),r&&r.replace(es,P).replace(zr,"")}function KL(r,d,C){r=Mt(r),d=gi(d);var D=r.length;C=C===e?D:To(st(C),0,D);var z=C;return C-=d.length,C>=0&&r.slice(C,z)==d}function ZL(r){return r=Mt(r),r&&Uh.test(r)?r.replace(Al,B):r}function QL(r){return r=Mt(r),r&&Lr.test(r)?r.replace(Xi,"\\$&"):r}var XL=ys(function(r,d,C){return r+(C?"-":"")+d.toLowerCase()}),JL=ys(function(r,d,C){return r+(C?" ":"")+d.toLowerCase()}),eI=zv("toLowerCase");function tI(r,d,C){r=Mt(r),d=st(d);var D=d?ot(r):0;if(!d||D>=d)return r;var z=(d-D)/2;return vc(rc(z),C)+r+vc(ic(z),C)}function nI(r,d,C){r=Mt(r),d=st(d);var D=d?ot(r):0;return d&&D<d?r+vc(d-D,C):r}function iI(r,d,C){r=Mt(r),d=st(d);var D=d?ot(r):0;return d&&D<d?vc(d-D,C)+r:r}function rI(r,d,C){return C||d==null?d=0:d&&(d=+d),hM(Mt(r).replace(zn,""),d||0)}function oI(r,d,C){return(C?Zn(r,d,C):d===e)?d=1:d=st(d),fd(Mt(r),d)}function sI(){var r=arguments,d=Mt(r[0]);return r.length<3?d:d.replace(r[1],r[2])}var aI=ys(function(r,d,C){return r+(C?"_":"")+d.toLowerCase()});function lI(r,d,C){return C&&typeof C!="number"&&Zn(r,d,C)&&(d=C=e),C=C===e?q:C>>>0,C?(r=Mt(r),r&&(typeof d=="string"||d!=null&&!Fd(d))&&(d=gi(d),!d&&te(r))?Zr(Ge(r),0,C):r.split(d,C)):[]}var cI=ys(function(r,d,C){return r+(C?" ":"")+zd(d)});function uI(r,d,C){return r=Mt(r),C=C==null?0:To(st(C),0,r.length),d=gi(d),r.slice(C,C+d.length)==d}function hI(r,d,C){var D=j.templateSettings;C&&Zn(r,d,C)&&(d=e),r=Mt(r),d=Tc({},d,D,Gv);var z=Tc({},d.imports,D.imports,Gv),U=In(z),Z=So(z,U),ee,re,pe=0,ge=d.interpolate||Bn,ye="__p += '",Ae=An((d.escape||Bn).source+"|"+ge.source+"|"+(ge===He?Kh:Bn).source+"|"+(d.evaluate||Bn).source+"|$","g"),Oe="//# sourceURL="+(Rt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zl+"]")+`
|
1392
|
+
`;r.replace(Ae,function(Ve,mt,bt,vi,Qn,yi){return bt||(bt=vi),ye+=r.slice(pe,yi).replace(vo,Y),mt&&(ee=!0,ye+=`' +
|
1393
|
+
__e(`+mt+`) +
|
1394
|
+
'`),Qn&&(re=!0,ye+=`';
|
1395
|
+
`+Qn+`;
|
1396
|
+
__p += '`),bt&&(ye+=`' +
|
1397
|
+
((__t = (`+bt+`)) == null ? '' : __t) +
|
1398
|
+
'`),pe=yi+Ve.length,Ve}),ye+=`';
|
1399
|
+
`;var Ue=Rt.call(d,"variable")&&d.variable;if(!Ue)ye=`with (obj) {
|
1400
|
+
`+ye+`
|
1401
|
+
}
|
1402
|
+
`;else if(Yh.test(Ue))throw new Fe(w);ye=(re?ye.replace(hr,""):ye).replace(ti,"$1").replace(Vs,"$1;"),ye="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
|
+
`)+ye+`return __p
|
1408
|
+
}`;var lt=Hy(function(){return Ze(U,Oe+"return "+ye).apply(e,Z)});if(lt.source=ye,Nd(lt))throw lt;return lt}function dI(r){return Mt(r).toLowerCase()}function pI(r){return Mt(r).toUpperCase()}function fI(r,d,C){if(r=Mt(r),r&&(C||d===e))return Qt(r);if(!r||!(d=gi(d)))return r;var D=Ge(r),z=Ge(d),U=Gl(D,z),Z=Yl(D,z)+1;return Zr(D,U,Z).join("")}function gI(r,d,C){if(r=Mt(r),r&&(C||d===e))return r.slice(0,Qe(r)+1);if(!r||!(d=gi(d)))return r;var D=Ge(r),z=Yl(D,Ge(d))+1;return Zr(D,0,z).join("")}function mI(r,d,C){if(r=Mt(r),r&&(C||d===e))return r.replace(zn,"");if(!r||!(d=gi(d)))return r;var D=Ge(r),z=Gl(D,Ge(d));return Zr(D,z).join("")}function vI(r,d){var C=T,D=N;if(Jt(d)){var z="separator"in d?d.separator:z;C="length"in d?st(d.length):C,D="omission"in d?gi(d.omission):D}r=Mt(r);var U=r.length;if(te(r)){var Z=Ge(r);U=Z.length}if(C>=U)return r;var ee=C-ot(D);if(ee<1)return D;var re=Z?Zr(Z,0,ee).join(""):r.slice(0,ee);if(z===e)return re+D;if(Z&&(ee+=re.length-ee),Fd(z)){if(r.slice(ee).search(z)){var pe,ge=re;for(z.global||(z=An(z.source,Mt(Dr.exec(z))+"g")),z.lastIndex=0;pe=z.exec(ge);)var ye=pe.index;re=re.slice(0,ye===e?ee:ye)}}else if(r.indexOf(gi(z),ee)!=ee){var Ae=re.lastIndexOf(z);Ae>-1&&(re=re.slice(0,Ae))}return re+D}function yI(r){return r=Mt(r),r&&Wh.test(r)?r.replace(qs,Ie):r}var wI=ys(function(r,d,C){return r+(C?" ":"")+d.toUpperCase()}),zd=zv("toUpperCase");function Py(r,d,C){return r=Mt(r),d=C?e:d,d===e?oe(r)?qt(r):hs(r):r.match(d)||[]}var Hy=ht(function(r,d){try{return Vt(r,e,d)}catch(C){return Nd(C)?C:new Fe(C)}}),bI=_r(function(r,d){return Gn(d,function(C){C=sr(C),br(r,C,Od(r[C],r))}),r});function xI(r){var d=r==null?0:r.length,C=je();return r=d?Bt(r,function(D){if(typeof D[1]!="function")throw new Mn(v);return[C(D[0]),D[1]]}):[],ht(function(D){for(var z=-1;++z<d;){var U=r[z];if(Vt(U[0],this,D))return Vt(U[1],this,D)}})}function _I(r){return GM(Ai(r,c))}function Bd(r){return function(){return r}}function kI(r,d){return r==null||r!==r?d:r}var $I=jv(),SI=jv(!0);function li(r){return r}function jd(r){return yv(typeof r=="function"?r:Ai(r,c))}function CI(r){return bv(Ai(r,c))}function AI(r,d){return xv(r,Ai(d,c))}var MI=ht(function(r,d){return function(C){return ka(C,r,d)}}),TI=ht(function(r,d){return function(C){return ka(r,C,d)}});function Wd(r,d,C){var D=In(d),z=uc(d,D);C==null&&!(Jt(d)&&(z.length||!D.length))&&(C=d,d=r,r=this,z=uc(d,In(d)));var U=!(Jt(C)&&"chain"in C)||!!C.chain,Z=$r(r);return Gn(z,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__),ye=ge.__actions__=oi(this.__actions__);return ye.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,jn([this.value()],arguments))})}),r}function EI(){return Cn._===this&&(Cn._=nM),this}function Ud(){}function RI(r){return r=st(r),ht(function(d){return _v(d,r)})}var LI=xd(Bt),II=xd(Wr),OI=xd(us);function zy(r){return Md(r)?pa(sr(r)):uT(r)}function DI(r){return function(d){return r==null?e:Eo(r,d)}}var NI=Uv(),FI=Uv(!0);function Vd(){return[]}function qd(){return!1}function PI(){return{}}function HI(){return""}function zI(){return!0}function BI(r,d){if(r=st(r),r<1||r>H)return[];var C=q,D=Un(r,q);d=je(d),r-=q;for(var z=rn(D,d);++C<r;)d(C);return z}function jI(r){return Je(r)?Bt(r,sr):mi(r)?[r]:oi(sy(Mt(r)))}function WI(r){var d=++eM;return Mt(r)+d}var UI=mc(function(r,d){return r+d},0),VI=_d("ceil"),qI=mc(function(r,d){return r/d},1),GI=_d("floor");function YI(r){return r&&r.length?cc(r,li,ad):e}function KI(r,d){return r&&r.length?cc(r,je(d,2),ad):e}function ZI(r){return da(r,li)}function QI(r,d){return da(r,je(d,2))}function XI(r){return r&&r.length?cc(r,li,hd):e}function JI(r,d){return r&&r.length?cc(r,je(d,2),hd):e}var eO=mc(function(r,d){return r*d},1),tO=_d("round"),nO=mc(function(r,d){return r-d},0);function iO(r){return r&&r.length?Vr(r,li):0}function rO(r,d){return r&&r.length?Vr(r,je(d,2)):0}return j.after=CR,j.ary=vy,j.assign=pL,j.assignIn=Ry,j.assignInWith=Tc,j.assignWith=fL,j.at=gL,j.before=yy,j.bind=Od,j.bindAll=bI,j.bindKey=wy,j.castArray=PR,j.chain=fy,j.chunk=GT,j.compact=YT,j.concat=KT,j.cond=xI,j.conforms=_I,j.constant=Bd,j.countBy=iR,j.create=mL,j.curry=by,j.curryRight=xy,j.debounce=_y,j.defaults=vL,j.defaultsDeep=yL,j.defer=AR,j.delay=MR,j.difference=ZT,j.differenceBy=QT,j.differenceWith=XT,j.drop=JT,j.dropRight=eE,j.dropRightWhile=tE,j.dropWhile=nE,j.fill=iE,j.filter=oR,j.flatMap=lR,j.flatMapDeep=cR,j.flatMapDepth=uR,j.flatten=uy,j.flattenDeep=rE,j.flattenDepth=oE,j.flip=TR,j.flow=$I,j.flowRight=SI,j.fromPairs=sE,j.functions=SL,j.functionsIn=CL,j.groupBy=hR,j.initial=lE,j.intersection=cE,j.intersectionBy=uE,j.intersectionWith=hE,j.invert=ML,j.invertBy=TL,j.invokeMap=pR,j.iteratee=jd,j.keyBy=fR,j.keys=In,j.keysIn=ai,j.map=kc,j.mapKeys=RL,j.mapValues=LL,j.matches=CI,j.matchesProperty=AI,j.memoize=Sc,j.merge=IL,j.mergeWith=Ly,j.method=MI,j.methodOf=TI,j.mixin=Wd,j.negate=Cc,j.nthArg=RI,j.omit=OL,j.omitBy=DL,j.once=ER,j.orderBy=gR,j.over=LI,j.overArgs=RR,j.overEvery=II,j.overSome=OI,j.partial=Dd,j.partialRight=ky,j.partition=mR,j.pick=NL,j.pickBy=Iy,j.property=zy,j.propertyOf=DI,j.pull=gE,j.pullAll=dy,j.pullAllBy=mE,j.pullAllWith=vE,j.pullAt=yE,j.range=NI,j.rangeRight=FI,j.rearg=LR,j.reject=wR,j.remove=wE,j.rest=IR,j.reverse=Ld,j.sampleSize=xR,j.set=PL,j.setWith=HL,j.shuffle=_R,j.slice=bE,j.sortBy=SR,j.sortedUniq=AE,j.sortedUniqBy=ME,j.split=lI,j.spread=OR,j.tail=TE,j.take=EE,j.takeRight=RE,j.takeRightWhile=LE,j.takeWhile=IE,j.tap=YE,j.throttle=DR,j.thru=_c,j.toArray=My,j.toPairs=Oy,j.toPairsIn=Dy,j.toPath=jI,j.toPlainObject=Ey,j.transform=zL,j.unary=NR,j.union=OE,j.unionBy=DE,j.unionWith=NE,j.uniq=FE,j.uniqBy=PE,j.uniqWith=HE,j.unset=BL,j.unzip=Id,j.unzipWith=py,j.update=jL,j.updateWith=WL,j.values=xs,j.valuesIn=UL,j.without=zE,j.words=Py,j.wrap=FR,j.xor=BE,j.xorBy=jE,j.xorWith=WE,j.zip=UE,j.zipObject=VE,j.zipObjectDeep=qE,j.zipWith=GE,j.entries=Oy,j.entriesIn=Dy,j.extend=Ry,j.extendWith=Tc,Wd(j,j),j.add=UI,j.attempt=Hy,j.camelCase=YL,j.capitalize=Ny,j.ceil=VI,j.clamp=VL,j.clone=HR,j.cloneDeep=BR,j.cloneDeepWith=jR,j.cloneWith=zR,j.conformsTo=WR,j.deburr=Fy,j.defaultTo=kI,j.divide=qI,j.endsWith=KL,j.eq=Hi,j.escape=ZL,j.escapeRegExp=QL,j.every=rR,j.find=sR,j.findIndex=ly,j.findKey=wL,j.findLast=aR,j.findLastIndex=cy,j.findLastKey=bL,j.floor=GI,j.forEach=gy,j.forEachRight=my,j.forIn=xL,j.forInRight=_L,j.forOwn=kL,j.forOwnRight=$L,j.get=Pd,j.gt=UR,j.gte=VR,j.has=AL,j.hasIn=Hd,j.head=hy,j.identity=li,j.includes=dR,j.indexOf=aE,j.inRange=qL,j.invoke=EL,j.isArguments=Io,j.isArray=Je,j.isArrayBuffer=qR,j.isArrayLike=si,j.isArrayLikeObject=cn,j.isBoolean=GR,j.isBuffer=Qr,j.isDate=YR,j.isElement=KR,j.isEmpty=ZR,j.isEqual=QR,j.isEqualWith=XR,j.isError=Nd,j.isFinite=JR,j.isFunction=$r,j.isInteger=$y,j.isLength=Ac,j.isMap=Sy,j.isMatch=eL,j.isMatchWith=tL,j.isNaN=nL,j.isNative=iL,j.isNil=oL,j.isNull=rL,j.isNumber=Cy,j.isObject=Jt,j.isObjectLike=on,j.isPlainObject=Ta,j.isRegExp=Fd,j.isSafeInteger=sL,j.isSet=Ay,j.isString=Mc,j.isSymbol=mi,j.isTypedArray=bs,j.isUndefined=aL,j.isWeakMap=lL,j.isWeakSet=cL,j.join=dE,j.kebabCase=XL,j.last=Ti,j.lastIndexOf=pE,j.lowerCase=JL,j.lowerFirst=eI,j.lt=uL,j.lte=hL,j.max=YI,j.maxBy=KI,j.mean=ZI,j.meanBy=QI,j.min=XI,j.minBy=JI,j.stubArray=Vd,j.stubFalse=qd,j.stubObject=PI,j.stubString=HI,j.stubTrue=zI,j.multiply=eO,j.nth=fE,j.noConflict=EI,j.noop=Ud,j.now=$c,j.pad=tI,j.padEnd=nI,j.padStart=iI,j.parseInt=rI,j.random=GL,j.reduce=vR,j.reduceRight=yR,j.repeat=oI,j.replace=sI,j.result=FL,j.round=tO,j.runInContext=ne,j.sample=bR,j.size=kR,j.snakeCase=aI,j.some=$R,j.sortedIndex=xE,j.sortedIndexBy=_E,j.sortedIndexOf=kE,j.sortedLastIndex=$E,j.sortedLastIndexBy=SE,j.sortedLastIndexOf=CE,j.startCase=cI,j.startsWith=uI,j.subtract=nO,j.sum=iO,j.sumBy=rO,j.template=hI,j.times=BI,j.toFinite=Sr,j.toInteger=st,j.toLength=Ty,j.toLower=dI,j.toNumber=Ei,j.toSafeInteger=dL,j.toString=Mt,j.toUpper=pI,j.trim=fI,j.trimEnd=gI,j.trimStart=mI,j.truncate=vI,j.unescape=yI,j.uniqueId=WI,j.upperCase=wI,j.upperFirst=zd,j.each=gy,j.eachRight=my,j.first=hy,Wd(j,function(){var r={};return rr(j,function(d,C){Rt.call(j.prototype,C)||(r[C]=d)}),r}(),{chain:!1}),j.VERSION=i,Gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){j[r].placeholder=j}),Gn(["drop","take"],function(r,d){wt.prototype[r]=function(C){C=C===e?1:Tn(st(C),0);var D=this.__filtered__&&!d?new wt(this):this.clone();return D.__filtered__?D.__takeCount__=Un(C,D.__takeCount__):D.__views__.push({size:Un(C,q),type:r+(D.__dir__<0?"Right":"")}),D},wt.prototype[r+"Right"]=function(C){return this.reverse()[r](C).reverse()}}),Gn(["filter","map","takeWhile"],function(r,d){var C=d+1,D=C==S||C==O;wt.prototype[r]=function(z){var U=this.clone();return U.__iteratees__.push({iteratee:je(z,3),type:C}),U.__filtered__=U.__filtered__||D,U}}),Gn(["head","last"],function(r,d){var C="take"+(d?"Right":"");wt.prototype[r]=function(){return this[C](1).value()[0]}}),Gn(["initial","tail"],function(r,d){var C="drop"+(d?"":"Right");wt.prototype[r]=function(){return this.__filtered__?new wt(this):this[C](1)}}),wt.prototype.compact=function(){return this.filter(li)},wt.prototype.find=function(r){return this.filter(r).head()},wt.prototype.findLast=function(r){return this.reverse().find(r)},wt.prototype.invokeMap=ht(function(r,d){return typeof r=="function"?new wt(this):this.map(function(C){return ka(C,r,d)})}),wt.prototype.reject=function(r){return this.filter(Cc(je(r)))},wt.prototype.slice=function(r,d){r=st(r);var C=this;return C.__filtered__&&(r>0||d<0)?new wt(C):(r<0?C=C.takeRight(-r):r&&(C=C.drop(r)),d!==e&&(d=st(d),C=d<0?C.dropRight(-d):C.take(d-r)),C)},wt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},wt.prototype.toArray=function(){return this.take(q)},rr(wt.prototype,function(r,d){var C=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),z=j[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);z&&(j.prototype[d]=function(){var Z=this.__wrapped__,ee=D?[1]:arguments,re=Z instanceof wt,pe=ee[0],ge=re||Je(Z),ye=function(mt){var bt=z.apply(j,jn([mt],ee));return D&&Ae?bt[0]:bt};ge&&C&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Ae=this.__chain__,Oe=!!this.__actions__.length,Ue=U&&!Ae,lt=re&&!Oe;if(!U&&ge){Z=lt?Z:new wt(this);var Ve=r.apply(Z,ee);return Ve.__actions__.push({func:_c,args:[ye],thisArg:e}),new Ci(Ve,Ae)}return Ue&<?r.apply(this,ee):(Ve=this.thru(ye),Ue?D?Ve.value()[0]:Ve.value():Ve)})}),Gn(["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);j.prototype[r]=function(){var z=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Je(U)?U:[],z)}return this[C](function(Z){return d.apply(Je(Z)?Z:[],z)})}}),rr(wt.prototype,function(r,d){var C=j[d];if(C){var D=C.name+"";Rt.call(gs,D)||(gs[D]=[]),gs[D].push({name:d,func:C})}}),gs[gc(e,y).name]=[{name:"wrapper",func:e}],wt.prototype.clone=yM,wt.prototype.reverse=wM,wt.prototype.value=bM,j.prototype.at=KE,j.prototype.chain=ZE,j.prototype.commit=QE,j.prototype.next=XE,j.prototype.plant=eR,j.prototype.reverse=tR,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=nR,j.prototype.first=j.prototype.head,ma&&(j.prototype[ma]=JE),j},Pt=Ft();Ln?((Ln.exports=Pt)._=Pt,ki._=Pt):Cn._=Pt}).call(Y1)}(Ka,Ka.exports)),Ka.exports}var Ef=K1();yn("K",La(Ef)).debounce(function(){this.rebuildDisplayText()},300);var Rf={exports:{}},Lf;function Z1(){return Lf||(Lf=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n.exports=e})})()}(Rf)),Rf.exports}Z1();const Q1=!0,wn="u-",X1="uplot",J1=wn+"hz",ex=wn+"vt",tx=wn+"title",nx=wn+"wrap",ix=wn+"under",rx=wn+"over",ox=wn+"axis",ao=wn+"off",sx=wn+"select",ax=wn+"cursor-x",lx=wn+"cursor-y",cx=wn+"cursor-pt",ux=wn+"legend",hx=wn+"live",dx=wn+"inline",px=wn+"series",fx=wn+"marker",If=wn+"label",gx=wn+"value",Rs="width",Ls="height",Is="top",Of="bottom",zo="left",ru="right",ou="#000",Df=ou+"0",Nf="mousemove",Ff="mousedown",su="mouseup",Pf="mouseenter",Hf="mouseleave",zf="dblclick",mx="resize",vx="scroll",Bf="change",Za="dppxchange",au="--",Bo=typeof window<"u",lu=Bo?document:null,jo=Bo?window:null,yx=Bo?navigator:null;let _t,Qa;function cu(){let n=devicePixelRatio;_t!=n&&(_t=n,Qa&&du(Bf,Qa,cu),Qa=matchMedia(`(min-resolution: ${_t-.001}dppx) and (max-resolution: ${_t+.001}dppx)`),lo(Bf,Qa,cu),jo.dispatchEvent(new CustomEvent(Za)))}function ui(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function uu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function jt(n,t,e){n.style[t]=e+"px"}function Ii(n,t,e,i){let m=lu.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 jf=new WeakMap;function qi(n,t,e,i,m){let f="translate("+t+"px,"+e+"px)",v=jf.get(n);f!=v&&(n.style.transform=f,jf.set(n,f),t<0||e<0||t>i||e>m?ui(n,ao):uu(n,ao))}const Wf=new WeakMap;function Uf(n,t,e){let i=t+e,m=Wf.get(n);i!=m&&(Wf.set(n,i),n.style.background=t,n.style.borderColor=e)}const Vf=new WeakMap;function qf(n,t,e,i){let m=t+""+e,f=Vf.get(n);m!=f&&(Vf.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 hu={passive:!0},wx={...hu,capture:!0};function lo(n,t,e,i){t.addEventListener(n,e,i?wx:hu)}function du(n,t,e,i){t.removeEventListener(n,e,hu)}Bo&&cu();function Oi(n,t,e,i){let m;e=e||0,i=i||t.length-1;let f=i<=2147483647;for(;i-e>1;)m=f?e+i>>1:di((e+i)/2),t[m]<n?e=m:i=m;return n-t[e]<=t[i]-n?e:i}function Wo(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 bx(n,t,e,i){let m=vt,f=-vt;if(i==1)m=n[t],f=n[e];else if(i==-1)m=n[e],f=n[t];else for(let v=t;v<=e;v++){let w=n[v];w!=null&&(w<m&&(m=w),w>f&&(f=w))}return[m,f]}function xx(n,t,e){let i=vt,m=-vt;for(let f=t;f<=e;f++){let v=n[f];v!=null&&v>0&&(v<i&&(i=v),v>m&&(m=v))}return[i,m]}function Xa(n,t,e,i){let m=Kf(n),f=Kf(t);n==t&&(m==-1?(n*=e,t/=e):(n/=e,t*=e));let v=e==10?cr:Zf,w=m==1?di:bi,h=f==1?bi:di,g=w(v(bn(n))),s=h(v(bn(t))),c=Uo(e,g),a=Uo(e,s);return e==10&&(g<0&&(c=Ot(c,-g)),s<0&&(a=Ot(a,-s))),i||e==2?(n=c*m,t=a*f):(n=ng(n,c),t=tl(t,a)),[n,t]}function pu(n,t,e,i){let m=Xa(n,t,e,i);return n==0&&(m[0]=0),t==0&&(m[1]=0),m}const fu=.1,Gf={mode:3,pad:fu},Os={pad:0,soft:null,mode:0},_x={min:Os,max:Os};function Ja(n,t,e,i){return nl(e)?Yf(n,t,e):(Os.pad=e,Os.soft=i?0:null,Os.mode=i?3:0,Yf(n,t,_x))}function xt(n,t){return n??t}function kx(n,t,e){for(t=xt(t,0),e=xt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Yf(n,t,e){let i=e.min,m=e.max,f=xt(i.pad,0),v=xt(m.pad,0),w=xt(i.hard,-vt),h=xt(m.hard,vt),g=xt(i.soft,vt),s=xt(m.soft,-vt),c=xt(i.mode,0),a=xt(m.mode,0),l=t-n,o=cr(l),u=Nn(bn(n),bn(t)),p=cr(u),y=bn(p-o);(l<1e-24||y>10)&&(l=0,(n==0||t==0)&&(l=1e-24,c==2&&g!=vt&&(f=0),a==2&&s!=-vt&&(v=0)));let b=l||u||1e3,R=cr(b),A=Uo(10,di(R)),k=b*(l==0?n==0?.1:1:f),x=Ot(ng(n-k,A/10),24),M=n>=g&&(c==1||c==3&&x<=g||c==2&&x>=g)?g:vt,E=Nn(w,x<M&&n>=M?M:xi(M,x)),I=b*(l==0?t==0?.1:1:v),T=Ot(tl(t+I,A/10),24),N=t<=s&&(a==1||a==3&&T>=s||a==2&&T<=s)?s:-vt,$=xi(h,T>N&&t<=N?N:Nn(N,T));return E==$&&E==0&&($=100),[E,$]}const $x=new Intl.NumberFormat(Bo?yx.language:"en-US"),gu=n=>$x.format(n),hi=Math,el=hi.PI,bn=hi.abs,di=hi.floor,xn=hi.round,bi=hi.ceil,xi=hi.min,Nn=hi.max,Uo=hi.pow,Kf=hi.sign,cr=hi.log10,Zf=hi.log2,Sx=(n,t=1)=>hi.sinh(n)*t,mu=(n,t=1)=>hi.asinh(n/t),vt=1/0;function Qf(n){return(cr((n^n>>31)-(n>>31))|0)+1}function vu(n,t,e){return xi(Nn(n,t),e)}function yt(n){return typeof n=="function"?n:()=>n}const Cx=()=>{},Xf=n=>n,Jf=(n,t)=>t,eg=n=>!0,tg=(n,t)=>n==t,Ax=/\.\d*?(?=9{6,}|0{6,})/gm,co=n=>{if(rg(n)||Er.has(n))return n;const t=`${n}`,e=t.match(Ax);if(e==null)return n;let i=e[0].length-1;if(t.indexOf("e-")!=-1){let[m,f]=t.split("e");return+`${co(m)}e${f}`}return Ot(n,i)};function uo(n,t){return co(Ot(co(n/t))*t)}function tl(n,t){return co(bi(co(n/t))*t)}function ng(n,t){return co(di(co(n/t))*t)}function Ot(n,t=0){if(rg(n))return n;let e=10**t,i=n*e*(1+Number.EPSILON);return xn(i)/e}const Er=new Map;function ig(n){return((""+n).split(".")[1]||"").length}function Ds(n,t,e,i){let m=[],f=i.map(ig);for(let v=t;v<e;v++){let w=bn(v),h=Ot(Uo(n,v),w);for(let g=0;g<i.length;g++){let s=n==10?+`${i[g]}e${v}`:i[g]*h,c=(v>=0?0:w)+(v>=f[g]?0:f[g]),a=n==10?s:Ot(s,c);m.push(a),Er.set(a,c)}}return m}const Ns={},yu=[],Vo=[null,null],Rr=Array.isArray,rg=Number.isInteger,Mx=n=>n===void 0;function og(n){return typeof n=="string"}function nl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function Tx(n){return n!=null&&typeof n=="object"}const Ex=Object.getPrototypeOf(Uint8Array),sg="__proto__";function qo(n,t=nl){let e;if(Rr(n)){let i=n.find(m=>m!=null);if(Rr(i)||t(i)){e=Array(n.length);for(let m=0;m<n.length;m++)e[m]=qo(n[m],t)}else e=n.slice()}else if(n instanceof Ex)e=n.slice();else if(t(n)){e={};for(let i in n)i!=sg&&(e[i]=qo(n[i],t))}else e=n;return e}function pn(n){let t=arguments;for(let e=1;e<t.length;e++){let i=t[e];for(let m in i)m!=sg&&(nl(n[m])?pn(n[m],qo(i[m])):n[m]=qo(i[m]))}return n}const Rx=0,Lx=1,Ix=2;function Ox(n,t,e){for(let i=0,m,f=-1;i<t.length;i++){let v=t[i];if(v>f){for(m=v-1;m>=0&&n[m]==null;)n[m--]=null;for(m=v+1;m<e&&n[m]==null;)n[f=m++]=null}}}function Dx(n,t){if(Px(n)){let v=n[0].slice();for(let w=1;w<n.length;w++)v.push(...n[w].slice(1));return Hx(v[0])||(v=Fx(v)),v}let e=new Set;for(let v=0;v<n.length;v++){let w=n[v][0],h=w.length;for(let g=0;g<h;g++)e.add(w[g])}let i=[Array.from(e).sort((v,w)=>v-w)],m=i[0].length,f=new Map;for(let v=0;v<m;v++)f.set(i[0][v],v);for(let v=0;v<n.length;v++){let w=n[v],h=w[0];for(let g=1;g<w.length;g++){let s=w[g],c=Array(m).fill(void 0),a=t?t[v][g]:Lx,l=[];for(let o=0;o<s.length;o++){let u=s[o],p=f.get(h[o]);u===null?a!=Rx&&(c[p]=u,a==Ix&&l.push(p)):c[p]=u}Ox(c,l,m),i.push(c)}}return i}const Nx=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Fx(n){let t=n[0],e=t.length,i=Array(e);for(let f=0;f<i.length;f++)i[f]=f;i.sort((f,v)=>t[f]-t[v]);let m=[];for(let f=0;f<n.length;f++){let v=n[f],w=Array(e);for(let h=0;h<e;h++)w[h]=v[i[h]];m.push(w)}return m}function Px(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 f=0;f<e;f++)if(m[f]!=t[f])return!1}}return!0}function Hx(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 f=Nn(1,di((m-i+1)/t));for(let v=n[i],w=i+f;w<=m;w+=f){const h=n[w];if(h!=null){if(h<=v)return!1;v=h}}return!0}const ag=["January","February","March","April","May","June","July","August","September","October","November","December"],lg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function cg(n){return n.slice(0,3)}const zx=lg.map(cg),Bx=ag.map(cg),jx={MMMM:ag,MMM:Bx,WWWW:lg,WWW:zx};function Fs(n){return(n<10?"0":"")+n}function Wx(n){return(n<10?"00":n<100?"0":"")+n}const Ux={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=>Fs(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Fs(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Fs(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=>Fs(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Fs(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>Wx(n.getMilliseconds())};function wu(n,t){t=t||jx;let e=[],i=/\{([a-z]+)\}|[^{]+/gi,m;for(;m=i.exec(n);)e.push(m[0][0]=="{"?Ux[m[1]]:m[0]);return f=>{let v="";for(let w=0;w<e.length;w++)v+=typeof e[w]=="string"?e[w]:e[w](f,t);return v}}const Vx=new Intl.DateTimeFormat().resolvedOptions().timeZone;function qx(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Vx?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const ug=n=>n%1==0,il=[1,2,2.5,5],Gx=Ds(10,-32,0,il),hg=Ds(10,0,32,il),Yx=hg.filter(ug),ho=Gx.concat(hg),bu=`
|
1409
|
+
`,dg="{YYYY}",pg=bu+dg,fg="{M}/{D}",Ps=bu+fg,rl=Ps+"/{YY}",gg="{aa}",Kx="{h}:{mm}",Go=Kx+gg,mg=bu+Go,vg=":{ss}",St=null;function yg(n){let t=n*1e3,e=t*60,i=e*60,m=i*24,f=m*30,v=m*365,w=(n==1?Ds(10,0,3,il).filter(ug):Ds(10,-3,0,il)).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,f,f*2,f*3,f*4,f*6,v,v*2,v*5,v*10,v*25,v*50,v*100]);const h=[[v,dg,St,St,St,St,St,St,1],[m*28,"{MMM}",pg,St,St,St,St,St,1],[m,fg,pg,St,St,St,St,St,1],[i,"{h}"+gg,rl,St,Ps,St,St,St,1],[e,Go,rl,St,Ps,St,St,St,1],[t,vg,rl+" "+Go,St,Ps+" "+Go,St,mg,St,1],[n,vg+".{fff}",rl+" "+Go,St,Ps+" "+Go,St,mg,St,1]];function g(s){return(c,a,l,o,u,p)=>{let y=[],b=u>=v,R=u>=f&&u<v,A=s(l),k=Ot(A*n,3),x=xu(A.getFullYear(),b?0:A.getMonth(),R||b?1:A.getDate()),M=Ot(x*n,3);if(R||b){let E=R?u/f:0,I=b?u/v:0,T=k==M?k:Ot(xu(x.getFullYear()+I,x.getMonth()+E,1)*n,3),N=new Date(xn(T/n)),$=N.getFullYear(),_=N.getMonth();for(let S=0;T<=o;S++){let L=xu($+I*S,_+E*S,1),O=L-s(Ot(L*n,3));T=Ot((+L+O)*n,3),T<=o&&y.push(T)}}else{let E=u>=m?m:u,I=di(l)-di(k),T=M+I+tl(k-M,E);y.push(T);let N=s(T),$=N.getHours()+N.getMinutes()/e+N.getSeconds()/i,_=u/i,S=c.axes[a]._space,L=p/S;for(;T=Ot(T+u,n==1?0:3),!(T>o);)if(_>1){let O=di(Ot($+_,6))%24,F=s(T).getHours()-O;F>1&&(F=-1),T-=F*i,$=($+_)%24;let H=y[y.length-1];Ot((T-H)/u,3)*L>=.7&&y.push(T)}else y.push(T)}return y}}return[w,h,g]}const[Zx,Qx,Xx]=yg(1),[Jx,e_,t_]=yg(.001);Ds(2,-53,53,[1]);function wg(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 bg(n,t){return(e,i,m,f,v)=>{let w=t.find(o=>v>=o[0])||t[t.length-1],h,g,s,c,a,l;return i.map(o=>{let u=n(o),p=u.getFullYear(),y=u.getMonth(),b=u.getDate(),R=u.getHours(),A=u.getMinutes(),k=u.getSeconds(),x=p!=h&&w[2]||y!=g&&w[3]||b!=s&&w[4]||R!=c&&w[5]||A!=a&&w[6]||k!=l&&w[7]||w[1];return h=p,g=y,s=b,c=R,a=A,l=k,x(u)})}}function n_(n,t){let e=wu(t);return(i,m,f,v,w)=>m.map(h=>e(n(h)))}function xu(n,t,e){return new Date(n,t,e)}function xg(n,t){return t(n)}const i_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function _g(n,t){return(e,i,m,f)=>f==null?au:t(n(i))}function r_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function o_(n,t){return n.series[t].fill(n,t)}const s_={show:!0,live:!0,isolate:!1,mount:Cx,markers:{show:!0,width:2,stroke:r_,fill:o_,dash:"solid"},idx:null,idxs:null,values:[]};function a_(n,t){let e=n.cursor.points,i=wi(),m=e.size(n,t);jt(i,Rs,m),jt(i,Ls,m);let f=m/-2;jt(i,"marginLeft",f),jt(i,"marginTop",f);let v=e.width(n,t,m);return v&&jt(i,"borderWidth",v),i}function l_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function c_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function u_(n,t){return n.series[t].points.size}const _u=[0,0];function h_(n,t,e){return _u[0]=t,_u[1]=e,_u}function ol(n,t,e,i=!0){return m=>{m.button==0&&(!i||m.target==t)&&e(m)}}function ku(n,t,e,i=!0){return m=>{(!i||m.target==t)&&e(m)}}const d_={show:!0,x:!0,y:!0,lock:!1,move:h_,points:{one:!1,show:a_,size:u_,width:0,stroke:c_,fill:l_},bind:{mousedown:ol,mouseup:ol,click:ol,dblclick:ol,mousemove:ku,mouseleave:ku,mouseenter:ku},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},kg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},$u=pn({},kg,{filter:Jf}),$g=pn({},$u,{size:10}),Sg=pn({},kg,{show:!1}),Su='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"',Cg="bold "+Su,Ag=1.5,Mg={show:!0,scale:"x",stroke:ou,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Cg,side:2,grid:$u,ticks:$g,border:Sg,font:Su,lineGap:Ag,rotate:0},p_="Value",f_="Time",Tg={show:!0,scale:"x",auto:!1,sorted:1,min:vt,max:-vt,idxs:[]};function g_(n,t,e,i,m){return t.map(f=>f==null?"":gu(f))}function m_(n,t,e,i,m,f,v){let w=[],h=Er.get(m)||0;e=v?e:Ot(tl(e,m),h);for(let g=e;g<=i;g=Ot(g+m,h))w.push(Object.is(g,-0)?0:g);return w}function Cu(n,t,e,i,m,f,v){const w=[],h=n.scales[n.axes[t].scale].log,g=h==10?cr:Zf,s=di(g(e));m=Uo(h,s),h==10&&(m=ho[Oi(m,ho)]);let c=e,a=m*h;h==10&&(a=ho[Oi(a,ho)]);do w.push(c),c=c+m,h==10&&!Er.has(c)&&(c=Ot(c,Er.get(m))),c>=a&&(m=c,a=m*h,h==10&&(a=ho[Oi(a,ho)]));while(c<=i);return w}function v_(n,t,e,i,m,f,v){let w=n.scales[n.axes[t].scale].asinh,h=i>w?Cu(n,t,Nn(w,e),i,m):[w],g=i>=0&&e<=0?[0]:[];return(e<-w?Cu(n,t,Nn(w,-i),-e,m):[w]).reverse().map(s=>-s).concat(g,h)}const Eg=/./,y_=/[12357]/,w_=/[125]/,Rg=/1/,Au=(n,t,e,i)=>n.map((m,f)=>t==4&&m==0||f%i==0&&e.test(m.toExponential()[m<0?1:0])?m:null);function b_(n,t,e,i,m){let f=n.axes[e],v=f.scale,w=n.scales[v],h=n.valToPos,g=f._space,s=h(10,v),c=h(9,v)-s>=g?Eg:h(7,v)-s>=g?y_:h(5,v)-s>=g?w_:Rg;if(c==Rg){let a=bn(h(1,v)-s);if(a<g)return Au(t.slice().reverse(),w.distr,c,bi(g/a)).reverse()}return Au(t,w.distr,c,1)}function x_(n,t,e,i,m){let f=n.axes[e],v=f.scale,w=f._space,h=n.valToPos,g=bn(h(1,v)-h(2,v));return g<w?Au(t.slice().reverse(),3,Eg,bi(w/g)).reverse():t}function __(n,t,e,i){return i==null?au:t==null?"":gu(t)}const Lg={show:!0,scale:"y",stroke:ou,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Cg,side:3,grid:$u,ticks:$g,border:Sg,font:Su,lineGap:Ag,rotate:0};function k_(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],f=n.valToPos(m[i[0]],e,!0),v=n.valToPos(m[i[1]],e,!0),w=bn(v-f),h=n.series[t],g=w/(h.points.space*_t);return i[1]-i[0]<=g}const Ig={scale:null,auto:!0,sorted:0,min:vt,max:-vt},Og=(n,t,e,i,m)=>m,Dg={show:!0,auto:!0,sorted:0,gaps:Og,alpha:1,facets:[pn({},Ig,{scale:"x"}),pn({},Ig,{scale:"y"})]},Ng={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Og,alpha:1,points:{show:$_,filter:null},values:null,min:vt,max:-vt,idxs:[],path:null,clip:null};function S_(n,t,e,i,m){return e/10}const Fg={time:Q1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},C_=pn({},Fg,{time:!1,ori:1}),Pg={};function Hg(n,t){let e=Pg[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,f,v,w,h,g){for(let s=0;s<e.plots.length;s++)e.plots[s]!=m&&e.plots[s].pub(i,m,f,v,w,h,g)}},n!=null&&(Pg[n]=e)),e}const Yo=1,Mu=2;function po(n,t,e){const i=n.mode,m=n.series[t],f=i==2?n._data[t]:n._data,v=n.scales,w=n.bbox;let h=f[0],g=i==2?f[1]:f[t],s=i==2?v[m.facets[0].scale]:v[n.series[0].scale],c=i==2?v[m.facets[1].scale]:v[m.scale],a=w.left,l=w.top,o=w.width,u=w.height,p=n.valToPosH,y=n.valToPosV;return s.ori==0?e(m,h,g,s,c,p,y,a,l,o,u,al,Ko,cl,jg,Ug):e(m,h,g,s,c,y,p,l,a,u,o,ll,Zo,Ru,Wg,Vg)}function Tu(n,t){let e=0,i=0,m=xt(n.bands,yu);for(let f=0;f<m.length;f++){let v=m[f];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 A_(n,t,e,i,m){let f=n.mode,v=n.series[t],w=f==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 ur(n,t,e,i,m,f){return po(n,t,(v,w,h,g,s,c,a,l,o,u,p)=>{let y=v.pxRound;const b=g.dir*(g.ori==0?1:-1),R=g.ori==0?Ko:Zo;let A,k;b==1?(A=e,k=i):(A=i,k=e);let x=y(c(w[A],g,u,l)),M=y(a(h[A],s,p,o)),E=y(c(w[k],g,u,l)),I=y(a(f==1?s.max:s.min,s,p,o)),T=new Path2D(m);return R(T,E,I),R(T,x,I),R(T,x,M),T})}function sl(n,t,e,i,m,f){let v=null;if(n.length>0){v=new Path2D;const w=t==0?cl:Ru;let h=e;for(let c=0;c<n.length;c++){let a=n[c];if(a[1]>a[0]){let l=a[0]-h;l>0&&w(v,h,i,l,i+f),h=a[1]}}let g=e+m-h,s=10;g>0&&w(v,h,i-s/2,g,i+f+s)}return v}function M_(n,t,e){let i=n[n.length-1];i&&i[0]==t?i[1]=e:n.push([t,e])}function Eu(n,t,e,i,m,f,v){let w=[],h=n.length;for(let g=m==1?e:i;g>=e&&g<=i;g+=m)if(t[g]===null){let s=g,c=g;if(m==1)for(;++g<=i&&t[g]===null;)c=g;else for(;--g>=e&&t[g]===null;)c=g;let a=f(n[s]),l=c==s?a:f(n[c]),o=s-m;a=v<=0&&o>=0&&o<h?f(n[o]):a;let u=c+m;l=v>=0&&u>=0&&u<h?f(n[u]):l,l>=a&&w.push([a,l])}return w}function zg(n){return n==0?Xf:n==1?xn:t=>uo(t,n)}function Bg(n){let t=n==0?al:ll,e=n==0?(m,f,v,w,h,g)=>{m.arcTo(f,v,w,h,g)}:(m,f,v,w,h,g)=>{m.arcTo(v,f,h,w,g)},i=n==0?(m,f,v,w,h)=>{m.rect(f,v,w,h)}:(m,f,v,w,h)=>{m.rect(v,f,h,w)};return(m,f,v,w,h,g=0,s=0)=>{g==0&&s==0?i(m,f,v,w,h):(g=xi(g,w/2,h/2),s=xi(s,w/2,h/2),t(m,f+g,v),e(m,f+w,v,f+w,v+h,g),e(m,f+w,v+h,f,v+h,s),e(m,f,v+h,f,v,s),e(m,f,v,f+w,v,g),m.closePath())}}const al=(n,t,e)=>{n.moveTo(t,e)},ll=(n,t,e)=>{n.moveTo(e,t)},Ko=(n,t,e)=>{n.lineTo(t,e)},Zo=(n,t,e)=>{n.lineTo(e,t)},cl=Bg(0),Ru=Bg(1),jg=(n,t,e,i,m,f)=>{n.arc(t,e,i,m,f)},Wg=(n,t,e,i,m,f)=>{n.arc(e,t,i,m,f)},Ug=(n,t,e,i,m,f,v)=>{n.bezierCurveTo(t,e,i,m,f,v)},Vg=(n,t,e,i,m,f,v)=>{n.bezierCurveTo(e,t,m,i,v,f)};function qg(n){return(t,e,i,m,f)=>po(t,e,(v,w,h,g,s,c,a,l,o,u,p)=>{let{pxRound:y,points:b}=v,R,A;g.ori==0?(R=al,A=jg):(R=ll,A=Wg);const k=Ot(b.width*_t,3);let x=(b.size-b.width)/2*_t,M=Ot(x*2,3),E=new Path2D,I=new Path2D,{left:T,top:N,width:$,height:_}=t.bbox;cl(I,T-M,N-M,$+M*2,_+M*2);const S=L=>{if(h[L]!=null){let O=y(c(w[L],g,u,l)),F=y(a(h[L],s,p,o));R(E,O+x,F),A(E,O,F,x,0,el*2)}};if(f)f.forEach(S);else for(let L=i;L<=m;L++)S(L);return{stroke:k>0?E:null,fill:E,clip:I,flags:Yo|Mu}})}function Gg(n){return(t,e,i,m,f,v)=>{i!=m&&(f!=i&&v!=i&&n(t,e,i),f!=m&&v!=m&&n(t,e,m),n(t,e,v))}}const T_=Gg(Ko),E_=Gg(Zo);function Yg(n){const t=xt(n==null?void 0:n.alignGaps,0);return(e,i,m,f)=>po(e,i,(v,w,h,g,s,c,a,l,o,u,p)=>{let y=v.pxRound,b=J=>y(c(J,g,u,l)),R=J=>y(a(J,s,p,o)),A,k;g.ori==0?(A=Ko,k=T_):(A=Zo,k=E_);const x=g.dir*(g.ori==0?1:-1),M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Yo},E=M.stroke;let I=vt,T=-vt,N,$,_,S=b(w[x==1?m:f]),L=Wo(h,m,f,1*x),O=Wo(h,m,f,-1*x),F=b(w[L]),H=b(w[O]),W=!1;for(let J=x==1?m:f;J>=m&&J<=f;J+=x){let G=b(w[J]),Q=h[J];G==S?Q!=null?($=R(Q),I==vt&&(A(E,G,$),N=$),I=xi($,I),T=Nn($,T)):Q===null&&(W=!0):(I!=vt&&(k(E,S,I,T,N,$),_=S),Q!=null?($=R(Q),A(E,G,$),I=T=N=$):(I=vt,T=-vt,Q===null&&(W=!0)),S=G)}I!=vt&&I!=T&&_!=S&&k(E,S,I,T,N,$);let[V,q]=Tu(e,i);if(v.fill!=null||V!=0){let J=M.fill=new Path2D(E),G=v.fillTo(e,i,v.min,v.max,V),Q=R(G);A(J,H,Q),A(J,F,Q)}if(!v.spanGaps){let J=[];W&&J.push(...Eu(w,h,m,f,x,b,t)),M.gaps=J=v.gaps(e,i,m,f,J),M.clip=sl(J,g.ori,l,o,u,p)}return q!=0&&(M.band=q==2?[ur(e,i,m,f,E,-1),ur(e,i,m,f,E,1)]:ur(e,i,m,f,E,q)),M})}function R_(n){const t=xt(n.align,1),e=xt(n.ascDesc,!1),i=xt(n.alignGaps,0),m=xt(n.extend,!1);return(f,v,w,h)=>po(f,v,(g,s,c,a,l,o,u,p,y,b,R)=>{let A=g.pxRound,{left:k,width:x}=f.bbox,M=V=>A(o(V,a,b,p)),E=V=>A(u(V,l,R,y)),I=a.ori==0?Ko:Zo;const T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Yo},N=T.stroke,$=a.dir*(a.ori==0?1:-1);w=Wo(c,w,h,1),h=Wo(c,w,h,-1);let _=E(c[$==1?w:h]),S=M(s[$==1?w:h]),L=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=c[V];if(q==null)continue;let J=M(s[V]),G=E(q);t==1?I(N,J,_):I(N,L,G),I(N,J,G),_=G,L=J}let F=L;m&&t==1&&(F=k+x,I(N,F,_));let[H,W]=Tu(f,v);if(g.fill!=null||H!=0){let V=T.fill=new Path2D(N),q=g.fillTo(f,v,g.min,g.max,H),J=E(q);I(V,F,J),I(V,O,J)}if(!g.spanGaps){let V=[];V.push(...Eu(s,c,w,h,$,M,i));let q=g.width*_t/2,J=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Q=>{Q[0]+=J,Q[1]+=G}),T.gaps=V=g.gaps(f,v,w,h,V),T.clip=sl(V,a.ori,p,y,b,R)}return W!=0&&(T.band=W==2?[ur(f,v,w,h,N,-1),ur(f,v,w,h,N,1)]:ur(f,v,w,h,N,W)),T})}function Kg(n,t,e,i,m,f,v=vt){if(n.length>1){let w=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let s=bn(n[h]-n[w]);s<g&&(g=s,v=bn(e(n[h],i,m,f)-e(n[w],i,m,f)))}w=h}}return v}function L_(n){n=n||Ns;const t=xt(n.size,[.6,vt,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 f=yt(m),v=1-t[0],w=xt(t[1],vt),h=xt(t[2],1),g=xt(n.disp,Ns),s=xt(n.each,l=>{}),{fill:c,stroke:a}=g;return(l,o,u,p)=>po(l,o,(y,b,R,A,k,x,M,E,I,T,N)=>{let $=y.pxRound,_=e,S=i*_t,L=w*_t,O=h*_t,F,H;A.ori==0?[F,H]=f(l,o):[H,F]=f(l,o);const W=A.dir*(A.ori==0?1:-1);let V=A.ori==0?cl:Ru,q=A.ori==0?s:(We,ce,Me,Le,qe,Ye,pt)=>{s(We,ce,Me,qe,Le,pt,Ye)},J=xt(l.bands,yu).find(We=>We.series[0]==o),G=J!=null?J.dir:0,Q=y.fillTo(l,o,y.min,y.max,G),ie=$(M(Q,k,N,I)),X,ae,me,we=T,fe=$(y.width*_t),$e=!1,at=null,Ht=null,dt=null,gt=null;c!=null&&(fe==0||a!=null)&&($e=!0,at=c.values(l,o,u,p),Ht=new Map,new Set(at).forEach(We=>{We!=null&&Ht.set(We,new Path2D)}),fe>0&&(dt=a.values(l,o,u,p),gt=new Map,new Set(dt).forEach(We=>{We!=null&>.set(We,new Path2D)})));let{x0:ln,size:Dt}=g;if(ln!=null&&Dt!=null){_=1,b=ln.values(l,o,u,p),ln.unit==2&&(b=b.map(ce=>l.posToVal(E+ce*T,A.key,!0)));let We=Dt.values(l,o,u,p);Dt.unit==2?ae=We[0]*T:ae=x(We[0],A,T,E)-x(0,A,T,E),we=Kg(b,R,x,A,T,E,we),me=we-ae+S}else we=Kg(b,R,x,A,T,E,we),me=we*v+S,ae=we-me;me<1&&(me=0),fe>=ae/2&&(fe=0),me<5&&($=Xf);let Zt=me>0,Zi=we-me-(Zt?fe:0);ae=$(vu(Zi,O,L)),X=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?S/2:0)+(Zt?fe/2:0));const kn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},tn=$e?null:new Path2D;let Pe=null;if(J!=null)Pe=l.data[J.series[1]];else{let{y0:We,y1:ce}=g;We!=null&&ce!=null&&(R=ce.values(l,o,u,p),Pe=We.values(l,o,u,p))}let Be=F*ae,nn=H*ae;for(let We=W==1?u:p;We>=u&&We<=p;We+=W){let ce=R[We];if(ce==null)continue;if(Pe!=null){let ut=Pe[We]??0;if(ce-ut==0)continue;ie=M(ut,k,N,I)}let Me=A.distr!=2||g!=null?b[We]:We,Le=x(Me,A,T,E),qe=M(xt(ce,Q),k,N,I),Ye=$(Le-X),pt=$(Nn(qe,ie)),ft=$(xi(qe,ie)),ct=pt-ft;if(ce!=null){let ut=ce<0?nn:Be,rt=ce<0?Be:nn;$e?(fe>0&&dt[We]!=null&&V(gt.get(dt[We]),Ye,ft+di(fe/2),ae,Nn(0,ct-fe),ut,rt),at[We]!=null&&V(Ht.get(at[We]),Ye,ft+di(fe/2),ae,Nn(0,ct-fe),ut,rt)):V(tn,Ye,ft+di(fe/2),ae,Nn(0,ct-fe),ut,rt),q(l,o,We,Ye-fe/2,ft,ae+fe,ct)}}return fe>0?kn.stroke=$e?gt:tn:$e||(kn._fill=y.width==0?y._fill:y._stroke??y._fill,kn.width=0),kn.fill=$e?Ht:tn,kn})}function I_(n,t){const e=xt(t==null?void 0:t.alignGaps,0);return(i,m,f,v)=>po(i,m,(w,h,g,s,c,a,l,o,u,p,y)=>{let b=w.pxRound,R=F=>b(a(F,s,p,o)),A=F=>b(l(F,c,y,u)),k,x,M;s.ori==0?(k=al,M=Ko,x=Ug):(k=ll,M=Zo,x=Vg);const E=s.dir*(s.ori==0?1:-1);f=Wo(g,f,v,1),v=Wo(g,f,v,-1);let I=R(h[E==1?f:v]),T=I,N=[],$=[];for(let F=E==1?f:v;F>=f&&F<=v;F+=E)if(g[F]!=null){let H=h[F],W=R(H);N.push(T=W),$.push(A(g[F]))}const _={stroke:n(N,$,k,M,x,b),fill:null,clip:null,band:null,gaps:null,flags:Yo},S=_.stroke;let[L,O]=Tu(i,m);if(w.fill!=null||L!=0){let F=_.fill=new Path2D(S),H=w.fillTo(i,m,w.min,w.max,L),W=A(H);M(F,T,W),M(F,I,W)}if(!w.spanGaps){let F=[];F.push(...Eu(h,g,f,v,E,R,e)),_.gaps=F=w.gaps(i,m,f,v,F),_.clip=sl(F,s.ori,o,u,p,y)}return O!=0&&(_.band=O==2?[ur(i,m,f,v,S,-1),ur(i,m,f,v,S,1)]:ur(i,m,f,v,S,O)),_})}function O_(n){return I_(D_,n)}function D_(n,t,e,i,m,f){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),g=Array(v-1),s=Array(v-1),c=Array(v-1);for(let a=0;a<v-1;a++)s[a]=t[a+1]-t[a],c[a]=n[a+1]-n[a],g[a]=s[a]/c[a];h[0]=g[0];for(let a=1;a<v-1;a++)g[a]===0||g[a-1]===0||g[a-1]>0!=g[a]>0?h[a]=0:(h[a]=3*(c[a-1]+c[a])/((2*c[a]+c[a-1])/g[a-1]+(c[a]+2*c[a-1])/g[a]),isFinite(h[a])||(h[a]=0));h[v-1]=g[v-2];for(let a=0;a<v-1;a++)m(w,n[a]+c[a]/3,t[a]+h[a]*c[a]/3,n[a+1]-c[a]/3,t[a+1]-h[a+1]*c[a]/3,n[a+1],t[a+1])}return w}const Lu=new Set;function Zg(){for(let n of Lu)n.syncRect(!0)}Bo&&(lo(mx,jo,Zg),lo(vx,jo,Zg,!0),lo(Za,jo,()=>{Fn.pxRatio=_t}));const N_=Yg(),F_=qg();function Qg(n,t,e,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((m,f)=>Iu(m,f,t,e))}function P_(n,t){return n.map((e,i)=>i==0?{}:pn({},t,e))}function Iu(n,t,e,i){return pn({},t==0?e:i,n)}function Xg(n,t,e){return t==null?Vo:[t,e]}const H_=Xg;function z_(n,t,e){return t==null?Vo:Ja(t,e,fu,!0)}function Jg(n,t,e,i){return t==null?Vo:Xa(t,e,n.scales[i].log,!1)}const B_=Jg;function em(n,t,e,i){return t==null?Vo:pu(t,e,n.scales[i].log,!1)}const j_=em;function W_(n,t,e,i,m){let f=Nn(Qf(n),Qf(t)),v=t-n,w=Oi(m/i*v,e);do{let h=e[w],g=i*h/v;if(g>=m&&f+(h<5?Er.get(h):0)<=17)return[h,g]}while(++w<e.length);return[0,0]}function tm(n){let t,e;return n=n.replace(/(\d+)px/,(i,m)=>(t=xn((e=+m)*_t))+"px"),[n,t,e]}function U_(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Ot(t[2]*_t,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Fn(n,t,e){const i={mode:xt(n.mode,1)},m=i.mode;function f(P,B){return((B.distr==3?cr(P>0?P:B.clamp(i,P,B.min,B.max,B.key)):B.distr==4?mu(P,B.asinh):B.distr==100?B.fwd(P):P)-B._min)/(B._max-B._min)}function v(P,B,Y,K){let te=f(P,B);return K+Y*(B.dir==-1?1-te:te)}function w(P,B,Y,K){let te=f(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 g=!1;i.status=0;const s=i.root=wi(X1);if(n.id!=null&&(s.id=n.id),ui(s,n.class),n.title){let P=wi(tx,s);P.textContent=n.title}const c=Ii("canvas"),a=i.ctx=c.getContext("2d"),l=wi(nx,s);lo("click",l,P=>{P.target===u&&(ze!=Br||zt!=jr)&&Sn.click(i,P)},!0);const o=i.under=wi(ix,l);l.appendChild(c);const u=i.over=wi(rx,l);n=qo(n);const p=+xt(n.pxAlign,1),y=zg(p);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const b=n.ms||.001,R=i.series=m==1?Qg(n.series||[],Tg,Ng,!1):P_(n.series||[null],Dg),A=i.axes=Qg(n.axes||[],Mg,Lg,!0),k=i.scales={},x=i.bands=n.bands||[];x.forEach(P=>{P.fill=yt(P.fill||null),P.dir=xt(P.dir,-1)});const M=m==2?R[1].facets[0].scale:R[0].scale,E={axes:Zh,series:Il},I=(n.drawOrder||["axes","series"]).map(P=>E[P]);function T(P){let B=k[P];if(B==null){let Y=(n.scales||Ns)[P]||Ns;if(Y.from!=null)T(Y.from),k[P]=pn({},k[Y.from],Y,{key:P});else{B=k[P]=pn({},P==M?Fg:C_,Y),B.key=P;let K=B.time,te=B.range,oe=Rr(te);if((P!=M||m==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Gf:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Gf:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&nl(te))){let de=te;te=(be,_e,ke)=>_e==null?Vo:Ja(_e,ke,de)}B.range=yt(te||(K?H_:P==M?B.distr==3?B_:B.distr==4?j_:Xg:B.distr==3?Jg:B.distr==4?em:z_)),B.auto=yt(oe?!1:B.auto),B.clamp=yt(B.clamp||S_),B._min=B._max=null}}}T("x"),T("y"),m==1&&R.forEach(P=>{T(P.scale)}),A.forEach(P=>{T(P.scale)});for(let P in n.scales)T(P);const N=k[M],$=N.distr;let _,S;N.ori==0?(ui(s,J1),_=v,S=w):(ui(s,ex),_=w,S=v);const L={};for(let P in k){let B=k[P];(B.min!=null||B.max!=null)&&(L[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||wu,H=b==1?Xx(O):t_(O),W=bg(O,wg(b==1?Qx:e_,F)),V=_g(O,xg(i_,F)),q=[],J=i.legend=pn({},s_,n.legend),G=J.show,Q=J.markers;J.idxs=q,Q.width=yt(Q.width),Q.dash=yt(Q.dash),Q.stroke=yt(Q.stroke),Q.fill=yt(Q.fill);let ie,X,ae,me=[],we=[],fe,$e=!1,at={};if(J.live){const P=R[1]?R[1].values:null;$e=P!=null,fe=$e?P(i,1,0):{_:0};for(let B in fe)at[B]=au}if(G)if(ie=Ii("table",ux,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 Ht in fe)Ii("th",If,P).textContent=Ht}else ui(ie,dx),J.live&&ui(ie,hx);const dt={show:!0},gt={show:!1};function ln(P,B){if(B==0&&($e||!J.live||m==2))return Vo;let Y=[],K=Ii("tr",px,ae,ae.childNodes[B]);ui(K,P.class),P.show||ui(K,ao);let te=Ii("th",null,K);if(Q.show){let be=wi(fx,te);if(B>0){let _e=Q.width(i,B);_e&&(be.style.border=_e+"px "+Q.dash(i,B)+" "+Q.stroke(i,B)),be.style.background=Q.fill(i,B)}}let oe=wi(If,te);oe.textContent=P.label,B>0&&(Q.show||(oe.style.color=P.width>0?Q.stroke(i,B):Q.fill(i,B)),Zt("click",te,be=>{if(He._lock)return;dr(be);let _e=R.indexOf(P);if((be.ctrlKey||be.metaKey)!=J.isolate){let ke=R.some((Ce,Te)=>Te>0&&Te!=_e&&Ce.show);R.forEach((Ce,Te)=>{Te>0&&Ln(Te,ke?Te==_e?dt:gt:dt,!0,Qt.setSeries)})}else Ln(_e,{show:!P.show},!0,Qt.setSeries)},!1),Xi&&Zt(Pf,te,be=>{He._lock||(dr(be),Ln(R.indexOf(P),mr,!0,Qt.setSeries))},!1));for(var de in fe){let be=Ii("td",gx,K);be.textContent="--",Y.push(be)}return[K,Y]}const Dt=new Map;function Zt(P,B,Y,K=!0){const te=Dt.get(B)||{},oe=He.bind[P](i,B,Y,K);oe&&(lo(P,B,te[P]=oe),Dt.set(B,te))}function Zi(P,B,Y){const K=Dt.get(B)||{};for(let te in K)(P==null||te==P)&&(du(te,B,K[te]),delete K[te]);P==null&&Dt.delete(B)}let kn=0,tn=0,Pe=0,Be=0,nn=0,We=0,ce=nn,Me=We,Le=Pe,qe=Be,Ye=0,pt=0,ft=0,ct=0;i.bbox={};let ut=!1,rt=!1,Wt=!1,Hn=!1,hr=!1,ti=!1;function Vs(P,B,Y){(Y||P!=i.width||B!=i.height)&&qs(P,B),fr(!1),Wt=!0,rt=!0,Hr()}function qs(P,B){i.width=kn=Pe=P,i.height=tn=Be=B,nn=We=0,Vh(),qh();let Y=i.bbox;Ye=Y.left=uo(nn*_t,.5),pt=Y.top=uo(We*_t,.5),ft=Y.width=uo(Pe*_t,.5),ct=Y.height=uo(Be*_t,.5)}const Al=3;function Wh(){let P=!1,B=0;for(;!P;){B++;let Y=Nl(B),K=Fl(B);P=B==Al||Y&&K,P||(qs(i.width,i.height),rt=!0)}}function Uh({width:P,height:B}){Vs(P,B)}i.setSize=Uh;function Vh(){let P=!1,B=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:be}=te,_e=de%2,ke=te.label!=null?te.labelSize:0,Ce=be+ke;Ce>0&&(_e?(Pe-=Ce,de==3?(nn+=Ce,K=!0):Y=!0):(Be-=Ce,de==0?(We+=Ce,P=!0):B=!0))}}),pr[0]=P,pr[1]=Y,pr[2]=B,pr[3]=K,Pe-=Ji[1]+Ji[3],nn+=Ji[3],Be-=Ji[2]+Ji[0],We+=Ji[0]}function qh(){let P=nn+Pe,B=We+Be,Y=nn,K=We;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 be=oe.side;oe._pos=te(be,oe._size),oe.label!=null&&(oe._lpos=te(be,oe.labelSize))}})}const He=i.cursor=pn({},d_,{drag:{y:m==2}},n.cursor);if(He.dataIdx==null){let P=He.hover,B=P.skip=new Set(P.skip??[]);B.add(void 0);let Y=P.prox=yt(P.prox),K=P.bias??(P.bias=0);He.dataIdx=(te,oe,de,be)=>{if(oe==0)return de;let _e=de,ke=Y(te,oe,de,be)??vt,Ce=ke>=0&&ke<vt,Te=N.ori==0?Pe:Be,Ke=He.left,Et=t[0],ot=t[oe];if(B.has(ot[de])){_e=null;let Ge=null,Qe=null,Ie;if(K==0||K==-1)for(Ie=de;Ge==null&&Ie-- >0;)B.has(ot[Ie])||(Ge=Ie);if(K==0||K==1)for(Ie=de;Qe==null&&Ie++<ot.length;)B.has(ot[Ie])||(Qe=Ie);if(Ge!=null||Qe!=null)if(Ce){let Ct=Ge==null?-1/0:_(Et[Ge],N,Te,0),Xt=Qe==null?1/0:_(Et[Qe],N,Te,0),qt=Ke-Ct,Ft=Xt-Ke;qt<=Ft?qt<=ke&&(_e=Ge):Ft<=ke&&(_e=Qe)}else _e=Qe==null?Ge:Ge==null?Qe:de-Ge<=Qe-de?Ge:Qe}else Ce&&bn(Ke-_(Et[de],N,Te,0))>ke&&(_e=null);return _e}}const dr=P=>{He.event=P};He.idxs=q,He._lock=!1;let Rn=He.points;Rn.show=yt(Rn.show),Rn.size=yt(Rn.size),Rn.stroke=yt(Rn.stroke),Rn.width=yt(Rn.width),Rn.fill=yt(Rn.fill);const Qi=i.focus=pn({},n.focus||{alpha:.3},He.focus),Xi=Qi.prox>=0,Lr=Xi&&Rn.one;let zn=[],Ir=[],Or=[];function Ml(P,B){let Y=Rn.show(i,B);if(Y)return ui(Y,cx),ui(Y,P.class),qi(Y,-10,-10,Pe,Be),u.insertBefore(Y,zn[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?og(K)?_g(O,xg(K,F)):K||V:K||__,P.label=P.label||(Y?f_:p_)}if(Lr||B>0){P.width=P.width==null?1:P.width,P.paths=P.paths||N_,P.fillTo=yt(P.fillTo||A_),P.pxAlign=+xt(P.pxAlign,p),P.pxRound=zg(P.pxAlign),P.stroke=yt(P.stroke||null),P.fill=yt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=k_(Nn(1,P.width),1),K=P.points=pn({},{size:Y,width:Nn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:F_,_stroke:null,_fill:null},P.points);K.show=yt(K.show),K.filter=yt(K.filter),K.fill=yt(K.fill),K.stroke=yt(K.stroke),K.paths=yt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=ln(P,B);me.splice(B,0,Y[0]),we.splice(B,0,Y[1]),J.values.push(null)}if(He.show){q.splice(B,0,null);let Y=null;Lr?B==0&&(Y=Ml(P,B)):B>0&&(Y=Ml(P,B)),zn.splice(B,0,Y),Ir.splice(B,0,0),Or.splice(B,0,0)}rn("addSeries",B)}function Gh(P,B){B=B??R.length,P=m==1?Iu(P,B,Tg,Ng):Iu(P,B,{},Dg),R.splice(B,0,P),Tl(R[B],B)}i.addSeries=Gh;function Yh(P){if(R.splice(P,1),G){J.values.splice(P,1),we.splice(P,1);let B=me.splice(P,1)[0];Zi(null,B.firstChild),B.remove()}He.show&&(q.splice(P,1),zn.splice(P,1)[0].remove(),Ir.splice(P,1),Or.splice(P,1)),rn("delSeries",P)}i.delSeries=Yh;const pr=[!1,!1,!1,!1];function Kh(P,B){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?R[1].scale:M,K=k[P.scale]);let te=K.time;P.size=yt(P.size),P.space=yt(P.space),P.rotate=yt(P.rotate),Rr(P.incrs)&&P.incrs.forEach(de=>{!Er.has(de)&&Er.set(de,ig(de))}),P.incrs=yt(P.incrs||(K.distr==2?Yx:te?b==1?Zx:Jx:ho)),P.splits=yt(P.splits||(te&&K.distr==1?H:K.distr==3?Cu:K.distr==4?v_:m_)),P.stroke=yt(P.stroke),P.grid.stroke=yt(P.grid.stroke),P.ticks.stroke=yt(P.ticks.stroke),P.border.stroke=yt(P.border.stroke);let oe=P.values;P.values=Rr(oe)&&!Rr(oe[0])?yt(oe):te?Rr(oe)?bg(O,wg(oe,F)):og(oe)?n_(O,oe):oe||W:oe||g_,P.filter=yt(P.filter||(K.distr>=3&&K.log==10?b_:K.distr==3&&K.log==2?x_:Jf)),P.font=tm(P.font),P.labelFont=tm(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&&(pr[B]=!0,P._el=wi(ox,l))}}function Dr(P,B,Y,K){let[te,oe,de,be]=Y,_e=B%2,ke=0;return _e==0&&(be||oe)&&(ke=B==0&&!te||B==2&&!de?xn(Mg.size/3):0),_e==1&&(te||de)&&(ke=B==1&&!oe||B==3&&!be?xn(Lg.size/2):0),ke}const El=i.padding=(n.padding||[Dr,Dr,Dr,Dr]).map(P=>yt(xt(P,Dr))),Ji=i._padding=El.map((P,B)=>P(i,B,pr,0));let $n,fn=null,gn=null;const es=m==1?R[0].idxs:null;let Bn=null,vo=!1;function yo(P,B){if(t=P??[],i.data=i._data=t,m==2){$n=0;for(let Y=1;Y<R.length;Y++)$n+=t[Y][0].length}else{t.length==0&&(i.data=i._data=t=[[]]),Bn=t[0],$n=Bn.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(fr(!0),rn("setData"),$==2&&(Wt=!0),B!==!1){let Y=N;Y.auto(i,vo)?Gs():ki(M,Y.min,Y.max),Hn=Hn||He.left>=0,ti=!0,Hr()}}i.setData=yo;function Gs(){vo=!0;let P,B;m==1&&($n>0?(fn=es[0]=0,gn=es[1]=$n-1,P=t[0][fn],B=t[0][gn],$==2?(P=fn,B=gn):P==B&&($==3?[P,B]=Xa(P,P,N.log,!1):$==4?[P,B]=pu(P,P,N.log,!1):N.time?B=P+xn(86400/b):[P,B]=Ja(P,B,fu,!0))):(fn=es[0]=P=null,gn=es[1]=B=null)),ki(M,P,B)}let ts,Nr,ns,is,rs,Ys,Ks,Zs,Qs,_i;function Xs(P,B,Y,K,te,oe){P??(P=Df),Y??(Y=yu),K??(K="butt"),te??(te=Df),oe??(oe="round"),P!=ts&&(a.strokeStyle=ts=P),te!=Nr&&(a.fillStyle=Nr=te),B!=ns&&(a.lineWidth=ns=B),oe!=rs&&(a.lineJoin=rs=oe),K!=Ys&&(a.lineCap=Ys=K),Y!=is&&a.setLineDash(is=Y)}function Js(P,B,Y,K){B!=Nr&&(a.fillStyle=Nr=B),P!=Ks&&(a.font=Ks=P),Y!=Zs&&(a.textAlign=Zs=Y),K!=Qs&&(a.textBaseline=Qs=K)}function wo(P,B,Y,K,te=0){if(K.length>0&&P.auto(i,vo)&&(B==null||B.min==null)){let oe=xt(fn,0),de=xt(gn,K.length-1),be=Y.min==null?P.distr==3?xx(K,oe,de):bx(K,oe,de,te):[Y.min,Y.max];P.min=xi(P.min,Y.min=be[0]),P.max=Nn(P.max,Y.max=be[1])}}const Rl={min:null,max:null};function Ll(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[M]!=null&&te.auto(i,vo))&&(L[K]=Rl)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=Rl)}L[M]!=null&&fr(!0);let P={};for(let K in L){let te=L[K];if(te!=null){let oe=P[K]=qo(k[K],Tx);if(te.min!=null)pn(oe,te);else if(K!=M||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=vt,oe.max=-vt}}if($n>0){R.forEach((K,te)=>{if(m==1){let oe=K.scale,de=L[oe];if(de==null)return;let be=P[oe];if(te==0){let _e=be.range(i,be.min,be.max,oe);be.min=_e[0],be.max=_e[1],fn=Oi(be.min,t[0]),gn=Oi(be.max,t[0]),gn-fn>1&&(t[0][fn]<be.min&&fn++,t[0][gn]>be.max&&gn--),K.min=Bn[fn],K.max=Bn[gn]}else K.show&&K.auto&&wo(be,de,K,t[te],K.sorted);K.idxs[0]=fn,K.idxs[1]=gn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,be=oe.scale,_e=de.scale,[ke,Ce]=t[te],Te=P[be],Ke=P[_e];Te!=null&&wo(Te,L[be],oe,ke,oe.sorted),Ke!=null&&wo(Ke,L[_e],de,Ce,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==vt?null:te.min,te.max==-vt?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?cr(oe.min):de==4?mu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?cr(oe.max):de==4?mu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,B[K]=Y=!0}}if(Y){R.forEach((K,te)=>{m==2?te>0&&B.y&&(K._paths=null):B[K.scale]&&(K._paths=null)});for(let K in B)Wt=!0,rn("setScale",K);He.show&&He.left>=0&&(Hn=ti=!0)}for(let K in L)L[K]=null}function os(P){let B=vu(fn-1,0,$n-1),Y=vu(gn+1,0,$n-1);for(;P[B]==null&&B>0;)B--;for(;P[Y]==null&&Y<$n-1;)Y++;return[B,Y]}function Il(){$n>0&&(R.forEach((P,B)=>{if(B>0&&P.show&&(Ol(B,!1),Ol(B,!0),P._paths==null)){_i!=P.alpha&&(a.globalAlpha=_i=P.alpha);let Y=m==2?[0,t[B][0].length-1]:os(t[B]);P._paths=P.paths(i,B,Y[0],Y[1]),_i!=1&&(a.globalAlpha=_i=1)}}),R.forEach((P,B)=>{if(B>0&&P.show){_i!=P.alpha&&(a.globalAlpha=_i=P.alpha),P._paths!=null&&ea(B,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,B,fn,gn,Y),te=P.points.filter(i,B,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,B,fn,gn,te),ea(B,!0))}_i!=1&&(a.globalAlpha=_i=1),rn("drawSeries",B)}}))}function Ol(P,B){let Y=B?R[P].points:R[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function ea(P,B){let Y=B?R[P].points:R[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:be=Y._stroke,_fill:_e=Y._fill,_width:ke=Y.width}=Y._paths;ke=Ot(ke*_t,3);let Ce=null,Te=ke%2/2;B&&_e==null&&(_e=ke>0?"#fff":be);let Ke=Y.pxAlign==1&&Te>0;if(Ke&&a.translate(Te,Te),!B){let Et=Ye-ke/2,ot=pt-ke/2,Ge=ft+ke,Qe=ct+ke;Ce=new Path2D,Ce.rect(Et,ot,Ge,Qe)}B?ta(be,ke,Y.dash,Y.cap,_e,K,te,de,oe):Dl(P,be,ke,Y.dash,Y.cap,_e,K,te,de,Ce,oe),Ke&&a.translate(-Te,-Te)}function Dl(P,B,Y,K,te,oe,de,be,_e,ke,Ce){let Te=!1;_e!=0&&x.forEach((Ke,Et)=>{if(Ke.series[0]==P){let ot=R[Ke.series[1]],Ge=t[Ke.series[1]],Qe=(ot._paths||Ns).band;Rr(Qe)&&(Qe=Ke.dir==1?Qe[0]:Qe[1]);let Ie,Ct=null;ot.show&&Qe&&kx(Ge,fn,gn)?(Ct=Ke.fill(i,Et)||oe,Ie=ot._paths.clip):Qe=null,ta(B,Y,K,te,Ct,de,be,_e,ke,Ce,Ie,Qe),Te=!0}}),Te||ta(B,Y,K,te,oe,de,be,_e,ke,Ce)}const ss=Yo|Mu;function ta(P,B,Y,K,te,oe,de,be,_e,ke,Ce,Te){Xs(P,B,Y,K,te),(_e||ke||Te)&&(a.save(),_e&&a.clip(_e),ke&&a.clip(ke)),Te?(be&ss)==ss?(a.clip(Te),Ce&&a.clip(Ce),Fr(te,de),bo(P,oe,B)):be&Mu?(Fr(te,de),a.clip(Te),bo(P,oe,B)):be&Yo&&(a.save(),a.clip(Te),Ce&&a.clip(Ce),Fr(te,de),a.restore(),bo(P,oe,B)):(Fr(te,de),bo(P,oe,B)),(_e||ke||Te)&&a.restore()}function bo(P,B,Y){Y>0&&(B instanceof Map?B.forEach((K,te)=>{a.strokeStyle=ts=te,a.stroke(K)}):B!=null&&P&&a.stroke(B))}function Fr(P,B){B instanceof Map?B.forEach((Y,K)=>{a.fillStyle=Nr=K,a.fill(Y)}):B!=null&&P&&a.fill(B)}function na(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),be=te._incrs=te.incrs(i,P,B,Y,K,de);oe=W_(B,Y,be,K,de)}return te._found=oe}function er(P,B,Y,K,te,oe,de,be,_e,ke){let Ce=de%2/2;p==1&&a.translate(Ce,Ce),Xs(be,de,_e,ke,be),a.beginPath();let Te,Ke,Et,ot,Ge=te+(K==0||K==3?-oe:oe);Y==0?(Ke=te,ot=Ge):(Te=te,Et=Ge);for(let Qe=0;Qe<P.length;Qe++)B[Qe]!=null&&(Y==0?Te=Et=P[Qe]:Ke=ot=P[Qe],a.moveTo(Te,Ke),a.lineTo(Et,ot));a.stroke(),p==1&&a.translate(-Ce,-Ce)}function Nl(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,fr(!1));return}else Y._show||(B=!1,Y._show=!0,fr(!1));let oe=Y.side,de=oe%2,{min:be,max:_e}=te,[ke,Ce]=na(K,be,_e,de==0?Pe:Be);if(Ce==0)return;let Te=te.distr==2,Ke=Y._splits=Y.splits(i,K,be,_e,ke,Ce,Te),Et=te.distr==2?Ke.map(Ie=>Bn[Ie]):Ke,ot=te.distr==2?Bn[Ke[1]]-Bn[Ke[0]]:ke,Ge=Y._values=Y.values(i,Y.filter(i,Et,K,Ce,ot),K,Ce,ot);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 Fl(P){let B=!0;return El.forEach((Y,K)=>{let te=Y(i,K,pr,P);te!=Ji[K]&&(B=!1),Ji[K]=te}),B}function Zh(){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),be=Y==0||Y==3?-1:1;if(B.label){let An=B.labelGap*be,Yn=xn((B._lpos+An)*_t);Js(B.labelFont[0],de,"center",Y==2?Is:Of),a.save(),K==1?(te=oe=0,a.translate(Yn,xn(pt+ct/2)),a.rotate((Y==3?-el:el)/2)):(te=xn(Ye+ft/2),oe=Yn),a.fillText(B.label,te,oe),a.restore()}let[_e,ke]=B._found;if(ke==0)continue;let Ce=k[B.scale],Te=K==0?ft:ct,Ke=K==0?Ye:pt,Et=xn(B.gap*_t),ot=B._splits,Ge=Ce.distr==2?ot.map(An=>Bn[An]):ot,Qe=Ce.distr==2?Bn[ot[1]]-Bn[ot[0]]:_e,Ie=B.ticks,Ct=B.border,Xt=Ie.show?xn(Ie.size*_t):0,qt=B._rotate*-el/180,Ft=y(B._pos*_t),Pt=(Xt+Et)*be,ne=Ft+Pt;oe=K==0?ne:0,te=K==1?ne:0;let le=B.font[0],se=B.align==1?zo:B.align==2?ru:qt>0?zo:qt<0?ru:K==0?"center":Y==3?ru:zo,Se=qt||K==1?"middle":Y==2?Is:Of;Js(le,de,se,Se);let Fe=B.font[1]*B.lineGap,Ze=ot.map(An=>y(h(An,Ce,Te,Ke))),At=B._values;for(let An=0;An<At.length;An++){let Yn=At[An];if(Yn!=null){K==0?te=Ze[An]:oe=Ze[An],Yn=""+Yn;let Mn=Yn.indexOf(`
|
1410
|
+
`)==-1?[Yn]:Yn.split(/\n/gm);for(let fi=0;fi<Mn.length;fi++){let ri=Mn[fi];qt?(a.save(),a.translate(te,oe+fi*Fe),a.rotate(qt),a.fillText(ri,0,0),a.restore()):a.fillText(ri,te,oe+fi*Fe)}}}Ie.show&&er(Ze,Ie.filter(i,Ge,P,ke,Qe),K,Y,Ft,Xt,Ot(Ie.width*_t,3),Ie.stroke(i,P),Ie.dash,Ie.cap);let Xe=B.grid;Xe.show&&er(Ze,Xe.filter(i,Ge,P,ke,Qe),K,K==0?2:1,K==0?pt:Ye,K==0?ct:ft,Ot(Xe.width*_t,3),Xe.stroke(i,P),Xe.dash,Xe.cap),Ct.show&&er([Ft],[1],K==0?1:0,K==0?1:2,K==1?pt:Ye,K==1?ct:ft,Ot(Ct.width*_t,3),Ct.stroke(i,P),Ct.dash,Ct.cap)}rn("drawAxes")}function fr(P){R.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 xo=!1,as=!1,Pr=[];function Qh(){as=!1;for(let P=0;P<Pr.length;P++)rn(...Pr[P]);Pr.length=0}function Hr(){xo||(Nx(ia),xo=!0)}function Xh(P,B=!1){xo=!0,as=B,P(i),ia(),B&&Pr.length>0&&queueMicrotask(Qh)}i.batch=Xh;function ia(){if(ut&&(Ll(),ut=!1),Wt&&(Wh(),Wt=!1),rt){if(jt(o,zo,nn),jt(o,Is,We),jt(o,Rs,Pe),jt(o,Ls,Be),jt(u,zo,nn),jt(u,Is,We),jt(u,Rs,Pe),jt(u,Ls,Be),jt(l,Rs,kn),jt(l,Ls,tn),c.width=xn(kn*_t),c.height=xn(tn*_t),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;jt(P,de?"left":"top",K-oe),jt(P,de?"width":"height",Y),jt(P,de?"top":"left",de?We:nn),jt(P,de?"height":"width",de?Be:Pe),uu(P,ao)}else ui(P,ao)}),ts=Nr=ns=rs=Ys=Ks=Zs=Qs=is=null,_i=1,ko(!0),nn!=ce||We!=Me||Pe!=Le||Be!=qe){fr(!1);let P=Pe/Le,B=Be/qe;if(He.show&&!Hn&&He.left>=0){He.left*=P,He.top*=B,zr&&qi(zr,xn(He.left),0,Pe,Be),tr&&qi(tr,0,xn(He.top),Pe,Be);for(let Y=0;Y<zn.length;Y++){let K=zn[Y];K!=null&&(Ir[Y]*=P,Or[Y]*=B,qi(K,bi(Ir[Y]),bi(Or[Y]),Pe,Be))}}if(Nt.show&&!hr&&Nt.left>=0&&Nt.width>0){Nt.left*=P,Nt.width*=P,Nt.top*=B,Nt.height*=B;for(let Y in ca)jt(gr,Y,Nt[Y])}ce=nn,Me=We,Le=Pe,qe=Be}rn("setSize"),rt=!1}kn>0&&tn>0&&(a.clearRect(0,0,c.width,c.height),rn("drawClear"),I.forEach(P=>P()),rn("draw")),Nt.show&&hr&&(ls(Nt),hr=!1),He.show&&Hn&&(jn(null,!0,!1),Hn=!1),J.show&&J.live&&ti&&(_o(),ti=!1),g||(g=!0,i.status=1,rn("ready")),vo=!1,xo=!1}i.redraw=(P,B)=>{Wt=B||!1,P!==!1?ki(M,N.min,N.max):Hr()};function ra(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==M&&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++),L[P]=B,ut=!0,Hr()}}i.setScale=ra;let oa,sa,zr,tr,Pl,Hl,Br,jr,zl,It,ze,zt,nr=!1;const Sn=He.drag;let mn=Sn.x,vn=Sn.y;He.show&&(He.x&&(oa=wi(ax,u)),He.y&&(sa=wi(lx,u)),N.ori==0?(zr=oa,tr=sa):(zr=sa,tr=oa),ze=He.left,zt=He.top);const Nt=i.select=pn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),gr=Nt.show?wi(sx,Nt.over?u:o):null;function ls(P,B){if(Nt.show){for(let Y in P)Nt[Y]=P[Y],Y in ca&&jt(gr,Y,P[Y]);B!==!1&&rn("setSelect")}}i.setSelect=ls;function Cn(P,B){let Y=R[P],K=G?me[P]:null;if(Y.show)K&&uu(K,ao);else{K&&ui(K,ao);let te=Lr?zn[0]:zn[P];qi(te,-10,-10,Pe,Be)}}function ki(P,B,Y){ra(P,{min:B,max:Y})}function Ln(P,B,Y,K){B.focus!=null&&Wl(P),B.show!=null&&R.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),Hr())}),Y!==!1&&rn("setSeries",P,B),K&&Fi("setSeries",i,P,B)}i.setSeries=Ln;function Bl(P,B){pn(x[P],B)}function aa(P,B){P.fill=yt(P.fill||null),P.dir=xt(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=aa,i.setBand=Bl,i.delBand=ni;function jl(P,B){R[P].alpha=B,He.show&&zn[P]&&(zn[P].style.opacity=B),G&&me[P]&&(me[P].style.opacity=B)}let $i,Ni,ir;const mr={focus:!0};function Wl(P){if(P!=ir){let B=P==null,Y=Qi.alpha!=1;R.forEach((K,te)=>{if(m==1||te>0){let oe=B||te==0||te==P;K._focus=B?null:oe,Y&&jl(te,oe?1:Qi.alpha)}}),ir=P,Y&&Hr()}}G&&Xi&&Zt(Hf,ie,P=>{He._lock||(dr(P),ir!=null&&Ln(null,mr,!0,Qt.setSeries))});function Vt(P,B,Y){let K=k[B];Y&&(P=P/_t-(K.ori==1?We:nn));let te=Pe;K.ori==1&&(te=Be,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,be=P/te,_e=oe+(de-oe)*be,ke=K.distr;return ke==3?Uo(10,_e):ke==4?Sx(_e,K.asinh):ke==100?K.bwd(_e):_e}function Jh(P,B){let Y=Vt(P,M,B);return Oi(Y,t[0],fn,gn)}i.valToIdx=P=>Oi(P,t[0]),i.posToIdx=Jh,i.posToVal=Vt,i.valToPos=(P,B,Y)=>k[B].ori==0?v(P,k[B],Y?ft:Pe,Y?Ye:0):w(P,k[B],Y?ct:Be,Y?pt:0),i.setCursor=(P,B,Y)=>{ze=P.left,zt=P.top,jn(null,B,Y)};function Gn(P,B){jt(gr,zo,Nt.left=P),jt(gr,Rs,Nt.width=B)}function Ul(P,B){jt(gr,Is,Nt.top=P),jt(gr,Ls,Nt.height=B)}let Wr=N.ori==0?Gn:Ul,ii=N.ori==1?Gn:Ul;function cs(){if(G&&J.live)for(let P=m==2?1:0;P<R.length;P++){if(P==0&&$e)continue;let B=J.values[P],Y=0;for(let K in B)we[P][Y++].firstChild.nodeValue=B[K]}}function _o(P,B){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):Mx(P.idx)||q.fill(P.idx),J.idx=q[0]),G&&J.live){for(let Y=0;Y<R.length;Y++)(Y>0||m==1&&!$e)&&Bt(Y,q[Y]);cs()}ti=!1,B!==!1&&rn("setLegend")}i.setLegend=_o;function Bt(P,B){let Y=R[P],K=P==0&&$==2?Bn:t[P],te;$e?te=Y.values(i,P,B)??at:(te=Y.value(i,B==null?null:K[B],P,B),te=te==null?at:{_:te}),J.values[P]=te}function jn(P,B,Y){zl=ze,It=zt,[ze,zt]=He.move(i,ze,zt),He.left=ze,He.top=zt,He.show&&(zr&&qi(zr,xn(ze),0,Pe,Be),tr&&qi(tr,0,xn(zt),Pe,Be));let K,te=fn>gn;$i=vt,Ni=null;let oe=N.ori==0?Pe:Be,de=N.ori==1?Pe:Be;if(ze<0||$n==0||te){K=He.idx=null;for(let be=0;be<R.length;be++){let _e=zn[be];_e!=null&&qi(_e,-10,-10,Pe,Be)}Xi&&Ln(null,mr,!0,P==null&&Qt.setSeries),J.live&&(q.fill(K),ti=!0)}else{let be,_e,ke;m==1&&(be=N.ori==0?ze:zt,_e=Vt(be,M),K=He.idx=Oi(_e,t[0],fn,gn),ke=_(t[0][K],N,oe,0));let Ce=-10,Te=-10,Ke=0,Et=0,ot=!0,Ge="",Qe="";for(let Ie=m==2?1:0;Ie<R.length;Ie++){let Ct=R[Ie],Xt=q[Ie],qt=Xt==null?null:m==1?t[Ie][Xt]:t[Ie][1][Xt],Ft=He.dataIdx(i,Ie,K,_e),Pt=Ft==null?null:m==1?t[Ie][Ft]:t[Ie][1][Ft];ti=ti||Pt!=qt||Ft!=Xt,q[Ie]=Ft;let ne=Ft==K?ke:_(m==1?t[0][Ft]:t[Ie][0][Ft],N,oe,0);if(Ie>0&&Ct.show){let le=Pt==null?-10:S(Pt,m==1?k[Ct.scale]:k[Ct.facets[1].scale],de,0);if(Xi&&Pt!=null){let se=N.ori==1?ze:zt,Se=bn(Qi.dist(i,Ie,Ft,le,se));if(Se<$i){let Fe=Qi.bias;if(Fe!=0){let Ze=Vt(se,Ct.scale),At=Pt>=0?1:-1,Xe=Ze>=0?1:-1;Xe==At&&(Xe==1?Fe==1?Pt>=Ze:Pt<=Ze:Fe==1?Pt<=Ze:Pt>=Ze)&&($i=Se,Ni=Ie)}else $i=Se,Ni=Ie}}if(ti||Lr){let se,Se;N.ori==0?(se=ne,Se=le):(se=le,Se=ne);let Fe,Ze,At,Xe,An,Yn,Mn=!0,fi=Rn.bbox;if(fi!=null){Mn=!1;let ri=fi(i,Ie);At=ri.left,Xe=ri.top,Fe=ri.width,Ze=ri.height}else At=se,Xe=Se,Fe=Ze=Rn.size(i,Ie);if(Yn=Rn.fill(i,Ie),An=Rn.stroke(i,Ie),Lr)Ie==Ni&&$i<=Qi.prox&&(Ce=At,Te=Xe,Ke=Fe,Et=Ze,ot=Mn,Ge=Yn,Qe=An);else{let ri=zn[Ie];ri!=null&&(Ir[Ie]=At,Or[Ie]=Xe,qf(ri,Fe,Ze,Mn),Uf(ri,Yn,An),qi(ri,bi(At),bi(Xe),Pe,Be))}}}}if(Lr){let Ie=Qi.prox,Ct=ir==null?$i<=Ie:$i>Ie||Ni!=ir;if(ti||Ct){let Xt=zn[0];Ir[0]=Ce,Or[0]=Te,qf(Xt,Ke,Et,ot),Uf(Xt,Ge,Qe),qi(Xt,bi(Ce),bi(Te),Pe,Be)}}}if(Nt.show&&nr)if(P!=null){let[be,_e]=Qt.scales,[ke,Ce]=Qt.match,[Te,Ke]=P.cursor.sync.scales,Et=P.cursor.drag;if(mn=Et._x,vn=Et._y,mn||vn){let{left:ot,top:Ge,width:Qe,height:Ie}=P.select,Ct=P.scales[Te].ori,Xt=P.posToVal,qt,Ft,Pt,ne,le,se=be!=null&&ke(be,Te),Se=_e!=null&&Ce(_e,Ke);se&&mn?(Ct==0?(qt=ot,Ft=Qe):(qt=Ge,Ft=Ie),Pt=k[be],ne=_(Xt(qt,Te),Pt,oe,0),le=_(Xt(qt+Ft,Te),Pt,oe,0),Wr(xi(ne,le),bn(le-ne))):Wr(0,oe),Se&&vn?(Ct==1?(qt=ot,Ft=Qe):(qt=Ge,Ft=Ie),Pt=k[_e],ne=S(Xt(qt,Ke),Pt,de,0),le=S(Xt(qt+Ft,Ke),Pt,de,0),ii(xi(ne,le),bn(le-ne))):ii(0,de)}else hs()}else{let be=bn(zl-Pl),_e=bn(It-Hl);if(N.ori==1){let Ke=be;be=_e,_e=Ke}mn=Sn.x&&be>=Sn.dist,vn=Sn.y&&_e>=Sn.dist;let ke=Sn.uni;ke!=null?mn&&vn&&(mn=be>=ke,vn=_e>=ke,!mn&&!vn&&(_e>be?vn=!0:mn=!0)):Sn.x&&Sn.y&&(mn||vn)&&(mn=vn=!0);let Ce,Te;mn&&(N.ori==0?(Ce=Br,Te=ze):(Ce=jr,Te=zt),Wr(xi(Ce,Te),bn(Te-Ce)),vn||ii(0,de)),vn&&(N.ori==1?(Ce=Br,Te=ze):(Ce=jr,Te=zt),ii(xi(Ce,Te),bn(Te-Ce)),mn||Wr(0,oe)),!mn&&!vn&&(Wr(0,0),ii(0,0))}if(Sn._x=mn,Sn._y=vn,P==null){if(Y){if(Wn!=null){let[be,_e]=Qt.scales;Qt.values[0]=be!=null?Vt(N.ori==0?ze:zt,be):null,Qt.values[1]=_e!=null?Vt(N.ori==1?ze:zt,_e):null}Fi(Nf,i,ze,zt,Pe,Be,K)}if(Xi){let be=Y&&Qt.setSeries,_e=Qi.prox;ir==null?$i<=_e&&Ln(Ni,mr,!0,be):$i>_e?Ln(null,mr,!0,be):Ni!=ir&&Ln(Ni,mr,!0,be)}}ti&&(J.idx=K,_o()),B!==!1&&rn("setCursor")}let Si=null;Object.defineProperty(i,"rect",{get(){return Si==null&&ko(!1),Si}});function ko(P=!1){P?Si=null:(Si=u.getBoundingClientRect(),rn("syncRect",Si))}function us(P,B,Y,K,te,oe,de){He._lock||nr&&P!=null&&P.movementX==0&&P.movementY==0||(la(P,B,Y,K,te,oe,de,!1,P!=null),P!=null?jn(null,!0,!0):jn(B,!0,!1))}function la(P,B,Y,K,te,oe,de,be,_e){if(Si==null&&ko(!1),dr(P),P!=null)Y=P.clientX-Si.left,K=P.clientY-Si.top;else{if(Y<0||K<0){ze=-10,zt=-10;return}let[ke,Ce]=Qt.scales,Te=B.cursor.sync,[Ke,Et]=Te.values,[ot,Ge]=Te.scales,[Qe,Ie]=Qt.match,Ct=B.axes[0].side%2==1,Xt=N.ori==0?Pe:Be,qt=N.ori==1?Pe:Be,Ft=Ct?oe:te,Pt=Ct?te:oe,ne=Ct?K:Y,le=Ct?Y:K;if(ot!=null?Y=Qe(ke,ot)?h(Ke,k[ke],Xt,0):-10:Y=Xt*(ne/Ft),Ge!=null?K=Ie(Ce,Ge)?h(Et,k[Ce],qt,0):-10:K=qt*(le/Pt),N.ori==1){let se=Y;Y=K,K=se}}_e&&((Y<=1||Y>=Pe-1)&&(Y=uo(Y,Pe)),(K<=1||K>=Be-1)&&(K=uo(K,Be))),be?(Pl=Y,Hl=K,[Br,jr]=He.move(i,Y,K)):(ze=Y,zt=K)}const ca={width:0,height:0,left:0,top:0};function hs(){ls(ca,!1)}let ua,$o,vr,Vl;function ha(P,B,Y,K,te,oe,de){nr=!0,mn=vn=Sn._x=Sn._y=!1,la(P,B,Y,K,te,oe,de,!0,!1),P!=null&&(Zt(su,lu,da,!1),Fi(Ff,i,Br,jr,Pe,Be,null));let{left:be,top:_e,width:ke,height:Ce}=Nt;ua=be,$o=_e,vr=ke,Vl=Ce,hs()}function da(P,B,Y,K,te,oe,de){nr=Sn._x=Sn._y=!1,la(P,B,Y,K,te,oe,de,!1,!0);let{left:be,top:_e,width:ke,height:Ce}=Nt,Te=ke>0||Ce>0,Ke=ua!=be||$o!=_e||vr!=ke||Vl!=Ce;if(Te&&Ke&&ls(Nt),Sn.setScale&&Te&&Ke){let Et=be,ot=ke,Ge=_e,Qe=Ce;if(N.ori==1&&(Et=_e,ot=Ce,Ge=be,Qe=ke),mn&&ki(M,Vt(Et,M),Vt(Et+ot,M)),vn)for(let Ie in k){let Ct=k[Ie];Ie!=M&&Ct.from==null&&Ct.min!=vt&&ki(Ie,Vt(Ge+Qe,Ie),Vt(Ge,Ie))}hs()}else He.lock&&(He._lock=!He._lock,jn(null,!0,!1));P!=null&&(Zi(su,lu),Fi(su,i,ze,zt,Pe,Be,null))}function pa(P,B,Y,K,te,oe,de){if(He._lock)return;dr(P);let be=nr;if(nr){let _e=!0,ke=!0,Ce=10,Te,Ke;N.ori==0?(Te=mn,Ke=vn):(Te=vn,Ke=mn),Te&&Ke&&(_e=ze<=Ce||ze>=Pe-Ce,ke=zt<=Ce||zt>=Be-Ce),Te&&_e&&(ze=ze<Br?0:Pe),Ke&&ke&&(zt=zt<jr?0:Be),jn(null,!0,!0),nr=!1}ze=-10,zt=-10,jn(null,!0,!0),be&&(nr=be)}function ds(P,B,Y,K,te,oe,de){He._lock||(dr(P),Gs(),hs(),P!=null&&Fi(zf,i,ze,zt,Pe,Be,null))}function fa(){A.forEach(U_),Vs(i.width,i.height,!0)}lo(Za,jo,fa);const Ur={};Ur.mousedown=ha,Ur.mousemove=us,Ur.mouseup=da,Ur.dblclick=ds,Ur.setSeries=(P,B,Y,K)=>{let te=Qt.match[2];Y=te(i,B,Y),Y!=-1&&Ln(Y,K,!0,!1)},He.show&&(Zt(Ff,u,ha),Zt(Nf,u,us),Zt(Pf,u,P=>{dr(P),ko(!1)}),Zt(Hf,u,pa),Zt(zf,u,ds),Lu.add(i),i.syncRect=ko);const Vr=i.hooks=n.hooks||{};function rn(P,B,Y){as?Pr.push([P,B,Y]):P in Vr&&Vr[P].forEach(K=>{K.call(null,i,B,Y)})}(n.plugins||[]).forEach(P=>{for(let B in P.hooks)Vr[B]=(Vr[B]||[]).concat(P.hooks[B])});const ql=(P,B,Y)=>Y,Qt=pn({key:null,setSeries:!1,filters:{pub:eg,sub:eg},scales:[M,R[1]?R[1].scale:null],match:[tg,tg,ql],values:[null,null]},He.sync);Qt.match.length==2&&Qt.match.push(ql),He.sync=Qt;const Wn=Qt.key,So=Hg(Wn);function Fi(P,B,Y,K,te,oe,de){Qt.filters.pub(P,B,Y,K,te,oe,de)&&So.pub(P,B,Y,K,te,oe,de)}So.sub(i);function Gl(P,B,Y,K,te,oe,de){Qt.filters.sub(P,B,Y,K,te,oe,de)&&Ur[P](null,B,Y,K,te,oe,de)}i.pub=Gl;function Yl(){So.unsub(i),Lu.delete(i),Dt.clear(),du(Za,jo,fa),s.remove(),ie==null||ie.remove(),rn("destroy")}i.destroy=Yl;function ga(){rn("init",n,t),yo(t||n.data,!1),L[M]?ra(M,L[M]):Gs(),hr=Nt.show&&(Nt.width>0||Nt.height>0),Hn=ti=!0,Vs(n.width,n.height)}return R.forEach(Tl),A.forEach(Kh),e?e instanceof HTMLElement?(e.appendChild(s),ga()):e(i,ga):ga(),i}Fn.assign=pn,Fn.fmtNum=gu,Fn.rangeNum=Ja,Fn.rangeLog=Xa,Fn.rangeAsinh=pu,Fn.orient=po,Fn.pxRatio=_t,Fn.join=Dx,Fn.fmtDate=wu,Fn.tzDate=qx,Fn.sync=Hg;{Fn.addGap=M_,Fn.clipGaps=sl;let n=Fn.paths={points:qg};n.linear=Yg,n.stepped=R_,n.bars=L_,n.spline=O_}var nm,im;function V_(){return im||(im=1,nm=function(n,t,e,i,m){var f,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(f=i+(m-i>>>1),v=+e(n[f],t,f,n),v<0)i=f+1;else if(v>0)m=f-1;else return f;return~i}),nm}var q_=V_();const uO=yn("c",La(q_));var Ou,rm;function G_(){if(rm)return Ou;rm=1;function n(t,e,i){var m=-1,f=t.length;e<0&&(e=-e>f?0:f+e),i=i>f?f:i,i<0&&(i+=f),f=e>i?0:i-e>>>0,e>>>=0;for(var v=Array(f);++m<f;)v[m]=t[m+e];return v}return Ou=n,Ou}var Du,om;function Y_(){if(om)return Du;om=1;var n=G_();function t(e,i,m){var f=e.length;return m=m===void 0?f:m,!i&&m>=f?e:n(e,i,m)}return Du=t,Du}var Nu,sm;function am(){if(sm)return Nu;sm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\ufe0e\\ufe0f",v="\\u200d",w=RegExp("["+v+n+m+f+"]");function h(g){return w.test(g)}return Nu=h,Nu}var Fu,lm;function K_(){if(lm)return Fu;lm=1;function n(t){return t.split("")}return Fu=n,Fu}var Pu,cm;function Z_(){if(cm)return Pu;cm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\ufe0e\\ufe0f",v="["+n+"]",w="["+m+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+w+"|"+h+")",s="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=g+"?",u="["+f+"]?",p="(?:"+l+"(?:"+[s,c,a].join("|")+")"+u+o+")*",y=u+o+p,b="(?:"+[s+w+"?",w,c,a,v].join("|")+")",R=RegExp(h+"(?="+h+")|"+b+y,"g");function A(k){return k.match(R)||[]}return Pu=A,Pu}var Hu,um;function Q_(){if(um)return Hu;um=1;var n=K_(),t=am(),e=Z_();function i(m){return t(m)?e(m):n(m)}return Hu=i,Hu}var zu,hm;function X_(){if(hm)return zu;hm=1;var n=typeof Tr=="object"&&Tr&&Tr.Object===Object&&Tr;return zu=n,zu}var Bu,dm;function J_(){if(dm)return Bu;dm=1;var n=X_(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Bu=e,Bu}var ju,pm;function Wu(){if(pm)return ju;pm=1;var n=J_(),t=n.Symbol;return ju=t,ju}var Uu,fm;function ek(){if(fm)return Uu;fm=1;function n(t,e){for(var i=-1,m=t==null?0:t.length,f=Array(m);++i<m;)f[i]=e(t[i],i,t);return f}return Uu=n,Uu}var Vu,gm;function tk(){if(gm)return Vu;gm=1;var n=Array.isArray;return Vu=n,Vu}var qu,mm;function nk(){if(mm)return qu;mm=1;var n=Wu(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,m=n?n.toStringTag:void 0;function f(v){var w=e.call(v,m),h=v[m];try{v[m]=void 0;var g=!0}catch{}var s=i.call(v);return g&&(w?v[m]=h:delete v[m]),s}return qu=f,qu}var Gu,vm;function ik(){if(vm)return Gu;vm=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return Gu=e,Gu}var Yu,ym;function rk(){if(ym)return Yu;ym=1;var n=Wu(),t=nk(),e=ik(),i="[object Null]",m="[object Undefined]",f=n?n.toStringTag:void 0;function v(w){return w==null?w===void 0?m:i:f&&f in Object(w)?t(w):e(w)}return Yu=v,Yu}var Ku,wm;function ok(){if(wm)return Ku;wm=1;function n(t){return t!=null&&typeof t=="object"}return Ku=n,Ku}var Zu,bm;function sk(){if(bm)return Zu;bm=1;var n=rk(),t=ok(),e="[object Symbol]";function i(m){return typeof m=="symbol"||t(m)&&n(m)==e}return Zu=i,Zu}var Qu,xm;function ak(){if(xm)return Qu;xm=1;var n=Wu(),t=ek(),e=tk(),i=sk(),m=1/0,f=n?n.prototype:void 0,v=f?f.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 g=h+"";return g=="0"&&1/h==-m?"-0":g}return Qu=w,Qu}var Xu,_m;function ul(){if(_m)return Xu;_m=1;var n=ak();function t(e){return e==null?"":n(e)}return Xu=t,Xu}var Ju,km;function lk(){if(km)return Ju;km=1;var n=Y_(),t=am(),e=Q_(),i=ul();function m(f){return function(v){v=i(v);var w=t(v)?e(v):void 0,h=w?w[0]:v.charAt(0),g=w?n(w,1).join(""):v.slice(1);return h[f]()+g}}return Ju=m,Ju}var eh,$m;function Sm(){if($m)return eh;$m=1;var n=lk(),t=n("toUpperCase");return eh=t,eh}var ck=Sm();const uk=La(ck);var th,Cm;function hk(){if(Cm)return th;Cm=1;var n=ul(),t=Sm();function e(i){return t(n(i).toLowerCase())}return th=e,th}var nh,Am;function dk(){if(Am)return nh;Am=1;function n(t,e,i,m){var f=-1,v=t==null?0:t.length;for(m&&v&&(i=t[++f]);++f<v;)i=e(i,t[f],f,t);return i}return nh=n,nh}var ih,Mm;function pk(){if(Mm)return ih;Mm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return ih=n,ih}var rh,Tm;function fk(){if(Tm)return rh;Tm=1;var n=pk(),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 rh=e,rh}var oh,Em;function gk(){if(Em)return oh;Em=1;var n=fk(),t=ul(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",v=i+m+f,w="["+v+"]",h=RegExp(w,"g");function g(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return oh=g,oh}var sh,Rm;function mk(){if(Rm)return sh;Rm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return sh=t,sh}var ah,Lm;function vk(){if(Lm)return ah;Lm=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 ah=t,ah}var lh,Im;function yk(){if(Im)return lh;Im=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\u2700-\\u27bf",v="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\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",c="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",l=w+h+g+s,o="['’]",u="["+l+"]",p="["+m+"]",y="\\d+",b="["+f+"]",R="["+v+"]",A="[^"+n+l+y+f+v+c+"]",k="\\ud83c[\\udffb-\\udfff]",x="(?:"+p+"|"+k+")",M="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",T="["+c+"]",N="\\u200d",$="(?:"+R+"|"+A+")",_="(?:"+T+"|"+A+")",S="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=x+"?",F="["+a+"]?",H="(?:"+N+"(?:"+[M,E,I].join("|")+")"+F+O+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,J="(?:"+[b,E,I].join("|")+")"+q,G=RegExp([T+"?"+R+"+"+S+"(?="+[u,T,"$"].join("|")+")",_+"+"+L+"(?="+[u,T+$,"$"].join("|")+")",T+"?"+$+"+"+S,T+"+"+L,V,W,y,J].join("|"),"g");function Q(ie){return ie.match(G)||[]}return lh=Q,lh}var ch,Om;function wk(){if(Om)return ch;Om=1;var n=mk(),t=vk(),e=ul(),i=yk();function m(f,v,w){return f=e(f),v=w?void 0:v,v===void 0?t(f)?i(f):n(f):f.match(v)||[]}return ch=m,ch}var uh,Dm;function bk(){if(Dm)return uh;Dm=1;var n=dk(),t=gk(),e=wk(),i="['’]",m=RegExp(i,"g");function f(v){return function(w){return n(e(t(w).replace(m,"")),v,"")}}return uh=f,uh}var hh,Nm;function xk(){if(Nm)return hh;Nm=1;var n=hk(),t=bk(),e=t(function(i,m,f){return m=m.toLowerCase(),i+(f?n(m):m)});return hh=e,hh}var _k=xk();const kk=La(_k),$k=Object.assign({"./ArrayWidget.vue":()=>Ne(()=>De.import("./ArrayWidget-BTxChSds-f9d7aff0cd64dc4af677.js"),void 0),"./BlockWidget.vue":()=>Ne(()=>De.import("./BlockWidget-PmjzrkXF-5ae8e08c4a33e66be878.js"),void 0),"./ButtonWidget.vue":()=>Ne(()=>De.import("./ButtonWidget-nwDlOBJT-9c62e34d1c157b97bd44.js"),void 0),"./CanvasWidget.vue":()=>Ne(()=>De.import("./CanvasWidget-BL8930eT-188b85274dd6e0481076.js"),void 0),"./CanvasdotWidget.vue":()=>Ne(()=>De.import("./CanvasdotWidget-VCf1fL-G-4addafa734fbe01e01d2.js"),void 0),"./CanvasimageWidget.vue":()=>Ne(()=>De.import("./CanvasimageWidget-BIw7Wbf2-f556e479f270b6f7e1e8.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ne(()=>De.import("./CanvasimagevalueWidget-CE3Dj5bH-61813e93f4ce39b4cce2.js"),void 0),"./CanvaslabelWidget.vue":()=>Ne(()=>De.import("./CanvaslabelWidget-DWmb356h-b87dfe68f77561ff7eab.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ne(()=>De.import("./CanvaslabelvalueWidget-CI3yYwFs-cd3e5ce0d875355790e8.js"),void 0),"./CanvaslineWidget.vue":()=>Ne(()=>De.import("./CanvaslineWidget-COeapH3P-5ed0f7c483b60fba1b20.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ne(()=>De.import("./CanvaslinevalueWidget-CI-Bbzfi-2d4e44e28522af7ed0fc.js"),void 0),"./CheckbuttonWidget.vue":()=>Ne(()=>De.import("./CheckbuttonWidget-BQhggcZ2-d1f2a4351b6b5b9a9b81.js"),void 0),"./ComboboxWidget.vue":()=>Ne(()=>De.import("./ComboboxWidget-BzsbOv54-6fd16140b1b60078529d.js"),void 0),"./DateWidget.vue":()=>Ne(()=>De.import("./DateWidget-B5R_9rA8-4b8f5a655a8cf17aa907.js"),void 0),"./DynamicWidget.vue":()=>Ne(()=>De.import("./DynamicWidget-m9EliUR2-7760dada6647945b4903.js"),void 0),"./FormatvalueWidget.vue":()=>Ne(()=>De.import("./FormatvalueWidget-DZkRJce8-6973ff704f1f01e6eb53.js"),void 0),"./HorizontalWidget.vue":()=>Ne(()=>De.import("./HorizontalWidget-CirtfuL8-d0c976471f208754a41e.js"),void 0),"./HorizontalboxWidget.vue":()=>Ne(()=>De.import("./HorizontalboxWidget-CyTDt2nl-bbf9f59fbabdb01980b8.js"),void 0),"./HorizontallineWidget.vue":()=>Ne(()=>De.import("./HorizontallineWidget-BdlNB951-ab49ce4d35551b3018b8.js"),void 0),"./IframeWidget.vue":()=>Ne(()=>De.import("./IframeWidget-DnJmCrCA-62af6b154ccc91fd8cb5.js"),void 0),"./ImageviewerWidget.vue":()=>Ne(()=>De.import("./ImageviewerWidget-DIkmb_C9-485cc1d532e23ae4b5b2.js"),void 0),"./LabelWidget.vue":()=>Ne(()=>De.import("./LabelWidget-BDsypYho-377347a49c09b718a1f6.js"),void 0),"./LabelledWidget.vue":()=>Ne(()=>De.import("./LabelledWidget-DjturGl5-7f24cc5599b66c12b2f1.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ne(()=>De.import("./LabelprogressbarWidget-RADJGLj3-9d2243f7ddf8904a0cfe.js"),void 0),"./LabelsparklineWidget.vue":()=>Ne(()=>De.import("./LabelsparklineWidget-BlJoICxu-cf16050d0ee486966ec7.js"),void 0),"./LabelvalueWidget.vue":()=>Ne(()=>De.import("./LabelvalueWidget-DVWJqnlY-05fecfc99fd33ad654aa.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ne(()=>De.import("./LabelvaluedescWidget-CsUP7J4U-1e6251e1cf3a6a7e5b59.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ne(()=>De.import("./LabelvaluelimitsbarWidget-Blj1QXV8-e030775dfb9553618269.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ne(()=>De.import("./LabelvaluelimitscolumnWidget-CvCo-uCe-5854a22f738f11b61b9c.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ne(()=>De.import("./LabelvaluerangebarWidget-DpcXhlfF-a2dc9567d0f19cfeb8f9.js"),void 0),"./LedWidget.vue":()=>Ne(()=>De.import("./LedWidget-B_K2e5tq-838e2eb68c3aeea79b43.js"),void 0),"./LimitsbarWidget.vue":()=>Ne(()=>De.import("./LimitsbarWidget-DXbqsi4J-a0b11379621e58f2e076.js"),void 0),"./LimitscolorWidget.vue":()=>Ne(()=>De.import("./LimitscolorWidget-Ckmuw0YX-1642733882daa04ec5a0.js"),void 0),"./LimitscolumnWidget.vue":()=>Ne(()=>De.import("./LimitscolumnWidget-BfY4su5U-5b67e1bac65777add469.js"),void 0),"./LinegraphWidget.vue":()=>Ne(()=>De.import("./LinegraphWidget-y-Qy9P0R-fc12c36171d5e5f0e604.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ne(()=>De.import("./MatrixbycolumnsWidget-BTBColrs-838970fd44fd6454be07.js"),void 0),"./ProgressbarWidget.vue":()=>Ne(()=>De.import("./ProgressbarWidget-DpA_-vy9-3a38ee774aba10a8a15c.js"),void 0),"./RadiobuttonWidget.vue":()=>Ne(()=>De.import("./RadiobuttonWidget-BO8zpgwW-b471e7a498cb16db4d70.js"),void 0),"./RadiogroupWidget.vue":()=>Ne(()=>De.import("./RadiogroupWidget-Oy7V4S-V-723fa661d99951386278.js"),void 0),"./RangebarWidget.vue":()=>Ne(()=>De.import("./RangebarWidget-DHS7S3vI-e692659dc1e7d71f25e6.js"),void 0),"./RollupWidget.vue":()=>Ne(()=>De.import("./RollupWidget-CTk9Kjwr-391c07e5ac0e51fa806e.js"),void 0),"./ScrollwindowWidget.vue":()=>Ne(()=>De.import("./ScrollwindowWidget-DD0TOW6s-a5fd68b09f66a4acd2e7.js"),void 0),"./SignalWidget.vue":()=>Ne(()=>De.import("./SignalWidget-CC33KMTW-9154de9a5c061b69776b.js"),void 0),"./SpacerWidget.vue":()=>Ne(()=>De.import("./SpacerWidget-BnJe_Hq6-135347689671755db50c.js"),void 0),"./SparklineWidget.vue":()=>Ne(()=>De.import("./SparklineWidget-DMvMQCPm-ad781334905d009b9a21.js"),void 0),"./TabbookWidget.vue":()=>Ne(()=>De.import("./TabbookWidget-B3w0JtWe-a647fc460af62f1f1b91.js"),void 0),"./TextboxWidget.vue":()=>Ne(()=>De.import("./TextboxWidget-D2f0-eol-31186bae50782d8dda72.js"),void 0),"./TextfieldWidget.vue":()=>Ne(()=>De.import("./TextfieldWidget-DXSdgqVP-1c8963dce21e79e8dbc5.js"),void 0),"./TimeWidget.vue":()=>Ne(()=>De.import("./TimeWidget-DvrRaEMz-35c62ea9c5dee8a5a3bc.js"),void 0),"./TitleWidget.vue":()=>Ne(()=>De.import("./TitleWidget-DqViFQl--d6f64895e3b40ae46c97.js"),void 0),"./ValueWidget.vue":()=>Ne(()=>De.import("./ValueWidget-KLYY8L8U-981e9679ee74d7dd44a0.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ne(()=>De.import("./ValuelimitsbarWidget-SR8XNZFB-cd276c1535176693d52e.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ne(()=>De.import("./ValuelimitscolumnWidget-xYZSp6YZ-a661323401b786db843a.js"),void 0),"./ValuerangebarWidget.vue":()=>Ne(()=>De.import("./ValuerangebarWidget-B6M02a9d-d84d57d18b05c4d935d4.js"),void 0),"./VerticalWidget.vue":()=>Ne(()=>De.import("./VerticalWidget-z6xUM-ql-8b2da906efb985d05096.js"),void 0),"./VerticalboxWidget.vue":()=>Ne(()=>De.import("./VerticalboxWidget-3a9cVsW--6ebcd76b12070a5f66d1.js"),void 0)}),Sk=Object.entries($k).reduce((n,[t,e])=>{t=t.split("/").pop();const i=uk(kk(t.replace(/\.\w+$/,"")));return{...n,[i]:Gd(e)}},{}),Ck=yn("B",{components:Sk});function Fm(n,t){return function(){return n.apply(t,arguments)}}const{toString:Ak}=Object.prototype,{getPrototypeOf:dh}=Object,hl=(n=>t=>{const e=Ak.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Di=n=>(n=n.toLowerCase(),t=>hl(t)===n),dl=n=>t=>typeof t===n,{isArray:Qo}=Array,Hs=dl("undefined");function Mk(n){return n!==null&&!Hs(n)&&n.constructor!==null&&!Hs(n.constructor)&&pi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Pm=Di("ArrayBuffer");function Tk(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Pm(n.buffer),t}const Ek=dl("string"),pi=dl("function"),Hm=dl("number"),pl=n=>n!==null&&typeof n=="object",Rk=n=>n===!0||n===!1,fl=n=>{if(hl(n)!=="object")return!1;const t=dh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Lk=Di("Date"),Ik=Di("File"),Ok=Di("Blob"),Dk=Di("FileList"),Nk=n=>pl(n)&&pi(n.pipe),Fk=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||pi(n.append)&&((t=hl(n))==="formdata"||t==="object"&&pi(n.toString)&&n.toString()==="[object FormData]"))},Pk=Di("URLSearchParams"),[Hk,zk,Bk,jk]=["ReadableStream","Request","Response","Headers"].map(Di),Wk=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Qo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const f=e?Object.getOwnPropertyNames(n):Object.keys(n),v=f.length;let w;for(i=0;i<v;i++)w=f[i],t.call(null,n[w],w,n)}}function zm(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 fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bm=n=>!Hs(n)&&n!==fo;function ph(){const{caseless:n}=Bm(this)&&this||{},t={},e=(i,m)=>{const f=n&&zm(t,m)||m;fl(t[f])&&fl(i)?t[f]=ph(t[f],i):fl(i)?t[f]=ph({},i):Qo(i)?t[f]=i.slice():t[f]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&zs(arguments[i],e);return t}const Uk=(n,t,e,{allOwnKeys:i}={})=>(zs(t,(m,f)=>{e&&pi(m)?n[f]=Fm(m,e):n[f]=m},{allOwnKeys:i}),n),Vk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),qk=(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)},Gk=(n,t,e,i)=>{let m,f,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),f=m.length;f-- >0;)v=m[f],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&dh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Yk=(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},Kk=n=>{if(!n)return null;if(Qo(n))return n;let t=n.length;if(!Hm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Zk=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&dh(Uint8Array)),Qk=(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])}},Xk=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Jk=Di("HTMLFormElement"),e$=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),jm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),t$=Di("RegExp"),Wm=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};zs(e,(m,f)=>{let v;(v=t(m,f,n))!==!1&&(i[f]=v||m)}),Object.defineProperties(n,i)},n$=n=>{Wm(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+"'")})}})},i$=(n,t)=>{const e={},i=m=>{m.forEach(f=>{e[f]=!0})};return Qo(n)?i(n):i(String(n).split(t)),e},r$=()=>{},o$=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,fh="abcdefghijklmnopqrstuvwxyz",Um="0123456789",Vm={DIGIT:Um,ALPHA:fh,ALPHA_DIGIT:fh+fh.toUpperCase()+Um},s$=(n=16,t=Vm.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function a$(n){return!!(n&&pi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const l$=n=>{const t=new Array(10),e=(i,m)=>{if(pl(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const f=Qo(i)?[]:{};return zs(i,(v,w)=>{const h=e(v,m+1);!Hs(h)&&(f[w]=h)}),t[m]=void 0,f}}return i};return e(n,0)},c$=Di("AsyncFunction"),u$=n=>n&&(pl(n)||pi(n))&&pi(n.then)&&pi(n.catch),qm=((n,t)=>n?setImmediate:t?((e,i)=>(fo.addEventListener("message",({source:m,data:f})=>{m===fo&&f===e&&i.length&&i.shift()()},!1),m=>{i.push(m),fo.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",pi(fo.postMessage)),h$=typeof queueMicrotask<"u"?queueMicrotask.bind(fo):typeof process<"u"&&process.nextTick||qm,he={isArray:Qo,isArrayBuffer:Pm,isBuffer:Mk,isFormData:Fk,isArrayBufferView:Tk,isString:Ek,isNumber:Hm,isBoolean:Rk,isObject:pl,isPlainObject:fl,isReadableStream:Hk,isRequest:zk,isResponse:Bk,isHeaders:jk,isUndefined:Hs,isDate:Lk,isFile:Ik,isBlob:Ok,isRegExp:t$,isFunction:pi,isStream:Nk,isURLSearchParams:Pk,isTypedArray:Zk,isFileList:Dk,forEach:zs,merge:ph,extend:Uk,trim:Wk,stripBOM:Vk,inherits:qk,toFlatObject:Gk,kindOf:hl,kindOfTest:Di,endsWith:Yk,toArray:Kk,forEachEntry:Qk,matchAll:Xk,isHTMLForm:Jk,hasOwnProperty:jm,hasOwnProp:jm,reduceDescriptors:Wm,freezeMethods:n$,toObjectSet:i$,toCamelCase:e$,noop:r$,toFiniteNumber:o$,findKey:zm,global:fo,isContextDefined:Bm,ALPHABET:Vm,generateString:s$,isSpecCompliantForm:a$,toJSONObject:l$,isAsyncFn:c$,isThenable:u$,setImmediate:qm,asap:h$};function it(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(it,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 Gm=it.prototype,Ym={};["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=>{Ym[n]={value:n}}),Object.defineProperties(it,Ym),Object.defineProperty(Gm,"isAxiosError",{value:!0}),it.from=(n,t,e,i,m,f)=>{const v=Object.create(Gm);return he.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),it.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,f&&Object.assign(v,f),v};const d$=null;function gh(n){return he.isPlainObject(n)||he.isArray(n)}function Km(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Zm(n,t,e){return n?n.concat(t).map(function(i,m){return i=Km(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function p$(n){return he.isArray(n)&&!n.some(gh)}const f$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function gl(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(l,o){return!he.isUndefined(o[l])});const i=e.metaTokens,m=e.visitor||g,f=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(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!w&&he.isBlob(l))throw new it("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(l)||he.isTypedArray(l)?w&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,u){let p=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&p$(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(p=he.toArray(l)))return o=Km(o),p.forEach(function(y,b){!(he.isUndefined(y)||y===null)&&t.append(v===!0?Zm([o],b,f):v===null?o:o+"[]",h(y))}),!1}return gh(l)?!0:(t.append(Zm(u,o,f),h(l)),!1)}const s=[],c=Object.assign(f$,{defaultVisitor:g,convertValue:h,isVisitable:gh});function a(l,o){if(!he.isUndefined(l)){if(s.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(l),he.forEach(l,function(u,p){(!(he.isUndefined(u)||u===null)&&m.call(t,u,he.isString(p)?p.trim():p,o,c))===!0&&a(u,o?o.concat(p):[p])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),t}function Qm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function mh(n,t){this._pairs=[],n&&gl(n,this,t)}const Xm=mh.prototype;Xm.append=function(n,t){this._pairs.push([n,t])},Xm.toString=function(n){const t=n?function(e){return n.call(this,e,Qm)}:Qm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function g$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jm(n,t,e){if(!t)return n;const i=e&&e.encode||g$;he.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let f;if(m?f=m(t,e):f=he.isURLSearchParams(t)?t.toString():new mh(t,e).toString(i),f){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}let e0=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 t0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},m$=typeof URLSearchParams<"u"?URLSearchParams:mh,v$=typeof FormData<"u"?FormData:null,y$=typeof Blob<"u"?Blob:null,w$={isBrowser:!0,classes:{URLSearchParams:m$,FormData:v$,Blob:y$},protocols:["http","https","file","blob","url","data"]},vh=typeof window<"u"&&typeof document<"u",yh=typeof navigator=="object"&&navigator||void 0,b$=vh&&(!yh||["ReactNative","NativeScript","NS"].indexOf(yh.product)<0),x$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_$=vh&&window.location.href||"http://localhost",k$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vh,hasStandardBrowserEnv:b$,hasStandardBrowserWebWorkerEnv:x$,navigator:yh,origin:_$},Symbol.toStringTag,{value:"Module"})),Pn={...k$,...w$};function $$(n,t){return gl(n,new Pn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,f){return Pn.isNode&&he.isBuffer(e)?(this.append(i,e.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},t))}function S$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function C$(n){const t={},e=Object.keys(n);let i;const m=e.length;let f;for(i=0;i<m;i++)f=e[i],t[f]=n[f];return t}function n0(n){function t(e,i,m,f){let v=e[f++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=f>=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],f)&&he.isArray(m[v])&&(m[v]=C$(m[v])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(i,m)=>{t(S$(i),m,e,0)}),e}return null}function A$(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 Bs={transitional:t0,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(n0(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 f;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return $$(n,this.formSerializer).toString();if((f=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return gl(f?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),A$(n)):n}],transformResponse:[function(n){const t=this.transitional||Bs.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(f){if(m)throw f.name==="SyntaxError"?it.from(f,it.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pn.classes.FormData,Blob:Pn.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=>{Bs.headers[n]={}});const M$=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"]),T$=n=>{const t={};let e,i,m;return n&&n.split(`
|
1411
|
+
`).forEach(function(f){m=f.indexOf(":"),e=f.substring(0,m).trim().toLowerCase(),i=f.substring(m+1).trim(),!(!e||t[e]&&M$[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},i0=Symbol("internals");function js(n){return n&&String(n).trim().toLowerCase()}function ml(n){return n===!1||n==null?n:he.isArray(n)?n.map(ml):String(n)}function E$(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 R$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function wh(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 L$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function I$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,f,v){return this[i].call(this,t,m,f,v)},configurable:!0})})}let ei=class{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function f(w,h,g){const s=js(h);if(!s)throw new Error("header name must be a non-empty string");const c=he.findKey(m,s);(!c||m[c]===void 0||g===!0||g===void 0&&m[c]!==!1)&&(m[c||h]=ml(w))}const v=(w,h)=>he.forEach(w,(g,s)=>f(g,s,h));if(he.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(he.isString(t)&&(t=t.trim())&&!R$(t))v(T$(t),e);else if(he.isHeaders(t))for(const[w,h]of t.entries())f(h,w,i);else t!=null&&f(e,t,i);return this}get(t,e){if(t=js(t),t){const i=he.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return E$(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=js(t),t){const i=he.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||wh(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function f(v){if(v=js(v),v){const w=he.findKey(i,v);w&&(!e||wh(i,i[w],w,e))&&(delete i[w],m=!0)}}return he.isArray(t)?t.forEach(f):f(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const f=e[i];(!t||wh(this,this[f],f,t,!0))&&(delete this[f],m=!0)}return m}normalize(t){const e=this,i={};return he.forEach(this,(m,f)=>{const v=he.findKey(i,f);if(v){e[v]=ml(m),delete e[f];return}const w=t?L$(f):String(f).trim();w!==f&&delete e[f],e[w]=ml(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[i0]=this[i0]={accessors:{}}).accessors,i=this.prototype;function m(f){const v=js(f);e[v]||(I$(i,f),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 bh(n,t){const e=this||Bs,i=t||e,m=ei.from(i.headers);let f=i.data;return he.forEach(n,function(v){f=v.call(e,f,m.normalize(),t?t.status:void 0)}),m.normalize(),f}function r0(n){return!!(n&&n.__CANCEL__)}function Xo(n,t,e){it.call(this,n??"canceled",it.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Xo,it,{__CANCEL__:!0});function o0(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new it("Request failed with status code "+e.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function O$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function D$(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,f=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),g=i[f];v||(v=h),e[m]=w,i[m]=h;let s=f,c=0;for(;s!==m;)c+=e[s++],s=s%n;if(m=(m+1)%n,m===f&&(f=(f+1)%n),h-v<t)return;const a=g&&h-g;return a?Math.round(c*1e3/a):void 0}}function N$(n,t){let e=0,i=1e3/t,m,f;const v=(w,h=Date.now())=>{e=h,m=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),g=h-e;g>=i?v(w,h):(m=w,f||(f=setTimeout(()=>{f=null,v(m)},i-g)))},()=>m&&v(m)]}const vl=(n,t,e=3)=>{let i=0;const m=D$(50,250);return N$(f=>{const v=f.loaded,w=f.lengthComputable?f.total:void 0,h=v-i,g=m(h),s=v<=w;i=v;const c={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:g||void 0,estimated:g&&w&&s?(w-v)/g:void 0,event:f,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(c)},e)},s0=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},a0=n=>(...t)=>he.asap(()=>n(...t)),F$=Pn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Pn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Pn.origin),Pn.navigator&&/(msie|trident)/i.test(Pn.navigator.userAgent)):()=>!0,P$=Pn.hasStandardBrowserEnv?{write(n,t,e,i,m,f){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),f===!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 H$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function z$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function l0(n,t){return n&&!H$(t)?z$(n,t):t}const c0=n=>n instanceof ei?{...n}:n;function go(n,t){t=t||{};const e={};function i(g,s,c,a){return he.isPlainObject(g)&&he.isPlainObject(s)?he.merge.call({caseless:a},g,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function m(g,s,c,a){if(he.isUndefined(s)){if(!he.isUndefined(g))return i(void 0,g,c,a)}else return i(g,s,c,a)}function f(g,s){if(!he.isUndefined(s))return i(void 0,s)}function v(g,s){if(he.isUndefined(s)){if(!he.isUndefined(g))return i(void 0,g)}else return i(void 0,s)}function w(g,s,c){if(c in t)return i(g,s);if(c in n)return i(void 0,g)}const h={url:f,method:f,data:f,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:(g,s,c)=>m(c0(g),c0(s),c,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(g){const s=h[g]||m,c=s(n[g],t[g],g);he.isUndefined(c)&&s!==w||(e[g]=c)}),e}const u0=n=>{const t=go({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:f,headers:v,auth:w}=t;t.headers=v=ei.from(v),t.url=Jm(l0(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(Pn.hasStandardBrowserEnv||Pn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[g,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];v.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Pn.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(t)),i||i!==!1&&F$(t.url))){const g=m&&f&&P$.read(f);g&&v.set(m,g)}return t},B$=typeof XMLHttpRequest<"u",j$=B$&&function(n){return new Promise(function(t,e){const i=u0(n);let m=i.data;const f=ei.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,g,s,c,a,l;function o(){a&&a(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const b=ei.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};o0(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new it("Request aborted",it.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new it("Network Error",it.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||t0;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),e(new it(b,R.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,n,u)),u=null},m===void 0&&f.setContentType(null),"setRequestHeader"in u&&he.forEach(f.toJSON(),function(b,R){u.setRequestHeader(R,b)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([c,l]=vl(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([s,a]=vl(w),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(g=b=>{u&&(e(!b||b.type?new Xo(null,n,u):b),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const y=O$(i.url);if(y&&Pn.protocols.indexOf(y)===-1){e(new it("Unsupported protocol "+y+":",it.ERR_BAD_REQUEST,n));return}u.send(m||null)})},W$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const f=function(g){if(!m){m=!0,w();const s=g instanceof Error?g:this.reason;i.abort(s instanceof it?s:new Xo(s instanceof Error?s.message:s))}};let v=t&&setTimeout(()=>{v=null,f(new it(`timeout ${t} of ms exceeded`,it.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:h}=i;return h.unsubscribe=()=>he.asap(w),h}},U$=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},V$=async function*(n,t){for await(const e of q$(n))yield*U$(e,t)},q$=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()}},h0=(n,t,e,i)=>{const m=V$(n,t);let f=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:s}=await m.next();if(g){w(),h.close();return}let c=s.byteLength;if(e){let a=f+=c;e(a)}h.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},yl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",d0=yl&&typeof ReadableStream=="function",G$=yl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),p0=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Y$=d0&&p0(()=>{let n=!1;const t=new Request(Pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),f0=64*1024,xh=d0&&p0(()=>he.isReadableStream(new Response("").body)),wl={stream:xh&&(n=>n.body)};yl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wl[t]&&(wl[t]=he.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new it(`Response type '${t}' is not supported`,it.ERR_NOT_SUPPORT,i)})})})(new Response);const K$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Pn.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 G$(n)).byteLength},Z$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??K$(t),Q$=yl&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:f,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:g,headers:s,withCredentials:c="same-origin",fetchOptions:a}=u0(n);g=g?(g+"").toLowerCase():"text";let l=W$([m,f&&f.toAbortSignal()],v),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let p;try{if(h&&Y$&&e!=="get"&&e!=="head"&&(p=await Z$(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[M,E]=s0(p,vl(a0(h)));i=h0(k.body,f0,M,E)}}he.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...a,signal:l,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:y?c:void 0});let b=await fetch(o);const R=xh&&(g==="stream"||g==="response");if(xh&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=he.toFiniteNumber(b.headers.get("content-length")),[M,E]=w&&s0(x,vl(a0(w),!0))||[];b=new Response(h0(b.body,f0,M,()=>{E&&E(),u&&u()}),k)}g=g||"text";let A=await wl[he.findKey(wl,g)||"text"](b,n);return!R&&u&&u(),await new Promise((k,x)=>{o0(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 it("Network Error",it.ERR_NETWORK,n,o),{cause:y.cause||y}):it.from(y,y&&y.code,n,o)}}),_h={http:d$,xhr:j$,fetch:Q$};he.forEach(_h,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const g0=n=>`- ${n}`,X$=n=>he.isFunction(n)||n===null||n===!1,m0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let f=0;f<t;f++){e=n[f];let v;if(i=e,!X$(e)&&(i=_h[(v=String(e)).toLowerCase()],i===void 0))throw new it(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+f]=i}if(!i){const f=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?f.length>1?`since :
|
1413
|
+
`+f.map(g0).join(`
|
1414
|
+
`):" "+g0(f[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:_h};function kh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xo(null,n)}function v0(n){return kh(n),n.headers=ei.from(n.headers),n.data=bh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),m0.getAdapter(n.adapter||Bs.adapter)(n).then(function(t){return kh(n),t.data=bh.call(n,n.transformResponse,t),t.headers=ei.from(t.headers),t},function(t){return r0(t)||(kh(n),t&&t.response&&(t.response.data=bh.call(n,n.transformResponse,t.response),t.response.headers=ei.from(t.response.headers))),Promise.reject(t)})}const y0="1.7.9",bl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{bl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const w0={};bl.transitional=function(n,t,e){function i(m,f){return"[Axios v"+y0+"] Transitional option '"+m+"'"+f+(e?". "+e:"")}return(m,f,v)=>{if(n===!1)throw new it(i(f," has been removed"+(t?" in "+t:"")),it.ERR_DEPRECATED);return t&&!w0[f]&&(w0[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,f,v):!0}},bl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function J$(n,t,e){if(typeof n!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const f=i[m],v=t[f];if(v){const w=n[f],h=w===void 0||v(w,f,n);if(h!==!0)throw new it("option "+f+" must be "+h,it.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new it("Unknown option "+f,it.ERR_BAD_OPTION)}}const xl={assertOptions:J$,validators:bl},Gi=xl.validators;let mo=class{constructor(t){this.defaults=t,this.interceptors={request:new e0,response:new e0}}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 f=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
1415
|
+
`+f):i.stack=f}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=go(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:f}=e;i!==void 0&&xl.assertOptions(i,{silentJSONParsing:Gi.transitional(Gi.boolean),forcedJSONParsing:Gi.transitional(Gi.boolean),clarifyTimeoutError:Gi.transitional(Gi.boolean)},!1),m!=null&&(he.isFunction(m)?e.paramsSerializer={serialize:m}:xl.assertOptions(m,{encode:Gi.function,serialize:Gi.function},!0)),xl.assertOptions(e,{baseUrl:Gi.spelling("baseURL"),withXsrfToken:Gi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=f&&he.merge(f.common,f[e.method]);f&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),e.headers=ei.concat(v,f);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 g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!h){const o=[v0.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(e);c<a;)s=s.then(o[c++],o[c++]);return s}a=w.length;let l=e;for(c=0;c<a;){const o=w[c++],u=w[c++];try{l=o(l)}catch(p){u.call(this,p);break}}try{s=v0.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=g.length;c<a;)s=s.then(g[c++],g[c++]);return s}getUri(t){t=go(this.defaults,t);const e=l0(t.baseURL,t.url);return Jm(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){mo.prototype[n]=function(t,e){return this.request(go(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,f){return this.request(go(f||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}mo.prototype[n]=t(),mo.prototype[n+"Form"]=t(!0)});let eS=class jy{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 f=i._listeners.length;for(;f-- >0;)i._listeners[f](m);i._listeners=null}),this.promise.then=m=>{let f;const v=new Promise(w=>{i.subscribe(w),f=w}).then(m);return v.cancel=function(){i.unsubscribe(f)},v},t(function(m,f,v){i.reason||(i.reason=new Xo(m,f,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 jy(function(e){t=e}),cancel:t}}};function tS(n){return function(t){return n.apply(null,t)}}function nS(n){return he.isObject(n)&&n.isAxiosError===!0}const $h={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($h).forEach(([n,t])=>{$h[t]=n});function b0(n){const t=new mo(n),e=Fm(mo.prototype.request,t);return he.extend(e,mo.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return b0(go(n,i))},e}const _n=yn("S",b0(Bs));_n.Axios=mo,_n.CanceledError=Xo,_n.CancelToken=eS,_n.isCancel=r0,_n.VERSION=y0,_n.toFormData=gl,_n.AxiosError=it,_n.Cancel=_n.CanceledError,_n.all=function(n){return Promise.all(n)},_n.spread=tS,_n.isAxiosError=nS,_n.mergeConfig=go,_n.AxiosHeaders=ei,_n.formToJSON=n=>n0(he.isHTMLForm(n)?new FormData(n):n),_n.getAdapter=m0.getAdapter,_n.HttpStatusCode=$h,_n.default=_n;function iS(n,t,e){const i=Ut(n,void 0);return i.setTime(i.getTime()+t*Ea),i}function x0(){return Object.assign({},Do())}function rS(n,t){const e=()=>hn(void 0,NaN),i=lS(n);let m;if(i.date){const h=cS(i.date,2);m=uS(h.restDateString,h.year)}if(!m||isNaN(+m))return e();const f=+m;let v=0,w;if(i.time&&(v=hS(i.time),isNaN(v)))return e();if(i.timezone){if(w=dS(i.timezone),isNaN(w))return e()}else{const h=new Date(f+v),g=Ut(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return Ut(f+v+w,void 0)}const _l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},oS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,aS=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lS(n){const t={},e=n.split(_l.dateTimeDelimiter);let i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],_l.timeZoneDelimiter.test(t.date)&&(t.date=n.split(_l.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){const m=_l.timezone.exec(i);m?(t.time=i.replace(m[1],""),t.timezone=m[1]):t.time=i}return t}function cS(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,f=i[2]?parseInt(i[2]):null;return{year:f===null?m:f*100,restDateString:n.slice((i[1]||i[2]).length)}}function uS(n,t){if(t===null)return new Date(NaN);const e=n.match(oS);if(!e)return new Date(NaN);const i=!!e[4],m=Ws(e[1]),f=Ws(e[2])-1,v=Ws(e[3]),w=Ws(e[4]),h=Ws(e[5])-1;if(i)return vS(t,w,h)?pS(t,w,h):new Date(NaN);{const g=new Date(0);return!gS(t,f,v)||!mS(t,m)?new Date(NaN):(g.setUTCFullYear(t,f,Math.max(m,v)),g)}}function Ws(n){return n?parseInt(n):1}function hS(n){const t=n.match(sS);if(!t)return NaN;const e=Sh(t[1]),i=Sh(t[2]),m=Sh(t[3]);return yS(e,i,m)?e*Ic+i*Ea+m*1e3:NaN}function Sh(n){return n&&parseFloat(n.replace(",","."))||0}function dS(n){if(n==="Z")return 0;const t=n.match(aS);if(!t)return 0;const e=t[1]==="+"?-1:1,i=parseInt(t[2]),m=t[3]&&parseInt(t[3])||0;return wS(i,m)?e*(i*Ic+m*Ea):NaN}function pS(n,t,e){const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,f=(t-1)*7+e+1-m;return i.setUTCDate(i.getUTCDate()+f),i}const fS=[31,null,31,30,31,30,31,31,30,31,30,31];function _0(n){return n%400===0||n%4===0&&n%100!==0}function gS(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(fS[t]||(_0(n)?29:28))}function mS(n,t){return t>=1&&t<=(_0(n)?366:365)}function vS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function yS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function wS(n,t){return t>=0&&t<=59}function bS(n,t,e){return iS(n,-t)}function k0(n,t,e){const i=x0(),m=kS(n,e.timeZone,e.locale??i.locale);return"formatToParts"in m?xS(m,t):_S(m,t)}function xS(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 _S(n,t){const e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function kS(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function $S(n,t){const e=TS(t);return"formatToParts"in e?CS(e,n):AS(e,n)}const SS={year:0,month:1,day:2,hour:3,minute:4,second:5};function CS(n,t){try{const e=n.formatToParts(t),i=[];for(let m=0;m<e.length;m++){const f=SS[e[m].type];f!==void 0&&(i[f]=parseInt(e[m].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function AS(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 Ch={},$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")),MS=$0==="06/25/2014, 00:00:00"||$0==="06/25/2014 00:00:00";function TS(n){return Ch[n]||(Ch[n]=MS?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"})),Ch[n]}function S0(n,t,e,i,m,f,v){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(i,m,f,v),w}const C0=36e5,ES=6e4,Ah={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Mh(n,t,e){if(!n)return 0;let i=Ah.timezoneZ.exec(n);if(i)return 0;let m,f;if(i=Ah.timezoneHH.exec(n),i)return m=parseInt(i[1],10),A0(m)?-(m*C0):NaN;if(i=Ah.timezoneHHMM.exec(n),i){m=parseInt(i[2],10);const v=parseInt(i[3],10);return A0(m,v)?(f=Math.abs(m)*C0+v*ES,i[1]==="+"?-f:f):NaN}if(IS(n)){t=new Date(t||Date.now());const v=e?t:RS(t),w=Th(v,n);return-(e?w:LS(t,w,n))}return NaN}function RS(n){return S0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Th(n,t){const e=$S(n,t),i=S0(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let m=n.getTime();const f=m%1e3;return m-=f>=0?f:1e3+f,i-m}function LS(n,t,e){let i=n.getTime()-t;const m=Th(new Date(i),e);if(t===m)return t;i-=m-t;const f=Th(new Date(i),e);return m===f?m:Math.max(m,f)}function A0(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const M0={};function IS(n){if(M0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),M0[n]=!0,!0}catch{return!1}}const OS=60*1e3,DS={X:function(n,t,e){const i=Eh(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return T0(i);case"XXXX":case"XX":return Jo(i);case"XXXXX":case"XXX":default:return Jo(i,":")}},x:function(n,t,e){const i=Eh(e.timeZone,n);switch(t){case"x":return T0(i);case"xxxx":case"xx":return Jo(i);case"xxxxx":case"xxx":default:return Jo(i,":")}},O:function(n,t,e){const i=Eh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+NS(i,":");case"OOOO":default:return"GMT"+Jo(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return k0("short",n,e);case"zzzz":default:return k0("long",n,e)}}};function Eh(n,t){const e=n?Mh(n,t,!0)/OS:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function kl(n,t){const e=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<t;)i="0"+i;return e+i}function Jo(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=kl(Math.floor(i/60),2),f=kl(Math.floor(i%60),2);return e+m+t+f}function T0(n,t){return n%60===0?(n>0?"-":"+")+kl(Math.abs(n)/60,2):Jo(n,t)}function NS(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.floor(i/60),f=i%60;return f===0?e+String(m):e+String(m)+t+kl(f,2)}function E0(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 FS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Rh=36e5,R0=6e4,PS=2,qn={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:FS};function L0(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?PS: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=HS(n),{year:m,restDateString:f}=zS(i.date,e),v=BS(f,m);if(v===null||isNaN(v.getTime()))return new Date(NaN);if(v){const w=v.getTime();let h=0,g;if(i.time&&(h=jS(i.time),h===null||isNaN(h)))return new Date(NaN);if(i.timeZone||t.timeZone){if(g=Mh(i.timeZone||t.timeZone,new Date(w+h)),isNaN(g))return new Date(NaN)}else g=E0(new Date(w+h)),g=E0(new Date(w+h+g));return new Date(w+h+g)}else return new Date(NaN)}function HS(n){const t={};let e=qn.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=qn.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){const m=qn.timeZone.exec(i);m?(t.time=i.replace(m[1],""),t.timeZone=m[1].trim()):t.time=i}return t}function zS(n,t){if(n){const e=qn.YYY[t],i=qn.YYYYY[t];let m=qn.YYYY.exec(n)||i.exec(n);if(m){const f=m[1];return{year:parseInt(f,10),restDateString:n.slice(f.length)}}if(m=qn.YY.exec(n)||e.exec(n),m){const f=m[1];return{year:parseInt(f,10)*100,restDateString:n.slice(f.length)}}}return{year:null}}function BS(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 f=qn.MM.exec(n);if(f)return e=new Date(0),i=parseInt(f[1],10)-1,D0(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(f=qn.DDD.exec(n),f){e=new Date(0);const v=parseInt(f[1],10);return VS(t,v)?(e.setUTCFullYear(t,0,v),e):new Date(NaN)}if(f=qn.MMDD.exec(n),f){e=new Date(0),i=parseInt(f[1],10)-1;const v=parseInt(f[2],10);return D0(t,i,v)?(e.setUTCFullYear(t,i,v),e):new Date(NaN)}if(f=qn.Www.exec(n),f)return m=parseInt(f[1],10)-1,N0(m)?I0(t,m):new Date(NaN);if(f=qn.WwwD.exec(n),f){m=parseInt(f[1],10)-1;const v=parseInt(f[2],10)-1;return N0(m,v)?I0(t,m,v):new Date(NaN)}return null}function jS(n){let t,e,i=qn.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),Lh(t)?t%24*Rh:NaN;if(i=qn.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),Lh(t,e)?t%24*Rh+e*R0:NaN;if(i=qn.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*Rh+e*R0+m*1e3:NaN}return null}function I0(n,t,e){t=t||0,e=e||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,f=t*7+e+1-m;return i.setUTCDate(i.getUTCDate()+f),i}const WS=[31,28,31,30,31,30,31,31,30,31,30,31],US=[31,29,31,30,31,30,31,31,30,31,30,31];function O0(n){return n%400===0||n%4===0&&n%100!==0}function D0(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const i=O0(n);if(i&&e>US[t]||!i&&e>WS[t])return!1}return!0}function VS(n,t){if(t<1)return!1;const e=O0(n);return!(e&&t>366||!e&&t>365)}function N0(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 qS=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function GS(n,t,e={}){t=String(t);const i=t.match(qS);if(i){const m=L0(e.originalDate||n,e);t=i.reduce(function(f,v){if(v[0]==="'")return f;const w=f.indexOf(v),h=f[w-1]==="'",g=f.replace(v,"'"+DS[v[0]](m,v,e)+"'");return h?g.substring(0,w-1)+g.substring(w+1):g},t)}return no(n,t,e)}function YS(n,t,e){n=L0(n,e);const i=Mh(t,n,!0),m=new Date(n.getTime()-i),f=new Date(0);return f.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),f.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),f}function Ih(n,t,e,i){return i={...i,timeZone:t,originalDate:n},GS(YS(n,t,{timeZone:i.timeZone}),e,i)}const Oh="yyyy-MM-dd",F0="HH:mm:ss.SSS",KS="HH:mm:ss",$l=`${Oh} ${F0}`,hO=yn("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return no(!t||t==="local"?bS(n,n.getTimezoneOffset()):n,$l)},formatDateTime(n,t){return!t||t==="local"?no(n,$l):Ih(n,t,$l)},formatDate:function(n,t){return!t||t==="local"?no(n,Oh):Ih(n,this.timeZone,Oh)},formatTime:function(n,t,e=F0){return!t||t==="local"?no(n,e):Ih(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,KS)},formatTimestamp(n,t){return this.formatDateTime(rS(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 ZS=Object.defineProperty,QS=(n,t,e)=>t in n?ZS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Re=(n,t,e)=>QS(n,typeof t!="symbol"?t+"":t,e);function Dh(n,t,e){const i=Ut(n,e==null?void 0:e.in);return isNaN(t)?hn((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function XS(n,t){const e=Ut(n,void 0).getDay();return e===0?7:e}function JS(n,t){const e=eC(t)?new t(0):hn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function eC(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const tC=10;class P0{constructor(){Re(this,"subPriority",0)}validate(t,e){return!0}}let nC=class extends P0{constructor(t,e,i,m,f){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=m,f&&(this.subPriority=f)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}},iC=class extends P0{constructor(t,e){super(),Re(this,"priority",tC),Re(this,"subPriority",-1),this.context=t||(i=>hn(e,i))}set(t,e){return e.timestampIsSet?t:hn(t,JS(t,this.context))}};class kt{run(t,e,i,m){const f=this.parse(t,e,i,m);return f?{setter:new nC(f.value,this.validate,this.set,this.priority,this.subPriority),rest:f.rest}:null}validate(t,e,i){return!0}}class rC extends kt{constructor(){super(...arguments),Re(this,"priority",140),Re(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 sn={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}/},Yi={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 an(n,t){return n&&{value:t(n.value),rest:n.rest}}function Kt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Ki(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,f=e[3]?parseInt(e[3],10):0,v=e[5]?parseInt(e[5],10):0;return{value:i*(m*Ic+f*Ea+v*ew),rest:t.slice(e[0].length)}}function H0(n){return Kt(sn.anyDigitsSigned,n)}function en(n,t){switch(n){case 1:return Kt(sn.singleDigit,t);case 2:return Kt(sn.twoDigits,t);case 3:return Kt(sn.threeDigits,t);case 4:return Kt(sn.fourDigits,t);default:return Kt(new RegExp("^\\d{1,"+n+"}"),t)}}function z0(n,t){switch(n){case 1:return Kt(sn.singleDigitSigned,t);case 2:return Kt(sn.twoDigitsSigned,t);case 3:return Kt(sn.threeDigitsSigned,t);case 4:return Kt(sn.fourDigitsSigned,t);default:return Kt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Nh(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 B0(n,t){const e=t>0,i=e?t:1-t;let m;if(i<=50)m=n||100;else{const f=i+50,v=Math.trunc(f/100)*100,w=n>=f%100;m=n+v-(w?100:0)}return e?m:1-m}function j0(n){return n%400===0||n%4===0&&n%100!==0}class oC extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,i){const m=f=>({year:f,isTwoDigitYear:e==="yy"});switch(e){case"y":return an(en(4,t),m);case"yo":return an(i.ordinalNumber(t,{unit:"year"}),m);default:return an(en(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=B0(i.year,m);return t.setFullYear(v,0,1),t.setHours(0,0,0,0),t}const f=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(f,0,1),t.setHours(0,0,0,0),t}}class sC extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,i){const m=f=>({year:f,isTwoDigitYear:e==="YY"});switch(e){case"Y":return an(en(4,t),m);case"Yo":return an(i.ordinalNumber(t,{unit:"year"}),m);default:return an(en(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,m){const f=Dc(t,m);if(i.isTwoDigitYear){const w=B0(i.year,f);return t.setFullYear(w,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),Ar(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),Ar(t,m)}}let aC=class extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return z0(e==="R"?4:e.length,t)}set(t,e,i){const m=hn(t,0);return m.setFullYear(i,0,4),m.setHours(0,0,0,0),No(m)}},lC=class extends kt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return z0(e==="u"?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};class cC extends kt{constructor(){super(...arguments),Re(this,"priority",120),Re(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 en(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 uC=class extends kt{constructor(){super(...arguments),Re(this,"priority",120),Re(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 en(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}},hC=class extends kt{constructor(){super(...arguments),Re(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re(this,"priority",110)}parse(t,e,i){const m=f=>f-1;switch(e){case"M":return an(Kt(sn.month,t),m);case"MM":return an(en(2,t),m);case"Mo":return an(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 dC extends kt{constructor(){super(...arguments),Re(this,"priority",110),Re(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,i){const m=f=>f-1;switch(e){case"L":return an(Kt(sn.month,t),m);case"LL":return an(en(2,t),m);case"Lo":return an(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 pC(n,t,e){const i=Ut(n,e==null?void 0:e.in),m=vp(i,e)-t;return i.setDate(i.getDate()-m*7),Ut(i,e==null?void 0:e.in)}class fC extends kt{constructor(){super(...arguments),Re(this,"priority",100),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,i){switch(e){case"w":return Kt(sn.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return en(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,m){return Ar(pC(t,i,m),m)}}function gC(n,t,e){const i=Ut(n,void 0),m=mp(i)-t;return i.setDate(i.getDate()-m*7),i}let mC=class extends kt{constructor(){super(...arguments),Re(this,"priority",100),Re(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 Kt(sn.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return en(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return No(gC(t,i))}};const vC=[31,28,31,30,31,30,31,31,30,31,30,31],yC=[31,29,31,30,31,30,31,31,30,31,30,31];class wC extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subPriority",1),Re(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"d":return Kt(sn.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return en(e.length,t)}}validate(t,e){const i=t.getFullYear(),m=j0(i),f=t.getMonth();return m?e>=1&&e<=yC[f]:e>=1&&e<=vC[f]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}}class bC extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subpriority",1),Re(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 Kt(sn.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return en(e.length,t)}}validate(t,e){const i=t.getFullYear();return j0(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 Fh(n,t,e){var i,m,f,v;const w=Do(),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=(f=w.locale)==null?void 0:f.options)==null?void 0:v.weekStartsOn)??0,g=Ut(n,e==null?void 0:e.in),s=g.getDay(),c=(t%7+7)%7,a=7-h,l=t<0||t>6?t-(s+a)%7:(c+a)%7-(s+a)%7;return Dh(g,l,e)}class xC extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(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=Fh(t,i,m),t.setHours(0,0,0,0),t}}let _C=class extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,i,m){const f=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return an(en(e.length,t),f);case"eo":return an(i.ordinalNumber(t,{unit:"day"}),f);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=Fh(t,i,m),t.setHours(0,0,0,0),t}};class kC extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,i,m){const f=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return an(en(e.length,t),f);case"co":return an(i.ordinalNumber(t,{unit:"day"}),f);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=Fh(t,i,m),t.setHours(0,0,0,0),t}}function $C(n,t,e){const i=Ut(n,void 0),m=XS(i),f=t-m;return Dh(i,f,e)}let SC=class extends kt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,i){const m=f=>f===0?7:f;switch(e){case"i":case"ii":return en(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return an(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 an(i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiiii":return an(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiii":default:return an(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}},CC=class extends kt{constructor(){super(...arguments),Re(this,"priority",80),Re(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(Nh(i),0,0,0),t}};class AC extends kt{constructor(){super(...arguments),Re(this,"priority",80),Re(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(Nh(i),0,0,0),t}}class MC extends kt{constructor(){super(...arguments),Re(this,"priority",80),Re(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(Nh(i),0,0,0),t}}class TC extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,i){switch(e){case"h":return Kt(sn.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return en(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 EC extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,i){switch(e){case"H":return Kt(sn.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}}let RC=class extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,i){switch(e){case"K":return Kt(sn.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return en(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 LC extends kt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,i){switch(e){case"k":return Kt(sn.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return en(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 IC=class extends kt{constructor(){super(...arguments),Re(this,"priority",60),Re(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"m":return Kt(sn.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}};class OC extends kt{constructor(){super(...arguments),Re(this,"priority",50),Re(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"s":return Kt(sn.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return en(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}}let DC=class extends kt{constructor(){super(...arguments),Re(this,"priority",30),Re(this,"incompatibleTokens",["t","T"])}parse(t,e){const i=m=>Math.trunc(m*Math.pow(10,-e.length+3));return an(en(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}};class NC extends kt{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Ki(Yi.basicOptionalMinutes,t);case"XX":return Ki(Yi.basic,t);case"XXXX":return Ki(Yi.basicOptionalSeconds,t);case"XXXXX":return Ki(Yi.extendedOptionalSeconds,t);case"XXX":default:return Ki(Yi.extended,t)}}set(t,e,i){return e.timestampIsSet?t:hn(t,t.getTime()-Ra(t)-i)}}let FC=class extends kt{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Ki(Yi.basicOptionalMinutes,t);case"xx":return Ki(Yi.basic,t);case"xxxx":return Ki(Yi.basicOptionalSeconds,t);case"xxxxx":return Ki(Yi.extendedOptionalSeconds,t);case"xxx":default:return Ki(Yi.extended,t)}}set(t,e,i){return e.timestampIsSet?t:hn(t,t.getTime()-Ra(t)-i)}};class PC extends kt{constructor(){super(...arguments),Re(this,"priority",40),Re(this,"incompatibleTokens","*")}parse(t){return H0(t)}set(t,e,i){return[hn(t,i*1e3),{timestampIsSet:!0}]}}class HC extends kt{constructor(){super(...arguments),Re(this,"priority",20),Re(this,"incompatibleTokens","*")}parse(t){return H0(t)}set(t,e,i){return[hn(t,i),{timestampIsSet:!0}]}}const zC={G:new rC,y:new oC,Y:new sC,R:new aC,u:new lC,Q:new cC,q:new uC,M:new hC,L:new dC,w:new fC,I:new mC,d:new wC,D:new bC,E:new xC,e:new _C,c:new kC,i:new SC,a:new CC,b:new AC,B:new MC,h:new TC,H:new EC,K:new RC,k:new LC,m:new IC,s:new OC,S:new DC,X:new NC,x:new FC,t:new PC,T:new HC},BC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,WC=/^'([^]*?)'?$/,UC=/''/g,VC=/\S/,qC=/[a-zA-Z]/;function GC(n,t,e,i){var m,f,v,w;const h=()=>hn(e,NaN),g=x0(),s=g.locale??gp,c=g.firstWeekContainsDate??((f=(m=g.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,a=g.weekStartsOn??((w=(v=g.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():Ut(e,void 0);const l={firstWeekContainsDate:c,weekStartsOn:a,locale:s},o=[new iC(void 0,e)],u=t.match(jC).map(A=>{const k=A[0];if(k in Nc){const x=Nc[k];return x(A,s.formatLong)}return A}).join("").match(BC),p=[];for(let A of u){$p(A)&&Fc(A,t,n),kp(A)&&Fc(A,t,n);const k=A[0],x=zC[k];if(x){const{incompatibleTokens:M}=x;if(Array.isArray(M)){const I=p.find(T=>M.includes(T.token)||T.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==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);p.push({token:k,fullToken:A});const E=x.run(n,A,s.match,l);if(!E)return h();o.push(E.setter),n=E.rest}else{if(k.match(qC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=YC(A)),n.indexOf(A)===0)n=n.slice(A.length);else return h()}}if(n.length>0&&VC.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=Ut(e,void 0);if(isNaN(+b))return h();const R={};for(const A of y){if(!A.validate(b,l))return h();const k=A.set(b,R,l);Array.isArray(k)?(b=k[0],Object.assign(R,k[1])):b=k}return b}function YC(n){return n.match(WC)[1].replace(UC,"'")}const KC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function ZC(n,t,e,i,m,f){const v=Ee("rux-icon");return Lt(),En(v,{size:e.size,icon:e.icon,style:Oo(f.colorStyle)},null,8,["size","icon","style"])}const QC=ar(KC,[["render",ZC],["__scopeId","data-v-9af48e85"]]),XC="/icons/status-dark.png",JC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return XC},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=iA.indexOf(W0[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 eA(n,t,e,i,m,f){return Lt(),Ri("div",{style:Oo(f.iconStyle)},null,4)}const tA=ar(JC,[["render",eA]]),W0={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"},Ph={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},nA=function(n){const t="#000000",e="#ffffff",i=Ph[W0[n]];if(i){const m=+`0x${i.slice(1,3)}`,f=+`0x${i.slice(3,5)}`,v=+`0x${i.slice(5,7)}`;if((m*299+f*587+v*114)/1e3>128)return t}return e},iA=Object.keys(Ph),rA={astro:{component:n=>_s(QC,{...n})},"astro-status":{component:n=>_s(tA,{...n,status:n.icon})}};class oA{constructor(){eu.get("/openc3-api/autocomplete/data/screen").then(t=>{this.autocompleteData=t.data}),this.api=new lr}async getCompletions(t,e,i,m,f){var v=e.getLine(i.row),w=v.slice(0,i.column),h=w.trimStart().split(/ (?![^<]*>)/),g=this.autocompleteData;h.length>1&&(g=g.find(y=>y.caption===h[0]));var s={},c=!0;if(g&&g.params){g.params.length==h.length-1&&(c=!1);var a=g.params[h.length-2];if(a["Target name"]){var l=await this.api.get_target_names();g=l.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);g=u.reduce((y,b)=>(y[b.packet_name]=b.description,y),{})}else if(a["Item name"]){var o=h[h.length-3],p=h[h.length-2],p=await this.api.get_tlm(o,p);g=p.items.reduce((b,R)=>(b[R.name]=R.description,b),{})}else g=a;s=Object.keys(g||{}).map(y=>{var b={value:y+(c?" ":""),command:c&&"startAutocomplete"};return typeof g[y]=="string"&&(b.meta=g[y]),b})}else s=g;f(null,s)}}const dO=yn("Z",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new lr().load_config(this.configKey,n).then(i=>{i?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(i)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(i=>{i&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:i})})},saveConfigBase:function(n,t){new lr().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),sA={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new lr().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new lr().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},aA={class:"mt-4 pa-3"},lA=["textContent"];function cA(n,t,e,i,m,f){const v=Ee("v-spacer"),w=Ee("v-toolbar"),h=Ee("v-text-field"),g=Ee("v-row"),s=Ee("v-btn"),c=Ee("v-data-table"),a=Ee("v-card-text"),l=Ee("v-card-actions"),o=Ee("v-card"),u=Ee("v-dialog");return Lt(),En(u,{modelValue:f.show,"onUpdate:modelValue":t[4]||(t[4]=p=>f.show=p),onKeydown:Ec(f.cancel,["esc"]),width:"600"},{default:xe(()=>[ve(o,null,{default:xe(()=>[et("form",{onSubmit:t[3]||(t[3]=Xr((...p)=>f.success&&f.success(...p),["prevent"]))},[ve(w,{height:"24"},{default:xe(()=>[ve(v),t[5]||(t[5]=et("span",null,"Open Configuration",-1)),ve(v)]),_:1}),ve(a,null,{default:xe(()=>[et("div",aA,[ve(g,{dense:""},{default:xe(()=>[ve(h,{label:"search",modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=p=>m.search=p),type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ve(c,{modelValue:m.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>m.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:m.search,headers:m.headers,items:m.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,y)=>f.selectRow(y))},{"item.actions":xe(({item:p})=>[ve(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:y=>f.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ve(g,{dense:""},{default:xe(()=>[Bi(et("span",{class:"ma-2 text-red",textContent:Gt(f.error)},null,8,lA),[[ji,f.error]])]),_:1})])]),_:1}),ve(l,{class:"px-2"},{default:xe(()=>[ve(v),ve(s,{variant:"outlined",onClick:f.cancel,"data-test":"open-config-cancel-btn"},{default:xe(()=>t[6]||(t[6]=[$t(" Cancel ")])),_:1},8,["onClick"]),ve(s,{variant:"flat",onClick:Xr(f.success,["prevent"]),type:"submit","data-test":"open-config-submit-btn",disabled:!!f.error},{default:xe(()=>t[7]||(t[7]=[$t(" Ok ")])),_:1},8,["onClick","disabled"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const pO=yn("X",ar(sA,[["render",cA]])),uA={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new lr().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new lr().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}}},hA={class:"mt-4 pa-3"},dA=["textContent"];function pA(n,t,e,i,m,f){const v=Ee("v-spacer"),w=Ee("v-toolbar"),h=Ee("v-text-field"),g=Ee("v-row"),s=Ee("v-btn"),c=Ee("v-data-table"),a=Ee("v-card-text"),l=Ee("v-card-actions"),o=Ee("v-card"),u=Ee("v-dialog");return Lt(),En(u,{modelValue:f.show,"onUpdate:modelValue":t[5]||(t[5]=p=>f.show=p),onKeydown:Ec(f.cancel,["esc"]),width:"600"},{default:xe(()=>[ve(o,null,{default:xe(()=>[et("form",{onSubmit:t[4]||(t[4]=Xr((...p)=>f.success&&f.success(...p),["prevent"]))},[ve(w,{height:"24"},{default:xe(()=>[ve(v),t[6]||(t[6]=et("span",null,"Save Configuration",-1)),ve(v)]),_:1}),ve(a,null,{default:xe(()=>[et("div",hA,[ve(g,{dense:""},{default:xe(()=>[ve(h,{label:"search",modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=p=>m.search=p),type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ve(c,{modelValue:m.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>m.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:m.search,headers:m.headers,items:m.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,y)=>f.selectRow(y))},{"item.actions":xe(({item:p})=>[ve(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:y=>f.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ve(g,{dense:""},{default:xe(()=>[ve(h,{modelValue:m.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>m.configName=p),"hide-details":"",autofocus:"",disabled:!!f.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ve(g,{dense:""},{default:xe(()=>[Bi(et("span",{class:"ma-2 text-red",textContent:Gt(f.error)},null,8,dA),[[ji,f.error]])]),_:1})])]),_:1}),ve(l,{class:"px-2"},{default:xe(()=>[ve(v),ve(s,{variant:"outlined",onClick:f.cancel},{default:xe(()=>t[7]||(t[7]=[$t(" Cancel ")])),_:1},8,["onClick"]),ve(s,{variant:"flat",onClick:Xr(f.success,["prevent"]),type:"submit","data-test":"save-config-submit-btn",disabled:!!f.error},{default:xe(()=>t[8]||(t[8]=[$t(" Ok ")])),_:1},8,["onClick","disabled"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const fO=yn("Y",ar(uA,[["render",pA]])),fA={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=[];this.errors.sort((e,i)=>e.lineNumber-i.lineNumber);for(const e of this.errors){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=Ia.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 oA],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=Ia.require("ace/lib/oop"),t=Ia.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},f=Ia.require("ace/mode/text").Mode;return n.inherits(m,f),(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")})}}},gA={class:"mx-2"},mA={class:"mx-2"},vA=["textContent"];function yA(n,t,e,i,m,f){const v=Ee("v-icon"),w=Ee("v-tooltip"),h=Ee("v-spacer"),g=Ee("v-toolbar"),s=Ee("v-row"),c=Ee("v-btn"),a=Ee("v-file-input"),l=Ee("v-list-item-title"),o=Ee("v-list-item"),u=Ee("v-list"),p=Ee("v-menu"),y=Ee("v-card-text"),b=Ee("v-card"),R=Ee("v-dialog");return Lt(),En(R,{persistent:"",modelValue:f.show,"onUpdate:modelValue":t[5]||(t[5]=A=>f.show=A),width:"75vw"},{default:xe(()=>[ve(b,null,{default:xe(()=>[ve(g,{height:"24"},{default:xe(()=>[et("div",gA,[ve(w,{location:"top"},{activator:xe(({props:A})=>[et("div",Wi(Ui(A)),[ve(v,{"data-test":"delete-screen-icon",onClick:f.deleteScreen},{default:xe(()=>t[6]||(t[6]=[$t(" mdi-delete ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[7]||(t[7]=et("span",null," Delete Screen ",-1))]),_:1})]),ve(h),et("span",null," Edit Screen: "+Gt(e.target)+" "+Gt(e.screen),1),ve(h),et("div",mA,[ve(w,{location:"top"},{activator:xe(({props:A})=>[et("div",Wi(Ui(A)),[ve(v,{"data-test":"download-screen-icon",onClick:f.downloadScreen},{default:xe(()=>t[8]||(t[8]=[$t(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[9]||(t[9]=et("span",null," Download Screen ",-1))]),_:1})])]),_:1}),ve(y,{style:{"max-height":"90vh"}},{default:xe(()=>[ve(s,{class:"mt-3"},{default:xe(()=>t[10]||(t[10]=[$t(" Upload a screen file. ")])),_:1}),ve(s,{"no-gutters":"",align:"center"},{default:xe(()=>[ve(c,{onClick:f.loadFile,disabled:!m.file,color:"primary",class:"mr-3","data-test":"edit-screen-load"},{default:xe(()=>t[11]||(t[11]=[$t(" Load ")])),_:1},8,["onClick","disabled"]),ve(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}),ve(s,{class:"mb-2"},{default:xe(()=>t[12]||(t[12]=[$t(" Edit the screen definition. ")])),_:1}),ve(s,{class:"mb-2"},{default:xe(()=>[et("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=Xr((...A)=>f.showContextMenu&&f.showContextMenu(...A),["prevent"]))},null,544),ve(p,{modelValue:m.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=A=>m.contextMenu=A),target:[m.menuX,m.menuY]},{default:xe(()=>[ve(u,null,{default:xe(()=>[ve(o,{link:""},{default:xe(()=>[ve(l,{onClick:f.openDocumentation},{default:xe(()=>[$t(Gt(m.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),ve(s,{style:{"max-height":"120px","overflow-y":"auto"}},{default:xe(()=>[(Lt(!0),Ri(Yd,null,Kd(f.editErrors,(A,k)=>(Lt(),Ri("div",{key:k},[et("span",{class:"text-red",textContent:Gt(A)},null,8,vA)]))),128))]),_:1}),ve(s,{class:"mt-5"},{default:xe(()=>[t[15]||(t[15]=et("span",null,"Ctrl-space brings up autocomplete. Right click keywords for documentation.",-1)),ve(h),ve(c,{onClick:t[3]||(t[3]=A=>n.$emit("cancel")),class:"mx-2",variant:"outlined","data-test":"edit-screen-cancel"},{default:xe(()=>t[13]||(t[13]=[$t(" Cancel ")])),_:1}),ve(c,{onClick:t[4]||(t[4]=A=>n.$emit("save",n.editor.getValue())),class:"mx-2",color:"primary","data-test":"edit-screen-save"},{default:xe(()=>t[14]||(t[14]=[$t(" Save ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const wA=ar(fA,[["render",yA],["__scopeId","data-v-5b44e7dc"]]),U0="single-spa:app-change",bA={data(){return{show:!1}},created(){window.addEventListener(U0,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=sp().length===0},150)},unmounted(){window.removeEventListener(U0,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},xA={class:"mx-1"};function _A(n,t,e,i,m,f){const v=Ee("v-card-title"),w=Ee("v-card-text"),h=Ee("v-card");return m.show?(Lt(),En(h,{key:0},{default:xe(()=>[ve(v,null,{default:xe(()=>t[0]||(t[0]=[$t(" 404 Not Found ")])),_:1}),ve(w,{class:"d-flex align-center mt-3"},{default:xe(()=>[t[1]||(t[1]=$t(" The requested URL ")),et("code",xA,Gt(n.$route.fullPath),1),t[2]||(t[2]=$t(" was not routable. ")),t[3]||(t[3]=et("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):Xn("",!0)}const kA=ar(bA,[["render",_A]]),Hh=20,$A={mixins:[Ck],components:{EditScreenDialog:wA},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:Ef.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<Hh&&(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 lr,this.configParser=new q1,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<Hh&&(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(){eu.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)})},deleteScreen:function(){this.editDialog=!1,eu.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 f=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:f,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[f])this.currentLayout.widgets.push({type:f,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:f,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<Hh&&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)}}},SA={class:"pa-1",style:{position:"relative"},ref:"screen"};function CA(n,t,e,i,m,f){const v=Ee("v-icon"),w=Ee("v-tooltip"),h=Ee("v-spacer"),g=Ee("v-toolbar"),s=Ee("v-overlay"),c=Ee("vertical-widget"),a=Ee("v-expand-transition"),l=Ee("v-card"),o=Ee("edit-screen-dialog"),u=Ee("v-textarea"),p=Ee("v-dialog");return Lt(),Ri("div",{style:Oo(f.computedStyle),ref:"bar"},[ve(l,{"min-height":m.height,"min-width":m.width,style:{cursor:"default"}},{default:xe(()=>[ve(g,{height:"24"},{default:xe(()=>[Bi(et("div",null,[ve(w,{location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[ve(v,{"data-test":"error-graph-icon",onClick:t[0]||(t[0]=b=>m.errorDialog=!0)},{default:xe(()=>t[7]||(t[7]=[$t(" mdi-alert ")])),_:1})],16)]),default:xe(()=>[t[8]||(t[8]=et("span",null," Errors ",-1))]),_:1})],512),[[ji,m.errors.length!==0]]),ve(w,{location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[ve(v,{"data-test":"edit-screen-icon",onClick:f.openEdit},{default:xe(()=>t[9]||(t[9]=[$t(" mdi-pencil ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[10]||(t[10]=et("span",null," Edit Screen ",-1))]),_:1}),e.fixFloated?Xn("",!0):(Lt(),En(w,{key:0,location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[ve(v,{"data-test":"float-screen-icon",onClick:f.floatScreen},{default:xe(()=>[$t(Gt(m.floated?"mdi-balloon":"mdi-view-grid-outline"),1)]),_:1},8,["onClick"])],16)]),default:xe(()=>[et("span",null,Gt(m.floated?"Unfloat Screen":"Float Screen"),1)]),_:1})),m.floated?(Lt(),En(w,{key:1,location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[ve(v,{"data-test":"up-screen-icon",onClick:f.upScreen},{default:xe(()=>t[11]||(t[11]=[$t(" mdi-arrow-up ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[12]||(t[12]=et("span",null," Move Screen Up ",-1))]),_:1})):Xn("",!0),m.floated&&m.zIndex>e.minZ?(Lt(),En(w,{key:2,location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[ve(v,{"data-test":"down-screen-icon",onClick:f.downScreen},{default:xe(()=>t[13]||(t[13]=[$t(" mdi-arrow-down ")])),_:1},8,["onClick"])],16)]),default:xe(()=>[t[14]||(t[14]=et("span",null," Move Screen Down ",-1))]),_:1})):Xn("",!0),ve(h),et("span",null,Gt(e.target)+" "+Gt(e.screen),1),ve(h),ve(w,{location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[Bi(ve(v,{"data-test":"minimize-screen-icon",onClick:f.minMaxTransition},{default:xe(()=>t[15]||(t[15]=[$t(" mdi-window-minimize ")])),_:1},8,["onClick"]),[[ji,m.expand]]),Bi(ve(v,{"data-test":"maximize-screen-icon",onClick:f.minMaxTransition},{default:xe(()=>t[16]||(t[16]=[$t(" mdi-window-maximize ")])),_:1},8,["onClick"]),[[ji,!m.expand]])],16)]),default:xe(()=>[Bi(et("span",null," Minimize Screen ",512),[[ji,m.expand]]),Bi(et("span",null," Maximize Screen ",512),[[ji,!m.expand]])]),_:1}),e.showClose?(Lt(),En(w,{key:3,location:"top"},{activator:xe(({props:y})=>[et("div",Wi(Ui(y)),[ve(v,{"data-test":"close-screen-icon",onClick:t[1]||(t[1]=b=>n.$emit("close-screen"))},{default:xe(()=>t[17]||(t[17]=[$t(" mdi-close-box ")])),_:1})],16)]),default:xe(()=>[t[18]||(t[18]=et("span",null," Close Screen ",-1))]),_:1})):Xn("",!0)]),_:1}),m.editDialog?Xn("",!0):(Lt(),En(a,{key:0},{default:xe(()=>[Bi(et("div",SA,[ve(s,{style:{"pointer-events":"none"},"model-value":m.errors.length!==0,opacity:"0.8",absolute:"",attach:""},null,8,["model-value"]),(Lt(),En(c,{key:m.screenKey,widgets:m.layoutStack[0].widgets,"screen-values":m.screenValues,"screen-time-zone":e.timeZone,onAddItem:f.addItem,onDeleteItem:f.deleteItem,onOpen:f.open,onClose:f.close,onCloseAll:f.closeAll},null,8,["widgets","screen-values","screen-time-zone","onAddItem","onDeleteItem","onOpen","onClose","onCloseAll"]))],512),[[ji,m.expand]])]),_:1}))]),_:1},8,["min-height","min-width"]),m.editDialog?(Lt(),En(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=>f.saveEdit(y)),onCancel:t[4]||(t[4]=y=>f.cancelEdit()),onDelete:t[5]||(t[5]=y=>f.deleteScreen())},null,8,["modelValue","target","screen","definition","keywords","errors"])):Xn("",!0),ve(p,{modelValue:m.errorDialog,"onUpdate:modelValue":t[6]||(t[6]=y=>m.errorDialog=y),width:"60vw"},{default:xe(()=>[ve(g,{height:"24"},{default:xe(()=>[ve(h),et("span",null," Screen: "+Gt(e.target)+" "+Gt(e.screen)+" Errors ",1),ve(h)]),_:1}),ve(l,null,{default:xe(()=>[ve(u,{class:"errors",readonly:"",rows:"13","model-value":f.error},null,8,["model-value"])]),_:1})]),_:1},8,["modelValue"])],4)}const gO=yn("$",ar($A,[["render",CA],["__scopeId","data-v-8975e347"]])),V0=[{path:"/:target?/:screen?",name:"TlmViewer",component:()=>Ne(()=>De.import("./TlmViewer-e2b4d4da607104f90f56.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:kA}];V0.forEach(up);const AA=rp({history:op(),routes:V0}),MA={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"}},TA={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)}}},EA=["innerHTML"],RA={key:2},LA={key:3,class:"validate mt-4"};function IA(n,t,e,i,m,f){const v=Ee("v-spacer"),w=Ee("v-toolbar"),h=Ee("v-icon"),g=Ee("v-text-field"),s=Ee("v-card-text"),c=Ee("v-btn"),a=Ee("v-card-actions"),l=Ee("v-card"),o=Ee("v-dialog"),u=Ee("v-app");return Lt(),En(u,null,{default:xe(()=>[ve(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),width:"600"},{default:xe(()=>[ve(l,null,{default:xe(()=>[ve(w,{height:"24"},{default:xe(()=>[ve(v),et("span",null,Gt(n.params.title),1),ve(v)]),_:1}),ve(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(Lt(),En(h,{key:0,class:"mr-2"},{default:xe(()=>t[2]||(t[2]=[$t(" mdi-alert ")])),_:1})):Xn("",!0),n.params.html?(Lt(),Ri("span",{key:1,innerHTML:n.params.text},null,8,EA)):(Lt(),Ri("span",RA,Gt(n.params.text),1)),n.params.validateText?(Lt(),Ri("div",LA,[$t(" Enter "+Gt(n.params.validateText)+" to confirm! ",1),ve(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):Xn("",!0)]),_:1}),ve(a,{class:"px-2"},{default:xe(()=>[ve(v),n.params.cancelText?(Lt(),En(c,{key:0,variant:"outlined","data-test":f.dataTestCancel,onClick:f.cancel},{default:xe(()=>[$t(Gt(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):Xn("",!0),ve(c,{variant:"flat",color:n.params.okClass,"data-test":f.dataTestOk,onClick:f.ok},{default:xe(()=>[$t(Gt(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const OA=ar(TA,[["render",IA],["__scopeId","data-v-581c0293"]]);class DA{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(OA);t.use(Bh);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:f,cancelText:v,html:w}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:i,okClass:m,validateText:f,cancelText:v,html:w},h,g)})}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:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:i,cancelText:m,html:!1})}}const NA={install(n,t){const e=new DA;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},FA={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:${Ph[this.toastNotification.level]};
|
1418
|
+
--toast-fg-color:${nA(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}}},PA={key:0,class:"text-subtitle-1 mr-1 notification-text"},HA={key:1,class:"text-body-2 notification-text"},zA={key:2,class:"text-body-2 notification-text"};function BA(n,t,e,i,m,f){const v=Ee("v-icon"),w=Ee("v-spacer"),h=Ee("v-btn"),g=Ee("v-sheet"),s=Ee("v-slide-y-transition");return Lt(),En(s,null,{default:xe(()=>[Bi(ve(g,{style:Oo(f.toastStyle),class:"toast-notification",onClick:f.expand},{default:xe(()=>[ve(v,{class:"mr-1 notification-text"},{default:xe(()=>[$t(Gt(f.toastNotificationIcon),1)]),_:1}),et("div",{class:"toast-content",style:Oo(f.contentStyle)},[n.toastNotification.title?(Lt(),Ri("span",PA,Gt(n.toastNotification.title)+": ",1)):Xn("",!0),n.toastNotification.body?(Lt(),Ri("span",HA,Gt(n.toastNotification.body),1)):Xn("",!0),n.toastNotification.message?(Lt(),Ri("span",zA,Gt(n.toastNotification.message),1)):Xn("",!0)],4),ve(w),ve(h,{variant:"text",onClick:Xr(f.hide,["stop"]),class:"notification-text"},{default:xe(()=>t[0]||(t[0]=[$t(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[ji,n.showToast]])]),_:1})}const jA=ar(FA,[["render",BA],["__scopeId","data-v-b0459ba8"]]);class WA{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(jA);t.use(Bh);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:f,duration:v,type:w="alert",logToConsole:h=!1,saveToHistory:g=!0}){this.mount(),h&&console.log(m?`${f.toUpperCase()} - ${m}`:`${f.toUpperCase()} - ${e}: ${i}`),g&&this.$store.commit("notifyAddHistory",{title:e,body:i,message:m,level:f}),this[t]({title:e,body:i,message:m,level:f,duration:v,type:w})}toast({title:t,body:e,message:i,level:m,duration:f,type:v}){this.$root.toast({title:t,body:e,message:i,level:m,type:v},f)}critical({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}caution({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}off({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}}const UA={install(n,t){const e=new WA(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},q0=100,G0=ap({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=q0&&(n.notifyHistory.length=q0-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 Y0(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function VA(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 K0(){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 f=n[m],v=t[m];if(Y0(f)&&Y0(v)){i[m]=K0(f,v,e);continue}if(e&&Array.isArray(f)&&Array.isArray(v)){i[m]=e(f,v);continue}i[m]=v}return i}function Us(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Us.cache.has(n))return Us.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Us.cache.set(n,t),t}Us.cache=new Map;function qA(n){Xd(`Vuetify: ${n}`)}function Z0(n,t){return e=>Object.keys(n).reduce((i,m)=>{const f=typeof n[m]=="object"&&n[m]!=null&&!Array.isArray(n[m])?n[m]:{type:n[m]};return e&&m in e?i[m]={...f,default:e[m]}:i[m]=f,t&&!i[m].source&&(i[m].source=t),i},{})}function Q0(n,t){const e=np();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function GA(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q0("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const zh=Symbol.for("vuetify:defaults");function X0(){const n=Jd(zh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function YA(n,t){var e,i;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((i=n.props)==null?void 0:i[Us(t)])<"u"}function KA(){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]:X0();const i=Q0("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const m=Rc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),f=new Proxy(n,{get(h,g){var s,c,a,l,o,u,p;const y=Reflect.get(h,g);return g==="class"||g==="style"?[(s=m.value)==null?void 0:s[g],y].filter(b=>b!=null):typeof g=="string"&&!YA(i.vnode,g)?((c=m.value)==null?void 0:c[g])!==void 0?(a=m.value)==null?void 0:a[g]:((o=(l=e.value)==null?void 0:l.global)==null?void 0:o[g])!==void 0?(p=(u=e.value)==null?void 0:u.global)==null?void 0:p[g]:y:y}}),v=ep();tp(()=>{if(m.value){const h=Object.entries(m.value).filter(g=>{let[s]=g;return s.startsWith(s[0].toUpperCase())});v.value=h.length?Object.fromEntries(h):void 0}else v.value=void 0});function w(){const h=GA(zh,i);ip(zh,Rc(()=>v.value?K0((h==null?void 0:h.value)??{},v.value):h==null?void 0:h.value))}return{props:f,provideSubDefaults:w}}function Sl(n){if(n._setup=n._setup??n.setup,!n.name)return qA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Z0(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return VA(e,t)},n.props._as=String,n.setup=function(e,i){const m=X0();if(!m.value)return n._setup(e,i);const{props:f,provideSubDefaults:v}=KA(e,e._as??n.name,m),w=n._setup(f,i);return v(),w}}return n}function ZA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Sl:Qd)(t)}const QA=[String,Function,Object,Array],Cl=Z0({icon:{type:QA},tag:{type:String,required:!0}},"icon");ZA()({name:"VComponentIcon",props:Cl(),setup(n,t){let{slots:e}=t;return()=>{const i=n.icon;return ve(n.tag,null,{default:()=>{var m;return[n.icon?ve(i,null,null):(m=e.default)==null?void 0:m.call(e)]}})}}}),Sl({name:"VSvgIcon",inheritAttrs:!1,props:Cl(),setup(n,t){let{attrs:e}=t;return()=>ve(n.tag,Zd(e,{style:null}),{default:()=>[ve("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)?ve("path",{d:i[0],"fill-opacity":i[1]},null):ve("path",{d:i},null)):ve("path",{d:n.icon},null)])]})}}),Sl({name:"VLigatureIcon",props:Cl(),setup(n){return()=>ve(n.tag,null,{default:()=>[n.icon]})}});const XA=Sl({name:"VClassIcon",props:Cl(),setup(n){return()=>ve(n.tag,{class:n.icon},null)}}),JA={component:n=>_s(XA,{...n,class:"mdi"})},Bh=lp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:MA}},icons:{defaultSet:"mdi",sets:{mdi:JA,...rA}}}),jh=Vy({createApp:Lc,appOptions:{render(){return _s(Jy,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(AA),n.use(G0),n.use(Bh),n.use(NA),n.use(UA,{store:G0})}}),mO=yn("f",jh.bootstrap),vO=yn("m",jh.mount),yO=yn("u",jh.unmount)}}});
|