openc3-cosmos-tool-dataextractor 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/dataextractor/ArrayWidget-Dh6zDiC7-873bed41f0920d4f20e2.js +2 -0
- data/tools/dataextractor/{ArrayplotWidget-CDNRxI2F-a83801ded05b12f711f8.js → ArrayplotWidget-CSc_TqNm-faea7e102c3b0e77340e.js} +1 -1
- data/tools/dataextractor/{BarColumn-nSFR2LZF-52aaa4252f2230353368.js → BarColumn-DmjMnw5l-e63ca3ac4f4e5f880c78.js} +1 -1
- data/tools/dataextractor/BlockWidget-BdR_HCVc-339e6dbc0abdf23824ee.js +2 -0
- data/tools/dataextractor/{ButtonWidget-rS7sVb7m-dbf9f92372e6dff8e3d3.js → ButtonWidget-DZ4VCNWU-467ba3039befef92a15a.js} +2 -2
- data/tools/dataextractor/{CanvasWidget-DuWolVCW-2bd38dd443fd2f303296.js → CanvasWidget-DuXOo3jG-cca60757795adfc9b555.js} +1 -1
- data/tools/dataextractor/CanvasdotWidget-WoLpxI1u-42cc7026c74d2b83f1bf.js +1 -0
- data/tools/dataextractor/{CanvasimageWidget-DMHdDTSs-e3480e258876ee7d5ce8.js → CanvasimageWidget-tWpK5rsv-037c03642913e202f682.js} +1 -1
- data/tools/dataextractor/{CanvasimagevalueWidget-ns-5S1HA-984a3695590efe80a103.js → CanvasimagevalueWidget-BVzJYz3l-3d76b92444baed7b16b9.js} +1 -1
- data/tools/dataextractor/{CanvaslabelWidget-DElES3gU-9213b36fbadeb0359f4e.js → CanvaslabelWidget-CDFf8Vll-90f5994b9ebe9dd669d7.js} +1 -1
- data/tools/dataextractor/{CanvaslabelvalueWidget-B2B5KlUm-04fa31c935f3aa224322.js → CanvaslabelvalueWidget-DzJKD6qs-16454bcd3f0db6ad1a0d.js} +1 -1
- data/tools/dataextractor/CanvaslineWidget-BttTXCZq-4f927bb9d629d4ca2431.js +1 -0
- data/tools/dataextractor/{CanvaslinevalueWidget-CrtDsSOP-3dd527a40c656fd8d936.js → CanvaslinevalueWidget-i6G0JfnZ-6ed33732c8ac89cd98bb.js} +1 -1
- data/tools/dataextractor/CheckbuttonWidget-18jtf7sh-1bb7cf5924c0accea787.js +1 -0
- data/tools/dataextractor/{ComboboxWidget-CciRWuKq-3f1ba4ec7db5de697819.js → ComboboxWidget-BjaVFbD4-68be351db2576115fc45.js} +1 -1
- data/tools/dataextractor/{DataExtractor-e5f302088707d33752fd.js → DataExtractor-6a57a8b8549d610cacac.js} +8 -8
- data/tools/dataextractor/{DateWidget-DwgQ3Jik-d443f1fdc2599de1735d.js → DateWidget-DkFAFlc8-8b87a00cd8c7df7adf8c.js} +1 -1
- data/tools/dataextractor/{DetailsDialog-CspQjoR5-a13c819a71a18f3ba1f8.js → DetailsDialog-sqja4Lzq-3c07f8084078cec125bc.js} +1 -1
- data/tools/dataextractor/{DynamicWidget-Bym87woV-24d53debe022dc41bdad.js → DynamicWidget-BuSbQVhf-57879c868050e8e6066a.js} +1 -1
- data/tools/dataextractor/{FilechecksumWidget-BS281Q0h-aa51848ef542e86ad554.js → FilechecksumWidget-DqJ_hvN4-458d5afdd66f766a320e.js} +1 -1
- data/tools/dataextractor/{FiledisplayWidget-C9YdXDdv-7048222386da1c6b8556.js → FiledisplayWidget-CYznG_tf-633ffe7729c3d8df045f.js} +1 -1
- data/tools/dataextractor/{FormatvalueWidget-dfmQfrNA-43064fa838d0937da3ab.js → FormatvalueWidget-BnVu4YGx-685c1b3d38cda62137ef.js} +1 -1
- data/tools/dataextractor/Graph-CUFzx8Ti-e326729124e84b220373.js +1 -0
- data/tools/dataextractor/{GraphWidget-CWJ4Yb26-15460f438f038901828a.js → GraphWidget-DO5XbOGy-edd2165bb446a9306f21.js} +1 -1
- data/tools/dataextractor/{HorizontalWidget-DFAqF95S-4494e9bd7db85c2b3380.js → HorizontalWidget-BA9PiP3d-61dbe5e15cff5d64bb29.js} +1 -1
- data/tools/dataextractor/HorizontalboxWidget-B-7HOqgl-32dab144449bf94f15aa.js +1 -0
- data/tools/dataextractor/HorizontallineWidget-D-o9MGo0-ddb9630a2adc743b1e74.js +1 -0
- data/tools/dataextractor/{IframeWidget-BsDu4b17-729d665632327b5613f4.js → IframeWidget-BzOka-fX-cbf4824b3f4d3e3f6424.js} +1 -1
- data/tools/dataextractor/{ImageLoader-CT4rnwWn-5b50796341061a230f31.js → ImageLoader-CstmWFM4-f27420bebced8580ff70.js} +1 -1
- data/tools/dataextractor/{ImageviewerWidget-BQbrz2WL-708300227e9c554627dd.js → ImageviewerWidget-BA9uOM1q-b0947f82f033e760c532.js} +1 -1
- data/tools/dataextractor/{LabelWidget-D5-IFUYW-5fcc7202ac2b5e9869c8.js → LabelWidget-Da2howZF-bfb9fcc9c81e16f870e5.js} +1 -1
- data/tools/dataextractor/LabelledWidget-BH8y3OXT-68af25a9704951142531.js +1 -0
- data/tools/dataextractor/{LabelprogressbarWidget-BNFgTq4D-606ff758c918eb5b0223.js → LabelprogressbarWidget-Brl24F4c-e37d3a3a1ea8e0130fa0.js} +1 -1
- data/tools/dataextractor/LabelsparklineWidget-D22MB7-4-4d4c54cc590572f96ebc.js +1 -0
- data/tools/dataextractor/LabelvalueWidget-_1JPbK-K-79535add803f699f912d.js +1 -0
- data/tools/dataextractor/{LabelvaluedescWidget-DeBRjYXs-7d13f0625327ab080392.js → LabelvaluedescWidget-BgduSJJb-2c9d371ecc2f493464fd.js} +1 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-C9PlEhWo-124291211bb9a7fb7a20.js +1 -0
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-Cay6AhoZ-aeb62c844e9d862bc2b3.js +1 -0
- data/tools/dataextractor/LabelvaluerangebarWidget-s_8IgY-C-299393edba519bae3a75.js +1 -0
- data/tools/dataextractor/{Layout-LSeXBY_W-523b3bdfa663af9d9dc2.js → Layout-D7RGn0Fe-4c6501b5b5c13bc5939b.js} +1 -1
- data/tools/dataextractor/{LedWidget-CH4Il9R7-84f6b5b3f3604db94a1e.js → LedWidget-DgMtvsiv-f9fb0a4ee2f71ef2a9f6.js} +1 -1
- data/tools/dataextractor/{LimitsBar-BelAQFD0-1c800ecbee755a7c8180.js → LimitsBar-CcOaAw0C-3ee7e5044b0ba18270a6.js} +1 -1
- data/tools/dataextractor/{LimitsbarWidget-PkPqlyxL-41cb2134202cfc229b0d.js → LimitsbarWidget-DpmJn1Lo-06311c5aa1a8fd9c3272.js} +1 -1
- data/tools/dataextractor/{LimitscolorWidget-BlA15g4A-ac374db2daee985c3708.js → LimitscolorWidget-BMXiEaDm-82722cde5d79a4a63dd5.js} +1 -1
- data/tools/dataextractor/{LimitscolumnWidget-PT917BA0-ec85efca8ebf5a868be1.js → LimitscolumnWidget-ufFMz6R--c471ef82b3a96efbb076.js} +1 -1
- data/tools/dataextractor/{LinegraphWidget-BW7kS_6G-5ff2b791254cc5b7db2a.js → LinegraphWidget-BC2wVOny-7d86e1f9b9bee5c66333.js} +1 -1
- data/tools/dataextractor/{MatrixbycolumnsWidget-BGNsZvjv-896c0c73f296fc47bc2b.js → MatrixbycolumnsWidget-DfUAeBnO-b55624295093260752b3.js} +1 -1
- data/tools/dataextractor/{OpenC3TimePicker-CkaALgy9-f3da4082559cd932f4f8.js → OpenC3TimePicker-DpkbfbgC-b9b15927c58cff1786d9.js} +1 -1
- data/tools/dataextractor/{ProgressbarWidget-Cy_ad8mb-1df695c5267162e765d7.js → ProgressbarWidget-D3ndYnq_-3586c760d2e8861c4010.js} +1 -1
- data/tools/dataextractor/{RadiobuttonWidget-aJBIz45y-801a2c33babce797526f.js → RadiobuttonWidget-CP0S9nWW-7982529538978f6d02c1.js} +1 -1
- data/tools/dataextractor/{RadiogroupWidget-DNRlJnPE-a36bed855246f97bd481.js → RadiogroupWidget-BXHfA21T-dd31b0768cdf93c1cabc.js} +1 -1
- data/tools/dataextractor/{RangebarWidget-h4YItqPF-280ea4eef24736bdbb85.js → RangebarWidget-Bv2DqkPo-ec5662b730343afaa28e.js} +1 -1
- data/tools/dataextractor/{RollupWidget-CnxDQRQ0-6358e8358a580c5921d0.js → RollupWidget-o_huYU0x-8a7a96915fa5538ce930.js} +1 -1
- data/tools/dataextractor/{ScrollwindowWidget-DFkTJ2Ue-cb731315321666ce3bce.js → ScrollwindowWidget-DdjaML6D-b4480561f3da8583459b.js} +1 -1
- data/tools/dataextractor/{SignalWidget-jYpXSIfD-c768dd15f02c955f8b39.js → SignalWidget-Dd54y28I-ad29f9a3ddb39bc8e712.js} +1 -1
- data/tools/dataextractor/SpacerWidget-GPFYtIG1-9dd77eb1e2a7304cf299.js +1 -0
- data/tools/dataextractor/{SparklineWidget-CVf1TtjV-1fe0a1f3a17091ff0b62.js → SparklineWidget-f11nrlLS-92deda7a9b6298571159.js} +1 -1
- data/tools/dataextractor/TabbookWidget-DeaC27yC-a92ec7a904c37d283bab.js +1 -0
- data/tools/dataextractor/{TargetPacketItemChooser-CS2Vvi2U-33c8290f414a2fa4a3d2.js → TargetPacketItemChooser-BoBqvs3T-341c7c9e84a220b1a0d3.js} +1 -1
- data/tools/dataextractor/{TextboxWidget-B0Y1W7GP-1bcbf7550300c331597a.js → TextboxWidget-tL41zWUX-75750425b2582c87e1a4.js} +1 -1
- data/tools/dataextractor/TextfieldWidget-D1qj14Qi-0858b199ec7f9902291c.js +1 -0
- data/tools/dataextractor/TimeWidget-CSVGNong-12f265007f01523c523a.js +1 -0
- data/tools/dataextractor/TitleWidget-CLx-tuYT-e469f1843cd091fea225.js +1 -0
- data/tools/dataextractor/{VWidget-0KwtSssI-de3422ba8381ba405cbe.js → VWidget-CxnaMF0w-a4302069e065dead5397.js} +1 -1
- data/tools/dataextractor/ValueWidget-BYgpXfDo-9f7bb34efd4d22fd774e.js +1 -0
- data/tools/dataextractor/ValuelimitsbarWidget-Dc9-VNZ3-42880e7e026ad3e9e259.js +1 -0
- data/tools/dataextractor/ValuelimitscolumnWidget-b7W8K3mR-c331b0200587603b6c9e.js +1 -0
- data/tools/dataextractor/ValuerangebarWidget-DmhczZQb-c8c6852c06a1fb11c936.js +1 -0
- data/tools/dataextractor/{VerticalWidget-0UbbE2g3-adcb27032c4f6fa2fbfe.js → VerticalWidget-BvsVh0Ob-32ffa67d963ba10b5185.js} +1 -1
- data/tools/dataextractor/VerticalboxWidget-ClTCDCQN-b36d02475eee09ac8fa2.js +1 -0
- data/tools/dataextractor/{Widget-CGePksBA-7989ab8fd0278679400c.js → Widget-DRhVdCLP-3d6dd25fe49a64f4c89c.js} +1 -1
- data/tools/dataextractor/main-7641c12765b47b03f01d.js +1490 -0
- data/tools/dataextractor/main.js +1 -1
- metadata +73 -73
- data/tools/dataextractor/ArrayWidget-D2UrA5Db-1c55b514e63b95e490f6.js +0 -2
- data/tools/dataextractor/BlockWidget-C-WB0Q2m-e1a936c86d9896422505.js +0 -2
- data/tools/dataextractor/CanvasdotWidget-B42YizA1-890ec798f4b45d558907.js +0 -1
- data/tools/dataextractor/CanvaslineWidget-DaHxgGyM-4b7e326afc628efa9af7.js +0 -1
- data/tools/dataextractor/CheckbuttonWidget-BK4SgIu7-773142e6557fb0f58a78.js +0 -1
- data/tools/dataextractor/Graph-BTtGIbYG-52d7fea4217161d294a4.js +0 -1
- data/tools/dataextractor/HorizontalboxWidget-CL1xEhDj-2dd7af897f322c232db4.js +0 -1
- data/tools/dataextractor/HorizontallineWidget-DPiADCAy-d4be2847dc5bacd22c4c.js +0 -1
- data/tools/dataextractor/LabelledWidget-Dt9miRtB-bb76d04fcf2b737b5427.js +0 -1
- data/tools/dataextractor/LabelsparklineWidget-BByxev6X-4dad3009fa3f0d9431c1.js +0 -1
- data/tools/dataextractor/LabelvalueWidget-BM6L9bVw-59a90e09c9e467c44e76.js +0 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-CqV0-c3G-51ce8510c0eaa914f0b3.js +0 -1
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-Bz0PKTIV-62a95b407e98ab69b8f0.js +0 -1
- data/tools/dataextractor/LabelvaluerangebarWidget-DKuAJHLm-4d25d7a8a2989a7f9778.js +0 -1
- data/tools/dataextractor/SpacerWidget-CUqvml6o-de2112756e057c724689.js +0 -1
- data/tools/dataextractor/TabbookWidget-CTUEpDnn-c73cbfe51c07bb486d65.js +0 -1
- data/tools/dataextractor/TextfieldWidget-B8TAf9oU-2216d2290bef09e3d7ef.js +0 -1
- data/tools/dataextractor/TimeWidget-DewVXks0-da9657b4ea49f337b77c.js +0 -1
- data/tools/dataextractor/TitleWidget-BAq2LGJF-ae630acb77cf4c766ebc.js +0 -1
- data/tools/dataextractor/ValueWidget-BGNqaaRs-7f8ecf0b5a905c91d823.js +0 -1
- data/tools/dataextractor/ValuelimitsbarWidget-B6mH4PdF-4a0a3408f6142f31fece.js +0 -1
- data/tools/dataextractor/ValuelimitscolumnWidget-DlX90_-6-6ab61b02182d88318289.js +0 -1
- data/tools/dataextractor/ValuerangebarWidget-C9xyLOJO-a10f1bcce7dea09a14bb.js +0 -1
- data/tools/dataextractor/VerticalboxWidget-efbeOAKE-7cafb64c5c613da26835.js +0 -1
- data/tools/dataextractor/main-92b16557aa3a51ee770f.js +0 -1490
|
@@ -1,1490 +0,0 @@
|
|
|
1
|
-
System.register(["vue","vue-router","pinia","single-spa","vuetify"],(function(Mn,tt){"use strict";var Ct,ro,In,Et,ut,Xr,lr,pf,gf,zs,Ca,yl,vo,Ar,Zr,bl,js,wl,xl,mf,vf,yf,ru,bf,wf,xf,Cf,kf,iu,Af,_f,Sf,$f,Tf,ou,Mf;return{setters:[At=>{Ct=At.resolveComponent,ro=At.createBlock,In=At.openBlock,Et=At.withCtx,ut=At.createVNode,Xr=At.createElementBlock,lr=At.createElementVNode,pf=At.useCssVars,gf=At.defineAsyncComponent,zs=At.h,Ca=At.normalizeStyle,yl=At.Fragment,vo=At.createCommentVNode,Ar=At.createTextVNode,Zr=At.toDisplayString,bl=At.withKeys,js=At.withModifiers,wl=At.withDirectives,xl=At.vShow,mf=At.defineComponent,vf=At.warn,yf=At.inject,ru=At.computed,bf=At.shallowRef,wf=At.watchEffect,xf=At.normalizeClass,Cf=At.getCurrentInstance,kf=At.provide,iu=At.createApp,Af=At.mergeProps},At=>{_f=At.createRouter,Sf=At.createWebHistory},At=>{$f=At.defineStore,Tf=At.createPinia},At=>{ou=At.getMountedApps},At=>{Mf=At.createVuetify}],execute:(function(){Mn({C:uu,E:qf,F:Kf,O:Hs,P:ka,T:Vf,W:Wf,f:Sr,g:io,h:Or,i:lu,l:Us,n:hy,p:Pf,q:Ff});var At=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function If(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(v){return Object.getOwnPropertyDescriptor(t,v).enumerable}))),e.push.apply(e,r)}return e}function ss(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?If(Object(e),!0).forEach((function(r){V0(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):If(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function V0(t,n,e){return(n=(function(r){var v=(function(p,g){if(as(p)!=="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var h=w.call(p,g);if(as(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)})(r,"string");return as(v)==="symbol"?v:String(v)})(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function as(t){return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},as(t)}(function(t){if(t.CSS&&t.CSS.escape)return t.CSS.escape;var n=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,v=String(e),p=v.length,g=-1,w="",h=v.charCodeAt(0);++g<p;)(r=v.charCodeAt(g))!=0?w+=r>=1&&r<=31||r==127||g==0&&r>=48&&r<=57||g==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":g==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+v.charAt(g):v.charAt(g):w+="�";return w};t.CSS||(t.CSS={}),t.CSS.escape=n})(At);var K0={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function q0(t){if(as(t)!=="object")throw new Error("single-spa-vue requires a configuration object");var n=ss(ss({},K0),t);if(!n.Vue&&!n.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!n.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(n.appOptions.el&&typeof n.appOptions.el!="string"&&!(n.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(as(n.appOptions.el)));n.createApp=n.createApp||n.Vue&&n.Vue.createApp;var e={};return{bootstrap:G0.bind(null,n,e),mount:Y0.bind(null,n,e),unmount:Z0.bind(null,n,e),update:X0.bind(null,n,e)}}function G0(t){return t.loadRootComponent?t.loadRootComponent().then((function(n){return t.rootComponent=n})):Promise.resolve()}function Y0(t,n,e){var r={};return Promise.resolve().then((function(){return(function(v,p){return typeof v.appOptions=="function"?v.appOptions(p):Promise.resolve(ss({},v.appOptions))})(t,e).then((function(v){var p;if(e.domElement&&!v.el&&(v.el=e.domElement),v.el)if(typeof v.el=="string"){if(!(p=document.querySelector(v.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(v.el))}else(p=v.el).id||(p.id="single-spa-application:".concat(e.name)),v.el="#".concat(CSS.escape(p.id));else{var g="single-spa-application:".concat(e.name);v.el="#".concat(CSS.escape(g)),(p=document.getElementById(g))||((p=document.createElement("div")).id=g,document.body.appendChild(p))}if(!t.replaceMode&&(v.el=v.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",p.appendChild(w)}r.domEl=p,v.render||v.template||!t.rootComponent||(v.render=function(d){return d(t.rootComponent)}),v.data||(v.data={});var h=v.data;if(v.data=function(){return ss(ss({},typeof h=="function"?h.call(this,this):h),e)},t.createApp){if(r.vueInstance=t.createApp(v),t.handleInstance)return Promise.resolve(t.handleInstance(r.vueInstance,e)).then((function(){return r.root=r.vueInstance.mount(v.el),n[e.name]=r,r.vueInstance}));r.root=r.vueInstance.mount(v.el)}else if(r.vueInstance=new t.Vue(v),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),t.handleInstance)return Promise.resolve(t.handleInstance(r.vueInstance,e)).then((function(){return n[e.name]=r,r.vueInstance}));return n[e.name]=r,r.vueInstance}))}))}function X0(t,n,e){return Promise.resolve().then((function(){var r=n[e.name],v=ss(ss({},t.appOptions.data||{}),e),p=r.root||r.vueInstance;for(var g in v)p[g]=v[g]}))}function Z0(t,n,e){return Promise.resolve().then((function(){var r=n[e.name];t.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)}))}const Q0=Mn("_",(t,n)=>{const e=t.__vccOpts||t;for(const[r,v]of n)e[r]=v;return e}),J0={};function ew(t,n){const e=Ct("router-view"),r=Ct("v-app");return In(),ro(r,{id:"innerapp"},{default:Et(()=>[ut(e)]),_:1})}const tw=Q0(J0,[["render",ew]]),VN="modulepreload",KN=function(t){return"/"+t},qN={},nt=function(n,e,r){let v=Promise.resolve();function p(g){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=g,window.dispatchEvent(w),!w.defaultPrevented)throw g}return v.then(g=>{for(const w of g||[])w.status==="rejected"&&p(w.reason);return n().catch(p)})},Ef=function(t){!t.name!=="NotFound"&&(t.path=`/tools/dataextractor/${t.path.replace(/^\//,"")}`),t.children?.forEach(Ef)},Po=Mn("d",(t,n)=>{const e=t.__vccOpts||t;for(const[r,v]of n)e[r]=v;return e}),nw="/icons/customIcons.svg",su={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return nw+"#"+this.icon}}},Lf=()=>{pf(t=>({v4ccb3d08:t.color}))},Rf=su.setup;su.setup=Rf?(t,n)=>(Lf(),Rf(t,n)):Lf;const rw={class:"cosmos-custom-icon"},iw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},ow=["href"];function sw(t,n,e,r,v,p){return In(),Xr("span",rw,[(In(),Xr("svg",iw,[lr("use",{href:p.iconSrc},null,8,ow)]))])}const aw=Po(su,[["render",sw],["__scopeId","data-v-54b83b01"]]),Cl=6e4,au=36e5,lw=1e3,Of=Symbol.for("constructDateFrom");Mn({o:Cl,m:au,L:lw});function io(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Of in t?t[Of](n):t instanceof Date?new t.constructor(n):new Date(n)}function Or(t,n){return io(n||t,t)}let cw={};function Hs(){return cw}function Us(t,n){const e=Hs(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,v=Or(t,n?.in),p=v.getDay(),g=(p<r?7:0)+p-r;return v.setDate(v.getDate()-g),v.setHours(0,0,0,0),v}function ka(t,n){return Us(t,{...n,weekStartsOn:1})}function Nf(t,n){const e=Or(t,n?.in),r=e.getFullYear(),v=io(e,0);v.setFullYear(r+1,0,4),v.setHours(0,0,0,0);const p=ka(v),g=io(e,0);g.setFullYear(r,0,4),g.setHours(0,0,0,0);const w=ka(g);return e.getTime()>=p.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function lu(t){const n=Or(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function uw(t,...n){const e=io.bind(null,n.find(r=>typeof r=="object"));return n.map(e)}function Df(t,n){const e=Or(t,n?.in);return e.setHours(0,0,0,0),e}function hw(t,n,e){const[r,v]=uw(e?.in,t,n),p=Df(r),g=Df(v),w=+p-lu(p),h=+g-lu(g);return Math.round((w-h)/864e5)}function dw(t,n){const e=Nf(t,n),r=io(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),ka(r)}function fw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ff(t){return!(!fw(t)&&typeof t!="number"||isNaN(+Or(t)))}function pw(t,n){const e=Or(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const gw={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"}},mw=(t,n,e)=>{let r;const v=gw[t];return typeof v=="string"?r=v:n===1?r=v.one:r=v.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function cu(t){return(n={})=>{const e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const vw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ww={date:cu({formats:vw,defaultWidth:"full"}),time:cu({formats:yw,defaultWidth:"full"}),dateTime:cu({formats:bw,defaultWidth:"full"})},xw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cw=(t,n,e,r)=>xw[t];function Aa(t){return(n,e)=>{const r=e?.context?String(e.context):"standalone";let v;if(r==="formatting"&&t.formattingValues){const g=t.defaultFormattingWidth||t.defaultWidth,w=e?.width?String(e.width):g;v=t.formattingValues[w]||t.formattingValues[g]}else{const g=t.defaultWidth,w=e?.width?String(e.width):t.defaultWidth;v=t.values[w]||t.values[g]}const p=t.argumentCallback?t.argumentCallback(n):n;return v[p]}}const kw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Aw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_w={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"]},Sw={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"]},$w={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"}},Tw={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"}},Mw=(t,n)=>{const e=Number(t),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Iw={ordinalNumber:Mw,era:Aa({values:kw,defaultWidth:"wide"}),quarter:Aa({values:Aw,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Aa({values:_w,defaultWidth:"wide"}),day:Aa({values:Sw,defaultWidth:"wide"}),dayPeriod:Aa({values:$w,defaultWidth:"wide",formattingValues:Tw,defaultFormattingWidth:"wide"})};function _a(t){return(n,e={})=>{const r=e.width,v=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],p=n.match(v);if(!p)return null;const g=p[0],w=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(w)?Lw(w,l=>l.test(g)):Ew(w,l=>l.test(g));let d;d=t.valueCallback?t.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=n.slice(g.length);return{value:d,rest:a}}}function Ew(t,n){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function Lw(t,n){for(let e=0;e<t.length;e++)if(n(t[e]))return e}function Rw(t){return(n,e={})=>{const r=n.match(t.matchPattern);if(!r)return null;const v=r[0],p=n.match(t.parsePattern);if(!p)return null;let g=t.valueCallback?t.valueCallback(p[0]):p[0];g=e.valueCallback?e.valueCallback(g):g;const w=n.slice(v.length);return{value:g,rest:w}}}const Ow=/^(\d+)(th|st|nd|rd)?/i,Nw=/\d+/i,Dw={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},Fw={any:[/^b/i,/^(a|c)/i]},Pw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ww={any:[/1/i,/2/i,/3/i,/4/i]},Bw={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},zw={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]},jw={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},Hw={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]},Uw={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},Vw={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}},Kw={ordinalNumber:Rw({matchPattern:Ow,parsePattern:Nw,valueCallback:t=>parseInt(t,10)}),era:_a({matchPatterns:Dw,defaultMatchWidth:"wide",parsePatterns:Fw,defaultParseWidth:"any"}),quarter:_a({matchPatterns:Pw,defaultMatchWidth:"wide",parsePatterns:Ww,defaultParseWidth:"any",valueCallback:t=>t+1}),month:_a({matchPatterns:Bw,defaultMatchWidth:"wide",parsePatterns:zw,defaultParseWidth:"any"}),day:_a({matchPatterns:jw,defaultMatchWidth:"wide",parsePatterns:Hw,defaultParseWidth:"any"}),dayPeriod:_a({matchPatterns:Uw,defaultMatchWidth:"any",parsePatterns:Vw,defaultParseWidth:"any"})},qw=Mn("e",{code:"en-US",formatDistance:mw,formatLong:ww,formatRelative:Cw,localize:Iw,match:Kw,options:{weekStartsOn:0,firstWeekContainsDate:1}});function Gw(t,n){const e=Or(t,n?.in);return hw(e,pw(e))+1}function Pf(t,n){const e=Or(t,n?.in),r=+ka(e)-+dw(e);return Math.round(r/6048e5)+1}function uu(t,n){const e=Or(t,n?.in),r=e.getFullYear(),v=Hs(),p=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,g=io(n?.in||t,0);g.setFullYear(r+1,0,p),g.setHours(0,0,0,0);const w=Us(g,n),h=io(n?.in||t,0);h.setFullYear(r,0,p),h.setHours(0,0,0,0);const d=Us(h,n);return+e>=+w?r+1:+e>=+d?r:r-1}function Yw(t,n){const e=Hs(),r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,v=uu(t,n),p=io(n?.in||t,0);return p.setFullYear(v,0,r),p.setHours(0,0,0,0),Us(p,n)}function Wf(t,n){const e=Or(t,n?.in),r=+Us(e,n)-+Yw(e,n);return Math.round(r/6048e5)+1}function sn(t,n){const e=t<0?"-":"",r=Math.abs(t).toString().padStart(n,"0");return e+r}const Wo={y(t,n){const e=t.getFullYear(),r=e>0?e:1-e;return sn(n==="yy"?r%100:r,n.length)},M(t,n){const e=t.getMonth();return n==="M"?String(e+1):sn(e+1,2)},d(t,n){return sn(t.getDate(),n.length)},a(t,n){const e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];default:return e==="am"?"a.m.":"p.m."}},h(t,n){return sn(t.getHours()%12||12,n.length)},H(t,n){return sn(t.getHours(),n.length)},m(t,n){return sn(t.getMinutes(),n.length)},s(t,n){return sn(t.getSeconds(),n.length)},S(t,n){const e=n.length,r=t.getMilliseconds(),v=Math.trunc(r*Math.pow(10,e-3));return sn(v,n.length)}},Vs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bf={G:function(t,n,e){const r=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){const r=t.getFullYear(),v=r>0?r:1-r;return e.ordinalNumber(v,{unit:"year"})}return Wo.y(t,n)},Y:function(t,n,e,r){const v=uu(t,r),p=v>0?v:1-v;if(n==="YY"){const g=p%100;return sn(g,2)}return n==="Yo"?e.ordinalNumber(p,{unit:"year"}):sn(p,n.length)},R:function(t,n){const e=Nf(t);return sn(e,n.length)},u:function(t,n){const e=t.getFullYear();return sn(e,n.length)},Q:function(t,n,e){const r=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return sn(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){const r=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return sn(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){const r=t.getMonth();switch(n){case"M":case"MM":return Wo.M(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){const r=t.getMonth();switch(n){case"L":return String(r+1);case"LL":return sn(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,e,r){const v=Wf(t,r);return n==="wo"?e.ordinalNumber(v,{unit:"week"}):sn(v,n.length)},I:function(t,n,e){const r=Pf(t);return n==="Io"?e.ordinalNumber(r,{unit:"week"}):sn(r,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):Wo.d(t,n)},D:function(t,n,e){const r=Gw(t);return n==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):sn(r,n.length)},E:function(t,n,e){const r=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){const v=t.getDay(),p=(v-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(p);case"ee":return sn(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(v,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(v,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(v,{width:"short",context:"formatting"});default:return e.day(v,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){const v=t.getDay(),p=(v-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(p);case"cc":return sn(p,n.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(v,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(v,{width:"narrow",context:"standalone"});case"cccccc":return e.day(v,{width:"short",context:"standalone"});default:return e.day(v,{width:"wide",context:"standalone"})}},i:function(t,n,e){const r=t.getDay(),v=r===0?7:r;switch(n){case"i":return String(v);case"ii":return sn(v,n.length);case"io":return e.ordinalNumber(v,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){const r=t.getHours();let v;switch(r===12?v=Vs.noon:r===0?v=Vs.midnight:v=r/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(v,{width:"narrow",context:"formatting"});default:return e.dayPeriod(v,{width:"wide",context:"formatting"})}},B:function(t,n,e){const r=t.getHours();let v;switch(r>=17?v=Vs.evening:r>=12?v=Vs.afternoon:r>=4?v=Vs.morning:v=Vs.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(v,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(v,{width:"narrow",context:"formatting"});default:return e.dayPeriod(v,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let r=t.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Wo.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):Wo.H(t,n)},K:function(t,n,e){const r=t.getHours()%12;return n==="Ko"?e.ordinalNumber(r,{unit:"hour"}):sn(r,n.length)},k:function(t,n,e){let r=t.getHours();return r===0&&(r=24),n==="ko"?e.ordinalNumber(r,{unit:"hour"}):sn(r,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):Wo.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):Wo.s(t,n)},S:function(t,n){return Wo.S(t,n)},X:function(t,n,e){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return jf(r);case"XXXX":case"XX":return ls(r);default:return ls(r,":")}},x:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"x":return jf(r);case"xxxx":case"xx":return ls(r);default:return ls(r,":")}},O:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+zf(r,":");default:return"GMT"+ls(r,":")}},z:function(t,n,e){const r=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+zf(r,":");default:return"GMT"+ls(r,":")}},t:function(t,n,e){const r=Math.trunc(+t/1e3);return sn(r,n.length)},T:function(t,n,e){return sn(+t,n.length)}};function zf(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=Math.trunc(r/60),p=r%60;return p===0?e+String(v):e+String(v)+n+sn(p,2)}function jf(t,n){return t%60===0?(t>0?"-":"+")+sn(Math.abs(t)/60,2):ls(t,n)}function ls(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=sn(Math.trunc(r/60),2),p=sn(r%60,2);return e+v+n+p}const Hf=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Uf=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},Xw=(t,n)=>{const e=t.match(/(P+)(p+)?/)||[],r=e[1],v=e[2];if(!v)return Hf(t,n);let p;switch(r){case"P":p=n.dateTime({width:"short"});break;case"PP":p=n.dateTime({width:"medium"});break;case"PPP":p=n.dateTime({width:"long"});break;default:p=n.dateTime({width:"full"});break}return p.replace("{{date}}",Hf(r,n)).replace("{{time}}",Uf(v,n))},Zw=Mn("D",{p:Uf,P:Xw}),Qw=/^D+$/,Jw=/^Y+$/,ex=["D","DD","YY","YYYY"];function Vf(t){return Qw.test(t)}function Kf(t){return Jw.test(t)}function qf(t,n,e){const r=tx(t,n,e);if(console.warn(r),ex.includes(t))throw new RangeError(r)}function tx(t,n,e){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ix=/^'([^]*?)'?$/,ox=/''/g,sx=/[a-zA-Z]/;function cs(t,n,e){const r=Hs(),v=e?.locale??r.locale??qw,p=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,g=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,w=Or(t,e?.in);if(!Ff(w))throw new RangeError("Invalid time value");let h=n.match(rx).map(a=>{const l=a[0];if(l==="p"||l==="P"){const u=Zw[l];return u(a,v.formatLong)}return a}).join("").match(nx).map(a=>{if(a==="''")return{isToken:!1,value:"'"};const l=a[0];if(l==="'")return{isToken:!1,value:ax(a)};if(Bf[l])return{isToken:!0,value:a};if(l.match(sx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:a}});v.localize.preprocessor&&(h=v.localize.preprocessor(w,h));const d={firstWeekContainsDate:p,weekStartsOn:g,locale:v};return h.map(a=>{if(!a.isToken)return a.value;const l=a.value;(!e?.useAdditionalWeekYearTokens&&Kf(l)||!e?.useAdditionalDayOfYearTokens&&Vf(l))&&qf(l,n,String(t));const u=Bf[l[0]];return u(w,l,v.localize,d)}).join("")}function ax(t){const n=t.match(ix);return n?n[1].replace(ox,"'"):t}var Bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gf={exports:{}},Yf;function lx(){return Yf||(Yf=1,(function(t,n){(function(){var e="ace",r=(function(){return this})();!r&&typeof window<"u"&&(r=window);var v=function(a,l,u){if(typeof a!="string"){v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),v.modules[a]||(v.payloads[a]=u,v.modules[a]=null)};v.modules={},v.payloads={};var p=function(a,l,u){if(typeof l=="string"){var c=h(a,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,f=l.length;s<f;++s){var b=h(a,l[s]);if(b==null&&g.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},g=function(a,l){var u=p("",a,l);return u==null&&g.original?g.original.apply(this,arguments):u},w=function(a,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(a,u[0])+"!"+w(a,u[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var u=v.modules[l];if(!u){if(u=v.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},s=function(b,x){return p(l,b,x)},f=u(s,c,i);c=f||i.exports,v.modules[l]=c,delete v.payloads[l]}u=v.modules[l]=c||u}return u};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(v.original=l.define,l.define=v,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(g.original=l.require,l.require=g,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,v){function p(g,w,h){Object.defineProperty(g,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(g,w){return w=w||0,this.lastIndexOf(g,w)===w}),String.prototype.endsWith||p(String.prototype,"endsWith",function(g,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=g.length;var d=h.indexOf(g,w);return d!==-1&&d===w}),String.prototype.repeat||p(String.prototype,"repeat",function(g){for(var w="",h=this;g>0;)g&1&&(w+=h),(g>>=1)&&(h+=h);return w}),String.prototype.includes||p(String.prototype,"includes",function(g,w){return this.indexOf(g,w)!=-1}),Object.assign||(Object.assign=function(g){if(g==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(g),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(g){return Object.keys(g).map(function(w){return g[w]})}),Array.prototype.find||p(Array.prototype,"find",function(g){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(g.call(h,a,d,this))return a}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(g){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(g.call(h,a,d,this))return d}}),Array.prototype.includes||p(Array.prototype,"includes",function(g,w){return this.indexOf(g,w)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(g){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=g,l++;return w}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,v){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,v){r.deepCopy=function p(g){if(typeof g!="object"||!g)return g;var w;if(Array.isArray(g)){w=[];for(var h=0;h<g.length;h++)w[h]=p(g[h]);return w}if(Object.prototype.toString.call(g)!=="[object Object]")return g;w={};for(var h in g)w[h]=p(g[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,v){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var p=/^\s\s*/,g=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(p,"")},r.stringTrimRight=function(w){return w.replace(g,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(a,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(a,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,v){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},g=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),w=p.userAgent||"",h=p.appName||"";r.isWin=g=="win",r.isMac=g=="mac",r.isLinux=g=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,v){var p=e("./useragent"),g="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,s){if(typeof c=="string"&&c){var f=document.createTextNode(c);return i&&i.appendChild(f),f}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var O=u(c[x],i,s);O&&b.push(O)}return b}var T=document.createElement(c[0]),_=c[1],C=1;_&&typeof _=="object"&&!Array.isArray(_)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],T,s);return C==2&&Object.keys(_).forEach(function(L){var F=_[L];L==="class"?T.className=Array.isArray(F)?F.join(" "):F:typeof F=="function"||L=="value"||L[0]=="$"?T[L]=F:L==="ref"?s&&(s[F]=T):L==="style"?typeof F=="string"&&(T.style.cssText=F):F!=null&&T.setAttribute(L,F)}),i&&i.appendChild(T),T},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||g,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var s=i.indexOf(c);if(s==-1)break;i.splice(s,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),s=!0;;){var f=i.indexOf(c);if(f==-1)break;s=!1,i.splice(f,1)}return s&&i.push(c),u.className=i.join(" "),s},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,s;if(c=c||document,s=c.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){a(c[0],c[1])})}function a(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var f=s.ownerDocument||s;if(c&&r.hasCssString(c,s))return null;c&&(u+=`
|
|
2
|
-
/*# sourceURL=ace/css/`+c+" */");var b=r.createElement("style");b.appendChild(f.createTextNode(u)),c&&(b.id=c),s==f&&(s=r.getDocumentHead(f)),s.insertBefore(b,s.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(u,c){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(c))},r.$fixPositionBug=function(u){var c=u.getBoundingClientRect();if(u.style.left){var i=parseFloat(u.style.left),s=+c.left;Math.abs(i-s)>1&&(u.style.left=2*i-s+"px")}if(u.style.right){var i=parseFloat(u.style.right),s=window.innerWidth-c.right;Math.abs(i-s)>1&&(u.style.right=2*i-s+"px")}if(u.style.top){var i=parseFloat(u.style.top),s=+c.top;Math.abs(i-s)>1&&(u.style.top=2*i-s+"px")}if(u.style.bottom){var i=parseFloat(u.style.bottom),s=window.innerHeight-c.bottom;Math.abs(i-s)>1&&(u.style.bottom=2*i-s+"px")}},r.scrollbarWidth=function(u){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var i=r.createElement("ace_outer"),s=i.style;s.position="absolute",s.left="-10000px",s.overflow="hidden",s.width="200px",s.minWidth="0px",s.height="150px",s.display="block",i.appendChild(c);var f=u&&u.documentElement||document&&document.documentElement;if(!f)return 0;f.appendChild(i);var b=c.offsetWidth;s.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=i.clientWidth),f.removeChild(i),b-x},r.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,c,i){u[c]!==i&&(u[c]=i)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,c,i){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(i)+"px)"}:r.translate=function(u,c,i){u.style.top=Math.round(i)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("./dom");r.get=function(g,w){var h=new XMLHttpRequest;h.open("GET",g,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},r.loadScript=function(g,w){var h=p.getDocumentHead(),d=document.createElement("script");d.src=g,h.appendChild(d),d.onload=d.onreadystatechange=function(a,l){(l||!d.readyState||d.readyState=="loaded"||d.readyState=="complete")&&(d=d.onload=d.onreadystatechange=null,l||w())}},r.qualifyURL=function(g){var w=document.createElement("a");return w.href=g,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,r,v){r.inherits=function(p,g){p.super_=g,p.prototype=Object.create(g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(p,g){for(var w in g)p[w]=g[w];return p},r.implement=function(p,g){r.mixin(p,g)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,r,v){var p={},g=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(h,d){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[h]||[],l=this._defaultHandlers[h];if(!(!a.length&&!l)){(typeof d!="object"||!d)&&(d={}),d.type||(d.type=h),d.stopPropagation||(d.stopPropagation=g),d.preventDefault||(d.preventDefault=w),a=a.slice();for(var u=0;u<a.length&&(a[u](d,this),!d.propagationStopped);u++);if(l&&!d.defaultPrevented)return l(d,this)}},p._signal=function(h,d){var a=(this._eventRegistry||{})[h];if(a){a=a.slice();for(var l=0;l<a.length;l++)a[l](d,this)}},p.once=function(h,d){var a=this;if(this.on(h,function l(){a.off(h,l),d.apply(null,arguments)}),!d)return new Promise(function(l){d=l})},p.setDefaultHandler=function(h,d){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[h]){var l=a[h],u=a._disabled_[h];u||(a._disabled_[h]=u=[]),u.push(l);var c=u.indexOf(d);c!=-1&&u.splice(c,1)}a[h]=d},p.removeDefaultHandler=function(h,d){var a=this._defaultHandlers;if(a){var l=a._disabled_[h];if(a[h]==d)l&&this.setDefaultHandler(h,l.pop());else if(l){var u=l.indexOf(d);u!=-1&&l.splice(u,1)}}},p.on=p.addEventListener=function(h,d,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[h];return l||(l=this._eventRegistry[h]=[]),l.indexOf(d)==-1&&l[a?"unshift":"push"](d),d},p.off=p.removeListener=p.removeEventListener=function(h,d){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[h];if(a){var l=a.indexOf(d);l!==-1&&a.splice(l,1)}},p.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},r.EventEmitter=p}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,r,v){r.reportError=function(p,g){var w=new Error(p);w.data=g,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,r,v){var p={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};r.defaultEnglishMessages=p}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,r,v){"no use strict";var p=e("./oop"),g=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,d={setOptions:function(i){Object.keys(i).forEach(function(s){this.setOption(s,i[s])},this)},getOptions:function(i){var s={};if(i)Array.isArray(i)||(i=Object.keys(i));else{var f=this.$options;i=Object.keys(f).filter(function(b){return!f[b].hidden})}return i.forEach(function(b){s[b]=this.getOption(b)},this),s},setOption:function(i,s){if(this["$"+i]!==s){var f=this.$options[i];if(!f)return a('misspelled option "'+i+'"');if(f.forwardTo)return this[f.forwardTo]&&this[f.forwardTo].setOption(i,s);f.handlesSet||(this["$"+i]=s),f&&f.set&&f.set.call(this,s)}},getOption:function(i){var s=this.$options[i];return s?s.forwardTo?this[s.forwardTo]&&this[s.forwardTo].getOption(i):s&&s.get?s.get.call(this):this["$"+i]:a('misspelled option "'+i+'"')}};function a(i){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,u,c=(function(){function i(){this.$defaultOptions={},l=h,u="dollarSigns"}return i.prototype.defineOptions=function(s,f,b){return s.$options||(this.$defaultOptions[f]=s.$options={}),Object.keys(b).forEach(function(x){var O=b[x];typeof O=="string"&&(O={forwardTo:O}),O.name||(O.name=x),s.$options[O.name]=O,"initialValue"in O&&(s["$"+O.name]=O.initialValue)}),p.implement(s,d),this},i.prototype.resetOptions=function(s){Object.keys(s.$options).forEach(function(f){var b=s.$options[f];"value"in b&&s.setOption(f,b.value)})},i.prototype.setDefaultValue=function(s,f,b){if(!s){for(s in this.$defaultOptions)if(this.$defaultOptions[s][f])break;if(!this.$defaultOptions[s][f])return!1}var x=this.$defaultOptions[s]||(this.$defaultOptions[s]={});x[f]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,f,b):x[f].value=b)},i.prototype.setDefaultValues=function(s,f){Object.keys(f).forEach(function(b){this.setDefaultValue(s,b,f[b])},this)},i.prototype.setMessages=function(s,f){l=s,f&&f.placeholders&&(u=f.placeholders)},i.prototype.nls=function(s,f,b){l[s]||(a("No message found for the key '"+s+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+f+"'."),l[f]||a("No message found for the default string '"+f+"' in the provided messages. Falling back to the default English message."));var x=l[s]||l[f]||f;return b&&(u==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(O,T){return T=="$"?"$":b[T]})),u==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(O,T){return b[T]}))),x},i})();c.prototype.warn=a,c.prototype.reportError=w,p.implement(c.prototype,g),r.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,r,v){v.exports=`.ace-tm .ace_gutter {
|
|
3
|
-
background: #f0f0f0;
|
|
4
|
-
color: #333;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.ace-tm .ace_print-margin {
|
|
8
|
-
width: 1px;
|
|
9
|
-
background: #e8e8e8;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.ace-tm .ace_fold {
|
|
13
|
-
background-color: #6B72E6;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ace-tm {
|
|
17
|
-
background-color: #FFFFFF;
|
|
18
|
-
color: black;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ace-tm .ace_cursor {
|
|
22
|
-
color: black;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.ace-tm .ace_invisible {
|
|
26
|
-
color: rgb(191, 191, 191);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ace-tm .ace_storage,
|
|
30
|
-
.ace-tm .ace_keyword {
|
|
31
|
-
color: blue;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ace-tm .ace_constant {
|
|
35
|
-
color: rgb(197, 6, 11);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.ace-tm .ace_constant.ace_buildin {
|
|
39
|
-
color: rgb(88, 72, 246);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ace-tm .ace_constant.ace_language {
|
|
43
|
-
color: rgb(88, 92, 246);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ace-tm .ace_constant.ace_library {
|
|
47
|
-
color: rgb(6, 150, 14);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.ace-tm .ace_invalid {
|
|
51
|
-
background-color: rgba(255, 0, 0, 0.1);
|
|
52
|
-
color: red;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ace-tm .ace_support.ace_function {
|
|
56
|
-
color: rgb(60, 76, 114);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ace-tm .ace_support.ace_constant {
|
|
60
|
-
color: rgb(6, 150, 14);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ace-tm .ace_support.ace_type,
|
|
64
|
-
.ace-tm .ace_support.ace_class {
|
|
65
|
-
color: rgb(109, 121, 222);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.ace-tm .ace_keyword.ace_operator {
|
|
69
|
-
color: rgb(104, 118, 135);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ace-tm .ace_string {
|
|
73
|
-
color: rgb(3, 106, 7);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.ace-tm .ace_comment {
|
|
77
|
-
color: rgb(76, 136, 107);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ace-tm .ace_comment.ace_doc {
|
|
81
|
-
color: rgb(0, 102, 255);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
85
|
-
color: rgb(128, 159, 191);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.ace-tm .ace_constant.ace_numeric {
|
|
89
|
-
color: rgb(0, 0, 205);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.ace-tm .ace_variable {
|
|
93
|
-
color: rgb(49, 132, 149);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ace-tm .ace_xml-pe {
|
|
97
|
-
color: rgb(104, 104, 91);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
|
101
|
-
color: #0000A2;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
.ace-tm .ace_heading {
|
|
106
|
-
color: rgb(12, 7, 255);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ace-tm .ace_list {
|
|
110
|
-
color:rgb(185, 6, 144);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.ace-tm .ace_meta.ace_tag {
|
|
114
|
-
color:rgb(0, 22, 142);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ace-tm .ace_string.ace_regex {
|
|
118
|
-
color: rgb(255, 0, 0)
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
|
122
|
-
background: rgb(181, 213, 255);
|
|
123
|
-
}
|
|
124
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
125
|
-
box-shadow: 0 0 3px 0px white;
|
|
126
|
-
}
|
|
127
|
-
.ace-tm .ace_marker-layer .ace_step {
|
|
128
|
-
background: rgb(252, 255, 0);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
|
132
|
-
background: rgb(164, 229, 101);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
|
136
|
-
margin: -1px 0 0 -1px;
|
|
137
|
-
border: 1px solid rgb(192, 192, 192);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
|
141
|
-
background: rgba(0, 0, 0, 0.07);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ace-tm .ace_gutter-active-line {
|
|
145
|
-
background-color : #dcdcdc;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
149
|
-
background: rgb(250, 250, 255);
|
|
150
|
-
border: 1px solid rgb(200, 200, 250);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ace-tm .ace_indent-guide {
|
|
154
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.ace-tm .ace_indent-guide-active {
|
|
158
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
159
|
-
}
|
|
160
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,v){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var p=e("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,r,v){"no use strict";var p=e("./lib/lang"),g=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;v.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!d.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return d[c]},r.set=function(c,i){if(d.hasOwnProperty(c))d[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return p.copyObject(d)},r.$modes={},r.moduleUrl=function(c,i){if(d.$moduleUrls[c])return d.$moduleUrls[c];var s=c.split("/");i=i||s[s.length-2]||"";var f=i=="snippets"?"/":"-",b=s[s.length-1];if(i=="worker"&&f=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&s.length>1&&(b=s[s.length-2]);var O=d[i+"Path"];return O==null?O=d.basePath:f=="/"&&(i=f=""),O&&O.slice(-1)!="/"&&(O+="/"),O+i+f+b+this.get("suffix")},r.setModuleUrl=function(c,i){return d.$moduleUrls[c]=i};var a=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(c,i);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var s;if(Array.isArray(c))var f=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(O){if(O&&!r.$loading[b])return i&&i(O);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var T=function(){a(b,function(_,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var L=r.$loading[b];r.$loading[b]=null,L.forEach(function(F){F&&F(C)})})};if(!r.get("packaged"))return T();g.loadScript(r.moduleUrl(b,f),T),u()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(O){O.default?x(O.default):x(O)});else{try{s=this.$require(b)}catch{}x(s||r.$loaded[b])}},r.$require=function(c){if(typeof v.require=="function"){var i="require";return v[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$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"),u=function(){})};r.version="1.43.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,v){e("./lib/fixoldbrowsers");var p=e("./config");p.setLoader(function(d,a){e([d],function(l){a(null,l)})});var g=(function(){return this||typeof window<"u"&&window})();v.exports=function(d){p.init=w,p.$require=e,d.require=e},w(!0);function w(d){if(!(!g||!g.document)){p.set("packaged",d||e.packaged||v.packaged||g.define&&(void 0).packaged);var a={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),s=0;s<i.length;s++){var f=i[s],b=f.src||f.getAttribute("src");if(b){for(var x=f.attributes,O=0,T=x.length;O<T;O++){var _=x[O];_.name.indexOf("data-ace-")===0&&(a[h(_.name.replace(/^data-ace-/,""))]=_.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var L in a)typeof a[L]<"u"&&p.set(L,a[L])}}function h(d){return d.replace(/-(.)/g,function(a,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,v){var p=(function(){function g(w,h,d,a){this.start={row:w,column:h},this.end={row:d,column:a}}return g.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},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(w,h){return this.compare(w,h)==0},g.prototype.compareRange=function(w){var h,d=w.end,a=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},g.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},g.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},g.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},g.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},g.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)},g.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)},g.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},g.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},g.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},g.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},g.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},g.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},g.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)},g.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return g.fromPoints(a||this.start,d||this.end)},g.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var a={row:w,column:h};else var l={row:w,column:h};return g.fromPoints(a||this.start,l||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new g(h.row,h.column,d.row,d.column)},g.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},g})();p.fromPoints=function(g,w){return new p(g.row,g.column,w.row,w.column)},p.comparePoints=function(g,w){return g.row-w.row||g.column-w.column},r.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,v){for(var p=e("./oop"),g={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-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,g.PRINTABLE_KEYS[48+h]=""+h,g.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,g.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,g.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var l in a)w[l]=w[l+"Left"]=w[l+"Right"]=a[l];r.$codeToKeyCode=w,g.PRINTABLE_KEYS[173]="-";for(var u in g.FUNCTION_KEYS){var c=g.FUNCTION_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}for(var u in g.PRINTABLE_KEYS){var c=g.PRINTABLE_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}p.mixin(g,g.MODIFIER_KEYS),p.mixin(g,g.PRINTABLE_KEYS),p.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,(function(){for(var i=["cmd","ctrl","alt","shift"],s=Math.pow(2,i.length);s--;)g.KEY_MODS[s]=i.filter(function(f){return s&g.KEY_MODS[f]}).join("-")+"-"})(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",p.mixin(r,g),r.default=r,r.keyCodeToString=function(i){var s=g[i];return typeof s!="string"&&(s=String.fromCharCode(i)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,v){var p=e("./keys"),g=e("./useragent"),w=null,h=0,d;function a(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&a(),d}function u(O,T,_){this.elem=O,this.type=T,this.callback=_}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(O,T,_,C){O.addEventListener(T,_,l()),C&&C.$toDestroy.push(new u(O,T,_))},i=r.removeListener=function(O,T,_){O.removeEventListener(T,_,l())};r.stopEvent=function(O){return r.stopPropagation(O),r.preventDefault(O),!1},r.stopPropagation=function(O){O.stopPropagation&&O.stopPropagation()},r.preventDefault=function(O){O.preventDefault&&O.preventDefault()},r.getButton=function(O){return O.type=="dblclick"?0:O.type=="contextmenu"||g.isMac&&O.ctrlKey&&!O.altKey&&!O.shiftKey?2:O.button},r.capture=function(O,T,_){var C=O&&O.ownerDocument||document;function L(F){T&&T(F),_&&_(F),i(C,"mousemove",T),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",T),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(O,T,_){c(O,"wheel",function(C){var L=.15,F=C.deltaX||0,E=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=F*L,C.wheelY=E*L;break;case C.DOM_DELTA_LINE:var I=15;C.wheelX=F*I,C.wheelY=E*I;break;case C.DOM_DELTA_PAGE:var z=150;C.wheelX=F*z,C.wheelY=E*z;break}T(C)},_)},r.addMultiMouseDownListener=function(O,T,_,C,L){var F=0,E,I,z,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function N(S){if(r.getButton(S)!==0?F=0:S.detail>1?(F++,F>4&&(F=1)):F=1,g.isIE){var k=Math.abs(S.clientX-E)>5||Math.abs(S.clientY-I)>5;(!z||k)&&(F=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},T[F-1]||600),F==1&&(E=S.clientX,I=S.clientY)}if(S._clicks=F,_[C]("mousedown",S),F>4)F=0;else if(F>1)return _[C](P[F],S)}Array.isArray(O)||(O=[O]),O.forEach(function(S){c(S,"mousedown",N,L)})};function s(O){return 0|(O.ctrlKey?1:0)|(O.altKey?2:0)|(O.shiftKey?4:0)|(O.metaKey?8:0)}r.getModifierString=function(O){return p.KEY_MODS[s(O)]};function f(O,T,_){var C=s(T);if(!_&&T.code&&(_=p.$codeToKeyCode[T.code]||_),!g.isMac&&w){if(T.getModifierState&&(T.getModifierState("OS")||T.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(_===18||_===17){var L=T.location;if(_===17&&L===1)w[_]==1&&(h=T.timeStamp);else if(_===18&&C===3&&L===2){var F=T.timeStamp-h;F<50&&(w.altGr=!0)}}}if(_ in p.MODIFIER_KEYS&&(_=-1),!(!C&&_===13&&T.location===3&&(O(T,C,-_),T.defaultPrevented))){if(g.isChromeOS&&C&8){if(O(T,C,_),T.defaultPrevented)return;C&=-9}return!C&&!(_ in p.FUNCTION_KEYS)&&!(_ in p.PRINTABLE_KEYS)?!1:O(T,C,_)}}r.addCommandKeyListener=function(O,T,_){var C=null;c(O,"keydown",function(L){w[L.keyCode]=(w[L.keyCode]||0)+1;var F=f(T,L,L.keyCode);return C=L.defaultPrevented,F},_),c(O,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},_),c(O,"keyup",function(L){w[L.keyCode]=null},_),w||(b(),c(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!g.isOldIE){var x=1;r.nextTick=function(O,T){T=T||window;var _="zero-timeout-message-"+x++,C=function(L){L.data==_&&(r.stopPropagation(L),i(T,"message",C),O())};c(T,"message",C),T.postMessage(_,"*")}}r.$idleBlocked=!1,r.onIdle=function(O,T){return setTimeout(function _(){r.$idleBlocked?setTimeout(_,100):O()},T)},r.$idleBlockId=null,r.blockIdle=function(O){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},O||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(O){setTimeout(O,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,v){var p;v.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,r,v){var p=e("../lib/event"),g=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),a=e("../clipboard"),l=w.isChrome<18,u=w.isIE,c=w.isChrome>63,i=400,s=e("../lib/keys"),f=s.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,O=w.isMobile,T=(function(){function _(C,L){var F=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",O||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),p.addListener(this.text,"blur",function(E){F.ignoreFocusEvents||(L.onBlur(E),F.$isFocused=!1)},L),p.addListener(this.text,"focus",function(E){if(!F.ignoreFocusEvents){if(F.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(E),w.isEdge?setTimeout(F.resetSelection.bind(F)):F.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var E=L.curOp,I=E&&E.command&&E.command.name;if(I!="insertstring"){var z=I&&(E.docChanged||E.selectionChanged);F.inComposition&&z&&(F.lastValue=F.text.value="",F.onCompositionEnd()),F.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,p.addCommandKeyListener(this.text,function(E,I,z){if(!F.inComposition)return L.onCommandKey(E,I,z)},L),p.addListener(this.text,"select",this.onSelect.bind(this),L),p.addListener(this.text,"input",this.onInput.bind(this),L),p.addListener(this.text,"cut",this.onCut.bind(this),L),p.addListener(this.text,"copy",this.onCopy.bind(this),L),p.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&p.addListener(C,"keydown",function(E){if(!(w.isMac&&!E.metaKey||!E.ctrlKey))switch(E.keyCode){case 67:F.onCopy(E);break;case 86:F.onPaste(E);break;case 88:F.onCut(E);break}},L),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),p.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),p.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),p.addListener(this.text,"keyup",this.onKeyup.bind(this),L),p.addListener(this.text,"keydown",this.syncComposition.bind(this),L),p.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,p.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),p.addListener(this.text,"mousedown",function(E){E.preventDefault(),F.onContextMenuClose()},L),p.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),p.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),b&&this.addIosSelectionHandler(C,L,this.text)}return _.prototype.addIosSelectionHandler=function(C,L,F){var E=this,I=null,z=!1;F.addEventListener("keydown",function(N){I&&clearTimeout(I),z=!0},!0),F.addEventListener("keyup",function(N){I=setTimeout(function(){z=!1},100)},!0);var P=function(N){if(document.activeElement===F&&!(z||E.inComposition||L.$mouseHandler.isMousePressed)&&!E.copied){var S=F.selectionStart,k=F.selectionEnd,R=null,B=0;if(S==0?R=s.up:S==1?R=s.home:k>E.lastSelectionEnd&&E.lastValue[k]==`
|
|
161
|
-
`?R=s.end:S<E.lastSelectionStart&&E.lastValue[S-1]==" "?(R=s.left,B=f.option):S<E.lastSelectionStart||S==E.lastSelectionStart&&E.lastSelectionEnd!=E.lastSelectionStart&&S==k?R=s.left:k>E.lastSelectionEnd&&E.lastValue.slice(0,k).split(`
|
|
162
|
-
`).length>2?R=s.down:k>E.lastSelectionEnd&&E.lastValue[k-1]==" "?(R=s.right,B=f.option):(k>E.lastSelectionEnd||k==E.lastSelectionEnd&&E.lastSelectionEnd!=E.lastSelectionStart&&S==k)&&(R=s.right),S!==k&&(B|=f.shift),R){var U=L.onCommandKey({},B,R);if(!U&&L.commands){R=s.keyCodeToString(R);var q=L.commands.findKeyCommand(B,R);q&&L.execCommand(q)}E.lastSelectionStart=S,E.lastSelectionEnd=k,E.resetSelection("")}}};document.addEventListener("selectionchange",P),L.on("destroy",function(){document.removeEventListener("selectionchange",P)})},_.prototype.onContextMenuClose=function(){var C=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){C.tempStyle&&(C.text.style.cssText=C.tempStyle,C.tempStyle=""),C.host.renderer.$isMousePressed=!1,C.host.renderer.$keepTextAreaAtCursor&&C.host.renderer.$moveTextAreaToCursor()},0)},_.prototype.$onContextMenu=function(C){this.host.textInput.onContextMenu(C),this.onContextMenuClose()},_.prototype.onKeyup=function(C){C.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},_.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},_.prototype.onCompositionStart=function(C){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){C.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var L=this.host.getSelectionRange();L.end.row=L.start.row,L.end.column=L.start.column,this.inComposition.markerRange=L,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},_.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var C=this.text.value;this.sendText(C),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},_.prototype.onCompositionEnd=function(C){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),C&&this.onInput())},_.prototype.onCut=function(C){this.doCopy(C,!0)},_.prototype.onCopy=function(C){this.doCopy(C,!1)},_.prototype.onPaste=function(C){var L=this.handleClipboardData(C);a.pasteCancelled()||(typeof L=="string"?(L&&this.host.onPaste(L,C),w.isIE&&setTimeout(this.resetSelection),p.preventDefault(C)):(this.text.value="",this.pasted=!0))},_.prototype.doCopy=function(C,L){var F=this,E=this.host.getCopyText();if(!E)return p.preventDefault(C);this.handleClipboardData(C,E)?(b&&(this.resetSelection(E),this.copied=E,setTimeout(function(){F.copied=!1},10)),L?this.host.onCut():this.host.onCopy(),p.preventDefault(C)):(this.copied=!0,this.text.value=E,this.text.select(),setTimeout(function(){F.copied=!1,F.resetSelection(),L?F.host.onCut():F.host.onCopy()}))},_.prototype.handleClipboardData=function(C,L,F){var E=C.clipboardData||window.clipboardData;if(!(!E||l)){var I=u||F?"Text":"text/plain";try{return L?E.setData(I,L)!==!1:E.getData(I)}catch(z){if(!F)return this.handleClipboardData(z,L,!0)}}},_.prototype.onInput=function(C){if(this.inComposition)return this.onCompositionUpdate();if(C&&C.inputType){if(C.inputType=="historyUndo")return this.host.execCommand("undo");if(C.inputType=="historyRedo")return this.host.execCommand("redo")}var L=this.text.value,F=this.sendText(L,!0);(L.length>i+100||x.test(F)||O&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},_.prototype.sendText=function(C,L){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),C&&this.host.onPaste(C),this.pasted=!1,"";for(var F=this.text.selectionStart,E=this.text.selectionEnd,I=this.lastSelectionStart,z=this.lastValue.length-this.lastSelectionEnd,P=C,N=C.length-F,S=C.length-E,k=0;I>0&&this.lastValue[k]==C[k];)k++,I--;for(P=P.slice(k),k=1;z>0&&this.lastValue.length-k>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-k]==C[C.length-k];)k++,z--;N-=k-1,S-=k-1;var R=P.length-k+1;if(R<0&&(I=-R,R=0),P=P.slice(0,R),!L&&!P&&!N&&!I&&!z&&!S)return"";this.sendingText=!0;var B=!1;return w.isAndroid&&P==". "&&(P=" ",B=!0),P&&!I&&!z&&!N&&!S||this.commandMode?this.host.onTextInput(P):this.host.onTextInput(P,{extendLeft:I,extendRight:z,restoreStart:N,restoreEnd:S}),this.sendingText=!1,this.lastValue=C,this.lastSelectionStart=F,this.lastSelectionEnd=E,this.lastRestoreEnd=S,B?`
|
|
163
|
-
`:P},_.prototype.onSelect=function(C){var L=this;if(!this.inComposition){var F=function(E){return E.selectionStart===0&&E.selectionEnd>=L.lastValue.length&&E.value===L.lastValue&&L.lastValue&&E.selectionEnd!==L.lastSelectionEnd};this.copied?this.copied=!1:F(this.text)?(this.host.selectAll(),this.resetSelection()):O&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},_.prototype.$resetSelectionIOS=function(C){if(!(!this.$isFocused||this.copied&&!C||this.sendingText)){C||(C="");var L=`
|
|
164
|
-
ab`+C+`cde fg
|
|
165
|
-
`;L!=this.text.value&&(this.text.value=this.lastValue=L);var F=4,E=4+(C.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=F||this.lastSelectionEnd!=E)&&this.text.setSelectionRange(F,E),this.lastSelectionStart=F,this.lastSelectionEnd=E}},_.prototype.$resetSelection=function(){var C=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var L=0,F=0,E="",I=function(q,Q){for(var J=Q,he=1;he<=q-C.rowStart&&he<2*C.numberOfExtraLines+1;he++)J+=C.host.session.getLine(q-he).length+1;return J};if(this.host.session){var z=this.host.selection,P=z.getRange(),N=z.cursor.row;N===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):N===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(N<this.rowStart-1||N>this.rowEnd+1)&&(this.rowStart=N>this.numberOfExtraLines?N-this.numberOfExtraLines:0,this.rowEnd=N>this.numberOfExtraLines?N+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var S=[],k=this.rowStart;k<=this.rowEnd;k++)S.push(this.host.session.getLine(k));if(E=S.join(`
|
|
166
|
-
`),L=I(P.start.row,P.start.column),F=I(P.end.row,P.end.column),P.start.row<this.rowStart){var R=this.host.session.getLine(this.rowStart-1);L=P.start.row<this.rowStart-1?0:L,F+=R.length+1,E=R+`
|
|
167
|
-
`+E}else if(P.end.row>this.rowEnd){var B=this.host.session.getLine(this.rowEnd+1);F=P.end.row>this.rowEnd+1?B.length:P.end.column,F+=E.length+1,E=E+`
|
|
168
|
-
`+B}else O&&N>0&&(E=`
|
|
169
|
-
`+E,F+=1,L+=1);E.length>i&&(L<i&&F<i?E=E.slice(0,i):(E=`
|
|
170
|
-
`,L==F?L=F=0:(L=0,F=1)));var U=E+`
|
|
171
|
-
|
|
172
|
-
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=F||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,F),this.lastSelectionStart=L,this.lastSelectionEnd=F}catch{}this.inComposition=!1}},_.prototype.setHost=function(C){this.host=C},_.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},_.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=g("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},_.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",g("text-input.aria-roledescription","editor")),this.setAriaLabel())},_.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var F=this.text.getBoundingClientRect().top!=0}catch{return}var E=[];if(F)for(var I=this.text.parentElement;I&&I.nodeType==1;)E.push(I),I.setAttribute("ace_nocontext","true"),!I.parentElement&&I.getRootNode?I=I.getRootNode().host:I=I.parentElement;this.text.focus({preventScroll:!0}),F&&E.forEach(function(z){z.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},_.prototype.blur=function(){this.text.blur()},_.prototype.isFocused=function(){return this.$isFocused},_.prototype.setInputHandler=function(C){this.inputHandler=C},_.prototype.getInputHandler=function(){return this.inputHandler},_.prototype.getElement=function(){return this.text},_.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},_.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},_.prototype.setCopyWithEmptySelection=function(C){},_.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},_.prototype.moveToMouse=function(C,L){var F=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var E=this.host.container.getBoundingClientRect(),I=h.computedStyle(this.host.container),z=E.top+(parseInt(I.borderTopWidth)||0),P=E.left+(parseInt(I.borderLeftWidth)||0),N=E.bottom-z-this.text.clientHeight-2,S=function(k){h.translate(F.text,k.clientX-P-2,Math.min(k.clientY-z-2,N))};S(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&p.capture(this.host.container,S,this.onContextMenuClose.bind(this)))},_.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},_})();r.TextInput=T,r.$setUserAgentForTests=function(_,C){O=_,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,v){var p=e("../lib/useragent"),g=0,w=550,h=(function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(s){u[s]=this[s]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var s=this.editor,f=u.getButton();if(f!==0){var b=s.getSelectionRange(),x=b.isEmpty();(x||f==1)&&s.selection.moveToPosition(i),f==2&&(s.textInput.onContextMenu(u.domEvent),p.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!s.isFocused()&&(s.focus(),this.$focusTimeout&&!this.$clickSelection&&!s.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i);if(s==-1)u=this.$clickSelection.end;else if(s==1)u=this.$clickSelection.start;else{var f=a(this.$clickSelection,i,c.session);i=f.cursor,u=f.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,i=this.editor,s=i.renderer.screenToTextCoordinates(this.x,this.y),f=i.selection[u](s.row,s.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(f.start),x=this.$clickSelection.comparePoint(f.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(f.end.row!=s.row||f.end.column!=s.column)&&(s=f.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(f.start.row!=s.row||f.start.column!=s.column)&&(s=f.end);else if(b==-1&&x==1)s=f.end,c=f.start;else{var O=a(this.$clickSelection,s,i.session);s=O.cursor,c=O.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(s),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>g||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,s=i.session,f=s.getBracketRange(c);f?(f.isEmpty()&&(f.start.column--,f.end.column++),this.setState("select")):(f=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=f,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var s=i.getSelectionRange();s.isMultiLine()&&s.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(s.start.row),this.$clickSelection.end=i.selection.getLineRange(s.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,s=u.domEvent.timeStamp,f=s-i.t,b=f?u.wheelX/f:i.vx,x=f?u.wheelY/f:i.vy;f<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var O=Math.abs(b/x),T=!1;if(O>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(T=!0),O<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(T=!0),T)i.allowed=s;else if(s-i.allowed<w){var _=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);_?(T=!0,i.allowed=s):i.allowed=0}if(i.t=s,i.vx=b,i.vy=x,T)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l})();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function d(l,u,c,i){return Math.sqrt(Math.pow(c-l,2)+Math.pow(i-u,2))}function a(l,u,c){if(l.start.row==l.end.row)var i=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var i=3*u.column-2*c.getLine(l.start.row).length;else var i=2*u.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,v){var p=e("../lib/event"),g=e("../lib/useragent"),w=(function(){function h(d,a){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=a,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var d=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,a=d.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return g.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h})();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,v){r.preventParentScroll=function(p){p.stopPropagation();var g=p.currentTarget,w=g.scrollHeight>g.clientHeight;w||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,v){var p=this&&this.__extends||(function(){var s=function(f,b){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var T in O)Object.prototype.hasOwnProperty.call(O,T)&&(x[T]=O[T])},s(f,b)};return function(f,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");s(f,b);function x(){this.constructor=f}f.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}})(),g=this&&this.__values||function(s){var f=typeof Symbol=="function"&&Symbol.iterator,b=f&&s[f],x=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&x>=s.length&&(s=void 0),{value:s&&s[x++],done:!s}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=(function(){function s(f){this.isOpen=!1,this.$element=null,this.$parentNode=f}return s.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},s.prototype.getElement=function(){return this.$element||this.$init()},s.prototype.setText=function(f){this.getElement().textContent=f},s.prototype.setHtml=function(f){this.getElement().innerHTML=f},s.prototype.setPosition=function(f,b){this.getElement().style.left=f+"px",this.getElement().style.top=b+"px"},s.prototype.setClassName=function(f){w.addCssClass(this.getElement(),f)},s.prototype.setTheme=function(f){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),f.isDark&&w.addCssClass(this.getElement(),"ace_dark"),f.cssClass&&w.addCssClass(this.getElement(),f.cssClass),this.theme={isDark:f.isDark,cssClass:f.cssClass}},s.prototype.show=function(f,b,x){f!=null&&this.setText(f),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},s.prototype.hide=function(f){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},s.prototype.getHeight=function(){return this.getElement().offsetHeight},s.prototype.getWidth=function(){return this.getElement().offsetWidth},s.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},s})(),u=(function(){function s(){this.popups=[]}return s.prototype.addPopup=function(f){this.popups.push(f),this.updatePopups()},s.prototype.removePopup=function(f){var b=this.popups.indexOf(f);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},s.prototype.updatePopups=function(){var f,b,x,O;this.popups.sort(function(P,N){return N.priority-P.priority});var T=[];try{for(var _=g(this.popups),C=_.next();!C.done;C=_.next()){var L=C.value,F=!0;try{for(var E=(x=void 0,g(T)),I=E.next();!I.done;I=E.next()){var z=I.value;if(this.doPopupsOverlap(z,L)){F=!1;break}}}catch(P){x={error:P}}finally{try{I&&!I.done&&(O=E.return)&&O.call(E)}finally{if(x)throw x.error}}F?T.push(L):L.hide()}}catch(P){f={error:P}}finally{try{C&&!C.done&&(b=_.return)&&b.call(_)}finally{if(f)throw f.error}}},s.prototype.doPopupsOverlap=function(f,b){var x=f.getElement().getBoundingClientRect(),O=b.getElement().getBoundingClientRect();return x.left<O.right&&x.right>O.left&&x.top<O.bottom&&x.bottom>O.top},s})(),c=new u;r.popupManager=c,r.Tooltip=l;var i=(function(s){p(f,s);function f(b){b===void 0&&(b=document.body);var x=s.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var O=x.getElement();return O.style.whiteSpace="pre-wrap",O.style.pointerEvents="auto",O.addEventListener("mouseout",x.onMouseOut),O.tabIndex=-1,O.addEventListener("blur",(function(){O.contains(document.activeElement)||this.hide()}).bind(x)),O.addEventListener("wheel",d),x}return f.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var O=x.$mouseHandler.isMousePressed;if(this.isOpen){var T=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(T.row,T.column)||O||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||O||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},f.prototype.isOutsideOfText=function(b){var x=b.editor,O=b.getDocumentPosition(),T=x.session.getLine(O.row);if(O.column==T.length){var _=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(O.row,O.column);if(C.column!=_.column||C.row!=_.row)return!0}return!1},f.prototype.setDataProvider=function(b){this.$gatherData=b},f.prototype.showForRange=function(b,x,O,T){if(!(T&&T!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var _=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(_.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=_.textToScreenCoordinates(x.start.row,x.start.column),L=_.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var F=this.getElement();F.innerHTML="",F.appendChild(O),F.style.maxHeight="",F.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(F)}},f.prototype.$setPosition=function(b,x,O,T){var _=10;O&&this.addMarker(T,b.session);var C=b.renderer,L=this.getElement(),F=L.offsetHeight,E=L.offsetWidth,I=x.pageY,z=x.pageX,P=window.innerHeight-I-C.lineHeight,N=this.$shouldPlaceAbove(F,I,P-_);L.style.maxHeight=(N?I:P)-_+"px",L.style.top=N?"":I+C.lineHeight+"px",L.style.bottom=N?window.innerHeight-I+"px":"",L.style.left=Math.min(z,window.innerWidth-E-_)+"px"},f.prototype.$shouldPlaceAbove=function(b,x,O){return!(x-b<0&&x<O)},f.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},f.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},f})(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,v){var p=this&&this.__extends||(function(){var i=function(s,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&(b[O]=x[O])},i(s,f)};return function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");i(s,f);function b(){this.constructor=s}s.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}})(),g=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,f=s&&i[s],b=0;if(f)return f.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,a=e("../config").nls,l=e("../range").Range;function u(i){var s=i.editor,f=s.renderer.$gutterLayer;i.$tooltip=new c(s),i.$tooltip.addToEditor(s),i.$tooltip.setDataProvider(function(b,x){var O=b.getDocumentPosition().row;i.$tooltip.showTooltip(O)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!s.isFocused()||b.getButton()!=0)){var x=f.getRegion(b);if(x!="foldWidgets"){var O=b.getDocumentPosition().row,T=s.session.selection;if(b.getShiftKey())T.selectTo(O,0);else{if(b.domEvent.detail==2)return s.selectAll(),b.preventDefault();i.$clickSelection=s.selection.getLineRange(O)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=u;var c=(function(i){p(s,i);function s(f){var b=i.call(this,f.container)||this;b.id="gt"+ ++s.$uid,b.editor=f,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return s.prototype.onDomMouseMove=function(f){var b=new h(f,this.editor);this.onMouseMove(b,this.editor)},s.prototype.onDomMouseOut=function(f){var b=new h(f,this.editor);this.onMouseOut(b)},s.prototype.addToEditor=function(f){var b=f.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,f)},s.prototype.removeFromEditor=function(f){var b=f.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,f)},s.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(s,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),s.prototype.showTooltip=function(f){var b,x=this.editor.renderer.$gutterLayer,O=x.$annotations[f],T;O?T={displayText:Array.from(O.displayText),type:Array.from(O.type)}:T={displayText:[],type:[]};var _=x.session.getFoldLine(f);if(_&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},F,E=f+1;E<=_.end.row;E++)if(x.$annotations[E])for(var I=0;I<x.$annotations[E].text.length;I++){var z=x.$annotations[E].type[I];C[z].push(x.$annotations[E].text[I]),(!F||L[z]<L[F])&&(F=z)}if(["error","security","warning"].includes(F)){var P="".concat(s.annotationsToSummaryString(C)," in folded code.");T.displayText.push(P),T.type.push(F+"_fold")}}if(T.displayText.length===0)return this.hide();for(var N={error:[],security:[],warning:[],info:[],hint:[]},S=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<T.displayText.length;E++){var k=w.createElement("span"),R=w.createElement("span");(b=R.classList).add.apply(b,["ace_".concat(T.type[E]),S]),R.setAttribute("aria-label","".concat(s.annotationLabels[T.type[E].replace("_fold","")].singular)),R.setAttribute("role","img"),R.appendChild(w.createTextNode(" ")),k.appendChild(R),k.appendChild(w.createTextNode(T.displayText[E])),k.appendChild(w.createElement("br")),N[T.type[E].replace("_fold","")].push(k)}var B=w.createElement("span");N.error.forEach(function(Q){return B.appendChild(Q)}),N.security.forEach(function(Q){return B.appendChild(Q)}),N.warning.forEach(function(Q){return B.appendChild(Q)}),N.info.forEach(function(Q){return B.appendChild(Q)}),N.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(f);U&&U.setAttribute("aria-describedby",this.id);var q=l.fromPoints({row:f,column:0},{row:f,column:0});this.showForRange(this.editor,q,B),this.visibleTooltipRow=f,this.editor._signal("showGutterTooltip",this)},s.prototype.$setPosition=function(f,b,x,O){var T=this.$findCellByRow(O.start.row);if(T){var _=T&&T.element,C=_&&_.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var F={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,f,F,!1,O)}}}},s.prototype.$shouldPlaceAbove=function(f,b,x){return x<f},s.prototype.$findLinkedAnnotationNode=function(f){var b=this.$findCellByRow(f);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},s.prototype.$findCellByRow=function(f){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===f})},s.prototype.hide=function(f){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,f)}},s.annotationsToSummaryString=function(f){var b,x,O=[],T=["error","security","warning","info","hint"];try{for(var _=g(T),C=_.next();!C.done;C=_.next()){var L=C.value;if(f[L].length){var F=f[L].length===1?s.annotationLabels[L].singular:s.annotationLabels[L].plural;O.push("".concat(f[L].length," ").concat(F))}}}catch(E){b={error:E}}finally{try{C&&!C.done&&(x=_.return)&&x.call(_)}finally{if(b)throw b.error}}return O.join(", ")},s.prototype.isOutsideOfText=function(f){var b=f.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(f.clientX>=x.left&&f.clientX<=x.right&&f.clientY>=x.top&&f.clientY<=x.bottom)},s})(d);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,a=5;function l(c){var i=c.editor,s=p.createElement("div");s.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",s.textContent=" ";var f=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];f.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var b=i.container,x,O,T,_,C,L,F=0,E,I,z,P,N;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var ce=this;return setTimeout(function(){ce.startSelect(),ce.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(s),se.setDragImage&&se.setDragImage(s,0,0),setTimeout(function(){i.container.removeChild(s)}),se.clearData(),se.setData("Text",i.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,I=!1,this.setState(null),!i.getReadOnly()){var ce=ne.dataTransfer.dropEffect;!E&&ce=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return O=ne.clientX,T=ne.clientY,x||B(),F++,ne.dataTransfer.dropEffect=E=he(ne),g.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return O=ne.clientX,T=ne.clientY,x||(B(),F++),q!==null&&(q=null),ne.dataTransfer.dropEffect=E=he(ne),g.preventDefault(ne)},this.onDragLeave=function(ne){if(F--,F<=0&&x)return U(),E=null,g.preventDefault(ne)},this.onDrop=function(ne){if(L){var ce=ne.dataTransfer;if(I)switch(E){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=ce.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),E=null}return U(),g.preventDefault(ne)}},g.addListener(b,"dragstart",this.onDragStart.bind(c),i),g.addListener(b,"dragend",this.onDragEnd.bind(c),i),g.addListener(b,"dragenter",this.onDragEnter.bind(c),i),g.addListener(b,"dragover",this.onDragOver.bind(c),i),g.addListener(b,"dragleave",this.onDragLeave.bind(c),i),g.addListener(b,"drop",this.onDrop.bind(c),i);function S(ne,ce){var se=Date.now(),de=!ce||ne.row!=ce.row,me=!ce||ne.column!=ce.column;if(!P||de||me)i.moveCursorToPosition(ne),P=se,N={x:O,y:T};else{var Se=u(N.x,N.y,O,T);Se>a?P=null:se-P>=d&&(i.renderer.scrollCursorIntoView(),P=null)}}function k(ne,ce){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,Se=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:O-Se.left,right:Se.right-O},y:{top:T-Se.top,bottom:Se.bottom-T}},Me=Math.min(Te.x.left,Te.x.right),Xe=Math.min(Te.y.top,Te.y.bottom),qe={row:ne.row,column:ne.column};Me/me<=2&&(qe.column+=Te.x.left<Te.x.right?-3:2),Xe/de<=1&&(qe.row+=Te.y.top<Te.y.bottom?-1:1);var st=ne.row!=qe.row,Je=ne.column!=qe.column,at=!ce||ne.row!=ce.row;st||Je&&!at?z?se-z>=h&&i.renderer.scrollCursorIntoView(qe):z=se:z=null}function R(){var ne=L;L=i.renderer.screenToTextCoordinates(O,T),S(L,ne),k(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),R(),_=setInterval(R,20),F=0,g.addListener(document,"mousemove",Q)}function U(){clearInterval(_),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!I&&i.$resetCursorStyle(),C=null,L=null,F=0,z=null,P=null,g.removeListener(document,"mousemove",Q)}var q=null;function Q(){q==null&&(q=setTimeout(function(){q!=null&&x&&U()},20))}function J(ne){var ce=ne.types;return!ce||Array.prototype.some.call(ce,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var ce=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var Se="none";return de&&ce.indexOf(me)>=0?Se="copy":se.indexOf(me)>=0?Se="move":ce.indexOf(me)>=0&&(Se="copy"),Se}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var s=w.isWin?"default":"move";c.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&i.dragDrop()}if(this.state==="dragWait"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,s=c.inSelection(),f=c.getButton(),b=c.domEvent.detail||1;if(b===1&&f===0&&s){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var O=i.container;O.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,i,s,f){return Math.sqrt(Math.pow(s-c,2)+Math.pow(f-i,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,v){var p=e("./mouse_event").MouseEvent,g=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var a="scroll",l,u,c,i,s,f,b=0,x,O=0,T=0,_=0,C,L;function F(){var S=window.navigator&&window.navigator.clipboard,k=!1,R=function(){var q=d.getCopyText(),Q=d.session.getUndoManager().hasUndo();L.replaceChild(w.buildDom(k?["span",!q&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],q&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],q&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},B=function(q){return d.commands.canExecute(q,d)},U=function(q){var Q=q.target.getAttribute("action");if(Q=="more"||!k)return k=!k,R();Q=="paste"?S.readText().then(function(J){d.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&(S?S.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Q)),L.firstChild.style.display="none",k=!1,Q!="openCommandPalette"&&d.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(q){a="menu",q.stopPropagation(),q.preventDefault(),d.textInput.focus()},ontouchend:function(q){q.stopPropagation(),q.preventDefault(),U(q)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function E(){if(!d.getOption("enableMobileMenu")){L&&I();return}L||F();var S=d.selection.cursor,k=d.renderer.textToScreenCoordinates(S.row,S.column),R=d.renderer.textToScreenCoordinates(0,0).pageX,B=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();L.style.top=k.pageY-U.top-3+"px",k.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=R+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",d.on("input",I)}function I(S){L&&(L.style.display="none"),d.off("input",I)}function z(){s=null,clearTimeout(s);var S=d.selection.getRange(),k=S.contains(x.row,x.column);(S.isEmpty()||!k)&&(d.selection.moveToPosition(x),d.selection.selectWord()),a="wait",E()}function P(){s=null,clearTimeout(s),d.selection.moveToPosition(x);var S=O>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);S&&!S.isEmpty()?d.selection.setRange(S):d.selection.selectWord(),a="wait"}g.addListener(h,"contextmenu",function(S){if(C){var k=d.textInput.getElement();k.focus()}},d),g.addListener(h,"touchstart",function(S){var k=S.touches;if(s||k.length>1){clearTimeout(s),s=null,c=-1,a="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var R=d.renderer.layerConfig.lineHeight,B=d.renderer.layerConfig.lineHeight,U=S.timeStamp;i=U;var q=k[0],Q=q.clientX,J=q.clientY;Math.abs(l-Q)+Math.abs(u-J)>R&&(c=-1),l=S.clientX=Q,u=S.clientY=J,T=_=0;var he=new p(S,d);if(x=he.getDocumentPosition(),U-c<500&&k.length==1&&!b)O++,S.preventDefault(),S.button=0,P();else{O=0;var ne=d.selection.cursor,ce=d.selection.isEmpty()?ne:d.selection.anchor,se=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(ce,!0),me=d.renderer.scroller.getBoundingClientRect(),Se=d.renderer.layerConfig.offset,Te=d.renderer.scrollLeft,Me=function(st,Je){return st=st/B,Je=Je/R-.75,st*st+Je*Je};if(S.clientX<me.left){a="zoom";return}var Xe=Me(S.clientX-me.left-se.left+Te,S.clientY-me.top-se.top+Se),qe=Me(S.clientX-me.left-de.left+Te,S.clientY-me.top-de.top+Se);Xe<3.5&&qe<3.5&&(a=Xe>qe?"cursor":"anchor"),qe<3.5?a="anchor":Xe<3.5?a="cursor":a="scroll",s=setTimeout(z,450)}c=U},d),g.addListener(h,"touchend",function(S){C=d.$mouseHandler.isMousePressed=!1,f&&clearInterval(f),a=="zoom"?(a="",b=0):s?(d.selection.moveToPosition(x),b=0,E()):a=="scroll"?(N(),I()):E(),clearTimeout(s),s=null},d),g.addListener(h,"touchmove",function(S){s&&(clearTimeout(s),s=null);var k=S.touches;if(!(k.length>1||a=="zoom")){var R=k[0],B=l-R.clientX,U=u-R.clientY;if(a=="wait")if(B*B+U*U>4)a="cursor";else return S.preventDefault();l=R.clientX,u=R.clientY,S.clientX=R.clientX,S.clientY=R.clientY;var q=S.timeStamp,Q=q-i;if(i=q,a=="scroll"){var J=new p(S,d);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(T=B/Q,_=U/Q),d._emit("mousewheel",J),J.propagationStopped||(T=_=0)}else{var he=new p(S,d),ne=he.getDocumentPosition();a=="cursor"?d.selection.moveCursorToPosition(ne):a=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),S.preventDefault()}}},d);function N(){b+=60,f=setInterval(function(){b--<=0&&(clearInterval(f),f=null),Math.abs(T)<.01&&(T=0),Math.abs(_)<.01&&(_=0),b<20&&(T=.9*T),b<20&&(_=.9*_);var S=d.session.getScrollTop();d.renderer.scrollBy(10*T,10*_),S==d.session.getScrollTop()&&(b=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,r,v){var p=e("../lib/event"),g=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),c=(function(){function i(s){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var f=this;this.editor=s,new w(this),new h(this),new a(this);var b=function(T){var _=!document.hasFocus||!document.hasFocus()||!s.isFocused()&&document.activeElement==(s.textInput&&s.textInput.getElement());_&&window.focus(),s.focus(),setTimeout(function(){s.isFocused()||s.focus()})},x=s.renderer.getMouseEventTarget();p.addListener(x,"click",this.onMouseEvent.bind(this,"click"),s),p.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),s),p.addMultiMouseDownListener([x,s.renderer.scrollBarV&&s.renderer.scrollBarV.inner,s.renderer.scrollBarH&&s.renderer.scrollBarH.inner,s.textInput&&s.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",s),p.addMouseWheelListener(s.container,this.onMouseWheel.bind(this,"mousewheel"),s),l(s.container,s);var O=s.renderer.$gutter;p.addListener(O,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),s),p.addListener(O,"click",this.onMouseEvent.bind(this,"gutterclick"),s),p.addListener(O,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),s),p.addListener(O,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),s),p.addListener(x,"mousedown",b,s),p.addListener(O,"mousedown",b,s),g.isIE&&s.renderer.scrollBarV&&(p.addListener(s.renderer.scrollBarV.element,"mousedown",b,s),p.addListener(s.renderer.scrollBarH.element,"mousedown",b,s)),s.on("mousemove",function(T){if(!(f.state||f.$dragDelay||!f.$dragEnabled)){var _=s.renderer.screenToTextCoordinates(T.x,T.y),C=s.session.selection.getRange(),L=s.renderer;!C.isEmpty()&&C.insideStart(_.row,_.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},s)}return i.prototype.onMouseEvent=function(s,f){this.editor.session&&this.editor._emit(s,new d(f,this.editor))},i.prototype.onMouseMove=function(s,f){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(s,new d(f,this.editor))},i.prototype.onMouseWheel=function(s,f){var b=new d(f,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=f.wheelX,b.wheelY=f.wheelY,this.editor._emit(s,b)},i.prototype.setState=function(s){this.state=s},i.prototype.captureMouse=function(s,f){this.x=s.x,this.y=s.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var O=this,T=!0,_=function(I){if(I){if(g.isWebKit&&!I.which&&O.releaseMouse)return O.releaseMouse();O.x=I.clientX,O.y=I.clientY,f&&f(I),O.mouseEvent=new d(I,O.editor),O.$mouseMoved=!0}},C=function(I){b.off("beforeEndOperation",E),T=!1,b.session&&L(),O[O.state+"End"]&&O[O.state+"End"](I),O.state="",O.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),O.$onCaptureMouseMove=O.releaseMouse=null,I&&O.onMouseEvent("mouseup",I),b.endOperation()},L=function(){O[O.state]&&O[O.state](),O.$mouseMoved=!1},F=function(){T&&(L(),p.nextFrame(F))};if(g.isOldIE&&s.domEvent.type=="dblclick")return setTimeout(function(){C(s)});var E=function(I){O.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(O[O.state+"End"]&&O[O.state+"End"](),O.state="",O.releaseMouse())};b.on("beforeEndOperation",E),b.startOperation({command:{name:"mouse"}}),O.$onCaptureMouseMove=_,O.releaseMouse=p.capture(this.editor.container,_,C),F()},i.prototype.cancelContextMenu=function(){var s=(function(f){f&&f.domEvent&&f.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",s),f&&f.domEvent&&p.stopEvent(f.domEvent))}).bind(this);setTimeout(s,10),this.editor.on("nativecontextmenu",s)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i})();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:g.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("../lib/dom"),g=(function(){function w(h){h.on("click",function(d){var a=d.getDocumentPosition(),l=h.session,u=l.getFoldAt(a.row,a.column,1);u&&(d.getAccelKey()?l.removeFold(u):l.expandFold(u),d.stop());var c=d.domEvent&&d.domEvent.target;c&&p.hasCssClass(c,"ace_inline_button")&&p.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(l,!0),i=c.range||c.firstRange;if(i){l=i.start.row;var s=u.getFoldAt(l,u.getLine(l).length,1);s?u.removeFold(s):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w})();r.FoldHandler=g}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,v){var p=e("../lib/keys"),g=e("../lib/event"),w=(function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var a=this.$handlers;if(a[a.length-1]!=d){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,a){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(d):this.$handlers.splice(a,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var a=this.$handlers.indexOf(d);return a==-1?!1:(this.$handlers.splice(a,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,a=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,a,l,u){for(var c,i=!1,s=this.$editor.commands,f=this.$handlers.length;f--&&(c=this.$handlers[f].handleKeyboard(this.$data,d,a,l,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=s.exec(c.command,this.$editor,c.args,u),i&&u&&d!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&g.stopEvent(u),i))););return!i&&d==-1&&(c={command:"insertstring"},i=s.exec("insertstring",this.$editor,a)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(d,a,l){var u=p.keyCodeToString(l);return this.$callKeyboardHandlers(a,u,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h})();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,v){var p=0,g=0,w=!1,h=!1,d=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,c=1,i=0,s=1,f=2,b=3,x=4,O=5,T=6,_=7,C=8,L=9,F=10,E=11,I=12,z=13,P=14,N=15,S=16,k=17,R=18,B=[R,R,R,R,R,R,R,R,R,T,O,T,C,O,R,R,R,R,R,R,R,R,R,R,R,R,R,R,O,O,O,T,C,x,x,E,E,E,x,x,x,x,x,F,L,F,L,L,f,f,f,f,f,f,f,f,f,f,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,R,R,R,R,R,R,O,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,L,x,E,E,E,E,x,x,x,x,i,x,x,R,x,x,E,E,f,f,x,i,x,x,x,f,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,R,R,R,i,s,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,O,z,P,N,S,k,L,E,E,E,E,E,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function q(ne,ce,se,de){var me=p?l:a,Se=null,Te=null,Me=null,Xe=0,qe=null,st=null,Je=-1,at=null,Yt=null,bn=[];if(!de)for(at=0,de=[];at<se;at++)de[at]=he(ne[at]);for(g=p,w=!1,h=!1,d=!1,Yt=0;Yt<se;Yt++){if(Se=Xe,bn[Yt]=Te=J(ne,de,bn,Yt),Xe=me[Se][Te],qe=Xe&240,Xe&=15,ce[Yt]=Me=me[Xe][5],qe>0)if(qe==16){for(at=Je;at<Yt;at++)ce[at]=1;Je=-1}else Je=-1;if(st=me[Xe][6],st)Je==-1&&(Je=Yt);else if(Je>-1){for(at=Je;at<Yt;at++)ce[at]=Me;Je=-1}de[Yt]==O&&(ce[Yt]=0),g|=Me}if(d){for(at=0;at<se;at++)if(de[at]==T){ce[at]=p;for(var Pt=at-1;Pt>=0&&de[Pt]==C;Pt--)ce[Pt]=p}}}function Q(ne,ce,se){if(!(g<ne)){if(ne==1&&p==c&&!h){se.reverse();return}for(var de=se.length,me=0,Se,Te,Me,Xe;me<de;){if(ce[me]>=ne){for(Se=me+1;Se<de&&ce[Se]>=ne;)Se++;for(Te=me,Me=Se-1;Te<Me;Te++,Me--)Xe=se[Te],se[Te]=se[Me],se[Me]=Xe;me=Se}me++}}}function J(ne,ce,se,de){var me=ce[de],Se,Te,Me,Xe;switch(me){case i:case s:w=!1;case x:case b:return me;case f:return w?b:f;case _:return w=!0,s;case C:return x;case L:return de<1||de+1>=ce.length||(Se=se[de-1])!=f&&Se!=b||(Te=ce[de+1])!=f&&Te!=b?x:(w&&(Te=b),Te==Se?Te:x);case F:return Se=de>0?se[de-1]:O,Se==f&&de+1<ce.length&&ce[de+1]==f?f:x;case E:if(de>0&&se[de-1]==f)return f;if(w)return x;for(Xe=de+1,Me=ce.length;Xe<Me&&ce[Xe]==E;)Xe++;return Xe<Me&&ce[Xe]==f?f:x;case I:for(Me=ce.length,Xe=de+1;Xe<Me&&ce[Xe]==I;)Xe++;if(Xe<Me){var qe=ne[de],st=qe>=1425&&qe<=2303||qe==64286;if(Se=ce[Xe],st&&(Se==s||Se==_))return s}return de<1||(Se=ce[de-1])==O?x:se[de-1];case O:return w=!1,h=!0,p;case T:return d=!0,x;case z:case P:case S:case k:case N:w=!1;case R:return x}}function he(ne){var ce=ne.charCodeAt(0),se=ce>>8;return se==0?ce>191?i:B[ce]:se==5?/[\u0591-\u05f4]/.test(ne)?s:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:ce==1642?E:/[\u06f0-\u06f9]/.test(ne)?f:_:se==32&&ce<=8287?U[ce&255]:se==254&&ce>=65136?_:x}r.L=i,r.R=s,r.EN=f,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,ce,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),Se=new Array(de.length),Te=[];p=se?c:u,q(de,Te,de.length,ce);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)ce[Me]===b?Te[Me]=r.AN:Te[Me]===s&&(ce[Me]>_&&ce[Me]<z||ce[Me]===x||ce[Me]===R)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]===""&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)Se[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:Se}},r.hasBidiCharacters=function(ne,ce){for(var se=!1,de=0;de<ne.length;de++)ce[de]=he(ne.charAt(de)),!se&&(ce[de]==s||ce[de]==_||ce[de]==b)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,ce){for(var se=0;se<ce.logicalFromVisual.length;se++)if(ce.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,v){var p=e("./lib/bidiutil"),g=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=(function(){function d(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(a.getValue())}return d.prototype.isBidiRow=function(a,l,u){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
|
|
173
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},d.prototype.getDocumentRow=function(){var a=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(a=this.session.$docRowCache[u])}return a},d.prototype.getSplitIndex=function(){var a=0,l=this.session.$screenRowCache;if(l.length)for(var u,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-a>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-a-1),u===c);)c=u,a++;else a=this.currentRow;return a},d.prototype.updateRowLine=function(a,l){a===void 0&&(a=this.getDocumentRow());var u=a===this.session.getLength()-1,c=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[a];i&&(l===void 0&&(l=this.getSplitIndex()),l>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=l<i.length?this.line.substring(i[l-1],i[l]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[l]),l==i.length&&(this.line+=this.showInvisibles?c:p.DOT))}else this.line+=this.showInvisibles?c:p.DOT;var s=this.session,f=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,O){return x===" "||s.isFullWidth(x.charCodeAt(0))?(b=x===" "?s.getScreenTabSize(O+f):2,f+=b-1,g.stringRepeat(p.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},d.prototype.updateBidiMap=function(){var a=[];p.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},d.prototype.markAsDirty=function(){this.currentRow=null},d.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var l=this.characterWidth=a.$characterSize.width,u=a.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=l,this.charWidths[p.R]=this.charWidths[p.AN]=u,this.charWidths[p.R_H]=u*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},d.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},d.prototype.setEolChar=function(a){this.EOL=a},d.prototype.setContentWidth=function(a){this.contentWidth=a},d.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},d.prototype.setRtlDirection=function(a,l){for(var u=a.getCursorPosition(),c=a.selection.getSelectionAnchor().row;c<=u.row;c++)!l&&a.session.getLine(c).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(c,0,1):l&&a.session.getLine(c).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:c},a.session.$bidiHandler.RLE)},d.prototype.getPosLeft=function(a){a-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=a>l?this.session.getOverwrite()?a:a-1:l,c=p.getVisualFromLogicalIdx(u,this.bidiMap),i=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&a<=l&&i[c]%2!==0&&c++;for(var f=0;f<c;f++)s+=this.charWidths[i[f]];return!this.session.getOverwrite()&&a>l&&i[c]%2===0&&(s+=this.charWidths[i[c]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},d.prototype.getSelections=function(a,l){var u=this.bidiMap,c=u.bidiLevels,i,s=[],f=0,b=Math.min(a,l)-this.wrapIndent,x=Math.max(a,l)-this.wrapIndent,O=!1,T=!1,_=0;this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,L=0;L<c.length;L++)C=u.logicalFromVisual[L],i=c[L],O=C>=b&&C<x,O&&!T?_=f:!O&&T&&s.push({left:_,width:f-_}),f+=this.charWidths[i],T=O;if(O&&L===c.length&&s.push({left:_,width:f-_}),this.isRtlDir)for(var F=0;F<s.length;F++)s[F].left+=this.rtlLineOffset;return s},d.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),c=0,i=0,s=this.bidiMap.bidiLevels,f=this.charWidths[s[i]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+f/2;){if(c+=f,i===s.length-1){f=0;break}f=this.charWidths[s[++i]]}return i>0&&s[i-1]%2!==0&&s[i]%2===0?(u<c&&i--,l=this.bidiMap.logicalFromVisual[i]):i>0&&s[i-1]%2===0&&s[i]%2!==0?l=1+(u>c?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===s.length-1&&f===0&&s[i-1]%2===0||!this.isRtlDir&&i===0&&s[i]%2!==0?l=1+this.bidiMap.logicalFromVisual[i]:(i>0&&s[i-1]%2!==0&&f!==0&&i--,l=this.bidiMap.logicalFromVisual[i]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},d})();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=(function(){function a(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},a.prototype.getRange=function(){var l=this.anchor,u=this.lead;return this.$isEmpty?h.fromPoints(u,u):this.isBackwards()?h.fromPoints(u,l):h.fromPoints(l,u)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(l,u){var c=u?l.end:l.start,i=u?l.start:l.end;this.$setSelection(c.row,c.column,i.row,i.column)},a.prototype.$setSelection=function(l,u,c,i){if(!this.$silent){var s=this.$isEmpty,f=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(c,i),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||f)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},a.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},a.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},a.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},a.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(l,u){if(typeof u>"u"){var c=l||this.lead;l=c.row,u=c.column}return this.session.getWordRange(l,u)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},a.prototype.getLineRange=function(l,u){var c=typeof l=="number"?l:this.lead.row,i,s=this.session.getFoldLine(c);return s?(c=s.start.row,i=s.end.row):i=c,u===!0?new h(c,0,i,this.session.getLine(i).length):new h(c,0,i+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(l,u,c){var i=l.column,s=l.column+u;return c<0&&(i=l.column-u,s=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(i,s).split(" ").length-1==u},a.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(l,u),i=this.session.screenToDocumentPosition(c,0),s=this.session.getDisplayLine(l,null,i.row,i.column),f=s.match(/^\s*/);f[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(i.column+=f[0].length),this.moveCursorToPosition(i)},a.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var i=c.search(/\s+$/);i>0&&(u.column=i)}}this.moveCursorTo(u.row,u.column)},a.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(l,u,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if(this.session.nonTokenRe.exec(i)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=c.substring(u)),u>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(i)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},a.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var i=this.session.getFoldStringAt(l,u,-1);i==null&&(i=this.doc.getLine(l).substring(0,u));var s=g.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(u-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(s)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},a.prototype.$shortWordEndIndex=function(l){var u=0,c,i=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(c=l[u])&&i.test(c);)u++;if(u<1){for(s.lastIndex=0;(c=l[u])&&!s.test(c);)if(s.lastIndex=0,u++,i.test(c))if(u>2){u--;break}else{for(;(c=l[u])&&i.test(c);)u++;if(u>2)break}}}return s.lastIndex=0,u},a.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u),s=this.session.getFoldAt(l,u,1);if(s)return this.moveCursorTo(s.end.row,s.end.column);if(u==c.length){var f=this.doc.getLength();do l++,i=this.doc.getLine(l);while(l<f&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),u=0}var b=this.$shortWordEndIndex(i);this.moveCursorTo(l,u+b)},a.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var i=this.session.getLine(l).substring(0,u);if(u===0){do l--,i=this.doc.getLine(l);while(l>0&&/^\s*$/.test(i));u=i.length,/\s+$/.test(i)||(i="")}var s=g.stringReverse(i),f=this.$shortWordEndIndex(s);return this.moveCursorTo(l,u-f)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(l,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var s=this.session.lineWidgets[this.lead.row];l<0?l-=s.rowsAbove||0:l>0&&(l+=s.rowCount-(s.rowsAbove||0))}var f=this.session.screenToDocumentPosition(c.row+l,c.column,i);l!==0&&u===0&&f.row===this.lead.row&&(f.column,this.lead.column),this.moveCursorTo(f.row,f.column+u,u===0)},a.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},a.prototype.moveCursorTo=function(l,u,c){var i=this.session.getFoldAt(l,u,1);i&&(l=i.start.row,u=i.start.column),this.$keepDesiredColumnOnChange=!0;var s=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(s.charAt(u))&&s.charAt(u-1)&&(this.lead.row==l&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(l,u),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(l,u,c){var i=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(i.row,i.column,c)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(l){var u=this.getRange();return l?(l.start.column=u.start.column,l.start.row=u.start.row,l.end.column=u.end.column,l.end.row=u.end.row):l=u,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},a.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var c=this.getCursor();return h.fromPoints(u,c)}catch{return h.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},a.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},a.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var u=l.length;u--;){var c=h.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},a.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(l[u]))return!1;return!0},a})();d.prototype.setSelectionAnchor=d.prototype.setAnchor,d.prototype.getSelectionAnchor=d.prototype.getAnchor,d.prototype.setSelectionRange=d.prototype.setRange,p.implement(d.prototype,w),r.Selection=d}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,v){var p=e("./lib/report_error").reportError,g=2e3,w=(function(){function h(d){this.splitRegex,this.states=d,this.regExps={},this.matchMappings={};for(var a in this.states){for(var l=this.states[a],u=[],c=0,i=this.matchMappings[a]={defaultToken:"text"},s="g",f=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(i.defaultToken=x.defaultToken),x.caseInsensitive&&s.indexOf("i")===-1&&(s+="i"),x.unicode&&s.indexOf("u")===-1&&(s+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var O=x.regex,T=new RegExp("(?:("+O+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||T==1?x.token=x.token[0]:T-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:T-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(T>1?x.onMatch=this.$applyToken:x.onMatch=x.token),T>1&&(/\\\d/.test(x.regex)?O=x.regex.replace(/\\([0-9]+)/g,function(_,C){return"\\"+(parseInt(C,10)+c+1)}):(T=1,O=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&f.push(x)),i[c]=b,c+=T,u.push(O),x.onMatch||(x.onMatch=null)}}u.length||(i[0]=0,u.push("$")),f.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,s)},this),this.regExps[a]=new RegExp("("+u.join(")|(")+")|($)",s)}}return h.prototype.$setMaxTokenCount=function(d){g=d|0},h.prototype.$applyToken=function(d){var a=this.splitRegex.exec(d).slice(1),l=this.token.apply(this,a);if(typeof l=="string")return[{type:l,value:d}];for(var u=[],c=0,i=l.length;c<i;c++)a[c]&&(u[u.length]={type:l[c],value:a[c]});return u},h.prototype.$arrayTokens=function(d){if(!d)return[];var a=this.splitRegex.exec(d);if(!a)return"text";for(var l=[],u=this.tokenArray,c=0,i=u.length;c<i;c++)a[c+1]&&(l[l.length]={type:u[c],value:a[c+1]});return l},h.prototype.removeCapturingGroups=function(d){var a=d.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return a},h.prototype.createSplitterRegexp=function(d,a){if(d.indexOf("(?=")!=-1){var l=0,u=!1,c={};d.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(i,s,f,b,x,O){return u?u=x!="]":x?u=!0:b?(l==c.stack&&(c.end=O+1,c.stack=-1),l--):f&&(l++,f.length!=1&&(c.stack=l,c.start=O)),i}),c.end!=null&&/^\)*$/.test(d.substr(c.end))&&(d=d.substring(0,c.start)+d.substr(c.end))}return d.charAt(0)!="^"&&(d="^"+d),d.charAt(d.length-1)!="$"&&(d+="$"),new RegExp(d,(a||"").replace("g",""))},h.prototype.getLineTokens=function(d,a){if(a&&typeof a!="string"){var l=a.slice(0);a=l[0],a==="#tmp"&&(l.shift(),a=l.shift())}else var l=[];var u=a||"start",c=this.states[u];c||(u="start",c=this.states[u]);var i=this.matchMappings[u],s=this.regExps[u];s.lastIndex=0;for(var f,b=[],x=0,O=0,T={type:null,value:""};f=s.exec(d);){var _=i.defaultToken,C=null,L=f[0],F=s.lastIndex;if(F-L.length>x){var E=d.substring(x,F-L.length);T.type==_?T.value+=E:(T.type&&b.push(T),T={type:_,value:E})}for(var I=0;I<f.length-2;I++)if(f[I+1]!==void 0){C=c[i[I]],C.onMatch?_=C.onMatch(L,u,l,d):_=C.token,C.next&&(typeof C.next=="string"?u=C.next:u=C.next(u,l),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),i=this.matchMappings[u],x=F,s=this.regExps[u],s.lastIndex=F),C.consumeLineEnd&&(x=F);break}if(L){if(typeof _=="string")(!C||C.merge!==!1)&&T.type===_?T.value+=L:(T.type&&b.push(T),T={type:_,value:L});else if(_){T.type&&b.push(T),T={type:null,value:""};for(var I=0;I<_.length;I++)b.push(_[I])}}if(x==d.length)break;if(x=F,O++>g){for(O>2*d.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:d});x<d.length;)T.type&&b.push(T),T={value:d.substring(x,x+=500),type:"overflow"};u="start",l=[];break}}return T.type&&b.push(T),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:b,state:l.length?l:u}},h})();w.prototype.reportError=p,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,v){var p=e("../lib/deep_copy").deepCopy,g;g=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(d,a){if(!a){for(var l in d)this.$rules[l]=d[l];return}for(var l in d){for(var u=d[l],c=0;c<u.length;c++){var i=u[c];(i.next||i.onMatch)&&(typeof i.next=="string"&&i.next.indexOf(a)!==0&&(i.next=a+i.next),i.nextState&&i.nextState.indexOf(a)!==0&&(i.nextState=a+i.nextState))}this.$rules[a+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(d,a,l,u,c){var i=typeof d=="function"?new d().getRules():d;if(u)for(var s=0;s<u.length;s++)u[s]=a+u[s];else{u=[];for(var f in i)u.push(a+f)}if(this.addRules(i,a),l)for(var b=Array.prototype[c?"push":"unshift"],s=0;s<u.length;s++)b.apply(this.$rules[u[s]],p(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var w=function(d,a){return(d!="start"||a.length)&&a.unshift(this.nextState,d),this.nextState},h=function(d,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var d=0,a=this.$rules;function l(u){var c=a[u];c.processed=!0;for(var i=0;i<c.length;i++){var s=c[i],f=null;Array.isArray(s)&&(f=s,s={}),!s.regex&&s.start&&(s.regex=s.start,s.next||(s.next=[]),s.next.push({defaultToken:s.token},{token:s.token+".end",regex:s.end||s.start,next:"pop"}),s.token=s.token+".start",s.push=!0);var b=s.next||s.push;if(b&&Array.isArray(b)){var x=s.stateName;x||(x=s.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=d++)),a[x]=b,s.next=x,l(x)}else b=="pop"&&(s.next=h);if(s.push&&(s.nextState=s.next||s.push,s.next=w,delete s.push),s.rules)for(var O in s.rules)a[O]?a[O].push&&a[O].push.apply(a[O],s.rules[O]):a[O]=s.rules[O];var T=typeof s=="string"?s:s.include;if(T&&(T==="$self"&&(T="start"),Array.isArray(T)?f=T.map(function(C){return a[C]}):f=a[T]),f){var _=[i,1].concat(f);s.noEscape&&(_=_.filter(function(C){return!C.next})),c.splice.apply(c,_),i--}s.keywordMap&&(s.token=this.createKeywordMapper(s.keywordMap,s.defaultToken||"text",s.caseInsensitive),delete s.defaultToken)}}Object.keys(a).forEach(l,this)},this.createKeywordMapper=function(d,a,l,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(d).forEach(function(i){for(var s=d[i],f=s.split(u||"|"),b=f.length;b--;){var x=f[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=i}},this),d=null,l?function(i){return c[i.toLowerCase()]||a}:function(i){return c[i]||a}},this.getKeywords=function(){return this.$keywords}}).call(g.prototype),r.TextHighlightRules=g}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,v){var p;p=function(){this.$behaviours={}},(function(){this.add=function(g,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[g]:this.$behaviours[g]={}}this.$behaviours[g][w]=h},this.addBehaviours=function(g){for(var w in g)for(var h in g[w])this.add(w,h,g[w][h])},this.remove=function(g){this.$behaviours&&this.$behaviours[g]&&delete this.$behaviours[g]},this.inherit=function(g,w){if(typeof g=="function")var h=new g().getBehaviours(w);else var h=g.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(g){if(g){for(var w={},h=0;h<g.length;h++)this.$behaviours[g[h]]&&(w[g[h]]=this.$behaviours[g[h]]);return w}else return this.$behaviours}}).call(p.prototype),r.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,v){var p=e("./range").Range,g=(function(){function w(h,d,a){this.$session=h,this.$row=d,this.$rowTokens=h.getTokens(d);var l=h.getTokenAt(d,a);this.$tokenIndex=l?l.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,d=this.$tokenIndex,a=h[d].start;if(a!==void 0)return a;for(a=0;d>0;)d-=1,a+=h[d].value.length;return a},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],d=this.getCurrentTokenColumn();return new p(this.$row,d,this.$row,d+h.value.length)},w})();r.TokenIterator=g}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,v){var p=e("../../lib/oop"),g=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,u={},c={'"':'"',"'":"'"},i=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,u.rangeCount!=b.multiSelect.rangeCount&&(u={rangeCount:b.multiSelect.rangeCount})),u[x])return l=u[x];l=u[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},s=function(b,x,O,T){var _=b.end.row-b.start.row;return{text:O+x+T,selection:[0,b.start.column+1,_,b.end.column+(_?0:1)]}},f;f=function(b){b=b||{},this.add("braces","insertion",function(x,O,T,_,C){var L=T.getCursorPosition(),F=_.doc.getLine(L.row);if(C=="{"){i(T);var E=T.getSelectionRange(),I=_.doc.getTextRange(E),z=_.getTokenAt(L.row,L.column);if(I!==""&&I!=="{"&&T.getWrapBehavioursEnabled())return s(E,I,"{","}");if(z&&/(?:string)\.quasi|\.xml/.test(z.type)){var P=[/tag\-(?:open|name)/,/attribute\-name/];return P.some(function(q){return q.test(z.type)})||/(string)\.quasi/.test(z.type)&&z.value[L.column-z.start-1]!=="$"?void 0:(f.recordAutoInsert(T,_,"}"),{text:"{}",selection:[1,1]})}else if(f.isSaneInsertion(T,_))return/[\]\}\)]/.test(F[L.column])||T.inMultiSelectMode||b.braces?(f.recordAutoInsert(T,_,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(T,_,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){i(T);var N=F.substring(L.column,L.column+1);if(N=="}"){var S=_.$findOpeningBracket("}",{column:L.column+1,row:L.row});if(S!==null&&f.isAutoInsertedClosing(L,F,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
|
|
174
|
-
`||C==`\r
|
|
175
|
-
`){i(T);var k="";f.isMaybeInsertedClosing(L,F)&&(k=h.stringRepeat("}",l.maybeInsertedBrackets),f.clearMaybeInsertedClosing());var N=F.substring(L.column,L.column+1);if(N==="}"){var R=_.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!R)return null;var B=this.$getIndent(_.getLine(R.row))}else if(k)var B=this.$getIndent(F);else{f.clearMaybeInsertedClosing();return}var U=B+_.getTabString();return{text:`
|
|
176
|
-
`+U+`
|
|
177
|
-
`+B+k,selection:[1,U.length,1,U.length]}}else f.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,O,T,_,C){var L=_.doc.getTextRange(C);if(!C.isMultiLine()&&L=="{"){i(T);var F=_.doc.getLine(C.start.row),E=F.substring(C.end.column,C.end.column+1);if(E=="}")return C.end.column++,C;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,O,T,_,C){if(C=="("){i(T);var L=T.getSelectionRange(),F=_.doc.getTextRange(L);if(F!==""&&T.getWrapBehavioursEnabled())return s(L,F,"(",")");if(f.isSaneInsertion(T,_))return f.recordAutoInsert(T,_,")"),{text:"()",selection:[1,1]}}else if(C==")"){i(T);var E=T.getCursorPosition(),I=_.doc.getLine(E.row),z=I.substring(E.column,E.column+1);if(z==")"){var P=_.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(P!==null&&f.isAutoInsertedClosing(E,I,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,O,T,_,C){var L=_.doc.getTextRange(C);if(!C.isMultiLine()&&L=="("){i(T);var F=_.doc.getLine(C.start.row),E=F.substring(C.start.column+1,C.start.column+2);if(E==")")return C.end.column++,C}}),this.add("brackets","insertion",function(x,O,T,_,C){if(C=="["){i(T);var L=T.getSelectionRange(),F=_.doc.getTextRange(L);if(F!==""&&T.getWrapBehavioursEnabled())return s(L,F,"[","]");if(f.isSaneInsertion(T,_))return f.recordAutoInsert(T,_,"]"),{text:"[]",selection:[1,1]}}else if(C=="]"){i(T);var E=T.getCursorPosition(),I=_.doc.getLine(E.row),z=I.substring(E.column,E.column+1);if(z=="]"){var P=_.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(P!==null&&f.isAutoInsertedClosing(E,I,C))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,O,T,_,C){var L=_.doc.getTextRange(C);if(!C.isMultiLine()&&L=="["){i(T);var F=_.doc.getLine(C.start.row),E=F.substring(C.start.column+1,C.start.column+2);if(E=="]")return C.end.column++,C}}),this.add("string_dquotes","insertion",function(x,O,T,_,C){var L=_.$mode.$quotes||c;if(C.length==1&&L[C]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(C)!=-1)return;i(T);var F=C,E=T.getSelectionRange(),I=_.doc.getTextRange(E);if(I!==""&&(I.length!=1||!L[I])&&T.getWrapBehavioursEnabled())return s(E,I,F,F);if(!I){var z=T.getCursorPosition(),P=_.doc.getLine(z.row),N=P.substring(z.column-1,z.column),S=P.substring(z.column,z.column+1),k=_.getTokenAt(z.row,z.column),R=_.getTokenAt(z.row,z.column+1);if(N=="\\"&&k&&/escape/.test(k.type))return null;var B=k&&/string|escape/.test(k.type),U=!R||/string|escape/.test(R.type),q;if(S==F)q=B!==U,q&&/string\.end/.test(R.type)&&(q=!1);else{if(B&&!U||B&&U)return null;var Q=_.$mode.tokenRe;Q.lastIndex=0;var J=Q.test(N);Q.lastIndex=0;var he=Q.test(S),ne=_.$mode.$pairQuotesAfter,ce=ne&&ne[F]&&ne[F].test(N);if(!ce&&J||he||S&&!/[\s;,.})\]\\]/.test(S))return null;var se=P[z.column-2];if(N==F&&(se==F||Q.test(se)))return null;q=!0}return{text:q?F+F:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,O,T,_,C){var L=_.$mode.$quotes||c,F=_.doc.getTextRange(C);if(!C.isMultiLine()&&L.hasOwnProperty(F)){i(T);var E=_.doc.getLine(C.start.row),I=E.substring(C.start.column+1,C.start.column+2);if(I==F)return C.end.column++,C}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,O,T,_,C){if(x==="doc-start"&&(C===`
|
|
178
|
-
`||C===`\r
|
|
179
|
-
`)&&T.selection.isEmpty()){var L=T.getCursorPosition();if(L.column===0)return;for(var F=_.doc.getLine(L.row),E=_.doc.getLine(L.row+1),I=_.getTokens(L.row),z=0,P=0;P<I.length;P++){z+=I[P].value.length;var N=I[P];if(z>=L.column){if(z===L.column){if(!/\.doc/.test(N.type))return;if(/\*\//.test(N.value)){var S=I[P+1];if(!S||!/\.doc/.test(S.type))return}}var k=L.column-(z-N.value.length),R=N.value.indexOf("*/"),B=N.value.indexOf("/**",R>-1?R+2:0);if(B!==-1&&k>B&&k<B+3||R!==-1&&B!==-1&&k>=R&&k<=B||!/\.doc/.test(N.type))return;break}}var U=this.$getIndent(F);if(/\s*\*/.test(E))return/^\s*\*/.test(F)?{text:C+U+"* ",selection:[1,2+U.length,1,2+U.length]}:{text:C+U+" * ",selection:[1,3+U.length,1,3+U.length]};if(/\/\*\*/.test(F.substring(0,L.column)))return{text:C+U+" * "+C+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}}})},f.isSaneInsertion=function(b,x){var O=b.getCursorPosition(),T=new w(x,O.row,O.column);if(!this.$matchTokenType(T.getCurrentToken()||"text",d)){if(/[)}\]]/.test(b.session.getLine(O.row)[O.column]))return!0;var _=new w(x,O.row,O.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",d))return!1}return T.stepForward(),T.getCurrentTokenRow()!==O.row||this.$matchTokenType(T.getCurrentToken()||"text",a)},f.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},f.recordAutoInsert=function(b,x,O){var T=b.getCursorPosition(),_=x.doc.getLine(T.row);this.isAutoInsertedClosing(T,_,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=T.row,l.autoInsertedLineEnd=O+_.substr(T.column),l.autoInsertedBrackets++},f.recordMaybeInsert=function(b,x,O){var T=b.getCursorPosition(),_=x.doc.getLine(T.row);this.isMaybeInsertedClosing(T,_)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=T.row,l.maybeInsertedLineStart=_.substr(0,T.column)+O,l.maybeInsertedLineEnd=_.substr(T.column),l.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(b,x,O){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&O===l.autoInsertedLineEnd[0]&&x.substr(b.column)===l.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(b,x){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&x.substr(b.column)===l.maybeInsertedLineEnd&&x.substr(0,b.column)==l.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},p.inherits(f,g),r.CstyleBehaviour=f}),ace.define("ace/unicode",["require","exports","module"],function(e,r,v){for(var p=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],g=0,w=[],h=0;h<p.length;h+=2)w.push(g+=p[h]),p[h+1]&&w.push(45,g+=p[h+1]);r.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,r,v){var p=e("../config"),g=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,d=e("../unicode"),a=e("../lib/lang"),l=e("../token_iterator").TokenIterator,u=e("../range").Range,c;c=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+d.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+d.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new g(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(i,s,f,b){var x=s.doc,O=!0,T=!0,_=1/0,C=s.getTabSize(),L=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var F=this.lineCommentStart.map(a.escapeRegExp).join("|"),E=this.lineCommentStart[0];else var F=a.escapeRegExp(this.lineCommentStart),E=this.lineCommentStart;F=new RegExp("^(\\s*)(?:"+F+") ?"),L=s.getUseSoftTabs();var I=function(q,Q){var J=q.match(F);if(J){var he=J[1].length,ne=J[0].length;!S(q,he,ne)&&J[0][ne-1]==" "&&ne--,x.removeInLine(Q,he,ne)}},z=E+" ",P=function(q,Q){(!O||/\S/.test(q))&&(S(q,_,_)?x.insertInLine({row:Q,column:_},z):x.insertInLine({row:Q,column:_},E))},N=function(q,Q){return F.test(q)},S=function(q,Q,J){for(var he=0;Q--&&q.charAt(Q)==" ";)he++;if(he%C!=0)return!1;for(var he=0;q.charAt(J++)==" ";)he++;return C>2?he%C!=C-1:he%C==0}}else{if(!this.blockComment)return!1;var E=this.blockComment.start,k=this.blockComment.end,F=new RegExp("^(\\s*)(?:"+a.escapeRegExp(E)+")"),R=new RegExp("(?:"+a.escapeRegExp(k)+")\\s*$"),P=function(ce,se){N(ce,se)||(!O||/\S/.test(ce))&&(x.insertInLine({row:se,column:ce.length},k),x.insertInLine({row:se,column:_},E))},I=function(ce,se){var de;(de=ce.match(R))&&x.removeInLine(se,ce.length-de[0].length,ce.length),(de=ce.match(F))&&x.removeInLine(se,de[1].length,de[0].length)},N=function(ce,se){if(F.test(ce))return!0;for(var de=s.getTokens(se),me=0;me<de.length;me++)if(de[me].type==="comment")return!0}}function B(q){for(var Q=f;Q<=b;Q++)q(x.getLine(Q),Q)}var U=1/0;B(function(q,Q){var J=q.search(/\S/);J!==-1?(J<_&&(_=J),T&&!N(q,Q)&&(T=!1)):U>q.length&&(U=q.length)}),_==1/0&&(_=U,O=!1,T=!1),L&&_%C!=0&&(_=Math.floor(_/C)*C),B(T?I:P)},this.toggleBlockComment=function(i,s,f,b){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var O=new l(s,b.row,b.column),T=O.getCurrentToken();s.selection;var _=s.selection.toOrientedRange(),C,L;if(T&&/comment/.test(T.type)){for(var F,E;T&&/comment/.test(T.type);){var I=T.value.indexOf(x.start);if(I!=-1){var z=O.getCurrentTokenRow(),P=O.getCurrentTokenColumn()+I;F=new u(z,P,z,P+x.start.length);break}T=O.stepBackward()}for(var O=new l(s,b.row,b.column),T=O.getCurrentToken();T&&/comment/.test(T.type);){var I=T.value.indexOf(x.end);if(I!=-1){var z=O.getCurrentTokenRow(),P=O.getCurrentTokenColumn()+I;E=new u(z,P,z,P+x.end.length);break}T=O.stepForward()}E&&s.remove(E),F&&(s.remove(F),C=F.start.row,L=-x.start.length)}else L=x.start.length,C=f.start.row,s.insert(f.end,x.end),s.insert(f.start,x.start);_.start.row==C&&(_.start.column+=L),_.end.row==C&&(_.end.column+=L),s.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(i,s,f){return this.$getIndent(s)},this.checkOutdent=function(i,s,f){return!1},this.autoOutdent=function(i,s,f){},this.$getIndent=function(i){return i.match(/^\s*/)[0]},this.createWorker=function(i){return null},this.createModeDelegates=function(i){this.$embeds=[],this.$modes={};for(var s in i)if(i[s]){var f=i[s],b=f.prototype.$id,x=p.$modes[b];x||(p.$modes[b]=x=new f),p.$modes[s]||(p.$modes[s]=x),this.$embeds.push(s),this.$modes[s]=x}for(var O=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],T=function(L){(function(F){var E=O[L],I=F[E];F[O[L]]=function(){return this.$delegator(E,arguments,I)}})(_)},_=this,s=0;s<O.length;s++)T(s)},this.$delegator=function(i,s,f){var b=s[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var x=b[2][b[2].length-1],O=this.$modes[x];if(O)return O[i].apply(O,[b[1]].concat([].slice.call(s,1)))}b=b[0]||"start"}for(var T=0;T<this.$embeds.length;T++)if(this.$modes[this.$embeds[T]]){var _=b.split(this.$embeds[T]);if(!_[0]&&_[1]){s[0]=_[1];var O=this.$modes[this.$embeds[T]];return O[i].apply(O,s)}}var C=f.apply(this,s);return f?C:void 0},this.transformAction=function(i,s,f,b,x){if(this.$behaviour){var O=this.$behaviour.getBehaviours();for(var T in O)if(O[T][s]){var _=O[T][s].apply(this,arguments);if(_)return _}}},this.getKeywords=function(i){if(!this.completionKeywords){var s=this.$tokenizer.rules,f=[];for(var b in s)for(var x=s[b],O=0,T=x.length;O<T;O++)if(typeof x[O].token=="string")/keyword|support|storage/.test(x[O].token)&&f.push(x[O].regex);else if(typeof x[O].token=="object"){for(var _=0,C=x[O].token.length;_<C;_++)if(/keyword|support|storage/.test(x[O].token[_])){var b=x[O].regex.match(/\(.+?\)/g)[_];f.push(b.substr(1,b.length-2))}}this.completionKeywords=f}return i?f.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(i,s,f,b){var x=this.$keywordList||this.$createKeywordList();return x.map(function(O){return{name:O,value:O,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),r.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("./lib/dom"),g=(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 d;return this.lineWidgets?d=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:d=0,!this.$useWrapMode||!this.$wrapData[h]?1+d:this.$wrapData[h].length+1+d},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(d){d&&d.rowCount&&!d.hidden&&(h+=d.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 d=this.editor;if(d){this.editor=null,d.widgetManager=null,d.renderer.off("beforeRender",this.measureWidgets),d.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},w.prototype.updateOnFold=function(h,d){var a=d.lineWidgets;if(!(!a||!h.action)){for(var l=h.data,u=l.start.row,c=l.end.row,i=h.action=="add",s=u+1;s<c;s++)a[s]&&(a[s].hidden=i);a[c]&&(i?a[u]?a[c].hidden=i:a[u]=a[c]:(a[u]==a[c]&&(a[u]=void 0),a[c].hidden=i))}},w.prototype.updateOnChange=function(h){var d=this.session.lineWidgets;if(d){var a=h.start.row,l=h.end.row-a;if(l!==0)if(h.action=="remove"){var u=d.splice(a+1,l);!d[a]&&u[u.length-1]&&(d[a]=u.pop()),u.forEach(function(i){i&&this.removeLineWidget(i)},this),this.$updateRows()}else{var c=new Array(l);d[a]&&d[a].column!=null&&h.start.column>d[a].column&&a++,c.unshift(a,0),d.splice.apply(d,c),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var d=!0;h.forEach(function(a,l){if(a)for(d=!1,a.row=l;a.$oldWidget;)a.$oldWidget.row=l,a=a.$oldWidget}),d&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var d=this.session.lineWidgets[h.row];return d&&(h.$oldWidget=d,d.el&&d.el.parentNode&&(d.el.parentNode.removeChild(d.el),d._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 d=this.editor.renderer;h.html&&!h.el&&(h.el=p.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=p.createElement("div"),h.el.textContent=h.text),h.el&&(p.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&p.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",d.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/d.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var l=this.session.lineWidgets;h.row==a.end.row&&!l[a.start.row]?l[a.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,d),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 d=this.session.lineWidgets[h.row];if(d==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;d;){if(d.$oldWidget==h){d.$oldWidget=h.$oldWidget;break}d=d.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var d=this.session.lineWidgets,a=d&&d[h],l=[];a;)l.push(a),a=a.$oldWidget;return l},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,d){var a=this.session._changedWidgets,l=d.layerConfig;if(!(!a||!a.length)){for(var u=1/0,c=0;c<a.length;c++){var i=a[c];if(!(!i||!i.el)&&i.session==this.session){if(!i._inDocument){if(this.session.lineWidgets[i.row]!=i)continue;i._inDocument=!0,d.container.appendChild(i.el)}i.h=i.el.offsetHeight,i.fixedWidth||(i.w=i.el.offsetWidth,i.screenWidth=Math.ceil(i.w/l.characterWidth));var s=i.h/l.lineHeight;i.coverLine&&(s-=this.session.getRowLineCount(i.row),s<0&&(s=0)),i.rowCount!=s&&(i.rowCount=s,i.row<u&&(u=i.row))}}u!=1/0&&(this.session._emit("changeFold",{data:{start:{row:u}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(h,d){var a=d.layerConfig,l=this.session.lineWidgets;if(l){for(var u=Math.min(this.firstRow,a.firstRow),c=Math.max(this.lastRow,a.lastRow,l.length);u>0&&!l[u];)u--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,d.$cursorLayer.config=a;for(var i=u;i<=c;i++){var s=l[i];if(!(!s||!s.el)){if(s.hidden){s.el.style.top=-100-(s.pixelHeight||0)+"px";continue}s._inDocument||(s._inDocument=!0,d.container.appendChild(s.el));var f=d.$cursorLayer.getPixelPosition({row:i,column:0},!0).top;s.coverLine||(f+=a.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=f-a.offset+"px";var b=s.coverGutter?0:d.gutterWidth;s.fixedWidth||(b-=d.scrollLeft),s.el.style.left=b+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=a.width+2*a.padding+"px"),s.fixedWidth?s.el.style.right=d.scrollBar.getWidth()+"px":s.el.style.right=""}}}},w})();r.LineWidgets=g}),ace.define("ace/apply_delta",["require","exports","module"],function(e,r,v){r.applyDelta=function(p,g,w){var h=g.start.row,d=g.start.column,a=p[h]||"";switch(g.action){case"insert":var l=g.lines;if(l.length===1)p[h]=a.substring(0,d)+g.lines[0]+a.substring(d);else{var u=[h,1].concat(g.lines);p.splice.apply(p,u),p[h]=a.substring(0,d)+p[h],p[h+g.lines.length-1]+=a.substring(d)}break;case"remove":var c=g.end.column,i=g.end.row;h===i?p[h]=a.substring(0,d)+a.substring(c):p.splice(h,i-h+1,a.substring(0,d)+p[i].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/event_emitter").EventEmitter,w=(function(){function a(l,u,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof u!="number"?this.setPosition(u.row,u.column):this.setPosition(u,c)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var u=d(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(u.row,u.column,!0)}},a.prototype.setPosition=function(l,u,c){var i;if(c?i={row:l,column:u}:i=this.$clipPositionToDocument(l,u),!(this.row==i.row&&this.column==i.column)){var s={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:s,value:i})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(l,u){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,u))),u<0&&(c.column=0),c},a})();w.prototype.$insertRight=!1,p.implement(w.prototype,g);function h(a,l,u){var c=u?a.column<=l.column:a.column<l.column;return a.row<l.row||a.row==l.row&&c}function d(a,l,u){var c=a.action=="insert",i=(c?1:-1)*(a.end.row-a.start.row),s=(c?1:-1)*(a.end.column-a.start.column),f=a.start,b=c?f:a.end;return h(l,f,u)?{row:l.row,column:l.column}:h(b,l,!u)?{row:l.row+i,column:l.column+(l.row==b.row?s:0)}:{row:f.row,column:f.column}}r.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,r,v){var p=e("./lib/oop"),g=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=e("./anchor").Anchor,a=(function(){function l(u){this.$lines=[""],u.length===0?this.$lines=[""]:Array.isArray(u)?this.insertMergedLines({row:0,column:0},u):this.insert({row:0,column:0},u)}return l.prototype.setValue=function(u){var c=this.getLength()-1;this.remove(new h(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},u||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(u,c){return new d(this,u,c)},l.prototype.$detectNewLine=function(u){var c=u.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
|
|
180
|
-
`,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
181
|
-
`;case"unix":return`
|
|
182
|
-
`;default:return this.$autoNewLine||`
|
|
183
|
-
`}},l.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(u){return u==`\r
|
|
184
|
-
`||u=="\r"||u==`
|
|
185
|
-
`},l.prototype.getLine=function(u){return this.$lines[u]||""},l.prototype.getLines=function(u,c){return this.$lines.slice(u,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(u){var c;if(u.start.row===u.end.row)c=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{c=this.getLines(u.start.row,u.end.row),c[0]=(c[0]||"").substring(u.start.column);var i=c.length-1;u.end.row-u.start.row==i&&(c[i]=c[i].substring(0,u.end.column))}return c},l.prototype.insertLines=function(u,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,c)},l.prototype.removeLines=function(u,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,c)},l.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},l.prototype.insert=function(u,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(u,this.$split(c))},l.prototype.insertInLine=function(u,c){var i=this.clippedPos(u.row,u.column),s=this.pos(u.row,u.column+c.length);return this.applyDelta({start:i,end:s,action:"insert",lines:[c]},!0),this.clonePos(s)},l.prototype.clippedPos=function(u,c){var i=this.getLength();u===void 0?u=i:u<0?u=0:u>=i&&(u=i-1,c=void 0);var s=this.getLine(u);return c==null&&(c=s.length),c=Math.min(Math.max(c,0),s.length),{row:u,column:c}},l.prototype.clonePos=function(u){return{row:u.row,column:u.column}},l.prototype.pos=function(u,c){return{row:u,column:c}},l.prototype.$clipPosition=function(u){var c=this.getLength();return u.row>=c?(u.row=Math.max(0,c-1),u.column=this.getLine(c-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},l.prototype.insertFullLines=function(u,c){u=Math.min(Math.max(u,0),this.getLength());var i=0;u<this.getLength()?(c=c.concat([""]),i=0):(c=[""].concat(c),u--,i=this.$lines[u].length),this.insertMergedLines({row:u,column:i},c)},l.prototype.insertMergedLines=function(u,c){var i=this.clippedPos(u.row,u.column),s={row:i.row+c.length-1,column:(c.length==1?i.column:0)+c[c.length-1].length};return this.applyDelta({start:i,end:s,action:"insert",lines:c}),this.clonePos(s)},l.prototype.remove=function(u){var c=this.clippedPos(u.start.row,u.start.column),i=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:c,end:i,action:"remove",lines:this.getLinesForRange({start:c,end:i})}),this.clonePos(c)},l.prototype.removeInLine=function(u,c,i){var s=this.clippedPos(u,c),f=this.clippedPos(u,i);return this.applyDelta({start:s,end:f,action:"remove",lines:this.getLinesForRange({start:s,end:f})},!0),this.clonePos(s)},l.prototype.removeFullLines=function(u,c){u=Math.min(Math.max(0,u),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var i=c==this.getLength()-1&&u>0,s=c<this.getLength()-1,f=i?u-1:u,b=i?this.getLine(f).length:0,x=s?c+1:c,O=s?0:this.getLine(x).length,T=new h(f,b,x,O),_=this.$lines.slice(u,c+1);return this.applyDelta({start:T.start,end:T.end,action:"remove",lines:this.getLinesForRange(T)}),_},l.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(u,c){if(u instanceof h||(u=h.fromPoints(u.start,u.end)),c.length===0&&u.isEmpty())return u.start;if(c==this.getTextRange(u))return u.end;this.remove(u);var i;return c?i=this.insert(u.start,c):i=u.start,i},l.prototype.applyDeltas=function(u){for(var c=0;c<u.length;c++)this.applyDelta(u[c])},l.prototype.revertDeltas=function(u){for(var c=u.length-1;c>=0;c--)this.revertDelta(u[c])},l.prototype.applyDelta=function(u,c){var i=u.action=="insert";(i?u.lines.length<=1&&!u.lines[0]:!h.comparePoints(u.start,u.end))||(i&&u.lines.length>2e4?this.$splitAndapplyLargeDelta(u,2e4):(g(this.$lines,u,c),this._signal("change",u)))},l.prototype.$safeApplyDelta=function(u){var c=this.$lines.length;(u.action=="remove"&&u.start.row<c&&u.end.row<c||u.action=="insert"&&u.start.row<=c)&&this.applyDelta(u)},l.prototype.$splitAndapplyLargeDelta=function(u,c){for(var i=u.lines,s=i.length-c+1,f=u.start.row,b=u.start.column,x=0,O=0;x<s;x=O){O+=c-1;var T=i.slice(x,O);T.push(""),this.applyDelta({start:this.pos(f+x,b),end:this.pos(f+O,b=0),action:u.action,lines:T},!0)}u.lines=i.slice(x),u.start.row=f+x,u.start.column=b,this.applyDelta(u,!0)},l.prototype.revertDelta=function(u){this.$safeApplyDelta({start:this.clonePos(u.start),end:this.clonePos(u.end),action:u.action=="insert"?"remove":"insert",lines:u.lines.slice()})},l.prototype.indexToPosition=function(u,c){for(var i=this.$lines||this.getAllLines(),s=this.getNewLineCharacter().length,f=c||0,b=i.length;f<b;f++)if(u-=i[f].length+s,u<0)return{row:f,column:u+i[f].length+s};return{row:b-1,column:u+i[b-1].length+s}},l.prototype.positionToIndex=function(u,c){for(var i=this.$lines||this.getAllLines(),s=this.getNewLineCharacter().length,f=0,b=Math.min(u.row,i.length),x=c||0;x<b;++x)f+=i[x].length+s;return f+u.column},l.prototype.$split=function(u){return u.split(/\r\n|\r|\n/)},l})();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",p.implement(a.prototype,w),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var p=e("./lib/oop"),g=e("./lib/event_emitter").EventEmitter,w=(function(){function h(d,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=d;var l=this;this.$worker=function(){if(l.running){for(var u=new Date,c=l.currentLine,i=-1,s=l.doc,f=c;l.lines[c];)c++;var b=s.getLength(),x=0;for(l.running=!1;c<b;){l.$tokenizeRow(c),i=c;do c++;while(l.lines[c]);if(x++,x%5===0&&new Date-u>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,i==-1&&(i=c),f<=i&&l.fireUpdateEvent(f,i)}}}return h.prototype.setTokenizer=function(d){this.tokenizer=d,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(d){this.doc=d,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(d,a){var l={first:d,last:a};this._signal("update",{data:l})},h.prototype.start=function(d){this.currentLine=Math.min(d||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(d){var a=d.start.row,l=d.end.row-a;if(l===0)this.lines[a]=null;else if(d.action=="remove")this.lines.splice(a,l+1,null),this.states.splice(a,l+1,null);else{var u=Array(l+1);u.unshift(a,1),this.lines.splice.apply(this.lines,u),this.states.splice.apply(this.states,u)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(d){return this.lines[d]||this.$tokenizeRow(d)},h.prototype.getState=function(d){return this.currentLine==d&&this.$tokenizeRow(d),this.states[d]||"start"},h.prototype.$tokenizeRow=function(d){var a=this.doc.getLine(d),l=this.states[d-1],u=this.tokenizer.getLineTokens(a,l,d);return this.states[d]+""!=u.state+""?(this.states[d]=u.state,this.lines[d+1]=null,this.currentLine>d+1&&(this.currentLine=d+1)):this.currentLine==d&&(this.currentLine=d+1),this.lines[d]=u.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h})();p.implement(w.prototype,g),r.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,r,v){var p=e("./lib/lang"),g=e("./range").Range,w=(function(){function h(d,a,l){l===void 0&&(l="text"),this.setRegexp(d),this.clazz=a,this.type=l,this.docLen=0}return h.prototype.setRegexp=function(d){this.regExp+""!=d+""&&(this.regExp=d,this.cache=[])},h.prototype.update=function(d,a,l,u){if(this.regExp){for(var c=u.firstRow,i=u.lastRow,s={},f=l.$editor&&l.$editor.$search,b=f&&f.$isMultilineSearch(l.$editor.getLastSearchOptions()),x=c;x<=i;x++){var O=this.cache[x];if(O==null||l.getValue().length!=this.docLen){if(b){O=[];var T=f.$multiLineForward(l,this.regExp,x,i);if(T){var _=T.endRow<=i?T.endRow-1:i;_>x&&(x=_),O.push(new g(T.startRow,T.startCol,T.endRow,T.endCol))}O.length>this.MAX_RANGES&&(O=O.slice(0,this.MAX_RANGES))}else O=p.getMatchOffsets(l.getLine(x),this.regExp),O.length>this.MAX_RANGES&&(O=O.slice(0,this.MAX_RANGES)),O=O.map(function(E){return new g(x,E.offset,x,E.offset+E.length)});this.cache[x]=O.length?O:""}if(O.length!==0)for(var C=O.length;C--;){var L=O[C].toScreenRange(l),F=L.toString();s[F]||(s[F]=!0,a.drawSingleLineMarker(d,L,this.clazz,u))}}this.docLen=l.getValue().length}},h})();w.prototype.MAX_RANGES=500,r.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,r,v){var p=(function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(C){this.$session=C},_.prototype.add=function(C,L,F){if(!this.$fromUndo&&C!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),L===!1||!this.lastDeltas){this.lastDeltas=[];var E=this.$undoStack.length;E>this.$undoDepth-1&&this.$undoStack.splice(0,E-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),C.id=this.$rev=++this.$maxRev}(C.action=="remove"||C.action=="insert")&&(this.$lastDelta=C),this.lastDeltas.push(C)}},_.prototype.addSelection=function(C,L){this.selections.push({value:C,rev:L||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(C,L){L==null&&(L=this.$rev+1);for(var F=this.$undoStack,E=F.length;E--;){var I=F[E][0];if(I.id<=C)break;I.id<L&&(I.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(C,L){for(var F=this.selections,E=F.length;E--;){var I=F[E];if(I.rev<C)return L&&(I=F[E+1]),I}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(C,L){L==null&&(L=this.$rev+1);for(var F=this.$undoStack,E=null,I=0,z=F.length;z--;){var P=F[z][0];if(P.id<L&&!E&&(E=z+1),P.id<=C){I=z+1;break}}return F.slice(I,E)},_.prototype.getChangedRanges=function(C,L){L==null&&(L=this.$rev+1)},_.prototype.getChangedLines=function(C,L){L==null&&(L=this.$rev+1)},_.prototype.undo=function(C,L){this.lastDeltas=null;var F=this.$undoStack;if(g(F,F.length)){C||(C=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var E=F.pop(),I=null;return E&&(I=C.undoChanges(E,L),this.$redoStack.push(E),this.$syncRev()),this.$fromUndo=!1,I}},_.prototype.redo=function(C,L){if(this.lastDeltas=null,C||(C=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var F=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);T(this.$redoStack,F),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(z){z[0].id=++this.$maxRev},this)}var E=this.$redoStack.pop(),I=null;return E&&(I=C.redoChanges(E,L),this.$undoStack.push(E),this.$syncRev()),this.$fromUndo=!1,I},_.prototype.$syncRev=function(){var C=this.$undoStack,L=C[C.length-1],F=L&&L[0].id||0;this.$redoStackBaseRev=F,this.$rev=F},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(C){C==null&&(C=this.$rev),this.mark=C},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(C){this.reset(),this.$undoStack=C.$undoStack,this.$redoStack=C.$redoStack},_.prototype.$prettyPrint=function(C){return C?l(C):l(this.$undoStack)+`
|
|
186
|
-
---
|
|
187
|
-
`+l(this.$redoStack)},_})();p.prototype.hasUndo=p.prototype.canUndo,p.prototype.hasRedo=p.prototype.canRedo,p.prototype.isClean=p.prototype.isAtBookmark,p.prototype.markClean=p.prototype.bookmark;function g(_,C){for(var L=C;L--;){var F=_[L];if(F&&!F[0].ignore){for(;L<C-1;){var E=i(_[L],_[L+1]);_[L]=E[0],_[L+1]=E[1],L++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function d(_){return{row:_.row,column:_.column}}function a(_){return{start:d(_.start),end:d(_.end),action:_.action,lines:_.lines.slice()}}function l(_){if(_=_||this,Array.isArray(_))return _.map(l).join(`
|
|
188
|
-
`);var C="";return _.action?(C=_.action=="insert"?"+":"-",C+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?C=_.value.map(u).join(`
|
|
189
|
-
`):C=u(_.value)),_.start&&(C+=u(_)),(_.id||_.rev)&&(C+=" ("+(_.id||_.rev)+")"),C}function u(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function c(_,C){var L=_.action=="insert",F=C.action=="insert";if(L&&F)if(h(C.start,_.end)>=0)f(C,_,-1);else if(h(C.start,_.start)<=0)f(_,C,1);else return null;else if(L&&!F)if(h(C.start,_.end)>=0)f(C,_,-1);else if(h(C.end,_.start)<=0)f(_,C,-1);else return null;else if(!L&&F)if(h(C.start,_.start)>=0)f(C,_,1);else if(h(C.start,_.start)<=0)f(_,C,1);else return null;else if(!L&&!F)if(h(C.start,_.start)>=0)f(C,_,1);else if(h(C.end,_.start)<=0)f(_,C,-1);else return null;return[C,_]}function i(_,C){for(var L=_.length;L--;)for(var F=0;F<C.length;F++)if(!c(_[L],C[F])){for(;L<_.length;){for(;F--;)c(C[F],_[L]);F=C.length,L++}return[_,C]}return _.selectionBefore=C.selectionBefore=_.selectionAfter=C.selectionAfter=null,[C,_]}function s(_,C){var L=_.action=="insert",F=C.action=="insert";if(L&&F)h(_.start,C.start)<0?f(C,_,1):f(_,C,1);else if(L&&!F)h(_.start,C.end)>=0?f(_,C,-1):(h(_.start,C.start)<=0||f(_,w.fromPoints(C.start,_.start),-1),f(C,_,1));else if(!L&&F)h(C.start,_.end)>=0?f(C,_,-1):(h(C.start,_.start)<=0||f(C,w.fromPoints(_.start,C.start),-1),f(_,C,1));else if(!L&&!F)if(h(C.start,_.end)>=0)f(C,_,-1);else if(h(C.end,_.start)<=0)f(_,C,-1);else{var E,I;return h(_.start,C.start)<0&&(E=_,_=x(_,C.start)),h(_.end,C.end)>0&&(I=x(_,C.end)),b(C.end,_.start,_.end,-1),I&&!E&&(_.lines=I.lines,_.start=I.start,_.end=I.end,I=_),[C,E,I].filter(Boolean)}return[C,_]}function f(_,C,L){b(_.start,C.start,C.end,L),b(_.end,C.start,C.end,L)}function b(_,C,L,F){_.row==(F==1?C:L).row&&(_.column+=F*(L.column-C.column)),_.row+=F*(L.row-C.row)}function x(_,C){var L=_.lines,F=_.end;_.end=d(C);var E=_.end.row-_.start.row,I=L.splice(E,L.length),z=E?C.column:C.column-_.start.column;L.push(I[0].substring(0,z)),I[0]=I[0].substr(z);var P={start:d(C),end:F,lines:I,action:_.action};return P}function O(_,C){C=a(C);for(var L=_.length;L--;){for(var F=_[L],E=0;E<F.length;E++){var I=F[E],z=s(I,C);C=z[0],z.length!=2&&(z[2]?(F.splice(E+1,1,z[1],z[2]),E++):z[1]||(F.splice(E,1),E--))}F.length||_.splice(L,1)}return _}function T(_,C){for(var L=0;L<C.length;L++)for(var F=C[L],E=0;E<F.length;E++)O(_,F[E])}r.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=(function(){function w(h,d){this.foldData=h,Array.isArray(d)?this.folds=d:d=this.folds=[d];var a=d[d.length-1];this.range=new p(d[0].start.row,d[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return w.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(d){d.start.row+=h,d.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(d,a){return-d.range.compareEnd(a.start.row,a.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,d,a){var l=0,u=this.folds,c,i,s,f=!0;d==null&&(d=this.end.row,a=this.end.column);for(var b=0;b<u.length;b++){if(c=u[b],i=c.range.compareStart(d,a),i==-1){h(null,d,a,l,f);return}if(s=h(null,c.start.row,c.start.column,l,f),s=!s&&h(c.placeholder,c.start.row,c.start.column,l),s||i===0)return;f=!c.sameRow,l=c.end.column}h(null,d,a,l,f)},w.prototype.getNextFoldTo=function(h,d){for(var a,l,u=0;u<this.folds.length;u++){if(a=this.folds[u],l=a.range.compareEnd(h,d),l==-1)return{fold:a,kind:"after"};if(l===0)return{fold:a,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,d,a){var l=this.getNextFoldTo(h,d),u,c;if(l){if(u=l.fold,l.kind=="inside"&&u.start.column!=d&&u.start.row!=h)window.console&&window.console.log(h,d,u);else if(u.start.row==h){c=this.folds;var i=c.indexOf(u);for(i===0&&(this.start.column+=a),i;i<c.length;i++){if(u=c[i],u.start.column+=a,!u.sameRow)return;u.end.column+=a}this.end.column+=a}}},w.prototype.split=function(h,d){var a=this.getNextFoldTo(h,d);if(!a||a.kind=="inside")return null;var l=a.fold,u=this.folds,c=this.foldData,i=u.indexOf(l),s=u[i-1];this.end.row=s.end.row,this.end.column=s.end.column,u=u.splice(i,u.length-i);var f=new w(c,u);return c.splice(c.indexOf(this)+1,0,f),f},w.prototype.merge=function(h){for(var d=h.folds,a=0;a<d.length;a++)this.addFold(d[a]);var l=this.foldData;l.splice(l.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(d){h.push(" "+d.toString())}),h.push("]"),h.join(`
|
|
190
|
-
`)},w.prototype.idxToPosition=function(h){for(var d=0,a=0;a<this.folds.length;a++){var l=this.folds[a];if(h-=l.start.column-d,h<0)return{row:l.start.row,column:l.start.column+h};if(h-=l.placeholder.length,h<0)return l.start;d=l.end.column}return{row:this.end.row,column:this.end.column+h}},w})();r.FoldLine=g}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,r,v){var p=e("./range").Range,g=p.comparePoints,w=(function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(d,a,l){for(var u=this.ranges,c=l||0;c<u.length;c++){var i=u[c],s=g(d,i.end);if(!(s>0)){var f=g(d,i.start);return s===0?a&&f!==0?-c-2:c:f>0||f===0&&!a?c:-c-1}}return-c-1},h.prototype.add=function(d){var a=!d.isEmpty(),l=this.pointIndex(d.start,a);l<0&&(l=-l-1);var u=this.pointIndex(d.end,a,l);return u<0?u=-u-1:u++,this.ranges.splice(l,u-l,d)},h.prototype.addList=function(d){for(var a=[],l=d.length;l--;)a.push.apply(a,this.add(d[l]));return a},h.prototype.substractPoint=function(d){var a=this.pointIndex(d);if(a>=0)return this.ranges.splice(a,1)},h.prototype.merge=function(){var d=[],a=this.ranges;a=a.sort(function(s,f){return g(s.start,f.start)});for(var l=a[0],u,c=1;c<a.length;c++){u=l,l=a[c];var i=g(u.end,l.start);i<0||i==0&&!u.isEmpty()&&!l.isEmpty()||(g(u.end,l.end)<0&&(u.end.row=l.end.row,u.end.column=l.end.column),a.splice(c,1),d.push(l),l=u,c--)}return this.ranges=a,d},h.prototype.contains=function(d,a){return this.pointIndex({row:d,column:a})>=0},h.prototype.containsPoint=function(d){return this.pointIndex(d)>=0},h.prototype.rangeAtPoint=function(d){var a=this.pointIndex(d);if(a>=0)return this.ranges[a]},h.prototype.clipRows=function(d,a){var l=this.ranges;if(l[0].start.row>a||l[l.length-1].start.row<d)return[];var u=this.pointIndex({row:d,column:0});u<0&&(u=-u-1);var c=this.pointIndex({row:a,column:0},u);c<0&&(c=-c-1);for(var i=[],s=u;s<c;s++)i.push(l[s]);return i},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(d){this.session&&this.detach(),this.session=d,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(d){for(var a=d.start,l=d.end,u=a.row,c=l.row,i=this.ranges,s=0,f=i.length;s<f;s++){var b=i[s];if(b.end.row>=u)break}if(d.action=="insert")for(var x=c-u,O=-a.column+l.column;s<f;s++){var b=i[s];if(b.start.row>u)break;if(b.start.row==u&&b.start.column>=a.column&&(b.start.column==a.column&&this.$bias<=0||(b.start.column+=O,b.start.row+=x)),b.end.row==u&&b.end.column>=a.column){if(b.end.column==a.column&&this.$bias<0)continue;b.end.column==a.column&&O>0&&s<f-1&&b.end.column>b.start.column&&b.end.column==i[s+1].start.column&&(b.end.column-=O),b.end.column+=O,b.end.row+=x}}else for(var x=u-c,O=a.column-l.column;s<f;s++){var b=i[s];if(b.start.row>c)break;b.end.row<c&&(u<b.end.row||u==b.end.row&&a.column<b.end.column)?(b.end.row=u,b.end.column=a.column):b.end.row==c?b.end.column<=l.column?(x||b.end.column>a.column)&&(b.end.column=a.column,b.end.row=a.row):(b.end.column+=O,b.end.row+=x):b.end.row>c&&(b.end.row+=x),b.start.row<c&&(u<b.start.row||u==b.start.row&&a.column<b.start.column)?(b.start.row=u,b.start.column=a.column):b.start.row==c?b.start.column<=l.column?(x||b.start.column>a.column)&&(b.start.column=a.column,b.start.row=a.row):(b.start.column+=O,b.start.row+=x):b.start.row>c&&(b.start.row+=x)}if(x!=0&&s<f)for(;s<f;s++){var b=i[s];b.start.row+=x,b.end.row+=x}},h})();w.prototype.comparePoints=g,r.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,r,v){var p=this&&this.__extends||(function(){var u=function(c,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,f){s.__proto__=f}||function(s,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(s[b]=f[b])},u(c,i)};return function(c,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");u(c,i);function s(){this.constructor=c}c.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),g=e("../range_list").RangeList,w=(function(u){p(c,u);function c(i,s){var f=u.call(this)||this;return f.foldLine=null,f.placeholder=s,f.range=i,f.start=i.start,f.end=i.end,f.sameRow=i.start.row==i.end.row,f.subFolds=f.ranges=[],f}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(i){this.foldLine=i,this.subFolds.forEach(function(s){s.setFoldLine(i)})},c.prototype.clone=function(){var i=this.range.clone(),s=new c(i,this.placeholder);return this.subFolds.forEach(function(f){s.subFolds.push(f.clone())}),s.collapseChildren=this.collapseChildren,s},c.prototype.addSubFold=function(i){if(!this.range.isEqual(i)){d(i,this.start);for(var s=i.start.row,f=i.start.column,b=0,x=-1;b<this.subFolds.length&&(x=this.subFolds[b].range.compare(s,f),x==1);b++);var O=this.subFolds[b],T=0;if(x==0){if(O.range.containsRange(i))return O.addSubFold(i);T=1}for(var s=i.range.end.row,f=i.range.end.column,_=b,x=-1;_<this.subFolds.length&&(x=this.subFolds[_].range.compare(s,f),x==1);_++);x==0&&_++;for(var C=this.subFolds.splice(b,_-b,i),L=x==0?C.length-1:C.length,F=T;F<L;F++)i.addSubFold(C[F]);return i.setFoldLine(this.foldLine),i}},c.prototype.restoreRange=function(i){return l(i,this.start)},c})(g);function h(u,c){u.row-=c.row,u.row==0&&(u.column-=c.column)}function d(u,c){h(u.start,c),h(u.end,c)}function a(u,c){u.row==0&&(u.column+=c.column),u.row+=c.row}function l(u,c){a(u.start,c),a(u.end,c)}r.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,r,v){var p=e("../range").Range,g=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,d=e("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(l,u,c){var i=this.getFoldLine(l);if(!i)return null;for(var s=i.folds,f=0;f<s.length;f++){var b=s[f].range;if(b.contains(l,u)){if(c==1&&b.isEnd(l,u)&&!b.isEmpty()||c==-1&&b.isStart(l,u)&&!b.isEmpty())continue;return s[f]}}},this.getFoldsInRange=function(l){var u=l.start,c=l.end,i=this.$foldData,s=[];u.column+=1,c.column-=1;for(var f=0;f<i.length;f++){var b=i[f].range.compareRange(l);if(b!=2){if(b==-2)break;for(var x=i[f].folds,O=0;O<x.length;O++){var T=x[O];if(b=T.range.compareRange(l),b==-2)break;if(b!=2){if(b==42)break;s.push(T)}}}}return u.column-=1,c.column+=1,s},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var u=[];l.forEach(function(i){u=u.concat(this.getFoldsInRange(i))},this)}else var u=this.getFoldsInRange(l);return u},this.getAllFolds=function(){for(var l=[],u=this.$foldData,c=0;c<u.length;c++)for(var i=0;i<u[c].folds.length;i++)l.push(u[c].folds[i]);return l},this.getFoldStringAt=function(l,u,c,i){if(i=i||this.getFoldLine(l),!i)return null;for(var s={end:{column:0}},f,b,x=0;x<i.folds.length;x++){b=i.folds[x];var O=b.range.compareEnd(l,u);if(O==-1){f=this.getLine(b.start.row).substring(s.end.column,b.start.column);break}else if(O===0)return null;s=b}return f||(f=this.getLine(b.start.row).substring(s.end.column)),c==-1?f.substring(0,u-s.end.column):c==1?f.substring(u-s.end.column):f},this.getFoldLine=function(l,u){var c=this.$foldData,i=0;for(u&&(i=c.indexOf(u)),i==-1&&(i=0),i;i<c.length;i++){var s=c[i];if(s.start.row<=l&&s.end.row>=l)return s;if(s.end.row>l)return null}return null},this.getNextFoldLine=function(l,u){var c=this.$foldData,i=0;for(u&&(i=c.indexOf(u)),i==-1&&(i=0),i;i<c.length;i++){var s=c[i];if(s.end.row>=l)return s}return null},this.getFoldedRowCount=function(l,u){for(var c=this.$foldData,i=u-l+1,s=0;s<c.length;s++){var f=c[s],b=f.end.row,x=f.start.row;if(b>=u){x<u&&(x>=l?i-=u-x:i=0);break}else b>=l&&(x>=l?i-=b-x:i-=b-l+1)}return i},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(u,c){return u.start.row-c.start.row}),l},this.addFold=function(l,u){var c=this.$foldData,i=!1,s;l instanceof w?s=l:(s=new w(u,l),s.collapseChildren=u.collapseChildren),this.$clipRangeToDocument(s.range);var f=s.start.row,b=s.start.column,x=s.end.row,O=s.end.column,T=this.getFoldAt(f,b,1),_=this.getFoldAt(x,O,-1);if(T&&_==T)return T.addSubFold(s);T&&!T.range.isStart(f,b)&&this.removeFold(T),_&&!_.range.isEnd(x,O)&&this.removeFold(_);var C=this.getFoldsInRange(s.range);C.length>0&&(this.removeFolds(C),s.collapseChildren||C.forEach(function(I){s.addSubFold(I)}));for(var L=0;L<c.length;L++){var F=c[L];if(x==F.start.row){F.addFold(s),i=!0;break}else if(f==F.end.row){if(F.addFold(s),i=!0,!s.sameRow){var E=c[L+1];if(E&&E.start.row==x){F.merge(E);break}}break}else if(x<=F.start.row)break}return i||(F=this.$addFoldLine(new g(this.$foldData,s))),this.$useWrapMode?this.$updateWrapData(F.start.row,F.start.row):this.$updateRowLengthCache(F.start.row,F.start.row),this.$modified=!0,this._signal("changeFold",{data:s,action:"add"}),s},this.addFolds=function(l){l.forEach(function(u){this.addFold(u)},this)},this.removeFold=function(l){var u=l.foldLine,c=u.start.row,i=u.end.row,s=this.$foldData,f=u.folds;if(f.length==1)s.splice(s.indexOf(u),1);else if(u.range.isEnd(l.end.row,l.end.column))f.pop(),u.end.row=f[f.length-1].end.row,u.end.column=f[f.length-1].end.column;else if(u.range.isStart(l.start.row,l.start.column))f.shift(),u.start.row=f[0].start.row,u.start.column=f[0].start.column;else if(l.sameRow)f.splice(f.indexOf(l),1);else{var b=u.split(l.start.row,l.start.column);f=b.folds,f.shift(),b.start.row=f[0].start.row,b.start.column=f[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,i):this.$updateRowLengthCache(c,i)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var u=[],c=0;c<l.length;c++)u.push(l[c]);u.forEach(function(i){this.removeFold(i)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(u){l.restoreRange(u),this.addFold(u)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(u){this.expandFold(u)},this)},this.unfold=function(l,u){var c,i;if(l==null)c=new p(0,0,this.getLength(),0),u==null&&(u=!0);else if(typeof l=="number")c=new p(l,0,l,this.getLine(l).length);else if("row"in l)c=p.fromPoints(l,l);else{if(Array.isArray(l))return i=[],l.forEach(function(f){i=i.concat(this.unfold(f))},this),i;c=l}i=this.getFoldsInRangeList(c);for(var s=i;i.length==1&&p.comparePoints(i[0].start,c.start)<0&&p.comparePoints(i[0].end,c.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(c);if(u!=!1?this.removeFolds(i):this.expandFolds(i),s.length)return s},this.isRowFolded=function(l,u){return!!this.getFoldLine(l,u)},this.getRowFoldEnd=function(l,u){var c=this.getFoldLine(l,u);return c?c.end.row:l},this.getRowFoldStart=function(l,u){var c=this.getFoldLine(l,u);return c?c.start.row:l},this.getFoldDisplayLine=function(l,u,c,i,s){i==null&&(i=l.start.row),s==null&&(s=0),u==null&&(u=l.end.row),c==null&&(c=this.getLine(u).length);var f=this.doc,b="";return l.walk(function(x,O,T,_){if(!(O<i)){if(O==i){if(T<s)return;_=Math.max(s,_)}x!=null?b+=x:b+=f.getLine(O).substring(_,T)}},u,c),b},this.getDisplayLine=function(l,u,c,i){var s=this.getFoldLine(l);if(s)return this.getFoldDisplayLine(s,l,u,c,i);var f;return f=this.doc.getLine(l),f.substring(i||0,u||f.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(u){var c=u.folds.map(function(i){return i.clone()});return new g(l,c)}),l},this.toggleFold=function(l){var u=this.selection,c=u.getRange(),i,s;if(c.isEmpty()){var f=c.start;if(i=this.getFoldAt(f.row,f.column),i){this.expandFold(i);return}else if(l){var b=this.getFoldLine(f.row);b&&this.expandFolds(b.folds);return}else(s=this.findMatchingBracket(f))?c.comparePoint(s)==1?c.end=s:(c.start=s,c.start.column++,c.end.column--):(s=this.findMatchingBracket({row:f.row,column:f.column+1}))?(c.comparePoint(s)==1?c.end=s:c.start=s,c.start.column++):c=this.getCommentFoldRange(f.row,f.column)||c}else{var x=this.getFoldsInRange(c);if(l&&x.length){this.expandFolds(x);return}else x.length==1&&(i=x[0])}if(i||(i=this.getFoldAt(c.start.row,c.start.column)),i&&i.range.toString()==c.toString()){this.expandFold(i);return}var O="...";if(!c.isMultiLine()){if(O=this.getTextRange(c),O.length<4)return;O=O.trim().substring(0,2)+".."}this.addFold(O,c)},this.getCommentFoldRange=function(l,u,c){var i=new h(this,l,u),s=i.getCurrentToken(),f=s&&s.type;if(s&&/^comment|string/.test(f)){f=f.match(/comment|string/)[0],f=="comment"&&(f+="|doc-start|\\.doc");var b=new RegExp(f),x=new p;if(c!=1){do s=i.stepBackward();while(s&&b.test(s.type));s=i.stepForward()}x.start.row=i.getCurrentTokenRow(),x.start.column=i.getCurrentTokenColumn()+s.value.length,i=new h(this,l,u);var O=this.getState(i.$row);if(c!=-1){var T=-1;do if(s=i.stepForward(),T==-1){var _=this.getState(i.$row);O.toString()!==_.toString()&&(T=i.$row)}else if(i.$row>T)break;while(s&&b.test(s.type));s=i.stepBackward()}else s=i.getCurrentToken();return x.end.row=i.getCurrentTokenRow(),x.end.column=i.getCurrentTokenColumn(),x.start.row==x.end.row&&x.start.column>x.end.column?void 0:x}},this.foldAll=function(l,u,c,i){c==null&&(c=1e5);var s=this.foldWidgets;if(s){u=u||this.getLength(),l=l||0;for(var f=l;f<u;f++)if(s[f]==null&&(s[f]=this.getFoldWidget(f)),s[f]=="start"&&!(i&&!i(f))){var b=this.getFoldWidgetRange(f);b&&b.isMultiLine()&&b.end.row<=u&&b.start.row>=l&&(f=b.end.row,b.collapseChildren=c,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(u){for(var c=l.getTokens(u),i=0;i<c.length;i++){var s=c[i];if(!(s.type=="text"&&/^\s+$/.test(s.value)))return!!/comment/.test(s.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var u=this.$foldMode;this.$setFolding(null),this.$setFolding(u)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(l,u){var c=this.foldWidgets;if(!c||u&&c[l])return{};for(var i=l-1,s;i>=0;){var f=c[i];if(f==null&&(f=c[i]=this.getFoldWidget(i)),f=="start"){var b=this.getFoldWidgetRange(i);if(s||(s=b),b&&b.end.row>=l)break}i--}return{range:i!==-1&&b,firstRange:s}},this.onFoldWidgetClick=function(l,u){u instanceof d&&(u=u.domEvent);var c={children:u.shiftKey,all:u.ctrlKey||u.metaKey,siblings:u.altKey},i=this.$toggleFoldWidget(l,c);if(!i){var s=u.target||u.srcElement;s&&/ace_fold-widget/.test(s.className)&&(s.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,u){if(this.getFoldWidget){var c=this.getFoldWidget(l),i=this.getLine(l),s=c==="end"?-1:1,f=this.getFoldAt(l,s===-1?0:i.length,s);if(f)return u.children||u.all?this.removeFold(f):this.expandFold(f),f;var b=this.getFoldWidgetRange(l,!0);if(b&&!b.isMultiLine()&&(f=this.getFoldAt(b.start.row,b.start.column,1),f&&b.isEqual(f.range)))return this.removeFold(f),f;if(u.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var O=x.range.start.row+1,T=x.range.end.row;this.foldAll(O,T,u.all?1e4:0)}else u.children?(T=b?b.end.row:this.getLength(),this.foldAll(l+1,T,u.all?1e4:0)):b&&(u.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var u=this.selection.getCursor().row;u=this.getRowFoldStart(u);var c=this.$toggleFoldWidget(u,{});if(!c){var i=this.getParentFoldRangeData(u,!0);if(c=i.range||i.firstRange,c){u=c.start.row;var s=this.getFoldAt(u,this.getLine(u).length,1);s?this.removeFold(s):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var u=l.start.row,c=l.end.row-u;if(c===0)this.foldWidgets[u]=null;else if(l.action=="remove")this.foldWidgets.splice(u,c+1,null);else{var i=Array(c+1);i.unshift(u,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(l){var u=l.data;u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.first,this.foldWidgets.length)}}r.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,r,v){var p=e("../token_iterator").TokenIterator,g=e("../range").Range;function w(){this.findMatchingBracket=function(h,d){if(h.column==0)return null;var a=d||this.getLine(h.row).charAt(h.column-1);if(a=="")return null;var l=a.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h):null},this.getBracketRange=function(h){var d=this.getLine(h.row),a=!0,l,u=d.charAt(h.column-1),c=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(c||(u=d.charAt(h.column),h={row:h.row,column:h.column+1},c=u&&u.match(/([\(\[\{])|([\)\]\}])/),a=!1),!c)return null;if(c[1]){var i=this.$findClosingBracket(c[1],h);if(!i)return null;l=g.fromPoints(h,i),a||(l.end.column++,l.start.column--),l.cursor=l.end}else{var i=this.$findOpeningBracket(c[2],h);if(!i)return null;l=g.fromPoints(i,h),a||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(h,d){var a=this.getLine(h.row),l=/([\(\[\{])|([\)\]\}])/,u=!d&&a.charAt(h.column-1),c=u&&u.match(l);if(c||(u=(d===void 0||d)&&a.charAt(h.column),h={row:h.row,column:h.column+1},c=u&&u.match(l)),!c)return null;var i=new g(h.row,h.column-1,h.row,h.column),s=c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h);if(!s)return[i];var f=new g(s.row,s.column,s.row,s.column+1);return[i,f]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,d,a){var l=this.$brackets[h],u=1,c=new p(this,d.row,d.column),i=c.getCurrentToken();if(i||(i=c.stepForward()),!!i){a||(a=new RegExp("(\\.?"+i.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var s=d.column-c.getCurrentTokenColumn()-2,f=i.value;;){for(;s>=0;){var b=f.charAt(s);if(b==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:s+c.getCurrentTokenColumn()}}else b==h&&(u+=1);s-=1}do i=c.stepBackward();while(i&&!a.test(i.type));if(i==null)break;f=i.value,s=f.length-1}return null}},this.$findClosingBracket=function(h,d,a){var l=this.$brackets[h],u=1,c=new p(this,d.row,d.column),i=c.getCurrentToken();if(i||(i=c.stepForward()),!!i){a||(a=new RegExp("(\\.?"+i.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var s=d.column-c.getCurrentTokenColumn();;){for(var f=i.value,b=f.length;s<b;){var x=f.charAt(s);if(x==l){if(u-=1,u==0)return{row:c.getCurrentTokenRow(),column:s+c.getCurrentTokenColumn()}}else x==h&&(u+=1);s+=1}do i=c.stepForward();while(i&&!a.test(i.type));if(i==null)break;s=0}return null}},this.getMatchingTags=function(h){var d=new p(this,h.row,h.column),a=this.$findTagName(d);if(a){var l=d.stepBackward();return l.value==="<"?this.$findClosingTag(d,a):this.$findOpeningTag(d,a)}},this.$findTagName=function(h){var d=h.getCurrentToken(),a=!1,l=!1;if(d&&d.type.indexOf("tag-name")===-1)do l?d=h.stepBackward():d=h.stepForward(),d&&(d.value==="/>"?l=!0:d.type.indexOf("tag-name")!==-1&&(a=!0));while(d&&!a);return d},this.$findClosingTag=function(h,d){var a,l=d.value,u=d.value,c=0,i=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);d=h.stepForward();var s=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length),f=!1;do{if(a=d,a.type.indexOf("tag-close")!==-1&&!f){var b=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=!0}if(d=h.stepForward(),d){if(d.value===">"&&!f){var b=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=!0}if(d.type.indexOf("tag-name")!==-1){if(l=d.value,u===l){if(a.value==="<")c++;else if(a.value==="</"&&(c--,c<0)){h.stepBackward();var x=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);d=h.stepForward();var O=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length);if(d.type.indexOf("tag-close")===-1&&(d=h.stepForward()),d&&d.value===">")var T=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(u===l&&d.value==="/>"&&(c--,c<0))var x=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),O=x,T=O,b=new g(s.end.row,s.end.column,s.end.row,s.end.column+1)}}while(d&&c>=0);if(i&&b&&x&&T&&s&&O)return{openTag:new g(i.start.row,i.start.column,b.end.row,b.end.column),closeTag:new g(x.start.row,x.start.column,T.end.row,T.end.column),openTagName:s,closeTagName:O}},this.$findOpeningTag=function(h,d){var a=h.getCurrentToken(),l=d.value,u=0,c=h.getCurrentTokenRow(),i=h.getCurrentTokenColumn(),s=i+2,f=new g(c,i,c,s);h.stepForward();var b=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+d.value.length);if(d.type.indexOf("tag-close")===-1&&(d=h.stepForward()),!(!d||d.value!==">")){var x=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(d=a,c=h.getCurrentTokenRow(),i=h.getCurrentTokenColumn(),s=i+d.value.length,a=h.stepBackward(),d){if(d.type.indexOf("tag-name")!==-1){if(l===d.value)if(a.value==="<"){if(u++,u>0){var O=new g(c,i,c,s),T=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do d=h.stepForward();while(d&&d.value!==">");var _=new g(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else a.value==="</"&&u--}else if(d.value==="/>"){for(var C=0,L=a;L;){if(L.type.indexOf("tag-name")!==-1&&L.value===l){u--;break}else if(L.value==="<")break;L=h.stepBackward(),C++}for(var F=0;F<C;F++)h.stepForward()}}while(a&&u<=0);if(T&&_&&f&&x&&O&&b)return{openTag:new g(T.start.row,T.start.column,_.end.row,_.end.column),closeTag:new g(f.start.row,f.start.column,x.end.row,x.end.column),openTagName:O,closeTagName:b}}}}r.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,r,v){var p=e("./lib/oop"),g=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),d=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,c=e("./line_widgets").LineWidgets,i=e("./document").Document,s=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,b=e("./undomanager").UndoManager,x=(function(){function P(N,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"+ ++P.$uid,this.$foldData.toString=function(){return this.join(`
|
|
191
|
-
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new s(new l().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(R){k._signal("tokenizerUpdate",R)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof N!="object"||!N.getLine)&&(N=new i(N)),this.setDocument(N),this.selection=new a(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 P.prototype.$initOperationListeners=function(){var N=this;this.curOp=null,this.on("change",function(){N.curOp||(N.startOperation(),N.curOp.selectionBefore=N.$lastSel),N.curOp.docChanged=!0},!0),this.on("changeSelection",function(){N.curOp||(N.startOperation(),N.curOp.selectionBefore=N.$lastSel),N.curOp.selectionChanged=!0},!0),this.$operationResetTimer=g.delayedCall(this.endOperation.bind(this,!0))},P.prototype.startOperation=function(N){if(this.curOp){if(!N||this.curOp.command)return;this.prevOp=this.curOp}N||(N={}),this.$operationResetTimer.schedule(),this.curOp={command:N.command||{},args:N.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",N)},P.prototype.endOperation=function(N){if(this.curOp){if(N&&N.returnValue===!1){this.curOp=null,this._signal("endOperation",N);return}if(N==!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",N)}},P.prototype.setDocument=function(N){this.doc&&this.doc.off("change",this.$onChange),this.doc=N,N.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},P.prototype.getDocument=function(){return this.doc},Object.defineProperty(P.prototype,"widgetManager",{get:function(){var N=new c(this);return this.widgetManager=N,this.$editor&&N.attach(this.$editor),N},set:function(N){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:N})},enumerable:!1,configurable:!0}),P.prototype.$resetRowCache=function(N){if(!N){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,k=this.$getRowCacheIndex(this.$docRowCache,N)+1;S>k&&(this.$docRowCache.splice(k,S),this.$screenRowCache.splice(k,S))},P.prototype.$getRowCacheIndex=function(N,S){for(var k=0,R=N.length-1;k<=R;){var B=k+R>>1,U=N[B];if(S>U)k=B+1;else if(S<U)R=B-1;else return B}return k-1},P.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},P.prototype.onChangeFold=function(N){var S=N.data;this.$resetRowCache(S.start.row)},P.prototype.onChange=function(N){this.$modified=!0,this.$bidiHandler.onChange(N),this.$resetRowCache(N.start.row);var S=this.$updateInternalDataOnChange(N);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(N,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(N),this._signal("change",N)},P.prototype.onSelectionChange=function(){this._signal("changeSelection")},P.prototype.setValue=function(N){this.doc.setValue(N),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},P.fromJSON=function(N){typeof N=="string"&&(N=JSON.parse(N));var S=new b;S.$undoStack=N.history.undo,S.$redoStack=N.history.redo,S.mark=N.history.mark,S.$rev=N.history.rev;var k=new P(N.value);return N.folds.forEach(function(R){k.addFold("...",u.fromPoints(R.start,R.end))}),k.setAnnotations(N.annotations),k.setBreakpoints(N.breakpoints),k.setMode(N.mode),k.setScrollLeft(N.scrollLeft),k.setScrollTop(N.scrollTop),k.setUndoManager(S),k.selection.fromJSON(N.selection),k},P.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(N){return N.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},P.prototype.toString=function(){return this.doc.getValue()},P.prototype.getSelection=function(){return this.selection},P.prototype.getState=function(N){return this.bgTokenizer.getState(N)},P.prototype.getTokens=function(N){return this.bgTokenizer.getTokens(N)},P.prototype.getTokenAt=function(N,S){var k=this.bgTokenizer.getTokens(N),R,B=0;if(S==null){var U=k.length-1;B=this.getLine(N).length}else for(var U=0;U<k.length&&(B+=k[U].value.length,!(B>=S));U++);return R=k[U],R?(R.index=U,R.start=B-R.value.length,R):null},P.prototype.setUndoManager=function(N){if(this.$undoManager=N,this.$informUndoManager&&this.$informUndoManager.cancel(),N){var S=this;N.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=g.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},P.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},P.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},P.prototype.getTabString=function(){return this.getUseSoftTabs()?g.stringRepeat(" ",this.getTabSize()):" "},P.prototype.setUseSoftTabs=function(N){this.setOption("useSoftTabs",N)},P.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},P.prototype.setTabSize=function(N){this.setOption("tabSize",N)},P.prototype.getTabSize=function(){return this.$tabSize},P.prototype.isTabStop=function(N){return this.$useSoftTabs&&N.column%this.$tabSize===0},P.prototype.setNavigateWithinSoftTabs=function(N){this.setOption("navigateWithinSoftTabs",N)},P.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},P.prototype.setOverwrite=function(N){this.setOption("overwrite",N)},P.prototype.getOverwrite=function(){return this.$overwrite},P.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},P.prototype.addGutterDecoration=function(N,S){this.$decorations[N]||(this.$decorations[N]=""),this.$decorations[N]+=" "+S,this._signal("changeBreakpoint",{})},P.prototype.removeGutterCustomWidget=function(N){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(N)},P.prototype.addGutterCustomWidget=function(N,S){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(N,S)},P.prototype.removeGutterDecoration=function(N,S){this.$decorations[N]=(this.$decorations[N]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},P.prototype.getBreakpoints=function(){return this.$breakpoints},P.prototype.setBreakpoints=function(N){this.$breakpoints=[];for(var S=0;S<N.length;S++)this.$breakpoints[N[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},P.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},P.prototype.setBreakpoint=function(N,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[N]=S:delete this.$breakpoints[N],this._signal("changeBreakpoint",{})},P.prototype.clearBreakpoint=function(N){delete this.$breakpoints[N],this._signal("changeBreakpoint",{})},P.prototype.addMarker=function(N,S,k,R){var B=this.$markerId++,U={range:N,type:k||"line",renderer:typeof k=="function"?k:null,clazz:S,inFront:!!R,id:B};return R?(this.$frontMarkers[B]=U,this._signal("changeFrontMarker")):(this.$backMarkers[B]=U,this._signal("changeBackMarker")),B},P.prototype.addDynamicMarker=function(N,S){if(N.update){var k=this.$markerId++;return N.id=k,N.inFront=!!S,S?(this.$frontMarkers[k]=N,this._signal("changeFrontMarker")):(this.$backMarkers[k]=N,this._signal("changeBackMarker")),N}},P.prototype.removeMarker=function(N){var S=this.$frontMarkers[N]||this.$backMarkers[N];if(S){var k=S.inFront?this.$frontMarkers:this.$backMarkers;delete k[N],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},P.prototype.getMarkers=function(N){return N?this.$frontMarkers:this.$backMarkers},P.prototype.highlight=function(N){if(!this.$searchHighlight){var S=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(N)},P.prototype.highlightLines=function(N,S,k,R){typeof S!="number"&&(k=S,S=N),k||(k="ace_step");var B=new u(N,0,S,1/0);return B.id=this.addMarker(B,k,"fullLine",R),B},P.prototype.setAnnotations=function(N){this.$annotations=N,this._signal("changeAnnotation",{})},P.prototype.getAnnotations=function(){return this.$annotations||[]},P.prototype.clearAnnotations=function(){this.setAnnotations([])},P.prototype.$detectNewLine=function(N){var S=N.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
|
|
192
|
-
`},P.prototype.getWordRange=function(N,S){var k=this.getLine(N),R=!1;if(S>0&&(R=!!k.charAt(S-1).match(this.tokenRe)),R||(R=!!k.charAt(S).match(this.tokenRe)),R)var B=this.tokenRe;else if(/^\s+$/.test(k.slice(S-1,S+1)))var B=/\s/;else var B=this.nonTokenRe;var U=S;if(U>0){do U--;while(U>=0&&k.charAt(U).match(B));U++}for(var q=S;q<k.length&&k.charAt(q).match(B);)q++;return new u(N,U,N,q)},P.prototype.getAWordRange=function(N,S){for(var k=this.getWordRange(N,S),R=this.getLine(k.end.row);R.charAt(k.end.column).match(/[ \t]/);)k.end.column+=1;return k},P.prototype.setNewLineMode=function(N){this.doc.setNewLineMode(N)},P.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},P.prototype.setUseWorker=function(N){this.setOption("useWorker",N)},P.prototype.getUseWorker=function(){return this.$useWorker},P.prototype.onReloadTokenizer=function(N){var S=N.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",N)},P.prototype.setMode=function(N,S){if(N&&typeof N=="object"){if(N.getTokenizer)return this.$onChangeMode(N);var k=N,R=k.path}else R=N||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[R]&&!k){this.$onChangeMode(this.$modes[R]),S&&S();return}this.$modeId=R,h.loadModule(["mode",R],(function(B){if(!this.destroyed){if(this.$modeId!==R)return S&&S();this.$modes[R]&&!k?this.$onChangeMode(this.$modes[R]):B&&B.Mode&&(B=new B.Mode(k),k||(this.$modes[R]=B,B.$id=R),this.$onChangeMode(B)),S&&S()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},P.prototype.$onChangeMode=function(N,S){if(S||(this.$modeId=N.$id),this.$mode!==N){var k=this.$mode;this.$mode=N,this.$stopWorker(),this.$useWorker&&this.$startWorker();var R=N.getTokenizer();if(R.on!==void 0){var B=this.onReloadTokenizer.bind(this);R.on("update",B)}this.bgTokenizer.setTokenizer(R),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=N.tokenRe,this.nonTokenRe=N.nonTokenRe,S||(N.attachToSession&&N.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(N.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:k,mode:N}))}},P.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},P.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(N){h.warn("Could not load worker",N),this.$worker=null}},P.prototype.getMode=function(){return this.$mode},P.prototype.setScrollTop=function(N){this.$scrollTop===N||isNaN(N)||(this.$scrollTop=N,this._signal("changeScrollTop",N))},P.prototype.getScrollTop=function(){return this.$scrollTop},P.prototype.setScrollLeft=function(N){this.$scrollLeft===N||isNaN(N)||(this.$scrollLeft=N,this._signal("changeScrollLeft",N))},P.prototype.getScrollLeft=function(){return this.$scrollLeft},P.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},P.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var N=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>N&&(N=S.screenWidth)}),this.lineWidgetWidth=N},P.prototype.$computeWidth=function(N){if(this.$modified||N){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),k=this.$rowLengthCache,R=0,B=0,U=this.$foldData[B],q=U?U.start.row:1/0,Q=S.length,J=0;J<Q;J++){if(J>q){if(J=U.end.row+1,J>=Q)break;U=this.$foldData[B++],q=U?U.start.row:1/0}k[J]==null&&(k[J]=this.$getStringScreenWidth(S[J])[0]),k[J]>R&&(R=k[J])}this.screenWidth=R}},P.prototype.getLine=function(N){return this.doc.getLine(N)},P.prototype.getLines=function(N,S){return this.doc.getLines(N,S)},P.prototype.getLength=function(){return this.doc.getLength()},P.prototype.getTextRange=function(N){return this.doc.getTextRange(N||this.selection.getRange())},P.prototype.insert=function(N,S){return this.doc.insert(N,S)},P.prototype.remove=function(N){return this.doc.remove(N)},P.prototype.removeFullLines=function(N,S){return this.doc.removeFullLines(N,S)},P.prototype.undoChanges=function(N,S){if(N.length){this.$fromUndo=!0;for(var k=N.length-1;k!=-1;k--){var R=N[k];R.action=="insert"||R.action=="remove"?this.doc.revertDelta(R):R.folds&&this.addFolds(R.folds)}!S&&this.$undoSelect&&(N.selectionBefore?this.selection.fromJSON(N.selectionBefore):this.selection.setRange(this.$getUndoSelection(N,!0))),this.$fromUndo=!1}},P.prototype.redoChanges=function(N,S){if(N.length){this.$fromUndo=!0;for(var k=0;k<N.length;k++){var R=N[k];(R.action=="insert"||R.action=="remove")&&this.doc.$safeApplyDelta(R)}!S&&this.$undoSelect&&(N.selectionAfter?this.selection.fromJSON(N.selectionAfter):this.selection.setRange(this.$getUndoSelection(N,!1))),this.$fromUndo=!1}},P.prototype.setUndoSelect=function(N){this.$undoSelect=N},P.prototype.$getUndoSelection=function(N,S){function k(Q){return S?Q.action!=="insert":Q.action==="insert"}for(var R,B,U=0;U<N.length;U++){var q=N[U];if(q.start){if(!R){k(q)?R=u.fromPoints(q.start,q.end):R=u.fromPoints(q.start,q.start);continue}k(q)?(B=q.start,R.compare(B.row,B.column)==-1&&R.setStart(B),B=q.end,R.compare(B.row,B.column)==1&&R.setEnd(B)):(B=q.start,R.compare(B.row,B.column)==-1&&(R=u.fromPoints(q.start,q.start)))}}return R},P.prototype.replace=function(N,S){return this.doc.replace(N,S)},P.prototype.moveText=function(N,S,k){var R=this.getTextRange(N),B=this.getFoldsInRange(N),U=u.fromPoints(S,S);if(!k){this.remove(N);var q=N.start.row-N.end.row,Q=q?-N.end.column:N.start.column-N.end.column;Q&&(U.start.row==N.end.row&&U.start.column>N.end.column&&(U.start.column+=Q),U.end.row==N.end.row&&U.end.column>N.end.column&&(U.end.column+=Q)),q&&U.start.row>=N.end.row&&(U.start.row+=q,U.end.row+=q)}if(U.end=this.insert(U.start,R),B.length){var J=N.start,he=U.start,q=he.row-J.row,Q=he.column-J.column;this.addFolds(B.map(function(se){return se=se.clone(),se.start.row==J.row&&(se.start.column+=Q),se.end.row==J.row&&(se.end.column+=Q),se.start.row+=q,se.end.row+=q,se}))}return U},P.prototype.indentRows=function(N,S,k){k=k.replace(/\t/g,this.getTabString());for(var R=N;R<=S;R++)this.doc.insertInLine({row:R,column:0},k)},P.prototype.outdentRows=function(N){for(var S=N.collapseRows(),k=new u(0,0,0,0),R=this.getTabSize(),B=S.start.row;B<=S.end.row;++B){var U=this.getLine(B);k.start.row=B,k.end.row=B;for(var q=0;q<R&&U.charAt(q)==" ";++q);q<R&&U.charAt(q)==" "?(k.start.column=q,k.end.column=q+1):(k.start.column=0,k.end.column=q),this.remove(k)}},P.prototype.$moveLines=function(N,S,k){if(N=this.getRowFoldStart(N),S=this.getRowFoldEnd(S),k<0){var R=this.getRowFoldStart(N+k);if(R<0)return 0;var B=R-N}else if(k>0){var R=this.getRowFoldEnd(S+k);if(R>this.doc.getLength()-1)return 0;var B=R-S}else{N=this.$clipRowToDocument(N),S=this.$clipRowToDocument(S);var B=S-N+1}var U=new u(N,0,S,Number.MAX_VALUE),q=this.getFoldsInRange(U).map(function(J){return J=J.clone(),J.start.row+=B,J.end.row+=B,J}),Q=k==0?this.doc.getLines(N,S):this.doc.removeFullLines(N,S);return this.doc.insertFullLines(N+B,Q),q.length&&this.addFolds(q),B},P.prototype.moveLinesUp=function(N,S){return this.$moveLines(N,S,-1)},P.prototype.moveLinesDown=function(N,S){return this.$moveLines(N,S,1)},P.prototype.duplicateLines=function(N,S){return this.$moveLines(N,S,0)},P.prototype.$clipRowToDocument=function(N){return Math.max(0,Math.min(N,this.doc.getLength()-1))},P.prototype.$clipColumnToRow=function(N,S){return S<0?0:Math.min(this.doc.getLine(N).length,S)},P.prototype.$clipPositionToDocument=function(N,S){if(S=Math.max(0,S),N<0)N=0,S=0;else{var k=this.doc.getLength();N>=k?(N=k-1,S=this.doc.getLine(k-1).length):S=Math.min(this.doc.getLine(N).length,S)}return{row:N,column:S}},P.prototype.$clipRangeToDocument=function(N){N.start.row<0?(N.start.row=0,N.start.column=0):N.start.column=this.$clipColumnToRow(N.start.row,N.start.column);var S=this.doc.getLength()-1;return N.end.row>S?(N.end.row=S,N.end.column=this.doc.getLine(S).length):N.end.column=this.$clipColumnToRow(N.end.row,N.end.column),N},P.prototype.setUseWrapMode=function(N){if(N!=this.$useWrapMode){if(this.$useWrapMode=N,this.$modified=!0,this.$resetRowCache(0),N){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},P.prototype.getUseWrapMode=function(){return this.$useWrapMode},P.prototype.setWrapLimitRange=function(N,S){(this.$wrapLimitRange.min!==N||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:N,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},P.prototype.adjustWrapLimit=function(N,S){var k=this.$wrapLimitRange;k.max<0&&(k={min:S,max:S});var R=this.$constrainWrapLimit(N,k.min,k.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},P.prototype.$constrainWrapLimit=function(N,S,k){return S&&(N=Math.max(S,N)),k&&(N=Math.min(k,N)),N},P.prototype.getWrapLimit=function(){return this.$wrapLimit},P.prototype.setWrapLimit=function(N){this.setWrapLimitRange(N,N)},P.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},P.prototype.$updateInternalDataOnChange=function(N){var S=this.$useWrapMode,k=N.action,R=N.start,B=N.end,U=R.row,q=B.row,Q=q-U,J=null;if(this.$updating=!0,Q!=0)if(k==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(U,Q);var he=this.$foldData;J=this.getFoldsInRange(N),this.removeFolds(J);var ne=this.getFoldLine(B.row),ce=0;if(ne){ne.addRemoveChars(B.row,B.column,R.column-B.column),ne.shiftRow(-Q);var se=this.getFoldLine(U);se&&se!==ne&&(se.merge(ne),ne=se),ce=he.indexOf(ne)+1}for(ce;ce<he.length;ce++){var ne=he[ce];ne.start.row>=B.row&&ne.shiftRow(-Q)}q=U}else{var de=Array(Q);de.unshift(U,0);var me=S?this.$wrapData:this.$rowLengthCache;me.splice.apply(me,de);var he=this.$foldData,ne=this.getFoldLine(U),ce=0;if(ne){var Se=ne.range.compareInside(R.row,R.column);Se==0?(ne=ne.split(R.row,R.column),ne&&(ne.shiftRow(Q),ne.addRemoveChars(q,0,B.column-R.column))):Se==-1&&(ne.addRemoveChars(U,0,B.column-R.column),ne.shiftRow(Q)),ce=he.indexOf(ne)+1}for(ce;ce<he.length;ce++){var ne=he[ce];ne.start.row>=U&&ne.shiftRow(Q)}}else{Q=Math.abs(N.start.column-N.end.column),k==="remove"&&(J=this.getFoldsInRange(N),this.removeFolds(J),Q=-Q);var ne=this.getFoldLine(U);ne&&ne.addRemoveChars(U,R.column,Q)}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(U,q):this.$updateRowLengthCache(U,q),J},P.prototype.$updateRowLengthCache=function(N,S){this.$rowLengthCache[N]=null,this.$rowLengthCache[S]=null},P.prototype.$updateWrapData=function(N,S){var k=this.doc.getAllLines(),R=this.getTabSize(),B=this.$wrapData,U=this.$wrapLimit,q,Q,J=N;for(S=Math.min(S,k.length-1);J<=S;)Q=this.getFoldLine(J,Q),Q?(q=[],Q.walk((function(he,ne,ce,se){var de;if(he!=null){de=this.$getDisplayTokens(he,q.length),de[0]=_;for(var me=1;me<de.length;me++)de[me]=C}else de=this.$getDisplayTokens(k[ne].substring(se,ce),q.length);q=q.concat(de)}).bind(this),Q.end.row,k[Q.end.row].length+1),B[Q.start.row]=this.$computeWrapSplits(q,U,R),J=Q.end.row+1):(q=this.$getDisplayTokens(k[J]),B[J]=this.$computeWrapSplits(q,U,R),J++)},P.prototype.$computeWrapSplits=function(N,S,k){if(N.length==0)return[];var R=[],B=N.length,U=0,q=0,Q=this.$wrapAsCode,J=this.$indentedSoftWrap,he=S<=Math.max(2*k,8)||J===!1?0:Math.floor(S/2);function ne(){var Se=0;if(he===0)return Se;if(J)for(var Te=0;Te<N.length;Te++){var Me=N[Te];if(Me==F)Se+=1;else if(Me==E)Se+=k;else{if(Me==I)continue;break}}return Q&&J!==!1&&(Se+=k),Math.min(Se,he)}function ce(Se){for(var Te=Se-U,Me=U;Me<Se;Me++){var Xe=N[Me];(Xe===12||Xe===2)&&(Te-=1)}R.length||(se=ne(),R.indent=se),q+=Te,R.push(q),U=Se}for(var se=0;B-U>S-se;){var de=U+S-se;if(N[de-1]>=F&&N[de]>=F){ce(de);continue}if(N[de]==_||N[de]==C){for(de;de!=U-1&&N[de]!=_;de--);if(de>U){ce(de);continue}for(de=U+S,de;de<N.length&&N[de]==C;de++);if(de==N.length)break;ce(de);continue}for(var me=Math.max(de-(S-(S>>2)),U-1);de>me&&N[de]<_;)de--;if(Q){for(;de>me&&N[de]<_;)de--;for(;de>me&&N[de]==L;)de--}else for(;de>me&&N[de]<F;)de--;if(de>me){ce(++de);continue}de=U+S,N[de]==T&&de--,ce(de-se)}return R},P.prototype.$getDisplayTokens=function(N,S){var k=[],R;S=S||0;for(var B=0;B<N.length;B++){var U=N.charCodeAt(B);if(U==9){R=this.getScreenTabSize(k.length+S),k.push(E);for(var q=1;q<R;q++)k.push(I)}else U==32?k.push(F):U>39&&U<48||U>57&&U<64?k.push(L):U>=4352&&z(U)?k.push(O,T):k.push(O)}return k},P.prototype.$getStringScreenWidth=function(N,S,k){if(S==0)return[0,0];S==null&&(S=1/0),k=k||0;var R,B;for(B=0;B<N.length&&(R=N.charCodeAt(B),R==9?k+=this.getScreenTabSize(k):R>=4352&&z(R)?k+=2:k+=1,!(k>S));B++);return[k,B]},P.prototype.getRowLength=function(N){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[N]&&this.lineWidgets[N].rowCount||0),!this.$useWrapMode||!this.$wrapData[N]?S:this.$wrapData[N].length+S},P.prototype.getRowLineCount=function(N){return!this.$useWrapMode||!this.$wrapData[N]?1:this.$wrapData[N].length+1},P.prototype.getRowWrapIndent=function(N){if(this.$useWrapMode){var S=this.screenToDocumentPosition(N,Number.MAX_VALUE),k=this.$wrapData[S.row];return k.length&&k[0]<S.column?k.indent:0}else return 0},P.prototype.getScreenLastRowColumn=function(N){var S=this.screenToDocumentPosition(N,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},P.prototype.getDocumentLastRowColumn=function(N,S){var k=this.documentToScreenRow(N,S);return this.getScreenLastRowColumn(k)},P.prototype.getDocumentLastRowColumnPosition=function(N,S){var k=this.documentToScreenRow(N,S);return this.screenToDocumentPosition(k,Number.MAX_VALUE/10)},P.prototype.getRowSplitData=function(N){if(this.$useWrapMode)return this.$wrapData[N]},P.prototype.getScreenTabSize=function(N){return this.$tabSize-(N%this.$tabSize|0)},P.prototype.screenToDocumentRow=function(N,S){return this.screenToDocumentPosition(N,S).row},P.prototype.screenToDocumentColumn=function(N,S){return this.screenToDocumentPosition(N,S).column},P.prototype.screenToDocumentPosition=function(N,S,k){if(N<0)return{row:0,column:0};var R,ce=0,B=0,U,ne=0,q=0,Q=this.$screenRowCache,J=this.$getRowCacheIndex(Q,N),he=Q.length;if(he&&J>=0)var ne=Q[J],ce=this.$docRowCache[J],se=N>Q[he-1];else var se=!he;for(var de=this.getLength()-1,me=this.getNextFoldLine(ce),Se=me?me.start.row:1/0;ne<=N&&(q=this.getRowLength(ce),!(ne+q>N||ce>=de));)ne+=q,ce++,ce>Se&&(ce=me.end.row+1,me=this.getNextFoldLine(ce,me),Se=me?me.start.row:1/0),se&&(this.$docRowCache.push(ce),this.$screenRowCache.push(ne));if(me&&me.start.row<=ce)R=this.getFoldDisplayLine(me),ce=me.start.row;else{if(ne+q<=N||ce>de)return{row:de,column:this.getLine(de).length};R=this.getLine(ce),me=null}var Te=0,Me=Math.floor(N-ne);if(this.$useWrapMode){var Xe=this.$wrapData[ce];Xe&&(U=Xe[Me],Me>0&&Xe.length&&(Te=Xe.indent,B=Xe[Me-1]||Xe[Xe.length-1],R=R.substring(B)))}return k!==void 0&&this.$bidiHandler.isBidiRow(ne+Me,ce,Me)&&(S=this.$bidiHandler.offsetToCol(k)),B+=this.$getStringScreenWidth(R,S-Te)[1],this.$useWrapMode&&B>=U&&(B=U-1),me?me.idxToPosition(B):{row:ce,column:B}},P.prototype.documentToScreenPosition=function(N,S){if(typeof S>"u")var k=this.$clipPositionToDocument(N.row,N.column);else k=this.$clipPositionToDocument(N,S);N=k.row,S=k.column;var ne=0,R=null,B=null;B=this.getFoldAt(N,S,1),B&&(N=B.start.row,S=B.start.column);var U,he=0,q=this.$docRowCache,Q=this.$getRowCacheIndex(q,N),J=q.length;if(J&&Q>=0)var he=q[Q],ne=this.$screenRowCache[Q],ce=N>q[J-1];else var ce=!J;for(var se=this.getNextFoldLine(he),de=se?se.start.row:1/0;he<N;){if(he>=de){if(U=se.end.row+1,U>N)break;se=this.getNextFoldLine(U,se),de=se?se.start.row:1/0}else U=he+1;ne+=this.getRowLength(he),he=U,ce&&(this.$docRowCache.push(he),this.$screenRowCache.push(ne))}var me="";se&&he>=de?(me=this.getFoldDisplayLine(se,N,S),R=se.start.row):(me=this.getLine(N).substring(0,S),R=N);var Se=0;if(this.$useWrapMode){var Te=this.$wrapData[R];if(Te){for(var Me=0;me.length>=Te[Me];)ne++,Me++;me=me.substring(Te[Me-1]||0,me.length),Se=Me>0?Te.indent:0}}return this.lineWidgets&&this.lineWidgets[he]&&this.lineWidgets[he].rowsAbove&&(ne+=this.lineWidgets[he].rowsAbove),{row:ne,column:Se+this.$getStringScreenWidth(me)[0]}},P.prototype.documentToScreenColumn=function(N,S){return this.documentToScreenPosition(N,S).column},P.prototype.documentToScreenRow=function(N,S){return this.documentToScreenPosition(N,S).row},P.prototype.getScreenLength=function(){var N=0,S=null;if(this.$useWrapMode)for(var k=this.$wrapData.length,R=0,B=0,S=this.$foldData[B++],U=S?S.start.row:1/0;R<k;){var q=this.$wrapData[R];N+=q?q.length+1:1,R++,R>U&&(R=S.end.row+1,S=this.$foldData[B++],U=S?S.start.row:1/0)}else{N=this.getLength();for(var Q=this.$foldData,B=0;B<Q.length;B++)S=Q[B],N-=S.end.row-S.start.row}return this.lineWidgets&&(N+=this.$getWidgetScreenLength()),N},P.prototype.$setFontMetrics=function(N){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,k,R){if(k===0)return[0,0];k||(k=1/0),R=R||0;var B,U;for(U=0;U<S.length&&(B=S.charAt(U),B===" "?R+=this.getScreenTabSize(R):R+=N.getCharacterWidth(B),!(R>k));U++);return[R,U]})},P.prototype.getPrecedingCharacter=function(){var N=this.selection.getCursor();if(N.column===0)return N.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine(N.row);return S[N.column-1]},P.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()},P})();x.$uid=0,x.prototype.$modes=h.$modes,x.prototype.getValue=x.prototype.toString,x.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},x.prototype.$overwrite=!1,x.prototype.$mode=null,x.prototype.$modeId=null,x.prototype.$scrollTop=0,x.prototype.$scrollLeft=0,x.prototype.$wrapLimit=80,x.prototype.$useWrapMode=!1,x.prototype.$wrapLimitRange={min:null,max:null},x.prototype.lineWidgets=null,x.prototype.isFullWidth=z,p.implement(x.prototype,d);var O=1,T=2,_=3,C=4,L=9,F=10,E=11,I=12;function z(P){return P<4352?!1:P>=4352&&P<=4447||P>=4515&&P<=4519||P>=4602&&P<=4607||P>=9001&&P<=9002||P>=11904&&P<=11929||P>=11931&&P<=12019||P>=12032&&P<=12245||P>=12272&&P<=12283||P>=12288&&P<=12350||P>=12353&&P<=12438||P>=12441&&P<=12543||P>=12549&&P<=12589||P>=12593&&P<=12686||P>=12688&&P<=12730||P>=12736&&P<=12771||P>=12784&&P<=12830||P>=12832&&P<=12871||P>=12880&&P<=13054||P>=13056&&P<=19903||P>=19968&&P<=42124||P>=42128&&P<=42182||P>=43360&&P<=43388||P>=44032&&P<=55203||P>=55216&&P<=55238||P>=55243&&P<=55291||P>=63744&&P<=64255||P>=65040&&P<=65049||P>=65072&&P<=65106||P>=65108&&P<=65126||P>=65128&&P<=65131||P>=65281&&P<=65376||P>=65504&&P<=65510}e("./edit_session/folding").Folding.call(x.prototype),e("./edit_session/bracket_match").BracketMatch.call(x.prototype),h.defineOptions(x.prototype,"session",{wrap:{set:function(P){if(!P||P=="off"?P=!1:P=="free"?P=!0:P=="printMargin"?P=-1:typeof P=="string"&&(P=parseInt(P,10)||!1),this.$wrap!=P)if(this.$wrap=P,!P)this.setUseWrapMode(!1);else{var N=typeof P=="number"?P:null;this.setWrapLimitRange(N,N),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(P){P=P=="auto"?this.$mode.type!="text":P!="text",P!=this.$wrapAsCode&&(this.$wrapAsCode=P,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(P){this.$useWorker=P,this.$stopWorker(),P&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(P){P=parseInt(P),P>0&&this.$tabSize!==P&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=P,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(P){this.setFoldStyle(P)},handlesSet:!0},overwrite:{set:function(P){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(P){this.doc.setNewLineMode(P)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(P){this.setMode(P)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,r,v){var p=e("./lib/lang"),g=e("./lib/oop"),w=e("./range").Range,h=(function(){function u(){this.$options={}}return u.prototype.set=function(c){return g.mixin(this.$options,c),this},u.prototype.getOptions=function(){return p.copyObject(this.$options)},u.prototype.setOptions=function(c){this.$options=c},u.prototype.find=function(c){var i=this.$options,s=this.$matchIterator(c,i);if(!s)return!1;var f=null;return s.forEach(function(b,x,O,T){return f=new w(b,x,O,T),x==T&&i.start&&i.start.start&&i.skipCurrent!=!1&&f.isEqual(i.start)?(f=null,!1):!0}),f},u.prototype.findAll=function(c){var i=this.$options;if(!i.needle)return[];this.$assembleRegExp(i);var s=i.range,f=s?c.getLines(s.start.row,s.end.row):c.doc.getAllLines(),b=[],x=i.re;if(i.$isMultiLine){var O=x.length,T=f.length-O,_;e:for(var C=x.offset||0;C<=T;C++){for(var L=0;L<O;L++)if(f[C+L].search(x[L])==-1)continue e;var F=f[C],E=f[C+O-1],I=F.length-F.match(x[0])[0].length,z=E.match(x[O-1])[0].length;_&&_.end.row===C&&_.end.column>I||(b.push(_=new w(C,I,C+O-1,z)),O>2&&(C=C+O-2))}}else for(var P,N=0;N<f.length;N++)if(this.$isMultilineSearch(i)){var S=f.length-1;if(P=this.$multiLineForward(c,x,N,S),P){var k=P.endRow<=S?P.endRow-1:S;k>N&&(N=k),b.push(new w(P.startRow,P.startCol,P.endRow,P.endCol))}}else{P=p.getMatchOffsets(f[N],x);for(var L=0;L<P.length;L++){var R=P[L];b.push(new w(N,R.offset,N,R.offset+R.length))}}if(s){for(var B=s.start.column,U=s.end.column,N=0,L=b.length-1;N<L&&b[N].start.column<B&&b[N].start.row==0;)N++;for(var q=s.end.row-s.start.row;N<L&&b[L].end.column>U&&b[L].end.row==q;)L--;for(b=b.slice(N,L+1),N=0,L=b.length;N<L;N++)b[N].start.row+=s.start.row,b[N].end.row+=s.start.row}return b},u.prototype.parseReplaceString=function(c){for(var i={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},s="",f=0,b=c.length;f<b;f++){var x=c.charCodeAt(f);if(x===i.Backslash){if(f++,f>=b){s+="\\";break}var O=c.charCodeAt(f);switch(O){case i.Backslash:s+="\\";break;case i.n:s+=`
|
|
193
|
-
`;break;case i.t:s+=" ";break}continue}if(x===i.DollarSign){if(f++,f>=b){s+="$";break}var T=c.charCodeAt(f);if(T===i.DollarSign){s+="$$";continue}if(T===i.Digit0||T===i.Ampersand){s+="$&";continue}if(i.Digit1<=T&&T<=i.Digit9){s+="$"+c[f];continue}}s+=c[f]}return s||c},u.prototype.replace=function(c,i){var s=this.$options,f=this.$assembleRegExp(s);if(s.$isMultiLine)return i;if(f){var b=this.$isMultilineSearch(s);b&&(c=c.replace(/\r\n|\r|\n/g,`
|
|
194
|
-
`));var x=f.exec(c);if(!x||!b&&x[0].length!=c.length)return null;if(i=s.regExp?this.parseReplaceString(i):i.replace(/\$/g,"$$$$"),i=c.replace(f,i),s.preserveCase){i=i.split("");for(var O=Math.min(c.length,c.length);O--;){var T=c[O];T&&T.toLowerCase()!=T?i[O]=i[O].toUpperCase():i[O]=i[O].toLowerCase()}i=i.join("")}return i}},u.prototype.$assembleRegExp=function(c,i){if(c.needle instanceof RegExp)return c.re=c.needle;var s=c.needle;if(!c.needle)return c.re=!1;c.regExp||(s=p.escapeRegExp(s));var f=c.caseSensitive?"gm":"gmi";try{new RegExp(s,"u"),c.$supportsUnicodeFlag=!0,f+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(s=d(s,c)),c.$isMultiLine=!i&&/[\n\r]/.test(s),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(s,f);try{var b=new RegExp(s,f)}catch{b=!1}return c.re=b},u.prototype.$assembleMultilineRegExp=function(c,i){for(var s=c.replace(/\r\n|\r|\n/g,`$
|
|
195
|
-
^`).split(`
|
|
196
|
-
`),f=[],b=0;b<s.length;b++)try{f.push(new RegExp(s[b],i))}catch{return!1}return f},u.prototype.$isMultilineSearch=function(c){return c.re&&/\\r\\n|\\r|\\n/.test(c.re.source)&&c.regExp&&!c.$isMultiLine},u.prototype.$multiLineForward=function(c,i,s,f){for(var b,x=l(c,s),O=s;O<=f;){for(var T=0;T<x&&!(O>f);T++){var _=c.getLine(O++);b=b==null?_:b+`
|
|
197
|
-
`+_}var C=i.exec(b);if(i.lastIndex=0,C){var L=b.slice(0,C.index).split(`
|
|
198
|
-
`),F=C[0].split(`
|
|
199
|
-
`),E=s+L.length-1,I=L[L.length-1].length,z=E+F.length-1,P=F.length==1?I+F[0].length:F[F.length-1].length;return{startRow:E,startCol:I,endRow:z,endCol:P}}}return null},u.prototype.$multiLineBackward=function(c,i,s,f,b){for(var x,O=l(c,f),T=c.getLine(f).length-s,_=f;_>=b;){for(var C=0;C<O&&_>=b;C++){var L=c.getLine(_--);x=x==null?L:L+`
|
|
200
|
-
`+x}var F=a(x,i,T);if(F){var E=x.slice(0,F.index).split(`
|
|
201
|
-
`),I=F[0].split(`
|
|
202
|
-
`),z=_+E.length,P=E[E.length-1].length,N=z+I.length-1,S=I.length==1?P+I[0].length:I[I.length-1].length;return{startRow:z,startCol:P,endRow:N,endCol:S}}}return null},u.prototype.$matchIterator=function(c,i){var s=this.$assembleRegExp(i);if(!s)return!1;var f=this.$isMultilineSearch(i),b=this.$multiLineForward,x=this.$multiLineBackward,O=i.backwards==!0,T=i.skipCurrent!=!1,_=s.unicode,C=i.range,L=i.start;L||(L=C?C[O?"end":"start"]:c.selection.getRange()),L.start&&(L=L[T!=O?"end":"start"]);var F=C?C.start.row:0,E=C?C.end.row:c.getLength()-1;if(O)var I=function(N){var S=L.row;if(!P(S,L.column,N)){for(S--;S>=F;S--)if(P(S,Number.MAX_VALUE,N))return;if(i.wrap!=!1){for(S=E,F=L.row;S>=F;S--)if(P(S,Number.MAX_VALUE,N))return}}};else var I=function(N){var S=L.row;if(!P(S,L.column,N)){for(S=S+1;S<=E;S++)if(P(S,0,N))return;if(i.wrap!=!1){for(S=F,E=L.row;S<=E;S++)if(P(S,0,N))return}}};if(i.$isMultiLine)var z=s.length,P=function(N,S,k){var R=O?N-z+1:N;if(!(R<0||R+z>c.getLength())){var B=c.getLine(R),U=B.search(s[0]);if(!(!O&&U<S||U===-1)){for(var q=1;q<z;q++)if(B=c.getLine(R+q),B.search(s[q])==-1)return;var Q=B.match(s[z-1])[0].length;if(!(O&&Q>S)&&k(R,U,R+z-1,Q))return!0}}};else if(O)var P=function(N,S,k){if(f){var R=x(c,s,S,N,F);if(!R)return!1;if(k(R.startRow,R.startCol,R.endRow,R.endCol))return!0}else{var B=c.getLine(N),U=[],q,Q=0;for(s.lastIndex=0;q=s.exec(B);){var J=q[0].length;if(Q=q.index,!J){if(Q>=B.length)break;s.lastIndex=Q+=p.skipEmptyMatch(B,Q,_)}if(q.index+J>S)break;U.push(q.index,J)}for(var he=U.length-1;he>=0;he-=2){var ne=U[he-1],J=U[he];if(k(N,ne,N,ne+J))return!0}}};else var P=function(N,S,k){if(s.lastIndex=S,f){var R=b(c,s,N,E);if(R){var B=R.endRow<=E?R.endRow-1:E;B>N&&(N=B)}if(!R)return!1;if(k(R.startRow,R.startCol,R.endRow,R.endCol))return!0}else for(var U=c.getLine(N),q,Q;Q=s.exec(U);){var J=Q[0].length;if(q=Q.index,k(N,q,N,q+J))return!0;if(!J&&(s.lastIndex=q+=p.skipEmptyMatch(U,q,_),q>=U.length))return!1}};return{forEach:I}},u})();function d(u,c){var i=p.supportsLookbehind();function s(O,T){T===void 0&&(T=!0);var _=i&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return _.test(O)||c.regExp?i&&c.$supportsUnicodeFlag?T?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(u),b=f[0],x=f[f.length-1];return s(b)+u+s(x,!1)}function a(u,c,i){for(var s=null,f=0;f<=u.length;){c.lastIndex=f;var b=c.exec(u);if(!b)break;var x=b.index+b[0].length;if(x>u.length-i)break;(!s||x>s.index+s[0].length)&&(s=b),f=b.index+1}return s}function l(u,c){var i=5e3,s={row:c,column:0},f=u.doc.positionToIndex(s),b=f+i,x=u.doc.indexToPosition(b),O=x.row;return O+1}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,v){var p=this&&this.__extends||(function(){var u=function(c,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,f){s.__proto__=f}||function(s,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(s[b]=f[b])},u(c,i)};return function(c,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");u(c,i);function s(){this.constructor=c}c.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})(),g=e("../lib/keys"),w=e("../lib/useragent"),h=g.KEY_MODS,d=(function(){function u(c,i){this.$init(c,i,!1)}return u.prototype.$init=function(c,i,s){this.platform=i||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=s},u.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},u.prototype.removeCommand=function(c,i){var s=c&&(typeof c=="string"?c:c.name);c=this.commands[s],i||delete this.commands[s];var f=this.commandKeyBinding;for(var b in f){var x=f[b];if(x==c)delete f[b];else if(Array.isArray(x)){var O=x.indexOf(c);O!=-1&&(x.splice(O,1),x.length==1&&(f[b]=x[0]))}}},u.prototype.bindKey=function(c,i,s){if(typeof c=="object"&&c&&(s==null&&(s=c.position),c=c[this.platform]),!!c){if(typeof i=="function")return this.addCommand({exec:i,bindKey:c,name:i.name||c});c.split("|").forEach(function(f){var b="";if(f.indexOf(" ")!=-1){var x=f.split(/\s+/);f=x.pop(),x.forEach(function(_){var C=this.parseKeys(_),L=h[C.hashId]+C.key;b+=(b?" ":"")+L,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var O=this.parseKeys(f),T=h[O.hashId]+O.key;this._addCommandToBinding(b+T,i,s)},this)}},u.prototype._addCommandToBinding=function(c,i,s){var f=this.commandKeyBinding,b;if(!i)delete f[c];else if(!f[c]||this.$singleCommand)f[c]=i;else{Array.isArray(f[c])?(b=f[c].indexOf(i))!=-1&&f[c].splice(b,1):f[c]=[f[c]],typeof s!="number"&&(s=a(i));var x=f[c];for(b=0;b<x.length;b++){var O=x[b],T=a(O);if(T>s)break}x.splice(b,0,i)}},u.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(i){var s=c[i];if(s){if(typeof s=="string")return this.bindKey(s,i);typeof s=="function"&&(s={exec:s}),typeof s=="object"&&(s.name||(s.name=i),this.addCommand(s))}},this)},u.prototype.removeCommands=function(c){Object.keys(c).forEach(function(i){this.removeCommand(c[i])},this)},u.prototype.bindKeys=function(c){Object.keys(c).forEach(function(i){this.bindKey(i,c[i])},this)},u.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},u.prototype.parseKeys=function(c){var i=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(T){return T}),s=i.pop(),f=g[s];if(g.FUNCTION_KEYS[f])s=g.FUNCTION_KEYS[f].toLowerCase();else if(i.length){if(i.length==1&&i[0]=="shift")return{key:s.toUpperCase(),hashId:-1}}else return{key:s,hashId:-1};for(var b=0,x=i.length;x--;){var O=g.KEY_MODS[i[x]];if(O==null)return typeof console<"u"&&console.error("invalid modifier "+i[x]+" in "+c),!1;b|=O}return{key:s,hashId:b}},u.prototype.findKeyCommand=function(c,i){var s=h[c]+i;return this.commandKeyBinding[s]},u.prototype.handleKeyboard=function(c,i,s,f){if(!(f<0)){var b=h[i]+s,x=this.commandKeyBinding[b];return c.$keyChain&&(c.$keyChain+=" "+b,x=this.commandKeyBinding[c.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||b,{command:"null"}):(c.$keyChain&&((!i||i==4)&&s.length==1?c.$keyChain=c.$keyChain.slice(0,-b.length-1):(i==-1||f>0)&&(c.$keyChain="")),{command:x})}},u.prototype.getStatusText=function(c,i){return i.$keyChain||""},u})();function a(u){return typeof u=="object"&&u.bindKey&&u.bindKey.position||(u.isDefault?-100:0)}var l=(function(u){p(c,u);function c(i,s){var f=u.call(this,i,s)||this;return f.$singleCommand=!0,f}return c})(d);l.call=function(u,c,i){d.prototype.$init.call(u,c,i,!0)},d.call=function(u,c,i){d.prototype.$init.call(u,c,i,!1)},r.HashHandler=l,r.MultiHashHandler=d}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,r,v){var p=this&&this.__extends||(function(){var a=function(l,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(c[s]=i[s])},a(l,u)};return function(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(l,u);function c(){this.constructor=l}l.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}})(),g=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,d=(function(a){p(l,a);function l(u,c){var i=a.call(this,c,u)||this;return i.byName=i.commands,i.setDefaultHandler("exec",function(s){return s.args?s.command.exec(s.editor,s.args,s.event,!1):s.command.exec(s.editor,{},s.event,!0)}),i}return l.prototype.exec=function(u,c,i){if(Array.isArray(u)){for(var s=u.length;s--;)if(this.exec(u[s],c,i))return!0;return!1}typeof u=="string"&&(u=this.commands[u]);var f={editor:c,command:u,args:i};return this.canExecute(u,c)?(f.returnValue=this._emit("exec",f),this._signal("afterExec",f),f.returnValue!==!1):(this._signal("commandUnavailable",f),!1)},l.prototype.canExecute=function(u,c){return typeof u=="string"&&(u=this.commands[u]),!(!u||c&&c.$readOnly&&!u.readOnly||this.$checkCommandState!=!1&&u.isAvailable&&!u.isAvailable(c))},l.prototype.toggleRecording=function(u){if(!this.$inReplay)return u&&u._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(u){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(u);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,u):this.exec(c[0],u,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(u){return u.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l})(w);g.implement(d.prototype,h),r.CommandManager=d}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,r,v){var p=e("../lib/lang"),g=e("../config"),w=e("../range").Range;function h(a,l){return{win:a,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(a){g.loadModule("ace/ext/settings_menu",function(l){l.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(a){g.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(a){g.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("Ctrl-L","Command-L"),exec:function(a,l){typeof l=="number"&&!isNaN(l)&&a.gotoLine(l),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:h("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.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(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:h("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:h("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(a){g.loadModule("ace/ext/searchbox",function(l){l.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:h("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.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(a){a.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(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:h("Up","Up|Ctrl-P"),exec:function(a,l){a.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.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(a){a.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(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:h("Down","Down|Ctrl-N"),exec:function(a,l){a.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:h("Ctrl-Left","Option-Left"),exec:function(a){a.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(a){a.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(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:h("Left","Left|Ctrl-B"),exec:function(a,l){a.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:h("Ctrl-Right","Option-Right"),exec:function(a){a.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(a){a.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(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("Right","Right|Ctrl-F"),exec:function(a,l){a.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:h(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:h(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:h("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:h("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:h("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.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(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var l=a.$copyWithEmptySelection&&a.selection.isEmpty(),u=l?a.selection.getLineRange():a.selection.getRange();a._emit("cut",u),u.isEmpty()||a.session.remove(u),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,l){a.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:h("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(a){g.loadModule("ace/ext/searchbox",function(l){l.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:h("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:h("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("Ctrl-Shift-Backspace",null),exec:function(a){var l=a.selection.getRange();l.start.column=0,a.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(a){var l=a.selection.getRange();l.end.column=Number.MAX_VALUE,a.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,l){a.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,l){a.insert(p.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(a){a.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var l=a.selection.getRange();l.start.column=l.end.column=0,l.end.row++,a.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:h("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(null,null),exec:function(a){for(var l=a.selection.isBackwards(),u=l?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),c=l?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),i=a.session.doc.getLine(u.row).length,s=a.session.doc.getTextRange(a.selection.getRange()),f=s.replace(/\n\s*/," ").length,b=a.session.doc.getLine(u.row),x=u.row+1;x<=c.row+1;x++){var O=p.stringTrimLeft(p.stringTrimRight(a.session.doc.getLine(x)));O.length!==0&&(O=" "+O),b+=O}c.row+1<a.session.doc.getLength()-1&&(b+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new w(u.row,0,c.row+2,0),b),f>0?(a.selection.moveCursorTo(u.row,u.column),a.selection.selectTo(u.row,u.column+f)):(i=a.session.doc.getLine(u.row).length>i?i+1:i,a.selection.moveCursorTo(u.row,i))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(a){var l=a.session.doc.getLength()-1,u=a.session.doc.getLine(l).length,c=a.selection.rangeList.ranges,i=[];c.length<1&&(c=[a.selection.getRange()]);for(var s=0;s<c.length;s++)s==c.length-1&&(c[s].end.row===l&&c[s].end.column===u||i.push(new w(c[s].end.row,c[s].end.column,l,u))),s===0?c[s].start.row===0&&c[s].start.column===0||i.push(new w(0,0,c[s].start.row,c[s].start.column)):i.push(new w(c[s-1].end.row,c[s-1].end.column,c[s].start.row,c[s].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var s=0;s<i.length;s++)a.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
|
|
203
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var l=a.getCursorPosition();a.selection.moveTo(l.row-1,Number.MAX_VALUE),a.insert(`
|
|
204
|
-
`),l.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(a){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),a.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:h("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(a){a.prompt({$type:"modes"})},readOnly:!0}];for(var d=1;d<9;d++)r.commands.push({name:"foldToLevel"+d,description:"Fold To Level "+d,level:d,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(e,r,v){var p=e("../lib/keys"),g=(function(){function h(d){this.editor=d,this.gutterLayer=d.renderer.$gutterLayer,this.element=d.renderer.$gutter,this.lines=d.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}return h.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},h.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},h.prototype.$onGutterKeyDown=function(d){if(this.annotationTooltip.isOpen){d.preventDefault(),d.keyCode===p.escape&&this.annotationTooltip.hide();return}if(d.target===this.element){if(d.keyCode!=p.enter)return;d.preventDefault();var a=this.editor.getCursorPosition().row;this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldLaneWidget(l),c=this.$findNearestAnnotation(l);if(!(u===null&&c===null)){var i=this.$findClosestNumber(u,c,l);if(i===u)if(this.activeLane="fold",this.activeRowIndex=u,this.$isCustomWidgetVisible(u)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(d),setTimeout((function(){this.editor._signal("gutterkeydown",new w(d,this))}).bind(this),10)},h.prototype.$handleGutterKeyboardInteraction=function(d){if(d.keyCode===p.tab){d.preventDefault();return}if(d.keyCode===p.escape){d.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(d.keyCode===p.up){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(d.keyCode===p.down){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(d.keyCode===p.left){d.preventDefault(),this.$switchLane("annotation");return}if(d.keyCode===p.right){d.preventDefault(),this.$switchLane("fold");return}if(d.keyCode===p.enter||d.keyCode===p.space){switch(d.preventDefault(),this.activeLane){case"fold":var a=this.$rowIndexToRow(this.activeRowIndex),l=this.editor.session.$gutterCustomWidgets[a];if(l)l.callbacks&&l.callbacks.onClick&&l.callbacks.onClick(d,a);else if(this.gutterLayer.session.foldWidgets[a]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),d),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==a&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(a),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0;break}return}},h.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},h.prototype.$isFoldWidgetVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=this.$getFoldWidget(d).style.display!=="none";return a&&l},h.prototype.$isCustomWidgetVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=!!this.$getCustomWidget(d);return a&&l},h.prototype.$isAnnotationVisible=function(d){var a=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),l=this.$getAnnotation(d).style.display!=="none";return a&&l},h.prototype.$getFoldWidget=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[1]},h.prototype.$getCustomWidget=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[3]},h.prototype.$getAnnotation=function(d){var a=this.lines.get(d),l=a.element;return l.childNodes[2]},h.prototype.$findNearestFoldLaneWidget=function(d){if(this.$isCustomWidgetVisible(d)||this.$isFoldWidgetVisible(d))return d;for(var a=0;d-a>0||d+a<this.lines.getLength()-1;){if(a++,d-a>=0&&this.$isCustomWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(d+a))return d+a;if(d-a>=0&&this.$isFoldWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(d+a))return d+a}return null},h.prototype.$findNearestAnnotation=function(d){if(this.$isAnnotationVisible(d))return d;for(var a=0;d-a>0||d+a<this.lines.getLength()-1;){if(a++,d-a>=0&&this.$isAnnotationVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(d+a))return d+a}return null},h.prototype.$focusFoldWidget=function(d){if(d!=null){var a=this.$getFoldWidget(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},h.prototype.$focusCustomWidget=function(d){if(d!=null){var a=this.$getCustomWidget(d);a&&(a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus())}},h.prototype.$focusAnnotation=function(d){if(d!=null){var a=this.$getAnnotation(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},h.prototype.$blurFoldWidget=function(d){var a=this.$getFoldWidget(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},h.prototype.$blurCustomWidget=function(d){var a=this.$getCustomWidget(d);a&&(a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur())},h.prototype.$blurAnnotation=function(d){var a=this.$getAnnotation(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},h.prototype.$moveFoldWidgetUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isFoldWidgetVisible(d)||this.$isCustomWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=d,this.$isFoldWidgetVisible(d)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveFoldWidgetDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isFoldWidgetVisible(d)||this.$isCustomWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=d,this.$isFoldWidgetVisible(d)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveAnnotationUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$moveAnnotationDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$findClosestNumber=function(d,a,l){return d===null?a:a===null||Math.abs(l-d)<=Math.abs(l-a)?d:a},h.prototype.$switchLane=function(d){switch(d){case"annotation":if(this.activeLane==="annotation")break;var a=this.$findNearestAnnotation(this.activeRowIndex);if(a==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var l=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(l===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=l,this.$isCustomWidgetVisible(l)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(d){var a=this.lines.get(d);return a?a.row:null},h.prototype.$rowToRowIndex=function(d){for(var a=0;a<this.lines.getLength();a++){var l=this.lines.get(a);if(l.row==d)return a}return null},h})();r.GutterKeyboardHandler=g;var w=(function(){function h(d,a){this.gutterKeyboardHandler=a,this.domEvent=d}return h.prototype.getKey=function(){return p.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h})();r.GutterKeyboardEvent=w}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(e,r,v){var p=this&&this.__values||function(S){var k=typeof Symbol=="function"&&Symbol.iterator,R=k&&S[k],B=0;if(R)return R.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&B>=S.length&&(S=void 0),{value:S&&S[B++],done:!S}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},g=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/lang"),d=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,i=e("./edit_session").EditSession,s=e("./search").Search,f=e("./range").Range,b=e("./lib/event_emitter").EventEmitter,x=e("./commands/command_manager").CommandManager,O=e("./commands/default_commands").commands,T=e("./config"),_=e("./token_iterator").TokenIterator,C=e("./keyboard/gutter_handler").GutterKeyboardHandler,L=e("./config").nls,F=e("./clipboard"),E=e("./lib/keys"),I=e("./lib/event"),z=e("./tooltip").HoverTooltip,P=(function(){function S(k,R,B){this.id="editor"+ ++S.$uid,this.session,this.$toDestroy=[];var U=k.getContainerElement();this.container=U,this.renderer=k,this.commands=new x(d.isMac?"mac":"win",O),typeof document=="object"&&(this.textInput=new a(k.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(this)),this.keyBinding=new c(this),this.$search=new s().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(q,Q){Q._$emitInputEvent.schedule(31)}),this.setSession(R||B&&B.session||new i("")),T.resetOptions(this),B&&this.setOptions(B),T._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(k){this.session.startOperation(k)},S.prototype.endOperation=function(k){this.session.endOperation(k)},S.prototype.onStartOperation=function(k){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,k||(this.previousCommand=null)},S.prototype.onEndOperation=function(k){if(this.curOp&&this.session){if(k&&k.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var R=this.curOp.command,B=R&&R.scrollIntoView;if(B){switch(B){case"center-animate":B="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var U=this.selection.getRange(),q=this.renderer.layerConfig;(U.start.row>=q.lastRow||U.end.row<=q.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}B=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(k){if(this.$mergeUndoDeltas){var R=this.prevOp,B=this.$mergeableCommands,U=R.command&&k.command.name==R.command.name;if(k.command.name=="insertstring"){var q=k.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),U=U&&this.mergeNextCommand&&(!/\s/.test(q)||/\s/.test(R.args)),this.mergeNextCommand=!0}else U=U&&B.indexOf(k.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(U=!1),U?this.session.mergeUndoDeltas=!0:B.indexOf(k.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(k,R){if(k&&typeof k=="string"&&k!="ace"){this.$keybindingId=k;var B=this;T.loadModule(["keybinding",k],function(U){B.$keybindingId==k&&B.keyBinding.setKeyboardHandler(U&&U.handler),R&&R()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(k),R&&R()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(k){if(this.session!=k){this.curOp&&this.endOperation(),this.curOp={};var R=this.session;if(R){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 B=this.session.getSelection();B.off("changeCursor",this.$onCursorChange),B.off("changeSelection",this.$onSelectionChange)}this.session=k,k?(this.$onDocumentChange=this.onDocumentChange.bind(this),k.on("change",this.$onDocumentChange),this.renderer.setSession(k),this.$onChangeMode=this.onChangeMode.bind(this),k.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),k.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),k.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),k.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),k.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),k.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=k.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(k)),this._signal("changeSession",{session:k,oldSession:R}),this.curOp=null,R&&R._signal("changeEditor",{oldEditor:this}),R&&(R.$editor=null),k&&k._signal("changeEditor",{editor:this}),k&&(k.$editor=this),k&&!k.destroyed&&k.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(k,R){return this.session.doc.setValue(k),R?R==1?this.navigateFileEnd():R==-1&&this.navigateFileStart():this.selectAll(),k},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(k){this.renderer.onResize(k)},S.prototype.setTheme=function(k,R){this.renderer.setTheme(k,R)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(k,R){this.renderer.setStyle(k,R)},S.prototype.unsetStyle=function(k){this.renderer.unsetStyle(k)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(k){this.setOption("fontSize",k)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var k=this;this.$highlightPending=!0,setTimeout(function(){k.$highlightPending=!1;var R=k.session;if(!(!R||R.destroyed)){R.$bracketHighlight&&(R.$bracketHighlight.markerIds.forEach(function(se){R.removeMarker(se)}),R.$bracketHighlight=null);var B=k.getCursorPosition(),U=k.getKeyboardHandler(),q=U&&U.$getDirectionForHighlight&&U.$getDirectionForHighlight(k),Q=R.getMatchingBracketRanges(B,q);if(!Q){var J=new _(R,B.row,B.column),he=J.getCurrentToken();if(he&&/\b(?:tag-open|tag-name)/.test(he.type)){var ne=R.getMatchingTags(B);ne&&(Q=[ne.openTagName.isEmpty()?ne.openTag:ne.openTagName,ne.closeTagName.isEmpty()?ne.closeTag:ne.closeTagName])}}if(!Q&&R.$mode.getMatching&&(Q=R.$mode.getMatching(k.session)),!Q){k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide();return}var ce="ace_bracket";Array.isArray(Q)?Q.length==1&&(ce="ace_error_bracket"):Q=[Q],Q.length==2&&(f.comparePoints(Q[0].end,Q[1].start)==0?Q=[f.fromPoints(Q[0].start,Q[1].end)]:f.comparePoints(Q[0].start,Q[1].end)==0&&(Q=[f.fromPoints(Q[1].start,Q[0].end)])),R.$bracketHighlight={ranges:Q,markerIds:Q.map(function(se){return R.addMarker(se,ce,"text")})},k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(k){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",k))},S.prototype.onBlur=function(k){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",k))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(k){var R=this.session.$useWrapMode,B=k.start.row==k.end.row?k.end.row:1/0;this.renderer.updateLines(k.start.row,B,R),this._signal("change",k),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(k){var R=k.data;this.renderer.updateLines(R.first,R.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var k=this.getSession(),R;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(R=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(R=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(R=!1)),k.$highlightLineMarker&&!R)k.removeMarker(k.$highlightLineMarker.id),k.$highlightLineMarker=null;else if(!k.$highlightLineMarker&&R){var B=new f(R.row,R.column,R.row,1/0);B.id=k.addMarker(B,"ace_active-line","screenLine"),k.$highlightLineMarker=B}else R&&(k.$highlightLineMarker.start.row=R.row,k.$highlightLineMarker.end.row=R.row,k.$highlightLineMarker.start.column=R.column,k._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(k){var R=this.session;if(R.$selectionMarker&&R.removeMarker(R.$selectionMarker),R.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var B=this.selection.getRange(),U=this.getSelectionStyle();R.$selectionMarker=R.addMarker(B,"ace_selection",U)}var q=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(q),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var k=this.session,R=this.getSelectionRange();if(!(R.isEmpty()||R.isMultiLine())){var B=R.start.column,U=R.end.column,q=k.getLine(R.start.row),Q=q.substring(B,U);if(!(Q.length>5e3||!/[\w\d]/.test(Q))){var J=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Q}),he=q.substring(B-1,U+1);if(J.test(he))return J}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(k){this.renderer.updateText(),this._emit("changeMode",k)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var k=this.getSelectedText(),R=this.session.doc.getNewLineCharacter(),B=!1;if(!k&&this.$copyWithEmptySelection){B=!0;for(var U=this.selection.getAllRanges(),q=0;q<U.length;q++){var Q=U[q];q&&U[q-1].start.row==Q.start.row||(k+=this.session.getLine(Q.start.row)+R)}}var J={text:k};return this._signal("copy",J),F.lineMode=B?J.text:!1,J.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(k,R){var B={text:k,event:R};this.commands.exec("paste",this,B)},S.prototype.$handlePaste=function(k){typeof k=="string"&&(k={text:k}),this._signal("paste",k);var R=k.text,B=R===F.lineMode,U=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)B?U.insert({row:this.selection.lead.row,column:0},R):this.insert(R);else if(B)this.selection.rangeList.ranges.forEach(function(ce){U.insert({row:ce.start.row,column:0},R)});else{var q=R.split(/\r\n|\r|\n/),Q=this.selection.rangeList.ranges,J=q.length==2&&(!q[0]||!q[1]);if(q.length!=Q.length||J)return this.commands.exec("insertstring",this,R);for(var he=Q.length;he--;){var ne=Q[he];ne.isEmpty()||U.remove(ne),U.insert(ne.start,q[he])}}},S.prototype.execCommand=function(k,R){return this.commands.exec(k,this,R)},S.prototype.insert=function(k,R){var B=this.session,U=B.getMode(),q=this.getCursorPosition();if(this.getBehavioursEnabled()&&!R){var Q=U.transformAction(B.getState(q.row),"insertion",this,B,k);Q&&(k!==Q.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),k=Q.text)}if(k==" "&&(k=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&k.indexOf(`
|
|
205
|
-
`)==-1){var J=f.fromPoints(q,q);J.end.column+=k.length,this.session.remove(J)}}else{var J=this.getSelectionRange();q=this.session.remove(J),this.clearSelection()}if(k==`
|
|
206
|
-
`||k==`\r
|
|
207
|
-
`){var se=B.getLine(q.row);if(q.column>se.search(/\S|$/)){var he=se.substr(q.column).search(/\S|$/);B.doc.removeInLine(q.row,q.column,q.column+he)}}this.clearSelection();var ne=q.column,ce=B.getState(q.row),se=B.getLine(q.row),de=U.checkOutdent(ce,se,k);if(B.insert(q,k),Q&&Q.selection&&(Q.selection.length==2?this.selection.setSelectionRange(new f(q.row,ne+Q.selection[0],q.row,ne+Q.selection[1])):this.selection.setSelectionRange(new f(q.row+Q.selection[0],Q.selection[1],q.row+Q.selection[2],Q.selection[3]))),this.$enableAutoIndent){if(B.getDocument().isNewLine(k)){var me=U.getNextLineIndent(ce,se.slice(0,q.column),B.getTabString());B.insert({row:q.row+1,column:0},me)}de&&U.autoOutdent(ce,B,q.row)}},S.prototype.autoIndent=function(){for(var k=this.session,R=k.getMode(),B=this.selection.isEmpty()?[new f(0,0,k.doc.getLength()-1,0)]:this.selection.getAllRanges(),U="",q="",Q="",J=k.getTabString(),he=0;he<B.length;he++)for(var ne=B[he].start.row,ce=B[he].end.row,se=ne;se<=ce;se++){se>0&&(U=k.getState(se-1),q=k.getLine(se-1),Q=R.getNextLineIndent(U,q,J));var de=k.getLine(se),me=R.$getIndent(de);if(Q!==me){if(me.length>0){var Se=new f(se,0,se,me.length);k.remove(Se)}Q.length>0&&k.insert({row:se,column:0},Q)}R.autoOutdent(U,k,se)}},S.prototype.onTextInput=function(k,R){if(!R)return this.keyBinding.onTextInput(k);this.startOperation({command:{name:"insertstring"}});var B=this.applyComposition.bind(this,k,R);this.selection.rangeCount?this.forEachSelection(B):B(),this.endOperation()},S.prototype.applyComposition=function(k,R){if(R.extendLeft||R.extendRight){var B=this.selection.getRange();B.start.column-=R.extendLeft,B.end.column+=R.extendRight,B.start.column<0&&(B.start.row--,B.start.column+=this.session.getLine(B.start.row).length+1),this.selection.setRange(B),!k&&!B.isEmpty()&&this.remove()}if((k||!this.selection.isEmpty())&&this.insert(k,!0),R.restoreStart||R.restoreEnd){var B=this.selection.getRange();B.start.column-=R.restoreStart,B.end.column-=R.restoreEnd,this.selection.setRange(B)}},S.prototype.onCommandKey=function(k,R,B){return this.keyBinding.onCommandKey(k,R,B)},S.prototype.setOverwrite=function(k){this.session.setOverwrite(k)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(k){this.setOption("scrollSpeed",k)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(k){this.setOption("dragDelay",k)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(k){this.setOption("selectionStyle",k)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(k){this.setOption("highlightActiveLine",k)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(k){this.setOption("highlightSelectedWord",k)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(k){this.renderer.setAnimatedScroll(k)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(k){this.renderer.setShowInvisibles(k)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(k){this.renderer.setDisplayIndentGuides(k)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(k){this.renderer.setHighlightIndentGuides(k)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(k){this.renderer.setShowPrintMargin(k)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(k){this.renderer.setPrintMarginColumn(k)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(k){this.setOption("readOnly",k)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(k){this.setOption("behavioursEnabled",k)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(k){this.setOption("wrapBehavioursEnabled",k)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(k){this.setOption("showFoldWidgets",k)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(k){this.selection.isEmpty()&&(k=="left"?this.selection.selectLeft():this.selection.selectRight());var R=this.getSelectionRange();if(this.getBehavioursEnabled()){var B=this.session,U=B.getState(R.start.row),q=B.getMode().transformAction(U,"deletion",this,B,R);if(R.end.column===0){var Q=B.getTextRange(R);if(Q[Q.length-1]==`
|
|
208
|
-
`){var J=B.getLine(R.end.row);/^\s+$/.test(J)&&(R.end.column=J.length)}}q&&(R=q)}this.session.remove(R),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var k=this.getSelectionRange();k.start.column==k.end.column&&k.start.row==k.end.row&&(k.end.column=0,k.end.row++),this.session.remove(k),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var k=this.getCursorPosition();this.insert(`
|
|
209
|
-
`),this.moveCursorToPosition(k)},S.prototype.setGhostText=function(k,R){this.renderer.setGhostText(k,R)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var k=this.getCursorPosition(),R=k.column;if(R!==0){var B=this.session.getLine(k.row),U,q;R<B.length?(U=B.charAt(R)+B.charAt(R-1),q=new f(k.row,R-1,k.row,R+1)):(U=B.charAt(R-1)+B.charAt(R-2),q=new f(k.row,R-2,k.row,R)),this.session.replace(q,U),this.session.selection.moveToPosition(q.end)}}},S.prototype.toLowerCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),B=this.session.getTextRange(R);this.session.replace(R,B.toLowerCase()),this.selection.setSelectionRange(k)},S.prototype.toUpperCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),B=this.session.getTextRange(R);this.session.replace(R,B.toUpperCase()),this.selection.setSelectionRange(k)},S.prototype.indent=function(){var k=this.session,R=this.getSelectionRange();if(R.start.row<R.end.row){var B=this.$getSelectedRows();k.indentRows(B.first,B.last," ");return}else if(R.start.column<R.end.column){var U=k.getTextRange(R);if(!/^\s+$/.test(U)){var B=this.$getSelectedRows();k.indentRows(B.first,B.last," ");return}}var q=k.getLine(R.start.row),Q=R.start,J=k.getTabSize(),he=k.documentToScreenColumn(Q.row,Q.column);if(this.session.getUseSoftTabs())var ne=J-he%J,ce=h.stringRepeat(" ",ne);else{for(var ne=he%J;q[R.start.column-1]==" "&≠)R.start.column--,ne--;this.selection.setSelectionRange(R),ce=" "}return this.insert(ce)},S.prototype.blockIndent=function(){var k=this.$getSelectedRows();this.session.indentRows(k.first,k.last," ")},S.prototype.blockOutdent=function(){var k=this.session.getSelection();this.session.outdentRows(k.getRange())},S.prototype.sortLines=function(){for(var k=this.$getSelectedRows(),R=this.session,B=[],U=k.first;U<=k.last;U++)B.push(R.getLine(U));B.sort(function(J,he){return J.toLowerCase()<he.toLowerCase()?-1:J.toLowerCase()>he.toLowerCase()?1:0});for(var q=new f(0,0,0,0),U=k.first;U<=k.last;U++){var Q=R.getLine(U);q.start.row=U,q.end.row=U,q.end.column=Q.length,R.replace(q,B[U-k.first])}},S.prototype.toggleCommentLines=function(){var k=this.session.getState(this.getCursorPosition().row),R=this.$getSelectedRows();this.session.getMode().toggleCommentLines(k,this.session,R.first,R.last)},S.prototype.toggleBlockComment=function(){var k=this.getCursorPosition(),R=this.session.getState(k.row),B=this.getSelectionRange();this.session.getMode().toggleBlockComment(R,this.session,B,k)},S.prototype.getNumberAt=function(k,R){var B=/[\-]?[0-9]+(?:\.[0-9]+)?/g;B.lastIndex=0;for(var U=this.session.getLine(k);B.lastIndex<R;){var q=B.exec(U);if(q.index<=R&&q.index+q[0].length>=R){var Q={value:q[0],start:q.index,end:q.index+q[0].length};return Q}}return null},S.prototype.modifyNumber=function(k){var R=this.selection.getCursor().row,B=this.selection.getCursor().column,U=new f(R,B-1,R,B),q=this.session.getTextRange(U);if(!isNaN(parseFloat(q))&&isFinite(q)){var Q=this.getNumberAt(R,B);if(Q){var J=Q.value.indexOf(".")>=0?Q.start+Q.value.indexOf(".")+1:Q.end,he=Q.start+Q.value.length-J,ne=parseFloat(Q.value);ne*=Math.pow(10,he),J!==Q.end&&B<J?k*=Math.pow(10,Q.end-B-1):k*=Math.pow(10,Q.end-B),ne+=k,ne/=Math.pow(10,he);var ce=ne.toFixed(he),se=new f(R,Q.start,R,Q.end);this.session.replace(se,ce),this.moveCursorTo(R,Math.max(Q.start+1,B+ce.length-Q.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var k=this.selection.getCursor().row,R=this.selection.getCursor().column;this.selection.selectWord();var B=this.getSelectedText(),U=this.selection.getWordRange().start.column,q=B.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Q=R-U-1;Q<0&&(Q=0);var J=0,he=0,ne=this;B.match(/[A-Za-z0-9_]+/)&&q.forEach(function(qe,st){he=J+qe.length,Q>=J&&Q<=he&&(B=qe,ne.selection.clearSelection(),ne.moveCursorTo(k,J+U),ne.selection.selectTo(k,he+U)),J=he});for(var ce=this.$toggleWordPairs,se,de=0;de<ce.length;de++)for(var me=ce[de],Se=0;Se<=1;Se++){var Te=+!Se,Me=B.match(new RegExp("^\\s?_?("+h.escapeRegExp(me[Se])+")\\s?$","i"));if(Me){var Xe=B.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(Me[1])+")($|\\s)","g"));Xe&&(se=B.replace(new RegExp(h.escapeRegExp(me[Se]),"i"),function(qe){var st=me[Te];return qe.toUpperCase()==qe?st=st.toUpperCase():qe.charAt(0).toUpperCase()==qe.charAt(0)&&(st=st.substr(0,0)+me[Te].charAt(0).toUpperCase()+st.substr(1)),st}),this.insert(se),se="")}}},S.prototype.findLinkAt=function(k,R){var B,U,q=this.session.getLine(k),Q=q.split(/((?:https?|ftp):\/\/[\S]+)/),J=R;J<0&&(J=0);var he=0,ne=0,ce;try{for(var se=p(Q),de=se.next();!de.done;de=se.next()){var me=de.value;if(ne=he+me.length,J>=he&&J<=ne&&me.match(/((?:https?|ftp):\/\/[\S]+)/)){ce=me.replace(/[\s:.,'";}\]]+$/,"");break}he=ne}}catch(Se){B={error:Se}}finally{try{de&&!de.done&&(U=se.return)&&U.call(se)}finally{if(B)throw B.error}}return ce},S.prototype.openLink=function(){var k=this.selection.getCursor(),R=this.findLinkAt(k.row,k.column);return R&&window.open(R,"_blank"),R!=null},S.prototype.removeLines=function(){var k=this.$getSelectedRows();this.session.removeFullLines(k.first,k.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var k=this.selection,R=this.session,B=k.getRange(),U=k.isBackwards();if(B.isEmpty()){var q=B.start.row;R.duplicateLines(q,q)}else{var Q=U?B.start:B.end,J=R.insert(Q,R.getTextRange(B));B.start=Q,B.end=J,k.setSelectionRange(B,U)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(k,R,B){return this.session.moveText(k,R,B)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(k,R){var B,U,q=this.selection;if(!q.inMultiSelectMode||this.inVirtualSelectionMode){var Q=q.toOrientedRange();B=this.$getSelectedRows(Q),U=this.session.$moveLines(B.first,B.last,R?0:k),R&&k==-1&&(U=0),Q.moveBy(U,0),q.fromOrientedRange(Q)}else{var J=q.rangeList.ranges;q.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var he=0,ne=0,ce=J.length,se=0;se<ce;se++){var de=se;J[se].moveBy(he,0),B=this.$getSelectedRows(J[se]);for(var me=B.first,Se=B.last;++se<ce;){ne&&J[se].moveBy(ne,0);var Te=this.$getSelectedRows(J[se]);if(R&&Te.first!=Se||!R&&Te.first>Se+1)break;Se=Te.last}for(se--,he=this.session.$moveLines(me,Se,R?0:k),R&&k==-1&&(de=se+1);de<=se;)J[de].moveBy(he,0),de++;R||(he=0),ne+=he}q.fromOrientedRange(q.ranges[0]),q.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(k){return k=(k||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(k.start.row),last:this.session.getRowFoldEnd(k.end.row)}},S.prototype.onCompositionStart=function(k){this.renderer.showComposition(k)},S.prototype.onCompositionUpdate=function(k){this.renderer.setCompositionText(k)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(k){return k>=this.getFirstVisibleRow()&&k<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(k){return k>=this.renderer.getFirstFullyVisibleRow()&&k<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(k,R){var B=this.renderer,U=this.renderer.layerConfig,q=k*Math.floor(U.height/U.lineHeight);R===!0?this.selection.$moveSelection(function(){this.moveCursorBy(q,0)}):R===!1&&(this.selection.moveCursorBy(q,0),this.selection.clearSelection());var Q=B.scrollTop;B.scrollBy(0,q*U.lineHeight),R!=null&&B.scrollCursorIntoView(null,.5),B.animateScrolling(Q)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(k){this.renderer.scrollToRow(k)},S.prototype.scrollToLine=function(k,R,B,U){this.renderer.scrollToLine(k,R,B,U)},S.prototype.centerSelection=function(){var k=this.getSelectionRange(),R={row:Math.floor(k.start.row+(k.end.row-k.start.row)/2),column:Math.floor(k.start.column+(k.end.column-k.start.column)/2)};this.renderer.alignCursor(R,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(k,R){this.selection.moveCursorTo(k,R)},S.prototype.moveCursorToPosition=function(k){this.selection.moveCursorToPosition(k)},S.prototype.jumpToMatching=function(k,R){var B=this.getCursorPosition(),U=new _(this.session,B.row,B.column),q=U.getCurrentToken(),Q=0;q&&q.type.indexOf("tag-name")!==-1&&(q=U.stepBackward());var J=q||U.stepForward();if(J){var he,ne=!1,ce={},se=B.column-J.start,de,me={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(J.value.match(/[{}()\[\]]/g)){for(;se<J.value.length&&!ne;se++)if(me[J.value[se]])switch(de=me[J.value[se]]+"."+J.type.replace("rparen","lparen"),isNaN(ce[de])&&(ce[de]=0),J.value[se]){case"(":case"[":case"{":ce[de]++;break;case")":case"]":case"}":ce[de]--,ce[de]===-1&&(he="bracket",ne=!0);break}}else J.type.indexOf("tag-name")!==-1&&(isNaN(ce[J.value])&&(ce[J.value]=0),q.value==="<"&&Q>1?ce[J.value]++:q.value==="</"&&ce[J.value]--,ce[J.value]===-1&&(he="tag",ne=!0));ne||(q=J,Q++,J=U.stepForward(),se=0)}while(J&&!ne);if(he){var Se,Te;if(he==="bracket")Se=this.session.getBracketRange(B),Se||(Se=new f(U.getCurrentTokenRow(),U.getCurrentTokenColumn()+se-1,U.getCurrentTokenRow(),U.getCurrentTokenColumn()+se-1),Te=Se.start,(R||Te.row===B.row&&Math.abs(Te.column-B.column)<2)&&(Se=this.session.getBracketRange(Te)));else if(he==="tag"){if(!J||J.type.indexOf("tag-name")===-1)return;if(Se=new f(U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2,U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2),Se.compare(B.row,B.column)===0){var Me=this.session.getMatchingTags(B);Me&&(Me.openTag.contains(B.row,B.column)?(Se=Me.closeTag,Te=Se.start):(Se=Me.openTag,Me.closeTag.start.row===B.row&&Me.closeTag.start.column===B.column?Te=Se.end:Te=Se.start))}Te=Te||Se.start}Te=Se&&Se.cursor||Te,Te&&(k?Se&&R?this.selection.setRange(Se):Se&&Se.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Te.row,Te.column):this.selection.moveTo(Te.row,Te.column))}}},S.prototype.gotoLine=function(k,R,B){this.selection.clearSelection(),this.session.unfold({row:k-1,column:R||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(k-1,R||0),this.isRowFullyVisible(k-1)||this.scrollToLine(k-1,!0,B)},S.prototype.navigateTo=function(k,R){this.selection.moveTo(k,R)},S.prototype.navigateUp=function(k){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(-k||-1,0)},S.prototype.navigateDown=function(k){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(k||1,0)},S.prototype.navigateLeft=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorLeft();else{var R=this.getSelectionRange().start;this.moveCursorToPosition(R)}this.clearSelection()},S.prototype.navigateRight=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorRight();else{var R=this.getSelectionRange().end;this.moveCursorToPosition(R)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(k,R){R&&this.$search.set(R);var B=this.$search.find(this.session),U=0;return B&&(this.$tryReplace(B,k)&&(U=1),this.selection.setSelectionRange(B),this.renderer.scrollSelectionIntoView(B.start,B.end)),U},S.prototype.replaceAll=function(k,R){R&&this.$search.set(R);var B=this.$search.findAll(this.session),U=0;if(!B.length)return U;var q=this.getSelectionRange();this.selection.moveTo(0,0);for(var Q=B.length-1;Q>=0;--Q)this.$tryReplace(B[Q],k)&&U++;return this.selection.setSelectionRange(q),U},S.prototype.$tryReplace=function(k,R){var B=this.session.getTextRange(k);return R=this.$search.replace(B,R),R!==null?(k.end=this.session.replace(k,R),k):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(k,R,B){R||(R={}),typeof k=="string"||k instanceof RegExp?R.needle=k:typeof k=="object"&&g.mixin(R,k);var U=this.selection.getRange();R.needle==null&&(k=this.session.getTextRange(U)||this.$search.$options.needle,k||(U=this.session.getWordRange(U.start.row,U.start.column),k=this.session.getTextRange(U)),this.$search.set({needle:k})),this.$search.set(R),R.start||this.$search.set({start:U});var q=this.$search.find(this.session);if(R.preventScroll)return q;if(q)return this.revealRange(q,B),q;R.backwards?U.start=U.end:U.end=U.start,this.selection.setRange(U)},S.prototype.findNext=function(k,R){this.find({skipCurrent:!0,backwards:!1},k,R)},S.prototype.findPrevious=function(k,R){this.find(k,{skipCurrent:!0,backwards:!0},R)},S.prototype.revealRange=function(k,R){this.session.unfold(k),this.selection.setSelectionRange(k);var B=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(k.start,k.end,.5),R!==!1&&this.renderer.animateScrolling(B)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(k){k.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(k){if(k){var R,B=this,U=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var q=this.$scrollAnchor;q.style.cssText="position:absolute",this.container.insertBefore(q,this.container.firstChild);var Q=this.on("changeSelection",function(){U=!0}),J=this.renderer.on("beforeRender",function(){U&&(R=B.renderer.container.getBoundingClientRect())}),he=this.renderer.on("afterRender",function(){if(U&&R&&(B.isFocused()||B.searchBox&&B.searchBox.isFocused())){var ne=B.renderer,ce=ne.$cursorLayer.$pixelPos,se=ne.layerConfig,de=ce.top-se.offset;ce.top>=0&&de+R.top<0?U=!0:ce.top<se.height&&ce.top+R.top+se.lineHeight>window.innerHeight?U=!1:U=null,U!=null&&(q.style.top=de+"px",q.style.left=ce.left+"px",q.style.height=se.lineHeight+"px",q.scrollIntoView(U)),U=R=null}});this.setAutoScrollEditorIntoView=function(ne){ne||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Q),this.renderer.off("afterRender",he),this.renderer.off("beforeRender",J))}}},S.prototype.$resetCursorStyle=function(){var k=this.$cursorStyle||"ace",R=this.renderer.$cursorLayer;R&&(R.setSmoothBlinking(/smooth/.test(k)),R.isBlinking=!this.$readOnly&&k!="wide",w.setCssClass(R.element,"ace_slim-cursors",/slim/.test(k)))},S.prototype.prompt=function(k,R,B){var U=this;T.loadModule("ace/ext/prompt",function(q){q.prompt(U,k,R,B)})},Object.defineProperty(S.prototype,"hoverTooltip",{get:function(){return this.$hoverTooltip||(this.$hoverTooltip=new z(this.container))},set:function(k){this.$hoverTooltip&&this.$hoverTooltip.destroy(),this.$hoverTooltip=k},enumerable:!1,configurable:!0}),S})();P.$uid=0,P.prototype.curOp=null,P.prototype.prevOp={},P.prototype.$mergeableCommands=["backspace","del","insertstring"],P.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"],["&&","||"],["==","!="]],g.implement(P.prototype,b),T.defineOptions(P.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){var k=this;if(this.textInput.setReadOnly(S),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(B){var U=!1;if(B&&B.type=="keydown"){if(B&&B.key&&!B.ctrlKey&&!B.metaKey&&(B.key==" "&&B.preventDefault(),U=B.key.length==1),!U)return}else B&&B.type!=="exec"&&(U=!0);if(U){var q=w.createElement("div");q.textContent=L("editor.tooltip.disable-editing","Editing is disabled"),k.hoverTooltip.isOpen||k.hoverTooltip.showForRange(k,k.getSelectionRange(),q)}else k.hoverTooltip&&k.hoverTooltip.isOpen&&k.hoverTooltip.hide()});var R=this.textInput.getElement();S?(I.addListener(R,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(I.removeListener(R,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback))}},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){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(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?N.attach(this):N.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var k=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(k&&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(!k&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var R=w.createElement("div");R.className="ace_placeholder",R.textContent=this.$placeholder||"",this.renderer.placeholderNode=R,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!k&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var k={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(U){U.blur(),U.renderer.scroller.focus()},readOnly:!0},R=function(U){if(U.target==this.renderer.scroller&&U.keyCode===E.enter){U.preventDefault();var q=this.getCursorPosition().row;this.isRowVisible(q)||this.scrollToLine(q,!0,!0),this.focus()}},B;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(d.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",L("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",L("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",R.bind(this)),this.commands.addCommand(k),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",L("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",L("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),B||(B=new C(this)),B.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",R.bind(this)),this.commands.removeCommand(k),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),B&&B.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},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",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(S,k){return(Math.abs(S.selection.lead.row-k)||k+1+(k<9?"·":""))+""},getWidth:function(S,k,R){return Math.max(k.toString().length,(R.lastRow+1).toString().length,2)*R.characterWidth},update:function(S,k){k.renderer.$loop.schedule(k.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=P}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("../lib/dom"),g=(function(){function w(h,d){this.element=h,this.canvasHeight=d||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){p.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,d){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,d,a){var l=d.firstRowScreen*d.lineHeight,u=Math.floor(l/this.canvasHeight),c=a.documentToScreenRow(h,0)*d.lineHeight;return c-u*this.canvasHeight},w.prototype.computeLineHeight=function(h,d,a){return d.lineHeight*a.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 d=p.createFragment(this.element),a=0;a<h.length;a++)d.appendChild(h[a].element);this.element.appendChild(d)}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 d=p.createFragment(this.element),a=0;a<h.length;a++)d.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(d,this.element.firstChild):this.element.appendChild(d)}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,d,a,l){var u=this.cellCache.pop();if(!u){var c=p.createElement("div");l&&l(c),this.element.appendChild(c),u={element:c,text:"",row:h}}return u.row=h,u},w})();r.Lines=g}),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,r,v){var p=e("../lib/dom"),g=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,d=e("./lines").Lines,a=e("../config").nls,l=(function(){function c(i){this.$showCursorMarker=null,this.element=p.createElement("div"),this.element.className="ace_layer ace_gutter-layer",i.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new d(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(i){this.session&&this.session.off("change",this.$updateAnnotations),this.session=i,i&&i.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(i,s){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(i,s)},c.prototype.removeGutterDecoration=function(i,s){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(i,s)},c.prototype.setAnnotations=function(i){this.$annotations=[];for(var s=0;s<i.length;s++){var f=i[s],b=f.row,x=this.$annotations[b];x||(x=this.$annotations[b]={text:[],type:[],displayText:[]});var O=f.text,T=f.text,_=f.type;O=O?w.escapeHTML(O):f.html||"",T=T||f.html||"",x.text.indexOf(O)===-1&&(x.text.push(O),x.type.push(_),x.displayText.push(T));var C=f.className;C?x.className=C:_==="error"?x.className=" ace_error":_==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":_==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":_==="info"&&!x.className?x.className=" ace_info":_==="hint"&&!x.className&&(x.className=" ace_hint")}},c.prototype.$updateAnnotations=function(i){if(this.$annotations.length){var s=i.start.row,f=i.end.row-s;if(f!==0)if(i.action=="remove")this.$annotations.splice(s,f+1,null);else{var b=new Array(f+1);b.unshift(s,1),this.$annotations.splice.apply(this.$annotations,b)}}},c.prototype.update=function(i){this.config=i;var s=this.session,f=i.firstRow,b=Math.min(i.lastRow+i.gutterOffset,s.getLength()-1);this.oldLastRow=b,this.config=i,this.$lines.moveContainer(i),this.$updateCursorRow();for(var x=s.getNextFoldLine(f),O=x?x.start.row:1/0,T=null,_=-1,C=f;;){if(C>O&&(C=x.end.row+1,x=s.getNextFoldLine(C,x),O=x?x.start.row:1/0),C>b){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}T=this.$lines.get(++_),T?T.row=C:(T=this.$lines.createCell(C,i,this.session,u),this.$lines.push(T)),this.$renderCell(T,i,x,C),C++}this._signal("afterRender"),this.$updateGutterWidth(i),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},c.prototype.$updateGutterWidth=function(i){var s=this.session,f=s.gutterRenderer||this.$renderer,b=s.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||s.$useWrapMode)&&(x=s.getLength()+b-1);var O=f?f.getWidth(s,x,i):x.toString().length*i.characterWidth,T=this.$padding||this.$computePadding();O+=T.left+T.right,O!==this.gutterWidth&&!isNaN(O)&&(this.gutterWidth=O,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",O))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var i=this.session.selection.getCursor();this.$cursorRow!==i.row&&(this.$cursorRow=i.row)}},c.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),!!this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!(this.$cursorCell&&this.$cursorCell.row==i)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var s=this.$lines.cells;this.$cursorCell=null;for(var f=0;f<s.length;f++){var b=s[f];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(f>0&&x&&x.start.row==s[f-1].row)b=s[f-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},c.prototype.$updateCursorMarker=function(){if(this.session){var i=this.session;this.$highlightElement||(this.$highlightElement=p.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var s=i.selection.cursor,f=this.config,b=this.$lines,x=f.firstRowScreen*f.lineHeight,O=Math.floor(x/b.canvasHeight),T=i.documentToScreenRow(s)*f.lineHeight,_=T-O*b.canvasHeight;p.setStyle(this.$highlightElement.style,"height",f.lineHeight+"px"),p.setStyle(this.$highlightElement.style,"top",_+"px")}},c.prototype.scrollLines=function(i){var s=this.config;if(this.config=i,this.$updateCursorRow(),this.$lines.pageChanged(s,i))return this.update(i);this.$lines.moveContainer(i);var f=Math.min(i.lastRow+i.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=f,!s||b<i.firstRow)return this.update(i);if(f<s.firstRow)return this.update(i);if(s.firstRow<i.firstRow)for(var x=this.session.getFoldedRowCount(s.firstRow,i.firstRow-1);x>0;x--)this.$lines.shift();if(b>f)for(var x=this.session.getFoldedRowCount(f+1,b);x>0;x--)this.$lines.pop();i.firstRow<s.firstRow&&this.$lines.unshift(this.$renderLines(i,i.firstRow,s.firstRow-1)),f>b&&this.$lines.push(this.$renderLines(i,b+1,f)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(i)},c.prototype.$renderLines=function(i,s,f){for(var b=[],x=s,O=this.session.getNextFoldLine(x),T=O?O.start.row:1/0;x>T&&(x=O.end.row+1,O=this.session.getNextFoldLine(x,O),T=O?O.start.row:1/0),!(x>f);){var _=this.$lines.createCell(x,i,this.session,u);this.$renderCell(_,i,O,x),b.push(_),x++}return b},c.prototype.$renderCell=function(i,s,f,b){var x=i.element,O=this.session,T=x.childNodes[0],_=x.childNodes[1],C=x.childNodes[2],L=x.childNodes[3],F=C.firstChild,E=O.$firstLineNumber,I=O.$breakpoints,z=O.$decorations,P=O.gutterRenderer||this.$renderer,N=this.$showFoldWidgets&&O.foldWidgets,S=f?f.start.row:Number.MAX_VALUE,k=s.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",B=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",U=(P?P.getText(O,b):b+E).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||f&&b<this.$cursorRow&&b>=S&&this.$cursorRow<=f.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=i&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=i)),I[b]&&(R+=I[b]),z[b]&&(R+=z[b]),this.$annotations[b]&&b!==S&&(R+=this.$annotations[b].className),N){var q=N[b];q==null&&(q=N[b]=O.getFoldWidget(b))}if(q){var Q="ace_fold-widget ace_"+q,J=q=="start"&&b==S&&b<f.end.row;if(J){Q+=" ace_closed";for(var he="",ne=!1,ce=b+1;ce<=f.end.row;ce++)if(this.$annotations[ce]){if(this.$annotations[ce].className===" ace_error"){ne=!0,he=" ace_error_fold";break}this.$annotations[ce].className===" ace_security"?(ne=!0,he=" ace_security_fold"):this.$annotations[ce].className===" ace_warning"&&he!==" ace_security_fold"&&(ne=!0,he=" ace_warning_fold")}R+=he}else Q+=" ace_open";_.className!=Q&&(_.className=Q),p.setStyle(_.style,"height",k),p.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var se=O.getFoldWidgetRange(b);se?_.setAttribute("aria-label",a("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[se.start.row+1,se.end.row+1])):f?_.setAttribute("aria-label",a("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[f.start.row+1,f.end.row+1])):_.setAttribute("aria-label",a("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),J?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",a("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",a("gutter.code-folding.open.title","Fold code")))}else _&&(p.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));var de=this.session.$gutterCustomWidgets[b];if(de?this.$addCustomWidget(b,de,i):L&&this.$removeCustomWidget(b,i),ne&&this.$showFoldedAnnotations){C.className="ace_gutter_annotation",F.className=B,F.className+=he,p.setStyle(F.style,"height",k),p.setStyle(C.style,"display","block"),p.setStyle(C.style,"height",k);var me;switch(he){case" ace_error_fold":me=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security_fold":me=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning_fold":me=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break}C.setAttribute("aria-label",me),C.setAttribute("tabindex","-1"),C.setAttribute("role","button")}else if(this.$annotations[b]){C.className="ace_gutter_annotation",F.className=B,this.$useSvgGutterIcons?F.className+=this.$annotations[b].className:x.classList.add(this.$annotations[b].className.replace(" ","")),p.setStyle(F.style,"height",k),p.setStyle(C.style,"display","block"),p.setStyle(C.style,"height",k);var me;switch(this.$annotations[b].className){case" ace_error":me=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security":me=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning":me=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break;case" ace_info":me=a("gutter.annotation.aria-label.info","Info, read annotations row $0",[U]);break;case" ace_hint":me=a("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[U]);break}C.setAttribute("aria-label",me),C.setAttribute("tabindex","-1"),C.setAttribute("role","button")}else p.setStyle(C.style,"display","none"),C.removeAttribute("aria-label"),C.removeAttribute("role"),C.setAttribute("tabindex","0");return U!==T.data&&(T.data=U),x.className!=R&&(x.className=R),p.setStyle(i.element.style,"height",this.$lines.computeLineHeight(b,s,O)+"px"),p.setStyle(i.element.style,"top",this.$lines.computeLineTop(b,s,O)+"px"),i.text=U,C.style.display==="none"&&_.style.display==="none"&&!de?i.element.setAttribute("aria-hidden",!0):i.element.setAttribute("aria-hidden",!1),i},c.prototype.setHighlightGutterLine=function(i){this.$highlightGutterLine=i,!i&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},c.prototype.setShowLineNumbers=function(i){this.$renderer=!i&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(i){i?p.addCssClass(this.element,"ace_folding-enabled"):p.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=i,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$hideFoldWidget=function(i,s){var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.childNodes[1];b&&p.setStyle(b.style,"display","none")}},c.prototype.$showFoldWidget=function(i,s){var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.childNodes[1];b&&this.session.foldWidgets&&this.session.foldWidgets[f.row]&&p.setStyle(b.style,"display","inline-block")}},c.prototype.$getGutterCell=function(i){var s=this.$lines.cells,f=0,b=s.length-1;if(!(i<s[0].row||i>s[b].row)){for(;f<=b;){var x=Math.floor((f+b)/2),O=s[x];if(O.row>i)b=x-1;else if(O.row<i)f=x+1;else return O}return O}},c.prototype.$addCustomWidget=function(i,s,f){var b=s.className,x=s.label,O=s.title,T=s.callbacks;this.session.$gutterCustomWidgets[i]={className:b,label:x,title:O,callbacks:T},this.$hideFoldWidget(i,f);var _=f||this.$getGutterCell(i);if(_&&_.element){var C=_.element.querySelector(".ace_custom-widget");C&&C.remove(),C=p.createElement("span"),C.className="ace_custom-widget ".concat(b),C.setAttribute("tabindex","-1"),C.setAttribute("role","button"),C.setAttribute("aria-label",x),C.setAttribute("title",O),p.setStyle(C.style,"display","inline-block"),p.setStyle(C.style,"height","inherit"),T&&T.onClick&&C.addEventListener("click",function(L){T.onClick(L,i),L.stopPropagation()}),_.element.appendChild(C)}},c.prototype.$removeCustomWidget=function(i,s){delete this.session.$gutterCustomWidgets[i],this.$showFoldWidget(i,s);var f=s||this.$getGutterCell(i);if(f&&f.element){var b=f.element.querySelector(".ace_custom-widget");b&&f.element.removeChild(b)}},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var i=p.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(i.borderLeftWidth)||0)+(parseInt(i.paddingLeft)||0)+1,this.$padding.right=(parseInt(i.borderRightWidth)||0)+(parseInt(i.paddingRight)||0),this.$padding},c.prototype.getRegion=function(i){var s=this.$padding||this.$computePadding(),f=this.element.getBoundingClientRect();if(i.x<s.left+f.left)return"markers";if(this.$showFoldWidgets&&i.x>f.right-s.right)return"foldWidgets"},c})();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer=void 0,l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,g.implement(l.prototype,h);function u(c){var i=document.createTextNode("");c.appendChild(i);var s=p.createElement("span");c.appendChild(s);var f=p.createElement("span");c.appendChild(f);var b=p.createElement("span");return f.appendChild(b),c}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,r,v){var p=e("../range").Range,g=e("../lib/dom"),w=(function(){function d(a){this.element=g.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return d.prototype.setPadding=function(a){this.$padding=a},d.prototype.setSession=function(a){this.session=a},d.prototype.setMarkers=function(a){this.markers=a},d.prototype.elt=function(a,l){var u=this.i!=-1&&this.element.childNodes[this.i];u?this.i++:(u=document.createElement("div"),this.element.appendChild(u),this.i=-1),u.style.cssText=l,u.className=a},d.prototype.update=function(a){if(a){this.config=a,this.i=0;var l;for(var u in this.markers){var c=this.markers[u];if(!c.range){c.update(l,this,this.session,a);continue}var i=c.range.clipRows(a.firstRow,a.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),c.renderer){var s=this.$getTop(i.start.row,a),f=this.$padding+i.start.column*a.characterWidth;c.renderer(l,i,f,s,a)}else c.type=="fullLine"?this.drawFullLineMarker(l,i,c.clazz,a):c.type=="screenLine"?this.drawScreenLineMarker(l,i,c.clazz,a):i.isMultiLine()?c.type=="text"?this.drawTextMarker(l,i,c.clazz,a):this.drawMultiLineMarker(l,i,c.clazz,a):this.drawSingleLineMarker(l,i,c.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},d.prototype.$getTop=function(a,l){return(a-l.firstRowScreen)*l.lineHeight},d.prototype.drawTextMarker=function(a,l,u,c,i){for(var s=this.session,f=l.start.row,b=l.end.row,x=f,O=0,T=0,_=s.getScreenLastRowColumn(x),C=new p(x,l.start.column,x,T);x<=b;x++)C.start.row=C.end.row=x,C.start.column=x==f?l.start.column:s.getRowWrapIndent(x),C.end.column=_,O=T,T=_,_=x+1<b?s.getScreenLastRowColumn(x+1):x==b?0:l.end.column,this.drawSingleLineMarker(a,C,u+(x==f?" ace_start":"")+" ace_br"+h(x==f||x==f+1&&l.start.column,O<T,T>_,x==b),c,x==b?0:1,i)},d.prototype.drawMultiLineMarker=function(a,l,u,c,i){var s=this.$padding,f=c.lineHeight,b=this.$getTop(l.start.row,c),x=s+l.start.column*c.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var O=l.clone();O.end.row=O.start.row,O.end.column=this.session.getLine(O.start.row).length,this.drawBidiSingleLineMarker(a,O,u+" ace_br1 ace_start",c,null,i)}else this.elt(u+" ace_br1 ace_start","height:"+f+"px;right:"+s+"px;top:"+b+"px;left:"+x+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var O=l.clone();O.start.row=O.end.row,O.start.column=0,this.drawBidiSingleLineMarker(a,O,u+" ace_br12",c,null,i)}else{b=this.$getTop(l.end.row,c);var T=l.end.column*c.characterWidth;this.elt(u+" ace_br12","height:"+f+"px;width:"+T+"px;top:"+b+"px;left:"+s+"px;"+(i||""))}if(f=(l.end.row-l.start.row-1)*c.lineHeight,!(f<=0)){b=this.$getTop(l.start.row+1,c);var _=(l.start.column?1:0)|(l.end.column?0:8);this.elt(u+(_?" ace_br"+_:""),"height:"+f+"px;right:"+s+"px;top:"+b+"px;left:"+s+"px;"+(i||""))}},d.prototype.drawSingleLineMarker=function(a,l,u,c,i,s){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(a,l,u,c,i,s);var f=c.lineHeight,b=(l.end.column+(i||0)-l.start.column)*c.characterWidth,x=this.$getTop(l.start.row,c),O=this.$padding+l.start.column*c.characterWidth;this.elt(u,"height:"+f+"px;width:"+b+"px;top:"+x+"px;left:"+O+"px;"+(s||""))},d.prototype.drawBidiSingleLineMarker=function(a,l,u,c,i,s){var f=c.lineHeight,b=this.$getTop(l.start.row,c),x=this.$padding,O=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);O.forEach(function(T){this.elt(u,"height:"+f+"px;width:"+(T.width+(i||0))+"px;top:"+b+"px;left:"+(x+T.left)+"px;"+(s||""))},this)},d.prototype.drawFullLineMarker=function(a,l,u,c,i){var s=this.$getTop(l.start.row,c),f=c.lineHeight;l.start.row!=l.end.row&&(f+=this.$getTop(l.end.row,c)-s),this.elt(u,"height:"+f+"px;top:"+s+"px;left:0;right:0;"+(i||""))},d.prototype.drawScreenLineMarker=function(a,l,u,c,i){var s=this.$getTop(l.start.row,c),f=c.lineHeight;this.elt(u,"height:"+f+"px;top:"+s+"px;left:0;right:0;"+(i||""))},d})();w.prototype.$padding=0;function h(d,a,l,u){return(d?1:0)|(a?2:0)|(l?4:0)|(u?8:0)}r.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,r,v){var p=new Set(["text","rparen","lparen"]);r.isTextToken=function(g){return p.has(g)}}),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,r,v){var p=e("../lib/oop"),g=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,d=e("../lib/event_emitter").EventEmitter,a=e("../config").nls,l=e("./text_util").isTextToken,u=(function(){function c(i){this.dom=g,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",i.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return c.prototype.$updateEolChar=function(){var i=this.session.doc,s=i.getNewLineCharacter()==`
|
|
210
|
-
`&&i.getNewLineMode()!="windows",f=s?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=f)return this.EOL_CHAR=f,!0},c.prototype.setPadding=function(i){this.$padding=i,this.element.style.margin="0 "+i+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(i){this.$fontMetrics=i,this.$fontMetrics.on("changeCharacterSize",(function(s){this._signal("changeCharacterSize",s)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(i){this.session=i,i&&this.$computeTabString()},c.prototype.setShowInvisibles=function(i){return this.showInvisibles==i?!1:(this.showInvisibles=i,typeof i=="string"?(this.showSpaces=/tab/i.test(i),this.showTabs=/space/i.test(i),this.showEOL=/eol/i.test(i)):this.showSpaces=this.showTabs=this.showEOL=i,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(i){return this.displayIndentGuides==i?!1:(this.displayIndentGuides=i,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(i){return this.$highlightIndentGuides===i?!1:(this.$highlightIndentGuides=i,i)},c.prototype.$computeTabString=function(){var i=this.session.getTabSize();this.tabSize=i;for(var s=this.$tabStrings=[0],f=1;f<i+1;f++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=w.stringRepeat(this.TAB_CHAR,f),s.push(b)}else s.push(this.dom.createTextNode(w.stringRepeat(" ",f),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",O=this.showSpaces?" ace_invisible ace_invisible_space":"",T=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",C=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):T,b=this.dom.createElement("span");b.className=x+O,b.textContent=T,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=x+_,b.textContent=C,this.$tabStrings[" "]=b}},c.prototype.updateLines=function(i,s,f){if(this.config.lastRow!=i.lastRow||this.config.firstRow!=i.firstRow)return this.update(i);this.config=i;for(var b=Math.max(s,i.firstRow),x=Math.min(f,i.lastRow),O=this.element.childNodes,T=0,_=i.firstRow;_<b;_++){var C=this.session.getFoldLine(_);if(C)if(C.containsRow(b)){b=C.start.row;break}else _=C.end.row;T++}for(var L=!1,_=b,C=this.session.getNextFoldLine(_),F=C?C.start.row:1/0;_>F&&(_=C.end.row+1,C=this.session.getNextFoldLine(_,C),F=C?C.start.row:1/0),!(_>x);){var E=O[T++];if(E){this.dom.removeChildren(E),this.$renderLine(E,_,_==F?C:!1),L&&(E.style.top=this.$lines.computeLineTop(_,i,this.session)+"px");var I=i.lineHeight*this.session.getRowLength(_)+"px";E.style.height!=I&&(L=!0,E.style.height=I)}_++}if(L)for(;T<this.$lines.cells.length;){var z=this.$lines.cells[T++];z.element.style.top=this.$lines.computeLineTop(z.row,i,this.session)+"px"}},c.prototype.scrollLines=function(i){var s=this.config;if(this.config=i,this.$lines.pageChanged(s,i))return this.update(i);this.$lines.moveContainer(i);var f=i.lastRow,b=s?s.lastRow:-1;if(!s||b<i.firstRow)return this.update(i);if(f<s.firstRow)return this.update(i);if(!s||s.lastRow<i.firstRow)return this.update(i);if(i.lastRow<s.firstRow)return this.update(i);if(s.firstRow<i.firstRow)for(var x=this.session.getFoldedRowCount(s.firstRow,i.firstRow-1);x>0;x--)this.$lines.shift();if(s.lastRow>i.lastRow)for(var x=this.session.getFoldedRowCount(i.lastRow+1,s.lastRow);x>0;x--)this.$lines.pop();i.firstRow<s.firstRow&&this.$lines.unshift(this.$renderLinesFragment(i,i.firstRow,s.firstRow-1)),i.lastRow>s.lastRow&&this.$lines.push(this.$renderLinesFragment(i,s.lastRow+1,i.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(i,s,f){for(var b=[],x=s,O=this.session.getNextFoldLine(x),T=O?O.start.row:1/0;x>T&&(x=O.end.row+1,O=this.session.getNextFoldLine(x,O),T=O?O.start.row:1/0),!(x>f);){var _=this.$lines.createCell(x,i,this.session),C=_.element;this.dom.removeChildren(C),g.setStyle(C.style,"height",this.$lines.computeLineHeight(x,i,this.session)+"px"),g.setStyle(C.style,"top",this.$lines.computeLineTop(x,i,this.session)+"px"),this.$renderLine(C,x,x==T?O:!1),this.$useLineGroups()?C.className="ace_line_group":C.className="ace_line",b.push(_),x++}return b},c.prototype.update=function(i){this.$lines.moveContainer(i),this.config=i;for(var s=i.firstRow,f=i.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(i,s,f))},c.prototype.$renderToken=function(i,s,f,b){for(var x=this,O=/(\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,T=this.dom.createFragment(this.element),_,C=0;_=O.exec(b);){var L=_[1],F=_[2],E=_[3],I=_[4],z=_[5];if(!(!x.showSpaces&&F)){var P=C!=_.index?b.slice(C,_.index):"";if(C=_.index+_[0].length,P&&T.appendChild(this.dom.createTextNode(P,this.element)),L){var N=x.session.getScreenTabSize(s+_.index),S=x.$tabStrings[N].cloneNode(!0);S.charCount=1,T.appendChild(S),s+=N-1}else if(F)if(x.showSpaces){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space",k.textContent=w.stringRepeat(x.SPACE_CHAR,F.length),T.appendChild(k)}else T.appendChild(this.dom.createTextNode(F,this.element));else if(E){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space ace_invalid",k.textContent=w.stringRepeat(x.SPACE_CHAR,E.length),T.appendChild(k)}else if(I){s+=1;var k=this.dom.createElement("span");k.style.width=x.config.characterWidth*2+"px",k.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k.textContent=x.showSpaces?x.SPACE_CHAR:I,T.appendChild(k)}else if(z){s+=1;var k=this.dom.createElement("span");k.style.width=x.config.characterWidth*2+"px",k.className="ace_cjk",k.textContent=z,T.appendChild(k)}}}if(T.appendChild(this.dom.createTextNode(C?b.slice(C):b,this.element)),l(f.type))i.appendChild(T);else{var R="ace_"+f.type.replace(/\./g," ace_"),k=this.dom.createElement("span");f.type=="fold"&&(k.style.width=f.value.length*this.config.characterWidth+"px",k.setAttribute("title",a("inline-fold.closed.title","Unfold code"))),k.className=R,k.appendChild(T),i.appendChild(k)}return s+b.length},c.prototype.renderIndentGuide=function(i,s,f){var b=s.search(this.$indentGuideRe);if(b<=0||b>=f)return s;if(s[0]==" "){b-=b%this.tabSize;for(var x=b/this.tabSize,O=0;O<x;O++)i.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),s.substr(b)}else if(s[0]==" "){for(var O=0;O<b;O++)i.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),s.substr(b)}return this.$highlightIndentGuide(),s},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var i=this.session.doc.$lines;if(i){var s=this.session.selection.getCursor(),f=/^\s*/.exec(this.session.doc.getLine(s.row))[0].length,b=Math.floor(f/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:s.row};var x=this.session.$bracketHighlight;if(x){for(var O=this.session.$bracketHighlight.ranges,T=0;T<O.length;T++)if(s.row!==O[T].start.row){this.$highlightIndentGuideMarker.end=O[T].start.row+1,s.row>O[T].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&i[s.row]!==""&&s.column===i[s.row].length){this.$highlightIndentGuideMarker.dir=1;for(var T=s.row+1;T<i.length;T++){var _=i[T],C=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=T,C<=f))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var i=this.element.querySelectorAll(".ace_indent-guide-active"),s=0;s<i.length;s++)i[s].classList.remove("ace_indent-guide-active")},c.prototype.$setIndentGuideActive=function(i,s){var f=this.session.doc.getLine(i.row);if(f!==""){var b=i.element;if(i.element.classList&&i.element.classList.contains("ace_line_group"))if(i.element.childNodes.length>0)b=i.element.childNodes[0];else return;var x=b.childNodes;if(x){var O=x[s-1];O&&O.classList&&O.classList.contains("ace_indent-guide")&&O.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var i=this.$lines.cells;this.$clearActiveIndentGuide();var s=this.$highlightIndentGuideMarker.indentLevel;if(s!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var f=0;f<i.length;f++){var b=i[f];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,s)}}else for(var f=i.length-1;f>=0;f--){var b=i[f];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,s)}}}},c.prototype.$createLineElement=function(i){var s=this.dom.createElement("div");return s.className="ace_line",s.style.height=this.config.lineHeight+"px",s},c.prototype.$renderWrappedLine=function(i,s,f){var b=0,x=0,O=f[0],T=0,_=this.$createLineElement();i.appendChild(_);for(var C=0;C<s.length;C++){var L=s[C],F=L.value;if(C==0&&this.displayIndentGuides){if(b=F.length,F=this.renderIndentGuide(_,F,O),!F)continue;b-=F.length}if(b+F.length<O)T=this.$renderToken(_,T,L,F),b+=F.length;else{for(;b+F.length>=O;){T=this.$renderToken(_,T,L,F.substring(0,O-b)),F=F.substring(O-b),b=O,_=this.$createLineElement(),i.appendChild(_);var E=this.dom.createTextNode(w.stringRepeat(" ",f.indent),this.element);E.charCount=0,_.appendChild(E),x++,T=0,O=f[x]||Number.MAX_VALUE}F.length!=0&&(b+=F.length,T=this.$renderToken(_,T,L,F))}}f[f.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,T,null,"",!0)},c.prototype.$renderSimpleLine=function(i,s){for(var f=0,b=0;b<s.length;b++){var x=s[b],O=x.value;if(!(b==0&&this.displayIndentGuides&&(O=this.renderIndentGuide(i,O),!O))){if(f+O.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(i,f,x,O);f=this.$renderToken(i,f,x,O)}}},c.prototype.$renderOverflowMessage=function(i,s,f,b,x){f&&this.$renderToken(i,s,f,b.slice(0,this.MAX_LINE_LENGTH-s));var O=this.dom.createElement("span");O.className="ace_inline_button ace_keyword ace_toggle_wrap",O.textContent=x?"<hide>":"<click to see more...>",i.appendChild(O)},c.prototype.$renderLine=function(i,s,f){if(!f&&f!=!1&&(f=this.session.getFoldLine(s)),f)var b=this.$getFoldLineTokens(s,f);else var b=this.session.getTokens(s);var x=i;if(b.length){var O=this.session.getRowSplitData(s);if(O&&O.length){this.$renderWrappedLine(i,b,O);var x=i.lastChild}else{var x=i;this.$useLineGroups()&&(x=this.$createLineElement(),i.appendChild(x)),this.$renderSimpleLine(x,b)}}else this.$useLineGroups()&&(x=this.$createLineElement(),i.appendChild(x));if(this.showEOL&&x){f&&(s=f.end.row);var T=this.dom.createElement("span");T.className="ace_invisible ace_invisible_eol",T.textContent=s==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(T)}},c.prototype.$getFoldLineTokens=function(i,s){var f=this.session,b=[];function x(T,_,C){for(var L=0,F=0;F+T[L].value.length<_;)if(F+=T[L].value.length,L++,L==T.length)return;if(F!=_){var E=T[L].value.substring(_-F);E.length>C-_&&(E=E.substring(0,C-_)),b.push({type:T[L].type,value:E}),F=_+E.length,L+=1}for(;F<C&&L<T.length;){var E=T[L].value;E.length+F>C?b.push({type:T[L].type,value:E.substring(0,C-F)}):b.push(T[L]),F+=E.length,L+=1}}var O=f.getTokens(i);return s.walk(function(T,_,C,L,F){T!=null?b.push({type:"fold",value:T}):(F&&(O=f.getTokens(_)),O.length&&x(O,L,C))},s.end.row,this.session.getLine(s.end.row).length),b},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c})();u.prototype.EOF_CHAR="¶",u.prototype.EOL_CHAR_LF="¬",u.prototype.EOL_CHAR_CRLF="¤",u.prototype.EOL_CHAR=u.prototype.EOL_CHAR_LF,u.prototype.TAB_CHAR="—",u.prototype.SPACE_CHAR="·",u.prototype.$padding=0,u.prototype.MAX_LINE_LENGTH=1e4,u.prototype.showInvisibles=!1,u.prototype.showSpaces=!1,u.prototype.showTabs=!1,u.prototype.showEOL=!1,u.prototype.displayIndentGuides=!0,u.prototype.$highlightIndentGuides=!0,u.prototype.$tabStrings=[],u.prototype.destroy={},u.prototype.onChangeTabSize=u.prototype.$computeTabString,p.implement(u.prototype,d),r.Text=u}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,r,v){var p=e("../lib/dom"),g=(function(){function w(h){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var d=this.cursors,a=d.length;a--;)p.setStyle(d[a].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,d=h.length;d--;)h[d].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,p.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=p.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,p.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&p.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),p.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var d=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),d()},this.blinkInterval),d()}},w.prototype.getPixelPosition=function(h,d){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(h),l=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,h.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),u=(a.row-(d?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:u}},w.prototype.isCursorInView=function(h,d){return h.top>=0&&h.top<d.maxHeight},w.prototype.update=function(h){this.config=h;var d=this.session.$selectionMarkers,a=0,l=0;(d===void 0||d.length===0)&&(d=[{cursor:null}]);for(var a=0,u=d.length;a<u;a++){var c=this.getPixelPosition(d[a].cursor,!0);if(!((c.top>h.height+h.offset||c.top<0)&&a>1)){var i=this.cursors[l++]||this.addCursor(),s=i.style;this.drawCursor?this.drawCursor(i,c,h,d[a],this.session):this.isCursorInView(c,h)?(p.setStyle(s,"display","block"),p.translate(i,c.left,c.top),p.setStyle(s,"width",Math.round(h.characterWidth)+"px"),p.setStyle(s,"height",h.lineHeight+"px")):p.setStyle(s,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var f=this.session.getOverwrite();this.$setOverwrite(f),this.$pixelPos=c,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w})();g.prototype.$padding=0,g.prototype.drawCursor=null,r.Cursor=g}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,v){var p=this&&this.__extends||(function(){var i=function(s,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&(b[O]=x[O])},i(s,f)};return function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");i(s,f);function b(){this.constructor=s}s.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}})(),g=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),d=e("./lib/event_emitter").EventEmitter,a=32768,l=(function(){function i(s,f){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+f,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),s.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 i.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},i})();g.implement(l.prototype,d);var u=(function(i){p(s,i);function s(f,b){var x=i.call(this,f,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,b.$scrollbarWidth=x.width=w.scrollbarWidth(f.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return s.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var f=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-f)/(this.coeff-f)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},s.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},s.prototype.setHeight=function(f){this.element.style.height=f+"px"},s.prototype.setScrollHeight=function(f){this.scrollHeight=f,f>a?(this.coeff=a/f,f=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=f+"px"},s.prototype.setScrollTop=function(f){this.scrollTop!=f&&(this.skipEvent=!0,this.scrollTop=f,this.element.scrollTop=f*this.coeff)},s})(l);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var c=(function(i){p(s,i);function s(f,b){var x=i.call(this,f,"-h")||this;return x.scrollLeft=0,x.height=b.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return s.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},s.prototype.getHeight=function(){return this.isVisible?this.height:0},s.prototype.setWidth=function(f){this.element.style.width=f+"px"},s.prototype.setInnerWidth=function(f){this.inner.style.width=f+"px"},s.prototype.setScrollWidth=function(f){this.inner.style.width=f+"px"},s.prototype.setScrollLeft=function(f){this.scrollLeft!=f&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=f)},s})(l);r.ScrollBar=u,r.ScrollBarV=u,r.ScrollBarH=c,r.VScrollBar=u,r.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,v){var p=this&&this.__extends||(function(){var c=function(i,s){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(f[x]=b[x])},c(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");c(i,s);function f(){this.constructor=i}i.prototype=s===null?Object.create(s):(f.prototype=s.prototype,new f)}})(),g=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),d=e("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
211
|
-
position: absolute;
|
|
212
|
-
background: rgba(128, 128, 128, 0.6);
|
|
213
|
-
-moz-box-sizing: border-box;
|
|
214
|
-
box-sizing: border-box;
|
|
215
|
-
border: 1px solid #bbb;
|
|
216
|
-
border-radius: 2px;
|
|
217
|
-
z-index: 8;
|
|
218
|
-
}
|
|
219
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
220
|
-
position: absolute;
|
|
221
|
-
z-index: 6;
|
|
222
|
-
background: none;
|
|
223
|
-
overflow: hidden!important;
|
|
224
|
-
}
|
|
225
|
-
.ace_editor>.ace_sb-v {
|
|
226
|
-
z-index: 6;
|
|
227
|
-
right: 0;
|
|
228
|
-
top: 0;
|
|
229
|
-
width: 12px;
|
|
230
|
-
}
|
|
231
|
-
.ace_editor>.ace_sb-v div {
|
|
232
|
-
z-index: 8;
|
|
233
|
-
right: 0;
|
|
234
|
-
width: 100%;
|
|
235
|
-
}
|
|
236
|
-
.ace_editor>.ace_sb-h {
|
|
237
|
-
bottom: 0;
|
|
238
|
-
left: 0;
|
|
239
|
-
height: 12px;
|
|
240
|
-
}
|
|
241
|
-
.ace_editor>.ace_sb-h div {
|
|
242
|
-
bottom: 0;
|
|
243
|
-
height: 100%;
|
|
244
|
-
}
|
|
245
|
-
.ace_editor>.ace_sb_grabbed {
|
|
246
|
-
z-index: 8;
|
|
247
|
-
background: #000;
|
|
248
|
-
}`,"ace_scrollbar.css",!1);var a=(function(){function c(i,s){this.element=w.createElement("div"),this.element.className="ace_sb"+s,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1},c})();g.implement(a.prototype,d);var l=(function(c){p(i,c);function i(s,f){var b=c.call(this,s,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=s,b.width=b.VScrollWidth,b.renderer=f,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return i.prototype.onMouseDown=function(s,f){if(s==="mousedown"&&!(h.getButton(f)!==0||f.detail===2)){if(f.target===this.inner){var b=this,x=f.clientY,O=function(I){x=I.clientY},T=function(){clearInterval(F)},_=f.clientY,C=this.thumbTop,L=function(){if(x!==void 0){var I=b.scrollTopFromThumbTop(C+x-_);I!==b.scrollTop&&b._emit("scroll",{data:I})}};h.capture(this.inner,O,T);var F=setInterval(L,20);return h.preventDefault(f)}var E=f.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),h.preventDefault(f)}},i.prototype.getHeight=function(){return this.height},i.prototype.scrollTopFromThumbTop=function(s){var f=s*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return f=f>>0,f<0?f=0:f>this.pageHeight-this.viewHeight&&(f=this.pageHeight-this.viewHeight),f},i.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},i.prototype.setHeight=function(s){this.height=Math.max(0,s),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},i.prototype.setScrollHeight=function(s,f){this.pageHeight===s&&!f||(this.pageHeight=s,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})))},i.prototype.setScrollTop=function(s){this.scrollTop=s,s<0&&(s=0),this.thumbTop=s*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},i})(a);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var u=(function(c){p(i,c);function i(s,f){var b=c.call(this,s,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=f,b}return i.prototype.onMouseDown=function(s,f){if(s==="mousedown"&&!(h.getButton(f)!==0||f.detail===2)){if(f.target===this.inner){var b=this,x=f.clientX,O=function(I){x=I.clientX},T=function(){clearInterval(F)},_=f.clientX,C=this.thumbLeft,L=function(){if(x!==void 0){var I=b.scrollLeftFromThumbLeft(C+x-_);I!==b.scrollLeft&&b._emit("scroll",{data:I})}};h.capture(this.inner,O,T);var F=setInterval(L,20);return h.preventDefault(f)}var E=f.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),h.preventDefault(f)}},i.prototype.getHeight=function(){return this.isVisible?this.height:0},i.prototype.scrollLeftFromThumbLeft=function(s){var f=s*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return f=f>>0,f<0?f=0:f>this.pageWidth-this.viewWidth&&(f=this.pageWidth-this.viewWidth),f},i.prototype.setWidth=function(s){this.width=Math.max(0,s),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},i.prototype.setScrollWidth=function(s,f){this.pageWidth===s&&!f||(this.pageWidth=s,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})))},i.prototype.setScrollLeft=function(s){this.scrollLeft=s,s<0&&(s=0),this.thumbLeft=s*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},i})(a);u.prototype.setInnerWidth=u.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=u,r.VScrollBar=l,r.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,r,v){var p=e("./lib/event"),g=(function(){function w(h,d){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=d||window;var a=this;this._flush=function(l){a.pending=!1;var u=a.changes;if(u&&(p.blockIdle(100),a.changes=0,a.onRender(u)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return w.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var d=this.changes;return this.changes=0,d},w})();r.RenderLoop=g}),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,r,v){var p=e("../lib/oop"),g=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),d=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=512,u=typeof ResizeObserver=="function",c=200,i=(function(){function s(f){this.el=g.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=g.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=g.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),f.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",l),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()}return s.prototype.$setMeasureNodeStyles=function(f,b){f.width=f.height="auto",f.left=f.top="0px",f.visibility="hidden",f.position="absolute",f.whiteSpace="pre",d.isIE<8?f["font-family"]="inherit":f.font="inherit",f.overflow=b?"hidden":"visible"},s.prototype.checkForSizeChanges=function(f){if(f===void 0&&(f=this.$measureSizes()),f&&(this.$characterSize.width!==f.width||this.$characterSize.height!==f.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=f,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===f.width&&b.height===f.height,this._emit("changeCharacterSize",{data:f})}},s.prototype.$addObserver=function(){var f=this;this.$observer=new window.ResizeObserver(function(b){f.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},s.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var f=this;return this.$pollSizeChangesTimer=h.onIdle(function b(){f.checkForSizeChanges(),h.onIdle(b,500)},500)},s.prototype.setPolling=function(f){f?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},s.prototype.$measureSizes=function(f){var b={height:(f||this.$measureNode).clientHeight,width:(f||this.$measureNode).clientWidth/l};return b.width===0||b.height===0?null:b},s.prototype.$measureCharWidth=function(f){this.$main.textContent=w.stringRepeat(f,l);var b=this.$main.getBoundingClientRect();return b.width/l},s.prototype.getCharacterWidth=function(f){var b=this.charSizes[f];return b===void 0&&(b=this.charSizes[f]=this.$measureCharWidth(f)/this.$characterSize.width),b},s.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},s.prototype.$getZoom=function(f){return!f||!f.parentElement?1:(Number(window.getComputedStyle(f).zoom)||1)*this.$getZoom(f.parentElement)},s.prototype.$initTransformMeasureNodes=function(){var f=function(b,x){return["div",{style:"position: absolute;top:"+b+"px;left:"+x+"px;"}]};this.els=g.buildDom([f(0,0),f(c,0),f(0,c),f(c,c)],this.el)},s.prototype.transformCoordinates=function(f,b){if(f){var x=this.$getZoom(this.el);f=C(1/x,f)}function O(Q,J,he){var ne=Q[1]*J[0]-Q[0]*J[1];return[(-J[1]*he[0]+J[0]*he[1])/ne,(+Q[1]*he[0]-Q[0]*he[1])/ne]}function T(Q,J){return[Q[0]-J[0],Q[1]-J[1]]}function _(Q,J){return[Q[0]+J[0],Q[1]+J[1]]}function C(Q,J){return[Q*J[0],Q*J[1]]}this.els||this.$initTransformMeasureNodes();function L(Q){var J=Q.getBoundingClientRect();return[J.left,J.top]}var F=L(this.els[0]),E=L(this.els[1]),I=L(this.els[2]),z=L(this.els[3]),P=O(T(z,E),T(z,I),T(_(E,I),_(z,F))),N=C(1+P[0],T(E,F)),S=C(1+P[1],T(I,F));if(b){var k=b,R=P[0]*k[0]/c+P[1]*k[1]/c+1,B=_(C(k[0],N),C(k[1],S));return _(C(1/R/c,B),F)}var U=T(f,F),q=O(T(N,C(P[0],U)),T(S,C(P[1],U)),U);return C(c,q)},s})();i.prototype.$characterSize={width:0,height:0},p.implement(i.prototype,a),r.FontMetrics=i}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,r,v){v.exports=`
|
|
249
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
|
250
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
|
251
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
252
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
253
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
254
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
255
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
256
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
257
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
258
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
259
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
260
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
261
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
262
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
263
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
.ace_editor {
|
|
267
|
-
position: relative;
|
|
268
|
-
overflow: hidden;
|
|
269
|
-
padding: 0;
|
|
270
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
271
|
-
direction: ltr;
|
|
272
|
-
text-align: left;
|
|
273
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
274
|
-
forced-color-adjust: none;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.ace_scroller {
|
|
278
|
-
position: absolute;
|
|
279
|
-
overflow: hidden;
|
|
280
|
-
top: 0;
|
|
281
|
-
bottom: 0;
|
|
282
|
-
background-color: inherit;
|
|
283
|
-
-ms-user-select: none;
|
|
284
|
-
-moz-user-select: none;
|
|
285
|
-
-webkit-user-select: none;
|
|
286
|
-
user-select: none;
|
|
287
|
-
cursor: text;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.ace_content {
|
|
291
|
-
position: absolute;
|
|
292
|
-
box-sizing: border-box;
|
|
293
|
-
min-width: 100%;
|
|
294
|
-
contain: style size layout;
|
|
295
|
-
font-variant-ligatures: no-common-ligatures;
|
|
296
|
-
}
|
|
297
|
-
.ace_invisible {
|
|
298
|
-
font-variant-ligatures: none;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.ace_keyboard-focus:focus {
|
|
302
|
-
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
303
|
-
outline: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.ace_dragging .ace_scroller:before{
|
|
307
|
-
position: absolute;
|
|
308
|
-
top: 0;
|
|
309
|
-
left: 0;
|
|
310
|
-
right: 0;
|
|
311
|
-
bottom: 0;
|
|
312
|
-
content: '';
|
|
313
|
-
background: rgba(250, 250, 250, 0.01);
|
|
314
|
-
z-index: 1000;
|
|
315
|
-
}
|
|
316
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
|
317
|
-
background: rgba(0, 0, 0, 0.01);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.ace_gutter {
|
|
321
|
-
position: absolute;
|
|
322
|
-
overflow : hidden;
|
|
323
|
-
width: auto;
|
|
324
|
-
top: 0;
|
|
325
|
-
bottom: 0;
|
|
326
|
-
left: 0;
|
|
327
|
-
cursor: default;
|
|
328
|
-
z-index: 4;
|
|
329
|
-
-ms-user-select: none;
|
|
330
|
-
-moz-user-select: none;
|
|
331
|
-
-webkit-user-select: none;
|
|
332
|
-
user-select: none;
|
|
333
|
-
contain: style size layout;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.ace_gutter-active-line {
|
|
337
|
-
position: absolute;
|
|
338
|
-
left: 0;
|
|
339
|
-
right: 0;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.ace_scroller.ace_scroll-left:after {
|
|
343
|
-
content: "";
|
|
344
|
-
position: absolute;
|
|
345
|
-
top: 0;
|
|
346
|
-
right: 0;
|
|
347
|
-
bottom: 0;
|
|
348
|
-
left: 0;
|
|
349
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
350
|
-
pointer-events: none;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
354
|
-
position: absolute;
|
|
355
|
-
top: 0;
|
|
356
|
-
left: 0;
|
|
357
|
-
right: 0;
|
|
358
|
-
padding-left: 19px;
|
|
359
|
-
padding-right: 6px;
|
|
360
|
-
background-repeat: no-repeat;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
364
|
-
margin-left: -14px;
|
|
365
|
-
float: left;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.ace_gutter-cell .ace_gutter_annotation {
|
|
369
|
-
margin-left: -19px;
|
|
370
|
-
float: left;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.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 {
|
|
374
|
-
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==");
|
|
375
|
-
background-repeat: no-repeat;
|
|
376
|
-
background-position: 2px center;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
380
|
-
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==");
|
|
381
|
-
background-repeat: no-repeat;
|
|
382
|
-
background-position: 2px center;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
386
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
387
|
-
background-repeat: no-repeat;
|
|
388
|
-
background-position: 2px center;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.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 {
|
|
392
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.ace_icon_svg.ace_error {
|
|
396
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
397
|
-
background-color: crimson;
|
|
398
|
-
}
|
|
399
|
-
.ace_icon_svg.ace_security {
|
|
400
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
401
|
-
background-color: crimson;
|
|
402
|
-
}
|
|
403
|
-
.ace_icon_svg.ace_warning {
|
|
404
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
405
|
-
background-color: darkorange;
|
|
406
|
-
}
|
|
407
|
-
.ace_icon_svg.ace_info {
|
|
408
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
409
|
-
background-color: royalblue;
|
|
410
|
-
}
|
|
411
|
-
.ace_icon_svg.ace_hint {
|
|
412
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
413
|
-
background-color: silver;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.ace_icon_svg.ace_error_fold {
|
|
417
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
418
|
-
background-color: crimson;
|
|
419
|
-
}
|
|
420
|
-
.ace_icon_svg.ace_security_fold {
|
|
421
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
422
|
-
background-color: crimson;
|
|
423
|
-
}
|
|
424
|
-
.ace_icon_svg.ace_warning_fold {
|
|
425
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
426
|
-
background-color: darkorange;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.ace_scrollbar {
|
|
430
|
-
contain: strict;
|
|
431
|
-
position: absolute;
|
|
432
|
-
right: 0;
|
|
433
|
-
bottom: 0;
|
|
434
|
-
z-index: 6;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.ace_scrollbar-inner {
|
|
438
|
-
position: absolute;
|
|
439
|
-
cursor: text;
|
|
440
|
-
left: 0;
|
|
441
|
-
top: 0;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.ace_scrollbar-v{
|
|
445
|
-
overflow-x: hidden;
|
|
446
|
-
overflow-y: scroll;
|
|
447
|
-
top: 0;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.ace_scrollbar-h {
|
|
451
|
-
overflow-x: scroll;
|
|
452
|
-
overflow-y: hidden;
|
|
453
|
-
left: 0;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.ace_print-margin {
|
|
457
|
-
position: absolute;
|
|
458
|
-
height: 100%;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.ace_text-input {
|
|
462
|
-
position: absolute;
|
|
463
|
-
z-index: 0;
|
|
464
|
-
width: 0.5em;
|
|
465
|
-
height: 1em;
|
|
466
|
-
opacity: 0;
|
|
467
|
-
background: transparent;
|
|
468
|
-
-moz-appearance: none;
|
|
469
|
-
appearance: none;
|
|
470
|
-
border: none;
|
|
471
|
-
resize: none;
|
|
472
|
-
outline: none;
|
|
473
|
-
overflow: hidden;
|
|
474
|
-
font: inherit;
|
|
475
|
-
padding: 0 1px;
|
|
476
|
-
margin: 0 -1px;
|
|
477
|
-
contain: strict;
|
|
478
|
-
-ms-user-select: text;
|
|
479
|
-
-moz-user-select: text;
|
|
480
|
-
-webkit-user-select: text;
|
|
481
|
-
user-select: text;
|
|
482
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
|
483
|
-
white-space: pre!important;
|
|
484
|
-
}
|
|
485
|
-
.ace_text-input.ace_composition {
|
|
486
|
-
background: transparent;
|
|
487
|
-
color: inherit;
|
|
488
|
-
z-index: 1000;
|
|
489
|
-
opacity: 1;
|
|
490
|
-
}
|
|
491
|
-
.ace_composition_placeholder { color: transparent }
|
|
492
|
-
.ace_composition_marker {
|
|
493
|
-
border-bottom: 1px solid;
|
|
494
|
-
position: absolute;
|
|
495
|
-
border-radius: 0;
|
|
496
|
-
margin-top: 1px;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
[ace_nocontext=true] {
|
|
500
|
-
transform: none!important;
|
|
501
|
-
filter: none!important;
|
|
502
|
-
clip-path: none!important;
|
|
503
|
-
mask : none!important;
|
|
504
|
-
contain: none!important;
|
|
505
|
-
perspective: none!important;
|
|
506
|
-
mix-blend-mode: initial!important;
|
|
507
|
-
z-index: auto;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.ace_layer {
|
|
511
|
-
z-index: 1;
|
|
512
|
-
position: absolute;
|
|
513
|
-
overflow: hidden;
|
|
514
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
515
|
-
word-wrap: normal;
|
|
516
|
-
white-space: pre;
|
|
517
|
-
height: 100%;
|
|
518
|
-
width: 100%;
|
|
519
|
-
box-sizing: border-box;
|
|
520
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
521
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
|
522
|
-
pointer-events: none;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
.ace_gutter-layer {
|
|
526
|
-
position: relative;
|
|
527
|
-
width: auto;
|
|
528
|
-
text-align: right;
|
|
529
|
-
pointer-events: auto;
|
|
530
|
-
height: 1000000px;
|
|
531
|
-
contain: style size layout;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.ace_text-layer {
|
|
535
|
-
font: inherit !important;
|
|
536
|
-
position: absolute;
|
|
537
|
-
height: 1000000px;
|
|
538
|
-
width: 1000000px;
|
|
539
|
-
contain: style size layout;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
543
|
-
contain: style size layout;
|
|
544
|
-
position: absolute;
|
|
545
|
-
top: 0;
|
|
546
|
-
left: 0;
|
|
547
|
-
right: 0;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
.ace_hidpi .ace_text-layer,
|
|
551
|
-
.ace_hidpi .ace_gutter-layer,
|
|
552
|
-
.ace_hidpi .ace_content,
|
|
553
|
-
.ace_hidpi .ace_gutter {
|
|
554
|
-
contain: strict;
|
|
555
|
-
}
|
|
556
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
|
557
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
558
|
-
contain: strict;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.ace_cjk {
|
|
562
|
-
display: inline-block;
|
|
563
|
-
text-align: center;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
.ace_cursor-layer {
|
|
567
|
-
z-index: 4;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.ace_cursor {
|
|
571
|
-
z-index: 4;
|
|
572
|
-
position: absolute;
|
|
573
|
-
box-sizing: border-box;
|
|
574
|
-
border-left: 2px solid;
|
|
575
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
576
|
-
transform: translatez(0);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.ace_multiselect .ace_cursor {
|
|
580
|
-
border-left-width: 1px;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
.ace_slim-cursors .ace_cursor {
|
|
584
|
-
border-left-width: 1px;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.ace_overwrite-cursors .ace_cursor {
|
|
588
|
-
border-left-width: 0;
|
|
589
|
-
border-bottom: 1px solid;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.ace_hidden-cursors .ace_cursor {
|
|
593
|
-
opacity: 0.2;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
597
|
-
opacity: 0;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
.ace_smooth-blinking .ace_cursor {
|
|
601
|
-
transition: opacity 0.18s;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.ace_animate-blinking .ace_cursor {
|
|
605
|
-
animation-duration: 1000ms;
|
|
606
|
-
animation-timing-function: step-end;
|
|
607
|
-
animation-name: blink-ace-animate;
|
|
608
|
-
animation-iteration-count: infinite;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
612
|
-
animation-duration: 1000ms;
|
|
613
|
-
animation-timing-function: ease-in-out;
|
|
614
|
-
animation-name: blink-ace-animate-smooth;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
@keyframes blink-ace-animate {
|
|
618
|
-
from, to { opacity: 1; }
|
|
619
|
-
60% { opacity: 0; }
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
@keyframes blink-ace-animate-smooth {
|
|
623
|
-
from, to { opacity: 1; }
|
|
624
|
-
45% { opacity: 1; }
|
|
625
|
-
60% { opacity: 0; }
|
|
626
|
-
85% { opacity: 0; }
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
630
|
-
position: absolute;
|
|
631
|
-
z-index: 3;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
.ace_marker-layer .ace_selection {
|
|
635
|
-
position: absolute;
|
|
636
|
-
z-index: 5;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
.ace_marker-layer .ace_bracket {
|
|
640
|
-
position: absolute;
|
|
641
|
-
z-index: 6;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
.ace_marker-layer .ace_error_bracket {
|
|
645
|
-
position: absolute;
|
|
646
|
-
border-bottom: 1px solid #DE5555;
|
|
647
|
-
border-radius: 0;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.ace_marker-layer .ace_active-line {
|
|
651
|
-
position: absolute;
|
|
652
|
-
z-index: 2;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
.ace_marker-layer .ace_selected-word {
|
|
656
|
-
position: absolute;
|
|
657
|
-
z-index: 4;
|
|
658
|
-
box-sizing: border-box;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.ace_line .ace_fold {
|
|
662
|
-
box-sizing: border-box;
|
|
663
|
-
|
|
664
|
-
display: inline-block;
|
|
665
|
-
height: 11px;
|
|
666
|
-
margin-top: -2px;
|
|
667
|
-
vertical-align: middle;
|
|
668
|
-
|
|
669
|
-
background-image:
|
|
670
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
671
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
672
|
-
background-repeat: no-repeat, repeat-x;
|
|
673
|
-
background-position: center center, top left;
|
|
674
|
-
color: transparent;
|
|
675
|
-
|
|
676
|
-
border: 1px solid black;
|
|
677
|
-
border-radius: 2px;
|
|
678
|
-
|
|
679
|
-
cursor: pointer;
|
|
680
|
-
pointer-events: auto;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
.ace_dark .ace_fold {
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
.ace_fold:hover{
|
|
687
|
-
background-image:
|
|
688
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
689
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.ace_tooltip {
|
|
693
|
-
background-color: #f5f5f5;
|
|
694
|
-
border: 1px solid gray;
|
|
695
|
-
border-radius: 1px;
|
|
696
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
697
|
-
color: black;
|
|
698
|
-
padding: 3px 4px;
|
|
699
|
-
position: fixed;
|
|
700
|
-
z-index: 999999;
|
|
701
|
-
box-sizing: border-box;
|
|
702
|
-
cursor: default;
|
|
703
|
-
white-space: pre-wrap;
|
|
704
|
-
word-wrap: break-word;
|
|
705
|
-
line-height: normal;
|
|
706
|
-
font-style: normal;
|
|
707
|
-
font-weight: normal;
|
|
708
|
-
letter-spacing: normal;
|
|
709
|
-
pointer-events: none;
|
|
710
|
-
overflow: auto;
|
|
711
|
-
max-width: min(33em, 66vw);
|
|
712
|
-
overscroll-behavior: contain;
|
|
713
|
-
}
|
|
714
|
-
.ace_tooltip pre {
|
|
715
|
-
white-space: pre-wrap;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
.ace_tooltip.ace_dark {
|
|
719
|
-
background-color: #636363;
|
|
720
|
-
color: #fff;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
.ace_tooltip:focus {
|
|
724
|
-
outline: 1px solid #5E9ED6;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
.ace_icon {
|
|
728
|
-
display: inline-block;
|
|
729
|
-
width: 18px;
|
|
730
|
-
vertical-align: top;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
.ace_icon_svg {
|
|
734
|
-
display: inline-block;
|
|
735
|
-
width: 12px;
|
|
736
|
-
vertical-align: top;
|
|
737
|
-
-webkit-mask-repeat: no-repeat;
|
|
738
|
-
-webkit-mask-size: 12px;
|
|
739
|
-
-webkit-mask-position: center;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
743
|
-
padding-right: 13px;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.ace_fold-widget, .ace_custom-widget {
|
|
747
|
-
box-sizing: border-box;
|
|
748
|
-
|
|
749
|
-
margin: 0 -12px 0 1px;
|
|
750
|
-
display: none;
|
|
751
|
-
width: 11px;
|
|
752
|
-
vertical-align: top;
|
|
753
|
-
|
|
754
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
755
|
-
background-repeat: no-repeat;
|
|
756
|
-
background-position: center;
|
|
757
|
-
|
|
758
|
-
border-radius: 3px;
|
|
759
|
-
|
|
760
|
-
border: 1px solid transparent;
|
|
761
|
-
cursor: pointer;
|
|
762
|
-
pointer-events: auto;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
.ace_custom-widget {
|
|
766
|
-
background: none;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
.ace_folding-enabled .ace_fold-widget {
|
|
770
|
-
display: inline-block;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
.ace_fold-widget.ace_end {
|
|
774
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
.ace_fold-widget.ace_closed {
|
|
778
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.ace_fold-widget:hover {
|
|
782
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
783
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
784
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
.ace_fold-widget:active {
|
|
788
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
789
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
790
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
791
|
-
}
|
|
792
|
-
/**
|
|
793
|
-
* Dark version for fold widgets
|
|
794
|
-
*/
|
|
795
|
-
.ace_dark .ace_fold-widget {
|
|
796
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
797
|
-
}
|
|
798
|
-
.ace_dark .ace_fold-widget.ace_end {
|
|
799
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
800
|
-
}
|
|
801
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
|
802
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
803
|
-
}
|
|
804
|
-
.ace_dark .ace_fold-widget:hover {
|
|
805
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
806
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
807
|
-
}
|
|
808
|
-
.ace_dark .ace_fold-widget:active {
|
|
809
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
.ace_inline_button {
|
|
813
|
-
border: 1px solid lightgray;
|
|
814
|
-
display: inline-block;
|
|
815
|
-
margin: -1px 8px;
|
|
816
|
-
padding: 0 5px;
|
|
817
|
-
pointer-events: auto;
|
|
818
|
-
cursor: pointer;
|
|
819
|
-
}
|
|
820
|
-
.ace_inline_button:hover {
|
|
821
|
-
border-color: gray;
|
|
822
|
-
background: rgba(200,200,200,0.2);
|
|
823
|
-
display: inline-block;
|
|
824
|
-
pointer-events: auto;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
.ace_fold-widget.ace_invalid {
|
|
828
|
-
background-color: #FFB4B4;
|
|
829
|
-
border-color: #DE5555;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
|
833
|
-
transition: opacity 0.4s ease 0.05s;
|
|
834
|
-
opacity: 0;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
838
|
-
transition: opacity 0.05s ease 0.05s;
|
|
839
|
-
opacity:1;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
.ace_underline {
|
|
843
|
-
text-decoration: underline;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
.ace_bold {
|
|
847
|
-
font-weight: bold;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
.ace_nobold .ace_bold {
|
|
851
|
-
font-weight: normal;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
.ace_italic {
|
|
855
|
-
font-style: italic;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
.ace_error-marker {
|
|
860
|
-
background-color: rgba(255, 0, 0,0.2);
|
|
861
|
-
position: absolute;
|
|
862
|
-
z-index: 9;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
.ace_highlight-marker {
|
|
866
|
-
background-color: rgba(255, 255, 0,0.2);
|
|
867
|
-
position: absolute;
|
|
868
|
-
z-index: 8;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.ace_mobile-menu {
|
|
872
|
-
position: absolute;
|
|
873
|
-
line-height: 1.5;
|
|
874
|
-
border-radius: 4px;
|
|
875
|
-
-ms-user-select: none;
|
|
876
|
-
-moz-user-select: none;
|
|
877
|
-
-webkit-user-select: none;
|
|
878
|
-
user-select: none;
|
|
879
|
-
background: white;
|
|
880
|
-
box-shadow: 1px 3px 2px grey;
|
|
881
|
-
border: 1px solid #dcdcdc;
|
|
882
|
-
color: black;
|
|
883
|
-
}
|
|
884
|
-
.ace_dark > .ace_mobile-menu {
|
|
885
|
-
background: #333;
|
|
886
|
-
color: #ccc;
|
|
887
|
-
box-shadow: 1px 3px 2px grey;
|
|
888
|
-
border: 1px solid #444;
|
|
889
|
-
|
|
890
|
-
}
|
|
891
|
-
.ace_mobile-button {
|
|
892
|
-
padding: 2px;
|
|
893
|
-
cursor: pointer;
|
|
894
|
-
overflow: hidden;
|
|
895
|
-
}
|
|
896
|
-
.ace_mobile-button:hover {
|
|
897
|
-
background-color: #eee;
|
|
898
|
-
opacity:1;
|
|
899
|
-
}
|
|
900
|
-
.ace_mobile-button:active {
|
|
901
|
-
background-color: #ddd;
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
.ace_placeholder {
|
|
905
|
-
position: relative;
|
|
906
|
-
font-family: arial;
|
|
907
|
-
transform: scale(0.9);
|
|
908
|
-
transform-origin: left;
|
|
909
|
-
white-space: pre;
|
|
910
|
-
opacity: 0.7;
|
|
911
|
-
margin: 0 10px;
|
|
912
|
-
z-index: 1;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
.ace_ghost_text {
|
|
916
|
-
opacity: 0.5;
|
|
917
|
-
font-style: italic;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
.ace_ghost_text_container > div {
|
|
921
|
-
white-space: pre;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
.ghost_text_line_wrapped::after {
|
|
925
|
-
content: "↩";
|
|
926
|
-
position: absolute;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.ace_lineWidgetContainer.ace_ghost_text {
|
|
930
|
-
margin: 0px 4px
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
.ace_screenreader-only {
|
|
934
|
-
position:absolute;
|
|
935
|
-
left:-10000px;
|
|
936
|
-
top:auto;
|
|
937
|
-
width:1px;
|
|
938
|
-
height:1px;
|
|
939
|
-
overflow:hidden;
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
.ace_hidden_token {
|
|
943
|
-
display: none;
|
|
944
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=(function(){function d(a,l){this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(a)}return d.prototype.$createCanvas=function(){this.canvas=p.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},d.prototype.setScrollBarV=function(a){this.$createCanvas(),this.scrollbarV=a,a.element.appendChild(this.canvas),this.setDimensions()},d.prototype.$updateDecorators=function(a){if(typeof this.canvas.getContext!="function")return;var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(a);var u=this.canvas.getContext("2d");function c(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var i=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),i){var s={info:1,warning:2,error:3};i.forEach(function(N){N.priority=s[N.type]||null}),i=i.sort(c);for(var f=0;f<i.length;f++){var b=i[f].row,x=this.getVerticalOffsetForRow(b),O=x+this.lineHeight,T=Math.round(this.heightRatio*x),_=Math.round(this.heightRatio*O),C=Math.round((T+_)/2),L=_-C;L<this.halfMinDecorationHeight&&(L=this.halfMinDecorationHeight),C-L<0&&(C=L),C+L>this.canvasHeight&&(C=this.canvasHeight-L);var F=C-L,E=C+L,I=E-F;u.fillStyle=l[i[f].type]||null,u.fillRect(0,F,Math.round(this.oneZoneWidth-1),I)}}var z=this.renderer.session.selection.getCursor();if(z){var P=Math.round(this.getVerticalOffsetForRow(z.row)*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,P,this.canvasWidth,2)}},d.prototype.getVerticalOffsetForRow=function(a){a=a|0;var l=this.renderer.session.documentToScreenRow(a,0)*this.lineHeight;return l},d.prototype.setDimensions=function(a){a=a||this.renderer.layerConfig,this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},d.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},d.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},d})();g.implement(h.prototype,w),r.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,r,v){var p=e("./lib/oop"),g=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),d=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,i=e("./scrollbar").VScrollBar,s=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,b=e("./renderloop").RenderLoop,x=e("./layer/font_metrics").FontMetrics,O=e("./lib/event_emitter").EventEmitter,T=e("./css/editor-css"),_=e("./layer/decorators").Decorator,C=e("./lib/useragent"),L=e("./layer/text_util").isTextToken;g.importCssString(T,"ace_editor.css",!1);var F=(function(){function E(I,z){var P=this;this.container=I||g.createElement("div"),g.addCssClass(this.container,"ace_editor"),g.HI_DPI&&g.addCssClass(this.container,"ace_hidpi"),this.setTheme(z),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=g.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=g.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=g.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new d(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var N=this.$textLayer=new l(this.content);this.canvas=N.element,this.$markerFront=new a(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new i(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(S){P.$scrollAnimation||P.session.setScrollTop(S.data-P.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){P.$scrollAnimation||P.session.setScrollLeft(S.data-P.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(S){P.updateCharacterSize(),P.onResize(!0,P.gutterWidth,P.$size.width,P.$size.height),P._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=!C.isIOS,this.$loop=new b(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 E.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),g.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},E.prototype.setSession=function(I){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=I,I&&this.scrollMargin.top&&I.getScrollTop()<=0&&I.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(I),this.$markerBack.setSession(I),this.$markerFront.setSession(I),this.$gutterLayer.setSession(I),this.$textLayer.setSession(I),I&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},E.prototype.updateLines=function(I,z,P){if(z===void 0&&(z=1/0),this.$changedLines?(this.$changedLines.firstRow>I&&(this.$changedLines.firstRow=I),this.$changedLines.lastRow<z&&(this.$changedLines.lastRow=z)):this.$changedLines={firstRow:I,lastRow:z},this.$changedLines.lastRow<this.layerConfig.firstRow)if(P)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},E.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},E.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},E.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},E.prototype.updateFull=function(I){I?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},E.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},E.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},E.prototype.onResize=function(I,z,P,N){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=I?1:0;var S=this.container;N||(N=S.clientHeight||S.scrollHeight),!N&&this.$maxLines&&this.lineHeight>1&&(!S.style.height||S.style.height=="0px")&&(S.style.height="1px",N=S.clientHeight||S.scrollHeight),P||(P=S.clientWidth||S.scrollWidth);var k=this.$updateCachedSize(I,z,P,N);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!P&&!N)return this.resizing=0;I&&(this.$gutterLayer.$padding=null),I?this.$renderChanges(k|this.$changes,!0):this.$loop.schedule(k|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},E.prototype.$updateCachedSize=function(I,z,P,N){N-=this.$extraHeight||0;var S=0,k=this.$size,R={width:k.width,height:k.height,scrollerHeight:k.scrollerHeight,scrollerWidth:k.scrollerWidth};if(N&&(I||k.height!=N)&&(k.height=N,S|=this.CHANGE_SIZE,k.scrollerHeight=k.height,this.$horizScroll&&(k.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(k.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),P&&(I||k.width!=P)){S|=this.CHANGE_SIZE,k.width=P,z==null&&(z=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=z,g.setStyle(this.scrollBarH.element.style,"left",z+"px"),g.setStyle(this.scroller.style,"left",z+this.margin.left+"px"),k.scrollerWidth=Math.max(0,P-z-this.scrollBarV.getWidth()-this.margin.h),g.setStyle(this.$gutter.style,"left",this.margin.left+"px");var B=this.scrollBarV.getWidth()+"px";g.setStyle(this.scrollBarH.element.style,"right",B),g.setStyle(this.scroller.style,"right",B),g.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(k.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||I)&&(S|=this.CHANGE_FULL)}return k.$dirty=!P||!N,S&&this._signal("resize",R),S},E.prototype.onGutterResize=function(I){var z=this.$showGutter?I:0;z!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,z,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},E.prototype.adjustWrapLimit=function(){var I=this.$size.scrollerWidth-this.$padding*2,z=Math.floor(I/this.characterWidth);return this.session.adjustWrapLimit(z,this.$showPrintMargin&&this.$printMarginColumn)},E.prototype.setAnimatedScroll=function(I){this.setOption("animatedScroll",I)},E.prototype.getAnimatedScroll=function(){return this.$animatedScroll},E.prototype.setShowInvisibles=function(I){this.setOption("showInvisibles",I),this.session.$bidiHandler.setShowInvisibles(I)},E.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},E.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},E.prototype.setDisplayIndentGuides=function(I){this.setOption("displayIndentGuides",I)},E.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},E.prototype.setHighlightIndentGuides=function(I){this.setOption("highlightIndentGuides",I)},E.prototype.setShowPrintMargin=function(I){this.setOption("showPrintMargin",I)},E.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},E.prototype.setPrintMarginColumn=function(I){this.setOption("printMarginColumn",I)},E.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},E.prototype.getShowGutter=function(){return this.getOption("showGutter")},E.prototype.setShowGutter=function(I){return this.setOption("showGutter",I)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.setFadeFoldWidgets=function(I){this.setOption("fadeFoldWidgets",I)},E.prototype.setHighlightGutterLine=function(I){this.setOption("highlightGutterLine",I)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var I=g.createElement("div");I.className="ace_layer ace_print-margin-layer",this.$printMarginEl=g.createElement("div"),this.$printMarginEl.className="ace_print-margin",I.appendChild(this.$printMarginEl),this.content.insertBefore(I,this.content.firstChild)}var z=this.$printMarginEl.style;z.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",z.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},E.prototype.getContainerElement=function(){return this.container},E.prototype.getMouseEventTarget=function(){return this.scroller},E.prototype.getTextAreaContainer=function(){return this.container},E.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var I=this.textarea.style,z=this.$composition;if(!this.$keepTextAreaAtCursor&&!z){g.translate(this.textarea,-100,0);return}var P=this.$cursorLayer.$pixelPos;if(P){z&&z.markerRange&&(P=this.$cursorLayer.getPixelPosition(z.markerRange.start,!0));var N=this.layerConfig,S=P.top,k=P.left;S-=N.offset;var R=z&&z.useTextareaForIME||C.isMobile?this.lineHeight:1;if(S<0||S>N.height-R){g.translate(this.textarea,0,0);return}var B=1,U=this.$size.height-R;if(!z)S+=this.lineHeight;else if(z.useTextareaForIME){var q=this.textarea.value;B=this.characterWidth*this.session.$getStringScreenWidth(q)[0]}else S+=this.lineHeight+2;k-=this.scrollLeft,k>this.$size.scrollerWidth-B&&(k=this.$size.scrollerWidth-B),k+=this.gutterWidth+this.margin.left,g.setStyle(I,"height",R+"px"),g.setStyle(I,"width",B+"px"),g.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-B),Math.min(S,U))}}},E.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},E.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},E.prototype.getLastFullyVisibleRow=function(){var I=this.layerConfig,z=I.lastRow,P=this.session.documentToScreenRow(z,0)*I.lineHeight;return P-this.session.getScrollTop()>I.height-I.lineHeight?z-1:z},E.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},E.prototype.setPadding=function(I){this.$padding=I,this.$textLayer.setPadding(I),this.$cursorLayer.setPadding(I),this.$markerFront.setPadding(I),this.$markerBack.setPadding(I),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},E.prototype.setScrollMargin=function(I,z,P,N){var S=this.scrollMargin;S.top=I|0,S.bottom=z|0,S.right=N|0,S.left=P|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()},E.prototype.setMargin=function(I,z,P,N){var S=this.margin;S.top=I|0,S.bottom=z|0,S.right=N|0,S.left=P|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()},E.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},E.prototype.setHScrollBarAlwaysVisible=function(I){this.setOption("hScrollBarAlwaysVisible",I)},E.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},E.prototype.setVScrollBarAlwaysVisible=function(I){this.setOption("vScrollBarAlwaysVisible",I)},E.prototype.$updateScrollBarV=function(){var I=this.layerConfig.maxHeight,z=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(I-=(z-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>I-z&&(I=this.scrollTop+z,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(I+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},E.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},E.prototype.freeze=function(){this.$frozen=!0},E.prototype.unfreeze=function(){this.$frozen=!1},E.prototype.$renderChanges=function(I,z){if(this.$changes&&(I|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!I&&!z){this.$changes|=I;return}if(this.$size.$dirty)return this.$changes|=I,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",I),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var P=this.layerConfig;if(I&this.CHANGE_FULL||I&this.CHANGE_SIZE||I&this.CHANGE_TEXT||I&this.CHANGE_LINES||I&this.CHANGE_SCROLL||I&this.CHANGE_H_SCROLL){if(I|=this.$computeLayerConfig()|this.$loop.clear(),P.firstRow!=this.layerConfig.firstRow&&P.firstRowScreen==this.layerConfig.firstRowScreen){var N=this.scrollTop+(P.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;N>0&&(this.scrollTop=N,I=I|this.CHANGE_SCROLL,I|=this.$computeLayerConfig()|this.$loop.clear())}P=this.layerConfig,this.$updateScrollBarV(),I&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),g.translate(this.content,-this.scrollLeft,-P.offset);var S=P.width+2*this.$padding+"px",k=P.minHeight+"px";g.setStyle(this.content.style,"width",S),g.setStyle(this.content.style,"height",k)}if(I&this.CHANGE_H_SCROLL&&(g.translate(this.content,-this.scrollLeft,-P.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),I&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}if(I&this.CHANGE_SCROLL){this.$changedLines=null,I&this.CHANGE_TEXT||I&this.CHANGE_LINES?this.$textLayer.update(P):this.$textLayer.scrollLines(P),this.$showGutter&&(I&this.CHANGE_GUTTER||I&this.CHANGE_LINES?this.$gutterLayer.update(P):this.$gutterLayer.scrollLines(P)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}I&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):I&this.CHANGE_LINES?((this.$updateLines()||I&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):I&this.CHANGE_TEXT||I&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):I&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)),I&this.CHANGE_CURSOR&&(this.$cursorLayer.update(P),this.$moveTextAreaToCursor()),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(P),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(P),this._signal("afterRender",I)},E.prototype.$autosize=function(){var I=this.session.getScreenLength()*this.lineHeight,z=this.$maxLines*this.lineHeight,P=Math.min(z,Math.max((this.$minLines||1)*this.lineHeight,I))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(P+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&P>this.$maxPixelHeight&&(P=this.$maxPixelHeight);var N=P<=2*this.lineHeight,S=!N&&I>z;if(P!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var k=this.container.clientWidth;this.container.style.height=P+"px",this.$updateCachedSize(!0,this.$gutterWidth,k,P),this.desiredHeight=P,this._signal("autosize")}},E.prototype.$computeLayerConfig=function(){var I=this.session,z=this.$size,P=z.height<=2*this.lineHeight,N=this.session.getScreenLength(),S=N*this.lineHeight,k=this.$getLongestLine(),R=!P&&(this.$hScrollBarAlwaysVisible||z.scrollerWidth-k-2*this.$padding<0),B=this.$horizScroll!==R;B&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var U=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),P=z.height<=2*this.lineHeight);var q=z.scrollerHeight+this.lineHeight,Q=!this.$maxLines&&this.$scrollPastEnd?(z.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=Q;var J=this.scrollMargin;this.session.setScrollTop(Math.max(-J.top,Math.min(this.scrollTop,S-z.scrollerHeight+J.bottom))),this.session.setScrollLeft(Math.max(-J.left,Math.min(this.scrollLeft,k+2*this.$padding-z.scrollerWidth+J.right)));var he=!P&&(this.$vScrollBarAlwaysVisible||z.scrollerHeight-S+Q<0||this.scrollTop>J.top),ne=U!==he;ne&&(this.$vScroll=he,this.scrollBarV.setVisible(he));var ce=this.scrollTop%this.lineHeight,se=Math.ceil(q/this.lineHeight)-1,de=Math.max(0,Math.round((this.scrollTop-ce)/this.lineHeight)),me=de+se,Se,Te,Me=this.lineHeight;de=I.screenToDocumentRow(de,0);var Xe=I.getFoldLine(de);Xe&&(de=Xe.start.row),Se=I.documentToScreenRow(de,0),Te=I.getRowLength(de)*Me,me=Math.min(I.screenToDocumentRow(me,0),I.getLength()-1),q=z.scrollerHeight+I.getRowLength(me)*Me+Te,ce=this.scrollTop-Se*Me,ce<0&&Se>0&&(Se=Math.max(0,Se+Math.floor(ce/Me)),ce=this.scrollTop-Se*Me);var qe=0;return(this.layerConfig.width!=k||B)&&(qe=this.CHANGE_H_SCROLL),(B||ne)&&(qe|=this.$updateCachedSize(!0,this.gutterWidth,z.width,z.height),this._signal("scrollbarVisibilityChanged"),ne&&(k=this.$getLongestLine())),this.layerConfig={width:k,padding:this.$padding,firstRow:de,firstRowScreen:Se,lastRow:me,lineHeight:Me,characterWidth:this.characterWidth,minHeight:q,maxHeight:S,offset:ce,gutterOffset:Me?Math.max(0,Math.ceil((ce+z.height-z.scrollerHeight)/Me)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(k-this.$padding),qe},E.prototype.$updateLines=function(){if(this.$changedLines){var I=this.$changedLines.firstRow,z=this.$changedLines.lastRow;this.$changedLines=null;var P=this.layerConfig;if(!(I>P.lastRow+1)&&!(z<P.firstRow)){if(z===1/0){this.$showGutter&&this.$gutterLayer.update(P),this.$textLayer.update(P);return}return this.$textLayer.updateLines(P,I,z),!0}}},E.prototype.$getLongestLine=function(){var I=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(I+=1),this.$textLayer&&I>this.$textLayer.MAX_LINE_LENGTH&&(I=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(I*this.characterWidth))},E.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},E.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},E.prototype.addGutterDecoration=function(I,z){this.$gutterLayer.addGutterDecoration(I,z)},E.prototype.removeGutterDecoration=function(I,z){this.$gutterLayer.removeGutterDecoration(I,z)},E.prototype.updateBreakpoints=function(I){this._rows=I,this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.setAnnotations=function(I){this.$gutterLayer.setAnnotations(I),this.$loop.schedule(this.CHANGE_GUTTER)},E.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},E.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},E.prototype.showCursor=function(){this.$cursorLayer.showCursor()},E.prototype.scrollSelectionIntoView=function(I,z,P){this.scrollCursorIntoView(I,P),this.scrollCursorIntoView(z,P)},E.prototype.scrollCursorIntoView=function(I,z,P){if(this.$size.scrollerHeight!==0){var N=this.$cursorLayer.getPixelPosition(I),S=N.left,k=N.top,R=P&&P.top||0,B=P&&P.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var U=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;U+R>k?(z&&U+R>k+this.lineHeight&&(k-=z*this.$size.scrollerHeight),k===0&&(k=-this.scrollMargin.top),this.session.setScrollTop(k)):U+this.$size.scrollerHeight-B<k+this.lineHeight&&(z&&U+this.$size.scrollerHeight-B<k-this.lineHeight&&(k+=z*this.$size.scrollerHeight),this.session.setScrollTop(k+this.lineHeight+B-this.$size.scrollerHeight));var q=this.scrollLeft,Q=2*this.layerConfig.characterWidth;S-Q<q?(S-=Q,S<this.$padding+Q&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=Q,q+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):q<=this.$padding&&S-q<this.characterWidth&&this.session.setScrollLeft(0))}},E.prototype.getScrollTop=function(){return this.session.getScrollTop()},E.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},E.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},E.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},E.prototype.scrollToRow=function(I){this.session.setScrollTop(I*this.lineHeight)},E.prototype.alignCursor=function(I,z){typeof I=="number"&&(I={row:I,column:0});var P=this.$cursorLayer.getPixelPosition(I),N=this.$size.scrollerHeight-this.lineHeight,S=P.top-N*(z||0);return this.session.setScrollTop(S),S},E.prototype.$calcSteps=function(I,z){var P=0,N=this.STEPS,S=[],k=function(R,B,U){return U*(Math.pow(R-1,3)+1)+B};for(P=0;P<N;++P)S.push(k(P/this.STEPS,I,z-I));return S},E.prototype.scrollToLine=function(I,z,P,N){var S=this.$cursorLayer.getPixelPosition({row:I,column:0}),k=S.top;z&&(k-=this.$size.scrollerHeight/2);var R=this.scrollTop;this.session.setScrollTop(k),P!==!1&&this.animateScrolling(R,N)},E.prototype.animateScrolling=function(I,z){var P=this.scrollTop;if(!this.$animatedScroll)return;var N=this;if(I==P)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(I=S[0],I==P))return}var k=N.$calcSteps(I,P);this.$scrollAnimation={from:I,to:P,steps:k},clearInterval(this.$timer),N.session.setScrollTop(k.shift()),N.session.$scrollTop=P;function R(){N.$timer=clearInterval(N.$timer),N.$scrollAnimation=null,N.$stopAnimation=!1,z&&z()}this.$timer=setInterval(function(){if(N.$stopAnimation){R();return}if(!N.session)return clearInterval(N.$timer);k.length?(N.session.setScrollTop(k.shift()),N.session.$scrollTop=P):P!=null?(N.session.$scrollTop=-1,N.session.setScrollTop(P),P=null):R()},10)},E.prototype.scrollToY=function(I){this.scrollTop!==I&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=I)},E.prototype.scrollToX=function(I){this.scrollLeft!==I&&(this.scrollLeft=I),this.$loop.schedule(this.CHANGE_H_SCROLL)},E.prototype.scrollTo=function(I,z){this.session.setScrollTop(z),this.session.setScrollLeft(I)},E.prototype.scrollBy=function(I,z){z&&this.session.setScrollTop(this.session.getScrollTop()+z),I&&this.session.setScrollLeft(this.session.getScrollLeft()+I)},E.prototype.isScrollableBy=function(I,z){if(z<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||z>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||I<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||I>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},E.prototype.pixelToScreenCoordinates=function(I,z){var P;if(this.$hasCssTransforms){P={top:0,left:0};var N=this.$fontMetrics.transformCoordinates([I,z]);I=N[1]-this.gutterWidth-this.margin.left,z=N[0]}else P=this.scroller.getBoundingClientRect();var S=I+this.scrollLeft-P.left-this.$padding,k=S/this.characterWidth,R=Math.floor((z+this.scrollTop-P.top)/this.lineHeight),B=this.$blockCursor?Math.floor(k):Math.round(k);return{row:R,column:B,side:k-B>0?1:-1,offsetX:S}},E.prototype.screenToTextCoordinates=function(I,z){var P;if(this.$hasCssTransforms){P={top:0,left:0};var N=this.$fontMetrics.transformCoordinates([I,z]);I=N[1]-this.gutterWidth-this.margin.left,z=N[0]}else P=this.scroller.getBoundingClientRect();var S=I+this.scrollLeft-P.left-this.$padding,k=S/this.characterWidth,R=this.$blockCursor?Math.floor(k):Math.round(k),B=Math.floor((z+this.scrollTop-P.top)/this.lineHeight);return this.session.screenToDocumentPosition(B,Math.max(R,0),S)},E.prototype.textToScreenCoordinates=function(I,z){var P=this.scroller.getBoundingClientRect(),N=this.session.documentToScreenPosition(I,z),S=this.$padding+(this.session.$bidiHandler.isBidiRow(N.row,I)?this.session.$bidiHandler.getPosLeft(N.column):Math.round(N.column*this.characterWidth)),k=N.row*this.lineHeight;return{pageX:P.left+S-this.scrollLeft,pageY:P.top+k-this.scrollTop}},E.prototype.visualizeFocus=function(){g.addCssClass(this.container,"ace_focus")},E.prototype.visualizeBlur=function(){g.removeCssClass(this.container,"ace_focus")},E.prototype.showComposition=function(I){this.$composition=I,I.cssText||(I.cssText=this.textarea.style.cssText),I.useTextareaForIME==null&&(I.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(g.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):I.markerId=this.session.addMarker(I.markerRange,"ace_composition_marker","text")},E.prototype.setCompositionText=function(I){var z=this.session.selection.cursor;this.addToken(I,"composition_placeholder",z.row,z.column),this.$moveTextAreaToCursor()},E.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),g.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var I=this.session.selection.cursor;this.removeExtraToken(I.row,I.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},E.prototype.setGhostText=function(I,z){var P=this.session.selection.cursor,N=z||{row:P.row,column:P.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(I,N);this.addToken(S[0].text,"ghost_text",N.row,N.column),this.$ghostText={text:I,position:{row:N.row,column:N.column}};var k=g.createElement("div");if(S.length>1){var R=this.hideTokensAfterPosition(N.row,N.column),B;S.slice(1).forEach(function(ne){var ce=g.createElement("div"),se=g.createElement("span");se.className="ace_ghost_text",ne.wrapped&&(ce.className="ghost_text_line_wrapped"),ne.text.length===0&&(ne.text=" "),se.appendChild(g.createTextNode(ne.text)),ce.appendChild(se),k.appendChild(ce),B=ce}),R.forEach(function(ne){var ce=g.createElement("span");L(ne.type)||(ce.className="ace_"+ne.type.replace(/\./g," ace_")),ce.appendChild(g.createTextNode(ne.value)),B.appendChild(ce)}),this.$ghostTextWidget={el:k,row:N.row,column:N.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var U=this.$cursorLayer.getPixelPosition(N,!0),q=this.container,Q=q.getBoundingClientRect().height,J=S.length*this.lineHeight,he=J<Q-U.top;if(he)return;J<Q?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(N.row)}},E.prototype.$calculateWrappedTextChunks=function(I,z){var P=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(P/this.characterWidth)-2;N=N<=0?60:N;for(var S=I.split(/\r?\n/),k=[],R=0;R<S.length;R++){var B=this.session.$getDisplayTokens(S[R],z.column),U=this.session.$computeWrapSplits(B,N,this.session.$tabSize);if(U.length>0){var q=0;U.push(S[R].length);for(var Q=0;Q<U.length;Q++){var J=S[R].slice(q,U[Q]);k.push({text:J,wrapped:!0}),q=U[Q]}}else k.push({text:S[R],wrapped:!1})}return k},E.prototype.removeGhostText=function(){if(this.$ghostText){var I=this.$ghostText.position;this.removeExtraToken(I.row,I.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},E.prototype.addToken=function(I,z,P,N){var S=this.session;S.bgTokenizer.lines[P]=null;var k={type:z,value:I},R=S.getTokens(P);if(N==null||!R.length)R.push(k);else for(var B=0,U=0;U<R.length;U++){var q=R[U];if(B+=q.value.length,N<=B){var Q=q.value.length-(B-N),J=q.value.slice(0,Q),he=q.value.slice(Q);R.splice(U,1,{type:q.type,value:J},k,{type:q.type,value:he});break}}this.updateLines(P,P)},E.prototype.hideTokensAfterPosition=function(I,z){for(var P=this.session.getTokens(I),N=0,S=!1,k=[],R=0;R<P.length;R++){var B=P[R];if(N+=B.value.length,B.type!=="ghost_text"){if(S){k.push({type:B.type,value:B.value}),B.type="hidden_token";continue}N===z&&(S=!0)}}return this.updateLines(I,I),k},E.prototype.removeExtraToken=function(I,z){this.session.bgTokenizer.lines[I]=null,this.updateLines(I,I)},E.prototype.setTheme=function(I,z){var P=this;if(this.$themeId=I,P._dispatchEvent("themeChange",{theme:I}),!I||typeof I=="string"){var N=I||this.$options.theme.initialValue;h.loadModule(["theme",N],S)}else S(I);function S(k){if(P.$themeId!=I)return z&&z();if(!k||!k.cssClass)throw new Error("couldn't load module "+I+" or it didn't call define");k.$id&&(P.$themeId=k.$id),g.importCssString(k.cssText,k.cssClass,P.container),P.theme&&g.removeCssClass(P.container,P.theme.cssClass);var R="padding"in k?k.padding:"padding"in(P.theme||{})?4:P.$padding;if(P.$padding&&R!=P.$padding&&P.setPadding(R),P.$gutterLayer){var B=k.$showGutterCursorMarker;B&&!P.$gutterLayer.$showCursorMarker?P.$gutterLayer.$showCursorMarker="theme":!B&&P.$gutterLayer.$showCursorMarker=="theme"&&(P.$gutterLayer.$showCursorMarker=null)}P.$theme=k.cssClass,P.theme=k,g.addCssClass(P.container,k.cssClass),g.setCssClass(P.container,"ace_dark",k.isDark),P.$size&&(P.$size.width=0,P.$updateSizeAsync()),P._dispatchEvent("themeLoaded",{theme:k}),z&&z(),C.isSafari&&P.scroller&&(P.scroller.style.background="red",P.scroller.style.background="")}},E.prototype.getTheme=function(){return this.$themeId},E.prototype.setStyle=function(I,z){g.setCssClass(this.container,I,z!==!1)},E.prototype.unsetStyle=function(I){g.removeCssClass(this.container,I)},E.prototype.setCursorStyle=function(I){g.setStyle(this.scroller.style,"cursor",I)},E.prototype.setMouseCursor=function(I){g.setStyle(this.scroller.style,"cursor",I)},E.prototype.attachToShadowRoot=function(){g.importCssString(T,"ace_editor.css",this.container)},E.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},E.prototype.$updateCustomScrollbar=function(I){var z=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),I===!0?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new s(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollTop(P.data-z.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollLeft(P.data-z.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new i(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollTop(P.data-z.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(P){z.$scrollAnimation||z.session.setScrollLeft(P.data-z.scrollMargin.left)}))},E.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var I=this;this.$resizeTimer=w.delayedCall(function(){I.destroyed||I.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(z){var P=z[0].contentRect.width,N=z[0].contentRect.height;Math.abs(I.$size.width-P)>1||Math.abs(I.$size.height-N)>1?I.$resizeTimer.delay():I.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},E})();F.prototype.CHANGE_CURSOR=1,F.prototype.CHANGE_MARKER=2,F.prototype.CHANGE_GUTTER=4,F.prototype.CHANGE_SCROLL=8,F.prototype.CHANGE_LINES=16,F.prototype.CHANGE_TEXT=32,F.prototype.CHANGE_SIZE=64,F.prototype.CHANGE_MARKER_BACK=128,F.prototype.CHANGE_MARKER_FRONT=256,F.prototype.CHANGE_FULL=512,F.prototype.CHANGE_H_SCROLL=1024,F.prototype.$changes=0,F.prototype.$padding=null,F.prototype.$frozen=!1,F.prototype.STEPS=8,p.implement(F.prototype,O),h.defineOptions(F.prototype,"renderer",{useResizeObserver:{set:function(E){!E&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):E&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(E){this.$textLayer.setShowInvisibles(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(E){typeof E=="number"&&(this.$printMarginColumn=E),this.$showPrintMargin=!!E,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(E){this.$gutter.style.display=E?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(E){this.$gutterLayer.$useSvgGutterIcons=E},initialValue:!1},showFoldedAnnotations:{set:function(E){this.$gutterLayer.$showFoldedAnnotations=E},initialValue:!1},fadeFoldWidgets:{set:function(E){g.setCssClass(this.$gutter,"ace_fade-fold-widgets",E)},initialValue:!1},showFoldWidgets:{set:function(E){this.$gutterLayer.setShowFoldWidgets(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(E){this.$textLayer.setDisplayIndentGuides(E)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(E){this.$textLayer.setHighlightIndentGuides(E)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(E){this.$gutterLayer.setHighlightGutterLine(E),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(E){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(E){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(E){typeof E=="number"&&(E=E+"px"),this.container.style.fontSize=E,this.updateFontSize()},initialValue:12},fontFamily:{set:function(E){this.container.style.fontFamily=E,this.updateFontSize()}},maxLines:{set:function(E){this.updateFull()}},minLines:{set:function(E){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(E){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(E){E=+E||0,this.$scrollPastEnd!=E&&(this.$scrollPastEnd=E,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(E){this.$gutterLayer.$fixedWidth=!!E,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(E){this.$updateCustomScrollbar(E)},initialValue:!1},theme:{set:function(E){this.setTheme(E)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!C.isMobile&&!C.isIE}}),r.VirtualRenderer=F}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,r,v){var p=e("../lib/oop"),g=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function d(c){var i="importScripts('"+g.qualifyURL(c)+"');";try{return new Blob([i],{type:"application/javascript"})}catch{var s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,f=new s;return f.append(i),f.getBlob("application/javascript")}}function a(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var i=d(c),s=window.URL||window.webkitURL,f=s.createObjectURL(i);return new Worker(f)}return new Worker(c)}var l=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,w),this.$createWorkerFromOldConfig=function(c,i,s,f,b){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)f=f||h.moduleUrl(i,"worker");else{var x=this.$normalizePath;f=f||x(e.toUrl("ace/worker/worker.js",null,"_"));var O={};c.forEach(function(T){O[T]=x(e.toUrl(T,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(f),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:O,module:i,classname:s}),this.$worker},this.onMessage=function(c){var i=c.data;switch(i.type){case"event":this._signal(i.name,{data:i.data});break;case"call":var s=this.callbacks[i.id];s&&(s(i.data),delete this.callbacks[i.id]);break;case"error":this.reportError(i.data);break;case"log":window.console&&console.log&&console.log.apply(console,i.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return g.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,i){this.$worker.postMessage({command:c,args:i})},this.call=function(c,i,s){if(s){var f=this.callbackId++;this.callbacks[f]=s,i.push(f)}this.send(c,i)},this.emit=function(c,i){try{i.data&&i.data.err&&(i.data.err={message:i.data.err.message,stack:i.data.err.stack,code:i.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:i.data}})}catch(s){console.error(s.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(l.prototype);var u=function(c,i,s){var f=null,b=!1,x=Object.create(w),O=[],T=new l({messageBuffer:O,terminate:function(){},postMessage:function(C){O.push(C),f&&(b?setTimeout(_):_())}});T.setEmitSync=function(C){b=C};var _=function(){var C=O.shift();C.command?f[C.command].apply(f,C.args):C.event&&x._signal(C.event,C.data)};return x.postMessage=function(C){T.onMessage({data:C})},x.callback=function(C,L){this.postMessage({type:"call",id:L,data:C})},x.emit=function(C,L){this.postMessage({type:"event",name:C,data:L})},h.loadModule(["worker",i],function(C){for(f=new C[s](x);O.length;)_()}),T};r.UIWorkerClient=u,r.WorkerClient=l,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,r,v){var p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=(function(){function d(a,l,u,c,i,s){var f=this;this.length=l,this.session=a,this.doc=a.getDocument(),this.mainClass=i,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){f.onCursorChange()})},this.$pos=u;var b=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return d.prototype.setup=function(){var a=this,l=this.doc,u=this.session;this.selectionBefore=u.selection.toJSON(),u.selection.inMultiSelectMode&&u.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=u.addMarker(new p(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(i){var s=l.createAnchor(i.row,i.column);s.$insertRight=!0,s.detach(),a.others.push(s)}),u.setUndoSelect(!1)},d.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,l=this;this.othersActive=!0,this.others.forEach(function(u){u.markerId=a.addMarker(new p(u.row,u.column,u.row,u.column+l.length),l.othersClass,null,!1)})}},d.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a<this.others.length;a++)this.session.removeMarker(this.others[a].markerId)}},d.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var l=a;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var u=a.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,i=l.start.column-this.pos.column;if(this.updateAnchors(a),c&&(this.length+=u),c&&!this.session.$fromUndo){if(a.action==="insert")for(var s=this.others.length-1;s>=0;s--){var f=this.others[s],b={row:f.row,column:f.column+i};this.doc.insertMergedLines(b,a.lines)}else if(a.action==="remove")for(var s=this.others.length-1;s>=0;s--){var f=this.others[s],b={row:f.row,column:f.column+i};this.doc.remove(new p(b.row,b.column,b.row,b.column-u))}}this.$updating=!1,this.updateMarkers()}},d.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var l=this.others.length;l--;)this.others[l].onChange(a);this.updateMarkers()},d.prototype.updateMarkers=function(){if(!this.$updating){var a=this,l=this.session,u=function(i,s){l.removeMarker(i.markerId),i.markerId=l.addMarker(new p(i.row,i.column,i.row,i.column+a.length),s,null,!1)};u(this.pos,this.mainClass);for(var c=this.others.length;c--;)u(this.others[c],this.othersClass)}},d.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},d.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},d.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),l=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,u=0;u<l;u++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},d})();w.implement(h.prototype,g),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,v){var p=e("../lib/event"),g=e("../lib/useragent");function w(d,a){return d.row==a.row&&d.column==a.column}function h(d){var a=d.domEvent,l=a.altKey,u=a.shiftKey,c=a.ctrlKey,i=d.getAccelKey(),s=d.getButton();if(c&&g.isMac&&(s=a.button),d.editor.inMultiSelectMode&&s==2){d.editor.textInput.onContextMenu(d.domEvent);return}if(!c&&!l&&!i){s===0&&d.editor.inMultiSelectMode&&d.editor.exitMultiSelectMode();return}if(s===0){var f=d.editor,b=f.selection,x=f.inMultiSelectMode,O=d.getDocumentPosition(),T=b.getCursor(),_=d.inSelection()||b.isEmpty()&&w(O,T),C=d.x,L=d.y,F=function(J){C=J.clientX,L=J.clientY},E=f.session,I=f.renderer.pixelToScreenCoordinates(C,L),z=I,P;if(f.$mouseHandler.$enableJumpToDef)c&&l||i&&l?P=u?"block":"add":l&&f.$blockSelectEnabled&&(P="block");else if(i&&!l){if(P="add",!x&&u)return}else l&&f.$blockSelectEnabled&&(P="block");if(P&&g.isMac&&a.ctrlKey&&f.$mouseHandler.cancelContextMenu(),P=="add"){if(!x&&_)return;if(!x){var N=b.toOrientedRange();f.addSelectionMarker(N)}var S=b.rangeList.rangeAtPoint(O);f.inVirtualSelectionMode=!0,u&&(S=null,N=b.ranges[0]||N,f.removeSelectionMarker(N)),f.once("mouseup",function(){var J=b.toOrientedRange();S&&J.isEmpty()&&w(S.cursor,J.cursor)?b.substractPoint(J.cursor):(u?b.substractPoint(N.cursor):N&&(f.removeSelectionMarker(N),b.addRange(N)),b.addRange(J)),f.inVirtualSelectionMode=!1})}else if(P=="block"){d.stop(),f.inVirtualSelectionMode=!0;var k,R=[],B=function(){var J=f.renderer.pixelToScreenCoordinates(C,L),he=E.screenToDocumentPosition(J.row,J.column,J.offsetX);w(z,J)&&w(he,b.lead)||(z=J,f.selection.moveToPosition(he),f.renderer.scrollCursorIntoView(),f.removeSelectionMarkers(R),R=b.rectangularRangeBlock(z,I),f.$mouseHandler.$clickSelection&&R.length==1&&R[0].isEmpty()&&(R[0]=f.$mouseHandler.$clickSelection.clone()),R.forEach(f.addSelectionMarker,f),f.updateSelectionMarkers())};x&&!i?b.toSingleRange():!x&&i&&(k=b.toOrientedRange(),f.addSelectionMarker(k)),u?I=E.documentToScreenPosition(b.lead):b.moveToPosition(O),z={row:-1,column:-1};var U=function(J){B(),clearInterval(Q),f.removeSelectionMarkers(R),R.length||(R=[b.toOrientedRange()]),k&&(f.removeSelectionMarker(k),b.toSingleRange(k));for(var he=0;he<R.length;he++)b.addRange(R[he]);f.inVirtualSelectionMode=!1,f.$mouseHandler.$clickSelection=null},q=B;p.capture(f.container,F,U);var Q=setInterval(function(){q()},20);return d.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,r,v){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(g){g.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(g){g.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(g){g.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(g){g.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(g){g.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(g){g.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(g){g.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(g){g.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(g){g.multiSelect.rangeCount>1?g.multiSelect.joinSelections():g.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(g){g.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(g){g.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(g){g.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(g){g.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(g){return g&&g.inMultiSelectMode}}];var p=e("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new p(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,r,v){var p=e("./range_list").RangeList,g=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,d=e("./lib/event"),a=e("./lib/lang"),l=e("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=e("./search").Search,c=new u;function i(T,_,C){return c.$options.wrap=!0,c.$options.needle=_,c.$options.backwards=C==-1,c.find(T)}var s=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(s.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(T,_){if(T){if(!this.inMultiSelectMode&&this.rangeCount===0){var C=this.toOrientedRange();if(this.rangeList.add(C),this.rangeList.add(T),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange(T);this.rangeList.removeAll(),this.rangeList.add(C),this.$onAddRange(C)}T.cursor||(T.cursor=T.end);var L=this.rangeList.add(T);return this.$onAddRange(T),L.length&&this.$onRemoveRange(L),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange(T)}},this.toSingleRange=function(T){T=T||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),T&&this.fromOrientedRange(T)},this.substractPoint=function(T){var _=this.rangeList.substractPoint(T);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var T=this.rangeList.merge();T.length&&this.$onRemoveRange(T)},this.$onAddRange=function(T){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(T),this._signal("addRange",{range:T})},this.$onRemoveRange=function(T){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();T.push(_),this.rangeCount=0}for(var C=T.length;C--;){var L=this.ranges.indexOf(T[C]);this.ranges.splice(L,1)}this._signal("removeRange",{ranges:T}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var T=this.ranges.length?this.ranges:[this.getRange()],_=[],C=0;C<T.length;C++){var L=T[C],F=L.start.row,E=L.end.row;if(F===E)_.push(L.clone());else{for(_.push(new g(F,L.start.column,F,this.session.getLine(F).length));++F<E;)_.push(this.getLineRange(F,!0));_.push(new g(E,0,E,L.end.column))}C==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var C=_.length;C--;)this.addRange(_[C])},this.joinSelections=function(){var T=this.rangeList.ranges,_=T[T.length-1],C=g.fromPoints(T[0].start,_.end);this.toSingleRange(),this.setSelectionRange(C,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var T=this.rangeList.ranges,_=T[T.length-1],C=g.fromPoints(T[0].start,_.end);this.toSingleRange(),this.setSelectionRange(C,_.cursor==_.start)}else{var L=this.session.documentToScreenPosition(this.cursor),F=this.session.documentToScreenPosition(this.anchor),E=this.rectangularRangeBlock(L,F);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(T,_,C){var L=[],F=T.column<_.column;if(F)var E=T.column,I=_.column,z=T.offsetX,P=_.offsetX;else var E=_.column,I=T.column,z=_.offsetX,P=T.offsetX;var N=T.row<_.row;if(N)var S=T.row,k=_.row;else var S=_.row,k=T.row;E<0&&(E=0),S<0&&(S=0),S==k&&(C=!0);for(var R,B=S;B<=k;B++){var U=g.fromPoints(this.session.screenToDocumentPosition(B,E,z),this.session.screenToDocumentPosition(B,I,P));if(U.isEmpty()){if(R&&b(U.end,R))break;R=U.end}U.cursor=F?U.start:U.end,L.push(U)}if(N&&L.reverse(),!C){for(var q=L.length-1;L[q].isEmpty()&&q>0;)q--;if(q>0)for(var Q=0;L[Q].isEmpty();)Q++;for(var J=q;J>=Q;J--)L[J].isEmpty()&&L.splice(J,1)}return L}}).call(w.prototype);var f=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(T){T.cursor||(T.cursor=T.end);var _=this.getSelectionStyle();return T.marker=this.session.addMarker(T,"ace_selection",_),this.session.$selectionMarkers.push(T),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,T},this.removeSelectionMarker=function(T){if(T.marker){this.session.removeMarker(T.marker);var _=this.session.$selectionMarkers.indexOf(T);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(T){for(var _=this.session.$selectionMarkers,C=T.length;C--;){var L=T[C];if(L.marker){this.session.removeMarker(L.marker);var F=_.indexOf(L);F!=-1&&_.splice(F,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function(T){this.addSelectionMarker(T.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(T){this.removeSelectionMarkers(T.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(T){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(T){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(T){var _=T.command,C=T.editor;if(C.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?L=C.forEachSelection(_,T.args):_.multiSelectAction=="forEachLine"?L=C.forEachSelection(_,T.args,!0):_.multiSelectAction=="single"?(C.exitMultiSelectMode(),L=_.exec(C,T.args||{})):L=_.multiSelectAction(C,T.args||{});else{var L=_.exec(C,T.args||{});C.multiSelect.addRange(C.multiSelect.toOrientedRange()),C.multiSelect.mergeOverlappingRanges()}return L}},this.forEachSelection=function(T,_,C){if(!this.inVirtualSelectionMode){var L=C&&C.keepOrder,F=C==!0||C&&C.$byLines,E=this.session,I=this.selection,z=I.rangeList,P=(L?I:z).ranges,N;if(!P.length)return T.exec?T.exec(this,_||{}):T(this,_||{});var S=I._eventRegistry;I._eventRegistry={};var k=new w(E);this.inVirtualSelectionMode=!0;for(var R=P.length;R--;){if(F)for(;R>0&&P[R].start.row==P[R-1].end.row;)R--;k.fromOrientedRange(P[R]),k.index=R,this.selection=E.selection=k;var B=T.exec?T.exec(this,_||{}):T(this,_||{});!N&&B!==void 0&&(N=B),k.toOrientedRange(P[R])}k.detach(),this.selection=E.selection=I,this.inVirtualSelectionMode=!1,I._eventRegistry=S,I.mergeOverlappingRanges(),I.ranges[0]&&I.fromOrientedRange(I.ranges[0]);var U=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),U&&U.from==U.to&&this.renderer.animateScrolling(U.from),N}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var T="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,C=[],L=0;L<_.length;L++)C.push(this.session.getTextRange(_[L]));var F=this.session.getDocument().getNewLineCharacter();T=C.join(F),T.length==(C.length-1)*F.length&&(T="")}else this.selection.isEmpty()||(T=this.session.getTextRange(this.getSelectionRange()));return T},this.$checkMultiselectChange=function(T,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var C=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var L=_==this.multiSelect.anchor?C.cursor==C.start?C.end:C.start:C.cursor;L.row!=_.row||this.session.$clipPositionToDocument(L.row,L.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(T,_,C){if(_=_||{},_.needle=T||_.needle,_.needle==null){var L=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(L)}this.$search.set(_);var F=this.$search.findAll(this.session);if(!F.length)return 0;var E=this.multiSelect;C||E.toSingleRange(F[0]);for(var I=F.length;I--;)E.addRange(F[I],!0);return L&&E.rangeList.rangeAtPoint(L.start)&&E.addRange(L,!0),F.length},this.selectMoreLines=function(T,_){var C=this.selection.toOrientedRange(),L=C.cursor==C.end,F=this.session.documentToScreenPosition(C.cursor);this.selection.$desiredColumn&&(F.column=this.selection.$desiredColumn);var E=this.session.screenToDocumentPosition(F.row+T,F.column);if(C.isEmpty())var z=E;else var I=this.session.documentToScreenPosition(L?C.end:C.start),z=this.session.screenToDocumentPosition(I.row+T,I.column);if(L){var P=g.fromPoints(E,z);P.cursor=P.start}else{var P=g.fromPoints(z,E);P.cursor=P.end}if(P.desiredColumn=F.column,!this.selection.inMultiSelectMode)this.selection.addRange(C);else if(_)var N=C.cursor;this.selection.addRange(P),N&&this.selection.substractPoint(N)},this.transposeSelections=function(T){for(var _=this.session,C=_.multiSelect,L=C.ranges,F=L.length;F--;){var E=L[F];if(E.isEmpty()){var I=_.getWordRange(E.start.row,E.start.column);E.start.row=I.start.row,E.start.column=I.start.column,E.end.row=I.end.row,E.end.column=I.end.column}}C.mergeOverlappingRanges();for(var z=[],F=L.length;F--;){var E=L[F];z.unshift(_.getTextRange(E))}T<0?z.unshift(z.pop()):z.push(z.shift());for(var F=L.length;F--;){var E=L[F],P=E.clone();_.replace(E,z[F]),E.start.row=P.start.row,E.start.column=P.start.column}C.fromOrientedRange(C.ranges[0])},this.selectMore=function(T,_,C){var L=this.session,F=L.multiSelect,E=F.toOrientedRange();if(!(E.isEmpty()&&(E=L.getWordRange(E.start.row,E.start.column),E.cursor=T==-1?E.start:E.end,this.multiSelect.addRange(E),C))){var I=L.getTextRange(E),z=i(L,I,T);z&&(z.cursor=T==-1?z.start:z.end,this.session.unfold(z),this.multiSelect.addRange(z),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(E.cursor)}},this.alignCursors=function(){var T=this.session,_=T.multiSelect,C=_.ranges,L=-1,F=C.filter(function(q){if(q.cursor.row==L)return!0;L=q.cursor.row});if(!C.length||F.length==C.length-1){var E=this.selection.getRange(),I=E.start.row,z=E.end.row,P=I==z;if(P){var N=this.session.getLength(),S;do S=this.session.getLine(z);while(/[=:]/.test(S)&&++z<N);do S=this.session.getLine(I);while(/[=:]/.test(S)&&--I>0);I<0&&(I=0),z>=N&&(z=N-1)}var k=this.session.removeFullLines(I,z);k=this.$reAlignText(k,P),this.session.insert({row:I,column:0},k.join(`
|
|
945
|
-
`)+`
|
|
946
|
-
`),P||(E.start.column=0,E.end.column=k[k.length-1].length),this.selection.setRange(E)}else{F.forEach(function(q){_.substractPoint(q.cursor)});var R=0,B=1/0,U=C.map(function(q){var Q=q.cursor,J=T.getLine(Q.row),he=J.substr(Q.column).search(/\S/g);return he==-1&&(he=0),Q.column>R&&(R=Q.column),he<B&&(B=he),he});C.forEach(function(q,Q){var J=q.cursor,he=R-J.column,ne=U[Q]-B;he>ne?T.insert(J,a.stringRepeat(" ",he-ne)):T.remove(new g(J.row,J.column,J.row,J.column-he+ne)),q.start.column=q.end.column=R,q.start.row=q.end.row=J.row,q.cursor=q.end}),_.fromOrientedRange(C[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(T,_){var C=!0,L=!0,F,E,I;return T.map(function(k){var R=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?F==null?(F=R[1].length,E=R[2].length,I=R[3].length,R):(F+E+I!=R[1].length+R[2].length+R[3].length&&(L=!1),F!=R[1].length&&(C=!1),F>R[1].length&&(F=R[1].length),E<R[2].length&&(E=R[2].length),I>R[3].length&&(I=R[3].length),R):[k]}).map(_?P:C?L?N:P:S);function z(k){return a.stringRepeat(" ",k)}function P(k){return k[2]?z(F)+k[2]+z(E-k[2].length+I)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function N(k){return k[2]?z(F+E-k[2].length)+k[2]+z(I)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function S(k){return k[2]?z(F)+k[2]+z(I)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(f.prototype);function b(T,_){return T.row==_.row&&T.column==_.column}r.onSessionChange=function(T){var _=T.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var C=T.oldSession;C&&(C.multiSelect.off("addRange",this.$onAddRange),C.multiSelect.off("removeRange",this.$onRemoveRange),C.multiSelect.off("multiSelect",this.$onMultiSelect),C.multiSelect.off("singleSelect",this.$onSingleSelect),C.multiSelect.lead.off("change",this.$checkMultiselectChange),C.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(T){T.$multiselectOnSessionChange||(T.$onAddRange=T.$onAddRange.bind(T),T.$onRemoveRange=T.$onRemoveRange.bind(T),T.$onMultiSelect=T.$onMultiSelect.bind(T),T.$onSingleSelect=T.$onSingleSelect.bind(T),T.$multiselectOnSessionChange=r.onSessionChange.bind(T),T.$checkMultiselectChange=T.$checkMultiselectChange.bind(T),T.$multiselectOnSessionChange(T),T.on("changeSession",T.$multiselectOnSessionChange),T.on("mousedown",h),T.commands.addCommands(l.defaultCommands),O(T))}function O(T){if(!T.textInput)return;var _=T.textInput.getElement(),C=!1;d.addListener(_,"keydown",function(F){var E=F.keyCode==18&&!(F.ctrlKey||F.shiftKey||F.metaKey);T.$blockSelectEnabled&&E?C||(T.renderer.setMouseCursor("crosshair"),C=!0):C&&L()},T),d.addListener(_,"keyup",L,T),d.addListener(_,"blur",L,T);function L(F){C&&(T.renderer.setMouseCursor(""),C=!1)}}r.MultiSelect=x,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(T){x(this),T?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(T){this.$blockSelectEnabled=T},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,r,v){var p=e("../../range").Range,g=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,d){var a=w.getLine(d);return this.foldingStartMarker.test(a)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(w,h,d){return null},this.indentationBlock=function(w,h,d){var a=/\S/,l=w.getLine(h),u=l.search(a);if(u!=-1){for(var c=d||l.length,i=w.getLength(),s=h,f=h;++h<i;){var b=w.getLine(h).search(a);if(b!=-1){if(b<=u){var x=w.getTokenAt(h,0);if(!x||x.type!=="string")break}f=h}}if(f>s){var O=w.getLine(f).length;return new p(s,c,f,O)}}},this.openingBracketBlock=function(w,h,d,a,l){var u={row:d,column:a+1},c=w.$findClosingBracket(h,u,l);if(c){var i=w.foldWidgets[c.row];return i==null&&(i=w.getFoldWidget(c.row)),i=="start"&&c.row>u.row&&(c.row--,c.column=w.getLine(c.row).length),p.fromPoints(u,c)}},this.closingBracketBlock=function(w,h,d,a,l){var u={row:d,column:a},c=w.$findOpeningBracket(h,u);if(c)return c.column++,u.column--,p.fromPoints(c,u)}}).call(g.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,r,v){var p=e("../lib/dom"),g=e("../range").Range,w=e("../config").nls;function h(a,l,u){for(var c=0,i=a.length-1;c<=i;){var s=c+i>>1,f=u(l,a[s]);if(f>0)c=s+1;else if(f<0)i=s-1;else return s}return-(c+1)}function d(a,l,u){var c=a.getAnnotations().sort(g.comparePoints);if(c.length){var i=h(c,{row:l,column:-1},g.comparePoints);i<0&&(i=-i-1),i>=c.length?i=u>0?0:c.length-1:i===0&&u<0&&(i=c.length-1);var s=c[i];if(!(!s||!u)){if(s.row===l){do s=c[i+=u];while(s&&s.row===l);if(!s)return c.slice()}var f=[];l=s.row;do f[u<0?"unshift":"push"](s),s=c[i+=u];while(s&&s.row==l);return f.length&&f}}}r.showErrorMarker=function(a,l){var u=a.session,c=a.getCursorPosition(),i=c.row,s=u.widgetManager.getWidgetsAtRow(i).filter(function(F){return F.type=="errorMarker"})[0];s?s.destroy():i-=l;var f=d(u,i,l),b;if(f){var x=f[0];c.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,c.row=x.row,b=a.renderer.$gutterLayer.$annotations[c.row]}else{if(s)return;b={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}a.session.unfold(c.row),a.selection.moveToPosition(c);var O={row:c.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},T=O.el.appendChild(p.createElement("div")),_=O.el.appendChild(p.createElement("div"));_.className="error_widget_arrow "+b.className;var C=a.renderer.$cursorLayer.getPixelPosition(c).left;_.style.left=C+a.renderer.gutterWidth-5+"px",O.el.className="error_widget_wrapper",T.className="error_widget "+b.className,b.displayText.forEach(function(F,E){T.appendChild(p.createTextNode(F)),E<b.displayText.length-1&&T.appendChild(p.createElement("br"))}),T.appendChild(p.createElement("div"));var L=function(F,E,I){if(E===0&&(I==="esc"||I==="return"))return O.destroy(),{command:"null"}};O.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(L),u.widgetManager.removeLineWidget(O),a.off("changeSelection",O.destroy),a.off("changeSession",O.destroy),a.off("mouseup",O.destroy),a.off("change",O.destroy))},a.keyBinding.addKeyboardHandler(L),a.on("changeSelection",O.destroy),a.on("changeSession",O.destroy),a.on("mouseup",O.destroy),a.on("change",O.destroy),a.session.widgetManager.addLineWidget(O),O.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:O.el.offsetHeight})},p.importCssString(`
|
|
947
|
-
.error_widget_wrapper {
|
|
948
|
-
background: inherit;
|
|
949
|
-
color: inherit;
|
|
950
|
-
border:none
|
|
951
|
-
}
|
|
952
|
-
.error_widget {
|
|
953
|
-
border-top: solid 2px;
|
|
954
|
-
border-bottom: solid 2px;
|
|
955
|
-
margin: 5px 0;
|
|
956
|
-
padding: 10px 40px;
|
|
957
|
-
white-space: pre-wrap;
|
|
958
|
-
}
|
|
959
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
960
|
-
border-color: #ff5a5a
|
|
961
|
-
}
|
|
962
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
963
|
-
border-color: #F1D817
|
|
964
|
-
}
|
|
965
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
966
|
-
border-color: #5a5a5a
|
|
967
|
-
}
|
|
968
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
969
|
-
border-color: #5aaa5a
|
|
970
|
-
}
|
|
971
|
-
.error_widget_arrow {
|
|
972
|
-
position: absolute;
|
|
973
|
-
border: solid 5px;
|
|
974
|
-
border-top-color: transparent!important;
|
|
975
|
-
border-right-color: transparent!important;
|
|
976
|
-
border-left-color: transparent!important;
|
|
977
|
-
top: -5px;
|
|
978
|
-
}
|
|
979
|
-
`,"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,r,v){e("./loader_build")(r);var p=e("./lib/dom"),g=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,d=e("./undomanager").UndoManager,a=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"),r.config=e("./config"),r.edit=function(u,c){if(typeof u=="string"){var i=u;if(u=document.getElementById(i),!u)throw new Error("ace.edit can't find div #"+i)}if(u&&u.env&&u.env.editor instanceof w)return u.env.editor;var s="";if(u&&/input|textarea/i.test(u.tagName)){var f=u;s=f.value,u=p.createElement("pre"),f.parentNode.replaceChild(u,f)}else u&&(s=u.textContent,u.innerHTML="");var b=r.createEditSession(s),x=new w(new a(u),b,c),O={document:b,editor:x,onResize:x.resize.bind(x,null)};return f&&(O.textarea=f),x.on("destroy",function(){O.editor.container.env=null}),x.container.env=x.env=O,x},r.createEditSession=function(u,c){var i=new h(u,c);return i.setUndoManager(new d),i},r.Range=g,r.Editor=w,r.EditSession=h,r.UndoManager=d,r.VirtualRenderer=a;var l=r.config.version;r.version=l}),(function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var r=(function(){return this})();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=e);for(var v in e)e.hasOwnProperty(v)&&(r.ace[v]=e[v]);r.ace.default=r.ace,t&&(t.exports=r.ace)})})()})(Gf)),Gf.exports}var GN=Mn("S",lx()),Xf={exports:{}},Zf;function cx(){return Zf||(Zf=1,(function(t,n){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},d=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},u=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},i=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},s=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},f=function(){var b="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",x="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",O="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",T="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",_=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":O,"variable.language":T,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),C=`\\\\(?: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})*})`,L={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:C},{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(F,E,I){I.length&&(I=[]);var z=F[F.length-1];return I.unshift(z,E),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(F,E,I){I.length&&(I=[]);var z=F[F.length-1];return I.unshift(z,E),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(F,E,I){I.length&&(I=[]);var z=F[F.length-1];return I.unshift(z,E),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(F,E,I){I.length&&(I=[]);var z=F[F.length-1];return I.unshift(z,E),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(F,E,I){I.length&&(I=[]);var z=F[F.length-1];return I.unshift(z,E),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},s,{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\\?(?:"+C+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},u,c,w,h,i,d,a,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:_,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(F,E,I){var z=F[2]=="-"||F[2]=="~"?"indentedHeredoc":"heredoc",P=F.split(this.splitRegex);return I.push(z,P[3]),[{type:"constant",value:P[1]},{type:"string",value:P[2]},{type:"support.class",value:P[3]},{type:"string",value:P[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(F,E,I){return F===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(F,E,I){return F===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(F,E){return E[0]==="heredoc"||E[0]==="indentedHeredoc"?E[0]:F}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(F,E,I){return this.next="",F=="}"&&I.length>1&&I[1]!="start"&&(I.shift(),this.next=I.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(F,E,I){return I.length&&F===I[0]?(I.unshift(F,E),this.token):"string"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(F,E,I){return I.length&&F===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(F,E,I){return I.length&&F===I[0]?(I.unshift(F,E),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(F,E,I){return I.length&&F===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(F,E,I){return I.length&&F===I[0]?(I.unshift(F,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(F,E,I){return I.length&&F===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(F,E,I){return I.length&&F===I[0]?(I.unshift(F,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(F,E,I){return I.length&&F===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(F,E,I){return I.length&&F===I[0]?(I.unshift(F,E),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(F,E,I){return I.length&&F[0]===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};p.inherits(f,g),r.RubyHighlightRules=f}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,d=r.FoldMode=function(){};p.inherits(d,g),(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(a,l,u){var c=a.getLine(u),i=this.foldingStartMarker.test(c),s=this.foldingStopMarker.test(c);if(i&&!s){var f=c.match(this.foldingStartMarker);if(f[1]){if((f[1]=="if"||f[1]=="else"||f[1]=="while"||f[1]=="until"||f[1]=="unless")&&(f[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||f[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(a.getTokenAt(u,f.index+2).type==="keyword")return"start"}else if(!f[3]||a.getTokenAt(u,f.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!s||i&&s)return"";var f=c.match(this.foldingStopMarker);if(f[3]==="end"){if(a.getTokenAt(u,f.index+1).type==="keyword")return"end"}else if(!f[1]||a.getTokenAt(u,f.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,u){var c=a.doc.getLine(u),i=this.foldingStartMarker.exec(c);if(i)return i[1]||i[3]?this.rubyBlock(a,u,i.index+2):this.openingBracketBlock(a,"{",u,i.index);var i=this.foldingStopMarker.exec(c);if(i)return i[3]==="end"&&a.getTokenAt(u,i.index+1).type==="keyword"?this.rubyBlock(a,u,i.index+1):i[1]==="=end"&&a.getTokenAt(u,i.index+1).type==="comment.multiline"?this.rubyBlock(a,u,i.index+1):this.closingBracketBlock(a,"}",u,i.index+i[0].length)},this.rubyBlock=function(a,l,u,c){var i=new h(a,l,u),s=i.getCurrentToken();if(!(!s||s.type!="keyword"&&s.type!="comment.multiline")){var f=s.value,b=a.getLine(l);switch(s.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);if(!x.test(b))return;var O=this.indentKeywords[f];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var O=1;break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");if(!x.test(b))return;var O=1;break;default:var O=this.indentKeywords[f]}var T=[f];if(O){var _=O===-1?a.getLine(l-1).length:a.getLine(l).length,C=l,L=[];if(L.push(i.getCurrentTokenRange()),i.step=O===-1?i.stepBackward:i.stepForward,s.type=="comment.multiline"){for(;s=i.step();)if(s.type==="comment.multiline"){if(O==1){if(_=6,s.value=="=end")break}else if(s.value=="=begin")break}}else for(;s=i.step();){var F=!1;if(s.type==="keyword"){var E=O*this.indentKeywords[s.value];switch(b=a.getLine(i.getCurrentTokenRow()),s.value){case"do":for(var I=i.$tokenIndex-1;I>=0;I--){var z=i.$rowTokens[I];if(z&&(z.value=="while"||z.value=="until"||z.value=="for")){E=0;break}}break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");(!x.test(b)||f=="case")&&(E=0,F=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);x.test(b)||(E=0,F=!0);break;case"when":(/\sthen\s/.test(b)||f=="case")&&(E=0,F=!0)}if(E>0)T.unshift(s.value);else if(E<=0&&F===!1){if(T.shift(),!T.length&&((f=="while"||f=="until"||f=="for")&&s.value!="do"||s.value=="do"&&O==-1&&E!=0||s.value!="do"))break;E===0&&T.unshift(s.value)}}}if(!s)return null;if(c)return L.push(i.getCurrentTokenRange()),L;var l=i.getCurrentTokenRow();if(O===-1){if(s.type==="comment.multiline")var P=6;else var P=a.getLine(l).length;return new w(l,P,C-1,_)}return new w(C,_,l-1,a.getLine(l-1).length)}}}}).call(d.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,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../range").Range,a=e("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};p.inherits(l,g),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),f=this.getTokenizer().getLineTokens(c,u),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),O=c.match(/^\s*(class|def|module)\s.*$/),T=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),_=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||O||T||_)&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return/^\s+(end|else|rescue|ensure)$/.test(c+i)||this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){var s=c.getLine(i);if(/}/.test(s))return this.$outdent.autoOutdent(c,i);var f=this.$getIndent(s),b=c.getLine(i-1),x=this.$getIndent(b),O=c.getTabString();x.length<=f.length&&f.slice(-O.length)==O&&c.remove(new d(i,f.length-O.length,i,f.length))},this.getMatching=function(u,c,i){if(c==null){var s=u.selection.lead;i=s.column,c=s.row}var f=u.getTokenAt(c,i);if(f&&f.value in this.indentKeywords)return this.foldingRules.rubyBlock(u,c,i,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),(function(){ace.require(["ace/mode/ruby"],function(e){t&&(t.exports=e)})})()})(Xf)),Xf.exports}cx();var Qf={exports:{}},Jf;function ux(){return Jf||(Jf=1,(function(t,n){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=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",d="True|False|None|NotImplemented|Ellipsis|__debug__",a="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":d,keyword:h},"identifier"),u="[uU]?",c="[rR]",i="[fF]",s="(?:[rR][fF]|[fF][rR])",f="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",O="(?:0[bB][01]+)",T="(?:"+f+"|"+b+"|"+x+"|"+O+")",_="(?:[eE][+-]?\\d+)",C="(?:\\.\\d+)",L="(?:\\d+)",F="(?:(?:"+L+"?"+C+")|(?:"+L+"\\.))",E="(?:(?:"+F+"|"+L+")"+_+")",I="(?:"+E+"|"+F+")",z=`\\\\(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:u+'"{3}',next:"qqstring3"},{token:"string",regex:u+'"(?=.)',next:"qqstring"},{token:"string",regex:u+"'{3}",next:"qstring3"},{token:"string",regex:u+"'(?=.)",next:"qstring"},{token:"string",regex:c+'"{3}',next:"rawqqstring3"},{token:"string",regex:c+'"(?=.)',next:"rawqqstring"},{token:"string",regex:c+"'{3}",next:"rawqstring3"},{token:"string",regex:c+"'(?=.)",next:"rawqstring"},{token:"string",regex:i+'"{3}',next:"fqqstring3"},{token:"string",regex:i+'"(?=.)',next:"fqqstring"},{token:"string",regex:i+"'{3}",next:"fqstring3"},{token:"string",regex:i+"'(?=.)",next:"fqstring"},{token:"string",regex:s+'"{3}',next:"rfqqstring3"},{token:"string",regex:s+'"(?=.)',next:"rfqqstring"},{token:"string",regex:s+"'{3}",next:"rfqstring3"},{token:"string",regex:s+"'(?=.)",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:z},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:z},{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:z},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:z},{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:"(?:"+I+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:I},{token:"constant.numeric",regex:T+"[lL]\\b"},{token:"constant.numeric",regex:T+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};p.inherits(w,g),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};p.inherits(w,g),(function(){this.getFoldWidgetRange=function(h,d,a){var l=h.getLine(a),u=l.match(this.foldingStartMarker);if(u)return u[1]?this.openingBracketBlock(h,u[1],a,u.index):u[2]?this.indentationBlock(h,a,u.index+u[2].length):this.indentationBlock(h,a)}}).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,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,d=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};p.inherits(a,g),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),f=this.getTokenizer().getLineTokens(c,u),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(u,c,i){if(i!==`\r
|
|
980
|
-
`&&i!=="\r"&&i!==`
|
|
981
|
-
`)return!1;var s=this.getTokenizer().getLineTokens(c.trim(),u).tokens;if(!s)return!1;do var f=s.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&l[f.value]:!1},this.autoOutdent=function(u,c,i){i+=1;var s=this.$getIndent(c.getLine(i)),f=c.getTabString();s.slice(-f.length)==f&&c.remove(new d(i,s.length-f.length,i,s.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),r.Mode=a}),(function(){ace.require(["ace/mode/python"],function(e){t&&(t.exports=e)})})()})(Qf)),Qf.exports}ux();var ep={exports:{}},tp;function hx(){return tp||(tp=1,(function(t,n){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};p.inherits(w,g),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var c=this._getFoldWidgetBase(d,a,l);return!c&&this.startRegionRe.test(u)?"start":c},this.getFoldWidgetRange=function(d,a,l,u){var c=d.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(d,c,l);var i=c.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var f=d.getCommentFoldRange(l,s+i[0].length,1);return f&&!f.isMultiLine()&&(u?f=this.getSectionRange(d,l):a!="all"&&(f=null)),f}if(a!=="markbegin"){var i=c.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),u=l.search(/\S/),c=a,i=l.length;a+=1;for(var s=a,f=d.getLength();++a<f;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(u>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(u==b)break}s=a}}return new g(c,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var u=a.search(/\s*$/),c=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,f=1;++l<c;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?f--:f++,!f))break}var x=l;if(x>i)return new g(i,u,x,a.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,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new d};p.inherits(l,g),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c);if(u=="start"){var f=c.match(/^.*[\{\(\[]\s*$/);f&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){this.$outdent.autoOutdent(c,i)},this.createWorker=function(u){var c=new a(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(u.getDocument()),c.on("annotate",function(i){u.setAnnotations(i.data)}),c.on("terminate",function(){u.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),r.Mode=l}),(function(){ace.require(["ace/mode/json"],function(e){t&&(t.exports=e)})})()})(ep)),ep.exports}hx();var np={exports:{}},rp;function dx(){return rp||(rp=1,(function(t,n){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop");e("../lib/lang");var g=e("./text_highlight_rules").TextHighlightRules,w=r.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=r.supportFunction="rgb|rgba|url|attr|counter|counters",d=r.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",a=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",i=r.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",s=function(){var f=this.createKeywordMapper({"support.function":h,"support.constant":d,"support.type":w,"support.constant.color":a,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{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:"("+u+")(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:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:i},{include:"url"},{token:f,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};p.inherits(s,g),r.CssHighlightRules=s}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(w,g),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}},r.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,r,v){function p(){var u=a.replace("\\d","\\d\\-"),c={onMatch:function(s,f,b){var x=s.charAt(1)=="/"?2:1;return x==1?(f!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&f==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:s.slice(0,x)},{type:"meta.tag.tag-name.xml",value:s.substr(x)}]},regex:"</?(?:"+u+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(c);var i={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[i,c,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(s,f,b){return f==b[0]&&b.shift(),s.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:s}]},nextState:"jsx"},i,g("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function g(u){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,d=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",l=function(u){var c={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},i=this.createKeywordMapper(c,"identifier"),s="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",f="\\\\(?: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]?|.)",b="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),g("no_regex"),x,{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:"("+a+")(\\s*)(=)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+s+")\\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:i,regex:a},{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:b+"(\\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:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),g("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:[g("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!u||!u.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(O,T,_){if(this.next=O=="{"?this.nextState:"",O=="{"&&_.length)_.unshift("start",T);else if(O=="}"&&_.length&&(_.shift(),this.next=_.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return O=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:f},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\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"}),(!u||u.jsx!=0)&&p.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,d),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=function(h){var d="[_: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:"(<\\?)("+d+")",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:d},{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:"(<\\!)("+d+")",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:"(?:(<)|(</))((?:"+d+":)?"+d+")",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:d},{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,d,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:d+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,u,c){return c.splice(0),this.token}}],this.embedRules(h,d,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(g.prototype),p.inherits(w,g),r.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,r,v){var p=e("../lib/oop"),g=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,d=e("./xml_highlight_rules").XmlHighlightRules,a=g.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){d.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(u,c){var i=a[c];return["meta.tag.punctuation."+(u=="<"?"":"end-")+"tag-open.xml","meta.tag"+(i?"."+i:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};p.inherits(l,d),r.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,r,v){var p=e("../config").$modes,g=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,d=e("./html_highlight_rules").HtmlHighlightRules,a=function(u){return"(?:[^"+w.escapeRegExp(u)+"\\\\]|\\\\.)*"},l=function(){d.call(this);var u={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(i,s,f,b){var x=i.match(/^(\s*)([`~]+)(.*)/),O=/[\w-]+|$/.exec(x[3])[0];return p[O]||(O=""),f.unshift("githubblock",[],[x[1],x[2],O],s),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(i,s,f,b){var x=f[1],O=f[2][0],T=f[2][1],_=f[2][2],C=/^(\s*)(`+|~+)\s*$/.exec(i);if(C&&C[1].length<O.length+3&&C[2].length>=T.length&&C[2][0]==T[0])return f.splice(0,3),this.next=f.shift(),this.token;if(this.next="",_&&p[_]){var L=p[_].getTokenizer().getLineTokens(i,x.slice(0));return f[1]=L.state,L.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(i){return"markup.heading."+i.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},u,{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:"(\\[)("+a("]")+")(\\]\\s*\\[)("+a("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+a("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+a('"')+'"\\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},u,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:c}),this.normalizeRules()};g.inherits(l,h),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=e("../../range").Range,h=r.FoldMode=function(){};p.inherits(h,g),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);return this.foldingStartMarker.test(u)?u[0]=="`"&&d.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(d,a,l){function u(F){return O=d.getTokens(F)[0],O&&O.type.lastIndexOf(T,0)===0}function c(){var F=O.value[0];return F=="="?6:F=="-"?5:7-O.value.search(/[^#]|$/)}var i=d.getLine(l),s=i.length,f=d.getLength(),b=l,x=l;if(i.match(this.foldingStartMarker)){if(i[0]=="`"){if(d.bgTokenizer.getState(l)!=="start"){for(;++l<f&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(b,s,l,0)}for(;l-- >0&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(l,i.length,b,0)}var O,T="markup.heading";if(u(l)){for(var _=c();++l<f;)if(u(l)){var C=c();if(C>=_)break}if(x=l-(!O||["=","-"].indexOf(O.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(d.getLine(x));)x--;if(x>b){var L=d.getLine(x).length;return new w(b,s,x,L)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,v){var p=e("../range").Range,g=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new p(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,v){function p(a,l){return a&&a.type.lastIndexOf(l+".xml")>-1}var g=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,d=function(){this.add("string_dquotes","insertion",function(a,l,u,c,i){if(i=='"'||i=="'"){var s=i,f=c.doc.getTextRange(u.getSelectionRange());if(f!==""&&f!=="'"&&f!='"'&&u.getWrapBehavioursEnabled())return{text:s+f+s,selection:!1};var b=u.getCursorPosition(),x=c.doc.getLine(b.row),O=x.substring(b.column,b.column+1),T=new h(c,b.row,b.column),_=T.getCurrentToken();if(O==s&&(p(_,"attribute-value")||p(_,"string")))return{text:"",selection:[1,1]};if(_||(_=T.stepBackward()),!_)return;for(;p(_,"tag-whitespace")||p(_,"whitespace");)_=T.stepBackward();var C=!O||O.match(/\s/);if(p(_,"attribute-equals")&&(C||O==">")||p(_,"decl-attribute-equals")&&(C||O=="?"))return{text:s+s,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,l,u,c,i){var s=c.doc.getTextRange(i);if(!i.isMultiLine()&&(s=='"'||s=="'")){var f=c.doc.getLine(i.start.row),b=f.substring(i.start.column+1,i.start.column+2);if(b==s)return i.end.column++,i}}),this.add("autoclosing","insertion",function(a,l,u,c,i){if(i==">"){var s=u.getSelectionRange().start,f=new h(c,s.row,s.column),b=f.getCurrentToken()||f.stepBackward();if(!b||!(p(b,"tag-name")||p(b,"tag-whitespace")||p(b,"attribute-name")||p(b,"attribute-equals")||p(b,"attribute-value"))||p(b,"reference.attribute-value"))return;if(p(b,"attribute-value")){var x=f.getCurrentTokenColumn()+b.value.length;if(s.column<x)return;if(s.column==x){var O=f.stepForward();if(O&&p(O,"attribute-value"))return;f.stepBackward()}}if(/^\s*>/.test(c.getLine(s.row).slice(s.column)))return;for(;!p(b,"tag-name");)if(b=f.stepBackward(),b.value=="<"){b=f.stepForward();break}var T=f.getCurrentTokenRow(),_=f.getCurrentTokenColumn();if(p(f.stepBackward(),"end-tag-open"))return;var C=b.value;return T==s.row&&(C=C.substring(0,s.column-_)),this.voidElements&&this.voidElements.hasOwnProperty(C.toLowerCase())?void 0:{text:"></"+C+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,l,u,c,i){if(i==`
|
|
982
|
-
`){var s=u.getCursorPosition(),f=c.getLine(s.row),b=new h(c,s.row,s.column),x=b.getCurrentToken();if(p(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var O=x.value,T=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[O]||!this.voidElements){var _=c.getTokenAt(s.row,s.column+1),f=c.getLine(T),C=this.$getIndent(f),L=C+c.getTabString();return _&&_.value==="</"?{text:`
|
|
983
|
-
`+L+`
|
|
984
|
-
`+C,selection:[1,L.length,1,L.length]}:{text:`
|
|
985
|
-
`+L}}}}})};g.inherits(d,w),r.XmlBehaviour=d}),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,r,v){var p=e("../../lib/oop"),g=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,d=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(w),this.add("autoclosing-fragment","insertion",function(l,u,c,i,s){if(s==">"){var f=c.getSelectionRange().start,b=new g(i,f.row,f.column),x=b.getCurrentToken()||b.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(d,w),r.JavaScriptBehaviour=d}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){function p(l,u){return l&&l.type&&l.type.lastIndexOf(u+".xml")>-1}var g=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,d=r.FoldMode=function(l,u){h.call(this),this.voidElements=l||{},this.optionalEndTags=g.mixin({},this.voidElements),u&&g.mixin(this.optionalEndTags,u)};g.inherits(d,h);var a=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(l,u,c){var i=this._getFirstTagInLine(l,c);return i?i.closing||!i.tagName&&i.selfClosing?u==="markbeginend"?"end":"":!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())||this._findEndTagInLine(l,c,i.tagName,i.end.column)?"":"start":this.getCommentFoldWidget(l,c)},this.getCommentFoldWidget=function(l,u){return/comment/.test(l.getState(u))&&/<!-/.test(l.getLine(u))?"start":""},this._getFirstTagInLine=function(l,u){for(var c=l.getTokens(u),i=new a,s=0;s<c.length;s++){var f=c[s];if(p(f,"tag-open")){if(i.end.column=i.start.column+f.value.length,i.closing=p(f,"end-tag-open"),f=c[++s],!f)return null;if(i.tagName=f.value,f.value===""){if(f=c[++s],!f)return null;i.tagName=f.value}for(i.end.column+=f.value.length,s++;s<c.length;s++)if(f=c[s],i.end.column+=f.value.length,p(f,"tag-close")){i.selfClosing=f.value=="/>";break}return i}if(p(f,"tag-close"))return i.selfClosing=f.value=="/>",i;i.start.column+=f.value.length}return null},this._findEndTagInLine=function(l,u,c,i){for(var s=l.getTokens(u),f=0,b=0;b<s.length;b++){var x=s[b];if(f+=x.value.length,!(f<i-1)&&p(x,"end-tag-open")&&(x=s[b+1],p(x,"tag-name")&&x.value===""&&(x=s[b+2]),x&&x.value==c))return!0}return!1},this.getFoldWidgetRange=function(l,u,c){var i=this._getFirstTagInLine(l,c);if(!i)return this.getCommentFoldWidget(l,c)&&l.getCommentFoldRange(c,l.getLine(c).length);var s=l.getMatchingTags({row:c,column:0});if(s)return new w(s.openTag.end.row,s.openTag.end.column,s.closeTag.start.row,s.closeTag.start.column)}}).call(d.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};p.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var c=this._getFoldWidgetBase(d,a,l);return!c&&this.startRegionRe.test(u)?"start":c},this.getFoldWidgetRange=function(d,a,l,u){var c=d.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(d,c,l);var i=c.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var f=d.getCommentFoldRange(l,s+i[0].length,1);return f&&!f.isMultiLine()&&(u?f=this.getSectionRange(d,l):a!="all"&&(f=null)),f}if(a!=="markbegin"){var i=c.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),u=l.search(/\S/),c=a,i=l.length;a+=1;for(var s=a,f=d.getLength();++a<f;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(u>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(u==b)break}s=a}}return new g(c,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var u=a.search(/\s*$/),c=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,f=1;++l<c;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?f--:f++,!f))break}var x=l;if(x>i)return new g(i,u,x,a.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,r,v){var p=e("../../lib/oop"),g=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end))),this.xmlFoldMode=new g};p.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=this.getFoldWidgetBase(d,a,l);return u||this.xmlFoldMode.getFoldWidget(d,a,l)},this.getFoldWidgetRange=function(d,a,l,u){var c=this.getFoldWidgetRangeBase(d,a,l,u);return c||this.xmlFoldMode.getFoldWidgetRange(d,a,l)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,l=e("./folding/javascript").FoldMode,u=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new l};p.inherits(u,g),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,i,s){var f=this.$getIndent(i),b=this.getTokenizer().getLineTokens(i,c),x=b.tokens,O=b.state;if(x.length&&x[x.length-1].type=="comment")return f;if(c=="start"||c=="no_regex"){var T=i.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);T&&(f+=s)}else if(c=="doc-start"&&(O=="start"||O=="no_regex"))return"";return f},this.checkOutdent=function(c,i,s){return this.$outdent.checkOutdent(i,s)},this.autoOutdent=function(c,i,s){this.$outdent.autoOutdent(i,s)},this.createWorker=function(c){var i=new d(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return i.attachToDocument(c.getDocument()),i.on("annotate",function(s){c.setAnnotations(s.data)}),i.on("terminate",function(){c.clearAnnotations()}),i},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(u.prototype),r.Mode=u}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,r,v){var p={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},g=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 d=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});p.hasOwnProperty(d)||(p[d]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,d,a){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var l=h.getLine(d.row).substr(0,d.column),u=/\([^)]*$/.test(l);return u&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(w,h,d,a):this.getPropertyCompletions(w,h,d,a,u)}return[]},this.getPropertyCompletions=function(w,h,d,a,l){l=l||!1;var u=Object.keys(p);return u.map(function(c){return{caption:c,snippet:c+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,d,a){var l=h.getLine(d.row).substr(0,d.column),u=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!u)return[];var c=[];return u in p&&typeof p[u]=="object"&&(c=Object.keys(p[u])),c.map(function(i){return{caption:i,snippet:i,meta:"property value",score:1e6}})}}).call(g.prototype),r.CssCompletions=g}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,r,v){var p=e("../../lib/oop");e("../behaviour").Behaviour;var g=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(g),this.add("colon","insertion",function(d,a,l,u,c){if(c===":"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=new w(u,i.row,i.column),f=s.getCurrentToken();if(f&&f.value.match(/\s+/)&&(f=s.stepBackward()),f&&f.type==="support.type"){var b=u.doc.getLine(i.row),x=b.substring(i.column,i.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(b.substring(i.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(d,a,l,u,c){var i=u.doc.getTextRange(c);if(!c.isMultiLine()&&i===":"){var s=l.getCursorPosition(),f=new w(u,s.row,s.column),b=f.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=f.stepBackward()),b&&b.type==="support.type"){var x=u.doc.getLine(c.start.row),O=x.substring(c.end.column,c.end.column+1);if(O===";")return c.end.column++,c}}}),this.add("semicolon","insertion",function(d,a,l,u,c){if(c===";"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=u.doc.getLine(i.row),f=s.substring(i.column,i.column+1);if(f===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(d,a,l,u,c){if(c==="!"&&l.selection.isEmpty()){var i=l.getCursorPosition(),s=u.doc.getLine(i.row);if(/^\s*(;|}|$)/.test(s.substring(i.column)))return{text:"!important",selection:[10,10]}}})};p.inherits(h,g),r.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,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new u};p.inherits(c,g),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(i,s,f){var b=this.$getIndent(s),x=this.getTokenizer().getLineTokens(s,i).tokens;if(x.length&&x[x.length-1].type=="comment")return b;var O=s.match(/^.*\{\s*$/);return O&&(b+=f),b},this.checkOutdent=function(i,s,f){return this.$outdent.checkOutdent(s,f)},this.autoOutdent=function(i,s,f){this.$outdent.autoOutdent(s,f)},this.getCompletions=function(i,s,f,b){return this.$completer.getCompletions(i,s,f,b)},this.createWorker=function(i){var s=new d(["ace"],"ace/mode/css_worker","Worker");return s.attachToDocument(i.getDocument()),s.on("annotate",function(f){i.setAnnotations(f.data)}),s.on("terminate",function(){i.clearAnnotations()}),s},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,v){var p=e("../../lib/oop"),g=e("./fold_mode").FoldMode,w=r.FoldMode=function(h,d){this.defaultMode=h,this.subModes=d};p.inherits(w,g),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var d in this.subModes)if(h.indexOf(d)===0)return this.subModes[d];return null},this.$tryMode=function(h,d,a,l){var u=this.$getMode(h);return u?u.getFoldWidget(d,a,l):""},this.getFoldWidget=function(h,d,a){return this.$tryMode(h.getState(a-1),h,d,a)||this.$tryMode(h.getState(a),h,d,a)||this.defaultMode.getFoldWidget(h,d,a)},this.getFoldWidgetRange=function(h,d,a){var l=this.$getMode(h.getState(a-1));return(!l||!l.getFoldWidget(h,d,a))&&(l=this.$getMode(h.getState(a))),(!l||!l.getFoldWidget(h,d,a))&&(l=this.defaultMode),l.getFoldWidgetRange(h,d,a)}}).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,r,v){var p=e("../../lib/oop"),g=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,d=r.FoldMode=function(a,l){g.call(this,new w(a,l),{"js-":new h,"css-":new h})};p.inherits(d,g)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,r,v){function p(s,f){return s.type.lastIndexOf(f+".xml")>-1}function g(s,f){for(var b=new h(s,f.row,f.column),x=b.getCurrentToken();x&&!p(x,"tag-name");)x=b.stepBackward();if(x)return x.value}function w(s,f){for(var b=new h(s,f.row,f.column),x=b.getCurrentToken();x&&!p(x,"attribute-name");)x=b.stepBackward();if(x)return x.value}var h=e("../token_iterator").TokenIterator,d=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],a=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=d.concat(a),u={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(u),i=function(){};(function(){this.getCompletions=function(s,f,b,x){var O=f.getTokenAt(b.row,b.column);if(!O)return[];if(p(O,"tag-name")||p(O,"tag-open")||p(O,"end-tag-open"))return this.getTagCompletions(s,f,b,x);if(p(O,"tag-whitespace")||p(O,"attribute-name"))return this.getAttributeCompletions(s,f,b,x);if(p(O,"attribute-value"))return this.getAttributeValueCompletions(s,f,b,x);var T=f.getLine(b.row).substr(0,b.column);return/&[a-z]*$/i.test(T)?this.getHTMLEntityCompletions(s,f,b,x):[]},this.getTagCompletions=function(s,f,b,x){return c.map(function(O){return{value:O,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(s,f,b,x){var O=g(f,b);if(!O)return[];var T=l;return O in u&&(T=T.concat(Object.keys(u[O]))),T.map(function(_){return{caption:_,snippet:_+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(s,f,b,x){var O=g(f,b),T=w(f,b);if(!O)return[];var _=[];return O in u&&T in u[O]&&typeof u[O][T]=="object"&&(_=Object.keys(u[O][T])),_.map(function(C){return{caption:C,snippet:C,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(s,f,b,x){var O=["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 O.map(function(T){return{caption:T,snippet:T,meta:"html entity",score:1e6}})}}).call(i.prototype),r.HtmlCompletions=i}),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,r,v){var p=e("../lib/oop"),g=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,d=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,u=e("./folding/html").FoldMode,c=e("./html_completions").HtmlCompletions,i=e("../worker/worker_client").WorkerClient,s=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],f=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],b=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":h,"css-":d}),this.foldingRules=new u(this.voidElements,g.arrayToMap(f))};p.inherits(b,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=g.arrayToMap(s),this.getNextLineIndent=function(x,O,T){return this.$getIndent(O)},this.checkOutdent=function(x,O,T){return!1},this.getCompletions=function(x,O,T,_){return this.$completer.getCompletions(x,O,T,_)},this.createWorker=function(x){if(this.constructor==b){var O=new i(["ace"],"ace/mode/html_worker","Worker");return O.attachToDocument(x.getDocument()),this.fragmentContext&&O.call("setOptions",[{context:this.fragmentContext}]),O.on("error",function(T){x.setAnnotations(T.data)}),O.on("terminate",function(){x.clearAnnotations()}),O}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(b.prototype),r.Mode=b}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,v){var p=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,w=r.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=r.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",d=function(){var a=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",u="(?:\\.\\d+)",c="(?:\\d+)",i="(?:(?:"+c+"?"+u+")|(?:"+c+"\\.))",s="(?:(?:"+i+"|"+c+"))",f="(?:"+s+"|"+i+")",b="(?:&"+c+")",x="[a-zA-Z_][a-zA-Z0-9_]*",O="(?:"+x+"(?==))",T="(?:\\$(?:SHLVL|\\$|\\!|\\?))",_="(?:"+x+"\\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(C,L,F){var E=C[2]=="-"?"indentedHeredoc":"heredoc",I=C.split(this.splitRegex);return F.push(E,I[4]),[{type:"constant",value:I[1]},{type:"text",value:I[2]},{type:"string",value:I[3]},{type:"support.class",value:I[4]},{type:"string",value:I[5]}]},rules:{heredoc:[{onMatch:function(C,L,F){return C===F[1]?(F.shift(),F.shift(),this.next=F[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(C,L,F){return C===F[1]?(F.shift(),F.shift(),this.next=F[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(C,L){return L[0]==="heredoc"||L[0]==="indentedHeredoc"?L[0]:C}},{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:T},{token:"variable",regex:O},{include:"variables"},{token:"support.function",regex:_},{token:"support.function",regex:b},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:f},{token:"constant.numeric",regex:l+"\\b"},{token:a,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};p.inherits(d,g),r.ShHighlightRules=d}),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,r,v){var p=e("../lib/oop"),g=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,d=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=w,this.foldingRules=new d,this.$behaviour=this.$defaultBehaviour};p.inherits(a,g),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),f=this.getTokenizer().getLineTokens(c,u),b=f.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(u,c,i){if(i!==`\r
|
|
986
|
-
`&&i!=="\r"&&i!==`
|
|
987
|
-
`)return!1;var s=this.getTokenizer().getLineTokens(c.trim(),u).tokens;if(!s)return!1;do var f=s.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&l[f.value]:!1},this.autoOutdent=function(u,c,i){i+=1;var s=this.$getIndent(c.getLine(i)),f=c.getTabString();s.slice(-f.length)==f&&c.remove(new h(i,s.length-f.length,i,s.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(a.prototype),r.Mode=a}),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,r,v){var p=e("../lib/oop"),g=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,d=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=h,this.$behaviour=new d,this.foldingRules=new a};p.inherits(u,w),(function(){this.voidElements=g.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(c){var i=new l(["ace"],"ace/mode/xml_worker","Worker");return i.attachToDocument(c.getDocument()),i.on("error",function(s){c.setAnnotations(s.data)}),i.on("terminate",function(){c.clearAnnotations()}),i},this.$id="ace/mode/xml"}).call(u.prototype),r.Mode=u}),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,r,v){var p=e("../lib/oop"),g=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,d=e("./folding/markdown").FoldMode,a=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 d,this.$behaviour=new g({braces:!0})};p.inherits(a,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,u,c){if(l=="listblock"){var i=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(u);if(!i)return"";var s=i[2];return s||(s=parseInt(i[3],10)+1+"."),i[1]+s+i[4]}return this.$getIndent(u)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),r.Mode=a}),(function(){ace.require(["ace/mode/markdown"],function(e){t&&(t.exports=e)})})()})(np)),np.exports}dx();var ip={exports:{}},op;function fx(){return op||(op=1,(function(t,n){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,r,v){v.exports=`.ace-twilight .ace_gutter {
|
|
988
|
-
background: #232323;
|
|
989
|
-
color: #E2E2E2
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
.ace-twilight .ace_print-margin {
|
|
993
|
-
width: 1px;
|
|
994
|
-
background: #232323
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
.ace-twilight {
|
|
998
|
-
background-color: #141414;
|
|
999
|
-
color: #F8F8F8
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.ace-twilight .ace_cursor {
|
|
1003
|
-
color: #A7A7A7
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
.ace-twilight .ace_marker-layer .ace_selection {
|
|
1007
|
-
background: rgba(221, 240, 255, 0.20)
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|
1011
|
-
box-shadow: 0 0 3px 0px #141414;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
.ace-twilight .ace_marker-layer .ace_step {
|
|
1015
|
-
background: rgb(102, 82, 0)
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
.ace-twilight .ace_marker-layer .ace_bracket {
|
|
1019
|
-
margin: -1px 0 0 -1px;
|
|
1020
|
-
border: 1px solid rgba(255, 255, 255, 0.25)
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
.ace-twilight .ace_marker-layer .ace_active-line {
|
|
1024
|
-
background: rgba(255, 255, 255, 0.031)
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
.ace-twilight .ace_gutter-active-line {
|
|
1028
|
-
background-color: rgba(255, 255, 255, 0.031)
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|
1032
|
-
border: 1px solid rgba(221, 240, 255, 0.20)
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
.ace-twilight .ace_invisible {
|
|
1036
|
-
color: rgba(255, 255, 255, 0.25)
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
.ace-twilight .ace_keyword,
|
|
1040
|
-
.ace-twilight .ace_meta {
|
|
1041
|
-
color: #CDA869
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
.ace-twilight .ace_constant,
|
|
1045
|
-
.ace-twilight .ace_constant.ace_character,
|
|
1046
|
-
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|
1047
|
-
.ace-twilight .ace_constant.ace_other,
|
|
1048
|
-
.ace-twilight .ace_heading,
|
|
1049
|
-
.ace-twilight .ace_markup.ace_heading,
|
|
1050
|
-
.ace-twilight .ace_support.ace_constant {
|
|
1051
|
-
color: #CF6A4C
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
.ace-twilight .ace_invalid.ace_illegal {
|
|
1055
|
-
color: #F8F8F8;
|
|
1056
|
-
background-color: rgba(86, 45, 86, 0.75)
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
.ace-twilight .ace_invalid.ace_deprecated {
|
|
1060
|
-
text-decoration: underline;
|
|
1061
|
-
font-style: italic;
|
|
1062
|
-
color: #D2A8A1
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
.ace-twilight .ace_support {
|
|
1066
|
-
color: #9B859D
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
.ace-twilight .ace_fold {
|
|
1070
|
-
background-color: #AC885B;
|
|
1071
|
-
border-color: #F8F8F8
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
.ace-twilight .ace_support.ace_function {
|
|
1075
|
-
color: #DAD085
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
.ace-twilight .ace_list,
|
|
1079
|
-
.ace-twilight .ace_markup.ace_list,
|
|
1080
|
-
.ace-twilight .ace_storage {
|
|
1081
|
-
color: #F9EE98
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
.ace-twilight .ace_entity.ace_name.ace_function,
|
|
1085
|
-
.ace-twilight .ace_meta.ace_tag {
|
|
1086
|
-
color: #AC885B
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
.ace-twilight .ace_string {
|
|
1090
|
-
color: #8F9D6A
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
.ace-twilight .ace_string.ace_regexp {
|
|
1094
|
-
color: #E9C062
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
.ace-twilight .ace_comment {
|
|
1098
|
-
font-style: italic;
|
|
1099
|
-
color: #5F5A60
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.ace-twilight .ace_variable {
|
|
1103
|
-
color: #7587A6
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
.ace-twilight .ace_xml-pe {
|
|
1107
|
-
color: #494949
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
.ace-twilight .ace_indent-guide {
|
|
1111
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
.ace-twilight .ace_indent-guide-active {
|
|
1115
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1116
|
-
}
|
|
1117
|
-
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,r,v){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=e("./twilight-css");var p=e("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),(function(){ace.require(["ace/theme/twilight"],function(e){t&&(t.exports=e)})})()})(ip)),ip.exports}fx();var sp={exports:{}},ap;function px(){return ap||(ap=1,(function(t,n){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,r,v){function p(C){var L=new Date().toLocaleString("en-us",C);return L.length==1?"0"+L:L}var g=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,d=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,u=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,i=e("./clipboard"),s={CURRENT_WORD:function(C){return C.session.getTextRange(C.session.getWordRange())},SELECTION:function(C,L,F){var E=C.session.getTextRange();return F?E.replace(/\n\r?([ \t]*\S)/g,`
|
|
1118
|
-
`+F+"$1"):E},CURRENT_LINE:function(C){return C.session.getLine(C.getCursorPosition().row)},PREV_LINE:function(C){return C.session.getLine(C.getCursorPosition().row-1)},LINE_INDEX:function(C){return C.getCursorPosition().row},LINE_NUMBER:function(C){return C.getCursorPosition().row+1},SOFT_TABS:function(C){return C.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(C){return C.session.getTabSize()},CLIPBOARD:function(C){return i.getText&&i.getText()},FILENAME:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0]},FILENAME_BASE:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(C){return this.FILEPATH(C).replace(/[^/\\]*$/,"")},FILEPATH:function(C){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(C){var L=C.session.$mode||{};return L.blockComment&&L.blockComment.start||""},BLOCK_COMMENT_END:function(C){var L=C.session.$mode||{};return L.blockComment&&L.blockComment.end||""},LINE_COMMENT:function(C){var L=C.session.$mode||{};return L.lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};s.SELECTED_TEXT=s.SELECTION;var f=(function(){function C(){this.snippetMap={},this.snippetNameMap={},this.variables=s}return C.prototype.getTokenizer=function(){return C.$tokenizer||this.createTokenizer()},C.prototype.createTokenizer=function(){function L(I){return I=I.substr(1),/^\d+$/.test(I)?[{tabstopId:parseInt(I,10)}]:[{text:I}]}function F(I){return"(?:[^\\\\"+I+"]|\\\\.)"}var E={regex:"/("+F("/")+"+)/",onMatch:function(I,z,P){var N=P[0];return N.fmtString=!0,N.guard=I.slice(1,-1),N.flag="",""},next:"formatString"};return C.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(I,z,P){var N=I[1];return(N=="}"&&P.length||"`$\\".indexOf(N)!=-1)&&(I=N),[I]}},{regex:/}/,onMatch:function(I,z,P){return[P.length?P.shift():I]}},{regex:/\$(?:\d+|\w+)/,onMatch:L},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(I,z,P){var N=L(I.substr(1));return P.unshift(N[0]),N},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+F("\\|")+"*\\|",onMatch:function(I,z,P){var N=I.slice(1,-1).replace(/\\[,|\\]|,/g,function(S){return S.length==2?S[1]:"\0"}).split("\0").map(function(S){return{value:S}});return P[0].choices=N,[N[0]]},next:"start"},E,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(I,z,P){return P.length&&P[0].expectElse?(P[0].expectElse=!1,P[0].ifEnd={elseEnd:P[0]},[P[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(I,z,P){var N=I[1];return N=="}"&&P.length||"`$\\".indexOf(N)!=-1?I=N:N=="n"?I=`
|
|
1119
|
-
`:N=="t"?I=" ":"ulULE".indexOf(N)!=-1&&(I={changeCase:N,local:N>"a"}),[I]}},{regex:"/\\w*}",onMatch:function(I,z,P){var N=P.shift();return N&&(N.flag=I.slice(1,-1)),this.next=N&&N.tabstopId?"start":"",[N||I]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(I,z,P){return[{text:I.slice(1)}]}},{regex:/\${\w+/,onMatch:function(I,z,P){var N={text:I.slice(2)};return P.unshift(N),[N]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(I,z,P){var N=P.shift();return this.next=N&&N.tabstopId?"start":"",[N||I]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(I,z,P){var N=P[0];return N.formatFunction=I.slice(2,-1),[P.shift()]},next:"formatString"},E,{regex:/:[\?\-+]?/,onMatch:function(I,z,P){I[1]=="+"&&(P[0].ifEnd=P[0]),I[1]=="?"&&(P[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),C.$tokenizer},C.prototype.tokenizeTmSnippet=function(L,F){return this.getTokenizer().getLineTokens(L,F).tokens.map(function(E){return E.value||E})},C.prototype.getVariableValue=function(L,F,E){if(/^\d+$/.test(F))return(this.variables.__||{})[F]||"";if(/^[A-Z]\d+$/.test(F))return(this.variables[F[0]+"__"]||{})[F.substr(1)]||"";if(F=F.replace(/^TM_/,""),!this.variables.hasOwnProperty(F))return"";var I=this.variables[F];return typeof I=="function"&&(I=this.variables[F](L,F,E)),I??""},C.prototype.tmStrFormat=function(L,F,E){if(!F.fmt)return L;var I=F.flag||"",z=F.guard;z=new RegExp(z,I.replace(/[^gim]/g,""));var P=typeof F.fmt=="string"?this.tokenizeTmSnippet(F.fmt,"formatString"):F.fmt,N=this,S=L.replace(z,function(){var k=N.variables.__;N.variables.__=[].slice.call(arguments);for(var R=N.resolveVariables(P,E),B="E",U=0;U<R.length;U++){var q=R[U];if(typeof q=="object")if(R[U]="",q.changeCase&&q.local){var Q=R[U+1];Q&&typeof Q=="string"&&(q.changeCase=="u"?R[U]=Q[0].toUpperCase():R[U]=Q[0].toLowerCase(),R[U+1]=Q.substr(1))}else q.changeCase&&(B=q.changeCase);else B=="U"?R[U]=q.toUpperCase():B=="L"&&(R[U]=q.toLowerCase())}return N.variables.__=k,R.join("")});return S},C.prototype.tmFormatFunction=function(L,F,E){return F.formatFunction=="upcase"?L.toUpperCase():F.formatFunction=="downcase"?L.toLowerCase():L},C.prototype.resolveVariables=function(L,F){function E(B){var U=L.indexOf(B,N+1);U!=-1&&(N=U)}for(var I=[],z="",P=!0,N=0;N<L.length;N++){var S=L[N];if(typeof S=="string"){I.push(S),S==`
|
|
1120
|
-
`?(P=!0,z=""):P&&(z=/^\t*/.exec(S)[0],P=/\S/.test(S));continue}if(S){if(P=!1,S.fmtString){var k=L.indexOf(S,N+1);k==-1&&(k=L.length),S.fmt=L.slice(N+1,k),N=k}if(S.text){var R=this.getVariableValue(F,S.text,z)+"";S.fmtString&&(R=this.tmStrFormat(R,S,F)),S.formatFunction&&(R=this.tmFormatFunction(R,S,F)),R&&!S.ifEnd?(I.push(R),E(S)):!R&&S.ifEnd&&E(S.ifEnd)}else S.elseEnd?E(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&I.push(S)}}return I},C.prototype.getDisplayTextForSnippet=function(L,F){var E=b.call(this,L,F);return E.text},C.prototype.insertSnippetForSelection=function(L,F,E){E===void 0&&(E={});var I=b.call(this,L,F,E),z=L.getSelectionRange(),P=L.session.replace(z,I.text),N=new x(L),S=L.inVirtualSelectionMode&&L.selection.index;N.addTabstops(I.tabstops,z.start,P,S)},C.prototype.insertSnippet=function(L,F,E){E===void 0&&(E={});var I=this;if(L.inVirtualSelectionMode)return I.insertSnippetForSelection(L,F,E);L.forEachSelection(function(){I.insertSnippetForSelection(L,F,E)},null,{keepOrder:!0}),L.tabstopManager&&L.tabstopManager.tabNext()},C.prototype.$getScope=function(L){var F=L.session.$mode.$id||"";if(F=F.split("/").pop(),F==="html"||F==="php"){F==="php"&&!L.session.$mode.inlinePhp&&(F="html");var E=L.getCursorPosition(),I=L.session.getState(E.row);typeof I=="object"&&(I=I[0]),I.substring&&(I.substring(0,3)=="js-"?F="javascript":I.substring(0,4)=="css-"?F="css":I.substring(0,4)=="php-"&&(F="php"))}return F},C.prototype.getActiveScopes=function(L){var F=this.$getScope(L),E=[F],I=this.snippetMap;return I[F]&&I[F].includeScopes&&E.push.apply(E,I[F].includeScopes),E.push("_"),E},C.prototype.expandWithTab=function(L,F){var E=this,I=L.forEachSelection(function(){return E.expandSnippetForSelection(L,F)},null,{keepOrder:!0});return I&&L.tabstopManager&&L.tabstopManager.tabNext(),I},C.prototype.expandSnippetForSelection=function(L,F){var E=L.getCursorPosition(),I=L.session.getLine(E.row),z=I.substring(0,E.column),P=I.substr(E.column),N=this.snippetMap,S;return this.getActiveScopes(L).some(function(k){var R=N[k];return R&&(S=this.findMatchingSnippet(R,z,P)),!!S},this),S?(F&&F.dryRun||(L.session.doc.removeInLine(E.row,E.column-S.replaceBefore.length,E.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(L,S.content),this.variables.M__=this.variables.T__=null),!0):!1},C.prototype.findMatchingSnippet=function(L,F,E){for(var I=L.length;I--;){var z=L[I];if(!(z.startRe&&!z.startRe.test(F))&&!(z.endRe&&!z.endRe.test(E))&&!(!z.startRe&&!z.endRe))return z.matchBefore=z.startRe?z.startRe.exec(F):[""],z.matchAfter=z.endRe?z.endRe.exec(E):[""],z.replaceBefore=z.triggerRe?z.triggerRe.exec(F)[0]:"",z.replaceAfter=z.endTriggerRe?z.endTriggerRe.exec(E)[0]:"",z}},C.prototype.register=function(L,F){function E(k){return k&&!/^\^?\(.*\)\$?$|^\\b$/.test(k)&&(k="(?:"+k+")"),k||""}function I(k,R,B){return k=E(k),R=E(R),k=R+k,k&&k[k.length-1]!="$"&&(k+="$"),new RegExp(k)}function z(k){k.scope||(k.scope=F||"_"),F=k.scope,P[F]||(P[F]=[],N[F]={});var R=N[F];if(k.name){var B=R[k.name];B&&S.unregister(B),R[k.name]=k}P[F].push(k),k.prefix&&(k.tabTrigger=k.prefix),!k.content&&k.body&&(k.content=Array.isArray(k.body)?k.body.join(`
|
|
1121
|
-
`):k.body),k.tabTrigger&&!k.trigger&&(!k.guard&&/^\w/.test(k.tabTrigger)&&(k.guard="\\b"),k.trigger=d.escapeRegExp(k.tabTrigger)),!(!k.trigger&&!k.guard&&!k.endTrigger&&!k.endGuard)&&(k.startRe=I(k.trigger,k.guard),k.triggerRe=new RegExp(k.trigger),k.endRe=I(k.endTrigger,k.endGuard),k.endTriggerRe=new RegExp(k.endTrigger))}var P=this.snippetMap,N=this.snippetNameMap,S=this;L||(L=[]),Array.isArray(L)?L.forEach(z):Object.keys(L).forEach(function(k){z(L[k])}),this._signal("registerSnippets",{scope:F})},C.prototype.unregister=function(L,F){function E(P){var N=z[P.scope||F];if(N&&N[P.name]){delete N[P.name];var S=I[P.scope||F],k=S&&S.indexOf(P);k>=0&&S.splice(k,1)}}var I=this.snippetMap,z=this.snippetNameMap;L.content?E(L):Array.isArray(L)&&L.forEach(E)},C.prototype.parseSnippetFile=function(L){L=L.replace(/\r/g,"");for(var F=[],E={},I=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,z;z=I.exec(L);){if(z[1])try{E=JSON.parse(z[1]),F.push(E)}catch{}if(z[4])E.content=z[4].replace(/^\t/gm,""),F.push(E),E={};else{var P=z[2],N=z[3];if(P=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;E.guard=S.exec(N)[1],E.trigger=S.exec(N)[1],E.endTrigger=S.exec(N)[1],E.endGuard=S.exec(N)[1]}else P=="snippet"?(E.tabTrigger=N.match(/^\S*/)[0],E.name||(E.name=N)):P&&(E[P]=N)}}return F},C.prototype.getSnippetByName=function(L,F){var E=this.snippetNameMap,I;return this.getActiveScopes(F).some(function(z){var P=E[z];return P&&(I=P[L]),!!I},this),I},C})();w.implement(f.prototype,h);var b=function(C,L,F){function E(de){for(var me=[],Se=0;Se<de.length;Se++){var Te=de[Se];if(typeof Te=="object"){if(R[Te.tabstopId])continue;var Me=de.lastIndexOf(Te,Se-1);Te=me[Me]||{tabstopId:Te.tabstopId}}me[Se]=Te}return me}F===void 0&&(F={});var I=C.getCursorPosition(),z=C.session.getLine(I.row),P=C.session.getTabString(),N=z.match(/^\s*/)[0];I.column<N.length&&(N=N.slice(0,I.column)),L=L.replace(/\r/g,"");var S=this.tokenizeTmSnippet(L);S=this.resolveVariables(S,C),S=S.map(function(de){return de==`
|
|
1122
|
-
`&&!F.excludeExtraIndent?de+N:typeof de=="string"?de.replace(/\t/g,P):de});var k=[];S.forEach(function(de,me){if(typeof de=="object"){var Se=de.tabstopId,Te=k[Se];if(Te||(Te=k[Se]=[],Te.index=Se,Te.value="",Te.parents={}),Te.indexOf(de)===-1){de.choices&&!Te.choices&&(Te.choices=de.choices),Te.push(de);var Me=S.indexOf(de,me+1);if(Me!==-1){var Xe=S.slice(me+1,Me),qe=Xe.some(function(st){return typeof st=="object"});qe&&!Te.value?Te.value=Xe:Xe.length&&(!Te.value||typeof Te.value!="string")&&(Te.value=Xe.join(""))}}}}),k.forEach(function(de){de.length=0});for(var R={},B=0;B<S.length;B++){var U=S[B];if(typeof U=="object"){var q=U.tabstopId,Q=k[q],J=S.indexOf(U,B+1);if(R[q]){R[q]===U&&(delete R[q],Object.keys(R).forEach(function(de){Q.parents[de]=!0}));continue}R[q]=U;var he=Q.value;typeof he!="string"?he=E(he):U.fmt&&(he=this.tmStrFormat(he,U,C)),S.splice.apply(S,[B+1,Math.max(0,J-B)].concat(he,U)),Q.indexOf(U)===-1&&Q.push(U)}}var ne=0,ce=0,se="";return S.forEach(function(de){if(typeof de=="string"){var me=de.split(`
|
|
1123
|
-
`);me.length>1?(ce=me[me.length-1].length,ne+=me.length-1):ce+=de.length,se+=de}else de&&(de.start?de.end={row:ne,column:ce}:de.start={row:ne,column:ce})}),{text:se,tabstops:k,tokens:S}},x=(function(){function C(L){if(this.index=0,this.ranges=[],this.tabstops=[],L.tabstopManager)return L.tabstopManager;L.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=d.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(L)}return C.prototype.attach=function(L){this.$openTabstops=null,this.selectedTabstop=null,this.editor=L,this.session=L.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)},C.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},C.prototype.onChange=function(L){for(var F=L.action[0]=="r",E=this.selectedTabstop||{},I=E.parents||{},z=this.tabstops.slice(),P=0;P<z.length;P++){var N=z[P],S=N==E||I[N.index];if(N.rangeList.$bias=S?0:1,L.action=="remove"&&N!==E){var k=N.parents&&N.parents[E.index],R=N.rangeList.pointIndex(L.start,k);R=R<0?-R-1:R+1;var B=N.rangeList.pointIndex(L.end,k);B=B<0?-B-1:B-1;for(var U=N.rangeList.ranges.slice(R,B),q=0;q<U.length;q++)this.removeRange(U[q])}N.rangeList.$onChange(L)}var Q=this.session;!this.$inChange&&F&&Q.getLength()==1&&!Q.getValue()&&this.detach()},C.prototype.updateLinkedFields=function(){var L=this.selectedTabstop;if(!(!L||!L.hasLinkedRanges||!L.firstNonLinked)){this.$inChange=!0;for(var F=this.session,E=F.getTextRange(L.firstNonLinked),I=0;I<L.length;I++){var z=L[I];if(z.linked){var P=z.original,N=r.snippetManager.tmStrFormat(E,P,this.editor);F.replace(z,N)}}this.$inChange=!1}},C.prototype.onAfterExec=function(L){L.command&&!L.command.readOnly&&this.updateLinkedFields()},C.prototype.onChangeSelection=function(){if(this.editor){for(var L=this.editor.selection.lead,F=this.editor.selection.anchor,E=this.editor.selection.isEmpty(),I=0;I<this.ranges.length;I++)if(!this.ranges[I].linked){var z=this.ranges[I].contains(L.row,L.column),P=E||this.ranges[I].contains(F.row,F.column);if(z&&P)return}this.detach()}},C.prototype.onChangeSession=function(){this.detach()},C.prototype.tabNext=function(L){var F=this.tabstops.length,E=this.index+(L||1);E=Math.min(Math.max(E,1),F),E==F&&(E=0),this.selectTabstop(E),this.updateTabstopMarkers(),E===0&&this.detach()},C.prototype.selectTabstop=function(L){this.$openTabstops=null;var F=this.tabstops[this.index];if(F&&this.addTabstopMarkers(F),this.index=L,F=this.tabstops[this.index],!(!F||!F.length)){this.selectedTabstop=F;var E=F.firstNonLinked||F;if(F.choices&&(E.cursor=E.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(E);else{var I=this.editor.multiSelect;I.toSingleRange(E);for(var z=0;z<F.length;z++)F.hasLinkedRanges&&F[z].linked||I.addRange(F[z].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},C.prototype.addTabstops=function(L,F,E){var I=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!L[0]){var z=a.fromPoints(E,E);T(z.start,F),T(z.end,F),L[0]=[z],L[0].index=0}var P=this.index,N=[P+1,0],S=this.ranges,k=this.snippetId=(this.snippetId||0)+1;L.forEach(function(R,B){var U=this.$openTabstops[B]||R;U.snippetId=k;for(var q=0;q<R.length;q++){var Q=R[q],J=a.fromPoints(Q.start,Q.end||Q.start);O(J.start,F),O(J.end,F),J.original=Q,J.tabstop=U,S.push(J),U!=R?U.unshift(J):U[q]=J,Q.fmtString||U.firstNonLinked&&I?(J.linked=!0,U.hasLinkedRanges=!0):U.firstNonLinked||(U.firstNonLinked=J)}U.firstNonLinked||(U.hasLinkedRanges=!1),U===R&&(N.push(U),this.$openTabstops[B]=U),this.addTabstopMarkers(U),U.rangeList=U.rangeList||new l,U.rangeList.$bias=0,U.rangeList.addList(U)},this),N.length>2&&(this.tabstops.length&&N.push(N.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,N))},C.prototype.addTabstopMarkers=function(L){var F=this.session;L.forEach(function(E){E.markerId||(E.markerId=F.addMarker(E,"ace_snippet-marker","text"))})},C.prototype.removeTabstopMarkers=function(L){var F=this.session;L.forEach(function(E){F.removeMarker(E.markerId),E.markerId=null})},C.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var L=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&L--,this.tabstops.forEach(function(F){F.snippetId===L?this.addTabstopMarkers(F):this.removeTabstopMarkers(F)},this)}},C.prototype.removeRange=function(L){var F=L.tabstop.indexOf(L);F!=-1&&L.tabstop.splice(F,1),F=this.ranges.indexOf(L),F!=-1&&this.ranges.splice(F,1),F=L.tabstop.rangeList.ranges.indexOf(L),F!=-1&&L.tabstop.splice(F,1),this.session.removeMarker(L.markerId),L.tabstop.length||(F=this.tabstops.indexOf(L.tabstop),F!=-1&&this.tabstops.splice(F,1),this.tabstops.length||this.detach())},C})();x.prototype.keyboardHandler=new u,x.prototype.keyboardHandler.bindKeys({Tab:function(C){r.snippetManager&&r.snippetManager.expandWithTab(C)||(C.tabstopManager.tabNext(1),C.renderer.scrollCursorIntoView())},"Shift-Tab":function(C){C.tabstopManager.tabNext(-1),C.renderer.scrollCursorIntoView()},Esc:function(C){C.tabstopManager.detach()}});var O=function(C,L){C.row==0&&(C.column+=L.column),C.row+=L.row},T=function(C,L){C.row==L.row&&(C.column-=L.column),C.row-=L.row};g.importCssString(`
|
|
1124
|
-
.ace_snippet-marker {
|
|
1125
|
-
-moz-box-sizing: border-box;
|
|
1126
|
-
box-sizing: border-box;
|
|
1127
|
-
background: rgba(194, 193, 208, 0.09);
|
|
1128
|
-
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1129
|
-
position: absolute;
|
|
1130
|
-
}`,"snippets.css",!1),r.snippetManager=new f;var _=e("./editor").Editor;(function(){this.insertSnippet=function(C,L){return r.snippetManager.insertSnippet(this,C,L)},this.expandSnippet=function(C){return r.snippetManager.expandWithTab(this,C)}}).call(_.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,r,v){var p=e("../virtual_renderer").VirtualRenderer,g=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),d=e("../lib/lang"),a=e("../lib/dom"),l=e("../config").nls,u=e("./../lib/useragent"),c=function(O){return"suggest-aria-id:".concat(O)},i=u.isSafari?"menu":"listbox",s=u.isSafari?"menuitem":"option",f=u.isSafari?"aria-current":"aria-selected",b=function(O){var T=new p(O);T.$maxLines=4;var _=new g(T);return _.setHighlightActiveLine(!1),_.setShowPrintMargin(!1),_.renderer.setShowGutter(!1),_.renderer.setHighlightGutterLine(!1),_.$mouseHandler.$focusTimeout=0,_.$highlightTagPending=!0,_},x=(function(){function O(T){var _=a.createElement("div"),C=b(_);T&&T.appendChild(_),_.style.display="none",C.renderer.content.style.cursor="default",C.renderer.setStyle("ace_autocomplete"),C.renderer.$textLayer.element.setAttribute("role",i),C.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),C.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),C.renderer.textarea.setAttribute("aria-hidden","true"),C.setOption("displayIndentGuides",!1),C.setOption("dragDelay",150);var L=function(){};C.focus=L,C.$isFocused=!0,C.renderer.$cursorLayer.restartTimer=L,C.renderer.$cursorLayer.element.style.opacity="0",C.renderer.$maxLines=8,C.renderer.$keepTextAreaAtCursor=!1,C.setHighlightActiveLine(!1),C.session.highlight(""),C.session.$searchHighlight.clazz="ace_highlight-marker",C.on("mousedown",function(S){var k=S.getDocumentPosition();C.selection.moveToPosition(k),I.start.row=I.end.row=k.row,S.stop()});var F,E=new w(-1,0,-1,1/0),I=new w(-1,0,-1,1/0);I.id=C.session.addMarker(I,"ace_active-line","fullLine"),C.setSelectOnHover=function(S){S?E.id&&(C.session.removeMarker(E.id),E.id=null):E.id=C.session.addMarker(E,"ace_line-hover","fullLine")},C.setSelectOnHover(!1),C.on("mousemove",function(S){if(!F){F=S;return}if(!(F.x==S.x&&F.y==S.y)){F=S,F.scrollTop=C.renderer.scrollTop,C.isMouseOver=!0;var k=F.getDocumentPosition().row;E.start.row!=k&&(E.id||C.setRow(k),P(k))}}),C.renderer.on("beforeRender",function(){if(F&&E.start.row!=-1){F.$pos=null;var S=F.getDocumentPosition().row;E.id||C.setRow(S),P(S,!0)}}),C.renderer.on("afterRender",function(){for(var S=C.renderer.$textLayer,k=S.config.firstRow,R=S.config.lastRow;k<=R;k++){var B=S.element.childNodes[k-S.config.firstRow];B.setAttribute("role",s),B.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),B.setAttribute("aria-setsize",C.data.length),B.setAttribute("aria-describedby","doc-tooltip"),B.setAttribute("aria-posinset",k+1);var U=C.getData(k);if(U){var q="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");B.setAttribute("aria-label",q)}var Q=B.querySelectorAll(".ace_completion-highlight");Q.forEach(function(J){J.setAttribute("role","mark")})}}),C.renderer.on("afterRender",function(){var S=C.getRow(),k=C.renderer.$textLayer,R=k.element.childNodes[S-k.config.firstRow],B=document.activeElement;if(R!==C.selectedNode&&C.selectedNode&&(a.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode.removeAttribute(f),C.selectedNode.removeAttribute("id")),B.removeAttribute("aria-activedescendant"),C.selectedNode=R,R){var U=c(S);a.addCssClass(R,"ace_selected"),R.id=U,k.element.setAttribute("aria-activedescendant",U),B.setAttribute("aria-activedescendant",U),R.setAttribute(f,"true")}});var z=function(){P(-1)},P=function(S,k){S!==E.start.row&&(E.start.row=E.end.row=S,k||C.session._emit("changeBackMarker"),C._emit("changeHoverMarker"))};C.getHoveredRow=function(){return E.start.row},h.addListener(C.container,"mouseout",function(){C.isMouseOver=!1,z()}),C.on("hide",z),C.on("changeSelection",z),C.session.doc.getLength=function(){return C.data.length},C.session.doc.getLine=function(S){var k=C.data[S];return typeof k=="string"?k:k&&k.value||""};var N=C.session.bgTokenizer;return N.$tokenizeRow=function(S){function k(de,me){de&&B.push({type:(R.className||"")+(me||""),value:de})}var R=C.data[S],B=[];if(!R)return B;typeof R=="string"&&(R={value:R});for(var U=R.caption||R.value||R.name,q=U.toLowerCase(),Q=(C.filterText||"").toLowerCase(),J=0,he=0,ne=0;ne<=Q.length;ne++)if(ne!=he&&(R.matchMask&1<<ne||ne==Q.length)){var ce=Q.slice(he,ne);he=ne;var se=q.indexOf(ce,J);if(se==-1)continue;k(U.slice(J,se),""),J=se+ce.length,k(U.slice(se,J),"completion-highlight")}return k(U.slice(J,U.length),""),B.push({type:"completion-spacer",value:" "}),R.meta&&B.push({type:"completion-meta",value:R.meta}),R.message&&B.push({type:"completion-message",value:R.message}),B},N.$updateOnChange=L,N.start=L,C.session.$computeWidth=function(){return this.screenWidth=0},C.isOpen=!1,C.isTopdown=!1,C.autoSelect=!0,C.filterText="",C.isMouseOver=!1,C.data=[],C.setData=function(S,k){C.filterText=k||"",C.setValue(d.stringRepeat(`
|
|
1131
|
-
`,S.length),-1),C.data=S||[],C.setRow(0)},C.getData=function(S){return C.data[S]},C.getRow=function(){return I.start.row},C.setRow=function(S){S=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,S)),I.start.row!=S&&(C.selection.clearSelection(),I.start.row=I.end.row=S||0,C.session._emit("changeBackMarker"),C.moveCursorTo(S||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function(S,k,R,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===S.top&&C.anchorPos.left===S.left&&C.anchor===R)return!0;var U=this.container,q=this.renderer.scrollBar.width||10,Q=window.innerHeight-q,J=window.innerWidth-q,he=this.renderer,ne=he.$maxLines*k*1.4,ce={top:0,bottom:0},se=Q-S.top-3*this.$borderSize-k,de=S.top-3*this.$borderSize;R||(de<=se||se>=ne?R="bottom":R="top"),R==="top"?(ce.bottom=S.top-this.$borderSize,ce.top=ce.bottom-ne):R==="bottom"&&(ce.top=S.top+k+this.$borderSize,ce.bottom=ce.top+ne);var me=ce.top>=0&&ce.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:R==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,R==="top"?(U.style.top="",U.style.bottom=Q+q-ce.bottom+"px",C.isTopdown=!1):(U.style.top=ce.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var Se=S.left;return Se+U.offsetWidth>J&&(Se=J-U.offsetWidth),U.style.left=Se+"px",U.style.right="",a.$fixPositionBug(U),C.isOpen||(C.isOpen=!0,this._signal("show"),F=null),C.anchorPos=S,C.anchor=R,!0},C.show=function(S,k,R){this.tryShow(S,k,R?"bottom":void 0,!0)},C.goTo=function(S){var k=this.getRow(),R=this.session.getLength()-1;switch(S){case"up":k=k<=0?R:k-1;break;case"down":k=k>=R?-1:k+1;break;case"start":k=0;break;case"end":k=R}this.setRow(k)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return O})();a.importCssString(`
|
|
1132
|
-
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1133
|
-
background-color: #CAD6FA;
|
|
1134
|
-
z-index: 1;
|
|
1135
|
-
}
|
|
1136
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1137
|
-
background-color: #3a674e;
|
|
1138
|
-
}
|
|
1139
|
-
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1140
|
-
border: 1px solid #abbffe;
|
|
1141
|
-
margin-top: -1px;
|
|
1142
|
-
background: rgba(233,233,253,0.4);
|
|
1143
|
-
position: absolute;
|
|
1144
|
-
z-index: 2;
|
|
1145
|
-
}
|
|
1146
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1147
|
-
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
1148
|
-
background: rgba(58, 103, 78, 0.62);
|
|
1149
|
-
}
|
|
1150
|
-
.ace_completion-meta {
|
|
1151
|
-
opacity: 0.5;
|
|
1152
|
-
margin-left: 0.9em;
|
|
1153
|
-
}
|
|
1154
|
-
.ace_completion-message {
|
|
1155
|
-
margin-left: 0.9em;
|
|
1156
|
-
color: blue;
|
|
1157
|
-
}
|
|
1158
|
-
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1159
|
-
color: #2d69c7;
|
|
1160
|
-
}
|
|
1161
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1162
|
-
color: #93ca12;
|
|
1163
|
-
}
|
|
1164
|
-
.ace_editor.ace_autocomplete {
|
|
1165
|
-
width: 300px;
|
|
1166
|
-
z-index: 200000;
|
|
1167
|
-
border: 1px lightgray solid;
|
|
1168
|
-
position: fixed;
|
|
1169
|
-
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
1170
|
-
line-height: 1.4;
|
|
1171
|
-
background: #fefefe;
|
|
1172
|
-
color: #111;
|
|
1173
|
-
}
|
|
1174
|
-
.ace_dark.ace_editor.ace_autocomplete {
|
|
1175
|
-
border: 1px #484747 solid;
|
|
1176
|
-
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
1177
|
-
line-height: 1.4;
|
|
1178
|
-
background: #25282c;
|
|
1179
|
-
color: #c1c1c1;
|
|
1180
|
-
}
|
|
1181
|
-
.ace_autocomplete .ace_text-layer {
|
|
1182
|
-
width: calc(100% - 8px);
|
|
1183
|
-
}
|
|
1184
|
-
.ace_autocomplete .ace_line {
|
|
1185
|
-
display: flex;
|
|
1186
|
-
align-items: center;
|
|
1187
|
-
}
|
|
1188
|
-
.ace_autocomplete .ace_line > * {
|
|
1189
|
-
min-width: 0;
|
|
1190
|
-
flex: 0 0 auto;
|
|
1191
|
-
}
|
|
1192
|
-
.ace_autocomplete .ace_line .ace_ {
|
|
1193
|
-
flex: 0 1 auto;
|
|
1194
|
-
overflow: hidden;
|
|
1195
|
-
text-overflow: ellipsis;
|
|
1196
|
-
}
|
|
1197
|
-
.ace_autocomplete .ace_completion-spacer {
|
|
1198
|
-
flex: 1;
|
|
1199
|
-
}
|
|
1200
|
-
.ace_autocomplete.ace_loading:after {
|
|
1201
|
-
content: "";
|
|
1202
|
-
position: absolute;
|
|
1203
|
-
top: 0px;
|
|
1204
|
-
height: 2px;
|
|
1205
|
-
width: 8%;
|
|
1206
|
-
background: blue;
|
|
1207
|
-
z-index: 100;
|
|
1208
|
-
animation: ace_progress 3s infinite linear;
|
|
1209
|
-
animation-delay: 300ms;
|
|
1210
|
-
transform: translateX(-100%) scaleX(1);
|
|
1211
|
-
}
|
|
1212
|
-
@keyframes ace_progress {
|
|
1213
|
-
0% { transform: translateX(-100%) scaleX(1) }
|
|
1214
|
-
50% { transform: translateX(625%) scaleX(2) }
|
|
1215
|
-
100% { transform: translateX(1500%) scaleX(3) }
|
|
1216
|
-
}
|
|
1217
|
-
@media (prefers-reduced-motion) {
|
|
1218
|
-
.ace_autocomplete.ace_loading:after {
|
|
1219
|
-
transform: translateX(625%) scaleX(2);
|
|
1220
|
-
animation: none;
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,v){var p=(function(){function g(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return g.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 d=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[d-a.config.firstRow];if(l){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",u)}}).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)},g.prototype.destroy=function(){this.screenReaderDiv.remove()},g.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);d.appendChild(a),w.appendChild(d)}return w},g})();r.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,v){var p=e("../snippets").snippetManager,g=e("./inline_screenreader").AceInlineScreenReader,w=(function(){function h(){this.editor=null}return h.prototype.show=function(d,a,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new g(d));var u=a.snippet?p.getDisplayTextForSnippet(d,a.snippet):a.value;return a.hideInlinePreview||!u||!u.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(l.length),u===""?d.removeGhostText():d.setGhostText(u),!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})();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,v){r.parForEach=function(g,w,h){var d=0,a=g.length;a===0&&h();for(var l=0;l<a;l++)w(g[l],function(u,c){d++,d===a&&h(u,c)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(g,w,h){h=h||p;for(var d=[],a=w-1;a>=0&&h.test(g[a]);a--)d.push(g[a]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(g,w,h){h=h||p;for(var d=[],a=w;a<g.length&&h.test(g[a]);a++)d.push(g[a]);return d},r.getCompletionPrefix=function(g){var w=g.getCursorPosition(),h=g.session.getLine(w.row),d;return g.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(g,h){var h=h??g.session.getPrecedingCharacter();return g.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.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,r,v){var p=e("./keyboard/hash_handler").HashHandler,g=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),u=e("./snippets").snippetManager,c=e("./config"),i=e("./lib/event"),s=e("./lib/scroll").preventParentScroll,f=function(T,_){_.completer&&_.completer.destroy()},b=(function(){function T(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var _=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!_||this.editor.completers.length===0||(this.completions=new O(T.completionsForLoading),this.openPopup(this.editor,_.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(T,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),T.prototype.$init=function(){return this.popup=new g(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(_){this.insertMatch(),_.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)),i.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},T.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},T.prototype.getPopup=function(){return this.popup||this.$init()},T.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},T.prototype.$seen=function(_){!this.hasSeen.has(_)&&_&&_.completer&&_.completer.onSeen&&typeof _.completer.onSeen=="function"&&(_.completer.onSeen(this.editor,_),this.hasSeen.add(_))},T.prototype.$onPopupChange=function(_){if(this.inlineRenderer&&this.inlineEnabled){var C=_?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),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)},T.prototype.$updateGhostText=function(_){var C=this.base.row,L=this.base.column,F=this.editor.getCursorPosition().column,E=this.editor.session.getLine(C).slice(L,F);this.inlineRenderer.show(this.editor,_,E)?this.$seen(_):this.inlineRenderer.hide()},T.prototype.$onPopupRender=function(){var _=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!_||L.hideInlinePreview)&&this.$seen(L)}},T.prototype.$onPopupShow=function(_){this.$onPopupChange(_),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},T.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var _=this.editor.container.parentNode,C=[];_;)C.push(_),_.addEventListener("scroll",this.onLayoutChange,{passive:!0}),_=_.parentNode;this.$elements=C}},T.prototype.unObserveLayoutChanges=function(){var _=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",_.onLayoutChange,{passive:!0})}),this.$elements=null},T.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},T.prototype.$updatePopupPosition=function(){var _=this.editor,C=_.renderer,L=C.layerConfig.lineHeight,F=C.$cursorLayer.getPixelPosition(this.base,!0);F.left-=this.popup.getTextLeftOffset();var E=_.container.getBoundingClientRect();F.top+=E.top-C.layerConfig.offset,F.left+=E.left-_.renderer.scrollLeft,F.left+=C.gutterWidth;var I={top:F.top,left:F.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(I.top+=C.$ghostTextWidget.el.offsetHeight);var z=_.container.getBoundingClientRect().bottom-L,P=z<I.top?{top:z,left:I.left}:I;this.popup.tryShow(P,L,"bottom")||this.popup.tryShow(F,L,"top")||this.popup.show(F,L)},T.prototype.openPopup=function(_,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var F=this.popup.getRow(),E=this.popup.data[F];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}),_.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(E)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===F&&E!==this.completions.filtered[I]&&this.$onPopupChange();var z=this.inlineRenderer&&this.inlineEnabled;if(I===F&&z){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}L||(this.popup.setTheme(_.getTheme()),this.popup.setFontSize(_.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},T.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()},T.prototype.changeListener=function(_){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},T.prototype.blurListener=function(_){var C=document.activeElement,L=this.editor.textInput.getElement(),F=_.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(_.relatedTarget),E=this.popup&&this.popup.container;C!=L&&C.parentNode!=E&&!F&&C!=this.tooltipNode&&_.relatedTarget!=L&&this.detach()},T.prototype.mousedownListener=function(_){this.detach()},T.prototype.mousewheelListener=function(_){this.popup&&!this.popup.isMouseOver&&this.detach()},T.prototype.mouseOutListener=function(_){this.popup.isOpen&&this.$updatePopupPosition()},T.prototype.goTo=function(_){this.popup.goTo(_)},T.prototype.insertMatch=function(_,C){if(_||(_=this.popup.getData(this.popup.getRow())),!_)return!1;if(_.value==="")return this.detach();var L=this.completions,F=this.getCompletionProvider().insertMatch(this.editor,_,L.filterText,C);return this.completions==L&&this.detach(),F},T.prototype.showPopup=function(_,C){this.editor&&this.detach(),this.activated=!0,this.editor=_,_.completer!=this&&(_.completer&&_.completer.detach(),_.completer=this),_.on("changeSelection",this.changeListener),_.on("blur",this.blurListener),_.on("mousedown",this.mousedownListener),_.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},T.prototype.getCompletionProvider=function(_){return this.completionProvider||(this.completionProvider=new x(_)),this.completionProvider},T.prototype.gatherCompletions=function(_,C){return this.getCompletionProvider().gatherCompletions(_,C)},T.prototype.updateCompletions=function(_,C){if(_&&this.base&&this.completions){var F=this.editor.getCursorPosition(),E=this.editor.session.getTextRange({start:this.base,end:F});if(E==this.completions.filterText)return;if(this.completions.setFilter(E),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==E&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,E,_);return}if(C&&C.matches){var F=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(F.row,F.column),this.base.$insertRight=!0,this.completions=new O(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",_)}var L=this.editor.getSession(),F=this.editor.getCursorPosition(),E=d.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(F.row,F.column-E.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:E,pos:F}).provideCompletions(this.editor,I,(function(z,P,N){var S=P.filtered,k=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),N){if(!S.length){var R=!this.autoShown&&this.emptyMessage;if(typeof R=="function"&&(R=this.emptyMessage(k)),R){var B=[{caption:R,value:""}];this.completions=new O(B),this.openPopup(this.editor,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==k&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!N&&this.showLoadingState?new O(T.completionsForLoading.concat(S),P.filterText):P,this.openPopup(this.editor,k,_),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!N)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},T.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},T.prototype.updateDocTooltip=function(){var _=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[_.getHoveredRow()]||C[_.getRow()]),F=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var E=this.editor.completers.length,I=0;I<E;I++){var z=this.editor.completers[I];if(z.getDocTooltip&&L.completerId===z.id){F=z.getDocTooltip(L);break}}if(!F&&typeof L!="string"&&(F=L),typeof F=="string"&&(F={docText:F}),!F||!F.docHTML&&!F.docText)return this.hideDocTooltip();this.showDocTooltip(F)},T.prototype.showDocTooltip=function(_){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",s));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;_.docHTML?L.innerHTML=_.docHTML:_.docText&&(L.textContent=_.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var F=this.popup,E=F.container.getBoundingClientRect(),I=400,z=300,P=F.renderer.scrollBar.width||10,N=E.left,S=window.innerWidth-E.right-P,k=F.isTopdown?window.innerHeight-P-E.bottom:E.top,R=[Math.min(S/I,1),Math.min(N/I,1),Math.min(k/z,1)*.9],B=Math.max.apply(Math,R),U=L.style;U.display="block",B==R[0]||R[0]>=1?(U.left=E.right+1+"px",U.right="",U.maxWidth=I*B+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.top,z)+"px"):B==R[1]||R[1]>=1?(U.right=window.innerWidth-E.left+"px",U.left="",U.maxWidth=I*B+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.top,z)+"px"):B==R[2]&&(U.left=E.left+"px",U.right="",U.maxWidth=Math.min(I,window.innerWidth-E.left)+"px",F.isTopdown?(U.top=E.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.bottom,z)+"px"):(U.top="",U.bottom=window.innerHeight-E.top+"px",U.maxHeight=Math.min(E.top,z)+"px")),l.$fixPositionBug(L)},T.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var _=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==_&&this.editor.focus(),this.tooltipNode=null,_.parentNode&&_.parentNode.removeChild(_)}},T.prototype.onTooltipClick=function(_){for(var C=_.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},T.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var _=this.popup.container;_&&_.parentNode&&_.parentNode.removeChild(_)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",f),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},T.for=function(_){return _.completer instanceof T||(_.completer&&(_.completer.destroy(),_.completer=null),c.get("sharedPopups")?(T.$sharedInstance||(T.$sharedInstance=new T),_.completer=T.$sharedInstance):(_.completer=new T,_.once("destroy",f))),_.completer},T})();b.prototype.commands={Up:function(T){T.completer.goTo("up")},Down:function(T){T.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(T){T.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(T){T.completer.goTo("end")},Esc:function(T){T.completer.detach()},Return:function(T){return T.completer.insertMatch()},"Shift-Return":function(T){T.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(T){var _=T.completer.insertMatch();if(_||T.tabstopManager)return _;T.completer.goTo("down")},Backspace:function(T){T.execCommand("backspace");var _=d.getCompletionPrefix(T);!_&&T.completer&&T.completer.detach()},PageUp:function(T){T.completer.popup.gotoPageUp()},PageDown:function(T){T.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(T,_){var C=b.for(T);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(T,_),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=(function(){function T(_){this.initialPosition=_,this.active=!0}return T.prototype.insertByIndex=function(_,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(_,this.completions.filtered[C],L)},T.prototype.insertMatch=function(_,C,L){if(!C)return!1;if(_.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(_,C);else{if(!this.completions)return!1;var F=this.completions.filterText.length,E=0;if(C.range&&C.range.start.row===C.range.end.row&&(F-=this.initialPosition.prefix.length,F+=this.initialPosition.pos.column-C.range.start.column,E+=C.range.end.column-this.initialPosition.pos.column),F||E){var I;_.selection.getAllRanges?I=_.selection.getAllRanges():I=[_.getSelectionRange()];for(var z=0,P;P=I[z];z++)P.start.column-=F,P.end.column+=E,_.session.remove(P)}C.snippet?u.insertSnippet(_,C.snippet):this.$insertString(_,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(_,C),C.command&&C.command==="startAutocomplete"&&_.execCommand(C.command)}return _.endOperation(),!0},T.prototype.$insertString=function(_,C){var L=C.value||C;_.execCommand("insertstring",L)},T.prototype.gatherCompletions=function(_,C){var L=_.getSession(),F=_.getCursorPosition(),E=d.getCompletionPrefix(_),I=[];this.completers=_.completers;var z=_.completers.length;return _.completers.forEach(function(P,N){P.getCompletions(_,L,F,E,function(S,k){P.hideInlinePreview&&(k=k.map(function(R){return Object.assign(R,{hideInlinePreview:P.hideInlinePreview})})),!S&&k&&(I=I.concat(k)),C(null,{prefix:d.getCompletionPrefix(_),matches:I,finished:--z===0})})}),!0},T.prototype.provideCompletions=function(_,C,L){var F=(function(P){var N=P.prefix,S=P.matches;this.completions=new O(S),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(N),(P.finished||this.completions.filtered.length)&&L(null,this.completions,P.finished)}).bind(this),E=!0,I=null;if(this.gatherCompletions(_,(function(P,N){if(this.active){P&&(L(P,[],!0),this.detach());var S=N.prefix;if(S.indexOf(N.prefix)===0){if(E){I=N;return}F(N)}}}).bind(this)),E=!1,I){var z=I;I=null,F(z)}},T.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(_){typeof _.cancel=="function"&&_.cancel()})},T})(),O=(function(){function T(_,C){this.all=_,this.filtered=_,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return T.prototype.setFilter=function(_){if(_.length>this.filterText&&_.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=_,C=this.filterCompletions(C,this.filterText),C=C.sort(function(F,E){return E.exactMatch-F.exactMatch||E.$score-F.$score||(F.caption||F.value).localeCompare(E.caption||E.value)});var L=null;C=C.filter(function(F){var E=F.snippet||F.caption||F.value;return E===L?!1:(L=E,!0)}),this.filtered=C},T.prototype.filterCompletions=function(_,C){var L=[],F=C.toUpperCase(),E=C.toLowerCase();e:for(var I=0,z;z=_[I];I++){if(z.skipFilter){z.$score=z.score,L.push(z);continue}var P=!this.ignoreCaption&&z.caption||z.value||z.snippet;if(P){var N=-1,S=0,k=0,R,B;if(this.exactMatch){if(C!==P.substr(0,C.length))continue e}else{var U=P.toLowerCase().indexOf(E);if(U>-1)k=U;else for(var q=0;q<C.length;q++){var Q=P.indexOf(E[q],N+1),J=P.indexOf(F[q],N+1);if(R=Q>=0&&(J<0||Q<J)?Q:J,R<0)continue e;B=R-N-1,B>0&&(N===-1&&(k+=10),k+=B,S|=1<<q),N=R}}z.matchMask=S,z.exactMatch=k?0:1,z.$score=(z.score||0)-k,L.push(z)}}return L},T})();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=O}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,v){var p=(function(){function g(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return g.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},g.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},g.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},g.prototype.update=function(w,h,d,a){if(!(!this.markers||!this.markers.length))for(var l=a.firstRow,u=a.lastRow,c,i=0,s=0,f=0;f<this.markers.length;f++){var b=this.markers[f];if(!(b.range.end.row<l)&&!(b.range.start.row>u)&&(b.range.start.row===s?i++:(s=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var O=x.toScreenRange(d);if(O.isEmpty()){c=d.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(l=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,O,b.className,a):O.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,O,b.className,a):h.drawTextMarker(w,O,b.className,a):h.drawSingleLineMarker(w,O,b.className+" ace_br15",a)}}}},g})();p.prototype.MAX_MARKERS=1e4,r.MarkerGroup=p}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,v){function p(d,a){var l=d.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function g(d,a){var l=p(d,a),u=d.getValue().split(h),c=Object.create(null),i=u[l];return u.forEach(function(s,f){if(!(!s||s===i)){var b=Math.abs(l-f),x=u.length-b;c[s]?c[s]=Math.max(x,c[s]):c[s]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.id="textCompleter",r.getCompletions=function(d,a,l,u,c){var i=g(a,l),s=Object.keys(i);c(null,s.map(function(f){return{caption:f,value:f,score:i[f],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,v){var p=e("../snippets").snippetManager,g=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),a=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),u={getCompletions:function(E,I,z,P,N){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,z,P,N);var S=E.session.getState(z.row),k=I.$mode.getCompletions(S,I,z,P);k=k.map(function(R){return R.completerId=u.id,R}),N(null,k)},id:"keywordCompleter"},c=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(z,P,N,S){return I[P]=S||""}).replace(/\$(\d+?)/g,function(z,P){return I[P]})},i={getCompletions:function(E,I,z,P,N){var S=[],k=I.getTokenAt(z.row,z.column);k&&k.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?S.push("html-tag"):S=p.getActiveScopes(E);var R=p.snippetMap,B=[];S.forEach(function(U){for(var q=R[U]||[],Q=q.length;Q--;){var J=q[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),N(null,B)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(c(E.snippet))].join(""))},id:"snippetCompleter"},s=[i,l,u];r.setCompleters=function(E){s.length=0,E&&s.push.apply(s,E)},r.addCompleter=function(E){s.push(E)},r.textCompleter=l,r.keyWordCompleter=u,r.snippetCompleter=i;var f={name:"expandSnippet",exec:function(E){return p.expandWithTab(E)},bindKey:"Tab"},b=function(E,I){x(I.session.$mode)},x=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(p.files||(p.files={}),O(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(x))},O=function(E,I){!I||!E||p.files[E]||(p.files[E]={},w.loadModule(I,function(z){z&&(p.files[E]=z,!z.snippets&&z.snippetText&&(z.snippets=p.parseSnippetFile(z.snippetText)),p.register(z.snippets||[],z.scope),z.includeScopes&&(p.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(P){x("ace/mode/"+P)})))}))},T=function(E){var I=E.editor,z=I.completer&&I.completer.activated;if(E.command.name==="backspace")z&&!d.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!z){_=E;var P=E.editor.$liveAutocompletionDelay;P?C.delay(P):L(E)}},_,C=h.delayedCall(function(){L(_)},0),L=function(E){var I=E.editor,z=d.getCompletionPrefix(I),P=E.args,N=d.triggerAutocomplete(I,P);if(z&&z.length>=I.$liveAutocompletionThreshold||N){var S=g.for(I);S.autoShown=!0,S.showPopup(I)}},F=e("../editor").Editor;e("../config").defineOptions(F.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(g.for(this),this.completers||(this.completers=Array.isArray(E)?E:s),this.commands.addCommand(g.startCommand)):this.commands.removeCommand(g.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:s),this.commands.on("afterExec",T)):this.commands.off("afterExec",T)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(f),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(f),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=a}),(function(){ace.require(["ace/ext/language_tools"],function(e){t&&(t.exports=e)})})()})(sp)),sp.exports}px();var lp={exports:{}},cp;function gx(){return cp||(cp=1,(function(t,n){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,v){v.exports=`
|
|
1224
|
-
|
|
1225
|
-
/* ------------------------------------------------------------------------------------------
|
|
1226
|
-
* Editor Search Form
|
|
1227
|
-
* --------------------------------------------------------------------------------------- */
|
|
1228
|
-
.ace_search {
|
|
1229
|
-
background-color: #ddd;
|
|
1230
|
-
color: #666;
|
|
1231
|
-
border: 1px solid #cbcbcb;
|
|
1232
|
-
border-top: 0 none;
|
|
1233
|
-
overflow: hidden;
|
|
1234
|
-
margin: 0;
|
|
1235
|
-
padding: 4px 6px 0 4px;
|
|
1236
|
-
position: absolute;
|
|
1237
|
-
top: 0;
|
|
1238
|
-
z-index: 99;
|
|
1239
|
-
white-space: normal;
|
|
1240
|
-
}
|
|
1241
|
-
.ace_search.left {
|
|
1242
|
-
border-left: 0 none;
|
|
1243
|
-
border-radius: 0px 0px 5px 0px;
|
|
1244
|
-
left: 0;
|
|
1245
|
-
}
|
|
1246
|
-
.ace_search.right {
|
|
1247
|
-
border-radius: 0px 0px 0px 5px;
|
|
1248
|
-
border-right: 0 none;
|
|
1249
|
-
right: 0;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
.ace_search_form, .ace_replace_form {
|
|
1253
|
-
margin: 0 20px 4px 0;
|
|
1254
|
-
overflow: hidden;
|
|
1255
|
-
line-height: 1.9;
|
|
1256
|
-
}
|
|
1257
|
-
.ace_replace_form {
|
|
1258
|
-
margin-right: 0;
|
|
1259
|
-
}
|
|
1260
|
-
.ace_search_form.ace_nomatch {
|
|
1261
|
-
outline: 1px solid red;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
.ace_search_field {
|
|
1265
|
-
border-radius: 3px 0 0 3px;
|
|
1266
|
-
background-color: white;
|
|
1267
|
-
color: black;
|
|
1268
|
-
border: 1px solid #cbcbcb;
|
|
1269
|
-
border-right: 0 none;
|
|
1270
|
-
outline: 0;
|
|
1271
|
-
padding: 0;
|
|
1272
|
-
font-size: inherit;
|
|
1273
|
-
margin: 0;
|
|
1274
|
-
line-height: inherit;
|
|
1275
|
-
padding: 0 6px;
|
|
1276
|
-
min-width: 17em;
|
|
1277
|
-
vertical-align: top;
|
|
1278
|
-
min-height: 1.8em;
|
|
1279
|
-
box-sizing: content-box;
|
|
1280
|
-
}
|
|
1281
|
-
.ace_searchbtn {
|
|
1282
|
-
border: 1px solid #cbcbcb;
|
|
1283
|
-
line-height: inherit;
|
|
1284
|
-
display: inline-block;
|
|
1285
|
-
padding: 0 6px;
|
|
1286
|
-
background: #fff;
|
|
1287
|
-
border-right: 0 none;
|
|
1288
|
-
border-left: 1px solid #dcdcdc;
|
|
1289
|
-
cursor: pointer;
|
|
1290
|
-
margin: 0;
|
|
1291
|
-
position: relative;
|
|
1292
|
-
color: #666;
|
|
1293
|
-
}
|
|
1294
|
-
.ace_searchbtn:last-child {
|
|
1295
|
-
border-radius: 0 3px 3px 0;
|
|
1296
|
-
border-right: 1px solid #cbcbcb;
|
|
1297
|
-
}
|
|
1298
|
-
.ace_searchbtn:disabled {
|
|
1299
|
-
background: none;
|
|
1300
|
-
cursor: default;
|
|
1301
|
-
}
|
|
1302
|
-
.ace_searchbtn:hover {
|
|
1303
|
-
background-color: #eef1f6;
|
|
1304
|
-
}
|
|
1305
|
-
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
1306
|
-
padding: 0px 0.7em
|
|
1307
|
-
}
|
|
1308
|
-
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
1309
|
-
content: "";
|
|
1310
|
-
border: solid 2px #888;
|
|
1311
|
-
width: 0.5em;
|
|
1312
|
-
height: 0.5em;
|
|
1313
|
-
border-width: 2px 0 0 2px;
|
|
1314
|
-
display:inline-block;
|
|
1315
|
-
transform: rotate(-45deg);
|
|
1316
|
-
}
|
|
1317
|
-
.ace_searchbtn.next:after {
|
|
1318
|
-
border-width: 0 2px 2px 0 ;
|
|
1319
|
-
}
|
|
1320
|
-
.ace_searchbtn_close {
|
|
1321
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
1322
|
-
border-radius: 50%;
|
|
1323
|
-
border: 0 none;
|
|
1324
|
-
color: #656565;
|
|
1325
|
-
cursor: pointer;
|
|
1326
|
-
font: 16px/16px Arial;
|
|
1327
|
-
padding: 0;
|
|
1328
|
-
height: 14px;
|
|
1329
|
-
width: 14px;
|
|
1330
|
-
top: 9px;
|
|
1331
|
-
right: 7px;
|
|
1332
|
-
position: absolute;
|
|
1333
|
-
}
|
|
1334
|
-
.ace_searchbtn_close:hover {
|
|
1335
|
-
background-color: #656565;
|
|
1336
|
-
background-position: 50% 100%;
|
|
1337
|
-
color: white;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
.ace_button {
|
|
1341
|
-
margin-left: 2px;
|
|
1342
|
-
cursor: pointer;
|
|
1343
|
-
-webkit-user-select: none;
|
|
1344
|
-
-moz-user-select: none;
|
|
1345
|
-
-o-user-select: none;
|
|
1346
|
-
-ms-user-select: none;
|
|
1347
|
-
user-select: none;
|
|
1348
|
-
overflow: hidden;
|
|
1349
|
-
opacity: 0.7;
|
|
1350
|
-
border: 1px solid rgba(100,100,100,0.23);
|
|
1351
|
-
padding: 1px;
|
|
1352
|
-
box-sizing: border-box!important;
|
|
1353
|
-
color: black;
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
.ace_button:hover {
|
|
1357
|
-
background-color: #eee;
|
|
1358
|
-
opacity:1;
|
|
1359
|
-
}
|
|
1360
|
-
.ace_button:active {
|
|
1361
|
-
background-color: #ddd;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
.ace_button.checked {
|
|
1365
|
-
border-color: #3399ff;
|
|
1366
|
-
opacity:1;
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
.ace_search_options{
|
|
1370
|
-
margin-bottom: 3px;
|
|
1371
|
-
text-align: right;
|
|
1372
|
-
-webkit-user-select: none;
|
|
1373
|
-
-moz-user-select: none;
|
|
1374
|
-
-o-user-select: none;
|
|
1375
|
-
-ms-user-select: none;
|
|
1376
|
-
user-select: none;
|
|
1377
|
-
clear: both;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
.ace_search_counter {
|
|
1381
|
-
float: left;
|
|
1382
|
-
font-family: arial;
|
|
1383
|
-
padding: 0 8px;
|
|
1384
|
-
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/ext/searchbox","ace/ext/searchbox","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,r,v){var p=e("../lib/dom"),g=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),d=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=e("../config").nls,u=999;p.importCssString(h,"ace_searchbox",!1);var c=(function(){function f(b,x,O){this.activeInput,this.element=p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(b),p.importCssString(h,"ace_searchbox",b.container),w.addListener(this.element,"touchstart",function(T){T.stopPropagation()},b)}return f.prototype.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},f.prototype.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},f.prototype.onEditorInput=function(){this.find(!1,!1,!0)},f.prototype.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},f.prototype.$init=function(){var b=this.element;this.$initElements(b);var x=this;w.addListener(b,"mousedown",function(O){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(O)}),w.addListener(b,"click",function(O){var T=O.target||O.srcElement,_=T.getAttribute("action");_&&x[_]?x[_]():x.$searchBarKb.commands[_]&&x.$searchBarKb.commands[_].exec(x),w.stopPropagation(O)}),w.addCommandKeyListener(b,function(O,T,_){var C=a.keyCodeToString(_),L=x.$searchBarKb.findKeyCommand(T,C);L&&L.exec&&(L.exec(x),w.stopEvent(O))}),this.$onChange=g.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},f.prototype.setSearchRange=function(b){this.searchRange=b,b?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},f.prototype.$syncOptions=function(b){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,b)},f.prototype.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},f.prototype.find=function(b,x,O){if(this.editor.session){var T=this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:O,range:this.searchRange}),_=!T&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",_),this.editor._emit("findSearchBox",{match:!_}),this.highlight(),this.updateCounter()}},f.prototype.updateCounter=function(){var b=this.editor,x=b.$search.$options.re,O=x.unicode,T=0,_=0;if(x){var C=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue();b.$search.$isMultilineSearch(b.getLastSearchOptions())&&(C=C.replace(/\r\n|\r|\n/g,`
|
|
1385
|
-
`),b.session.doc.$autoNewLine=`
|
|
1386
|
-
`);var L=b.session.doc.positionToIndex(b.selection.anchor);this.searchRange&&(L-=b.session.doc.positionToIndex(this.searchRange.start));for(var F=x.lastIndex=0,E;(E=x.exec(C))&&(T++,F=E.index,F<=L&&_++,!(T>u||!E[0]&&(x.lastIndex=F+=g.skipEmptyMatch(C,F,O),F>=C.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[_,T>u?u+"+":T])},f.prototype.findNext=function(){this.find(!0,!1)},f.prototype.findPrev=function(){this.find(!0,!0)},f.prototype.findAll=function(){var b=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!b&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},f.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},f.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},f.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},f.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},f.prototype.show=function(b,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=x,this.editor.$search.$options.regExp&&(b=g.escapeRegExp(b)),b!=null&&(this.searchInput.value=b),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},f.prototype.isFocused=function(){var b=document.activeElement;return b==this.searchInput||b==this.replaceInput},f})(),i=new d;i.bindKeys({"Ctrl-f|Command-f":function(f){var b=f.isReplace=!f.isReplace;f.replaceBox.style.display=b?"":"none",f.replaceOption.checked=!1,f.$syncOptions(),f.searchInput.focus()},"Ctrl-H|Command-Option-F":function(f){f.editor.getReadOnly()||(f.replaceOption.checked=!0,f.$syncOptions(),f.replaceInput.focus())},"Ctrl-G|Command-G":function(f){f.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(f){f.findPrev()},esc:function(f){setTimeout(function(){f.hide()})},Return:function(f){f.activeInput==f.replaceInput&&f.replace(),f.findNext()},"Shift-Return":function(f){f.activeInput==f.replaceInput&&f.replace(),f.findPrev()},"Alt-Return":function(f){f.activeInput==f.replaceInput&&f.replaceAll(),f.findAll()},Tab:function(f){(f.activeInput==f.replaceInput?f.searchInput:f.replaceInput).focus()}}),i.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(f){f.regExpOption.checked=!f.regExpOption.checked,f.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(f){f.caseSensitiveOption.checked=!f.caseSensitiveOption.checked,f.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(f){f.wholeWordOption.checked=!f.wholeWordOption.checked,f.$syncOptions()}},{name:"toggleReplace",exec:function(f){f.replaceOption.checked=!f.replaceOption.checked,f.$syncOptions()}},{name:"searchInSelection",exec:function(f){f.searchOption.checked=!f.searchRange,f.setSearchRange(f.searchOption.checked&&f.editor.getSelectionRange()),f.$syncOptions()}}]);var s=new d([{bindKey:"Esc",name:"closeSearchBar",exec:function(f){f.searchBox.hide()}}]);c.prototype.$searchBarKb=i,c.prototype.$closeSearchBarKb=s,r.SearchBox=c,r.Search=function(f,b){var x=f.searchBox||new c(f),O=f.session.selection.getRange(),T=O.isMultiLine()?"":f.session.getTextRange(O);x.show(T,b)}}),(function(){ace.require(["ace/ext/searchbox"],function(e){t&&(t.exports=e)})})()})(lp)),lp.exports}gx();function up(t,n){return function(){return t.apply(n,arguments)}}const{toString:mx}=Object.prototype,{getPrototypeOf:hu}=Object,{iterator:Al,toStringTag:hp}=Symbol,_l=(t=>n=>{const e=mx.call(n);return t[e]||(t[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ui=t=>(t=t.toLowerCase(),n=>_l(n)===t),Sl=t=>n=>typeof n===t,{isArray:Ks}=Array,qs=Sl("undefined");function Sa(t){return t!==null&&!qs(t)&&t.constructor!==null&&!qs(t.constructor)&&Qr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const dp=Ui("ArrayBuffer");function vx(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&dp(t.buffer),n}const yx=Sl("string"),Qr=Sl("function"),fp=Sl("number"),$a=t=>t!==null&&typeof t=="object",bx=t=>t===!0||t===!1,$l=t=>{if(_l(t)!=="object")return!1;const n=hu(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(hp in t)&&!(Al in t)},wx=t=>{if(!$a(t)||Sa(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},xx=Ui("Date"),Cx=Ui("File"),kx=t=>!!(t&&typeof t.uri<"u"),Ax=t=>t&&typeof t.getParts<"u",_x=Ui("Blob"),Sx=Ui("FileList"),$x=t=>$a(t)&&Qr(t.pipe);function Tx(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pp=Tx(),gp=typeof pp.FormData<"u"?pp.FormData:void 0,Mx=t=>{let n;return t&&(gp&&t instanceof gp||Qr(t.append)&&((n=_l(t))==="formdata"||n==="object"&&Qr(t.toString)&&t.toString()==="[object FormData]"))},Ix=Ui("URLSearchParams"),[Ex,Lx,Rx,Ox]=["ReadableStream","Request","Response","Headers"].map(Ui),Nx=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ta(t,n,{allOwnKeys:e=!1}={}){if(t===null||typeof t>"u")return;let r,v;if(typeof t!="object"&&(t=[t]),Ks(t))for(r=0,v=t.length;r<v;r++)n.call(null,t[r],r,t);else{if(Sa(t))return;const p=e?Object.getOwnPropertyNames(t):Object.keys(t),g=p.length;let w;for(r=0;r<g;r++)w=p[r],n.call(null,t[w],w,t)}}function mp(t,n){if(Sa(t))return null;n=n.toLowerCase();const e=Object.keys(t);let r=e.length,v;for(;r-- >0;)if(v=e[r],n===v.toLowerCase())return v;return null}const us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vp=t=>!qs(t)&&t!==us;function du(){const{caseless:t,skipUndefined:n}=vp(this)&&this||{},e={},r=(v,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=t&&mp(e,p)||p;$l(e[g])&&$l(v)?e[g]=du(e[g],v):$l(v)?e[g]=du({},v):Ks(v)?e[g]=v.slice():(!n||!qs(v))&&(e[g]=v)};for(let v=0,p=arguments.length;v<p;v++)arguments[v]&&Ta(arguments[v],r);return e}const Dx=(t,n,e,{allOwnKeys:r}={})=>(Ta(n,(v,p)=>{e&&Qr(v)?Object.defineProperty(t,p,{value:up(v,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,p,{value:v,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Fx=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Px=(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},Wx=(t,n,e,r)=>{let v,p,g;const w={};if(n=n||{},t==null)return n;do{for(v=Object.getOwnPropertyNames(t),p=v.length;p-- >0;)g=v[p],(!r||r(g,t,n))&&!w[g]&&(n[g]=t[g],w[g]=!0);t=e!==!1&&hu(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},Bx=(t,n,e)=>{t=String(t),(e===void 0||e>t.length)&&(e=t.length),e-=n.length;const r=t.indexOf(n,e);return r!==-1&&r===e},zx=t=>{if(!t)return null;if(Ks(t))return t;let n=t.length;if(!fp(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},jx=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&hu(Uint8Array)),Hx=(t,n)=>{const e=(t&&t[Al]).call(t);let r;for(;(r=e.next())&&!r.done;){const v=r.value;n.call(t,v[0],v[1])}},Ux=(t,n)=>{let e;const r=[];for(;(e=t.exec(n))!==null;)r.push(e);return r},Vx=Ui("HTMLFormElement"),Kx=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,r){return e.toUpperCase()+r}),yp=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),qx=Ui("RegExp"),bp=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};Ta(e,(v,p)=>{let g;(g=n(v,p,t))!==!1&&(r[p]=g||v)}),Object.defineProperties(t,r)},Gx=t=>{bp(t,(n,e)=>{if(Qr(t)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=t[e];if(Qr(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Yx=(t,n)=>{const e={},r=v=>{v.forEach(p=>{e[p]=!0})};return Ks(t)?r(t):r(String(t).split(n)),e},Xx=()=>{},Zx=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function Qx(t){return!!(t&&Qr(t.append)&&t[hp]==="FormData"&&t[Al])}const Jx=t=>{const n=new Array(10),e=(r,v)=>{if($a(r)){if(n.indexOf(r)>=0)return;if(Sa(r))return r;if(!("toJSON"in r)){n[v]=r;const p=Ks(r)?[]:{};return Ta(r,(g,w)=>{const h=e(g,v+1);!qs(h)&&(p[w]=h)}),n[v]=void 0,p}}return r};return e(t,0)},e1=Ui("AsyncFunction"),t1=t=>t&&($a(t)||Qr(t))&&Qr(t.then)&&Qr(t.catch),wp=((t,n)=>t?setImmediate:n?((e,r)=>(us.addEventListener("message",({source:v,data:p})=>{v===us&&p===e&&r.length&&r.shift()()},!1),v=>{r.push(v),us.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Qr(us.postMessage)),n1=typeof queueMicrotask<"u"?queueMicrotask.bind(us):typeof process<"u"&&process.nextTick||wp,r1=t=>t!=null&&Qr(t[Al]),Ae={isArray:Ks,isArrayBuffer:dp,isBuffer:Sa,isFormData:Mx,isArrayBufferView:vx,isString:yx,isNumber:fp,isBoolean:bx,isObject:$a,isPlainObject:$l,isEmptyObject:wx,isReadableStream:Ex,isRequest:Lx,isResponse:Rx,isHeaders:Ox,isUndefined:qs,isDate:xx,isFile:Cx,isReactNativeBlob:kx,isReactNative:Ax,isBlob:_x,isRegExp:qx,isFunction:Qr,isStream:$x,isURLSearchParams:Ix,isTypedArray:jx,isFileList:Sx,forEach:Ta,merge:du,extend:Dx,trim:Nx,stripBOM:Fx,inherits:Px,toFlatObject:Wx,kindOf:_l,kindOfTest:Ui,endsWith:Bx,toArray:zx,forEachEntry:Hx,matchAll:Ux,isHTMLForm:Vx,hasOwnProperty:yp,hasOwnProp:yp,reduceDescriptors:bp,freezeMethods:Gx,toObjectSet:Yx,toCamelCase:Kx,noop:Xx,toFiniteNumber:Zx,findKey:mp,global:us,isContextDefined:vp,isSpecCompliantForm:Qx,toJSONObject:Jx,isAsyncFn:e1,isThenable:t1,setImmediate:wp,asap:n1,isIterable:r1};let mt=class z0 extends Error{static from(n,e,r,v,p,g){const w=new z0(n.message,e||n.code,r,v,p);return w.cause=n,w.name=n.name,n.status!=null&&w.status==null&&(w.status=n.status),g&&Object.assign(w,g),w}constructor(n,e,r,v,p){super(n),Object.defineProperty(this,"message",{value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),v&&(this.request=v),p&&(this.response=p,this.status=p.status)}toJSON(){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:Ae.toJSONObject(this.config),code:this.code,status:this.status}}};mt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",mt.ERR_BAD_OPTION="ERR_BAD_OPTION",mt.ECONNABORTED="ECONNABORTED",mt.ETIMEDOUT="ETIMEDOUT",mt.ERR_NETWORK="ERR_NETWORK",mt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",mt.ERR_DEPRECATED="ERR_DEPRECATED",mt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",mt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",mt.ERR_CANCELED="ERR_CANCELED",mt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",mt.ERR_INVALID_URL="ERR_INVALID_URL";const i1=null;function fu(t){return Ae.isPlainObject(t)||Ae.isArray(t)}function xp(t){return Ae.endsWith(t,"[]")?t.slice(0,-2):t}function pu(t,n,e){return t?t.concat(n).map(function(r,v){return r=xp(r),!e&&v?"["+r+"]":r}).join(e?".":""):n}function o1(t){return Ae.isArray(t)&&!t.some(fu)}const s1=Ae.toFlatObject(Ae,{},null,function(t){return/^is[A-Z]/.test(t)});function Tl(t,n,e){if(!Ae.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,e=Ae.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Ae.isUndefined(i[c])});const r=e.metaTokens,v=e.visitor||d,p=e.dots,g=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(n);if(!Ae.isFunction(v))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Ae.isDate(c))return c.toISOString();if(Ae.isBoolean(c))return c.toString();if(!w&&Ae.isBlob(c))throw new mt("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(c)||Ae.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let f=c;if(Ae.isReactNative(n)&&Ae.isReactNativeBlob(c))return n.append(pu(s,i,p),h(c)),!1;if(c&&!s&&typeof c=="object"){if(Ae.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Ae.isArray(c)&&o1(c)||(Ae.isFileList(c)||Ae.endsWith(i,"[]"))&&(f=Ae.toArray(c)))return i=xp(i),f.forEach(function(b,x){!(Ae.isUndefined(b)||b===null)&&n.append(g===!0?pu([i],x,p):g===null?i:i+"[]",h(b))}),!1}return fu(c)?!0:(n.append(pu(s,i,p),h(c)),!1)}const a=[],l=Object.assign(s1,{defaultVisitor:d,convertValue:h,isVisitable:fu});function u(c,i){if(!Ae.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),Ae.forEach(c,function(s,f){(!(Ae.isUndefined(s)||s===null)&&v.call(n,s,Ae.isString(f)?f.trim():f,i,l))===!0&&u(s,i?i.concat(f):[f])}),a.pop()}}if(!Ae.isObject(t))throw new TypeError("data must be an object");return u(t),n}function Cp(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return n[e]})}function gu(t,n){this._pairs=[],t&&Tl(t,this,n)}const kp=gu.prototype;kp.append=function(t,n){this._pairs.push([t,n])},kp.toString=function(t){const n=t?function(e){return t.call(this,e,Cp)}:Cp;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function a1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ap(t,n,e){if(!n)return t;const r=e&&e.encode||a1,v=Ae.isFunction(e)?{serialize:e}:e,p=v&&v.serialize;let g;if(p?g=p(n,v):g=Ae.isURLSearchParams(n)?n.toString():new gu(n,v).toString(r),g){const w=t.indexOf("#");w!==-1&&(t=t.slice(0,w)),t+=(t.indexOf("?")===-1?"?":"&")+g}return t}class _p{constructor(){this.handlers=[]}use(n,e,r){return this.handlers.push({fulfilled:n,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){Ae.forEach(this.handlers,function(e){e!==null&&n(e)})}}const mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},l1=typeof URLSearchParams<"u"?URLSearchParams:gu,c1=typeof FormData<"u"?FormData:null,u1=typeof Blob<"u"?Blob:null,h1={isBrowser:!0,classes:{URLSearchParams:l1,FormData:c1,Blob:u1},protocols:["http","https","file","blob","url","data"]},vu=typeof window<"u"&&typeof document<"u",yu=typeof navigator=="object"&&navigator||void 0,d1=vu&&(!yu||["ReactNative","NativeScript","NS"].indexOf(yu.product)<0),f1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",p1=vu&&window.location.href||"http://localhost",g1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vu,hasStandardBrowserEnv:d1,hasStandardBrowserWebWorkerEnv:f1,navigator:yu,origin:p1},Symbol.toStringTag,{value:"Module"})),_r={...g1,...h1};function m1(t,n){return Tl(t,new _r.classes.URLSearchParams,{visitor:function(e,r,v,p){return _r.isNode&&Ae.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...n})}function v1(t){return Ae.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function y1(t){const n={},e=Object.keys(t);let r;const v=e.length;let p;for(r=0;r<v;r++)p=e[r],n[p]=t[p];return n}function Sp(t){function n(e,r,v,p){let g=e[p++];if(g==="__proto__")return!0;const w=Number.isFinite(+g),h=p>=e.length;return g=!g&&Ae.isArray(v)?v.length:g,h?(Ae.hasOwnProp(v,g)?v[g]=[v[g],r]:v[g]=r,!w):((!v[g]||!Ae.isObject(v[g]))&&(v[g]=[]),n(e,r,v[g],p)&&Ae.isArray(v[g])&&(v[g]=y1(v[g])),!w)}if(Ae.isFormData(t)&&Ae.isFunction(t.entries)){const e={};return Ae.forEachEntry(t,(r,v)=>{n(v1(r),v,e,0)}),e}return null}function b1(t,n,e){if(Ae.isString(t))try{return(n||JSON.parse)(t),Ae.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(t)}const Ma={transitional:mu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,v=Ae.isObject(t);if(v&&Ae.isHTMLForm(t)&&(t=new FormData(t)),Ae.isFormData(t))return r?JSON.stringify(Sp(t)):t;if(Ae.isArrayBuffer(t)||Ae.isBuffer(t)||Ae.isStream(t)||Ae.isFile(t)||Ae.isBlob(t)||Ae.isReadableStream(t))return t;if(Ae.isArrayBufferView(t))return t.buffer;if(Ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(v){if(e.indexOf("application/x-www-form-urlencoded")>-1)return m1(t,this.formSerializer).toString();if((p=Ae.isFileList(t))||e.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Tl(p?{"files[]":t}:t,g&&new g,this.formSerializer)}}return v||r?(n.setContentType("application/json",!1),b1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ma.transitional,e=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Ae.isResponse(t)||Ae.isReadableStream(t))return t;if(t&&Ae.isString(t)&&(e&&!this.responseType||r)){const v=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(p){if(v)throw p.name==="SyntaxError"?mt.from(p,mt.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_r.classes.FormData,Blob:_r.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],t=>{Ma.headers[t]={}});const w1=Ae.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"]),x1=t=>{const n={};let e,r,v;return t&&t.split(`
|
|
1387
|
-
`).forEach(function(p){v=p.indexOf(":"),e=p.substring(0,v).trim().toLowerCase(),r=p.substring(v+1).trim(),!(!e||n[e]&&w1[e])&&(e==="set-cookie"?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)}),n},$p=Symbol("internals");function Ia(t){return t&&String(t).trim().toLowerCase()}function Ml(t){return t===!1||t==null?t:Ae.isArray(t)?t.map(Ml):String(t)}function C1(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}const k1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bu(t,n,e,r,v){if(Ae.isFunction(r))return r.call(this,n,e);if(v&&(n=e),!!Ae.isString(n)){if(Ae.isString(r))return n.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(n)}}function A1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,e,r)=>e.toUpperCase()+r)}function _1(t,n){const e=Ae.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+e,{value:function(v,p,g){return this[r].call(this,n,v,p,g)},configurable:!0})})}let Jr=class{constructor(t){t&&this.set(t)}set(t,n,e){const r=this;function v(g,w,h){const d=Ia(w);if(!d)throw new Error("header name must be a non-empty string");const a=Ae.findKey(r,d);(!a||r[a]===void 0||h===!0||h===void 0&&r[a]!==!1)&&(r[a||w]=Ml(g))}const p=(g,w)=>Ae.forEach(g,(h,d)=>v(h,d,w));if(Ae.isPlainObject(t)||t instanceof this.constructor)p(t,n);else if(Ae.isString(t)&&(t=t.trim())&&!k1(t))p(x1(t),n);else if(Ae.isObject(t)&&Ae.isIterable(t)){let g={},w,h;for(const d of t){if(!Ae.isArray(d))throw TypeError("Object iterator must return a key-value pair");g[h=d[0]]=(w=g[h])?Ae.isArray(w)?[...w,d[1]]:[w,d[1]]:d[1]}p(g,n)}else t!=null&&v(n,t,e);return this}get(t,n){if(t=Ia(t),t){const e=Ae.findKey(this,t);if(e){const r=this[e];if(!n)return r;if(n===!0)return C1(r);if(Ae.isFunction(n))return n.call(this,r,e);if(Ae.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ia(t),t){const e=Ae.findKey(this,t);return!!(e&&this[e]!==void 0&&(!n||bu(this,this[e],e,n)))}return!1}delete(t,n){const e=this;let r=!1;function v(p){if(p=Ia(p),p){const g=Ae.findKey(e,p);g&&(!n||bu(e,e[g],g,n))&&(delete e[g],r=!0)}}return Ae.isArray(t)?t.forEach(v):v(t),r}clear(t){const n=Object.keys(this);let e=n.length,r=!1;for(;e--;){const v=n[e];(!t||bu(this,this[v],v,t,!0))&&(delete this[v],r=!0)}return r}normalize(t){const n=this,e={};return Ae.forEach(this,(r,v)=>{const p=Ae.findKey(e,v);if(p){n[p]=Ml(r),delete n[v];return}const g=t?A1(v):String(v).trim();g!==v&&delete n[v],n[g]=Ml(r),e[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ae.forEach(this,(e,r)=>{e!=null&&e!==!1&&(n[r]=t&&Ae.isArray(e)?e.join(", "):e)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
1388
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const e=new this(t);return n.forEach(r=>e.set(r)),e}static accessor(t){const n=(this[$p]=this[$p]={accessors:{}}).accessors,e=this.prototype;function r(v){const p=Ia(v);n[p]||(_1(e,v),n[p]=!0)}return Ae.isArray(t)?t.forEach(r):r(t),this}};Jr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Jr.prototype,({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(r){this[e]=r}}}),Ae.freezeMethods(Jr);function wu(t,n){const e=this||Ma,r=n||e,v=Jr.from(r.headers);let p=r.data;return Ae.forEach(t,function(g){p=g.call(e,p,v.normalize(),n?n.status:void 0)}),v.normalize(),p}function Tp(t){return!!(t&&t.__CANCEL__)}let Ea=class extends mt{constructor(t,n,e){super(t??"canceled",mt.ERR_CANCELED,n,e),this.name="CanceledError",this.__CANCEL__=!0}};function Mp(t,n,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?t(e):n(new mt("Request failed with status code "+e.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function S1(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function $1(t,n){t=t||10;const e=new Array(t),r=new Array(t);let v=0,p=0,g;return n=n!==void 0?n:1e3,function(w){const h=Date.now(),d=r[p];g||(g=h),e[v]=w,r[v]=h;let a=p,l=0;for(;a!==v;)l+=e[a++],a=a%t;if(v=(v+1)%t,v===p&&(p=(p+1)%t),h-g<n)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function T1(t,n){let e=0,r=1e3/n,v,p;const g=(w,h=Date.now())=>{e=h,v=null,p&&(clearTimeout(p),p=null),t(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?g(w,h):(v=w,p||(p=setTimeout(()=>{p=null,g(v)},r-d)))},()=>v&&g(v)]}const Il=(t,n,e=3)=>{let r=0;const v=$1(50,250);return T1(p=>{const g=p.loaded,w=p.lengthComputable?p.total:void 0,h=g-r,d=v(h),a=g<=w;r=g;const l={loaded:g,total:w,progress:w?g/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-g)/d:void 0,event:p,lengthComputable:w!=null,[n?"download":"upload"]:!0};t(l)},e)},Ip=(t,n)=>{const e=t!=null;return[r=>n[0]({lengthComputable:e,total:t,loaded:r}),n[1]]},Ep=t=>(...n)=>Ae.asap(()=>t(...n)),M1=_r.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,_r.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL(_r.origin),_r.navigator&&/(msie|trident)/i.test(_r.navigator.userAgent)):()=>!0,I1=_r.hasStandardBrowserEnv?{write(t,n,e,r,v,p,g){if(typeof document>"u")return;const w=[`${t}=${encodeURIComponent(n)}`];Ae.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Ae.isString(r)&&w.push(`path=${r}`),Ae.isString(v)&&w.push(`domain=${v}`),p===!0&&w.push("secure"),Ae.isString(g)&&w.push(`SameSite=${g}`),document.cookie=w.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function E1(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function L1(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Lp(t,n,e){let r=!E1(n);return t&&(r||e==!1)?L1(t,n):n}const Rp=t=>t instanceof Jr?{...t}:t;function hs(t,n){n=n||{};const e={};function r(d,a,l,u){return Ae.isPlainObject(d)&&Ae.isPlainObject(a)?Ae.merge.call({caseless:u},d,a):Ae.isPlainObject(a)?Ae.merge({},a):Ae.isArray(a)?a.slice():a}function v(d,a,l,u){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function p(d,a){if(!Ae.isUndefined(a))return r(void 0,a)}function g(d,a){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in n)return r(d,a);if(l in t)return r(void 0,d)}const h={url:p,method:p,data:p,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:w,headers:(d,a,l)=>v(Rp(d),Rp(a),l,!0)};return Ae.forEach(Object.keys({...t,...n}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const a=Ae.hasOwnProp(h,d)?h[d]:v,l=a(t[d],n[d],d);Ae.isUndefined(l)&&a!==w||(e[d]=l)}),e}const Op=t=>{const n=hs({},t);let{data:e,withXSRFToken:r,xsrfHeaderName:v,xsrfCookieName:p,headers:g,auth:w}=n;if(n.headers=g=Jr.from(g),n.url=Ap(Lp(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),w&&g.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),Ae.isFormData(e)){if(_r.hasStandardBrowserEnv||_r.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(Ae.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&g.set(a,l)})}}if(_r.hasStandardBrowserEnv&&(r&&Ae.isFunction(r)&&(r=r(n)),r||r!==!1&&M1(n.url))){const h=v&&p&&I1.read(p);h&&g.set(v,h)}return n},R1=typeof XMLHttpRequest<"u",O1=R1&&function(t){return new Promise(function(n,e){const r=Op(t);let v=r.data;const p=Jr.from(r.headers).normalize();let{responseType:g,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function f(){if(!s)return;const x=Jr.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),O={data:!g||g==="text"||g==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:t,request:s};Mp(function(T){n(T),i()},function(T){e(T),i()},O),s=null}"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(e(new mt("Request aborted",mt.ECONNABORTED,t,s)),s=null)},s.onerror=function(x){const O=x&&x.message?x.message:"Network Error",T=new mt(O,mt.ERR_NETWORK,t,s);T.event=x||null,e(T),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const O=r.transitional||mu;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new mt(x,O.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,t,s)),s=null},v===void 0&&p.setContentType(null),"setRequestHeader"in s&&Ae.forEach(p.toJSON(),function(x,O){s.setRequestHeader(O,x)}),Ae.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),g&&g!=="json"&&(s.responseType=r.responseType),h&&([l,c]=Il(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=Il(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new Ea(null,t,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=S1(r.url);if(b&&_r.protocols.indexOf(b)===-1){e(new mt("Unsupported protocol "+b+":",mt.ERR_BAD_REQUEST,t));return}s.send(v||null)})},N1=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let r=new AbortController,v;const p=function(d){if(!v){v=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof mt?a:new Ea(a instanceof Error?a.message:a))}};let g=n&&setTimeout(()=>{g=null,p(new mt(`timeout of ${n}ms exceeded`,mt.ETIMEDOUT))},n);const w=()=>{t&&(g&&clearTimeout(g),g=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(p):d.removeEventListener("abort",p)}),t=null)};t.forEach(d=>d.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>Ae.asap(w),h}},D1=function*(t,n){let e=t.byteLength;if(e<n){yield t;return}let r=0,v;for(;r<e;)v=r+n,yield t.slice(r,v),r=v},F1=async function*(t,n){for await(const e of P1(t))yield*D1(e,n)},P1=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:e,value:r}=await n.read();if(e)break;yield r}}finally{await n.cancel()}},Np=(t,n,e,r)=>{const v=F1(t,n);let p=0,g,w=h=>{g||(g=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await v.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=p+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),v.return()}},{highWaterMark:2})},Dp=64*1024,{isFunction:El}=Ae,W1=(({Request:t,Response:n})=>({Request:t,Response:n}))(Ae.global),{ReadableStream:Fp,TextEncoder:Pp}=Ae.global,Wp=(t,...n)=>{try{return!!t(...n)}catch{return!1}},B1=t=>{t=Ae.merge.call({skipUndefined:!0},W1,t);const{fetch:n,Request:e,Response:r}=t,v=n?El(n):typeof fetch=="function",p=El(e),g=El(r);if(!v)return!1;const w=v&&El(Fp),h=v&&(typeof Pp=="function"?(i=>s=>i.encode(s))(new Pp):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=p&&w&&Wp(()=>{let i=!1;const s=new e(_r.origin,{body:new Fp,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),a=g&&w&&Wp(()=>Ae.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,f)=>{let b=s&&s[i];if(b)return b.call(s);throw new mt(`Response type '${i}' is not supported`,mt.ERR_NOT_SUPPORT,f)})});const u=async i=>{if(i==null)return 0;if(Ae.isBlob(i))return i.size;if(Ae.isSpecCompliantForm(i))return(await new e(_r.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(i)||Ae.isArrayBuffer(i))return i.byteLength;if(Ae.isURLSearchParams(i)&&(i=i+""),Ae.isString(i))return(await h(i)).byteLength},c=async(i,s)=>Ae.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:f,data:b,signal:x,cancelToken:O,timeout:T,onDownloadProgress:_,onUploadProgress:C,responseType:L,headers:F,withCredentials:E="same-origin",fetchOptions:I}=Op(i),z=n||fetch;L=L?(L+"").toLowerCase():"text";let P=N1([x,O&&O.toAbortSignal()],T),N=null;const S=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let k;try{if(C&&d&&f!=="get"&&f!=="head"&&(k=await c(F,b))!==0){let J=new e(s,{method:"POST",body:b,duplex:"half"}),he;if(Ae.isFormData(b)&&(he=J.headers.get("content-type"))&&F.setContentType(he),J.body){const[ne,ce]=Ip(k,Il(Ep(C)));b=Np(J.body,Dp,ne,ce)}}Ae.isString(E)||(E=E?"include":"omit");const R=p&&"credentials"in e.prototype,B={...I,signal:P,method:f.toUpperCase(),headers:F.normalize().toJSON(),body:b,duplex:"half",credentials:R?E:void 0};N=p&&new e(s,B);let U=await(p?z(N,I):z(s,B));const q=a&&(L==="stream"||L==="response");if(a&&(_||q&&S)){const J={};["status","statusText","headers"].forEach(se=>{J[se]=U[se]});const he=Ae.toFiniteNumber(U.headers.get("content-length")),[ne,ce]=_&&Ip(he,Il(Ep(_),!0))||[];U=new r(Np(U.body,Dp,ne,()=>{ce&&ce(),S&&S()}),J)}L=L||"text";let Q=await l[Ae.findKey(l,L)||"text"](U,i);return!q&&S&&S(),await new Promise((J,he)=>{Mp(J,he,{data:Q,headers:Jr.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:N})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new mt("Network Error",mt.ERR_NETWORK,i,N,R&&R.response),{cause:R.cause||R}):mt.from(R,R&&R.code,i,N,R&&R.response)}}},z1=new Map,Bp=t=>{let n=t&&t.env||{};const{fetch:e,Request:r,Response:v}=n,p=[r,v,e];let g=p.length,w=g,h,d,a=z1;for(;w--;)h=p[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:B1(n)),a=d;return d};Bp();const xu={http:i1,xhr:O1,fetch:{get:Bp}};Ae.forEach(xu,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const zp=t=>`- ${t}`,j1=t=>Ae.isFunction(t)||t===null||t===!1;function H1(t,n){t=Ae.isArray(t)?t:[t];const{length:e}=t;let r,v;const p={};for(let g=0;g<e;g++){r=t[g];let w;if(v=r,!j1(r)&&(v=xu[(w=String(r)).toLowerCase()],v===void 0))throw new mt(`Unknown adapter '${w}'`);if(v&&(Ae.isFunction(v)||(v=v.get(n))))break;p[w||"#"+g]=v}if(!v){const g=Object.entries(p).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?g.length>1?`since :
|
|
1389
|
-
`+g.map(zp).join(`
|
|
1390
|
-
`):" "+zp(g[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return v}const jp={getAdapter:H1,adapters:xu};function Cu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ea(null,t)}function Hp(t){return Cu(t),t.headers=Jr.from(t.headers),t.data=wu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),jp.getAdapter(t.adapter||Ma.adapter,t)(t).then(function(n){return Cu(t),n.data=wu.call(t,t.transformResponse,n),n.headers=Jr.from(n.headers),n},function(n){return Tp(n)||(Cu(t),n&&n.response&&(n.response.data=wu.call(t,t.transformResponse,n.response),n.response.headers=Jr.from(n.response.headers))),Promise.reject(n)})}const Up="1.13.6",Ll={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Ll[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}});const Vp={};Ll.transitional=function(t,n,e){function r(v,p){return"[Axios v"+Up+"] Transitional option '"+v+"'"+p+(e?". "+e:"")}return(v,p,g)=>{if(t===!1)throw new mt(r(p," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!Vp[p]&&(Vp[p]=!0,console.warn(r(p," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(v,p,g):!0}},Ll.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function U1(t,n,e){if(typeof t!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let v=r.length;for(;v-- >0;){const p=r[v],g=n[p];if(g){const w=t[p],h=w===void 0||g(w,p,t);if(h!==!0)throw new mt("option "+p+" must be "+h,mt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new mt("Unknown option "+p,mt.ERR_BAD_OPTION)}}const Rl={assertOptions:U1,validators:Ll},Ti=Rl.validators;let ds=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _p,response:new _p}}async request(t,n){try{return await this._request(t,n)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const v=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?v&&!String(e.stack).endsWith(v.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
|
1391
|
-
`+v):e.stack=v}catch{}}throw e}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hs(this.defaults,n);const{transitional:e,paramsSerializer:r,headers:v}=n;e!==void 0&&Rl.assertOptions(e,{silentJSONParsing:Ti.transitional(Ti.boolean),forcedJSONParsing:Ti.transitional(Ti.boolean),clarifyTimeoutError:Ti.transitional(Ti.boolean),legacyInterceptorReqResOrdering:Ti.transitional(Ti.boolean)},!1),r!=null&&(Ae.isFunction(r)?n.paramsSerializer={serialize:r}:Rl.assertOptions(r,{encode:Ti.function,serialize:Ti.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Rl.assertOptions(n,{baseUrl:Ti.spelling("baseURL"),withXsrfToken:Ti.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let p=v&&Ae.merge(v.common,v[n.method]);v&&Ae.forEach(["delete","get","head","post","put","patch","common"],c=>{delete v[c]}),n.headers=Jr.concat(p,v);const g=[];let w=!0;this.interceptors.request.forEach(function(c){if(typeof c.runWhen=="function"&&c.runWhen(n)===!1)return;w=w&&c.synchronous;const i=n.transitional||mu;i&&i.legacyInterceptorReqResOrdering?g.unshift(c.fulfilled,c.rejected):g.push(c.fulfilled,c.rejected)});const h=[];this.interceptors.response.forEach(function(c){h.push(c.fulfilled,c.rejected)});let d,a=0,l;if(!w){const c=[Hp.bind(this),void 0];for(c.unshift(...g),c.push(...h),l=c.length,d=Promise.resolve(n);a<l;)d=d.then(c[a++],c[a++]);return d}l=g.length;let u=n;for(;a<l;){const c=g[a++],i=g[a++];try{u=c(u)}catch(s){i.call(this,s);break}}try{d=Hp.call(this,u)}catch(c){return Promise.reject(c)}for(a=0,l=h.length;a<l;)d=d.then(h[a++],h[a++]);return d}getUri(t){t=hs(this.defaults,t);const n=Lp(t.baseURL,t.url,t.allowAbsoluteUrls);return Ap(n,t.params,t.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(t){ds.prototype[t]=function(n,e){return this.request(hs(e||{},{method:t,url:n,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(t){function n(e){return function(r,v,p){return this.request(hs(p||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:v}))}}ds.prototype[t]=n(),ds.prototype[t+"Form"]=n(!0)});let V1=class j0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(v){e=v});const r=this;this.promise.then(v=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](v);r._listeners=null}),this.promise.then=v=>{let p;const g=new Promise(w=>{r.subscribe(w),p=w}).then(v);return g.cancel=function(){r.unsubscribe(p)},g},n(function(v,p,g){r.reason||(r.reason=new Ea(v,p,g),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const n=new AbortController,e=r=>{n.abort(r)};return this.subscribe(e),n.signal.unsubscribe=()=>this.unsubscribe(e),n.signal}static source(){let n;return{token:new j0(function(e){n=e}),cancel:n}}};function K1(t){return function(n){return t.apply(null,n)}}function q1(t){return Ae.isObject(t)&&t.isAxiosError===!0}const ku={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ku).forEach(([t,n])=>{ku[n]=t});function Kp(t){const n=new ds(t),e=up(ds.prototype.request,n);return Ae.extend(e,ds.prototype,n,{allOwnKeys:!0}),Ae.extend(e,n,null,{allOwnKeys:!0}),e.create=function(r){return Kp(hs(t,r))},e}const Hn=Kp(Ma);Hn.Axios=ds,Hn.CanceledError=Ea,Hn.CancelToken=V1,Hn.isCancel=Tp,Hn.VERSION=Up,Hn.toFormData=Tl,Hn.AxiosError=mt,Hn.Cancel=Hn.CanceledError,Hn.all=function(t){return Promise.all(t)},Hn.spread=K1,Hn.isAxiosError=q1,Hn.mergeConfig=hs,Hn.AxiosHeaders=Jr,Hn.formToJSON=t=>Sp(Ae.isHTMLForm(t)?new FormData(t):t),Hn.getAdapter=jp.getAdapter,Hn.HttpStatusCode=ku,Hn.default=Hn;const{Axios:YN,AxiosError:XN,CanceledError:ZN,isCancel:QN,CancelToken:JN,VERSION:e2,all:t2,Cancel:n2,isAxiosError:r2,spread:i2,toFormData:o2,AxiosHeaders:s2,HttpStatusCode:a2,formToJSON:l2,getAdapter:c2,mergeConfig:u2}=Hn,Au=Hn.create({baseURL:location.origin,timeout:6e4,params:{}});Au.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(r){r&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let n=`HTTP ${t.response.status} - `;t.response?.statusText&&(n+=`${t.response.statusText} `),t.response?.config?.data&&(n+=`${t.response.config.data} `),t.response?.data?.message?n+=`${t.response.data.message}`:t.response?.data?.exception?n+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(n+=`${t.response.data.error.class} `),n+=`${t.response.data.error.message}`):n+=`${t.response?.data}`;const{$cosmosNotify:e}=window;throw e&&e.serious({title:"Network error",body:n}),t}else throw t});const Ol=async function(t,n,{data:e,params:r={},headers:v,noAuth:p=!1,noScope:g=!1,onUploadProgress:w=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}v.Authorization=localStorage.openc3Token}return v.manual=!0,!g&&!r.scope&&(r.scope=window.openc3Scope),Au({method:t,url:n,data:e,params:r,headers:v,onUploadProgress:w})},_u={Accept:"application/json"},qp={..._u,"Content-Type":"application/json"},G1=Mn("v",{get:function(t,{params:n,headers:e=_u,noScope:r,noAuth:v,onUploadProgress:p}={}){return Ol("get",t,{params:n,headers:e,noScope:r,noAuth:v,onUploadProgress:p})},put:function(t,{data:n,params:e,headers:r=qp,noScope:v,noAuth:p,onUploadProgress:g}={}){return Ol("put",t,{data:n,params:e,headers:r,noScope:v,noAuth:p,onUploadProgress:g})},post:function(t,{data:n,params:e,headers:r=qp,noScope:v,noAuth:p,onUploadProgress:g}={}){return Ol("post",t,{data:n,params:e,headers:r,noScope:v,noAuth:p,onUploadProgress:g})},delete:function(t,{params:n,headers:e=_u,noScope:r,noAuth:v,onUploadProgress:p}={}){return Ol("delete",t,{params:n,headers:e,noScope:r,noAuth:v,onUploadProgress:p})}});let Nl=()=>({emit(t,...n){for(let e=this.events[t]||[],r=0,v=e.length;r<v;r++)e[r](...n)},events:{},on(t,n){return(this.events[t]||=[]).push(n),()=>{this.events[t]=this.events[t]?.filter(e=>n!==e)}}});class La extends Error{constructor(n,e){n instanceof Error?(super(n.message),this.cause=n):super(n),this.reason=e,this.name="ReasonError"}}class Su extends La{constructor(n){super("Rejected",n),this.name="SubscriptionRejectedError"}}class Y1 extends La{constructor(n){super(n||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Vi extends La{constructor(n,e){e?super(n,e):super("Disconnected",n),this.name="DisconnectedError"}}class X1 extends Vi{constructor(n){super(n,"stale_connection"),this.name="StaleConnectionError"}}function Gp(t){return t?`{${Object.keys(t).sort().filter(n=>t[n]!==void 0).map(n=>{let e=JSON.stringify(t[n]);return`${JSON.stringify(n)}:${e}`}).join(",")}}`:""}class Z1{constructor(n){this.channel=n,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",n=>{if(n.type==="info"){this._state||(this._state=this.stateFromInfo(n));return}this._state&&(n.type==="join"?this._state[n.id]=n.info:n.type==="leave"&&delete this._state[n.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(n=>n()),this.listeners.length=0}async join(n,e){if(!this._info)return this._info={id:String(n),info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let n=await this.channel.perform("$presence:leave");return delete this._info,n}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let n=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(n),this._state}finally{delete this._promise}}stateFromInfo(n){return n.records.reduce((e,{id:r,info:v})=>(e[r]=v,e),{})}}const fs=Symbol("state");class Yp{constructor(n={}){this.emitter=Nl(),this.params=Object.freeze(n),this.presence=new Z1(this),this.initialConnect=!0,this[fs]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Gp({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[fs]}attached(n){if(this.receiver){if(this.receiver!==n)throw Error("Already connected to a different receiver");return!1}return this.receiver=n,!0}connecting(){this[fs]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[fs]="connected";let n=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(){if(this.state==="connected")throw Error("Already connected");this[fs]="connected";let n=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:n})}disconnected(n){this.state==="disconnected"||this.state==="closed"||(this[fs]="disconnected",this.presence.reset(),this.emit("disconnect",n))}closed(n){this.state!=="closed"&&(this[fs]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",n))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(n,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,n,e)}async send(n){return this.perform(void 0,n)}async whisper(n){try{await this.perform("$whisper",n)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(n,e){this.emit("message",n,e)}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}emit(n,...e){return this.emitter.emit(n,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((n,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(v=>v()),n()})),r.push(this.on("close",v=>{r.forEach(p=>p()),e(v||new La("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Q1{constructor(n){this.id=n,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(n){this.channels.includes(n)||this.channels.push(n)}remove(n){let e=this.channels.indexOf(n);e>-1&&this.channels.splice(e,1)}notify(n,...e){this.state=n==="restored"?"connected":n,e.length===1?this.channels.forEach(r=>r[n](e[0])):this.channels.forEach(r=>r[n]())}pending(n){this._checkIntent(n);let e=this._pendings[0];return!e||e.intent!==n?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(n){this._checkIntent(n);let e,r={promise:new Promise(p=>{e=p}),intent:n,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},v=this._pendingTop;return this._pendings.push(r),v&&await v.promise,this.gvl&&await this.gvl.acquire(r,n),r.acquired=!0,r}close(n){this.disposed=!0,this.intent=void 0,this.notify("closed",n)}_checkIntent(n){if(!(n==="unsubscribed"||n==="subscribed"))throw Error(`Unknown subscription intent: ${n}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(n){let e=this._pendingTop;return!e||e.acquired||e.intent!==n?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class J1{constructor(){this.queue=[]}async acquire(n,e){e==="subscribed"&&(this.queue.push(n.promise.then(()=>{this.queue.splice(this.queue.indexOf(n),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class eC{constructor(n){n.concurrentSubscribes===!1&&(this.glv=new J1),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(n){return this._subscriptions[n]}create(n,{subscribe:e,unsubscribe:r}){let v=this._subscriptions[n]=new Q1(n);return v.remoteId=this._localToRemote[n],v.subscriber=e,v.unsubscriber=r,v.gvl=this.glv,v}remove(n){delete this._subscriptions[n],delete this._localToRemote[n]}storeRemoteId(n,e){this._localToRemote[n]=e;let r=this.get(n);r&&(r.remoteId=e)}}class tC{constructor(n={}){this.subscriptions=new eC(n),this._pendingMessages=[],this._remoteToLocal={}}subscribe(n,e){this._remoteToLocal[e]=n,this.subscriptions.storeRemoteId(n,e),this.flush(e)}unsubscribe(n){let e=this.subscriptions.get(n);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(n)}transmit(n,e,r){let v=this._remoteToLocal[n];if(!v){this._pendingMessages.push([n,e,r]);return}let p=this.subscriptions.get(v);p&&p.channels.forEach(g=>{g.receive(e,r)})}notify(n,e,r){let v=this._remoteToLocal[n];if(!v)return;let p=this.subscriptions.get(v);p&&p.channels.forEach(g=>g.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(n=>n.channels)}flush(n){let e=[];for(let r of this._pendingMessages)r[0]===n?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const Xp={debug:0,info:1,warn:2,error:3};class Zp{constructor(n){this.level=n||"warn"}log(n,e,r){Xp[n]<Xp[this.level]||this.writeLogEntry(n,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(n,e){this.log("debug",n,e)}info(n,e){this.log("info",n,e)}warn(n,e){this.log("warn",n,e)}error(n,e){this.log("error",n,e)}}class Ra extends Zp{writeLogEntry(){}}class nC{encode(n){return JSON.stringify(n)}decode(n){try{return JSON.parse(n)}catch{}}}let rC=0;class Qp{constructor(n={}){let{logger:e}=n;this.logger=e||new Ra,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=n.subscribeCooldownInterval||250,this.subscribeRetryInterval=n.subscribeRetryInterval||5e3}attached(n){this.cable=n}subscribe(n,e){let r={channel:n};e&&Object.assign(r,e);let v=Gp(r);if(this.pendingUnsubscriptions[v]){let g=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${g}`,v),new Promise(w=>{setTimeout(()=>{w(this.subscribe(n,e))},g)})}if(this.pendingSubscriptions[v])return this.logger.warn("subscription is already pending, skipping",v),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((g,w)=>{let h=++rC;this.pendingSubscriptions[v]={resolve:g,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(v)),this.maybeRetrySubscribe(h,v,p)})}buildSubscribeRequest(n){return{command:"subscribe",identifier:n}}maybeRetrySubscribe(n,e,r){setTimeout(()=>{let v=this.pendingSubscriptions[e];v&&v.id===n&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(n,e,r))},r)}maybeExpireSubscribe(n,e,r){setTimeout(()=>{let v=this.pendingSubscriptions[e];v&&v.id===n&&(delete this.pendingSubscriptions[e],v.reject(new Y1(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(n){return this.cable.send({command:"unsubscribe",identifier:n}),this.pendingUnsubscriptions[n]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[n]},this.subscribeCooldownInterval),Promise.resolve()}perform(n,e,r){return e==="$whisper"?this.whisper(n,r):(r||(r={}),r.action||=e,this.cable.send({command:"message",identifier:n,data:JSON.stringify(r)}),Promise.resolve())}whisper(n,e){return this.cable.send({command:"whisper",identifier:n,data:e}),Promise.resolve()}receive(n){if(typeof n!="object"){this.logger.error("unsupported message format",{message:n});return}let{type:e,identifier:r,message:v,reason:p,reconnect:g}=n;if(e==="ping")return this.cable.keepalive(n.message);if(this.cable.keepalive(),e==="welcome"){let w=n.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(e==="disconnect"){let w=new Vi(p);this.reset(w),g===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(e==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(e==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new Su)):this.logger.error("subscription not found",{type:e,identifier:r})}if(v)return{identifier:r,message:v};this.logger.warn(`unknown message type: ${e}`,{message:n})}reset(n){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(n);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Jp=()=>Date.now()/1e3|0;class iC extends Qp{constructor(n={}){super(n),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=n.historyTimestamp,this.disableSessionRecovery=n.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=Jp()),this.sessionId=void 0,this.sendPongs=n.pongs}reset(n){for(let e in this.pendingPresence)this.pendingPresence[e].reject(n);return this.pendingPresence={},super.reset()}receive(n){if(typeof n!="object"){this.logger.error("unsupported message format",{message:n});return}let{type:e,identifier:r,message:v}=n;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(n);if(e==="reject_subscription")return super.receive(n);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(n);if(e==="ping")return this.restoreSince&&(this.restoreSince=Jp()),this.sendPongs&&this.sendPong(),this.cable.keepalive(n.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",n),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",n),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=n.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),n.restored){let p=n.restored_ids||Object.keys(this.subscriptionStreams);for(let g of p)this.cable.send({identifier:g,command:"history",history:this.historyRequestFor(g)}),this.presenceInfo[g]&&this.cable.send({identifier:g,command:"join",presence:this.presenceInfo[g]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(e==="presence"){let p=v.type;if(p==="info"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.resolve(v))}else if(p==="error"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:v}}if(v){let p=this.trackStreamPosition(r,n.stream_id,n.epoch,n.offset);return{identifier:r,message:v,meta:p}}this.logger.warn(`unknown message type: ${e}`,{message:n})}perform(n,e,r){switch(e){case"$presence:join":return this.join(n,r);case"$presence:leave":return this.leave(n,r);case"$presence:info":return this.presence(n,r)}return super.perform(n,e,r)}unsubscribe(n){return delete this.presenceInfo[n],super.unsubscribe(n)}buildSubscribeRequest(n){let e=super.buildSubscribeRequest(n),r=this.historyRequestFor(n);r&&(e.history=r,this.pendingHistory[n]=!0);let v=this.presenceInfo[n];return v&&(e.presence=v),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(n){let e={},r=!1;if(this.subscriptionStreams[n])for(let v of this.subscriptionStreams[n]){let p=this.streamsPositions[v];p&&(r=!0,e[v]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(n,e,r,v){if(!(!e||!r))return this.subscriptionStreams[n]||(this.subscriptionStreams[n]=new Set),this.subscriptionStreams[n].add(e),this.streamsPositions[e]={epoch:r,offset:v},{stream:e,epoch:r,offset:v}}async sendPong(){await new Promise(n=>setTimeout(n,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(n,e){return this.presenceInfo[n]=e,this.cable.send({command:"join",identifier:n,presence:e}),Promise.resolve()}async leave(n,e){return delete this.presenceInfo[n],this.cable.send({command:"leave",identifier:n,presence:e}),Promise.resolve()}presence(n,e){return this.pendingPresence[n]?(this.logger.warn("presence is already pending, skipping",n),Promise.reject(Error("presence request is already pending"))):new Promise((r,v)=>{this.pendingPresence[n]={resolve:r,reject:v},this.cable.send({command:"presence",identifier:n,data:e})})}}class oC extends La{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class eg extends Yp{static identifier="__ghost__";constructor(n,e){super(e),this.channelId=n}set channelId(n){this._channelId=n}get channelId(){return this._channelId}}const sC="$pubsub";class tg extends Yp{static identifier=sC;async perform(n,e){if(n.startsWith("$"))return super.perform(n,e);throw Error("not implemented")}}const ps=Symbol("state");let aC=class{constructor({transport:t,protocol:n,encoder:e,logger:r,lazy:v,hubOptions:p,performFailures:g,transportConfigurator:w}){this.emitter=Nl(),this.transport=t,this.encoder=e,this.logger=r||new Ra,this.protocol=n,this.performFailures=g||"throw",this.protocol.attached(this),this.hub=new tC(p||{}),this[ps]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,v===!1&&this.connect().catch(()=>{})}get state(){return this[ps]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[ps]="connecting";let n=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(e){this.handleClose(e)}return n}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ps]="connected",this.recovering&&this.hub.subscriptions.all().forEach(n=>n.notify("disconnected",new Vi("recovery_failed"))),this.hub.subscriptions.all().forEach(n=>this._resubscribe(n));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[ps]="connected",this.hub.subscriptions.all().forEach(r=>{t&&r.remoteId&&t.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Vi("recovery_failed")),this._resubscribe(r))});let n=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:e})}notify(t,n,e){n&&typeof n!="string"&&(e=n,n=void 0),n?this.hub.notify(n,"info",{type:t,data:e}):this.emit("info",{type:t,data:e})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new Vi(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[ps]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(n=>n.notify("connecting")):this.hub.subscriptions.all().forEach(n=>{n.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let n;t&&(n=t instanceof Vi?t:new Vi(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[ps]="closed";let e=n||new Vi("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",n)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let n=this.encoder.decode(t);if(n===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",n);let e=this.protocol.receive(n);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:v,message:p,meta:g}=e;r?this.hub.notify(v,r,p):this.hub.transmit(v,p,g)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let n=this.encoder.encode(t);if(n===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(n)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let n=new tg({stream_name:t});return this.subscribe(n)}streamFromSigned(t){let n=new tg({signed_stream_name:t});return this.subscribe(n)}subscribeTo(t,n){let e,r;return typeof t=="string"&&(r=t,t=eg),e=r?new t(r,n):new t(n),this.subscribe(e)}subscribe(t){if(!t.attached(this))return t;let n=t.identifier;t.connecting();let e=this.hub.subscriptions.get(n)||this.hub.subscriptions.create(n,{subscribe:r=>this._subscribe(r,t.channelId,t.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(t),e.intent==="subscribed"&&e.state==="connected"&&t.connected(),e.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,n,e){let r=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let v=await t.acquire("subscribed");if(v.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),v.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),v.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),v.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),t.notify("connected"),v.release();return}let p={identifier:n,params:e};this.logger.debug("subscribing",p);try{let g=await this.protocol.subscribe(n,e);this.hub.subscribe(r,g),this.logger.debug("subscribed",{...p,remoteId:g}),t.notify("connected")}catch(g){if(g){if(g instanceof Su&&this.logger.warn("rejected",p),g instanceof Vi){this.logger.debug("disconnected during subscription; will retry on connect",p),v.release();return}this.logger.error("failed to subscribe",{error:g,...p})}t.close(g),this.hub.unsubscribe(r)}v.release()}unsubscribe(t){let n=t.identifier,e=this.hub.subscriptions.get(n);if(!e)throw Error(`Subscription not found: ${n}`);e.remove(t),t.closed(),e.maybeUnsubscribe()}async _unsubscribe(t){let n=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:n});let e=await t.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:n}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:n}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:n,intent:t.intent}),e.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:n}),e.release();return}let r=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:n}),t.close(),this.hub.unsubscribe(n),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:n})}catch(v){v&&(v instanceof Vi?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:n,error:v}):this.logger.error("unsubscribe failed",{id:n,error:v}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(n)):t.state="closed",e.release()}async perform(t,n,e){if(this.performFailures==="throw")return this._perform(t,n,e);try{return await this._perform(t,n,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(t,n,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new oC;let r=this.hub.subscriptions.get(t);if(!r)throw Error(`Subscription not found: ${t}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let v=r.remoteId,p={id:v,action:n,payload:e};this.logger.debug("perform",p);try{let g=await this.protocol.perform(v,n,e);return g&&this.logger.debug("perform result",{message:g,request:p}),g}catch(g){throw this.logger.error("perform failed",{error:g,request:p}),g}}on(t,n){return this.emitter.on(t,n)}once(t,n){let e=this.emitter.on(t,(...r)=>{e(),n(...r)});return e}emit(t,...n){return this.emitter.emit(t,...n)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,n)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),t()})),e.push(this.on("close",r=>{e.forEach(v=>v()),n(r)})),e.push(this.on("disconnect",r=>{e.forEach(v=>v()),n(r)}))}),this._pendingConnect)}};const lC={maxMissingPings:2,maxReconnectAttempts:1/0},Gs=()=>Date.now(),ng=(t,n)=>{n=n||{};let{backoffRate:e,jitterRatio:r,maxInterval:v}=n;return e=e||2,r===void 0&&(r=.5),p=>{let g=t*e**p,w=g*e,h=g+(w-g)*Math.random(),d=2*(Math.random()-.5)*r;return h=h*(1+d),v&&v<h&&(h=v),h}};let rg=class{constructor({pingInterval:t,...n}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(n=Object.assign({},lC,n),this.strategy=n.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=n.maxMissingPings,this.maxReconnectAttempts=n.maxReconnectAttempts,this.logger=n.logger||new Ra,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Gs()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Gs(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Gs(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Gs(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Gs()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=Gs()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new X1))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class cC{constructor(n,e={}){this.transports=n,this.transport=null,this.emitter=Nl(),this.unbind=[],this.logger=e.logger||new Ra}displayName(){return"fallbacked transport"}async open(){for(let n=0;n<this.transports.length;n++){let e=this.transports[n];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(n){if(!this.transport)throw new Error("No transport is open");this.transport.send(n)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(n,e){this.transports.forEach(r=>{r.setParam(n,e)})}setToken(n,e){this.transports.forEach(r=>{r.setToken(n,e)})}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(n=>n()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",n=>{this.emitter.emit("data",n)}),this.transport.on("close",n=>{this.emitter.emit("close",n)}),this.transport.on("error",n=>{this.emitter.emit("error",n)}))}}class uC{constructor(n,e={}){this.url=n;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Nl();let{format:v,subprotocol:p,authStrategy:g}=e;this.format=v||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=g||"param",this.authProtocol="",this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){let n=this.subprotocol;return this.authStrategy==="sub-protocol"&&(n=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,n,this.connectionOptions):this.ws=new this.Impl(this.url,n),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let v=[];v.push(this.once("open",()=>{v.forEach(p=>p()),e()})),v.push(this.once("close",()=>{v.forEach(p=>p()),r(Error("WS connection closed"))}))})}setURL(n){this.url=n}setParam(n,e){let r=new URL(this.url);r.searchParams.set(n,e);let v=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(v)}setToken(n,e="jid"){if(this.authStrategy==="param")this.setParam(e,n);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(v=>v.toLowerCase()===r)||r,this.connectionOptions.headers[r]=n}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${n}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(n){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(n)}close(){this.ws?this.onclose():this.connected=!1}on(n,e){return this.emitter.on(n,e)}once(n,e){let r=this.emitter.on(n,(...v)=>{r(),e(...v)});return r}initListeners(){this.ws.onerror=n=>{this.connected&&this.emitter.emit("error",n.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=n=>{let e=n.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}class hC{constructor(n){this.channel=n}notify(n,...e){typeof this[n]=="function"&&this[n](...e)}perform(n,e={}){this.channel.perform(n,e)}send(n){this.channel.send(n)}whisper(n){return this.channel.whisper(n)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class dC extends eg{constructor(n,e,r){super(n,e),this.subscription=new hC(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:v})=>this.subscription.notify("connected",{reconnected:v})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",v=>this.subscription.notify("received",v)),this.on("close",v=>{v&&v instanceof Su?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class fC{constructor(n){this.cable=n}create(n,e){let r,v;typeof n=="object"?(r=n.channel,delete n.channel,v=n):(r=n,v={});let p=new dC(r,v,e);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(n){return this.cable.hub.channels.filter(e=>e.identifier===n).map(e=>e.subscription)}}class pC{constructor(n){this.cable=n,this.subscriptions=new fC(n)}send(n){return this.cable.send(n)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}}const ig={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function gC(t,n){if(typeof t=="object"&&typeof n>"u"&&(n=t,t=void 0),n=n||{},!t&&!n.transport)throw Error("URL or transport must be specified");n=Object.assign({},ig,n);let{protocol:e,websocketImplementation:r,websocketFormat:v,websocketOptions:p,websocketAuthStrategy:g,fallbacks:w,logLevel:h,logger:d,transport:a,encoder:l,lazy:u,monitor:c,pingInterval:i,reconnectStrategy:s,maxMissingPings:f,maxReconnectAttempts:b,subprotocol:x,tokenRefresher:O,historyTimestamp:T,protocolOptions:_,concurrentSubscribes:C,performFailures:L,transportConfigurator:F,auth:E}=n;if(d=d||new Ra(h),typeof e=="string"){x=x||e;let P=e.substring(0,e.lastIndexOf("-")),N=e.substring(e.lastIndexOf("-")+1);if(_=_||{},P==="actioncable-v1")e=new Qp({logger:d,..._});else if(P==="actioncable-v1-ext")e=new iC({logger:d,historyTimestamp:T,..._});else throw Error(`Protocol is not supported yet: ${e}`);if(N==="json")l=l||new nC,v=v||"text";else if(N==="msgpack"){if(v="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(N==="protobuf"){if(v=v||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");a=a||new uC(t,{websocketImplementation:r,websocketOptions:p,subprotocol:x,authStrategy:g,format:v}),w&&(a=new cC([a,...w],{logger:d})),E&&E.token&&a.setToken(E.token,E.param||"jid"),s=s||ng(i),c!==!1&&(c=c||new rg({pingInterval:i,reconnectStrategy:s,maxMissingPings:f,maxReconnectAttempts:b,logger:d}));let I={concurrentSubscribes:C},z=new aC({protocol:e,transport:a,encoder:l,logger:d,lazy:u,hubOptions:I,performFailures:L,transportConfigurator:F});return c&&(c.watch(z),z.monitor=c),O&&mC(z,async()=>{try{await O(a)}catch(P){return d.error("Failed to refresh authentication token: "+P),!1}return z.connect().catch(()=>{}),!0}),z}function mC(t,n){let e=!1;t.on("connect",()=>e=!1),t.on("close",async r=>{if(r){if(e){t.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await n())}})}class vC extends Zp{writeLogEntry(n,e,r){r?console[n](e,r):console[n](e)}}class yC extends rg{watch(n){super.watch(n),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let n=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=v=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:v})},r=()=>this.disconnect(new Vi("page_frozen"));document.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",n,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(n){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:n.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(n))}}const bC=["cable","action-cable"],wC="/cable",Dl=(t,n)=>{for(let e of bC){let r=t.head.querySelector(`meta[name='${e}-${n}']`);if(r)return r.getAttribute("content")}},og=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,xC=()=>{if(typeof document<"u"&&document.head){let t=Dl(document,"url");if(t)return og(t)}return og(wC)},CC=()=>{if(typeof document<"u"&&document.head){let t=Dl(document,"history-timestamp");if(t)return t|0}},kC=()=>{if(typeof document<"u"&&document.head)return Dl(document,"token")},AC=()=>{if(typeof document<"u"&&document.head)return Dl(document,"token-param")};function _C(t,n){typeof t=="object"&&typeof n>"u"&&(n=t,t=void 0),t=t||xC(),n=n||{},n.historyTimestamp||=CC();let e=kC();if(e){let d=AC();n.auth=Object.assign({token:e,param:d},n.auth||{})}n=Object.assign({},ig,n);let{logLevel:r,logger:v,pingInterval:p,reconnectStrategy:g,maxMissingPings:w,maxReconnectAttempts:h}=n;return v=n.logger=n.logger||new vC(r),g=n.reconnectStrategy=n.reconnectStrategy||ng(p),n.monitor!==!1&&(n.monitor=n.monitor||new yC({pingInterval:p,reconnectStrategy:g,maxMissingPings:w,maxReconnectAttempts:h,logger:v})),gC(t,n)}function SC(t,n){let e=_C(t,n);return new pC(e)}class $C{constructor(n="/openc3-api/cable",e="/openc3-api/auth/otp"){this._cable=null,this._url=n,this._otpUrl=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(n,e,r={},v={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>(p&&OpenC3Auth.setTokens(),G1.get(this._otpUrl,{params:{scope:e}}))).then(({data:p})=>{if(this._cable==null){const g=new URL(this._url,document.baseURI);g.searchParams.set("scope",e),g.searchParams.set("authorization",p),this._cable=SC(g.href)}return this._cable.subscriptions.create({channel:n,...v},r)})}recordPing(){}}Mn("B",$C);class TC{constructor(n,e,r="",v=""){this.keyword=n.keyword,this.parameters=n.parameters,this.filename=n.filename,this.line=n.line,this.lineNumber=n.lineNumber,this.message=e,this.usage=r,this.url=v}}Mn("b",TC);function Oa(t){return MC.test(t)}const MC=/^-?[0-9]+$/;function sg(t){return IC.test(t)}const IC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function ag(t,n){if(Oa(t))return Number.isSafeInteger(Number.parseInt(t,10));const e=Number.parseFloat(t),r=String(e);if(t===r)return!0;const v=lg(t),p=lg(r);return!!(v===p||n?.approx===!0&&!Oa(t)&&p.length>=14&&v.startsWith(p.substring(0,14)))}let Na=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function EC(t){if(ag(t,{approx:!1}))return;if(Oa(t))return Na.truncate_integer;const n=Number.parseFloat(t);return Number.isFinite(n)?n===0?Na.underflow:Na.truncate_float:Na.overflow}function lg(t){const{start:n,end:e}=LC(t),r=t.substring(n,e),v=r.indexOf(".");return v===-1?r:r.substring(0,v)+r.substring(v+1)}function LC(t){let n=0;for(t[0]==="-"&&n++;t[n]==="0"||t[n]===".";)n++;let e=t.lastIndexOf("e");for(e===-1&&(e=t.lastIndexOf("E")),e===-1&&(e=t.length);(t[e-1]==="0"||t[e-1]===".")&&e>n;)e--;return{start:n,end:e}}class RC{isLosslessNumber=!0;constructor(n){if(!sg(n))throw new Error(`Invalid number (value: "${n}")`);this.value=n}valueOf(){const n=EC(this.value);if(n===void 0||n===Na.truncate_float)return Number.parseFloat(this.value);if(Oa(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${n} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function OC(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function NC(t){return new RC(t)}function DC(t,n){return $u({"":t},"",t,n)}function $u(t,n,e,r){return Array.isArray(e)?r.call(t,n,PC(e,r)):e&&typeof e=="object"&&!OC(e)?r.call(t,n,FC(e,r)):r.call(t,n,e)}function FC(t,n){for(const e of Object.keys(t)){const r=$u(t,e,t[e],n);r!==void 0?t[e]=r:delete t[e]}return t}function PC(t,n){for(let e=0;e<t.length;e++)t[e]=$u(t,String(e),t[e],n);return t}function WC(t,n,e){const r=typeof e=="function"?{parseNumber:e}:e,v=r?.parseNumber??NC,p=r?.onDuplicateKey??L;let g=0;const w=a();return b(w),O(),n?DC(w,n):w;function h(){if(t.charCodeAt(g)===VC){g++,u();const B={};let U=!0;for(;g<t.length&&t.charCodeAt(g)!==ug;){U?U=!1:(s(),u());const q=g,Q=c();if(Q===void 0){C();return}u(),f();const J=a();if(J===void 0){P();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Tu(J,B[Q])){const he=p({key:Q,position:q+1,oldValue:B[Q],newValue:J});he!==void 0&&(B[Q]=he)}else B[Q]=J}return t.charCodeAt(g)!==ug&&F(),g++,B}}function d(){if(t.charCodeAt(g)===KC){g++,u();const B=[];let U=!0;for(;g<t.length&&t.charCodeAt(g)!==hg;){U?U=!1:s();const q=a();x(q),B.push(q)}return t.charCodeAt(g)!==hg&&E(),g++,B}}function a(){u();const B=c()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return u(),B}function l(B,U){if(t.slice(g,g+B.length)===B)return g+=B.length,U}function u(){for(;BC(t.charCodeAt(g));)g++}function c(){if(t.charCodeAt(g)===Mu){g++;let B="";for(;g<t.length&&t.charCodeAt(g)!==Mu;){if(t.charCodeAt(g)===UC){const U=t[g+1],q=HC[U];q!==void 0?(B+=q,g++):U==="u"?Fl(t.charCodeAt(g+2))&&Fl(t.charCodeAt(g+3))&&Fl(t.charCodeAt(g+4))&&Fl(t.charCodeAt(g+5))?(B+=String.fromCharCode(Number.parseInt(t.slice(g+2,g+6),16)),g+=5):N(g):z(g)}else jC(t.charCodeAt(g))?B+=t[g]:I(t[g]);g++}return _(),g++,B}}function i(){const B=g;if(t.charCodeAt(g)===dg&&(g++,T(B)),t.charCodeAt(g)===Iu)g++;else if(zC(t.charCodeAt(g)))for(g++;Pl(t.charCodeAt(g));)g++;if(t.charCodeAt(g)===ek)for(g++,T(B);Pl(t.charCodeAt(g));)g++;if(t.charCodeAt(g)===ok||t.charCodeAt(g)===ik)for(g++,(t.charCodeAt(g)===dg||t.charCodeAt(g)===ZC)&&g++,T(B);Pl(t.charCodeAt(g));)g++;if(g>B)return v(t.slice(B,g))}function s(){if(t.charCodeAt(g)!==JC)throw new SyntaxError(`Comma ',' expected after value ${R()}`);g++}function f(){if(t.charCodeAt(g)!==tk)throw new SyntaxError(`Colon ':' expected after property name ${R()}`);g++}function b(B){if(B===void 0)throw new SyntaxError(`JSON value expected ${R()}`)}function x(B){if(B===void 0)throw new SyntaxError(`Array item expected ${R()}`)}function O(){if(g<t.length)throw new SyntaxError(`Expected end of input ${R()}`)}function T(B){if(!Pl(t.charCodeAt(g))){const U=t.slice(B,g);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${R()}`)}}function _(){if(t.charCodeAt(g)!==Mu)throw new SyntaxError(`End of string '"' expected ${R()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${R()}`)}function L(B){let{key:U,position:q}=B;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${q}`)}function F(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${R()}`)}function E(){throw new SyntaxError(`Array item or end of array ']' expected ${R()}`)}function I(B){throw new SyntaxError(`Invalid character '${B}' ${S()}`)}function z(B){const U=t.slice(B,B+2);throw new SyntaxError(`Invalid escape character '${U}' ${S()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${S()}`)}function N(B){const U=t.slice(B,B+6);throw new SyntaxError(`Invalid unicode character '${U}' ${S()}`)}function S(){return`at position ${g}`}function k(){return g<t.length?`but got '${t[g]}'`:"but reached end of input"}function R(){return`${k()} ${S()}`}}function BC(t){return t===qC||t===GC||t===YC||t===XC}function Fl(t){return t>=Iu&&t<=Eu||t>=nk&&t<=sk||t>=rk&&t<=ak}function Pl(t){return t>=Iu&&t<=Eu}function zC(t){return t>=QC&&t<=Eu}function jC(t){return t>=32&&t<=1114111}function Tu(t,n){return t===n?!0:Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((e,r)=>Tu(e,n[r])):cg(t)&&cg(n)?[...new Set([...Object.keys(t),...Object.keys(n)])].every(e=>Tu(t[e],n[e])):!1}function cg(t){return typeof t=="object"&&t!==null}const HC={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1392
|
-
`,r:"\r",t:" "},UC=92,VC=123,ug=125,KC=91,hg=93,qC=32,GC=10,YC=9,XC=13,Mu=34,ZC=43,dg=45,Iu=48,QC=49,Eu=57,JC=44,ek=46,tk=58,nk=65,rk=97,ik=69,ok=101,sk=70,ak=102;function fg(t,n,e,r){return v(t);function v(h,d){if(Array.isArray(r)){const a=r.find(l=>l.test(h));if(a){const l=a.stringify(h);if(typeof l!="string"||!sg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h?.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return p(h);if(h&&typeof h=="object")return g(h)}function p(h,d){if(h.length===0)return"[]";let a="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?a+=v(u):a+="null",l<h.length-1&&(a+=",")}return a+="]",a}function g(h,d){if(typeof h.toJSON=="function")return fg(h.toJSON(),n,e,void 0);const a=Array.isArray(n)?n.map(String):Object.keys(h);if(a.length===0)return"{}";let l=!0,u="{";for(const c of a){const i=h[c];if(w(c,i)){l?l=!1:u+=",";const s=JSON.stringify(c);u+=`${s}:`,u+=v(i)}}return u+="}",u}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function lk(t){return Oa(t)&&!ag(t)?BigInt(t):parseFloat(t)}class gs{id=1;constructor(){}async exec(n,e,r={},v={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,v.manual=!0,(await Au.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...v},timeout:p,transformRequest:[(g,w)=>fg(g)],transformResponse:[g=>{try{return WC(g,void 0,lk)}catch{const w=typeof g=="string"?g.substring(0,200):String(g),h=new Error(`Server returned non-JSON response: ${w}`);throw h.name="ServerError",h}}]})).data.result}catch(g){let w=new Error;throw g.response?(w.name=g.response.data.error.data.class,w.message=g.response.data.error.data.message,w.object=g.response.data.error):g.request?(w.name="Request error",w.message="Request error, no response received"):w=g,w}}decode_openc3_type(n){if(n!==null&&typeof n=="object"&&n.json_class=="Float"&&n.raw){if(n.raw=="NaN")return NaN;if(n.raw=="Infinity")return 1/0;if(n.raw=="-Infinity")return-1/0}return null}encode_openc3_type(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(n=>{n&&(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(n){return this.exec("set_offline_access",[n])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(n,e,r,v,p){return this.exec("map_target_to_interface",[n,e],{cmd_only:r,tlm_only:v,unmap_old:p})}unmap_target_from_interface(n,e,r,v){return this.exec("unmap_target_from_interface",[n,e],{cmd_only:r,tlm_only:v})}connect_interface(n,...e){return e.length>0?this.exec("connect_interface",[n,...e]):this.exec("connect_interface",[n])}disconnect_interface(n){return this.exec("disconnect_interface",[n])}interface_cmd(n,e,...r){return this.exec("interface_cmd",[n,e,...r])}interface_target_enable(n,e,r=!1,v=!1){return this.exec("interface_target_enable",[n,e],{cmd_only:r,tlm_only:v})}interface_target_disable(n,e,r=!1,v=!1){return this.exec("interface_target_disable",[n,e],{cmd_only:r,tlm_only:v})}interface_details(n){return this.exec("interface_details",[n])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(n,e,r,v,p){return this.exec("map_target_to_router",[n,e],{cmd_only:r,tlm_only:v,unmap_old:p})}unmap_target_from_router(n,e,r,v){return this.exec("unmap_target_from_router",[n,e],{cmd_only:r,tlm_only:v})}connect_router(n){return this.exec("connect_router",[n])}disconnect_router(n){return this.exec("disconnect_router",[n])}router_target_enable(n,e,r=!1,v=!1){return this.exec("router_target_enable",[n,e],{cmd_only:r,tlm_only:v})}router_target_disable(n,e,r=!1,v=!1){return this.exec("router_target_disable",[n,e],{cmd_only:r,tlm_only:v})}router_details(n){return this.exec("router_details",[n])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(n){return this.exec("get_tlm_cnts",[n])}get_item(n,e,r){return this.exec("get_item",[n,e,r])}get_param(n,e,r){return this.exec("get_param",[n,e,r])}get_parameter(n,e,r){return this.exec("get_param",[n,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(n){return this.exec("set_limits_set",[n])}get_target(n){return this.exec("get_target",[n])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(n,e){return this.exec("get_tlm",[n,e])}get_telemetry(n,e){return this.exec("get_tlm",[n,e])}get_all_tlm(n){return this.exec("get_all_tlm",[n])}get_all_telemetry(n){return this.exec("get_all_tlm",[n])}get_all_tlm_names(n,e=!1){return this.exec("get_all_tlm_names",[n],{hidden:e})}get_all_telemetry_names(n){return this.exec("get_all_tlm_names",[n])}get_all_tlm_item_names(n){return this.exec("get_all_tlm_item_names",[n])}async get_tlm_packet(n,e,r,v=30){const p=await this.exec("get_tlm_packet",[n,e],{type:r,stale_time:v});if(p!=null){let g=p.length,w=null;for(let h=0;h<g;h++)w=this.decode_openc3_type(p[h][1]),w!==null&&(p[h][1]=w)}return p}get_packet_derived_items(n,e){return this.exec("get_packet_derived_items",[n,e])}get_tlm_buffer(n,e){return this.exec("get_tlm_buffer",[n,e])}get_tlm_available(n){return this.exec("get_tlm_available",[n])}async get_tlm_values(n,e=30,r=null,v=null,p=null){let g={stale_time:e};r!==null&&(g.cache_timeout=r),v!==null&&(g.start_time=v.toISOString()),p!==null&&(g.end_time=p.toISOString());const w=await this.exec("get_tlm_values",[n],g,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let a=0;a<h;a++)d=this.decode_openc3_type(w[a][0]),d!==null&&(w[a][0]=d)}return w}get_limits(n,e,r){return this.exec("get_limits",[n,e,r])}async tlm(n,e,r,v="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[n]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(e))p=await this.exec("tlm",[n],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED or FORMATTED.`,w}else p=await this.exec("tlm",[n,e,r],{type:v});let g=this.decode_openc3_type(p);return g!==null&&(p=g),p}async inject_tlm(n,e,r=null,v="CONVERTED"){await this.exec("inject_tlm",[n,e,r],{type:v})}set_tlm(n,e,r,v){return this.exec("set_tlm",[n,e,r],{type:v})}override_tlm(n,e,r,v){return this.exec("override_tlm",[n,e,r],{type:v})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(n,e,r,v){return this.exec("normalize_tlm",[n,e,r],{type:v})}get_all_cmds(n){return this.exec("get_all_cmds",[n])}get_all_commands(n){return this.exec("get_all_cmds",[n])}get_all_cmd_names(n,e=!1){return this.exec("get_all_cmd_names",[n],{hidden:e})}get_all_command_names(n){return this.exec("get_all_cmd_names",[n])}get_cmd(n,e){return this.exec("get_cmd",[n,e])}get_command(n,e){return this.exec("get_cmd",[n,e])}get_cmd_cnts(n){return this.exec("get_cmd_cnts",[n])}get_cmd_value(n,e,r,v="CONVERTED"){return this.exec("get_cmd_value",[n,e,r,v])}get_cmd_buffer(n,e){return this.exec("get_cmd_buffer",[n,e])}_cmd(n,e,r,v,p,g={}){let w=null;for(let h in v)Object.prototype.hasOwnProperty.call(v,h)&&(w=this.encode_openc3_type(v[h]),w!==null&&(v[h]=w));return this.exec(n,[e,r,v],g,p)}get_cmd_hazardous(n,e,r,v={}){return e===void 0?this.exec("get_cmd_hazardous",n,{},v):this._cmd("get_cmd_hazardous",n,e,r,v)}cmd(n,e,r,v={},p={}){return e===void 0?this.exec("cmd",n,p,v):this._cmd("cmd",n,e,r,v,p)}cmd_no_range_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_no_range_check",n,p,v):this._cmd("cmd_no_range_check",n,e,r,v,p)}cmd_raw(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw",n,p,v):this._cmd("cmd_raw",n,e,r,v,p)}cmd_raw_no_range_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw_no_range_check",n,p,v):this._cmd("cmd_raw_no_range_check",n,e,r,v,p)}cmd_no_hazardous_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_no_hazardous_check",n,p,v):this._cmd("cmd_no_hazardous_check",n,e,r,v,p)}cmd_no_checks(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_no_checks",n,p,v):this._cmd("cmd_no_checks",n,e,r,v,p)}cmd_raw_no_hazardous_check(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",n,p,v):this._cmd("cmd_raw_no_hazardous_check",n,e,r,v,p)}cmd_raw_no_checks(n,e,r,v={},p={}){return e===void 0?this.exec("cmd_raw_no_checks",n,p,v):this._cmd("cmd_raw_no_checks",n,e,r,v,p)}build_cmd(n,e,r,v={},p={}){return e===void 0?this.exec("build_cmd",n,p,v):this._cmd("build_cmd",n,e,r,v,p)}build_command(n,e,r,v={},p={}){return e===void 0?this.exec("build_cmd",n,p,v):this._cmd("build_cmd",n,e,r,v,p)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(n,e){return this.exec("send_raw",[n,e])}list_configs(n){return this.exec("list_configs",[n])}load_config(n,e){return this.exec("load_config",[n,e])}save_config(n,e,r){return this.exec("save_config",[n,e,r])}delete_config(n,e){return this.exec("delete_config",[n,e])}enable_limits(n,e,r){return this.exec("enable_limits",[n,e,r])}disable_limits(n,e,r){return this.exec("disable_limits",[n,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(n){return this.exec("get_overall_limits_state",[n])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(n,e){return this.exec("get_setting",[n],e)}get_settings(n,e){return this.exec("get_settings",n,e)}set_setting(n,e){return this.exec("set_setting",[n,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(n,e){return this.exec("set_setting",[n,e])}get_metrics(){return this.exec("get_metrics",[])}open_tab(n){window.open(n,"_blank")}async hashString(n){if(window.isSecureContext){const e=new TextEncoder().encode(n),r=await crypto.subtle.digest("SHA-256",e),v=new Uint8Array(r);return Array.from(v).map(p=>p.toString(16).padStart(2,"0")).join("")}}}Mn("H",gs);var pg={exports:{}},gg;function ck(){return gg||(gg=1,(function(t,n){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,v){function p(d,a){function l(E,I,z){if(!(E.length<I)){var P=E.slice(0,I),N=E.slice(I),S=/^(?:(\s+)|(\S+)(\s+))/.exec(N),k=/(?:(\s+)|(\s+)(\S+))$/.exec(P),R=0,B=0;if(k&&!k[2]&&(R=I-k[1].length,B=I),S&&!S[2]&&(R||(R=I),B=I+S[1].length),R)return{start:R,end:B};if(k&&k[2]&&k.index>z)return{start:k.index,end:k.index+k[2].length};if(S&&S[2])return R=I+S[2].length,{start:R,end:R+S[3].length}}}for(var u=a.column||d.getOption("printMarginColumn"),c=a.allowMerge!=0,i=Math.min(a.startRow,a.endRow),s=Math.max(a.startRow,a.endRow),f=d.session;i<=s;){var b=f.getLine(i);if(b.length>u){var x=l(b,u,5);if(x){var O=/^\s*/.exec(b)[0];f.replace(new w(i,x.start,i,x.end),`
|
|
1393
|
-
`+O)}s++}else if(c&&/\S/.test(b)&&i!=s){var T=f.getLine(i+1);if(T&&/\S/.test(T)){var _=b.replace(/\s+$/,""),C=T.replace(/^\s+/,""),L=_+" "+C,x=l(L,u,5);if(x&&x.start>_.length||L.length<u){var F=new w(i,_.length,i+1,T.length-C.length);f.replace(F," "),i--,s--}else _.length<b.length&&f.remove(new w(i,_.length,i,b.length))}}i++}}function g(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var a=d.editor,l=a.selection.cursor;if(l.column<=a.renderer.$printMarginColumn)return;var u=a.session.$undoManager.$lastDelta;p(a,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=a.session.$undoManager.$lastDelta&&a.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",g):this.commands.off("afterExec",g)},value:!1}}),r.hardWrap=p}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,v){function p(y){return{row:y.line,column:y.ch}}function g(y){return new Ne(y.row,y.column)}function w(y,$,A){if($.line===A.line&&$.ch>=A.ch-1){var D=y.getLine($.line),W=D.charCodeAt($.ch);55296<=W&&W<=55551&&(A.ch+=1)}return{start:$,end:A}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),We.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",qo),L(y),We.on(y.getInputField(),"paste",a(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",qo),We.off(y.getInputField(),"paste",a(y)),y.state.vim=null,mr&&clearTimeout(mr)}function a(y){var $=y.state.vim;return $.onPasteFn||($.onPasteFn=function(){$.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Bn.enterInsertMode(y,{},$))}),$.onPasteFn}function l(y,$){return $>=y.firstLine()&&$<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return fa.test(y)}function s(y){return tn.test(y)}function f(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,$){for(var A=0;A<$.length;A++)if($[A]==y)return!0;return!1}function O(y,$,A,D,W){if($===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(A||(A="string"),Ht[y]={type:A,defaultValue:$,callback:W},D)for(var j=0;j<D.length;j++)Ht[D[j]]=Ht[y];$&&T(y,$)}function T(y,$,A,D){var W=Ht[y];D=D||{};var j=D.scope;if(!W)return new Error("Unknown option: "+y);if(W.type=="boolean"){if($&&$!==!0)return new Error("Invalid argument: "+y+"="+$);$!==!1&&($=!0)}W.callback?(j!=="local"&&W.callback($,void 0),j!=="global"&&A&&W.callback($,A)):(j!=="local"&&(W.value=W.type=="boolean"?!!$:$),j!=="global"&&A&&(A.state.vim.options[y]={value:$}))}function _(y,$,A){var D=Ht[y];A=A||{};var W=A.scope;if(!D)return new Error("Unknown option: "+y);if(D.callback){var j=$&&D.callback(void 0,$);return W!=="global"&&j!==void 0?j:W!=="local"?D.callback():void 0}var j=W!=="global"&&$&&$.state.vim.options[y];return(j||W!=="local"&&D||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Pn()}function L(y){return y.state.vim||(y.state.vim={inputState:new S,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),y.state.vim}function F(){je={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Ni(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new q({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in Ht){var $=Ht[y];$.value=$.defaultValue}}function E(y){function $(Y){typeof Y=="string"?kn.value=Y:kn=null}if(y[0]=="<"){var A=y.toLowerCase().slice(1,-1),D=A.split("-");if(A=D.pop()||"",A=="lt")y="<";else if(A=="space")y=" ";else if(A=="cr")y=`
|
|
1394
|
-
`;else if(Di[A]){var W=kn.value,j={key:Di[A],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};kn.onKeyDown&&kn.onKeyDown(j,kn.value,$),kn&&kn.onKeyUp&&kn.onKeyUp(j,kn.value,$);return}}if(y==`
|
|
1395
|
-
`){var K=kn;kn=null,K.onClose&&K.onClose(K.value)}else kn.value=(kn.value||"")+y}function I(y,$,A){var D=cn;if(A){if(Ur.indexOf(A)!=-1)return;Ur.push(A),cn=A.noremap!=0}try{for(var W=L(y),j=/<(?:[CSMA]-)*\w+>|./gi,K;K=j.exec($);){var Y=K[0],Z=W.insertMode;if(kn){E(Y);continue}var re=yt.handleKey(y,Y,"mapping");if(!re&&Z&&W.insertMode){if(Y[0]=="<"){var le=Y.toLowerCase().slice(1,-1),be=le.split("-");if(le=be.pop()||"",le=="lt")Y="<";else if(le=="space")Y=" ";else if(le=="cr")Y=`
|
|
1396
|
-
`;else{if(Di.hasOwnProperty(le)){Y=Di[le],Yo(y,Y);continue}Y=Y[0],j.lastIndex=K.index+1}}y.replaceSelection(Y)}}}finally{if(Ur.pop(),cn=Ur.length?D:!1,!Ur.length&&kn){var ke=kn;kn=null,dr(y,ke)}}}function z(y,$){var A=y.key;if(!Vr[A]){A.length>1&&A[0]=="n"&&(A=A.replace("Numpad","")),A=Xn[A]||A;var D="";if(y.ctrlKey&&(D+="C-"),y.altKey&&(D+="A-"),y.metaKey&&(D+="M-"),We.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(D=D.slice(2)),(D||A.length>1)&&y.shiftKey&&(D+="S-"),$&&!$.expectLiteralNext&&A.length==1){if(Vn.keymap&&A in Vn.keymap)(Vn.remapCtrl!=0||!D)&&(A=Vn.keymap[A]);else if(A.charCodeAt(0)>255){var W=y.code&&y.code.slice(-1)||"";y.shiftKey||(W=W.toLowerCase()),W&&(A=W)}}return D+=A,D.length>1&&(D="<"+D+">"),D}}function P(y,$){Vn.string!==y&&(Vn=N(y)),Vn.remapCtrl=$}function N(y){function $(D){return D.split(/\\?(.)/).filter(Boolean)}var A={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(D){if(D){var W=D.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var j=$(W[1]),K=$(W[2]);if(j.length!==K.length)return;for(var Y=0;Y<j.length;++Y)A[j[Y]]=K[Y]}else if(W.length==1){var Z=$(D);if(Z.length%2!==0)return;for(var Y=0;Y<Z.length;Y+=2)A[Z[Y]]=Z[Y+1]}}}),{keymap:A,string:y}):{keymap:A,string:""}}function S(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function k(y,$){y.state.vim.inputState=new S,y.state.vim.expectLiteralNext=!1,We.signal(y,"vim-command-done",$)}function R(){this.removed=[],this.inserted=""}function B(y,$,A){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!$,this.blockwise=!!A}function U(y,$){var A=je.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");A[y]=$,en.push(y)}function q(y){this.registers=y,this.unnamedRegister=y['"']=new B,y["."]=new B,y[":"]=new B,y["/"]=new B,y["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function J(y,$){ci[y]=$}function he(y,$){for(var A=[],D=0;D<$;D++)A.push(y);return A}function ne(y,$){Jo[y]=$}function ce(y,$){Bn[y]=$}function se(y,$,A){var D=y.state.vim,W=D.insertMode||D.visualMode,j=Math.min(Math.max(y.firstLine(),$.line),y.lastLine()),K=y.getLine(j),Y=K.length-1+ +!!W,Z=Math.min(Math.max(0,$.ch),Y),re=K.charCodeAt(Z);if(56320<=re&&re<=57343){var le=1;A&&A.line==j&&A.ch>Z&&(le=-1),Z+=le,Z>Y&&(Z-=2)}return new Ne(j,Z)}function de(y){var $={};for(var A in y)y.hasOwnProperty(A)&&($[A]=y[A]);return $}function me(y,$,A){return typeof $=="object"&&(A=$.ch,$=$.line),new Ne(y.line+$,y.ch+A)}function Se(y,$,A,D){D.operator&&(A="operatorPending");for(var W,j=[],K=[],Y=cn?$.length-So:0,Z=Y;Z<$.length;Z++){var re=$[Z];A=="insert"&&re.context!="insert"||re.context&&re.context!=A||D.operator&&re.type=="action"||!(W=Te(y,re.keys))||(W=="partial"&&j.push(re),W=="full"&&K.push(re))}return{partial:j.length&&j,full:K.length&&K}}function Te(y,$){var A=$.slice(-11)=="<character>",D=$.slice(-10)=="<register>";if(A||D){var W=$.length-(A?11:10),j=y.slice(0,W),K=$.slice(0,W);return j==K&&y.length>W?"full":K.indexOf(j)==0?"partial":!1}return y==$?"full":$.indexOf(y)==0?"partial":!1}function Me(y){var $=/^.*(<[^>]+>)$/.exec(y),A=$?$[1]:y.slice(-1);if(A.length>1)switch(A){case"<CR>":A=`
|
|
1397
|
-
`;break;case"<Space>":A=" ";break;default:A=""}return A}function Xe(y,$,A){return function(){for(var D=0;D<A;D++)$(y)}}function qe(y){return new Ne(y.line,y.ch)}function st(y,$){return y.ch==$.ch&&y.line==$.line}function Je(y,$){return y.line<$.line?!0:y.line==$.line&&y.ch<$.ch}function at(y,$){return arguments.length>2&&($=at.apply(void 0,Array.prototype.slice.call(arguments,1))),Je(y,$)?y:$}function Yt(y,$){return arguments.length>2&&($=Yt.apply(void 0,Array.prototype.slice.call(arguments,1))),Je(y,$)?$:y}function bn(y,$,A){var D=Je(y,$),W=Je($,A);return D&&W}function Pt(y,$){return y.getLine($).length}function cr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function ln(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function En(y,$,A){var D=Pt(y,$),W=new Array(A-D+1).join(" ");y.setCursor(new Ne($,D)),y.replaceRange(W,y.getCursor())}function Un(y,$){var A=[],D=y.listSelections(),W=qe(y.clipPos($)),j=!st($,W),K=y.getCursor("head"),Y=gt(D,K),Z=st(D[Y].head,D[Y].anchor),re=D.length-1,le=re-Y>Y?re:0,be=D[le].anchor,ke=Math.min(be.line,W.line),ve=Math.max(be.line,W.line),we=be.ch,Oe=W.ch,Re=D[le].head.ch-we,Ve=Oe-we;Re>0&&Ve<=0?(we++,j||Oe--):Re<0&&Ve>=0?(we--,Z||Oe++):Re<0&&Ve==-1&&(we--,Oe++);for(var ot=ke;ot<=ve;ot++){var Ze={anchor:new Ne(ot,we),head:new Ne(ot,Oe)};A.push(Ze)}return y.setSelections(A),$.ch=Oe,be.ch=we,be}function wr(y,$,A){for(var D=[],W=0;W<A;W++){var j=me($,W,0);D.push({anchor:j,head:j})}y.setSelections(D,0)}function gt(y,$,A){for(var D=0;D<y.length;D++){var W=st(y[D].anchor,$),j=st(y[D].head,$);if(W||j)return D}return-1}function He(y,$){var A=$.lastSelection,D=function(){var j=y.listSelections(),K=j[0],Y=j[j.length-1],Z=Je(K.anchor,K.head)?K.anchor:K.head,re=Je(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var j=y.getCursor(),K=y.getCursor(),Y=A.visualBlock;if(Y){var Z=Y.width,re=Y.height;K=new Ne(j.line+re,j.ch+Z);for(var le=[],be=j.line;be<K.line;be++){var ke=new Ne(be,j.ch),ve=new Ne(be,K.ch),we={anchor:ke,head:ve};le.push(we)}y.setSelections(le)}else{var Oe=A.anchorMark.find(),Re=A.headMark.find(),Ve=Re.line-Oe.line,ot=Re.ch-Oe.ch;K={line:K.line+Ve,ch:Ve?K.ch:ot+K.ch},A.visualLine&&(j=new Ne(j.line,0),K=new Ne(K.line,Pt(y,K.line))),y.setSelection(j,K)}return[j,K]};return $.visualMode?D():W()}function Lt(y,$){var A=$.sel.anchor,D=$.sel.head;$.lastPastedText&&(D=y.posFromIndex(y.indexFromPos(A)+$.lastPastedText.length),$.lastPastedText=null),$.lastSelection={anchorMark:y.setBookmark(A),headMark:y.setBookmark(D),anchor:qe(A),head:qe(D),visualMode:$.visualMode,visualLine:$.visualLine,visualBlock:$.visualBlock}}function zt(y,$,A,D){var W=y.state.vim.sel,j=D?$:W.head,K=D?$:W.anchor,Y;return Je(A,$)&&(Y=A,A=$,$=Y),Je(j,K)?(j=at($,j),K=Yt(K,A)):(K=at($,K),j=Yt(j,A),j=me(j,0,-1),j.ch==-1&&j.line!=y.firstLine()&&(j=new Ne(j.line-1,Pt(y,j.line-1)))),[K,j]}function An(y,$,W){var D=y.state.vim;$=$||D.sel;var W=W||D.visualLine?"line":D.visualBlock?"block":"char",j=ur(y,$,W);y.setSelections(j.ranges,j.primary)}function ur(y,$,A,D){var W=qe($.head),j=qe($.anchor);if(A=="char"){var K=!D&&!Je($.head,$.anchor)?1:0,Y=Je($.head,$.anchor)?1:0;return W=me($.head,0,K),j=me($.anchor,0,Y),{ranges:[{anchor:j,head:W}],primary:0}}if(A=="line"){if(Je($.head,$.anchor))W.ch=0,j.ch=Pt(y,j.line);else{j.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Pt(y,W.line)}return{ranges:[{anchor:j,head:W}],primary:0}}if(A=="block"){var re=Math.min(j.line,W.line),le=j.ch,be=Math.max(j.line,W.line),ke=W.ch;le<ke?ke+=1:le+=1;for(var ve=be-re+1,we=W.line==re?0:ve-1,Oe=[],Re=0;Re<ve;Re++)Oe.push({anchor:new Ne(re+Re,le),head:new Ne(re+Re,ke)});return{ranges:Oe,primary:we}}}function nr(y){var $=y.getCursor("head");return y.getSelection().length==1&&($=at($,y.getCursor("anchor"))),$}function fn(y,$){var A=y.state.vim;$!==!1&&y.setCursor(se(y,A.sel.head)),Lt(y,A),A.visualMode=!1,A.visualLine=!1,A.visualBlock=!1,A.insertMode||We.signal(y,"vim-mode-change",{mode:"normal"})}function Nn(y,$,A){var D=y.getRange($,A);if(/\n\s*$/.test(D)){var W=D.split(`
|
|
1398
|
-
`);W.pop();for(var j,j=W.pop();W.length>0&&j&&f(j);j=W.pop())A.line--,A.ch=0;j?(A.line--,A.ch=Pt(y,A.line)):A.ch=0}}function Ln(y,$,A){$.ch=0,A.ch=0,A.line++}function qt(y){if(!y)return 0;var $=y.search(/\S/);return $==-1?y.length:$}function an(y,$,A){var D=$.inclusive,W=$.innerWord,j=$.bigWord,K=$.noSymbol,Y=$.multiline,Z=A||nr(y),re=y.getLine(Z.line),le=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=K?$o[0]:Oi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(vn){return/\s/.test(vn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ni(y,Z,!0,j,!0);break}j?Oe=Oi[0]:(Oe=$o[0],Oe(re.charAt(ve))||(Oe=$o[1]))}for(var Re=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Re=we.to,ke=we.line,le=y.getLine(ke),!le&&Re==0&&Re++;else for(;Oe(re.charAt(Re))&&Re<re.length;)Re++;if(D){var ot=Re,Ze=Z.ch<=Ve&&/\s/.test(re.charAt(Z.ch));if(!Ze)for(;/\s/.test(le.charAt(Re))&&Re<le.length;)Re++;if(ot==Re||Ze){for(var et=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=et)}}return{start:new Ne(be,Ve),end:new Ne(ke,Re)}}function Tr(y,$,A){var D=$;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:D,end:D};var W=We.findMatchingTag(y,$)||We.findEnclosingTag(y,$);return!W||!W.open||!W.close?{start:D,end:D}:A?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Br(y,$,A){st($,A)||je.jumpList.add(y,$,A)}function zr(y,$){je.lastCharacterSearch.increment=y,je.lastCharacterSearch.forward=$.forward,je.lastCharacterSearch.selectedCharacter=$.selectedCharacter}function yi(y,$,A,D){var W=qe(y.getCursor()),j=A?1:-1,K=A?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),le={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:D,reverseSymb:(A?{")":"(","}":"{"}:{"(":")","{":"}"})[D],forward:A,depth:0,curMoveThrough:!1},be=wi[D];if(!be)return W;var ke=xi[be].init,ve=xi[be].isComplete;for(ke&&ke(le);Z!==K&&$;){if(le.index+=j,le.nextCh=le.lineText.charAt(le.index),!le.nextCh){if(Z+=j,le.lineText=y.getLine(Z)||"",j>0)le.index=0;else{var we=le.lineText.length;le.index=we>0?we-1:0}le.nextCh=le.lineText.charAt(le.index)}ve(le)&&(W.line=Z,W.ch=le.index,$--)}return le.nextCh||le.curMoveThrough?new Ne(Z,le.index):W}function ni(y,$,A,D,W){var j=$.line,K=$.ch,Y=y.getLine(j),Z=A?1:-1,re=D?Oi:$o;if(W&&Y==""){if(j+=Z,Y=y.getLine(j),!l(y,j))return null;K=A?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:j};for(var le=Z>0?Y.length:-1,be=le,ke=le;K!=le;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(K))){for(be=K;K!=le&&re[we](Y.charAt(K));)K+=Z;if(ke=K,ve=be!=ke,be==$.ch&&j==$.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:j}}ve||(K+=Z)}if(j+=Z,!l(y,j))return null;Y=y.getLine(j),K=Z>0?0:Y.length}}function Dn(y,$,A,D,W,j){var K=qe($),Y=[];(D&&!W||!D&&W)&&A++;for(var Z=!D||!W,re=0;re<A;re++){var le=ni(y,$,D,j,Z);if(!le){var be=Pt(y,y.lastLine());Y.push(D?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(le),$=new Ne(le.line,D?le.to-1:le.from)}var ke=Y.length!=A,ve=Y[0],we=Y.pop();return D&&!W?(!ke&&(ve.from!=K.ch||ve.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.from)):D&&W?new Ne(we.line,we.to-1):!D&&W?(!ke&&(ve.to!=K.ch||ve.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function Xi(y,$,A,D,W){var j=$,K=new Ne(j.line+A.repeat-1,1/0),Y=y.clipPos(K);return Y.ch--,W||(D.lastHPos=1/0,D.lastHSPos=y.charCoords(Y,"div").left),K}function ri(y,$,A,D,W){for(var j=W||y.getCursor(),K=j.ch,Y,Z=0;Z<$;Z++){var re=y.getLine(j.line);if(Y=wn(K,re,D,A),Y==-1)return null;K=Y}return new Ne(y.getCursor().line,Y)}function _s(y,$){var A=y.getCursor().line;return se(y,new Ne(A,$-1))}function jr(y,$,A,D){!x(A,fo)&&!Qt.test(A)||($.marks[A]&&$.marks[A].clear(),$.marks[A]=y.setBookmark(D))}function wn(y,$,A,D,W){var j;return D?(j=$.indexOf(A,y+1),j!=-1):(j=$.lastIndexOf(A,y-1),j!=-1),j}function ii(y,$,A,D,W){function j(Ve){return!/\S/.test(y.getLine(Ve))}function K(Ve,ot,Ze){return Ze?j(Ve)!=j(Ve+ot):!j(Ve)&&j(Ve+ot)}function Y(Ve){D=D>0?1:-1;var ot=y.ace.session.getFoldLine(Ve);ot&&Ve+D>ot.start.row&&Ve+D<ot.end.row&&(D=(D>0?ot.end.row:ot.start.row)-Ve)}var Z=$.line,re=y.firstLine(),le=y.lastLine(),be,ke,ve=Z;if(D){for(;re<=ve&&ve<=le&&A>0;)Y(ve),K(ve,D)&&A--,ve+=D;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&K(Z,1,!0)){var Oe=we.sel.anchor;K(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Re=j(Z);for(ve=Z;ve<=le&&A;ve++)K(ve,1,!0)&&(!W||j(ve)!=Re)&&A--;for(ke=new Ne(ve,0),ve>le&&!Re?Re=!0:W=!1,ve=Z;ve>re&&!((!W||j(ve)==Re||ve==Z)&&K(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Ho(y,$,A,D,W){function j(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function K(re,le,be,ke){var ve=re.getLine(le),we={line:ve,ln:le,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(j(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(j(we);we.line!==null&&f(we.line[we.pos]);)Oe=we.pos,j(we);return{ln:we.ln,pos:Oe+1}}j(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,le,be,ke){var ve=re.getLine(le),we={line:ve,ln:le,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(j(we);we.line!==null;){if(!f(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?f(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};j(we)}return we.line=ve,W&&f(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:$.line,pos:$.ch};A>0;)D<0?Z=Y(y,Z.ln,Z.pos,D):Z=K(y,Z.ln,Z.pos,D),A--;return new Ne(Z.ln,Z.pos)}function oi(y,$,A,D){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function j(Z,re,le,be){var Re=Z.getLine(re),ke=Re==="",ve={line:Re,ln:re,pos:le,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!f(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||f(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Re=Z.getLine(we.ln);we.pos=0;for(var Ve=Re.length-1;Ve>=0;--Ve)if(!f(Re[Ve])){we.pos=Ve;break}return we}function K(Z,re,le,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:le,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!f(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Re=0;Re<Oe.length;++Re)if(!f(Oe[Re])){ve.pos=Re;break}return ve}for(var Y={ln:$.line,pos:$.ch};A>0;)D<0?Y=K(y,Y.ln,Y.pos,D):Y=j(y,Y.ln,Y.pos,D),A--;return new Ne(Y.ln,Y.pos)}function xn(y,$,A,D){var W=$,j,K,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[A],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[A],re=y.getLine(W.line).charAt(W.ch),le=re===Z?1:0;if(j=y.scanForBracket(new Ne(W.line,W.ch+le),-1,void 0,{bracketRegex:Y}),K=y.scanForBracket(new Ne(W.line,W.ch+le),1,void 0,{bracketRegex:Y}),!j||!K)return null;if(j=j.pos,K=K.pos,j.line==K.line&&j.ch>K.ch||j.line>K.line){var be=j;j=K,K=be}return D?K.ch+=1:j.ch+=1,{start:j,end:K}}function rr(y,$,A,D){var W=qe($),j=y.getLine(W.line),K=j.split(""),Y,Z,re,le,be=K.indexOf(A);if(W.ch<be)W.ch=be;else if(be<W.ch&&K[W.ch]==A){var ke=/string/.test(y.getTokenTypeAt(me($,0,1))),ve=/string/.test(y.getTokenTypeAt($)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(K[W.ch]==A&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)K[re]==A&&(Y=re+1);if(Y&&!Z)for(re=Y,le=K.length;re<le&&!Z;re++)K[re]==A&&(Z=re);return!Y||!Z?{start:W,end:W}:(D&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function si(){}function Cn(y){var $=y.state.vim;return $.searchState_||($.searchState_=new si)}function _n(y){return ai(y,"/")}function hr(y){return ao(y,"/")}function ai(y,$){var A=ao(y,$)||[];if(!A.length)return[];var D=[];if(A[0]===0){for(var W=0;W<A.length;W++)typeof A[W]=="number"&&D.push(y.substring(A[W]+1,A[W+1]));return D}}function ao(y,$){$||($="/");for(var A=!1,D=[],W=0;W<y.length;W++){var j=y.charAt(W);!A&&j==$&&D.push(W),A=!A&&j=="\\"}return D}function lo(y){for(var $="|(){",A="}",D=!1,W=[],j=-1;j<y.length;j++){var K=y.charAt(j)||"",Y=y.charAt(j+1)||"",Z=Y&&$.indexOf(Y)!=-1;D?((K!=="\\"||!Z)&&W.push(K),D=!1):K==="\\"?(D=!0,Y&&A.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(K)):(W.push(K),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function Uo(y){for(var $=!1,A=[],D=-1;D<y.length;D++){var W=y.charAt(D)||"",j=y.charAt(D+1)||"";Fi[W+j]?(A.push(Fi[W+j]),D++):$?(A.push(W),$=!1):W==="\\"?($=!0,i(j)||j==="$"?A.push("$"):j!=="/"&&j!=="\\"&&A.push("\\")):(W==="$"&&A.push("$"),A.push(W),j==="/"&&A.push("\\"))}return A.join("")}function Hr(y){for(var $=new We.StringStream(y),A=[];!$.eol();){for(;$.peek()&&$.peek()!="\\";)A.push($.next());var D=!1;for(var W in gr)if($.match(W,!0)){D=!0,A.push(gr[W]);break}D||A.push($.next())}return A.join("")}function li(y,$,A){var D=je.registerController.getRegister("/");if(D.setText(y),y instanceof RegExp)return y;var W=hr(y),j,K;if(!W.length)j=y;else{j=y.substring(0,W[0]);var Y=y.substring(W[0]);K=Y.indexOf("i")!=-1}if(!j)return null;_("pcre")||(j=lo(j)),A&&($=/^[^A-Z]*$/.test(j));var Z=new RegExp(j,$||K?"im":"m");return Z}function Mr(y){typeof y=="string"&&(y=document.createElement(y));for(var $,A=1;A<arguments.length;A++)if($=arguments[A])if(typeof $!="object"&&($=document.createTextNode($)),$.nodeType)y.appendChild($);else for(var D in $)Object.prototype.hasOwnProperty.call($,D)&&(D[0]==="$"?y.style[D.slice(1)]=$[D]:y.setAttribute(D,$[D]));return y}function Rt(y,$){var A=Mr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},$);y.openNotification?y.openNotification(A,{bottom:!0,duration:5e3}):alert(A.innerText)}function wo(y,$){return Mr("div",{$display:"flex"},Mr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Mr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),$&&Mr("span",{$color:"#888"},$))}function dr(y,$){if(Ur.length){$.value||($.value=""),kn=$;return}var A=wo($.prefix,$.desc);if(y.openDialog)y.openDialog(A,$.onClose,{onKeyDown:$.onKeyDown,onKeyUp:$.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:$.value});else{var D="";typeof $.prefix!="string"&&$.prefix&&(D+=$.prefix.textContent),$.desc&&(D+=" "+$.desc),$.onClose(prompt(D,""))}}function ae(y,$){if(y instanceof RegExp&&$ instanceof RegExp){for(var A=["global","multiline","ignoreCase","source"],D=0;D<A.length;D++){var W=A[D];if(y[W]!==$[W])return!1}return!0}return!1}function Be(y,$,A,D){if($){var W=Cn(y),j=li($,!!A,!!D);if(j)return _t(y,j),ae(j,W.getQuery())||W.setQuery(j),j}}function Fe(y){if(y.source.charAt(0)=="^")var $=!0;return{token:function(A){if($&&!A.sol()){A.skipToEnd();return}var D=A.match(y,!1);if(D)return D[0].length==0?(A.next(),"searching"):!A.sol()&&(A.backUp(1),!y.exec(A.next()+D[0]))?(A.next(),null):(A.match(y),"searching");for(;!A.eol()&&(A.next(),!A.match(y,!1)););},query:y}}function _t(y,$){clearTimeout(mr);var A=Cn(y);A.highlightTimeout=mr,mr=setTimeout(function(){if(y.state.vim){var D=Cn(y);D.highlightTimeout=null;var W=D.getOverlay();(!W||$!=W.query)&&(W&&y.removeOverlay(W),W=Fe($),y.addOverlay(W),y.showMatchesOnScrollbar&&(D.getScrollbarAnnotate()&&D.getScrollbarAnnotate().clear(),D.setScrollbarAnnotate(y.showMatchesOnScrollbar($))),D.setOverlay(W))}},50)}function Gt(y,$,A,D){return D===void 0&&(D=1),y.operation(function(){for(var W=y.getCursor(),j=y.getSearchCursor(A,W),K=0;K<D;K++){var Y=j.find($);if(K==0&&Y&&st(j.from(),W)){var Z=$?j.from():j.to();Y=j.find($),Y&&!Y[0]&&st(j.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=j.find($))}if(!Y&&(j=y.getSearchCursor(A,$?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!j.find($)))return}return j.from()})}function jt(y,$,A,D,W){return D===void 0&&(D=1),y.operation(function(){var j=y.getCursor(),K=y.getSearchCursor(A,j),Y=K.find(!$);!W.visualMode&&Y&&st(K.from(),j)&&K.find(!$);for(var Z=0;Z<D;Z++)if(Y=K.find($),!Y&&(K=y.getSearchCursor(A,$?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!K.find($)))return;return[K.from(),K.to()]})}function fr(y){var $=Cn(y);$.highlightTimeout&&(clearTimeout($.highlightTimeout),$.highlightTimeout=null),y.removeOverlay(Cn(y).getOverlay()),$.setOverlay(null),$.getScrollbarAnnotate()&&($.getScrollbarAnnotate().clear(),$.setScrollbarAnnotate(null))}function ir(y,$,A){return typeof y!="number"&&(y=y.line),$ instanceof Array?x(y,$):typeof A=="number"?y>=$&&y<=A:y==$}function Fn(y){var $=y.ace.renderer;return{top:$.getFirstFullyVisibleRow(),bottom:$.getLastFullyVisibleRow()}}function pr(y,$,A){if(A=="'"||A=="`")return je.jumpList.find(y,-1)||new Ne(0,0);if(A==".")return pn(y);var D=$.marks[A];return D&&D.find()}function pn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var $=y.doc.history.done,A=$.length;A--;)if($[A].changes)return qe($[A].changes[0].to)}function Zi(y,$,A,D,W,j,K,Y,Z){function re(){y.operation(function(){for(;!Oe;)le(),ke();ve()})}function le(){var Ze=y.getRange(j.from(),j.to()),et=Ze.replace(K,Y),vn=j.to().line;j.replace(et),Ve=j.to().line,W+=Ve-vn,ot=Ve<vn}function be(){var Ze=Re&&qe(j.to()),et=j.findNext();return et&&!et[0]&&Ze&&st(j.from(),Ze)&&(et=j.findNext()),et}function ke(){for(;be()&&ir(j.from(),D,W);)if(!(!A&&j.from().line==Ve&&!ot)){y.scrollIntoView(j.from(),30),y.setSelection(j.from(),j.to()),Re=j.from(),Oe=!1;return}Oe=!0}function ve(Ze){if(Ze&&Ze(),y.focus(),Re){y.setCursor(Re);var et=y.state.vim;et.exMode=!1,et.lastHPos=et.lastHSPos=Re.ch}Z&&Z()}function we(Ze,et,vn){We.e_stop(Ze);var lt=z(Ze);switch(lt){case"y":le(),ke();break;case"n":ke();break;case"a":var Sn=Z;Z=void 0,y.operation(re),Z=Sn;break;case"l":le();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(vn)}return Oe&&ve(vn),!0}y.state.vim.exMode=!0;var Oe=!1,Re,Ve,ot;if(ke(),Oe){Rt(y,"No matches for "+K.source);return}if(!$){re(),Z&&Z();return}dr(y,{prefix:Mr("span","replace with ",Mr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Ir(y,$){var A=y.state.vim,D=je.macroModeState,W=je.registerController.getRegister("."),j=D.isPlaying,K=D.lastInsertModeChanges;j||(y.off("change",xo),A.insertEnd&&A.insertEnd.clear(),A.insertEnd=null,We.off(y.getInputField(),"keydown",Ms)),!j&&A.insertModeRepeat>1&&(ca(y,A,A.insertModeRepeat-1,!0),A.lastEditInputState.repeatOverride=A.insertModeRepeat),delete A.insertModeRepeat,A.insertMode=!1,$||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(K.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),D.isRecording&&or(D)}function Vo(y){Rn.unshift(y)}function Ss(y,$,A,D,W){var j={keys:y,type:$};j[$]=A,j[$+"Args"]=D;for(var K in W)j[K]=W[K];Vo(j)}function $s(y,$,A,D){var W=je.registerController.getRegister(D);if(D==":"){W.keyBuffer[0]&&Cr.processCommand(y,W.keyBuffer[0]),A.isPlaying=!1;return}var j=W.keyBuffer,K=0;A.isPlaying=!0,A.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<j.length;Y++)for(var Z=j[Y],re,le;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),le=re[0],Z=Z.substring(re.index+le.length),yt.handleKey(y,le,"macro"),$.insertMode){var be=W.insertModeChanges[K++].changes;je.macroModeState.lastInsertModeChanges.changes=be,Xo(y,be,1),Ir(y)}A.isPlaying=!1}function Ko(y,$){if(!y.isPlaying){var A=y.latestRegister,D=je.registerController.getRegister(A);D&&D.pushText($)}}function or(y){if(!y.isPlaying){var $=y.latestRegister,A=je.registerController.getRegister($);A&&A.pushInsertModeChanges&&A.pushInsertModeChanges(y.lastInsertModeChanges)}}function Ts(y,$){if(!y.isPlaying){var A=y.latestRegister,D=je.registerController.getRegister(A);D&&D.pushSearchQuery&&D.pushSearchQuery($)}}function xo(y,$){var A=je.macroModeState,D=A.lastInsertModeChanges;if(!A.isPlaying)for(var W=y.state.vim;$;){if(D.expectCursorActivityForChange=!0,D.ignoreCount>1)D.ignoreCount--;else if($.origin=="+input"||$.origin=="paste"||$.origin===void 0){var j=y.listSelections().length;j>1&&(D.ignoreCount=j);var K=$.text.join(`
|
|
1399
|
-
`);if(D.maybeReset&&(D.changes=[],D.maybeReset=!1),K)if(y.state.overwrite&&!/\n/.test(K))D.changes.push([K]);else{if(K.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<K.length&&(D.changes.push([K,re]),K="")}}K&&D.changes.push(K)}}$=$.next}}function qo(y){var $=y.state.vim;if($.insertMode){var A=je.macroModeState;if(A.isPlaying)return;var D=A.lastInsertModeChanges;D.expectCursorActivityForChange?D.expectCursorActivityForChange=!1:(D.maybeReset=!0,$.insertEnd&&$.insertEnd.clear(),$.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||Go(y,$)}function Go(y,$,A){var D=y.getCursor("anchor"),W=y.getCursor("head");if($.visualMode&&!y.somethingSelected()?fn(y,!1):!$.visualMode&&!$.insertMode&&y.somethingSelected()&&($.visualMode=!0,$.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),$.visualMode){var j=Je(W,D)?0:-1,K=Je(W,D)?-1:0;W=me(W,0,j),D=me(D,0,K),$.sel={anchor:D,head:W},jr(y,$,"<",at(W,D)),jr(y,$,">",Yt(W,D))}else!$.insertMode&&!A&&($.lastHPos=y.getCursor().ch)}function co(y,$){this.keyName=y,this.key=$.key,this.ctrlKey=$.ctrlKey,this.altKey=$.altKey,this.metaKey=$.metaKey,this.shiftKey=$.shiftKey}function Ms(y){var $=je.macroModeState,A=$.lastInsertModeChanges,D=We.keyName?We.keyName(y):y.key;D&&(D.indexOf("Delete")!=-1||D.indexOf("Backspace")!=-1)&&(A.maybeReset&&(A.changes=[],A.maybeReset=!1),A.changes.push(new co(D,y)))}function ca(y,$,A,D){function W(){Y?Wn.processAction(y,$,$.lastEditActionCommand):Wn.evalInput(y,$)}function j(le){if(K.lastInsertModeChanges.changes.length>0){le=$.lastEditActionCommand?le:1;var be=K.lastInsertModeChanges;Xo(y,be.changes,le)}}var K=je.macroModeState;K.isPlaying=!0;var Y=!!$.lastEditActionCommand,Z=$.inputState;if($.inputState=$.lastEditInputState,Y&&$.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<A;re++)W(),j(1);else D||W(),j(A);$.inputState=Z,$.insertMode&&!D&&Ir(y),K.isPlaying=!1}function Yo(y,$){We.lookupKey($,"vim-insert",function(A){return typeof A=="string"?We.commands[A](y):A(y),!0})}function Xo(y,$,A){var D=y.getCursor("head"),W=je.macroModeState.lastInsertModeChanges.visualBlock;W&&(wr(y,D,W+1),A=y.listSelections().length,y.setCursor(D));for(var j=0;j<A;j++){W&&y.setCursor(me(D,j,0));for(var K=0;K<$.length;K++){var Y=$[K];if(Y instanceof co)Yo(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(D,0,1))}function Is(y,$,A,D){$.length>1&&$[0]=="n"&&($=$.replace("numpad","")),$=Er[$]||$;var W="";if(A.ctrlKey&&(W+="C-"),A.altKey&&(W+="A-"),(W||$.length>1)&&A.shiftKey&&(W+="S-"),D&&!D.expectLiteralNext&&$.length==1){if(Vn.keymap&&$ in Vn.keymap)(Vn.remapCtrl!==!1||!W)&&($=Vn.keymap[$]);else if($.charCodeAt(0)>255){var j=A.code&&A.code.slice(-1)||"";A.shiftKey||(j=j.toLowerCase()),j&&($=j)}}return W+=$,W.length>1&&(W="<"+W+">"),W}function Zo(y){var $=new y.constructor;return Object.keys(y).forEach(function(A){if(A!="insertEnd"){var D=y[A];Array.isArray(D)?D=D.slice():D&&typeof D=="object"&&D.constructor!=Object&&(D=Zo(D)),$[A]=D}}),y.sel&&($.sel={head:y.sel.head&&qe(y.sel.head),anchor:y.sel.anchor&&qe(y.sel.anchor)}),$}function Co(y,$,A){var D=!1,W=yt.maybeInitVimState_(y),j=W.visualBlock||W.wasInVisualBlock,K=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!K?W.wasInVisualBlock=!1:K&&W.visualBlock&&(W.wasInVisualBlock=!0),$=="<Esc>"&&!W.insertMode&&!W.visualMode&&K)y.ace.exitMultiSelectMode();else if(j||!K||y.ace.inVirtualSelectionMode)D=yt.handleKey(y,$,A);else{var Y=Zo(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var le=y.ace.selection;y.state.vim.lastHPos=le.$desiredColumn==null?le.lead.column:le.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var be=y.getCursor("head"),ke=y.getCursor("anchor"),ve=Je(be,ke)?0:-1,we=Je(be,ke)?-1:0;be=me(be,0,ve),ke=me(ke,0,we),y.state.vim.sel.head=be,y.state.vim.sel.anchor=ke,D=Ci(y,$,A),le.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=Zo(Y)),re++}),y.curOp.cursorActivity&&!D&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return D&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&Go(y,W,!0),D}function Ri(y,$){$.off("beforeEndOperation",Ri);var A=$.state.cm.vimCmd;A&&$.execCommand(A.exec?A:A.name,A.args),$.curOp=$.prevOp}var sr=e("../range").Range,uo=e("../lib/event_emitter").EventEmitter,Qi=e("../lib/dom"),ua=e("../lib/oop"),rl=e("../lib/keys"),ko=e("../lib/event"),Ji=e("../search").Search,Ao=e("../lib/useragent"),Qo=e("../search_highlight").SearchHighlight,_o=e("../commands/multi_select_commands"),ha=e("../mode/text").Mode.prototype.tokenRe,ho=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=function(y){this.ace=y,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};We.Pos=function(y,$){if(!(this instanceof Ne))return new Ne(y,$);this.line=y,this.ch=$},We.defineOption=function(y,$,A){},We.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
|
|
1400
|
-
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=ko.stopEvent,We.keyName=function(y){var $=rl[y.keyCode]||y.key||"";return $.length==1&&($=$.toUpperCase()),$=ko.getModifierString(y).replace(/(^|-)\w/g,function(A){return A.toUpperCase()})+$,$},We.keyMap.default=function(y){return function($){var A=$.ace.commands.commandKeyBinding[y.toLowerCase()];return A&&$.ace.execCommand(A)!==!1}},We.lookupKey=function y($,A,D){A||(A="default"),typeof A=="string"&&(A=We.keyMap[A]||We.keyMap.default);var W=typeof A=="function"?A($):A[$];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&D(W))return"handled";if(A.fallthrough){if(!Array.isArray(A.fallthrough))return y($,A.fallthrough,D);for(var j=0;j<A.fallthrough.length;j++){var K=y($,A.fallthrough[j],D);if(K)return K}}},We.findMatchingTag=function(y,$){return y.findMatchingTag($)},We.findEnclosingTag=function(y,$){},We.signal=function(y,$,A){return y._signal($,A)},We.on=ko.addListener,We.off=ko.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(ha.lastIndex=0,ha.test(y))},(function(){ua.implement(We.prototype,uo),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(A){this.$lineHandleChanges&&this.$lineHandleChanges.push(A);var D={text:A.action[0]=="i"?A.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=D:W.lastChange=W.change=D,this.$updateMarkers(A)},this.onSelectionChange=function(){var A=this.curOp=this.curOp||{};A.cursorActivityHandlers||(A.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(_o.keyboardHandler)},this.operation=function(A,D){if(!D&&this.curOp||D&&this.curOp&&this.curOp.force)return A();if((D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var j=this.curOp=this.curOp||{};this.curOp.force=D;var K=A();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!j.cursorActivity&&!j.lastChange&&W&&(this.ace.prevOp=W)),(D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),K},this.onBeforeEndOperation=function(){var A=this.curOp;A&&(A.change&&this.signal("change",A.change,A),A&&A.cursorActivity&&this.signal("cursorActivity",null,A),this.curOp=null)},this.signal=function(A,D,W){var j=W?W[A+"Handlers"]:(this._eventRegistry||{})[A];if(j){j=j.slice();for(var K=0;K<j.length;K++)j[K](this,D)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(A,D){typeof A=="object"&&(D=A.ch,A=A.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:A,column:D}),this.ace.selection.moveTo(A,D),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(A){var D=this.ace.selection,W=A=="anchor"?D.isEmpty()?D.lead:D.anchor:A=="head"||!A?D.lead:D.getRange()[A];return g(W)},this.listSelections=function(A){var D=this.ace.multiSelect.rangeList.ranges;return!D.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:D.map(function(W){return{anchor:this.clipPos(g(W.cursor==W.end?W.start:W.end)),head:this.clipPos(g(W.cursor))}},this)},this.setSelections=function(A,D){var W=this.ace.multiSelect,j=A.map(function(re){var le=p(re.anchor),be=p(re.head),ke=sr.comparePoints(le,be)<0?new sr.fromPoints(le,be):new sr.fromPoints(be,le);return ke.cursor=sr.comparePoints(ke.start,be)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(j[0]);return}D?j[D]&&j.push(j.splice(D,1)[0]):j=j.reverse(),W.toSingleRange(j[0].clone());for(var K=this.ace.session,Y=0;Y<j.length;Y++){var Z=K.$clipRangeToDocument(j[Y]);W.addRange(Z)}},this.setSelection=function(A,D,W){var j=this.ace.selection;j.moveTo(A.line,A.ch),j.selectTo(D.line,D.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(A){return!this.ace.selection.isEmpty()},this.clipPos=function(A){var D=this.ace.session.$clipPositionToDocument(A.line,A.ch);return g(D)},this.foldCode=function(A){this.ace.session.$toggleFoldWidget(A.line,{})},this.markText=function(A){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(A){var D=A.action=="insert",W=A.start,j=A.end,K=(j.row-W.row)*(D?1:-1),Y=(j.column-W.column)*(D?1:-1);D&&(j=W);for(var Z in this.marks){var re=this.marks[Z],le=sr.comparePoints(re,W);if(!(le<0)){if(le===0&&D)if(!re.$insertRight)le=1;else{if(re.bias!=1){re.bias=-1;continue}le=1}var be=D?le:sr.comparePoints(re,j);if(be>0){re.row+=K,re.column+=re.row==j.row?Y:0;continue}!D&&be<=0&&(re.row=W.row,re.column=W.column,be===0&&(re.bias=1))}}};var y=function(A,D,W,j){this.cm=A,this.id=D,this.row=W,this.column=j,A.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return g(this)},this.setBookmark=function(A,D){var W=new y(this,this.$uid++,A.line,A.ch);return(!D||!D.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(A,D){if(D=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,A)}},this.findPosV=function(A,D,W,j){if(W=="page"){var K=this.ace.renderer,Y=K.layerConfig;D*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Z=this.ace.session.documentToScreenPosition(A.line,A.ch);j!=null&&(Z.column=j),Z.row+=D,Z.row=Math.min(Math.max(0,Z.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Z.row,Z.column);return g(re)}debugger},this.charCoords=function(A,D){if(D=="div"||!D){var W=this.ace.session.documentToScreenPosition(A.line,A.ch);return{left:W.column,top:W.row}}if(D=="local"){var j=this.ace.renderer,W=this.ace.session.documentToScreenPosition(A.line,A.ch),K=j.layerConfig.lineHeight,Y=j.layerConfig.characterWidth,Z=K*W.row;return{left:W.column*Y,top:Z,bottom:Z+K}}},this.coordsChar=function(A,D){var W=this.ace.renderer;if(D=="local"){var j=Math.max(0,Math.floor(A.top/W.lineHeight)),K=Math.max(0,Math.floor(A.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(j,K);return g(Y)}if(D=="div")throw"not implemented"},this.getSearchCursor=function(A,D,W){var j=!1,K=!1;A instanceof RegExp&&!A.global&&(j=!A.ignoreCase,A=A.source,K=!0),A=="\\n"&&(A=`
|
|
1401
|
-
`,K=!1);var Y=new Ji;D.ch==null&&(D.ch=Number.MAX_VALUE);var Z={row:D.line,column:D.ch},re=this,le=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(be){Y.setOptions({needle:A,caseSensitive:j,wrap:!1,backwards:be,regExp:K,start:le||Z});var ke=Y.find(re.ace.session);return le=ke,le&&[!le.isEmpty()]},from:function(){return le&&g(le.start)},to:function(){return le&&g(le.end)},replace:function(be){le&&(le.end=re.ace.session.doc.replace(le,be))}}},this.scrollTo=function(A,D){var W=this.ace.renderer,j=W.layerConfig,K=j.maxHeight;K-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,D!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(D,K))),A!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(A,j.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(A,D){if(A){var W=this.ace.renderer,j={top:0,bottom:D};W.scrollCursorIntoView(p(A),W.lineHeight*2/W.$size.scrollerHeight,j)}},this.getLine=function(A){return this.ace.session.getLine(A)},this.getRange=function(A,D){return this.ace.session.getTextRange(new sr(A.line,A.ch,D.line,D.ch))},this.replaceRange=function(A,D,W){W||(W=D);var j=new sr(D.line,D.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(j),this.ace.session.replace(j,A)},this.replaceSelection=this.replaceSelections=function(A){var D=Array.isArray(A)&&A,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),D?A[0]||"":A);return}W.inVirtualSelectionMode=!0;var j=W.rangeList.ranges;j.length||(j=[this.ace.multiSelect.getRange()]);for(var K=j.length;K--;)this.ace.session.replace(j[K],D?A[K]||"":A);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(A){return this.getRange(A.anchor,A.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var $={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(A,D){switch(this.state[A]=D,A){case"indentWithTabs":A=$[A],D=!D;break;case"keyMap":this.state.$keyMap=D;return;default:A=$[A]}A&&this.ace.setOption(A,D)},this.getOption=function(A){var D,W=$[A];switch(W&&(D=this.ace.getOption(W)),A){case"indentWithTabs":return A=$[A],!D;case"keyMap":return this.state.$keyMap||"vim"}return W?D:this.state[A]},this.toggleOverwrite=function(A){return this.state.overwrite=A,this.ace.setOverwrite(A)},this.addOverlay=function(A){if(!this.$searchHighlight||!this.$searchHighlight.session){var D=new Qo(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(D);D.id=W.id,D.session=this.ace.session,D.destroy=function(K){D.session.off("change",D.updateOnChange),D.session.off("changeEditor",D.destroy),D.session.removeMarker(D.id),D.session=null},D.updateOnChange=function(K){var Y=K.start.row;Y==K.end.row?D.cache[Y]=void 0:D.cache.splice(Y,D.cache.length)},D.session.on("changeEditor",D.destroy),D.session.on("change",D.updateOnChange)}var j=new RegExp(A.query.source,"gmi");this.$searchHighlight=A.highlight=D,this.$searchHighlight.setRegexp(j),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(A){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var A=this.ace.renderer,D=A.layerConfig;return{left:A.scrollLeft,top:A.scrollTop,height:D.maxHeight,width:D.width,clientHeight:D.height,clientWidth:D.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(A){return this.ace.setValue(A,-1)},this.getTokenTypeAt=function(A){var D=this.ace.session.getTokenAt(A.line,A.ch);return D&&/comment|string/.test(D.type)?"string":""},this.findMatchingBracket=function(A){var D=this.ace.session.findMatchingBracket(p(A));return{to:D&&g(D)}},this.findMatchingTag=function(A){var D=this.ace.session.getMatchingTags(p(A));if(D)return{open:{from:g(D.openTag.start),to:g(D.openTag.end)},close:{from:g(D.closeTag.start),to:g(D.closeTag.end)}}},this.indentLine=function(A,D){D===!0?this.ace.session.indentRows(A,A," "):D===!1&&this.ace.session.outdentRows(new sr(A,0,A,0))},this.indexFromPos=function(A){return this.ace.session.doc.positionToIndex(p(A))},this.posFromIndex=function(A){return g(this.ace.session.doc.indexToPosition(A))},this.focus=function(A){return this.ace.textInput.focus()},this.blur=function(A){return this.ace.blur()},this.defaultTextHeight=function(A){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(A,D,W,j){var K=j.bracketRegex.source,Y=/paren|text|operator|tag/;if(D==1)var Z=this.ace.session.$findClosingBracket(K.slice(1,2),p(A),Y);else{var Z=this.ace.session.$findOpeningBracket(K.slice(-2,-1),{row:A.line,column:A.ch+1},Y);!Z&&j.bracketRegex&&j.bracketRegex.test(this.getLine(A.line)[A.ch-1])&&(Z={row:A.line,column:A.ch-1})}return Z&&{pos:g(Z)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(A){if(We.commands.hasOwnProperty(A))return We.commands[A](this);if(A=="indentAuto")return this.ace.execCommand("autoindent");console.log(A+" is not implemented")},this.getLineNumber=function(A){var D=this.$lineHandleChanges;if(!D)return null;for(var W=A.row,j=0;j<D.length;j++){var K=D[j];if(K.start.row!=K.end.row){if(K.action[0]=="i")K.start.row<W&&(W+=K.end.row-K.start.row);else if(K.start.row<W){if(W<K.end.row||W==K.end.row&&K.start.column>0)return null;W-=K.end.row-K.start.row}}}return W},this.getLineHandle=function(A){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(A),row:A}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var A=this.ace.session.$undoManager;if(A&&A.$lastDelta)return g(A.$lastDelta.end)}}).call(We.prototype);var da=We.StringStream=function(y,$){this.pos=this.start=0,this.string=y,this.tabSize=$||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};da.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(y){var $=this.string.charAt(this.pos);if(typeof y=="string")var A=$==y;else var A=$&&(y.test?y.test($):y($));if(A)return++this.pos,$},eatWhile:function(y){for(var $=this.pos;this.eat(y););return this.pos>$},eatSpace:function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},skipToEnd:function(){this.pos=this.string.length},skipTo:function(y){var $=this.string.indexOf(y,this.pos);if($>-1)return this.pos=$,!0},backUp:function(y){this.pos-=y},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(y,$,A){if(typeof y!="string"){var D=this.string.slice(this.pos).match(y);return D&&D.index>0?null:(D&&$!==!1&&(this.pos+=D[0].length),D)}var W=function(K){return A?K.toLowerCase():K},j=this.string.substr(this.pos,y.length);if(W(j)==W(y))return $!==!1&&(this.pos+=y.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(y,$){this.lineStart+=y;try{return $()}finally{this.lineStart-=y}}},We.defineExtension=function(y,$){We.prototype[y]=$},Qi.importCssString(`.normal-mode .ace_cursor{
|
|
1402
|
-
border: none;
|
|
1403
|
-
background-color: rgba(255,0,0,0.5);
|
|
1404
|
-
}
|
|
1405
|
-
.normal-mode .ace_hidden-cursors .ace_cursor{
|
|
1406
|
-
background-color: transparent;
|
|
1407
|
-
border: 1px solid red;
|
|
1408
|
-
opacity: 0.7
|
|
1409
|
-
}
|
|
1410
|
-
.ace_dialog {
|
|
1411
|
-
position: absolute;
|
|
1412
|
-
left: 0; right: 0;
|
|
1413
|
-
background: inherit;
|
|
1414
|
-
z-index: 15;
|
|
1415
|
-
padding: .1em .8em;
|
|
1416
|
-
overflow: hidden;
|
|
1417
|
-
color: inherit;
|
|
1418
|
-
}
|
|
1419
|
-
.ace_dialog-top {
|
|
1420
|
-
border-bottom: 1px solid #444;
|
|
1421
|
-
top: 0;
|
|
1422
|
-
}
|
|
1423
|
-
.ace_dialog-bottom {
|
|
1424
|
-
border-top: 1px solid #444;
|
|
1425
|
-
bottom: 0;
|
|
1426
|
-
}
|
|
1427
|
-
.ace_dialog input {
|
|
1428
|
-
border: none;
|
|
1429
|
-
outline: none;
|
|
1430
|
-
background: transparent;
|
|
1431
|
-
width: 20em;
|
|
1432
|
-
color: inherit;
|
|
1433
|
-
font-family: monospace;
|
|
1434
|
-
}`,"vimMode",!1),(function(){function y(A,D,W){var j=A.ace.container,K;return K=j.appendChild(document.createElement("div")),W?K.className="ace_dialog ace_dialog-bottom":K.className="ace_dialog ace_dialog-top",typeof D=="string"?K.innerHTML=D:K.appendChild(D),K}function $(A,D){A.state.currentNotificationClose&&A.state.currentNotificationClose(),A.state.currentNotificationClose=D}We.defineExtension("openDialog",function(A,D,W){function j(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==K&&(Z.state.dialog=null,Z.focus()),Y=!0,K.remove(),W.onClose&&W.onClose(K);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),$(this,null);var K=y(this,A,W.bottom),Y=!1,Z=this;this.state.dialog=K;var re=K.getElementsByTagName("input")[0],le;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(be){W.onInput(be,re.value,j)}),W.onKeyUp&&We.on(re,"keyup",function(be){W.onKeyUp(be,re.value,j)}),We.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,j)||(be.keyCode==13&&D(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(We.e_stop(be),j()))}),W.closeOnBlur!==!1&&We.on(re,"blur",j),re.focus()):(le=K.getElementsByTagName("button")[0])&&(We.on(le,"click",function(){j(),Z.focus()}),W.closeOnBlur!==!1&&We.on(le,"blur",j),le.focus()),j}}),We.defineExtension("openNotification",function(A,D){function W(){K||(K=!0,clearTimeout(Y),j.remove())}if(!this.virtualSelectionMode()){$(this,W);var j=y(this,A,D&&D.bottom),K=!1,Y,Z=D&&typeof D.duration<"u"?D.duration:5e3;return We.on(j,"click",function(re){We.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})})();var Ne=We.Pos,Rn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],So=Rn.length,bi=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Vn=N(""),fa=/[\d]/,$o=[We.isWordChar,function(y){return y&&!We.isWordChar(y)&&!/\s/.test(y)}],Oi=[function(y){return/\S/.test(y)}],fo=["<",">"],en=["-",'"',".",":","_","/","+"],Qt=/^\w$/,tn;try{tn=new RegExp("^[\\p{Lu}]$","u")}catch{tn=/^[A-Z]$/}var Ht={};O("filetype",void 0,"string",["ft"],function(y,$){if($!==void 0){if(y===void 0){var A=$.getOption("mode");return A=="null"?"":A}var A=y==""?"null":y;$.setOption("mode",A)}}),O("textwidth",80,"number",["tw"],function(y,$){if($!==void 0){if(y===void 0){var A=$.getOption("textwidth");return A}var D=Math.round(y);D>1&&$.setOption("textwidth",D)}});var Ni=function(){function y(Z,re,le){function be(Oe){var Re=++W%D,Ve=Y[Re];Ve&&Ve.clear(),Y[Re]=Z.setBookmark(Oe)}var ke=W%D,ve=Y[ke];if(ve){var we=ve.find();we&&!st(we,re)&&be(re)}else be(re);be(le),j=W,K=W-D+1,K<0&&(K=0)}function $(Z,re){W+=re,W>j?W=j:W<K&&(W=K);var le=Y[(D+W)%D];if(le&&!le.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,le=Y[(D+W)%D],le&&(ke=le.find())&&!st(ve,ke))break;while(W<j&&W>K)}return le}function A(Z,re){var le=W,be=$(Z,re);return W=le,be&&be.find()}var D=100,W=-1,j=0,K=0,Y=new Array(D);return{cachedCursor:void 0,add:y,find:A,move:$}},Pn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=je.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,$){var A=je.registerController.getRegister($);if(A){if(A.clear(),this.latestRegister=$,y.openDialog){var D=Mr("span",{class:"cm-vim-message"},"recording @"+$);this.onRecordingDone=y.openDialog(D,null,{bottom:!0})}this.isRecording=!0}}};var je,mn,yt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return je.registerController},resetVimGlobalState_:F,getVimGlobalState_:function(){return je},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:co,map:function(y,$,A){Cr.map(y,$,A)},unmap:function(y,$){return Cr.unmap(y,$)},noremap:function(y,$,A){Cr.map(y,$,A,!0)},mapclear:function(y){var $=Rn.length,A=So,D=Rn.slice(0,$-A);if(Rn=Rn.slice($-A),y)for(var W=D.length-1;W>=0;W--){var j=D[W];if(y!==j.context)if(j.context)this._mapCommand(j);else{var K=["normal","insert","visual"];for(var Y in K)if(K[Y]!==y){var Z={};for(var re in j)Z[re]=j[re];Z.context=K[Y],this._mapCommand(Z)}}}},langmap:P,vimKeyFromEvent:z,setOption:T,getOption:_,defineOption:O,defineEx:function(y,$,A){if(!$)$=y;else if(y.indexOf($)!==0)throw new Error('(Vim.defineEx) "'+$+'" is not a prefix of "'+y+'", command not registered');Es[y]=A,Cr.commandMap_[$]={name:y,shortName:$,type:"api"}},handleKey:function(y,$,A){var D=this.findKey(y,$,A);if(typeof D=="function")return D()},multiSelectHandleKey:Co,findKey:function(y,$,A){function D(){var re=je.macroModeState;if(re.isRecording){if($=="q")return re.exitMacroRecordMode(),k(y),!0;A!="mapping"&&Ko(re,$)}}function W(){if($=="<Esc>"){if(Y.visualMode)fn(y);else{if(!Y.insertMode)return;Ir(y)}return k(y),!0}}function j(){if(W())return!0;Y.inputState.keyBuffer.push($);var re=Y.inputState.keyBuffer.join(""),le=$.length==1,be=Wn.matchCommand(re,Rn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return k(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),mn&&window.clearTimeout(mn),mn=le&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&k(y)},_("insertModeEscKeysTimeout")),le){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new R),ke.inserted+=$;for(var we=0;we<ve.length;we++){var Oe=at(ve[we].anchor,ve[we].head),Re=Yt(ve[we].anchor,ve[we].head),Ve=y.getRange(Oe,y.state.overwrite?me(Re,0,1):Re);ke.removed[we]=(ke.removed[we]||"")+Ve}}return!le}if(Y.expectLiteralNext=!1,mn&&window.clearTimeout(mn),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var ot=ve[we].head;y.replaceRange(ke.removed[we]||"",me(ot,0,-ke.inserted.length),ot,"+input")}je.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||k(y),be.command}function K(){if(D()||W())return!0;Y.inputState.keyBuffer.push($);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var le=/^(\d*)(.*)$/.exec(re);if(!le)return k(y),!1;var be=Y.visualMode?"visual":"normal",ke=le[2]||le[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=Wn.matchCommand(ke,Rn,Y.inputState,be);return ve.type=="none"?(k(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(k(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,le=/^(\d*)(.*)$/.exec(re),le[1]&&le[1]!="0"&&Y.inputState.pushRepeatDigit(le[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=j():Z=K(),Z===!1?!Y.insertMode&&$.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?I(y,Z.toKeys,Z):Wn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),yt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,$){Cr.processCommand(y,$)},defineMotion:J,defineAction:ce,defineOperator:ne,mapCommand:Ss,_mapCommand:Vo,defineRegister:U,exitVisualMode:fn,exitInsertMode:Ir},Ur=[],cn=!1,kn,Xn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Vr={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Di={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Xn)).forEach(function(y){Di[(Xn[y]||"").toLowerCase()]=Di[y.toLowerCase()]=y}),O("langmap",void 0,"string",["lmap"],function(y,$){if(y===void 0)return Vn.string;P(y)}),S.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},S.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,$,A){this.keyBuffer=[y||""],this.linewise=!!$,this.blockwise=!!A},pushText:function(y,$){$&&(this.linewise||this.keyBuffer.push(`
|
|
1435
|
-
`),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Pn(y))},pushSearchQuery:function(y){this.searchQueries.push(y)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},q.prototype={pushText:function(y,$,A,D,W){if(y!=="_"){D&&A.charAt(A.length-1)!==`
|
|
1436
|
-
`&&(A+=`
|
|
1437
|
-
`);var j=this.isValidRegister(y)?this.getRegister(y):null;if(!j){switch($){case"yank":this.registers[0]=new B(A,D,W);break;case"delete":case"change":A.indexOf(`
|
|
1438
|
-
`)==-1?this.registers["-"]=new B(A,D):(this.shiftNumericRegisters_(),this.registers[1]=new B(A,D))}this.unnamedRegister.setText(A,D,W);return}var K=s(y);K?j.pushText(A,D):j.setText(A,D,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(A),this.unnamedRegister.setText(j.toString(),D)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,en)||Qt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,$){var A=this.historyBuffer,D=$?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+D;$?W>=0:W<A.length;W+=D)for(var j=A[W],K=0;K<=j.length;K++)if(this.initialPrefix==j.substring(0,K))return this.iterator=W,j;if(W>=A.length)return this.iterator=A.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var $=this.historyBuffer.indexOf(y);$>-1&&this.historyBuffer.splice($,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Wn={matchCommand:function(y,$,A,D){var W=Se(y,$,D,A);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var j,K=0;K<W.full.length;K++){var Y=W.full[K];j||(j=Y)}if(j.keys.slice(-11)=="<character>"||j.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};A.selectedCharacter=Z}return{type:"full",command:j}},processCommand:function(y,$,A){switch($.inputState.repeatOverride=A.repeatOverride,A.type){case"motion":this.processMotion(y,$,A);break;case"operator":this.processOperator(y,$,A);break;case"operatorMotion":this.processOperatorMotion(y,$,A);break;case"action":this.processAction(y,$,A);break;case"search":this.processSearch(y,$,A);break;case"ex":case"keyToEx":this.processEx(y,$,A);break}},processMotion:function(y,$,A){$.inputState.motion=A.motion,$.inputState.motionArgs=de(A.motionArgs),this.evalInput(y,$)},processOperator:function(y,$,A){var D=$.inputState;if(D.operator){if(D.operator==A.operator){D.motion="expandToLine",D.motionArgs={linewise:!0},this.evalInput(y,$);return}k(y)}D.operator=A.operator,D.operatorArgs=de(A.operatorArgs),A.keys.length>1&&(D.operatorShortcut=A.keys),A.exitVisualBlock&&($.visualBlock=!1,An(y)),$.visualMode&&this.evalInput(y,$)},processOperatorMotion:function(y,$,A){var D=$.visualMode,W=de(A.operatorMotionArgs);W&&D&&W.visualLine&&($.visualLine=!0),this.processOperator(y,$,A),D||this.processMotion(y,$,A)},processAction:function(y,$,A){var D=$.inputState,W=D.getRepeat(),j=!!W,K=de(A.actionArgs)||{};D.selectedCharacter&&(K.selectedCharacter=D.selectedCharacter),A.operator&&this.processOperator(y,$,A),A.motion&&this.processMotion(y,$,A),(A.motion||A.operator)&&this.evalInput(y,$),K.repeat=W||1,K.repeatIsExplicit=j,K.registerName=D.registerName,k(y),$.lastMotion=null,A.isEdit&&this.recordLastEdit($,D,A),Bn[A.action](y,K,$)},processSearch:function(y,$,A){function D(Re,Ve,ot){je.searchHistoryController.pushInput(Re),je.searchHistoryController.reset();try{Be(y,Re,Ve,ot)}catch{Rt(y,"Invalid regex: "+Re),k(y);return}Wn.processMotion(y,$,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:A.searchArgs.toJumplist}})}function W(Re){D(Re,!0,!0);var Ve=je.macroModeState;Ve.isRecording&&Ts(Ve,Re)}function j(Re,Ve,ot){var Ze=z(Re),et,vn;Ze=="<Up>"||Ze=="<Down>"?(et=Ze=="<Up>",vn=Re.target?Re.target.selectionEnd:0,Ve=je.searchHistoryController.nextMatch(Ve,et)||"",ot(Ve),vn&&Re.target&&(Re.target.selectionEnd=Re.target.selectionStart=Math.min(vn,Re.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&je.searchHistoryController.reset();var lt;try{lt=Be(y,Ve,!0,!0)}catch{}lt?y.scrollIntoView(Gt(y,!Y,lt),30):(fr(y),y.scrollTo(be.left,be.top))}function K(Re,Ve,ot){var Ze=z(Re);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(je.searchHistoryController.pushInput(Ve),je.searchHistoryController.reset(),Be(y,le),fr(y),y.scrollTo(be.left,be.top),We.e_stop(Re),k(y),ot(),y.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Re):Ze=="<C-u>"&&(We.e_stop(Re),ot(""))}if(y.getSearchCursor){var Y=A.searchArgs.forward,Z=A.searchArgs.wholeWordOnly;Cn(y).setReversed(!Y);var re=Y?"/":"?",le=Cn(y).getQuery(),be=y.getScrollInfo();switch(A.searchArgs.querySrc){case"prompt":var ke=je.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();D(Oe,!0,!1)}else dr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:j,onKeyDown:K});break;case"wordUnderCursor":var ve=an(y,{noSymbol:!0}),we=!0;if(ve||(ve=an(y,{noSymbol:!1}),we=!1),!ve){Rt(y,"No word under cursor"),k(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=ln(Oe),je.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),D(Oe,!0,!1)}}},processEx:function(y,$,A){function D(j){je.exCommandHistoryController.pushInput(j),je.exCommandHistoryController.reset(),Cr.processCommand(y,j),y.state.vim&&k(y)}function W(j,K,Y){var Z=z(j),re,le;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&K=="")&&(je.exCommandHistoryController.pushInput(K),je.exCommandHistoryController.reset(),We.e_stop(j),k(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(j),re=Z=="<Up>",le=j.target?j.target.selectionEnd:0,K=je.exCommandHistoryController.nextMatch(K,re)||"",Y(K),le&&j.target&&(j.target.selectionEnd=j.target.selectionStart=Math.min(le,j.target.value.length))):Z=="<C-u>"?(We.e_stop(j),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&je.exCommandHistoryController.reset()}A.type=="keyToEx"?Cr.processCommand(y,A.exArgs.input):$.visualMode?dr(y,{onClose:D,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):dr(y,{onClose:D,prefix:":",onKeyDown:W})},evalInput:function(y,$){var A=$.inputState,D=A.motion,W=A.motionArgs||{},j=A.operator,K=A.operatorArgs||{},Y=A.registerName,Z=$.sel,re=qe($.visualMode?se(y,Z.head):y.getCursor("head")),le=qe($.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=qe(re),ke=qe(le),ve,we,Oe;if(j&&this.recordLastEdit($,A),A.repeatOverride!==void 0?Oe=A.repeatOverride:Oe=A.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),A.selectedCharacter&&(W.selectedCharacter=K.selectedCharacter=A.selectedCharacter),W.repeat=Oe,k(y),D){var Re=ci[D](y,re,W,$,A);if($.lastMotion=ci[D],!Re)return;if(W.toJumplist){!j&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=je.jumpList,ot=Ve.cachedCursor;ot?(Br(y,ot,Re),delete Ve.cachedCursor):Br(y,re,Re)}Re instanceof Array?(we=Re[0],ve=Re[1]):ve=Re,ve||(ve=qe(re)),$.visualMode?((!$.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,An(y),jr(y,$,"<",Je(we,ve)?we:ve),jr(y,$,">",Je(we,ve)?ve:we)):j||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(j){if(K.lastSel){we=ke;var Ze=K.lastSel,et=Math.abs(Ze.head.line-Ze.anchor.line),vn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?ve=new Ne(ke.line+et,ke.ch):Ze.visualBlock?ve=new Ne(ke.line+et,ke.ch+vn):Ze.head.line==Ze.anchor.line?ve=new Ne(ke.line,ke.ch+vn):ve=new Ne(ke.line+et,ke.ch),$.visualMode=!0,$.visualLine=Ze.visualLine,$.visualBlock=Ze.visualBlock,Z=$.sel={anchor:we,head:ve},An(y)}else $.visualMode&&(K.lastSel={anchor:qe(Z.anchor),head:qe(Z.head),visualBlock:$.visualBlock,visualLine:$.visualLine});var lt,Sn,wt,St,Zn;if($.visualMode){lt=at(Z.head,Z.anchor),Sn=Yt(Z.head,Z.anchor),wt=$.visualLine||K.linewise,St=$.visualBlock?"block":wt?"line":"char";var vr=w(y,lt,Sn);if(Zn=ur(y,{anchor:vr.start,head:vr.end},St),wt){var $n=Zn.ranges;if(St=="block")for(var V=0;V<$n.length;V++)$n[V].head.ch=Pt(y,$n[V].head.line);else St=="line"&&($n[0].head=new Ne($n[0].head.line+1,0))}}else{if(lt=qe(we||ke),Sn=qe(ve||be),Je(Sn,lt)){var X=lt;lt=Sn,Sn=X}wt=W.linewise||K.linewise,wt?Ln(y,lt,Sn):W.forward&&Nn(y,lt,Sn),St="char";var ie=!W.inclusive||wt,vr=w(y,lt,Sn);Zn=ur(y,{anchor:vr.start,head:vr.end},St,ie)}y.setSelections(Zn.ranges,Zn.primary),$.lastMotion=null,K.repeat=Oe,K.registerName=Y,K.linewise=wt;var oe=Jo[j](y,K,Zn.ranges,ke,ve);$.visualMode&&fn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,$,A){var D=je.macroModeState;D.isPlaying||(y.lastEditInputState=$,y.lastEditActionCommand=A,D.lastInsertModeChanges.changes=[],D.lastInsertModeChanges.expectCursorActivityForChange=!1,D.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},ci={moveToTopLine:function(y,$,A){var D=Fn(y).top+A.repeat-1;return new Ne(D,qt(y.getLine(D)))},moveToMiddleLine:function(y){var $=Fn(y),A=Math.floor(($.top+$.bottom)*.5);return new Ne(A,qt(y.getLine(A)))},moveToBottomLine:function(y,$,A){var D=Fn(y).bottom-A.repeat+1;return new Ne(D,qt(y.getLine(D)))},expandToLine:function(y,$,A){var D=$;return new Ne(D.line+A.repeat-1,1/0)},findNext:function(y,$,A){var D=Cn(y),W=D.getQuery();if(W){var j=!A.forward;return j=D.isReversed()?!j:j,_t(y,W),Gt(y,j,W,A.repeat)}},findAndSelectNextInclusive:function(y,$,A,D,W){var j=Cn(y),K=j.getQuery();if(K){var Y=!A.forward;Y=j.isReversed()?!Y:Y;var Z=jt(y,Y,K,A.repeat,D);if(Z){if(W.operator)return Z;var re=Z[0],le=new Ne(Z[1].line,Z[1].ch-1);if(D.visualMode){(D.visualLine||D.visualBlock)&&(D.visualLine=!1,D.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=D.sel.anchor;if(be)return j.isReversed()?A.forward?[be,re]:[be,le]:A.forward?[be,le]:[be,re]}else D.visualMode=!0,D.visualLine=!1,D.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[le,re]:[re,le]}}},goToMark:function(y,$,A,D){var W=pr(y,D,A.selectedCharacter);return W?A.linewise?{line:W.line,ch:qt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,$,A,D){if(D.visualBlock&&A.sameLine){var W=D.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[D.sel.head,D.sel.anchor]},jumpToMark:function(y,$,A,D){for(var W=$,j=0;j<A.repeat;j++){var K=W;for(var Y in D.marks)if(u(Y)){var Z=D.marks[Y].find(),re=A.forward?Je(Z,K):Je(K,Z);if(!re&&!(A.linewise&&Z.line==K.line)){var le=st(K,W),be=A.forward?bn(K,Z,W):bn(W,Z,K);(le||be)&&(W=Z)}}}return A.linewise&&(W=new Ne(W.line,qt(y.getLine(W.line)))),W},moveByCharacters:function(y,$,A){var D=$,W=A.repeat,j=A.forward?D.ch+W:D.ch-W;return new Ne(D.line,j)},moveByLines:function(y,$,A,D){var W=$,j=W.ch;switch(D.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:j=D.lastHPos;break;default:D.lastHPos=j}var K=A.repeat+(A.repeatOffset||0),Y=A.forward?W.line+K:W.line-K,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,$,A,D);if(Y>re&&W.line==re)return Xi(y,$,A,D,!0);var le=y.ace.session.getFoldLine(Y);return le&&(A.forward?Y>le.start.row&&(Y=le.end.row+1):Y=le.start.row),A.toFirstChar&&(j=qt(y.getLine(Y)),D.lastHPos=j),D.lastHSPos=y.charCoords(new Ne(Y,j),"div").left,new Ne(Y,j)},moveByDisplayLines:function(y,$,A,D){var W=$;switch(D.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:D.lastHSPos=y.charCoords(W,"div").left}var j=A.repeat,Z=y.findPosV(W,A.forward?j:-j,"line",D.lastHSPos);if(Z.hitSide)if(A.forward)var K=y.charCoords(Z,"div"),Y={top:K.top+8,left:D.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=D.lastHSPos,Z=y.coordsChar(re,"div")}return D.lastHPos=Z.ch,Z},moveByPage:function(y,$,A){var D=$,W=A.repeat;return y.findPosV(D,A.forward?W:-W,"page")},moveByParagraph:function(y,$,A){var D=A.forward?1:-1;return ii(y,$,A.repeat,D)},moveBySentence:function(y,$,A){var D=A.forward?1:-1;return oi(y,$,A.repeat,D)},moveByScroll:function(y,$,A,D){var W=y.getScrollInfo(),j=null,K=A.repeat;K||(K=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords($,"local");if(A.repeat=K,j=ci.moveByDisplayLines(y,$,A,D),!j)return null;var Z=y.charCoords(j,"local");return y.scrollTo(null,W.top+Z.top-Y.top),j},moveByWords:function(y,$,A){return Dn(y,$,A.repeat,!!A.forward,!!A.wordEnd,!!A.bigWord)},moveTillCharacter:function(y,$,A){var D=A.repeat,W=ri(y,D,A.forward,A.selectedCharacter,$),j=A.forward?-1:1;return zr(j,A),W?(W.ch+=j,W):null},moveToCharacter:function(y,$,A){var D=A.repeat;return zr(0,A),ri(y,D,A.forward,A.selectedCharacter,$)||$},moveToSymbol:function(y,$,A){var D=A.repeat;return yi(y,D,A.forward,A.selectedCharacter)||$},moveToColumn:function(y,$,A,D){var W=A.repeat;return D.lastHPos=W-1,D.lastHSPos=y.charCoords($,"div").left,_s(y,W)},moveToEol:function(y,$,A,D){return Xi(y,$,A,D,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,$){var A=$;return new Ne(A.line,qt(y.getLine(A.line)))},moveToMatchedSymbol:function(y,$){for(var A=$,D=A.line,W=A.ch,j=y.getLine(D),K;W<j.length;W++)if(K=j.charAt(W),K&&c(K)){var Y=y.getTokenTypeAt(new Ne(D,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<j.length){var Z=/[<>]/.test(j[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(D,W+1),{bracketRegex:Z});return re.to}return A},moveToStartOfLine:function(y,$){return new Ne($.line,0)},moveToLineOrEdgeOfDocument:function(y,$,A){var D=A.forward?y.lastLine():y.firstLine();return A.repeatIsExplicit&&(D=A.repeat-y.getOption("firstLineNumber")),new Ne(D,qt(y.getLine(D)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var $=y.getCursor();return $.sticky=="before"&&$.ch--,$},textObjectManipulation:function(y,$,A,D){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},j={"'":!0,'"':!0,"`":!0},K=A.selectedCharacter;K=="b"?K="(":K=="B"&&(K="{");var Y=!A.textObjectInner,Z,re;if(W[K]){if(re=!0,Z=xn(y,$,K,Y),!Z){var le=y.getSearchCursor(new RegExp("\\"+K,"g"),$);le.find()&&(Z=xn(y,le.from(),K,Y))}}else if(j[K])re=!0,Z=rr(y,$,K,Y);else if(K==="W"||K==="w")for(var be=A.repeat||1;be-- >0;){var ke=an(y,{inclusive:Y,innerWord:!Y,bigWord:K==="W",noSymbol:K==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(K==="p")if(Z=ii(y,$,A.repeat,0,Y),A.linewise=!0,D.visualMode)D.visualLine||(D.visualLine=!0);else{var ve=D.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(K==="t")Z=Tr(y,$,Y);else if(K==="s"){var we=y.getLine($.line);$.ch>0&&b(we[$.ch])&&($.ch-=1);var Oe=Ho(y,$,A.repeat,1,Y),Re=Ho(y,$,A.repeat,-1,Y);f(y.getLine(Re.line)[Re.ch])&&f(y.getLine(Oe.line)[Oe.ch-1])&&(Re={line:Re.line,ch:Re.ch+1}),Z={start:Re,end:Oe}}return Z?y.state.vim.visualMode?zt(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,$,A){var D=je.lastCharacterSearch,W=A.repeat,j=A.forward===D.forward,K=(D.increment?1:0)*(j?-1:1);y.moveH(-K,"char"),A.inclusive=!!j;var Y=ri(y,W,j,D.selectedCharacter);return Y?(Y.ch+=K,Y):(y.moveH(K,"char"),$)}},Jo={change:function(y,$,A){var D,W,j=y.state.vim,K=A[0].anchor,Y=A[0].head;if(j.visualMode)if($.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(K,Y),W=y.getSelection(),y.replaceSelection(""),D=K;else{W=y.getSelection();var Z=he("",A.length);y.replaceSelections(Z),D=at(A[0].head,A[0].anchor)}else{W=y.getRange(K,Y);var re=j.lastEditInputState||{};if(re.motion=="moveByWords"&&!f(W)){var le=/\s+$/.exec(W);le&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-le[0].length),W=W.slice(0,-le[0].length))}$.linewise&&(K=new Ne(K.line,qt(y.getLine(K.line))),Y.line>K.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",K,Y),D=K}je.registerController.pushText($.registerName,"change",W,$.linewise,A.length>1),Bn.enterInsertMode(y,{head:D},y.state.vim)},delete:function(y,$,A){var D,W,j=y.state.vim;if(j.visualBlock){W=y.getSelection();var K=he("",A.length);y.replaceSelections(K),D=at(A[0].head,A[0].anchor)}else{var Y=A[0].anchor,Z=A[0].head;$.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Pt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),D=Y,$.linewise&&(D=ci.moveToFirstNonWhiteSpaceCharacter(y,Y))}return je.registerController.pushText($.registerName,"delete",W,$.linewise,j.visualBlock),se(y,D)},indent:function(y,$,A){var D=y.state.vim,W=D.visualMode?$.repeat:1;if(D.visualBlock){for(var j=y.getOption("tabSize"),K=y.getOption("indentWithTabs")?" ":" ".repeat(j),Y,Z=A.length-1;Z>=0;Z--)if(Y=at(A[Z].anchor,A[Z].head),$.indentRight)y.replaceRange(K.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),le=0,be=0;be<W;be++){var ke=re[Y.ch+le];if(ke==" ")le++;else{if(ke!=" ")break;le++;for(var ve=1;ve<K.length&&(ke=re[Y.ch+le],ke===" ");ve++)le++}}y.replaceRange("",Y,me(Y,0,le))}return Y}if(y.indentMore)for(var be=0;be<W;be++)$.indentRight?y.indentMore():y.indentLess();else{var we=A[0].anchor.line,Oe=D.visualBlock?A[A.length-1].anchor.line:A[0].head.line;$.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,$.indentRight)}return ci.moveToFirstNonWhiteSpaceCharacter(y,A[0].anchor)},indentAuto:function(y,$,A){return y.execCommand("indentAuto"),ci.moveToFirstNonWhiteSpaceCharacter(y,A[0].anchor)},hardWrap:function(y,$,A,D,W){if(y.hardWrap){var j=A[0].anchor.line,K=A[0].head.line;$.linewise&&K--;var Y=y.hardWrap({from:j,to:K});return Y>j&&$.linewise&&Y--,$.keepCursor?D:new Ne(Y,0)}},changeCase:function(y,$,A,D,W){for(var j=y.getSelections(),K=[],Y=$.toLower,Z=0;Z<j.length;Z++){var re=j[Z],le="";if(Y===!0)le=re.toLowerCase();else if(Y===!1)le=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);le+=s(ke)?ke.toLowerCase():ke.toUpperCase()}K.push(le)}return y.replaceSelections(K),$.shouldMoveCursor?W:!y.state.vim.visualMode&&$.linewise&&A[0].anchor.line+1==A[0].head.line?ci.moveToFirstNonWhiteSpaceCharacter(y,D):$.linewise?D:at(A[0].anchor,A[0].head)},yank:function(y,$,A,D){var W=y.state.vim,j=y.getSelection(),K=W.visualMode?at(W.sel.anchor,W.sel.head,A[0].head,A[0].anchor):D;return je.registerController.pushText($.registerName,"yank",j,$.linewise,W.visualBlock),K}},Bn={jumpListWalk:function(y,$,A){if(!A.visualMode){var D=$.repeat,W=$.forward,j=je.jumpList,K=j.move(y,W?D:-D),Y=K?K.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,$,A){if(!A.visualMode){var D=$.repeat||1,W=y.defaultTextHeight(),j=y.getScrollInfo().top,K=W*D,Y=$.forward?j+K:j-K,Z=qe(y.getCursor()),re=y.charCoords(Z,"local");if($.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var le=Y+y.getScrollInfo().clientHeight;le<re.bottom?(Z.line-=(re.bottom-le)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,$){var A=y.getCursor().line,D=y.charCoords(new Ne(A,0),"local"),W=y.getScrollInfo().clientHeight,j=D.top;switch($.position){case"center":j=D.bottom-W/2;break;case"bottom":var K=new Ne(A,y.getLine(A).length-1),Y=y.charCoords(K,"local"),Z=Y.bottom-j;j=j-W+Z}y.scrollTo(null,j)},replayMacro:function(y,$,A){var D=$.selectedCharacter,W=$.repeat,j=je.macroModeState;for(D=="@"?D=j.latestRegister:j.latestRegister=D;W--;)$s(y,A,j,D)},enterMacroRecordMode:function(y,$){var A=je.macroModeState,D=$.selectedCharacter;je.registerController.isValidRegister(D)&&A.enterMacroRecordMode(y,D)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,$,A){if(!y.getOption("readOnly")){A.insertMode=!0,A.insertModeRepeat=$&&$.repeat||1;var D=$?$.insertAt:null,W=A.sel,j=$.head||y.getCursor("head"),K=y.listSelections().length;if(D=="eol")j=new Ne(j.line,Pt(y,j.line));else if(D=="bol")j=new Ne(j.line,0);else if(D=="charAfter"){var Y=w(y,j,me(j,0,1));j=Y.end}else if(D=="firstNonBlank"){var Y=w(y,j,ci.moveToFirstNonWhiteSpaceCharacter(y,j));j=Y.end}else if(D=="startOfSelectedArea"){if(!A.visualMode)return;A.visualBlock?(j=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?j=W.head:j=new Ne(W.anchor.line,0)}else if(D=="endOfSelectedArea"){if(!A.visualMode)return;A.visualBlock?(j=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?j=me(W.head,0,1):j=new Ne(W.anchor.line,0)}else if(D=="inplace"){if(A.visualMode)return}else D=="lastEdit"&&(j=pn(y)||j);y.setOption("disableInput",!1),$&&$.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),je.macroModeState.isPlaying||(y.on("change",xo),A.insertEnd&&A.insertEnd.clear(),A.insertEnd=y.setBookmark(j,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Ms)),A.visualMode&&fn(y),wr(y,j,K)}},toggleVisualMode:function(y,$,A){var D=$.repeat,W=y.getCursor(),j;if(A.visualMode)A.visualLine^$.linewise||A.visualBlock^$.blockwise?(A.visualLine=!!$.linewise,A.visualBlock=!!$.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:A.visualLine?"linewise":A.visualBlock?"blockwise":""}),An(y)):fn(y);else{A.visualMode=!0,A.visualLine=!!$.linewise,A.visualBlock=!!$.blockwise,j=se(y,new Ne(W.line,W.ch+D-1));var K=w(y,W,j);A.sel={anchor:K.start,head:K.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:A.visualLine?"linewise":A.visualBlock?"blockwise":""}),An(y),jr(y,A,"<",at(W,j)),jr(y,A,">",Yt(W,j))}},reselectLastSelection:function(y,$,A){var D=A.lastSelection;if(A.visualMode&&Lt(y,A),D){var W=D.anchorMark.find(),j=D.headMark.find();if(!W||!j)return;A.sel={anchor:W,head:j},A.visualMode=!0,A.visualLine=D.visualLine,A.visualBlock=D.visualBlock,An(y),jr(y,A,"<",at(W,j)),jr(y,A,">",Yt(W,j)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:A.visualLine?"linewise":A.visualBlock?"blockwise":""})}},joinLines:function(y,$,A){var D,W;if(A.visualMode){if(D=y.getCursor("anchor"),W=y.getCursor("head"),Je(W,D)){var j=W;W=D,D=j}W.ch=Pt(y,W.line)-1}else{var K=Math.max($.repeat,2);D=y.getCursor(),W=se(y,new Ne(D.line+K-1,1/0))}for(var Y=0,Z=D.line;Z<W.line;Z++){Y=Pt(y,D.line);var re="",le=0;if(!$.keepSpaces){var be=y.getLine(D.line+1);le=be.search(/\S/),le==-1?le=be.length:re=" "}y.replaceRange(re,new Ne(D.line,Y),new Ne(D.line+1,le))}var ke=se(y,new Ne(D.line,Y));A.visualMode&&fn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,$,A){A.insertMode=!0;var D=qe(y.getCursor());if(D.line===y.firstLine()&&!$.after)y.replaceRange(`
|
|
1439
|
-
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{D.line=$.after?D.line:D.line-1,D.ch=Pt(y,D.line),y.setCursor(D);var W=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:$.repeat},A)},paste:function(y,$,A){var D=this,W=je.registerController.getRegister($.registerName),j=function(){var K=W.toString();D.continuePaste(y,$,A,K,W)};$.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(K){D.continuePaste(y,$,A,K,W)},function(){j()}):j()},continuePaste:function(y,$,A,D,W){var j=qe(y.getCursor());if(D){if($.matchIndent){var K=y.getOption("tabSize"),Y=function($n){var V=$n.split(" ").length-1,X=$n.split(" ").length-1;return V*K+X*1},Z=y.getLine(y.getCursor().line),re=Y(Z.match(/^\s*/)[0]),le=D.replace(/\n$/,""),be=D!==le,ke=Y(D.match(/^\s*/)[0]),D=le.replace(/^\s*/gm,function($n){var V=re+(Y($n)-ke);if(V<0)return"";if(y.getOption("indentWithTabs")){var X=Math.floor(V/K);return Array(X+1).join(" ")}return Array(V+1).join(" ")});D+=be?`
|
|
1440
|
-
`:""}if($.repeat>1)var D=Array($.repeat+1).join(D);var ve=W.linewise,we=W.blockwise;if(we){D=D.split(`
|
|
1441
|
-
`),ve&&D.pop();for(var Oe=0;Oe<D.length;Oe++)D[Oe]=D[Oe]==""?" ":D[Oe];j.ch+=$.after?1:0,j.ch=Math.min(Pt(y,j.line),j.ch)}else ve?A.visualMode?D=A.visualLine?D.slice(0,-1):`
|
|
1442
|
-
`+D.slice(0,D.length-1)+`
|
|
1443
|
-
`:$.after?(D=`
|
|
1444
|
-
`+D.slice(0,D.length-1),j.ch=Pt(y,j.line)):j.ch=0:j.ch+=$.after?1:0;var Re;if(A.visualMode){A.lastPastedText=D;var Ve,ot=He(y,A),Ze=ot[0],et=ot[1],vn=y.getSelection(),lt=y.listSelections(),Sn=new Array(lt.length).join("1").split("1");A.lastSelection&&(Ve=A.lastSelection.headMark.find()),je.registerController.unnamedRegister.setText(vn),we?(y.replaceSelections(Sn),et=new Ne(Ze.line+D.length-1,Ze.ch),y.setCursor(Ze),Un(y,et),y.replaceSelections(D),Re=Ze):A.visualBlock?(y.replaceSelections(Sn),y.setCursor(Ze),y.replaceRange(D,Ze,Ze),Re=Ze):(y.replaceRange(D,Ze,et),Re=y.posFromIndex(y.indexFromPos(Ze)+D.length-1)),Ve&&(A.lastSelection.headMark=y.setBookmark(Ve)),ve&&(Re.ch=0)}else if(we){y.setCursor(j);for(var Oe=0;Oe<D.length;Oe++){var wt=j.line+Oe;wt>y.lastLine()&&y.replaceRange(`
|
|
1445
|
-
`,new Ne(wt,0));var St=Pt(y,wt);St<j.ch&&En(y,wt,j.ch)}y.setCursor(j),Un(y,new Ne(j.line+D.length-1,j.ch)),y.replaceSelections(D),Re=j}else if(y.replaceRange(D,j),ve){var wt=$.after?j.line+1:j.line;Re=new Ne(wt,qt(y.getLine(wt)))}else Re=qe(j),/\n/.test(D)||(Re.ch+=D.length-($.after?1:0));A.visualMode&&fn(y,!1),y.setCursor(Re)}},undo:function(y,$){y.operation(function(){Xe(y,We.commands.undo,$.repeat)(),y.setCursor(se(y,y.getCursor("start")))})},redo:function(y,$){Xe(y,We.commands.redo,$.repeat)()},setRegister:function(y,$,A){A.inputState.registerName=$.selectedCharacter},insertRegister:function(y,$,A){var D=$.selectedCharacter,W=je.registerController.getRegister(D),j=W&&W.toString();j&&y.replaceSelection(j)},oneNormalCommand:function(y,$,A){Ir(y,!0),A.insertModeReturn=!0,We.on(y,"vim-command-done",function D(){A.visualMode||(A.insertModeReturn&&(A.insertModeReturn=!1,A.insertMode||Bn.enterInsertMode(y,{},A)),We.off(y,"vim-command-done",D))})},setMark:function(y,$,A){var D=$.selectedCharacter;jr(y,A,D,y.getCursor())},replace:function(y,$,A){var D=$.selectedCharacter,W=y.getCursor(),j,K,Y=y.listSelections();if(A.visualMode)W=y.getCursor("start"),K=y.getCursor("end");else{var Z=y.getLine(W.line);j=W.ch+$.repeat,j>Z.length&&(j=Z.length),K=new Ne(W.line,j)}var re=w(y,W,K);if(W=re.start,K=re.end,D==`
|
|
1446
|
-
`)A.visualMode||y.replaceRange("",W,K),(We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent)(y);else{var le=y.getRange(W,K);if(le=le.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D),le=le.replace(/[^\n]/g,D),A.visualBlock){var be=new Array(y.getOption("tabSize")+1).join(" ");le=y.getSelection(),le=le.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D),le=le.replace(/\t/g,be).replace(/[^\n]/g,D).split(`
|
|
1447
|
-
`),y.replaceSelections(le)}else y.replaceRange(le,W,K);A.visualMode?(W=Je(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,y.setCursor(W),fn(y,!1)):y.setCursor(me(K,0,-1))}},incrementNumberToken:function(y,$){for(var A=y.getCursor(),D=y.getLine(A.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,j,K,Y,Z;(j=W.exec(D))!==null&&(K=j.index,Y=K+j[0].length,!(A.ch<Y)););if(!(!$.backtrack&&Y<=A.ch)&&j){var re=j[2]||j[4],le=j[3]||j[5],be=$.increase?1:-1,ke={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],ve=parseInt(j[1]+le,ke)+be*$.repeat;Z=ve.toString(ke);var we=re?new Array(le.length-Z.length+1+j[1].length).join("0"):"";Z.charAt(0)==="-"?Z="-"+re+we+Z.substr(1):Z=re+we+Z;var Oe=new Ne(A.line,K),Re=new Ne(A.line,Y);y.replaceRange(Z,Oe,Re),y.setCursor(new Ne(A.line,K+Z.length-1))}},repeatLastEdit:function(y,$,A){var D=A.lastEditInputState;if(D){var W=$.repeat;W&&$.repeatIsExplicit?A.lastEditInputState.repeatOverride=W:W=A.lastEditInputState.repeatOverride||W,ca(y,A,W,!1)}},indent:function(y,$){y.indentLine(y.getCursor().line,$.indentRight)},exitInsertMode:Ir},wi={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},xi={bracket:{isComplete:function(y){if(y.nextCh===y.symb){if(y.depth++,y.depth>=1)return!0}else y.nextCh===y.reverseSymb&&y.depth--;return!1}},section:{init:function(y){y.curMoveThrough=!0,y.symb=(y.forward?"]":"[")===y.symb?"{":"}"},isComplete:function(y){return y.index===0&&y.nextCh===y.symb}},comment:{isComplete:function(y){var $=y.lastCh==="*"&&y.nextCh==="/";return y.lastCh=y.nextCh,$}},method:{init:function(y){y.symb=y.symb==="m"?"{":"}",y.reverseSymb=y.symb==="{"?"}":"{"},isComplete:function(y){return y.nextCh===y.symb}},preprocess:{init:function(y){y.index=0},isComplete:function(y){if(y.nextCh==="#"){var $=y.lineText.match(/^#(\w+)/)[1];if($==="endif"){if(y.forward&&y.depth===0)return!0;y.depth++}else if($==="if"){if(!y.forward&&y.depth===0)return!0;y.depth--}if($==="else"&&y.depth===0)return!0}return!1}}};O("pcre",!0,"boolean"),si.prototype={getQuery:function(){return je.query},setQuery:function(y){je.query=y},getOverlay:function(){return this.searchOverlay},setOverlay:function(y){this.searchOverlay=y},isReversed:function(){return je.isReversed},setReversed:function(y){je.isReversed=y},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(y){this.annotate=y}};var Fi={"\\n":`
|
|
1448
|
-
`,"\\r":"\r","\\t":" "},gr={"\\/":"/","\\\\":"\\","\\n":`
|
|
1449
|
-
`,"\\r":"\r","\\t":" ","\\&":"&"},mr=0,xr=function(){this.buildCommandMap_()};xr.prototype={processCommand:function(y,$,A){var D=this;y.operation(function(){y.curOp.isVimOp=!0,D._processCommand(y,$,A)})},_processCommand:function(y,$,A){var D=y.state.vim,W=je.registerController.getRegister(":"),j=W.toString(),K=new We.StringStream($);W.setText($);var Y=A||{};Y.input=$;try{this.parseInput_(y,K,Y)}catch(le){throw Rt(y,le.toString()),le}D.visualMode&&fn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(j),this.parseCommandArgs_(K,Y,Z),Z.type=="exToKey"){I(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Rt(y,'Not an editor command ":'+$+'"');return}try{Es[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(le){throw Rt(y,le.toString()),le}},parseInput_:function(y,$,A){if($.eatWhile(":"),$.eat("%")?(A.line=y.firstLine(),A.lineEnd=y.lastLine()):(A.line=this.parseLineSpec_(y,$),A.line!==void 0&&$.eat(",")&&(A.lineEnd=this.parseLineSpec_(y,$))),A.line==null)if(y.state.vim.visualMode){var D=pr(y,y.state.vim,"<");A.selectionLine=D&&D.line,D=pr(y,y.state.vim,">"),A.selectionLineEnd=D&&D.line}else A.selectionLine=y.getCursor().line;else A.selectionLine=A.line,A.selectionLineEnd=A.lineEnd;var W=$.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?A.commandName=W[1]:A.commandName=$.match(/.*/)[0],A},parseLineSpec_:function(y,$){var A=$.match(/^(\d+)/);if(A)return parseInt(A[1],10)-1;switch($.next()){case".":return this.parseLineSpecOffset_($,y.getCursor().line);case"$":return this.parseLineSpecOffset_($,y.lastLine());case"'":var D=$.next(),W=pr(y,y.state.vim,D);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_($,W.line);case"-":case"+":return $.backUp(1),this.parseLineSpecOffset_($,y.getCursor().line);default:return $.backUp(1),void 0}},parseLineSpecOffset_:function(y,$){var A=y.match(/^([+-])?(\d+)/);if(A){var D=parseInt(A[2],10);A[1]=="-"?$-=D:$+=D}return $},parseCommandArgs_:function(y,$,A){if(!y.eol()){$.argString=y.match(/.*/)[0];var D=A.argDelimiter||/\s+/,W=cr($.argString).split(D);W.length&&W[0]&&($.args=W)}},matchCommand_:function(y){for(var $=y.length;$>0;$--){var A=y.substring(0,$);if(this.commandMap_[A]){var D=this.commandMap_[A];if(D.name.indexOf(y)===0)return D}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<bi.length;y++){var $=bi[y],A=$.shortName||$.name;this.commandMap_[A]=$}},map:function(y,$,A,D){if(y!=":"&&y.charAt(0)==":"){if(A)throw Error("Mode not supported for ex mappings");var W=y.substring(1);$!=":"&&$.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:$.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:$,user:!0}}else{var j={keys:y,type:"keyToKey",toKeys:$,noremap:!!D};A&&(j.context=A),Rn.unshift(j)}},unmap:function(y,$){if(y!=":"&&y.charAt(0)==":"){if($)throw Error("Mode not supported for ex mappings");var A=y.substring(1);if(this.commandMap_[A]&&this.commandMap_[A].user)return delete this.commandMap_[A],!0}else for(var D=y,W=0;W<Rn.length;W++)if(D==Rn[W].keys&&Rn[W].context===$)return Rn.splice(W,1),!0}};var Es={colorscheme:function(y,$){if(!$.args||$.args.length<1){Rt(y,y.getOption("theme"));return}y.setOption("theme",$.args[0])},map:function(y,$,A,D){var W=$.args;if(!W||W.length<2){y&&Rt(y,"Invalid mapping: "+$.input);return}Cr.map(W[0],W[1],A,D)},imap:function(y,$){this.map(y,$,"insert")},nmap:function(y,$){this.map(y,$,"normal")},vmap:function(y,$){this.map(y,$,"visual")},omap:function(y,$){this.map(y,$,"operatorPending")},noremap:function(y,$){this.map(y,$,void 0,!0)},inoremap:function(y,$){this.map(y,$,"insert",!0)},nnoremap:function(y,$){this.map(y,$,"normal",!0)},vnoremap:function(y,$){this.map(y,$,"visual",!0)},onoremap:function(y,$){this.map(y,$,"operatorPending",!0)},unmap:function(y,$,A){var D=$.args;(!D||D.length<1||!Cr.unmap(D[0],A))&&y&&Rt(y,"No such mapping: "+$.input)},mapclear:function(y,$){yt.mapclear()},imapclear:function(y,$){yt.mapclear("insert")},nmapclear:function(y,$){yt.mapclear("normal")},vmapclear:function(y,$){yt.mapclear("visual")},omapclear:function(y,$){yt.mapclear("operatorPending")},move:function(y,$){Wn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:$.line+1})},set:function(y,$){var A=$.args,D=$.setCfg||{};if(!A||A.length<1){y&&Rt(y,"Invalid mapping: "+$.input);return}var W=A[0].split("="),j=W[0],K=W[1],Y=!1,Z=!1;if(j.charAt(j.length-1)=="?"){if(K)throw Error("Trailing characters: "+$.argString);j=j.substring(0,j.length-1),Y=!0}else j.charAt(j.length-1)=="!"&&(j=j.substring(0,j.length-1),Z=!0);K===void 0&&j.substring(0,2)=="no"&&(j=j.substring(2),K=!1);var re=Ht[j]&&Ht[j].type=="boolean";if(re&&(Z?K=!_(j,y,D):K==null&&(K=!0)),!re&&K===void 0||Y){var le=_(j,y,D);le instanceof Error?Rt(y,le.message):le===!0||le===!1?Rt(y," "+(le?"":"no")+j):Rt(y," "+j+"="+le)}else{var be=T(j,K,y,D);be instanceof Error&&Rt(y,be.message)}},setlocal:function(y,$){$.setCfg={scope:"local"},this.set(y,$)},setglobal:function(y,$){$.setCfg={scope:"global"},this.set(y,$)},registers:function(y,$){var A=$.args,D=je.registerController.registers,W=`----------Registers----------
|
|
1450
|
-
|
|
1451
|
-
`;if(A){var j;A=A.join("");for(var K=0;K<A.length;K++)if(j=A.charAt(K),!!je.registerController.isValidRegister(j)){var Y=D[j]||new B;W+='"'+j+" "+Y.toString()+`
|
|
1452
|
-
`}}else for(var j in D){var Z=D[j].toString();Z.length&&(W+='"'+j+" "+Z+`
|
|
1453
|
-
`)}Rt(y,W)},sort:function(y,$){function A(){if($.argString){var wt=new We.StringStream($.argString);if(wt.eat("!")&&(j=!0),wt.eol())return;if(!wt.eatSpace())return"Invalid arguments";var St=wt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!St&&!wt.eol())return"Invalid arguments";if(St[1]){K=St[1].indexOf("i")!=-1,Y=St[1].indexOf("u")!=-1;var Zn=St[1].indexOf("d")!=-1||St[1].indexOf("n")!=-1&&1,vr=St[1].indexOf("x")!=-1&&1,$n=St[1].indexOf("o")!=-1&&1;if(Zn+vr+$n>1)return"Invalid arguments";Z=Zn&&"decimal"||vr&&"hex"||$n&&"octal"}St[2]&&(re=new RegExp(St[2].substr(1,St[2].length-2),K?"i":""))}}function D(wt,St){if(j){var Zn;Zn=wt,wt=St,St=Zn}K&&(wt=wt.toLowerCase(),St=St.toLowerCase());var vr=Z&&Re.exec(wt),$n=Z&&Re.exec(St);return vr?(vr=parseInt((vr[1]+vr[2]).toLowerCase(),Ve),$n=parseInt(($n[1]+$n[2]).toLowerCase(),Ve),vr-$n):wt<St?-1:1}function W(wt,St){if(j){var Zn;Zn=wt,wt=St,St=Zn}return K&&(wt[0]=wt[0].toLowerCase(),St[0]=St[0].toLowerCase()),wt[0]<St[0]?-1:1}var j,K,Y,Z,re,le=A();if(le){Rt(y,le+": "+$.argString);return}var be=$.line||y.firstLine(),ke=$.lineEnd||$.line||y.lastLine();if(be!=ke){var ve=new Ne(be,0),we=new Ne(ke,Pt(y,ke)),Oe=y.getRange(ve,we).split(`
|
|
1454
|
-
`),Re=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ve=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,ot=[],Ze=[];if(Z||re)for(var et=0;et<Oe.length;et++){var vn=re?Oe[et].match(re):null;vn&&vn[0]!=""?ot.push(vn):!re&&Re.exec(Oe[et])?ot.push(Oe[et]):Ze.push(Oe[et])}else Ze=Oe;if(ot.sort(re?W:D),re)for(var et=0;et<ot.length;et++)ot[et]=ot[et].input;else Z||Ze.sort(D);if(Oe=j?ot.concat(Ze):Ze.concat(ot),Y){var lt=Oe,Sn;Oe=[];for(var et=0;et<lt.length;et++)lt[et]!=Sn&&Oe.push(lt[et]),Sn=lt[et]}y.replaceRange(Oe.join(`
|
|
1455
|
-
`),ve,we)}},vglobal:function(y,$){this.global(y,$)},normal:function(y,$){var A=$.argString;if(A&&A[0]=="!"&&(A=A.slice(1),cn=!0),A=A.trimStart(),!A){Rt(y,"Argument is required.");return}var D=$.line;if(typeof D=="number")for(var W=isNaN($.lineEnd)?D:$.lineEnd,j=D;j<=W;j++)y.setCursor(j,0),I(y,$.argString.trimStart()),y.state.vim.insertMode&&Ir(y,!0);else I(y,$.argString.trimStart()),y.state.vim.insertMode&&Ir(y,!0)},global:function(y,$){var A=$.argString;if(!A){Rt(y,"Regular Expression missing from global");return}var D=$.commandName[0]==="v";A[0]==="!"&&$.commandName[0]==="g"&&(D=!0,A=A.slice(1));var W=$.line!==void 0?$.line:y.firstLine(),j=$.lineEnd||$.line||y.lastLine(),K=_n(A),Y=A,Z;if(K.length&&(Y=K[0],Z=K.slice(1,K.length).join("/")),Y)try{Be(y,Y,!0,!0)}catch{Rt(y,"Invalid regex: "+Y);return}for(var re=Cn(y).getQuery(),le=[],be=W;be<=j;be++){var ke=y.getLine(be),ve=re.test(ke);ve!==D&&le.push(Z?y.getLineHandle(be):ke)}if(!Z){Rt(y,le.join(`
|
|
1456
|
-
`));return}var we=0,Oe=function(){if(we<le.length){var Re=le[we++],Ve=y.getLineNumber(Re);if(Ve==null){Oe();return}var ot=Ve+1+Z;Cr.processCommand(y,ot,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,$){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var A=$.argString,D=A?ai(A,A[0]):[],W,j="",K,Y,Z,re=!1,le=!1;if(D.length)W=D[0],_("pcre")&&W!==""&&(W=new RegExp(W).source),j=D[1],j!==void 0&&(_("pcre")?j=Hr(j.replace(/([^\\])&/g,"$1$$&")):j=Uo(j),je.lastSubstituteReplacePart=j),K=D[2]?D[2].split(" "):[];else if(A&&A.length){Rt(y,"Substitutions should be of the form :s/pattern/replace/");return}if(K&&(Y=K[0],Z=parseInt(K[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(le=!0),_("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{Be(y,W,!0,!0)}catch{Rt(y,"Invalid regex: "+W);return}if(j=j||je.lastSubstituteReplacePart,j===void 0){Rt(y,"No previous substitute regular expression");return}var be=Cn(y),ke=be.getQuery(),ve=$.line!==void 0?$.line:y.getCursor().line,we=$.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Re=y.getSearchCursor(ke,Oe);Zi(y,re,le,ve,we,Re,ke,j,$.callback)},startinsert:function(y,$){I(y,$.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){fr(y)},yank:function(y){var $=qe(y.getCursor()),A=$.line,D=y.getLine(A);je.registerController.pushText("0","yank",D,!0,!0)},delete:function(y,$){var A=$.selectionLine,D=isNaN($.selectionLineEnd)?A:$.selectionLineEnd;Jo.delete(y,{linewise:!0},[{anchor:new Ne(A,0),head:new Ne(D+1,0)}])},join:function(y,$){var A=$.selectionLine,D=isNaN($.selectionLineEnd)?A:$.selectionLineEnd;y.setCursor(new Ne(A,0)),Bn.joinLines(y,{repeat:D-A},y.state.vim)},delmarks:function(y,$){if(!$.argString||!cr($.argString)){Rt(y,"Argument required");return}for(var A=y.state.vim,D=new We.StringStream(cr($.argString));!D.eol();){D.eatSpace();var W=D.pos;if(!D.match(/[a-zA-Z]/,!1)){Rt(y,"Invalid argument: "+$.argString.substring(W));return}var j=D.next();if(D.match("-",!0)){if(!D.match(/[a-zA-Z]/,!1)){Rt(y,"Invalid argument: "+$.argString.substring(W));return}var K=j,Y=D.next();if(!(u(K)&&u(Y)||s(K)&&s(Y))){Rt(y,"Invalid argument: "+K+"-");return}var Z=K.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Rt(y,"Invalid argument: "+$.argString.substring(W));return}for(var le=0;le<=re-Z;le++){var be=String.fromCharCode(Z+le);delete A.marks[be]}}else delete A.marks[j]}}},Cr=new xr;O("insertModeEscKeysTimeout",200,"number"),We.Vim=yt;var Er={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Ci=yt.handleKey.bind(yt);yt.handleKey=function(y,$,A){return y.operation(function(){return Ci(y,$,A)},!0)},F(),r.CodeMirror=We;var ki=yt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,$,A,D,W){var j=this.state.vim||{},K=A.characterWidth,Y=A.lineHeight,Z=$.top,re=$.left;if(!j.insertMode){var le=D.cursor?sr.comparePoints(D.cursor,D.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!le&&re>K&&(re-=K)}!j.insertMode&&j.status&&(Y/=2,Z+=Y),Qi.translate(y,re,Z),Qi.setStyle(y.style,"width",K+"px"),Qi.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var $=y.state.cm,A=ki($);if(!A.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,$,A,D,W){var j=y.editor,K=j.state.cm,Y=ki(K);if(D!=-1){if(Y.insertMode||($==-1?(A.charCodeAt(0)>255&&y.inputKey&&(A=y.inputKey,A&&y.inputHash==4&&(A=A.toUpperCase())),y.inputChar=A):$==4||$==0?y.inputKey==A&&y.inputHash==$&&y.inputChar?(A=y.inputChar,$=-1):(y.inputChar=null,y.inputKey=A,y.inputHash=$):y.inputChar=y.inputKey=null),K.state.overwrite&&Y.insertMode&&A=="backspace"&&$==0)return{command:"gotoleft"};if(A=="c"&&$==1&&!Ao.isMac&&j.getCopyText())return j.once("copy",function(){Y.insertMode?j.selection.clearSelection():K.operation(function(){fn(K)})}),{command:"null",passEvent:!0};if(A=="esc"&&!Y.insertMode&&!Y.visualMode&&!K.ace.inMultiSelectMode){var Z=Cn(K),re=Z.getOverlay();re&&K.removeOverlay(re)}if($==-1||$&1||$===0&&A.length>1){var le=Y.insertMode,be=Is($,A,W||{},Y);Y.status==null&&(Y.status="");var ke=Co(K,be,"user");return Y=ki(K),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),K._signal("changeStatus"),!ke&&($!=-1||le)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function $(){var D=ki(A).insertMode;A.ace.renderer.setStyle("normal-mode",!D),y.textInput.setCommandMode(!D),y.renderer.$keepTextAreaAtCursor=D,y.renderer.$blockCursor=!D}y.state||(y.state={});var A=new We(y);y.state.cm=A,y.$vimModeHandler=this,h(A),ki(A).status=null,A.on("vim-command-done",function(){A.virtualSelectionMode()||(ki(A).status=null,A.ace._signal("changeStatus"),A.ace.session.markUndoGroup())}),A.on("changeStatus",function(){A.ace.renderer.updateCursor(),A.ace._signal("changeStatus")}),A.on("vim-mode-change",function(){A.virtualSelectionMode()||($(),A._signal("changeStatus"))}),$(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(A)},detach:function(y){var $=y.state.cm;d($),$.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var $=y.state.cm,A=ki($);if(A.insertMode)return"INSERT";var D="";return A.visualMode&&(D+="VISUAL",A.visualLine&&(D+=" LINE"),A.visualBlock&&(D+=" BLOCK")),A.status&&(D+=(D?" ":"")+A.status),D}},yt.defineOption({name:"wrap",set:function(y,$){$&&$.ace.setOption("wrap",y)},type:"boolean"},!1),yt.defineEx("write","w",function(){console.log(":write is not implemented")}),Rn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Rn.push({keys:"gq",type:"operator",operator:"hardWrap"}),yt.defineOperator("hardWrap",function(y,$,A,D,W){var j=A[0].anchor.line,K=A[0].head.line;return $.linewise&&K--,ho(y.ace,{startRow:j,endRow:K}),Ne(K,0)}),O("textwidth",void 0,"number",["tw"],function(y,$){if($!==void 0){if(y===void 0){var A=$.ace.getOption("printMarginColumn");return A}var D=Math.round(y);D>1&&$.ace.setOption("printMarginColumn",D)}}),Bn.aceCommand=function(y,$,A){y.vimCmd=$,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Ri):Ri(null,y.ace)},Bn.fold=function(y,$,A){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][($.all?2:0)+($.open?1:0)])},So=Rn.length,r.handler.defaultKeymap=Rn,r.handler.actions=Bn,r.Vim=yt}),(function(){ace.require(["ace/keyboard/vim"],function(e){t&&(t.exports=e)})})()})(pg)),pg.exports}ck();var mg={},vg;function uk(){return vg||(vg=1,(function(t){(function(){var n={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return v(g(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function v(w,h){var d=1,a=w.length,l,u="",c,i,s,f,b,x,O,T;for(c=0;c<a;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(s=w[c],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(n.not_type.test(s.type)&&n.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),n.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(n.number.test(s.type)&&(O=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}n.json.test(s.type)?u+=l:(n.number.test(s.type)&&(!O||s.sign)?(T=O?"+":"-",l=l.toString().replace(n.sign,"")):T="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(T+l).length,f=s.width&&x>0?b.repeat(x):"",u+=s.align?T+l+f:b==="0"?T+f+l:f+T+l)}return u}var p=Object.create(null);function g(w){if(p[w])return p[w];for(var h=w,d,a=[],l=0;h;){if((d=n.text.exec(h))!==null)a.push(d[0]);else if((d=n.modulo.exec(h))!==null)a.push("%");else if((d=n.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=n.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=n.key_access.exec(c))!==null)u.push(i[1]);else if((i=n.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return p[w]=a}t.sprintf=e,t.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()})(mg)),mg}uk();var Wl={exports:{}},hk=Wl.exports,yg;function dk(){return yg||(yg=1,(function(t,n){(function(){var e,r="4.17.23",v=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,a="__lodash_placeholder__",l=1,u=2,c=4,i=1,s=2,f=1,b=2,x=4,O=8,T=16,_=32,C=64,L=128,F=256,E=512,I=30,z="...",P=800,N=16,S=1,k=2,R=3,B=1/0,U=9007199254740991,q=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,ce=[["ary",L],["bind",f],["bindKey",b],["curry",O],["curryRight",T],["flip",E],["partial",_],["partialRight",C],["rearg",F]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",Se="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Xe="[object Error]",qe="[object Function]",st="[object GeneratorFunction]",Je="[object Map]",at="[object Number]",Yt="[object Null]",bn="[object Object]",Pt="[object Promise]",cr="[object Proxy]",ln="[object RegExp]",En="[object Set]",Un="[object String]",wr="[object Symbol]",gt="[object Undefined]",He="[object WeakMap]",Lt="[object WeakSet]",zt="[object ArrayBuffer]",An="[object DataView]",ur="[object Float32Array]",nr="[object Float64Array]",fn="[object Int8Array]",Nn="[object Int16Array]",Ln="[object Int32Array]",qt="[object Uint8Array]",an="[object Uint8ClampedArray]",Tr="[object Uint16Array]",Br="[object Uint32Array]",zr=/\b__p \+= '';/g,yi=/\b(__p \+=) '' \+/g,ni=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dn=/&(?:amp|lt|gt|quot|#39);/g,Xi=/[&<>"']/g,ri=RegExp(Dn.source),_s=RegExp(Xi.source),jr=/<%-([\s\S]+?)%>/g,wn=/<%([\s\S]+?)%>/g,ii=/<%=([\s\S]+?)%>/g,Ho=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oi=/^\w*$/,xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rr=/[\\^$.*+?()[\]{}|]/g,si=RegExp(rr.source),Cn=/^\s+/,_n=/\s/,hr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ai=/\{\n\/\* \[wrapped with (.+)\] \*/,ao=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Uo=/[()=,{}\[\]\/\s]/,Hr=/\\(\\)?/g,li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mr=/\w*$/,Rt=/^[-+]0x[0-9a-f]+$/i,wo=/^0b[01]+$/i,dr=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,Gt=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",fr="\\u0300-\\u036f",ir="\\ufe20-\\ufe2f",Fn="\\u20d0-\\u20ff",pr=fr+ir+Fn,pn="\\u2700-\\u27bf",Zi="a-z\\xdf-\\xf6\\xf8-\\xff",Ir="\\xac\\xb1\\xd7\\xf7",Vo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ss="\\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",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",or="\\ufe0e\\ufe0f",Ts=Ir+Vo+Ss+$s,xo="['’]",qo="["+jt+"]",Go="["+Ts+"]",co="["+pr+"]",Ms="\\d+",ca="["+pn+"]",Yo="["+Zi+"]",Xo="[^"+jt+Ts+Ms+pn+Zi+Ko+"]",Is="\\ud83c[\\udffb-\\udfff]",Zo="(?:"+co+"|"+Is+")",Co="[^"+jt+"]",Ri="(?:\\ud83c[\\udde6-\\uddff]){2}",sr="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Ko+"]",Qi="\\u200d",ua="(?:"+Yo+"|"+Xo+")",rl="(?:"+uo+"|"+Xo+")",ko="(?:"+xo+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+xo+"(?:D|LL|M|RE|S|T|VE))?",Ao=Zo+"?",Qo="["+or+"]?",_o="(?:"+Qi+"(?:"+[Co,Ri,sr].join("|")+")"+Qo+Ao+")*",ha="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ho="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=Qo+Ao+_o,da="(?:"+[ca,Ri,sr].join("|")+")"+We,Ne="(?:"+[Co+co+"?",co,Ri,sr,qo].join("|")+")",Rn=RegExp(xo,"g"),So=RegExp(co,"g"),bi=RegExp(Is+"(?="+Is+")|"+Ne+We,"g"),Vn=RegExp([uo+"?"+Yo+"+"+ko+"(?="+[Go,uo,"$"].join("|")+")",rl+"+"+Ji+"(?="+[Go,uo+ua,"$"].join("|")+")",uo+"?"+ua+"+"+ko,uo+"+"+Ji,ho,ha,Ms,da].join("|"),"g"),fa=RegExp("["+Qi+jt+pr+or+"]"),$o=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Oi=["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"],fo=-1,en={};en[ur]=en[nr]=en[fn]=en[Nn]=en[Ln]=en[qt]=en[an]=en[Tr]=en[Br]=!0,en[se]=en[de]=en[zt]=en[Se]=en[An]=en[Te]=en[Xe]=en[qe]=en[Je]=en[at]=en[bn]=en[ln]=en[En]=en[Un]=en[He]=!1;var Qt={};Qt[se]=Qt[de]=Qt[zt]=Qt[An]=Qt[Se]=Qt[Te]=Qt[ur]=Qt[nr]=Qt[fn]=Qt[Nn]=Qt[Ln]=Qt[Je]=Qt[at]=Qt[bn]=Qt[ln]=Qt[En]=Qt[Un]=Qt[wr]=Qt[qt]=Qt[an]=Qt[Tr]=Qt[Br]=!0,Qt[Xe]=Qt[qe]=Qt[He]=!1;var tn={À:"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"},Ht={"&":"&","<":"<",">":">",'"':""","'":"'"},Ni={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},je=parseFloat,mn=parseInt,yt=typeof Bo=="object"&&Bo&&Bo.Object===Object&&Bo,Ur=typeof self=="object"&&self&&self.Object===Object&&self,cn=yt||Ur||Function("return this")(),kn=n&&!n.nodeType&&n,Xn=kn&&!0&&t&&!t.nodeType&&t,Vr=Xn&&Xn.exports===kn,Di=Vr&&yt.process,Wn=(function(){try{var pe=Xn&&Xn.require&&Xn.require("util").types;return pe||Di&&Di.binding&&Di.binding("util")}catch{}})(),ci=Wn&&Wn.isArrayBuffer,Jo=Wn&&Wn.isDate,Bn=Wn&&Wn.isMap,wi=Wn&&Wn.isRegExp,xi=Wn&&Wn.isSet,Fi=Wn&&Wn.isTypedArray;function gr(pe,$e,Ce){switch(Ce.length){case 0:return pe.call($e);case 1:return pe.call($e,Ce[0]);case 2:return pe.call($e,Ce[0],Ce[1]);case 3:return pe.call($e,Ce[0],Ce[1],Ce[2])}return pe.apply($e,Ce)}function mr(pe,$e,Ce,Ue){for(var ct=-1,$t=pe==null?0:pe.length;++ct<$t;){var Xt=pe[ct];$e(Ue,Xt,Ce(Xt),pe)}return Ue}function xr(pe,$e){for(var Ce=-1,Ue=pe==null?0:pe.length;++Ce<Ue&&$e(pe[Ce],Ce,pe)!==!1;);return pe}function Es(pe,$e){for(var Ce=pe==null?0:pe.length;Ce--&&$e(pe[Ce],Ce,pe)!==!1;);return pe}function Cr(pe,$e){for(var Ce=-1,Ue=pe==null?0:pe.length;++Ce<Ue;)if(!$e(pe[Ce],Ce,pe))return!1;return!0}function Er(pe,$e){for(var Ce=-1,Ue=pe==null?0:pe.length,ct=0,$t=[];++Ce<Ue;){var Xt=pe[Ce];$e(Xt,Ce,pe)&&($t[ct++]=Xt)}return $t}function Ci(pe,$e){var Ce=pe==null?0:pe.length;return!!Ce&&le(pe,$e,0)>-1}function ki(pe,$e,Ce){for(var Ue=-1,ct=pe==null?0:pe.length;++Ue<ct;)if(Ce($e,pe[Ue]))return!0;return!1}function y(pe,$e){for(var Ce=-1,Ue=pe==null?0:pe.length,ct=Array(Ue);++Ce<Ue;)ct[Ce]=$e(pe[Ce],Ce,pe);return ct}function $(pe,$e){for(var Ce=-1,Ue=$e.length,ct=pe.length;++Ce<Ue;)pe[ct+Ce]=$e[Ce];return pe}function A(pe,$e,Ce,Ue){var ct=-1,$t=pe==null?0:pe.length;for(Ue&&$t&&(Ce=pe[++ct]);++ct<$t;)Ce=$e(Ce,pe[ct],ct,pe);return Ce}function D(pe,$e,Ce,Ue){var ct=pe==null?0:pe.length;for(Ue&&ct&&(Ce=pe[--ct]);ct--;)Ce=$e(Ce,pe[ct],ct,pe);return Ce}function W(pe,$e){for(var Ce=-1,Ue=pe==null?0:pe.length;++Ce<Ue;)if($e(pe[Ce],Ce,pe))return!0;return!1}var j=we("length");function K(pe){return pe.split("")}function Y(pe){return pe.match(lo)||[]}function Z(pe,$e,Ce){var Ue;return Ce(pe,function(ct,$t,Xt){if($e(ct,$t,Xt))return Ue=$t,!1}),Ue}function re(pe,$e,Ce,Ue){for(var ct=pe.length,$t=Ce+(Ue?1:-1);Ue?$t--:++$t<ct;)if($e(pe[$t],$t,pe))return $t;return-1}function le(pe,$e,Ce){return $e===$e?Qe(pe,$e,Ce):re(pe,ke,Ce)}function be(pe,$e,Ce,Ue){for(var ct=Ce-1,$t=pe.length;++ct<$t;)if(Ue(pe[ct],$e))return ct;return-1}function ke(pe){return pe!==pe}function ve(pe,$e){var Ce=pe==null?0:pe.length;return Ce?ot(pe,$e)/Ce:Q}function we(pe){return function($e){return $e==null?e:$e[pe]}}function Oe(pe){return function($e){return pe==null?e:pe[$e]}}function Re(pe,$e,Ce,Ue,ct){return ct(pe,function($t,Xt,Mt){Ce=Ue?(Ue=!1,$t):$e(Ce,$t,Xt,Mt)}),Ce}function Ve(pe,$e){var Ce=pe.length;for(pe.sort($e);Ce--;)pe[Ce]=pe[Ce].value;return pe}function ot(pe,$e){for(var Ce,Ue=-1,ct=pe.length;++Ue<ct;){var $t=$e(pe[Ue]);$t!==e&&(Ce=Ce===e?$t:Ce+$t)}return Ce}function Ze(pe,$e){for(var Ce=-1,Ue=Array(pe);++Ce<pe;)Ue[Ce]=$e(Ce);return Ue}function et(pe,$e){return y($e,function(Ce){return[Ce,pe[Ce]]})}function vn(pe){return pe&&pe.slice(0,Ot(pe)+1).replace(Cn,"")}function lt(pe){return function($e){return pe($e)}}function Sn(pe,$e){return y($e,function(Ce){return pe[Ce]})}function wt(pe,$e){return pe.has($e)}function St(pe,$e){for(var Ce=-1,Ue=pe.length;++Ce<Ue&&le($e,pe[Ce],0)>-1;);return Ce}function Zn(pe,$e){for(var Ce=pe.length;Ce--&&le($e,pe[Ce],0)>-1;);return Ce}function vr(pe,$e){for(var Ce=pe.length,Ue=0;Ce--;)pe[Ce]===$e&&++Ue;return Ue}var $n=Oe(tn),V=Oe(Ht);function X(pe){return"\\"+Pn[pe]}function ie(pe,$e){return pe==null?e:pe[$e]}function oe(pe){return fa.test(pe)}function ge(pe){return $o.test(pe)}function xe(pe){for(var $e,Ce=[];!($e=pe.next()).done;)Ce.push($e.value);return Ce}function Ie(pe){var $e=-1,Ce=Array(pe.size);return pe.forEach(function(Ue,ct){Ce[++$e]=[ct,Ue]}),Ce}function Pe(pe,$e){return function(Ce){return pe($e(Ce))}}function ze(pe,$e){for(var Ce=-1,Ue=pe.length,ct=0,$t=[];++Ce<Ue;){var Xt=pe[Ce];(Xt===$e||Xt===a)&&(pe[Ce]=a,$t[ct++]=Ce)}return $t}function Ke(pe){var $e=-1,Ce=Array(pe.size);return pe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Ye(pe){var $e=-1,Ce=Array(pe.size);return pe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Qe(pe,$e,Ce){for(var Ue=Ce-1,ct=pe.length;++Ue<ct;)if(pe[Ue]===$e)return Ue;return-1}function bt(pe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(pe[Ue]===$e)return Ue;return Ue}function Ft(pe){return oe(pe)?it(pe):j(pe)}function xt(pe){return oe(pe)?gn(pe):K(pe)}function Ot(pe){for(var $e=pe.length;$e--&&_n.test(pe.charAt($e)););return $e}var ht=Oe(Ni);function it(pe){for(var $e=bi.lastIndex=0;bi.test(pe);)++$e;return $e}function gn(pe){return pe.match(bi)||[]}function Tn(pe){return pe.match(Vn)||[]}var Qn=(function pe($e){$e=$e==null?cn:Vt.defaults(cn.Object(),$e,Vt.pick(cn,Oi));var Ce=$e.Array,Ue=$e.Date,ct=$e.Error,$t=$e.Function,Xt=$e.Math,Mt=$e.Object,Kr=$e.RegExp,Pi=$e.String,un=$e.TypeError,yr=Ce.prototype,To=$t.prototype,zn=Mt.prototype,Ls=$e["__core-js_shared__"],kc=To.toString,rn=zn.hasOwnProperty,BM=0,Qy=(function(){var o=/[^.]+$/.exec(Ls&&Ls.keys&&Ls.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Ac=zn.toString,zM=kc.call(Mt),jM=cn._,HM=Kr("^"+kc.call(rn).replace(rr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_c=Vr?$e.Buffer:e,es=$e.Symbol,Sc=$e.Uint8Array,Jy=_c?_c.allocUnsafe:e,$c=Pe(Mt.getPrototypeOf,Mt),eb=Mt.create,tb=zn.propertyIsEnumerable,Tc=yr.splice,nb=es?es.isConcatSpreadable:e,il=es?es.iterator:e,Rs=es?es.toStringTag:e,Mc=(function(){try{var o=Ps(Mt,"defineProperty");return o({},"",{}),o}catch{}})(),UM=$e.clearTimeout!==cn.clearTimeout&&$e.clearTimeout,VM=Ue&&Ue.now!==cn.Date.now&&Ue.now,KM=$e.setTimeout!==cn.setTimeout&&$e.setTimeout,Ic=Xt.ceil,Ec=Xt.floor,wd=Mt.getOwnPropertySymbols,qM=_c?_c.isBuffer:e,rb=$e.isFinite,GM=yr.join,YM=Pe(Mt.keys,Mt),ar=Xt.max,Lr=Xt.min,XM=Ue.now,ZM=$e.parseInt,ib=Xt.random,QM=yr.reverse,xd=Ps($e,"DataView"),ol=Ps($e,"Map"),Cd=Ps($e,"Promise"),pa=Ps($e,"Set"),sl=Ps($e,"WeakMap"),al=Ps(Mt,"create"),Lc=sl&&new sl,ga={},JM=Ws(xd),eI=Ws(ol),tI=Ws(Cd),nI=Ws(pa),rI=Ws(sl),Rc=es?es.prototype:e,ll=Rc?Rc.valueOf:e,ob=Rc?Rc.toString:e;function ee(o){if(jn(o)&&!kt(o)&&!(o instanceof Ut)){if(o instanceof Wi)return o;if(rn.call(o,"__wrapped__"))return s0(o)}return new Wi(o)}var ma=(function(){function o(){}return function(m){if(!On(m))return{};if(eb)return eb(m);o.prototype=m;var M=new o;return o.prototype=e,M}})();function Oc(){}function Wi(o,m){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=e}ee.templateSettings={escape:jr,evaluate:wn,interpolate:ii,variable:"",imports:{_:ee}},ee.prototype=Oc.prototype,ee.prototype.constructor=ee,Wi.prototype=ma(Oc.prototype),Wi.prototype.constructor=Wi;function Ut(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function iI(){var o=new Ut(this.__wrapped__);return o.__actions__=ui(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=ui(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=ui(this.__views__),o}function oI(){if(this.__filtered__){var o=new Ut(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function sI(){var o=this.__wrapped__.value(),m=this.__dir__,M=kt(o),H=m<0,G=M?o.length:0,te=yE(0,G,this.__views__),ue=te.start,fe=te.end,ye=fe-ue,Ee=H?fe:ue-1,Le=this.__iteratees__,De=Le.length,Ge=0,rt=Lr(ye,this.__takeCount__);if(!M||!H&&G==ye&&rt==ye)return Mb(o,this.__actions__);var ft=[];e:for(;ye--&&Ge<rt;){Ee+=m;for(var It=-1,pt=o[Ee];++It<De;){var Wt=Le[It],Kt=Wt.iteratee,Si=Wt.type,Yr=Kt(pt);if(Si==k)pt=Yr;else if(!Yr){if(Si==S)continue e;break e}}ft[Ge++]=pt}return ft}Ut.prototype=ma(Oc.prototype),Ut.prototype.constructor=Ut;function Os(o){var m=-1,M=o==null?0:o.length;for(this.clear();++m<M;){var H=o[m];this.set(H[0],H[1])}}function aI(){this.__data__=al?al(null):{},this.size=0}function lI(o){var m=this.has(o)&&delete this.__data__[o];return this.size-=m?1:0,m}function cI(o){var m=this.__data__;if(al){var M=m[o];return M===h?e:M}return rn.call(m,o)?m[o]:e}function uI(o){var m=this.__data__;return al?m[o]!==e:rn.call(m,o)}function hI(o,m){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=al&&m===e?h:m,this}Os.prototype.clear=aI,Os.prototype.delete=lI,Os.prototype.get=cI,Os.prototype.has=uI,Os.prototype.set=hI;function Mo(o){var m=-1,M=o==null?0:o.length;for(this.clear();++m<M;){var H=o[m];this.set(H[0],H[1])}}function dI(){this.__data__=[],this.size=0}function fI(o){var m=this.__data__,M=Nc(m,o);if(M<0)return!1;var H=m.length-1;return M==H?m.pop():Tc.call(m,M,1),--this.size,!0}function pI(o){var m=this.__data__,M=Nc(m,o);return M<0?e:m[M][1]}function gI(o){return Nc(this.__data__,o)>-1}function mI(o,m){var M=this.__data__,H=Nc(M,o);return H<0?(++this.size,M.push([o,m])):M[H][1]=m,this}Mo.prototype.clear=dI,Mo.prototype.delete=fI,Mo.prototype.get=pI,Mo.prototype.has=gI,Mo.prototype.set=mI;function Io(o){var m=-1,M=o==null?0:o.length;for(this.clear();++m<M;){var H=o[m];this.set(H[0],H[1])}}function vI(){this.size=0,this.__data__={hash:new Os,map:new(ol||Mo),string:new Os}}function yI(o){var m=qc(this,o).delete(o);return this.size-=m?1:0,m}function bI(o){return qc(this,o).get(o)}function wI(o){return qc(this,o).has(o)}function xI(o,m){var M=qc(this,o),H=M.size;return M.set(o,m),this.size+=M.size==H?0:1,this}Io.prototype.clear=vI,Io.prototype.delete=yI,Io.prototype.get=bI,Io.prototype.has=wI,Io.prototype.set=xI;function Ns(o){var m=-1,M=o==null?0:o.length;for(this.__data__=new Io;++m<M;)this.add(o[m])}function CI(o){return this.__data__.set(o,h),this}function kI(o){return this.__data__.has(o)}Ns.prototype.add=Ns.prototype.push=CI,Ns.prototype.has=kI;function eo(o){var m=this.__data__=new Mo(o);this.size=m.size}function AI(){this.__data__=new Mo,this.size=0}function _I(o){var m=this.__data__,M=m.delete(o);return this.size=m.size,M}function SI(o){return this.__data__.get(o)}function $I(o){return this.__data__.has(o)}function TI(o,m){var M=this.__data__;if(M instanceof Mo){var H=M.__data__;if(!ol||H.length<v-1)return H.push([o,m]),this.size=++M.size,this;M=this.__data__=new Io(H)}return M.set(o,m),this.size=M.size,this}eo.prototype.clear=AI,eo.prototype.delete=_I,eo.prototype.get=SI,eo.prototype.has=$I,eo.prototype.set=TI;function sb(o,m){var M=kt(o),H=!M&&Bs(o),G=!M&&!H&&os(o),te=!M&&!H&&!G&&wa(o),ue=M||H||G||te,fe=ue?Ze(o.length,Pi):[],ye=fe.length;for(var Ee in o)(m||rn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Oo(Ee,ye)))&&fe.push(Ee);return fe}function ab(o){var m=o.length;return m?o[Rd(0,m-1)]:e}function MI(o,m){return Gc(ui(o),Ds(m,0,o.length))}function II(o){return Gc(ui(o))}function kd(o,m,M){(M!==e&&!to(o[m],M)||M===e&&!(m in o))&&Eo(o,m,M)}function cl(o,m,M){var H=o[m];(!(rn.call(o,m)&&to(H,M))||M===e&&!(m in o))&&Eo(o,m,M)}function Nc(o,m){for(var M=o.length;M--;)if(to(o[M][0],m))return M;return-1}function EI(o,m,M,H){return ts(o,function(G,te,ue){m(H,G,M(G),ue)}),H}function lb(o,m){return o&&go(m,br(m),o)}function LI(o,m){return o&&go(m,di(m),o)}function Eo(o,m,M){m=="__proto__"&&Mc?Mc(o,m,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[m]=M}function Ad(o,m){for(var M=-1,H=m.length,G=Ce(H),te=o==null;++M<H;)G[M]=te?e:of(o,m[M]);return G}function Ds(o,m,M){return o===o&&(M!==e&&(o=o<=M?o:M),m!==e&&(o=o>=m?o:m)),o}function Bi(o,m,M,H,G,te){var ue,fe=m&l,ye=m&u,Ee=m&c;if(M&&(ue=G?M(o,H,G,te):M(o)),ue!==e)return ue;if(!On(o))return o;var Le=kt(o);if(Le){if(ue=wE(o),!fe)return ui(o,ue)}else{var De=Rr(o),Ge=De==qe||De==st;if(os(o))return Lb(o,fe);if(De==bn||De==se||Ge&&!G){if(ue=ye||Ge?{}:Zb(o),!fe)return ye?cE(o,LI(ue,o)):lE(o,lb(ue,o))}else{if(!Qt[De])return G?o:{};ue=xE(o,De,fe)}}te||(te=new eo);var rt=te.get(o);if(rt)return rt;te.set(o,ue),S0(o)?o.forEach(function(pt){ue.add(Bi(pt,m,M,pt,o,te))}):A0(o)&&o.forEach(function(pt,Wt){ue.set(Wt,Bi(pt,m,M,Wt,o,te))});var ft=Ee?ye?Ud:Hd:ye?di:br,It=Le?e:ft(o);return xr(It||o,function(pt,Wt){It&&(Wt=pt,pt=o[Wt]),cl(ue,Wt,Bi(pt,m,M,Wt,o,te))}),ue}function RI(o){var m=br(o);return function(M){return cb(M,o,m)}}function cb(o,m,M){var H=M.length;if(o==null)return!H;for(o=Mt(o);H--;){var G=M[H],te=m[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function ub(o,m,M){if(typeof o!="function")throw new un(g);return ml(function(){o.apply(e,M)},m)}function ul(o,m,M,H){var G=-1,te=Ci,ue=!0,fe=o.length,ye=[],Ee=m.length;if(!fe)return ye;M&&(m=y(m,lt(M))),H?(te=ki,ue=!1):m.length>=v&&(te=wt,ue=!1,m=new Ns(m));e:for(;++G<fe;){var Le=o[G],De=M==null?Le:M(Le);if(Le=H||Le!==0?Le:0,ue&&De===De){for(var Ge=Ee;Ge--;)if(m[Ge]===De)continue e;ye.push(Le)}else te(m,De,H)||ye.push(Le)}return ye}var ts=Fb(po),hb=Fb(Sd,!0);function OI(o,m){var M=!0;return ts(o,function(H,G,te){return M=!!m(H,G,te),M}),M}function Dc(o,m,M){for(var H=-1,G=o.length;++H<G;){var te=o[H],ue=m(te);if(ue!=null&&(fe===e?ue===ue&&!_i(ue):M(ue,fe)))var fe=ue,ye=te}return ye}function NI(o,m,M,H){var G=o.length;for(M=Tt(M),M<0&&(M=-M>G?0:G+M),H=H===e||H>G?G:Tt(H),H<0&&(H+=G),H=M>H?0:T0(H);M<H;)o[M++]=m;return o}function db(o,m){var M=[];return ts(o,function(H,G,te){m(H,G,te)&&M.push(H)}),M}function kr(o,m,M,H,G){var te=-1,ue=o.length;for(M||(M=kE),G||(G=[]);++te<ue;){var fe=o[te];m>0&&M(fe)?m>1?kr(fe,m-1,M,H,G):$(G,fe):H||(G[G.length]=fe)}return G}var _d=Pb(),fb=Pb(!0);function po(o,m){return o&&_d(o,m,br)}function Sd(o,m){return o&&fb(o,m,br)}function Fc(o,m){return Er(m,function(M){return No(o[M])})}function Fs(o,m){m=rs(m,o);for(var M=0,H=m.length;o!=null&&M<H;)o=o[mo(m[M++])];return M&&M==H?o:e}function pb(o,m,M){var H=m(o);return kt(o)?H:$(H,M(o))}function qr(o){return o==null?o===e?gt:Yt:Rs&&Rs in Mt(o)?vE(o):IE(o)}function $d(o,m){return o>m}function DI(o,m){return o!=null&&rn.call(o,m)}function FI(o,m){return o!=null&&m in Mt(o)}function PI(o,m,M){return o>=Lr(m,M)&&o<ar(m,M)}function Td(o,m,M){for(var H=M?ki:Ci,G=o[0].length,te=o.length,ue=te,fe=Ce(te),ye=1/0,Ee=[];ue--;){var Le=o[ue];ue&&m&&(Le=y(Le,lt(m))),ye=Lr(Le.length,ye),fe[ue]=!M&&(m||G>=120&&Le.length>=120)?new Ns(ue&&Le):e}Le=o[0];var De=-1,Ge=fe[0];e:for(;++De<G&&Ee.length<ye;){var rt=Le[De],ft=m?m(rt):rt;if(rt=M||rt!==0?rt:0,!(Ge?wt(Ge,ft):H(Ee,ft,M))){for(ue=te;--ue;){var It=fe[ue];if(!(It?wt(It,ft):H(o[ue],ft,M)))continue e}Ge&&Ge.push(ft),Ee.push(rt)}}return Ee}function WI(o,m,M,H){return po(o,function(G,te,ue){m(H,M(G),te,ue)}),H}function hl(o,m,M){m=rs(m,o),o=t0(o,m);var H=o==null?o:o[mo(ji(m))];return H==null?e:gr(H,o,M)}function gb(o){return jn(o)&&qr(o)==se}function BI(o){return jn(o)&&qr(o)==zt}function zI(o){return jn(o)&&qr(o)==Te}function dl(o,m,M,H,G){return o===m?!0:o==null||m==null||!jn(o)&&!jn(m)?o!==o&&m!==m:jI(o,m,M,H,dl,G)}function jI(o,m,M,H,G,te){var ue=kt(o),fe=kt(m),ye=ue?de:Rr(o),Ee=fe?de:Rr(m);ye=ye==se?bn:ye,Ee=Ee==se?bn:Ee;var Le=ye==bn,De=Ee==bn,Ge=ye==Ee;if(Ge&&os(o)){if(!os(m))return!1;ue=!0,Le=!1}if(Ge&&!Le)return te||(te=new eo),ue||wa(o)?Gb(o,m,M,H,G,te):gE(o,m,ye,M,H,G,te);if(!(M&i)){var rt=Le&&rn.call(o,"__wrapped__"),ft=De&&rn.call(m,"__wrapped__");if(rt||ft){var It=rt?o.value():o,pt=ft?m.value():m;return te||(te=new eo),G(It,pt,M,H,te)}}return Ge?(te||(te=new eo),mE(o,m,M,H,G,te)):!1}function HI(o){return jn(o)&&Rr(o)==Je}function Md(o,m,M,H){var G=M.length,te=G,ue=!H;if(o==null)return!te;for(o=Mt(o);G--;){var fe=M[G];if(ue&&fe[2]?fe[1]!==o[fe[0]]:!(fe[0]in o))return!1}for(;++G<te;){fe=M[G];var ye=fe[0],Ee=o[ye],Le=fe[1];if(ue&&fe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new eo;if(H)var Ge=H(Ee,Le,ye,o,m,De);if(!(Ge===e?dl(Le,Ee,i|s,H,De):Ge))return!1}}return!0}function mb(o){if(!On(o)||_E(o))return!1;var m=No(o)?HM:dr;return m.test(Ws(o))}function UI(o){return jn(o)&&qr(o)==ln}function VI(o){return jn(o)&&Rr(o)==En}function KI(o){return jn(o)&&eu(o.length)&&!!en[qr(o)]}function vb(o){return typeof o=="function"?o:o==null?fi:typeof o=="object"?kt(o)?wb(o[0],o[1]):bb(o):W0(o)}function Id(o){if(!gl(o))return YM(o);var m=[];for(var M in Mt(o))rn.call(o,M)&&M!="constructor"&&m.push(M);return m}function qI(o){if(!On(o))return ME(o);var m=gl(o),M=[];for(var H in o)H=="constructor"&&(m||!rn.call(o,H))||M.push(H);return M}function Ed(o,m){return o<m}function yb(o,m){var M=-1,H=hi(o)?Ce(o.length):[];return ts(o,function(G,te,ue){H[++M]=m(G,te,ue)}),H}function bb(o){var m=Kd(o);return m.length==1&&m[0][2]?Jb(m[0][0],m[0][1]):function(M){return M===o||Md(M,o,m)}}function wb(o,m){return Gd(o)&&Qb(m)?Jb(mo(o),m):function(M){var H=of(M,o);return H===e&&H===m?sf(M,o):dl(m,H,i|s)}}function Pc(o,m,M,H,G){o!==m&&_d(m,function(te,ue){if(G||(G=new eo),On(te))GI(o,m,ue,M,Pc,H,G);else{var fe=H?H(Xd(o,ue),te,ue+"",o,m,G):e;fe===e&&(fe=te),kd(o,ue,fe)}},di)}function GI(o,m,M,H,G,te,ue){var fe=Xd(o,M),ye=Xd(m,M),Ee=ue.get(ye);if(Ee){kd(o,M,Ee);return}var Le=te?te(fe,ye,M+"",o,m,ue):e,De=Le===e;if(De){var Ge=kt(ye),rt=!Ge&&os(ye),ft=!Ge&&!rt&&wa(ye);Le=ye,Ge||rt||ft?kt(fe)?Le=fe:Kn(fe)?Le=ui(fe):rt?(De=!1,Le=Lb(ye,!0)):ft?(De=!1,Le=Rb(ye,!0)):Le=[]:vl(ye)||Bs(ye)?(Le=fe,Bs(fe)?Le=M0(fe):(!On(fe)||No(fe))&&(Le=Zb(ye))):De=!1}De&&(ue.set(ye,Le),G(Le,ye,H,te,ue),ue.delete(ye)),kd(o,M,Le)}function xb(o,m){var M=o.length;if(M)return m+=m<0?M:0,Oo(m,M)?o[m]:e}function Cb(o,m,M){m.length?m=y(m,function(te){return kt(te)?function(ue){return Fs(ue,te.length===1?te[0]:te)}:te}):m=[fi];var H=-1;m=y(m,lt(dt()));var G=yb(o,function(te,ue,fe){var ye=y(m,function(Ee){return Ee(te)});return{criteria:ye,index:++H,value:te}});return Ve(G,function(te,ue){return aE(te,ue,M)})}function YI(o,m){return kb(o,m,function(M,H){return sf(o,H)})}function kb(o,m,M){for(var H=-1,G=m.length,te={};++H<G;){var ue=m[H],fe=Fs(o,ue);M(fe,ue)&&fl(te,rs(ue,o),fe)}return te}function XI(o){return function(m){return Fs(m,o)}}function Ld(o,m,M,H){var G=H?be:le,te=-1,ue=m.length,fe=o;for(o===m&&(m=ui(m)),M&&(fe=y(o,lt(M)));++te<ue;)for(var ye=0,Ee=m[te],Le=M?M(Ee):Ee;(ye=G(fe,Le,ye,H))>-1;)fe!==o&&Tc.call(fe,ye,1),Tc.call(o,ye,1);return o}function Ab(o,m){for(var M=o?m.length:0,H=M-1;M--;){var G=m[M];if(M==H||G!==te){var te=G;Oo(G)?Tc.call(o,G,1):Dd(o,G)}}return o}function Rd(o,m){return o+Ec(ib()*(m-o+1))}function ZI(o,m,M,H){for(var G=-1,te=ar(Ic((m-o)/(M||1)),0),ue=Ce(te);te--;)ue[H?te:++G]=o,o+=M;return ue}function Od(o,m){var M="";if(!o||m<1||m>U)return M;do m%2&&(M+=o),m=Ec(m/2),m&&(o+=o);while(m);return M}function Nt(o,m){return Zd(e0(o,m,fi),o+"")}function QI(o){return ab(xa(o))}function JI(o,m){var M=xa(o);return Gc(M,Ds(m,0,M.length))}function fl(o,m,M,H){if(!On(o))return o;m=rs(m,o);for(var G=-1,te=m.length,ue=te-1,fe=o;fe!=null&&++G<te;){var ye=mo(m[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Le=fe[ye];Ee=H?H(Le,ye,fe):e,Ee===e&&(Ee=On(Le)?Le:Oo(m[G+1])?[]:{})}cl(fe,ye,Ee),fe=fe[ye]}return o}var _b=Lc?function(o,m){return Lc.set(o,m),o}:fi,eE=Mc?function(o,m){return Mc(o,"toString",{configurable:!0,enumerable:!1,value:lf(m),writable:!0})}:fi;function tE(o){return Gc(xa(o))}function zi(o,m,M){var H=-1,G=o.length;m<0&&(m=-m>G?0:G+m),M=M>G?G:M,M<0&&(M+=G),G=m>M?0:M-m>>>0,m>>>=0;for(var te=Ce(G);++H<G;)te[H]=o[H+m];return te}function nE(o,m){var M;return ts(o,function(H,G,te){return M=m(H,G,te),!M}),!!M}function Wc(o,m,M){var H=0,G=o==null?H:o.length;if(typeof m=="number"&&m===m&&G<=ne){for(;H<G;){var te=H+G>>>1,ue=o[te];ue!==null&&!_i(ue)&&(M?ue<=m:ue<m)?H=te+1:G=te}return G}return Nd(o,m,fi,M)}function Nd(o,m,M,H){var G=0,te=o==null?0:o.length;if(te===0)return 0;m=M(m);for(var ue=m!==m,fe=m===null,ye=_i(m),Ee=m===e;G<te;){var Le=Ec((G+te)/2),De=M(o[Le]),Ge=De!==e,rt=De===null,ft=De===De,It=_i(De);if(ue)var pt=H||ft;else Ee?pt=ft&&(H||Ge):fe?pt=ft&&Ge&&(H||!rt):ye?pt=ft&&Ge&&!rt&&(H||!It):rt||It?pt=!1:pt=H?De<=m:De<m;pt?G=Le+1:te=Le}return Lr(te,he)}function Sb(o,m){for(var M=-1,H=o.length,G=0,te=[];++M<H;){var ue=o[M],fe=m?m(ue):ue;if(!M||!to(fe,ye)){var ye=fe;te[G++]=ue===0?0:ue}}return te}function $b(o){return typeof o=="number"?o:_i(o)?Q:+o}function Ai(o){if(typeof o=="string")return o;if(kt(o))return y(o,Ai)+"";if(_i(o))return ob?ob.call(o):"";var m=o+"";return m=="0"&&1/o==-B?"-0":m}function ns(o,m,M){var H=-1,G=Ci,te=o.length,ue=!0,fe=[],ye=fe;if(M)ue=!1,G=ki;else if(te>=v){var Ee=m?null:fE(o);if(Ee)return Ke(Ee);ue=!1,G=wt,ye=new Ns}else ye=m?[]:fe;e:for(;++H<te;){var Le=o[H],De=m?m(Le):Le;if(Le=M||Le!==0?Le:0,ue&&De===De){for(var Ge=ye.length;Ge--;)if(ye[Ge]===De)continue e;m&&ye.push(De),fe.push(Le)}else G(ye,De,M)||(ye!==fe&&ye.push(De),fe.push(Le))}return fe}function Dd(o,m){m=rs(m,o);var M=-1,H=m.length;if(!H)return!0;for(var G=o==null||typeof o!="object"&&typeof o!="function";++M<H;){var te=m[M];if(typeof te=="string"){if(te==="__proto__"&&!rn.call(o,"__proto__"))return!1;if(te==="constructor"&&M+1<H&&typeof m[M+1]=="string"&&m[M+1]==="prototype"){if(G&&M===0)continue;return!1}}}var ue=t0(o,m);return ue==null||delete ue[mo(ji(m))]}function Tb(o,m,M,H){return fl(o,m,M(Fs(o,m)),H)}function Bc(o,m,M,H){for(var G=o.length,te=H?G:-1;(H?te--:++te<G)&&m(o[te],te,o););return M?zi(o,H?0:te,H?te+1:G):zi(o,H?te+1:0,H?G:te)}function Mb(o,m){var M=o;return M instanceof Ut&&(M=M.value()),A(m,function(H,G){return G.func.apply(G.thisArg,$([H],G.args))},M)}function Fd(o,m,M){var H=o.length;if(H<2)return H?ns(o[0]):[];for(var G=-1,te=Ce(H);++G<H;)for(var ue=o[G],fe=-1;++fe<H;)fe!=G&&(te[G]=ul(te[G]||ue,o[fe],m,M));return ns(kr(te,1),m,M)}function Ib(o,m,M){for(var H=-1,G=o.length,te=m.length,ue={};++H<G;){var fe=H<te?m[H]:e;M(ue,o[H],fe)}return ue}function Pd(o){return Kn(o)?o:[]}function Wd(o){return typeof o=="function"?o:fi}function rs(o,m){return kt(o)?o:Gd(o,m)?[o]:o0(on(o))}var rE=Nt;function is(o,m,M){var H=o.length;return M=M===e?H:M,!m&&M>=H?o:zi(o,m,M)}var Eb=UM||function(o){return cn.clearTimeout(o)};function Lb(o,m){if(m)return o.slice();var M=o.length,H=Jy?Jy(M):new o.constructor(M);return o.copy(H),H}function Bd(o){var m=new o.constructor(o.byteLength);return new Sc(m).set(new Sc(o)),m}function iE(o,m){var M=m?Bd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function oE(o){var m=new o.constructor(o.source,Mr.exec(o));return m.lastIndex=o.lastIndex,m}function sE(o){return ll?Mt(ll.call(o)):{}}function Rb(o,m){var M=m?Bd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Ob(o,m){if(o!==m){var M=o!==e,H=o===null,G=o===o,te=_i(o),ue=m!==e,fe=m===null,ye=m===m,Ee=_i(m);if(!fe&&!Ee&&!te&&o>m||te&&ue&&ye&&!fe&&!Ee||H&&ue&&ye||!M&&ye||!G)return 1;if(!H&&!te&&!Ee&&o<m||Ee&&M&&G&&!H&&!te||fe&&M&&G||!ue&&G||!ye)return-1}return 0}function aE(o,m,M){for(var H=-1,G=o.criteria,te=m.criteria,ue=G.length,fe=M.length;++H<ue;){var ye=Ob(G[H],te[H]);if(ye){if(H>=fe)return ye;var Ee=M[H];return ye*(Ee=="desc"?-1:1)}}return o.index-m.index}function Nb(o,m,M,H){for(var G=-1,te=o.length,ue=M.length,fe=-1,ye=m.length,Ee=ar(te-ue,0),Le=Ce(ye+Ee),De=!H;++fe<ye;)Le[fe]=m[fe];for(;++G<ue;)(De||G<te)&&(Le[M[G]]=o[G]);for(;Ee--;)Le[fe++]=o[G++];return Le}function Db(o,m,M,H){for(var G=-1,te=o.length,ue=-1,fe=M.length,ye=-1,Ee=m.length,Le=ar(te-fe,0),De=Ce(Le+Ee),Ge=!H;++G<Le;)De[G]=o[G];for(var rt=G;++ye<Ee;)De[rt+ye]=m[ye];for(;++ue<fe;)(Ge||G<te)&&(De[rt+M[ue]]=o[G++]);return De}function ui(o,m){var M=-1,H=o.length;for(m||(m=Ce(H));++M<H;)m[M]=o[M];return m}function go(o,m,M,H){var G=!M;M||(M={});for(var te=-1,ue=m.length;++te<ue;){var fe=m[te],ye=H?H(M[fe],o[fe],fe,M,o):e;ye===e&&(ye=o[fe]),G?Eo(M,fe,ye):cl(M,fe,ye)}return M}function lE(o,m){return go(o,qd(o),m)}function cE(o,m){return go(o,Yb(o),m)}function zc(o,m){return function(M,H){var G=kt(M)?mr:EI,te=m?m():{};return G(M,o,dt(H,2),te)}}function va(o){return Nt(function(m,M){var H=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&Gr(M[0],M[1],ue)&&(te=G<3?e:te,G=1),m=Mt(m);++H<G;){var fe=M[H];fe&&o(m,fe,H,te)}return m})}function Fb(o,m){return function(M,H){if(M==null)return M;if(!hi(M))return o(M,H);for(var G=M.length,te=m?G:-1,ue=Mt(M);(m?te--:++te<G)&&H(ue[te],te,ue)!==!1;);return M}}function Pb(o){return function(m,M,H){for(var G=-1,te=Mt(m),ue=H(m),fe=ue.length;fe--;){var ye=ue[o?fe:++G];if(M(te[ye],ye,te)===!1)break}return m}}function uE(o,m,M){var H=m&f,G=pl(o);function te(){var ue=this&&this!==cn&&this instanceof te?G:o;return ue.apply(H?M:this,arguments)}return te}function Wb(o){return function(m){m=on(m);var M=oe(m)?xt(m):e,H=M?M[0]:m.charAt(0),G=M?is(M,1).join(""):m.slice(1);return H[o]()+G}}function ya(o){return function(m){return A(F0(D0(m).replace(Rn,"")),o,"")}}function pl(o){return function(){var m=arguments;switch(m.length){case 0:return new o;case 1:return new o(m[0]);case 2:return new o(m[0],m[1]);case 3:return new o(m[0],m[1],m[2]);case 4:return new o(m[0],m[1],m[2],m[3]);case 5:return new o(m[0],m[1],m[2],m[3],m[4]);case 6:return new o(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new o(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var M=ma(o.prototype),H=o.apply(M,m);return On(H)?H:M}}function hE(o,m,M){var H=pl(o);function G(){for(var te=arguments.length,ue=Ce(te),fe=te,ye=ba(G);fe--;)ue[fe]=arguments[fe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:ze(ue,ye);if(te-=Ee.length,te<M)return Ub(o,m,jc,G.placeholder,e,ue,Ee,e,e,M-te);var Le=this&&this!==cn&&this instanceof G?H:o;return gr(Le,this,ue)}return G}function Bb(o){return function(m,M,H){var G=Mt(m);if(!hi(m)){var te=dt(M,3);m=br(m),M=function(fe){return te(G[fe],fe,G)}}var ue=o(m,M,H);return ue>-1?G[te?m[ue]:ue]:e}}function zb(o){return Ro(function(m){var M=m.length,H=M,G=Wi.prototype.thru;for(o&&m.reverse();H--;){var te=m[H];if(typeof te!="function")throw new un(g);if(G&&!ue&&Kc(te)=="wrapper")var ue=new Wi([],!0)}for(H=ue?H:M;++H<M;){te=m[H];var fe=Kc(te),ye=fe=="wrapper"?Vd(te):e;ye&&Yd(ye[0])&&ye[1]==(L|O|_|F)&&!ye[4].length&&ye[9]==1?ue=ue[Kc(ye[0])].apply(ue,ye[3]):ue=te.length==1&&Yd(te)?ue[fe]():ue.thru(te)}return function(){var Ee=arguments,Le=Ee[0];if(ue&&Ee.length==1&&kt(Le))return ue.plant(Le).value();for(var De=0,Ge=M?m[De].apply(this,Ee):Le;++De<M;)Ge=m[De].call(this,Ge);return Ge}})}function jc(o,m,M,H,G,te,ue,fe,ye,Ee){var Le=m&L,De=m&f,Ge=m&b,rt=m&(O|T),ft=m&E,It=Ge?e:pl(o);function pt(){for(var Wt=arguments.length,Kt=Ce(Wt),Si=Wt;Si--;)Kt[Si]=arguments[Si];if(rt)var Yr=ba(pt),$i=vr(Kt,Yr);if(H&&(Kt=Nb(Kt,H,G,rt)),te&&(Kt=Db(Kt,te,ue,rt)),Wt-=$i,rt&&Wt<Ee){var qn=ze(Kt,Yr);return Ub(o,m,jc,pt.placeholder,M,Kt,qn,fe,ye,Ee-Wt)}var no=De?M:this,Fo=Ge?no[o]:o;return Wt=Kt.length,fe?Kt=EE(Kt,fe):ft&&Wt>1&&Kt.reverse(),Le&&ye<Wt&&(Kt.length=ye),this&&this!==cn&&this instanceof pt&&(Fo=It||pl(Fo)),Fo.apply(no,Kt)}return pt}function jb(o,m){return function(M,H){return WI(M,o,m(H),{})}}function Hc(o,m){return function(M,H){var G;if(M===e&&H===e)return m;if(M!==e&&(G=M),H!==e){if(G===e)return H;typeof M=="string"||typeof H=="string"?(M=Ai(M),H=Ai(H)):(M=$b(M),H=$b(H)),G=o(M,H)}return G}}function zd(o){return Ro(function(m){return m=y(m,lt(dt())),Nt(function(M){var H=this;return o(m,function(G){return gr(G,H,M)})})})}function Uc(o,m){m=m===e?" ":Ai(m);var M=m.length;if(M<2)return M?Od(m,o):m;var H=Od(m,Ic(o/Ft(m)));return oe(m)?is(xt(H),0,o).join(""):H.slice(0,o)}function dE(o,m,M,H){var G=m&f,te=pl(o);function ue(){for(var fe=-1,ye=arguments.length,Ee=-1,Le=H.length,De=Ce(Le+ye),Ge=this&&this!==cn&&this instanceof ue?te:o;++Ee<Le;)De[Ee]=H[Ee];for(;ye--;)De[Ee++]=arguments[++fe];return gr(Ge,G?M:this,De)}return ue}function Hb(o){return function(m,M,H){return H&&typeof H!="number"&&Gr(m,M,H)&&(M=H=e),m=Do(m),M===e?(M=m,m=0):M=Do(M),H=H===e?m<M?1:-1:Do(H),ZI(m,M,H,o)}}function Vc(o){return function(m,M){return typeof m=="string"&&typeof M=="string"||(m=Hi(m),M=Hi(M)),o(m,M)}}function Ub(o,m,M,H,G,te,ue,fe,ye,Ee){var Le=m&O,De=Le?ue:e,Ge=Le?e:ue,rt=Le?te:e,ft=Le?e:te;m|=Le?_:C,m&=~(Le?C:_),m&x||(m&=-4);var It=[o,m,G,rt,De,ft,Ge,fe,ye,Ee],pt=M.apply(e,It);return Yd(o)&&n0(pt,It),pt.placeholder=H,r0(pt,o,m)}function jd(o){var m=Xt[o];return function(M,H){if(M=Hi(M),H=H==null?0:Lr(Tt(H),292),H&&rb(M)){var G=(on(M)+"e").split("e"),te=m(G[0]+"e"+(+G[1]+H));return G=(on(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-H))}return m(M)}}var fE=pa&&1/Ke(new pa([,-0]))[1]==B?function(o){return new pa(o)}:hf;function Vb(o){return function(m){var M=Rr(m);return M==Je?Ie(m):M==En?Ye(m):et(m,o(m))}}function Lo(o,m,M,H,G,te,ue,fe){var ye=m&b;if(!ye&&typeof o!="function")throw new un(g);var Ee=H?H.length:0;if(Ee||(m&=-97,H=G=e),ue=ue===e?ue:ar(Tt(ue),0),fe=fe===e?fe:Tt(fe),Ee-=G?G.length:0,m&C){var Le=H,De=G;H=G=e}var Ge=ye?e:Vd(o),rt=[o,m,M,H,G,Le,De,te,ue,fe];if(Ge&&TE(rt,Ge),o=rt[0],m=rt[1],M=rt[2],H=rt[3],G=rt[4],fe=rt[9]=rt[9]===e?ye?0:o.length:ar(rt[9]-Ee,0),!fe&&m&(O|T)&&(m&=-25),!m||m==f)var ft=uE(o,m,M);else m==O||m==T?ft=hE(o,m,fe):(m==_||m==(f|_))&&!G.length?ft=dE(o,m,M,H):ft=jc.apply(e,rt);var It=Ge?_b:n0;return r0(It(ft,rt),o,m)}function Kb(o,m,M,H){return o===e||to(o,zn[M])&&!rn.call(H,M)?m:o}function qb(o,m,M,H,G,te){return On(o)&&On(m)&&(te.set(m,o),Pc(o,m,e,qb,te),te.delete(m)),o}function pE(o){return vl(o)?e:o}function Gb(o,m,M,H,G,te){var ue=M&i,fe=o.length,ye=m.length;if(fe!=ye&&!(ue&&ye>fe))return!1;var Ee=te.get(o),Le=te.get(m);if(Ee&&Le)return Ee==m&&Le==o;var De=-1,Ge=!0,rt=M&s?new Ns:e;for(te.set(o,m),te.set(m,o);++De<fe;){var ft=o[De],It=m[De];if(H)var pt=ue?H(It,ft,De,m,o,te):H(ft,It,De,o,m,te);if(pt!==e){if(pt)continue;Ge=!1;break}if(rt){if(!W(m,function(Wt,Kt){if(!wt(rt,Kt)&&(ft===Wt||G(ft,Wt,M,H,te)))return rt.push(Kt)})){Ge=!1;break}}else if(!(ft===It||G(ft,It,M,H,te))){Ge=!1;break}}return te.delete(o),te.delete(m),Ge}function gE(o,m,M,H,G,te,ue){switch(M){case An:if(o.byteLength!=m.byteLength||o.byteOffset!=m.byteOffset)return!1;o=o.buffer,m=m.buffer;case zt:return!(o.byteLength!=m.byteLength||!te(new Sc(o),new Sc(m)));case Se:case Te:case at:return to(+o,+m);case Xe:return o.name==m.name&&o.message==m.message;case ln:case Un:return o==m+"";case Je:var fe=Ie;case En:var ye=H&i;if(fe||(fe=Ke),o.size!=m.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==m;H|=s,ue.set(o,m);var Le=Gb(fe(o),fe(m),H,G,te,ue);return ue.delete(o),Le;case wr:if(ll)return ll.call(o)==ll.call(m)}return!1}function mE(o,m,M,H,G,te){var ue=M&i,fe=Hd(o),ye=fe.length,Ee=Hd(m),Le=Ee.length;if(ye!=Le&&!ue)return!1;for(var De=ye;De--;){var Ge=fe[De];if(!(ue?Ge in m:rn.call(m,Ge)))return!1}var rt=te.get(o),ft=te.get(m);if(rt&&ft)return rt==m&&ft==o;var It=!0;te.set(o,m),te.set(m,o);for(var pt=ue;++De<ye;){Ge=fe[De];var Wt=o[Ge],Kt=m[Ge];if(H)var Si=ue?H(Kt,Wt,Ge,m,o,te):H(Wt,Kt,Ge,o,m,te);if(!(Si===e?Wt===Kt||G(Wt,Kt,M,H,te):Si)){It=!1;break}pt||(pt=Ge=="constructor")}if(It&&!pt){var Yr=o.constructor,$i=m.constructor;Yr!=$i&&"constructor"in o&&"constructor"in m&&!(typeof Yr=="function"&&Yr instanceof Yr&&typeof $i=="function"&&$i instanceof $i)&&(It=!1)}return te.delete(o),te.delete(m),It}function Ro(o){return Zd(e0(o,e,c0),o+"")}function Hd(o){return pb(o,br,qd)}function Ud(o){return pb(o,di,Yb)}var Vd=Lc?function(o){return Lc.get(o)}:hf;function Kc(o){for(var m=o.name+"",M=ga[m],H=rn.call(ga,m)?M.length:0;H--;){var G=M[H],te=G.func;if(te==null||te==o)return G.name}return m}function ba(o){var m=rn.call(ee,"placeholder")?ee:o;return m.placeholder}function dt(){var o=ee.iteratee||cf;return o=o===cf?vb:o,arguments.length?o(arguments[0],arguments[1]):o}function qc(o,m){var M=o.__data__;return AE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Kd(o){for(var m=br(o),M=m.length;M--;){var H=m[M],G=o[H];m[M]=[H,G,Qb(G)]}return m}function Ps(o,m){var M=ie(o,m);return mb(M)?M:e}function vE(o){var m=rn.call(o,Rs),M=o[Rs];try{o[Rs]=e;var H=!0}catch{}var G=Ac.call(o);return H&&(m?o[Rs]=M:delete o[Rs]),G}var qd=wd?function(o){return o==null?[]:(o=Mt(o),Er(wd(o),function(m){return tb.call(o,m)}))}:df,Yb=wd?function(o){for(var m=[];o;)$(m,qd(o)),o=$c(o);return m}:df,Rr=qr;(xd&&Rr(new xd(new ArrayBuffer(1)))!=An||ol&&Rr(new ol)!=Je||Cd&&Rr(Cd.resolve())!=Pt||pa&&Rr(new pa)!=En||sl&&Rr(new sl)!=He)&&(Rr=function(o){var m=qr(o),M=m==bn?o.constructor:e,H=M?Ws(M):"";if(H)switch(H){case JM:return An;case eI:return Je;case tI:return Pt;case nI:return En;case rI:return He}return m});function yE(o,m,M){for(var H=-1,G=M.length;++H<G;){var te=M[H],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":m-=ue;break;case"take":m=Lr(m,o+ue);break;case"takeRight":o=ar(o,m-ue);break}}return{start:o,end:m}}function bE(o){var m=o.match(ai);return m?m[1].split(ao):[]}function Xb(o,m,M){m=rs(m,o);for(var H=-1,G=m.length,te=!1;++H<G;){var ue=mo(m[H]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++H!=G?te:(G=o==null?0:o.length,!!G&&eu(G)&&Oo(ue,G)&&(kt(o)||Bs(o)))}function wE(o){var m=o.length,M=new o.constructor(m);return m&&typeof o[0]=="string"&&rn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function Zb(o){return typeof o.constructor=="function"&&!gl(o)?ma($c(o)):{}}function xE(o,m,M){var H=o.constructor;switch(m){case zt:return Bd(o);case Se:case Te:return new H(+o);case An:return iE(o,M);case ur:case nr:case fn:case Nn:case Ln:case qt:case an:case Tr:case Br:return Rb(o,M);case Je:return new H;case at:case Un:return new H(o);case ln:return oE(o);case En:return new H;case wr:return sE(o)}}function CE(o,m){var M=m.length;if(!M)return o;var H=M-1;return m[H]=(M>1?"& ":"")+m[H],m=m.join(M>2?", ":" "),o.replace(hr,`{
|
|
1457
|
-
/* [wrapped with `+m+`] */
|
|
1458
|
-
`)}function kE(o){return kt(o)||Bs(o)||!!(nb&&o&&o[nb])}function Oo(o,m){var M=typeof o;return m=m??U,!!m&&(M=="number"||M!="symbol"&&Be.test(o))&&o>-1&&o%1==0&&o<m}function Gr(o,m,M){if(!On(M))return!1;var H=typeof m;return(H=="number"?hi(M)&&Oo(m,M.length):H=="string"&&m in M)?to(M[m],o):!1}function Gd(o,m){if(kt(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||_i(o)?!0:oi.test(o)||!Ho.test(o)||m!=null&&o in Mt(m)}function AE(o){var m=typeof o;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?o!=="__proto__":o===null}function Yd(o){var m=Kc(o),M=ee[m];if(typeof M!="function"||!(m in Ut.prototype))return!1;if(o===M)return!0;var H=Vd(M);return!!H&&o===H[0]}function _E(o){return!!Qy&&Qy in o}var SE=Ls?No:ff;function gl(o){var m=o&&o.constructor,M=typeof m=="function"&&m.prototype||zn;return o===M}function Qb(o){return o===o&&!On(o)}function Jb(o,m){return function(M){return M==null?!1:M[o]===m&&(m!==e||o in Mt(M))}}function $E(o){var m=Qc(o,function(H){return M.size===d&&M.clear(),H}),M=m.cache;return m}function TE(o,m){var M=o[1],H=m[1],G=M|H,te=G<(f|b|L),ue=H==L&&M==O||H==L&&M==F&&o[7].length<=m[8]||H==(L|F)&&m[7].length<=m[8]&&M==O;if(!(te||ue))return o;H&f&&(o[2]=m[2],G|=M&f?0:x);var fe=m[3];if(fe){var ye=o[3];o[3]=ye?Nb(ye,fe,m[4]):fe,o[4]=ye?ze(o[3],a):m[4]}return fe=m[5],fe&&(ye=o[5],o[5]=ye?Db(ye,fe,m[6]):fe,o[6]=ye?ze(o[5],a):m[6]),fe=m[7],fe&&(o[7]=fe),H&L&&(o[8]=o[8]==null?m[8]:Lr(o[8],m[8])),o[9]==null&&(o[9]=m[9]),o[0]=m[0],o[1]=G,o}function ME(o){var m=[];if(o!=null)for(var M in Mt(o))m.push(M);return m}function IE(o){return Ac.call(o)}function e0(o,m,M){return m=ar(m===e?o.length-1:m,0),function(){for(var H=arguments,G=-1,te=ar(H.length-m,0),ue=Ce(te);++G<te;)ue[G]=H[m+G];G=-1;for(var fe=Ce(m+1);++G<m;)fe[G]=H[G];return fe[m]=M(ue),gr(o,this,fe)}}function t0(o,m){return m.length<2?o:Fs(o,zi(m,0,-1))}function EE(o,m){for(var M=o.length,H=Lr(m.length,M),G=ui(o);H--;){var te=m[H];o[H]=Oo(te,M)?G[te]:e}return o}function Xd(o,m){if(!(m==="constructor"&&typeof o[m]=="function")&&m!="__proto__")return o[m]}var n0=i0(_b),ml=KM||function(o,m){return cn.setTimeout(o,m)},Zd=i0(eE);function r0(o,m,M){var H=m+"";return Zd(o,CE(H,LE(bE(H),M)))}function i0(o){var m=0,M=0;return function(){var H=XM(),G=N-(H-M);if(M=H,G>0){if(++m>=P)return arguments[0]}else m=0;return o.apply(e,arguments)}}function Gc(o,m){var M=-1,H=o.length,G=H-1;for(m=m===e?H:m;++M<m;){var te=Rd(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=m,o}var o0=$E(function(o){var m=[];return o.charCodeAt(0)===46&&m.push(""),o.replace(xn,function(M,H,G,te){m.push(G?te.replace(Hr,"$1"):H||M)}),m});function mo(o){if(typeof o=="string"||_i(o))return o;var m=o+"";return m=="0"&&1/o==-B?"-0":m}function Ws(o){if(o!=null){try{return kc.call(o)}catch{}try{return o+""}catch{}}return""}function LE(o,m){return xr(ce,function(M){var H="_."+M[0];m&M[1]&&!Ci(o,H)&&o.push(H)}),o.sort()}function s0(o){if(o instanceof Ut)return o.clone();var m=new Wi(o.__wrapped__,o.__chain__);return m.__actions__=ui(o.__actions__),m.__index__=o.__index__,m.__values__=o.__values__,m}function RE(o,m,M){(M?Gr(o,m,M):m===e)?m=1:m=ar(Tt(m),0);var H=o==null?0:o.length;if(!H||m<1)return[];for(var G=0,te=0,ue=Ce(Ic(H/m));G<H;)ue[te++]=zi(o,G,G+=m);return ue}function OE(o){for(var m=-1,M=o==null?0:o.length,H=0,G=[];++m<M;){var te=o[m];te&&(G[H++]=te)}return G}function NE(){var o=arguments.length;if(!o)return[];for(var m=Ce(o-1),M=arguments[0],H=o;H--;)m[H-1]=arguments[H];return $(kt(M)?ui(M):[M],kr(m,1))}var DE=Nt(function(o,m){return Kn(o)?ul(o,kr(m,1,Kn,!0)):[]}),FE=Nt(function(o,m){var M=ji(m);return Kn(M)&&(M=e),Kn(o)?ul(o,kr(m,1,Kn,!0),dt(M,2)):[]}),PE=Nt(function(o,m){var M=ji(m);return Kn(M)&&(M=e),Kn(o)?ul(o,kr(m,1,Kn,!0),e,M):[]});function WE(o,m,M){var H=o==null?0:o.length;return H?(m=M||m===e?1:Tt(m),zi(o,m<0?0:m,H)):[]}function BE(o,m,M){var H=o==null?0:o.length;return H?(m=M||m===e?1:Tt(m),m=H-m,zi(o,0,m<0?0:m)):[]}function zE(o,m){return o&&o.length?Bc(o,dt(m,3),!0,!0):[]}function jE(o,m){return o&&o.length?Bc(o,dt(m,3),!0):[]}function HE(o,m,M,H){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&Gr(o,m,M)&&(M=0,H=G),NI(o,m,M,H)):[]}function a0(o,m,M){var H=o==null?0:o.length;if(!H)return-1;var G=M==null?0:Tt(M);return G<0&&(G=ar(H+G,0)),re(o,dt(m,3),G)}function l0(o,m,M){var H=o==null?0:o.length;if(!H)return-1;var G=H-1;return M!==e&&(G=Tt(M),G=M<0?ar(H+G,0):Lr(G,H-1)),re(o,dt(m,3),G,!0)}function c0(o){var m=o==null?0:o.length;return m?kr(o,1):[]}function UE(o){var m=o==null?0:o.length;return m?kr(o,B):[]}function VE(o,m){var M=o==null?0:o.length;return M?(m=m===e?1:Tt(m),kr(o,m)):[]}function KE(o){for(var m=-1,M=o==null?0:o.length,H={};++m<M;){var G=o[m];H[G[0]]=G[1]}return H}function u0(o){return o&&o.length?o[0]:e}function qE(o,m,M){var H=o==null?0:o.length;if(!H)return-1;var G=M==null?0:Tt(M);return G<0&&(G=ar(H+G,0)),le(o,m,G)}function GE(o){var m=o==null?0:o.length;return m?zi(o,0,-1):[]}var YE=Nt(function(o){var m=y(o,Pd);return m.length&&m[0]===o[0]?Td(m):[]}),XE=Nt(function(o){var m=ji(o),M=y(o,Pd);return m===ji(M)?m=e:M.pop(),M.length&&M[0]===o[0]?Td(M,dt(m,2)):[]}),ZE=Nt(function(o){var m=ji(o),M=y(o,Pd);return m=typeof m=="function"?m:e,m&&M.pop(),M.length&&M[0]===o[0]?Td(M,e,m):[]});function QE(o,m){return o==null?"":GM.call(o,m)}function ji(o){var m=o==null?0:o.length;return m?o[m-1]:e}function JE(o,m,M){var H=o==null?0:o.length;if(!H)return-1;var G=H;return M!==e&&(G=Tt(M),G=G<0?ar(H+G,0):Lr(G,H-1)),m===m?bt(o,m,G):re(o,ke,G,!0)}function eL(o,m){return o&&o.length?xb(o,Tt(m)):e}var tL=Nt(h0);function h0(o,m){return o&&o.length&&m&&m.length?Ld(o,m):o}function nL(o,m,M){return o&&o.length&&m&&m.length?Ld(o,m,dt(M,2)):o}function rL(o,m,M){return o&&o.length&&m&&m.length?Ld(o,m,e,M):o}var iL=Ro(function(o,m){var M=o==null?0:o.length,H=Ad(o,m);return Ab(o,y(m,function(G){return Oo(G,M)?+G:G}).sort(Ob)),H});function oL(o,m){var M=[];if(!(o&&o.length))return M;var H=-1,G=[],te=o.length;for(m=dt(m,3);++H<te;){var ue=o[H];m(ue,H,o)&&(M.push(ue),G.push(H))}return Ab(o,G),M}function Qd(o){return o==null?o:QM.call(o)}function sL(o,m,M){var H=o==null?0:o.length;return H?(M&&typeof M!="number"&&Gr(o,m,M)?(m=0,M=H):(m=m==null?0:Tt(m),M=M===e?H:Tt(M)),zi(o,m,M)):[]}function aL(o,m){return Wc(o,m)}function lL(o,m,M){return Nd(o,m,dt(M,2))}function cL(o,m){var M=o==null?0:o.length;if(M){var H=Wc(o,m);if(H<M&&to(o[H],m))return H}return-1}function uL(o,m){return Wc(o,m,!0)}function hL(o,m,M){return Nd(o,m,dt(M,2),!0)}function dL(o,m){var M=o==null?0:o.length;if(M){var H=Wc(o,m,!0)-1;if(to(o[H],m))return H}return-1}function fL(o){return o&&o.length?Sb(o):[]}function pL(o,m){return o&&o.length?Sb(o,dt(m,2)):[]}function gL(o){var m=o==null?0:o.length;return m?zi(o,1,m):[]}function mL(o,m,M){return o&&o.length?(m=M||m===e?1:Tt(m),zi(o,0,m<0?0:m)):[]}function vL(o,m,M){var H=o==null?0:o.length;return H?(m=M||m===e?1:Tt(m),m=H-m,zi(o,m<0?0:m,H)):[]}function yL(o,m){return o&&o.length?Bc(o,dt(m,3),!1,!0):[]}function bL(o,m){return o&&o.length?Bc(o,dt(m,3)):[]}var wL=Nt(function(o){return ns(kr(o,1,Kn,!0))}),xL=Nt(function(o){var m=ji(o);return Kn(m)&&(m=e),ns(kr(o,1,Kn,!0),dt(m,2))}),CL=Nt(function(o){var m=ji(o);return m=typeof m=="function"?m:e,ns(kr(o,1,Kn,!0),e,m)});function kL(o){return o&&o.length?ns(o):[]}function AL(o,m){return o&&o.length?ns(o,dt(m,2)):[]}function _L(o,m){return m=typeof m=="function"?m:e,o&&o.length?ns(o,e,m):[]}function Jd(o){if(!(o&&o.length))return[];var m=0;return o=Er(o,function(M){if(Kn(M))return m=ar(M.length,m),!0}),Ze(m,function(M){return y(o,we(M))})}function d0(o,m){if(!(o&&o.length))return[];var M=Jd(o);return m==null?M:y(M,function(H){return gr(m,e,H)})}var SL=Nt(function(o,m){return Kn(o)?ul(o,m):[]}),$L=Nt(function(o){return Fd(Er(o,Kn))}),TL=Nt(function(o){var m=ji(o);return Kn(m)&&(m=e),Fd(Er(o,Kn),dt(m,2))}),ML=Nt(function(o){var m=ji(o);return m=typeof m=="function"?m:e,Fd(Er(o,Kn),e,m)}),IL=Nt(Jd);function EL(o,m){return Ib(o||[],m||[],cl)}function LL(o,m){return Ib(o||[],m||[],fl)}var RL=Nt(function(o){var m=o.length,M=m>1?o[m-1]:e;return M=typeof M=="function"?(o.pop(),M):e,d0(o,M)});function f0(o){var m=ee(o);return m.__chain__=!0,m}function OL(o,m){return m(o),o}function Yc(o,m){return m(o)}var NL=Ro(function(o){var m=o.length,M=m?o[0]:0,H=this.__wrapped__,G=function(te){return Ad(te,o)};return m>1||this.__actions__.length||!(H instanceof Ut)||!Oo(M)?this.thru(G):(H=H.slice(M,+M+(m?1:0)),H.__actions__.push({func:Yc,args:[G],thisArg:e}),new Wi(H,this.__chain__).thru(function(te){return m&&!te.length&&te.push(e),te}))});function DL(){return f0(this)}function FL(){return new Wi(this.value(),this.__chain__)}function PL(){this.__values__===e&&(this.__values__=$0(this.value()));var o=this.__index__>=this.__values__.length,m=o?e:this.__values__[this.__index__++];return{done:o,value:m}}function WL(){return this}function BL(o){for(var m,M=this;M instanceof Oc;){var H=s0(M);H.__index__=0,H.__values__=e,m?G.__wrapped__=H:m=H;var G=H;M=M.__wrapped__}return G.__wrapped__=o,m}function zL(){var o=this.__wrapped__;if(o instanceof Ut){var m=o;return this.__actions__.length&&(m=new Ut(this)),m=m.reverse(),m.__actions__.push({func:Yc,args:[Qd],thisArg:e}),new Wi(m,this.__chain__)}return this.thru(Qd)}function jL(){return Mb(this.__wrapped__,this.__actions__)}var HL=zc(function(o,m,M){rn.call(o,M)?++o[M]:Eo(o,M,1)});function UL(o,m,M){var H=kt(o)?Cr:OI;return M&&Gr(o,m,M)&&(m=e),H(o,dt(m,3))}function VL(o,m){var M=kt(o)?Er:db;return M(o,dt(m,3))}var KL=Bb(a0),qL=Bb(l0);function GL(o,m){return kr(Xc(o,m),1)}function YL(o,m){return kr(Xc(o,m),B)}function XL(o,m,M){return M=M===e?1:Tt(M),kr(Xc(o,m),M)}function p0(o,m){var M=kt(o)?xr:ts;return M(o,dt(m,3))}function g0(o,m){var M=kt(o)?Es:hb;return M(o,dt(m,3))}var ZL=zc(function(o,m,M){rn.call(o,M)?o[M].push(m):Eo(o,M,[m])});function QL(o,m,M,H){o=hi(o)?o:xa(o),M=M&&!H?Tt(M):0;var G=o.length;return M<0&&(M=ar(G+M,0)),tu(o)?M<=G&&o.indexOf(m,M)>-1:!!G&&le(o,m,M)>-1}var JL=Nt(function(o,m,M){var H=-1,G=typeof m=="function",te=hi(o)?Ce(o.length):[];return ts(o,function(ue){te[++H]=G?gr(m,ue,M):hl(ue,m,M)}),te}),eR=zc(function(o,m,M){Eo(o,M,m)});function Xc(o,m){var M=kt(o)?y:yb;return M(o,dt(m,3))}function tR(o,m,M,H){return o==null?[]:(kt(m)||(m=m==null?[]:[m]),M=H?e:M,kt(M)||(M=M==null?[]:[M]),Cb(o,m,M))}var nR=zc(function(o,m,M){o[M?0:1].push(m)},function(){return[[],[]]});function rR(o,m,M){var H=kt(o)?A:Re,G=arguments.length<3;return H(o,dt(m,4),M,G,ts)}function iR(o,m,M){var H=kt(o)?D:Re,G=arguments.length<3;return H(o,dt(m,4),M,G,hb)}function oR(o,m){var M=kt(o)?Er:db;return M(o,Jc(dt(m,3)))}function sR(o){var m=kt(o)?ab:QI;return m(o)}function aR(o,m,M){(M?Gr(o,m,M):m===e)?m=1:m=Tt(m);var H=kt(o)?MI:JI;return H(o,m)}function lR(o){var m=kt(o)?II:tE;return m(o)}function cR(o){if(o==null)return 0;if(hi(o))return tu(o)?Ft(o):o.length;var m=Rr(o);return m==Je||m==En?o.size:Id(o).length}function uR(o,m,M){var H=kt(o)?W:nE;return M&&Gr(o,m,M)&&(m=e),H(o,dt(m,3))}var hR=Nt(function(o,m){if(o==null)return[];var M=m.length;return M>1&&Gr(o,m[0],m[1])?m=[]:M>2&&Gr(m[0],m[1],m[2])&&(m=[m[0]]),Cb(o,kr(m,1),[])}),Zc=VM||function(){return cn.Date.now()};function dR(o,m){if(typeof m!="function")throw new un(g);return o=Tt(o),function(){if(--o<1)return m.apply(this,arguments)}}function m0(o,m,M){return m=M?e:m,m=o&&m==null?o.length:m,Lo(o,L,e,e,e,e,m)}function v0(o,m){var M;if(typeof m!="function")throw new un(g);return o=Tt(o),function(){return--o>0&&(M=m.apply(this,arguments)),o<=1&&(m=e),M}}var ef=Nt(function(o,m,M){var H=f;if(M.length){var G=ze(M,ba(ef));H|=_}return Lo(o,H,m,M,G)}),y0=Nt(function(o,m,M){var H=f|b;if(M.length){var G=ze(M,ba(y0));H|=_}return Lo(m,H,o,M,G)});function b0(o,m,M){m=M?e:m;var H=Lo(o,O,e,e,e,e,e,m);return H.placeholder=b0.placeholder,H}function w0(o,m,M){m=M?e:m;var H=Lo(o,T,e,e,e,e,e,m);return H.placeholder=w0.placeholder,H}function x0(o,m,M){var H,G,te,ue,fe,ye,Ee=0,Le=!1,De=!1,Ge=!0;if(typeof o!="function")throw new un(g);m=Hi(m)||0,On(M)&&(Le=!!M.leading,De="maxWait"in M,te=De?ar(Hi(M.maxWait)||0,m):te,Ge="trailing"in M?!!M.trailing:Ge);function rt(qn){var no=H,Fo=G;return H=G=e,Ee=qn,ue=o.apply(Fo,no),ue}function ft(qn){return Ee=qn,fe=ml(Wt,m),Le?rt(qn):ue}function It(qn){var no=qn-ye,Fo=qn-Ee,B0=m-no;return De?Lr(B0,te-Fo):B0}function pt(qn){var no=qn-ye,Fo=qn-Ee;return ye===e||no>=m||no<0||De&&Fo>=te}function Wt(){var qn=Zc();if(pt(qn))return Kt(qn);fe=ml(Wt,It(qn))}function Kt(qn){return fe=e,Ge&&H?rt(qn):(H=G=e,ue)}function Si(){fe!==e&&Eb(fe),Ee=0,H=ye=G=fe=e}function Yr(){return fe===e?ue:Kt(Zc())}function $i(){var qn=Zc(),no=pt(qn);if(H=arguments,G=this,ye=qn,no){if(fe===e)return ft(ye);if(De)return Eb(fe),fe=ml(Wt,m),rt(ye)}return fe===e&&(fe=ml(Wt,m)),ue}return $i.cancel=Si,$i.flush=Yr,$i}var fR=Nt(function(o,m){return ub(o,1,m)}),pR=Nt(function(o,m,M){return ub(o,Hi(m)||0,M)});function gR(o){return Lo(o,E)}function Qc(o,m){if(typeof o!="function"||m!=null&&typeof m!="function")throw new un(g);var M=function(){var H=arguments,G=m?m.apply(this,H):H[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,H);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(Qc.Cache||Io),M}Qc.Cache=Io;function Jc(o){if(typeof o!="function")throw new un(g);return function(){var m=arguments;switch(m.length){case 0:return!o.call(this);case 1:return!o.call(this,m[0]);case 2:return!o.call(this,m[0],m[1]);case 3:return!o.call(this,m[0],m[1],m[2])}return!o.apply(this,m)}}function mR(o){return v0(2,o)}var vR=rE(function(o,m){m=m.length==1&&kt(m[0])?y(m[0],lt(dt())):y(kr(m,1),lt(dt()));var M=m.length;return Nt(function(H){for(var G=-1,te=Lr(H.length,M);++G<te;)H[G]=m[G].call(this,H[G]);return gr(o,this,H)})}),tf=Nt(function(o,m){var M=ze(m,ba(tf));return Lo(o,_,e,m,M)}),C0=Nt(function(o,m){var M=ze(m,ba(C0));return Lo(o,C,e,m,M)}),yR=Ro(function(o,m){return Lo(o,F,e,e,e,m)});function bR(o,m){if(typeof o!="function")throw new un(g);return m=m===e?m:Tt(m),Nt(o,m)}function wR(o,m){if(typeof o!="function")throw new un(g);return m=m==null?0:ar(Tt(m),0),Nt(function(M){var H=M[m],G=is(M,0,m);return H&&$(G,H),gr(o,this,G)})}function xR(o,m,M){var H=!0,G=!0;if(typeof o!="function")throw new un(g);return On(M)&&(H="leading"in M?!!M.leading:H,G="trailing"in M?!!M.trailing:G),x0(o,m,{leading:H,maxWait:m,trailing:G})}function CR(o){return m0(o,1)}function kR(o,m){return tf(Wd(m),o)}function AR(){if(!arguments.length)return[];var o=arguments[0];return kt(o)?o:[o]}function _R(o){return Bi(o,c)}function SR(o,m){return m=typeof m=="function"?m:e,Bi(o,c,m)}function $R(o){return Bi(o,l|c)}function TR(o,m){return m=typeof m=="function"?m:e,Bi(o,l|c,m)}function MR(o,m){return m==null||cb(o,m,br(m))}function to(o,m){return o===m||o!==o&&m!==m}var IR=Vc($d),ER=Vc(function(o,m){return o>=m}),Bs=gb((function(){return arguments})())?gb:function(o){return jn(o)&&rn.call(o,"callee")&&!tb.call(o,"callee")},kt=Ce.isArray,LR=ci?lt(ci):BI;function hi(o){return o!=null&&eu(o.length)&&!No(o)}function Kn(o){return jn(o)&&hi(o)}function RR(o){return o===!0||o===!1||jn(o)&&qr(o)==Se}var os=qM||ff,OR=Jo?lt(Jo):zI;function NR(o){return jn(o)&&o.nodeType===1&&!vl(o)}function DR(o){if(o==null)return!0;if(hi(o)&&(kt(o)||typeof o=="string"||typeof o.splice=="function"||os(o)||wa(o)||Bs(o)))return!o.length;var m=Rr(o);if(m==Je||m==En)return!o.size;if(gl(o))return!Id(o).length;for(var M in o)if(rn.call(o,M))return!1;return!0}function FR(o,m){return dl(o,m)}function PR(o,m,M){M=typeof M=="function"?M:e;var H=M?M(o,m):e;return H===e?dl(o,m,e,M):!!H}function nf(o){if(!jn(o))return!1;var m=qr(o);return m==Xe||m==Me||typeof o.message=="string"&&typeof o.name=="string"&&!vl(o)}function WR(o){return typeof o=="number"&&rb(o)}function No(o){if(!On(o))return!1;var m=qr(o);return m==qe||m==st||m==me||m==cr}function k0(o){return typeof o=="number"&&o==Tt(o)}function eu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function On(o){var m=typeof o;return o!=null&&(m=="object"||m=="function")}function jn(o){return o!=null&&typeof o=="object"}var A0=Bn?lt(Bn):HI;function BR(o,m){return o===m||Md(o,m,Kd(m))}function zR(o,m,M){return M=typeof M=="function"?M:e,Md(o,m,Kd(m),M)}function jR(o){return _0(o)&&o!=+o}function HR(o){if(SE(o))throw new ct(p);return mb(o)}function UR(o){return o===null}function VR(o){return o==null}function _0(o){return typeof o=="number"||jn(o)&&qr(o)==at}function vl(o){if(!jn(o)||qr(o)!=bn)return!1;var m=$c(o);if(m===null)return!0;var M=rn.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&kc.call(M)==zM}var rf=wi?lt(wi):UI;function KR(o){return k0(o)&&o>=-U&&o<=U}var S0=xi?lt(xi):VI;function tu(o){return typeof o=="string"||!kt(o)&&jn(o)&&qr(o)==Un}function _i(o){return typeof o=="symbol"||jn(o)&&qr(o)==wr}var wa=Fi?lt(Fi):KI;function qR(o){return o===e}function GR(o){return jn(o)&&Rr(o)==He}function YR(o){return jn(o)&&qr(o)==Lt}var XR=Vc(Ed),ZR=Vc(function(o,m){return o<=m});function $0(o){if(!o)return[];if(hi(o))return tu(o)?xt(o):ui(o);if(il&&o[il])return xe(o[il]());var m=Rr(o),M=m==Je?Ie:m==En?Ke:xa;return M(o)}function Do(o){if(!o)return o===0?o:0;if(o=Hi(o),o===B||o===-B){var m=o<0?-1:1;return m*q}return o===o?o:0}function Tt(o){var m=Do(o),M=m%1;return m===m?M?m-M:m:0}function T0(o){return o?Ds(Tt(o),0,J):0}function Hi(o){if(typeof o=="number")return o;if(_i(o))return Q;if(On(o)){var m=typeof o.valueOf=="function"?o.valueOf():o;o=On(m)?m+"":m}if(typeof o!="string")return o===0?o:+o;o=vn(o);var M=wo.test(o);return M||ae.test(o)?mn(o.slice(2),M?2:8):Rt.test(o)?Q:+o}function M0(o){return go(o,di(o))}function QR(o){return o?Ds(Tt(o),-U,U):o===0?o:0}function on(o){return o==null?"":Ai(o)}var JR=va(function(o,m){if(gl(m)||hi(m)){go(m,br(m),o);return}for(var M in m)rn.call(m,M)&&cl(o,M,m[M])}),I0=va(function(o,m){go(m,di(m),o)}),nu=va(function(o,m,M,H){go(m,di(m),o,H)}),eO=va(function(o,m,M,H){go(m,br(m),o,H)}),tO=Ro(Ad);function nO(o,m){var M=ma(o);return m==null?M:lb(M,m)}var rO=Nt(function(o,m){o=Mt(o);var M=-1,H=m.length,G=H>2?m[2]:e;for(G&&Gr(m[0],m[1],G)&&(H=1);++M<H;)for(var te=m[M],ue=di(te),fe=-1,ye=ue.length;++fe<ye;){var Ee=ue[fe],Le=o[Ee];(Le===e||to(Le,zn[Ee])&&!rn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),iO=Nt(function(o){return o.push(e,qb),gr(E0,e,o)});function oO(o,m){return Z(o,dt(m,3),po)}function sO(o,m){return Z(o,dt(m,3),Sd)}function aO(o,m){return o==null?o:_d(o,dt(m,3),di)}function lO(o,m){return o==null?o:fb(o,dt(m,3),di)}function cO(o,m){return o&&po(o,dt(m,3))}function uO(o,m){return o&&Sd(o,dt(m,3))}function hO(o){return o==null?[]:Fc(o,br(o))}function dO(o){return o==null?[]:Fc(o,di(o))}function of(o,m,M){var H=o==null?e:Fs(o,m);return H===e?M:H}function fO(o,m){return o!=null&&Xb(o,m,DI)}function sf(o,m){return o!=null&&Xb(o,m,FI)}var pO=jb(function(o,m,M){m!=null&&typeof m.toString!="function"&&(m=Ac.call(m)),o[m]=M},lf(fi)),gO=jb(function(o,m,M){m!=null&&typeof m.toString!="function"&&(m=Ac.call(m)),rn.call(o,m)?o[m].push(M):o[m]=[M]},dt),mO=Nt(hl);function br(o){return hi(o)?sb(o):Id(o)}function di(o){return hi(o)?sb(o,!0):qI(o)}function vO(o,m){var M={};return m=dt(m,3),po(o,function(H,G,te){Eo(M,m(H,G,te),H)}),M}function yO(o,m){var M={};return m=dt(m,3),po(o,function(H,G,te){Eo(M,G,m(H,G,te))}),M}var bO=va(function(o,m,M){Pc(o,m,M)}),E0=va(function(o,m,M,H){Pc(o,m,M,H)}),wO=Ro(function(o,m){var M={};if(o==null)return M;var H=!1;m=y(m,function(te){return te=rs(te,o),H||(H=te.length>1),te}),go(o,Ud(o),M),H&&(M=Bi(M,l|u|c,pE));for(var G=m.length;G--;)Dd(M,m[G]);return M});function xO(o,m){return L0(o,Jc(dt(m)))}var CO=Ro(function(o,m){return o==null?{}:YI(o,m)});function L0(o,m){if(o==null)return{};var M=y(Ud(o),function(H){return[H]});return m=dt(m),kb(o,M,function(H,G){return m(H,G[0])})}function kO(o,m,M){m=rs(m,o);var H=-1,G=m.length;for(G||(G=1,o=e);++H<G;){var te=o==null?e:o[mo(m[H])];te===e&&(H=G,te=M),o=No(te)?te.call(o):te}return o}function AO(o,m,M){return o==null?o:fl(o,m,M)}function _O(o,m,M,H){return H=typeof H=="function"?H:e,o==null?o:fl(o,m,M,H)}var R0=Vb(br),O0=Vb(di);function SO(o,m,M){var H=kt(o),G=H||os(o)||wa(o);if(m=dt(m,4),M==null){var te=o&&o.constructor;G?M=H?new te:[]:On(o)?M=No(te)?ma($c(o)):{}:M={}}return(G?xr:po)(o,function(ue,fe,ye){return m(M,ue,fe,ye)}),M}function $O(o,m){return o==null?!0:Dd(o,m)}function TO(o,m,M){return o==null?o:Tb(o,m,Wd(M))}function MO(o,m,M,H){return H=typeof H=="function"?H:e,o==null?o:Tb(o,m,Wd(M),H)}function xa(o){return o==null?[]:Sn(o,br(o))}function IO(o){return o==null?[]:Sn(o,di(o))}function EO(o,m,M){return M===e&&(M=m,m=e),M!==e&&(M=Hi(M),M=M===M?M:0),m!==e&&(m=Hi(m),m=m===m?m:0),Ds(Hi(o),m,M)}function LO(o,m,M){return m=Do(m),M===e?(M=m,m=0):M=Do(M),o=Hi(o),PI(o,m,M)}function RO(o,m,M){if(M&&typeof M!="boolean"&&Gr(o,m,M)&&(m=M=e),M===e&&(typeof m=="boolean"?(M=m,m=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&m===e?(o=0,m=1):(o=Do(o),m===e?(m=o,o=0):m=Do(m)),o>m){var H=o;o=m,m=H}if(M||o%1||m%1){var G=ib();return Lr(o+G*(m-o+je("1e-"+((G+"").length-1))),m)}return Rd(o,m)}var OO=ya(function(o,m,M){return m=m.toLowerCase(),o+(M?N0(m):m)});function N0(o){return af(on(o).toLowerCase())}function D0(o){return o=on(o),o&&o.replace(Fe,$n).replace(So,"")}function NO(o,m,M){o=on(o),m=Ai(m);var H=o.length;M=M===e?H:Ds(Tt(M),0,H);var G=M;return M-=m.length,M>=0&&o.slice(M,G)==m}function DO(o){return o=on(o),o&&_s.test(o)?o.replace(Xi,V):o}function FO(o){return o=on(o),o&&si.test(o)?o.replace(rr,"\\$&"):o}var PO=ya(function(o,m,M){return o+(M?"-":"")+m.toLowerCase()}),WO=ya(function(o,m,M){return o+(M?" ":"")+m.toLowerCase()}),BO=Wb("toLowerCase");function zO(o,m,M){o=on(o),m=Tt(m);var H=m?Ft(o):0;if(!m||H>=m)return o;var G=(m-H)/2;return Uc(Ec(G),M)+o+Uc(Ic(G),M)}function jO(o,m,M){o=on(o),m=Tt(m);var H=m?Ft(o):0;return m&&H<m?o+Uc(m-H,M):o}function HO(o,m,M){o=on(o),m=Tt(m);var H=m?Ft(o):0;return m&&H<m?Uc(m-H,M)+o:o}function UO(o,m,M){return M||m==null?m=0:m&&(m=+m),ZM(on(o).replace(Cn,""),m||0)}function VO(o,m,M){return(M?Gr(o,m,M):m===e)?m=1:m=Tt(m),Od(on(o),m)}function KO(){var o=arguments,m=on(o[0]);return o.length<3?m:m.replace(o[1],o[2])}var qO=ya(function(o,m,M){return o+(M?"_":"")+m.toLowerCase()});function GO(o,m,M){return M&&typeof M!="number"&&Gr(o,m,M)&&(m=M=e),M=M===e?J:M>>>0,M?(o=on(o),o&&(typeof m=="string"||m!=null&&!rf(m))&&(m=Ai(m),!m&&oe(o))?is(xt(o),0,M):o.split(m,M)):[]}var YO=ya(function(o,m,M){return o+(M?" ":"")+af(m)});function XO(o,m,M){return o=on(o),M=M==null?0:Ds(Tt(M),0,o.length),m=Ai(m),o.slice(M,M+m.length)==m}function ZO(o,m,M){var H=ee.templateSettings;M&&Gr(o,m,M)&&(m=e),o=on(o),m=nu({},m,H,Kb);var G=nu({},m.imports,H.imports,Kb),te=br(G),ue=Sn(G,te),fe,ye,Ee=0,Le=m.interpolate||_t,De="__p += '",Ge=Kr((m.escape||_t).source+"|"+Le.source+"|"+(Le===ii?li:_t).source+"|"+(m.evaluate||_t).source+"|$","g"),rt="//# sourceURL="+(rn.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fo+"]")+`
|
|
1459
|
-
`;o.replace(Ge,function(pt,Wt,Kt,Si,Yr,$i){return Kt||(Kt=Si),De+=o.slice(Ee,$i).replace(Gt,X),Wt&&(fe=!0,De+=`' +
|
|
1460
|
-
__e(`+Wt+`) +
|
|
1461
|
-
'`),Yr&&(ye=!0,De+=`';
|
|
1462
|
-
`+Yr+`;
|
|
1463
|
-
__p += '`),Kt&&(De+=`' +
|
|
1464
|
-
((__t = (`+Kt+`)) == null ? '' : __t) +
|
|
1465
|
-
'`),Ee=$i+pt.length,pt}),De+=`';
|
|
1466
|
-
`;var ft=rn.call(m,"variable")&&m.variable;if(!ft)De=`with (obj) {
|
|
1467
|
-
`+De+`
|
|
1468
|
-
}
|
|
1469
|
-
`;else if(Uo.test(ft))throw new ct(w);De=(ye?De.replace(zr,""):De).replace(yi,"$1").replace(ni,"$1;"),De="function("+(ft||"obj")+`) {
|
|
1470
|
-
`+(ft?"":`obj || (obj = {});
|
|
1471
|
-
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(ye?`, __j = Array.prototype.join;
|
|
1472
|
-
function print() { __p += __j.call(arguments, '') }
|
|
1473
|
-
`:`;
|
|
1474
|
-
`)+De+`return __p
|
|
1475
|
-
}`;var It=P0(function(){return $t(te,rt+"return "+De).apply(e,ue)});if(It.source=De,nf(It))throw It;return It}function QO(o){return on(o).toLowerCase()}function JO(o){return on(o).toUpperCase()}function eN(o,m,M){if(o=on(o),o&&(M||m===e))return vn(o);if(!o||!(m=Ai(m)))return o;var H=xt(o),G=xt(m),te=St(H,G),ue=Zn(H,G)+1;return is(H,te,ue).join("")}function tN(o,m,M){if(o=on(o),o&&(M||m===e))return o.slice(0,Ot(o)+1);if(!o||!(m=Ai(m)))return o;var H=xt(o),G=Zn(H,xt(m))+1;return is(H,0,G).join("")}function nN(o,m,M){if(o=on(o),o&&(M||m===e))return o.replace(Cn,"");if(!o||!(m=Ai(m)))return o;var H=xt(o),G=St(H,xt(m));return is(H,G).join("")}function rN(o,m){var M=I,H=z;if(On(m)){var G="separator"in m?m.separator:G;M="length"in m?Tt(m.length):M,H="omission"in m?Ai(m.omission):H}o=on(o);var te=o.length;if(oe(o)){var ue=xt(o);te=ue.length}if(M>=te)return o;var fe=M-Ft(H);if(fe<1)return H;var ye=ue?is(ue,0,fe).join(""):o.slice(0,fe);if(G===e)return ye+H;if(ue&&(fe+=ye.length-fe),rf(G)){if(o.slice(fe).search(G)){var Ee,Le=ye;for(G.global||(G=Kr(G.source,on(Mr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Le);)var De=Ee.index;ye=ye.slice(0,De===e?fe:De)}}else if(o.indexOf(Ai(G),fe)!=fe){var Ge=ye.lastIndexOf(G);Ge>-1&&(ye=ye.slice(0,Ge))}return ye+H}function iN(o){return o=on(o),o&&ri.test(o)?o.replace(Dn,ht):o}var oN=ya(function(o,m,M){return o+(M?" ":"")+m.toUpperCase()}),af=Wb("toUpperCase");function F0(o,m,M){return o=on(o),m=M?e:m,m===e?ge(o)?Tn(o):Y(o):o.match(m)||[]}var P0=Nt(function(o,m){try{return gr(o,e,m)}catch(M){return nf(M)?M:new ct(M)}}),sN=Ro(function(o,m){return xr(m,function(M){M=mo(M),Eo(o,M,ef(o[M],o))}),o});function aN(o){var m=o==null?0:o.length,M=dt();return o=m?y(o,function(H){if(typeof H[1]!="function")throw new un(g);return[M(H[0]),H[1]]}):[],Nt(function(H){for(var G=-1;++G<m;){var te=o[G];if(gr(te[0],this,H))return gr(te[1],this,H)}})}function lN(o){return RI(Bi(o,l))}function lf(o){return function(){return o}}function cN(o,m){return o==null||o!==o?m:o}var uN=zb(),hN=zb(!0);function fi(o){return o}function cf(o){return vb(typeof o=="function"?o:Bi(o,l))}function dN(o){return bb(Bi(o,l))}function fN(o,m){return wb(o,Bi(m,l))}var pN=Nt(function(o,m){return function(M){return hl(M,o,m)}}),gN=Nt(function(o,m){return function(M){return hl(o,M,m)}});function uf(o,m,M){var H=br(m),G=Fc(m,H);M==null&&!(On(m)&&(G.length||!H.length))&&(M=m,m=o,o=this,G=Fc(m,br(m)));var te=!(On(M)&&"chain"in M)||!!M.chain,ue=No(o);return xr(G,function(fe){var ye=m[fe];o[fe]=ye,ue&&(o.prototype[fe]=function(){var Ee=this.__chain__;if(te||Ee){var Le=o(this.__wrapped__),De=Le.__actions__=ui(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Le.__chain__=Ee,Le}return ye.apply(o,$([this.value()],arguments))})}),o}function mN(){return cn._===this&&(cn._=jM),this}function hf(){}function vN(o){return o=Tt(o),Nt(function(m){return xb(m,o)})}var yN=zd(y),bN=zd(Cr),wN=zd(W);function W0(o){return Gd(o)?we(mo(o)):XI(o)}function xN(o){return function(m){return o==null?e:Fs(o,m)}}var CN=Hb(),kN=Hb(!0);function df(){return[]}function ff(){return!1}function AN(){return{}}function _N(){return""}function SN(){return!0}function $N(o,m){if(o=Tt(o),o<1||o>U)return[];var M=J,H=Lr(o,J);m=dt(m),o-=J;for(var G=Ze(H,m);++M<o;)m(M);return G}function TN(o){return kt(o)?y(o,mo):_i(o)?[o]:ui(o0(on(o)))}function MN(o){var m=++BM;return on(o)+m}var IN=Hc(function(o,m){return o+m},0),EN=jd("ceil"),LN=Hc(function(o,m){return o/m},1),RN=jd("floor");function ON(o){return o&&o.length?Dc(o,fi,$d):e}function NN(o,m){return o&&o.length?Dc(o,dt(m,2),$d):e}function DN(o){return ve(o,fi)}function FN(o,m){return ve(o,dt(m,2))}function PN(o){return o&&o.length?Dc(o,fi,Ed):e}function WN(o,m){return o&&o.length?Dc(o,dt(m,2),Ed):e}var BN=Hc(function(o,m){return o*m},1),zN=jd("round"),jN=Hc(function(o,m){return o-m},0);function HN(o){return o&&o.length?ot(o,fi):0}function UN(o,m){return o&&o.length?ot(o,dt(m,2)):0}return ee.after=dR,ee.ary=m0,ee.assign=JR,ee.assignIn=I0,ee.assignInWith=nu,ee.assignWith=eO,ee.at=tO,ee.before=v0,ee.bind=ef,ee.bindAll=sN,ee.bindKey=y0,ee.castArray=AR,ee.chain=f0,ee.chunk=RE,ee.compact=OE,ee.concat=NE,ee.cond=aN,ee.conforms=lN,ee.constant=lf,ee.countBy=HL,ee.create=nO,ee.curry=b0,ee.curryRight=w0,ee.debounce=x0,ee.defaults=rO,ee.defaultsDeep=iO,ee.defer=fR,ee.delay=pR,ee.difference=DE,ee.differenceBy=FE,ee.differenceWith=PE,ee.drop=WE,ee.dropRight=BE,ee.dropRightWhile=zE,ee.dropWhile=jE,ee.fill=HE,ee.filter=VL,ee.flatMap=GL,ee.flatMapDeep=YL,ee.flatMapDepth=XL,ee.flatten=c0,ee.flattenDeep=UE,ee.flattenDepth=VE,ee.flip=gR,ee.flow=uN,ee.flowRight=hN,ee.fromPairs=KE,ee.functions=hO,ee.functionsIn=dO,ee.groupBy=ZL,ee.initial=GE,ee.intersection=YE,ee.intersectionBy=XE,ee.intersectionWith=ZE,ee.invert=pO,ee.invertBy=gO,ee.invokeMap=JL,ee.iteratee=cf,ee.keyBy=eR,ee.keys=br,ee.keysIn=di,ee.map=Xc,ee.mapKeys=vO,ee.mapValues=yO,ee.matches=dN,ee.matchesProperty=fN,ee.memoize=Qc,ee.merge=bO,ee.mergeWith=E0,ee.method=pN,ee.methodOf=gN,ee.mixin=uf,ee.negate=Jc,ee.nthArg=vN,ee.omit=wO,ee.omitBy=xO,ee.once=mR,ee.orderBy=tR,ee.over=yN,ee.overArgs=vR,ee.overEvery=bN,ee.overSome=wN,ee.partial=tf,ee.partialRight=C0,ee.partition=nR,ee.pick=CO,ee.pickBy=L0,ee.property=W0,ee.propertyOf=xN,ee.pull=tL,ee.pullAll=h0,ee.pullAllBy=nL,ee.pullAllWith=rL,ee.pullAt=iL,ee.range=CN,ee.rangeRight=kN,ee.rearg=yR,ee.reject=oR,ee.remove=oL,ee.rest=bR,ee.reverse=Qd,ee.sampleSize=aR,ee.set=AO,ee.setWith=_O,ee.shuffle=lR,ee.slice=sL,ee.sortBy=hR,ee.sortedUniq=fL,ee.sortedUniqBy=pL,ee.split=GO,ee.spread=wR,ee.tail=gL,ee.take=mL,ee.takeRight=vL,ee.takeRightWhile=yL,ee.takeWhile=bL,ee.tap=OL,ee.throttle=xR,ee.thru=Yc,ee.toArray=$0,ee.toPairs=R0,ee.toPairsIn=O0,ee.toPath=TN,ee.toPlainObject=M0,ee.transform=SO,ee.unary=CR,ee.union=wL,ee.unionBy=xL,ee.unionWith=CL,ee.uniq=kL,ee.uniqBy=AL,ee.uniqWith=_L,ee.unset=$O,ee.unzip=Jd,ee.unzipWith=d0,ee.update=TO,ee.updateWith=MO,ee.values=xa,ee.valuesIn=IO,ee.without=SL,ee.words=F0,ee.wrap=kR,ee.xor=$L,ee.xorBy=TL,ee.xorWith=ML,ee.zip=IL,ee.zipObject=EL,ee.zipObjectDeep=LL,ee.zipWith=RL,ee.entries=R0,ee.entriesIn=O0,ee.extend=I0,ee.extendWith=nu,uf(ee,ee),ee.add=IN,ee.attempt=P0,ee.camelCase=OO,ee.capitalize=N0,ee.ceil=EN,ee.clamp=EO,ee.clone=_R,ee.cloneDeep=$R,ee.cloneDeepWith=TR,ee.cloneWith=SR,ee.conformsTo=MR,ee.deburr=D0,ee.defaultTo=cN,ee.divide=LN,ee.endsWith=NO,ee.eq=to,ee.escape=DO,ee.escapeRegExp=FO,ee.every=UL,ee.find=KL,ee.findIndex=a0,ee.findKey=oO,ee.findLast=qL,ee.findLastIndex=l0,ee.findLastKey=sO,ee.floor=RN,ee.forEach=p0,ee.forEachRight=g0,ee.forIn=aO,ee.forInRight=lO,ee.forOwn=cO,ee.forOwnRight=uO,ee.get=of,ee.gt=IR,ee.gte=ER,ee.has=fO,ee.hasIn=sf,ee.head=u0,ee.identity=fi,ee.includes=QL,ee.indexOf=qE,ee.inRange=LO,ee.invoke=mO,ee.isArguments=Bs,ee.isArray=kt,ee.isArrayBuffer=LR,ee.isArrayLike=hi,ee.isArrayLikeObject=Kn,ee.isBoolean=RR,ee.isBuffer=os,ee.isDate=OR,ee.isElement=NR,ee.isEmpty=DR,ee.isEqual=FR,ee.isEqualWith=PR,ee.isError=nf,ee.isFinite=WR,ee.isFunction=No,ee.isInteger=k0,ee.isLength=eu,ee.isMap=A0,ee.isMatch=BR,ee.isMatchWith=zR,ee.isNaN=jR,ee.isNative=HR,ee.isNil=VR,ee.isNull=UR,ee.isNumber=_0,ee.isObject=On,ee.isObjectLike=jn,ee.isPlainObject=vl,ee.isRegExp=rf,ee.isSafeInteger=KR,ee.isSet=S0,ee.isString=tu,ee.isSymbol=_i,ee.isTypedArray=wa,ee.isUndefined=qR,ee.isWeakMap=GR,ee.isWeakSet=YR,ee.join=QE,ee.kebabCase=PO,ee.last=ji,ee.lastIndexOf=JE,ee.lowerCase=WO,ee.lowerFirst=BO,ee.lt=XR,ee.lte=ZR,ee.max=ON,ee.maxBy=NN,ee.mean=DN,ee.meanBy=FN,ee.min=PN,ee.minBy=WN,ee.stubArray=df,ee.stubFalse=ff,ee.stubObject=AN,ee.stubString=_N,ee.stubTrue=SN,ee.multiply=BN,ee.nth=eL,ee.noConflict=mN,ee.noop=hf,ee.now=Zc,ee.pad=zO,ee.padEnd=jO,ee.padStart=HO,ee.parseInt=UO,ee.random=RO,ee.reduce=rR,ee.reduceRight=iR,ee.repeat=VO,ee.replace=KO,ee.result=kO,ee.round=zN,ee.runInContext=pe,ee.sample=sR,ee.size=cR,ee.snakeCase=qO,ee.some=uR,ee.sortedIndex=aL,ee.sortedIndexBy=lL,ee.sortedIndexOf=cL,ee.sortedLastIndex=uL,ee.sortedLastIndexBy=hL,ee.sortedLastIndexOf=dL,ee.startCase=YO,ee.startsWith=XO,ee.subtract=jN,ee.sum=HN,ee.sumBy=UN,ee.template=ZO,ee.times=$N,ee.toFinite=Do,ee.toInteger=Tt,ee.toLength=T0,ee.toLower=QO,ee.toNumber=Hi,ee.toSafeInteger=QR,ee.toString=on,ee.toUpper=JO,ee.trim=eN,ee.trimEnd=tN,ee.trimStart=nN,ee.truncate=rN,ee.unescape=iN,ee.uniqueId=MN,ee.upperCase=oN,ee.upperFirst=af,ee.each=p0,ee.eachRight=g0,ee.first=u0,uf(ee,(function(){var o={};return po(ee,function(m,M){rn.call(ee.prototype,M)||(o[M]=m)}),o})(),{chain:!1}),ee.VERSION=r,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),xr(["drop","take"],function(o,m){Ut.prototype[o]=function(M){M=M===e?1:ar(Tt(M),0);var H=this.__filtered__&&!m?new Ut(this):this.clone();return H.__filtered__?H.__takeCount__=Lr(M,H.__takeCount__):H.__views__.push({size:Lr(M,J),type:o+(H.__dir__<0?"Right":"")}),H},Ut.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),xr(["filter","map","takeWhile"],function(o,m){var M=m+1,H=M==S||M==R;Ut.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:dt(G,3),type:M}),te.__filtered__=te.__filtered__||H,te}}),xr(["head","last"],function(o,m){var M="take"+(m?"Right":"");Ut.prototype[o]=function(){return this[M](1).value()[0]}}),xr(["initial","tail"],function(o,m){var M="drop"+(m?"":"Right");Ut.prototype[o]=function(){return this.__filtered__?new Ut(this):this[M](1)}}),Ut.prototype.compact=function(){return this.filter(fi)},Ut.prototype.find=function(o){return this.filter(o).head()},Ut.prototype.findLast=function(o){return this.reverse().find(o)},Ut.prototype.invokeMap=Nt(function(o,m){return typeof o=="function"?new Ut(this):this.map(function(M){return hl(M,o,m)})}),Ut.prototype.reject=function(o){return this.filter(Jc(dt(o)))},Ut.prototype.slice=function(o,m){o=Tt(o);var M=this;return M.__filtered__&&(o>0||m<0)?new Ut(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),m!==e&&(m=Tt(m),M=m<0?M.dropRight(-m):M.take(m-o)),M)},Ut.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Ut.prototype.toArray=function(){return this.take(J)},po(Ut.prototype,function(o,m){var M=/^(?:filter|find|map|reject)|While$/.test(m),H=/^(?:head|last)$/.test(m),G=ee[H?"take"+(m=="last"?"Right":""):m],te=H||/^find/.test(m);G&&(ee.prototype[m]=function(){var ue=this.__wrapped__,fe=H?[1]:arguments,ye=ue instanceof Ut,Ee=fe[0],Le=ye||kt(ue),De=function(Wt){var Kt=G.apply(ee,$([Wt],fe));return H&&Ge?Kt[0]:Kt};Le&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Le=!1);var Ge=this.__chain__,rt=!!this.__actions__.length,ft=te&&!Ge,It=ye&&!rt;if(!te&&Le){ue=It?ue:new Ut(this);var pt=o.apply(ue,fe);return pt.__actions__.push({func:Yc,args:[De],thisArg:e}),new Wi(pt,Ge)}return ft&&It?o.apply(this,fe):(pt=this.thru(De),ft?H?pt.value()[0]:pt.value():pt)})}),xr(["pop","push","shift","sort","splice","unshift"],function(o){var m=yr[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",H=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(H&&!this.__chain__){var te=this.value();return m.apply(kt(te)?te:[],G)}return this[M](function(ue){return m.apply(kt(ue)?ue:[],G)})}}),po(Ut.prototype,function(o,m){var M=ee[m];if(M){var H=M.name+"";rn.call(ga,H)||(ga[H]=[]),ga[H].push({name:m,func:M})}}),ga[jc(e,b).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=iI,Ut.prototype.reverse=oI,Ut.prototype.value=sI,ee.prototype.at=NL,ee.prototype.chain=DL,ee.prototype.commit=FL,ee.prototype.next=PL,ee.prototype.plant=BL,ee.prototype.reverse=zL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=jL,ee.prototype.first=ee.prototype.head,il&&(ee.prototype[il]=WL),ee}),Vt=Qn();Xn?((Xn.exports=Vt)._=Vt,kn._=Vt):cn._=Vt}).call(hk)})(Wl,Wl.exports)),Wl.exports}var fk=dk();Mn("N",kl(fk)).debounce(function(){this.rebuildDisplayText()},300);var bg={exports:{}},wg;function pk(){return wg||(wg=1,(function(t,n){(function(){ace.require(["ace/mode/text"],function(e){t&&(t.exports=e)})})()})(bg)),bg.exports}pk();const gk=!0,Jn="u-",mk="uplot",vk=Jn+"hz",yk=Jn+"vt",bk=Jn+"title",wk=Jn+"wrap",xk=Jn+"under",Ck=Jn+"over",kk=Jn+"axis",ms=Jn+"off",Ak=Jn+"select",_k=Jn+"cursor-x",Sk=Jn+"cursor-y",$k=Jn+"cursor-pt",Tk=Jn+"legend",Mk=Jn+"live",Ik=Jn+"inline",Ek=Jn+"series",Lk=Jn+"marker",xg=Jn+"label",Rk=Jn+"value",Da="width",Fa="height",Pa="top",Cg="bottom",Ys="left",Lu="right",Ru="#000",kg=Ru+"0",Ou="mousemove",Ag="mousedown",Nu="mouseup",_g="mouseenter",Sg="mouseleave",$g="dblclick",Ok="resize",Nk="scroll",Tg="change",Bl="dppxchange",Du="--",Xs=typeof window<"u",Fu=Xs?document:null,Zs=Xs?window:null,Dk=Xs?navigator:null;let Jt,zl;function Pu(){let t=devicePixelRatio;Jt!=t&&(Jt=t,zl&&zu(Tg,zl,Pu),zl=matchMedia(`(min-resolution: ${Jt-.001}dppx) and (max-resolution: ${Jt+.001}dppx)`),vs(Tg,zl,Pu),Zs.dispatchEvent(new CustomEvent(Bl)))}function pi(t,n){if(n!=null){let e=t.classList;!e.contains(n)&&e.add(n)}}function Wu(t,n){let e=t.classList;e.contains(n)&&e.remove(n)}function yn(t,n,e){t.style[n]=e+"px"}function Ki(t,n,e,r){let v=Fu.createElement(t);return n!=null&&pi(v,n),e?.insertBefore(v,r),v}function Mi(t,n){return Ki("div",t,n)}const Mg=new WeakMap;function oo(t,n,e,r,v){let p="translate("+n+"px,"+e+"px)",g=Mg.get(t);p!=g&&(t.style.transform=p,Mg.set(t,p),n<0||e<0||n>r||e>v?pi(t,ms):Wu(t,ms))}const Ig=new WeakMap;function Eg(t,n,e){let r=n+e,v=Ig.get(t);r!=v&&(Ig.set(t,r),t.style.background=n,t.style.borderColor=e)}const Lg=new WeakMap;function Rg(t,n,e,r){let v=n+""+e,p=Lg.get(t);v!=p&&(Lg.set(t,v),t.style.height=e+"px",t.style.width=n+"px",t.style.marginLeft=r?-n/2+"px":0,t.style.marginTop=r?-e/2+"px":0)}const Bu={passive:!0},Fk={...Bu,capture:!0};function vs(t,n,e,r){n.addEventListener(t,e,r?Fk:Bu)}function zu(t,n,e,r){n.removeEventListener(t,e,Bu)}Xs&&Pu();function qi(t,n,e,r){let v;e=e||0,r=r||n.length-1;let p=r<=2147483647;for(;r-e>1;)v=p?e+r>>1:mi((e+r)/2),n[v]<t?e=v:r=v;return t-n[e]<=n[r]-t?e:r}function Og(t){return(n,e,r)=>{let v=-1,p=-1;for(let g=e;g<=r;g++)if(t(n[g])){v=g;break}for(let g=r;g>=e;g--)if(t(n[g])){p=g;break}return[v,p]}}const Ng=t=>t!=null,Dg=t=>t!=null&&t>0,jl=Og(Ng),Pk=Og(Dg);function Wk(t,n,e,r=0,v=!1){let p=v?Pk:jl,g=v?Dg:Ng;[n,e]=p(t,n,e);let w=t[n],h=t[n];if(n>-1)if(r==1)w=t[n],h=t[e];else if(r==-1)w=t[e],h=t[n];else for(let d=n;d<=e;d++){let a=t[d];g(a)&&(a<w?w=a:a>h&&(h=a))}return[w??hn,h??-hn]}function Hl(t,n,e,r){let v=Wg(t),p=Wg(n);t==n&&(v==-1?(t*=e,n/=e):(t/=e,n*=e));let g=e==10?yo:Bg,w=v==1?mi:Ii,h=p==1?Ii:mi,d=w(g(er(t))),a=h(g(er(n))),l=Qs(e,d),u=Qs(e,a);return e==10&&(d<0&&(l=dn(l,-d)),a<0&&(u=dn(u,-a))),r||e==2?(t=l*v,n=u*p):(t=qg(t,l),n=Kl(n,u)),[t,n]}function ju(t,n,e,r){let v=Hl(t,n,e,r);return t==0&&(v[0]=0),n==0&&(v[1]=0),v}const Hu=.1,Fg={mode:3,pad:Hu},Wa={pad:0,soft:null,mode:0},Bk={min:Wa,max:Wa};function Ul(t,n,e,r){return ql(e)?Pg(t,n,e):(Wa.pad=e,Wa.soft=r?0:null,Wa.mode=r?3:0,Pg(t,n,Bk))}function Zt(t,n){return t??n}function zk(t,n,e){for(n=Zt(n,0),e=Zt(e,t.length-1);n<=e;){if(t[n]!=null)return!0;n++}return!1}function Pg(t,n,e){let r=e.min,v=e.max,p=Zt(r.pad,0),g=Zt(v.pad,0),w=Zt(r.hard,-hn),h=Zt(v.hard,hn),d=Zt(r.soft,hn),a=Zt(v.soft,-hn),l=Zt(r.mode,0),u=Zt(v.mode,0),c=n-t,i=yo(c),s=Nr(er(t),er(n)),f=yo(s),b=er(f-i);(c<1e-24||b>10)&&(c=0,(t==0||n==0)&&(c=1e-24,l==2&&d!=hn&&(p=0),u==2&&a!=-hn&&(g=0)));let x=c||s||1e3,O=yo(x),T=Qs(10,mi(O)),_=x*(c==0?t==0?.1:1:p),C=dn(qg(t-_,T/10),24),L=t>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:hn,F=Nr(w,C<L&&t>=L?L:Gi(L,C)),E=x*(c==0?n==0?.1:1:g),I=dn(Kl(n+E,T/10),24),z=n<=a&&(u==1||u==3&&I>=a||u==2&&I<=a)?a:-hn,P=Gi(h,I>z&&n<=z?z:Nr(z,I));return F==P&&F==0&&(P=100),[F,P]}const jk=new Intl.NumberFormat(Xs?Dk.language:"en-US"),Uu=t=>jk.format(t),gi=Math,Vl=gi.PI,er=gi.abs,mi=gi.floor,tr=gi.round,Ii=gi.ceil,Gi=gi.min,Nr=gi.max,Qs=gi.pow,Wg=gi.sign,yo=gi.log10,Bg=gi.log2,Hk=(t,n=1)=>gi.sinh(t)*n,Vu=(t,n=1)=>gi.asinh(t/n),hn=1/0;function zg(t){return(yo((t^t>>31)-(t>>31))|0)+1}function Ku(t,n,e){return Gi(Nr(t,n),e)}function jg(t){return typeof t=="function"}function Bt(t){return jg(t)?t:()=>t}const Uk=()=>{},Hg=t=>t,Ug=(t,n)=>n,Vk=t=>null,Vg=t=>!0,Kg=(t,n)=>t==n,Kk=/\.\d*?(?=9{6,}|0{6,})/gm,ys=t=>{if(Yg(t)||zo.has(t))return t;const n=`${t}`,e=n.match(Kk);if(e==null)return t;let r=e[0].length-1;if(n.indexOf("e-")!=-1){let[v,p]=n.split("e");return+`${ys(v)}e${p}`}return dn(t,r)};function bs(t,n){return ys(dn(ys(t/n))*n)}function Kl(t,n){return ys(Ii(ys(t/n))*n)}function qg(t,n){return ys(mi(ys(t/n))*n)}function dn(t,n=0){if(Yg(t))return t;let e=10**n,r=t*e*(1+Number.EPSILON);return tr(r)/e}const zo=new Map;function Gg(t){return((""+t).split(".")[1]||"").length}function Ba(t,n,e,r){let v=[],p=r.map(Gg);for(let g=n;g<e;g++){let w=er(g),h=dn(Qs(t,g),w);for(let d=0;d<r.length;d++){let a=t==10?+`${r[d]}e${g}`:r[d]*h,l=(g>=0?0:w)+(g>=p[d]?0:p[d]),u=t==10?a:dn(a,l);v.push(u),zo.set(u,l)}}return v}const za={},qu=[],Js=[null,null],jo=Array.isArray,Yg=Number.isInteger,qk=t=>t===void 0;function Xg(t){return typeof t=="string"}function ql(t){let n=!1;if(t!=null){let e=t.constructor;n=e==null||e==Object}return n}function Gk(t){return t!=null&&typeof t=="object"}const Yk=Object.getPrototypeOf(Uint8Array),Zg="__proto__";function ea(t,n=ql){let e;if(jo(t)){let r=t.find(v=>v!=null);if(jo(r)||n(r)){e=Array(t.length);for(let v=0;v<t.length;v++)e[v]=ea(t[v],n)}else e=t.slice()}else if(t instanceof Yk)e=t.slice();else if(n(t)){e={};for(let r in t)r!=Zg&&(e[r]=ea(t[r],n))}else e=t;return e}function Gn(t){let n=arguments;for(let e=1;e<n.length;e++){let r=n[e];for(let v in r)v!=Zg&&(ql(t[v])?Gn(t[v],ea(r[v])):t[v]=ea(r[v]))}return t}const Xk=0,Zk=1,Qk=2;function Jk(t,n,e){for(let r=0,v,p=-1;r<n.length;r++){let g=n[r];if(g>p){for(v=g-1;v>=0&&t[v]==null;)t[v--]=null;for(v=g+1;v<e&&t[v]==null;)t[p=v++]=null}}}function eA(t,n){if(rA(t)){let g=t[0].slice();for(let w=1;w<t.length;w++)g.push(...t[w].slice(1));return iA(g[0])||(g=nA(g)),g}let e=new Set;for(let g=0;g<t.length;g++){let w=t[g][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((g,w)=>g-w)],v=r[0].length,p=new Map;for(let g=0;g<v;g++)p.set(r[0][g],g);for(let g=0;g<t.length;g++){let w=t[g],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(v).fill(void 0),u=n?n[g][d]:Zk,c=[];for(let i=0;i<a.length;i++){let s=a[i],f=p.get(h[i]);s===null?u!=Xk&&(l[f]=s,u==Qk&&c.push(f)):l[f]=s}Jk(l,c,v),r.push(l)}}return r}const tA=typeof queueMicrotask>"u"?t=>Promise.resolve().then(t):queueMicrotask;function nA(t){let n=t[0],e=n.length,r=Array(e);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,g)=>n[p]-n[g]);let v=[];for(let p=0;p<t.length;p++){let g=t[p],w=Array(e);for(let h=0;h<e;h++)w[h]=g[r[h]];v.push(w)}return v}function rA(t){let n=t[0][0],e=n.length;for(let r=1;r<t.length;r++){let v=t[r][0];if(v.length!=e)return!1;if(v!=n){for(let p=0;p<e;p++)if(v[p]!=n[p])return!1}}return!0}function iA(t,n=100){const e=t.length;if(e<=1)return!0;let r=0,v=e-1;for(;r<=v&&t[r]==null;)r++;for(;v>=r&&t[v]==null;)v--;if(v<=r)return!0;const p=Nr(1,mi((v-r+1)/n));for(let g=t[r],w=r+p;w<=v;w+=p){const h=t[w];if(h!=null){if(h<=g)return!1;g=h}}return!0}const Qg=["January","February","March","April","May","June","July","August","September","October","November","December"],Jg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function em(t){return t.slice(0,3)}const oA=Jg.map(em),sA=Qg.map(em),aA={MMMM:Qg,MMM:sA,WWWW:Jg,WWW:oA};function ja(t){return(t<10?"0":"")+t}function lA(t){return(t<10?"00":t<100?"0":"")+t}const cA={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,n)=>n.MMMM[t.getMonth()],MMM:(t,n)=>n.MMM[t.getMonth()],MM:t=>ja(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>ja(t.getDate()),D:t=>t.getDate(),WWWW:(t,n)=>n.WWWW[t.getDay()],WWW:(t,n)=>n.WWW[t.getDay()],HH:t=>ja(t.getHours()),H:t=>t.getHours(),h:t=>{let n=t.getHours();return n==0?12:n>12?n-12:n},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>ja(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>ja(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>lA(t.getMilliseconds())};function Gu(t,n){n=n||aA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,v;for(;v=r.exec(t);)e.push(v[0][0]=="{"?cA[v[1]]:v[0]);return p=>{let g="";for(let w=0;w<e.length;w++)g+=typeof e[w]=="string"?e[w]:e[w](p,n);return g}}const uA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function hA(t,n){let e;return n=="UTC"||n=="Etc/UTC"?e=new Date(+t+t.getTimezoneOffset()*6e4):n==uA?e=t:(e=new Date(t.toLocaleString("en-US",{timeZone:n})),e.setMilliseconds(t.getMilliseconds())),e}const tm=t=>t%1==0,Gl=[1,2,2.5,5],dA=Ba(10,-32,0,Gl),nm=Ba(10,0,32,Gl),fA=nm.filter(tm),ws=dA.concat(nm),Yu=`
|
|
1476
|
-
`,rm="{YYYY}",im=Yu+rm,om="{M}/{D}",Ha=Yu+om,Yl=Ha+"/{YY}",sm="{aa}",pA="{h}:{mm}",ta=pA+sm,am=Yu+ta,lm=":{ss}",nn=null;function cm(t){let n=t*1e3,e=n*60,r=e*60,v=r*24,p=v*30,g=v*365,w=(t==1?Ba(10,0,3,Gl).filter(tm):Ba(10,-3,0,Gl)).concat([n,n*5,n*10,n*15,n*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,v,v*2,v*3,v*4,v*5,v*6,v*7,v*8,v*9,v*10,v*15,p,p*2,p*3,p*4,p*6,g,g*2,g*5,g*10,g*25,g*50,g*100]);const h=[[g,rm,nn,nn,nn,nn,nn,nn,1],[v*28,"{MMM}",im,nn,nn,nn,nn,nn,1],[v,om,im,nn,nn,nn,nn,nn,1],[r,"{h}"+sm,Yl,nn,Ha,nn,nn,nn,1],[e,ta,Yl,nn,Ha,nn,nn,nn,1],[n,lm,Yl+" "+ta,nn,Ha+" "+ta,nn,am,nn,1],[t,lm+".{fff}",Yl+" "+ta,nn,Ha+" "+ta,nn,am,nn,1]];function d(a){return(l,u,c,i,s,f)=>{let b=[],x=s>=g,O=s>=p&&s<g,T=a(c),_=dn(T*t,3),C=Xu(T.getFullYear(),x?0:T.getMonth(),O||x?1:T.getDate()),L=dn(C*t,3);if(O||x){let F=O?s/p:0,E=x?s/g:0,I=_==L?_:dn(Xu(C.getFullYear()+E,C.getMonth()+F,1)*t,3),z=new Date(tr(I/t)),P=z.getFullYear(),N=z.getMonth();for(let S=0;I<=i;S++){let k=Xu(P+E*S,N+F*S,1),R=k-a(dn(k*t,3));I=dn((+k+R)*t,3),I<=i&&b.push(I)}}else{let F=s>=v?v:s,E=mi(c)-mi(_),I=L+E+Kl(_-L,F);b.push(I);let z=a(I),P=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,N=s/r,S=l.axes[u]._space,k=f/S;for(;I=dn(I+s,t==1?0:3),!(I>i);)if(N>1){let R=mi(dn(P+N,6))%24,B=a(I).getHours()-R;B>1&&(B=-1),I-=B*r,P=(P+N)%24;let U=b[b.length-1];dn((I-U)/s,3)*k>=.7&&b.push(I)}else b.push(I)}return b}}return[w,h,d]}const[gA,mA,vA]=cm(1),[yA,bA,wA]=cm(.001);Ba(2,-53,53,[1]);function um(t,n){return t.map(e=>e.map((r,v)=>v==0||v==8||r==null?r:n(v==1||e[8]==0?r:e[1]+r)))}function hm(t,n){return(e,r,v,p,g)=>{let w=n.find(i=>g>=i[0])||n[n.length-1],h,d,a,l,u,c;return r.map(i=>{let s=t(i),f=s.getFullYear(),b=s.getMonth(),x=s.getDate(),O=s.getHours(),T=s.getMinutes(),_=s.getSeconds(),C=f!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||O!=l&&w[5]||T!=u&&w[6]||_!=c&&w[7]||w[1];return h=f,d=b,a=x,l=O,u=T,c=_,C(s)})}}function xA(t,n){let e=Gu(n);return(r,v,p,g,w)=>v.map(h=>e(t(h)))}function Xu(t,n,e){return new Date(t,n,e)}function dm(t,n){return n(t)}const CA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function fm(t,n){return(e,r,v,p)=>p==null?Du:n(t(r))}function kA(t,n){let e=t.series[n];return e.width?e.stroke(t,n):e.points.width?e.points.stroke(t,n):null}function AA(t,n){return t.series[n].fill(t,n)}const _A={show:!0,live:!0,isolate:!1,mount:Uk,markers:{show:!0,width:2,stroke:kA,fill:AA,dash:"solid"},idx:null,idxs:null,values:[]};function SA(t,n){let e=t.cursor.points,r=Mi(),v=e.size(t,n);yn(r,Da,v),yn(r,Fa,v);let p=v/-2;yn(r,"marginLeft",p),yn(r,"marginTop",p);let g=e.width(t,n,v);return g&&yn(r,"borderWidth",g),r}function $A(t,n){let e=t.series[n].points;return e._fill||e._stroke}function TA(t,n){let e=t.series[n].points;return e._stroke||e._fill}function MA(t,n){return t.series[n].points.size}const Zu=[0,0];function IA(t,n,e){return Zu[0]=n,Zu[1]=e,Zu}function Xl(t,n,e,r=!0){return v=>{v.button==0&&(!r||v.target==n)&&e(v)}}function Qu(t,n,e,r=!0){return v=>{(!r||v.target==n)&&e(v)}}const EA={show:!0,x:!0,y:!0,lock:!1,move:IA,points:{one:!1,show:SA,size:MA,width:0,stroke:TA,fill:$A},bind:{mousedown:Xl,mouseup:Xl,click:Xl,dblclick:Xl,mousemove:Qu,mouseleave:Qu,mouseenter:Qu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,n)=>{n.stopPropagation(),n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,n,e,r,v)=>r-v,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},pm={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ju=Gn({},pm,{filter:Ug}),gm=Gn({},Ju,{size:10}),mm=Gn({},pm,{show:!1}),eh='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"',vm="bold "+eh,ym=1.5,bm={show:!0,scale:"x",stroke:Ru,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:vm,side:2,grid:Ju,ticks:gm,border:mm,font:eh,lineGap:ym,rotate:0},LA="Value",RA="Time",wm={show:!0,scale:"x",auto:!1,sorted:1,min:hn,max:-hn,idxs:[]};function OA(t,n,e,r,v){return n.map(p=>p==null?"":Uu(p))}function NA(t,n,e,r,v,p,g){let w=[],h=zo.get(v)||0;e=g?e:dn(Kl(e,v),h);for(let d=e;d<=r;d=dn(d+v,h))w.push(Object.is(d,-0)?0:d);return w}function th(t,n,e,r,v,p,g){const w=[],h=t.scales[t.axes[n].scale].log,d=h==10?yo:Bg,a=mi(d(e));v=Qs(h,a),h==10&&(v=ws[qi(v,ws)]);let l=e,u=v*h;h==10&&(u=ws[qi(u,ws)]);do w.push(l),l=l+v,h==10&&!zo.has(l)&&(l=dn(l,zo.get(v))),l>=u&&(v=l,u=v*h,h==10&&(u=ws[qi(u,ws)]));while(l<=r);return w}function DA(t,n,e,r,v,p,g){let w=t.scales[t.axes[n].scale].asinh,h=r>w?th(t,n,Nr(w,e),r,v):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?th(t,n,Nr(w,-r),-e,v):[w]).reverse().map(a=>-a).concat(d,h)}const xm=/./,FA=/[12357]/,PA=/[125]/,Cm=/1/,nh=(t,n,e,r)=>t.map((v,p)=>n==4&&v==0||p%r==0&&e.test(v.toExponential()[v<0?1:0])?v:null);function WA(t,n,e,r,v){let p=t.axes[e],g=p.scale,w=t.scales[g],h=t.valToPos,d=p._space,a=h(10,g),l=h(9,g)-a>=d?xm:h(7,g)-a>=d?FA:h(5,g)-a>=d?PA:Cm;if(l==Cm){let u=er(h(1,g)-a);if(u<d)return nh(n.slice().reverse(),w.distr,l,Ii(d/u)).reverse()}return nh(n,w.distr,l,1)}function BA(t,n,e,r,v){let p=t.axes[e],g=p.scale,w=p._space,h=t.valToPos,d=er(h(1,g)-h(2,g));return d<w?nh(n.slice().reverse(),3,xm,Ii(w/d)).reverse():n}function zA(t,n,e,r){return r==null?Du:n==null?"":Uu(n)}const km={show:!0,scale:"y",stroke:Ru,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:vm,side:3,grid:Ju,ticks:gm,border:mm,font:eh,lineGap:ym,rotate:0};function jA(t,n){let e=3+(t||1)*2;return dn(e*n,3)}function HA(t,n){let{scale:e,idxs:r}=t.series[0],v=t._data[0],p=t.valToPos(v[r[0]],e,!0),g=t.valToPos(v[r[1]],e,!0),w=er(g-p),h=t.series[n],d=w/(h.points.space*Jt);return r[1]-r[0]<=d}const Am={scale:null,auto:!0,sorted:0,min:hn,max:-hn},_m=(t,n,e,r,v)=>v,Sm={show:!0,auto:!0,sorted:0,gaps:_m,alpha:1,facets:[Gn({},Am,{scale:"x"}),Gn({},Am,{scale:"y"})]},$m={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:_m,alpha:1,points:{show:HA,filter:null},values:null,min:hn,max:-hn,idxs:[],path:null,clip:null};function UA(t,n,e,r,v){return e/10}const Tm={time:gk,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},VA=Gn({},Tm,{time:!1,ori:1}),Mm={};function Im(t,n){let e=Mm[t];return e||(e={key:t,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(v=>v!=r)},pub(r,v,p,g,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=v&&e.plots[a].pub(r,v,p,g,w,h,d)}},t!=null&&(Mm[t]=e)),e}const na=1,rh=2;function xs(t,n,e){const r=t.mode,v=t.series[n],p=r==2?t._data[n]:t._data,g=t.scales,w=t.bbox;let h=p[0],d=r==2?p[1]:p[n],a=r==2?g[v.facets[0].scale]:g[t.series[0].scale],l=r==2?g[v.facets[1].scale]:g[v.scale],u=w.left,c=w.top,i=w.width,s=w.height,f=t.valToPosH,b=t.valToPosV;return a.ori==0?e(v,h,d,a,l,f,b,u,c,i,s,Ql,ra,ec,Rm,Nm):e(v,h,d,a,l,b,f,c,u,s,i,Jl,ia,sh,Om,Dm)}function ih(t,n){let e=0,r=0,v=Zt(t.bands,qu);for(let p=0;p<v.length;p++){let g=v[p];g.series[0]==n?e=g.dir:g.series[1]==n&&(g.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function KA(t,n,e,r,v){let p=t.mode,g=t.series[n],w=p==2?g.facets[1].scale:g.scale,h=t.scales[w];return v==-1?h.min:v==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function bo(t,n,e,r,v,p){return xs(t,n,(g,w,h,d,a,l,u,c,i,s,f)=>{let b=g.pxRound;const x=d.dir*(d.ori==0?1:-1),O=d.ori==0?ra:ia;let T,_;x==1?(T=e,_=r):(T=r,_=e);let C=b(l(w[T],d,s,c)),L=b(u(h[T],a,f,i)),F=b(l(w[_],d,s,c)),E=b(u(p==1?a.max:a.min,a,f,i)),I=new Path2D(v);return O(I,F,E),O(I,C,E),O(I,C,L),I})}function Zl(t,n,e,r,v,p){let g=null;if(t.length>0){g=new Path2D;const w=n==0?ec:sh;let h=e;for(let l=0;l<t.length;l++){let u=t[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(g,h,r,c,r+p),h=u[1]}}let d=e+v-h,a=10;d>0&&w(g,h,r-a/2,d,r+p+a)}return g}function qA(t,n,e){let r=t[t.length-1];r&&r[0]==n?r[1]=e:t.push([n,e])}function oh(t,n,e,r,v,p,g){let w=[],h=t.length;for(let d=v==1?e:r;d>=e&&d<=r;d+=v)if(n[d]===null){let a=d,l=d;if(v==1)for(;++d<=r&&n[d]===null;)l=d;else for(;--d>=e&&n[d]===null;)l=d;let u=p(t[a]),c=l==a?u:p(t[l]),i=a-v;u=g<=0&&i>=0&&i<h?p(t[i]):u;let s=l+v;c=g>=0&&s>=0&&s<h?p(t[s]):c,c>=u&&w.push([u,c])}return w}function Em(t){return t==0?Hg:t==1?tr:n=>bs(n,t)}function Lm(t){let n=t==0?Ql:Jl,e=t==0?(v,p,g,w,h,d)=>{v.arcTo(p,g,w,h,d)}:(v,p,g,w,h,d)=>{v.arcTo(g,p,h,w,d)},r=t==0?(v,p,g,w,h)=>{v.rect(p,g,w,h)}:(v,p,g,w,h)=>{v.rect(g,p,h,w)};return(v,p,g,w,h,d=0,a=0)=>{d==0&&a==0?r(v,p,g,w,h):(d=Gi(d,w/2,h/2),a=Gi(a,w/2,h/2),n(v,p+d,g),e(v,p+w,g,p+w,g+h,d),e(v,p+w,g+h,p,g+h,a),e(v,p,g+h,p,g,a),e(v,p,g,p+w,g,d),v.closePath())}}const Ql=(t,n,e)=>{t.moveTo(n,e)},Jl=(t,n,e)=>{t.moveTo(e,n)},ra=(t,n,e)=>{t.lineTo(n,e)},ia=(t,n,e)=>{t.lineTo(e,n)},ec=Lm(0),sh=Lm(1),Rm=(t,n,e,r,v,p)=>{t.arc(n,e,r,v,p)},Om=(t,n,e,r,v,p)=>{t.arc(e,n,r,v,p)},Nm=(t,n,e,r,v,p,g)=>{t.bezierCurveTo(n,e,r,v,p,g)},Dm=(t,n,e,r,v,p,g)=>{t.bezierCurveTo(e,n,v,r,g,p)};function Fm(t){return(n,e,r,v,p)=>xs(n,e,(g,w,h,d,a,l,u,c,i,s,f)=>{let{pxRound:b,points:x}=g,O,T;d.ori==0?(O=Ql,T=Rm):(O=Jl,T=Om);const _=dn(x.width*Jt,3);let C=(x.size-x.width)/2*Jt,L=dn(C*2,3),F=new Path2D,E=new Path2D,{left:I,top:z,width:P,height:N}=n.bbox;ec(E,I-L,z-L,P+L*2,N+L*2);const S=k=>{if(h[k]!=null){let R=b(l(w[k],d,s,c)),B=b(u(h[k],a,f,i));O(F,R+C,B),T(F,R,B,C,0,Vl*2)}};if(p)p.forEach(S);else for(let k=r;k<=v;k++)S(k);return{stroke:_>0?F:null,fill:F,clip:E,flags:na|rh}})}function Pm(t){return(n,e,r,v,p,g)=>{r!=v&&(p!=r&&g!=r&&t(n,e,r),p!=v&&g!=v&&t(n,e,v),t(n,e,g))}}const GA=Pm(ra),YA=Pm(ia);function Wm(t){const n=Zt(t?.alignGaps,0);return(e,r,v,p)=>xs(e,r,(g,w,h,d,a,l,u,c,i,s,f)=>{[v,p]=jl(h,v,p);let b=g.pxRound,x=P=>b(l(P,d,s,c)),O=P=>b(u(P,a,f,i)),T,_;d.ori==0?(T=ra,_=GA):(T=ia,_=YA);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:na},F=L.stroke;let E=!1;if(p-v>=s*4){let P=he=>e.posToVal(he,d.key,!0),N=null,S=null,k,R,B,U=x(w[C==1?v:p]),q=x(w[v]),Q=x(w[p]),J=P(C==1?q+1:Q-1);for(let he=C==1?v:p;he>=v&&he<=p;he+=C){let ne=w[he],ce=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];ce==U?se!=null?(R=se,N==null?(T(F,ce,O(R)),k=N=S=R):R<N?N=R:R>S&&(S=R)):se===null&&(E=!0):(N!=null&&_(F,U,O(N),O(S),O(k),O(R)),se!=null?(R=se,T(F,ce,O(R)),N=S=k=R):(N=S=null,se===null&&(E=!0)),U=ce,J=P(U+C))}N!=null&&N!=S&&B!=U&&_(F,U,O(N),O(S),O(k),O(R))}else for(let P=C==1?v:p;P>=v&&P<=p;P+=C){let N=h[P];N===null?E=!0:N!=null&&T(F,x(w[P]),O(N))}let[I,z]=ih(e,r);if(g.fill!=null||I!=0){let P=L.fill=new Path2D(F),N=g.fillTo(e,r,g.min,g.max,I),S=O(N),k=x(w[v]),R=x(w[p]);C==-1&&([R,k]=[k,R]),T(P,R,S),T(P,k,S)}if(!g.spanGaps){let P=[];E&&P.push(...oh(w,h,v,p,C,x,n)),L.gaps=P=g.gaps(e,r,v,p,P),L.clip=Zl(P,d.ori,c,i,s,f)}return z!=0&&(L.band=z==2?[bo(e,r,v,p,F,-1),bo(e,r,v,p,F,1)]:bo(e,r,v,p,F,z)),L})}function XA(t){const n=Zt(t.align,1),e=Zt(t.ascDesc,!1),r=Zt(t.alignGaps,0),v=Zt(t.extend,!1);return(p,g,w,h)=>xs(p,g,(d,a,l,u,c,i,s,f,b,x,O)=>{[w,h]=jl(l,w,h);let T=d.pxRound,{left:_,width:C}=p.bbox,L=Q=>T(i(Q,u,x,f)),F=Q=>T(s(Q,c,O,b)),E=u.ori==0?ra:ia;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:na},z=I.stroke,P=u.dir*(u.ori==0?1:-1);let N=F(l[P==1?w:h]),S=L(a[P==1?w:h]),k=S,R=S;v&&n==-1&&(R=_,E(z,R,N)),E(z,S,N);for(let Q=P==1?w:h;Q>=w&&Q<=h;Q+=P){let J=l[Q];if(J==null)continue;let he=L(a[Q]),ne=F(J);n==1?E(z,he,N):E(z,k,ne),E(z,he,ne),N=ne,k=he}let B=k;v&&n==1&&(B=_+C,E(z,B,N));let[U,q]=ih(p,g);if(d.fill!=null||U!=0){let Q=I.fill=new Path2D(z),J=d.fillTo(p,g,d.min,d.max,U),he=F(J);E(Q,B,he),E(Q,R,he)}if(!d.spanGaps){let Q=[];Q.push(...oh(a,l,w,h,P,L,r));let J=d.width*Jt/2,he=e||n==1?J:-J,ne=e||n==-1?-J:J;Q.forEach(ce=>{ce[0]+=he,ce[1]+=ne}),I.gaps=Q=d.gaps(p,g,w,h,Q),I.clip=Zl(Q,u.ori,f,b,x,O)}return q!=0&&(I.band=q==2?[bo(p,g,w,h,z,-1),bo(p,g,w,h,z,1)]:bo(p,g,w,h,z,q)),I})}function Bm(t,n,e,r,v,p,g=hn){if(t.length>1){let w=null;for(let h=0,d=1/0;h<t.length;h++)if(n[h]!==void 0){if(w!=null){let a=er(t[h]-t[w]);a<d&&(d=a,g=er(e(t[h],r,v,p)-e(t[w],r,v,p)))}w=h}}return g}function ZA(t){t=t||za;const n=Zt(t.size,[.6,hn,1]),e=t.align||0,r=t.gap||0;let v=t.radius;v=v==null?[0,0]:typeof v=="number"?[v,0]:v;const p=Bt(v),g=1-n[0],w=Zt(n[1],hn),h=Zt(n[2],1),d=Zt(t.disp,za),a=Zt(t.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,s,f)=>xs(c,i,(b,x,O,T,_,C,L,F,E,I,z)=>{let P=b.pxRound,N=e,S=r*Jt,k=w*Jt,R=h*Jt,B,U;T.ori==0?[B,U]=p(c,i):[U,B]=p(c,i);const q=T.dir*(T.ori==0?1:-1);let Q=T.ori==0?ec:sh,J=T.ori==0?a:(He,Lt,zt,An,ur,nr,fn)=>{a(He,Lt,zt,ur,An,fn,nr)},he=Zt(c.bands,qu).find(He=>He.series[0]==i),ne=he!=null?he.dir:0,ce=b.fillTo(c,i,b.min,b.max,ne),se=P(L(ce,_,z,E)),de,me,Se,Te=I,Me=P(b.width*Jt),Xe=!1,qe=null,st=null,Je=null,at=null;l!=null&&(Me==0||u!=null)&&(Xe=!0,qe=l.values(c,i,s,f),st=new Map,new Set(qe).forEach(He=>{He!=null&&st.set(He,new Path2D)}),Me>0&&(Je=u.values(c,i,s,f),at=new Map,new Set(Je).forEach(He=>{He!=null&&at.set(He,new Path2D)})));let{x0:Yt,size:bn}=d;if(Yt!=null&&bn!=null){N=1,x=Yt.values(c,i,s,f),Yt.unit==2&&(x=x.map(Lt=>c.posToVal(F+Lt*I,T.key,!0)));let He=bn.values(c,i,s,f);bn.unit==2?me=He[0]*I:me=C(He[0],T,I,F)-C(0,T,I,F),Te=Bm(x,O,C,T,I,F,Te),Se=Te-me+S}else Te=Bm(x,O,C,T,I,F,Te),Se=Te*g+S,me=Te-Se;Se<1&&(Se=0),Me>=me/2&&(Me=0),Se<5&&(P=Hg);let Pt=Se>0,cr=Te-Se-(Pt?Me:0);me=P(Ku(cr,R,k)),de=(N==0?me/2:N==q?0:me)-N*q*((N==0?S/2:0)+(Pt?Me/2:0));const ln={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},En=Xe?null:new Path2D;let Un=null;if(he!=null)Un=c.data[he.series[1]];else{let{y0:He,y1:Lt}=d;He!=null&&Lt!=null&&(O=Lt.values(c,i,s,f),Un=He.values(c,i,s,f))}let wr=B*me,gt=U*me;for(let He=q==1?s:f;He>=s&&He<=f;He+=q){let Lt=O[He];if(Lt==null)continue;if(Un!=null){let qt=Un[He]??0;if(Lt-qt==0)continue;se=L(qt,_,z,E)}let zt=T.distr!=2||d!=null?x[He]:He,An=C(zt,T,I,F),ur=L(Zt(Lt,ce),_,z,E),nr=P(An-de),fn=P(Nr(ur,se)),Nn=P(Gi(ur,se)),Ln=fn-Nn;if(Lt!=null){let qt=Lt<0?gt:wr,an=Lt<0?wr:gt;Xe?(Me>0&&Je[He]!=null&&Q(at.get(Je[He]),nr,Nn+mi(Me/2),me,Nr(0,Ln-Me),qt,an),qe[He]!=null&&Q(st.get(qe[He]),nr,Nn+mi(Me/2),me,Nr(0,Ln-Me),qt,an)):Q(En,nr,Nn+mi(Me/2),me,Nr(0,Ln-Me),qt,an),J(c,i,He,nr-Me/2,Nn,me+Me,Ln)}}return Me>0?ln.stroke=Xe?at:En:Xe||(ln._fill=b.width==0?b._fill:b._stroke??b._fill,ln.width=0),ln.fill=Xe?st:En,ln})}function QA(t,n){const e=Zt(n?.alignGaps,0);return(r,v,p,g)=>xs(r,v,(w,h,d,a,l,u,c,i,s,f,b)=>{[p,g]=jl(d,p,g);let x=w.pxRound,O=B=>x(u(B,a,f,i)),T=B=>x(c(B,l,b,s)),_,C,L;a.ori==0?(_=Ql,L=ra,C=Nm):(_=Jl,L=ia,C=Dm);const F=a.dir*(a.ori==0?1:-1);let E=O(h[F==1?p:g]),I=E,z=[],P=[];for(let B=F==1?p:g;B>=p&&B<=g;B+=F)if(d[B]!=null){let U=h[B],q=O(U);z.push(I=q),P.push(T(d[B]))}const N={stroke:t(z,P,_,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:na},S=N.stroke;let[k,R]=ih(r,v);if(w.fill!=null||k!=0){let B=N.fill=new Path2D(S),U=w.fillTo(r,v,w.min,w.max,k),q=T(U);L(B,I,q),L(B,E,q)}if(!w.spanGaps){let B=[];B.push(...oh(h,d,p,g,F,O,e)),N.gaps=B=w.gaps(r,v,p,g,B),N.clip=Zl(B,a.ori,i,s,f,b)}return R!=0&&(N.band=R==2?[bo(r,v,p,g,S,-1),bo(r,v,p,g,S,1)]:bo(r,v,p,g,S,R)),N})}function JA(t){return QA(e_,t)}function e_(t,n,e,r,v,p){const g=t.length;if(g<2)return null;const w=new Path2D;if(e(w,t[0],n[0]),g==2)r(w,t[1],n[1]);else{let h=Array(g),d=Array(g-1),a=Array(g-1),l=Array(g-1);for(let u=0;u<g-1;u++)a[u]=n[u+1]-n[u],l[u]=t[u+1]-t[u],d[u]=a[u]/l[u];h[0]=d[0];for(let u=1;u<g-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[g-1]=d[g-2];for(let u=0;u<g-1;u++)v(w,t[u]+l[u]/3,n[u]+h[u]*l[u]/3,t[u+1]-l[u]/3,n[u+1]-h[u+1]*l[u]/3,t[u+1],n[u+1])}return w}const ah=new Set;function zm(){for(let t of ah)t.syncRect(!0)}Xs&&(vs(Ok,Zs,zm),vs(Nk,Zs,zm,!0),vs(Bl,Zs,()=>{Sr.pxRatio=Jt}));const t_=Wm(),n_=Fm();function jm(t,n,e,r){return(r?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((v,p)=>lh(v,p,n,e))}function r_(t,n){return t.map((e,r)=>r==0?{}:Gn({},n,e))}function lh(t,n,e,r){return Gn({},n==0?e:r,t)}function Hm(t,n,e){return n==null?Js:[n,e]}const i_=Hm;function o_(t,n,e){return n==null?Js:Ul(n,e,Hu,!0)}function Um(t,n,e,r){return n==null?Js:Hl(n,e,t.scales[r].log,!1)}const s_=Um;function Vm(t,n,e,r){return n==null?Js:ju(n,e,t.scales[r].log,!1)}const a_=Vm;function l_(t,n,e,r,v){let p=Nr(zg(t),zg(n)),g=n-t,w=qi(v/r*g,e);do{let h=e[w],d=r*h/g;if(d>=v&&p+(h<5?zo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function Km(t){let n,e;return t=t.replace(/(\d+)px/,(r,v)=>(n=tr((e=+v)*Jt))+"px"),[t,n,e]}function c_(t){t.show&&[t.font,t.labelFont].forEach(n=>{let e=dn(n[2]*Jt,1);n[0]=n[0].replace(/[0-9.]+px/,e+"px"),n[1]=e})}function Sr(t,n,e){const r={mode:Zt(t.mode,1)},v=r.mode;function p(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?p(V,X,ie,oe):g(V,X,ie,oe)}r.valToPosH=p,r.valToPosV=g;let h=!1;r.status=0;const d=r.root=Mi(mk);if(t.id!=null&&(d.id=t.id),pi(d,t.class),t.title){let V=Mi(bk,d);V.textContent=t.title}const a=Ki("canvas"),l=r.ctx=a.getContext("2d"),u=Mi(wk,d);vs("click",u,V=>{V.target===i&&(tn!=Oi||Ht!=fo)&&Pn.click(r,V)},!0);const c=r.under=Mi(xk,u);u.appendChild(a);const i=r.over=Mi(Ck,u);t=ea(t);const s=+Zt(t.pxAlign,1),f=Em(s);(t.plugins||[]).forEach(V=>{V.opts&&(t=V.opts(r,t)||t)});const b=t.ms||.001,x=r.series=v==1?jm(t.series||[],wm,$m,!1):r_(t.series||[null],Sm),O=r.axes=jm(t.axes||[],bm,km,!0),T=r.scales={},_=r.bands=t.bands||[];_.forEach(V=>{V.fill=Bt(V.fill||null),V.dir=Zt(V.dir,-1)});const C=v==2?x[1].facets[0].scale:x[0].scale,L={axes:ko,series:ca},F=(t.drawOrder||["axes","series"]).map(V=>L[V]);function E(V){const X=V.distr==3?ie=>yo(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>Vu(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function I(V){let X=T[V];if(X==null){let ie=(t.scales||za)[V]||za;if(ie.from!=null){I(ie.from);let oe=Gn({},T[ie.from],ie,{key:V});oe.valToPct=E(oe),T[V]=oe}else{X=T[V]=Gn({},V==C?Tm:VA,ie),X.key=V;let oe=X.time,ge=X.range,xe=jo(ge);if((V!=C||v==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Fg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Fg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&ql(ge))){let Ie=ge;ge=(Pe,ze,Ke)=>ze==null?Js:Ul(ze,Ke,Ie)}X.range=Bt(ge||(oe?i_:V==C?X.distr==3?s_:X.distr==4?a_:Hm:X.distr==3?Um:X.distr==4?Vm:o_)),X.auto=Bt(xe?!1:X.auto),X.clamp=Bt(X.clamp||UA),X._min=X._max=null,X.valToPct=E(X)}}}I("x"),I("y"),v==1&&x.forEach(V=>{I(V.scale)}),O.forEach(V=>{I(V.scale)});for(let V in t.scales)I(V);const z=T[C],P=z.distr;let N,S;z.ori==0?(pi(d,vk),N=p,S=g):(pi(d,yk),N=g,S=p);const k={};for(let V in T){let X=T[V];(X.min!=null||X.max!=null)&&(k[V]={min:X.min,max:X.max},X.min=X.max=null)}const R=t.tzDate||(V=>new Date(tr(V/b))),B=t.fmtDate||Gu,U=b==1?vA(R):wA(R),q=hm(R,um(b==1?mA:bA,B)),Q=fm(R,dm(CA,B)),J=[],he=r.legend=Gn({},_A,t.legend),ne=r.cursor=Gn({},EA,{drag:{y:v==2}},t.cursor),ce=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=Bt(de.width),de.dash=Bt(de.dash),de.stroke=Bt(de.stroke),de.fill=Bt(de.fill);let me,Se,Te,Me=[],Xe=[],qe,st=!1,Je={};if(he.live){const V=x[1]?x[1].values:null;st=V!=null,qe=st?V(r,1,0):{_:0};for(let X in qe)Je[X]=Du}if(ce)if(me=Ki("table",Tk,d),Te=Ki("tbody",null,me),he.mount(r,me),st){Se=Ki("thead",null,me,Te);let V=Ki("tr",null,Se);Ki("th",null,V);for(var at in qe)Ki("th",xg,V).textContent=at}else pi(me,Ik),he.live&&pi(me,Mk);const Yt={show:!0},bn={show:!1};function Pt(V,X){if(X==0&&(st||!he.live||v==2))return Js;let ie=[],oe=Ki("tr",Ek,Te,Te.childNodes[X]);pi(oe,V.class),V.show||pi(oe,ms);let ge=Ki("th",null,oe);if(de.show){let Pe=Mi(Lk,ge);if(X>0){let ze=de.width(r,X);ze&&(Pe.style.border=ze+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Pe.style.background=de.fill(r,X)}}let xe=Mi(xg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),ln("click",ge,Pe=>{if(ne._lock)return;oi(Pe);let ze=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let Ke=x.some((Ye,Qe)=>Qe>0&&Qe!=ze&&Ye.show);x.forEach((Ye,Qe)=>{Qe>0&&Vr(Qe,Ke?Qe==ze?Yt:bn:Yt,!0,lt.setSeries)})}else Vr(ze,{show:!V.show},!0,lt.setSeries)},!1),si&&ln(_g,ge,Pe=>{ne._lock||(oi(Pe),Vr(x.indexOf(V),Fi,!0,lt.setSeries))},!1));for(var Ie in qe){let Pe=Ki("td",Rk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const cr=new Map;function ln(V,X,ie,oe=!0){const ge=cr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(vs(V,X,ge[V]=xe),cr.set(X,ge))}function En(V,X,ie){const oe=cr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(zu(ge,X,oe[ge]),delete oe[ge]);V==null&&cr.delete(X)}let Un=0,wr=0,gt=0,He=0,Lt=0,zt=0,An=Lt,ur=zt,nr=gt,fn=He,Nn=0,Ln=0,qt=0,an=0;r.bbox={};let Tr=!1,Br=!1,zr=!1,yi=!1,ni=!1,Dn=!1;function Xi(V,X,ie){(ie||V!=r.width||X!=r.height)&&ri(V,X),Ji(!1),zr=!0,Br=!0,ho()}function ri(V,X){r.width=Un=gt=V,r.height=wr=He=X,Lt=zt=0,ii(),Ho();let ie=r.bbox;Nn=ie.left=bs(Lt*Jt,.5),Ln=ie.top=bs(zt*Jt,.5),qt=ie.width=bs(gt*Jt,.5),an=ie.height=bs(He*Jt,.5)}const _s=3;function jr(){let V=!1,X=0;for(;!V;){X++;let ie=ua(X),oe=rl(X);V=X==_s||ie&&oe,V||(ri(r.width,r.height),Br=!0)}}function wn({width:V,height:X}){Xi(V,X)}r.setSize=wn;function ii(){let V=!1,X=!1,ie=!1,oe=!1;O.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Pe}=ge,ze=Ie%2,Ke=ge.label!=null?ge.labelSize:0,Ye=Pe+Ke;Ye>0&&(ze?(gt-=Ye,Ie==3?(Lt+=Ye,oe=!0):ie=!0):(He-=Ye,Ie==0?(zt+=Ye,V=!0):X=!0))}}),li[0]=V,li[1]=ie,li[2]=X,li[3]=oe,gt-=dr[1]+dr[3],Lt+=dr[3],He-=dr[2]+dr[0],zt+=dr[0]}function Ho(){let V=Lt+gt,X=zt+He,ie=Lt,oe=zt;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}O.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Pe=xe.side;xe._pos=ge(Pe,xe._size),xe.label!=null&&(xe._lpos=ge(Pe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=Bt(V.prox),oe=V.bias??=0;ne.dataIdx=(ge,xe,Ie,Pe)=>{if(xe==0)return Ie;let ze=Ie,Ke=ie(ge,xe,Ie,Pe)??hn,Ye=Ke>=0&&Ke<hn,Qe=z.ori==0?gt:He,bt=ne.left,Ft=n[0],xt=n[xe];if(X.has(xt[Ie])){ze=null;let Ot=null,ht=null,it;if(oe==0||oe==-1)for(it=Ie;Ot==null&&it-- >0;)X.has(xt[it])||(Ot=it);if(oe==0||oe==1)for(it=Ie;ht==null&&it++<xt.length;)X.has(xt[it])||(ht=it);if(Ot!=null||ht!=null)if(Ye){let gn=Ot==null?-1/0:N(Ft[Ot],z,Qe,0),Tn=ht==null?1/0:N(Ft[ht],z,Qe,0),Qn=bt-gn,Vt=Tn-bt;Qn<=Vt?Qn<=Ke&&(ze=Ot):Vt<=Ke&&(ze=ht)}else ze=ht==null?Ot:Ot==null?ht:Ie-Ot<=ht-Ie?Ot:ht}else Ye&&er(bt-N(Ft[Ie],z,Qe,0))>Ke&&(ze=null);return ze}}const oi=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let xn=ne.points;xn.show=Bt(xn.show),xn.size=Bt(xn.size),xn.stroke=Bt(xn.stroke),xn.width=Bt(xn.width),xn.fill=Bt(xn.fill);const rr=r.focus=Gn({},t.focus||{alpha:.3},ne.focus),si=rr.prox>=0,Cn=si&&xn.one;let _n=[],hr=[],ai=[];function ao(V,X){let ie=xn.show(r,X);if(ie instanceof HTMLElement)return pi(ie,$k),pi(ie,V.class),oo(ie,-10,-10,gt,He),i.insertBefore(ie,_n[X]),ie}function lo(V,X){if(v==1||X>0){let ie=v==1&&T[V.scale].time,oe=V.value;V.value=ie?Xg(oe)?fm(R,dm(oe,B)):oe||Q:oe||zA,V.label=V.label||(ie?RA:LA)}if(Cn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||t_||Vk,V.fillTo=Bt(V.fillTo||KA),V.pxAlign=+Zt(V.pxAlign,s),V.pxRound=Em(V.pxAlign),V.stroke=Bt(V.stroke||null),V.fill=Bt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=jA(Nr(1,V.width),1),oe=V.points=Gn({},{size:ie,width:Nr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:n_,_stroke:null,_fill:null},V.points);oe.show=Bt(oe.show),oe.filter=Bt(oe.filter),oe.fill=Bt(oe.fill),oe.stroke=Bt(oe.stroke),oe.paths=Bt(oe.paths),oe.pxAlign=V.pxAlign}if(ce){let ie=Pt(V,X);Me.splice(X,0,ie[0]),Xe.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;Cn?X==0&&(ie=ao(V,X)):X>0&&(ie=ao(V,X)),_n.splice(X,0,ie),hr.splice(X,0,0),ai.splice(X,0,0)}et("addSeries",X)}function Uo(V,X){X=X??x.length,V=v==1?lh(V,X,wm,$m):lh(V,X,{},Sm),x.splice(X,0,V),lo(x[X],X)}r.addSeries=Uo;function Hr(V){if(x.splice(V,1),ce){he.values.splice(V,1),Xe.splice(V,1);let X=Me.splice(V,1)[0];En(null,X.firstChild),X.remove()}se&&(J.splice(V,1),_n.splice(V,1)[0].remove(),hr.splice(V,1),ai.splice(V,1)),et("delSeries",V)}r.delSeries=Hr;const li=[!1,!1,!1,!1];function Mr(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=T[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=T[V.scale]);let ge=oe.time;V.size=Bt(V.size),V.space=Bt(V.space),V.rotate=Bt(V.rotate),jo(V.incrs)&&V.incrs.forEach(Ie=>{!zo.has(Ie)&&zo.set(Ie,Gg(Ie))}),V.incrs=Bt(V.incrs||(oe.distr==2?fA:ge?b==1?gA:yA:ws)),V.splits=Bt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?th:oe.distr==4?DA:NA)),V.stroke=Bt(V.stroke),V.grid.stroke=Bt(V.grid.stroke),V.ticks.stroke=Bt(V.ticks.stroke),V.border.stroke=Bt(V.border.stroke);let xe=V.values;V.values=jo(xe)&&!jo(xe[0])?Bt(xe):ge?jo(xe)?hm(R,um(xe,B)):Xg(xe)?xA(R,xe):xe||q:xe||OA,V.filter=Bt(V.filter||(oe.distr>=3&&oe.log==10?WA:oe.distr==3&&oe.log==2?BA:Ug)),V.font=Km(V.font),V.labelFont=Km(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(li[X]=!0,V._el=Mi(kk,u))}}function Rt(V,X,ie,oe){let[ge,xe,Ie,Pe]=ie,ze=X%2,Ke=0;return ze==0&&(Pe||xe)&&(Ke=X==0&&!ge||X==2&&!Ie?tr(bm.size/3):0),ze==1&&(ge||Ie)&&(Ke=X==1&&!xe||X==3&&!Pe?tr(km.size/2):0),Ke}const wo=r.padding=(t.padding||[Rt,Rt,Rt,Rt]).map(V=>Bt(Zt(V,Rt))),dr=r._padding=wo.map((V,X)=>V(r,X,li,0));let ae,Be=null,Fe=null;const _t=v==1?x[0].idxs:null;let Gt=null,jt=!1;function fr(V,X){if(n=V??[],r.data=r._data=n,v==2){ae=0;for(let ie=1;ie<x.length;ie++)ae+=n[ie][0].length}else{n.length==0&&(r.data=r._data=n=[[]]),Gt=n[0],ae=Gt.length;let ie=n;if(P==2){ie=n.slice();let oe=ie[0]=Array(ae);for(let ge=0;ge<ae;ge++)oe[ge]=ge}r._data=n=ie}if(Ji(!0),et("setData"),P==2&&(zr=!0),X!==!1){let ie=z;ie.auto(r,jt)?ir():Xn(C,ie.min,ie.max),yi=yi||ne.left>=0,Dn=!0,ho()}}r.setData=fr;function ir(){jt=!0;let V,X;v==1&&(ae>0?(Be=_t[0]=0,Fe=_t[1]=ae-1,V=n[0][Be],X=n[0][Fe],P==2?(V=Be,X=Fe):V==X&&(P==3?[V,X]=Hl(V,V,z.log,!1):P==4?[V,X]=ju(V,V,z.log,!1):z.time?X=V+tr(86400/b):[V,X]=Ul(V,X,Hu,!0))):(Be=_t[0]=V=null,Fe=_t[1]=X=null)),Xn(C,V,X)}let Fn,pr,pn,Zi,Ir,Vo,Ss,$s,Ko,or;function Ts(V,X,ie,oe,ge,xe){V??=kg,ie??=qu,oe??="butt",ge??=kg,xe??="round",V!=Fn&&(l.strokeStyle=Fn=V),ge!=pr&&(l.fillStyle=pr=ge),X!=pn&&(l.lineWidth=pn=X),xe!=Ir&&(l.lineJoin=Ir=xe),oe!=Vo&&(l.lineCap=Vo=oe),ie!=Zi&&l.setLineDash(Zi=ie)}function xo(V,X,ie,oe){X!=pr&&(l.fillStyle=pr=X),V!=Ss&&(l.font=Ss=V),ie!=$s&&(l.textAlign=$s=ie),oe!=Ko&&(l.textBaseline=Ko=oe)}function qo(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,jt)&&(X==null||X.min==null)){let xe=Zt(Be,0),Ie=Zt(Fe,oe.length-1),Pe=ie.min==null?Wk(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=Gi(V.min,ie.min=Pe[0]),V.max=Nr(V.max,ie.max=Pe[1])}}const Go={min:null,max:null};function co(){for(let oe in T){let ge=T[oe];k[oe]==null&&(ge.min==null||k[C]!=null&&ge.auto(r,jt))&&(k[oe]=Go)}for(let oe in T){let ge=T[oe];k[oe]==null&&ge.from!=null&&k[ge.from]!=null&&(k[oe]=Go)}k[C]!=null&&Ji(!0);let V={};for(let oe in k){let ge=k[oe];if(ge!=null){let xe=V[oe]=ea(T[oe],Gk);if(ge.min!=null)Gn(xe,ge);else if(oe!=C||v==2)if(ae==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=hn,xe.max=-hn}}if(ae>0){x.forEach((oe,ge)=>{if(v==1){let xe=oe.scale,Ie=k[xe];if(Ie==null)return;let Pe=V[xe];if(ge==0){let ze=Pe.range(r,Pe.min,Pe.max,xe);Pe.min=ze[0],Pe.max=ze[1],Be=qi(Pe.min,n[0]),Fe=qi(Pe.max,n[0]),Fe-Be>1&&(n[0][Be]<Pe.min&&Be++,n[0][Fe]>Pe.max&&Fe--),oe.min=Gt[Be],oe.max=Gt[Fe]}else oe.show&&oe.auto&&qo(Pe,Ie,oe,n[ge],oe.sorted);oe.idxs[0]=Be,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Pe=xe.scale,ze=Ie.scale,[Ke,Ye]=n[ge],Qe=V[Pe],bt=V[ze];Qe!=null&&qo(Qe,k[Pe],xe,Ke,xe.sorted),bt!=null&&qo(bt,k[ze],Ie,Ye,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=k[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==hn?null:ge.min,ge.max==-hn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=T[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?yo(xe.min):Ie==4?Vu(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?yo(xe.max):Ie==4?Vu(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{v==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)zr=!0,et("setScale",oe);se&&ne.left>=0&&(yi=Dn=!0)}for(let oe in k)k[oe]=null}function Ms(V){let X=Ku(Be-1,0,ae-1),ie=Ku(Fe+1,0,ae-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ae-1;)ie++;return[X,ie]}function ca(){if(ae>0){let V=x.some(X=>X._focus)&&or!=rr.alpha;V&&(l.globalAlpha=or=rr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(Yo(ie,!1),Yo(ie,!0),X._paths==null)){let oe=or;or!=X.alpha&&(l.globalAlpha=or=X.alpha);let ge=v==2?[0,n[ie][0].length-1]:Ms(n[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),or!=oe&&(l.globalAlpha=or=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=or;or!=X.alpha&&(l.globalAlpha=or=X.alpha),X._paths!=null&&Xo(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,Be,Fe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,Be,Fe,Ie),Xo(ie,!0))}or!=oe&&(l.globalAlpha=or=oe),et("drawSeries",ie)}}),V&&(l.globalAlpha=or=1)}}function Yo(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Xo(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Pe=ie._stroke,_fill:ze=ie._fill,_width:Ke=ie.width}=ie._paths;Ke=dn(Ke*Jt,3);let Ye=null,Qe=Ke%2/2;X&&ze==null&&(ze=Ke>0?"#fff":Pe);let bt=ie.pxAlign==1&&Qe>0;if(bt&&l.translate(Qe,Qe),!X){let Ft=Nn-Ke/2,xt=Ln-Ke/2,Ot=qt+Ke,ht=an+Ke;Ye=new Path2D,Ye.rect(Ft,xt,Ot,ht)}X?Co(Pe,Ke,ie.dash,ie.cap,ze,oe,ge,Ie,xe):Is(V,Pe,Ke,ie.dash,ie.cap,ze,oe,ge,Ie,Ye,xe),bt&&l.translate(-Qe,-Qe)}function Is(V,X,ie,oe,ge,xe,Ie,Pe,ze,Ke,Ye){let Qe=!1;ze!=0&&_.forEach((bt,Ft)=>{if(bt.series[0]==V){let xt=x[bt.series[1]],Ot=n[bt.series[1]],ht=(xt._paths||za).band;jo(ht)&&(ht=bt.dir==1?ht[0]:ht[1]);let it,gn=null;xt.show&&ht&&zk(Ot,Be,Fe)?(gn=bt.fill(r,Ft)||xe,it=xt._paths.clip):ht=null,Co(X,ie,oe,ge,gn,Ie,Pe,ze,Ke,Ye,it,ht),Qe=!0}}),Qe||Co(X,ie,oe,ge,xe,Ie,Pe,ze,Ke,Ye)}const Zo=na|rh;function Co(V,X,ie,oe,ge,xe,Ie,Pe,ze,Ke,Ye,Qe){Ts(V,X,ie,oe,ge),(ze||Ke||Qe)&&(l.save(),ze&&l.clip(ze),Ke&&l.clip(Ke)),Qe?(Pe&Zo)==Zo?(l.clip(Qe),Ye&&l.clip(Ye),sr(ge,Ie),Ri(V,xe,X)):Pe&rh?(sr(ge,Ie),l.clip(Qe),Ri(V,xe,X)):Pe&na&&(l.save(),l.clip(Qe),Ye&&l.clip(Ye),sr(ge,Ie),l.restore(),Ri(V,xe,X)):(sr(ge,Ie),Ri(V,xe,X)),(ze||Ke||Qe)&&l.restore()}function Ri(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=Fn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function sr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=pr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function uo(V,X,ie,oe){let ge=O[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=l_(X,ie,Pe,oe,Ie)}return ge._found=xe}function Qi(V,X,ie,oe,ge,xe,Ie,Pe,ze,Ke){let Ye=Ie%2/2;s==1&&l.translate(Ye,Ye),Ts(Pe,Ie,ze,Ke,Pe),l.beginPath();let Qe,bt,Ft,xt,Ot=ge+(oe==0||oe==3?-xe:xe);ie==0?(bt=ge,xt=Ot):(Qe=ge,Ft=Ot);for(let ht=0;ht<V.length;ht++)X[ht]!=null&&(ie==0?Qe=Ft=V[ht]:bt=xt=V[ht],l.moveTo(Qe,bt),l.lineTo(Ft,xt));l.stroke(),s==1&&l.translate(-Ye,-Ye)}function ua(V){let X=!0;return O.forEach((ie,oe)=>{if(!ie.show)return;let ge=T[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,Ji(!1));return}else ie._show||(X=!1,ie._show=!0,Ji(!1));let xe=ie.side,Ie=xe%2,{min:Pe,max:ze}=ge,[Ke,Ye]=uo(oe,Pe,ze,Ie==0?gt:He);if(Ye==0)return;let Qe=ge.distr==2,bt=ie._splits=ie.splits(r,oe,Pe,ze,Ke,Ye,Qe),Ft=ge.distr==2?bt.map(it=>Gt[it]):bt,xt=ge.distr==2?Gt[bt[1]]-Gt[bt[0]]:Ke,Ot=ie._values=ie.values(r,ie.filter(r,Ft,oe,Ye,xt),oe,Ye,xt);ie._rotate=xe==2?ie.rotate(r,Ot,oe,Ye):0;let ht=ie._size;ie._size=Ii(ie.size(r,Ot,oe,V)),ht!=null&&ie._size!=ht&&(X=!1)}),X}function rl(V){let X=!0;return wo.forEach((ie,oe)=>{let ge=ie(r,oe,li,V);ge!=dr[oe]&&(X=!1),dr[oe]=ge}),X}function ko(){for(let V=0;V<O.length;V++){let X=O[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ie=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[ze,Ke]=X._found;if(X.label!=null){let un=X.labelGap*Pe,yr=tr((X._lpos+un)*Jt);xo(X.labelFont[0],Ie,"center",ie==2?Pa:Cg),l.save(),oe==1?(ge=xe=0,l.translate(yr,tr(Ln+an/2)),l.rotate((ie==3?-Vl:Vl)/2)):(ge=tr(Nn+qt/2),xe=yr);let To=jg(X.label)?X.label(r,V,ze,Ke):X.label;l.fillText(To,ge,xe),l.restore()}if(Ke==0)continue;let Ye=T[X.scale],Qe=oe==0?qt:an,bt=oe==0?Nn:Ln,Ft=X._splits,xt=Ye.distr==2?Ft.map(un=>Gt[un]):Ft,Ot=Ye.distr==2?Gt[Ft[1]]-Gt[Ft[0]]:ze,ht=X.ticks,it=X.border,gn=ht.show?ht.size:0,Tn=tr(gn*Jt),Qn=tr((X.alignTo==2?X._size-gn-X.gap:X.gap)*Jt),Vt=X._rotate*-Vl/180,pe=f(X._pos*Jt),$e=(Tn+Qn)*Pe,Ce=pe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],ct=X.align==1?Ys:X.align==2?Lu:Vt>0?Ys:Vt<0?Lu:oe==0?"center":ie==3?Lu:Ys,$t=Vt||oe==1?"middle":ie==2?Pa:Cg;xo(Ue,Ie,ct,$t);let Xt=X.font[1]*X.lineGap,Mt=Ft.map(un=>f(w(un,Ye,Qe,bt))),Kr=X._values;for(let un=0;un<Kr.length;un++){let yr=Kr[un];if(yr!=null){oe==0?ge=Mt[un]:xe=Mt[un],yr=""+yr;let To=yr.indexOf(`
|
|
1477
|
-
`)==-1?[yr]:yr.split(/\n/gm);for(let zn=0;zn<To.length;zn++){let Ls=To[zn];Vt?(l.save(),l.translate(ge,xe+zn*Xt),l.rotate(Vt),l.fillText(Ls,0,0),l.restore()):l.fillText(Ls,ge,xe+zn*Xt)}}}ht.show&&Qi(Mt,ht.filter(r,xt,V,Ke,Ot),oe,ie,pe,Tn,dn(ht.width*Jt,3),ht.stroke(r,V),ht.dash,ht.cap);let Pi=X.grid;Pi.show&&Qi(Mt,Pi.filter(r,xt,V,Ke,Ot),oe,oe==0?2:1,oe==0?Ln:Nn,oe==0?an:qt,dn(Pi.width*Jt,3),Pi.stroke(r,V),Pi.dash,Pi.cap),it.show&&Qi([pe],[1],oe==0?1:0,oe==0?1:2,oe==1?Ln:Nn,oe==1?an:qt,dn(it.width*Jt,3),it.stroke(r,V),it.dash,it.cap)}et("drawAxes")}function Ji(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(v==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Ao=!1,Qo=!1,_o=[];function ha(){Qo=!1;for(let V=0;V<_o.length;V++)et(..._o[V]);_o.length=0}function ho(){Ao||(tA(da),Ao=!0)}function We(V,X=!1){Ao=!0,Qo=X,V(r),da(),X&&_o.length>0&&queueMicrotask(ha)}r.batch=We;function da(){if(Tr&&(co(),Tr=!1),zr&&(jr(),zr=!1),Br){if(yn(c,Ys,Lt),yn(c,Pa,zt),yn(c,Da,gt),yn(c,Fa,He),yn(i,Ys,Lt),yn(i,Pa,zt),yn(i,Da,gt),yn(i,Fa,He),yn(u,Da,Un),yn(u,Fa,wr),a.width=tr(Un*Jt),a.height=tr(wr*Jt),O.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;yn(V,Ie?"left":"top",oe-xe),yn(V,Ie?"width":"height",ie),yn(V,Ie?"top":"left",Ie?zt:Lt),yn(V,Ie?"height":"width",Ie?He:gt),Wu(V,ms)}else pi(V,ms)}),Fn=pr=pn=Ir=Vo=Ss=$s=Ko=Zi=null,or=1,W(!0),Lt!=An||zt!=ur||gt!=nr||He!=fn){Ji(!1);let V=gt/nr,X=He/fn;if(se&&!yi&&ne.left>=0){ne.left*=V,ne.top*=X,bi&&oo(bi,tr(ne.left),0,gt,He),Vn&&oo(Vn,0,tr(ne.top),gt,He);for(let ie=0;ie<_n.length;ie++){let oe=_n[ie];oe!=null&&(hr[ie]*=V,ai[ie]*=X,oo(oe,Ii(hr[ie]),Ii(ai[ie]),gt,He))}}if(yt.show&&!ni&&yt.left>=0&&yt.width>0){yt.left*=V,yt.width*=V,yt.top*=X,yt.height*=X;for(let ie in Y)yn(Ur,ie,yt[ie])}An=Lt,ur=zt,nr=gt,fn=He}et("setSize"),Br=!1}Un>0&&wr>0&&(l.clearRect(0,0,a.width,a.height),et("drawClear"),F.forEach(V=>V()),et("draw")),yt.show&&ni&&(cn(yt),ni=!1),se&&yi&&(A(null,!0,!1),yi=!1),he.show&&he.live&&Dn&&(y(),Dn=!1),h||(h=!0,r.status=1,et("ready")),jt=!1,Ao=!1}r.redraw=(V,X)=>{zr=X||!1,V!==!1?Xn(C,z.min,z.max):ho()};function Ne(V,X){let ie=T[V];if(ie.from==null){if(ae==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(ae>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ae>0&&(X.min=qi(X.min,n[0]),X.max=qi(X.max,n[0]),X.min==X.max&&X.max++),k[V]=X,Tr=!0,ho()}}r.setScale=Ne;let Rn,So,bi,Vn,fa,$o,Oi,fo,en,Qt,tn,Ht,Ni=!1;const Pn=ne.drag;let je=Pn.x,mn=Pn.y;se&&(ne.x&&(Rn=Mi(_k,i)),ne.y&&(So=Mi(Sk,i)),z.ori==0?(bi=Rn,Vn=So):(bi=So,Vn=Rn),tn=ne.left,Ht=ne.top);const yt=r.select=Gn({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Ur=yt.show?Mi(Ak,yt.over?i:c):null;function cn(V,X){if(yt.show){for(let ie in V)yt[ie]=V[ie],ie in Y&&yn(Ur,ie,V[ie]);X!==!1&&et("setSelect")}}r.setSelect=cn;function kn(V){if(x[V].show)ce&&Wu(Me[V],ms);else if(ce&&pi(Me[V],ms),se){let X=Cn?_n[0]:_n[V];X!=null&&oo(X,-10,-10,gt,He)}}function Xn(V,X,ie){Ne(V,{min:X,max:ie})}function Vr(V,X,ie,oe){X.focus!=null&&gr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,kn(xe),v==2?(Xn(ge.facets[0].scale,null,null),Xn(ge.facets[1].scale,null,null)):Xn(ge.scale,null,null),ho())}),ie!==!1&&et("setSeries",V,X),oe&&St("setSeries",r,V,X)}r.setSeries=Vr;function Di(V,X){Gn(_[V],X)}function Wn(V,X){V.fill=Bt(V.fill||null),V.dir=Zt(V.dir,-1),X=X??_.length,_.splice(X,0,V)}function ci(V){V==null?_.length=0:_.splice(V,1)}r.addBand=Wn,r.setBand=Di,r.delBand=ci;function Jo(V,X){x[V].alpha=X,se&&_n[V]!=null&&(_n[V].style.opacity=X),ce&&Me[V]&&(Me[V].style.opacity=X)}let Bn,wi,xi;const Fi={focus:!0};function gr(V){if(V!=xi){let X=V==null,ie=rr.alpha!=1;x.forEach((oe,ge)=>{if(v==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&Jo(ge,xe?1:rr.alpha)}}),xi=V,ie&&ho()}}ce&&si&&ln(Sg,me,V=>{ne._lock||(oi(V),xi!=null&&Vr(null,Fi,!0,lt.setSeries))});function mr(V,X,ie){let oe=T[X];ie&&(V=V/Jt-(oe.ori==1?zt:Lt));let ge=gt;oe.ori==1&&(ge=He,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Pe=V/ge,ze=xe+(Ie-xe)*Pe,Ke=oe.distr;return Ke==3?Qs(10,ze):Ke==4?Hk(ze,oe.asinh):Ke==100?oe.bwd(ze):ze}function xr(V,X){let ie=mr(V,C,X);return qi(ie,n[0],Be,Fe)}r.valToIdx=V=>qi(V,n[0]),r.posToIdx=xr,r.posToVal=mr,r.valToPos=(V,X,ie)=>T[X].ori==0?p(V,T[X],ie?qt:gt,ie?Nn:0):g(V,T[X],ie?an:He,ie?Ln:0),r.setCursor=(V,X,ie)=>{tn=V.left,Ht=V.top,A(null,X,ie)};function Es(V,X){yn(Ur,Ys,yt.left=V),yn(Ur,Da,yt.width=X)}function Cr(V,X){yn(Ur,Pa,yt.top=V),yn(Ur,Fa,yt.height=X)}let Er=z.ori==0?Es:Cr,Ci=z.ori==1?Es:Cr;function ki(){if(ce&&he.live)for(let V=v==2?1:0;V<x.length;V++){if(V==0&&st)continue;let X=he.values[V],ie=0;for(let oe in X)Xe[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):qk(V.idx)||J.fill(V.idx),he.idx=J[0]),ce&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||v==1&&!st)&&$(ie,J[ie]);ki()}Dn=!1,X!==!1&&et("setLegend")}r.setLegend=y;function $(V,X){let ie=x[V],oe=V==0&&P==2?Gt:n[V],ge;st?ge=ie.values(r,V,X)??Je:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?Je:{_:ge}),he.values[V]=ge}function A(V,X,ie){en=tn,Qt=Ht,[tn,Ht]=ne.move(r,tn,Ht),ne.left=tn,ne.top=Ht,se&&(bi&&oo(bi,tr(tn),0,gt,He),Vn&&oo(Vn,0,tr(Ht),gt,He));let oe,ge=Be>Fe;Bn=hn,wi=null;let xe=z.ori==0?gt:He,Ie=z.ori==1?gt:He;if(tn<0||ae==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let ze=_n[Pe];ze!=null&&oo(ze,-10,-10,gt,He)}si&&Vr(null,Fi,!0,V==null&<.setSeries),he.live&&(J.fill(oe),Dn=!0)}else{let Pe,ze,Ke;v==1&&(Pe=z.ori==0?tn:Ht,ze=mr(Pe,C),oe=ne.idx=qi(ze,n[0],Be,Fe),Ke=N(n[0][oe],z,xe,0));let Ye=-10,Qe=-10,bt=0,Ft=0,xt=!0,Ot="",ht="";for(let it=v==2?1:0;it<x.length;it++){let gn=x[it],Tn=J[it],Qn=Tn==null?null:v==1?n[it][Tn]:n[it][1][Tn],Vt=ne.dataIdx(r,it,oe,ze),pe=Vt==null?null:v==1?n[it][Vt]:n[it][1][Vt];if(Dn=Dn||pe!=Qn||Vt!=Tn,J[it]=Vt,it>0&&gn.show){let $e=Vt==null?-10:Vt==oe?Ke:N(v==1?n[0][Vt]:n[it][0][Vt],z,xe,0),Ce=pe==null?-10:S(pe,v==1?T[gn.scale]:T[gn.facets[1].scale],Ie,0);if(si&&pe!=null){let Ue=z.ori==1?tn:Ht,ct=er(rr.dist(r,it,Vt,Ce,Ue));if(ct<Bn){let $t=rr.bias;if($t!=0){let Xt=mr(Ue,gn.scale),Mt=pe>=0?1:-1,Kr=Xt>=0?1:-1;Kr==Mt&&(Kr==1?$t==1?pe>=Xt:pe<=Xt:$t==1?pe<=Xt:pe>=Xt)&&(Bn=ct,wi=it)}else Bn=ct,wi=it}}if(Dn||Cn){let Ue,ct;z.ori==0?(Ue=$e,ct=Ce):(Ue=Ce,ct=$e);let $t,Xt,Mt,Kr,Pi,un,yr=!0,To=xn.bbox;if(To!=null){yr=!1;let zn=To(r,it);Mt=zn.left,Kr=zn.top,$t=zn.width,Xt=zn.height}else Mt=Ue,Kr=ct,$t=Xt=xn.size(r,it);if(un=xn.fill(r,it),Pi=xn.stroke(r,it),Cn)it==wi&&Bn<=rr.prox&&(Ye=Mt,Qe=Kr,bt=$t,Ft=Xt,xt=yr,Ot=un,ht=Pi);else{let zn=_n[it];zn!=null&&(hr[it]=Mt,ai[it]=Kr,Rg(zn,$t,Xt,yr),Eg(zn,un,Pi),oo(zn,Ii(Mt),Ii(Kr),gt,He))}}}}if(Cn){let it=rr.prox,gn=xi==null?Bn<=it:Bn>it||wi!=xi;if(Dn||gn){let Tn=_n[0];Tn!=null&&(hr[0]=Ye,ai[0]=Qe,Rg(Tn,bt,Ft,xt),Eg(Tn,Ot,ht),oo(Tn,Ii(Ye),Ii(Qe),gt,He))}}}if(yt.show&&Ni)if(V!=null){let[Pe,ze]=lt.scales,[Ke,Ye]=lt.match,[Qe,bt]=V.cursor.sync.scales,Ft=V.cursor.drag;if(je=Ft._x,mn=Ft._y,je||mn){let{left:xt,top:Ot,width:ht,height:it}=V.select,gn=V.scales[Qe].ori,Tn=V.posToVal,Qn,Vt,pe,$e,Ce,Ue=Pe!=null&&Ke(Pe,Qe),ct=ze!=null&&Ye(ze,bt);Ue&&je?(gn==0?(Qn=xt,Vt=ht):(Qn=Ot,Vt=it),pe=T[Pe],$e=N(Tn(Qn,Qe),pe,xe,0),Ce=N(Tn(Qn+Vt,Qe),pe,xe,0),Er(Gi($e,Ce),er(Ce-$e))):Er(0,xe),ct&&mn?(gn==1?(Qn=xt,Vt=ht):(Qn=Ot,Vt=it),pe=T[ze],$e=S(Tn(Qn,bt),pe,Ie,0),Ce=S(Tn(Qn+Vt,bt),pe,Ie,0),Ci(Gi($e,Ce),er(Ce-$e))):Ci(0,Ie)}else Z()}else{let Pe=er(en-fa),ze=er(Qt-$o);if(z.ori==1){let bt=Pe;Pe=ze,ze=bt}je=Pn.x&&Pe>=Pn.dist,mn=Pn.y&&ze>=Pn.dist;let Ke=Pn.uni;Ke!=null?je&&mn&&(je=Pe>=Ke,mn=ze>=Ke,!je&&!mn&&(ze>Pe?mn=!0:je=!0)):Pn.x&&Pn.y&&(je||mn)&&(je=mn=!0);let Ye,Qe;je&&(z.ori==0?(Ye=Oi,Qe=tn):(Ye=fo,Qe=Ht),Er(Gi(Ye,Qe),er(Qe-Ye)),mn||Ci(0,Ie)),mn&&(z.ori==1?(Ye=Oi,Qe=tn):(Ye=fo,Qe=Ht),Ci(Gi(Ye,Qe),er(Qe-Ye)),je||Er(0,xe)),!je&&!mn&&(Er(0,0),Ci(0,0))}if(Pn._x=je,Pn._y=mn,V==null){if(ie){if(Sn!=null){let[Pe,ze]=lt.scales;lt.values[0]=Pe!=null?mr(z.ori==0?tn:Ht,Pe):null,lt.values[1]=ze!=null?mr(z.ori==1?tn:Ht,ze):null}St(Ou,r,tn,Ht,gt,He,oe)}if(si){let Pe=ie&<.setSeries,ze=rr.prox;xi==null?Bn<=ze&&Vr(wi,Fi,!0,Pe):Bn>ze?Vr(null,Fi,!0,Pe):wi!=xi&&Vr(wi,Fi,!0,Pe)}}Dn&&(he.idx=oe,y()),X!==!1&&et("setCursor")}let D=null;Object.defineProperty(r,"rect",{get(){return D==null&&W(!1),D}});function W(V=!1){V?D=null:(D=i.getBoundingClientRect(),et("syncRect",D))}function j(V,X,ie,oe,ge,xe,Ie){ne._lock||Ni&&V!=null&&V.movementX==0&&V.movementY==0||(K(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?A(null,!0,!0):A(X,!0,!1))}function K(V,X,ie,oe,ge,xe,Ie,Pe,ze){if(D==null&&W(!1),oi(V),V!=null)ie=V.clientX-D.left,oe=V.clientY-D.top;else{if(ie<0||oe<0){tn=-10,Ht=-10;return}let[Ke,Ye]=lt.scales,Qe=X.cursor.sync,[bt,Ft]=Qe.values,[xt,Ot]=Qe.scales,[ht,it]=lt.match,gn=X.axes[0].side%2==1,Tn=z.ori==0?gt:He,Qn=z.ori==1?gt:He,Vt=gn?xe:ge,pe=gn?ge:xe,$e=gn?oe:ie,Ce=gn?ie:oe;if(xt!=null?ie=ht(Ke,xt)?w(bt,T[Ke],Tn,0):-10:ie=Tn*($e/Vt),Ot!=null?oe=it(Ye,Ot)?w(Ft,T[Ye],Qn,0):-10:oe=Qn*(Ce/pe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}ze&&(X==null||X.cursor.event.type==Ou)&&((ie<=1||ie>=gt-1)&&(ie=bs(ie,gt)),(oe<=1||oe>=He-1)&&(oe=bs(oe,He))),Pe?(fa=ie,$o=oe,[Oi,fo]=ne.move(r,ie,oe)):(tn=ie,Ht=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){cn(Y,!1)}let re,le,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){Ni=!0,je=mn=Pn._x=Pn._y=!1,K(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(ln(Nu,Fu,we,!1),St(Ag,r,Oi,fo,gt,He,null));let{left:Pe,top:ze,width:Ke,height:Ye}=yt;re=Pe,le=ze,be=Ke,ke=Ye}function we(V,X,ie,oe,ge,xe,Ie){Ni=Pn._x=Pn._y=!1,K(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Pe,top:ze,width:Ke,height:Ye}=yt,Qe=Ke>0||Ye>0,bt=re!=Pe||le!=ze||be!=Ke||ke!=Ye;if(Qe&&bt&&cn(yt),Pn.setScale&&Qe&&bt){let Ft=Pe,xt=Ke,Ot=ze,ht=Ye;if(z.ori==1&&(Ft=ze,xt=Ye,Ot=Pe,ht=Ke),je&&Xn(C,mr(Ft,C),mr(Ft+xt,C)),mn)for(let it in T){let gn=T[it];it!=C&&gn.from==null&&gn.min!=hn&&Xn(it,mr(Ot+ht,it),mr(Ot,it))}Z()}else ne.lock&&(ne._lock=!ne._lock,A(X,!0,V!=null));V!=null&&(En(Nu,Fu),St(Nu,r,tn,Ht,gt,He,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;oi(V);let Pe=Ni;if(Ni){let ze=!0,Ke=!0,Ye=10,Qe,bt;z.ori==0?(Qe=je,bt=mn):(Qe=mn,bt=je),Qe&&bt&&(ze=tn<=Ye||tn>=gt-Ye,Ke=Ht<=Ye||Ht>=He-Ye),Qe&&ze&&(tn=tn<Oi?0:gt),bt&&Ke&&(Ht=Ht<fo?0:He),A(null,!0,!0),Ni=!1}tn=-10,Ht=-10,J.fill(null),A(null,!0,!0),Pe&&(Ni=Pe)}function Re(V,X,ie,oe,ge,xe,Ie){ne._lock||(oi(V),ir(),Z(),V!=null&&St($g,r,tn,Ht,gt,He,null))}function Ve(){O.forEach(c_),Xi(r.width,r.height,!0)}vs(Bl,Zs,Ve);const ot={};ot.mousedown=ve,ot.mousemove=j,ot.mouseup=we,ot.dblclick=Re,ot.setSeries=(V,X,ie,oe)=>{let ge=lt.match[2];ie=ge(r,X,ie),ie!=-1&&Vr(ie,oe,!0,!1)},se&&(ln(Ag,i,ve),ln(Ou,i,j),ln(_g,i,V=>{oi(V),W(!1)}),ln(Sg,i,Oe),ln($g,i,Re),ah.add(r),r.syncRect=W);const Ze=r.hooks=t.hooks||{};function et(V,X,ie){Qo?_o.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(t.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const vn=(V,X,ie)=>ie,lt=Gn({key:null,setSeries:!1,filters:{pub:Vg,sub:Vg},scales:[C,x[1]?x[1].scale:null],match:[Kg,Kg,vn],values:[null,null]},ne.sync);lt.match.length==2&<.match.push(vn),ne.sync=lt;const Sn=lt.key,wt=Im(Sn);function St(V,X,ie,oe,ge,xe,Ie){lt.filters.pub(V,X,ie,oe,ge,xe,Ie)&&wt.pub(V,X,ie,oe,ge,xe,Ie)}wt.sub(r);function Zn(V,X,ie,oe,ge,xe,Ie){lt.filters.sub(V,X,ie,oe,ge,xe,Ie)&&ot[V](null,X,ie,oe,ge,xe,Ie)}r.pub=Zn;function vr(){wt.unsub(r),ah.delete(r),cr.clear(),zu(Bl,Zs,Ve),d.remove(),me?.remove(),et("destroy")}r.destroy=vr;function $n(){et("init",t,n),fr(n||t.data,!1),k[C]?Ne(C,k[C]):ir(),ni=yt.show&&(yt.width>0||yt.height>0),yi=Dn=!0,Xi(t.width,t.height)}return x.forEach(lo),O.forEach(Mr),e?e instanceof HTMLElement?(e.appendChild(d),$n()):e(r,$n):$n(),r}Sr.assign=Gn,Sr.fmtNum=Uu,Sr.rangeNum=Ul,Sr.rangeLog=Hl,Sr.rangeAsinh=ju,Sr.orient=xs,Sr.pxRatio=Jt,Sr.join=eA,Sr.fmtDate=Gu,Sr.tzDate=hA,Sr.sync=Im;{Sr.addGap=qA,Sr.clipGaps=Zl;let t=Sr.paths={points:Fm};t.linear=Wm,t.stepped=XA,t.bars=ZA,t.spline=JA}var qm,Gm;function u_(){return Gm||(Gm=1,qm=function(t,n,e,r,v){var p,g;if(r===void 0)r=0;else if(r=r|0,r<0||r>=t.length)throw new RangeError("invalid lower bound");if(v===void 0)v=t.length-1;else if(v=v|0,v<r||v>=t.length)throw new RangeError("invalid upper bound");for(;r<=v;)if(p=r+(v-r>>>1),g=+e(t[p],n,p,t),g<0)r=p+1;else if(g>0)v=p-1;else return p;return~r}),qm}var h_=u_();const d2=Mn("U",kl(h_));var ch,Ym;function d_(){if(Ym)return ch;Ym=1;function t(n,e,r){var v=-1,p=n.length;e<0&&(e=-e>p?0:p+e),r=r>p?p:r,r<0&&(r+=p),p=e>r?0:r-e>>>0,e>>>=0;for(var g=Array(p);++v<p;)g[v]=n[v+e];return g}return ch=t,ch}var uh,Xm;function f_(){if(Xm)return uh;Xm=1;var t=d_();function n(e,r,v){var p=e.length;return v=v===void 0?p:v,!r&&v>=p?e:t(e,r,v)}return uh=n,uh}var hh,Zm;function Qm(){if(Zm)return hh;Zm=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,p="\\ufe0e\\ufe0f",g="\\u200d",w=RegExp("["+g+t+v+p+"]");function h(d){return w.test(d)}return hh=h,hh}var dh,Jm;function p_(){if(Jm)return dh;Jm=1;function t(n){return n.split("")}return dh=t,dh}var fh,ev;function g_(){if(ev)return fh;ev=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,p="\\ufe0e\\ufe0f",g="["+t+"]",w="["+v+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+t+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",s="["+p+"]?",f="(?:"+c+"(?:"+[a,l,u].join("|")+")"+s+i+")*",b=s+i+f,x="(?:"+[a+w+"?",w,l,u,g].join("|")+")",O=RegExp(h+"(?="+h+")|"+x+b,"g");function T(_){return _.match(O)||[]}return fh=T,fh}var ph,tv;function m_(){if(tv)return ph;tv=1;var t=p_(),n=Qm(),e=g_();function r(v){return n(v)?e(v):t(v)}return ph=r,ph}var gh,nv;function v_(){if(nv)return gh;nv=1;var t=typeof Bo=="object"&&Bo&&Bo.Object===Object&&Bo;return gh=t,gh}var mh,rv;function y_(){if(rv)return mh;rv=1;var t=v_(),n=typeof self=="object"&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return mh=e,mh}var vh,iv;function yh(){if(iv)return vh;iv=1;var t=y_(),n=t.Symbol;return vh=n,vh}var bh,ov;function b_(){if(ov)return bh;ov=1;function t(n,e){for(var r=-1,v=n==null?0:n.length,p=Array(v);++r<v;)p[r]=e(n[r],r,n);return p}return bh=t,bh}var wh,sv;function w_(){if(sv)return wh;sv=1;var t=Array.isArray;return wh=t,wh}var xh,av;function x_(){if(av)return xh;av=1;var t=yh(),n=Object.prototype,e=n.hasOwnProperty,r=n.toString,v=t?t.toStringTag:void 0;function p(g){var w=e.call(g,v),h=g[v];try{g[v]=void 0;var d=!0}catch{}var a=r.call(g);return d&&(w?g[v]=h:delete g[v]),a}return xh=p,xh}var Ch,lv;function C_(){if(lv)return Ch;lv=1;var t=Object.prototype,n=t.toString;function e(r){return n.call(r)}return Ch=e,Ch}var kh,cv;function k_(){if(cv)return kh;cv=1;var t=yh(),n=x_(),e=C_(),r="[object Null]",v="[object Undefined]",p=t?t.toStringTag:void 0;function g(w){return w==null?w===void 0?v:r:p&&p in Object(w)?n(w):e(w)}return kh=g,kh}var Ah,uv;function A_(){if(uv)return Ah;uv=1;function t(n){return n!=null&&typeof n=="object"}return Ah=t,Ah}var _h,hv;function __(){if(hv)return _h;hv=1;var t=k_(),n=A_(),e="[object Symbol]";function r(v){return typeof v=="symbol"||n(v)&&t(v)==e}return _h=r,_h}var Sh,dv;function S_(){if(dv)return Sh;dv=1;var t=yh(),n=b_(),e=w_(),r=__(),v=t?t.prototype:void 0,p=v?v.toString:void 0;function g(w){if(typeof w=="string")return w;if(e(w))return n(w,g)+"";if(r(w))return p?p.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Sh=g,Sh}var $h,fv;function tc(){if(fv)return $h;fv=1;var t=S_();function n(e){return e==null?"":t(e)}return $h=n,$h}var Th,pv;function $_(){if(pv)return Th;pv=1;var t=f_(),n=Qm(),e=m_(),r=tc();function v(p){return function(g){g=r(g);var w=n(g)?e(g):void 0,h=w?w[0]:g.charAt(0),d=w?t(w,1).join(""):g.slice(1);return h[p]()+d}}return Th=v,Th}var Mh,gv;function mv(){if(gv)return Mh;gv=1;var t=$_(),n=t("toUpperCase");return Mh=n,Mh}var T_=mv();const M_=kl(T_);var Ih,vv;function I_(){if(vv)return Ih;vv=1;var t=tc(),n=mv();function e(r){return n(t(r).toLowerCase())}return Ih=e,Ih}var Eh,yv;function E_(){if(yv)return Eh;yv=1;function t(n,e,r,v){var p=-1,g=n==null?0:n.length;for(v&&g&&(r=n[++p]);++p<g;)r=e(r,n[p],p,n);return r}return Eh=t,Eh}var Lh,bv;function L_(){if(bv)return Lh;bv=1;function t(n){return function(e){return n?.[e]}}return Lh=t,Lh}var Rh,wv;function R_(){if(wv)return Rh;wv=1;var t=L_(),n={À:"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=t(n);return Rh=e,Rh}var Oh,xv;function O_(){if(xv)return Oh;xv=1;var t=R_(),n=tc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",v="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",g=r+v+p,w="["+g+"]",h=RegExp(w,"g");function d(a){return a=n(a),a&&a.replace(e,t).replace(h,"")}return Oh=d,Oh}var Nh,Cv;function N_(){if(Cv)return Nh;Cv=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(e){return e.match(t)||[]}return Nh=n,Nh}var Dh,kv;function D_(){if(kv)return Dh;kv=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(e){return t.test(e)}return Dh=n,Dh}var Fh,Av;function F_(){if(Av)return Fh;Av=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",v=n+e+r,p="\\u2700-\\u27bf",g="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c=w+h+d+a,i="['’]",s="["+c+"]",f="["+v+"]",b="\\d+",x="["+p+"]",O="["+g+"]",T="[^"+t+c+b+p+g+l+"]",_="\\ud83c[\\udffb-\\udfff]",C="(?:"+f+"|"+_+")",L="[^"+t+"]",F="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",z="\\u200d",P="(?:"+O+"|"+T+")",N="(?:"+I+"|"+T+")",S="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",R=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,F,E].join("|")+")"+B+R+")*",q="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+R+U,he="(?:"+[x,F,E].join("|")+")"+J,ne=RegExp([I+"?"+O+"+"+S+"(?="+[s,I,"$"].join("|")+")",N+"+"+k+"(?="+[s,I+P,"$"].join("|")+")",I+"?"+P+"+"+S,I+"+"+k,Q,q,b,he].join("|"),"g");function ce(se){return se.match(ne)||[]}return Fh=ce,Fh}var Ph,_v;function P_(){if(_v)return Ph;_v=1;var t=N_(),n=D_(),e=tc(),r=F_();function v(p,g,w){return p=e(p),g=w?void 0:g,g===void 0?n(p)?r(p):t(p):p.match(g)||[]}return Ph=v,Ph}var Wh,Sv;function W_(){if(Sv)return Wh;Sv=1;var t=E_(),n=O_(),e=P_(),r="['’]",v=RegExp(r,"g");function p(g){return function(w){return t(e(n(w).replace(v,"")),g,"")}}return Wh=p,Wh}var Bh,$v;function B_(){if($v)return Bh;$v=1;var t=I_(),n=W_(),e=n(function(r,v,p){return v=v.toLowerCase(),r+(p?t(v):v)});return Bh=e,Bh}var z_=B_();const j_=kl(z_),H_=Object.assign({"./ArrayWidget.vue":()=>nt(()=>tt.import("./ArrayWidget-D2UrA5Db-1c55b514e63b95e490f6.js"),void 0),"./ArrayplotWidget.vue":()=>nt(()=>tt.import("./ArrayplotWidget-CDNRxI2F-a83801ded05b12f711f8.js"),void 0),"./BlockWidget.vue":()=>nt(()=>tt.import("./BlockWidget-C-WB0Q2m-e1a936c86d9896422505.js"),void 0),"./ButtonWidget.vue":()=>nt(()=>tt.import("./ButtonWidget-rS7sVb7m-dbf9f92372e6dff8e3d3.js"),void 0),"./CanvasWidget.vue":()=>nt(()=>tt.import("./CanvasWidget-DuWolVCW-2bd38dd443fd2f303296.js"),void 0),"./CanvasdotWidget.vue":()=>nt(()=>tt.import("./CanvasdotWidget-B42YizA1-890ec798f4b45d558907.js"),void 0),"./CanvasimageWidget.vue":()=>nt(()=>tt.import("./CanvasimageWidget-DMHdDTSs-e3480e258876ee7d5ce8.js"),void 0),"./CanvasimagevalueWidget.vue":()=>nt(()=>tt.import("./CanvasimagevalueWidget-ns-5S1HA-984a3695590efe80a103.js"),void 0),"./CanvaslabelWidget.vue":()=>nt(()=>tt.import("./CanvaslabelWidget-DElES3gU-9213b36fbadeb0359f4e.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>nt(()=>tt.import("./CanvaslabelvalueWidget-B2B5KlUm-04fa31c935f3aa224322.js"),void 0),"./CanvaslineWidget.vue":()=>nt(()=>tt.import("./CanvaslineWidget-DaHxgGyM-4b7e326afc628efa9af7.js"),void 0),"./CanvaslinevalueWidget.vue":()=>nt(()=>tt.import("./CanvaslinevalueWidget-CrtDsSOP-3dd527a40c656fd8d936.js"),void 0),"./CheckbuttonWidget.vue":()=>nt(()=>tt.import("./CheckbuttonWidget-BK4SgIu7-773142e6557fb0f58a78.js"),void 0),"./ComboboxWidget.vue":()=>nt(()=>tt.import("./ComboboxWidget-CciRWuKq-3f1ba4ec7db5de697819.js"),void 0),"./DateWidget.vue":()=>nt(()=>tt.import("./DateWidget-DwgQ3Jik-d443f1fdc2599de1735d.js"),void 0),"./DynamicWidget.vue":()=>nt(()=>tt.import("./DynamicWidget-Bym87woV-24d53debe022dc41bdad.js"),void 0),"./FilechecksumWidget.vue":()=>nt(()=>tt.import("./FilechecksumWidget-BS281Q0h-aa51848ef542e86ad554.js"),void 0),"./FiledisplayWidget.vue":()=>nt(()=>tt.import("./FiledisplayWidget-C9YdXDdv-7048222386da1c6b8556.js"),void 0),"./FormatvalueWidget.vue":()=>nt(()=>tt.import("./FormatvalueWidget-dfmQfrNA-43064fa838d0937da3ab.js"),void 0),"./HorizontalWidget.vue":()=>nt(()=>tt.import("./HorizontalWidget-DFAqF95S-4494e9bd7db85c2b3380.js"),void 0),"./HorizontalboxWidget.vue":()=>nt(()=>tt.import("./HorizontalboxWidget-CL1xEhDj-2dd7af897f322c232db4.js"),void 0),"./HorizontallineWidget.vue":()=>nt(()=>tt.import("./HorizontallineWidget-DPiADCAy-d4be2847dc5bacd22c4c.js"),void 0),"./IframeWidget.vue":()=>nt(()=>tt.import("./IframeWidget-BsDu4b17-729d665632327b5613f4.js"),void 0),"./ImageviewerWidget.vue":()=>nt(()=>tt.import("./ImageviewerWidget-BQbrz2WL-708300227e9c554627dd.js"),void 0),"./LabelWidget.vue":()=>nt(()=>tt.import("./LabelWidget-D5-IFUYW-5fcc7202ac2b5e9869c8.js"),void 0),"./LabelledWidget.vue":()=>nt(()=>tt.import("./LabelledWidget-Dt9miRtB-bb76d04fcf2b737b5427.js"),void 0),"./LabelprogressbarWidget.vue":()=>nt(()=>tt.import("./LabelprogressbarWidget-BNFgTq4D-606ff758c918eb5b0223.js"),void 0),"./LabelsparklineWidget.vue":()=>nt(()=>tt.import("./LabelsparklineWidget-BByxev6X-4dad3009fa3f0d9431c1.js"),void 0),"./LabelvalueWidget.vue":()=>nt(()=>tt.import("./LabelvalueWidget-BM6L9bVw-59a90e09c9e467c44e76.js"),void 0),"./LabelvaluedescWidget.vue":()=>nt(()=>tt.import("./LabelvaluedescWidget-DeBRjYXs-7d13f0625327ab080392.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitsbarWidget-CqV0-c3G-51ce8510c0eaa914f0b3.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitscolumnWidget-Bz0PKTIV-62a95b407e98ab69b8f0.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>nt(()=>tt.import("./LabelvaluerangebarWidget-DKuAJHLm-4d25d7a8a2989a7f9778.js"),void 0),"./LedWidget.vue":()=>nt(()=>tt.import("./LedWidget-CH4Il9R7-84f6b5b3f3604db94a1e.js"),void 0),"./LimitsbarWidget.vue":()=>nt(()=>tt.import("./LimitsbarWidget-PkPqlyxL-41cb2134202cfc229b0d.js"),void 0),"./LimitscolorWidget.vue":()=>nt(()=>tt.import("./LimitscolorWidget-BlA15g4A-ac374db2daee985c3708.js"),void 0),"./LimitscolumnWidget.vue":()=>nt(()=>tt.import("./LimitscolumnWidget-PT917BA0-ec85efca8ebf5a868be1.js"),void 0),"./LinegraphWidget.vue":()=>nt(()=>tt.import("./LinegraphWidget-BW7kS_6G-5ff2b791254cc5b7db2a.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>nt(()=>tt.import("./MatrixbycolumnsWidget-BGNsZvjv-896c0c73f296fc47bc2b.js"),void 0),"./ProgressbarWidget.vue":()=>nt(()=>tt.import("./ProgressbarWidget-Cy_ad8mb-1df695c5267162e765d7.js"),void 0),"./RadiobuttonWidget.vue":()=>nt(()=>tt.import("./RadiobuttonWidget-aJBIz45y-801a2c33babce797526f.js"),void 0),"./RadiogroupWidget.vue":()=>nt(()=>tt.import("./RadiogroupWidget-DNRlJnPE-a36bed855246f97bd481.js"),void 0),"./RangebarWidget.vue":()=>nt(()=>tt.import("./RangebarWidget-h4YItqPF-280ea4eef24736bdbb85.js"),void 0),"./RollupWidget.vue":()=>nt(()=>tt.import("./RollupWidget-CnxDQRQ0-6358e8358a580c5921d0.js"),void 0),"./ScrollwindowWidget.vue":()=>nt(()=>tt.import("./ScrollwindowWidget-DFkTJ2Ue-cb731315321666ce3bce.js"),void 0),"./SignalWidget.vue":()=>nt(()=>tt.import("./SignalWidget-jYpXSIfD-c768dd15f02c955f8b39.js"),void 0),"./SpacerWidget.vue":()=>nt(()=>tt.import("./SpacerWidget-CUqvml6o-de2112756e057c724689.js"),void 0),"./SparklineWidget.vue":()=>nt(()=>tt.import("./SparklineWidget-CVf1TtjV-1fe0a1f3a17091ff0b62.js"),void 0),"./TabbookWidget.vue":()=>nt(()=>tt.import("./TabbookWidget-CTUEpDnn-c73cbfe51c07bb486d65.js"),void 0),"./TextboxWidget.vue":()=>nt(()=>tt.import("./TextboxWidget-B0Y1W7GP-1bcbf7550300c331597a.js"),void 0),"./TextfieldWidget.vue":()=>nt(()=>tt.import("./TextfieldWidget-B8TAf9oU-2216d2290bef09e3d7ef.js"),void 0),"./TimeWidget.vue":()=>nt(()=>tt.import("./TimeWidget-DewVXks0-da9657b4ea49f337b77c.js"),void 0),"./TitleWidget.vue":()=>nt(()=>tt.import("./TitleWidget-BAq2LGJF-ae630acb77cf4c766ebc.js"),void 0),"./ValueWidget.vue":()=>nt(()=>tt.import("./ValueWidget-BGNqaaRs-7f8ecf0b5a905c91d823.js"),void 0),"./ValuelimitsbarWidget.vue":()=>nt(()=>tt.import("./ValuelimitsbarWidget-B6mH4PdF-4a0a3408f6142f31fece.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>nt(()=>tt.import("./ValuelimitscolumnWidget-DlX90_-6-6ab61b02182d88318289.js"),void 0),"./ValuerangebarWidget.vue":()=>nt(()=>tt.import("./ValuerangebarWidget-C9xyLOJO-a10f1bcce7dea09a14bb.js"),void 0),"./VerticalWidget.vue":()=>nt(()=>tt.import("./VerticalWidget-0UbbE2g3-adcb27032c4f6fa2fbfe.js"),void 0),"./VerticalboxWidget.vue":()=>nt(()=>tt.import("./VerticalboxWidget-efbeOAKE-7cafb64c5c613da26835.js"),void 0)}),U_=Object.entries(H_).reduce((t,[n,e])=>{n=n.split("/").pop();const r=M_(j_(n.replace(/\.\w+$/,"")));return{...t,[r]:gf(e)}},{}),f2=Mn("j",{components:U_});function Tv(t,n){return function(){return t.apply(n,arguments)}}const{toString:V_}=Object.prototype,{getPrototypeOf:zh}=Object,{iterator:nc,toStringTag:Mv}=Symbol,rc=(t=>n=>{const e=V_.call(n);return t[e]||(t[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Yi=t=>(t=t.toLowerCase(),n=>rc(n)===t),ic=t=>n=>typeof n===t,{isArray:oa}=Array,sa=ic("undefined");function Ua(t){return t!==null&&!sa(t)&&t.constructor!==null&&!sa(t.constructor)&&ei(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Iv=Yi("ArrayBuffer");function K_(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Iv(t.buffer),n}const q_=ic("string"),ei=ic("function"),Ev=ic("number"),Va=t=>t!==null&&typeof t=="object",G_=t=>t===!0||t===!1,oc=t=>{if(rc(t)!=="object")return!1;const n=zh(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Mv in t)&&!(nc in t)},Y_=t=>{if(!Va(t)||Ua(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},X_=Yi("Date"),Z_=Yi("File"),Q_=t=>!!(t&&typeof t.uri<"u"),J_=t=>t&&typeof t.getParts<"u",eS=Yi("Blob"),tS=Yi("FileList"),nS=t=>Va(t)&&ei(t.pipe);function rS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Lv=rS(),Rv=typeof Lv.FormData<"u"?Lv.FormData:void 0,iS=t=>{let n;return t&&(Rv&&t instanceof Rv||ei(t.append)&&((n=rc(t))==="formdata"||n==="object"&&ei(t.toString)&&t.toString()==="[object FormData]"))},oS=Yi("URLSearchParams"),[sS,aS,lS,cS]=["ReadableStream","Request","Response","Headers"].map(Yi),uS=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(t,n,{allOwnKeys:e=!1}={}){if(t===null||typeof t>"u")return;let r,v;if(typeof t!="object"&&(t=[t]),oa(t))for(r=0,v=t.length;r<v;r++)n.call(null,t[r],r,t);else{if(Ua(t))return;const p=e?Object.getOwnPropertyNames(t):Object.keys(t),g=p.length;let w;for(r=0;r<g;r++)w=p[r],n.call(null,t[w],w,t)}}function Ov(t,n){if(Ua(t))return null;n=n.toLowerCase();const e=Object.keys(t);let r=e.length,v;for(;r-- >0;)if(v=e[r],n===v.toLowerCase())return v;return null}const Cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nv=t=>!sa(t)&&t!==Cs;function jh(){const{caseless:t,skipUndefined:n}=Nv(this)&&this||{},e={},r=(v,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=t&&Ov(e,p)||p;oc(e[g])&&oc(v)?e[g]=jh(e[g],v):oc(v)?e[g]=jh({},v):oa(v)?e[g]=v.slice():(!n||!sa(v))&&(e[g]=v)};for(let v=0,p=arguments.length;v<p;v++)arguments[v]&&Ka(arguments[v],r);return e}const hS=(t,n,e,{allOwnKeys:r}={})=>(Ka(n,(v,p)=>{e&&ei(v)?Object.defineProperty(t,p,{value:Tv(v,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,p,{value:v,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),dS=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),fS=(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},pS=(t,n,e,r)=>{let v,p,g;const w={};if(n=n||{},t==null)return n;do{for(v=Object.getOwnPropertyNames(t),p=v.length;p-- >0;)g=v[p],(!r||r(g,t,n))&&!w[g]&&(n[g]=t[g],w[g]=!0);t=e!==!1&&zh(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},gS=(t,n,e)=>{t=String(t),(e===void 0||e>t.length)&&(e=t.length),e-=n.length;const r=t.indexOf(n,e);return r!==-1&&r===e},mS=t=>{if(!t)return null;if(oa(t))return t;let n=t.length;if(!Ev(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},vS=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&zh(Uint8Array)),yS=(t,n)=>{const e=(t&&t[nc]).call(t);let r;for(;(r=e.next())&&!r.done;){const v=r.value;n.call(t,v[0],v[1])}},bS=(t,n)=>{let e;const r=[];for(;(e=t.exec(n))!==null;)r.push(e);return r},wS=Yi("HTMLFormElement"),xS=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,r){return e.toUpperCase()+r}),Dv=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),CS=Yi("RegExp"),Fv=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};Ka(e,(v,p)=>{let g;(g=n(v,p,t))!==!1&&(r[p]=g||v)}),Object.defineProperties(t,r)},kS=t=>{Fv(t,(n,e)=>{if(ei(t)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=t[e];if(ei(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},AS=(t,n)=>{const e={},r=v=>{v.forEach(p=>{e[p]=!0})};return oa(t)?r(t):r(String(t).split(n)),e},_S=()=>{},SS=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function $S(t){return!!(t&&ei(t.append)&&t[Mv]==="FormData"&&t[nc])}const TS=t=>{const n=new Array(10),e=(r,v)=>{if(Va(r)){if(n.indexOf(r)>=0)return;if(Ua(r))return r;if(!("toJSON"in r)){n[v]=r;const p=oa(r)?[]:{};return Ka(r,(g,w)=>{const h=e(g,v+1);!sa(h)&&(p[w]=h)}),n[v]=void 0,p}}return r};return e(t,0)},MS=Yi("AsyncFunction"),IS=t=>t&&(Va(t)||ei(t))&&ei(t.then)&&ei(t.catch),Pv=((t,n)=>t?setImmediate:n?((e,r)=>(Cs.addEventListener("message",({source:v,data:p})=>{v===Cs&&p===e&&r.length&&r.shift()()},!1),v=>{r.push(v),Cs.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ei(Cs.postMessage)),ES=typeof queueMicrotask<"u"?queueMicrotask.bind(Cs):typeof process<"u"&&process.nextTick||Pv,LS=t=>t!=null&&ei(t[nc]),_e={isArray:oa,isArrayBuffer:Iv,isBuffer:Ua,isFormData:iS,isArrayBufferView:K_,isString:q_,isNumber:Ev,isBoolean:G_,isObject:Va,isPlainObject:oc,isEmptyObject:Y_,isReadableStream:sS,isRequest:aS,isResponse:lS,isHeaders:cS,isUndefined:sa,isDate:X_,isFile:Z_,isReactNativeBlob:Q_,isReactNative:J_,isBlob:eS,isRegExp:CS,isFunction:ei,isStream:nS,isURLSearchParams:oS,isTypedArray:vS,isFileList:tS,forEach:Ka,merge:jh,extend:hS,trim:uS,stripBOM:dS,inherits:fS,toFlatObject:pS,kindOf:rc,kindOfTest:Yi,endsWith:gS,toArray:mS,forEachEntry:yS,matchAll:bS,isHTMLForm:wS,hasOwnProperty:Dv,hasOwnProp:Dv,reduceDescriptors:Fv,freezeMethods:kS,toObjectSet:AS,toCamelCase:xS,noop:_S,toFiniteNumber:SS,findKey:Ov,global:Cs,isContextDefined:Nv,isSpecCompliantForm:$S,toJSONObject:TS,isAsyncFn:MS,isThenable:IS,setImmediate:Pv,asap:ES,isIterable:LS};let vt=class H0 extends Error{static from(n,e,r,v,p,g){const w=new H0(n.message,e||n.code,r,v,p);return w.cause=n,w.name=n.name,n.status!=null&&w.status==null&&(w.status=n.status),g&&Object.assign(w,g),w}constructor(n,e,r,v,p){super(n),Object.defineProperty(this,"message",{value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),v&&(this.request=v),p&&(this.response=p,this.status=p.status)}toJSON(){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:_e.toJSONObject(this.config),code:this.code,status:this.status}}};vt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",vt.ERR_BAD_OPTION="ERR_BAD_OPTION",vt.ECONNABORTED="ECONNABORTED",vt.ETIMEDOUT="ETIMEDOUT",vt.ERR_NETWORK="ERR_NETWORK",vt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",vt.ERR_DEPRECATED="ERR_DEPRECATED",vt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",vt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",vt.ERR_CANCELED="ERR_CANCELED",vt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",vt.ERR_INVALID_URL="ERR_INVALID_URL";const RS=null;function Hh(t){return _e.isPlainObject(t)||_e.isArray(t)}function Wv(t){return _e.endsWith(t,"[]")?t.slice(0,-2):t}function Uh(t,n,e){return t?t.concat(n).map(function(r,v){return r=Wv(r),!e&&v?"["+r+"]":r}).join(e?".":""):n}function OS(t){return _e.isArray(t)&&!t.some(Hh)}const NS=_e.toFlatObject(_e,{},null,function(t){return/^is[A-Z]/.test(t)});function sc(t,n,e){if(!_e.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,e=_e.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!_e.isUndefined(i[c])});const r=e.metaTokens,v=e.visitor||d,p=e.dots,g=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(n);if(!_e.isFunction(v))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(_e.isDate(c))return c.toISOString();if(_e.isBoolean(c))return c.toString();if(!w&&_e.isBlob(c))throw new vt("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(c)||_e.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let f=c;if(_e.isReactNative(n)&&_e.isReactNativeBlob(c))return n.append(Uh(s,i,p),h(c)),!1;if(c&&!s&&typeof c=="object"){if(_e.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(_e.isArray(c)&&OS(c)||(_e.isFileList(c)||_e.endsWith(i,"[]"))&&(f=_e.toArray(c)))return i=Wv(i),f.forEach(function(b,x){!(_e.isUndefined(b)||b===null)&&n.append(g===!0?Uh([i],x,p):g===null?i:i+"[]",h(b))}),!1}return Hh(c)?!0:(n.append(Uh(s,i,p),h(c)),!1)}const a=[],l=Object.assign(NS,{defaultVisitor:d,convertValue:h,isVisitable:Hh});function u(c,i){if(!_e.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),_e.forEach(c,function(s,f){(!(_e.isUndefined(s)||s===null)&&v.call(n,s,_e.isString(f)?f.trim():f,i,l))===!0&&u(s,i?i.concat(f):[f])}),a.pop()}}if(!_e.isObject(t))throw new TypeError("data must be an object");return u(t),n}function Bv(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return n[e]})}function Vh(t,n){this._pairs=[],t&&sc(t,this,n)}const zv=Vh.prototype;zv.append=function(t,n){this._pairs.push([t,n])},zv.toString=function(t){const n=t?function(e){return t.call(this,e,Bv)}:Bv;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function DS(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jv(t,n,e){if(!n)return t;const r=e&&e.encode||DS,v=_e.isFunction(e)?{serialize:e}:e,p=v&&v.serialize;let g;if(p?g=p(n,v):g=_e.isURLSearchParams(n)?n.toString():new Vh(n,v).toString(r),g){const w=t.indexOf("#");w!==-1&&(t=t.slice(0,w)),t+=(t.indexOf("?")===-1?"?":"&")+g}return t}let Hv=class{constructor(){this.handlers=[]}use(n,e,r){return this.handlers.push({fulfilled:n,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){_e.forEach(this.handlers,function(e){e!==null&&n(e)})}};const Kh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},FS=typeof URLSearchParams<"u"?URLSearchParams:Vh,PS=typeof FormData<"u"?FormData:null,WS=typeof Blob<"u"?Blob:null,BS={isBrowser:!0,classes:{URLSearchParams:FS,FormData:PS,Blob:WS},protocols:["http","https","file","blob","url","data"]},qh=typeof window<"u"&&typeof document<"u",Gh=typeof navigator=="object"&&navigator||void 0,zS=qh&&(!Gh||["ReactNative","NativeScript","NS"].indexOf(Gh.product)<0),jS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HS=qh&&window.location.href||"http://localhost",US=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qh,hasStandardBrowserEnv:zS,hasStandardBrowserWebWorkerEnv:jS,navigator:Gh,origin:HS},Symbol.toStringTag,{value:"Module"})),$r={...US,...BS};function VS(t,n){return sc(t,new $r.classes.URLSearchParams,{visitor:function(e,r,v,p){return $r.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...n})}function KS(t){return _e.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function qS(t){const n={},e=Object.keys(t);let r;const v=e.length;let p;for(r=0;r<v;r++)p=e[r],n[p]=t[p];return n}function Uv(t){function n(e,r,v,p){let g=e[p++];if(g==="__proto__")return!0;const w=Number.isFinite(+g),h=p>=e.length;return g=!g&&_e.isArray(v)?v.length:g,h?(_e.hasOwnProp(v,g)?v[g]=[v[g],r]:v[g]=r,!w):((!v[g]||!_e.isObject(v[g]))&&(v[g]=[]),n(e,r,v[g],p)&&_e.isArray(v[g])&&(v[g]=qS(v[g])),!w)}if(_e.isFormData(t)&&_e.isFunction(t.entries)){const e={};return _e.forEachEntry(t,(r,v)=>{n(KS(r),v,e,0)}),e}return null}function GS(t,n,e){if(_e.isString(t))try{return(n||JSON.parse)(t),_e.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(t)}const qa={transitional:Kh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,v=_e.isObject(t);if(v&&_e.isHTMLForm(t)&&(t=new FormData(t)),_e.isFormData(t))return r?JSON.stringify(Uv(t)):t;if(_e.isArrayBuffer(t)||_e.isBuffer(t)||_e.isStream(t)||_e.isFile(t)||_e.isBlob(t)||_e.isReadableStream(t))return t;if(_e.isArrayBufferView(t))return t.buffer;if(_e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(v){if(e.indexOf("application/x-www-form-urlencoded")>-1)return VS(t,this.formSerializer).toString();if((p=_e.isFileList(t))||e.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return sc(p?{"files[]":t}:t,g&&new g,this.formSerializer)}}return v||r?(n.setContentType("application/json",!1),GS(t)):t}],transformResponse:[function(t){const n=this.transitional||qa.transitional,e=n&&n.forcedJSONParsing,r=this.responseType==="json";if(_e.isResponse(t)||_e.isReadableStream(t))return t;if(t&&_e.isString(t)&&(e&&!this.responseType||r)){const v=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(p){if(v)throw p.name==="SyntaxError"?vt.from(p,vt.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r.classes.FormData,Blob:$r.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],t=>{qa.headers[t]={}});const YS=_e.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"]),XS=t=>{const n={};let e,r,v;return t&&t.split(`
|
|
1478
|
-
`).forEach(function(p){v=p.indexOf(":"),e=p.substring(0,v).trim().toLowerCase(),r=p.substring(v+1).trim(),!(!e||n[e]&&YS[e])&&(e==="set-cookie"?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)}),n},Vv=Symbol("internals");function Ga(t){return t&&String(t).trim().toLowerCase()}function ac(t){return t===!1||t==null?t:_e.isArray(t)?t.map(ac):String(t)}function ZS(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}const QS=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Yh(t,n,e,r,v){if(_e.isFunction(r))return r.call(this,n,e);if(v&&(n=e),!!_e.isString(n)){if(_e.isString(r))return n.indexOf(r)!==-1;if(_e.isRegExp(r))return r.test(n)}}function JS(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,e,r)=>e.toUpperCase()+r)}function e$(t,n){const e=_e.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+e,{value:function(v,p,g){return this[r].call(this,n,v,p,g)},configurable:!0})})}let ti=class{constructor(n){n&&this.set(n)}set(n,e,r){const v=this;function p(w,h,d){const a=Ga(h);if(!a)throw new Error("header name must be a non-empty string");const l=_e.findKey(v,a);(!l||v[l]===void 0||d===!0||d===void 0&&v[l]!==!1)&&(v[l||h]=ac(w))}const g=(w,h)=>_e.forEach(w,(d,a)=>p(d,a,h));if(_e.isPlainObject(n)||n instanceof this.constructor)g(n,e);else if(_e.isString(n)&&(n=n.trim())&&!QS(n))g(XS(n),e);else if(_e.isObject(n)&&_e.isIterable(n)){let w={},h,d;for(const a of n){if(!_e.isArray(a))throw TypeError("Object iterator must return a key-value pair");w[d=a[0]]=(h=w[d])?_e.isArray(h)?[...h,a[1]]:[h,a[1]]:a[1]}g(w,e)}else n!=null&&p(e,n,r);return this}get(n,e){if(n=Ga(n),n){const r=_e.findKey(this,n);if(r){const v=this[r];if(!e)return v;if(e===!0)return ZS(v);if(_e.isFunction(e))return e.call(this,v,r);if(_e.isRegExp(e))return e.exec(v);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,e){if(n=Ga(n),n){const r=_e.findKey(this,n);return!!(r&&this[r]!==void 0&&(!e||Yh(this,this[r],r,e)))}return!1}delete(n,e){const r=this;let v=!1;function p(g){if(g=Ga(g),g){const w=_e.findKey(r,g);w&&(!e||Yh(r,r[w],w,e))&&(delete r[w],v=!0)}}return _e.isArray(n)?n.forEach(p):p(n),v}clear(n){const e=Object.keys(this);let r=e.length,v=!1;for(;r--;){const p=e[r];(!n||Yh(this,this[p],p,n,!0))&&(delete this[p],v=!0)}return v}normalize(n){const e=this,r={};return _e.forEach(this,(v,p)=>{const g=_e.findKey(r,p);if(g){e[g]=ac(v),delete e[p];return}const w=n?JS(p):String(p).trim();w!==p&&delete e[p],e[w]=ac(v),r[w]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const e=Object.create(null);return _e.forEach(this,(r,v)=>{r!=null&&r!==!1&&(e[v]=n&&_e.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,e])=>n+": "+e).join(`
|
|
1479
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...e){const r=new this(n);return e.forEach(v=>r.set(v)),r}static accessor(n){const e=(this[Vv]=this[Vv]={accessors:{}}).accessors,r=this.prototype;function v(p){const g=Ga(p);e[g]||(e$(r,p),e[g]=!0)}return _e.isArray(n)?n.forEach(v):v(n),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(ti.prototype,({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(r){this[e]=r}}}),_e.freezeMethods(ti);function Xh(t,n){const e=this||qa,r=n||e,v=ti.from(r.headers);let p=r.data;return _e.forEach(t,function(g){p=g.call(e,p,v.normalize(),n?n.status:void 0)}),v.normalize(),p}function Kv(t){return!!(t&&t.__CANCEL__)}let Ya=class extends vt{constructor(t,n,e){super(t??"canceled",vt.ERR_CANCELED,n,e),this.name="CanceledError",this.__CANCEL__=!0}};function qv(t,n,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?t(e):n(new vt("Request failed with status code "+e.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function t$(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function n$(t,n){t=t||10;const e=new Array(t),r=new Array(t);let v=0,p=0,g;return n=n!==void 0?n:1e3,function(w){const h=Date.now(),d=r[p];g||(g=h),e[v]=w,r[v]=h;let a=p,l=0;for(;a!==v;)l+=e[a++],a=a%t;if(v=(v+1)%t,v===p&&(p=(p+1)%t),h-g<n)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function r$(t,n){let e=0,r=1e3/n,v,p;const g=(w,h=Date.now())=>{e=h,v=null,p&&(clearTimeout(p),p=null),t(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?g(w,h):(v=w,p||(p=setTimeout(()=>{p=null,g(v)},r-d)))},()=>v&&g(v)]}const lc=(t,n,e=3)=>{let r=0;const v=n$(50,250);return r$(p=>{const g=p.loaded,w=p.lengthComputable?p.total:void 0,h=g-r,d=v(h),a=g<=w;r=g;const l={loaded:g,total:w,progress:w?g/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-g)/d:void 0,event:p,lengthComputable:w!=null,[n?"download":"upload"]:!0};t(l)},e)},Gv=(t,n)=>{const e=t!=null;return[r=>n[0]({lengthComputable:e,total:t,loaded:r}),n[1]]},Yv=t=>(...n)=>_e.asap(()=>t(...n)),i$=$r.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,$r.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL($r.origin),$r.navigator&&/(msie|trident)/i.test($r.navigator.userAgent)):()=>!0,o$=$r.hasStandardBrowserEnv?{write(t,n,e,r,v,p,g){if(typeof document>"u")return;const w=[`${t}=${encodeURIComponent(n)}`];_e.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),_e.isString(r)&&w.push(`path=${r}`),_e.isString(v)&&w.push(`domain=${v}`),p===!0&&w.push("secure"),_e.isString(g)&&w.push(`SameSite=${g}`),document.cookie=w.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function s$(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function a$(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Xv(t,n,e){let r=!s$(n);return t&&(r||e==!1)?a$(t,n):n}const Zv=t=>t instanceof ti?{...t}:t;function ks(t,n){n=n||{};const e={};function r(d,a,l,u){return _e.isPlainObject(d)&&_e.isPlainObject(a)?_e.merge.call({caseless:u},d,a):_e.isPlainObject(a)?_e.merge({},a):_e.isArray(a)?a.slice():a}function v(d,a,l,u){if(_e.isUndefined(a)){if(!_e.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function p(d,a){if(!_e.isUndefined(a))return r(void 0,a)}function g(d,a){if(_e.isUndefined(a)){if(!_e.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in n)return r(d,a);if(l in t)return r(void 0,d)}const h={url:p,method:p,data:p,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:w,headers:(d,a,l)=>v(Zv(d),Zv(a),l,!0)};return _e.forEach(Object.keys({...t,...n}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const a=_e.hasOwnProp(h,d)?h[d]:v,l=a(t[d],n[d],d);_e.isUndefined(l)&&a!==w||(e[d]=l)}),e}const Qv=t=>{const n=ks({},t);let{data:e,withXSRFToken:r,xsrfHeaderName:v,xsrfCookieName:p,headers:g,auth:w}=n;if(n.headers=g=ti.from(g),n.url=jv(Xv(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),w&&g.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),_e.isFormData(e)){if($r.hasStandardBrowserEnv||$r.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(_e.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&g.set(a,l)})}}if($r.hasStandardBrowserEnv&&(r&&_e.isFunction(r)&&(r=r(n)),r||r!==!1&&i$(n.url))){const h=v&&p&&o$.read(p);h&&g.set(v,h)}return n},l$=typeof XMLHttpRequest<"u",c$=l$&&function(t){return new Promise(function(n,e){const r=Qv(t);let v=r.data;const p=ti.from(r.headers).normalize();let{responseType:g,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function f(){if(!s)return;const x=ti.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),O={data:!g||g==="text"||g==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:t,request:s};qv(function(T){n(T),i()},function(T){e(T),i()},O),s=null}"onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(e(new vt("Request aborted",vt.ECONNABORTED,t,s)),s=null)},s.onerror=function(x){const O=x&&x.message?x.message:"Network Error",T=new vt(O,vt.ERR_NETWORK,t,s);T.event=x||null,e(T),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const O=r.transitional||Kh;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new vt(x,O.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,t,s)),s=null},v===void 0&&p.setContentType(null),"setRequestHeader"in s&&_e.forEach(p.toJSON(),function(x,O){s.setRequestHeader(O,x)}),_e.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),g&&g!=="json"&&(s.responseType=r.responseType),h&&([l,c]=lc(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=lc(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new Ya(null,t,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=t$(r.url);if(b&&$r.protocols.indexOf(b)===-1){e(new vt("Unsupported protocol "+b+":",vt.ERR_BAD_REQUEST,t));return}s.send(v||null)})},u$=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let r=new AbortController,v;const p=function(d){if(!v){v=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof vt?a:new Ya(a instanceof Error?a.message:a))}};let g=n&&setTimeout(()=>{g=null,p(new vt(`timeout of ${n}ms exceeded`,vt.ETIMEDOUT))},n);const w=()=>{t&&(g&&clearTimeout(g),g=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(p):d.removeEventListener("abort",p)}),t=null)};t.forEach(d=>d.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>_e.asap(w),h}},h$=function*(t,n){let e=t.byteLength;if(e<n){yield t;return}let r=0,v;for(;r<e;)v=r+n,yield t.slice(r,v),r=v},d$=async function*(t,n){for await(const e of f$(t))yield*h$(e,n)},f$=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:e,value:r}=await n.read();if(e)break;yield r}}finally{await n.cancel()}},Jv=(t,n,e,r)=>{const v=d$(t,n);let p=0,g,w=h=>{g||(g=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await v.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=p+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),v.return()}},{highWaterMark:2})},ey=64*1024,{isFunction:cc}=_e,p$=(({Request:t,Response:n})=>({Request:t,Response:n}))(_e.global),{ReadableStream:ty,TextEncoder:ny}=_e.global,ry=(t,...n)=>{try{return!!t(...n)}catch{return!1}},g$=t=>{t=_e.merge.call({skipUndefined:!0},p$,t);const{fetch:n,Request:e,Response:r}=t,v=n?cc(n):typeof fetch=="function",p=cc(e),g=cc(r);if(!v)return!1;const w=v&&cc(ty),h=v&&(typeof ny=="function"?(i=>s=>i.encode(s))(new ny):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=p&&w&&ry(()=>{let i=!1;const s=new e($r.origin,{body:new ty,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),a=g&&w&&ry(()=>_e.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,f)=>{let b=s&&s[i];if(b)return b.call(s);throw new vt(`Response type '${i}' is not supported`,vt.ERR_NOT_SUPPORT,f)})});const u=async i=>{if(i==null)return 0;if(_e.isBlob(i))return i.size;if(_e.isSpecCompliantForm(i))return(await new e($r.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(_e.isArrayBufferView(i)||_e.isArrayBuffer(i))return i.byteLength;if(_e.isURLSearchParams(i)&&(i=i+""),_e.isString(i))return(await h(i)).byteLength},c=async(i,s)=>_e.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:f,data:b,signal:x,cancelToken:O,timeout:T,onDownloadProgress:_,onUploadProgress:C,responseType:L,headers:F,withCredentials:E="same-origin",fetchOptions:I}=Qv(i),z=n||fetch;L=L?(L+"").toLowerCase():"text";let P=u$([x,O&&O.toAbortSignal()],T),N=null;const S=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let k;try{if(C&&d&&f!=="get"&&f!=="head"&&(k=await c(F,b))!==0){let J=new e(s,{method:"POST",body:b,duplex:"half"}),he;if(_e.isFormData(b)&&(he=J.headers.get("content-type"))&&F.setContentType(he),J.body){const[ne,ce]=Gv(k,lc(Yv(C)));b=Jv(J.body,ey,ne,ce)}}_e.isString(E)||(E=E?"include":"omit");const R=p&&"credentials"in e.prototype,B={...I,signal:P,method:f.toUpperCase(),headers:F.normalize().toJSON(),body:b,duplex:"half",credentials:R?E:void 0};N=p&&new e(s,B);let U=await(p?z(N,I):z(s,B));const q=a&&(L==="stream"||L==="response");if(a&&(_||q&&S)){const J={};["status","statusText","headers"].forEach(se=>{J[se]=U[se]});const he=_e.toFiniteNumber(U.headers.get("content-length")),[ne,ce]=_&&Gv(he,lc(Yv(_),!0))||[];U=new r(Jv(U.body,ey,ne,()=>{ce&&ce(),S&&S()}),J)}L=L||"text";let Q=await l[_e.findKey(l,L)||"text"](U,i);return!q&&S&&S(),await new Promise((J,he)=>{qv(J,he,{data:Q,headers:ti.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:N})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new vt("Network Error",vt.ERR_NETWORK,i,N,R&&R.response),{cause:R.cause||R}):vt.from(R,R&&R.code,i,N,R&&R.response)}}},m$=new Map,iy=t=>{let n=t&&t.env||{};const{fetch:e,Request:r,Response:v}=n,p=[r,v,e];let g=p.length,w=g,h,d,a=m$;for(;w--;)h=p[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:g$(n)),a=d;return d};iy();const Zh={http:RS,xhr:c$,fetch:{get:iy}};_e.forEach(Zh,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const oy=t=>`- ${t}`,v$=t=>_e.isFunction(t)||t===null||t===!1;function y$(t,n){t=_e.isArray(t)?t:[t];const{length:e}=t;let r,v;const p={};for(let g=0;g<e;g++){r=t[g];let w;if(v=r,!v$(r)&&(v=Zh[(w=String(r)).toLowerCase()],v===void 0))throw new vt(`Unknown adapter '${w}'`);if(v&&(_e.isFunction(v)||(v=v.get(n))))break;p[w||"#"+g]=v}if(!v){const g=Object.entries(p).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?g.length>1?`since :
|
|
1480
|
-
`+g.map(oy).join(`
|
|
1481
|
-
`):" "+oy(g[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return v}const sy={getAdapter:y$,adapters:Zh};function Qh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ya(null,t)}function ay(t){return Qh(t),t.headers=ti.from(t.headers),t.data=Xh.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),sy.getAdapter(t.adapter||qa.adapter,t)(t).then(function(n){return Qh(t),n.data=Xh.call(t,t.transformResponse,n),n.headers=ti.from(n.headers),n},function(n){return Kv(n)||(Qh(t),n&&n.response&&(n.response.data=Xh.call(t,t.transformResponse,n.response),n.response.headers=ti.from(n.response.headers))),Promise.reject(n)})}const ly="1.13.6",uc={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{uc[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}});const cy={};uc.transitional=function(t,n,e){function r(v,p){return"[Axios v"+ly+"] Transitional option '"+v+"'"+p+(e?". "+e:"")}return(v,p,g)=>{if(t===!1)throw new vt(r(p," has been removed"+(n?" in "+n:"")),vt.ERR_DEPRECATED);return n&&!cy[p]&&(cy[p]=!0,console.warn(r(p," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(v,p,g):!0}},uc.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function b$(t,n,e){if(typeof t!="object")throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let v=r.length;for(;v-- >0;){const p=r[v],g=n[p];if(g){const w=t[p],h=w===void 0||g(w,p,t);if(h!==!0)throw new vt("option "+p+" must be "+h,vt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new vt("Unknown option "+p,vt.ERR_BAD_OPTION)}}const hc={assertOptions:b$,validators:uc},Ei=hc.validators;let As=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Hv,response:new Hv}}async request(n,e){try{return await this._request(n,e)}catch(r){if(r instanceof Error){let v={};Error.captureStackTrace?Error.captureStackTrace(v):v=new Error;const p=v.stack?v.stack.replace(/^.+\n/,""):"";try{r.stack?p&&!String(r.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1482
|
-
`+p):r.stack=p}catch{}}throw r}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=ks(this.defaults,e);const{transitional:r,paramsSerializer:v,headers:p}=e;r!==void 0&&hc.assertOptions(r,{silentJSONParsing:Ei.transitional(Ei.boolean),forcedJSONParsing:Ei.transitional(Ei.boolean),clarifyTimeoutError:Ei.transitional(Ei.boolean),legacyInterceptorReqResOrdering:Ei.transitional(Ei.boolean)},!1),v!=null&&(_e.isFunction(v)?e.paramsSerializer={serialize:v}:hc.assertOptions(v,{encode:Ei.function,serialize:Ei.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),hc.assertOptions(e,{baseUrl:Ei.spelling("baseURL"),withXsrfToken:Ei.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let g=p&&_e.merge(p.common,p[e.method]);p&&_e.forEach(["delete","get","head","post","put","patch","common"],i=>{delete p[i]}),e.headers=ti.concat(g,p);const w=[];let h=!0;this.interceptors.request.forEach(function(i){if(typeof i.runWhen=="function"&&i.runWhen(e)===!1)return;h=h&&i.synchronous;const s=e.transitional||Kh;s&&s.legacyInterceptorReqResOrdering?w.unshift(i.fulfilled,i.rejected):w.push(i.fulfilled,i.rejected)});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,u;if(!h){const i=[ay.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,a=Promise.resolve(e);l<u;)a=a.then(i[l++],i[l++]);return a}u=w.length;let c=e;for(;l<u;){const i=w[l++],s=w[l++];try{c=i(c)}catch(f){s.call(this,f);break}}try{a=ay.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)a=a.then(d[l++],d[l++]);return a}getUri(n){n=ks(this.defaults,n);const e=Xv(n.baseURL,n.url,n.allowAbsoluteUrls);return jv(e,n.params,n.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(t){As.prototype[t]=function(n,e){return this.request(ks(e||{},{method:t,url:n,data:(e||{}).data}))}}),_e.forEach(["post","put","patch"],function(t){function n(e){return function(r,v,p){return this.request(ks(p||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:v}))}}As.prototype[t]=n(),As.prototype[t+"Form"]=n(!0)});let w$=class U0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(v){e=v});const r=this;this.promise.then(v=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](v);r._listeners=null}),this.promise.then=v=>{let p;const g=new Promise(w=>{r.subscribe(w),p=w}).then(v);return g.cancel=function(){r.unsubscribe(p)},g},n(function(v,p,g){r.reason||(r.reason=new Ya(v,p,g),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const n=new AbortController,e=r=>{n.abort(r)};return this.subscribe(e),n.signal.unsubscribe=()=>this.unsubscribe(e),n.signal}static source(){let n;return{token:new U0(function(e){n=e}),cancel:n}}};function x$(t){return function(n){return t.apply(null,n)}}function C$(t){return _e.isObject(t)&&t.isAxiosError===!0}const Jh={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Jh).forEach(([t,n])=>{Jh[n]=t});function uy(t){const n=new As(t),e=Tv(As.prototype.request,n);return _e.extend(e,As.prototype,n,{allOwnKeys:!0}),_e.extend(e,n,null,{allOwnKeys:!0}),e.create=function(r){return uy(ks(t,r))},e}const Yn=Mn("a",uy(qa));Yn.Axios=As,Yn.CanceledError=Ya,Yn.CancelToken=w$,Yn.isCancel=Kv,Yn.VERSION=ly,Yn.toFormData=sc,Yn.AxiosError=vt,Yn.Cancel=Yn.CanceledError,Yn.all=function(t){return Promise.all(t)},Yn.spread=x$,Yn.isAxiosError=C$,Yn.mergeConfig=ks,Yn.AxiosHeaders=ti,Yn.formToJSON=t=>Uv(_e.isHTMLForm(t)?new FormData(t):t),Yn.getAdapter=sy.getAdapter,Yn.HttpStatusCode=Jh,Yn.default=Yn;const{Axios:p2,AxiosError:g2,CanceledError:m2,isCancel:v2,CancelToken:y2,VERSION:b2,all:w2,Cancel:x2,isAxiosError:C2,spread:k2,toFormData:A2,AxiosHeaders:_2,HttpStatusCode:S2,formToJSON:$2,getAdapter:T2,mergeConfig:M2}=Yn;function hy(){return Object.assign({},Hs())}function k$(t,n,e){const r=Or(t,e?.in);return r.setTime(r.getTime()+n*Cl),r}function A$(t,n){const e=()=>io(n?.in,NaN),r=T$(t);let v;if(r.date){const h=M$(r.date,2);v=I$(h.restDateString,h.year)}if(!v||isNaN(+v))return e();const p=+v;let g=0,w;if(r.time&&(g=E$(r.time),isNaN(g)))return e();if(r.timezone){if(w=L$(r.timezone),isNaN(w))return e()}else{const h=new Date(p+g),d=Or(0,n?.in);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return Or(p+g+w,n?.in)}const dc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,S$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function T$(t){const n={},e=t.split(dc.dateTimeDelimiter);let r;if(e.length>2)return n;if(/:/.test(e[0])?r=e[0]:(n.date=e[0],r=e[1],dc.timeZoneDelimiter.test(n.date)&&(n.date=t.split(dc.timeZoneDelimiter)[0],r=t.substr(n.date.length,t.length))),r){const v=dc.timezone.exec(r);v?(n.time=r.replace(v[1],""),n.timezone=v[1]):n.time=r}return n}function M$(t,n){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=t.match(e);if(!r)return{year:NaN,restDateString:""};const v=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?v:p*100,restDateString:t.slice((r[1]||r[2]).length)}}function I$(t,n){if(n===null)return new Date(NaN);const e=t.match(_$);if(!e)return new Date(NaN);const r=!!e[4],v=Xa(e[1]),p=Xa(e[2])-1,g=Xa(e[3]),w=Xa(e[4]),h=Xa(e[5])-1;if(r)return F$(n,w,h)?R$(n,w,h):new Date(NaN);{const d=new Date(0);return!N$(n,p,g)||!D$(n,v)?new Date(NaN):(d.setUTCFullYear(n,p,Math.max(v,g)),d)}}function Xa(t){return t?parseInt(t):1}function E$(t){const n=t.match(S$);if(!n)return NaN;const e=ed(n[1]),r=ed(n[2]),v=ed(n[3]);return P$(e,r,v)?e*au+r*Cl+v*1e3:NaN}function ed(t){return t&&parseFloat(t.replace(",","."))||0}function L$(t){if(t==="Z")return 0;const n=t.match($$);if(!n)return 0;const e=n[1]==="+"?-1:1,r=parseInt(n[2]),v=n[3]&&parseInt(n[3])||0;return W$(r,v)?e*(r*au+v*Cl):NaN}function R$(t,n,e){const r=new Date(0);r.setUTCFullYear(t,0,4);const v=r.getUTCDay()||7,p=(n-1)*7+e+1-v;return r.setUTCDate(r.getUTCDate()+p),r}const O$=[31,null,31,30,31,30,31,31,30,31,30,31];function dy(t){return t%400===0||t%4===0&&t%100!==0}function N$(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(O$[n]||(dy(t)?29:28))}function D$(t,n){return n>=1&&n<=(dy(t)?366:365)}function F$(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function P$(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function W$(t,n){return n>=0&&n<=59}function B$(t,n,e){return k$(t,-n,e)}function fy(t,n,e){const r=hy(),v=H$(t,e.timeZone,e.locale??r.locale);return"formatToParts"in v?z$(v,n):j$(v,n)}function z$(t,n){const e=t.formatToParts(n);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function j$(t,n){const e=t.format(n).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function H$(t,n,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:n,timeZoneName:t})}function U$(t,n){const e=Y$(n);return"formatToParts"in e?K$(e,t):q$(e,t)}const V$={year:0,month:1,day:2,hour:3,minute:4,second:5};function K$(t,n){try{const e=t.formatToParts(n),r=[];for(let v=0;v<e.length;v++){const p=V$[e[v].type];p!==void 0&&(r[p]=parseInt(e[v].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function q$(t,n){const e=t.format(n),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const td={},py=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")),G$=py==="06/25/2014, 00:00:00"||py==="06/25/2014 00:00:00";function Y$(t){return td[t]||(td[t]=G$?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),td[t]}function gy(t,n,e,r,v,p,g){const w=new Date(0);return w.setUTCFullYear(t,n,e),w.setUTCHours(r,v,p,g),w}const my=36e5,X$=6e4,nd={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function rd(t,n,e){if(!t)return 0;let r=nd.timezoneZ.exec(t);if(r)return 0;let v,p;if(r=nd.timezoneHH.exec(t),r)return v=parseInt(r[1],10),vy(v)?-(v*my):NaN;if(r=nd.timezoneHHMM.exec(t),r){v=parseInt(r[2],10);const g=parseInt(r[3],10);return vy(v,g)?(p=Math.abs(v)*my+g*X$,r[1]==="+"?-p:p):NaN}if(J$(t)){n=new Date(n||Date.now());const g=e?n:Z$(n),w=id(g,t);return-(e?w:Q$(n,w,t))}return NaN}function Z$(t){return gy(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function id(t,n){const e=U$(t,n),r=gy(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let v=t.getTime();const p=v%1e3;return v-=p>=0?p:1e3+p,r-v}function Q$(t,n,e){let r=t.getTime()-n;const v=id(new Date(r),e);if(n===v)return n;r-=v-n;const p=id(new Date(r),e);return v===p?v:Math.max(v,p)}function vy(t,n){return-23<=t&&t<=23&&(n==null||0<=n&&n<=59)}const yy={};function J$(t){if(yy[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),yy[t]=!0,!0}catch{return!1}}const eT=60*1e3,tT={X:function(t,n,e){const r=od(e.timeZone,t);if(r===0)return"Z";switch(n){case"X":return by(r);case"XXXX":case"XX":return aa(r);default:return aa(r,":")}},x:function(t,n,e){const r=od(e.timeZone,t);switch(n){case"x":return by(r);case"xxxx":case"xx":return aa(r);default:return aa(r,":")}},O:function(t,n,e){const r=od(e.timeZone,t);switch(n){case"O":case"OO":case"OOO":return"GMT"+nT(r,":");default:return"GMT"+aa(r,":")}},z:function(t,n,e){switch(n){case"z":case"zz":case"zzz":return fy("short",t,e);default:return fy("long",t,e)}}};function od(t,n){const e=t?rd(t,n,!0)/eT:n?.getTimezoneOffset()??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+t);return e}function fc(t,n){const e=t<0?"-":"";let r=Math.abs(t).toString();for(;r.length<n;)r="0"+r;return e+r}function aa(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=fc(Math.floor(r/60),2),p=fc(Math.floor(r%60),2);return e+v+n+p}function by(t,n){return t%60===0?(t>0?"-":"+")+fc(Math.abs(t)/60,2):aa(t,n)}function nT(t,n=""){const e=t>0?"-":"+",r=Math.abs(t),v=Math.floor(r/60),p=r%60;return p===0?e+String(v):e+String(v)+n+fc(p,2)}function wy(t){const n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+t-+n}const rT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,sd=36e5,xy=6e4,iT=2,Dr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,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:rT};function Cy(t,n={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);const e=n.additionalDigits==null?iT:Number(n.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(Object.prototype.toString.call(t)!=="[object String]")return new Date(NaN);const r=oT(t),{year:v,restDateString:p}=sT(r.date,e),g=aT(p,v);if(g===null||isNaN(g.getTime()))return new Date(NaN);if(g){const w=g.getTime();let h=0,d;if(r.time&&(h=lT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||n.timeZone){if(d=rd(r.timeZone||n.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=wy(new Date(w+h)),d=wy(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function oT(t){const n={};let e=Dr.dateTimePattern.exec(t),r;if(e?(n.date=e[1],r=e[3]):(e=Dr.datePattern.exec(t),e?(n.date=e[1],r=e[2]):(n.date=null,r=t)),r){const v=Dr.timeZone.exec(r);v?(n.time=r.replace(v[1],""),n.timeZone=v[1].trim()):n.time=r}return n}function sT(t,n){if(t){const e=Dr.YYY[n],r=Dr.YYYYY[n];let v=Dr.YYYY.exec(t)||r.exec(t);if(v){const p=v[1];return{year:parseInt(p,10),restDateString:t.slice(p.length)}}if(v=Dr.YY.exec(t)||e.exec(t),v){const p=v[1];return{year:parseInt(p,10)*100,restDateString:t.slice(p.length)}}}return{year:null}}function aT(t,n){if(n===null)return null;let e,r,v;if(!t||!t.length)return e=new Date(0),e.setUTCFullYear(n),e;let p=Dr.MM.exec(t);if(p)return e=new Date(0),r=parseInt(p[1],10)-1,_y(n,r)?(e.setUTCFullYear(n,r),e):new Date(NaN);if(p=Dr.DDD.exec(t),p){e=new Date(0);const g=parseInt(p[1],10);return hT(n,g)?(e.setUTCFullYear(n,0,g),e):new Date(NaN)}if(p=Dr.MMDD.exec(t),p){e=new Date(0),r=parseInt(p[1],10)-1;const g=parseInt(p[2],10);return _y(n,r,g)?(e.setUTCFullYear(n,r,g),e):new Date(NaN)}if(p=Dr.Www.exec(t),p)return v=parseInt(p[1],10)-1,Sy(v)?ky(n,v):new Date(NaN);if(p=Dr.WwwD.exec(t),p){v=parseInt(p[1],10)-1;const g=parseInt(p[2],10)-1;return Sy(v,g)?ky(n,v,g):new Date(NaN)}return null}function lT(t){let n,e,r=Dr.HH.exec(t);if(r)return n=parseFloat(r[1].replace(",",".")),ad(n)?n%24*sd:NaN;if(r=Dr.HHMM.exec(t),r)return n=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),ad(n,e)?n%24*sd+e*xy:NaN;if(r=Dr.HHMMSS.exec(t),r){n=parseInt(r[1],10),e=parseInt(r[2],10);const v=parseFloat(r[3].replace(",","."));return ad(n,e,v)?n%24*sd+e*xy+v*1e3:NaN}return null}function ky(t,n,e){n=n||0,e=e||0;const r=new Date(0);r.setUTCFullYear(t,0,4);const v=r.getUTCDay()||7,p=n*7+e+1-v;return r.setUTCDate(r.getUTCDate()+p),r}const cT=[31,28,31,30,31,30,31,31,30,31,30,31],uT=[31,29,31,30,31,30,31,31,30,31,30,31];function Ay(t){return t%400===0||t%4===0&&t%100!==0}function _y(t,n,e){if(n<0||n>11)return!1;if(e!=null){if(e<1)return!1;const r=Ay(t);if(r&&e>uT[n]||!r&&e>cT[n])return!1}return!0}function hT(t,n){if(n<1)return!1;const e=Ay(t);return!(e&&n>366||!e&&n>365)}function Sy(t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function ad(t,n,e){return!(t<0||t>=25||n!=null&&(n<0||n>=60)||e!=null&&(e<0||e>=60))}const dT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function fT(t,n,e={}){n=String(n);const r=n.match(dT);if(r){const v=Cy(e.originalDate||t,e);n=r.reduce(function(p,g){if(g[0]==="'")return p;const w=p.indexOf(g),h=p[w-1]==="'",d=p.replace(g,"'"+tT[g[0]](v,g,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},n)}return cs(t,n,e)}function pT(t,n,e){t=Cy(t,e);const r=rd(n,t,!0),v=new Date(t.getTime()-r),p=new Date(0);return p.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),p.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),p}function pc(t,n,e,r){return r={...r,timeZone:n,originalDate:t},fT(pT(t,n,{timeZone:r.timeZone}),e,r)}const gc="yyyy-MM-dd",$y="HH:mm:ss.SSS",Ty="HH:mm:ss",mc=`${gc} ${$y}`,My=`${gc} ${Ty}`,I2=Mn("R",{methods:{parseDateTime(t,n){return t.includes(" ")&&(t=t.replace(" ","T")),n&&n==="UTC"&&(t+="Z"),Date.parse(t)},formatUtcToLocal(t,n){return cs(!n||n==="local"?B$(t,t.getTimezoneOffset()):t,mc)},formatDateTime(t,n){return!n||n==="local"?cs(t,mc):pc(t,n,mc)},formatDateTimeHMS(t,n){return!n||n==="local"?cs(t,My):pc(t,n,My)},formatDate:function(t,n){return!n||n==="local"?cs(t,gc):pc(t,this.timeZone,gc)},formatTime:function(t,n,e=$y){return!n||n==="local"?cs(t,e):pc(t,this.timeZone,e)},formatTimeHMS:function(t,n){return this.formatTime(t,n,Ty)},formatTimestamp(t,n){return this.formatDateTime(A$(t),n)},formatSeconds(t,n){return this.formatDateTime(new Date(t*1e3),n)},formatNanoseconds(t,n){return this.formatDateTime(new Date(parseInt(t)/1e6),n)}}}),Iy=100,Ey=Mn("c",$f("app",{state:()=>({notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1,playbackLoading:0}}),getters:{namedWidget:t=>n=>t.namedWidgets[n]},actions:{notifyAddHistory(t){this.notifyHistory.length>=Iy&&(this.notifyHistory.length=Iy-1),this.notifyHistory.unshift(t)},notifyClearHistory(){this.notifyHistory=[]},setNamedWidget(t){Object.assign(this.namedWidgets,t)},clearNamedWidget(t){delete this.namedWidgets[t]},updatePlayback(t){Object.assign(this.playback,t)}}})),la=Tf();la.use(({store:t})=>{t.commit=(n,e)=>{typeof t[n]=="function"&&t[n](e)},t.dispatch=(n,e)=>{if(typeof t[n]=="function")return t[n](e)}});const gT=la.install.bind(la);la.install=t=>{gT(t);const n=Ey(la);t.config.globalProperties.$store={state:new Proxy({},{get(e,r){return n.$state}}),getters:new Proxy({},{get(e,r){if(r.includes("/")){const[,v]=r.split("/");return n[v]}return n[r]}}),commit(e,r){if(e.includes("/")){const[,v]=e.split("/");n[v]?.(r)}else n[e]?.(r)},dispatch(e,r){if(e.includes("/")){const[,v]=e.split("/");return n[v]?.(r)}else return n[e]?.(r)}}};const mT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",vT={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number,default:1}},computed:{icons:function(){return mT},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const t=AT.indexOf(Ly[this.status]),n=1-(t-1)*.05,e=224*this.scaleFactor*n,r=32*this.scaleFactor*n,v=32*this.scaleFactor*n;return[`background-image: url(${this.icons});`,`background-position-x: -${t*v}px;`,`background-size: ${e}px ${r}px;`,`height: ${v}px;`,`width: ${v}px;`,`padding-top: ${t-1}px;`].join("")}}};function yT(t,n,e,r,v,p){return In(),Xr("div",{style:Ca(p.iconStyle)},null,4)}const bT=Po(vT,[["render",yT]]),wT={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function xT(t,n,e,r,v,p){const g=Ct("rux-icon");return In(),ro(g,{size:e.size,icon:e.icon,style:Ca(p.colorStyle)},null,8,["size","icon","style"])}const CT=Po(wT,[["render",xT],["__scopeId","data-v-bb4cd487"]]),Ly={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"},ld={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},kT=function(t){const n="#000000",e="#ffffff",r=ld[Ly[t]];if(r){const v=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,g=+`0x${r.slice(5,7)}`;if((v*299+p*587+g*114)/1e3>128)return n}return e},AT=Object.keys(ld),_T={astro:{component:t=>zs(CT,{...t})},"astro-status":{component:t=>zs(bT,{...t,status:t.icon})}},ST={extras:{component:t=>zs(aw,{...t})}},E2=Mn("k",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(t){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(t))},openConfigBase:function(t,n=!1,e=null){new gs().load_config(this.configKey,t).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:t}),e&&e(JSON.parse(r)),n||this.$route.fullPath.includes(t)||this.$router.push({query:{config:t}})):this.$notify.caution({title:"Unknown configuration",body:t})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${t}`,body:r})})},saveConfigBase:function(t,n){new gs().save_config(this.configKey,t,JSON.stringify(n)).then(()=>{this.$notify.normal({title:"Saved configuration",body:t})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${t}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const t={...this.$route.query};delete t.config,this.$router.replace({query:t})}}}),$T={props:{configKey:{type:String,default:null},modelValue:Boolean},emits:["update:modelValue","warning","success"],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(t=>t.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},mounted(){let t=-1;new gs().list_configs(this.configKey).then(n=>{this.configs=n.map(e=>(t+=1,{configId:t,config:e}))}).catch(n=>{this.$emit("warning",`Failed to connect to OpenC3. ${n}`)})},methods:{selectRow:function(t){this.selectedRows=[t.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(t){this.$dialog.confirm(`Are you sure you want to delete: ${t.config}`,{okText:"Delete",cancelText:"Cancel"}).then(n=>{this.selectedItem?.config===t.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(t),1),new gs().delete_config(this.configKey,t.config)}).catch(n=>{n!==!0&&this.$emit("warning",`Failed to delete config ${t.config} Error: ${n}`)})}}},TT={class:"mt-4 pa-3"},MT=["textContent"];function IT(t,n,e,r,v,p){const g=Ct("v-spacer"),w=Ct("v-toolbar"),h=Ct("v-text-field"),d=Ct("v-row"),a=Ct("v-btn"),l=Ct("v-data-table"),u=Ct("v-card-text"),c=Ct("v-card-actions"),i=Ct("v-card"),s=Ct("v-dialog");return In(),ro(s,{modelValue:p.show,"onUpdate:modelValue":n[4]||(n[4]=f=>p.show=f),persistent:"",width:"600",onKeydown:bl(p.cancel,["esc"])},{default:Et(()=>[ut(i,null,{default:Et(()=>[lr("form",{onSubmit:n[3]||(n[3]=js((...f)=>p.success&&p.success(...f),["prevent"]))},[ut(w,{height:"24"},{default:Et(()=>[ut(g),n[5]||(n[5]=lr("span",null,"Open Configuration",-1)),ut(g)]),_:1}),ut(u,null,{default:Et(()=>[lr("div",TT,[ut(d,{dense:""},{default:Et(()=>[ut(h,{modelValue:v.search,"onUpdate:modelValue":n[0]||(n[0]=f=>v.search=f),label:"Search",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}),ut(l,{modelValue:v.selectedRows,"onUpdate:modelValue":n[1]||(n[1]=f=>v.selectedRows=f),"show-select":"","select-strategy":"single","item-value":"configId",search:v.search,headers:v.headers,items:v.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":n[2]||(n[2]=(f,b)=>p.selectRow(b))},{"item.actions":Et(({item:f})=>[ut(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>p.deleteConfig(f)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ut(d,{dense:""},{default:Et(()=>[wl(lr("span",{class:"ma-2 text-red",textContent:Zr(p.error)},null,8,MT),[[xl,p.error]])]),_:1})])]),_:1}),ut(c,{class:"px-2"},{default:Et(()=>[ut(g),ut(a,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:p.cancel},{default:Et(()=>[...n[6]||(n[6]=[Ar(" Cancel ",-1)])]),_:1},8,["onClick"]),ut(a,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!p.error,onClick:js(p.success,["prevent"])},{default:Et(()=>[...n[7]||(n[7]=[Ar(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const L2=Mn("I",Po($T,[["render",IT]])),ET={props:{configKey:{type:String,default:null},modelValue:Boolean},emits:["update:modelValue","warning","success"],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(t=>t.configId===this.selectedRows[0]):null},error:function(){return this.configName?/^[A-Za-z0-9_\-. ]+$/.test(this.configName)?null:"Config name must only contain letters, numbers, hyphens, underscores, spaces, and periods":"Config must have a name"},show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},watch:{selectedItem:function(t){t&&(this.configName=t.config)}},mounted(){let t=-1;new gs().list_configs(this.configKey).then(n=>{this.configs=n.map(e=>(t+=1,{configId:t,config:e}))}).catch(n=>{this.$emit("warning",`Failed to connect to OpenC3. ${n}`)})},methods:{selectRow:function(t){this.selectedRows=[t.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(t){this.$dialog.confirm(`Are you sure you want to delete: ${t.config}`,{okText:"Delete",cancelText:"Cancel"}).then(n=>{this.selectedItem?.config===t.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(t),1),new gs().delete_config(this.configKey,t.config)}).catch(n=>{n!==!0&&this.$emit("warning",`Failed to delete config ${t.config} Error: ${n}`)})}}},LT={class:"mt-4 pa-3"},RT=["textContent"];function OT(t,n,e,r,v,p){const g=Ct("v-spacer"),w=Ct("v-toolbar"),h=Ct("v-text-field"),d=Ct("v-row"),a=Ct("v-btn"),l=Ct("v-data-table"),u=Ct("v-card-text"),c=Ct("v-card-actions"),i=Ct("v-card"),s=Ct("v-dialog");return In(),ro(s,{modelValue:p.show,"onUpdate:modelValue":n[5]||(n[5]=f=>p.show=f),persistent:"",width:"600",onKeydown:bl(p.cancel,["esc"])},{default:Et(()=>[ut(i,null,{default:Et(()=>[lr("form",{onSubmit:n[4]||(n[4]=js((...f)=>p.success&&p.success(...f),["prevent"]))},[ut(w,{height:"24"},{default:Et(()=>[ut(g),n[6]||(n[6]=lr("span",null,"Save Configuration",-1)),ut(g)]),_:1}),ut(u,null,{default:Et(()=>[lr("div",LT,[ut(d,{dense:""},{default:Et(()=>[ut(h,{modelValue:v.search,"onUpdate:modelValue":n[0]||(n[0]=f=>v.search=f),label:"search",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}),ut(l,{modelValue:v.selectedRows,"onUpdate:modelValue":n[1]||(n[1]=f=>v.selectedRows=f),"show-select":"","select-strategy":"single","item-value":"configId",search:v.search,headers:v.headers,items:v.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":n[2]||(n[2]=(f,b)=>p.selectRow(b))},{"item.actions":Et(({item:f})=>[ut(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>p.deleteConfig(f)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ut(d,{dense:""},{default:Et(()=>[ut(h,{modelValue:v.configName,"onUpdate:modelValue":n[3]||(n[3]=f=>v.configName=f),"hide-details":"",autofocus:"",disabled:!!p.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ut(d,{dense:""},{default:Et(()=>[wl(lr("span",{class:"ma-2 text-red",textContent:Zr(p.error)},null,8,RT),[[xl,p.error]])]),_:1})])]),_:1}),ut(c,{class:"px-2"},{default:Et(()=>[ut(g),ut(a,{variant:"outlined",onClick:p.cancel},{default:Et(()=>[...n[7]||(n[7]=[Ar(" Cancel ",-1)])]),_:1},8,["onClick"]),ut(a,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!p.error,onClick:js(p.success,["prevent"])},{default:Et(()=>[...n[8]||(n[8]=[Ar(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const R2=Mn("M",Po(ET,[["render",OT]])),NT=50,DT=2e3,Ry="single-spa:app-change",FT={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Ry,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},DT)},unmounted(){window.removeEventListener(Ry,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(t){this.show=!t.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=ou().length>0,ou().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},NT)}}},PT={class:"mx-1"},WT={key:1,class:"d-flex justify-center align-center"};function BT(t,n,e,r,v,p){const g=Ct("v-card-title"),w=Ct("v-card-text"),h=Ct("v-card"),d=Ct("v-progress-circular");return In(),Xr(yl,null,[v.show?(In(),ro(h,{key:0},{default:Et(()=>[ut(g,null,{default:Et(()=>[...n[0]||(n[0]=[Ar(" 404 Not Found ",-1)])]),_:1}),ut(w,{class:"d-flex align-center mt-3"},{default:Et(()=>[n[1]||(n[1]=Ar(" The requested URL ",-1)),lr("code",PT,Zr(t.$route.fullPath),1),n[2]||(n[2]=Ar(" was not routable. ",-1)),n[3]||(n[3]=lr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):vo("",!0),p.showSpinner?(In(),Xr("div",WT,[ut(d,{indeterminate:""})])):vo("",!0)],64)}const Oy=[{path:"/",name:"DataExtractor",component:()=>nt(()=>tt.import("./DataExtractor-e5f302088707d33752fd.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Po(FT,[["render",BT]])}];Oy.forEach(Ef);const zT=_f({history:Sf(),routes:Oy}),{entries:Ny,setPrototypeOf:Dy,isFrozen:jT,getPrototypeOf:HT,getOwnPropertyDescriptor:UT}=Object;let{freeze:Fr,seal:Li,create:vc}=Object,{apply:cd,construct:ud}=typeof Reflect<"u"&&Reflect;Fr||(Fr=function(t){return t}),Li||(Li=function(t){return t}),cd||(cd=function(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),v=2;v<e;v++)r[v-2]=arguments[v];return t.apply(n,r)}),ud||(ud=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new t(...e)});const yc=Wr(Array.prototype.forEach),VT=Wr(Array.prototype.lastIndexOf),Fy=Wr(Array.prototype.pop),Za=Wr(Array.prototype.push),KT=Wr(Array.prototype.splice),bc=Wr(String.prototype.toLowerCase),hd=Wr(String.prototype.toString),dd=Wr(String.prototype.match),Qa=Wr(String.prototype.replace),qT=Wr(String.prototype.indexOf),GT=Wr(String.prototype.trim),vi=Wr(Object.prototype.hasOwnProperty),Pr=Wr(RegExp.prototype.test),Ja=YT(TypeError);function Wr(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),v=1;v<e;v++)r[v-1]=arguments[v];return cd(t,n,r)}}function YT(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return ud(t,e)}}function Dt(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bc;Dy&&Dy(t,null);let r=n.length;for(;r--;){let v=n[r];if(typeof v=="string"){const p=e(v);p!==v&&(jT(n)||(n[r]=p),v=p)}t[v]=!0}return t}function XT(t){for(let n=0;n<t.length;n++)vi(t,n)||(t[n]=null);return t}function so(t){const n=vc(null);for(const[e,r]of Ny(t))vi(t,e)&&(Array.isArray(r)?n[e]=XT(r):r&&typeof r=="object"&&r.constructor===Object?n[e]=so(r):n[e]=r);return n}function el(t,n){for(;t!==null;){const r=UT(t,n);if(r){if(r.get)return Wr(r.get);if(typeof r.value=="function")return Wr(r.value)}t=HT(t)}function e(){return null}return e}const Py=Fr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fd=Fr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pd=Fr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ZT=Fr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gd=Fr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),QT=Fr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Wy=Fr(["#text"]),By=Fr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),md=Fr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zy=Fr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wc=Fr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),JT=Li(/\{\{[\w\W]*|[\w\W]*\}\}/gm),eM=Li(/<%[\w\W]*|[\w\W]*%>/gm),tM=Li(/\$\{[\w\W]*/gm),nM=Li(/^data-[\-\w.\u00B7-\uFFFF]+$/),rM=Li(/^aria-[\-\w]+$/),jy=Li(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),iM=Li(/^(?:\w+script|data):/i),oM=Li(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hy=Li(/^html$/i),sM=Li(/^[a-z][.\w]*(-[.\w]+)+$/i);var Uy=Object.freeze({__proto__:null,ARIA_ATTR:rM,ATTR_WHITESPACE:oM,CUSTOM_ELEMENT:sM,DATA_ATTR:nM,DOCTYPE_NAME:Hy,ERB_EXPR:eM,IS_ALLOWED_URI:jy,IS_SCRIPT_OR_DATA:iM,MUSTACHE_EXPR:JT,TMPLIT_EXPR:tM});const tl={element:1,text:3,progressingInstruction:7,comment:8,document:9},aM=function(){return typeof window>"u"?null:window},lM=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(e=n.getAttribute(r));const v="dompurify"+(e?"#"+e:"");try{return t.createPolicy(v,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+v+" could not be created."),null}},Vy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ky(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aM();const n=ae=>Ky(ae);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==tl.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t;const r=e,v=r.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=t,i=h.prototype,s=el(i,"cloneNode"),f=el(i,"remove"),b=el(i,"nextSibling"),x=el(i,"childNodes"),O=el(i,"parentNode");if(typeof g=="function"){const ae=e.createElement("template");ae.content&&ae.content.ownerDocument&&(e=ae.content.ownerDocument)}let T,_="";const{implementation:C,createNodeIterator:L,createDocumentFragment:F,getElementsByTagName:E}=e,{importNode:I}=r;let z=Vy();n.isSupported=typeof Ny=="function"&&typeof O=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:N,TMPLIT_EXPR:S,DATA_ATTR:k,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:q}=Uy;let{IS_ALLOWED_URI:Q}=Uy,J=null;const he=Dt({},[...Py,...fd,...pd,...gd,...Wy]);let ne=null;const ce=Dt({},[...By,...md,...zy,...wc]);let se=Object.seal(vc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const Se=Object.seal(vc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Xe=!1,qe=!0,st=!1,Je=!0,at=!1,Yt=!1,bn=!1,Pt=!1,cr=!1,ln=!1,En=!0,Un=!1;const wr="user-content-";let gt=!0,He=!1,Lt={},zt=null;const An=Dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ur=null;const nr=Dt({},["audio","video","img","source","image","track"]);let fn=null;const Nn=Dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ln="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",an="http://www.w3.org/1999/xhtml";let Tr=an,Br=!1,zr=null;const yi=Dt({},[Ln,qt,an],hd);let ni=Dt({},["mi","mo","mn","ms","mtext"]),Dn=Dt({},["annotation-xml"]);const Xi=Dt({},["title","style","font","a","script"]);let ri=null;const _s=["application/xhtml+xml","text/html"],jr="text/html";let wn=null,ii=null;const Ho=e.createElement("form"),oi=function(ae){return ae instanceof RegExp||ae instanceof Function},xn=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ii&&ii===ae)){if((!ae||typeof ae!="object")&&(ae={}),ae=so(ae),ri=_s.indexOf(ae.PARSER_MEDIA_TYPE)===-1?jr:ae.PARSER_MEDIA_TYPE,wn=ri==="application/xhtml+xml"?hd:bc,J=vi(ae,"ALLOWED_TAGS")?Dt({},ae.ALLOWED_TAGS,wn):he,ne=vi(ae,"ALLOWED_ATTR")?Dt({},ae.ALLOWED_ATTR,wn):ce,zr=vi(ae,"ALLOWED_NAMESPACES")?Dt({},ae.ALLOWED_NAMESPACES,hd):yi,fn=vi(ae,"ADD_URI_SAFE_ATTR")?Dt(so(Nn),ae.ADD_URI_SAFE_ATTR,wn):Nn,ur=vi(ae,"ADD_DATA_URI_TAGS")?Dt(so(nr),ae.ADD_DATA_URI_TAGS,wn):nr,zt=vi(ae,"FORBID_CONTENTS")?Dt({},ae.FORBID_CONTENTS,wn):An,de=vi(ae,"FORBID_TAGS")?Dt({},ae.FORBID_TAGS,wn):so({}),me=vi(ae,"FORBID_ATTR")?Dt({},ae.FORBID_ATTR,wn):so({}),Lt=vi(ae,"USE_PROFILES")?ae.USE_PROFILES:!1,Te=ae.ALLOW_ARIA_ATTR!==!1,Me=ae.ALLOW_DATA_ATTR!==!1,Xe=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=ae.SAFE_FOR_TEMPLATES||!1,Je=ae.SAFE_FOR_XML!==!1,at=ae.WHOLE_DOCUMENT||!1,Pt=ae.RETURN_DOM||!1,cr=ae.RETURN_DOM_FRAGMENT||!1,ln=ae.RETURN_TRUSTED_TYPE||!1,bn=ae.FORCE_BODY||!1,En=ae.SANITIZE_DOM!==!1,Un=ae.SANITIZE_NAMED_PROPS||!1,gt=ae.KEEP_CONTENT!==!1,He=ae.IN_PLACE||!1,Q=ae.ALLOWED_URI_REGEXP||jy,Tr=ae.NAMESPACE||an,ni=ae.MATHML_TEXT_INTEGRATION_POINTS||ni,Dn=ae.HTML_INTEGRATION_POINTS||Dn,se=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&oi(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&oi(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(Me=!1),cr&&(Pt=!0),Lt&&(J=Dt({},Wy),ne=vc(null),Lt.html===!0&&(Dt(J,Py),Dt(ne,By)),Lt.svg===!0&&(Dt(J,fd),Dt(ne,md),Dt(ne,wc)),Lt.svgFilters===!0&&(Dt(J,pd),Dt(ne,md),Dt(ne,wc)),Lt.mathMl===!0&&(Dt(J,gd),Dt(ne,zy),Dt(ne,wc))),vi(ae,"ADD_TAGS")||(Se.tagCheck=null),vi(ae,"ADD_ATTR")||(Se.attributeCheck=null),ae.ADD_TAGS&&(typeof ae.ADD_TAGS=="function"?Se.tagCheck=ae.ADD_TAGS:(J===he&&(J=so(J)),Dt(J,ae.ADD_TAGS,wn))),ae.ADD_ATTR&&(typeof ae.ADD_ATTR=="function"?Se.attributeCheck=ae.ADD_ATTR:(ne===ce&&(ne=so(ne)),Dt(ne,ae.ADD_ATTR,wn))),ae.ADD_URI_SAFE_ATTR&&Dt(fn,ae.ADD_URI_SAFE_ATTR,wn),ae.FORBID_CONTENTS&&(zt===An&&(zt=so(zt)),Dt(zt,ae.FORBID_CONTENTS,wn)),ae.ADD_FORBID_CONTENTS&&(zt===An&&(zt=so(zt)),Dt(zt,ae.ADD_FORBID_CONTENTS,wn)),gt&&(J["#text"]=!0),at&&Dt(J,["html","head","body"]),J.table&&(Dt(J,["tbody"]),delete de.tbody),ae.TRUSTED_TYPES_POLICY){if(typeof ae.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ja('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ae.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ja('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=ae.TRUSTED_TYPES_POLICY,_=T.createHTML("")}else T===void 0&&(T=lM(c,v)),T!==null&&typeof _=="string"&&(_=T.createHTML(""));Fr&&Fr(ae),ii=ae}},rr=Dt({},[...fd,...pd,...ZT]),si=Dt({},[...gd,...QT]),Cn=function(ae){let Be=O(ae);(!Be||!Be.tagName)&&(Be={namespaceURI:Tr,tagName:"template"});const Fe=bc(ae.tagName),_t=bc(Be.tagName);return zr[ae.namespaceURI]?ae.namespaceURI===qt?Be.namespaceURI===an?Fe==="svg":Be.namespaceURI===Ln?Fe==="svg"&&(_t==="annotation-xml"||ni[_t]):!!rr[Fe]:ae.namespaceURI===Ln?Be.namespaceURI===an?Fe==="math":Be.namespaceURI===qt?Fe==="math"&&Dn[_t]:!!si[Fe]:ae.namespaceURI===an?Be.namespaceURI===qt&&!Dn[_t]||Be.namespaceURI===Ln&&!ni[_t]?!1:!si[Fe]&&(Xi[Fe]||!rr[Fe]):!!(ri==="application/xhtml+xml"&&zr[ae.namespaceURI]):!1},_n=function(ae){Za(n.removed,{element:ae});try{O(ae).removeChild(ae)}catch{f(ae)}},hr=function(ae,Be){try{Za(n.removed,{attribute:Be.getAttributeNode(ae),from:Be})}catch{Za(n.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ae),ae==="is")if(Pt||cr)try{_n(Be)}catch{}else try{Be.setAttribute(ae,"")}catch{}},ai=function(ae){let Be=null,Fe=null;if(bn)ae="<remove></remove>"+ae;else{const jt=dd(ae,/^[\r\n\t ]+/);Fe=jt&&jt[0]}ri==="application/xhtml+xml"&&Tr===an&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");const _t=T?T.createHTML(ae):ae;if(Tr===an)try{Be=new u().parseFromString(_t,ri)}catch{}if(!Be||!Be.documentElement){Be=C.createDocument(Tr,"template",null);try{Be.documentElement.innerHTML=Br?_:_t}catch{}}const Gt=Be.body||Be.documentElement;return ae&&Fe&&Gt.insertBefore(e.createTextNode(Fe),Gt.childNodes[0]||null),Tr===an?E.call(Be,at?"html":"body")[0]:at?Be.documentElement:Gt},ao=function(ae){return L.call(ae.ownerDocument||ae,ae,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},lo=function(ae){return ae instanceof l&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof a)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},Uo=function(ae){return typeof w=="function"&&ae instanceof w};function Hr(ae,Be,Fe){yc(ae,_t=>{_t.call(n,Be,Fe,ii)})}const li=function(ae){let Be=null;if(Hr(z.beforeSanitizeElements,ae,null),lo(ae))return _n(ae),!0;const Fe=wn(ae.nodeName);if(Hr(z.uponSanitizeElement,ae,{tagName:Fe,allowedTags:J}),Je&&ae.hasChildNodes()&&!Uo(ae.firstElementChild)&&Pr(/<[/\w!]/g,ae.innerHTML)&&Pr(/<[/\w!]/g,ae.textContent)||ae.nodeType===tl.progressingInstruction||Je&&ae.nodeType===tl.comment&&Pr(/<[/\w]/g,ae.data))return _n(ae),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Rt(Fe)&&(se.tagNameCheck instanceof RegExp&&Pr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(gt&&!zt[Fe]){const _t=O(ae)||ae.parentNode,Gt=x(ae)||ae.childNodes;if(Gt&&_t){const jt=Gt.length;for(let fr=jt-1;fr>=0;--fr){const ir=s(Gt[fr],!0);ir.__removalCount=(ae.__removalCount||0)+1,_t.insertBefore(ir,b(ae))}}}return _n(ae),!0}return ae instanceof h&&!Cn(ae)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Pr(/<\/no(script|embed|frames)/i,ae.innerHTML)?(_n(ae),!0):(st&&ae.nodeType===tl.text&&(Be=ae.textContent,yc([P,N,S],_t=>{Be=Qa(Be,_t," ")}),ae.textContent!==Be&&(Za(n.removed,{element:ae.cloneNode()}),ae.textContent=Be)),Hr(z.afterSanitizeElements,ae,null),!1)},Mr=function(ae,Be,Fe){if(me[Be]||En&&(Be==="id"||Be==="name")&&(Fe in e||Fe in Ho))return!1;if(!(Me&&!me[Be]&&Pr(k,Be))&&!(Te&&Pr(R,Be))&&!(Se.attributeCheck instanceof Function&&Se.attributeCheck(Be,ae))){if(!ne[Be]||me[Be]){if(!(Rt(ae)&&(se.tagNameCheck instanceof RegExp&&Pr(se.tagNameCheck,ae)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ae))&&(se.attributeNameCheck instanceof RegExp&&Pr(se.attributeNameCheck,Be)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(Be,ae))||Be==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Pr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!fn[Be]&&!Pr(Q,Qa(Fe,U,""))&&!((Be==="src"||Be==="xlink:href"||Be==="href")&&ae!=="script"&&qT(Fe,"data:")===0&&ur[ae])&&!(Xe&&!Pr(B,Qa(Fe,U,"")))&&Fe)return!1}return!0},Rt=function(ae){return ae!=="annotation-xml"&&dd(ae,q)},wo=function(ae){Hr(z.beforeSanitizeAttributes,ae,null);const{attributes:Be}=ae;if(!Be||lo(ae))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let _t=Be.length;for(;_t--;){const Gt=Be[_t],{name:jt,namespaceURI:fr,value:ir}=Gt,Fn=wn(jt),pr=ir;let pn=jt==="value"?pr:GT(pr);if(Fe.attrName=Fn,Fe.attrValue=pn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Hr(z.uponSanitizeAttribute,ae,Fe),pn=Fe.attrValue,Un&&(Fn==="id"||Fn==="name")&&(hr(jt,ae),pn=wr+pn),Je&&Pr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pn)){hr(jt,ae);continue}if(Fn==="attributename"&&dd(pn,"href")){hr(jt,ae);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){hr(jt,ae);continue}if(!qe&&Pr(/\/>/i,pn)){hr(jt,ae);continue}st&&yc([P,N,S],Ir=>{pn=Qa(pn,Ir," ")});const Zi=wn(ae.nodeName);if(!Mr(Zi,Fn,pn)){hr(jt,ae);continue}if(T&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!fr)switch(c.getAttributeType(Zi,Fn)){case"TrustedHTML":{pn=T.createHTML(pn);break}case"TrustedScriptURL":{pn=T.createScriptURL(pn);break}}if(pn!==pr)try{fr?ae.setAttributeNS(fr,jt,pn):ae.setAttribute(jt,pn),lo(ae)?_n(ae):Fy(n.removed)}catch{hr(jt,ae)}}Hr(z.afterSanitizeAttributes,ae,null)},dr=function ae(Be){let Fe=null;const _t=ao(Be);for(Hr(z.beforeSanitizeShadowDOM,Be,null);Fe=_t.nextNode();)Hr(z.uponSanitizeShadowNode,Fe,null),li(Fe),wo(Fe),Fe.content instanceof p&&ae(Fe.content);Hr(z.afterSanitizeShadowDOM,Be,null)};return n.sanitize=function(ae){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,_t=null,Gt=null,jt=null;if(Br=!ae,Br&&(ae="<!-->"),typeof ae!="string"&&!Uo(ae))if(typeof ae.toString=="function"){if(ae=ae.toString(),typeof ae!="string")throw Ja("dirty is not a string, aborting")}else throw Ja("toString is not a function");if(!n.isSupported)return ae;if(Yt||xn(Be),n.removed=[],typeof ae=="string"&&(He=!1),He){if(ae.nodeName){const Fn=wn(ae.nodeName);if(!J[Fn]||de[Fn])throw Ja("root node is forbidden and cannot be sanitized in-place")}}else if(ae instanceof w)Fe=ai("<!---->"),_t=Fe.ownerDocument.importNode(ae,!0),_t.nodeType===tl.element&&_t.nodeName==="BODY"||_t.nodeName==="HTML"?Fe=_t:Fe.appendChild(_t);else{if(!Pt&&!st&&!at&&ae.indexOf("<")===-1)return T&&ln?T.createHTML(ae):ae;if(Fe=ai(ae),!Fe)return Pt?null:ln?_:""}Fe&&bn&&_n(Fe.firstChild);const fr=ao(He?ae:Fe);for(;Gt=fr.nextNode();)li(Gt),wo(Gt),Gt.content instanceof p&&dr(Gt.content);if(He)return ae;if(Pt){if(cr)for(jt=F.call(Fe.ownerDocument);Fe.firstChild;)jt.appendChild(Fe.firstChild);else jt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(jt=I.call(r,jt,!0)),jt}let ir=at?Fe.outerHTML:Fe.innerHTML;return at&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Pr(Hy,Fe.ownerDocument.doctype.name)&&(ir="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1483
|
-
`+ir),st&&yc([P,N,S],Fn=>{ir=Qa(ir,Fn," ")}),T&&ln?T.createHTML(ir):ir},n.setConfig=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xn(ae),Yt=!0},n.clearConfig=function(){ii=null,Yt=!1},n.isValidAttribute=function(ae,Be,Fe){ii||xn({});const _t=wn(ae),Gt=wn(Be);return Mr(_t,Gt,Fe)},n.addHook=function(ae,Be){typeof Be=="function"&&Za(z[ae],Be)},n.removeHook=function(ae,Be){if(Be!==void 0){const Fe=VT(z[ae],Be);return Fe===-1?void 0:KT(z[ae],Fe,1)[0]}return Fy(z[ae])},n.removeHooks=function(ae){z[ae]=[]},n.removeAllHooks=function(){z=Vy()},n}var cM=Ky();const uM={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"}},hM={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:t=>!!t||"Required.",match:t=>t===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`},sanitizedText:function(){return cM.sanitize(this.params.text)}},methods:{dialog:function(t,n,e){this.params=t,this.show=!0,this.resolve=n,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},dM=["innerHTML"],fM={key:2},pM={key:3,class:"validate mt-4"};function gM(t,n,e,r,v,p){const g=Ct("v-spacer"),w=Ct("v-toolbar"),h=Ct("v-icon"),d=Ct("v-text-field"),a=Ct("v-card-text"),l=Ct("v-btn"),u=Ct("v-card-actions"),c=Ct("v-card"),i=Ct("v-dialog"),s=Ct("v-app");return In(),ro(s,null,{default:Et(()=>[ut(i,{modelValue:t.show,"onUpdate:modelValue":n[1]||(n[1]=f=>t.show=f),persistent:"",width:"600",onKeydown:bl(p.cancel,["esc"])},{default:Et(()=>[ut(c,null,{default:Et(()=>[ut(w,{height:"24"},{default:Et(()=>[ut(g),lr("span",null,Zr(t.params.title),1),ut(g)]),_:1}),ut(a,{class:"mt-4 pa-3"},{default:Et(()=>[t.params.validateText?(In(),ro(h,{key:0,class:"mr-2"},{default:Et(()=>[...n[2]||(n[2]=[Ar(" mdi-alert ",-1)])]),_:1})):vo("",!0),t.params.html?(In(),Xr("span",{key:1,innerHTML:p.sanitizedText},null,8,dM)):(In(),Xr("span",fM,Zr(p.sanitizedText),1)),t.params.validateText?(In(),Xr("div",pM,[Ar(" Enter "+Zr(t.params.validateText)+" to confirm! ",1),ut(d,{modelValue:t.validationText,"onUpdate:modelValue":n[0]||(n[0]=f=>t.validationText=f),variant:"solo",density:"compact","single-line":"",rules:[t.rules.required,t.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):vo("",!0)]),_:1}),ut(u,{class:"px-2"},{default:Et(()=>[ut(g),t.params.cancelText?(In(),ro(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:Et(()=>[Ar(Zr(t.params.cancelText),1)]),_:1},8,["data-test","onClick"])):vo("",!0),ut(l,{variant:"flat",color:t.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:Et(()=>[Ar(Zr(t.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const mM=Po(hM,[["render",gM],["__scopeId","data-v-53691296"]]);class vM{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const n=window.Vue.createApp(mM);n.use(yd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=n.mount(e),this.mounted=!0}open({title:n,text:e,okText:r,okClass:v,validateText:p,cancelText:g,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:n,text:e,okText:r,okClass:v,validateText:p,cancelText:g,html:w},h,d)})}confirm(n,{okText:e="Ok",cancelText:r="Cancel",okClass:v="primary"}){return this.open({title:"Confirm",text:n,okText:e,okClass:v,validateText:null,cancelText:r,html:!1})}alert(n,{okText:e="Ok",html:r=!1,okClass:v="primary"}){return this.open({title:"Alert",text:n,okText:e,okClass:v,validateText:null,cancelText:null,html:r})}validate(n,{okText:e="Ok",validateText:r="CONFIRM",cancelText:v="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:n,okText:e,okClass:p,validateText:r,cancelText:v,html:!1})}}const yM={install(t,n){const e=new vM;t.provide("dialog",e),t.config.globalProperties.hasOwnProperty("$dialog")||(t.config.globalProperties.$dialog=e)}},bM={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(){return this.toastNotification.type==="notification"?"mdi-bell":"mdi-alert-box"},toastStyle:function(){return`
|
|
1484
|
-
--toast-bg-color:${ld[this.toastNotification.level]};
|
|
1485
|
-
--toast-fg-color:${kT(this.toastNotification.level)};
|
|
1486
|
-
`},contentStyle:function(){return`
|
|
1487
|
-
white-space: ${this.expanded?"normal":"nowrap"};
|
|
1488
|
-
overflow-x: ${this.expanded?"visible":"hidden"};
|
|
1489
|
-
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
|
1490
|
-
`}},methods:{toast:function(t,n){this.noToastPaths.includes(window.location.pathname)||(n===void 0&&(n=5e3),this.toastNotification=t,this.showToast=!0,this.cancelAutohide(),n&&(this.timeout=setTimeout(()=>{this.hide()},n)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},wM={key:0,class:"text-subtitle-1 mr-1 notification-text"},xM={key:1,class:"text-body-2 notification-text"},CM={key:2,class:"text-body-2 notification-text"};function kM(t,n,e,r,v,p){const g=Ct("v-icon"),w=Ct("v-spacer"),h=Ct("v-btn"),d=Ct("v-sheet"),a=Ct("v-slide-y-transition");return In(),ro(a,null,{default:Et(()=>[wl(ut(d,{style:Ca(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:Et(()=>[ut(g,{class:"mr-1 notification-text"},{default:Et(()=>[Ar(Zr(p.toastNotificationIcon),1)]),_:1}),lr("div",{class:"toast-content",style:Ca(p.contentStyle)},[t.toastNotification.title?(In(),Xr("span",wM,[t.toastNotification.body||t.toastNotification.message?(In(),Xr(yl,{key:0},[Ar(Zr(t.toastNotification.title)+": ",1)],64)):(In(),Xr(yl,{key:1},[Ar(Zr(t.toastNotification.title),1)],64))])):vo("",!0),t.toastNotification.body?(In(),Xr("span",xM,Zr(t.toastNotification.body),1)):vo("",!0),t.toastNotification.message?(In(),Xr("span",CM,Zr(t.toastNotification.message),1)):vo("",!0)],4),ut(w),ut(h,{variant:"text",class:"notification-text",onClick:js(p.hide,["stop"])},{default:Et(()=>[...n[0]||(n[0]=[Ar(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[xl,t.showToast]])]),_:1})}const AM=Po(bM,[["render",kM],["__scopeId","data-v-ef96840d"]]);class _M{constructor(n={}){this.store=null,this.mounted=!1,this.$root=null,window.$cosmosNotify?.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}getStore(){return this.store||(this.store=Ey()),this.store}mount(){if(this.mounted)return;const n=iu(AM);n.use(yd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=n.mount(e),this.mounted=!0}open({method:n,title:e,body:r,message:v,level:p,duration:g,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(v?`${p.toUpperCase()} - ${v}`:`${p.toUpperCase()} - ${e}: ${r}`),d&&this.getStore().notifyAddHistory({title:e,body:r,message:v,level:p}),this[n]({title:e,body:r,message:v,level:p,duration:g,type:w})}toast({title:n,body:e,message:r,level:v,duration:p,type:g}){this.$root.toast({title:n,body:e,message:r,level:v,type:g},p)}critical({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"critical",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}FATAL(n){this.critical(n)}ERROR(n){this.critical(n)}serious({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"serious",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}caution({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"caution",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}WARN(n){this.caution(n)}normal({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"normal",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}INFO(n){this.normal(n)}DEBUG(n){this.normal(n)}standby({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"standby",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}off({title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w}){this.open({method:"toast",level:"off",title:n,body:e,message:r,type:v,duration:p,logToConsole:g,saveToHistory:w})}}const SM={install(t,n){const e=new _M(n);t.provide("notify",e),t.config.globalProperties.hasOwnProperty("$notify")||(t.config.globalProperties.$notify=e)}};function $M(t){vf(`Vuetify: ${t}`)}function qy(t){let n;return t!==null&&typeof t=="object"&&((n=Object.getPrototypeOf(t))===Object.prototype||n===null)}function TM(t,n){const e={};for(const r of n)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Gy(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const v in t)r[v]=t[v];for(const v in n){const p=t[v],g=n[v];if(qy(p)&&qy(g)){r[v]=Gy(p,g,e);continue}if(e&&Array.isArray(p)&&Array.isArray(g)){r[v]=e(p,g);continue}r[v]=g}return r}function nl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(nl.cache.has(t))return nl.cache.get(t);const n=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return nl.cache.set(t,n),n}nl.cache=new Map;function Yy(t,n){return e=>Object.keys(t).reduce((r,v)=>{const p=typeof t[v]=="object"&&t[v]!=null&&!Array.isArray(t[v])?t[v]:{type:t[v]};return e&&v in e?r[v]={...p,default:e[v]}:r[v]=p,n&&!r[v].source&&(r[v].source=n),r},{})}function Xy(t,n){const e=Cf();if(!e)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return e}function MM(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xy("injectSelf");const{provides:e}=n;if(e&&t in e)return e[t]}const vd=Symbol.for("vuetify:defaults");function Zy(){const t=yf(vd);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function IM(t,n){return t.props&&(typeof t.props[n]<"u"||typeof t.props[nl(n)]<"u")}function EM(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zy();const r=Xy("useDefaults");if(n=n??r.type.name??r.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const v=ru(()=>e.value?.[t._as??n]),p=new Proxy(t,{get(h,d){const a=Reflect.get(h,d);if(d==="class"||d==="style")return[v.value?.[d],a].filter(c=>c!=null);if(IM(r.vnode,d))return a;const l=v.value?.[d];if(l!==void 0)return l;const u=e.value?.global?.[d];return u!==void 0?u:a}}),g=bf();wf(()=>{if(v.value){const h=Object.entries(v.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});g.value=h.length?Object.fromEntries(h):void 0}else g.value=void 0});function w(){const h=MM(vd,r);kf(vd,ru(()=>g.value?Gy(h?.value??{},g.value):h?.value))}return{props:p,provideSubDefaults:w}}function xc(t){if(t._setup=t._setup??t.setup,!t.name)return $M("The component is missing an explicit name, unable to generate default prop value"),t;if(t._setup){t.props=Yy(t.props??{},t.name)();const n=Object.keys(t.props).filter(e=>e!=="class"&&e!=="style");t.filterProps=function(e){return TM(e,n)},t.props._as=String,t.setup=function(e,r){const v=Zy();if(!v.value)return t._setup(e,r);const{props:p,provideSubDefaults:g}=EM(e,e._as??t.name,v),w=t._setup(p,r);return g(),w}}return t}function LM(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n=>(t?xc:mf)(n)}const RM=[String,Function,Object,Array],Cc=Yy({icon:{type:RM},tag:{type:[String,Object,Function],required:!0}},"icon");LM()({name:"VComponentIcon",props:Cc(),setup(t,n){let{slots:e}=n;return()=>{const r=t.icon;return ut(t.tag,null,{default:()=>[t.icon?ut(r,null,null):e.default?.()]})}}}),xc({name:"VSvgIcon",inheritAttrs:!1,props:Cc(),setup(t,n){let{attrs:e}=n;return()=>ut(t.tag,Af(e,{style:null}),{default:()=>[lr("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(r=>Array.isArray(r)?lr("path",{d:r[0],"fill-opacity":r[1]},null):lr("path",{d:r},null)):lr("path",{d:t.icon},null)])]})}}),xc({name:"VLigatureIcon",props:Cc(),setup(t){return()=>ut(t.tag,null,{default:()=>[t.icon]})}});const OM=xc({name:"VClassIcon",props:Cc(),setup(t){return()=>ut(t.tag,{class:xf(t.icon)},null)}}),NM={component:t=>zs(OM,{...t,class:"mdi"})},DM={dark:!0,colors:{primary:"#007ad0",secondary:"#4da3e0",tertiary:"#858585",surface:"#1f1f1f",background:"#161616","on-surface":"#d4d4d4","on-background":"#d4d4d4","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},FM={dark:!0,colors:{primary:"#5B52E0",secondary:"#8078F0",tertiary:"#7E8696",surface:"#24242F",background:"#1A1A24","on-surface":"#D0D4DC","on-background":"#D0D4DC","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},PM={dark:!0,colors:{primary:"#0097A7",secondary:"#26C6DA",tertiary:"#708090",surface:"#242D36",background:"#1A2027","on-surface":"#D4DCE4","on-background":"#D4DCE4","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},WM={dark:!0,colors:{primary:"#00897B",secondary:"#26A69A",tertiary:"#6E7680",surface:"#222428",background:"#181A1C","on-surface":"#D4D8DC","on-background":"#D4D8DC","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},yd=Mf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:uM,cosmosDarkCobalt:DM,cosmosDarkIndigo:FM,cosmosDarkSlate:PM,cosmosDarkEmerald:WM}},defaults:{VCheckbox:{color:"secondary"},VCheckboxBtn:{color:"secondary"},VRadio:{color:"secondary"},VRadioGroup:{color:"secondary"},VSwitch:{color:"secondary"}},icons:{defaultSet:"mdi",sets:{mdi:NM,..._T,...ST}}}),bd=q0({createApp:iu,appOptions:{render(){return zs(tw,{})},el:"#openc3-tool"},handleInstance:t=>{t.use(zT),t.use(la),t.use(yd),t.use(yM),t.use(SM)}}),N2=Mn("r",bd.bootstrap),D2=Mn("s",bd.mount),F2=Mn("u",bd.unmount)})}}));
|