openc3-cosmos-tool-tablemanager 6.0.2 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tablemanager/ArrayWidget-DzHELdHv-dabdae81af8f0091cc84.js +2 -0
- data/tools/tablemanager/ArrayplotWidget-BDvziGSm-79acd828899dd440ae2a.js +1 -0
- data/tools/tablemanager/{BarColumn-B6tCmNJm-6e3bd5a84613340f83cf.js → BarColumn-CNhS2KKq-87cc1820806e5dbc5172.js} +1 -1
- data/tools/tablemanager/BlockWidget-D0On4x3d-314ba7f82dae3cc71985.js +2 -0
- data/tools/tablemanager/{ButtonWidget-CHrHS_Bw-7e258bed80227814f4c4.js → ButtonWidget-BOYLHMt4-fbe6a30bbec61c7cdc57.js} +2 -2
- data/tools/tablemanager/CanvasWidget-CQIqiLEy-e5d63620be28c55b20af.js +1 -0
- data/tools/tablemanager/CanvasdotWidget-BVWutPMF-ec36954ed7f54c43304a.js +1 -0
- data/tools/tablemanager/{CanvasimageWidget-BrYlPQCf-3f007a5f8121e16a1220.js → CanvasimageWidget-ayu_ASKf-356c04466da427dd10f2.js} +1 -1
- data/tools/tablemanager/{CanvasimagevalueWidget-HnEOXmZy-e3931702bb21324a9e70.js → CanvasimagevalueWidget-mv319g5T-4aea1e9bc67af473502e.js} +1 -1
- data/tools/tablemanager/CanvaslabelWidget-BNjbXDb8-625f7a02dd99302ba9ce.js +1 -0
- data/tools/tablemanager/{CanvaslabelvalueWidget-0zRDJav3-7d56ac64733c3c22ccba.js → CanvaslabelvalueWidget-CrhPwTSP-388dfc06015b5fe9960e.js} +1 -1
- data/tools/tablemanager/CanvaslineWidget--HdKH6oO-5ec6911b77ac8716d713.js +1 -0
- data/tools/tablemanager/CanvaslinevalueWidget-CJsuF6RY-cf24d31a6ea3fa250ef4.js +1 -0
- data/tools/tablemanager/CheckbuttonWidget-CQ2HlgIk-407c1f711bf4050fcfe4.js +1 -0
- data/tools/tablemanager/ComboboxWidget-BxILACwz-53867a0dc0ad6adb4e6a.js +1 -0
- data/tools/tablemanager/{DateWidget-FtYD86xW-20b2f63c320e135f30be.js → DateWidget-CIkO0xqH-a4d20b7ccc685aa5f74e.js} +1 -1
- data/tools/tablemanager/{DetailsDialog-DiVcC3Fg-d59e3b33abffc4648283.js → DetailsDialog-DyGpm5TP-613b6fd2ec48183bd85e.js} +1 -1
- data/tools/tablemanager/{DynamicWidget-m9EliUR2-e16e8ea61d0e230d2095.js → DynamicWidget-gFSYxzvT-a80d2795b0e9245faf67.js} +1 -1
- data/tools/tablemanager/{FormatvalueWidget-OykwwCrw-ebb16ed57b9efe8f1422.js → FormatvalueWidget-D8-EO_3E-c9a7063540e7de2eb913.js} +1 -1
- data/tools/tablemanager/Graph-EV7oK3qM-4405429978b284f97339.js +1 -0
- data/tools/tablemanager/GraphWidget-BTNYbd21-3f3fa4a6dd7a3d0fefb1.js +1 -0
- data/tools/tablemanager/{HorizontalWidget-B7YdcFVN-d19c6bdd996c7686b7b6.js → HorizontalWidget-Bp-qtqoh-c86acc9cd7df6cc218a9.js} +1 -1
- data/tools/tablemanager/HorizontalboxWidget-CrJuGY3s-d69109230c14f6aca7c0.js +1 -0
- data/tools/tablemanager/HorizontallineWidget-CbxREBYI-b4f4d136410a114a1605.js +1 -0
- data/tools/tablemanager/{IframeWidget-0C7GYEVc-953ce762e994fcef6184.js → IframeWidget-DusiWNNj-c2f3d8f4f406419fde5f.js} +1 -1
- data/tools/tablemanager/ImageLoader-BapCB-Li-b94c90ea17e6f891c729.js +1 -0
- data/tools/tablemanager/{ImageviewerWidget-B4HbUIfR-b9ed4d9e808f27fc8330.js → ImageviewerWidget-c0gJ9VDC-7ef9db0289a4deace13c.js} +1 -1
- data/tools/tablemanager/{LabelWidget-D1JhQAzR-5a02ad14089bd8b572af.js → LabelWidget-pPgc0ve3-a67066c7e6baa0381037.js} +1 -1
- data/tools/tablemanager/{LabelledWidget-C2VGJ5OJ-75673d76fcda6c5a9439.js → LabelledWidget-CkNjby55-3e7a87ce37e20630d8aa.js} +1 -1
- data/tools/tablemanager/{LabelprogressbarWidget-DN0cAeLK-2e04b01e6f10886a8608.js → LabelprogressbarWidget-e2R2yQKw-f2755dece59cbb3c64b0.js} +1 -1
- data/tools/tablemanager/LabelsparklineWidget-D7MQ_oNw-4d1878f0a3f367a76900.js +1 -0
- data/tools/tablemanager/LabelvalueWidget-4DShBBvr-e8bea7f4ef89ddb55e67.js +1 -0
- data/tools/tablemanager/{LabelvaluedescWidget-DtJwggDu-3ab10e65d728be6cc841.js → LabelvaluedescWidget-Z1m8Bi6N-28adada3731fef3112b6.js} +1 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-DVa-oYxU-531bcfdf803c0c830324.js +1 -0
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-DduuX632-e0458233718c5fe76132.js +1 -0
- data/tools/tablemanager/{LabelvaluerangebarWidget-DCJ42bmf-a88f5a9390ddaecd30fc.js → LabelvaluerangebarWidget-BR9vXOlt-3e5ed6ee0ee30011c32b.js} +1 -1
- data/tools/tablemanager/{Layout-D4YBjuWs-2c6d7adbfe1c756c9046.js → Layout-Bk8EGxbP-65cb1fcd151dd69c1ccb.js} +1 -1
- data/tools/tablemanager/LedWidget-f7bf8ls_-2abd378793af6d4ce598.js +1 -0
- data/tools/tablemanager/{LimitsbarWidget-D-wfz_St-de60d057eeee6a03b12b.js → LimitsbarWidget-B7fHaDcJ-efef4b690669a7981f16.js} +1 -1
- data/tools/tablemanager/{LimitscolorWidget-B0AVGdkz-1aad862a92404b2ee84c.js → LimitscolorWidget-CpC4D_TC-1a1ad1b14c1fd3cb101b.js} +1 -1
- data/tools/tablemanager/{LimitscolumnWidget-Dt5ce4hN-dadfa34f2f4abb087a21.js → LimitscolumnWidget-C9FbNC-U-d0390cc0428902a734b6.js} +1 -1
- data/tools/tablemanager/LinegraphWidget-DkWDQ_3K-2a06bb6067b45e99d651.js +1 -0
- data/tools/tablemanager/{MatrixbycolumnsWidget-wLx4NvXV-5ee7512597831d8d1b06.js → MatrixbycolumnsWidget-CHJDyYa3-e72b63f725a17c272ed2.js} +1 -1
- data/tools/tablemanager/{ProgressbarWidget-B7l0BBiX-c053f5bcb9ab3c05d635.js → ProgressbarWidget-CRZDxClT-cff1c34ede06ed4cf33e.js} +1 -1
- data/tools/tablemanager/RadiobuttonWidget-BW4yFweH-3c400c98eb2db5b7f27d.js +1 -0
- data/tools/tablemanager/{RadiogroupWidget-Busjqikr-41776fe264b4e3e679f0.js → RadiogroupWidget-_0bVCHjr-3234b1007b8c5a338e21.js} +1 -1
- data/tools/tablemanager/{RangebarWidget-DbYrwEfC-587c3693c79dc661dd32.js → RangebarWidget-CEQFiG4l-bd3d92b9edd40f7c3b3e.js} +1 -1
- data/tools/tablemanager/{RollupWidget-rKxLXuCv-388d9c700576decd272e.js → RollupWidget-579c7y0R-66944c016fa25fde38fc.js} +1 -1
- data/tools/tablemanager/ScrollwindowWidget-Kcre9gM3-465f605df5a652ab46cf.js +1 -0
- data/tools/tablemanager/{SignalWidget-h-oivReC-558f40c32e9acdedfc3d.js → SignalWidget-D55Myd0q-c1fe393200ffa3abf2d7.js} +1 -1
- data/tools/tablemanager/{SpacerWidget-BSy9eOlB-3070221b7a9f104a28a6.js → SpacerWidget-DBDv_w_s-48faa2f00c83fcae2fa7.js} +1 -1
- data/tools/tablemanager/SparklineWidget-DJvIL24z-66f9ad08743c98264e1b.js +1 -0
- data/tools/tablemanager/TabbookWidget-DH9DHnp1-e26e29b61fa15bbdb3f6.js +1 -0
- data/tools/tablemanager/TableManager-b33ac3078c9a2175f7e4.js +10 -0
- data/tools/tablemanager/TextboxWidget-DCjIEzJn-25708594b4b8c16bb1cd.js +1 -0
- data/tools/tablemanager/{TextfieldWidget-aVRdXRsT-f12b1d7ac4c5be19578b.js → TextfieldWidget-BRQ6oPzR-9e1c718df5bfa6aadc86.js} +1 -1
- data/tools/tablemanager/{TimeWidget-BE2rtMxg-1010a69d8b9f8d71ba4c.js → TimeWidget-pXtrK5IC-252fc5e7b78607e008d9.js} +1 -1
- data/tools/tablemanager/TitleWidget-CfAa2SyT-bb0d98453f8ae837ba6b.js +1 -0
- data/tools/tablemanager/VWidget-CN_afCKJ-88b18672a53a6c2e31e5.js +1 -0
- data/tools/tablemanager/ValueWidget-DIFivXw_-6fe7fa26cb43e27fb221.js +1 -0
- data/tools/tablemanager/ValuelimitsbarWidget-Cb7_SIUF-9502850483983974feb9.js +1 -0
- data/tools/tablemanager/ValuelimitscolumnWidget-D8bgZ7YP-10cbd601d2530b92d481.js +1 -0
- data/tools/tablemanager/ValuerangebarWidget-VKygtFwP-534943cc3c6aa4d4936c.js +1 -0
- data/tools/tablemanager/{VerticalWidget-DziyURNu-5bf3988d5d7f8a06fd39.js → VerticalWidget-BuvedA_b-95f4badc8614449821be.js} +1 -1
- data/tools/tablemanager/VerticalboxWidget-D_LcL3GF-7350fb2c99a054ef86a2.js +1 -0
- data/tools/tablemanager/{Widget-C7ms_xDE-910457b66917432845c8.js → Widget-CERFa1CU-1d73b044b37653bffe6e.js} +1 -1
- data/tools/tablemanager/main-f6b63218eae4f1d277a8.js +1422 -0
- data/tools/tablemanager/main.js +1 -1
- metadata +69 -67
- data/tools/tablemanager/ArrayWidget-DBpEoQ1y-defa00de9eba29772989.js +0 -2
- data/tools/tablemanager/BlockWidget-Bmi0UcUW-7d26b213b9e692360e44.js +0 -2
- data/tools/tablemanager/CanvasWidget-BqdyLbQz-53bff63aee5cdd8e2f2e.js +0 -1
- data/tools/tablemanager/CanvasdotWidget-YYwca104-bee66a8a5645cd2aecff.js +0 -1
- data/tools/tablemanager/CanvaslabelWidget-BfMHNei--732bcd2f3d004a56caa2.js +0 -1
- data/tools/tablemanager/CanvaslineWidget-BmOwJP_G-d043ecee58ceaed5e80f.js +0 -1
- data/tools/tablemanager/CanvaslinevalueWidget-H3L1aUKM-974239af8526e6a4b665.js +0 -1
- data/tools/tablemanager/CheckbuttonWidget-BnT9X7wE-f20e3dab82993154cdbe.js +0 -1
- data/tools/tablemanager/ComboboxWidget-BykAAoxH-4cebd89ef403704b7697.js +0 -1
- data/tools/tablemanager/GraphWidget-BohHW-97-26890f175e5dfdb7988c.js +0 -1
- data/tools/tablemanager/HorizontalboxWidget-D-kCNwI3-bd86342bc1a98b9a504c.js +0 -1
- data/tools/tablemanager/HorizontallineWidget-BdlNB951-31bd56aeac8d326536ae.js +0 -1
- data/tools/tablemanager/ImageLoader-y6fAZe9P-588c17da3d7de5756d99.js +0 -1
- data/tools/tablemanager/LabelsparklineWidget--sxBENxs-1e029ac50a44e5a18039.js +0 -1
- data/tools/tablemanager/LabelvalueWidget-BWpP5KX6-d48890a8da391fb5df0d.js +0 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-Bj6UVK-5-2877edbfdc8f4bbb9bf8.js +0 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-BVcEEcUx-3074c3625e21ff6ab699.js +0 -1
- data/tools/tablemanager/LedWidget-hN9JHxjr-938799c2ce06b36e6fbf.js +0 -1
- data/tools/tablemanager/LinegraphWidget-CTjtvtPd-54c4afc8e8b88dbbaa38.js +0 -1
- data/tools/tablemanager/RadiobuttonWidget-B032jKIw-f4436344874d0312a611.js +0 -1
- data/tools/tablemanager/ScrollwindowWidget-D4NKIzQO-222979176381953f04f2.js +0 -1
- data/tools/tablemanager/SparklineWidget-C9vdxar--5c8138e51524c6f0996b.js +0 -1
- data/tools/tablemanager/TabbookWidget-DTFTKURm-e66691959a5841bf18ca.js +0 -1
- data/tools/tablemanager/TableManager-a0b38567a8fee7448bf2.js +0 -10
- data/tools/tablemanager/TextboxWidget-BZyYHmBq-f15897d1f5f01758e58b.js +0 -1
- data/tools/tablemanager/TitleWidget-BB29MZb2-688799572171358837b8.js +0 -1
- data/tools/tablemanager/VWidget-CGdM4sTw-29dc068d6b22630e99d3.js +0 -1
- data/tools/tablemanager/ValueWidget-h3905woQ-73f6e528d22af1d452d2.js +0 -1
- data/tools/tablemanager/ValuelimitsbarWidget-LMXYjWtS-1f7fddac8db57f410677.js +0 -1
- data/tools/tablemanager/ValuelimitscolumnWidget-gA3ZcfAT-2f37d3563e844ec09b47.js +0 -1
- data/tools/tablemanager/ValuerangebarWidget-DwZ9KQ0O-2bf9ba4040923861aef6.js +0 -1
- data/tools/tablemanager/VerticalboxWidget-OcoZBsFU-5be77cfd3237d8bce210.js +0 -1
- data/tools/tablemanager/main-4327c517441f086c9834.js +0 -1422
@@ -0,0 +1,1422 @@
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Rn,Le){"use strict";var wt,gr,pn,dt,Ve,zd,ys,bi,ws,ei,Mn,ti,Tn,Bd,Aa,$c,Ac,jd,Ud,Vd,Cc,qd,Gd,Yd,Kd,Tc,Qd,Zd,Jd,Xd,ef,tf;return{setters:[lt=>{wt=lt.resolveComponent,gr=lt.createBlock,pn=lt.openBlock,dt=lt.withCtx,Ve=lt.createVNode,zd=lt.defineAsyncComponent,ys=lt.h,bi=lt.createElementBlock,ws=lt.normalizeStyle,ei=lt.createCommentVNode,Mn=lt.createTextVNode,ti=lt.createElementVNode,Tn=lt.toDisplayString,Bd=lt.withKeys,Aa=lt.withModifiers,$c=lt.withDirectives,Ac=lt.vShow,jd=lt.defineComponent,Ud=lt.warn,Vd=lt.inject,Cc=lt.computed,qd=lt.shallowRef,Gd=lt.watchEffect,Yd=lt.getCurrentInstance,Kd=lt.provide,Tc=lt.createApp,Qd=lt.mergeProps},lt=>{Zd=lt.createRouter,Jd=lt.createWebHistory},lt=>{Xd=lt.getMountedApps},lt=>{ef=lt.createStore},lt=>{tf=lt.createVuetify}],execute:function(){Rn({$:lf,A:On,c:bC,l:Ht,y:an,z:Rh});var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nf(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function qi(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?nf(Object(e),!0).forEach(function(r){Vv(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):nf(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function Vv(n,t,e){return(t=function(r){var f=function(p,y){if(Gi(p)!=="object"||p===null)return p;var v=p[Symbol.toPrimitive];if(v!==void 0){var h=v.call(p,y);if(Gi(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}(r,"string");return Gi(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Gi(n){return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,f=String(e),p=f.length,y=-1,v="",h=f.charCodeAt(0);++y<p;)(r=f.charCodeAt(y))!=0?v+=r>=1&&r<=31||r==127||y==0&&r>=48&&r<=57||y==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":y==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(y):f.charAt(y):v+="�";return v};n.CSS||(n.CSS={}),n.CSS.escape=t})(lt);var qv={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Gv(n){if(Gi(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=qi(qi({},qv),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(Gi(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:Yv.bind(null,t,e),mount:Kv.bind(null,t,e),unmount:Zv.bind(null,t,e),update:Qv.bind(null,t,e)}}function Yv(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Kv(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,p){return typeof f.appOptions=="function"?f.appOptions(p):Promise.resolve(qi({},f.appOptions))}(n,e).then(function(f){var p;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(p=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(p=f.el).id||(p.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(p.id));else{var y="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(y)),(p=document.getElementById(y))||((p=document.createElement("div")).id=y,document.body.appendChild(p))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var v=document.createElement("div");v.className="single-spa-container",p.appendChild(v)}r.domEl=p,f.render||f.template||!n.rootComponent||(f.render=function(g){return g(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return qi(qi({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function Qv(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=qi(qi({},n.appOptions.data||{}),e),p=r.root||r.vueInstance;for(var y in f)p[y]=f[y]})}function Zv(n,t,e){return Promise.resolve().then(function(){var r=t[e.name];n.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 Jv=Rn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Xv={};function eb(n,t){const e=wt("router-view"),r=wt("v-app");return pn(),gr(r,{id:"innerapp"},{default:dt(()=>[Ve(e)]),_:1})}const tb=Jv(Xv,[["render",eb]]),mO="modulepreload",yO=function(n){return"/"+n},wO={},Ie=function(t,e,r){let f=Promise.resolve();function p(y){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=y,window.dispatchEvent(v),!v.defaultPrevented)throw y}return f.then(y=>{for(const v of y||[])v.status==="rejected"&&p(v.reason);return t().catch(p)})},rf=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tablemanager/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(rf)},Co=Rn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Ca=6e4,Ec=36e5,nb=1e3,of=Symbol.for("constructDateFrom");function an(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&of in n?n[of](t):n instanceof Date?new n.constructor(t):new Date(t)}function Ht(n,t){return an(t||n,n)}let rb={};function To(){return rb}function xi(n,t){var e,r,f,p;const y=To(),v=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??y.weekStartsOn??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,h=Ht(n,t==null?void 0:t.in),g=h.getDay(),a=(g<v?7:0)+g-v;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Eo(n,t){return xi(n,{...t,weekStartsOn:1})}function sf(n,t){const e=Ht(n,void 0),r=e.getFullYear(),f=an(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const p=Eo(f),y=an(e,0);y.setFullYear(r,0,4),y.setHours(0,0,0,0);const v=Eo(y);return e.getTime()>=p.getTime()?r+1:e.getTime()>=v.getTime()?r:r-1}function Ta(n){const t=Ht(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function ib(n,...t){const e=an.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function af(n,t){const e=Ht(n,void 0);return e.setHours(0,0,0,0),e}function ob(n,t,e){const[r,f]=ib(void 0,n,t),p=af(r),y=af(f),v=+p-Ta(p),h=+y-Ta(y);return Math.round((v-h)/864e5)}function sb(n,t){const e=sf(n),r=an(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Eo(r)}function ab(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function lf(n){return!(!ab(n)&&typeof n!="number"||isNaN(+Ht(n)))}function lb(n,t){const e=Ht(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const cb={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"}},ub=(n,t,e)=>{let r;const f=cb[n];return typeof f=="string"?r=f:t===1?r=f.one:r=f.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function Rc(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const hb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},db={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pb={date:Rc({formats:hb,defaultWidth:"full"}),time:Rc({formats:db,defaultWidth:"full"}),dateTime:Rc({formats:fb,defaultWidth:"full"})},gb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mb=(n,t,e,r)=>gb[n];function vs(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const y=n.defaultFormattingWidth||n.defaultWidth,v=e!=null&&e.width?String(e.width):y;f=n.formattingValues[v]||n.formattingValues[y]}else{const y=n.defaultWidth,v=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[v]||n.values[y]}const p=n.argumentCallback?n.argumentCallback(t):t;return f[p]}}const yb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vb={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"]},bb={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"]},xb={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"}},_b={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"}},kb=(n,t)=>{const e=Number(n),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"},Sb={ordinalNumber:kb,era:vs({values:yb,defaultWidth:"wide"}),quarter:vs({values:wb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:vs({values:vb,defaultWidth:"wide"}),day:vs({values:bb,defaultWidth:"wide"}),dayPeriod:vs({values:xb,defaultWidth:"wide",formattingValues:_b,defaultFormattingWidth:"wide"})};function bs(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],p=t.match(f);if(!p)return null;const y=p[0],v=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(v)?Ab(v,c=>c.test(y)):$b(v,c=>c.test(y));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const a=t.slice(y.length);return{value:g,rest:a}}}function $b(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Ab(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Cb(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],p=t.match(n.parsePattern);if(!p)return null;let y=n.valueCallback?n.valueCallback(p[0]):p[0];y=e.valueCallback?e.valueCallback(y):y;const v=t.slice(f.length);return{value:y,rest:v}}}const Tb=/^(\d+)(th|st|nd|rd)?/i,Eb=/\d+/i,Rb={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},Mb={any:[/^b/i,/^(a|c)/i]},Lb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ib={any:[/1/i,/2/i,/3/i,/4/i]},Ob={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},Db={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]},Nb={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},Fb={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]},Wb={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},Pb={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}},Hb={ordinalNumber:Cb({matchPattern:Tb,parsePattern:Eb,valueCallback:n=>parseInt(n,10)}),era:bs({matchPatterns:Rb,defaultMatchWidth:"wide",parsePatterns:Mb,defaultParseWidth:"any"}),quarter:bs({matchPatterns:Lb,defaultMatchWidth:"wide",parsePatterns:Ib,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bs({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Db,defaultParseWidth:"any"}),day:bs({matchPatterns:Nb,defaultMatchWidth:"wide",parsePatterns:Fb,defaultParseWidth:"any"}),dayPeriod:bs({matchPatterns:Wb,defaultMatchWidth:"any",parsePatterns:Pb,defaultParseWidth:"any"})},cf={code:"en-US",formatDistance:ub,formatLong:pb,formatRelative:mb,localize:Sb,match:Hb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zb(n,t){const e=Ht(n,void 0);return ob(e,lb(e))+1}function uf(n,t){const e=Ht(n,void 0),r=+Eo(e)-+sb(e);return Math.round(r/6048e5)+1}function Mc(n,t){var e,r,f,p;const y=Ht(n,t==null?void 0:t.in),v=y.getFullYear(),h=To(),g=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(f=h.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=an((t==null?void 0:t.in)||n,0);a.setFullYear(v+1,0,g),a.setHours(0,0,0,0);const c=xi(a,t),s=an((t==null?void 0:t.in)||n,0);s.setFullYear(v,0,g),s.setHours(0,0,0,0);const l=xi(s,t);return+y>=+c?v+1:+y>=+l?v:v-1}function Bb(n,t){var e,r,f,p;const y=To(),v=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??y.firstWeekContainsDate??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,h=Mc(n,t),g=an((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,v),g.setHours(0,0,0,0),xi(g,t)}function hf(n,t){const e=Ht(n,t==null?void 0:t.in),r=+xi(e,t)-+Bb(e,t);return Math.round(r/6048e5)+1}function At(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const _i={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return At(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):At(e+1,2)},d(n,t){return At(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return At(n.getHours()%12||12,t.length)},H(n,t){return At(n.getHours(),t.length)},m(n,t){return At(n.getMinutes(),t.length)},s(n,t){return At(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return At(f,t.length)}},Ro={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},df={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return e.ordinalNumber(f,{unit:"year"})}return _i.y(n,t)},Y:function(n,t,e,r){const f=Mc(n,r),p=f>0?f:1-f;if(t==="YY"){const y=p%100;return At(y,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):At(p,t.length)},R:function(n,t){const e=sf(n);return At(e,t.length)},u:function(n,t){const e=n.getFullYear();return At(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return At(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"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return At(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"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return _i.M(n,t);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"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return At(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"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=hf(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):At(f,t.length)},I:function(n,t,e){const r=uf(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):At(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):_i.d(n,t)},D:function(n,t,e){const r=zb(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):At(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){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"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(p);case"ee":return At(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(p);case"cc":return At(p,t.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return At(f,t.length);case"io":return e.ordinalNumber(f,{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"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){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"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=Ro.noon:r===0?f=Ro.midnight:f=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let f;switch(r>=17?f=Ro.evening:r>=12?f=Ro.afternoon:r>=4?f=Ro.morning:f=Ro.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return _i.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):_i.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):_i.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):_i.s(n,t)},S:function(n,t){return _i.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pf(r);case"XXXX":case"XX":return Yi(r);case"XXXXX":case"XXX":default:return Yi(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return pf(r);case"xxxx":case"xx":return Yi(r);case"xxxxx":case"xxx":default:return Yi(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ff(r,":");case"OOOO":default:return"GMT"+Yi(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ff(r,":");case"zzzz":default:return"GMT"+Yi(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return At(r,t.length)},T:function(n,t,e){return At(+n,t.length)}};function ff(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+At(p,2)}function pf(n,t){return n%60===0?(n>0?"-":"+")+At(Math.abs(n)/60,2):Yi(n,t)}function Yi(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=At(Math.trunc(r/60),2),p=At(r%60,2);return e+f+t+p}const gf=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},mf=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},jb=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return gf(n,t);let p;switch(r){case"P":p=t.dateTime({width:"short"});break;case"PP":p=t.dateTime({width:"medium"});break;case"PPP":p=t.dateTime({width:"long"});break;case"PPPP":default:p=t.dateTime({width:"full"});break}return p.replace("{{date}}",gf(r,t)).replace("{{time}}",mf(f,t))},Lc={p:mf,P:jb},Ub=/^D+$/,Vb=/^Y+$/,qb=["D","DD","YY","YYYY"];function yf(n){return Ub.test(n)}function wf(n){return Vb.test(n)}function Ic(n,t,e){const r=Gb(n,t,e);if(console.warn(r),qb.includes(n))throw new RangeError(r)}function Gb(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qb=/^'([^]*?)'?$/,Zb=/''/g,Jb=/[a-zA-Z]/;function Mo(n,t,e){var r,f,p,y,v,h,g,a;const c=To(),s=(e==null?void 0:e.locale)??c.locale??cf,l=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??c.firstWeekContainsDate??((y=(p=c.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(v=e==null?void 0:e.locale)==null?void 0:v.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((a=(g=c.locale)==null?void 0:g.options)==null?void 0:a.weekStartsOn)??0,u=Ht(n,e==null?void 0:e.in);if(!lf(u))throw new RangeError("Invalid time value");let m=t.match(Kb).map(b=>{const M=b[0];if(M==="p"||M==="P"){const C=Lc[M];return C(b,s.formatLong)}return b}).join("").match(Yb).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const M=b[0];if(M==="'")return{isToken:!1,value:Xb(b)};if(df[M])return{isToken:!0,value:b};if(M.match(Jb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:b}});s.localize.preprocessor&&(m=s.localize.preprocessor(u,m));const w={firstWeekContainsDate:l,weekStartsOn:o,locale:s};return m.map(b=>{if(!b.isToken)return b.value;const M=b.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&wf(M)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&yf(M))&&Ic(M,t,String(n));const C=df[M[0]];return C(u,M,s.localize,w)}).join("")}function Xb(n){const t=n.match(Qb);return t?t[1].replace(Zb,"'"):n}var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ea(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vf={exports:{}},bf;function e0(){return bf||(bf=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(a,c,s){if(typeof a!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(s=c),f.modules[a]||(f.payloads[a]=s,f.modules[a]=null)};f.modules={},f.payloads={};var p=function(a,c,s){if(typeof c=="string"){var l=h(a,c);if(l!=null)return s&&s(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],u=0,m=c.length;u<m;++u){var w=h(a,c[u]);if(w==null&&y.original)return;o.push(w)}return s&&s.apply(null,o)||!0}},y=function(a,c){var s=p("",a,c);return s==null&&y.original?y.original.apply(this,arguments):s},v=function(a,c){if(c.indexOf("!")!==-1){var s=c.split("!");return v(a,s[0])+"!"+v(a,s[1])}if(c.charAt(0)=="."){var l=a.split("/").slice(0,-1).join("/");for(c=l+"/"+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},h=function(a,c){c=v(a,c);var s=f.modules[c];if(!s){if(s=f.payloads[c],typeof s=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(w,b){return p(c,w,b)},m=s(u,l,o);l=m||o.exports,f.modules[c]=l,delete f.payloads[c]}s=f.modules[c]=l||s}return s};function g(a){var c=r;r[a]||(r[a]={}),c=r[a],(!c.define||!c.define.packaged)&&(f.original=c.define,c.define=f,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(y.original=c.require,c.require=y,c.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function p(y,v,h){Object.defineProperty(y,v,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(y,v){return v=v||0,this.lastIndexOf(y,v)===v}),String.prototype.endsWith||p(String.prototype,"endsWith",function(y,v){var h=this;(v===void 0||v>h.length)&&(v=h.length),v-=y.length;var g=h.indexOf(y,v);return g!==-1&&g===v}),String.prototype.repeat||p(String.prototype,"repeat",function(y){for(var v="",h=this;y>0;)y&1&&(v+=h),(y>>=1)&&(h+=h);return v}),String.prototype.includes||p(String.prototype,"includes",function(y,v){return this.indexOf(y,v)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(y),h=1;h<arguments.length;h++){var g=arguments[h];g!=null&&Object.keys(g).forEach(function(a){v[a]=g[a]})}return v}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(v){return y[v]})}),Array.prototype.find||p(Array.prototype,"find",function(y){for(var v=this.length,h=arguments[1],g=0;g<v;g++){var a=this[g];if(y.call(h,a,g,this))return a}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(y){for(var v=this.length,h=arguments[1],g=0;g<v;g++){var a=this[g];if(y.call(h,a,g,this))return g}}),Array.prototype.includes||p(Array.prototype,"includes",function(y,v){return this.indexOf(y,v)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(y){for(var v=this,h=v.length>>>0,g=arguments[1],a=g>>0,c=a<0?Math.max(h+a,0):Math.min(a,h),s=arguments[2],l=s===void 0?h:s>>0,o=l<0?Math.max(h+l,0):Math.min(l,h);c<o;)v[c]=y,c++;return v}),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,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function p(y){if(typeof y!="object"||!y)return y;var v;if(Array.isArray(y)){v=[];for(var h=0;h<y.length;h++)v[h]=p(y[h]);return v}if(Object.prototype.toString.call(y)!=="[object Object]")return y;v={};for(var h in y)v[h]=p(y[h]);return v}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(v){return v[v.length-1]},r.stringReverse=function(v){return v.split("").reverse().join("")},r.stringRepeat=function(v,h){for(var g="";h>0;)h&1&&(g+=v),(h>>=1)&&(v+=v);return g};var p=/^\s\s*/,y=/\s\s*$/;r.stringTrimLeft=function(v){return v.replace(p,"")},r.stringTrimRight=function(v){return v.replace(y,"")},r.copyObject=function(v){var h={};for(var g in v)h[g]=v[g];return h},r.copyArray=function(v){for(var h=[],g=0,a=v.length;g<a;g++)v[g]&&typeof v[g]=="object"?h[g]=this.copyObject(v[g]):h[g]=v[g];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(v){for(var h={},g=0;g<v.length;g++)h[v[g]]=1;return h},r.createMap=function(v){var h=Object.create(null);for(var g in v)h[g]=v[g];return h},r.arrayRemove=function(v,h){for(var g=0;g<=v.length;g++)h===v[g]&&v.splice(g,1)},r.escapeRegExp=function(v){return v.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(v){return(""+v).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(v,h){var g=[];return v.replace(h,function(a){g.push({offset:arguments[arguments.length-2],length:a.length})}),g},r.deferredCall=function(v){var h=null,g=function(){h=null,v()},a=function(c){return a.cancel(),h=setTimeout(g,c||0),a};return a.schedule=a,a.call=function(){return this.cancel(),v(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(v,h){var g=null,a=function(){g=null,v()},c=function(s){g==null&&(g=setTimeout(a,s||h))};return c.delay=function(s){g&&clearTimeout(g),g=setTimeout(a,s||h)},c.schedule=c,c.call=function(){this.cancel(),v()},c.cancel=function(){g&&clearTimeout(g),g=null},c.isPending=function(){return g},c},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(v,h,g){return g&&v.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){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:{},y=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),v=p.userAgent||"",h=p.appName||"";r.isWin=y=="win",r.isMac=y=="mac",r.isLinux=y=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=v.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(v.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(v.split(" Edge/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isAndroid=v.indexOf("Android")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!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,f){var p=e("./useragent"),y="http://www.w3.org/1999/xhtml";r.buildDom=function s(l,o,u){if(typeof l=="string"&&l){var m=document.createTextNode(l);return o&&o.appendChild(m),m}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var w=[],b=0;b<l.length;b++){var M=s(l[b],o,u);M&&w.push(M)}return w}var C=document.createElement(l[0]),k=l[1],x=1;k&&typeof k=="object"&&!Array.isArray(k)&&(x=2);for(var b=x;b<l.length;b++)s(l[b],C,u);return x==2&&Object.keys(k).forEach(function(T){var R=k[T];T==="class"?C.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||T=="value"||T[0]=="$"?C[T]=R:T==="ref"?u&&(u[R]=C):T==="style"?typeof R=="string"&&(C.style.cssText=R):R!=null&&C.setAttribute(T,R)}),o&&o.appendChild(C),C},r.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},r.createElement=function(s,l){return document.createElementNS?document.createElementNS(l||y,s):document.createElement(s)},r.removeChildren=function(s){s.innerHTML=""},r.createTextNode=function(s,l){var o=l?l.ownerDocument:document;return o.createTextNode(s)},r.createFragment=function(s){var l=s?s.ownerDocument:document;return l.createDocumentFragment()},r.hasCssClass=function(s,l){var o=(s.className+"").split(/\s+/g);return o.indexOf(l)!==-1},r.addCssClass=function(s,l){r.hasCssClass(s,l)||(s.className+=" "+l)},r.removeCssClass=function(s,l){for(var o=s.className.split(/\s+/g);;){var u=o.indexOf(l);if(u==-1)break;o.splice(u,1)}s.className=o.join(" ")},r.toggleCssClass=function(s,l){for(var o=s.className.split(/\s+/g),u=!0;;){var m=o.indexOf(l);if(m==-1)break;u=!1,o.splice(m,1)}return u&&o.push(l),s.className=o.join(" "),u},r.setCssClass=function(s,l,o){o?r.addCssClass(s,l):r.removeCssClass(s,l)},r.hasCssString=function(s,l){var o=0,u;if(l=l||document,u=l.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===s)return!0}},r.removeElementById=function(s,l){l=l||document,l.getElementById(s)&&l.getElementById(s).remove()};var v,h=[];r.useStrictCSP=function(s){v=s,s==!1?g():h||(h=[])};function g(){var s=h;h=null,s&&s.forEach(function(l){a(l[0],l[1])})}function a(s,l,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([s,l])}if(!v){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var m=u.ownerDocument||u;if(l&&r.hasCssString(l,u))return null;l&&(s+=`
|
2
|
+
/*# sourceURL=ace/css/`+l+" */");var w=r.createElement("style");w.appendChild(m.createTextNode(s)),l&&(w.id=l),u==m&&(u=r.getDocumentHead(m)),u.insertBefore(w,u.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(s,l){r.buildDom(["link",{rel:"stylesheet",href:s}],r.getDocumentHead(l))},r.scrollbarWidth=function(s){var l=r.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var o=r.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(l);var m=s&&s.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(o);var w=l.offsetWidth;u.overflow="scroll";var b=l.offsetWidth;return w===b&&(b=o.clientWidth),m.removeChild(o),w-b},r.computedStyle=function(s,l){return window.getComputedStyle(s,"")||{}},r.setStyle=function(s,l,o){s[l]!==o&&(s[l]=o)},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 c=document.createElement("div");r.HI_DPI&&c.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof c.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),c=null}r.HAS_CSS_TRANSFORMS?r.translate=function(s,l,o){s.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:r.translate=function(s,l,o){s.style.top=Math.round(o)+"px",s.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
|
3
|
+
* based on code from:
|
4
|
+
*
|
5
|
+
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
6
|
+
* Available via the MIT or new BSD license.
|
7
|
+
* see: http://github.com/jrburke/requirejs for details
|
8
|
+
*/var p=e("./dom");r.get=function(y,v){var h=new XMLHttpRequest;h.open("GET",y,!0),h.onreadystatechange=function(){h.readyState===4&&v(h.responseText)},h.send(null)},r.loadScript=function(y,v){var h=p.getDocumentHead(),g=document.createElement("script");g.src=y,h.appendChild(g),g.onload=g.onreadystatechange=function(a,c){(c||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,c||v())}},r.qualifyURL=function(y){var v=document.createElement("a");return v.href=y,v.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,r,f){r.inherits=function(p,y){p.super_=y,p.prototype=Object.create(y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(p,y){for(var v in y)p[v]=y[v];return p},r.implement=function(p,y){r.mixin(p,y)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,r,f){var p={},y=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(h,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!a.length&&!c)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=h),g.stopPropagation||(g.stopPropagation=y),g.preventDefault||(g.preventDefault=v),a=a.slice();for(var s=0;s<a.length&&(a[s](g,this),!g.propagationStopped);s++);if(c&&!g.defaultPrevented)return c(g,this)}},p._signal=function(h,g){var a=(this._eventRegistry||{})[h];if(a){a=a.slice();for(var c=0;c<a.length;c++)a[c](g,this)}},p.once=function(h,g){var a=this;if(this.on(h,function c(){a.off(h,c),g.apply(null,arguments)}),!g)return new Promise(function(c){g=c})},p.setDefaultHandler=function(h,g){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[h]){var c=a[h],s=a._disabled_[h];s||(a._disabled_[h]=s=[]),s.push(c);var l=s.indexOf(g);l!=-1&&s.splice(l,1)}a[h]=g},p.removeDefaultHandler=function(h,g){var a=this._defaultHandlers;if(a){var c=a._disabled_[h];if(a[h]==g)c&&this.setDefaultHandler(h,c.pop());else if(c){var s=c.indexOf(g);s!=-1&&c.splice(s,1)}}},p.on=p.addEventListener=function(h,g,a){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(g)==-1&&c[a?"unshift":"push"](g),g},p.off=p.removeListener=p.removeEventListener=function(h,g){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[h];if(a){var c=a.indexOf(g);c!==-1&&a.splice(c,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,f){r.reportError=function(p,y){var v=new Error(p);v.data=y,typeof console=="object"&&console.error&&console.error(v),setTimeout(function(){throw v})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,r,f){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"};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,f){"no use strict";var p=e("./oop"),y=e("./event_emitter").EventEmitter,v=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,g={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var m=this.$options;o=Object.keys(m).filter(function(w){return!m[w].hidden})}return o.forEach(function(w){u[w]=this.getOption(w)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var m=this.$options[o];if(!m)return a('misspelled option "'+o+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(o,u);m.handlesSet||(this["$"+o]=u),m&&m.set&&m.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:a('misspelled option "'+o+'"')}};function a(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var c,s,l=function(){function o(){this.$defaultOptions={},c=h,s="dollarSigns"}return o.prototype.defineOptions=function(u,m,w){return u.$options||(this.$defaultOptions[m]=u.$options={}),Object.keys(w).forEach(function(b){var M=w[b];typeof M=="string"&&(M={forwardTo:M}),M.name||(M.name=b),u.$options[M.name]=M,"initialValue"in M&&(u["$"+M.name]=M.initialValue)}),p.implement(u,g),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(m){var w=u.$options[m];"value"in w&&u.setOption(m,w.value)})},o.prototype.setDefaultValue=function(u,m,w){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][m])break;if(!this.$defaultOptions[u][m])return!1}var b=this.$defaultOptions[u]||(this.$defaultOptions[u]={});b[m]&&(b.forwardTo?this.setDefaultValue(b.forwardTo,m,w):b[m].value=w)},o.prototype.setDefaultValues=function(u,m){Object.keys(m).forEach(function(w){this.setDefaultValue(u,w,m[w])},this)},o.prototype.setMessages=function(u,m){c=u,m&&m.placeholders&&(s=m.placeholders)},o.prototype.nls=function(u,m,w){c[u]||(a("No message found for the key '"+u+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+m+"'."),c[m]||a("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var b=c[u]||c[m]||m;return w&&(s==="dollarSigns"&&(b=b.replace(/\$(\$|[\d]+)/g,function(M,C){return C=="$"?"$":w[C]})),s==="curlyBrackets"&&(b=b.replace(/\{([^\}]+)\}/g,function(M,C){return w[C]}))),b},o}();l.prototype.warn=a,l.prototype.reportError=v,p.implement(l.prototype,y),r.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,r,f){f.exports=`.ace-tm .ace_gutter {
|
9
|
+
background: #f0f0f0;
|
10
|
+
color: #333;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ace-tm .ace_print-margin {
|
14
|
+
width: 1px;
|
15
|
+
background: #e8e8e8;
|
16
|
+
}
|
17
|
+
|
18
|
+
.ace-tm .ace_fold {
|
19
|
+
background-color: #6B72E6;
|
20
|
+
}
|
21
|
+
|
22
|
+
.ace-tm {
|
23
|
+
background-color: #FFFFFF;
|
24
|
+
color: black;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ace-tm .ace_cursor {
|
28
|
+
color: black;
|
29
|
+
}
|
30
|
+
|
31
|
+
.ace-tm .ace_invisible {
|
32
|
+
color: rgb(191, 191, 191);
|
33
|
+
}
|
34
|
+
|
35
|
+
.ace-tm .ace_storage,
|
36
|
+
.ace-tm .ace_keyword {
|
37
|
+
color: blue;
|
38
|
+
}
|
39
|
+
|
40
|
+
.ace-tm .ace_constant {
|
41
|
+
color: rgb(197, 6, 11);
|
42
|
+
}
|
43
|
+
|
44
|
+
.ace-tm .ace_constant.ace_buildin {
|
45
|
+
color: rgb(88, 72, 246);
|
46
|
+
}
|
47
|
+
|
48
|
+
.ace-tm .ace_constant.ace_language {
|
49
|
+
color: rgb(88, 92, 246);
|
50
|
+
}
|
51
|
+
|
52
|
+
.ace-tm .ace_constant.ace_library {
|
53
|
+
color: rgb(6, 150, 14);
|
54
|
+
}
|
55
|
+
|
56
|
+
.ace-tm .ace_invalid {
|
57
|
+
background-color: rgba(255, 0, 0, 0.1);
|
58
|
+
color: red;
|
59
|
+
}
|
60
|
+
|
61
|
+
.ace-tm .ace_support.ace_function {
|
62
|
+
color: rgb(60, 76, 114);
|
63
|
+
}
|
64
|
+
|
65
|
+
.ace-tm .ace_support.ace_constant {
|
66
|
+
color: rgb(6, 150, 14);
|
67
|
+
}
|
68
|
+
|
69
|
+
.ace-tm .ace_support.ace_type,
|
70
|
+
.ace-tm .ace_support.ace_class {
|
71
|
+
color: rgb(109, 121, 222);
|
72
|
+
}
|
73
|
+
|
74
|
+
.ace-tm .ace_keyword.ace_operator {
|
75
|
+
color: rgb(104, 118, 135);
|
76
|
+
}
|
77
|
+
|
78
|
+
.ace-tm .ace_string {
|
79
|
+
color: rgb(3, 106, 7);
|
80
|
+
}
|
81
|
+
|
82
|
+
.ace-tm .ace_comment {
|
83
|
+
color: rgb(76, 136, 107);
|
84
|
+
}
|
85
|
+
|
86
|
+
.ace-tm .ace_comment.ace_doc {
|
87
|
+
color: rgb(0, 102, 255);
|
88
|
+
}
|
89
|
+
|
90
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
91
|
+
color: rgb(128, 159, 191);
|
92
|
+
}
|
93
|
+
|
94
|
+
.ace-tm .ace_constant.ace_numeric {
|
95
|
+
color: rgb(0, 0, 205);
|
96
|
+
}
|
97
|
+
|
98
|
+
.ace-tm .ace_variable {
|
99
|
+
color: rgb(49, 132, 149);
|
100
|
+
}
|
101
|
+
|
102
|
+
.ace-tm .ace_xml-pe {
|
103
|
+
color: rgb(104, 104, 91);
|
104
|
+
}
|
105
|
+
|
106
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
107
|
+
color: #0000A2;
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
.ace-tm .ace_heading {
|
112
|
+
color: rgb(12, 7, 255);
|
113
|
+
}
|
114
|
+
|
115
|
+
.ace-tm .ace_list {
|
116
|
+
color:rgb(185, 6, 144);
|
117
|
+
}
|
118
|
+
|
119
|
+
.ace-tm .ace_meta.ace_tag {
|
120
|
+
color:rgb(0, 22, 142);
|
121
|
+
}
|
122
|
+
|
123
|
+
.ace-tm .ace_string.ace_regex {
|
124
|
+
color: rgb(255, 0, 0)
|
125
|
+
}
|
126
|
+
|
127
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
128
|
+
background: rgb(181, 213, 255);
|
129
|
+
}
|
130
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
131
|
+
box-shadow: 0 0 3px 0px white;
|
132
|
+
}
|
133
|
+
.ace-tm .ace_marker-layer .ace_step {
|
134
|
+
background: rgb(252, 255, 0);
|
135
|
+
}
|
136
|
+
|
137
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
138
|
+
background: rgb(164, 229, 101);
|
139
|
+
}
|
140
|
+
|
141
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
142
|
+
margin: -1px 0 0 -1px;
|
143
|
+
border: 1px solid rgb(192, 192, 192);
|
144
|
+
}
|
145
|
+
|
146
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
147
|
+
background: rgba(0, 0, 0, 0.07);
|
148
|
+
}
|
149
|
+
|
150
|
+
.ace-tm .ace_gutter-active-line {
|
151
|
+
background-color : #dcdcdc;
|
152
|
+
}
|
153
|
+
|
154
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
155
|
+
background: rgb(250, 250, 255);
|
156
|
+
border: 1px solid rgb(200, 200, 250);
|
157
|
+
}
|
158
|
+
|
159
|
+
.ace-tm .ace_indent-guide {
|
160
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
161
|
+
}
|
162
|
+
|
163
|
+
.ace-tm .ace_indent-guide-active {
|
164
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
165
|
+
}
|
166
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,f){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,f){"no use strict";var p=e("./lib/lang"),y=e("./lib/net"),v=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!g.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return g[l]},r.set=function(l,o){if(g.hasOwnProperty(l))g[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&v.useStrictCSP(o)},r.all=function(){return p.copyObject(g)},r.$modes={},r.moduleUrl=function(l,o){if(g.$moduleUrls[l])return g.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var m=o=="snippets"?"/":"-",w=u[u.length-1];if(o=="worker"&&m=="-"){var b=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");w=w.replace(b,"")}(!w||w==o)&&u.length>1&&(w=u[u.length-2]);var M=g[o+"Path"];return M==null?M=g.basePath:m=="/"&&(o=m=""),M&&M.slice(-1)!="/"&&(M+="/"),M+o+m+w+this.get("suffix")},r.setModuleUrl=function(l,o){return g.$moduleUrls[l]=o};var a=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,e("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;r.setLoader=function(l){c=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,o){var u;if(Array.isArray(l))var m=l[0],w=l[1];else if(typeof l=="string")var w=l;var b=function(M){if(M&&!r.$loading[w])return o&&o(M);if(r.$loading[w]||(r.$loading[w]=[]),r.$loading[w].push(o),!(r.$loading[w].length>1)){var C=function(){a(w,function(k,x){x&&(r.$loaded[w]=x),r._emit("load.module",{name:w,module:x});var T=r.$loading[w];r.$loading[w]=null,T.forEach(function(R){R&&R(x)})})};if(!r.get("packaged"))return C();y.loadScript(r.moduleUrl(w,m),C),s()}};if(r.dynamicModules[w])r.dynamicModules[w]().then(function(M){M.default?b(M.default):b(M)});else{try{u=this.$require(w)}catch{}b(u||r.$loaded[w])}},r.$require=function(l){if(typeof f.require=="function"){var o="require";return f[o](l)}},r.setModuleLoader=function(l,o){r.dynamicModules[l]=o};var s=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),s=function(){})};r.version="1.37.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var p=e("./config");p.setLoader(function(g,a){e([g],function(c){a(null,c)})});var y=function(){return this||typeof window<"u"&&window}();f.exports=function(g){p.init=v,p.$require=e,g.require=e},v(!0);function v(g){if(!(!y||!y.document)){p.set("packaged",g||e.packaged||f.packaged||y.define&&(void 0).packaged);var a={},c="",s=document.currentScript||document._currentScript,l=s&&s.ownerDocument||document;s&&s.src&&(c=s.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=l.getElementsByTagName("script"),u=0;u<o.length;u++){var m=o[u],w=m.src||m.getAttribute("src");if(w){for(var b=m.attributes,M=0,C=b.length;M<C;M++){var k=b[M];k.name.indexOf("data-ace-")===0&&(a[h(k.name.replace(/^data-ace-/,""))]=k.value)}var x=w.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);x&&(c=x[1])}}c&&(a.base=a.base||c,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 T in a)typeof a[T]<"u"&&p.set(T,a[T])}}function h(g){return g.replace(/-(.)/g,function(a,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var p=function(){function y(v,h,g,a){this.start={row:v,column:h},this.end={row:g,column:a}}return y.prototype.isEqual=function(v){return this.start.row===v.start.row&&this.end.row===v.end.row&&this.start.column===v.start.column&&this.end.column===v.end.column},y.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(v,h){return this.compare(v,h)==0},y.prototype.compareRange=function(v){var h,g=v.end,a=v.start;return h=this.compare(g.row,g.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)},y.prototype.comparePoint=function(v){return this.compare(v.row,v.column)},y.prototype.containsRange=function(v){return this.comparePoint(v.start)==0&&this.comparePoint(v.end)==0},y.prototype.intersects=function(v){var h=this.compareRange(v);return h==-1||h==0||h==1},y.prototype.isEnd=function(v,h){return this.end.row==v&&this.end.column==h},y.prototype.isStart=function(v,h){return this.start.row==v&&this.start.column==h},y.prototype.setStart=function(v,h){typeof v=="object"?(this.start.column=v.column,this.start.row=v.row):(this.start.row=v,this.start.column=h)},y.prototype.setEnd=function(v,h){typeof v=="object"?(this.end.column=v.column,this.end.row=v.row):(this.end.row=v,this.end.column=h)},y.prototype.inside=function(v,h){return this.compare(v,h)==0?!(this.isEnd(v,h)||this.isStart(v,h)):!1},y.prototype.insideStart=function(v,h){return this.compare(v,h)==0?!this.isEnd(v,h):!1},y.prototype.insideEnd=function(v,h){return this.compare(v,h)==0?!this.isStart(v,h):!1},y.prototype.compare=function(v,h){return!this.isMultiLine()&&v===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:v<this.start.row?-1:v>this.end.row?1:this.start.row===v?h>=this.start.column?0:-1:this.end.row===v?h<=this.end.column?0:1:0},y.prototype.compareStart=function(v,h){return this.start.row==v&&this.start.column==h?-1:this.compare(v,h)},y.prototype.compareEnd=function(v,h){return this.end.row==v&&this.end.column==h?1:this.compare(v,h)},y.prototype.compareInside=function(v,h){return this.end.row==v&&this.end.column==h?1:this.start.row==v&&this.start.column==h?-1:this.compare(v,h)},y.prototype.clipRows=function(v,h){if(this.end.row>h)var g={row:h+1,column:0};else if(this.end.row<v)var g={row:v,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<v)var a={row:v,column:0};return y.fromPoints(a||this.start,g||this.end)},y.prototype.extend=function(v,h){var g=this.compare(v,h);if(g==0)return this;if(g==-1)var a={row:v,column:h};else var c={row:v,column:h};return y.fromPoints(a||this.start,c||this.end)},y.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},y.prototype.isMultiLine=function(){return this.start.row!==this.end.row},y.prototype.clone=function(){return y.fromPoints(this.start,this.end)},y.prototype.collapseRows=function(){return this.end.column==0?new y(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new y(this.start.row,0,this.end.row,0)},y.prototype.toScreenRange=function(v){var h=v.documentToScreenPosition(this.start),g=v.documentToScreenPosition(this.end);return new y(h.row,h.column,g.row,g.column)},y.prototype.moveBy=function(v,h){this.start.row+=v,this.start.column+=h,this.end.row+=v,this.end.column+=h},y}();p.fromPoints=function(y,v){return new p(y.row,y.column,v.row,v.column)},p.comparePoints=function(y,v){return y.row-v.row||y.column-v.column},r.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var p=e("./oop"),y={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:"*"}},v={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++)v["Digit"+h]=48+h,v["Numpad"+h]=96+h,y.PRINTABLE_KEYS[48+h]=""+h,y.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var g=String.fromCharCode(h+32);v["Key"+g.toUpperCase()]=h,y.PRINTABLE_KEYS[h]=g}for(var h=1;h<13;h++)v["F"+h]=111+h,y.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var c in a)v[c]=v[c+"Left"]=v[c+"Right"]=a[c];r.$codeToKeyCode=v,y.PRINTABLE_KEYS[173]="-";for(var s in y.FUNCTION_KEYS){var l=y.FUNCTION_KEYS[s].toLowerCase();y[l]=parseInt(s,10)}for(var s in y.PRINTABLE_KEYS){var l=y.PRINTABLE_KEYS[s].toLowerCase();y[l]=parseInt(s,10)}p.mixin(y,y.MODIFIER_KEYS),p.mixin(y,y.PRINTABLE_KEYS),p.mixin(y,y.FUNCTION_KEYS),y.enter=y.return,y.escape=y.esc,y.del=y.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)y.KEY_MODS[u]=o.filter(function(m){return u&y.KEY_MODS[m]}).join("-")+"-"}(),y.KEY_MODS[0]="",y.KEY_MODS[-1]="input-",p.mixin(r,y),r.default=r,r.keyCodeToString=function(o){var u=y[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var p=e("./keys"),y=e("./useragent"),v=null,h=0,g;function a(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function c(){return g==null&&a(),g}function s(M,C,k){this.elem=M,this.type=C,this.callback=k}s.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=r.addListener=function(M,C,k,x){M.addEventListener(C,k,c()),x&&x.$toDestroy.push(new s(M,C,k))},o=r.removeListener=function(M,C,k){M.removeEventListener(C,k,c())};r.stopEvent=function(M){return r.stopPropagation(M),r.preventDefault(M),!1},r.stopPropagation=function(M){M.stopPropagation&&M.stopPropagation()},r.preventDefault=function(M){M.preventDefault&&M.preventDefault()},r.getButton=function(M){return M.type=="dblclick"?0:M.type=="contextmenu"||y.isMac&&M.ctrlKey&&!M.altKey&&!M.shiftKey?2:M.button},r.capture=function(M,C,k){var x=M&&M.ownerDocument||document;function T(R){C&&C(R),k&&k(R),o(x,"mousemove",C),o(x,"mouseup",T),o(x,"dragstart",T)}return l(x,"mousemove",C),l(x,"mouseup",T),l(x,"dragstart",T),T},r.addMouseWheelListener=function(M,C,k){l(M,"wheel",function(x){var T=.15,R=x.deltaX||0,I=x.deltaY||0;switch(x.deltaMode){case x.DOM_DELTA_PIXEL:x.wheelX=R*T,x.wheelY=I*T;break;case x.DOM_DELTA_LINE:var E=15;x.wheelX=R*E,x.wheelY=I*E;break;case x.DOM_DELTA_PAGE:var N=150;x.wheelX=R*N,x.wheelY=I*N;break}C(x)},k)},r.addMultiMouseDownListener=function(M,C,k,x,T){var R=0,I,E,N,S={2:"dblclick",3:"tripleclick",4:"quadclick"};function _($){if(r.getButton($)!==0?R=0:$.detail>1?(R++,R>4&&(R=1)):R=1,y.isIE){var L=Math.abs($.clientX-I)>5||Math.abs($.clientY-E)>5;(!N||L)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},C[R-1]||600),R==1&&(I=$.clientX,E=$.clientY)}if($._clicks=R,k[x]("mousedown",$),R>4)R=0;else if(R>1)return k[x](S[R],$)}Array.isArray(M)||(M=[M]),M.forEach(function($){l($,"mousedown",_,T)})};function u(M){return 0|(M.ctrlKey?1:0)|(M.altKey?2:0)|(M.shiftKey?4:0)|(M.metaKey?8:0)}r.getModifierString=function(M){return p.KEY_MODS[u(M)]};function m(M,C,k){var x=u(C);if(!k&&C.code&&(k=p.$codeToKeyCode[C.code]||k),!y.isMac&&v){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(x|=8),v.altGr)if((3&x)!=3)v.altGr=0;else return;if(k===18||k===17){var T=C.location;if(k===17&&T===1)v[k]==1&&(h=C.timeStamp);else if(k===18&&x===3&&T===2){var R=C.timeStamp-h;R<50&&(v.altGr=!0)}}}if(k in p.MODIFIER_KEYS&&(k=-1),!(!x&&k===13&&C.location===3&&(M(C,x,-k),C.defaultPrevented))){if(y.isChromeOS&&x&8){if(M(C,x,k),C.defaultPrevented)return;x&=-9}return!x&&!(k in p.FUNCTION_KEYS)&&!(k in p.PRINTABLE_KEYS)?!1:M(C,x,k)}}r.addCommandKeyListener=function(M,C,k){var x=null;l(M,"keydown",function(T){v[T.keyCode]=(v[T.keyCode]||0)+1;var R=m(C,T,T.keyCode);return x=T.defaultPrevented,R},k),l(M,"keypress",function(T){x&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),x=null)},k),l(M,"keyup",function(T){v[T.keyCode]=null},k),v||(w(),l(window,"focus",w))};function w(){v=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!y.isOldIE){var b=1;r.nextTick=function(M,C){C=C||window;var k="zero-timeout-message-"+b++,x=function(T){T.data==k&&(r.stopPropagation(T),o(C,"message",x),M())};l(C,"message",x),C.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(M,C){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):M()},C)},r.$idleBlockId=null,r.blockIdle=function(M){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},M||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(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,f){var p;f.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,f){var p=e("../lib/event"),y=e("../config").nls,v=e("../lib/useragent"),h=e("../lib/dom"),g=e("../lib/lang"),a=e("../clipboard"),c=v.isChrome<18,s=v.isIE,l=v.isChrome>63,o=400,u=e("../lib/keys"),m=u.KEY_MODS,w=v.isIOS,b=w?/\s/:/\n/,M=v.isMobile,C;C=function(k,x){var T=h.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var R=!1,I=!1,E=!1,N=!1,S="";M||(T.style.fontSize="1px");var _=!1,$=!1,L="",O=0,F=0,H=0,j=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(j=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(x.$textInputAriaLabel&&(ce+="".concat(x.$textInputAriaLabel,", ")),x.session){var Ae=x.session.selection.cursor.row;ce+=y("text-input.aria-label","Cursor at row $0",[Ae+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",y("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),p.addListener(T,"blur",function(ce){$||(x.onBlur(ce),X=!1)},x),p.addListener(T,"focus",function(ce){if(!$){if(X=!0,v.isEdge)try{if(!document.hasFocus())return}catch{}x.onFocus(ce),v.isEdge?setTimeout(Z):Z()}},x),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:x.renderer.enableKeyboardAccessibility}),S||l||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Ae=T.getBoundingClientRect().top!=0}catch{return}var Ee=[];if(Ae)for(var je=T.parentElement;je&&je.nodeType==1;)Ee.push(je),je.setAttribute("ace_nocontext","true"),!je.parentElement&&je.getRootNode?je=je.getRootNode().host:je=je.parentElement;T.focus({preventScroll:!0}),Ae&&Ee.forEach(function(qe){qe.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},x.on("beforeEndOperation",function(){var ce=x.curOp,Ae=ce&&ce.command&&ce.command.name;if(Ae!="insertstring"){var Ee=Ae&&(ce.docChanged||ce.selectionChanged);E&&Ee&&(L=T.value="",Vt()),Z()}}),x.on("changeSelection",this.setAriaLabel);var G=function(ce,Ae){for(var Ee=Ae,je=1;je<=ce-j&&je<2*q+1;je++)Ee+=x.session.getLine(ce-je).length+1;return Ee},Z=w?function(ce){if(!(!X||R&&!ce||N)){ce||(ce="");var Ae=`
|
167
|
+
ab`+ce+`cde fg
|
168
|
+
`;Ae!=T.value&&(T.value=L=Ae);var Ee=4,je=4+(ce.length||(x.selection.isEmpty()?0:1));(O!=Ee||F!=je)&&T.setSelectionRange(Ee,je),O=Ee,F=je}}:function(){if(!(E||N)&&!(!X&&!me)){E=!0;var ce=0,Ae=0,Ee="";if(x.session){var je=x.selection,qe=je.getRange(),ut=je.cursor.row;ut===V+1?(j=V+1,V=j+2*q):ut===j-1?(V=j-1,j=V-2*q):(ut<j-1||ut>V+1)&&(j=ut>q?ut-q:0,V=ut>q?ut+q:2*q);for(var ht=[],ot=j;ot<=V;ot++)ht.push(x.session.getLine(ot));if(Ee=ht.join(`
|
169
|
+
`),ce=G(qe.start.row,qe.start.column),Ae=G(qe.end.row,qe.end.column),qe.start.row<j){var st=x.session.getLine(j-1);ce=qe.start.row<j-1?0:ce,Ae+=st.length+1,Ee=st+`
|
170
|
+
`+Ee}else if(qe.end.row>V){var et=x.session.getLine(V+1);Ae=qe.end.row>V+1?et.length:qe.end.column,Ae+=Ee.length+1,Ee=Ee+`
|
171
|
+
`+et}else M&&ut>0&&(Ee=`
|
172
|
+
`+Ee,Ae+=1,ce+=1);Ee.length>o&&(ce<o&&Ae<o?Ee=Ee.slice(0,o):(Ee=`
|
173
|
+
`,ce==Ae?ce=Ae=0:(ce=0,Ae=1)));var Pt=Ee+`
|
174
|
+
|
175
|
+
`;Pt!=L&&(T.value=L=Pt,O=F=Pt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Ae||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Ae),O=ce,F=Ae}catch{}E=!1}};this.resetSelection=Z,X&&x.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},J=function(ce){E||(R?R=!1:re(T)?(x.selectAll(),Z()):M&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,we=function(ce,Ae){if(me&&(me=!1),I)return Z(),ce&&x.onPaste(ce),I=!1,"";for(var Ee=T.selectionStart,je=T.selectionEnd,qe=O,ut=L.length-F,ht=ce,ot=ce.length-Ee,st=ce.length-je,et=0;qe>0&&L[et]==ce[et];)et++,qe--;for(ht=ht.slice(et),et=1;ut>0&&L.length-et>O-1&&L[L.length-et]==ce[ce.length-et];)et++,ut--;ot-=et-1,st-=et-1;var Pt=ht.length-et+1;if(Pt<0&&(qe=-Pt,Pt=0),ht=ht.slice(0,Pt),!Ae&&!ht&&!ot&&!qe&&!ut&&!st)return"";N=!0;var Nn=!1;return v.isAndroid&&ht==". "&&(ht=" ",Nn=!0),ht&&!qe&&!ut&&!ot&&!st||_?x.onTextInput(ht):x.onTextInput(ht,{extendLeft:qe,extendRight:ut,restoreStart:ot,restoreEnd:st}),N=!1,L=ce,O=Ee,F=je,H=st,Nn?`
|
176
|
+
`:ht},pe=function(ce){if(E)return Mt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return x.execCommand("undo");if(ce.inputType=="historyRedo")return x.execCommand("redo")}var Ae=T.value,Ee=we(Ae,!0);(Ae.length>o+100||b.test(Ee)||M&&O<1&&O==F)&&Z()},_e=function(ce,Ae,Ee){var je=ce.clipboardData||window.clipboardData;if(!(!je||c)){var qe=s||Ee?"Text":"text/plain";try{return Ae?je.setData(qe,Ae)!==!1:je.getData(qe)}catch(ut){if(!Ee)return _e(ut,Ae,!0)}}},rt=function(ce,Ae){var Ee=x.getCopyText();if(!Ee)return p.preventDefault(ce);_e(ce,Ee)?(w&&(Z(Ee),R=Ee,setTimeout(function(){R=!1},10)),Ae?x.onCut():x.onCopy(),p.preventDefault(ce)):(R=!0,T.value=Ee,T.select(),setTimeout(function(){R=!1,Z(),Ae?x.onCut():x.onCopy()}))},Dt=function(ce){rt(ce,!0)},ct=function(ce){rt(ce,!1)},ft=function(ce){var Ae=_e(ce);a.pasteCancelled()||(typeof Ae=="string"?(Ae&&x.onPaste(Ae,ce),v.isIE&&setTimeout(Z),p.preventDefault(ce)):(T.value="",I=!0))};p.addCommandKeyListener(T,function(ce,Ae,Ee){if(!E)return x.onCommandKey(ce,Ae,Ee)},x),p.addListener(T,"select",J,x),p.addListener(T,"input",pe,x),p.addListener(T,"cut",Dt,x),p.addListener(T,"copy",ct,x),p.addListener(T,"paste",ft,x),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&p.addListener(k,"keydown",function(ce){if(!(v.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:ct(ce);break;case 86:ft(ce);break;case 88:Dt(ce);break}},x);var rn=function(ce){if(!(E||!x.onCompositionStart||x.$readOnly)&&(E={},!_)){ce.data&&(E.useTextareaForIME=!1),setTimeout(Mt,0),x._signal("compositionStart"),x.on("mousedown",jr);var Ae=x.getSelectionRange();Ae.end.row=Ae.start.row,Ae.end.column=Ae.start.column,E.markerRange=Ae,E.selectionStart=O,x.onCompositionStart(E),E.useTextareaForIME?(L=T.value="",O=0,F=0):(T.msGetInputContext&&(E.context=T.msGetInputContext()),T.getInputContext&&(E.context=T.getInputContext()))}},Mt=function(){if(!(!E||!x.onCompositionUpdate||x.$readOnly)){if(_)return jr();if(E.useTextareaForIME)x.onCompositionUpdate(T.value);else{var ce=T.value;we(ce),E.markerRange&&(E.context&&(E.markerRange.start.column=E.selectionStart=E.context.compositionStartOffset),E.markerRange.end.column=E.markerRange.start.column+F-E.selectionStart+H)}}},Vt=function(ce){!x.onCompositionEnd||x.$readOnly||(E=!1,x.onCompositionEnd(),x.off("mousedown",jr),ce&&pe())};function jr(){$=!0,T.blur(),T.focus(),$=!1}var wn=g.delayedCall(Mt,50).schedule.bind(null,null);function Qt(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(E||(L=T.value),O=F=-1,Z()),wn()}p.addListener(T,"compositionstart",rn,x),p.addListener(T,"compositionupdate",Mt,x),p.addListener(T,"keyup",Qt,x),p.addListener(T,"keydown",wn,x),p.addListener(T,"compositionend",Vt,x),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),x._emit("nativecontextmenu",{target:x,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Ae){S||(S=T.style.cssText),T.style.cssText=(Ae?"z-index:100000;":"")+(v.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*x.renderer.characterWidth*.5+"px;";var Ee=x.container.getBoundingClientRect(),je=h.computedStyle(x.container),qe=Ee.top+(parseInt(je.borderTopWidth)||0),ut=Ee.left+(parseInt(Ee.borderLeftWidth)||0),ht=Ee.bottom-qe-T.clientHeight-2,ot=function(st){h.translate(T,st.clientX-ut-2,Math.min(st.clientY-qe-2,ht))};ot(ce),ce.type=="mousedown"&&(x.renderer.$isMousePressed=!0,clearTimeout(De),v.isWin&&p.capture(x.container,ot,We))},this.onContextMenuClose=We;var De;function We(){clearTimeout(De),De=setTimeout(function(){S&&(T.style.cssText=S,S=""),x.renderer.$isMousePressed=!1,x.renderer.$keepTextAreaAtCursor&&x.renderer.$moveTextAreaToCursor()},0)}var Zt=function(ce){x.textInput.onContextMenu(ce),We()};p.addListener(T,"mouseup",Zt,x),p.addListener(T,"mousedown",function(ce){ce.preventDefault(),We()},x),p.addListener(x.renderer.scroller,"contextmenu",Zt,x),p.addListener(T,"contextmenu",Zt,x),w&&He(k,x,T);function He(ce,Ae,Ee){var je=null,qe=!1;Ee.addEventListener("keydown",function(ht){je&&clearTimeout(je),qe=!0},!0),Ee.addEventListener("keyup",function(ht){je=setTimeout(function(){qe=!1},100)},!0);var ut=function(ht){if(document.activeElement===Ee&&!(qe||E||Ae.$mouseHandler.isMousePressed)&&!R){var ot=Ee.selectionStart,st=Ee.selectionEnd,et=null,Pt=0;if(ot==0?et=u.up:ot==1?et=u.home:st>F&&L[st]==`
|
177
|
+
`?et=u.end:ot<O&&L[ot-1]==" "?(et=u.left,Pt=m.option):ot<O||ot==O&&F!=O&&ot==st?et=u.left:st>F&&L.slice(0,st).split(`
|
178
|
+
`).length>2?et=u.down:st>F&&L[st-1]==" "?(et=u.right,Pt=m.option):(st>F||st==F&&F!=O&&ot==st)&&(et=u.right),ot!==st&&(Pt|=m.shift),et){var Nn=Ae.onCommandKey({},Pt,et);if(!Nn&&Ae.commands){et=u.keyCodeToString(et);var ii=Ae.commands.findKeyCommand(Pt,et);ii&&Ae.execCommand(ii)}O=ot,F=st,Z("")}}};document.addEventListener("selectionchange",ut),Ae.on("destroy",function(){document.removeEventListener("selectionchange",ut)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=C,r.$setUserAgentForTests=function(k,x){M=k,w=x}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("../lib/useragent"),y=0,v=550,h=function(){function c(s){s.$clickSelection=null;var l=s.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){s[u]=this[u]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}return c.prototype.onMouseDown=function(s){var l=s.inSelection(),o=s.getDocumentPosition();this.mousedownEvent=s;var u=this.editor,m=s.getButton();if(m!==0){var w=u.getSelectionRange(),b=w.isEmpty();(b||m==1)&&u.selection.moveToPosition(o),m==2&&(u.textInput.onContextMenu(s.domEvent),p.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(o,s.domEvent._clicks>1),s.preventDefault()},c.prototype.startSelect=function(s,l){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(s):l||o.selection.moveToPosition(s),l||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},c.prototype.select=function(){var s,l=this.editor,o=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)s=this.$clickSelection.end;else if(u==1)s=this.$clickSelection.start;else{var m=a(this.$clickSelection,o);o=m.cursor,s=m.anchor}l.selection.setSelectionAnchor(s.row,s.column)}l.selection.selectToPosition(o),l.renderer.scrollCursorIntoView()},c.prototype.extendSelectionBy=function(s){var l,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),m=o.selection[s](u.row,u.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(m.start),b=this.$clickSelection.comparePoint(m.end);if(w==-1&&b<=0)l=this.$clickSelection.end,(m.end.row!=u.row||m.end.column!=u.column)&&(u=m.start);else if(b==1&&w>=0)l=this.$clickSelection.start,(m.start.row!=u.row||m.start.column!=u.column)&&(u=m.end);else if(w==-1&&b==1)u=m.end,l=m.start;else{var M=a(this.$clickSelection,u);u=M.cursor,l=M.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var s=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(s>y||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(s){var l=s.getDocumentPosition(),o=this.editor,u=o.session,m=u.getBracketRange(l);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},c.prototype.onTripleClick=function(s){var l=s.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(s){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},c.prototype.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=s.domEvent.timeStamp,m=u-o.t,w=m?s.wheelX/m:o.vx,b=m?s.wheelY/m:o.vy;m<v&&(w=(w+o.vx)/2,b=(b+o.vy)/2);var M=Math.abs(w/b),C=!1;if(M>=1&&l.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(C=!0),M<=1&&l.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(C=!0),C)o.allowed=u;else if(u-o.allowed<v){var k=Math.abs(w)<=1.5*Math.abs(o.vx)&&Math.abs(b)<=1.5*Math.abs(o.vy);k?(C=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=w,o.vy=b,C)return l.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}},c}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function g(c,s,l,o){return Math.sqrt(Math.pow(l-c,2)+Math.pow(o-s,2))}function a(c,s){if(c.start.row==c.end.row)var l=2*s.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var l=s.column-4;else var l=2*s.row-c.start.row-c.end.row;return l<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(p){p.stopPropagation();var y=p.currentTarget,v=y.scrollHeight>y.clientHeight;v||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var p=this&&this.__extends||function(){var u=function(m,w){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,M){b.__proto__=M}||function(b,M){for(var C in M)Object.prototype.hasOwnProperty.call(M,C)&&(b[C]=M[C])},u(m,w)};return function(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");u(m,w);function b(){this.constructor=m}m.prototype=w===null?Object.create(w):(b.prototype=w.prototype,new b)}}(),y=this&&this.__values||function(u){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&u[m],b=0;if(w)return w.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&b>=u.length&&(u=void 0),{value:u&&u[b++],done:!u}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,a="ace_tooltip",c=function(){function u(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return u.prototype.$init=function(){return this.$element=v.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(m){this.getElement().textContent=m},u.prototype.setHtml=function(m){this.getElement().innerHTML=m},u.prototype.setPosition=function(m,w){this.getElement().style.left=m+"px",this.getElement().style.top=w+"px"},u.prototype.setClassName=function(m){v.addCssClass(this.getElement(),m)},u.prototype.setTheme=function(m){this.$element.className=a+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},u.prototype.show=function(m,w,b){m!=null&&this.setText(m),w!=null&&b!=null&&this.setPosition(w,b),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),s=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},u.prototype.removePopup=function(m){var w=this.popups.indexOf(m);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},u.prototype.updatePopups=function(){var m,w,b,M;this.popups.sort(function(S,_){return _.priority-S.priority});var C=[];try{for(var k=y(this.popups),x=k.next();!x.done;x=k.next()){var T=x.value,R=!0;try{for(var I=(b=void 0,y(C)),E=I.next();!E.done;E=I.next()){var N=E.value;if(this.doPopupsOverlap(N,T)){R=!1;break}}}catch(S){b={error:S}}finally{try{E&&!E.done&&(M=I.return)&&M.call(I)}finally{if(b)throw b.error}}R?C.push(T):T.hide()}}catch(S){m={error:S}}finally{try{x&&!x.done&&(w=k.return)&&w.call(k)}finally{if(m)throw m.error}}},u.prototype.doPopupsOverlap=function(m,w){var b=m.getElement().getBoundingClientRect(),M=w.getElement().getBoundingClientRect();return b.left<M.right&&b.right>M.left&&b.top<M.bottom&&b.bottom>M.top},u}(),l=new s;r.popupManager=l,r.Tooltip=c;var o=function(u){p(m,u);function m(w){w===void 0&&(w=document.body);var b=u.call(this,w)||this;b.timeout=void 0,b.lastT=0,b.idleTime=350,b.lastEvent=void 0,b.onMouseOut=b.onMouseOut.bind(b),b.onMouseMove=b.onMouseMove.bind(b),b.waitForHover=b.waitForHover.bind(b),b.hide=b.hide.bind(b);var M=b.getElement();return M.style.whiteSpace="pre-wrap",M.style.pointerEvents="auto",M.addEventListener("mouseout",b.onMouseOut),M.tabIndex=-1,M.addEventListener("blur",(function(){M.contains(document.activeElement)||this.hide()}).bind(b)),M.addEventListener("wheel",g),b}return m.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide),w.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide),w.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(w,b){this.lastEvent=w,this.lastT=Date.now();var M=b.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||M||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||M||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(w){var b=w.editor,M=w.getDocumentPosition(),C=b.session.getLine(M.row);if(M.column==C.length){var k=b.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),x=b.session.documentToScreenPosition(M.row,M.column);if(x.column!=k.column||x.row!=k.row)return!0}return!1},m.prototype.setDataProvider=function(w){this.$gatherData=w},m.prototype.showForRange=function(w,b,M,C){var k=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var x=w.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(x.theme)),this.isOpen=!0,this.addMarker(b,w.session),this.range=h.fromPoints(b.start,b.end);var T=x.textToScreenCoordinates(b.start.row,b.start.column),R=x.scroller.getBoundingClientRect();T.pageX<R.left&&(T.pageX=R.left);var I=this.getElement();I.innerHTML="",I.appendChild(M),I.style.maxHeight="",I.style.display="block";var E=I.clientHeight,N=I.clientWidth,S=window.innerHeight-T.pageY-x.lineHeight,_=!0;T.pageY-E<0&&T.pageY<S&&(_=!1),I.style.maxHeight=(_?T.pageY:S)-k+"px",I.style.top=_?"":T.pageY+x.lineHeight+"px",I.style.bottom=_?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-N-k)+"px"}},m.prototype.addMarker=function(w,b){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=b,this.marker=b&&b.addMarker(w,"ace_highlight-marker","text")},m.prototype.hide=function(w){!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},m}(c);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,r,f){var p=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var b in w)Object.prototype.hasOwnProperty.call(w,b)&&(m[b]=w[b])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function m(){this.constructor=o}o.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}(),y=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],m=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&m>=l.length&&(l=void 0),{value:l&&l[m++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,a=e("../config").nls;e("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,m=new s(o);l.editor.setDefaultHandler("guttermousedown",function(x){if(!(!o.isFocused()||x.getButton()!=0)){var T=u.getRegion(x);if(T!="foldWidgets"){var R=x.getDocumentPosition().row,I=o.session.selection;if(x.getShiftKey())I.selectTo(R,0);else{if(x.domEvent.detail==2)return o.selectAll(),x.preventDefault();l.$clickSelection=o.selection.getLineRange(R)}return l.setState("selectByLines"),l.captureMouse(x),x.preventDefault()}}});var w,b;function M(){var x=b.getDocumentPosition().row,T=o.session.getLength();if(x==T){var R=o.renderer.pixelToScreenCoordinates(0,b.y).row,I=b.$pos;if(R>o.session.documentToScreenRow(I.row,I.column))return C()}if(m.showTooltip(x),!!m.isOpen)if(o.on("mousewheel",C),l.$tooltipFollowsMouse)k(b);else{var E=b.getGutterRow(),N=u.$lines.get(E);if(N){var S=N.element.querySelector(".ace_gutter_annotation"),_=S.getBoundingClientRect(),$=m.getElement().style;$.left=_.right+"px",$.top=_.bottom+"px"}else k(b)}}function C(){w&&(w=clearTimeout(w)),m.isOpen&&(m.hideTooltip(),o.off("mousewheel",C))}function k(x){m.setPosition(x.x,x.y)}l.editor.setDefaultHandler("guttermousemove",function(x){var T=x.domEvent.target||x.domEvent.srcElement;if(v.hasCssClass(T,"ace_fold-widget"))return C();m.isOpen&&l.$tooltipFollowsMouse&&k(x),b=x,!w&&(w=setTimeout(function(){w=null,b&&!l.isMousePressed?M():C()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(x){b=null,!(!m.isOpen||w)&&(w=setTimeout(function(){w=null,C()},50))},o),o.on("changeSession",C),o.on("input",C)}r.GutterHandler=c;var s=function(l){p(o,l);function o(u){var m=l.call(this,u.container)||this;return m.editor=u,m.visibleTooltipRow,m}return o.prototype.setPosition=function(u,m){var w=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,M=this.getWidth(),C=this.getHeight();u+=15,m+=15,u+M>w&&(u-=u+M-w),m+C>b&&(m-=20+C),g.prototype.setPosition.call(this,u,m)},Object.defineProperty(o,"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}),o.prototype.showTooltip=function(u){var m,w=this.editor.renderer.$gutterLayer,b=w.$annotations[u],M;b?M={displayText:Array.from(b.displayText),type:Array.from(b.type)}:M={displayText:[],type:[]};var C=w.session.getFoldLine(u);if(C&&w.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},x={error:1,security:2,warning:3,info:4,hint:5},T,R=u+1;R<=C.end.row;R++)if(w.$annotations[R])for(var I=0;I<w.$annotations[R].text.length;I++){var E=w.$annotations[R].type[I];k[E].push(w.$annotations[R].text[I]),(!T||x[E]<x[T])&&(T=E)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");M.displayText.push(N),M.type.push(T+"_fold")}}if(M.displayText.length===0)return this.hideTooltip();for(var S={error:[],security:[],warning:[],info:[],hint:[]},_=w.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<M.displayText.length;R++){var $=v.createElement("span"),L=v.createElement("span");(m=L.classList).add.apply(m,["ace_".concat(M.type[R]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[M.type[R].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(v.createTextNode(" ")),$.appendChild(L),$.appendChild(v.createTextNode(M.displayText[R])),$.appendChild(v.createElement("br")),S[M.type[R].replace("_fold","")].push($)}var O=this.getElement();v.removeChildren(O),S.error.forEach(function(F){return O.appendChild(F)}),S.security.forEach(function(F){return O.appendChild(F)}),S.warning.forEach(function(F){return O.appendChild(F)}),S.info.forEach(function(F){return O.appendChild(F)}),S.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=u,this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},o.annotationsToSummaryString=function(u){var m,w,b=[],M=["error","security","warning","info","hint"];try{for(var C=y(M),k=C.next();!k.done;k=C.next()){var x=k.value;if(u[x].length){var T=u[x].length===1?o.annotationLabels[x].singular:o.annotationLabels[x].plural;b.push("".concat(u[x].length," ").concat(T))}}}catch(R){m={error:R}}finally{try{k&&!k.done&&(w=C.return)&&w.call(C)}finally{if(m)throw m.error}}return b.join(", ")},o}(g);r.GutterTooltip=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),v=function(){function h(g,a){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=a,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){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 g=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(g,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-c},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,a=g.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=a.contains(c.row,c.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 y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=v}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/event"),v=e("../lib/useragent"),h=200,g=200,a=5;function c(l){var o=l.editor,u=p.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var w=o.container,b,M,C,k,x,T,R=0,I,E,N,S,_;this.onDragStart=function(G){if(this.cancelDrag||!w.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}x=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),re.setDragImage&&re.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),re.clearData(),re.setData("Text",o.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(G){if(w.draggable=!1,E=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!I&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return M=G.clientX,C=G.clientY,b||F(),R++,G.dataTransfer.dropEffect=I=X(G),y.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return M=G.clientX,C=G.clientY,b||(F(),R++),j!==null&&(j=null),G.dataTransfer.dropEffect=I=X(G),y.preventDefault(G)},this.onDragLeave=function(G){if(R--,R<=0&&b)return H(),I=null,y.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(E)switch(I){case"move":x.contains(T.row,T.column)?x={start:T,end:T}:x=o.moveText(x,T);break;case"copy":x=o.moveText(x,T,!0);break}else{var re=Z.getData("Text");x={start:T,end:o.session.insert(T,re)},o.focus(),I=null}return H(),y.preventDefault(G)}},y.addListener(w,"dragstart",this.onDragStart.bind(l),o),y.addListener(w,"dragend",this.onDragEnd.bind(l),o),y.addListener(w,"dragenter",this.onDragEnter.bind(l),o),y.addListener(w,"dragover",this.onDragOver.bind(l),o),y.addListener(w,"dragleave",this.onDragLeave.bind(l),o),y.addListener(w,"drop",this.onDrop.bind(l),o);function $(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!S||J||ae)o.moveCursorToPosition(G),S=re,_={x:M,y:C};else{var me=s(_.x,_.y,M,C);me>a?S=null:re-S>=g&&(o.renderer.scrollCursorIntoView(),S=null)}}function L(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),we={x:{left:M-me.left,right:me.right-M},y:{top:C-me.top,bottom:me.bottom-C}},pe=Math.min(we.x.left,we.x.right),_e=Math.min(we.y.top,we.y.bottom),rt={row:G.row,column:G.column};pe/ae<=2&&(rt.column+=we.x.left<we.x.right?-3:2),_e/J<=1&&(rt.row+=we.y.top<we.y.bottom?-1:1);var Dt=G.row!=rt.row,ct=G.column!=rt.column,ft=!Z||G.row!=Z.row;Dt||ct&&!ft?N?re-N>=h&&o.renderer.scrollCursorIntoView(rt):N=re:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(M,C),$(T,G),L(T,G)}function F(){x=o.selection.toOrientedRange(),b=o.session.addMarker(x,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),R=0,y.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(b),b=null,o.selection.fromOrientedRange(x),o.isFocused()&&!E&&o.$resetCursorStyle(),x=null,T=null,R=0,N=null,S=null,y.removeListener(document,"mousemove",V)}var j=null;function V(){j==null&&(j=setTimeout(function(){j!=null&&b&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=v.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":re.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var u=v.isWin?"default":"move";l.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(l){var o=this.editor.container;if(v.isIE&&this.state=="dragReady"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,u=l.inSelection(),m=l.getButton(),w=l.domEvent.detail||1;if(w===1&&m===0&&u){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),o.getDragDelay()){if(v.isWebKit){this.cancelDrag=!0;var M=o.container;M.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(c.prototype);function s(l,o,u,m){return Math.sqrt(Math.pow(u-l,2)+Math.pow(m-o,2))}r.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var p=e("./mouse_event").MouseEvent,y=e("../lib/event"),v=e("../lib/dom");r.addTouchListeners=function(h,g){var a="scroll",c,s,l,o,u,m,w=0,b,M=0,C=0,k=0,x,T;function R(){var $=window.navigator&&window.navigator.clipboard,L=!1,O=function(){var j=g.getCopyText(),V=g.session.getUndoManager().hasUndo();T.replaceChild(v.buildDom(L?["span",!j&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],j&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],j&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(j){return g.commands.canExecute(j,g)},H=function(j){var V=j.target.getAttribute("action");if(V=="more"||!L)return L=!L,O();V=="paste"?$.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&($?$.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),T.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&g.focus()};T=v.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(j){a="menu",j.stopPropagation(),j.preventDefault(),g.textInput.focus()},ontouchend:function(j){j.stopPropagation(),j.preventDefault(),H(j)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function I(){if(!g.getOption("enableMobileMenu")){T&&E();return}T||R();var $=g.selection.cursor,L=g.renderer.textToScreenCoordinates($.row,$.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,H=g.container.getBoundingClientRect();T.style.top=L.pageY-H.top-3+"px",L.pageX-H.left<H.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-H.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",E)}function E($){T&&(T.style.display="none"),g.off("input",E)}function N(){u=null,clearTimeout(u);var $=g.selection.getRange(),L=$.contains(b.row,b.column);($.isEmpty()||!L)&&(g.selection.moveToPosition(b),g.selection.selectWord()),a="wait",I()}function S(){u=null,clearTimeout(u),g.selection.moveToPosition(b);var $=M>=2?g.selection.getLineRange(b.row):g.session.getBracketRange(b);$&&!$.isEmpty()?g.selection.setRange($):g.selection.selectWord(),a="wait"}y.addListener(h,"contextmenu",function($){if(x){var L=g.textInput.getElement();L.focus()}},g),y.addListener(h,"touchstart",function($){var L=$.touches;if(u||L.length>1){clearTimeout(u),u=null,l=-1,a="zoom";return}x=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,H=$.timeStamp;o=H;var j=L[0],V=j.clientX,q=j.clientY;Math.abs(c-V)+Math.abs(s-q)>O&&(l=-1),c=$.clientX=V,s=$.clientY=q,C=k=0;var X=new p($,g);if(b=X.getDocumentPosition(),H-l<500&&L.length==1&&!w)M++,$.preventDefault(),$.button=0,S();else{M=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,re=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,we=g.renderer.scrollLeft,pe=function(Dt,ct){return Dt=Dt/F,ct=ct/O-.75,Dt*Dt+ct*ct};if($.clientX<ae.left){a="zoom";return}var _e=pe($.clientX-ae.left-re.left+we,$.clientY-ae.top-re.top+me),rt=pe($.clientX-ae.left-J.left+we,$.clientY-ae.top-J.top+me);_e<3.5&&rt<3.5&&(a=_e>rt?"cursor":"anchor"),rt<3.5?a="anchor":_e<3.5?a="cursor":a="scroll",u=setTimeout(N,450)}l=H},g),y.addListener(h,"touchend",function($){x=g.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),a=="zoom"?(a="",w=0):u?(g.selection.moveToPosition(b),w=0,I()):a=="scroll"?(_(),E()):I(),clearTimeout(u),u=null},g),y.addListener(h,"touchmove",function($){u&&(clearTimeout(u),u=null);var L=$.touches;if(!(L.length>1||a=="zoom")){var O=L[0],F=c-O.clientX,H=s-O.clientY;if(a=="wait")if(F*F+H*H>4)a="cursor";else return $.preventDefault();c=O.clientX,s=O.clientY,$.clientX=O.clientX,$.clientY=O.clientY;var j=$.timeStamp,V=j-o;if(o=j,a=="scroll"){var q=new p($,g);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(C=F/V,k=H/V),g._emit("mousewheel",q),q.propagationStopped||(C=k=0)}else{var X=new p($,g),G=X.getDocumentPosition();a=="cursor"?g.selection.moveCursorToPosition(G):a=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),$.preventDefault()}}},g);function _(){w+=60,m=setInterval(function(){w--<=0&&(clearInterval(m),m=null),Math.abs(C)<.01&&(C=0),Math.abs(k)<.01&&(k=0),w<20&&(C=.9*C),w<20&&(k=.9*k);var $=g.session.getScrollTop();g.renderer.scrollBy(10*C,10*k),$==g.session.getScrollTop()&&(w=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,f){var p=e("../lib/event"),y=e("../lib/useragent"),v=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,s=e("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=u,new v(this),new h(this),new a(this);var w=function(C){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},b=u.renderer.getMouseEventTarget();p.addListener(b,"click",this.onMouseEvent.bind(this,"click"),u),p.addListener(b,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),p.addMultiMouseDownListener([b,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),p.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var M=u.renderer.$gutter;p.addListener(M,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),p.addListener(M,"click",this.onMouseEvent.bind(this,"gutterclick"),u),p.addListener(M,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),p.addListener(M,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),p.addListener(b,"mousedown",w,u),p.addListener(M,"mousedown",w,u),y.isIE&&u.renderer.scrollBarV&&(p.addListener(u.renderer.scrollBarV.element,"mousedown",w,u),p.addListener(u.renderer.scrollBarH.element,"mousedown",w,u)),u.on("mousemove",function(C){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(C.x,C.y),x=u.session.selection.getRange(),T=u.renderer;!x.isEmpty()&&x.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,m){this.editor.session&&this.editor._emit(u,new g(m,this.editor))},o.prototype.onMouseMove=function(u,m){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(u,new g(m,this.editor))},o.prototype.onMouseWheel=function(u,m){var w=new g(m,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=m.wheelX,w.wheelY=m.wheelY,this.editor._emit(u,w)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,m){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var w=this.editor,b=this.editor.renderer;b.$isMousePressed=!0;var M=this,C=function(I){if(I){if(y.isWebKit&&!I.which&&M.releaseMouse)return M.releaseMouse();M.x=I.clientX,M.y=I.clientY,m&&m(I),M.mouseEvent=new g(I,M.editor),M.$mouseMoved=!0}},k=function(I){w.off("beforeEndOperation",T),clearInterval(R),w.session&&x(),M[M.state+"End"]&&M[M.state+"End"](I),M.state="",M.isMousePressed=b.$isMousePressed=!1,b.$keepTextAreaAtCursor&&b.$moveTextAreaToCursor(),M.$onCaptureMouseMove=M.releaseMouse=null,I&&M.onMouseEvent("mouseup",I),w.endOperation()},x=function(){M[M.state]&&M[M.state](),M.$mouseMoved=!1};if(y.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var T=function(I){M.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(M[M.state+"End"]&&M[M.state+"End"](),M.state="",M.releaseMouse())};w.on("beforeEndOperation",T),w.startOperation({command:{name:"mouse"}}),M.$onCaptureMouseMove=C,M.releaseMouse=p.capture(this.editor.container,C,k);var R=setInterval(x,20)},o.prototype.cancelContextMenu=function(){var u=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),m&&m.domEvent&&p.stopEvent(m.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,s.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function v(h){h.on("click",function(g){var a=g.getDocumentPosition(),c=h.session,s=c.getFoldAt(a.row,a.column,1);s&&(g.getAccelKey()?c.removeFold(s):c.expandFold(s),g.stop());var l=g.domEvent&&g.domEvent.target;l&&p.hasCssClass(l,"ace_inline_button")&&p.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var a=h.renderer.$gutterLayer.getRegion(g);if(a=="foldWidgets"){var c=g.getDocumentPosition().row,s=h.session;s.foldWidgets&&s.foldWidgets[c]&&h.session.onFoldWidgetClick(c,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var a=h.renderer.$gutterLayer.getRegion(g);if(a=="foldWidgets"){var c=g.getDocumentPosition().row,s=h.session,l=s.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var u=s.getFoldAt(c,s.getLine(c).length,1);u?s.removeFold(u):(s.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return v}();r.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var p=e("../lib/keys"),y=e("../lib/event"),v=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var a=this.$handlers;if(a[a.length-1]!=g){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,a){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var c=this.$handlers.indexOf(g);c!=-1&&this.$handlers.splice(c,1),a==null?this.$handlers.push(g):this.$handlers.splice(a,0,g),c==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var a=this.$handlers.indexOf(g);return a==-1?!1:(this.$handlers.splice(a,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,a=g.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(a,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,a,c,s){for(var l,o=!1,u=this.$editor.commands,m=this.$handlers.length;m--&&(l=this.$handlers[m].handleKeyboard(this.$data,g,a,c,s),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,s),o&&s&&g!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&y.stopEvent(s),o))););return!o&&g==-1&&(l={command:"insertstring"},o=u.exec("insertstring",this.$editor,a)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},h.prototype.onCommandKey=function(g,a,c){var s=p.keyCodeToString(c);return this.$callKeyboardHandlers(a,s,c,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();r.KeyBinding=v}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var p=0,y=0,v=!1,h=!1,g=!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]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],s=0,l=1,o=0,u=1,m=2,w=3,b=4,M=5,C=6,k=7,x=8,T=9,R=10,I=11,E=12,N=13,S=14,_=15,$=16,L=17,O=18,F=[O,O,O,O,O,O,O,O,O,C,M,C,x,M,O,O,O,O,O,O,O,O,O,O,O,O,O,O,M,M,M,C,x,b,b,I,I,I,b,b,b,b,b,R,T,R,T,T,m,m,m,m,m,m,m,m,m,m,T,b,b,b,b,b,b,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,b,b,b,b,b,b,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,b,b,b,b,O,O,O,O,O,O,M,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,b,I,I,I,I,b,b,b,b,o,b,b,O,b,b,I,I,m,m,b,o,b,b,b,m,o,b,b,b,b,b],H=[x,x,x,x,x,x,x,x,x,x,x,O,O,O,o,u,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x,M,N,S,_,$,L,T,I,I,I,I,I,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,T,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x];function j(G,Z,re,J){var ae=p?c:a,me=null,we=null,pe=null,_e=0,rt=null,Dt=null,ct=-1,ft=null,rn=null,Mt=[];if(!J)for(ft=0,J=[];ft<re;ft++)J[ft]=X(G[ft]);for(y=p,v=!1,h=!1,g=!1,rn=0;rn<re;rn++){if(me=_e,Mt[rn]=we=q(G,J,Mt,rn),_e=ae[me][we],rt=_e&240,_e&=15,Z[rn]=pe=ae[_e][5],rt>0)if(rt==16){for(ft=ct;ft<rn;ft++)Z[ft]=1;ct=-1}else ct=-1;if(Dt=ae[_e][6],Dt)ct==-1&&(ct=rn);else if(ct>-1){for(ft=ct;ft<rn;ft++)Z[ft]=pe;ct=-1}J[rn]==M&&(Z[rn]=0),y|=pe}if(g){for(ft=0;ft<re;ft++)if(J[ft]==C){Z[ft]=p;for(var Vt=ft-1;Vt>=0&&J[Vt]==x;Vt--)Z[Vt]=p}}}function V(G,Z,re){if(!(y<G)){if(G==1&&p==l&&!h){re.reverse();return}for(var J=re.length,ae=0,me,we,pe,_e;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(we=ae,pe=me-1;we<pe;we++,pe--)_e=re[we],re[we]=re[pe],re[pe]=_e;ae=me}ae++}}}function q(G,Z,re,J){var ae=Z[J],me,we,pe,_e;switch(ae){case o:case u:v=!1;case b:case w:return ae;case m:return v?w:m;case k:return v=!0,u;case x:return b;case T:return J<1||J+1>=Z.length||(me=re[J-1])!=m&&me!=w||(we=Z[J+1])!=m&&we!=w?b:(v&&(we=w),we==me?we:b);case R:return me=J>0?re[J-1]:M,me==m&&J+1<Z.length&&Z[J+1]==m?m:b;case I:if(J>0&&re[J-1]==m)return m;if(v)return b;for(_e=J+1,pe=Z.length;_e<pe&&Z[_e]==I;)_e++;return _e<pe&&Z[_e]==m?m:b;case E:for(pe=Z.length,_e=J+1;_e<pe&&Z[_e]==E;)_e++;if(_e<pe){var rt=G[J],Dt=rt>=1425&&rt<=2303||rt==64286;if(me=Z[_e],Dt&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==M?b:re[J-1];case M:return v=!1,h=!0,p;case C:return g=!0,b;case N:case S:case $:case L:case _:v=!1;case O:return b}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?u:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?E:/[\u0660-\u0669\u066b-\u066c]/.test(G)?w:Z==1642?I:/[\u06f0-\u06f9]/.test(G)?m:k:re==32&&Z<=8287?H[Z&255]:re==254&&Z>=65136?k:b}r.L=o,r.R=u,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),we=[];p=re?l:s,j(J,we,J.length,Z);for(var pe=0;pe<ae.length;ae[pe]=pe,pe++);V(2,we,ae),V(1,we,ae);for(var pe=0;pe<ae.length-1;pe++)Z[pe]===w?we[pe]=r.AN:we[pe]===u&&(Z[pe]>k&&Z[pe]<N||Z[pe]===b||Z[pe]===O)?we[pe]=r.ON_R:pe>0&&J[pe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[pe])&&(we[pe-1]=we[pe]=r.R_H,pe++);J[J.length-1]===r.DOT&&(we[J.length-1]=r.B),J[0]===""&&(we[0]=r.RLE);for(var pe=0;pe<ae.length;pe++)me[pe]=we[ae[pe]];return{logicalFromVisual:ae,bidiLevels:me}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==u||Z[J]==k||Z[J]==w)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var p=e("./lib/bidiutil"),y=e("./lib/lang"),v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(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=v.test(a.getValue())}return g.prototype.isBidiRow=function(a,c,s){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(c,s),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&v.test(a.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var a=0,c=this.session.$screenRowCache;if(c.length){var s=this.session.$getRowCacheIndex(c,this.currentRow);s>=0&&(a=this.session.$docRowCache[s])}return a},g.prototype.getSplitIndex=function(){var a=0,c=this.session.$screenRowCache;if(c.length)for(var s,l=this.session.$getRowCacheIndex(c,this.currentRow);this.currentRow-a>0&&(s=this.session.$getRowCacheIndex(c,this.currentRow-a-1),s===l);)l=s,a++;else a=this.currentRow;return a},g.prototype.updateRowLine=function(a,c){a===void 0&&(a=this.getDocumentRow());var s=a===this.session.getLength()-1,l=s?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 o=this.session.$wrapData[a];o&&(c===void 0&&(c=this.getSplitIndex()),c>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=c<o.length?this.line.substring(o[c-1],o[c]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[c]),c==o.length&&(this.line+=this.showInvisibles?l:p.DOT))}else this.line+=this.showInvisibles?l:p.DOT;var u=this.session,m=0,w;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(b,M){return b===" "||u.isFullWidth(b.charCodeAt(0))?(w=b===" "?u.getScreenTabSize(M+m):2,m+=w-1,y.stringRepeat(p.DOT,w)):b}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var a=[];p.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var c=this.characterWidth=a.$characterSize.width,s=a.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=c,this.charWidths[p.R]=this.charWidths[p.AN]=s,this.charWidths[p.R_H]=s*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},g.prototype.setEolChar=function(a){this.EOL=a},g.prototype.setContentWidth=function(a){this.contentWidth=a},g.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(a,c){for(var s=a.getCursorPosition(),l=a.selection.getSelectionAnchor().row;l<=s.row;l++)!c&&a.session.getLine(l).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(l,0,1):c&&a.session.getLine(l).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:l},a.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(a){a-=this.wrapIndent;var c=this.line.charAt(0)===this.RLE?1:0,s=a>c?this.session.getOverwrite()?a:a-1:c,l=p.getVisualFromLogicalIdx(s,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&a<=c&&o[l]%2!==0&&l++;for(var m=0;m<l;m++)u+=this.charWidths[o[m]];return!this.session.getOverwrite()&&a>c&&o[l]%2===0&&(u+=this.charWidths[o[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},g.prototype.getSelections=function(a,c){var s=this.bidiMap,l=s.bidiLevels,o,u=[],m=0,w=Math.min(a,c)-this.wrapIndent,b=Math.max(a,c)-this.wrapIndent,M=!1,C=!1,k=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var x,T=0;T<l.length;T++)x=s.logicalFromVisual[T],o=l[T],M=x>=w&&x<b,M&&!C?k=m:!M&&C&&u.push({left:k,width:m-k}),m+=this.charWidths[o],C=M;if(M&&T===l.length&&u.push({left:k,width:m-k}),this.isRtlDir)for(var R=0;R<u.length;R++)u[R].left+=this.rtlLineOffset;return u},g.prototype.offsetToCol=function(s){this.isRtlDir&&(s-=this.rtlLineOffset);var c=0,s=Math.max(s,0),l=0,o=0,u=this.bidiMap.bidiLevels,m=this.charWidths[u[o]];for(this.wrapIndent&&(s-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);s>l+m/2;){if(l+=m,o===u.length-1){m=0;break}m=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(s<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?c=1+(s>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&m===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&m!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},g}();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,f){var p=e("./lib/oop"),y=e("./lib/lang"),v=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=function(){function a(c){this.session=c,this.doc=c.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var s=this;this.cursor.on("change",function(l){s.$cursorChanged=!0,s.$silent||s._emit("changeCursor"),!s.$isEmpty&&!s.$silent&&s._emit("changeSelection"),!s.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(s.$desiredColumn=null)}),this.anchor.on("change",function(){s.$anchorChanged=!0,!s.$isEmpty&&!s.$silent&&s._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(c,s){this.$isEmpty=!1,this.anchor.setPosition(c,s)},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 c=this.anchor,s=this.lead;return c.row>s.row||c.row==s.row&&c.column>s.column},a.prototype.getRange=function(){var c=this.anchor,s=this.lead;return this.$isEmpty?h.fromPoints(s,s):this.isBackwards()?h.fromPoints(s,c):h.fromPoints(c,s)},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(c,s){var l=s?c.end:c.start,o=s?c.start:c.end;this.$setSelection(l.row,l.column,o.row,o.column)},a.prototype.$setSelection=function(c,s,l,o){if(!this.$silent){var u=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,s),this.cursor.setPosition(l,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||m)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(c){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),c.call(this)},a.prototype.selectTo=function(c,s){this.$moveSelection(function(){this.moveCursorTo(c,s)})},a.prototype.selectToPosition=function(c){this.$moveSelection(function(){this.moveCursorToPosition(c)})},a.prototype.moveTo=function(c,s){this.clearSelection(),this.moveCursorTo(c,s)},a.prototype.moveToPosition=function(c){this.clearSelection(),this.moveCursorToPosition(c)},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(c,s){if(typeof s>"u"){var l=c||this.lead;c=l.row,s=l.column}return this.session.getWordRange(c,s)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var c=this.getCursor(),s=this.session.getAWordRange(c.row,c.column);this.setSelectionRange(s)},a.prototype.getLineRange=function(c,s){var l=typeof c=="number"?c:this.lead.row,o,u=this.session.getFoldLine(l);return u?(l=u.start.row,o=u.end.row):o=l,s===!0?new h(l,0,o,this.session.getLine(o).length):new h(l,0,o+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(c,s,l){var o=c.column,u=c.column+s;return l<0&&(o=c.column-s,u=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,u).split(" ").length-1==s},a.prototype.moveCursorLeft=function(){var c=this.lead.getPosition(),s;if(s=this.session.getFoldAt(c.row,c.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(c.column===0)c.row>0&&this.moveCursorTo(c.row-1,this.doc.getLine(c.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(c,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var c=this.lead.getPosition(),s;if(s=this.session.getFoldAt(c.row,c.column,1))this.moveCursorTo(s.end.row,s.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var l=this.session.getTabSize(),c=this.lead;this.wouldMoveIntoSoftTab(c,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var c=this.lead.row,s=this.lead.column,l=this.session.documentToScreenRow(c,s),o=this.session.screenToDocumentPosition(l,0),u=this.session.getDisplayLine(c,null,o.row,o.column),m=u.match(/^\s*/);m[0].length!=s&&!this.session.$useEmacsStyleLineStart&&(o.column+=m[0].length),this.moveCursorToPosition(o)},a.prototype.moveCursorLineEnd=function(){var c=this.lead,s=this.session.getDocumentLastRowColumnPosition(c.row,c.column);if(this.lead.column==s.column){var l=this.session.getLine(s.row);if(s.column==l.length){var o=l.search(/\s+$/);o>0&&(s.column=o)}}this.moveCursorTo(s.row,s.column)},a.prototype.moveCursorFileEnd=function(){var c=this.doc.getLength()-1,s=this.doc.getLine(c).length;this.moveCursorTo(c,s)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var c=this.lead.row,s=this.lead.column,l=this.doc.getLine(c),o=l.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(c,s,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=l.substring(s)),s>=l.length){this.moveCursorTo(c,l.length),this.moveCursorRight(),c<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(s+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,s)},a.prototype.moveCursorLongWordLeft=function(){var c=this.lead.row,s=this.lead.column,l;if(l=this.session.getFoldAt(c,s,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var o=this.session.getFoldStringAt(c,s,-1);o==null&&(o=this.doc.getLine(c).substring(0,s));var u=y.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(s-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),s<=0){this.moveCursorTo(c,0),this.moveCursorLeft(),c>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,s)},a.prototype.$shortWordEndIndex=function(c){var s=0,l,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(c))s=this.session.tokenRe.lastIndex;else{for(;(l=c[s])&&o.test(l);)s++;if(s<1){for(u.lastIndex=0;(l=c[s])&&!u.test(l);)if(u.lastIndex=0,s++,o.test(l))if(s>2){s--;break}else{for(;(l=c[s])&&o.test(l);)s++;if(s>2)break}}}return u.lastIndex=0,s},a.prototype.moveCursorShortWordRight=function(){var c=this.lead.row,s=this.lead.column,l=this.doc.getLine(c),o=l.substring(s),u=this.session.getFoldAt(c,s,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(s==l.length){var m=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<m&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),s=0}var w=this.$shortWordEndIndex(o);this.moveCursorTo(c,s+w)},a.prototype.moveCursorShortWordLeft=function(){var c=this.lead.row,s=this.lead.column,l;if(l=this.session.getFoldAt(c,s,-1))return this.moveCursorTo(l.start.row,l.start.column);var o=this.session.getLine(c).substring(0,s);if(s===0){do c--,o=this.doc.getLine(c);while(c>0&&/^\s*$/.test(o));s=o.length,/\s+$/.test(o)||(o="")}var u=y.stringReverse(o),m=this.$shortWordEndIndex(u);return this.moveCursorTo(c,s-m)},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(c,s){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(s===0&&(c!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),c!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];c<0?c-=u.rowsAbove||0:c>0&&(c+=u.rowCount-(u.rowsAbove||0))}var m=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&s===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+s,s===0)},a.prototype.moveCursorToPosition=function(c){this.moveCursorTo(c.row,c.column)},a.prototype.moveCursorTo=function(c,s,l){var o=this.session.getFoldAt(c,s,1);o&&(c=o.start.row,s=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(u.charAt(s))&&u.charAt(s-1)&&(this.lead.row==c&&this.lead.column==s+1?s=s-1:s=s+1),this.lead.setPosition(c,s),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(c,s,l){var o=this.session.screenToDocumentPosition(c,s);this.moveCursorTo(o.row,o.column,l)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(c){this.setSelectionRange(c,c.cursor==c.start),this.$desiredColumn=c.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(c){var s=this.getRange();return c?(c.start.column=s.start.column,c.start.row=s.start.row,c.end.column=s.end.column,c.end.row=s.end.row):c=s,c.cursor=this.isBackwards()?c.start:c.end,c.desiredColumn=this.$desiredColumn,c},a.prototype.getRangeOfMovements=function(c){var s=this.getCursor();try{c(this);var l=this.getCursor();return h.fromPoints(s,l)}catch{return h.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},a.prototype.toJSON=function(){if(this.rangeCount)var c=this.ranges.map(function(s){var l=s.clone();return l.isBackwards=s.cursor==s.start,l});else{var c=this.getRange();c.isBackwards=this.isBackwards()}return c},a.prototype.fromJSON=function(c){if(c.start==null)if(this.rangeList&&c.length>1){this.toSingleRange(c[0]);for(var s=c.length;s--;){var l=h.fromPoints(c[s].start,c[s].end);c[s].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else c=c[0];this.rangeList&&this.toSingleRange(c),this.setSelectionRange(c,c.isBackwards)},a.prototype.isEqual=function(c){if((c.length||this.rangeCount)&&c.length!=this.rangeCount)return!1;if(!c.length||!this.ranges)return this.getRange().isEqual(c);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(c[s]))return!1;return!0},a}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,p.implement(g.prototype,v),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,f){var p=e("./lib/report_error").reportError,y=2e3,v=function(){function h(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var a in this.states){for(var c=this.states[a],s=[],l=0,o=this.matchMappings[a]={defaultToken:"text"},u="g",m=[],w=0;w<c.length;w++){var b=c[w];if(b.defaultToken&&(o.defaultToken=b.defaultToken),b.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),b.unicode&&u.indexOf("u")===-1&&(u+="u"),b.regex!=null){b.regex instanceof RegExp&&(b.regex=b.regex.toString().slice(1,-1));var M=b.regex,C=new RegExp("(?:("+M+")|(.))").exec("a").length-2;Array.isArray(b.token)?b.token.length==1||C==1?b.token=b.token[0]:C-1!=b.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:b,groupCount:C-1}),b.token=b.token[0]):(b.tokenArray=b.token,b.token=null,b.onMatch=this.$arrayTokens):typeof b.token=="function"&&!b.onMatch&&(C>1?b.onMatch=this.$applyToken:b.onMatch=b.token),C>1&&(/\\\d/.test(b.regex)?M=b.regex.replace(/\\([0-9]+)/g,function(k,x){return"\\"+(parseInt(x,10)+l+1)}):(C=1,M=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&m.push(b)),o[l]=w,l+=C,s.push(M),b.onMatch||(b.onMatch=null)}}s.length||(o[0]=0,s.push("$")),m.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[a]=new RegExp("("+s.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(g){y=g|0},h.prototype.$applyToken=function(g){var a=this.splitRegex.exec(g).slice(1),c=this.token.apply(this,a);if(typeof c=="string")return[{type:c,value:g}];for(var s=[],l=0,o=c.length;l<o;l++)a[l]&&(s[s.length]={type:c[l],value:a[l]});return s},h.prototype.$arrayTokens=function(g){if(!g)return[];var a=this.splitRegex.exec(g);if(!a)return"text";for(var c=[],s=this.tokenArray,l=0,o=s.length;l<o;l++)a[l+1]&&(c[c.length]={type:s[l],value:a[l+1]});return c},h.prototype.removeCapturingGroups=function(g){var a=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,s){return s?"(?:":c});return a},h.prototype.createSplitterRegexp=function(g,a){if(g.indexOf("(?=")!=-1){var c=0,s=!1,l={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,m,w,b,M){return s?s=b!="]":b?s=!0:w?(c==l.stack&&(l.end=M+1,l.stack=-1),c--):m&&(c++,m.length!=1&&(l.stack=c,l.start=M)),o}),l.end!=null&&/^\)*$/.test(g.substr(l.end))&&(g=g.substring(0,l.start)+g.substr(l.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(a||"").replace("g",""))},h.prototype.getLineTokens=function(g,a){if(a&&typeof a!="string"){var c=a.slice(0);a=c[0],a==="#tmp"&&(c.shift(),a=c.shift())}else var c=[];var s=a||"start",l=this.states[s];l||(s="start",l=this.states[s]);var o=this.matchMappings[s],u=this.regExps[s];u.lastIndex=0;for(var m,w=[],b=0,M=0,C={type:null,value:""};m=u.exec(g);){var k=o.defaultToken,x=null,T=m[0],R=u.lastIndex;if(R-T.length>b){var I=g.substring(b,R-T.length);C.type==k?C.value+=I:(C.type&&w.push(C),C={type:k,value:I})}for(var E=0;E<m.length-2;E++)if(m[E+1]!==void 0){x=l[o[E]],x.onMatch?k=x.onMatch(T,s,c,g):k=x.token,x.next&&(typeof x.next=="string"?s=x.next:s=x.next(s,c),l=this.states[s],l||(this.reportError("state doesn't exist",s),s="start",l=this.states[s]),o=this.matchMappings[s],b=R,u=this.regExps[s],u.lastIndex=R),x.consumeLineEnd&&(b=R);break}if(T){if(typeof k=="string")(!x||x.merge!==!1)&&C.type===k?C.value+=T:(C.type&&w.push(C),C={type:k,value:T});else if(k){C.type&&w.push(C),C={type:null,value:""};for(var E=0;E<k.length;E++)w.push(k[E])}}if(b==g.length)break;if(b=R,M++>y){for(M>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:g});b<g.length;)C.type&&w.push(C),C={value:g.substring(b,b+=500),type:"overflow"};s="start",c=[];break}}return C.type&&w.push(C),c.length>1&&c[0]!==s&&c.unshift("#tmp",s),{tokens:w,state:c.length?c:s}},h}();v.prototype.reportError=p,r.Tokenizer=v}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){var p=e("../lib/deep_copy").deepCopy,y;y=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,a){if(!a){for(var c in g)this.$rules[c]=g[c];return}for(var c in g){for(var s=g[c],l=0;l<s.length;l++){var o=s[l];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(a)!==0&&(o.next=a+o.next),o.nextState&&o.nextState.indexOf(a)!==0&&(o.nextState=a+o.nextState))}this.$rules[a+c]=s}},this.getRules=function(){return this.$rules},this.embedRules=function(g,a,c,s,l){var o=typeof g=="function"?new g().getRules():g;if(s)for(var u=0;u<s.length;u++)s[u]=a+s[u];else{s=[];for(var m in o)s.push(a+m)}if(this.addRules(o,a),c)for(var w=Array.prototype[l?"push":"unshift"],u=0;u<s.length;u++)w.apply(this.$rules[s[u]],p(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var v=function(g,a){return(g!="start"||a.length)&&a.unshift(this.nextState,g),this.nextState},h=function(g,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var g=0,a=this.$rules;function c(s){var l=a[s];l.processed=!0;for(var o=0;o<l.length;o++){var u=l[o],m=null;Array.isArray(u)&&(m=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var w=u.next||u.push;if(w&&Array.isArray(w)){var b=u.stateName;b||(b=u.token,typeof b!="string"&&(b=b[0]||""),a[b]&&(b+=g++)),a[b]=w,u.next=b,c(b)}else w=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=v,delete u.push),u.rules)for(var M in u.rules)a[M]?a[M].push&&a[M].push.apply(a[M],u.rules[M]):a[M]=u.rules[M];var C=typeof u=="string"?u:u.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?m=C.map(function(x){return a[x]}):m=a[C]),m){var k=[o,1].concat(m);u.noEscape&&(k=k.filter(function(x){return!x.next})),l.splice.apply(l,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(a).forEach(c,this)},this.createKeywordMapper=function(g,a,c,s){var l=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var u=g[o],m=u.split(s||"|"),w=m.length;w--;){var b=m[w];this.$keywordList.push(b),c&&(b=b.toLowerCase()),l[b]=o}},this),g=null,c?function(o){return l[o.toLowerCase()]||a}:function(o){return l[o]||a}},this.getKeywords=function(){return this.$keywords}}).call(y.prototype),r.TextHighlightRules=y}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,f){var p;p=function(){this.$behaviours={}},(function(){this.add=function(y,v,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[y]:this.$behaviours[y]={}}this.$behaviours[y][v]=h},this.addBehaviours=function(y){for(var v in y)for(var h in y[v])this.add(v,h,y[v][h])},this.remove=function(y){this.$behaviours&&this.$behaviours[y]&&delete this.$behaviours[y]},this.inherit=function(y,v){if(typeof y=="function")var h=new y().getBehaviours(v);else var h=y.getBehaviours(v);this.addBehaviours(h)},this.getBehaviours=function(y){if(y){for(var v={},h=0;h<y.length;h++)this.$behaviours[y[h]]&&(v[y[h]]=this.$behaviours[y[h]]);return v}else return this.$behaviours}}).call(p.prototype),r.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,f){var p=e("./range").Range,y=function(){function v(h,g,a){this.$session=h,this.$row=g,this.$rowTokens=h.getTokens(g);var c=h.getTokenAt(g,a);this.$tokenIndex=c?c.index:-1}return v.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]},v.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]},v.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentTokenRow=function(){return this.$row},v.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,g=this.$tokenIndex,a=h[g].start;if(a!==void 0)return a;for(a=0;g>0;)g-=1,a+=h[g].value.length;return a},v.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},v.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new p(this.$row,g,this.$row,g+h.value.length)},v}();r.TokenIterator=y}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,f){var p=e("../../lib/oop"),y=e("../behaviour").Behaviour,v=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,s={},l={'"':'"',"'":"'"},o=function(w){var b=-1;if(w.multiSelect&&(b=w.selection.index,s.rangeCount!=w.multiSelect.rangeCount&&(s={rangeCount:w.multiSelect.rangeCount})),s[b])return c=s[b];c=s[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(w,b,M,C){var k=w.end.row-w.start.row;return{text:M+b+C,selection:[0,w.start.column+1,k,w.end.column+(k?0:1)]}},m;m=function(w){w=w||{},this.add("braces","insertion",function(b,M,C,k,x){var T=C.getCursorPosition(),R=k.doc.getLine(T.row);if(x=="{"){o(C);var I=C.getSelectionRange(),E=k.doc.getTextRange(I),N=k.getTokenAt(T.row,T.column);if(E!==""&&E!=="{"&&C.getWrapBehavioursEnabled())return u(I,E,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var S=[/tag\-(?:open|name)/,/attribute\-name/];return S.some(function(j){return j.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(m.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(C,k))return/[\]\}\)]/.test(R[T.column])||C.inMultiSelectMode||w.braces?(m.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,k,"{"),{text:"{",selection:[1,1]})}else if(x=="}"){o(C);var _=R.substring(T.column,T.column+1);if(_=="}"){var $=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if($!==null&&m.isAutoInsertedClosing(T,R,x))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(x==`
|
180
|
+
`||x==`\r
|
181
|
+
`){o(C);var L="";m.isMaybeInsertedClosing(T,R)&&(L=h.stringRepeat("}",c.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var _=R.substring(T.column,T.column+1);if(_==="}"){var O=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(L)var F=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
|
182
|
+
`+H+`
|
183
|
+
`+F+L,selection:[1,H.length,1,H.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,M,C,k,x){var T=k.doc.getTextRange(x);if(!x.isMultiLine()&&T=="{"){o(C);var R=k.doc.getLine(x.start.row),I=R.substring(x.end.column,x.end.column+1);if(I=="}")return x.end.column++,x;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,M,C,k,x){if(x=="("){o(C);var T=C.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&C.getWrapBehavioursEnabled())return u(T,R,"(",")");if(m.isSaneInsertion(C,k))return m.recordAutoInsert(C,k,")"),{text:"()",selection:[1,1]}}else if(x==")"){o(C);var I=C.getCursorPosition(),E=k.doc.getLine(I.row),N=E.substring(I.column,I.column+1);if(N==")"){var S=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if(S!==null&&m.isAutoInsertedClosing(I,E,x))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,M,C,k,x){var T=k.doc.getTextRange(x);if(!x.isMultiLine()&&T=="("){o(C);var R=k.doc.getLine(x.start.row),I=R.substring(x.start.column+1,x.start.column+2);if(I==")")return x.end.column++,x}}),this.add("brackets","insertion",function(b,M,C,k,x){if(x=="["){o(C);var T=C.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&C.getWrapBehavioursEnabled())return u(T,R,"[","]");if(m.isSaneInsertion(C,k))return m.recordAutoInsert(C,k,"]"),{text:"[]",selection:[1,1]}}else if(x=="]"){o(C);var I=C.getCursorPosition(),E=k.doc.getLine(I.row),N=E.substring(I.column,I.column+1);if(N=="]"){var S=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if(S!==null&&m.isAutoInsertedClosing(I,E,x))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,M,C,k,x){var T=k.doc.getTextRange(x);if(!x.isMultiLine()&&T=="["){o(C);var R=k.doc.getLine(x.start.row),I=R.substring(x.start.column+1,x.start.column+2);if(I=="]")return x.end.column++,x}}),this.add("string_dquotes","insertion",function(b,M,C,k,x){var T=k.$mode.$quotes||l;if(x.length==1&&T[x]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(x)!=-1)return;o(C);var R=x,I=C.getSelectionRange(),E=k.doc.getTextRange(I);if(E!==""&&(E.length!=1||!T[E])&&C.getWrapBehavioursEnabled())return u(I,E,R,R);if(!E){var N=C.getCursorPosition(),S=k.doc.getLine(N.row),_=S.substring(N.column-1,N.column),$=S.substring(N.column,N.column+1),L=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),H=!O||/string|escape/.test(O.type),j;if($==R)j=F!==H,j&&/string\.end/.test(O.type)&&(j=!1);else{if(F&&!H||F&&H)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var X=V.test($),G=k.$mode.$pairQuotesAfter,Z=G&&G[R]&&G[R].test(_);if(!Z&&q||X||$&&!/[\s;,.})\]\\]/.test($))return null;var re=S[N.column-2];if(_==R&&(re==R||V.test(re)))return null;j=!0}return{text:j?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,M,C,k,x){var T=k.$mode.$quotes||l,R=k.doc.getTextRange(x);if(!x.isMultiLine()&&T.hasOwnProperty(R)){o(C);var I=k.doc.getLine(x.start.row),E=I.substring(x.start.column+1,x.start.column+2);if(E==R)return x.end.column++,x}}),w.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,M,C,k,x){if(b==="doc-start"&&(x===`
|
184
|
+
`||x===`\r
|
185
|
+
`)&&C.selection.isEmpty()){var T=C.getCursorPosition();if(T.column===0)return;for(var R=k.doc.getLine(T.row),I=k.doc.getLine(T.row+1),E=k.getTokens(T.row),N=0,S=0;S<E.length;S++){N+=E[S].value.length;var _=E[S];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var $=E[S+1];if(!$||!/\.doc/.test($.type))return}}var L=T.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&L>F&&L<F+3||O!==-1&&F!==-1&&L>=O&&L<=F||!/\.doc/.test(_.type))return;break}}var H=this.$getIndent(R);if(/\s*\*/.test(I))return/^\s*\*/.test(R)?{text:x+H+"* ",selection:[1,2+H.length,1,2+H.length]}:{text:x+H+" * ",selection:[1,3+H.length,1,3+H.length]};if(/\/\*\*/.test(R.substring(0,T.column)))return{text:x+H+" * "+x+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},m.isSaneInsertion=function(w,b){var M=w.getCursorPosition(),C=new v(b,M.row,M.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",g)){if(/[)}\]]/.test(w.session.getLine(M.row)[M.column]))return!0;var k=new v(b,M.row,M.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",g))return!1}return C.stepForward(),C.getCurrentTokenRow()!==M.row||this.$matchTokenType(C.getCurrentToken()||"text",a)},m.$matchTokenType=function(w,b){return b.indexOf(w.type||w)>-1},m.recordAutoInsert=function(w,b,M){var C=w.getCursorPosition(),k=b.doc.getLine(C.row);this.isAutoInsertedClosing(C,k,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=C.row,c.autoInsertedLineEnd=M+k.substr(C.column),c.autoInsertedBrackets++},m.recordMaybeInsert=function(w,b,M){var C=w.getCursorPosition(),k=b.doc.getLine(C.row);this.isMaybeInsertedClosing(C,k)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=C.row,c.maybeInsertedLineStart=k.substr(0,C.column)+M,c.maybeInsertedLineEnd=k.substr(C.column),c.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(w,b,M){return c.autoInsertedBrackets>0&&w.row===c.autoInsertedRow&&M===c.autoInsertedLineEnd[0]&&b.substr(w.column)===c.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(w,b){return c.maybeInsertedBrackets>0&&w.row===c.maybeInsertedRow&&b.substr(w.column)===c.maybeInsertedLineEnd&&b.substr(0,w.column)==c.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},p.inherits(m,y),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(e,r,f){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],y=0,v=[],h=0;h<p.length;h+=2)v.push(y+=p[h]),p[h+1]&&v.push(45,y+=p[h+1]);r.wordChars=String.fromCharCode.apply(null,v)}),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,f){var p=e("../config"),y=e("../tokenizer").Tokenizer,v=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,g=e("../unicode"),a=e("../lib/lang"),c=e("../token_iterator").TokenIterator,s=e("../range").Range,l;l=function(){this.HighlightRules=v},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new y(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,m,w){var b=u.doc,M=!0,C=!0,k=1/0,x=u.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var R=this.lineCommentStart.map(a.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var R=a.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;R=new RegExp("^(\\s*)(?:"+R+") ?"),T=u.getUseSoftTabs();var E=function(j,V){var q=j.match(R);if(q){var X=q[1].length,G=q[0].length;!$(j,X,G)&&q[0][G-1]==" "&&G--,b.removeInLine(V,X,G)}},N=I+" ",S=function(j,V){(!M||/\S/.test(j))&&($(j,k,k)?b.insertInLine({row:V,column:k},N):b.insertInLine({row:V,column:k},I))},_=function(j,V){return R.test(j)},$=function(j,V,q){for(var X=0;V--&&j.charAt(V)==" ";)X++;if(X%x!=0)return!1;for(var X=0;j.charAt(q++)==" ";)X++;return x>2?X%x!=x-1:X%x==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,L=this.blockComment.end,R=new RegExp("^(\\s*)(?:"+a.escapeRegExp(I)+")"),O=new RegExp("(?:"+a.escapeRegExp(L)+")\\s*$"),S=function(Z,re){_(Z,re)||(!M||/\S/.test(Z))&&(b.insertInLine({row:re,column:Z.length},L),b.insertInLine({row:re,column:k},I))},E=function(Z,re){var J;(J=Z.match(O))&&b.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(R))&&b.removeInLine(re,J[1].length,J[0].length)},_=function(Z,re){if(R.test(Z))return!0;for(var J=u.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(j){for(var V=m;V<=w;V++)j(b.getLine(V),V)}var H=1/0;F(function(j,V){var q=j.search(/\S/);q!==-1?(q<k&&(k=q),C&&!_(j,V)&&(C=!1)):H>j.length&&(H=j.length)}),k==1/0&&(k=H,M=!1,C=!1),T&&k%x!=0&&(k=Math.floor(k/x)*x),F(C?E:S)},this.toggleBlockComment=function(o,u,m,w){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var M=new c(u,w.row,w.column),C=M.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),x,T;if(C&&/comment/.test(C.type)){for(var R,I;C&&/comment/.test(C.type);){var E=C.value.indexOf(b.start);if(E!=-1){var N=M.getCurrentTokenRow(),S=M.getCurrentTokenColumn()+E;R=new s(N,S,N,S+b.start.length);break}C=M.stepBackward()}for(var M=new c(u,w.row,w.column),C=M.getCurrentToken();C&&/comment/.test(C.type);){var E=C.value.indexOf(b.end);if(E!=-1){var N=M.getCurrentTokenRow(),S=M.getCurrentTokenColumn()+E;I=new s(N,S,N,S+b.end.length);break}C=M.stepForward()}I&&u.remove(I),R&&(u.remove(R),x=R.start.row,T=-b.start.length)}else T=b.start.length,x=m.start.row,u.insert(m.end,b.end),u.insert(m.start,b.start);k.start.row==x&&(k.start.column+=T),k.end.row==x&&(k.end.column+=T),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,m){return this.$getIndent(u)},this.checkOutdent=function(o,u,m){return!1},this.autoOutdent=function(o,u,m){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var m=o[u],w=m.prototype.$id,b=p.$modes[w];b||(p.$modes[w]=b=new m),p.$modes[u]||(p.$modes[u]=b),this.$embeds.push(u),this.$modes[u]=b}for(var M=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(T){(function(R){var I=M[T],E=R[I];R[M[T]]=function(){return this.$delegator(I,arguments,E)}})(k)},k=this,u=0;u<M.length;u++)C(u)},this.$delegator=function(o,u,m){var w=u[0]||"start";if(typeof w!="string"){if(Array.isArray(w[2])){var b=w[2][w[2].length-1],M=this.$modes[b];if(M)return M[o].apply(M,[w[1]].concat([].slice.call(u,1)))}w=w[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var k=w.split(this.$embeds[C]);if(!k[0]&&k[1]){u[0]=k[1];var M=this.$modes[this.$embeds[C]];return M[o].apply(M,u)}}var x=m.apply(this,u);return m?x:void 0},this.transformAction=function(o,u,m,w,b){if(this.$behaviour){var M=this.$behaviour.getBehaviours();for(var C in M)if(M[C][u]){var k=M[C][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,m=[];for(var w in u)for(var b=u[w],M=0,C=b.length;M<C;M++)if(typeof b[M].token=="string")/keyword|support|storage/.test(b[M].token)&&m.push(b[M].regex);else if(typeof b[M].token=="object"){for(var k=0,x=b[M].token.length;k<x;k++)if(/keyword|support|storage/.test(b[M].token[k])){var w=b[M].regex.match(/\(.+?\)/g)[k];m.push(w.substr(1,w.length-2))}}this.completionKeywords=m}return o?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,m,w){var b=this.$keywordList||this.$createKeywordList();return b.map(function(M){return{name:M,value:M,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),r.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("./lib/dom"),y=function(){function v(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 v.prototype.getRowLength=function(h){var g;return this.lineWidgets?g=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[h]?1+g:this.$wrapData[h].length+1+g},v.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(h+=g.rowCount)}),h},v.prototype.$onChangeEditor=function(h){this.attach(h.editor)},v.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)))},v.prototype.detach=function(h){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(c){c&&c.el&&c.el.parentNode&&(c._inDocument=!1,c.el.parentNode.removeChild(c.el))})}},v.prototype.updateOnFold=function(h,g){var a=g.lineWidgets;if(!(!a||!h.action)){for(var c=h.data,s=c.start.row,l=c.end.row,o=h.action=="add",u=s+1;u<l;u++)a[u]&&(a[u].hidden=o);a[l]&&(o?a[s]?a[l].hidden=o:a[s]=a[l]:(a[s]==a[l]&&(a[s]=void 0),a[l].hidden=o))}},v.prototype.updateOnChange=function(h){var g=this.session.lineWidgets;if(g){var a=h.start.row,c=h.end.row-a;if(c!==0)if(h.action=="remove"){var s=g.splice(a+1,c);!g[a]&&s[s.length-1]&&(g[a]=s.pop()),s.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);g[a]&&g[a].column!=null&&h.start.column>g[a].column&&a++,l.unshift(a,0),g.splice.apply(g,l),this.$updateRows()}}},v.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var g=!0;h.forEach(function(a,c){if(a)for(g=!1,a.row=c;a.$oldWidget;)a.$oldWidget.row=c,a=a.$oldWidget}),g&&(this.session.lineWidgets=null)}},v.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[h.row];return g&&(h.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},v.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var g=this.editor.renderer;h.html&&!h.el&&(h.el=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",g.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/g.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var c=this.session.lineWidgets;h.row==a.end.row&&!c[a.start.row]?c[a.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(h),h},v.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[h.row];if(g==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;g;){if(g.$oldWidget==h){g.$oldWidget=h.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},v.prototype.getWidgetsAtRow=function(h){for(var g=this.session.lineWidgets,a=g&&g[h],c=[];a;)c.push(a),a=a.$oldWidget;return c},v.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},v.prototype.measureWidgets=function(h,g){var a=this.session._changedWidgets,c=g.layerConfig;if(!(!a||!a.length)){for(var s=1/0,l=0;l<a.length;l++){var o=a[l];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var u=o.h/c.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<s&&(s=o.row))}}s!=1/0&&(this.session._emit("changeFold",{data:{start:{row:s}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},v.prototype.renderWidgets=function(h,g){var a=g.layerConfig,c=this.session.lineWidgets;if(c){for(var s=Math.min(this.firstRow,a.firstRow),l=Math.max(this.lastRow,a.lastRow,c.length);s>0&&!c[s];)s--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,g.$cursorLayer.config=a;for(var o=s;o<=l;o++){var u=c[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,g.container.appendChild(u.el));var m=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(m+=a.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=m-a.offset+"px";var w=u.coverGutter?0:g.gutterWidth;u.fixedWidth||(w-=g.scrollLeft),u.el.style.left=w+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=a.width+2*a.padding+"px"),u.fixedWidth?u.el.style.right=g.scrollBar.getWidth()+"px":u.el.style.right=""}}}},v}();r.LineWidgets=y}),ace.define("ace/apply_delta",["require","exports","module"],function(e,r,f){r.applyDelta=function(p,y,v){var h=y.start.row,g=y.start.column,a=p[h]||"";switch(y.action){case"insert":var c=y.lines;if(c.length===1)p[h]=a.substring(0,g)+y.lines[0]+a.substring(g);else{var s=[h,1].concat(y.lines);p.splice.apply(p,s),p[h]=a.substring(0,g)+p[h],p[h+y.lines.length-1]+=a.substring(g)}break;case"remove":var l=y.end.column,o=y.end.row;h===o?p[h]=a.substring(0,g)+a.substring(l):p.splice(h,o-h+1,a.substring(0,g)+p[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/event_emitter").EventEmitter,v=function(){function a(c,s,l){this.$onChange=this.onChange.bind(this),this.attach(c),typeof s!="number"?this.setPosition(s.row,s.column):this.setPosition(s,l)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var s=g(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},a.prototype.setPosition=function(c,s,l){var o;if(l?o={row:c,column:s}:o=this.$clipPositionToDocument(c,s),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(c){this.document=c||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(c,s){var l={};return c>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):c<0?(l.row=0,l.column=0):(l.row=c,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,s))),s<0&&(l.column=0),l},a}();v.prototype.$insertRight=!1,p.implement(v.prototype,y);function h(a,c,s){var l=s?a.column<=c.column:a.column<c.column;return a.row<c.row||a.row==c.row&&l}function g(a,c,s){var l=a.action=="insert",o=(l?1:-1)*(a.end.row-a.start.row),u=(l?1:-1)*(a.end.column-a.start.column),m=a.start,w=l?m:a.end;return h(c,m,s)?{row:c.row,column:c.column}:h(w,c,!s)?{row:c.row+o,column:c.column+(c.row==w.row?u:0)}:{row:m.row,column:m.column}}r.Anchor=v}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,r,f){var p=e("./lib/oop"),y=e("./apply_delta").applyDelta,v=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=e("./anchor").Anchor,a=function(){function c(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)}return c.prototype.setValue=function(s){var l=this.getLength()-1;this.remove(new h(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},s||"")},c.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},c.prototype.createAnchor=function(s,l){return new g(this,s,l)},c.prototype.$detectNewLine=function(s){var l=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
|
186
|
+
`,this._signal("changeNewLineMode")},c.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
187
|
+
`;case"unix":return`
|
188
|
+
`;default:return this.$autoNewLine||`
|
189
|
+
`}},c.prototype.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},c.prototype.getNewLineMode=function(){return this.$newLineMode},c.prototype.isNewLine=function(s){return s==`\r
|
190
|
+
`||s=="\r"||s==`
|
191
|
+
`},c.prototype.getLine=function(s){return this.$lines[s]||""},c.prototype.getLines=function(s,l){return this.$lines.slice(s,l+1)},c.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},c.prototype.getLength=function(){return this.$lines.length},c.prototype.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},c.prototype.getLinesForRange=function(s){var l;if(s.start.row===s.end.row)l=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{l=this.getLines(s.start.row,s.end.row),l[0]=(l[0]||"").substring(s.start.column);var o=l.length-1;s.end.row-s.start.row==o&&(l[o]=l[o].substring(0,s.end.column))}return l},c.prototype.insertLines=function(s,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,l)},c.prototype.removeLines=function(s,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,l)},c.prototype.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},c.prototype.insert=function(s,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(s,this.$split(l))},c.prototype.insertInLine=function(s,l){var o=this.clippedPos(s.row,s.column),u=this.pos(s.row,s.column+l.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},c.prototype.clippedPos=function(s,l){var o=this.getLength();s===void 0?s=o:s<0?s=0:s>=o&&(s=o-1,l=void 0);var u=this.getLine(s);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.length),{row:s,column:l}},c.prototype.clonePos=function(s){return{row:s.row,column:s.column}},c.prototype.pos=function(s,l){return{row:s,column:l}},c.prototype.$clipPosition=function(s){var l=this.getLength();return s.row>=l?(s.row=Math.max(0,l-1),s.column=this.getLine(l-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},c.prototype.insertFullLines=function(s,l){s=Math.min(Math.max(s,0),this.getLength());var o=0;s<this.getLength()?(l=l.concat([""]),o=0):(l=[""].concat(l),s--,o=this.$lines[s].length),this.insertMergedLines({row:s,column:o},l)},c.prototype.insertMergedLines=function(s,l){var o=this.clippedPos(s.row,s.column),u={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:l}),this.clonePos(u)},c.prototype.remove=function(s){var l=this.clippedPos(s.start.row,s.start.column),o=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:l,end:o,action:"remove",lines:this.getLinesForRange({start:l,end:o})}),this.clonePos(l)},c.prototype.removeInLine=function(s,l,o){var u=this.clippedPos(s,l),m=this.clippedPos(s,o);return this.applyDelta({start:u,end:m,action:"remove",lines:this.getLinesForRange({start:u,end:m})},!0),this.clonePos(u)},c.prototype.removeFullLines=function(s,l){s=Math.min(Math.max(0,s),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var o=l==this.getLength()-1&&s>0,u=l<this.getLength()-1,m=o?s-1:s,w=o?this.getLine(m).length:0,b=u?l+1:l,M=u?0:this.getLine(b).length,C=new h(m,w,b,M),k=this.$lines.slice(s,l+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),k},c.prototype.removeNewLine=function(s){s<this.getLength()-1&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(s,l){if(s instanceof h||(s=h.fromPoints(s.start,s.end)),l.length===0&&s.isEmpty())return s.start;if(l==this.getTextRange(s))return s.end;this.remove(s);var o;return l?o=this.insert(s.start,l):o=s.start,o},c.prototype.applyDeltas=function(s){for(var l=0;l<s.length;l++)this.applyDelta(s[l])},c.prototype.revertDeltas=function(s){for(var l=s.length-1;l>=0;l--)this.revertDelta(s[l])},c.prototype.applyDelta=function(s,l){var o=s.action=="insert";(o?s.lines.length<=1&&!s.lines[0]:!h.comparePoints(s.start,s.end))||(o&&s.lines.length>2e4?this.$splitAndapplyLargeDelta(s,2e4):(y(this.$lines,s,l),this._signal("change",s)))},c.prototype.$safeApplyDelta=function(s){var l=this.$lines.length;(s.action=="remove"&&s.start.row<l&&s.end.row<l||s.action=="insert"&&s.start.row<=l)&&this.applyDelta(s)},c.prototype.$splitAndapplyLargeDelta=function(s,l){for(var o=s.lines,u=o.length-l+1,m=s.start.row,w=s.start.column,b=0,M=0;b<u;b=M){M+=l-1;var C=o.slice(b,M);C.push(""),this.applyDelta({start:this.pos(m+b,w),end:this.pos(m+M,w=0),action:s.action,lines:C},!0)}s.lines=o.slice(b),s.start.row=m+b,s.start.column=w,this.applyDelta(s,!0)},c.prototype.revertDelta=function(s){this.$safeApplyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},c.prototype.indexToPosition=function(s,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,m=l||0,w=o.length;m<w;m++)if(s-=o[m].length+u,s<0)return{row:m,column:s+o[m].length+u};return{row:w-1,column:s+o[w-1].length+u}},c.prototype.positionToIndex=function(s,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,m=0,w=Math.min(s.row,o.length),b=l||0;b<w;++b)m+=o[b].length+u;return m+s.column},c.prototype.$split=function(s){return s.split(/\r\n|\r|\n/)},c}();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",p.implement(a.prototype,v),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/event_emitter").EventEmitter,v=function(){function h(g,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var c=this;this.$worker=function(){if(c.running){for(var s=new Date,l=c.currentLine,o=-1,u=c.doc,m=l;c.lines[l];)l++;var w=u.getLength(),b=0;for(c.running=!1;l<w;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(b++,b%5===0&&new Date-s>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),m<=o&&c.fireUpdateEvent(m,o)}}}return h.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(g,a){var c={first:g,last:a};this._signal("update",{data:c})},h.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(g){var a=g.start.row,c=g.end.row-a;if(c===0)this.lines[a]=null;else if(g.action=="remove")this.lines.splice(a,c+1,null),this.states.splice(a,c+1,null);else{var s=Array(c+1);s.unshift(a,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}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(g){return this.lines[g]||this.$tokenizeRow(g)},h.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},h.prototype.$tokenizeRow=function(g){var a=this.doc.getLine(g),c=this.states[g-1],s=this.tokenizer.getLineTokens(a,c,g);return this.states[g]+""!=s.state+""?(this.states[g]=s.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=s.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();p.implement(v.prototype,y),r.BackgroundTokenizer=v}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,r,f){var p=e("./lib/lang"),y=e("./range").Range,v=function(){function h(g,a,c){c===void 0&&(c="text"),this.setRegexp(g),this.clazz=a,this.type=c}return h.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},h.prototype.update=function(g,a,c,s){if(this.regExp)for(var l=s.firstRow,o=s.lastRow,u={},m=l;m<=o;m++){var w=this.cache[m];w==null&&(w=p.getMatchOffsets(c.getLine(m),this.regExp),w.length>this.MAX_RANGES&&(w=w.slice(0,this.MAX_RANGES)),w=w.map(function(k){return new y(m,k.offset,m,k.offset+k.length)}),this.cache[m]=w.length?w:"");for(var b=w.length;b--;){var M=w[b].toScreenRange(c),C=M.toString();u[C]||(u[C]=!0,a.drawSingleLineMarker(g,M,this.clazz,s))}}},h}();v.prototype.MAX_RANGES=500,r.SearchHighlight=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,r,f){var p=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(x){this.$session=x},k.prototype.add=function(x,T,R){if(!this.$fromUndo&&x!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),x.id=this.$rev=++this.$maxRev}(x.action=="remove"||x.action=="insert")&&(this.$lastDelta=x),this.lastDeltas.push(x)}},k.prototype.addSelection=function(x,T){this.selections.push({value:x,rev:T||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(x,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,I=R.length;I--;){var E=R[I][0];if(E.id<=x)break;E.id<T&&(E.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(x,T){for(var R=this.selections,I=R.length;I--;){var E=R[I];if(E.rev<x)return T&&(E=R[I+1]),E}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(x,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,I=null,E=0,N=R.length;N--;){var S=R[N][0];if(S.id<T&&!I&&(I=N+1),S.id<=x){E=N+1;break}}return R.slice(E,I)},k.prototype.getChangedRanges=function(x,T){T==null&&(T=this.$rev+1)},k.prototype.getChangedLines=function(x,T){T==null&&(T=this.$rev+1)},k.prototype.undo=function(x,T){this.lastDeltas=null;var R=this.$undoStack;if(y(R,R.length)){x||(x=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=R.pop(),E=null;return I&&(E=x.undoChanges(I,T),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,E}},k.prototype.redo=function(x,T){if(this.lastDeltas=null,x||(x=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),E=null;return I&&(E=x.redoChanges(I,T),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,E},k.prototype.$syncRev=function(){var x=this.$undoStack,T=x[x.length-1],R=T&&T[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(x){x==null&&(x=this.$rev),this.mark=x},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(x){this.reset(),this.$undoStack=x.$undoStack,this.$redoStack=x.$redoStack},k.prototype.$prettyPrint=function(x){return x?c(x):c(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+c(this.$redoStack)},k}();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 y(k,x){for(var T=x;T--;){var R=k[T];if(R&&!R[0].ignore){for(;T<x-1;){var I=o(k[T],k[T+1]);k[T]=I[0],k[T+1]=I[1],T++}return!0}}}var v=e("./range").Range,h=v.comparePoints;v.comparePoints;function g(k){return{row:k.row,column:k.column}}function a(k){return{start:g(k.start),end:g(k.end),action:k.action,lines:k.lines.slice()}}function c(k){if(k=k||this,Array.isArray(k))return k.map(c).join(`
|
194
|
+
`);var x="";return k.action?(x=k.action=="insert"?"+":"-",x+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?x=k.value.map(s).join(`
|
195
|
+
`):x=s(k.value)),k.start&&(x+=s(k)),(k.id||k.rev)&&(x+=" ("+(k.id||k.rev)+")"),x}function s(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function l(k,x){var T=k.action=="insert",R=x.action=="insert";if(T&&R)if(h(x.start,k.end)>=0)m(x,k,-1);else if(h(x.start,k.start)<=0)m(k,x,1);else return null;else if(T&&!R)if(h(x.start,k.end)>=0)m(x,k,-1);else if(h(x.end,k.start)<=0)m(k,x,-1);else return null;else if(!T&&R)if(h(x.start,k.start)>=0)m(x,k,1);else if(h(x.start,k.start)<=0)m(k,x,1);else return null;else if(!T&&!R)if(h(x.start,k.start)>=0)m(x,k,1);else if(h(x.end,k.start)<=0)m(k,x,-1);else return null;return[x,k]}function o(k,x){for(var T=k.length;T--;)for(var R=0;R<x.length;R++)if(!l(k[T],x[R])){for(;T<k.length;){for(;R--;)l(x[R],k[T]);R=x.length,T++}return[k,x]}return k.selectionBefore=x.selectionBefore=k.selectionAfter=x.selectionAfter=null,[x,k]}function u(k,x){var T=k.action=="insert",R=x.action=="insert";if(T&&R)h(k.start,x.start)<0?m(x,k,1):m(k,x,1);else if(T&&!R)h(k.start,x.end)>=0?m(k,x,-1):(h(k.start,x.start)<=0||m(k,v.fromPoints(x.start,k.start),-1),m(x,k,1));else if(!T&&R)h(x.start,k.end)>=0?m(x,k,-1):(h(x.start,k.start)<=0||m(x,v.fromPoints(k.start,x.start),-1),m(k,x,1));else if(!T&&!R)if(h(x.start,k.end)>=0)m(x,k,-1);else if(h(x.end,k.start)<=0)m(k,x,-1);else{var I,E;return h(k.start,x.start)<0&&(I=k,k=b(k,x.start)),h(k.end,x.end)>0&&(E=b(k,x.end)),w(x.end,k.start,k.end,-1),E&&!I&&(k.lines=E.lines,k.start=E.start,k.end=E.end,E=k),[x,I,E].filter(Boolean)}return[x,k]}function m(k,x,T){w(k.start,x.start,x.end,T),w(k.end,x.start,x.end,T)}function w(k,x,T,R){k.row==(R==1?x:T).row&&(k.column+=R*(T.column-x.column)),k.row+=R*(T.row-x.row)}function b(k,x){var T=k.lines,R=k.end;k.end=g(x);var I=k.end.row-k.start.row,E=T.splice(I,T.length),N=I?x.column:x.column-k.start.column;T.push(E[0].substring(0,N)),E[0]=E[0].substr(N);var S={start:g(x),end:R,lines:E,action:k.action};return S}function M(k,x){x=a(x);for(var T=k.length;T--;){for(var R=k[T],I=0;I<R.length;I++){var E=R[I],N=u(E,x);x=N[0],N.length!=2&&(N[2]?(R.splice(I+1,1,N[1],N[2]),I++):N[1]||(R.splice(I,1),I--))}R.length||k.splice(T,1)}return k}function C(k,x){for(var T=0;T<x.length;T++)for(var R=x[T],I=0;I<R.length;I++)M(k,R[I])}r.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){function v(h,g){this.foldData=h,Array.isArray(g)?this.folds=g:g=this.folds=[g];var a=g[g.length-1];this.range=new p(g[0].start.row,g[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(c){c.setFoldLine(this)},this)}return v.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(g){g.start.row+=h,g.end.row+=h})},v.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(g,a){return-g.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},v.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},v.prototype.walk=function(h,g,a){var c=0,s=this.folds,l,o,u,m=!0;g==null&&(g=this.end.row,a=this.end.column);for(var w=0;w<s.length;w++){if(l=s[w],o=l.range.compareStart(g,a),o==-1){h(null,g,a,c,m);return}if(u=h(null,l.start.row,l.start.column,c,m),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;m=!l.sameRow,c=l.end.column}h(null,g,a,c,m)},v.prototype.getNextFoldTo=function(h,g){for(var a,c,s=0;s<this.folds.length;s++){if(a=this.folds[s],c=a.range.compareEnd(h,g),c==-1)return{fold:a,kind:"after"};if(c===0)return{fold:a,kind:"inside"}}return null},v.prototype.addRemoveChars=function(h,g,a){var c=this.getNextFoldTo(h,g),s,l;if(c){if(s=c.fold,c.kind=="inside"&&s.start.column!=g&&s.start.row!=h)window.console&&window.console.log(h,g,s);else if(s.start.row==h){l=this.folds;var o=l.indexOf(s);for(o===0&&(this.start.column+=a),o;o<l.length;o++){if(s=l[o],s.start.column+=a,!s.sameRow)return;s.end.column+=a}this.end.column+=a}}},v.prototype.split=function(h,g){var a=this.getNextFoldTo(h,g);if(!a||a.kind=="inside")return null;var c=a.fold,s=this.folds,l=this.foldData,o=s.indexOf(c),u=s[o-1];this.end.row=u.end.row,this.end.column=u.end.column,s=s.splice(o,s.length-o);var m=new v(l,s);return l.splice(l.indexOf(this)+1,0,m),m},v.prototype.merge=function(h){for(var g=h.folds,a=0;a<g.length;a++)this.addFold(g[a]);var c=this.foldData;c.splice(c.indexOf(h),1)},v.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(g){h.push(" "+g.toString())}),h.push("]"),h.join(`
|
196
|
+
`)},v.prototype.idxToPosition=function(h){for(var g=0,a=0;a<this.folds.length;a++){var c=this.folds[a];if(h-=c.start.column-g,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;g=c.end.column}return{row:this.end.row,column:this.end.column+h}},v}();r.FoldLine=y}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,r,f){var p=e("./range").Range,y=p.comparePoints,v=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(g,a,c){for(var s=this.ranges,l=c||0;l<s.length;l++){var o=s[l],u=y(g,o.end);if(!(u>0)){var m=y(g,o.start);return u===0?a&&m!==0?-l-2:l:m>0||m===0&&!a?l:-l-1}}return-l-1},h.prototype.add=function(g){var a=!g.isEmpty(),c=this.pointIndex(g.start,a);c<0&&(c=-c-1);var s=this.pointIndex(g.end,a,c);return s<0?s=-s-1:s++,this.ranges.splice(c,s-c,g)},h.prototype.addList=function(g){for(var a=[],c=g.length;c--;)a.push.apply(a,this.add(g[c]));return a},h.prototype.substractPoint=function(g){var a=this.pointIndex(g);if(a>=0)return this.ranges.splice(a,1)},h.prototype.merge=function(){var g=[],a=this.ranges;a=a.sort(function(u,m){return y(u.start,m.start)});for(var c=a[0],s,l=1;l<a.length;l++){s=c,c=a[l];var o=y(s.end,c.start);o<0||o==0&&!s.isEmpty()&&!c.isEmpty()||(y(s.end,c.end)<0&&(s.end.row=c.end.row,s.end.column=c.end.column),a.splice(l,1),g.push(c),c=s,l--)}return this.ranges=a,g},h.prototype.contains=function(g,a){return this.pointIndex({row:g,column:a})>=0},h.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},h.prototype.rangeAtPoint=function(g){var a=this.pointIndex(g);if(a>=0)return this.ranges[a]},h.prototype.clipRows=function(g,a){var c=this.ranges;if(c[0].start.row>a||c[c.length-1].start.row<g)return[];var s=this.pointIndex({row:g,column:0});s<0&&(s=-s-1);var l=this.pointIndex({row:a,column:0},s);l<0&&(l=-l-1);for(var o=[],u=s;u<l;u++)o.push(c[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(g){for(var a=g.start,c=g.end,s=a.row,l=c.row,o=this.ranges,u=0,m=o.length;u<m;u++){var w=o[u];if(w.end.row>=s)break}if(g.action=="insert")for(var b=l-s,M=-a.column+c.column;u<m;u++){var w=o[u];if(w.start.row>s)break;if(w.start.row==s&&w.start.column>=a.column&&(w.start.column==a.column&&this.$bias<=0||(w.start.column+=M,w.start.row+=b)),w.end.row==s&&w.end.column>=a.column){if(w.end.column==a.column&&this.$bias<0)continue;w.end.column==a.column&&M>0&&u<m-1&&w.end.column>w.start.column&&w.end.column==o[u+1].start.column&&(w.end.column-=M),w.end.column+=M,w.end.row+=b}}else for(var b=s-l,M=a.column-c.column;u<m;u++){var w=o[u];if(w.start.row>l)break;w.end.row<l&&(s<w.end.row||s==w.end.row&&a.column<w.end.column)?(w.end.row=s,w.end.column=a.column):w.end.row==l?w.end.column<=c.column?(b||w.end.column>a.column)&&(w.end.column=a.column,w.end.row=a.row):(w.end.column+=M,w.end.row+=b):w.end.row>l&&(w.end.row+=b),w.start.row<l&&(s<w.start.row||s==w.start.row&&a.column<w.start.column)?(w.start.row=s,w.start.column=a.column):w.start.row==l?w.start.column<=c.column?(b||w.start.column>a.column)&&(w.start.column=a.column,w.start.row=a.row):(w.start.column+=M,w.start.row+=b):w.start.row>l&&(w.start.row+=b)}if(b!=0&&u<m)for(;u<m;u++){var w=o[u];w.start.row+=b,w.end.row+=b}},h}();v.prototype.comparePoints=y,r.RangeList=v}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,r,f){var p=this&&this.__extends||function(){var s=function(l,o){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(u[w]=m[w])},s(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");s(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=e("../range_list").RangeList,v=function(s){p(l,s);function l(o,u){var m=s.call(this)||this;return m.foldLine=null,m.placeholder=u,m.range=o,m.start=o.start,m.end=o.end,m.sameRow=o.start.row==o.end.row,m.subFolds=m.ranges=[],m}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(m){u.subFolds.push(m.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var u=o.start.row,m=o.start.column,w=0,b=-1;w<this.subFolds.length&&(b=this.subFolds[w].range.compare(u,m),b==1);w++);var M=this.subFolds[w],C=0;if(b==0){if(M.range.containsRange(o))return M.addSubFold(o);C=1}for(var u=o.range.end.row,m=o.range.end.column,k=w,b=-1;k<this.subFolds.length&&(b=this.subFolds[k].range.compare(u,m),b==1);k++);b==0&&k++;for(var x=this.subFolds.splice(w,k-w,o),T=b==0?x.length-1:x.length,R=C;R<T;R++)o.addSubFold(x[R]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(y);function h(s,l){s.row-=l.row,s.row==0&&(s.column-=l.column)}function g(s,l){h(s.start,l),h(s.end,l)}function a(s,l){s.row==0&&(s.column+=l.column),s.row+=l.row}function c(s,l){a(s.start,l),a(s.end,l)}r.Fold=v}),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,f){var p=e("../range").Range,y=e("./fold_line").FoldLine,v=e("./fold").Fold,h=e("../token_iterator").TokenIterator,g=e("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(c,s,l){var o=this.getFoldLine(c);if(!o)return null;for(var u=o.folds,m=0;m<u.length;m++){var w=u[m].range;if(w.contains(c,s)){if(l==1&&w.isEnd(c,s)&&!w.isEmpty()||l==-1&&w.isStart(c,s)&&!w.isEmpty())continue;return u[m]}}},this.getFoldsInRange=function(c){var s=c.start,l=c.end,o=this.$foldData,u=[];s.column+=1,l.column-=1;for(var m=0;m<o.length;m++){var w=o[m].range.compareRange(c);if(w!=2){if(w==-2)break;for(var b=o[m].folds,M=0;M<b.length;M++){var C=b[M];if(w=C.range.compareRange(c),w==-2)break;if(w!=2){if(w==42)break;u.push(C)}}}}return s.column-=1,l.column+=1,u},this.getFoldsInRangeList=function(c){if(Array.isArray(c)){var s=[];c.forEach(function(o){s=s.concat(this.getFoldsInRange(o))},this)}else var s=this.getFoldsInRange(c);return s},this.getAllFolds=function(){for(var c=[],s=this.$foldData,l=0;l<s.length;l++)for(var o=0;o<s[l].folds.length;o++)c.push(s[l].folds[o]);return c},this.getFoldStringAt=function(c,s,l,o){if(o=o||this.getFoldLine(c),!o)return null;for(var u={end:{column:0}},m,w,b=0;b<o.folds.length;b++){w=o.folds[b];var M=w.range.compareEnd(c,s);if(M==-1){m=this.getLine(w.start.row).substring(u.end.column,w.start.column);break}else if(M===0)return null;u=w}return m||(m=this.getLine(w.start.row).substring(u.end.column)),l==-1?m.substring(0,s-u.end.column):l==1?m.substring(s-u.end.column):m},this.getFoldLine=function(c,s){var l=this.$foldData,o=0;for(s&&(o=l.indexOf(s)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.start.row<=c&&u.end.row>=c)return u;if(u.end.row>c)return null}return null},this.getNextFoldLine=function(c,s){var l=this.$foldData,o=0;for(s&&(o=l.indexOf(s)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.end.row>=c)return u}return null},this.getFoldedRowCount=function(c,s){for(var l=this.$foldData,o=s-c+1,u=0;u<l.length;u++){var m=l[u],w=m.end.row,b=m.start.row;if(w>=s){b<s&&(b>=c?o-=s-b:o=0);break}else w>=c&&(b>=c?o-=w-b:o-=w-c+1)}return o},this.$addFoldLine=function(c){return this.$foldData.push(c),this.$foldData.sort(function(s,l){return s.start.row-l.start.row}),c},this.addFold=function(c,s){var l=this.$foldData,o=!1,u;c instanceof v?u=c:(u=new v(s,c),u.collapseChildren=s.collapseChildren),this.$clipRangeToDocument(u.range);var m=u.start.row,w=u.start.column,b=u.end.row,M=u.end.column,C=this.getFoldAt(m,w,1),k=this.getFoldAt(b,M,-1);if(C&&k==C)return C.addSubFold(u);C&&!C.range.isStart(m,w)&&this.removeFold(C),k&&!k.range.isEnd(b,M)&&this.removeFold(k);var x=this.getFoldsInRange(u.range);x.length>0&&(this.removeFolds(x),u.collapseChildren||x.forEach(function(E){u.addSubFold(E)}));for(var T=0;T<l.length;T++){var R=l[T];if(b==R.start.row){R.addFold(u),o=!0;break}else if(m==R.end.row){if(R.addFold(u),o=!0,!u.sameRow){var I=l[T+1];if(I&&I.start.row==b){R.merge(I);break}}break}else if(b<=R.start.row)break}return o||(R=this.$addFoldLine(new y(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(c){c.forEach(function(s){this.addFold(s)},this)},this.removeFold=function(c){var s=c.foldLine,l=s.start.row,o=s.end.row,u=this.$foldData,m=s.folds;if(m.length==1)u.splice(u.indexOf(s),1);else if(s.range.isEnd(c.end.row,c.end.column))m.pop(),s.end.row=m[m.length-1].end.row,s.end.column=m[m.length-1].end.column;else if(s.range.isStart(c.start.row,c.start.column))m.shift(),s.start.row=m[0].start.row,s.start.column=m[0].start.column;else if(c.sameRow)m.splice(m.indexOf(c),1);else{var w=s.split(c.start.row,c.start.column);m=w.folds,m.shift(),w.start.row=m[0].start.row,w.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var s=[],l=0;l<c.length;l++)s.push(c[l]);s.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(c){this.removeFold(c),c.subFolds.forEach(function(s){c.restoreRange(s),this.addFold(s)},this),c.collapseChildren>0&&this.foldAll(c.start.row+1,c.end.row,c.collapseChildren-1),c.subFolds=[]},this.expandFolds=function(c){c.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(c,s){var l,o;if(c==null)l=new p(0,0,this.getLength(),0),s==null&&(s=!0);else if(typeof c=="number")l=new p(c,0,c,this.getLine(c).length);else if("row"in c)l=p.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(m){o=o.concat(this.unfold(m))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&p.comparePoints(o[0].start,l.start)<0&&p.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(s!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(c,s){return!!this.getFoldLine(c,s)},this.getRowFoldEnd=function(c,s){var l=this.getFoldLine(c,s);return l?l.end.row:c},this.getRowFoldStart=function(c,s){var l=this.getFoldLine(c,s);return l?l.start.row:c},this.getFoldDisplayLine=function(c,s,l,o,u){o==null&&(o=c.start.row),u==null&&(u=0),s==null&&(s=c.end.row),l==null&&(l=this.getLine(s).length);var m=this.doc,w="";return c.walk(function(b,M,C,k){if(!(M<o)){if(M==o){if(C<u)return;k=Math.max(u,k)}b!=null?w+=b:w+=m.getLine(M).substring(k,C)}},s,l),w},this.getDisplayLine=function(c,s,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,s,l,o);var m;return m=this.doc.getLine(c),m.substring(o||0,s||m.length)},this.$cloneFoldData=function(){var c=[];return c=this.$foldData.map(function(s){var l=s.folds.map(function(o){return o.clone()});return new y(c,l)}),c},this.toggleFold=function(c){var s=this.selection,l=s.getRange(),o,u;if(l.isEmpty()){var m=l.start;if(o=this.getFoldAt(m.row,m.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(m))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:m.row,column:m.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(m.row,m.column)||l}else{var w=this.getFoldsInRange(l);if(c&&w.length){this.expandFolds(w);return}else w.length==1&&(o=w[0])}if(o||(o=this.getFoldAt(l.start.row,l.start.column)),o&&o.range.toString()==l.toString()){this.expandFold(o);return}var b="...";if(!l.isMultiLine()){if(b=this.getTextRange(l),b.length<4)return;b=b.trim().substring(0,2)+".."}this.addFold(b,l)},this.getCommentFoldRange=function(c,s,l){var o=new h(this,c,s),u=o.getCurrentToken(),m=u&&u.type;if(u&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var w=new RegExp(m),b=new p;if(l!=1){do u=o.stepBackward();while(u&&w.test(u.type));u=o.stepForward()}b.start.row=o.getCurrentTokenRow(),b.start.column=o.getCurrentTokenColumn()+u.value.length,o=new h(this,c,s);var M=this.getState(o.$row);if(l!=-1){var C=-1;do if(u=o.stepForward(),C==-1){var k=this.getState(o.$row);M.toString()!==k.toString()&&(C=o.$row)}else if(o.$row>C)break;while(u&&w.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return b.end.row=o.getCurrentTokenRow(),b.end.column=o.getCurrentTokenColumn(),b}},this.foldAll=function(c,s,l,o){l==null&&(l=1e5);var u=this.foldWidgets;if(u){s=s||this.getLength(),c=c||0;for(var m=c;m<s;m++)if(u[m]==null&&(u[m]=this.getFoldWidget(m)),u[m]=="start"&&!(o&&!o(m))){var w=this.getFoldWidgetRange(m);w&&w.isMultiLine()&&w.end.row<=s&&w.start.row>=c&&(m=w.end.row,w.collapseChildren=l,this.addFold("...",w))}}},this.foldToLevel=function(c){for(this.foldAll();c-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var c=this;this.foldAll(null,null,null,function(s){for(var l=c.getTokens(s),o=0;o<l.length;o++){var u=l[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var s=this.$foldMode;this.$setFolding(null),this.$setFolding(s)}},this.$setFolding=function(c){if(this.$foldMode!=c){if(this.$foldMode=c,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!c||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=c.getFoldWidget.bind(c,this,this.$foldStyle),this.getFoldWidgetRange=c.getFoldWidgetRange.bind(c,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(c,s){var l=this.foldWidgets;if(!l||s&&l[c])return{};for(var o=c-1,u;o>=0;){var m=l[o];if(m==null&&(m=l[o]=this.getFoldWidget(o)),m=="start"){var w=this.getFoldWidgetRange(o);if(u||(u=w),w&&w.end.row>=c)break}o--}return{range:o!==-1&&w,firstRange:u}},this.onFoldWidgetClick=function(c,s){s instanceof g&&(s=s.domEvent);var l={children:s.shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var u=s.target||s.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,s){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),u=l==="end"?-1:1,m=this.getFoldAt(c,u===-1?0:o.length,u);if(m)return s.children||s.all?this.removeFold(m):this.expandFold(m),m;var w=this.getFoldWidgetRange(c,!0);if(w&&!w.isMultiLine()&&(m=this.getFoldAt(w.start.row,w.start.column,1),m&&w.isEqual(m.range)))return this.removeFold(m),m;if(s.siblings){var b=this.getParentFoldRangeData(c);if(b.range)var M=b.range.start.row+1,C=b.range.end.row;this.foldAll(M,C,s.all?1e4:0)}else s.children?(C=w?w.end.row:this.getLength(),this.foldAll(c+1,C,s.all?1e4:0)):w&&(s.all&&(w.collapseChildren=1e4),this.addFold("...",w));return w}},this.toggleFoldWidget=function(c){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var l=this.$toggleFoldWidget(s,{});if(!l){var o=this.getParentFoldRangeData(s,!0);if(l=o.range||o.firstRange,l){s=l.start.row;var u=this.getFoldAt(s,this.getLine(s).length,1);u?this.removeFold(u):this.addFold("...",l)}}},this.updateFoldWidgets=function(c){var s=c.start.row,l=c.end.row-s;if(l===0)this.foldWidgets[s]=null;else if(c.action=="remove")this.foldWidgets.splice(s,l+1,null);else{var o=Array(l+1);o.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(c){var s=c.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.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,f){var p=e("../token_iterator").TokenIterator,y=e("../range").Range;function v(){this.findMatchingBracket=function(h,g){if(h.column==0)return null;var a=g||this.getLine(h.row).charAt(h.column-1);if(a=="")return null;var c=a.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h):null},this.getBracketRange=function(h){var g=this.getLine(h.row),a=!0,c,s=g.charAt(h.column-1),l=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(l||(s=g.charAt(h.column),h={row:h.row,column:h.column+1},l=s&&s.match(/([\(\[\{])|([\)\]\}])/),a=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],h);if(!o)return null;c=y.fromPoints(h,o),a||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],h);if(!o)return null;c=y.fromPoints(o,h),a||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,g){var a=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,s=!g&&a.charAt(h.column-1),l=s&&s.match(c);if(l||(s=(g===void 0||g)&&a.charAt(h.column),h={row:h.row,column:h.column+1},l=s&&s.match(c)),!l)return null;var o=new y(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var m=new y(u.row,u.column,u.row,u.column+1);return[o,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,g,a){var c=this.$brackets[h],s=1,l=new p(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){a||(a=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=g.column-l.getCurrentTokenColumn()-2,m=o.value;;){for(;u>=0;){var w=m.charAt(u);if(w==c){if(s-=1,s==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else w==h&&(s+=1);u-=1}do o=l.stepBackward();while(o&&!a.test(o.type));if(o==null)break;m=o.value,u=m.length-1}return null}},this.$findClosingBracket=function(h,g,a){var c=this.$brackets[h],s=1,l=new p(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){a||(a=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=g.column-l.getCurrentTokenColumn();;){for(var m=o.value,w=m.length;u<w;){var b=m.charAt(u);if(b==c){if(s-=1,s==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else b==h&&(s+=1);u+=1}do o=l.stepForward();while(o&&!a.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var g=new p(this,h.row,h.column),a=this.$findTagName(g);if(a){var c=g.stepBackward();return c.value==="<"?this.$findClosingTag(g,a):this.$findOpeningTag(g,a)}},this.$findTagName=function(h){var g=h.getCurrentToken(),a=!1,c=!1;if(g&&g.type.indexOf("tag-name")===-1)do c?g=h.stepBackward():g=h.stepForward(),g&&(g.value==="/>"?c=!0:g.type.indexOf("tag-name")!==-1&&(a=!0));while(g&&!a);return g},this.$findClosingTag=function(h,g){var a,c=g.value,s=g.value,l=0,o=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=h.stepForward();var u=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length),m=!1;do{if(a=g,a.type.indexOf("tag-close")!==-1&&!m){var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);m=!0}if(g=h.stepForward(),g){if(g.value===">"&&!m){var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);m=!0}if(g.type.indexOf("tag-name")!==-1){if(c=g.value,s===c){if(a.value==="<")l++;else if(a.value==="</"&&(l--,l<0)){h.stepBackward();var b=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);g=h.stepForward();var M=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=h.stepForward()),g&&g.value===">")var C=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(s===c&&g.value==="/>"&&(l--,l<0))var b=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),M=b,C=M,w=new y(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(g&&l>=0);if(o&&w&&b&&C&&u&&M)return{openTag:new y(o.start.row,o.start.column,w.end.row,w.end.column),closeTag:new y(b.start.row,b.start.column,C.end.row,C.end.column),openTagName:u,closeTagName:M}},this.$findOpeningTag=function(h,g){var a=h.getCurrentToken(),c=g.value,s=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,m=new y(l,o,l,u);h.stepForward();var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=h.stepForward()),!(!g||g.value!==">")){var b=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(g=a,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+g.value.length,a=h.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(c===g.value)if(a.value==="<"){if(s++,s>0){var M=new y(l,o,l,u),C=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do g=h.stepForward();while(g&&g.value!==">");var k=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else a.value==="</"&&s--}else if(g.value==="/>"){for(var x=0,T=a;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===c){s--;break}else if(T.value==="<")break;T=h.stepBackward(),x++}for(var R=0;R<x;R++)h.stepForward()}}while(a&&s<=0);if(C&&k&&m&&b&&M&&w)return{openTag:new y(C.start.row,C.start.column,k.end.row,k.end.column),closeTag:new y(m.start.row,m.start.column,b.end.row,b.end.column),openTagName:M,closeTagName:w}}}}r.BracketMatch=v}),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,f){var p=e("./lib/oop"),y=e("./lib/lang"),v=e("./bidihandler").BidiHandler,h=e("./config"),g=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,c=e("./mode/text").Mode,s=e("./range").Range,l=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,m=e("./search_highlight").SearchHighlight,w=e("./undomanager").UndoManager,b=function(){function S(_,$){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++S.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
+
`)},this.bgTokenizer=new u(new c().getTokenizer(),this);var L=this;this.bgTokenizer.on("update",function(O){L._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new a(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new v(this),h.resetOptions(this),this.setMode($),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return S.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=y.delayedCall(this.endOperation.bind(this,!0))},S.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},S.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection($),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},S.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},S.prototype.getDocument=function(){return this.doc},Object.defineProperty(S.prototype,"widgetManager",{get:function(){var _=new l(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),S.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,L=this.$getRowCacheIndex(this.$docRowCache,_)+1;$>L&&(this.$docRowCache.splice(L,$),this.$screenRowCache.splice(L,$))},S.prototype.$getRowCacheIndex=function(_,$){for(var L=0,O=_.length-1;L<=O;){var F=L+O>>1,H=_[F];if($>H)L=F+1;else if($<H)O=F-1;else return F}return L-1},S.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},S.prototype.onChangeFold=function(_){var $=_.data;this.$resetRowCache($.start.row)},S.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var $=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},S.prototype.onSelectionChange=function(){this._signal("changeSelection")},S.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},S.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var $=new w;$.$undoStack=_.history.undo,$.$redoStack=_.history.redo,$.mark=_.history.mark,$.$rev=_.history.rev;var L=new S(_.value);return _.folds.forEach(function(O){L.addFold("...",s.fromPoints(O.start,O.end))}),L.setAnnotations(_.annotations),L.setBreakpoints(_.breakpoints),L.setMode(_.mode),L.setScrollLeft(_.scrollLeft),L.setScrollTop(_.scrollTop),L.setUndoManager($),L.selection.fromJSON(_.selection),L},S.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},S.prototype.toString=function(){return this.doc.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.getState=function(_){return this.bgTokenizer.getState(_)},S.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},S.prototype.getTokenAt=function(_,$){var L=this.bgTokenizer.getTokens(_),O,F=0;if($==null){var H=L.length-1;F=this.getLine(_).length}else for(var H=0;H<L.length&&(F+=L[H].value.length,!(F>=$));H++);return O=L[H],O?(O.index=H,O.start=F-O.value.length,O):null},S.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var $=this;_.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=y.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?y.stringRepeat(" ",this.getTabSize()):" "},S.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(_){this.setOption("tabSize",_)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},S.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(_,$){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+$,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(_,$){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var $=0;$<_.length;$++)this.$breakpoints[_[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},S.prototype.setBreakpoint=function(_,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[_]=$:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.addMarker=function(_,$,L,O){var F=this.$markerId++,H={range:_,type:L||"line",renderer:typeof L=="function"?L:null,clazz:$,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},S.prototype.addDynamicMarker=function(_,$){if(_.update){var L=this.$markerId++;return _.id=L,_.inFront=!!$,$?(this.$frontMarkers[L]=_,this._signal("changeFrontMarker")):(this.$backMarkers[L]=_,this._signal("changeBackMarker")),_}},S.prototype.removeMarker=function(_){var $=this.$frontMarkers[_]||this.$backMarkers[_];if($){var L=$.inFront?this.$frontMarkers:this.$backMarkers;delete L[_],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},S.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},S.prototype.highlight=function(_){if(!this.$searchHighlight){var $=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(_)},S.prototype.highlightLines=function(_,$,L,O){typeof $!="number"&&(L=$,$=_),L||(L="ace_step");var F=new s(_,0,$,1/0);return F.id=this.addMarker(F,L,"fullLine",O),F},S.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},S.prototype.getAnnotations=function(){return this.$annotations||[]},S.prototype.clearAnnotations=function(){this.setAnnotations([])},S.prototype.$detectNewLine=function(_){var $=_.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
|
198
|
+
`},S.prototype.getWordRange=function(_,$){var L=this.getLine(_),O=!1;if($>0&&(O=!!L.charAt($-1).match(this.tokenRe)),O||(O=!!L.charAt($).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(L.slice($-1,$+1)))var F=/\s/;else var F=this.nonTokenRe;var H=$;if(H>0){do H--;while(H>=0&&L.charAt(H).match(F));H++}for(var j=$;j<L.length&&L.charAt(j).match(F);)j++;return new s(_,H,_,j)},S.prototype.getAWordRange=function(_,$){for(var L=this.getWordRange(_,$),O=this.getLine(L.end.row);O.charAt(L.end.column).match(/[ \t]/);)L.end.column+=1;return L},S.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},S.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},S.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},S.prototype.getUseWorker=function(){return this.$useWorker},S.prototype.onReloadTokenizer=function(_){var $=_.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",_)},S.prototype.setMode=function(_,$){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var L=_,O=L.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!L){this.$onChangeMode(this.$modes[O]),$&&$();return}this.$modeId=O,h.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return $&&$();this.$modes[O]&&!L?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(L),L||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},S.prototype.$onChangeMode=function(_,$){if($||(this.$modeId=_.$id),this.$mode!==_){var L=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,$||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:L,mode:_}))}},S.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},S.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){h.warn("Could not load worker",_),this.$worker=null}},S.prototype.getMode=function(){return this.$mode},S.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},S.prototype.getScrollTop=function(){return this.$scrollTop},S.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},S.prototype.getScrollLeft=function(){return this.$scrollLeft},S.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},S.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>_&&(_=$.screenWidth)}),this.lineWidgetWidth=_},S.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),L=this.$rowLengthCache,O=0,F=0,H=this.$foldData[F],j=H?H.start.row:1/0,V=$.length,q=0;q<V;q++){if(q>j){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],j=H?H.start.row:1/0}L[q]==null&&(L[q]=this.$getStringScreenWidth($[q])[0]),L[q]>O&&(O=L[q])}this.screenWidth=O}},S.prototype.getLine=function(_){return this.doc.getLine(_)},S.prototype.getLines=function(_,$){return this.doc.getLines(_,$)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},S.prototype.insert=function(_,$){return this.doc.insert(_,$)},S.prototype.remove=function(_){return this.doc.remove(_)},S.prototype.removeFullLines=function(_,$){return this.doc.removeFullLines(_,$)},S.prototype.undoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var L=_.length-1;L!=-1;L--){var O=_[L];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!$&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var L=0;L<_.length;L++){var O=_[L];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!$&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},S.prototype.setUndoSelect=function(_){this.$undoSelect=_},S.prototype.$getUndoSelection=function(_,$){function L(V){return $?V.action!=="insert":V.action==="insert"}for(var O,F,H=0;H<_.length;H++){var j=_[H];if(j.start){if(!O){L(j)?O=s.fromPoints(j.start,j.end):O=s.fromPoints(j.start,j.start);continue}L(j)?(F=j.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=j.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=j.start,O.compare(F.row,F.column)==-1&&(O=s.fromPoints(j.start,j.start)))}}return O},S.prototype.replace=function(_,$){return this.doc.replace(_,$)},S.prototype.moveText=function(_,$,L){var O=this.getTextRange(_),F=this.getFoldsInRange(_),H=s.fromPoints($,$);if(!L){this.remove(_);var j=_.start.row-_.end.row,V=j?-_.end.column:_.start.column-_.end.column;V&&(H.start.row==_.end.row&&H.start.column>_.end.column&&(H.start.column+=V),H.end.row==_.end.row&&H.end.column>_.end.column&&(H.end.column+=V)),j&&H.start.row>=_.end.row&&(H.start.row+=j,H.end.row+=j)}if(H.end=this.insert(H.start,O),F.length){var q=_.start,X=H.start,j=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==q.row&&(re.start.column+=V),re.end.row==q.row&&(re.end.column+=V),re.start.row+=j,re.end.row+=j,re}))}return H},S.prototype.indentRows=function(_,$,L){L=L.replace(/\t/g,this.getTabString());for(var O=_;O<=$;O++)this.doc.insertInLine({row:O,column:0},L)},S.prototype.outdentRows=function(_){for(var $=_.collapseRows(),L=new s(0,0,0,0),O=this.getTabSize(),F=$.start.row;F<=$.end.row;++F){var H=this.getLine(F);L.start.row=F,L.end.row=F;for(var j=0;j<O&&H.charAt(j)==" ";++j);j<O&&H.charAt(j)==" "?(L.start.column=j,L.end.column=j+1):(L.start.column=0,L.end.column=j),this.remove(L)}},S.prototype.$moveLines=function(_,$,L){if(_=this.getRowFoldStart(_),$=this.getRowFoldEnd($),L<0){var O=this.getRowFoldStart(_+L);if(O<0)return 0;var F=O-_}else if(L>0){var O=this.getRowFoldEnd($+L);if(O>this.doc.getLength()-1)return 0;var F=O-$}else{_=this.$clipRowToDocument(_),$=this.$clipRowToDocument($);var F=$-_+1}var H=new s(_,0,$,Number.MAX_VALUE),j=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=L==0?this.doc.getLines(_,$):this.doc.removeFullLines(_,$);return this.doc.insertFullLines(_+F,V),j.length&&this.addFolds(j),F},S.prototype.moveLinesUp=function(_,$){return this.$moveLines(_,$,-1)},S.prototype.moveLinesDown=function(_,$){return this.$moveLines(_,$,1)},S.prototype.duplicateLines=function(_,$){return this.$moveLines(_,$,0)},S.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(_,$){return $<0?0:Math.min(this.doc.getLine(_).length,$)},S.prototype.$clipPositionToDocument=function(_,$){if($=Math.max(0,$),_<0)_=0,$=0;else{var L=this.doc.getLength();_>=L?(_=L-1,$=this.doc.getLine(L-1).length):$=Math.min(this.doc.getLine(_).length,$)}return{row:_,column:$}},S.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var $=this.doc.getLength()-1;return _.end.row>$?(_.end.row=$,_.end.column=this.doc.getLine($).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},S.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(_,$){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:_,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(_,$){var L=this.$wrapLimitRange;L.max<0&&(L={min:$,max:$});var O=this.$constrainWrapLimit(_,L.min,L.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},S.prototype.$constrainWrapLimit=function(_,$,L){return $&&(_=Math.max($,_)),L&&(_=Math.min(L,_)),_},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(_){var $=this.$useWrapMode,L=_.action,O=_.start,F=_.end,H=O.row,j=F.row,V=j-H,q=null;if(this.$updating=!0,V!=0)if(L==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(H,V);var X=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var re=this.getFoldLine(H);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}j=H}else{var J=Array(V);J.unshift(H,0);var ae=$?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(H),Z=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(j,0,F.column-O.column))):me==-1&&(G.addRemoveChars(H,0,F.column-O.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=H&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),L==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(H);G&&G.addRemoveChars(H,O.column,V)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(H,j):this.$updateRowLengthCache(H,j),q},S.prototype.$updateRowLengthCache=function(_,$){this.$rowLengthCache[_]=null,this.$rowLengthCache[$]=null},S.prototype.$updateWrapData=function(_,$){var L=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,j,V,q=_;for($=Math.min($,L.length-1);q<=$;)V=this.getFoldLine(q,V),V?(j=[],V.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,j.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=x}else J=this.$getDisplayTokens(L[G].substring(re,Z),j.length);j=j.concat(J)}).bind(this),V.end.row,L[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(j,H,O),q=V.end.row+1):(j=this.$getDisplayTokens(L[q]),F[q]=this.$computeWrapSplits(j,H,O),q++)},S.prototype.$computeWrapSplits=function(_,$,L){if(_.length==0)return[];var O=[],F=_.length,H=0,j=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=$<=Math.max(2*L,8)||q===!1?0:Math.floor($/2);function G(){var me=0;if(X===0)return me;if(q)for(var we=0;we<_.length;we++){var pe=_[we];if(pe==R)me+=1;else if(pe==I)me+=L;else{if(pe==E)continue;break}}return V&&q!==!1&&(me+=L),Math.min(me,X)}function Z(me){for(var we=me-H,pe=H;pe<me;pe++){var _e=_[pe];(_e===12||_e===2)&&(we-=1)}O.length||(re=G(),O.indent=re),j+=we,O.push(j),H=me}for(var re=0;F-H>$-re;){var J=H+$-re;if(_[J-1]>=R&&_[J]>=R){Z(J);continue}if(_[J]==k||_[J]==x){for(J;J!=H-1&&_[J]!=k;J--);if(J>H){Z(J);continue}for(J=H+$,J;J<_.length&&_[J]==x;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-($-($>>2)),H-1);J>ae&&_[J]<k;)J--;if(V){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==T;)J--}else for(;J>ae&&_[J]<R;)J--;if(J>ae){Z(++J);continue}J=H+$,_[J]==C&&J--,Z(J-re)}return O},S.prototype.$getDisplayTokens=function(_,$){var L=[],O;$=$||0;for(var F=0;F<_.length;F++){var H=_.charCodeAt(F);if(H==9){O=this.getScreenTabSize(L.length+$),L.push(I);for(var j=1;j<O;j++)L.push(E)}else H==32?L.push(R):H>39&&H<48||H>57&&H<64?L.push(T):H>=4352&&N(H)?L.push(M,C):L.push(M)}return L},S.prototype.$getStringScreenWidth=function(_,$,L){if($==0)return[0,0];$==null&&($=1/0),L=L||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?L+=this.getScreenTabSize(L):O>=4352&&N(O)?L+=2:L+=1,!(L>$));F++);return[L,F]},S.prototype.getRowLength=function(_){var $=1;return this.lineWidgets&&($+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?$:this.$wrapData[_].length+$},S.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},S.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE),L=this.$wrapData[$.row];return L.length&&L[0]<$.column?L.indent:0}else return 0},S.prototype.getScreenLastRowColumn=function(_){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},S.prototype.getDocumentLastRowColumn=function(_,$){var L=this.documentToScreenRow(_,$);return this.getScreenLastRowColumn(L)},S.prototype.getDocumentLastRowColumnPosition=function(_,$){var L=this.documentToScreenRow(_,$);return this.screenToDocumentPosition(L,Number.MAX_VALUE/10)},S.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},S.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},S.prototype.screenToDocumentRow=function(_,$){return this.screenToDocumentPosition(_,$).row},S.prototype.screenToDocumentColumn=function(_,$){return this.screenToDocumentPosition(_,$).column},S.prototype.screenToDocumentPosition=function(_,$,L){if(_<0)return{row:0,column:0};var O,Z=0,F=0,H,G=0,j=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],re=_>V[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=_&&(j=this.getRowLength(Z),!(G+j>_||Z>=J));)G+=j,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),re&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)O=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+j<=_||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var we=0,pe=Math.floor(_-G);if(this.$useWrapMode){var _e=this.$wrapData[Z];_e&&(H=_e[pe],pe>0&&_e.length&&(we=_e.indent,F=_e[pe-1]||_e[_e.length-1],O=O.substring(F)))}return L!==void 0&&this.$bidiHandler.isBidiRow(G+pe,Z,pe)&&($=this.$bidiHandler.offsetToCol(L)),F+=this.$getStringScreenWidth(O,$-we)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Z,column:F}},S.prototype.documentToScreenPosition=function(_,$){if(typeof $>"u")var L=this.$clipPositionToDocument(_.row,_.column);else L=this.$clipPositionToDocument(_,$);_=L.row,$=L.column;var G=0,O=null,F=null;F=this.getFoldAt(_,$,1),F&&(_=F.start.row,$=F.start.column);var H,X=0,j=this.$docRowCache,V=this.$getRowCacheIndex(j,_),q=j.length;if(q&&V>=0)var X=j[V],G=this.$screenRowCache[V],Z=_>j[q-1];else var Z=!q;for(var re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<_;){if(X>=J){if(H=re.end.row+1,H>_)break;re=this.getNextFoldLine(H,re),J=re?re.start.row:1/0}else H=X+1;G+=this.getRowLength(X),X=H,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";re&&X>=J?(ae=this.getFoldDisplayLine(re,_,$),O=re.start.row):(ae=this.getLine(_).substring(0,$),O=_);var me=0;if(this.$useWrapMode){var we=this.$wrapData[O];if(we){for(var pe=0;ae.length>=we[pe];)G++,pe++;ae=ae.substring(we[pe-1]||0,ae.length),me=pe>0?we.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},S.prototype.documentToScreenColumn=function(_,$){return this.documentToScreenPosition(_,$).column},S.prototype.documentToScreenRow=function(_,$){return this.documentToScreenPosition(_,$).row},S.prototype.getScreenLength=function(){var _=0,$=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,O=0,F=0,$=this.$foldData[F++],H=$?$.start.row:1/0;O<L;){var j=this.$wrapData[O];_+=j?j.length+1:1,O++,O>H&&(O=$.end.row+1,$=this.$foldData[F++],H=$?$.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)$=V[F],_-=$.end.row-$.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},S.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function($,L,O){if(L===0)return[0,0];L||(L=1/0),O=O||0;var F,H;for(H=0;H<$.length&&(F=$.charAt(H),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>L));H++);return[O,H]})},S.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(_.row);return $[_.column-1]},S.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()},S}();b.$uid=0,b.prototype.$modes=h.$modes,b.prototype.getValue=b.prototype.toString,b.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},b.prototype.$overwrite=!1,b.prototype.$mode=null,b.prototype.$modeId=null,b.prototype.$scrollTop=0,b.prototype.$scrollLeft=0,b.prototype.$wrapLimit=80,b.prototype.$useWrapMode=!1,b.prototype.$wrapLimitRange={min:null,max:null},b.prototype.lineWidgets=null,b.prototype.isFullWidth=N,p.implement(b.prototype,g);var M=1,C=2,k=3,x=4,T=9,R=10,I=11,E=12;function N(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}e("./edit_session/folding").Folding.call(b.prototype),e("./edit_session/bracket_match").BracketMatch.call(b.prototype),h.defineOptions(b.prototype,"session",{wrap:{set:function(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var _=typeof S=="number"?S:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,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(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,r,f){var p=e("./lib/lang"),y=e("./lib/oop"),v=e("./range").Range,h=function(){function a(){this.$options={}}return a.prototype.set=function(c){return y.mixin(this.$options,c),this},a.prototype.getOptions=function(){return p.copyObject(this.$options)},a.prototype.setOptions=function(c){this.$options=c},a.prototype.find=function(c){var s=this.$options,l=this.$matchIterator(c,s);if(!l)return!1;var o=null;return l.forEach(function(u,m,w,b){return o=new v(u,m,w,b),m==b&&s.start&&s.start.start&&s.skipCurrent!=!1&&o.isEqual(s.start)?(o=null,!1):!0}),o},a.prototype.findAll=function(c){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var l=s.range,o=l?c.getLines(l.start.row,l.end.row):c.doc.getAllLines(),u=[],m=s.re;if(s.$isMultiLine){var w=m.length,b=o.length-w,M;e:for(var C=m.offset||0;C<=b;C++){for(var k=0;k<w;k++)if(o[C+k].search(m[k])==-1)continue e;var x=o[C],T=o[C+w-1],R=x.length-x.match(m[0])[0].length,I=T.match(m[w-1])[0].length;M&&M.end.row===C&&M.end.column>R||(u.push(M=new v(C,R,C+w-1,I)),w>2&&(C=C+w-2))}}else for(var E=0;E<o.length;E++)for(var N=p.getMatchOffsets(o[E],m),k=0;k<N.length;k++){var S=N[k];u.push(new v(E,S.offset,E,S.offset+S.length))}if(l){for(var _=l.start.column,$=l.end.column,E=0,k=u.length-1;E<k&&u[E].start.column<_&&u[E].start.row==0;)E++;for(var L=l.end.row-l.start.row;E<k&&u[k].end.column>$&&u[k].end.row==L;)k--;for(u=u.slice(E,k+1),E=0,k=u.length;E<k;E++)u[E].start.row+=l.start.row,u[E].end.row+=l.start.row}return u},a.prototype.replace=function(c,s){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return s;if(o){var u=o.exec(c);if(!u||u[0].length!=c.length)return null;if(l.regExp||(s=s.replace(/\$/g,"$$$$")),s=c.replace(o,s),l.preserveCase){s=s.split("");for(var m=Math.min(c.length,c.length);m--;){var w=c[m];w&&w.toLowerCase()!=w?s[m]=s[m].toUpperCase():s[m]=s[m].toLowerCase()}s=s.join("")}return s}},a.prototype.$assembleRegExp=function(c,s){if(c.needle instanceof RegExp)return c.re=c.needle;var l=c.needle;if(!c.needle)return c.re=!1;c.regExp||(l=p.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=g(l,c)),c.$isMultiLine=!s&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var u=new RegExp(l,o)}catch{u=!1}return c.re=u},a.prototype.$assembleMultilineRegExp=function(c,s){for(var l=c.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),o=[],u=0;u<l.length;u++)try{o.push(new RegExp(l[u],s))}catch{return!1}return o},a.prototype.$matchIterator=function(c,s){var l=this.$assembleRegExp(s);if(!l)return!1;var o=s.backwards==!0,u=s.skipCurrent!=!1,m=l.unicode,w=s.range,b=s.start;b||(b=w?w[o?"end":"start"]:c.selection.getRange()),b.start&&(b=b[u!=o?"end":"start"]);var M=w?w.start.row:0,C=w?w.end.row:c.getLength()-1;if(o)var k=function(R){var I=b.row;if(!T(I,b.column,R)){for(I--;I>=M;I--)if(T(I,Number.MAX_VALUE,R))return;if(s.wrap!=!1){for(I=C,M=b.row;I>=M;I--)if(T(I,Number.MAX_VALUE,R))return}}};else var k=function(R){var I=b.row;if(!T(I,b.column,R)){for(I=I+1;I<=C;I++)if(T(I,0,R))return;if(s.wrap!=!1){for(I=M,C=b.row;I<=C;I++)if(T(I,0,R))return}}};if(s.$isMultiLine)var x=l.length,T=function(R,I,E){var N=o?R-x+1:R;if(!(N<0||N+x>c.getLength())){var S=c.getLine(N),_=S.search(l[0]);if(!(!o&&_<I||_===-1)){for(var $=1;$<x;$++)if(S=c.getLine(N+$),S.search(l[$])==-1)return;var L=S.match(l[x-1])[0].length;if(!(o&&L>I)&&E(N,_,N+x-1,L))return!0}}};else if(o)var T=function(R,I,E){var N=c.getLine(R),S=[],_,$=0;for(l.lastIndex=0;_=l.exec(N);){var L=_[0].length;if($=_.index,!L){if($>=N.length)break;l.lastIndex=$+=p.skipEmptyMatch(N,$,m)}if(_.index+L>I)break;S.push(_.index,L)}for(var O=S.length-1;O>=0;O-=2){var F=S[O-1],L=S[O];if(E(R,F,R,F+L))return!0}};else var T=function(R,I,E){var N=c.getLine(R),S,_;for(l.lastIndex=I;_=l.exec(N);){var $=_[0].length;if(S=_.index,E(R,S,R,S+$))return!0;if(!$&&(l.lastIndex=S+=p.skipEmptyMatch(N,S,m),S>=N.length))return!1}};return{forEach:k}},a}();function g(a,c){var s=p.supportsLookbehind();function l(w,b){b===void 0&&(b=!0);var M=s&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return M.test(w)||c.regExp?s&&c.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(a),u=o[0],m=o[o.length-1];return l(u)+a+l(m,!1)}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var p=this&&this.__extends||function(){var s=function(l,o){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(u[w]=m[w])},s(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");s(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=e("../lib/keys"),v=e("../lib/useragent"),h=y.KEY_MODS,g=function(){function s(l,o){this.$init(l,o,!1)}return s.prototype.$init=function(l,o,u){this.platform=o||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},s.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},s.prototype.removeCommand=function(l,o){var u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],o||delete this.commands[u];var m=this.commandKeyBinding;for(var w in m){var b=m[w];if(b==l)delete m[w];else if(Array.isArray(b)){var M=b.indexOf(l);M!=-1&&(b.splice(M,1),b.length==1&&(m[w]=b[0]))}}},s.prototype.bindKey=function(l,o,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(m){var w="";if(m.indexOf(" ")!=-1){var b=m.split(/\s+/);m=b.pop(),b.forEach(function(k){var x=this.parseKeys(k),T=h[x.hashId]+x.key;w+=(w?" ":"")+T,this._addCommandToBinding(w,"chainKeys")},this),w+=" "}var M=this.parseKeys(m),C=h[M.hashId]+M.key;this._addCommandToBinding(w+C,o,u)},this)}},s.prototype._addCommandToBinding=function(l,o,u){var m=this.commandKeyBinding,w;if(!o)delete m[l];else if(!m[l]||this.$singleCommand)m[l]=o;else{Array.isArray(m[l])?(w=m[l].indexOf(o))!=-1&&m[l].splice(w,1):m[l]=[m[l]],typeof u!="number"&&(u=a(o));var b=m[l];for(w=0;w<b.length;w++){var M=b[w],C=a(M);if(C>u)break}b.splice(w,0,o)}},s.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var u=l[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},s.prototype.removeCommands=function(l){Object.keys(l).forEach(function(o){this.removeCommand(l[o])},this)},s.prototype.bindKeys=function(l){Object.keys(l).forEach(function(o){this.bindKey(o,l[o])},this)},s.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},s.prototype.parseKeys=function(l){var o=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),u=o.pop(),m=y[u];if(y.FUNCTION_KEYS[m])u=y.FUNCTION_KEYS[m].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var w=0,b=o.length;b--;){var M=y.KEY_MODS[o[b]];if(M==null)return typeof console<"u"&&console.error("invalid modifier "+o[b]+" in "+l),!1;w|=M}return{key:u,hashId:w}},s.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},s.prototype.handleKeyboard=function(l,o,u,m){if(!(m<0)){var w=h[o]+u,b=this.commandKeyBinding[w];return l.$keyChain&&(l.$keyChain+=" "+w,b=this.commandKeyBinding[l.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||w,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-w.length-1):(o==-1||m>0)&&(l.$keyChain="")),{command:b})}},s.prototype.getStatusText=function(l,o){return o.$keyChain||""},s}();function a(s){return typeof s=="object"&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}var c=function(s){p(l,s);function l(o,u){var m=s.call(this,o,u)||this;return m.$singleCommand=!0,m}return l}(g);c.call=function(s,l,o){g.prototype.$init.call(s,l,o,!0)},g.call=function(s,l,o){g.prototype.$init.call(s,l,o,!1)},r.HashHandler=c,r.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,r,f){var p=this&&this.__extends||function(){var a=function(c,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},a(c,s)};return function(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");a(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),y=e("../lib/oop"),v=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,g=function(a){p(c,a);function c(s,l){var o=a.call(this,l,s)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return c.prototype.exec=function(s,l,o){if(Array.isArray(s)){for(var u=s.length;u--;)if(this.exec(s[u],l,o))return!0;return!1}if(typeof s=="string"&&(s=this.commands[s]),!this.canExecute(s,l))return!1;var m={editor:l,command:s,args:o};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},c.prototype.canExecute=function(s,l){return typeof s=="string"&&(s=this.commands[s]),!(!s||l&&l.$readOnly&&!s.readOnly||this.$checkCommandState!=!1&&s.isAvailable&&!s.isAvailable(l))},c.prototype.toggleRecording=function(s){if(!this.$inReplay)return s&&s._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},c.prototype.replay=function(s){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(s);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,s):this.exec(l[0],s,l[1])},this)}finally{this.$inReplay=!1}}},c.prototype.trimMacro=function(s){return s.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},c}(v);y.implement(g.prototype,h),r.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,r,f){var p=e("../lib/lang"),y=e("../config"),v=e("../range").Range;function h(a,c){return{win:a,mac:c}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(a){y.loadModule("ace/ext/settings_menu",function(c){c.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(a){y.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(a){y.loadModule("ace/ext/error_marker",function(c){c.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,c){typeof c=="number"&&!isNaN(c)&&a.gotoLine(c),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){y.loadModule("ace/ext/searchbox",function(c){c.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,c){a.navigateUp(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(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,c){a.navigateDown(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(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,c){a.navigateLeft(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(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,c){a.navigateRight(c.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 c=a.$copyWithEmptySelection&&a.selection.isEmpty(),s=c?a.selection.getLineRange():a.selection.getRange();a._emit("cut",s),s.isEmpty()||a.session.remove(s),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,c){a.$handlePaste(c)},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){y.loadModule("ace/ext/searchbox",function(c){c.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 c=a.selection.getRange();c.start.column=0,a.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(a){var c=a.selection.getRange();c.end.column=Number.MAX_VALUE,a.session.remove(c)},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,c){a.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,c){a.insert(p.stringRepeat(c.text||"",c.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 c=a.selection.getRange();c.start.column=c.end.column=0,c.end.row++,a.selection.setRange(c,!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 c=a.selection.isBackwards(),s=c?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),l=c?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),o=a.session.doc.getLine(s.row).length,u=a.session.doc.getTextRange(a.selection.getRange()),m=u.replace(/\n\s*/," ").length,w=a.session.doc.getLine(s.row),b=s.row+1;b<=l.row+1;b++){var M=p.stringTrimLeft(p.stringTrimRight(a.session.doc.getLine(b)));M.length!==0&&(M=" "+M),w+=M}l.row+1<a.session.doc.getLength()-1&&(w+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new v(s.row,0,l.row+2,0),w),m>0?(a.selection.moveCursorTo(s.row,s.column),a.selection.selectTo(s.row,s.column+m)):(o=a.session.doc.getLine(s.row).length>o?o+1:o,a.selection.moveCursorTo(s.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(a){var c=a.session.doc.getLength()-1,s=a.session.doc.getLine(c).length,l=a.selection.rangeList.ranges,o=[];l.length<1&&(l=[a.selection.getRange()]);for(var u=0;u<l.length;u++)u==l.length-1&&(l[u].end.row===c&&l[u].end.column===s||o.push(new v(l[u].end.row,l[u].end.column,c,s))),u===0?l[u].start.row===0&&l[u].start.column===0||o.push(new v(0,0,l[u].start.row,l[u].start.column)):o.push(new v(l[u-1].end.row,l[u-1].end.column,l[u].start.row,l[u].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var u=0;u<o.length;u++)a.selection.addRange(o[u],!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(`
|
201
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var c=a.getCursorPosition();a.selection.moveTo(c.row-1,Number.MAX_VALUE),a.insert(`
|
202
|
+
`),c.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 g=1;g<9;g++)r.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,r,f){var p=e("../lib/keys"),y=e("../mouse/default_gutter_handler").GutterTooltip,v=function(){function g(a){this.editor=a,this.gutterLayer=a.renderer.$gutterLayer,this.element=a.renderer.$gutter,this.lines=a.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new y(this.editor)}return g.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},g.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},g.prototype.$onGutterKeyDown=function(a){if(this.annotationTooltip.isOpen){a.preventDefault(),a.keyCode===p.escape&&this.annotationTooltip.hideTooltip();return}if(a.target===this.element){if(a.keyCode!=p.enter)return;a.preventDefault();var c=this.editor.getCursorPosition().row;this.editor.isRowVisible(c)||this.editor.scrollToLine(c,!0,!0),setTimeout((function(){var s=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(s),o=this.$findNearestAnnotation(s);if(!(l===null&&o===null)){if(l===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&o===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-s)<Math.abs(l-s)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(a),setTimeout((function(){this.editor._signal("gutterkeydown",new h(a,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(a){if(a.keyCode===p.tab){a.preventDefault();return}if(a.keyCode===p.escape){a.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(a.keyCode===p.up){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(a.keyCode===p.down){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(a.keyCode===p.left){a.preventDefault(),this.$switchLane("annotation");return}if(a.keyCode===p.right){a.preventDefault(),this.$switchLane("fold");return}if(a.keyCode===p.enter||a.keyCode===p.space){switch(a.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var c=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),a),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==c&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(c),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var s=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=s.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=l.right+"px",o.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(a){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),s=this.$getFoldWidget(a).style.display!=="none";return c&&s},g.prototype.$isAnnotationVisible=function(a){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),s=this.$getAnnotation(a).style.display!=="none";return c&&s},g.prototype.$getFoldWidget=function(a){var c=this.lines.get(a),s=c.element;return s.childNodes[1]},g.prototype.$getAnnotation=function(a){var c=this.lines.get(a),s=c.element;return s.childNodes[2]},g.prototype.$findNearestFoldWidget=function(a){if(this.$isFoldWidgetVisible(a))return a;for(var c=0;a-c>0||a+c<this.lines.getLength()-1;){if(c++,a-c>=0&&this.$isFoldWidgetVisible(a-c))return a-c;if(a+c<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(a+c))return a+c}return null},g.prototype.$findNearestAnnotation=function(a){if(this.$isAnnotationVisible(a))return a;for(var c=0;a-c>0||a+c<this.lines.getLength()-1;){if(c++,a-c>=0&&this.$isAnnotationVisible(a-c))return a-c;if(a+c<=this.lines.getLength()-1&&this.$isAnnotationVisible(a+c))return a+c}return null},g.prototype.$focusFoldWidget=function(a){if(a!=null){var c=this.$getFoldWidget(a);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$focusAnnotation=function(a){if(a!=null){var c=this.$getAnnotation(a);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$blurFoldWidget=function(a){var c=this.$getFoldWidget(a);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$blurAnnotation=function(a){var c=this.$getAnnotation(a);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(a){switch(a){case"annotation":if(this.activeLane==="annotation")break;var c=this.$findNearestAnnotation(this.activeRowIndex);if(c==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var s=this.$findNearestFoldWidget(this.activeRowIndex);if(s==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(a){var c=this.lines.get(a);return c?c.row:null},g.prototype.$rowToRowIndex=function(a){for(var c=0;c<this.lines.getLength();c++){var s=this.lines.get(c);if(s.row==a)return c}return null},g}();r.GutterKeyboardHandler=v;var h=function(){function g(a,c){this.gutterKeyboardHandler=c,this.domEvent=a}return g.prototype.getKey=function(){return p.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();r.GutterKeyboardEvent=h}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(e,r,f){var p=this&&this.__values||function(S){var _=typeof Symbol=="function"&&Symbol.iterator,$=_&&S[_],L=0;if($)return $.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&L>=S.length&&(S=void 0),{value:S&&S[L++],done:!S}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/lang"),g=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,s=e("./mouse/fold_handler").FoldHandler,l=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,m=e("./range").Range,w=e("./lib/event_emitter").EventEmitter,b=e("./commands/command_manager").CommandManager,M=e("./commands/default_commands").commands,C=e("./config"),k=e("./token_iterator").TokenIterator,x=e("./keyboard/gutter_handler").GutterKeyboardHandler,T=e("./config").nls,R=e("./clipboard"),I=e("./lib/keys"),E=function(){function S(_,$,L){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++S.$uid,this.commands=new b(g.isMac?"mac":"win",M),typeof document=="object"&&(this.textInput=new a(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new s(this)),this.keyBinding=new l(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,H){H._$emitInputEvent.schedule(31)}),this.setSession($||L&&L.session||new o("")),C.resetOptions(this),L&&this.setOptions(L),C._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(_){this.session.startOperation(_)},S.prototype.endOperation=function(_){this.session.endOperation(_)},S.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},S.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var $=this.curOp.command,L=$&&$.scrollIntoView;if(L){switch(L){case"center-animate":L="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}L=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var $=this.prevOp,L=this.$mergeableCommands,O=$.command&&_.command.name==$.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test($.args)),this.mergeNextCommand=!0}else O=O&&L.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:L.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(_,$){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var L=this;C.loadModule(["keybinding",_],function(O){L.$keybindingId==_&&L.keyBinding.setKeyboardHandler(O&&O.handler),$&&$()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),$&&$()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var $=this.session;if($){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=_.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(_)),this._signal("changeSession",{session:_,oldSession:$}),this.curOp=null,$&&$._signal("changeEditor",{oldEditor:this}),$&&($.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(_,$){return this.session.doc.setValue(_),$?$==1?this.navigateFileEnd():$==-1&&this.navigateFileStart():this.selectAll(),_},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(_){this.renderer.onResize(_)},S.prototype.setTheme=function(_,$){this.renderer.setTheme(_,$)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(_){this.renderer.setStyle(_)},S.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(_){this.setOption("fontSize",_)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var $=_.session;if(!(!$||$.destroyed)){$.$bracketHighlight&&($.$bracketHighlight.markerIds.forEach(function(G){$.removeMarker(G)}),$.$bracketHighlight=null);var L=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),H=$.getMatchingBracketRanges(L,F);if(!H){var j=new k($,L.row,L.column),V=j.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=$.getMatchingTags(L);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&$.$mode.getMatching&&(H=$.$mode.getMatching(_.session)),!H){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(H)?H.length==1&&(X="ace_error_bracket"):H=[H],H.length==2&&(m.comparePoints(H[0].end,H[1].start)==0?H=[m.fromPoints(H[0].start,H[1].end)]:m.comparePoints(H[0].start,H[1].end)==0&&(H=[m.fromPoints(H[1].start,H[0].end)])),$.$bracketHighlight={ranges:H,markerIds:H.map(function(G){return $.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.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(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},S.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(_){var $=this.session.$useWrapMode,L=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,L,$),this._signal("change",_),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(_){var $=_.data;this.renderer.updateLines($.first,$.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 _=this.getSession(),$;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&($=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&($=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&($=!1)),_.$highlightLineMarker&&!$)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&$){var L=new m($.row,$.column,$.row,1/0);L.id=_.addMarker(L,"ace_active-line","screenLine"),_.$highlightLineMarker=L}else $&&(_.$highlightLineMarker.start.row=$.row,_.$highlightLineMarker.end.row=$.row,_.$highlightLineMarker.start.column=$.column,_._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(_){var $=this.session;if($.$selectionMarker&&$.removeMarker($.$selectionMarker),$.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var L=this.selection.getRange(),O=this.getSelectionStyle();$.$selectionMarker=$.addMarker(L,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,$=this.getSelectionRange();if(!($.isEmpty()||$.isMultiLine())){var L=$.start.column,O=$.end.column,F=_.getLine($.start.row),H=F.substring(L,O);if(!(H.length>5e3||!/[\w\d]/.test(H))){var j=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(L-1,O+1);if(j.test(V))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(_){this.renderer.updateText(),this._emit("changeMode",_)},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 _=this.getSelectedText(),$=this.session.doc.getNewLineCharacter(),L=!1;if(!_&&this.$copyWithEmptySelection){L=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var H=O[F];F&&O[F-1].start.row==H.start.row||(_+=this.session.getLine(H.start.row)+$)}}var j={text:_};return this._signal("copy",j),R.lineMode=L?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(_,$){var L={text:_,event:$};this.commands.exec("paste",this,L)},S.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var $=_.text,L=$===R.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?O.insert({row:this.selection.lead.row,column:0},$):this.insert($);else if(L)this.selection.rangeList.ranges.forEach(function(X){O.insert({row:X.start.row,column:0},$)});else{var F=$.split(/\r\n|\r|\n/),H=this.selection.rangeList.ranges,j=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||j)return this.commands.exec("insertstring",this,$);for(var V=H.length;V--;){var q=H[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},S.prototype.execCommand=function(_,$){return this.commands.exec(_,this,$)},S.prototype.insert=function(_,$){var L=this.session,O=L.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!$){var H=O.transformAction(L.getState(F.row),"insertion",this,L,_);H&&(_!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=H.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
|
203
|
+
`)==-1){var j=m.fromPoints(F,F);j.end.column+=_.length,this.session.remove(j)}}else{var j=this.getSelectionRange();F=this.session.remove(j),this.clearSelection()}if(_==`
|
204
|
+
`||_==`\r
|
205
|
+
`){var G=L.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);L.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=L.getState(F.row),G=L.getLine(F.row),Z=O.checkOutdent(X,G,_);if(L.insert(F,_),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new m(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new m(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(_)){var re=O.getNextLineIndent(X,G.slice(0,F.column),L.getTabString());L.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(X,L,F.row)}},S.prototype.autoIndent=function(){for(var _=this.session,$=_.getMode(),L=this.selection.isEmpty()?[new m(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",H="",j=_.getTabString(),V=0;V<L.length;V++)for(var q=L[V].start.row,X=L[V].end.row,G=q;G<=X;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),H=$.getNextLineIndent(O,F,j));var Z=_.getLine(G),re=$.$getIndent(Z);if(H!==re){if(re.length>0){var J=new m(G,0,G,re.length);_.remove(J)}H.length>0&&_.insert({row:G,column:0},H)}$.autoOutdent(O,_,G)}},S.prototype.onTextInput=function(_,$){if(!$)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,_,$);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},S.prototype.applyComposition=function(_,$){if($.extendLeft||$.extendRight){var L=this.selection.getRange();L.start.column-=$.extendLeft,L.end.column+=$.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!_&&!L.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),$.restoreStart||$.restoreEnd){var L=this.selection.getRange();L.start.column-=$.restoreStart,L.end.column-=$.restoreEnd,this.selection.setRange(L)}},S.prototype.onCommandKey=function(_,$,L){return this.keyBinding.onCommandKey(_,$,L)},S.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var $=this.getSelectionRange();if(this.getBehavioursEnabled()){var L=this.session,O=L.getState($.start.row),F=L.getMode().transformAction(O,"deletion",this,L,$);if($.end.column===0){var H=L.getTextRange($);if(H[H.length-1]==`
|
206
|
+
`){var j=L.getLine($.end.row);/^\s+$/.test(j)&&($.end.column=j.length)}}F&&($=F)}this.session.remove($),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 _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
|
207
|
+
`),this.moveCursorToPosition(_)},S.prototype.setGhostText=function(_,$){this.renderer.setGhostText(_,$)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),$=_.column;if($!==0){var L=this.session.getLine(_.row),O,F;$<L.length?(O=L.charAt($)+L.charAt($-1),F=new m(_.row,$-1,_.row,$+1)):(O=L.charAt($-1)+L.charAt($-2),F=new m(_.row,$-2,_.row,$)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},S.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),L=this.session.getTextRange($);this.session.replace($,L.toLowerCase()),this.selection.setSelectionRange(_)},S.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),L=this.session.getTextRange($);this.session.replace($,L.toUpperCase()),this.selection.setSelectionRange(_)},S.prototype.indent=function(){var _=this.session,$=this.getSelectionRange();if($.start.row<$.end.row){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}else if($.start.column<$.end.column){var O=_.getTextRange($);if(!/^\s+$/.test(O)){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}}var F=_.getLine($.start.row),H=$.start,j=_.getTabSize(),V=_.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=j-V%j,X=h.stringRepeat(" ",q);else{for(var q=V%j;F[$.start.column-1]==" "&&q;)$.start.column--,q--;this.selection.setSelectionRange($),X=" "}return this.insert(X)},S.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},S.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},S.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),$=this.session,L=[],O=_.first;O<=_.last;O++)L.push($.getLine(O));L.sort(function(j,V){return j.toLowerCase()<V.toLowerCase()?-1:j.toLowerCase()>V.toLowerCase()?1:0});for(var F=new m(0,0,0,0),O=_.first;O<=_.last;O++){var H=$.getLine(O);F.start.row=O,F.end.row=O,F.end.column=H.length,$.replace(F,L[O-_.first])}},S.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,$.first,$.last)},S.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),$=this.session.getState(_.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,L,_)},S.prototype.getNumberAt=function(_,$){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var O=this.session.getLine(_);L.lastIndex<$;){var F=L.exec(O);if(F.index<=$&&F.index+F[0].length>=$){var H={value:F[0],start:F.index,end:F.index+F[0].length};return H}}return null},S.prototype.modifyNumber=function(_){var $=this.selection.getCursor().row,L=this.selection.getCursor().column,O=new m($,L-1,$,L),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt($,L);if(H){var j=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-j,q=parseFloat(H.value);q*=Math.pow(10,V),j!==H.end&&L<j?_*=Math.pow(10,H.end-L-1):_*=Math.pow(10,H.end-L),q+=_,q/=Math.pow(10,V);var X=q.toFixed(V),G=new m($,H.start,$,H.end);this.session.replace(G,X),this.moveCursorTo($,Math.max(H.start+1,L+X.length-H.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var _=this.selection.getCursor().row,$=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=$-O-1;H<0&&(H=0);var j=0,V=0,q=this;L.match(/[A-Za-z0-9_]+/)&&F.forEach(function(pe,_e){V=j+pe.length,H>=j&&H<=V&&(L=pe,q.selection.clearSelection(),q.moveCursorTo(_,j+O),q.selection.selectTo(_,V+O)),j=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,me=L.match(new RegExp("^\\s?_?("+h.escapeRegExp(re[J])+")\\s?$","i"));if(me){var we=L.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(me[1])+")($|\\s)","g"));we&&(G=L.replace(new RegExp(h.escapeRegExp(re[J]),"i"),function(pe){var _e=re[ae];return pe.toUpperCase()==pe?_e=_e.toUpperCase():pe.charAt(0).toUpperCase()==pe.charAt(0)&&(_e=_e.substr(0,0)+re[ae].charAt(0).toUpperCase()+_e.substr(1)),_e}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(_,$){var L,O,F=this.session.getLine(_),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),j=$;j<0&&(j=0);var V=0,q=0,X;try{for(var G=p(H),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,j>=V&&j<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){L={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(L)throw L.error}}return X},S.prototype.openLink=function(){var _=this.selection.getCursor(),$=this.findLinkAt(_.row,_.column);return $&&window.open($,"_blank"),$!=null},S.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var _=this.selection,$=this.session,L=_.getRange(),O=_.isBackwards();if(L.isEmpty()){var F=L.start.row;$.duplicateLines(F,F)}else{var H=O?L.start:L.end,j=$.insert(H,$.getTextRange(L));L.start=H,L.end=j,_.setSelectionRange(L,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(_,$,L){return this.session.moveText(_,$,L)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(_,$){var L,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();L=this.$getSelectedRows(H),O=this.session.$moveLines(L.first,L.last,$?0:_),$&&_==-1&&(O=0),H.moveBy(O,0),F.fromOrientedRange(H)}else{var j=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=j.length,G=0;G<X;G++){var Z=G;j[G].moveBy(V,0),L=this.$getSelectedRows(j[G]);for(var re=L.first,J=L.last;++G<X;){q&&j[G].moveBy(q,0);var ae=this.$getSelectedRows(j[G]);if($&&ae.first!=J||!$&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(re,J,$?0:_),$&&_==-1&&(Z=G+1);Z<=G;)j[Z].moveBy(V,0),Z++;$||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},S.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},S.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},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(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(_,$){var L=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);$===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):$===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var H=L.scrollTop;L.scrollBy(0,F*O.lineHeight),$!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(H)},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(_){this.renderer.scrollToRow(_)},S.prototype.scrollToLine=function(_,$,L,O){this.renderer.scrollToLine(_,$,L,O)},S.prototype.centerSelection=function(){var _=this.getSelectionRange(),$={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor($,.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(_,$){this.selection.moveCursorTo(_,$)},S.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},S.prototype.jumpToMatching=function(_,$){var L=this.getCursorPosition(),O=new k(this.session,L.row,L.column),F=O.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var j=F||O.stepForward();if(j){var V,q=!1,X={},G=L.column-j.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(j.value.match(/[{}()\[\]]/g)){for(;G<j.value.length&&!q;G++)if(re[j.value[G]])switch(Z=re[j.value[G]]+"."+j.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),j.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else j.type.indexOf("tag-name")!==-1&&(isNaN(X[j.value])&&(X[j.value]=0),F.value==="<"&&H>1?X[j.value]++:F.value==="</"&&X[j.value]--,X[j.value]===-1&&(V="tag",q=!0));q||(F=j,H++,j=O.stepForward(),G=0)}while(j&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(L),J||(J=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,($||ae.row===L.row&&Math.abs(ae.column-L.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!j||j.type.indexOf("tag-name")===-1)return;if(J=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(L.row,L.column)===0){var me=this.session.getMatchingTags(L);me&&(me.openTag.contains(L.row,L.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===L.row&&me.closeTag.start.column===L.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&$?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},S.prototype.gotoLine=function(_,$,L){this.selection.clearSelection(),this.session.unfold({row:_-1,column:$||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,$||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,L)},S.prototype.navigateTo=function(_,$){this.selection.moveTo(_,$)},S.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},S.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},S.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var $=this.getSelectionRange().start;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var $=this.getSelectionRange().end;this.moveCursorToPosition($)}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(_,$){$&&this.$search.set($);var L=this.$search.find(this.session),O=0;return L&&(this.$tryReplace(L,_)&&(O=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),O},S.prototype.replaceAll=function(_,$){$&&this.$search.set($);var L=this.$search.findAll(this.session),O=0;if(!L.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=L.length-1;H>=0;--H)this.$tryReplace(L[H],_)&&O++;return this.selection.setSelectionRange(F),O},S.prototype.$tryReplace=function(_,$){var L=this.session.getTextRange(_);return $=this.$search.replace(L,$),$!==null?(_.end=this.session.replace(_,$),_):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(_,$,L){$||($={}),typeof _=="string"||_ instanceof RegExp?$.needle=_:typeof _=="object"&&y.mixin($,_);var O=this.selection.getRange();$.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set($),$.start||this.$search.set({start:O});var F=this.$search.find(this.session);if($.preventScroll)return F;if(F)return this.revealRange(F,L),F;$.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(_,$){this.find({skipCurrent:!0,backwards:!1},_,$)},S.prototype.findPrevious=function(_,$){this.find(_,{skipCurrent:!0,backwards:!0},$)},S.prototype.revealRange=function(_,$){this.session.unfold(_),this.selection.setSelectionRange(_);var L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),$!==!1&&this.renderer.animateScrolling(L)},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.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(_){if(_){var $,L=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var H=this.on("changeSelection",function(){O=!0}),j=this.renderer.on("beforeRender",function(){O&&($=L.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&$&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var q=L.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+$.top<0?O=!0:X.top<G.height&&X.top+$.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=$=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",H),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",j))}}},S.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(_)),$.isBlinking=!this.$readOnly&&_!="wide",v.setCssClass($.element,"ace_slim-cursors",/slim/.test(_)))},S.prototype.prompt=function(_,$,L){var O=this;C.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,$,L)})},S}();E.$uid=0,E.prototype.curOp=null,E.prototype.prevOp={},E.prototype.$mergeableCommands=["backspace","del","insertstring"],E.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"],["&&","||"],["==","!="]],y.implement(E.prototype,w),C.defineOptions(E.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){this.textInput.setReadOnly(S),this.$resetCursorStyle()},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 _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),v.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),v.addCssClass(this.container,"ace_hasPlaceholder");var $=v.createElement("div");$.className="ace_placeholder",$.textContent=this.$placeholder||"",this.renderer.placeholderNode=$,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},$=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},L;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",$.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",T("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),L||(L=new x(this)),L.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",$.bind(this)),this.commands.removeCommand(_),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),L&&L.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(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",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(S,_){return(Math.abs(S.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function(S,_,$){return Math.max(_.toString().length,($.lastRow+1).toString().length,2)*$.characterWidth},update:function(S,_){_.renderer.$loop.schedule(_.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=E}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function v(h,g){this.element=h,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return v.prototype.moveContainer=function(h){p.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},v.prototype.pageChanged=function(h,g){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},v.prototype.computeLineTop=function(h,g,a){var c=g.firstRowScreen*g.lineHeight,s=Math.floor(c/this.canvasHeight),l=a.documentToScreenRow(h,0)*g.lineHeight;return l-s*this.canvasHeight},v.prototype.computeLineHeight=function(h,g,a){return g.lineHeight*a.getRowLineCount(h)},v.prototype.getLength=function(){return this.cells.length},v.prototype.get=function(h){return this.cells[h]},v.prototype.shift=function(){this.$cacheCell(this.cells.shift())},v.prototype.pop=function(){this.$cacheCell(this.cells.pop())},v.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var g=p.createFragment(this.element),a=0;a<h.length;a++)g.appendChild(h[a].element);this.element.appendChild(g)}else this.cells.push(h),this.element.appendChild(h.element)},v.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var g=p.createFragment(this.element),a=0;a<h.length;a++)g.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},v.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},v.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},v.prototype.createCell=function(h,g,a,c){var s=this.cellCache.pop();if(!s){var l=p.createElement("div");c&&c(l),this.element.appendChild(l),s={element:l,text:"",row:h}}return s.row=h,s},v}();r.Lines=y}),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,f){var p=e("../lib/dom"),y=e("../lib/oop"),v=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,g=e("./lines").Lines,a=e("../config").nls,c=function(){function l(o){this.element=p.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var m=o[u],w=m.row,b=this.$annotations[w];b||(b=this.$annotations[w]={text:[],type:[],displayText:[]});var M=m.text,C=m.text,k=m.type;M=M?v.escapeHTML(M):m.html||"",C=C||m.html||"",b.text.indexOf(M)===-1&&(b.text.push(M),b.type.push(k),b.displayText.push(C));var x=m.className;x?b.className=x:k==="error"?b.className=" ace_error":k==="security"&&!/\bace_error\b/.test(b.className)?b.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(b.className)?b.className=" ace_warning":k==="info"&&!b.className?b.className=" ace_info":k==="hint"&&!b.className&&(b.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,m=o.end.row-u;if(m!==0)if(o.action=="remove")this.$annotations.splice(u,m+1,null);else{var w=new Array(m+1);w.unshift(u,1),this.$annotations.splice.apply(this.$annotations,w)}}},l.prototype.update=function(o){this.config=o;var u=this.session,m=o.firstRow,w=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=w,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var b=u.getNextFoldLine(m),M=b?b.start.row:1/0,C=null,k=-1,x=m;;){if(x>M&&(x=b.end.row+1,b=u.getNextFoldLine(x,b),M=b?b.start.row:1/0),x>w){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}C=this.$lines.get(++k),C?C.row=x:(C=this.$lines.createCell(x,o,this.session,s),this.$lines.push(C)),this.$renderCell(C,o,b,x),x++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var u=this.session,m=u.gutterRenderer||this.$renderer,w=u.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(b=u.getLength()+w-1);var M=m?m.getWidth(u,b,o):b.toString().length*o.characterWidth,C=this.$padding||this.$computePadding();M+=C.left+C.right,M!==this.gutterWidth&&!isNaN(M)&&(this.gutterWidth=M,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",M))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<u.length;m++){var w=u[m];if(w.row>=this.$cursorRow){if(w.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(m>0&&b&&b.start.row==u[m-1].row)w=u[m-1];else break}w.element.className="ace_gutter-active-line "+w.element.className,this.$cursorCell=w;break}}}}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var m=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),w=this.oldLastRow;if(this.oldLastRow=m,!u||w<o.firstRow)return this.update(o);if(m<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var b=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);b>0;b--)this.$lines.shift();if(w>m)for(var b=this.session.getFoldedRowCount(m+1,w);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),m>w&&this.$lines.push(this.$renderLines(o,w+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,m){for(var w=[],b=u,M=this.session.getNextFoldLine(b),C=M?M.start.row:1/0;b>C&&(b=M.end.row+1,M=this.session.getNextFoldLine(b,M),C=M?M.start.row:1/0),!(b>m);){var k=this.$lines.createCell(b,o,this.session,s);this.$renderCell(k,o,M,b),w.push(k),b++}return w},l.prototype.$renderCell=function(o,u,m,w){var b=o.element,M=this.session,C=b.childNodes[0],k=b.childNodes[1],x=b.childNodes[2],T=x.firstChild,R=M.$firstLineNumber,I=M.$breakpoints,E=M.$decorations,N=M.gutterRenderer||this.$renderer,S=this.$showFoldWidgets&&M.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,$=u.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(M,w):w+R).toString();if(this.$highlightGutterLine&&(w==this.$cursorRow||m&&w<this.$cursorRow&&w>=_&&this.$cursorRow<=m.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),I[w]&&(L+=I[w]),E[w]&&(L+=E[w]),this.$annotations[w]&&w!==_&&(L+=this.$annotations[w].className),S){var H=S[w];H==null&&(H=S[w]=M.getFoldWidget(w))}if(H){var j="ace_fold-widget ace_"+H,V=H=="start"&&w==_&&w<m.end.row;if(V){j+=" ace_closed";for(var q="",X=!1,G=w+1;G<=m.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(X=!0,q=" ace_warning_fold")}L+=q}else j+=" ace_open";k.className!=j&&(k.className=j),p.setStyle(k.style,"height",$),p.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=M.getFoldWidgetRange(w);Z?k.setAttribute("aria-label",a("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):m?k.setAttribute("aria-label",a("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):k.setAttribute("aria-label",a("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[w+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",a("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",a("gutter.code-folding.open.title","Fold code")))}else k&&(p.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){x.className="ace_gutter_annotation",T.className=O,T.className+=q,p.setStyle(T.style,"height",$),p.setStyle(x.style,"display","block"),p.setStyle(x.style,"height",$);var re;switch(q){case" ace_error_fold":re=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}x.setAttribute("aria-label",re),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else if(this.$annotations[w]){x.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[w].className:b.classList.add(this.$annotations[w].className.replace(" ","")),p.setStyle(T.style,"height",$),p.setStyle(x.style,"display","block"),p.setStyle(x.style,"height",$);var re;switch(this.$annotations[w].className){case" ace_error":re=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=a("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=a("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}x.setAttribute("aria-label",re),x.setAttribute("tabindex","-1"),x.setAttribute("role","button")}else p.setStyle(x.style,"display","none"),x.removeAttribute("aria-label"),x.removeAttribute("role"),x.setAttribute("tabindex","0");return F!==C.data&&(C.data=F),b.className!=L&&(b.className=L),p.setStyle(o.element.style,"height",this.$lines.computeLineHeight(w,u,M)+"px"),p.setStyle(o.element.style,"top",this.$lines.computeLineTop(w,u,M)+"px"),o.text=F,x.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?p.addCssClass(this.element,"ace_folding-enabled"):p.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=p.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(o.x<u.left+m.left)return"markers";if(this.$showFoldWidgets&&o.x>m.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,y.implement(c.prototype,h);function s(l){var o=document.createTextNode("");l.appendChild(o);var u=p.createElement("span");l.appendChild(u);var m=p.createElement("span");l.appendChild(m);var w=p.createElement("span");return m.appendChild(w),l}r.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,r,f){var p=e("../range").Range,y=e("../lib/dom"),v=function(){function g(a){this.element=y.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return g.prototype.setPadding=function(a){this.$padding=a},g.prototype.setSession=function(a){this.session=a},g.prototype.setMarkers=function(a){this.markers=a},g.prototype.elt=function(a,c){var s=this.i!=-1&&this.element.childNodes[this.i];s?this.i++:(s=document.createElement("div"),this.element.appendChild(s),this.i=-1),s.style.cssText=c,s.className=a},g.prototype.update=function(a){if(a){this.config=a,this.i=0;var c;for(var s in this.markers){var l=this.markers[s];if(!l.range){l.update(c,this,this.session,a);continue}var o=l.range.clipRows(a.firstRow,a.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),l.renderer){var u=this.$getTop(o.start.row,a),m=this.$padding+o.start.column*a.characterWidth;l.renderer(c,o,m,u,a)}else l.type=="fullLine"?this.drawFullLineMarker(c,o,l.clazz,a):l.type=="screenLine"?this.drawScreenLineMarker(c,o,l.clazz,a):o.isMultiLine()?l.type=="text"?this.drawTextMarker(c,o,l.clazz,a):this.drawMultiLineMarker(c,o,l.clazz,a):this.drawSingleLineMarker(c,o,l.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(a,c){return(a-c.firstRowScreen)*c.lineHeight},g.prototype.drawTextMarker=function(a,c,s,l,o){for(var u=this.session,m=c.start.row,w=c.end.row,b=m,M=0,C=0,k=u.getScreenLastRowColumn(b),x=new p(b,c.start.column,b,C);b<=w;b++)x.start.row=x.end.row=b,x.start.column=b==m?c.start.column:u.getRowWrapIndent(b),x.end.column=k,M=C,C=k,k=b+1<w?u.getScreenLastRowColumn(b+1):b==w?0:c.end.column,this.drawSingleLineMarker(a,x,s+(b==m?" ace_start":"")+" ace_br"+h(b==m||b==m+1&&c.start.column,M<C,C>k,b==w),l,b==w?0:1,o)},g.prototype.drawMultiLineMarker=function(a,c,s,l,o){var u=this.$padding,m=l.lineHeight,w=this.$getTop(c.start.row,l),b=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var M=c.clone();M.end.row=M.start.row,M.end.column=this.session.getLine(M.start.row).length,this.drawBidiSingleLineMarker(a,M,s+" ace_br1 ace_start",l,null,o)}else this.elt(s+" ace_br1 ace_start","height:"+m+"px;right:"+u+"px;top:"+w+"px;left:"+b+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var M=c.clone();M.start.row=M.end.row,M.start.column=0,this.drawBidiSingleLineMarker(a,M,s+" ace_br12",l,null,o)}else{w=this.$getTop(c.end.row,l);var C=c.end.column*l.characterWidth;this.elt(s+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+w+"px;left:"+u+"px;"+(o||""))}if(m=(c.end.row-c.start.row-1)*l.lineHeight,!(m<=0)){w=this.$getTop(c.start.row+1,l);var k=(c.start.column?1:0)|(c.end.column?0:8);this.elt(s+(k?" ace_br"+k:""),"height:"+m+"px;right:"+u+"px;top:"+w+"px;left:"+u+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(a,c,s,l,o,u){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(a,c,s,l,o,u);var m=l.lineHeight,w=(c.end.column+(o||0)-c.start.column)*l.characterWidth,b=this.$getTop(c.start.row,l),M=this.$padding+c.start.column*l.characterWidth;this.elt(s,"height:"+m+"px;width:"+w+"px;top:"+b+"px;left:"+M+"px;"+(u||""))},g.prototype.drawBidiSingleLineMarker=function(a,c,s,l,o,u){var m=l.lineHeight,w=this.$getTop(c.start.row,l),b=this.$padding,M=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);M.forEach(function(C){this.elt(s,"height:"+m+"px;width:"+(C.width+(o||0))+"px;top:"+w+"px;left:"+(b+C.left)+"px;"+(u||""))},this)},g.prototype.drawFullLineMarker=function(a,c,s,l,o){var u=this.$getTop(c.start.row,l),m=l.lineHeight;c.start.row!=c.end.row&&(m+=this.$getTop(c.end.row,l)-u),this.elt(s,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(a,c,s,l,o){var u=this.$getTop(c.start.row,l),m=l.lineHeight;this.elt(s,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g}();v.prototype.$padding=0;function h(g,a,c,s){return(g?1:0)|(a?2:0)|(c?4:0)|(s?8:0)}r.Marker=v}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,r,f){var p=new Set(["text","rparen","lparen"]);r.isTextToken=function(y){return p.has(y)}}),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,f){var p=e("../lib/oop"),y=e("../lib/dom"),v=e("../lib/lang"),h=e("./lines").Lines,g=e("../lib/event_emitter").EventEmitter,a=e("../config").nls,c=e("./text_util").isTextToken,s=function(){function l(o){this.dom=y,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
|
208
|
+
`&&o.getNewLineMode()!="windows",m=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],m=1;m<o+1;m++)if(this.showTabs){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_tab",w.textContent=v.stringRepeat(this.TAB_CHAR,m),u.push(w)}else u.push(this.dom.createTextNode(v.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var b="ace_indent-guide",M=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?v.stringRepeat(this.SPACE_CHAR,this.tabSize):v.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",x=this.showTabs?v.stringRepeat(this.TAB_CHAR,this.tabSize):C,w=this.dom.createElement("span");w.className=b+M,w.textContent=C,this.$tabStrings[" "]=w;var w=this.dom.createElement("span");w.className=b+k,w.textContent=x,this.$tabStrings[" "]=w}},l.prototype.updateLines=function(o,u,m){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var w=Math.max(u,o.firstRow),b=Math.min(m,o.lastRow),M=this.element.childNodes,C=0,k=o.firstRow;k<w;k++){var x=this.session.getFoldLine(k);if(x)if(x.containsRow(w)){w=x.start.row;break}else k=x.end.row;C++}for(var T=!1,k=w,x=this.session.getNextFoldLine(k),R=x?x.start.row:1/0;k>R&&(k=x.end.row+1,x=this.session.getNextFoldLine(k,x),R=x?x.start.row:1/0),!(k>b);){var I=M[C++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==R?x:!1),T&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var E=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=E&&(T=!0,I.style.height=E)}k++}if(T)for(;C<this.$lines.cells.length;){var N=this.$lines.cells[C++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var m=o.lastRow,w=u?u.lastRow:-1;if(!u||w<o.firstRow)return this.update(o);if(m<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var b=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);b>0;b--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var b=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);b>0;b--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(o,u,m){for(var w=[],b=u,M=this.session.getNextFoldLine(b),C=M?M.start.row:1/0;b>C&&(b=M.end.row+1,M=this.session.getNextFoldLine(b,M),C=M?M.start.row:1/0),!(b>m);){var k=this.$lines.createCell(b,o,this.session),x=k.element;this.dom.removeChildren(x),y.setStyle(x.style,"height",this.$lines.computeLineHeight(b,o,this.session)+"px"),y.setStyle(x.style,"top",this.$lines.computeLineTop(b,o,this.session)+"px"),this.$renderLine(x,b,b==C?M:!1),this.$useLineGroups()?x.className="ace_line_group":x.className="ace_line",w.push(k),b++}return w},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,m=o.lastRow,w=this.$lines;w.getLength();)w.pop();w.push(this.$renderLinesFragment(o,u,m))},l.prototype.$renderToken=function(o,u,m,w){for(var b=this,M=/(\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,C=this.dom.createFragment(this.element),k,x=0;k=M.exec(w);){var T=k[1],R=k[2],I=k[3],E=k[4],N=k[5];if(!(!b.showSpaces&&R)){var S=x!=k.index?w.slice(x,k.index):"";if(x=k.index+k[0].length,S&&C.appendChild(this.dom.createTextNode(S,this.element)),T){var _=b.session.getScreenTabSize(u+k.index);C.appendChild(b.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(R)if(b.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=v.stringRepeat(b.SPACE_CHAR,R.length),C.appendChild($)}else C.appendChild(this.dom.createTextNode(R,this.element));else if(I){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=v.stringRepeat(b.SPACE_CHAR,I.length),C.appendChild($)}else if(E){u+=1;var $=this.dom.createElement("span");$.style.width=b.config.characterWidth*2+"px",$.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=b.showSpaces?b.SPACE_CHAR:E,C.appendChild($)}else if(N){u+=1;var $=this.dom.createElement("span");$.style.width=b.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=N,C.appendChild($)}}}if(C.appendChild(this.dom.createTextNode(x?w.slice(x):w,this.element)),c(m.type))o.appendChild(C);else{var L="ace_"+m.type.replace(/\./g," ace_"),$=this.dom.createElement("span");m.type=="fold"&&($.style.width=m.value.length*this.config.characterWidth+"px",$.setAttribute("title",a("inline-fold.closed.title","Unfold code"))),$.className=L,$.appendChild(C),o.appendChild($)}return u+w.length},l.prototype.renderIndentGuide=function(o,u,m){var w=u.search(this.$indentGuideRe);if(w<=0||w>=m)return u;if(u[0]==" "){w-=w%this.tabSize;for(var b=w/this.tabSize,M=0;M<b;M++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(w)}else if(u[0]==" "){for(var M=0;M<w;M++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(w)}return this.$highlightIndentGuide(),u},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,w=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:w,start:u.row};var b=this.session.$bracketHighlight;if(b){for(var M=this.session.$bracketHighlight.ranges,C=0;C<M.length;C++)if(u.row!==M[C].start.row){this.$highlightIndentGuideMarker.end=M[C].start.row,u.row>M[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=u.row+1;C<o.length;C++){var k=o[C],x=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=C,x<=m))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var m=o[u],w=m.element.childNodes;if(w.length>0){for(var b=0;b<w.length;b++)if(w[b].classList&&w[b].classList.contains("ace_indent-guide-active")){w[b].classList.remove("ace_indent-guide-active");break}}}},l.prototype.$setIndentGuideActive=function(o,u){var m=this.session.doc.getLine(o.row);if(m!==""){var w=o.element.childNodes;if(w){var b=w[u-1];b&&b.classList&&b.classList.contains("ace_indent-guide")&&b.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<o.length;m++){var w=o[m];if(this.$highlightIndentGuideMarker.end&&w.row>=this.$highlightIndentGuideMarker.start+1){if(w.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,u)}}else for(var m=o.length-1;m>=0;m--){var w=o[m];if(this.$highlightIndentGuideMarker.end&&w.row<this.$highlightIndentGuideMarker.start){if(w.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,m){var w=0,b=0,M=m[0],C=0,k=this.$createLineElement();o.appendChild(k);for(var x=0;x<u.length;x++){var T=u[x],R=T.value;if(x==0&&this.displayIndentGuides){if(w=R.length,R=this.renderIndentGuide(k,R,M),!R)continue;w-=R.length}if(w+R.length<M)C=this.$renderToken(k,C,T,R),w+=R.length;else{for(;w+R.length>=M;)C=this.$renderToken(k,C,T,R.substring(0,M-w)),R=R.substring(M-w),w=M,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(v.stringRepeat(" ",m.indent),this.element)),b++,C=0,M=m[b]||Number.MAX_VALUE;R.length!=0&&(w+=R.length,C=this.$renderToken(k,C,T,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,C,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var m=0,w=0;w<u.length;w++){var b=u[w],M=b.value;if(!(w==0&&this.displayIndentGuides&&(M=this.renderIndentGuide(o,M),!M))){if(m+M.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,m,b,M);m=this.$renderToken(o,m,b,M)}}},l.prototype.$renderOverflowMessage=function(o,u,m,w,b){m&&this.$renderToken(o,u,m,w.slice(0,this.MAX_LINE_LENGTH-u));var M=this.dom.createElement("span");M.className="ace_inline_button ace_keyword ace_toggle_wrap",M.textContent=b?"<hide>":"<click to see more...>",o.appendChild(M)},l.prototype.$renderLine=function(o,u,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(u)),m)var w=this.$getFoldLineTokens(u,m);else var w=this.session.getTokens(u);var b=o;if(w.length){var M=this.session.getRowSplitData(u);if(M&&M.length){this.$renderWrappedLine(o,w,M);var b=o.lastChild}else{var b=o;this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b)),this.$renderSimpleLine(b,w)}}else this.$useLineGroups()&&(b=this.$createLineElement(),o.appendChild(b));if(this.showEOL&&b){m&&(u=m.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild(C)}},l.prototype.$getFoldLineTokens=function(o,u){var m=this.session,w=[];function b(C,k,x){for(var T=0,R=0;R+C[T].value.length<k;)if(R+=C[T].value.length,T++,T==C.length)return;if(R!=k){var I=C[T].value.substring(k-R);I.length>x-k&&(I=I.substring(0,x-k)),w.push({type:C[T].type,value:I}),R=k+I.length,T+=1}for(;R<x&&T<C.length;){var I=C[T].value;I.length+R>x?w.push({type:C[T].type,value:I.substring(0,x-R)}):w.push(C[T]),R+=I.length,T+=1}}var M=m.getTokens(o);return u.walk(function(C,k,x,T,R){C!=null?w.push({type:"fold",value:C}):(R&&(M=m.getTokens(k)),M.length&&b(M,T,x))},u.end.row,this.session.getLine(u.end.row).length),w},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();s.prototype.EOF_CHAR="¶",s.prototype.EOL_CHAR_LF="¬",s.prototype.EOL_CHAR_CRLF="¤",s.prototype.EOL_CHAR=s.prototype.EOL_CHAR_LF,s.prototype.TAB_CHAR="—",s.prototype.SPACE_CHAR="·",s.prototype.$padding=0,s.prototype.MAX_LINE_LENGTH=1e4,s.prototype.showInvisibles=!1,s.prototype.showSpaces=!1,s.prototype.showTabs=!1,s.prototype.showEOL=!1,s.prototype.displayIndentGuides=!0,s.prototype.$highlightIndentGuides=!0,s.prototype.$tabStrings=[],s.prototype.destroy={},s.prototype.onChangeTabSize=s.prototype.$computeTabString,p.implement(s.prototype,g),r.Text=s}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function v(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 v.prototype.$updateOpacity=function(h){for(var g=this.cursors,a=g.length;a--;)p.setStyle(g[a].style,"opacity",h?"":"0")},v.prototype.$startCssAnimation=function(){for(var h=this.cursors,g=h.length;g--;)h[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},v.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},v.prototype.setPadding=function(h){this.$padding=h},v.prototype.setSession=function(h){this.session=h},v.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},v.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},v.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,p.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},v.prototype.addCursor=function(){var h=p.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},v.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},v.prototype.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.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 g=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),g()},this.blinkInterval),g()}},v.prototype.getPixelPosition=function(h,g){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(h),c=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,h.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),s=(a.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:s}},v.prototype.isCursorInView=function(h,g){return h.top>=0&&h.top<g.maxHeight},v.prototype.update=function(h){this.config=h;var g=this.session.$selectionMarkers,a=0,c=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var a=0,s=g.length;a<s;a++){var l=this.getPixelPosition(g[a].cursor,!0);if(!((l.top>h.height+h.offset||l.top<0)&&a>1)){var o=this.cursors[c++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,l,h,g[a],this.session):this.isCursorInView(l,h)?(p.setStyle(u,"display","block"),p.translate(o,l.left,l.top),p.setStyle(u,"width",Math.round(h.characterWidth)+"px"),p.setStyle(u,"height",h.lineHeight+"px")):p.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=l,this.restartTimer()},v.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"))},v.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},v}();y.prototype.$padding=0,y.prototype.drawCursor=null,r.Cursor=y}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,f){var p=this&&this.__extends||function(){var o=function(u,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var M in b)Object.prototype.hasOwnProperty.call(b,M)&&(w[M]=b[M])},o(u,m)};return function(u,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(u,m);function w(){this.constructor=u}u.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter,a=32768,c=function(){function o(u,m){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();y.implement(c.prototype,g);var s=function(o){p(u,o);function u(m,w){var b=o.call(this,m,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,w.$scrollbarWidth=b.width=v.scrollbarWidth(m.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(m){this.element.style.height=m+"px"},u.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>a?(this.coeff=a/m,m=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},u.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},u}(c);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var l=function(o){p(u,o);function u(m,w){var b=o.call(this,m,"-h")||this;return b.scrollLeft=0,b.height=w.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(m){this.element.style.width=m+"px"},u.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},u.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},u.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},u}(c);r.ScrollBar=s,r.ScrollBarV=s,r.ScrollBarH=l,r.VScrollBar=s,r.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,f){var p=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var b in w)Object.prototype.hasOwnProperty.call(w,b)&&(m[b]=w[b])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function m(){this.constructor=o}o.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}(),y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter;v.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
209
|
+
position: absolute;
|
210
|
+
background: rgba(128, 128, 128, 0.6);
|
211
|
+
-moz-box-sizing: border-box;
|
212
|
+
box-sizing: border-box;
|
213
|
+
border: 1px solid #bbb;
|
214
|
+
border-radius: 2px;
|
215
|
+
z-index: 8;
|
216
|
+
}
|
217
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
218
|
+
position: absolute;
|
219
|
+
z-index: 6;
|
220
|
+
background: none;
|
221
|
+
overflow: hidden!important;
|
222
|
+
}
|
223
|
+
.ace_editor>.ace_sb-v {
|
224
|
+
z-index: 6;
|
225
|
+
right: 0;
|
226
|
+
top: 0;
|
227
|
+
width: 12px;
|
228
|
+
}
|
229
|
+
.ace_editor>.ace_sb-v div {
|
230
|
+
z-index: 8;
|
231
|
+
right: 0;
|
232
|
+
width: 100%;
|
233
|
+
}
|
234
|
+
.ace_editor>.ace_sb-h {
|
235
|
+
bottom: 0;
|
236
|
+
left: 0;
|
237
|
+
height: 12px;
|
238
|
+
}
|
239
|
+
.ace_editor>.ace_sb-h div {
|
240
|
+
bottom: 0;
|
241
|
+
height: 100%;
|
242
|
+
}
|
243
|
+
.ace_editor>.ace_sb_grabbed {
|
244
|
+
z-index: 8;
|
245
|
+
background: #000;
|
246
|
+
}`,"ace_scrollbar.css",!1);var a=function(){function l(o,u){this.element=v.createElement("div"),this.element.className="ace_sb"+u,this.inner=v.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();y.implement(a.prototype,g);var c=function(l){p(o,l);function o(u,m){var w=l.call(this,u,"-v")||this;return w.scrollTop=0,w.scrollHeight=0,w.parent=u,w.width=w.VScrollWidth,w.renderer=m,w.inner.style.width=w.element.style.width=(w.width||15)+"px",w.$minWidth=0,w}return o.prototype.onMouseDown=function(u,m){if(u==="mousedown"&&!(h.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var w=this,b=m.clientY,M=function(E){b=E.clientY},C=function(){clearInterval(R)},k=m.clientY,x=this.thumbTop,T=function(){if(b!==void 0){var E=w.scrollTopFromThumbTop(x+b-k);E!==w.scrollTop&&w._emit("scroll",{data:E})}};h.capture(this.inner,M,C);var R=setInterval(T,20);return h.preventDefault(m)}var I=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),h.preventDefault(m)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var m=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,m){this.pageHeight===u&&!m||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(a);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var s=function(l){p(o,l);function o(u,m){var w=l.call(this,u,"-h")||this;return w.scrollLeft=0,w.scrollWidth=0,w.height=w.HScrollHeight,w.inner.style.height=w.element.style.height=(w.height||12)+"px",w.renderer=m,w}return o.prototype.onMouseDown=function(u,m){if(u==="mousedown"&&!(h.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var w=this,b=m.clientX,M=function(E){b=E.clientX},C=function(){clearInterval(R)},k=m.clientX,x=this.thumbLeft,T=function(){if(b!==void 0){var E=w.scrollLeftFromThumbLeft(x+b-k);E!==w.scrollLeft&&w._emit("scroll",{data:E})}};h.capture(this.inner,M,C);var R=setInterval(T,20);return h.preventDefault(m)}var I=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),h.preventDefault(m)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var m=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,m){this.pageWidth===u&&!m||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(a);s.prototype.setInnerWidth=s.prototype.setScrollWidth,r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=s,r.VScrollBar=c,r.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,r,f){var p=e("./lib/event"),y=function(){function v(h,g){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var a=this;this._flush=function(c){a.pending=!1;var s=a.changes;if(s&&(p.blockIdle(100),a.changes=0,a.onRender(s)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return v.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},v.prototype.clear=function(h){var g=this.changes;return this.changes=0,g},v}();r.RenderLoop=y}),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,f){var p=e("../lib/oop"),y=e("../lib/dom"),v=e("../lib/lang"),h=e("../lib/event"),g=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,c=512,s=typeof ResizeObserver=="function",l=200,o=function(){function u(m){this.el=y.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=y.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=y.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=v.stringRepeat("X",c),this.$characterSize={width:0,height:0},s?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(m,w){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",g.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=w?"hidden":"visible"},u.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var w=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=w&&w.width===m.width&&w.height===m.height,this._emit("changeCharacterSize",{data:m})}},u.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(w){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=h.onIdle(function w(){m.checkForSizeChanges(),h.onIdle(w,500)},500)},u.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(m){var w={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/c};return w.width===0||w.height===0?null:w},u.prototype.$measureCharWidth=function(m){this.$main.textContent=v.stringRepeat(m,c);var w=this.$main.getBoundingClientRect();return w.width/c},u.prototype.getCharacterWidth=function(m){var w=this.charSizes[m];return w===void 0&&(w=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),w},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var m=function(w,b){return["div",{style:"position: absolute;top:"+w+"px;left:"+b+"px;"}]};this.els=y.buildDom([m(0,0),m(l,0),m(0,l),m(l,l)],this.el)},u.prototype.transformCoordinates=function(m,w){if(m){var b=this.$getZoom(this.el);m=x(1/b,m)}function M(V,q,X){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*X[0]+q[0]*X[1])/G,(+V[1]*X[0]-V[0]*X[1])/G]}function C(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function x(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var R=T(this.els[0]),I=T(this.els[1]),E=T(this.els[2]),N=T(this.els[3]),S=M(C(N,I),C(N,E),C(k(I,E),k(N,R))),_=x(1+S[0],C(I,R)),$=x(1+S[1],C(E,R));if(w){var L=w,O=S[0]*L[0]/l+S[1]*L[1]/l+1,F=k(x(L[0],_),x(L[1],$));return k(x(1/O/l,F),R)}var H=C(m,R),j=M(C(_,x(S[0],H)),C($,x(S[1],H)),H);return x(l,j)},u}();o.prototype.$characterSize={width:0,height:0},p.implement(o.prototype,a),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,r,f){f.exports=`
|
247
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
248
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
249
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
250
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
251
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
252
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
253
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
254
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
255
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
256
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
257
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
258
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
259
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
260
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
261
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
262
|
+
|
263
|
+
|
264
|
+
.ace_editor {
|
265
|
+
position: relative;
|
266
|
+
overflow: hidden;
|
267
|
+
padding: 0;
|
268
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
269
|
+
direction: ltr;
|
270
|
+
text-align: left;
|
271
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
272
|
+
forced-color-adjust: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
.ace_scroller {
|
276
|
+
position: absolute;
|
277
|
+
overflow: hidden;
|
278
|
+
top: 0;
|
279
|
+
bottom: 0;
|
280
|
+
background-color: inherit;
|
281
|
+
-ms-user-select: none;
|
282
|
+
-moz-user-select: none;
|
283
|
+
-webkit-user-select: none;
|
284
|
+
user-select: none;
|
285
|
+
cursor: text;
|
286
|
+
}
|
287
|
+
|
288
|
+
.ace_content {
|
289
|
+
position: absolute;
|
290
|
+
box-sizing: border-box;
|
291
|
+
min-width: 100%;
|
292
|
+
contain: style size layout;
|
293
|
+
font-variant-ligatures: no-common-ligatures;
|
294
|
+
}
|
295
|
+
|
296
|
+
.ace_keyboard-focus:focus {
|
297
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
298
|
+
outline: none;
|
299
|
+
}
|
300
|
+
|
301
|
+
.ace_dragging .ace_scroller:before{
|
302
|
+
position: absolute;
|
303
|
+
top: 0;
|
304
|
+
left: 0;
|
305
|
+
right: 0;
|
306
|
+
bottom: 0;
|
307
|
+
content: '';
|
308
|
+
background: rgba(250, 250, 250, 0.01);
|
309
|
+
z-index: 1000;
|
310
|
+
}
|
311
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
312
|
+
background: rgba(0, 0, 0, 0.01);
|
313
|
+
}
|
314
|
+
|
315
|
+
.ace_gutter {
|
316
|
+
position: absolute;
|
317
|
+
overflow : hidden;
|
318
|
+
width: auto;
|
319
|
+
top: 0;
|
320
|
+
bottom: 0;
|
321
|
+
left: 0;
|
322
|
+
cursor: default;
|
323
|
+
z-index: 4;
|
324
|
+
-ms-user-select: none;
|
325
|
+
-moz-user-select: none;
|
326
|
+
-webkit-user-select: none;
|
327
|
+
user-select: none;
|
328
|
+
contain: style size layout;
|
329
|
+
}
|
330
|
+
|
331
|
+
.ace_gutter-active-line {
|
332
|
+
position: absolute;
|
333
|
+
left: 0;
|
334
|
+
right: 0;
|
335
|
+
}
|
336
|
+
|
337
|
+
.ace_scroller.ace_scroll-left:after {
|
338
|
+
content: "";
|
339
|
+
position: absolute;
|
340
|
+
top: 0;
|
341
|
+
right: 0;
|
342
|
+
bottom: 0;
|
343
|
+
left: 0;
|
344
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
345
|
+
pointer-events: none;
|
346
|
+
}
|
347
|
+
|
348
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
349
|
+
position: absolute;
|
350
|
+
top: 0;
|
351
|
+
left: 0;
|
352
|
+
right: 0;
|
353
|
+
padding-left: 19px;
|
354
|
+
padding-right: 6px;
|
355
|
+
background-repeat: no-repeat;
|
356
|
+
}
|
357
|
+
|
358
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
359
|
+
margin-left: -14px;
|
360
|
+
float: left;
|
361
|
+
}
|
362
|
+
|
363
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
364
|
+
margin-left: -19px;
|
365
|
+
float: left;
|
366
|
+
}
|
367
|
+
|
368
|
+
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
369
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
370
|
+
background-repeat: no-repeat;
|
371
|
+
background-position: 2px center;
|
372
|
+
}
|
373
|
+
|
374
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
375
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
376
|
+
background-repeat: no-repeat;
|
377
|
+
background-position: 2px center;
|
378
|
+
}
|
379
|
+
|
380
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
381
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
382
|
+
background-repeat: no-repeat;
|
383
|
+
background-position: 2px center;
|
384
|
+
}
|
385
|
+
|
386
|
+
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
387
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
388
|
+
}
|
389
|
+
|
390
|
+
.ace_icon_svg.ace_error {
|
391
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
392
|
+
background-color: crimson;
|
393
|
+
}
|
394
|
+
.ace_icon_svg.ace_security {
|
395
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
396
|
+
background-color: crimson;
|
397
|
+
}
|
398
|
+
.ace_icon_svg.ace_warning {
|
399
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
400
|
+
background-color: darkorange;
|
401
|
+
}
|
402
|
+
.ace_icon_svg.ace_info {
|
403
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
404
|
+
background-color: royalblue;
|
405
|
+
}
|
406
|
+
.ace_icon_svg.ace_hint {
|
407
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
408
|
+
background-color: silver;
|
409
|
+
}
|
410
|
+
|
411
|
+
.ace_icon_svg.ace_error_fold {
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
413
|
+
background-color: crimson;
|
414
|
+
}
|
415
|
+
.ace_icon_svg.ace_security_fold {
|
416
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
417
|
+
background-color: crimson;
|
418
|
+
}
|
419
|
+
.ace_icon_svg.ace_warning_fold {
|
420
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
421
|
+
background-color: darkorange;
|
422
|
+
}
|
423
|
+
|
424
|
+
.ace_scrollbar {
|
425
|
+
contain: strict;
|
426
|
+
position: absolute;
|
427
|
+
right: 0;
|
428
|
+
bottom: 0;
|
429
|
+
z-index: 6;
|
430
|
+
}
|
431
|
+
|
432
|
+
.ace_scrollbar-inner {
|
433
|
+
position: absolute;
|
434
|
+
cursor: text;
|
435
|
+
left: 0;
|
436
|
+
top: 0;
|
437
|
+
}
|
438
|
+
|
439
|
+
.ace_scrollbar-v{
|
440
|
+
overflow-x: hidden;
|
441
|
+
overflow-y: scroll;
|
442
|
+
top: 0;
|
443
|
+
}
|
444
|
+
|
445
|
+
.ace_scrollbar-h {
|
446
|
+
overflow-x: scroll;
|
447
|
+
overflow-y: hidden;
|
448
|
+
left: 0;
|
449
|
+
}
|
450
|
+
|
451
|
+
.ace_print-margin {
|
452
|
+
position: absolute;
|
453
|
+
height: 100%;
|
454
|
+
}
|
455
|
+
|
456
|
+
.ace_text-input {
|
457
|
+
position: absolute;
|
458
|
+
z-index: 0;
|
459
|
+
width: 0.5em;
|
460
|
+
height: 1em;
|
461
|
+
opacity: 0;
|
462
|
+
background: transparent;
|
463
|
+
-moz-appearance: none;
|
464
|
+
appearance: none;
|
465
|
+
border: none;
|
466
|
+
resize: none;
|
467
|
+
outline: none;
|
468
|
+
overflow: hidden;
|
469
|
+
font: inherit;
|
470
|
+
padding: 0 1px;
|
471
|
+
margin: 0 -1px;
|
472
|
+
contain: strict;
|
473
|
+
-ms-user-select: text;
|
474
|
+
-moz-user-select: text;
|
475
|
+
-webkit-user-select: text;
|
476
|
+
user-select: text;
|
477
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
478
|
+
white-space: pre!important;
|
479
|
+
}
|
480
|
+
.ace_text-input.ace_composition {
|
481
|
+
background: transparent;
|
482
|
+
color: inherit;
|
483
|
+
z-index: 1000;
|
484
|
+
opacity: 1;
|
485
|
+
}
|
486
|
+
.ace_composition_placeholder { color: transparent }
|
487
|
+
.ace_composition_marker {
|
488
|
+
border-bottom: 1px solid;
|
489
|
+
position: absolute;
|
490
|
+
border-radius: 0;
|
491
|
+
margin-top: 1px;
|
492
|
+
}
|
493
|
+
|
494
|
+
[ace_nocontext=true] {
|
495
|
+
transform: none!important;
|
496
|
+
filter: none!important;
|
497
|
+
clip-path: none!important;
|
498
|
+
mask : none!important;
|
499
|
+
contain: none!important;
|
500
|
+
perspective: none!important;
|
501
|
+
mix-blend-mode: initial!important;
|
502
|
+
z-index: auto;
|
503
|
+
}
|
504
|
+
|
505
|
+
.ace_layer {
|
506
|
+
z-index: 1;
|
507
|
+
position: absolute;
|
508
|
+
overflow: hidden;
|
509
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
510
|
+
word-wrap: normal;
|
511
|
+
white-space: pre;
|
512
|
+
height: 100%;
|
513
|
+
width: 100%;
|
514
|
+
box-sizing: border-box;
|
515
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
516
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
517
|
+
pointer-events: none;
|
518
|
+
}
|
519
|
+
|
520
|
+
.ace_gutter-layer {
|
521
|
+
position: relative;
|
522
|
+
width: auto;
|
523
|
+
text-align: right;
|
524
|
+
pointer-events: auto;
|
525
|
+
height: 1000000px;
|
526
|
+
contain: style size layout;
|
527
|
+
}
|
528
|
+
|
529
|
+
.ace_text-layer {
|
530
|
+
font: inherit !important;
|
531
|
+
position: absolute;
|
532
|
+
height: 1000000px;
|
533
|
+
width: 1000000px;
|
534
|
+
contain: style size layout;
|
535
|
+
}
|
536
|
+
|
537
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
538
|
+
contain: style size layout;
|
539
|
+
position: absolute;
|
540
|
+
top: 0;
|
541
|
+
left: 0;
|
542
|
+
right: 0;
|
543
|
+
}
|
544
|
+
|
545
|
+
.ace_hidpi .ace_text-layer,
|
546
|
+
.ace_hidpi .ace_gutter-layer,
|
547
|
+
.ace_hidpi .ace_content,
|
548
|
+
.ace_hidpi .ace_gutter {
|
549
|
+
contain: strict;
|
550
|
+
}
|
551
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
552
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
553
|
+
contain: strict;
|
554
|
+
}
|
555
|
+
|
556
|
+
.ace_cjk {
|
557
|
+
display: inline-block;
|
558
|
+
text-align: center;
|
559
|
+
}
|
560
|
+
|
561
|
+
.ace_cursor-layer {
|
562
|
+
z-index: 4;
|
563
|
+
}
|
564
|
+
|
565
|
+
.ace_cursor {
|
566
|
+
z-index: 4;
|
567
|
+
position: absolute;
|
568
|
+
box-sizing: border-box;
|
569
|
+
border-left: 2px solid;
|
570
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
571
|
+
transform: translatez(0);
|
572
|
+
}
|
573
|
+
|
574
|
+
.ace_multiselect .ace_cursor {
|
575
|
+
border-left-width: 1px;
|
576
|
+
}
|
577
|
+
|
578
|
+
.ace_slim-cursors .ace_cursor {
|
579
|
+
border-left-width: 1px;
|
580
|
+
}
|
581
|
+
|
582
|
+
.ace_overwrite-cursors .ace_cursor {
|
583
|
+
border-left-width: 0;
|
584
|
+
border-bottom: 1px solid;
|
585
|
+
}
|
586
|
+
|
587
|
+
.ace_hidden-cursors .ace_cursor {
|
588
|
+
opacity: 0.2;
|
589
|
+
}
|
590
|
+
|
591
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
592
|
+
opacity: 0;
|
593
|
+
}
|
594
|
+
|
595
|
+
.ace_smooth-blinking .ace_cursor {
|
596
|
+
transition: opacity 0.18s;
|
597
|
+
}
|
598
|
+
|
599
|
+
.ace_animate-blinking .ace_cursor {
|
600
|
+
animation-duration: 1000ms;
|
601
|
+
animation-timing-function: step-end;
|
602
|
+
animation-name: blink-ace-animate;
|
603
|
+
animation-iteration-count: infinite;
|
604
|
+
}
|
605
|
+
|
606
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
607
|
+
animation-duration: 1000ms;
|
608
|
+
animation-timing-function: ease-in-out;
|
609
|
+
animation-name: blink-ace-animate-smooth;
|
610
|
+
}
|
611
|
+
|
612
|
+
@keyframes blink-ace-animate {
|
613
|
+
from, to { opacity: 1; }
|
614
|
+
60% { opacity: 0; }
|
615
|
+
}
|
616
|
+
|
617
|
+
@keyframes blink-ace-animate-smooth {
|
618
|
+
from, to { opacity: 1; }
|
619
|
+
45% { opacity: 1; }
|
620
|
+
60% { opacity: 0; }
|
621
|
+
85% { opacity: 0; }
|
622
|
+
}
|
623
|
+
|
624
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
625
|
+
position: absolute;
|
626
|
+
z-index: 3;
|
627
|
+
}
|
628
|
+
|
629
|
+
.ace_marker-layer .ace_selection {
|
630
|
+
position: absolute;
|
631
|
+
z-index: 5;
|
632
|
+
}
|
633
|
+
|
634
|
+
.ace_marker-layer .ace_bracket {
|
635
|
+
position: absolute;
|
636
|
+
z-index: 6;
|
637
|
+
}
|
638
|
+
|
639
|
+
.ace_marker-layer .ace_error_bracket {
|
640
|
+
position: absolute;
|
641
|
+
border-bottom: 1px solid #DE5555;
|
642
|
+
border-radius: 0;
|
643
|
+
}
|
644
|
+
|
645
|
+
.ace_marker-layer .ace_active-line {
|
646
|
+
position: absolute;
|
647
|
+
z-index: 2;
|
648
|
+
}
|
649
|
+
|
650
|
+
.ace_marker-layer .ace_selected-word {
|
651
|
+
position: absolute;
|
652
|
+
z-index: 4;
|
653
|
+
box-sizing: border-box;
|
654
|
+
}
|
655
|
+
|
656
|
+
.ace_line .ace_fold {
|
657
|
+
box-sizing: border-box;
|
658
|
+
|
659
|
+
display: inline-block;
|
660
|
+
height: 11px;
|
661
|
+
margin-top: -2px;
|
662
|
+
vertical-align: middle;
|
663
|
+
|
664
|
+
background-image:
|
665
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
666
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
667
|
+
background-repeat: no-repeat, repeat-x;
|
668
|
+
background-position: center center, top left;
|
669
|
+
color: transparent;
|
670
|
+
|
671
|
+
border: 1px solid black;
|
672
|
+
border-radius: 2px;
|
673
|
+
|
674
|
+
cursor: pointer;
|
675
|
+
pointer-events: auto;
|
676
|
+
}
|
677
|
+
|
678
|
+
.ace_dark .ace_fold {
|
679
|
+
}
|
680
|
+
|
681
|
+
.ace_fold:hover{
|
682
|
+
background-image:
|
683
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
684
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
685
|
+
}
|
686
|
+
|
687
|
+
.ace_tooltip {
|
688
|
+
background-color: #f5f5f5;
|
689
|
+
border: 1px solid gray;
|
690
|
+
border-radius: 1px;
|
691
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
692
|
+
color: black;
|
693
|
+
max-width: 100%;
|
694
|
+
padding: 3px 4px;
|
695
|
+
position: fixed;
|
696
|
+
z-index: 999999;
|
697
|
+
box-sizing: border-box;
|
698
|
+
cursor: default;
|
699
|
+
white-space: pre-wrap;
|
700
|
+
word-wrap: break-word;
|
701
|
+
line-height: normal;
|
702
|
+
font-style: normal;
|
703
|
+
font-weight: normal;
|
704
|
+
letter-spacing: normal;
|
705
|
+
pointer-events: none;
|
706
|
+
overflow: auto;
|
707
|
+
max-width: min(60em, 66vw);
|
708
|
+
overscroll-behavior: contain;
|
709
|
+
}
|
710
|
+
.ace_tooltip pre {
|
711
|
+
white-space: pre-wrap;
|
712
|
+
}
|
713
|
+
|
714
|
+
.ace_tooltip.ace_dark {
|
715
|
+
background-color: #636363;
|
716
|
+
color: #fff;
|
717
|
+
}
|
718
|
+
|
719
|
+
.ace_tooltip:focus {
|
720
|
+
outline: 1px solid #5E9ED6;
|
721
|
+
}
|
722
|
+
|
723
|
+
.ace_icon {
|
724
|
+
display: inline-block;
|
725
|
+
width: 18px;
|
726
|
+
vertical-align: top;
|
727
|
+
}
|
728
|
+
|
729
|
+
.ace_icon_svg {
|
730
|
+
display: inline-block;
|
731
|
+
width: 12px;
|
732
|
+
vertical-align: top;
|
733
|
+
-webkit-mask-repeat: no-repeat;
|
734
|
+
-webkit-mask-size: 12px;
|
735
|
+
-webkit-mask-position: center;
|
736
|
+
}
|
737
|
+
|
738
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
739
|
+
padding-right: 13px;
|
740
|
+
}
|
741
|
+
|
742
|
+
.ace_fold-widget {
|
743
|
+
box-sizing: border-box;
|
744
|
+
|
745
|
+
margin: 0 -12px 0 1px;
|
746
|
+
display: none;
|
747
|
+
width: 11px;
|
748
|
+
vertical-align: top;
|
749
|
+
|
750
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
751
|
+
background-repeat: no-repeat;
|
752
|
+
background-position: center;
|
753
|
+
|
754
|
+
border-radius: 3px;
|
755
|
+
|
756
|
+
border: 1px solid transparent;
|
757
|
+
cursor: pointer;
|
758
|
+
}
|
759
|
+
|
760
|
+
.ace_folding-enabled .ace_fold-widget {
|
761
|
+
display: inline-block;
|
762
|
+
}
|
763
|
+
|
764
|
+
.ace_fold-widget.ace_end {
|
765
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
766
|
+
}
|
767
|
+
|
768
|
+
.ace_fold-widget.ace_closed {
|
769
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
770
|
+
}
|
771
|
+
|
772
|
+
.ace_fold-widget:hover {
|
773
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
774
|
+
background-color: rgba(255, 255, 255, 0.2);
|
775
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
776
|
+
}
|
777
|
+
|
778
|
+
.ace_fold-widget:active {
|
779
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
780
|
+
background-color: rgba(0, 0, 0, 0.05);
|
781
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
782
|
+
}
|
783
|
+
/**
|
784
|
+
* Dark version for fold widgets
|
785
|
+
*/
|
786
|
+
.ace_dark .ace_fold-widget {
|
787
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
788
|
+
}
|
789
|
+
.ace_dark .ace_fold-widget.ace_end {
|
790
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
791
|
+
}
|
792
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
793
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
794
|
+
}
|
795
|
+
.ace_dark .ace_fold-widget:hover {
|
796
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
797
|
+
background-color: rgba(255, 255, 255, 0.1);
|
798
|
+
}
|
799
|
+
.ace_dark .ace_fold-widget:active {
|
800
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
801
|
+
}
|
802
|
+
|
803
|
+
.ace_inline_button {
|
804
|
+
border: 1px solid lightgray;
|
805
|
+
display: inline-block;
|
806
|
+
margin: -1px 8px;
|
807
|
+
padding: 0 5px;
|
808
|
+
pointer-events: auto;
|
809
|
+
cursor: pointer;
|
810
|
+
}
|
811
|
+
.ace_inline_button:hover {
|
812
|
+
border-color: gray;
|
813
|
+
background: rgba(200,200,200,0.2);
|
814
|
+
display: inline-block;
|
815
|
+
pointer-events: auto;
|
816
|
+
}
|
817
|
+
|
818
|
+
.ace_fold-widget.ace_invalid {
|
819
|
+
background-color: #FFB4B4;
|
820
|
+
border-color: #DE5555;
|
821
|
+
}
|
822
|
+
|
823
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
824
|
+
transition: opacity 0.4s ease 0.05s;
|
825
|
+
opacity: 0;
|
826
|
+
}
|
827
|
+
|
828
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
829
|
+
transition: opacity 0.05s ease 0.05s;
|
830
|
+
opacity:1;
|
831
|
+
}
|
832
|
+
|
833
|
+
.ace_underline {
|
834
|
+
text-decoration: underline;
|
835
|
+
}
|
836
|
+
|
837
|
+
.ace_bold {
|
838
|
+
font-weight: bold;
|
839
|
+
}
|
840
|
+
|
841
|
+
.ace_nobold .ace_bold {
|
842
|
+
font-weight: normal;
|
843
|
+
}
|
844
|
+
|
845
|
+
.ace_italic {
|
846
|
+
font-style: italic;
|
847
|
+
}
|
848
|
+
|
849
|
+
|
850
|
+
.ace_error-marker {
|
851
|
+
background-color: rgba(255, 0, 0,0.2);
|
852
|
+
position: absolute;
|
853
|
+
z-index: 9;
|
854
|
+
}
|
855
|
+
|
856
|
+
.ace_highlight-marker {
|
857
|
+
background-color: rgba(255, 255, 0,0.2);
|
858
|
+
position: absolute;
|
859
|
+
z-index: 8;
|
860
|
+
}
|
861
|
+
|
862
|
+
.ace_mobile-menu {
|
863
|
+
position: absolute;
|
864
|
+
line-height: 1.5;
|
865
|
+
border-radius: 4px;
|
866
|
+
-ms-user-select: none;
|
867
|
+
-moz-user-select: none;
|
868
|
+
-webkit-user-select: none;
|
869
|
+
user-select: none;
|
870
|
+
background: white;
|
871
|
+
box-shadow: 1px 3px 2px grey;
|
872
|
+
border: 1px solid #dcdcdc;
|
873
|
+
color: black;
|
874
|
+
}
|
875
|
+
.ace_dark > .ace_mobile-menu {
|
876
|
+
background: #333;
|
877
|
+
color: #ccc;
|
878
|
+
box-shadow: 1px 3px 2px grey;
|
879
|
+
border: 1px solid #444;
|
880
|
+
|
881
|
+
}
|
882
|
+
.ace_mobile-button {
|
883
|
+
padding: 2px;
|
884
|
+
cursor: pointer;
|
885
|
+
overflow: hidden;
|
886
|
+
}
|
887
|
+
.ace_mobile-button:hover {
|
888
|
+
background-color: #eee;
|
889
|
+
opacity:1;
|
890
|
+
}
|
891
|
+
.ace_mobile-button:active {
|
892
|
+
background-color: #ddd;
|
893
|
+
}
|
894
|
+
|
895
|
+
.ace_placeholder {
|
896
|
+
position: relative;
|
897
|
+
font-family: arial;
|
898
|
+
transform: scale(0.9);
|
899
|
+
transform-origin: left;
|
900
|
+
white-space: pre;
|
901
|
+
opacity: 0.7;
|
902
|
+
margin: 0 10px;
|
903
|
+
z-index: 1;
|
904
|
+
}
|
905
|
+
|
906
|
+
.ace_ghost_text {
|
907
|
+
opacity: 0.5;
|
908
|
+
font-style: italic;
|
909
|
+
}
|
910
|
+
|
911
|
+
.ace_ghost_text_container > div {
|
912
|
+
white-space: pre;
|
913
|
+
}
|
914
|
+
|
915
|
+
.ghost_text_line_wrapped::after {
|
916
|
+
content: "↩";
|
917
|
+
position: absolute;
|
918
|
+
}
|
919
|
+
|
920
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
921
|
+
margin: 0px 4px
|
922
|
+
}
|
923
|
+
|
924
|
+
.ace_screenreader-only {
|
925
|
+
position:absolute;
|
926
|
+
left:-10000px;
|
927
|
+
top:auto;
|
928
|
+
width:1px;
|
929
|
+
height:1px;
|
930
|
+
overflow:hidden;
|
931
|
+
}
|
932
|
+
|
933
|
+
.ace_hidden_token {
|
934
|
+
display: none;
|
935
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/oop"),v=e("../lib/event_emitter").EventEmitter,h=function(){function g(a,c){this.canvas=p.createElement("canvas"),this.renderer=c,this.pixelRatio=1,this.maxHeight=c.layerConfig.maxHeight,this.lineHeight=c.layerConfig.lineHeight,this.canvasHeight=a.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=a.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},a.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(a){var c=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(a){this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height;var s=(a.lastRow+1)*this.lineHeight;s<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var l=this.canvas.getContext("2d");function o(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var u=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),u){var m={info:1,warning:2,error:3};u.forEach(function(N){N.priority=m[N.type]||null}),u=u.sort(o);for(var w=this.renderer.session.$foldData,b=0;b<u.length;b++){var M=u[b].row,C=this.compensateFoldRows(M,w),k=Math.round((M-C)*this.lineHeight*this.heightRatio),x=Math.round((M-C)*this.lineHeight*this.heightRatio),T=Math.round(((M-C)*this.lineHeight+this.lineHeight)*this.heightRatio),R=T-x;if(R<this.minDecorationHeight){var I=(x+T)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),x=Math.round(I-this.halfMinDecorationHeight),T=Math.round(I+this.halfMinDecorationHeight)}l.fillStyle=c[u[b].type]||null,l.fillRect(0,k,this.canvasWidth,T-x)}}var E=this.renderer.session.selection.getCursor();if(E){var C=this.compensateFoldRows(E.row,w),k=Math.round((E.row-C)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,k,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(a,c){var s=0;if(c&&c.length>0)for(var l=0;l<c.length;l++)a>c[l].start.row&&a<c[l].end.row?s+=a-c[l].start.row:a>=c[l].end.row&&(s+=c[l].end.row-c[l].start.row);return s},g}();y.implement(h.prototype,v),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,f){var p=e("./lib/oop"),y=e("./lib/dom"),v=e("./lib/lang"),h=e("./config"),g=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,c=e("./layer/text").Text,s=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,m=e("./scrollbar_custom").VScrollBar,w=e("./renderloop").RenderLoop,b=e("./layer/font_metrics").FontMetrics,M=e("./lib/event_emitter").EventEmitter,C=e("./css/editor-css"),k=e("./layer/decorators").Decorator,x=e("./lib/useragent"),T=e("./layer/text_util").isTextToken;y.importCssString(C,"ace_editor.css",!1);var R=function(){function I(E,N){var S=this;this.container=E||y.createElement("div"),y.addCssClass(this.container,"ace_editor"),y.HI_DPI&&y.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=y.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=y.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=y.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var _=this.$textLayer=new c(this.content);this.canvas=_.element,this.$markerFront=new a(this.content),this.$cursorLayer=new s(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function($){S.$scrollAnimation||S.session.setScrollTop($.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){S.$scrollAnimation||S.session.setScrollLeft($.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!x.isIOS,this.$loop=new w(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return I.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),y.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.prototype.setSession=function(E){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=E,E&&this.scrollMargin.top&&E.getScrollTop()<=0&&E.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(E),this.$markerBack.setSession(E),this.$markerFront.setSession(E),this.$gutterLayer.setSession(E),this.$textLayer.setSession(E),E&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},I.prototype.updateLines=function(E,N,S){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>E&&(this.$changedLines.firstRow=E),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:E,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(S)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(E){E?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(E,N,S,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=E?1:0;var $=this.container;_||(_=$.clientHeight||$.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",_=$.clientHeight||$.scrollHeight),S||(S=$.clientWidth||$.scrollWidth);var L=this.$updateCachedSize(E,N,S,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!_)return this.resizing=0;E&&(this.$gutterLayer.$padding=null),E?this.$renderChanges(L|this.$changes,!0):this.$loop.schedule(L|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(E,N,S,_){_-=this.$extraHeight||0;var $=0,L=this.$size,O={width:L.width,height:L.height,scrollerHeight:L.scrollerHeight,scrollerWidth:L.scrollerWidth};if(_&&(E||L.height!=_)&&(L.height=_,$|=this.CHANGE_SIZE,L.scrollerHeight=L.height,this.$horizScroll&&(L.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(L.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),S&&(E||L.width!=S)){$|=this.CHANGE_SIZE,L.width=S,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,y.setStyle(this.scrollBarH.element.style,"left",N+"px"),y.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),L.scrollerWidth=Math.max(0,S-N-this.scrollBarV.getWidth()-this.margin.h),y.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";y.setStyle(this.scrollBarH.element.style,"right",F),y.setStyle(this.scroller.style,"right",F),y.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(L.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||E)&&($|=this.CHANGE_FULL)}return L.$dirty=!S||!_,$&&this._signal("resize",O),$},I.prototype.onGutterResize=function(E){var N=this.$showGutter?E:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},I.prototype.adjustWrapLimit=function(){var E=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(E/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(E){this.setOption("animatedScroll",E)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(E){this.setOption("showInvisibles",E),this.session.$bidiHandler.setShowInvisibles(E)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(E){this.setOption("displayIndentGuides",E)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(E){this.setOption("highlightIndentGuides",E)},I.prototype.setShowPrintMargin=function(E){this.setOption("showPrintMargin",E)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(E){this.setOption("printMarginColumn",E)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(E){return this.setOption("showGutter",E)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},I.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var E=y.createElement("div");E.className="ace_layer ace_print-margin-layer",this.$printMarginEl=y.createElement("div"),this.$printMarginEl.className="ace_print-margin",E.appendChild(this.$printMarginEl),this.content.insertBefore(E,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var E=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){y.translate(this.textarea,-100,0);return}var S=this.$cursorLayer.$pixelPos;if(S){N&&N.markerRange&&(S=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,$=S.top,L=S.left;$-=_.offset;var O=N&&N.useTextareaForIME||x.isMobile?this.lineHeight:1;if($<0||$>_.height-O){y.translate(this.textarea,0,0);return}var F=1,H=this.$size.height-O;if(!N)$+=this.lineHeight;else if(N.useTextareaForIME){var j=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(j)[0]}else $+=this.lineHeight+2;L-=this.scrollLeft,L>this.$size.scrollerWidth-F&&(L=this.$size.scrollerWidth-F),L+=this.gutterWidth+this.margin.left,y.setStyle(E,"height",O+"px"),y.setStyle(E,"width",F+"px"),y.translate(this.textarea,Math.min(L,this.$size.scrollerWidth-F),Math.min($,H))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var E=this.layerConfig,N=E.lastRow,S=this.session.documentToScreenRow(N,0)*E.lineHeight;return S-this.session.getScrollTop()>E.height-E.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(E){this.$padding=E,this.$textLayer.setPadding(E),this.$cursorLayer.setPadding(E),this.$markerFront.setPadding(E),this.$markerBack.setPadding(E),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(E,N,S,_){var $=this.scrollMargin;$.top=E|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},I.prototype.setMargin=function(E,N,S,_){var $=this.margin;$.top=E|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(E){this.setOption("hScrollBarAlwaysVisible",E)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(E){this.setOption("vScrollBarAlwaysVisible",E)},I.prototype.$updateScrollBarV=function(){var E=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(E-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>E-N&&(E=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(E+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(E,N){if(this.$changes&&(E|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!E&&!N){this.$changes|=E;return}if(this.$size.$dirty)return this.$changes|=E,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",E),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(E&this.CHANGE_FULL||E&this.CHANGE_SIZE||E&this.CHANGE_TEXT||E&this.CHANGE_LINES||E&this.CHANGE_SCROLL||E&this.CHANGE_H_SCROLL){if(E|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,E=E|this.CHANGE_SCROLL,E|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),E&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),y.translate(this.content,-this.scrollLeft,-S.offset);var $=S.width+2*this.$padding+"px",L=S.minHeight+"px";y.setStyle(this.content.style,"width",$),y.setStyle(this.content.style,"height",L)}if(E&this.CHANGE_H_SCROLL&&(y.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),E&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}if(E&this.CHANGE_SCROLL){this.$changedLines=null,E&this.CHANGE_TEXT||E&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(E&this.CHANGE_GUTTER||E&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",E);return}E&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_LINES?((this.$updateLines()||E&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_TEXT||E&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):E&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),E&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),E&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),this._signal("afterRender",E)},I.prototype.$autosize=function(){var E=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,S=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,E))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var _=S<=2*this.lineHeight,$=!_&&E>N;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var L=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,L,S),this.desiredHeight=S,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var E=this.session,N=this.$size,S=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),$=_*this.lineHeight,L=this.$getLongestLine(),O=!S&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-L-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var H=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var j=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,$-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,L+2*this.$padding-N.scrollerWidth+q.right)));var X=!S&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-$+V<0||this.scrollTop>q.top),G=H!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(j/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,me,we,pe=this.lineHeight;J=E.screenToDocumentRow(J,0);var _e=E.getFoldLine(J);_e&&(J=_e.start.row),me=E.documentToScreenRow(J,0),we=E.getRowLength(J)*pe,ae=Math.min(E.screenToDocumentRow(ae,0),E.getLength()-1),j=N.scrollerHeight+E.getRowLength(ae)*pe+we,Z=this.scrollTop-me*pe;var rt=0;return(this.layerConfig.width!=L||F)&&(rt=this.CHANGE_H_SCROLL),(F||G)&&(rt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(L=this.$getLongestLine())),this.layerConfig={width:L,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:pe,characterWidth:this.characterWidth,minHeight:j,maxHeight:$,offset:Z,gutterOffset:pe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/pe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(L-this.$padding),rt},I.prototype.$updateLines=function(){if(this.$changedLines){var E=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(E>S.lastRow+1)&&!(N<S.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(S),this.$textLayer.update(S);return}return this.$textLayer.updateLines(S,E,N),!0}}},I.prototype.$getLongestLine=function(){var E=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(E+=1),this.$textLayer&&E>this.$textLayer.MAX_LINE_LENGTH&&(E=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(E*this.characterWidth))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(E,N){this.$gutterLayer.addGutterDecoration(E,N)},I.prototype.removeGutterDecoration=function(E,N){this.$gutterLayer.removeGutterDecoration(E,N)},I.prototype.updateBreakpoints=function(E){this._rows=E,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(E){this.$gutterLayer.setAnnotations(E),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(E,N,S){this.scrollCursorIntoView(E,S),this.scrollCursorIntoView(N,S)},I.prototype.scrollCursorIntoView=function(E,N,S){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(E),$=_.left,L=_.top,O=S&&S.top||0,F=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+O>L?(N&&H+O>L+this.lineHeight&&(L-=N*this.$size.scrollerHeight),L===0&&(L=-this.scrollMargin.top),this.session.setScrollTop(L)):H+this.$size.scrollerHeight-F<L+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<L-this.lineHeight&&(L+=N*this.$size.scrollerHeight),this.session.setScrollTop(L+this.lineHeight+F-this.$size.scrollerHeight));var j=this.scrollLeft,V=2*this.layerConfig.characterWidth;$-V<j?($-=V,$<this.$padding+V&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=V,j+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):j<=this.$padding&&$-j<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(E){this.session.setScrollTop(E*this.lineHeight)},I.prototype.alignCursor=function(E,N){typeof E=="number"&&(E={row:E,column:0});var S=this.$cursorLayer.getPixelPosition(E),_=this.$size.scrollerHeight-this.lineHeight,$=S.top-_*(N||0);return this.session.setScrollTop($),$},I.prototype.$calcSteps=function(E,N){var S=0,_=this.STEPS,$=[],L=function(O,F,H){return H*(Math.pow(O-1,3)+1)+F};for(S=0;S<_;++S)$.push(L(S/this.STEPS,E,N-E));return $},I.prototype.scrollToLine=function(E,N,S,_){var $=this.$cursorLayer.getPixelPosition({row:E,column:0}),L=$.top;N&&(L-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(L),S!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(E,N){var S=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(E==S)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(E=$[0],E==S))return}var L=_.$calcSteps(E,S);this.$scrollAnimation={from:E,to:S,steps:L},clearInterval(this.$timer),_.session.setScrollTop(L.shift()),_.session.$scrollTop=S;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);L.length?(_.session.setScrollTop(L.shift()),_.session.$scrollTop=S):S!=null?(_.session.$scrollTop=-1,_.session.setScrollTop(S),S=null):O()},10)},I.prototype.scrollToY=function(E){this.scrollTop!==E&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=E)},I.prototype.scrollToX=function(E){this.scrollLeft!==E&&(this.scrollLeft=E),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(E,N){this.session.setScrollTop(N),this.session.setScrollLeft(E)},I.prototype.scrollBy=function(E,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),E&&this.session.setScrollLeft(this.session.getScrollLeft()+E)},I.prototype.isScrollableBy=function(E,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||E<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||E>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(E,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([E,N]);E=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-S.left-this.$padding,L=$/this.characterWidth,O=Math.floor((N+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(L):Math.round(L);return{row:O,column:F,side:L-F>0?1:-1,offsetX:$}},I.prototype.screenToTextCoordinates=function(E,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([E,N]);E=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=E+this.scrollLeft-S.left-this.$padding,L=$/this.characterWidth,O=this.$blockCursor?Math.floor(L):Math.round(L),F=Math.floor((N+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),$)},I.prototype.textToScreenCoordinates=function(E,N){var S=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(E,N),$=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,E)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),L=_.row*this.lineHeight;return{pageX:S.left+$-this.scrollLeft,pageY:S.top+L-this.scrollTop}},I.prototype.visualizeFocus=function(){y.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){y.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(E){this.$composition=E,E.cssText||(E.cssText=this.textarea.style.cssText),E.useTextareaForIME==null&&(E.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(y.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):E.markerId=this.session.addMarker(E.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(E){var N=this.session.selection.cursor;this.addToken(E,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),y.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var E=this.session.selection.cursor;this.removeExtraToken(E.row,E.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(E,N){var S=this.session.selection.cursor,_=N||{row:S.row,column:S.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(E,_);this.addToken($[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:E,position:{row:_.row,column:_.column}};var L=y.createElement("div");if($.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;$.slice(1).forEach(function(G){var Z=y.createElement("div"),re=y.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(y.createTextNode(G.text)),Z.appendChild(re),L.appendChild(Z),F=Z}),O.forEach(function(G){var Z=y.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(y.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:L,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(_,!0),j=this.container,V=j.getBoundingClientRect().height,q=$.length*this.lineHeight,X=q<V-H.top;if(X)return;q<V?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(E,N){var S=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(S/this.characterWidth)-2;_=_<=0?60:_;for(var $=E.split(/\r?\n/),L=[],O=0;O<$.length;O++){var F=this.session.$getDisplayTokens($[O],N.column),H=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(H.length>0){var j=0;H.push($[O].length);for(var V=0;V<H.length;V++){var q=$[O].slice(j,H[V]);L.push({text:q,wrapped:!0}),j=H[V]}}else L.push({text:$[O],wrapped:!1})}return L},I.prototype.removeGhostText=function(){if(this.$ghostText){var E=this.$ghostText.position;this.removeExtraToken(E.row,E.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(E,N,S,_){var $=this.session;$.bgTokenizer.lines[S]=null;var L={type:N,value:E},O=$.getTokens(S);if(_==null||!O.length)O.push(L);else for(var F=0,H=0;H<O.length;H++){var j=O[H];if(F+=j.value.length,_<=F){var V=j.value.length-(F-_),q=j.value.slice(0,V),X=j.value.slice(V);O.splice(H,1,{type:j.type,value:q},L,{type:j.type,value:X});break}}this.updateLines(S,S)},I.prototype.hideTokensAfterPosition=function(E,N){for(var S=this.session.getTokens(E),_=0,$=!1,L=[],O=0;O<S.length;O++){var F=S[O];if(_+=F.value.length,F.type!=="ghost_text"){if($){L.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&($=!0)}}return this.updateLines(E,E),L},I.prototype.removeExtraToken=function(E,N){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},I.prototype.setTheme=function(E,N){var S=this;if(this.$themeId=E,S._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var _=E||this.$options.theme.initialValue;h.loadModule(["theme",_],$)}else $(E);function $(L){if(S.$themeId!=E)return N&&N();if(!L||!L.cssClass)throw new Error("couldn't load module "+E+" or it didn't call define");L.$id&&(S.$themeId=L.$id),y.importCssString(L.cssText,L.cssClass,S.container),S.theme&&y.removeCssClass(S.container,S.theme.cssClass);var O="padding"in L?L.padding:"padding"in(S.theme||{})?4:S.$padding;S.$padding&&O!=S.$padding&&S.setPadding(O),S.$theme=L.cssClass,S.theme=L,y.addCssClass(S.container,L.cssClass),y.setCssClass(S.container,"ace_dark",L.isDark),S.$size&&(S.$size.width=0,S.$updateSizeAsync()),S._dispatchEvent("themeLoaded",{theme:L}),N&&N(),x.isSafari&&S.scroller&&(S.scroller.style.background="red",S.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(E,N){y.setCssClass(this.container,E,N!==!1)},I.prototype.unsetStyle=function(E){y.removeCssClass(this.container,E)},I.prototype.setCursorStyle=function(E){y.setStyle(this.scroller.style,"cursor",E)},I.prototype.setMouseCursor=function(E){y.setStyle(this.scroller.style,"cursor",E)},I.prototype.attachToShadowRoot=function(){y.importCssString(C,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(E){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,E===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var E=this;this.$resizeTimer=v.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var S=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(E.$size.width-S)>1||Math.abs(E.$size.height-_)>1?E.$resizeTimer.delay():E.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,p.implement(R.prototype,M),h.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){y.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!x.isMobile&&!x.isIE}}),r.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/net"),v=e("../lib/event_emitter").EventEmitter,h=e("../config");function g(l){var o="importScripts('"+y.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new u;return m.append(o),m.getBlob("application/javascript")}}function a(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=g(l),u=window.URL||window.webkitURL,m=u.createObjectURL(o);return new Worker(m)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,v),this.$createWorkerFromOldConfig=function(l,o,u,m,w){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)m=m||h.moduleUrl(o,"worker");else{var b=this.$normalizePath;m=m||b(e.toUrl("ace/worker/worker.js",null,"_"));var M={};l.forEach(function(C){M[C]=b(e.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(m),w&&this.send("importScripts",w),this.$worker.postMessage({init:!0,tlns:M,module:o,classname:u}),this.$worker},this.onMessage=function(l){var o=l.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return y.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var m=this.callbackId++;this.callbacks[m]=u,o.push(m)}this.send(l,o)},this.emit=function(l,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var s=function(l,o,u){var m=null,w=!1,b=Object.create(v),M=[],C=new c({messageBuffer:M,terminate:function(){},postMessage:function(x){M.push(x),m&&(w?setTimeout(k):k())}});C.setEmitSync=function(x){w=x};var k=function(){var x=M.shift();x.command?m[x.command].apply(m,x.args):x.event&&b._signal(x.event,x.data)};return b.postMessage=function(x){C.onMessage({data:x})},b.callback=function(x,T){this.postMessage({type:"call",id:T,data:x})},b.emit=function(x,T){this.postMessage({type:"event",name:x,data:T})},h.loadModule(["worker",o],function(x){for(m=new x[u](b);M.length;)k()}),C};r.UIWorkerClient=s,r.WorkerClient=c,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,r,f){var p=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,v=e("./lib/oop"),h=function(){function g(a,c,s,l,o,u){var m=this;this.length=c,this.session=a,this.doc=a.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=s;var w=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=w.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var a=this,c=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=c.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=s.addMarker(new p(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=c.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),a.others.push(u)}),s.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,c=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=a.addMarker(new p(s.row,s.column,s.row,s.column+c.length),c.othersClass,null,!1)})}},g.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)}},g.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var c=a;if(c.start.row===c.end.row&&c.start.row===this.pos.row){this.$updating=!0;var s=a.action==="insert"?c.end.column-c.start.column:c.start.column-c.end.column,l=c.start.column>=this.pos.column&&c.start.column<=this.pos.column+this.length+1,o=c.start.column-this.pos.column;if(this.updateAnchors(a),l&&(this.length+=s),l&&!this.session.$fromUndo){if(a.action==="insert")for(var u=this.others.length-1;u>=0;u--){var m=this.others[u],w={row:m.row,column:m.column+o};this.doc.insertMergedLines(w,a.lines)}else if(a.action==="remove")for(var u=this.others.length-1;u>=0;u--){var m=this.others[u],w={row:m.row,column:m.column+o};this.doc.remove(new p(w.row,w.column,w.row,w.column-s))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var c=this.others.length;c--;)this.others[c].onChange(a);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var a=this,c=this.session,s=function(o,u){c.removeMarker(o.markerId),o.markerId=c.addMarker(new p(o.row,o.column,o.row,o.column+a.length),u,null,!1)};s(this.pos,this.mainClass);for(var l=this.others.length;l--;)s(this.others[l],this.othersClass)}},g.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var c=this.session.selection.getCursor();c.row===this.pos.row&&c.column>=this.pos.column&&c.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),c=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,s=0;s<c;s++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();v.implement(h.prototype,y),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent");function v(g,a){return g.row==a.row&&g.column==a.column}function h(g){var a=g.domEvent,c=a.altKey,s=a.shiftKey,l=a.ctrlKey,o=g.getAccelKey(),u=g.getButton();if(l&&y.isMac&&(u=a.button),g.editor.inMultiSelectMode&&u==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!l&&!c&&!o){u===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(u===0){var m=g.editor,w=m.selection,b=m.inMultiSelectMode,M=g.getDocumentPosition(),C=w.getCursor(),k=g.inSelection()||w.isEmpty()&&v(M,C),x=g.x,T=g.y,R=function(q){x=q.clientX,T=q.clientY},I=m.session,E=m.renderer.pixelToScreenCoordinates(x,T),N=E,S;if(m.$mouseHandler.$enableJumpToDef)l&&c||o&&c?S=s?"block":"add":c&&m.$blockSelectEnabled&&(S="block");else if(o&&!c){if(S="add",!b&&s)return}else c&&m.$blockSelectEnabled&&(S="block");if(S&&y.isMac&&a.ctrlKey&&m.$mouseHandler.cancelContextMenu(),S=="add"){if(!b&&k)return;if(!b){var _=w.toOrientedRange();m.addSelectionMarker(_)}var $=w.rangeList.rangeAtPoint(M);m.inVirtualSelectionMode=!0,s&&($=null,_=w.ranges[0]||_,m.removeSelectionMarker(_)),m.once("mouseup",function(){var q=w.toOrientedRange();$&&q.isEmpty()&&v($.cursor,q.cursor)?w.substractPoint(q.cursor):(s?w.substractPoint(_.cursor):_&&(m.removeSelectionMarker(_),w.addRange(_)),w.addRange(q)),m.inVirtualSelectionMode=!1})}else if(S=="block"){g.stop(),m.inVirtualSelectionMode=!0;var L,O=[],F=function(){var q=m.renderer.pixelToScreenCoordinates(x,T),X=I.screenToDocumentPosition(q.row,q.column,q.offsetX);v(N,q)&&v(X,w.lead)||(N=q,m.selection.moveToPosition(X),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(O),O=w.rectangularRangeBlock(N,E),m.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=m.$mouseHandler.$clickSelection.clone()),O.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};b&&!o?w.toSingleRange():!b&&o&&(L=w.toOrientedRange(),m.addSelectionMarker(L)),s?E=I.documentToScreenPosition(w.lead):w.moveToPosition(M),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),m.removeSelectionMarkers(O),O.length||(O=[w.toOrientedRange()]),L&&(m.removeSelectionMarker(L),w.toSingleRange(L));for(var X=0;X<O.length;X++)w.addRange(O[X]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},j=F;p.capture(m.container,R,H);var V=setInterval(function(){j()},20);return g.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,r,f){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(y){y.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(y){y.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(y){y.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(y){y.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(y){y.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(y){y.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(y){y.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(y){y.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(y){y.multiSelect.rangeCount>1?y.multiSelect.joinSelections():y.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(y){y.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(y){y.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(y){y.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(y){y.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(y){return y&&y.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,f){var p=e("./range_list").RangeList,y=e("./range").Range,v=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,g=e("./lib/event"),a=e("./lib/lang"),c=e("./commands/multi_select_commands");r.commands=c.defaultCommands.concat(c.multiSelectCommands);var s=e("./search").Search,l=new s;function o(C,k,x){return l.$options.wrap=!0,l.$options.needle=k,l.$options.backwards=x==-1,l.find(C)}var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,k){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var x=this.toOrientedRange();if(this.rangeList.add(x),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(x),this.$onAddRange(x)}C.cursor||(C.cursor=C.end);var T=this.rangeList.add(C);return this.$onAddRange(C),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var k=this.rangeList.substractPoint(C);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();C.push(k),this.rangeCount=0}for(var x=C.length;x--;){var T=this.ranges.indexOf(C[x]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],k=[],x=0;x<C.length;x++){var T=C[x],R=T.start.row,I=T.end.row;if(R===I)k.push(T.clone());else{for(k.push(new y(R,T.start.column,R,this.session.getLine(R).length));++R<I;)k.push(this.getLineRange(R,!0));k.push(new y(I,0,I,T.end.column))}x==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var x=k.length;x--;)this.addRange(k[x])},this.joinSelections=function(){var C=this.rangeList.ranges,k=C[C.length-1],x=y.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(x,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,k=C[C.length-1],x=y.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(x,k.cursor==k.start)}else{var T=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(T,R);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,k,x){var T=[],R=C.column<k.column;if(R)var I=C.column,E=k.column,N=C.offsetX,S=k.offsetX;else var I=k.column,E=C.column,N=k.offsetX,S=C.offsetX;var _=C.row<k.row;if(_)var $=C.row,L=k.row;else var $=k.row,L=C.row;I<0&&(I=0),$<0&&($=0),$==L&&(x=!0);for(var O,F=$;F<=L;F++){var H=y.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,E,S));if(H.isEmpty()){if(O&&w(H.end,O))break;O=H.end}H.cursor=R?H.start:H.end,T.push(H)}if(_&&T.reverse(),!x){for(var j=T.length-1;T[j].isEmpty()&&j>0;)j--;if(j>0)for(var V=0;T[V].isEmpty();)V++;for(var q=j;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(v.prototype);var m=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var k=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",k),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var k=this.session.$selectionMarkers.indexOf(C);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var k=this.session.$selectionMarkers,x=C.length;x--;){var T=C[x];if(T.marker){this.session.removeMarker(T.marker);var R=k.indexOf(T);R!=-1&&k.splice(R,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var k=C.command,x=C.editor;if(x.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?T=x.forEachSelection(k,C.args):k.multiSelectAction=="forEachLine"?T=x.forEachSelection(k,C.args,!0):k.multiSelectAction=="single"?(x.exitMultiSelectMode(),T=k.exec(x,C.args||{})):T=k.multiSelectAction(x,C.args||{});else{var T=k.exec(x,C.args||{});x.multiSelect.addRange(x.multiSelect.toOrientedRange()),x.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(C,k,x){if(!this.inVirtualSelectionMode){var T=x&&x.keepOrder,R=x==!0||x&&x.$byLines,I=this.session,E=this.selection,N=E.rangeList,S=(T?E:N).ranges,_;if(!S.length)return C.exec?C.exec(this,k||{}):C(this,k||{});var $=E._eventRegistry;E._eventRegistry={};var L=new v(I);this.inVirtualSelectionMode=!0;for(var O=S.length;O--;){if(R)for(;O>0&&S[O].start.row==S[O-1].end.row;)O--;L.fromOrientedRange(S[O]),L.index=O,this.selection=I.selection=L;var F=C.exec?C.exec(this,k||{}):C(this,k||{});!_&&F!==void 0&&(_=F),L.toOrientedRange(S[O])}L.detach(),this.selection=I.selection=E,this.inVirtualSelectionMode=!1,E._eventRegistry=$,E.mergeOverlappingRanges(),E.ranges[0]&&E.fromOrientedRange(E.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,x=[],T=0;T<k.length;T++)x.push(this.session.getTextRange(k[T]));var R=this.session.getDocument().getNewLineCharacter();C=x.join(R),C.length==(x.length-1)*R.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var x=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var T=k==this.multiSelect.anchor?x.cursor==x.start?x.end:x.start:x.cursor;T.row!=k.row||this.session.$clipPositionToDocument(T.row,T.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,k,x){if(k=k||{},k.needle=C||k.needle,k.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(T)}this.$search.set(k);var R=this.$search.findAll(this.session);if(!R.length)return 0;var I=this.multiSelect;x||I.toSingleRange(R[0]);for(var E=R.length;E--;)I.addRange(R[E],!0);return T&&I.rangeList.rangeAtPoint(T.start)&&I.addRange(T,!0),R.length},this.selectMoreLines=function(C,k){var x=this.selection.toOrientedRange(),T=x.cursor==x.end,R=this.session.documentToScreenPosition(x.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(R.row+C,R.column);if(x.isEmpty())var N=I;else var E=this.session.documentToScreenPosition(T?x.end:x.start),N=this.session.screenToDocumentPosition(E.row+C,E.column);if(T){var S=y.fromPoints(I,N);S.cursor=S.start}else{var S=y.fromPoints(N,I);S.cursor=S.end}if(S.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(x);else if(k)var _=x.cursor;this.selection.addRange(S),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var k=this.session,x=k.multiSelect,T=x.ranges,R=T.length;R--;){var I=T[R];if(I.isEmpty()){var E=k.getWordRange(I.start.row,I.start.column);I.start.row=E.start.row,I.start.column=E.start.column,I.end.row=E.end.row,I.end.column=E.end.column}}x.mergeOverlappingRanges();for(var N=[],R=T.length;R--;){var I=T[R];N.unshift(k.getTextRange(I))}C<0?N.unshift(N.pop()):N.push(N.shift());for(var R=T.length;R--;){var I=T[R],S=I.clone();k.replace(I,N[R]),I.start.row=S.start.row,I.start.column=S.start.column}x.fromOrientedRange(x.ranges[0])},this.selectMore=function(C,k,x){var T=this.session,R=T.multiSelect,I=R.toOrientedRange();if(!(I.isEmpty()&&(I=T.getWordRange(I.start.row,I.start.column),I.cursor=C==-1?I.start:I.end,this.multiSelect.addRange(I),x))){var E=T.getTextRange(I),N=o(T,E,C);N&&(N.cursor=C==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var C=this.session,k=C.multiSelect,x=k.ranges,T=-1,R=x.filter(function(j){if(j.cursor.row==T)return!0;T=j.cursor.row});if(!x.length||R.length==x.length-1){var I=this.selection.getRange(),E=I.start.row,N=I.end.row,S=E==N;if(S){var _=this.session.getLength(),$;do $=this.session.getLine(N);while(/[=:]/.test($)&&++N<_);do $=this.session.getLine(E);while(/[=:]/.test($)&&--E>0);E<0&&(E=0),N>=_&&(N=_-1)}var L=this.session.removeFullLines(E,N);L=this.$reAlignText(L,S),this.session.insert({row:E,column:0},L.join(`
|
936
|
+
`)+`
|
937
|
+
`),S||(I.start.column=0,I.end.column=L[L.length-1].length),this.selection.setRange(I)}else{R.forEach(function(j){k.substractPoint(j.cursor)});var O=0,F=1/0,H=x.map(function(j){var V=j.cursor,q=C.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>O&&(O=V.column),X<F&&(F=X),X});x.forEach(function(j,V){var q=j.cursor,X=O-q.column,G=H[V]-F;X>G?C.insert(q,a.stringRepeat(" ",X-G)):C.remove(new y(q.row,q.column,q.row,q.column-X+G)),j.start.column=j.end.column=O,j.start.row=j.end.row=q.row,j.cursor=j.end}),k.fromOrientedRange(x[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,k){var x=!0,T=!0,R,I,E;return C.map(function(L){var O=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?R==null?(R=O[1].length,I=O[2].length,E=O[3].length,O):(R+I+E!=O[1].length+O[2].length+O[3].length&&(T=!1),R!=O[1].length&&(x=!1),R>O[1].length&&(R=O[1].length),I<O[2].length&&(I=O[2].length),E>O[3].length&&(E=O[3].length),O):[L]}).map(k?S:x?T?_:S:$);function N(L){return a.stringRepeat(" ",L)}function S(L){return L[2]?N(R)+L[2]+N(I-L[2].length+E)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function _(L){return L[2]?N(R+I-L[2].length)+L[2]+N(E)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function $(L){return L[2]?N(R)+L[2]+N(E)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(m.prototype);function w(C,k){return C.row==k.row&&C.column==k.column}r.onSessionChange=function(C){var k=C.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var x=C.oldSession;x&&(x.multiSelect.off("addRange",this.$onAddRange),x.multiSelect.off("removeRange",this.$onRemoveRange),x.multiSelect.off("multiSelect",this.$onMultiSelect),x.multiSelect.off("singleSelect",this.$onSingleSelect),x.multiSelect.lead.off("change",this.$checkMultiselectChange),x.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=r.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",h),C.commands.addCommands(c.defaultCommands),M(C))}function M(C){if(!C.textInput)return;var k=C.textInput.getElement(),x=!1;g.addListener(k,"keydown",function(R){var I=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);C.$blockSelectEnabled&&I?x||(C.renderer.setMouseCursor("crosshair"),x=!0):x&&T()},C),g.addListener(k,"keyup",T,C),g.addListener(k,"blur",T,C);function T(R){x&&(C.renderer.setMouseCursor(""),x=!1)}}r.MultiSelect=b,e("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){b(this),C?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,r,f){var p=e("../../range").Range,y=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(v,h,g){var a=v.getLine(g);return this.foldingStartMarker.test(a)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(v,h,g){return null},this.indentationBlock=function(v,h,g){var a=/\S/,c=v.getLine(h),s=c.search(a);if(s!=-1){for(var l=g||c.length,o=v.getLength(),u=h,m=h;++h<o;){var w=v.getLine(h).search(a);if(w!=-1){if(w<=s){var b=v.getTokenAt(h,0);if(!b||b.type!=="string")break}m=h}}if(m>u){var M=v.getLine(m).length;return new p(u,l,m,M)}}},this.openingBracketBlock=function(v,h,g,a,c){var s={row:g,column:a+1},l=v.$findClosingBracket(h,s,c);if(l){var o=v.foldWidgets[l.row];return o==null&&(o=v.getFoldWidget(l.row)),o=="start"&&l.row>s.row&&(l.row--,l.column=v.getLine(l.row).length),p.fromPoints(s,l)}},this.closingBracketBlock=function(v,h,g,a,c){var s={row:g,column:a},l=v.$findOpeningBracket(h,s);if(l)return l.column++,s.column--,p.fromPoints(l,s)}}).call(y.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,r,f){var p=e("../lib/dom"),y=e("../range").Range,v=e("../config").nls;function h(a,c,s){for(var l=0,o=a.length-1;l<=o;){var u=l+o>>1,m=s(c,a[u]);if(m>0)l=u+1;else if(m<0)o=u-1;else return u}return-(l+1)}function g(a,c,s){var l=a.getAnnotations().sort(y.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},y.comparePoints);o<0&&(o=-o-1),o>=l.length?o=s>0?0:l.length-1:o===0&&s<0&&(o=l.length-1);var u=l[o];if(!(!u||!s)){if(u.row===c){do u=l[o+=s];while(u&&u.row===c);if(!u)return l.slice()}var m=[];c=u.row;do m[s<0?"unshift":"push"](u),u=l[o+=s];while(u&&u.row==c);return m.length&&m}}}r.showErrorMarker=function(a,c){var s=a.session,l=a.getCursorPosition(),o=l.row,u=s.widgetManager.getWidgetsAtRow(o).filter(function(R){return R.type=="errorMarker"})[0];u?u.destroy():o-=c;var m=g(s,o,c),w;if(m){var b=m[0];l.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,l.row=b.row,w=a.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;w={displayText:[v("error-marker.good-state","Looks good!")],className:"ace_ok"}}a.session.unfold(l.row),a.selection.moveToPosition(l);var M={row:l.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},C=M.el.appendChild(p.createElement("div")),k=M.el.appendChild(p.createElement("div"));k.className="error_widget_arrow "+w.className;var x=a.renderer.$cursorLayer.getPixelPosition(l).left;k.style.left=x+a.renderer.gutterWidth-5+"px",M.el.className="error_widget_wrapper",C.className="error_widget "+w.className,w.displayText.forEach(function(R,I){C.appendChild(p.createTextNode(R)),I<w.displayText.length-1&&C.appendChild(p.createElement("br"))}),C.appendChild(p.createElement("div"));var T=function(R,I,E){if(I===0&&(E==="esc"||E==="return"))return M.destroy(),{command:"null"}};M.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(T),s.widgetManager.removeLineWidget(M),a.off("changeSelection",M.destroy),a.off("changeSession",M.destroy),a.off("mouseup",M.destroy),a.off("change",M.destroy))},a.keyBinding.addKeyboardHandler(T),a.on("changeSelection",M.destroy),a.on("changeSession",M.destroy),a.on("mouseup",M.destroy),a.on("change",M.destroy),a.session.widgetManager.addLineWidget(M),M.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:M.el.offsetHeight})},p.importCssString(`
|
938
|
+
.error_widget_wrapper {
|
939
|
+
background: inherit;
|
940
|
+
color: inherit;
|
941
|
+
border:none
|
942
|
+
}
|
943
|
+
.error_widget {
|
944
|
+
border-top: solid 2px;
|
945
|
+
border-bottom: solid 2px;
|
946
|
+
margin: 5px 0;
|
947
|
+
padding: 10px 40px;
|
948
|
+
white-space: pre-wrap;
|
949
|
+
}
|
950
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
951
|
+
border-color: #ff5a5a
|
952
|
+
}
|
953
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
954
|
+
border-color: #F1D817
|
955
|
+
}
|
956
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
957
|
+
border-color: #5a5a5a
|
958
|
+
}
|
959
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
960
|
+
border-color: #5aaa5a
|
961
|
+
}
|
962
|
+
.error_widget_arrow {
|
963
|
+
position: absolute;
|
964
|
+
border: solid 5px;
|
965
|
+
border-top-color: transparent!important;
|
966
|
+
border-right-color: transparent!important;
|
967
|
+
border-left-color: transparent!important;
|
968
|
+
top: -5px;
|
969
|
+
}
|
970
|
+
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,r,f){e("./loader_build")(r);var p=e("./lib/dom"),y=e("./range").Range,v=e("./editor").Editor,h=e("./edit_session").EditSession,g=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(s,l){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof v)return s.env.editor;var u="";if(s&&/input|textarea/i.test(s.tagName)){var m=s;u=m.value,s=p.createElement("pre"),m.parentNode.replaceChild(s,m)}else s&&(u=s.textContent,s.innerHTML="");var w=r.createEditSession(u),b=new v(new a(s),w,l),M={document:w,editor:b,onResize:b.resize.bind(b,null)};return m&&(M.textarea=m),b.on("destroy",function(){M.editor.container.env=null}),b.container.env=b.env=M,b},r.createEditSession=function(s,l){var o=new h(s,l);return o.setUndoManager(new g),o},r.Range=y,r.Editor=v,r.EditSession=h,r.UndoManager=g,r.VirtualRenderer=a;var c=r.config.version;r.version=c}),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 f in e)e.hasOwnProperty(f)&&(r.ace[f]=e[f]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(vf)),vf.exports}e0();var xf={exports:{}},_f;function t0(){return _f||(_f=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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"},g=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/},c=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},s=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},l=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},m=function(){var w="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",b="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",M="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",C="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:b,"constant.language":M,"variable.language":C,"support.function":w,"invalid.deprecated":"debugger"},"identifier"),x=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:x},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:x},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(R,I,E){E.length&&(E=[]);var N=R[R.length-1];return E.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+x+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},s,l,v,h,o,g,a,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(R,I,E){var N=R[2]=="-"||R[2]=="~"?"indentedHeredoc":"heredoc",S=R.split(this.splitRegex);return E.push(N,S[3]),[{type:"constant",value:S[1]},{type:"string",value:S[2]},{type:"support.class",value:S[3]},{type:"string",value:S[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(R,I,E){return R===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(R,I,E){return R===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(R,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:R}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(R,I,E){return this.next="",R=="}"&&E.length>1&&E[1]!="start"&&(E.shift(),this.next=E.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(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"string"}},{token:"constant.language.escape",regex:x},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:x},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,I,E){return E.length&&R===T[E[0]]?(E.shift(),this.next=E.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(R,I,E){return E.length&&R===E[0]?(E.unshift(R,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(R,I,E){return E.length&&R[0]===T[E[0]]?(E.shift(),this.next=E.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(m,y),r.RubyHighlightRules=m}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var g=v.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=v.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(v.getLine(s.row));v.replace(new p(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),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,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=e("../../range").Range,h=e("../../token_iterator").TokenIterator,g=r.FoldMode=function(){};p.inherits(g,y),(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,c,s){var l=a.getLine(s),o=this.foldingStartMarker.test(l),u=this.foldingStopMarker.test(l);if(o&&!u){var m=l.match(this.foldingStartMarker);if(m[1]){if((m[1]=="if"||m[1]=="else"||m[1]=="while"||m[1]=="until"||m[1]=="unless")&&(m[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||m[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(a.getTokenAt(s,m.index+2).type==="keyword")return"start"}else if(!m[3]||a.getTokenAt(s,m.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var m=l.match(this.foldingStopMarker);if(m[3]==="end"){if(a.getTokenAt(s,m.index+1).type==="keyword")return"end"}else if(!m[1]||a.getTokenAt(s,m.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,c,s){var l=a.doc.getLine(s),o=this.foldingStartMarker.exec(l);if(o)return o[1]||o[3]?this.rubyBlock(a,s,o.index+2):this.openingBracketBlock(a,"{",s,o.index);var o=this.foldingStopMarker.exec(l);if(o)return o[3]==="end"&&a.getTokenAt(s,o.index+1).type==="keyword"?this.rubyBlock(a,s,o.index+1):o[1]==="=end"&&a.getTokenAt(s,o.index+1).type==="comment.multiline"?this.rubyBlock(a,s,o.index+1):this.closingBracketBlock(a,"}",s,o.index+o[0].length)},this.rubyBlock=function(a,c,s,l){var o=new h(a,c,s),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var m=u.value,w=a.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);if(!b.test(w))return;var M=this.indentKeywords[m];break;case"when":if(/\sthen\s/.test(w))return;case"elsif":case"rescue":case"ensure":var M=1;break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");if(!b.test(w))return;var M=1;break;default:var M=this.indentKeywords[m]}var C=[m];if(M){var k=M===-1?a.getLine(c-1).length:a.getLine(c).length,x=c,T=[];if(T.push(o.getCurrentTokenRange()),o.step=M===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(M==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var R=!1;if(u.type==="keyword"){var I=M*this.indentKeywords[u.value];switch(w=a.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var E=o.$tokenIndex-1;E>=0;E--){var N=o.$rowTokens[E];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var b=new RegExp("^\\s*"+u.value+"\\s*$");(!b.test(w)||m=="case")&&(I=0,R=!0);break;case"if":case"unless":case"while":case"until":var b=new RegExp("^\\s*"+u.value);b.test(w)||(I=0,R=!0);break;case"when":(/\sthen\s/.test(w)||m=="case")&&(I=0,R=!0)}if(I>0)C.unshift(u.value);else if(I<=0&&R===!1){if(C.shift(),!C.length&&((m=="while"||m=="until"||m=="for")&&u.value!="do"||u.value=="do"&&M==-1&&I!=0||u.value!="do"))break;I===0&&C.unshift(u.value)}}}if(!u)return null;if(l)return T.push(o.getCurrentTokenRange()),T;var c=o.getCurrentTokenRow();if(M===-1){if(u.type==="comment.multiline")var S=6;else var S=a.getLine(c).length;return new v(c,S,x-1,k)}return new v(x,k,c-1,a.getLine(c-1).length)}}}}).call(g.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../range").Range,a=e("./folding/ruby").FoldMode,c=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};p.inherits(c,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,s),w=m.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(s=="start"){var b=l.match(/^.*[\{\(\[]\s*$/),M=l.match(/^\s*(class|def|module)\s.*$/),C=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(b||M||C||k)&&(u+=o)}return u},this.checkOutdent=function(s,l,o){return/^\s+(end|else|rescue|ensure)$/.test(l+o)||this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(s,l,o){var u=l.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(l,o);var m=this.$getIndent(u),w=l.getLine(o-1),b=this.$getIndent(w),M=l.getTabString();b.length<=m.length&&m.slice(-M.length)==M&&l.remove(new g(o,m.length-M.length,o,m.length))},this.getMatching=function(s,l,o){if(l==null){var u=s.selection.lead;o=u.column,l=u.row}var m=s.getTokenAt(l,o);if(m&&m.value in this.indentKeywords)return this.foldingRules.rubyBlock(s,l,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(xf)),xf.exports}t0();var kf={exports:{}},Sf;function n0(){return Sf||(Sf=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",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",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":g,keyword:h},"identifier"),s="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",m="(?:(?:[1-9]\\d*)|(?:0))",w="(?:0[oO]?[0-7]+)",b="(?:0[xX][\\dA-Fa-f]+)",M="(?:0[bB][01]+)",C="(?:"+m+"|"+w+"|"+b+"|"+M+")",k="(?:[eE][+-]?\\d+)",x="(?:\\.\\d+)",T="(?:\\d+)",R="(?:(?:"+T+"?"+x+")|(?:"+T+"\\.))",I="(?:(?:"+R+"|"+T+")"+k+")",E="(?:"+I+"|"+R+")",N=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:s+'"{3}',next:"qqstring3"},{token:"string",regex:s+'"(?=.)',next:"qqstring"},{token:"string",regex:s+"'{3}",next:"qstring3"},{token:"string",regex:s+"'(?=.)",next:"qstring"},{token:"string",regex:l+'"{3}',next:"rawqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rawqqstring"},{token:"string",regex:l+"'{3}",next:"rawqstring3"},{token:"string",regex:l+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+E+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:E},{token:"constant.numeric",regex:C+"[lL]\\b"},{token:"constant.numeric",regex:C+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};p.inherits(v,y),r.PythonHighlightRules=v}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};p.inherits(v,y),(function(){this.getFoldWidgetRange=function(h,g,a){var c=h.getLine(a),s=c.match(this.foldingStartMarker);if(s)return s[1]?this.openingBracketBlock(h,s[1],a,s.index):s[2]?this.indentationBlock(h,a,s.index+s[2].length):this.indentationBlock(h,a)}}).call(v.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,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,g=e("../range").Range,a=function(){this.HighlightRules=v,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};p.inherits(a,y),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,s),w=m.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(s=="start"){var b=l.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,l,o){if(o!==`\r
|
971
|
+
`&&o!=="\r"&&o!==`
|
972
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),s).tokens;if(!u)return!1;do var m=u.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&c[m.value]:!1},this.autoOutdent=function(s,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),m=l.getTabString();u.slice(-m.length)==m&&l.remove(new g(o,u.length-m.length,o,u.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){n&&(n.exports=e)})}()}(kf)),kf.exports}n0();var $f={exports:{}},Af;function r0(){return Af||(Af=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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(v,y),r.JsonHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var g=v.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=v.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(v.getLine(s.row));v.replace(new p(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("../../range").Range,v=e("./fold_mode").FoldMode,h=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};p.inherits(h,v),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,c){var s=g.getLine(c);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var l=this._getFoldWidgetBase(g,a,c);return!l&&this.startRegionRe.test(s)?"start":l},this.getFoldWidgetRange=function(g,a,c,s){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,u);var m=g.getCommentFoldRange(c,u+o[0].length,1);return m&&!m.isMultiLine()&&(s?m=this.getSectionRange(g,c):a!="all"&&(m=null)),m}if(a!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,u):g.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(g,a){var c=g.getLine(a),s=c.search(/\S/),l=a,o=c.length;a+=1;for(var u=a,m=g.getLength();++a<m;){c=g.getLine(a);var w=c.search(/\S/);if(w!==-1){if(s>w)break;var b=this.getFoldWidgetRange(g,"all",a);if(b){if(b.start.row<=l)break;if(b.isMultiLine())a=b.end.row;else if(s==w)break}u=a}}return new y(l,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,a,c){for(var s=a.search(/\s*$/),l=g.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++c<l;){a=g.getLine(c);var w=u.exec(a);if(w&&(w[1]?m--:m++,!m))break}var b=c;if(b>o)return new y(o,s,b,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,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};p.inherits(c,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l);if(s=="start"){var m=l.match(/^.*[\{\(\[]\s*$/);m&&(u+=o)}return u},this.checkOutdent=function(s,l,o){return this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(s,l,o){this.$outdent.autoOutdent(l,o)},this.createWorker=function(s){var l=new a(["ace"],"ace/mode/json_worker","JsonWorker");return l.attachToDocument(s.getDocument()),l.on("annotate",function(o){s.setAnnotations(o.data)}),l.on("terminate",function(){s.clearAnnotations()}),l},this.$id="ace/mode/json"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}($f)),$f.exports}r0();var Cf={exports:{}},Tf;function i0(){return Tf||(Tf=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop");e("../lib/lang");var y=e("./text_highlight_rules").TextHighlightRules,v=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",g=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",c=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",s=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",l=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=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",u=function(){var m=this.createKeywordMapper({"support.function":h,"support.constant":g,"support.type":v,"support.constant.color":a,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:s},{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:"("+s+")(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:s},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:l},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};p.inherits(u,y),r.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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|$)"},v.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(v,y),v.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},v.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},v.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},r.JsDocCommentHighlightRules=v}),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,f){function p(){var s=a.replace("\\d","\\d\\-"),l={onMatch:function(u,m,w){var b=u.charAt(1)=="/"?2:1;return b==1?(m!=this.nextState?w.unshift(this.next,this.nextState,0):w.unshift(this.next),w[2]++):b==2&&m==this.nextState&&(w[1]--,(!w[1]||w[1]<0)&&(w.shift(),w.shift())),[{type:"meta.tag.punctuation."+(b==1?"":"end-")+"tag-open.xml",value:u.slice(0,b)},{type:"meta.tag.tag-name.xml",value:u.substr(b)}]},regex:"</?(?:"+s+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(l);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,m,w){return m==w[0]&&w.shift(),u.length==2&&(w[0]==this.nextState&&w[1]--,(!w[1]||w[1]<0)&&w.splice(0,2)),this.next=w[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,y("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:s},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},l],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function y(s){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var v=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(s){var l={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},o=this.createKeywordMapper(l,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",m="\\\\(?: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]?|.)",w="(function)(\\s*)(\\*?)",b={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(l).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),y("no_regex"),b,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)"+w+"(\\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*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex: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:w+"(\\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"),y("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:[y("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:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!s||!s.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(M,C,k){if(this.next=M=="{"?this.nextState:"",M=="{"&&k.length)k.unshift("start",C);else if(M=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return M=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:m},{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"}),(!s||s.jsx!=0)&&p.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};v.inherits(c,g),r.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(h){var g="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+g+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:g},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+g+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+g+":)?"+g+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:g},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===v&&this.normalizeRules()};(function(){this.embedTagRules=function(h,g,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:g+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,s,l){return l.splice(0),this.token}}],this.embedRules(h,g,[{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(y.prototype),p.inherits(v,y),r.XmlHighlightRules=v}),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,f){var p=e("../lib/oop"),y=e("../lib/lang"),v=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,g=e("./xml_highlight_rules").XmlHighlightRules,a=y.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),c=function(){g.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(s,l){var o=a[l];return["meta.tag.punctuation."+(s=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(v,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};p.inherits(c,g),r.HtmlHighlightRules=c}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,r,f){var p=e("../config").$modes,y=e("../lib/oop"),v=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,g=e("./html_highlight_rules").HtmlHighlightRules,a=function(s){return"(?:[^"+v.escapeRegExp(s)+"\\\\]|\\\\.)*"},c=function(){g.call(this);var s={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,m,w){var b=o.match(/^(\s*)([`~]+)(.*)/),M=/[\w-]+|$/.exec(b[3])[0];return p[M]||(M=""),m.unshift("githubblock",[],[b[1],b[2],M],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,m,w){var b=m[1],M=m[2][0],C=m[2][1],k=m[2][2],x=/^(\s*)(`+|~+)\s*$/.exec(o);if(x&&x[1].length<M.length+3&&x[2].length>=C.length&&x[2][0]==C[0])return m.splice(0,3),this.next=m.shift(),this.token;if(this.next="",k&&p[k]){var T=p[k].getTokenizer().getLineTokens(o,b.slice(0));return m[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},s,{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},s,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:l}),this.normalizeRules()};y.inherits(c,h),r.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=e("../../range").Range,h=r.FoldMode=function(){};p.inherits(h,y),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,a,c){var s=g.getLine(c);return this.foldingStartMarker.test(s)?s[0]=="`"&&g.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,a,c){function s(R){return M=g.getTokens(R)[0],M&&M.type.lastIndexOf(C,0)===0}function l(){var R=M.value[0];return R=="="?6:R=="-"?5:7-M.value.search(/[^#]|$/)}var o=g.getLine(c),u=o.length,m=g.getLength(),w=c,b=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(c)!=="start"){for(;++c<m&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(w,u,c,0)}for(;c-- >0&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(c,o.length,w,0)}var M,C="markup.heading";if(s(c)){for(var k=l();++c<m;)if(s(c)){var x=l();if(x>=k)break}if(b=c-(!M||["=","-"].indexOf(M.value[0])==-1?1:2),b>w)for(;b>w&&/^\s*$/.test(g.getLine(b));)b--;if(b>w){var T=g.getLine(b).length;return new v(w,u,b,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var g=v.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=v.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(v.getLine(s.row));v.replace(new p(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,f){function p(a,c){return a&&a.type.lastIndexOf(c+".xml")>-1}var y=e("../../lib/oop"),v=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(a,c,s,l,o){if(o=='"'||o=="'"){var u=o,m=l.doc.getTextRange(s.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&s.getWrapBehavioursEnabled())return{text:u+m+u,selection:!1};var w=s.getCursorPosition(),b=l.doc.getLine(w.row),M=b.substring(w.column,w.column+1),C=new h(l,w.row,w.column),k=C.getCurrentToken();if(M==u&&(p(k,"attribute-value")||p(k,"string")))return{text:"",selection:[1,1]};if(k||(k=C.stepBackward()),!k)return;for(;p(k,"tag-whitespace")||p(k,"whitespace");)k=C.stepBackward();var x=!M||M.match(/\s/);if(p(k,"attribute-equals")&&(x||M==">")||p(k,"decl-attribute-equals")&&(x||M=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,c,s,l,o){var u=l.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var m=l.doc.getLine(o.start.row),w=m.substring(o.start.column+1,o.start.column+2);if(w==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(a,c,s,l,o){if(o==">"){var u=s.getSelectionRange().start,m=new h(l,u.row,u.column),w=m.getCurrentToken()||m.stepBackward();if(!w||!(p(w,"tag-name")||p(w,"tag-whitespace")||p(w,"attribute-name")||p(w,"attribute-equals")||p(w,"attribute-value"))||p(w,"reference.attribute-value"))return;if(p(w,"attribute-value")){var b=m.getCurrentTokenColumn()+w.value.length;if(u.column<b)return;if(u.column==b){var M=m.stepForward();if(M&&p(M,"attribute-value"))return;m.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!p(w,"tag-name");)if(w=m.stepBackward(),w.value=="<"){w=m.stepForward();break}var C=m.getCurrentTokenRow(),k=m.getCurrentTokenColumn();if(p(m.stepBackward(),"end-tag-open"))return;var x=w.value;return C==u.row&&(x=x.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(x.toLowerCase())?void 0:{text:"></"+x+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,c,s,l,o){if(o==`
|
973
|
+
`){var u=s.getCursorPosition(),m=l.getLine(u.row),w=new h(l,u.row,u.column),b=w.getCurrentToken();if(p(b,"")&&b.type.indexOf("tag-close")!==-1){if(b.value=="/>")return;for(;b&&b.type.indexOf("tag-name")===-1;)b=w.stepBackward();if(!b)return;var M=b.value,C=w.getCurrentTokenRow();if(b=w.stepBackward(),!b||b.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[M]||!this.voidElements){var k=l.getTokenAt(u.row,u.column+1),m=l.getLine(C),x=this.$getIndent(m),T=x+l.getTabString();return k&&k.value==="</"?{text:`
|
974
|
+
`+T+`
|
975
|
+
`+x,selection:[1,T.length,1,T.length]}:{text:`
|
976
|
+
`+T}}}}})};y.inherits(g,v),r.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,r,f){var p=e("../../lib/oop"),y=e("../../token_iterator").TokenIterator,v=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,g=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(v),this.add("autoclosing-fragment","insertion",function(c,s,l,o,u){if(u==">"){var m=l.getSelectionRange().start,w=new y(o,m.row,m.column),b=w.getCurrentToken()||w.stepBackward();if(!b)return;if(b.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(g,v),r.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){function p(c,s){return c.type.lastIndexOf(s+".xml")>-1}var y=e("../../lib/oop"),v=e("../../range").Range,h=e("./fold_mode").FoldMode,g=r.FoldMode=function(c,s){h.call(this),this.voidElements=c||{},this.optionalEndTags=y.mixin({},this.voidElements),s&&y.mixin(this.optionalEndTags,s)};y.inherits(g,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(c,s,l){var o=this._getFirstTagInLine(c,l);return o?o.closing||!o.tagName&&o.selfClosing?s==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(c,l,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(c,l)},this.getCommentFoldWidget=function(c,s){return/comment/.test(c.getState(s))&&/<!-/.test(c.getLine(s))?"start":""},this._getFirstTagInLine=function(c,s){for(var l=c.getTokens(s),o=new a,u=0;u<l.length;u++){var m=l[u];if(p(m,"tag-open")){if(o.end.column=o.start.column+m.value.length,o.closing=p(m,"end-tag-open"),m=l[++u],!m)return null;if(o.tagName=m.value,m.value===""){if(m=l[++u],!m)return null;o.tagName=m.value}for(o.end.column+=m.value.length,u++;u<l.length;u++)if(m=l[u],o.end.column+=m.value.length,p(m,"tag-close")){o.selfClosing=m.value=="/>";break}return o}if(p(m,"tag-close"))return o.selfClosing=m.value=="/>",o;o.start.column+=m.value.length}return null},this._findEndTagInLine=function(c,s,l,o){for(var u=c.getTokens(s),m=0,w=0;w<u.length;w++){var b=u[w];if(m+=b.value.length,!(m<o-1)&&p(b,"end-tag-open")&&(b=u[w+1],p(b,"tag-name")&&b.value===""&&(b=u[w+2]),b&&b.value==l))return!0}return!1},this.getFoldWidgetRange=function(c,s,l){var o=this._getFirstTagInLine(c,l);if(!o)return this.getCommentFoldWidget(c,l)&&c.getCommentFoldRange(l,c.getLine(l).length);var u=c.getMatchingTags({row:l,column:0});if(u)return new v(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("../../range").Range,v=e("./fold_mode").FoldMode,h=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};p.inherits(h,v),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,c){var s=g.getLine(c);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var l=this._getFoldWidgetBase(g,a,c);return!l&&this.startRegionRe.test(s)?"start":l},this.getFoldWidgetRange=function(g,a,c,s){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,u);var m=g.getCommentFoldRange(c,u+o[0].length,1);return m&&!m.isMultiLine()&&(s?m=this.getSectionRange(g,c):a!="all"&&(m=null)),m}if(a!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,u):g.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(g,a){var c=g.getLine(a),s=c.search(/\S/),l=a,o=c.length;a+=1;for(var u=a,m=g.getLength();++a<m;){c=g.getLine(a);var w=c.search(/\S/);if(w!==-1){if(s>w)break;var b=this.getFoldWidgetRange(g,"all",a);if(b){if(b.start.row<=l)break;if(b.isMultiLine())a=b.end.row;else if(s==w)break}u=a}}return new y(l,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,a,c){for(var s=a.search(/\s*$/),l=g.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++c<l;){a=g.getLine(c);var w=u.exec(a);if(w&&(w[1]?m--:m++,!m))break}var b=c;if(b>o)return new y(o,s,b,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,f){var p=e("../../lib/oop"),y=e("./xml").FoldMode,v=e("./cstyle").FoldMode,h=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new y};p.inherits(h,v),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,c){var s=this.getFoldWidgetBase(g,a,c);return s||this.xmlFoldMode.getFoldWidget(g,a,c)},this.getFoldWidgetRange=function(g,a,c,s){var l=this.getFoldWidgetRangeBase(g,a,c,s);return l||this.xmlFoldMode.getFoldWidgetRange(g,a,c)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,s=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new c};p.inherits(s,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var m=this.$getIndent(o),w=this.getTokenizer().getLineTokens(o,l),b=w.tokens,M=w.state;if(b.length&&b[b.length-1].type=="comment")return m;if(l=="start"||l=="no_regex"){var C=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);C&&(m+=u)}else if(l=="doc-start"&&(M=="start"||M=="no_regex"))return"";return m},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(s.prototype),r.Mode=s}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,r,f){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}},y=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var v=document.createElement("c").style;for(var h in v)if(typeof v[h]=="string"){var g=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});p.hasOwnProperty(g)||(p[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(v,h,g,a){if(this.completionsDefined||this.defineCompletions(),v==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(g.row).substr(0,g.column),s=/\([^)]*$/.test(c);return s&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(v,h,g,a):this.getPropertyCompletions(v,h,g,a,s)}return[]},this.getPropertyCompletions=function(v,h,g,a,c){c=c||!1;var s=Object.keys(p);return s.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(v,h,g,a){var c=h.getLine(g.row).substr(0,g.column),s=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!s)return[];var l=[];return s in p&&typeof p[s]=="object"&&(l=Object.keys(p[s])),l.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(y.prototype),r.CssCompletions=y}),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,f){var p=e("../../lib/oop");e("../behaviour").Behaviour;var y=e("./cstyle").CstyleBehaviour,v=e("../../token_iterator").TokenIterator,h=function(){this.inherit(y),this.add("colon","insertion",function(g,a,c,s,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new v(s,o.row,o.column),m=u.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=u.stepBackward()),m&&m.type==="support.type"){var w=s.doc.getLine(o.row),b=w.substring(o.column,o.column+1);if(b===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(w.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,a,c,s,l){var o=s.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),m=new v(s,u.row,u.column),w=m.getCurrentToken();if(w&&w.value.match(/\s+/)&&(w=m.stepBackward()),w&&w.type==="support.type"){var b=s.doc.getLine(l.start.row),M=b.substring(l.end.column,l.end.column+1);if(M===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(g,a,c,s,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=s.doc.getLine(o.row),m=u.substring(o.column,o.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,a,c,s,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=s.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};p.inherits(h,y),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,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,s=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=new c,this.$completer=new a,this.foldingRules=new s};p.inherits(l,y),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,m){var w=this.$getIndent(u),b=this.getTokenizer().getLineTokens(u,o).tokens;if(b.length&&b[b.length-1].type=="comment")return w;var M=u.match(/^.*\{\s*$/);return M&&(w+=m),w},this.checkOutdent=function(o,u,m){return this.$outdent.checkOutdent(u,m)},this.autoOutdent=function(o,u,m){this.$outdent.autoOutdent(u,m)},this.getCompletions=function(o,u,m,w){return this.$completer.getCompletions(o,u,m,w)},this.createWorker=function(o){var u=new g(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(m){o.setAnnotations(m.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),r.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=r.FoldMode=function(h,g){this.defaultMode=h,this.subModes=g};p.inherits(v,y),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var g in this.subModes)if(h.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(h,g,a,c){var s=this.$getMode(h);return s?s.getFoldWidget(g,a,c):""},this.getFoldWidget=function(h,g,a){return this.$tryMode(h.getState(a-1),h,g,a)||this.$tryMode(h.getState(a),h,g,a)||this.defaultMode.getFoldWidget(h,g,a)},this.getFoldWidgetRange=function(h,g,a){var c=this.$getMode(h.getState(a-1));return(!c||!c.getFoldWidget(h,g,a))&&(c=this.$getMode(h.getState(a))),(!c||!c.getFoldWidget(h,g,a))&&(c=this.defaultMode),c.getFoldWidgetRange(h,g,a)}}).call(v.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,f){var p=e("../../lib/oop"),y=e("./mixed").FoldMode,v=e("./xml").FoldMode,h=e("./cstyle").FoldMode,g=r.FoldMode=function(a,c){y.call(this,new v(a,c),{"js-":new h,"css-":new h})};p.inherits(g,y)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,r,f){function p(u,m){return u.type.lastIndexOf(m+".xml")>-1}function y(u,m){for(var w=new h(u,m.row,m.column),b=w.getCurrentToken();b&&!p(b,"tag-name");)b=w.stepBackward();if(b)return b.value}function v(u,m){for(var w=new h(u,m.row,m.column),b=w.getCurrentToken();b&&!p(b,"attribute-name");)b=w.stepBackward();if(b)return b.value}var h=e("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],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"],c=g.concat(a),s={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},l=Object.keys(s),o=function(){};(function(){this.getCompletions=function(u,m,w,b){var M=m.getTokenAt(w.row,w.column);if(!M)return[];if(p(M,"tag-name")||p(M,"tag-open")||p(M,"end-tag-open"))return this.getTagCompletions(u,m,w,b);if(p(M,"tag-whitespace")||p(M,"attribute-name"))return this.getAttributeCompletions(u,m,w,b);if(p(M,"attribute-value"))return this.getAttributeValueCompletions(u,m,w,b);var C=m.getLine(w.row).substr(0,w.column);return/&[a-z]*$/i.test(C)?this.getHTMLEntityCompletions(u,m,w,b):[]},this.getTagCompletions=function(u,m,w,b){return l.map(function(M){return{value:M,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,m,w,b){var M=y(m,w);if(!M)return[];var C=c;return M in s&&(C=C.concat(Object.keys(s[M]))),C.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,m,w,b){var M=y(m,w),C=v(m,w);if(!M)return[];var k=[];return M in s&&C in s[M]&&typeof s[M][C]=="object"&&(k=Object.keys(s[M][C])),k.map(function(x){return{caption:x,snippet:x,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,m,w,b){var M=["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 M.map(function(C){return{caption:C,snippet:C,meta:"html entity",score:1e6}})}}).call(o.prototype),r.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/lang"),v=e("./text").Mode,h=e("./javascript").Mode,g=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,s=e("./folding/html").FoldMode,l=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],w=function(b){this.fragmentContext=b&&b.fragmentContext,this.HighlightRules=a,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":g}),this.foldingRules=new s(this.voidElements,y.arrayToMap(m))};p.inherits(w,v),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=y.arrayToMap(u),this.getNextLineIndent=function(b,M,C){return this.$getIndent(M)},this.checkOutdent=function(b,M,C){return!1},this.getCompletions=function(b,M,C,k){return this.$completer.getCompletions(b,M,C,k)},this.createWorker=function(b){if(this.constructor==w){var M=new o(["ace"],"ace/mode/html_worker","Worker");return M.attachToDocument(b.getDocument()),this.fragmentContext&&M.call("setOptions",[{context:this.fragmentContext}]),M.on("error",function(C){b.setAnnotations(C.data)}),M.on("terminate",function(){b.clearAnnotations()}),M}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(w.prototype),r.Mode=w}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=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",g=function(){var a=this.createKeywordMapper({keyword:v,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",s="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+s+")|(?:"+l+"\\.))",u="(?:(?:"+o+"|"+l+"))",m="(?:"+u+"|"+o+")",w="(?:&"+l+")",b="[a-zA-Z_][a-zA-Z0-9_]*",M="(?:"+b+"(?==))",C="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+b+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(x,T,R){var I=x[2]=="-"?"indentedHeredoc":"heredoc",E=x.split(this.splitRegex);return R.push(I,E[4]),[{type:"constant",value:E[1]},{type:"text",value:E[2]},{type:"string",value:E[3]},{type:"support.class",value:E[4]},{type:"string",value:E[5]}]},rules:{heredoc:[{onMatch:function(x,T,R){return x===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(x,T,R){return x===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(x,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:x}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:C},{token:"variable",regex:M},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:w},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:m},{token:"constant.numeric",regex:c+"\\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(g,y),r.ShHighlightRules=g}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,g=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=v,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};p.inherits(a,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,s),w=m.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(s=="start"){var b=l.match(/^.*[\{\(\[:]\s*$/);b&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,l,o){if(o!==`\r
|
977
|
+
`&&o!=="\r"&&o!==`
|
978
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),s).tokens;if(!u)return!1;do var m=u.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&c[m.value]:!1},this.autoOutdent=function(s,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),m=l.getTabString();u.slice(-m.length)==m&&l.remove(new h(o,u.length-m.length,o,u.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,f){var p=e("../lib/oop"),y=e("../lib/lang"),v=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,g=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,c=e("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=h,this.$behaviour=new g,this.foldingRules=new a};p.inherits(s,v),(function(){this.voidElements=y.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(s.prototype),r.Mode=s}),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,f){var p=e("../lib/oop"),y=e("./behaviour/cstyle").CstyleBehaviour,v=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,g=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 g,this.$behaviour=new y({braces:!0})};p.inherits(a,v),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(c,s,l){if(c=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(s);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(s)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),r.Mode=a}),function(){ace.require(["ace/mode/markdown"],function(e){n&&(n.exports=e)})}()}(Cf)),Cf.exports}i0();var Ef={exports:{}},Rf;function o0(){return Rf||(Rf=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,r,f){f.exports=`.ace-twilight .ace_gutter {
|
979
|
+
background: #232323;
|
980
|
+
color: #E2E2E2
|
981
|
+
}
|
982
|
+
|
983
|
+
.ace-twilight .ace_print-margin {
|
984
|
+
width: 1px;
|
985
|
+
background: #232323
|
986
|
+
}
|
987
|
+
|
988
|
+
.ace-twilight {
|
989
|
+
background-color: #141414;
|
990
|
+
color: #F8F8F8
|
991
|
+
}
|
992
|
+
|
993
|
+
.ace-twilight .ace_cursor {
|
994
|
+
color: #A7A7A7
|
995
|
+
}
|
996
|
+
|
997
|
+
.ace-twilight .ace_marker-layer .ace_selection {
|
998
|
+
background: rgba(221, 240, 255, 0.20)
|
999
|
+
}
|
1000
|
+
|
1001
|
+
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
1002
|
+
box-shadow: 0 0 3px 0px #141414;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
.ace-twilight .ace_marker-layer .ace_step {
|
1006
|
+
background: rgb(102, 82, 0)
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
.ace-twilight .ace_marker-layer .ace_bracket {
|
1010
|
+
margin: -1px 0 0 -1px;
|
1011
|
+
border: 1px solid rgba(255, 255, 255, 0.25)
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
.ace-twilight .ace_marker-layer .ace_active-line {
|
1015
|
+
background: rgba(255, 255, 255, 0.031)
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
.ace-twilight .ace_gutter-active-line {
|
1019
|
+
background-color: rgba(255, 255, 255, 0.031)
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
.ace-twilight .ace_marker-layer .ace_selected-word {
|
1023
|
+
border: 1px solid rgba(221, 240, 255, 0.20)
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
.ace-twilight .ace_invisible {
|
1027
|
+
color: rgba(255, 255, 255, 0.25)
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
.ace-twilight .ace_keyword,
|
1031
|
+
.ace-twilight .ace_meta {
|
1032
|
+
color: #CDA869
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
.ace-twilight .ace_constant,
|
1036
|
+
.ace-twilight .ace_constant.ace_character,
|
1037
|
+
.ace-twilight .ace_constant.ace_character.ace_escape,
|
1038
|
+
.ace-twilight .ace_constant.ace_other,
|
1039
|
+
.ace-twilight .ace_heading,
|
1040
|
+
.ace-twilight .ace_markup.ace_heading,
|
1041
|
+
.ace-twilight .ace_support.ace_constant {
|
1042
|
+
color: #CF6A4C
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
.ace-twilight .ace_invalid.ace_illegal {
|
1046
|
+
color: #F8F8F8;
|
1047
|
+
background-color: rgba(86, 45, 86, 0.75)
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
.ace-twilight .ace_invalid.ace_deprecated {
|
1051
|
+
text-decoration: underline;
|
1052
|
+
font-style: italic;
|
1053
|
+
color: #D2A8A1
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
.ace-twilight .ace_support {
|
1057
|
+
color: #9B859D
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
.ace-twilight .ace_fold {
|
1061
|
+
background-color: #AC885B;
|
1062
|
+
border-color: #F8F8F8
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
.ace-twilight .ace_support.ace_function {
|
1066
|
+
color: #DAD085
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
.ace-twilight .ace_list,
|
1070
|
+
.ace-twilight .ace_markup.ace_list,
|
1071
|
+
.ace-twilight .ace_storage {
|
1072
|
+
color: #F9EE98
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
.ace-twilight .ace_entity.ace_name.ace_function,
|
1076
|
+
.ace-twilight .ace_meta.ace_tag {
|
1077
|
+
color: #AC885B
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
.ace-twilight .ace_string {
|
1081
|
+
color: #8F9D6A
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
.ace-twilight .ace_string.ace_regexp {
|
1085
|
+
color: #E9C062
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
.ace-twilight .ace_comment {
|
1089
|
+
font-style: italic;
|
1090
|
+
color: #5F5A60
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
.ace-twilight .ace_variable {
|
1094
|
+
color: #7587A6
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
.ace-twilight .ace_xml-pe {
|
1098
|
+
color: #494949
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
.ace-twilight .ace_indent-guide {
|
1102
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
.ace-twilight .ace_indent-guide-active {
|
1106
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
1107
|
+
}
|
1108
|
+
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,r,f){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){n&&(n.exports=e)})}()}(Ef)),Ef.exports}o0();var Mf={exports:{}},Lf;function s0(){return Lf||(Lf=1,function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,r,f){function p(x){var T=new Date().toLocaleString("en-us",x);return T.length==1?"0"+T:T}var y=e("./lib/dom"),v=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,g=e("./lib/lang"),a=e("./range").Range,c=e("./range_list").RangeList,s=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(x){return x.session.getTextRange(x.session.getWordRange())},SELECTION:function(x,T,R){var I=x.session.getTextRange();return R?I.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
+
`+R+"$1"):I},CURRENT_LINE:function(x){return x.session.getLine(x.getCursorPosition().row)},PREV_LINE:function(x){return x.session.getLine(x.getCursorPosition().row-1)},LINE_INDEX:function(x){return x.getCursorPosition().row},LINE_NUMBER:function(x){return x.getCursorPosition().row+1},SOFT_TABS:function(x){return x.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(x){return x.session.getTabSize()},CLIPBOARD:function(x){return o.getText&&o.getText()},FILENAME:function(x){return/[^/\\]*$/.exec(this.FILEPATH(x))[0]},FILENAME_BASE:function(x){return/[^/\\]*$/.exec(this.FILEPATH(x))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(x){return this.FILEPATH(x).replace(/[^/\\]*$/,"")},FILEPATH:function(x){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(x){var T=x.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(x){var T=x.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(x){var T=x.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var m=function(){function x(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return x.prototype.getTokenizer=function(){return x.$tokenizer||this.createTokenizer()},x.prototype.createTokenizer=function(){function T(E){return E=E.substr(1),/^\d+$/.test(E)?[{tabstopId:parseInt(E,10)}]:[{text:E}]}function R(E){return"(?:[^\\\\"+E+"]|\\\\.)"}var I={regex:"/("+R("/")+"+)/",onMatch:function(E,N,S){var _=S[0];return _.fmtString=!0,_.guard=E.slice(1,-1),_.flag="",""},next:"formatString"};return x.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(E,N,S){var _=E[1];return(_=="}"&&S.length||"`$\\".indexOf(_)!=-1)&&(E=_),[E]}},{regex:/}/,onMatch:function(E,N,S){return[S.length?S.shift():E]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(E,N,S){var _=T(E.substr(1));return S.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+R("\\|")+"*\\|",onMatch:function(E,N,S){var _=E.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return S[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(E,N,S){return S.length&&S[0].expectElse?(S[0].expectElse=!1,S[0].ifEnd={elseEnd:S[0]},[S[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(E,N,S){var _=E[1];return _=="}"&&S.length||"`$\\".indexOf(_)!=-1?E=_:_=="n"?E=`
|
1110
|
+
`:_=="t"?E=" ":"ulULE".indexOf(_)!=-1&&(E={changeCase:_,local:_>"a"}),[E]}},{regex:"/\\w*}",onMatch:function(E,N,S){var _=S.shift();return _&&(_.flag=E.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||E]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(E,N,S){return[{text:E.slice(1)}]}},{regex:/\${\w+/,onMatch:function(E,N,S){var _={text:E.slice(2)};return S.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(E,N,S){var _=S.shift();return this.next=_&&_.tabstopId?"start":"",[_||E]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(E,N,S){var _=S[0];return _.formatFunction=E.slice(2,-1),[S.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(E,N,S){E[1]=="+"&&(S[0].ifEnd=S[0]),E[1]=="?"&&(S[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),x.$tokenizer},x.prototype.tokenizeTmSnippet=function(T,R){return this.getTokenizer().getLineTokens(T,R).tokens.map(function(I){return I.value||I})},x.prototype.getVariableValue=function(T,R,I){if(/^\d+$/.test(R))return(this.variables.__||{})[R]||"";if(/^[A-Z]\d+$/.test(R))return(this.variables[R[0]+"__"]||{})[R.substr(1)]||"";if(R=R.replace(/^TM_/,""),!this.variables.hasOwnProperty(R))return"";var E=this.variables[R];return typeof E=="function"&&(E=this.variables[R](T,R,I)),E??""},x.prototype.tmStrFormat=function(T,R,I){if(!R.fmt)return T;var E=R.flag||"",N=R.guard;N=new RegExp(N,E.replace(/[^gim]/g,""));var S=typeof R.fmt=="string"?this.tokenizeTmSnippet(R.fmt,"formatString"):R.fmt,_=this,$=T.replace(N,function(){var L=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables(S,I),F="E",H=0;H<O.length;H++){var j=O[H];if(typeof j=="object")if(O[H]="",j.changeCase&&j.local){var V=O[H+1];V&&typeof V=="string"&&(j.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else j.changeCase&&(F=j.changeCase);else F=="U"?O[H]=j.toUpperCase():F=="L"&&(O[H]=j.toLowerCase())}return _.variables.__=L,O.join("")});return $},x.prototype.tmFormatFunction=function(T,R,I){return R.formatFunction=="upcase"?T.toUpperCase():R.formatFunction=="downcase"?T.toLowerCase():T},x.prototype.resolveVariables=function(T,R){function I(F){var H=T.indexOf(F,_+1);H!=-1&&(_=H)}for(var E=[],N="",S=!0,_=0;_<T.length;_++){var $=T[_];if(typeof $=="string"){E.push($),$==`
|
1111
|
+
`?(S=!0,N=""):S&&(N=/^\t*/.exec($)[0],S=/\S/.test($));continue}if($){if(S=!1,$.fmtString){var L=T.indexOf($,_+1);L==-1&&(L=T.length),$.fmt=T.slice(_+1,L),_=L}if($.text){var O=this.getVariableValue(R,$.text,N)+"";$.fmtString&&(O=this.tmStrFormat(O,$,R)),$.formatFunction&&(O=this.tmFormatFunction(O,$,R)),O&&!$.ifEnd?(E.push(O),I($)):!O&&$.ifEnd&&I($.ifEnd)}else $.elseEnd?I($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&E.push($)}}return E},x.prototype.getDisplayTextForSnippet=function(T,R){var I=w.call(this,T,R);return I.text},x.prototype.insertSnippetForSelection=function(T,R,I){I===void 0&&(I={});var E=w.call(this,T,R,I),N=T.getSelectionRange(),S=T.session.replace(N,E.text),_=new b(T),$=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(E.tabstops,N.start,S,$)},x.prototype.insertSnippet=function(T,R,I){I===void 0&&(I={});var E=this;if(T.inVirtualSelectionMode)return E.insertSnippetForSelection(T,R,I);T.forEachSelection(function(){E.insertSnippetForSelection(T,R,I)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},x.prototype.$getScope=function(T){var R=T.session.$mode.$id||"";if(R=R.split("/").pop(),R==="html"||R==="php"){R==="php"&&!T.session.$mode.inlinePhp&&(R="html");var I=T.getCursorPosition(),E=T.session.getState(I.row);typeof E=="object"&&(E=E[0]),E.substring&&(E.substring(0,3)=="js-"?R="javascript":E.substring(0,4)=="css-"?R="css":E.substring(0,4)=="php-"&&(R="php"))}return R},x.prototype.getActiveScopes=function(T){var R=this.$getScope(T),I=[R],E=this.snippetMap;return E[R]&&E[R].includeScopes&&I.push.apply(I,E[R].includeScopes),I.push("_"),I},x.prototype.expandWithTab=function(T,R){var I=this,E=T.forEachSelection(function(){return I.expandSnippetForSelection(T,R)},null,{keepOrder:!0});return E&&T.tabstopManager&&T.tabstopManager.tabNext(),E},x.prototype.expandSnippetForSelection=function(T,R){var I=T.getCursorPosition(),E=T.session.getLine(I.row),N=E.substring(0,I.column),S=E.substr(I.column),_=this.snippetMap,$;return this.getActiveScopes(T).some(function(L){var O=_[L];return O&&($=this.findMatchingSnippet(O,N,S)),!!$},this),$?(R&&R.dryRun||(T.session.doc.removeInLine(I.row,I.column-$.replaceBefore.length,I.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(T,$.content),this.variables.M__=this.variables.T__=null),!0):!1},x.prototype.findMatchingSnippet=function(T,R,I){for(var E=T.length;E--;){var N=T[E];if(!(N.startRe&&!N.startRe.test(R))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(R):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(R)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},x.prototype.register=function(T,R){function I(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function E(L,O,F){return L=I(L),O=I(O),L=O+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function N(L){L.scope||(L.scope=R||"_"),R=L.scope,S[R]||(S[R]=[],_[R]={});var O=_[R];if(L.name){var F=O[L.name];F&&$.unregister(F),O[L.name]=L}S[R].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
|
1112
|
+
`):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=g.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=E(L.trigger,L.guard),L.triggerRe=new RegExp(L.trigger),L.endRe=E(L.endTrigger,L.endGuard),L.endTriggerRe=new RegExp(L.endTrigger))}var S=this.snippetMap,_=this.snippetNameMap,$=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(L){N(T[L])}),this._signal("registerSnippets",{scope:R})},x.prototype.unregister=function(T,R){function I(S){var _=N[S.scope||R];if(_&&_[S.name]){delete _[S.name];var $=E[S.scope||R],L=$&&$.indexOf(S);L>=0&&$.splice(L,1)}}var E=this.snippetMap,N=this.snippetNameMap;T.content?I(T):Array.isArray(T)&&T.forEach(I)},x.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var R=[],I={},E=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=E.exec(T);){if(N[1])try{I=JSON.parse(N[1]),R.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),R.push(I),I={};else{var S=N[2],_=N[3];if(S=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=$.exec(_)[1],I.trigger=$.exec(_)[1],I.endTrigger=$.exec(_)[1],I.endGuard=$.exec(_)[1]}else S=="snippet"?(I.tabTrigger=_.match(/^\S*/)[0],I.name||(I.name=_)):S&&(I[S]=_)}}return R},x.prototype.getSnippetByName=function(T,R){var I=this.snippetNameMap,E;return this.getActiveScopes(R).some(function(N){var S=I[N];return S&&(E=S[T]),!!E},this),E},x}();v.implement(m.prototype,h);var w=function(x,T,R){function I(J){for(var ae=[],me=0;me<J.length;me++){var we=J[me];if(typeof we=="object"){if(O[we.tabstopId])continue;var pe=J.lastIndexOf(we,me-1);we=ae[pe]||{tabstopId:we.tabstopId}}ae[me]=we}return ae}R===void 0&&(R={});var E=x.getCursorPosition(),N=x.session.getLine(E.row),S=x.session.getTabString(),_=N.match(/^\s*/)[0];E.column<_.length&&(_=_.slice(0,E.column)),T=T.replace(/\r/g,"");var $=this.tokenizeTmSnippet(T);$=this.resolveVariables($,x),$=$.map(function(J){return J==`
|
1113
|
+
`&&!R.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,S):J});var L=[];$.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,we=L[me];if(we||(we=L[me]=[],we.index=me,we.value="",we.parents={}),we.indexOf(J)===-1){J.choices&&!we.choices&&(we.choices=J.choices),we.push(J);var pe=$.indexOf(J,ae+1);if(pe!==-1){var _e=$.slice(ae+1,pe),rt=_e.some(function(Dt){return typeof Dt=="object"});rt&&!we.value?we.value=_e:_e.length&&(!we.value||typeof we.value!="string")&&(we.value=_e.join(""))}}}}),L.forEach(function(J){J.length=0});for(var O={},F=0;F<$.length;F++){var H=$[F];if(typeof H=="object"){var j=H.tabstopId,V=L[j],q=$.indexOf(H,F+1);if(O[j]){O[j]===H&&(delete O[j],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[j]=H;var X=V.value;typeof X!="string"?X=I(X):H.fmt&&(X=this.tmStrFormat(X,H,x)),$.splice.apply($,[F+1,Math.max(0,q-F)].concat(X,H)),V.indexOf(H)===-1&&V.push(H)}}var G=0,Z=0,re="";return $.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
|
1114
|
+
`);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:L,tokens:$}},b=function(){function x(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return x.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},x.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},x.prototype.onChange=function(T){for(var R=T.action[0]=="r",I=this.selectedTabstop||{},E=I.parents||{},N=this.tabstops.slice(),S=0;S<N.length;S++){var _=N[S],$=_==I||E[_.index];if(_.rangeList.$bias=$?0:1,T.action=="remove"&&_!==I){var L=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(T.start,L);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(T.end,L);F=F<0?-F-1:F-1;for(var H=_.rangeList.ranges.slice(O,F),j=0;j<H.length;j++)this.removeRange(H[j])}_.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&R&&V.getLength()==1&&!V.getValue()&&this.detach()},x.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var R=this.session,I=R.getTextRange(T.firstNonLinked),E=0;E<T.length;E++){var N=T[E];if(N.linked){var S=N.original,_=r.snippetManager.tmStrFormat(I,S,this.editor);R.replace(N,_)}}this.$inChange=!1}},x.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},x.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,R=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),E=0;E<this.ranges.length;E++)if(!this.ranges[E].linked){var N=this.ranges[E].contains(T.row,T.column),S=I||this.ranges[E].contains(R.row,R.column);if(N&&S)return}this.detach()}},x.prototype.onChangeSession=function(){this.detach()},x.prototype.tabNext=function(T){var R=this.tabstops.length,I=this.index+(T||1);I=Math.min(Math.max(I,1),R),I==R&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},x.prototype.selectTabstop=function(T){this.$openTabstops=null;var R=this.tabstops[this.index];if(R&&this.addTabstopMarkers(R),this.index=T,R=this.tabstops[this.index],!(!R||!R.length)){this.selectedTabstop=R;var I=R.firstNonLinked||R;if(R.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var E=this.editor.multiSelect;E.toSingleRange(I);for(var N=0;N<R.length;N++)R.hasLinkedRanges&&R[N].linked||E.addRange(R[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},x.prototype.addTabstops=function(T,R,I){var E=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=a.fromPoints(I,I);C(N.start,R),C(N.end,R),T[0]=[N],T[0].index=0}var S=this.index,_=[S+1,0],$=this.ranges,L=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var H=this.$openTabstops[F]||O;H.snippetId=L;for(var j=0;j<O.length;j++){var V=O[j],q=a.fromPoints(V.start,V.end||V.start);M(q.start,R),M(q.end,R),q.original=V,q.tabstop=H,$.push(q),H!=O?H.unshift(q):H[j]=q,V.fmtString||H.firstNonLinked&&E?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===O&&(_.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new c,H.rangeList.$bias=0,H.rangeList.addList(H)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},x.prototype.addTabstopMarkers=function(T){var R=this.session;T.forEach(function(I){I.markerId||(I.markerId=R.addMarker(I,"ace_snippet-marker","text"))})},x.prototype.removeTabstopMarkers=function(T){var R=this.session;T.forEach(function(I){R.removeMarker(I.markerId),I.markerId=null})},x.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(R){R.snippetId===T?this.addTabstopMarkers(R):this.removeTabstopMarkers(R)},this)}},x.prototype.removeRange=function(T){var R=T.tabstop.indexOf(T);R!=-1&&T.tabstop.splice(R,1),R=this.ranges.indexOf(T),R!=-1&&this.ranges.splice(R,1),R=T.tabstop.rangeList.ranges.indexOf(T),R!=-1&&T.tabstop.splice(R,1),this.session.removeMarker(T.markerId),T.tabstop.length||(R=this.tabstops.indexOf(T.tabstop),R!=-1&&this.tabstops.splice(R,1),this.tabstops.length||this.detach())},x}();b.prototype.keyboardHandler=new s,b.prototype.keyboardHandler.bindKeys({Tab:function(x){r.snippetManager&&r.snippetManager.expandWithTab(x)||(x.tabstopManager.tabNext(1),x.renderer.scrollCursorIntoView())},"Shift-Tab":function(x){x.tabstopManager.tabNext(-1),x.renderer.scrollCursorIntoView()},Esc:function(x){x.tabstopManager.detach()}});var M=function(x,T){x.row==0&&(x.column+=T.column),x.row+=T.row},C=function(x,T){x.row==T.row&&(x.column-=T.column),x.row-=T.row};y.importCssString(`
|
1115
|
+
.ace_snippet-marker {
|
1116
|
+
-moz-box-sizing: border-box;
|
1117
|
+
box-sizing: border-box;
|
1118
|
+
background: rgba(194, 193, 208, 0.09);
|
1119
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
1120
|
+
position: absolute;
|
1121
|
+
}`,"snippets.css",!1),r.snippetManager=new m;var k=e("./editor").Editor;(function(){this.insertSnippet=function(x,T){return r.snippetManager.insertSnippet(this,x,T)},this.expandSnippet=function(x){return r.snippetManager.expandWithTab(this,x)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,r,f){var p=e("../virtual_renderer").VirtualRenderer,y=e("../editor").Editor,v=e("../range").Range,h=e("../lib/event"),g=e("../lib/lang"),a=e("../lib/dom"),c=e("../config").nls,s=e("./../lib/useragent"),l=function(M){return"suggest-aria-id:".concat(M)},o=s.isSafari?"menu":"listbox",u=s.isSafari?"menuitem":"option",m=s.isSafari?"aria-current":"aria-selected",w=function(M){var C=new p(M);C.$maxLines=4;var k=new y(C);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},b=function(){function M(C){var k=a.createElement("div"),x=w(k);C&&C.appendChild(k),k.style.display="none",x.renderer.content.style.cursor="default",x.renderer.setStyle("ace_autocomplete"),x.renderer.$textLayer.element.setAttribute("role",o),x.renderer.$textLayer.element.setAttribute("aria-roledescription",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),x.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),x.renderer.textarea.setAttribute("aria-hidden","true"),x.setOption("displayIndentGuides",!1),x.setOption("dragDelay",150);var T=function(){};x.focus=T,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=T,x.renderer.$cursorLayer.element.style.opacity="0",x.renderer.$maxLines=8,x.renderer.$keepTextAreaAtCursor=!1,x.setHighlightActiveLine(!1),x.session.highlight(""),x.session.$searchHighlight.clazz="ace_highlight-marker",x.on("mousedown",function($){var L=$.getDocumentPosition();x.selection.moveToPosition(L),E.start.row=E.end.row=L.row,$.stop()});var R,I=new v(-1,0,-1,1/0),E=new v(-1,0,-1,1/0);E.id=x.session.addMarker(E,"ace_active-line","fullLine"),x.setSelectOnHover=function($){$?I.id&&(x.session.removeMarker(I.id),I.id=null):I.id=x.session.addMarker(I,"ace_line-hover","fullLine")},x.setSelectOnHover(!1),x.on("mousemove",function($){if(!R){R=$;return}if(!(R.x==$.x&&R.y==$.y)){R=$,R.scrollTop=x.renderer.scrollTop,x.isMouseOver=!0;var L=R.getDocumentPosition().row;I.start.row!=L&&(I.id||x.setRow(L),S(L))}}),x.renderer.on("beforeRender",function(){if(R&&I.start.row!=-1){R.$pos=null;var $=R.getDocumentPosition().row;I.id||x.setRow($),S($,!0)}}),x.renderer.on("afterRender",function(){var $=x.getRow(),L=x.renderer.$textLayer,O=L.element.childNodes[$-L.config.firstRow],F=document.activeElement;if(O!==x.selectedNode&&x.selectedNode&&(a.removeCssClass(x.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),x.selectedNode.removeAttribute(m),x.selectedNode.removeAttribute("id")),x.selectedNode=O,O){a.addCssClass(O,"ace_selected");var H=l($);O.id=H,L.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),O.setAttribute("role",u),O.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",x.getData($).caption||x.getData($).value),O.setAttribute("aria-setsize",x.data.length),O.setAttribute("aria-posinset",$+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(m,"true")}});var N=function(){S(-1)},S=function($,L){$!==I.start.row&&(I.start.row=I.end.row=$,L||x.session._emit("changeBackMarker"),x._emit("changeHoverMarker"))};x.getHoveredRow=function(){return I.start.row},h.addListener(x.container,"mouseout",function(){x.isMouseOver=!1,N()}),x.on("hide",N),x.on("changeSelection",N),x.session.doc.getLength=function(){return x.data.length},x.session.doc.getLine=function($){var L=x.data[$];return typeof L=="string"?L:L&&L.value||""};var _=x.session.bgTokenizer;return _.$tokenizeRow=function($){function L(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=x.data[$],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var H=O.caption||O.value||O.name,j=H.toLowerCase(),V=(x.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var re=j.indexOf(Z,q);if(re==-1)continue;L(H.slice(q,re),""),q=re+Z.length,L(H.slice(re,q),"completion-highlight")}return L(H.slice(q,H.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=T,_.start=T,x.session.$computeWidth=function(){return this.screenWidth=0},x.isOpen=!1,x.isTopdown=!1,x.autoSelect=!0,x.filterText="",x.isMouseOver=!1,x.data=[],x.setData=function($,L){x.filterText=L||"",x.setValue(g.stringRepeat(`
|
1122
|
+
`,$.length),-1),x.data=$||[],x.setRow(0)},x.getData=function($){return x.data[$]},x.getRow=function(){return E.start.row},x.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),E.start.row!=$&&(x.selection.clearSelection(),E.start.row=E.end.row=$||0,x.session._emit("changeBackMarker"),x.moveCursorTo($||0,0),x.isOpen&&x._signal("select"))},x.on("changeSelection",function(){x.isOpen&&x.setRow(x.selection.lead.row),x.renderer.scrollCursorIntoView()}),x.hide=function(){this.container.style.display="none",x.anchorPos=null,x.anchor=null,x.isOpen&&(x.isOpen=!1,this._signal("hide"))},x.tryShow=function($,L,O,F){if(!F&&x.isOpen&&x.anchorPos&&x.anchor&&x.anchorPos.top===$.top&&x.anchorPos.left===$.left&&x.anchor===O)return!0;var H=this.container,j=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*L*1.4,G={top:0,bottom:0},Z=j-$.top-3*this.$borderSize-L,re=$.top-3*this.$borderSize;O||(re<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=$.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=$.top+L+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=j;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(H.style.top="",H.style.bottom=j-G.bottom+"px",x.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",x.isTopdown=!0),H.style.display="";var ae=$.left;return ae+H.offsetWidth>V&&(ae=V-H.offsetWidth),H.style.left=ae+"px",H.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),R=null),x.anchorPos=$,x.anchor=O,!0},x.show=function($,L,O){this.tryShow($,L,O?"bottom":void 0,!0)},x.goTo=function($){var L=this.getRow(),O=this.session.getLength()-1;switch($){case"up":L=L<=0?O:L-1;break;case"down":L=L>=O?-1:L+1;break;case"start":L=0;break;case"end":L=O}this.setRow(L)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return M}();a.importCssString(`
|
1123
|
+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
1124
|
+
background-color: #CAD6FA;
|
1125
|
+
z-index: 1;
|
1126
|
+
}
|
1127
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
1128
|
+
background-color: #3a674e;
|
1129
|
+
}
|
1130
|
+
.ace_editor.ace_autocomplete .ace_line-hover {
|
1131
|
+
border: 1px solid #abbffe;
|
1132
|
+
margin-top: -1px;
|
1133
|
+
background: rgba(233,233,253,0.4);
|
1134
|
+
position: absolute;
|
1135
|
+
z-index: 2;
|
1136
|
+
}
|
1137
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
1138
|
+
border: 1px solid rgba(109, 150, 13, 0.8);
|
1139
|
+
background: rgba(58, 103, 78, 0.62);
|
1140
|
+
}
|
1141
|
+
.ace_completion-meta {
|
1142
|
+
opacity: 0.5;
|
1143
|
+
margin-left: 0.9em;
|
1144
|
+
}
|
1145
|
+
.ace_completion-message {
|
1146
|
+
margin-left: 0.9em;
|
1147
|
+
color: blue;
|
1148
|
+
}
|
1149
|
+
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
1150
|
+
color: #2d69c7;
|
1151
|
+
}
|
1152
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
1153
|
+
color: #93ca12;
|
1154
|
+
}
|
1155
|
+
.ace_editor.ace_autocomplete {
|
1156
|
+
width: 300px;
|
1157
|
+
z-index: 200000;
|
1158
|
+
border: 1px lightgray solid;
|
1159
|
+
position: fixed;
|
1160
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
1161
|
+
line-height: 1.4;
|
1162
|
+
background: #fefefe;
|
1163
|
+
color: #111;
|
1164
|
+
}
|
1165
|
+
.ace_dark.ace_editor.ace_autocomplete {
|
1166
|
+
border: 1px #484747 solid;
|
1167
|
+
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
1168
|
+
line-height: 1.4;
|
1169
|
+
background: #25282c;
|
1170
|
+
color: #c1c1c1;
|
1171
|
+
}
|
1172
|
+
.ace_autocomplete .ace_text-layer {
|
1173
|
+
width: calc(100% - 8px);
|
1174
|
+
}
|
1175
|
+
.ace_autocomplete .ace_line {
|
1176
|
+
display: flex;
|
1177
|
+
align-items: center;
|
1178
|
+
}
|
1179
|
+
.ace_autocomplete .ace_line > * {
|
1180
|
+
min-width: 0;
|
1181
|
+
flex: 0 0 auto;
|
1182
|
+
}
|
1183
|
+
.ace_autocomplete .ace_line .ace_ {
|
1184
|
+
flex: 0 1 auto;
|
1185
|
+
overflow: hidden;
|
1186
|
+
text-overflow: ellipsis;
|
1187
|
+
}
|
1188
|
+
.ace_autocomplete .ace_completion-spacer {
|
1189
|
+
flex: 1;
|
1190
|
+
}
|
1191
|
+
.ace_autocomplete.ace_loading:after {
|
1192
|
+
content: "";
|
1193
|
+
position: absolute;
|
1194
|
+
top: 0px;
|
1195
|
+
height: 2px;
|
1196
|
+
width: 8%;
|
1197
|
+
background: blue;
|
1198
|
+
z-index: 100;
|
1199
|
+
animation: ace_progress 3s infinite linear;
|
1200
|
+
animation-delay: 300ms;
|
1201
|
+
transform: translateX(-100%) scaleX(1);
|
1202
|
+
}
|
1203
|
+
@keyframes ace_progress {
|
1204
|
+
0% { transform: translateX(-100%) scaleX(1) }
|
1205
|
+
50% { transform: translateX(625%) scaleX(2) }
|
1206
|
+
100% { transform: translateX(1500%) scaleX(3) }
|
1207
|
+
}
|
1208
|
+
@media (prefers-reduced-motion) {
|
1209
|
+
.ace_autocomplete.ace_loading:after {
|
1210
|
+
transform: translateX(625%) scaleX(2);
|
1211
|
+
animation: none;
|
1212
|
+
}
|
1213
|
+
}
|
1214
|
+
`,"autocompletion.css",!1),r.AcePopup=b,r.$singleLineEditor=w,r.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var p=function(){function y(v){this.editor=v,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return y.prototype.setScreenReaderContent=function(v){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),a=this.popup.renderer.$textLayer,c=a.element.childNodes[g-a.config.firstRow];if(c){for(var s="doc-tooltip ",l=0;l<this._lines.length;l++)s+="ace-inline-screenreader-line-".concat(l," ");c.setAttribute("aria-describedby",s)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=v.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},y.prototype.destroy=function(){this.screenReaderDiv.remove()},y.prototype.createCodeBlock=function(){var v=document.createElement("pre");v.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);g.appendChild(a),v.appendChild(g)}return v},y}();r.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var p=e("../snippets").snippetManager,y=e("./inline_screenreader").AceInlineScreenReader,v=function(){function h(){this.editor=null}return h.prototype.show=function(g,a,c){if(c=c||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new y(g));var s=a.snippet?p.getDisplayTextForSnippet(g,a.snippet):a.value;return a.hideInlinePreview||!s||!s.startsWith(c)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(s),s=s.slice(c.length),s===""?g.removeGhostText():g.setGhostText(s),!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=v}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(y,v,h){var g=0,a=y.length;a===0&&h();for(var c=0;c<a;c++)v(y[c],function(s,l){g++,g===a&&h(s,l)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(y,v,h){h=h||p;for(var g=[],a=v-1;a>=0&&h.test(y[a]);a--)g.push(y[a]);return g.reverse().join("")},r.retrieveFollowingIdentifier=function(y,v,h){h=h||p;for(var g=[],a=v;a<y.length&&h.test(y[a]);a++)g.push(y[a]);return g},r.getCompletionPrefix=function(y){var v=y.getCursorPosition(),h=y.session.getLine(v.row),g;return y.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(c){!g&&c&&(g=this.retrievePrecedingIdentifier(h,v.column,c))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(h,v.column)},r.triggerAutocomplete=function(y,h){var h=h??y.session.getPrecedingCharacter();return y.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,f){var p=e("./keyboard/hash_handler").HashHandler,y=e("./autocomplete/popup").AcePopup,v=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,g=e("./autocomplete/util"),a=e("./lib/lang"),c=e("./lib/dom"),s=e("./snippets").snippetManager,l=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,m=function(C,k){k.completer&&k.completer.destroy()},w=function(){function C(){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 k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new M(C.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(C,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),C.prototype.$init=function(){return this.popup=new y(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},C.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new v,this.inlineRenderer},C.prototype.getPopup=function(){return this.popup||this.$init()},C.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},C.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},C.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var x=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(x),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},C.prototype.$updateGhostText=function(k){var x=this.base.row,T=this.base.column,R=this.editor.getCursorPosition().column,I=this.editor.session.getLine(x).slice(T,R);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},C.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var x=this.popup.getFirstVisibleRow();x<=this.popup.getLastVisibleRow();x++){var T=this.popup.getData(x);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},C.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},C.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,x=[];k;)x.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=x}},C.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(x){x.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},C.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},C.prototype.$updatePopupPosition=function(){var k=this.editor,x=k.renderer,T=x.layerConfig.lineHeight,R=x.$cursorLayer.getPixelPosition(this.base,!0);R.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();R.top+=I.top-x.layerConfig.offset,R.left+=I.left-k.renderer.scrollLeft,R.left+=x.gutterWidth;var E={top:R.top,left:R.left};x.$ghostText&&x.$ghostTextWidget&&this.base.row===x.$ghostText.position.row&&(E.top+=x.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-T,S=N<E.top?{top:N,left:E.left}:E;this.popup.tryShow(S,T,"bottom")||this.popup.tryShow(R,T,"top")||this.popup.show(R,T)},C.prototype.openPopup=function(k,x,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var R=this.popup.getRow(),I=this.popup.data[R];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var E;this.stickySelection&&(E=this.popup.data.indexOf(I)),(!E||E===-1)&&(E=0),this.popup.setRow(this.autoSelect?E:-1),E===R&&I!==this.completions.filtered[E]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(E===R&&N){var S=this.popup.getData(this.popup.getRow());this.$updateGhostText(S)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},C.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()},C.prototype.changeListener=function(k){var x=this.editor.selection.lead;(x.row!=this.base.row||x.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},C.prototype.blurListener=function(k){var x=document.activeElement,T=this.editor.textInput.getElement(),R=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;x!=T&&x.parentNode!=I&&!R&&x!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},C.prototype.mousedownListener=function(k){this.detach()},C.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},C.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},C.prototype.goTo=function(k){this.popup.goTo(k)},C.prototype.insertMatch=function(k,x){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,R=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,x);return this.completions==T&&this.detach(),R},C.prototype.showPopup=function(k,x){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,x)},C.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new b(k)),this.completionProvider},C.prototype.gatherCompletions=function(k,x){return this.getCompletionProvider().gatherCompletions(k,x)},C.prototype.updateCompletions=function(k,x){if(k&&this.base&&this.completions){var R=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:R});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,k);return}if(x&&x.matches){var R=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(R.row,R.column),this.base.$insertRight=!0,this.completions=new M(x.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),R=this.editor.getCursorPosition(),I=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(R.row,R.column-I.length),this.base.$insertRight=!0;var E={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:R}).provideCompletions(this.editor,E,(function(N,S,_){var $=S.filtered,L=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!$.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(L)),O){var F=[{caption:O,value:""}];this.completions=new M(F),this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==L&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!_&&this.showLoadingState?new M(C.completionsForLoading.concat($),S.filterText):S,this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},C.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},C.prototype.updateDocTooltip=function(){var k=this.popup,x=this.completions.filtered,T=x&&(x[k.getHoveredRow()]||x[k.getRow()]),R=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,E=0;E<I;E++){var N=this.editor.completers[E];if(N.getDocTooltip&&T.completerId===N.id){R=N.getDocTooltip(T);break}}if(!R&&typeof T!="string"&&(R=T),typeof R=="string"&&(R={docText:R}),!R||!R.docHTML&&!R.docText)return this.hideDocTooltip();this.showDocTooltip(R)},C.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var x=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(x.isDark?"ace_dark ":"")+(x.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var R=this.popup,I=R.container.getBoundingClientRect();T.style.top=R.container.style.top,T.style.bottom=R.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?R.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=R.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},C.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},C.prototype.onTooltipClick=function(k){for(var x=k.target;x&&x!=this.tooltipNode;){if(x.nodeName=="A"&&x.href){x.rel="noreferrer",x.target="_blank";break}x=x.parentNode}},C.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",m),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},C.for=function(k){return k.completer instanceof C||(k.completer&&(k.completer.destroy(),k.completer=null),l.get("sharedPopups")?(C.$sharedInstance||(C.$sharedInstance=new C),k.completer=C.$sharedInstance):(k.completer=new C,k.once("destroy",m))),k.completer},C}();w.prototype.commands={Up:function(C){C.completer.goTo("up")},Down:function(C){C.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(C){C.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(C){C.completer.goTo("end")},Esc:function(C){C.completer.detach()},Return:function(C){return C.completer.insertMatch()},"Shift-Return":function(C){C.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(C){var k=C.completer.insertMatch();if(k||C.tabstopManager)return k;C.completer.goTo("down")},Backspace:function(C){C.execCommand("backspace");var k=g.getCompletionPrefix(C);!k&&C.completer&&C.completer.detach()},PageUp:function(C){C.completer.popup.gotoPageUp()},PageDown:function(C){C.completer.popup.gotoPageDown()}},w.startCommand={name:"startAutocomplete",exec:function(C,k){var x=w.for(C);x.autoInsert=!1,x.autoSelect=!0,x.autoShown=!1,x.showPopup(C,k),x.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var b=function(){function C(k){this.initialPosition=k,this.active=!0}return C.prototype.insertByIndex=function(k,x,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[x],T)},C.prototype.insertMatch=function(k,x,T){if(!x)return!1;if(k.startOperation({command:{name:"insertMatch"}}),x.completer&&x.completer.insertMatch)x.completer.insertMatch(k,x);else{if(!this.completions)return!1;var R=this.completions.filterText.length,I=0;if(x.range&&x.range.start.row===x.range.end.row&&(R-=this.initialPosition.prefix.length,R+=this.initialPosition.pos.column-x.range.start.column,I+=x.range.end.column-this.initialPosition.pos.column),R||I){var E;k.selection.getAllRanges?E=k.selection.getAllRanges():E=[k.getSelectionRange()];for(var N=0,S;S=E[N];N++)S.start.column-=R,S.end.column+=I,k.session.remove(S)}x.snippet?s.insertSnippet(k,x.snippet):this.$insertString(k,x),x.completer&&x.completer.onInsert&&typeof x.completer.onInsert=="function"&&x.completer.onInsert(k,x),x.command&&x.command==="startAutocomplete"&&k.execCommand(x.command)}return k.endOperation(),!0},C.prototype.$insertString=function(k,x){var T=x.value||x;k.execCommand("insertstring",T)},C.prototype.gatherCompletions=function(k,x){var T=k.getSession(),R=k.getCursorPosition(),I=g.getCompletionPrefix(k),E=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function(S,_){S.getCompletions(k,T,R,I,function($,L){S.hideInlinePreview&&(L=L.map(function(O){return Object.assign(O,{hideInlinePreview:S.hideInlinePreview})})),!$&&L&&(E=E.concat(L)),x(null,{prefix:g.getCompletionPrefix(k),matches:E,finished:--N===0})})}),!0},C.prototype.provideCompletions=function(k,x,T){var R=(function(S){var _=S.prefix,$=S.matches;this.completions=new M($),x.exactMatch&&(this.completions.exactMatch=!0),x.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),(S.finished||this.completions.filtered.length)&&T(null,this.completions,S.finished)}).bind(this),I=!0,E=null;if(this.gatherCompletions(k,(function(S,_){if(this.active){S&&(T(S,[],!0),this.detach());var $=_.prefix;if($.indexOf(_.prefix)===0){if(I){E=_;return}R(_)}}}).bind(this)),I=!1,E){var N=E;E=null,R(N)}},C.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},C}(),M=function(){function C(k,x){this.all=k,this.filtered=k,this.filterText=x||"",this.exactMatch=!1,this.ignoreCaption=!1}return C.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var x=this.filtered;else var x=this.all;this.filterText=k,x=this.filterCompletions(x,this.filterText),x=x.sort(function(R,I){return I.exactMatch-R.exactMatch||I.$score-R.$score||(R.caption||R.value).localeCompare(I.caption||I.value)});var T=null;x=x.filter(function(R){var I=R.snippet||R.caption||R.value;return I===T?!1:(T=I,!0)}),this.filtered=x},C.prototype.filterCompletions=function(k,x){var T=[],R=x.toUpperCase(),I=x.toLowerCase();e:for(var E=0,N;N=k[E];E++){var S=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(S){var _=-1,$=0,L=0,O,F;if(this.exactMatch){if(x!==S.substr(0,x.length))continue e}else{var H=S.toLowerCase().indexOf(I);if(H>-1)L=H;else for(var j=0;j<x.length;j++){var V=S.indexOf(I[j],_+1),q=S.indexOf(R[j],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(L+=10),L+=F,$|=1<<j),_=O}}N.matchMask=$,N.exactMatch=L?0:1,N.$score=(N.score||0)-L,T.push(N)}}return T},C}();r.Autocomplete=w,r.CompletionProvider=b,r.FilteredList=M}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function p(g,a){var c=g.getTextRange(v.fromPoints({row:0,column:0},a));return c.split(h).length-1}function y(g,a){var c=p(g,a),s=g.getValue().split(h),l=Object.create(null),o=s[c];return s.forEach(function(u,m){if(!(!u||u===o)){var w=Math.abs(c-m),b=s.length-w;l[u]?l[u]=Math.max(b,l[u]):l[u]=b}}),l}var v=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(g,a,c,s,l){var o=y(a,c),u=Object.keys(o);l(null,u.map(function(m){return{caption:m,value:m,score:o[m],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var p=e("../snippets").snippetManager,y=e("../autocomplete").Autocomplete,v=e("../config"),h=e("../lib/lang"),g=e("../autocomplete/util"),a=e("../autocomplete/text_completer"),c={getCompletions:function(R,I,E,N,S){if(I.$mode.completer)return I.$mode.completer.getCompletions(R,I,E,N,S);var _=R.session.getState(E.row),$=I.$mode.getCompletions(_,I,E,N);$=$.map(function(L){return L.completerId=c.id,L}),S(null,$)},id:"keywordCompleter"},s=function(R){var I={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(E,N,S,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(E,N){return I[N]})},l={getCompletions:function(R,I,E,N,S){var _=[],$=I.getTokenAt(E.row,E.column);$&&$.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=p.getActiveScopes(R);var L=p.snippetMap,O=[];_.forEach(function(F){for(var H=L[F]||[],j=H.length;j--;){var V=H[j],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:l.id})}},this),S(null,O)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",h.escapeHTML(R.caption),"</b>","<hr></hr>",h.escapeHTML(s(R.snippet))].join(""))},id:"snippetCompleter"},o=[l,a,c];r.setCompleters=function(R){o.length=0,R&&o.push.apply(o,R)},r.addCompleter=function(R){o.push(R)},r.textCompleter=a,r.keyWordCompleter=c,r.snippetCompleter=l;var u={name:"expandSnippet",exec:function(R){return p.expandWithTab(R)},bindKey:"Tab"},m=function(R,I){w(I.session.$mode)},w=function(R){typeof R=="string"&&(R=v.$modes[R]),R&&(p.files||(p.files={}),b(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(w))},b=function(R,I){!I||!R||p.files[R]||(p.files[R]={},v.loadModule(I,function(E){E&&(p.files[R]=E,!E.snippets&&E.snippetText&&(E.snippets=p.parseSnippetFile(E.snippetText)),p.register(E.snippets||[],E.scope),E.includeScopes&&(p.snippetMap[E.scope].includeScopes=E.includeScopes,E.includeScopes.forEach(function(N){w("ace/mode/"+N)})))}))},M=function(R){var I=R.editor,E=I.completer&&I.completer.activated;if(R.command.name==="backspace")E&&!g.getCompletionPrefix(I)&&I.completer.detach();else if(R.command.name==="insertstring"&&!E){C=R;var N=R.editor.$liveAutocompletionDelay;N?k.delay(N):x(R)}},C,k=h.delayedCall(function(){x(C)},0),x=function(R){var I=R.editor,E=g.getCompletionPrefix(I),N=R.args,S=g.triggerAutocomplete(I,N);if(E&&E.length>=I.$liveAutocompletionThreshold||S){var _=y.for(I);_.autoShown=!0,_.showPopup(I)}},T=e("../editor").Editor;e("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.addCommand(y.startCommand)):this.commands.removeCommand(y.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.on("afterExec",M)):this.commands.off("afterExec",M)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(u),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(u),this.off("changeMode",m))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(Mf)),Mf.exports}s0();var If={exports:{}},Of;function a0(){return Of||(Of=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
|
1215
|
+
|
1216
|
+
/* ------------------------------------------------------------------------------------------
|
1217
|
+
* Editor Search Form
|
1218
|
+
* --------------------------------------------------------------------------------------- */
|
1219
|
+
.ace_search {
|
1220
|
+
background-color: #ddd;
|
1221
|
+
color: #666;
|
1222
|
+
border: 1px solid #cbcbcb;
|
1223
|
+
border-top: 0 none;
|
1224
|
+
overflow: hidden;
|
1225
|
+
margin: 0;
|
1226
|
+
padding: 4px 6px 0 4px;
|
1227
|
+
position: absolute;
|
1228
|
+
top: 0;
|
1229
|
+
z-index: 99;
|
1230
|
+
white-space: normal;
|
1231
|
+
}
|
1232
|
+
.ace_search.left {
|
1233
|
+
border-left: 0 none;
|
1234
|
+
border-radius: 0px 0px 5px 0px;
|
1235
|
+
left: 0;
|
1236
|
+
}
|
1237
|
+
.ace_search.right {
|
1238
|
+
border-radius: 0px 0px 0px 5px;
|
1239
|
+
border-right: 0 none;
|
1240
|
+
right: 0;
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
.ace_search_form, .ace_replace_form {
|
1244
|
+
margin: 0 20px 4px 0;
|
1245
|
+
overflow: hidden;
|
1246
|
+
line-height: 1.9;
|
1247
|
+
}
|
1248
|
+
.ace_replace_form {
|
1249
|
+
margin-right: 0;
|
1250
|
+
}
|
1251
|
+
.ace_search_form.ace_nomatch {
|
1252
|
+
outline: 1px solid red;
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
.ace_search_field {
|
1256
|
+
border-radius: 3px 0 0 3px;
|
1257
|
+
background-color: white;
|
1258
|
+
color: black;
|
1259
|
+
border: 1px solid #cbcbcb;
|
1260
|
+
border-right: 0 none;
|
1261
|
+
outline: 0;
|
1262
|
+
padding: 0;
|
1263
|
+
font-size: inherit;
|
1264
|
+
margin: 0;
|
1265
|
+
line-height: inherit;
|
1266
|
+
padding: 0 6px;
|
1267
|
+
min-width: 17em;
|
1268
|
+
vertical-align: top;
|
1269
|
+
min-height: 1.8em;
|
1270
|
+
box-sizing: content-box;
|
1271
|
+
}
|
1272
|
+
.ace_searchbtn {
|
1273
|
+
border: 1px solid #cbcbcb;
|
1274
|
+
line-height: inherit;
|
1275
|
+
display: inline-block;
|
1276
|
+
padding: 0 6px;
|
1277
|
+
background: #fff;
|
1278
|
+
border-right: 0 none;
|
1279
|
+
border-left: 1px solid #dcdcdc;
|
1280
|
+
cursor: pointer;
|
1281
|
+
margin: 0;
|
1282
|
+
position: relative;
|
1283
|
+
color: #666;
|
1284
|
+
}
|
1285
|
+
.ace_searchbtn:last-child {
|
1286
|
+
border-radius: 0 3px 3px 0;
|
1287
|
+
border-right: 1px solid #cbcbcb;
|
1288
|
+
}
|
1289
|
+
.ace_searchbtn:disabled {
|
1290
|
+
background: none;
|
1291
|
+
cursor: default;
|
1292
|
+
}
|
1293
|
+
.ace_searchbtn:hover {
|
1294
|
+
background-color: #eef1f6;
|
1295
|
+
}
|
1296
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {
|
1297
|
+
padding: 0px 0.7em
|
1298
|
+
}
|
1299
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
1300
|
+
content: "";
|
1301
|
+
border: solid 2px #888;
|
1302
|
+
width: 0.5em;
|
1303
|
+
height: 0.5em;
|
1304
|
+
border-width: 2px 0 0 2px;
|
1305
|
+
display:inline-block;
|
1306
|
+
transform: rotate(-45deg);
|
1307
|
+
}
|
1308
|
+
.ace_searchbtn.next:after {
|
1309
|
+
border-width: 0 2px 2px 0 ;
|
1310
|
+
}
|
1311
|
+
.ace_searchbtn_close {
|
1312
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
1313
|
+
border-radius: 50%;
|
1314
|
+
border: 0 none;
|
1315
|
+
color: #656565;
|
1316
|
+
cursor: pointer;
|
1317
|
+
font: 16px/16px Arial;
|
1318
|
+
padding: 0;
|
1319
|
+
height: 14px;
|
1320
|
+
width: 14px;
|
1321
|
+
top: 9px;
|
1322
|
+
right: 7px;
|
1323
|
+
position: absolute;
|
1324
|
+
}
|
1325
|
+
.ace_searchbtn_close:hover {
|
1326
|
+
background-color: #656565;
|
1327
|
+
background-position: 50% 100%;
|
1328
|
+
color: white;
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
.ace_button {
|
1332
|
+
margin-left: 2px;
|
1333
|
+
cursor: pointer;
|
1334
|
+
-webkit-user-select: none;
|
1335
|
+
-moz-user-select: none;
|
1336
|
+
-o-user-select: none;
|
1337
|
+
-ms-user-select: none;
|
1338
|
+
user-select: none;
|
1339
|
+
overflow: hidden;
|
1340
|
+
opacity: 0.7;
|
1341
|
+
border: 1px solid rgba(100,100,100,0.23);
|
1342
|
+
padding: 1px;
|
1343
|
+
box-sizing: border-box!important;
|
1344
|
+
color: black;
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
.ace_button:hover {
|
1348
|
+
background-color: #eee;
|
1349
|
+
opacity:1;
|
1350
|
+
}
|
1351
|
+
.ace_button:active {
|
1352
|
+
background-color: #ddd;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
.ace_button.checked {
|
1356
|
+
border-color: #3399ff;
|
1357
|
+
opacity:1;
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
.ace_search_options{
|
1361
|
+
margin-bottom: 3px;
|
1362
|
+
text-align: right;
|
1363
|
+
-webkit-user-select: none;
|
1364
|
+
-moz-user-select: none;
|
1365
|
+
-o-user-select: none;
|
1366
|
+
-ms-user-select: none;
|
1367
|
+
user-select: none;
|
1368
|
+
clear: both;
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
.ace_search_counter {
|
1372
|
+
float: left;
|
1373
|
+
font-family: arial;
|
1374
|
+
padding: 0 8px;
|
1375
|
+
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/lang"),v=e("../lib/event"),h=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),c=e("../config").nls,s=999;p.importCssString(h,"ace_searchbox",!1);var l=function(){function m(w,b,M){this.activeInput;var C=p.createElement("div");p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],C),this.element=C.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(w),p.importCssString(h,"ace_searchbox",w.container)}return m.prototype.setEditor=function(w){w.searchBox=this,w.renderer.scroller.appendChild(this.element),this.editor=w},m.prototype.setSession=function(w){this.searchRange=null,this.$syncOptions(!0)},m.prototype.$initElements=function(w){this.searchBox=w.querySelector(".ace_search_form"),this.replaceBox=w.querySelector(".ace_replace_form"),this.searchOption=w.querySelector("[action=searchInSelection]"),this.replaceOption=w.querySelector("[action=toggleReplace]"),this.regExpOption=w.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=w.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=w.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=w.querySelector(".ace_search_counter")},m.prototype.$init=function(){var w=this.element;this.$initElements(w);var b=this;v.addListener(w,"mousedown",function(M){setTimeout(function(){b.activeInput.focus()},0),v.stopPropagation(M)}),v.addListener(w,"click",function(M){var C=M.target||M.srcElement,k=C.getAttribute("action");k&&b[k]?b[k]():b.$searchBarKb.commands[k]&&b.$searchBarKb.commands[k].exec(b),v.stopPropagation(M)}),v.addCommandKeyListener(w,function(M,C,k){var x=a.keyCodeToString(k),T=b.$searchBarKb.findKeyCommand(C,x);T&&T.exec&&(T.exec(b),v.stopEvent(M))}),this.$onChange=y.delayedCall(function(){b.find(!1,!1)}),v.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),v.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),v.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},m.prototype.setSearchRange=function(w){this.searchRange=w,w?this.searchRangeMarker=this.editor.session.addMarker(w,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},m.prototype.$syncOptions=function(w){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var b=this.editor.getReadOnly();this.replaceOption.style.display=b?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!b?"":"none",this.find(!1,!1,w)},m.prototype.highlight=function(w){this.editor.session.highlight(w||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},m.prototype.find=function(w,b,M){var C=this.editor.find(this.searchInput.value,{skipCurrent:w,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:M,range:this.searchRange}),k=!C&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},m.prototype.updateCounter=function(){var w=this.editor,b=w.$search.$options.re,M=b.unicode,C=0,k=0;if(b){var x=this.searchRange?w.session.getTextRange(this.searchRange):w.getValue(),T=w.session.doc.positionToIndex(w.selection.anchor);this.searchRange&&(T-=w.session.doc.positionToIndex(this.searchRange.start));for(var R=b.lastIndex=0,I;(I=b.exec(x))&&(C++,R=I.index,R<=T&&k++,!(C>s||!I[0]&&(b.lastIndex=R+=y.skipEmptyMatch(x,R,M),R>=x.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[k,C>s?s+"+":C])},m.prototype.findNext=function(){this.find(!0,!1)},m.prototype.findPrev=function(){this.find(!0,!0)},m.prototype.findAll=function(){var w=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!w&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},m.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},m.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},m.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},m.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},m.prototype.show=function(w,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,w&&(this.searchInput.value=w),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},m.prototype.isFocused=function(){var w=document.activeElement;return w==this.searchInput||w==this.replaceInput},m}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(m){var w=m.isReplace=!m.isReplace;m.replaceBox.style.display=w?"":"none",m.replaceOption.checked=!1,m.$syncOptions(),m.searchInput.focus()},"Ctrl-H|Command-Option-F":function(m){m.editor.getReadOnly()||(m.replaceOption.checked=!0,m.$syncOptions(),m.replaceInput.focus())},"Ctrl-G|Command-G":function(m){m.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(m){m.findPrev()},esc:function(m){setTimeout(function(){m.hide()})},Return:function(m){m.activeInput==m.replaceInput&&m.replace(),m.findNext()},"Shift-Return":function(m){m.activeInput==m.replaceInput&&m.replace(),m.findPrev()},"Alt-Return":function(m){m.activeInput==m.replaceInput&&m.replaceAll(),m.findAll()},Tab:function(m){(m.activeInput==m.replaceInput?m.searchInput:m.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(m){m.regExpOption.checked=!m.regExpOption.checked,m.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(m){m.caseSensitiveOption.checked=!m.caseSensitiveOption.checked,m.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(m){m.wholeWordOption.checked=!m.wholeWordOption.checked,m.$syncOptions()}},{name:"toggleReplace",exec:function(m){m.replaceOption.checked=!m.replaceOption.checked,m.$syncOptions()}},{name:"searchInSelection",exec:function(m){m.searchOption.checked=!m.searchRange,m.setSearchRange(m.searchOption.checked&&m.editor.getSelectionRange()),m.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(m){m.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,r.SearchBox=l,r.Search=function(m,w){var b=m.searchBox||new l(m);b.show(m.session.getTextRange(),w)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(If)),If.exports}a0();var l0=Object.defineProperty,c0=(n,t,e)=>t in n?l0(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Oc=(n,t,e)=>c0(n,typeof t!="symbol"?t+"":t,e);function Df(n,t){return function(){return n.apply(t,arguments)}}const{toString:u0}=Object.prototype,{getPrototypeOf:Dc}=Object,Ra=(n=>t=>{const e=u0.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Tr=n=>(n=n.toLowerCase(),t=>Ra(t)===n),Ma=n=>t=>typeof t===n,{isArray:Lo}=Array,xs=Ma("undefined");function h0(n){return n!==null&&!xs(n)&&n.constructor!==null&&!xs(n.constructor)&&or(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Nf=Tr("ArrayBuffer");function d0(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Nf(n.buffer),t}const f0=Ma("string"),or=Ma("function"),Ff=Ma("number"),La=n=>n!==null&&typeof n=="object",p0=n=>n===!0||n===!1,Ia=n=>{if(Ra(n)!=="object")return!1;const t=Dc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},g0=Tr("Date"),m0=Tr("File"),y0=Tr("Blob"),w0=Tr("FileList"),v0=n=>La(n)&&or(n.pipe),b0=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||or(n.append)&&((t=Ra(n))==="formdata"||t==="object"&&or(n.toString)&&n.toString()==="[object FormData]"))},x0=Tr("URLSearchParams"),[_0,k0,S0,$0]=["ReadableStream","Request","Response","Headers"].map(Tr),A0=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _s(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),Lo(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let v;for(r=0;r<y;r++)v=p[r],t.call(null,n[v],v,n)}}function Wf(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pf=n=>!xs(n)&&n!==Ki;function Nc(){const{caseless:n}=Pf(this)&&this||{},t={},e=(r,f)=>{const p=n&&Wf(t,f)||f;Ia(t[p])&&Ia(r)?t[p]=Nc(t[p],r):Ia(r)?t[p]=Nc({},r):Lo(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&_s(arguments[r],e);return t}const C0=(n,t,e,{allOwnKeys:r}={})=>(_s(t,(f,p)=>{e&&or(f)?n[p]=Df(f,e):n[p]=f},{allOwnKeys:r}),n),T0=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),E0=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},R0=(n,t,e,r)=>{let f,p,y;const v={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!r||r(y,n,t))&&!v[y]&&(t[y]=n[y],v[y]=!0);n=e!==!1&&Dc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},M0=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},L0=n=>{if(!n)return null;if(Lo(n))return n;let t=n.length;if(!Ff(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},I0=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Dc(Uint8Array)),O0=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},D0=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},N0=Tr("HTMLFormElement"),F0=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Hf=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),W0=Tr("RegExp"),zf=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};_s(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},P0=n=>{zf(n,(t,e)=>{if(or(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(or(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},H0=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return Lo(n)?r(n):r(String(n).split(t)),e},z0=()=>{},B0=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,Fc="abcdefghijklmnopqrstuvwxyz",Bf="0123456789",jf={DIGIT:Bf,ALPHA:Fc,ALPHA_DIGIT:Fc+Fc.toUpperCase()+Bf},j0=(n=16,t=jf.ALPHA_DIGIT)=>{let e="";const{length:r}=t;for(;n--;)e+=t[Math.random()*r|0];return e};function U0(n){return!!(n&&or(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const V0=n=>{const t=new Array(10),e=(r,f)=>{if(La(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=Lo(r)?[]:{};return _s(r,(y,v)=>{const h=e(y,f+1);!xs(h)&&(p[v]=h)}),t[f]=void 0,p}}return r};return e(n,0)},q0=Tr("AsyncFunction"),G0=n=>n&&(La(n)||or(n))&&or(n.then)&&or(n.catch),Uf=((n,t)=>n?setImmediate:t?((e,r)=>(Ki.addEventListener("message",({source:f,data:p})=>{f===Ki&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Ki.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",or(Ki.postMessage)),Y0=typeof queueMicrotask<"u"?queueMicrotask.bind(Ki):typeof process<"u"&&process.nextTick||Uf,ue={isArray:Lo,isArrayBuffer:Nf,isBuffer:h0,isFormData:b0,isArrayBufferView:d0,isString:f0,isNumber:Ff,isBoolean:p0,isObject:La,isPlainObject:Ia,isReadableStream:_0,isRequest:k0,isResponse:S0,isHeaders:$0,isUndefined:xs,isDate:g0,isFile:m0,isBlob:y0,isRegExp:W0,isFunction:or,isStream:v0,isURLSearchParams:x0,isTypedArray:I0,isFileList:w0,forEach:_s,merge:Nc,extend:C0,trim:A0,stripBOM:T0,inherits:E0,toFlatObject:R0,kindOf:Ra,kindOfTest:Tr,endsWith:M0,toArray:L0,forEachEntry:O0,matchAll:D0,isHTMLForm:N0,hasOwnProperty:Hf,hasOwnProp:Hf,reduceDescriptors:zf,freezeMethods:P0,toObjectSet:H0,toCamelCase:F0,noop:z0,toFiniteNumber:B0,findKey:Wf,global:Ki,isContextDefined:Pf,ALPHABET:jf,generateString:j0,isSpecCompliantForm:U0,toJSONObject:V0,isAsyncFn:q0,isThenable:G0,setImmediate:Uf,asap:Y0};function Je(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}ue.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const Vf=Je.prototype,qf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{qf[n]={value:n}}),Object.defineProperties(Je,qf),Object.defineProperty(Vf,"isAxiosError",{value:!0}),Je.from=(n,t,e,r,f,p)=>{const y=Object.create(Vf);return ue.toFlatObject(n,y,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),Je.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const K0=null;function Wc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Gf(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function Yf(n,t,e){return n?n.concat(t).map(function(r,f){return r=Gf(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function Q0(n){return ue.isArray(n)&&!n.some(Wc)}const Z0=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Oa(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!ue.isUndefined(o[l])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,v=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(f))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!v&&ue.isBlob(l))throw new Je("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(l)||ue.isTypedArray(l)?v&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,u){let m=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&Q0(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(m=ue.toArray(l)))return o=Gf(o),m.forEach(function(w,b){!(ue.isUndefined(w)||w===null)&&t.append(y===!0?Yf([o],b,p):y===null?o:o+"[]",h(w))}),!1}return Wc(l)?!0:(t.append(Yf(u,o,p),h(l)),!1)}const a=[],c=Object.assign(Z0,{defaultVisitor:g,convertValue:h,isVisitable:Wc});function s(l,o){if(!ue.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(l),ue.forEach(l,function(u,m){(!(ue.isUndefined(u)||u===null)&&f.call(t,u,ue.isString(m)?m.trim():m,o,c))===!0&&s(u,o?o.concat(m):[m])}),a.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Kf(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Pc(n,t){this._pairs=[],n&&Oa(n,this,t)}const Qf=Pc.prototype;Qf.append=function(n,t){this._pairs.push([n,t])},Qf.toString=function(n){const t=n?function(e){return n.call(this,e,Kf)}:Kf;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function J0(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zf(n,t,e){if(!t)return n;const r=e&&e.encode||J0;ue.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=ue.isURLSearchParams(t)?t.toString():new Pc(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class Jf{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Xf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X0=typeof URLSearchParams<"u"?URLSearchParams:Pc,ex=typeof FormData<"u"?FormData:null,tx=typeof Blob<"u"?Blob:null,nx={isBrowser:!0,classes:{URLSearchParams:X0,FormData:ex,Blob:tx},protocols:["http","https","file","blob","url","data"]},Hc=typeof window<"u"&&typeof document<"u",zc=typeof navigator=="object"&&navigator||void 0,rx=Hc&&(!zc||["ReactNative","NativeScript","NS"].indexOf(zc.product)<0),ix=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ox=Hc&&window.location.href||"http://localhost",sx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hc,hasStandardBrowserEnv:rx,hasStandardBrowserWebWorkerEnv:ix,navigator:zc,origin:ox},Symbol.toStringTag,{value:"Module"})),Ln={...sx,...nx};function ax(n,t){return Oa(n,new Ln.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Ln.isNode&&ue.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function lx(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cx(n){const t={},e=Object.keys(n);let r;const f=e.length;let p;for(r=0;r<f;r++)p=e[r],t[p]=n[p];return t}function ep(n){function t(e,r,f,p){let y=e[p++];if(y==="__proto__")return!0;const v=Number.isFinite(+y),h=p>=e.length;return y=!y&&ue.isArray(f)?f.length:y,h?(ue.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!v):((!f[y]||!ue.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&ue.isArray(f[y])&&(f[y]=cx(f[y])),!v)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(r,f)=>{t(lx(r),f,e,0)}),e}return null}function ux(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const ks={transitional:Xf,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=ue.isObject(n);if(f&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(ep(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return ax(n,this.formSerializer).toString();if((p=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Oa(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),ux(n)):n}],transformResponse:[function(n){const t=this.transitional||ks.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(p){if(f)throw p.name==="SyntaxError"?Je.from(p,Je.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ln.classes.FormData,Blob:Ln.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{ks.headers[n]={}});const hx=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dx=n=>{const t={};let e,r,f;return n&&n.split(`
|
1376
|
+
`).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&hx[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},tp=Symbol("internals");function Ss(n){return n&&String(n).trim().toLowerCase()}function Da(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Da):String(n)}function fx(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const px=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Bc(n,t,e,r,f){if(ue.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!ue.isString(t)){if(ue.isString(r))return t.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(t)}}function gx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function mx(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,p,y){return this[r].call(this,t,f,p,y)},configurable:!0})})}let Kn=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function p(v,h,g){const a=Ss(h);if(!a)throw new Error("header name must be a non-empty string");const c=ue.findKey(f,a);(!c||f[c]===void 0||g===!0||g===void 0&&f[c]!==!1)&&(f[c||h]=Da(v))}const y=(v,h)=>ue.forEach(v,(g,a)=>p(g,a,h));if(ue.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(ue.isString(t)&&(t=t.trim())&&!px(t))y(dx(t),e);else if(ue.isHeaders(t))for(const[v,h]of t.entries())p(h,v,r);else t!=null&&p(e,t,r);return this}get(t,e){if(t=Ss(t),t){const r=ue.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return fx(f);if(ue.isFunction(e))return e.call(this,f,r);if(ue.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ss(t),t){const r=ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Bc(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function p(y){if(y=Ss(y),y){const v=ue.findKey(r,y);v&&(!e||Bc(r,r[v],v,e))&&(delete r[v],f=!0)}}return ue.isArray(t)?t.forEach(p):p(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const p=e[r];(!t||Bc(this,this[p],p,t,!0))&&(delete this[p],f=!0)}return f}normalize(t){const e=this,r={};return ue.forEach(this,(f,p)=>{const y=ue.findKey(r,p);if(y){e[y]=Da(f),delete e[p];return}const v=t?gx(p):String(p).trim();v!==p&&delete e[p],e[v]=Da(f),r[v]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&ue.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
1377
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[tp]=this[tp]={accessors:{}}).accessors,r=this.prototype;function f(p){const y=Ss(p);e[y]||(mx(r,p),e[y]=!0)}return ue.isArray(t)?t.forEach(f):f(t),this}};Kn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Kn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),ue.freezeMethods(Kn);function jc(n,t){const e=this||ks,r=t||e,f=Kn.from(r.headers);let p=r.data;return ue.forEach(n,function(y){p=y.call(e,p,f.normalize(),t?t.status:void 0)}),f.normalize(),p}function np(n){return!!(n&&n.__CANCEL__)}function Io(n,t,e){Je.call(this,n??"canceled",Je.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Io,Je,{__CANCEL__:!0});function rp(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Je("Request failed with status code "+e.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function yx(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function wx(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,p=0,y;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),g=r[p];y||(y=h),e[f]=v,r[f]=h;let a=p,c=0;for(;a!==f;)c+=e[a++],a=a%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),h-y<t)return;const s=g&&h-g;return s?Math.round(c*1e3/s):void 0}}function vx(n,t){let e=0,r=1e3/t,f,p;const y=(v,h=Date.now())=>{e=h,f=null,p&&(clearTimeout(p),p=null),n.apply(null,v)};return[(...v)=>{const h=Date.now(),g=h-e;g>=r?y(v,h):(f=v,p||(p=setTimeout(()=>{p=null,y(f)},r-g)))},()=>f&&y(f)]}const Na=(n,t,e=3)=>{let r=0;const f=wx(50,250);return vx(p=>{const y=p.loaded,v=p.lengthComputable?p.total:void 0,h=y-r,g=f(h),a=y<=v;r=y;const c={loaded:y,total:v,progress:v?y/v:void 0,bytes:h,rate:g||void 0,estimated:g&&v&&a?(v-y)/g:void 0,event:p,lengthComputable:v!=null,[t?"download":"upload"]:!0};n(c)},e)},ip=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},op=n=>(...t)=>ue.asap(()=>n(...t)),bx=Ln.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Ln.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Ln.origin),Ln.navigator&&/(msie|trident)/i.test(Ln.navigator.userAgent)):()=>!0,xx=Ln.hasStandardBrowserEnv?{write(n,t,e,r,f,p){const y=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),ue.isString(r)&&y.push("path="+r),ue.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _x(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function kx(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function sp(n,t){return n&&!_x(t)?kx(n,t):t}const ap=n=>n instanceof Kn?{...n}:n;function Qi(n,t){t=t||{};const e={};function r(g,a,c,s){return ue.isPlainObject(g)&&ue.isPlainObject(a)?ue.merge.call({caseless:s},g,a):ue.isPlainObject(a)?ue.merge({},a):ue.isArray(a)?a.slice():a}function f(g,a,c,s){if(ue.isUndefined(a)){if(!ue.isUndefined(g))return r(void 0,g,c,s)}else return r(g,a,c,s)}function p(g,a){if(!ue.isUndefined(a))return r(void 0,a)}function y(g,a){if(ue.isUndefined(a)){if(!ue.isUndefined(g))return r(void 0,g)}else return r(void 0,a)}function v(g,a,c){if(c in t)return r(g,a);if(c in n)return r(void 0,g)}const h={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:v,headers:(g,a,c)=>f(ap(g),ap(a),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(g){const a=h[g]||f,c=a(n[g],t[g],g);ue.isUndefined(c)&&a!==v||(e[g]=c)}),e}const lp=n=>{const t=Qi({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:v}=t;t.headers=y=Kn.from(y),t.url=Zf(sp(t.baseURL,t.url),n.params,n.paramsSerializer),v&&y.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let h;if(ue.isFormData(e)){if(Ln.hasStandardBrowserEnv||Ln.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[g,...a]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([g||"multipart/form-data",...a].join("; "))}}if(Ln.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(t)),r||r!==!1&&bx(t.url))){const g=f&&p&&xx.read(p);g&&y.set(f,g)}return t},Sx=typeof XMLHttpRequest<"u",$x=Sx&&function(n){return new Promise(function(t,e){const r=lp(n);let f=r.data;const p=Kn.from(r.headers).normalize();let{responseType:y,onUploadProgress:v,onDownloadProgress:h}=r,g,a,c,s,l;function o(){s&&s(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function m(){if(!u)return;const b=Kn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),M={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};rp(function(C){t(C),o()},function(C){e(C),o()},M),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(e(new Je("Request aborted",Je.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Je("Network Error",Je.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||Xf;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),e(new Je(b,M.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,n,u)),u=null},f===void 0&&p.setContentType(null),"setRequestHeader"in u&&ue.forEach(p.toJSON(),function(b,M){u.setRequestHeader(M,b)}),ue.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=Na(h,!0),u.addEventListener("progress",c)),v&&u.upload&&([a,s]=Na(v),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(g=b=>{u&&(e(!b||b.type?new Io(null,n,u):b),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const w=yx(r.url);if(w&&Ln.protocols.indexOf(w)===-1){e(new Je("Unsupported protocol "+w+":",Je.ERR_BAD_REQUEST,n));return}u.send(f||null)})},Ax=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const p=function(g){if(!f){f=!0,v();const a=g instanceof Error?g:this.reason;r.abort(a instanceof Je?a:new Io(a instanceof Error?a.message:a))}};let y=t&&setTimeout(()=>{y=null,p(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const v=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(p):g.removeEventListener("abort",p)}),n=null)};n.forEach(g=>g.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>ue.asap(v),h}},Cx=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},Tx=async function*(n,t){for await(const e of Ex(n))yield*Cx(e,t)},Ex=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},cp=(n,t,e,r)=>{const f=Tx(n,t);let p=0,y,v=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:g,value:a}=await f.next();if(g){v(),h.close();return}let c=a.byteLength;if(e){let s=p+=c;e(s)}h.enqueue(new Uint8Array(a))}catch(g){throw v(g),g}},cancel(h){return v(h),f.return()}},{highWaterMark:2})},Fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",up=Fa&&typeof ReadableStream=="function",Rx=Fa&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),hp=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Mx=up&&hp(()=>{let n=!1;const t=new Request(Ln.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),dp=64*1024,Uc=up&&hp(()=>ue.isReadableStream(new Response("").body)),Wa={stream:Uc&&(n=>n.body)};Fa&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wa[t]&&(Wa[t]=ue.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const Lx=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Ln.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await Rx(n)).byteLength},Ix=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??Lx(t),Ox=Fa&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:p,timeout:y,onDownloadProgress:v,onUploadProgress:h,responseType:g,headers:a,withCredentials:c="same-origin",fetchOptions:s}=lp(n);g=g?(g+"").toLowerCase():"text";let l=Ax([f,p&&p.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(h&&Mx&&e!=="get"&&e!=="head"&&(m=await Ix(a,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(ue.isFormData(r)&&(x=k.headers.get("content-type"))&&a.setContentType(x),k.body){const[T,R]=ip(m,Na(op(h)));r=cp(k.body,dp,T,R)}}ue.isString(c)||(c=c?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...s,signal:l,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",credentials:w?c:void 0});let b=await fetch(o);const M=Uc&&(g==="stream"||g==="response");if(Uc&&(v||M&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=ue.toFiniteNumber(b.headers.get("content-length")),[T,R]=v&&ip(x,Na(op(v),!0))||[];b=new Response(cp(b.body,dp,T,()=>{R&&R(),u&&u()}),k)}g=g||"text";let C=await Wa[ue.findKey(Wa,g)||"text"](b,n);return!M&&u&&u(),await new Promise((k,x)=>{rp(k,x,{data:C,headers:Kn.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,n,o),{cause:w.cause||w}):Je.from(w,w&&w.code,n,o)}}),Vc={http:K0,xhr:$x,fetch:Ox};ue.forEach(Vc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const fp=n=>`- ${n}`,Dx=n=>ue.isFunction(n)||n===null||n===!1,pp={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let p=0;p<t;p++){e=n[p];let y;if(r=e,!Dx(e)&&(r=Vc[(y=String(e)).toLowerCase()],r===void 0))throw new Je(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+p]=r}if(!r){const p=Object.entries(f).map(([v,h])=>`adapter ${v} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?p.length>1?`since :
|
1378
|
+
`+p.map(fp).join(`
|
1379
|
+
`):" "+fp(p[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:Vc};function qc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Io(null,n)}function gp(n){return qc(n),n.headers=Kn.from(n.headers),n.data=jc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),pp.getAdapter(n.adapter||ks.adapter)(n).then(function(t){return qc(n),t.data=jc.call(n,n.transformResponse,t),t.headers=Kn.from(t.headers),t},function(t){return np(t)||(qc(n),t&&t.response&&(t.response.data=jc.call(n,n.transformResponse,t.response),t.response.headers=Kn.from(t.response.headers))),Promise.reject(t)})}const mp="1.7.9",Pa={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Pa[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const yp={};Pa.transitional=function(n,t,e){function r(f,p){return"[Axios v"+mp+"] Transitional option '"+f+"'"+p+(e?". "+e:"")}return(f,p,y)=>{if(n===!1)throw new Je(r(p," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!yp[p]&&(yp[p]=!0,console.warn(r(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,p,y):!0}},Pa.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function Nx(n,t,e){if(typeof n!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const p=r[f],y=t[p];if(y){const v=n[p],h=v===void 0||y(v,p,n);if(h!==!0)throw new Je("option "+p+" must be "+h,Je.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Je("Unknown option "+p,Je.ERR_BAD_OPTION)}}const Ha={assertOptions:Nx,validators:Pa},Wr=Ha.validators;let Zi=class{constructor(n){this.defaults=n,this.interceptors={request:new Jf,response:new Jf}}async request(n,t){try{return await this._request(n,t)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const f=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?f&&!String(e.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
1380
|
+
`+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=Qi(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&Ha.assertOptions(e,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),r!=null&&(ue.isFunction(r)?t.paramsSerializer={serialize:r}:Ha.assertOptions(r,{encode:Wr.function,serialize:Wr.function},!0)),Ha.assertOptions(t,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=f&&ue.merge(f.common,f[t.method]);f&&ue.forEach(["delete","get","head","post","put","patch","common"],l=>{delete f[l]}),t.headers=Kn.concat(p,f);const y=[];let v=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(t)===!1||(v=v&&l.synchronous,y.unshift(l.fulfilled,l.rejected))});const h=[];this.interceptors.response.forEach(function(l){h.push(l.fulfilled,l.rejected)});let g,a=0,c;if(!v){const l=[gp.bind(this),void 0];for(l.unshift.apply(l,y),l.push.apply(l,h),c=l.length,g=Promise.resolve(t);a<c;)g=g.then(l[a++],l[a++]);return g}c=y.length;let s=t;for(a=0;a<c;){const l=y[a++],o=y[a++];try{s=l(s)}catch(u){o.call(this,u);break}}try{g=gp.call(this,s)}catch(l){return Promise.reject(l)}for(a=0,c=h.length;a<c;)g=g.then(h[a++],h[a++]);return g}getUri(n){n=Qi(this.defaults,n);const t=sp(n.baseURL,n.url);return Zf(t,n.params,n.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(n){Zi.prototype[n]=function(t,e){return this.request(Qi(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(Qi(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Zi.prototype[n]=t(),Zi.prototype[n+"Form"]=t(!0)});let Fx=class jv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(v=>{r.subscribe(v),p=v}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new Io(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new jv(function(e){t=e}),cancel:t}}};function Wx(n){return function(t){return n.apply(null,t)}}function Px(n){return ue.isObject(n)&&n.isAxiosError===!0}const Gc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gc).forEach(([n,t])=>{Gc[t]=n});function wp(n){const t=new Zi(n),e=Df(Zi.prototype.request,t);return ue.extend(e,Zi.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return wp(Qi(n,r))},e}const en=wp(ks);en.Axios=Zi,en.CanceledError=Io,en.CancelToken=Fx,en.isCancel=np,en.VERSION=mp,en.toFormData=Oa,en.AxiosError=Je,en.Cancel=en.CanceledError,en.all=function(n){return Promise.all(n)},en.spread=Wx,en.isAxiosError=Px,en.mergeConfig=Qi,en.AxiosHeaders=Kn,en.formToJSON=n=>ep(ue.isHTMLForm(n)?new FormData(n):n),en.getAdapter=pp.getAdapter,en.HttpStatusCode=Gc,en.default=en;const{Axios:vO,AxiosError:bO,CanceledError:xO,isCancel:_O,CancelToken:kO,VERSION:SO,all:$O,Cancel:AO,isAxiosError:CO,spread:TO,toFormData:EO,AxiosHeaders:RO,HttpStatusCode:MO,formToJSON:LO,getAdapter:IO,mergeConfig:OO}=en,Yc=en.create({baseURL:location.origin,timeout:6e4,params:{}});Yc.interceptors.response.use(n=>n,n=>{var t,e,r,f,p,y,v,h,g,a,c;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let s=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(s+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(s+=`${n.response.config.data} `),(p=(f=n.response)==null?void 0:f.data)!=null&&p.message?s+=`${n.response.data.message}`:(v=(y=n.response)==null?void 0:y.data)!=null&&v.exception?s+=`${n.response.data.exception}`:(a=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&a.message?(n.response.data.error.class&&(s+=`${n.response.data.error.class} `),s+=`${n.response.data.error.message}`):s+=`${(c=n.response)==null?void 0:c.data}`;const{$cosmosNotify:l}=window;throw l&&l.serious({title:"Network error",body:s}),n}else throw n});const za=async function(n,t,{data:e,params:r={},headers:f,noAuth:p=!1,noScope:y=!1,onUploadProgress:v=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!y&&!r.scope&&(r.scope=window.openc3Scope),Yc({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:v})},Kc={Accept:"application/json"},vp={...Kc,"Content-Type":"application/json"},Ba=Rn("M",{get:function(n,{params:t,headers:e=Kc,noScope:r,noAuth:f,onUploadProgress:p}={}){return za("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})},put:function(n,{data:t,params:e,headers:r=vp,noScope:f,noAuth:p,onUploadProgress:y}={}){return za("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},post:function(n,{data:t,params:e,headers:r=vp,noScope:f,noAuth:p,onUploadProgress:y}={}){return za("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},delete:function(n,{params:t,headers:e=Kc,noScope:r,noAuth:f,onUploadProgress:p}={}){return za("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})}});let ja=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class $s extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class Qc extends $s{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class Hx extends $s{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Er extends $s{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class zx extends Er{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function bp(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class Bx{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const Ji=Symbol("state");class xp{constructor(t={}){this.emitter=ja(),this.params=Object.freeze(t),this.presence=new Bx(this),this.initialConnect=!0,this[Ji]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=bp({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Ji]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[Ji]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Ji]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[Ji]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[Ji]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[Ji]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...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((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(p=>p()),e(f||new $s("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class jx{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?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(t){this._checkIntent(t);let e,r={promise:new Promise(p=>{e=p}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class Ux{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Vx{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new Ux),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new jx(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class qx{constructor(t={}){this.subscriptions=new Vx(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>{y.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>y.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const _p={debug:0,info:1,warn:2,error:3};class kp{constructor(t){this.level=t||"warn"}log(t,e,r){_p[t]<_p[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class As extends kp{writeLogEntry(){}}class Gx{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let Yx=0;class Sp{constructor(t={}){let{logger:e}=t;this.logger=e||new As,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=bp(r);if(this.pendingUnsubscriptions[f]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,f),new Promise(v=>{setTimeout(()=>{v(this.subscribe(t,e))},y)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((y,v)=>{let h=++Yx;this.pendingSubscriptions[f]={resolve:y,reject:v,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,p)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new Hx(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:p,reconnect:y}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let v=t.sid;return v&&this.cable.setSessionId(v),this.cable.connected()}if(e==="disconnect"){let v=new Er(p);this.reset(v),y===!1?this.cable.closed(v):this.cable.disconnected(v);return}if(e==="confirm_subscription"){let v=this.pendingSubscriptions[r];if(!v){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],v.resolve(r)}if(e==="reject_subscription"){let v=this.pendingSubscriptions[r];return v?(delete this.pendingSubscriptions[r],v.reject(new Qc)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const $p=()=>Date.now()/1e3|0;class Kx extends Sp{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=$p()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect"||e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=$p()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),t.restored){let p=t.restored_ids||Object.keys(this.subscriptionStreams);for(let y of p)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(e==="presence"){let p=f.type;if(p==="info"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.resolve(f))}else if(p==="error"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let p=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:p}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let p=this.streamsPositions[f];p&&(r=!0,e[f]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class Qx extends $s{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Zc extends xp{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Oc(Zc,"identifier","__ghost__");const Zx="$pubsub";class Jc extends xp{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}Oc(Jc,"identifier",Zx);const Xi=Symbol("state");let Jx=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:p,performFailures:y}){this.emitter=ja(),this.transport=n,this.encoder=e,this.logger=r||new As,this.protocol=t,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new qx(p||{}),this[Xi]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[Xi]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();this[Xi]="connecting";let n=this.pendingConnect();this.logger.debug("connecting");try{await this.transport.open()}catch(t){this.handleClose(t)}return n}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Xi]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Er("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[Xi]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Er("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Er(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[Xi]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Er?n:new Er(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[Xi]="closed";let e=t||new Er("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",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:p,meta:y}=e;r?this.hub.notify(f,r,p):this.hub.transmit(f,p,y)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new Jc({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new Jc({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=Zc),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.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 f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let p={identifier:t,params:e};this.logger.debug("subscribing",p);try{let y=await this.protocol.subscribe(t,e);this.hub.subscribe(r,y),this.logger.debug("subscribed",{...p,remoteId:y}),n.notify("connected")}catch(y){if(y){if(y instanceof Qc&&this.logger.warn("rejected",p),y instanceof Er){this.logger.debug("disconnected during subscription; will retry on connect",p),f.release();return}this.logger.error("failed to subscribe",{error:y,...p})}n.close(y),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Er?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Qx;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,p={id:f,action:t,payload:e};this.logger.debug("perform",p);try{let y=await this.protocol.perform(f,t,e);return y&&this.logger.debug("perform result",{message:y,request:p}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:p}),y}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const Xx={maxMissingPings:2,maxReconnectAttempts:1/0},Oo=()=>Date.now(),Ap=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),p=>{let y=n*e**p,v=y*e,h=y+(v-y)*Math.random(),g=2*(Math.random()-.5)*r;return h=h*(1+g),f&&f<h&&(h=f),h}};let Cp=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},Xx,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new As,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Oo()}watch(n){this.target=n,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(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Oo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Oo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Oo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Oo()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=Oo()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new zx))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class e1{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=ja(),this.unbind=[],this.logger=e.logger||new As}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];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(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}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(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class t1{constructor(t,e={}){this.url=t;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=ja();let{format:f,subprotocol:p}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){return this.connectionOptions?this.ws=new this.Impl(this.url,this.subprotocol,this.connectionOptions):this.ws=new this.Impl(this.url,this.subprotocol),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((t,e)=>{let r=[];r.push(this.once("open",()=>{r.forEach(f=>f()),t()})),r.push(this.once("close",()=>{r.forEach(f=>f()),e(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.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")}}const Tp={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function n1(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},Tp,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:p,fallbacks:y,logLevel:v,logger:h,transport:g,encoder:a,lazy:c,monitor:s,pingInterval:l,reconnectStrategy:o,maxMissingPings:u,maxReconnectAttempts:m,subprotocol:w,tokenRefresher:b,historyTimestamp:M,protocolOptions:C,concurrentSubscribes:k}=t;if(h=h||new As(v),typeof e=="string"){w=w||e;let R=e.substring(0,e.lastIndexOf("-")),I=e.substring(e.lastIndexOf("-")+1);if(C=C||{},R==="actioncable-v1")e=new Sp({logger:h,...C});else if(R==="actioncable-v1-ext")e=new Kx({logger:h,historyTimestamp:M,...C});else throw Error(`Protocol is not supported yet: ${e}`);if(I==="json")a=a||new Gx,f=f||"text";else if(I==="msgpack"){if(f="binary",!a)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(I==="protobuf"){if(f=f||"binary",!a)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");g=g||new t1(n,{websocketImplementation:r,websocketOptions:p,subprotocol:w,format:f}),y&&(g=new e1([g,...y],{logger:h})),o=o||Ap(l),s!==!1&&(s=s||new Cp({pingInterval:l,reconnectStrategy:o,maxMissingPings:u,maxReconnectAttempts:m,logger:h}));let x={concurrentSubscribes:k},T=new Jx({protocol:e,transport:g,encoder:a,logger:h,lazy:c,hubOptions:x});return s&&(s.watch(T),T.monitor=s),b&&r1(T,async()=>{try{await b(g)}catch(R){return h.error("Failed to refresh authentication token: "+R),!1}return T.connect().catch(()=>{}),!0}),T}function r1(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class i1{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class o1 extends Zc{constructor(t,e,r){super(t,e),this.subscription=new i1(this),Object.assign(this.subscription,r),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof Qc?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class s1{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let p=new o1(r,f,e);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class a1{constructor(t){this.cable=t,this.subscriptions=new s1(t)}}class l1 extends kp{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class c1 extends Cp{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Er("page_frozen"));document.addEventListener("visibilitychange",t,!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",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const u1=["cable","action-cable"],h1="/cable",Ep=(n,t)=>{for(let e of u1){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},Rp=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,d1=()=>{if(typeof document<"u"&&document.head){let n=Ep(document,"url");if(n)return Rp(n)}return Rp(h1)},f1=()=>{if(typeof document<"u"&&document.head){let n=Ep(document,"history-timestamp");if(n)return n|0}};function p1(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||d1(),t=t||{},t.historyTimestamp||(t.historyTimestamp=f1()),t=Object.assign({},Tp,t);let{logLevel:e,logger:r,pingInterval:f,reconnectStrategy:p,maxMissingPings:y,maxReconnectAttempts:v}=t;return r=t.logger=t.logger||new l1(e),p=t.reconnectStrategy=t.reconnectStrategy||Ap(f),t.monitor!==!1&&(t.monitor=t.monitor||new c1({pingInterval:f,reconnectStrategy:p,maxMissingPings:y,maxReconnectAttempts:v,logger:r})),n1(n,t)}function g1(n,t){let e=p1(n,t);return new a1(e)}class m1{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>{if(p&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=g1(y)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}Rn("L",m1);class y1{constructor(t,e,r="",f=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=r,this.url=f}}Rn("u",y1);class w1{constructor(){Oc(this,"id",1)}async exec(t,e,r={},f={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await Yc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:p})).data.result}catch(y){let v=new Error;throw y.response?(v.name=y.response.data.error.data.class,v.message=y.response.data.error.data.message,v.object=y.response.data.error):y.request?(v.name="Request error",v.message="Request error, no response received"):v.name="Unknown error",v}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...r){return this.exec("interface_cmd",[t,e,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,r,f=30){const p=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(p!=null){let y=p.length,v=null;for(let h=0;h<y;h++)v=this.decode_openc3_type(p[h][1]),v!==null&&(p[h][1]=v)}return p}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,r=null){let f={stale_time:e};r!==null&&(f.cache_timeout=r);const p=await this.exec("get_tlm_values",[t],f,{},1e4);let y=p[0].length,v=null;for(let h=0;h<y;h++)v=this.decode_openc3_type(p[0][h]),v!==null&&(p[0][h]=v);return p}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))p=await this.exec("tlm",[t],{type:e});else{let v=new Error;throw v.name="TypeError",v.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,v}else p=await this.exec("tlm",[t,e,r],{type:f});let y=this.decode_openc3_type(p);return y!==null&&(p=y),p}async inject_tlm(t,e,r=null,f="CONVERTED"){data=await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,p){let y=null;for(let v in f)Object.prototype.hasOwnProperty.call(f,v)&&(y=this.encode_openc3_type(f[v]),y!==null&&(f[v]=y));return this.exec(t,[e,r,f],{},p)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={}){return e===void 0?this.exec("cmd",t,{},f):this._cmd("cmd",t,e,r,f)}cmd_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_range_check",t,{},f):this._cmd("cmd_no_range_check",t,e,r,f)}cmd_raw(t,e,r,f={}){return e===void 0?this.exec("cmd_raw",t,{},f):this._cmd("cmd_raw",t,e,r,f)}cmd_raw_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},f):this._cmd("cmd_raw_no_range_check",t,e,r,f)}cmd_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},f):this._cmd("cmd_no_hazardous_check",t,e,r,f)}cmd_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_no_checks",t,{},f):this._cmd("cmd_no_checks",t,e,r,f)}cmd_raw_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f)}cmd_raw_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},f):this._cmd("cmd_raw_no_checks",t,e,r,f)}build_cmd(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}build_command(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(p=>p.toString(16).padStart(2,"0")).join("")}}}Rn("R",w1);var Ua={exports:{}};/**
|
1381
|
+
* @license
|
1382
|
+
* Lodash <https://lodash.com/>
|
1383
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
1384
|
+
* Released under MIT license <https://lodash.com/license>
|
1385
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
1386
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1387
|
+
*/var v1=Ua.exports,Mp;function b1(){return Mp||(Mp=1,function(n,t){(function(){var e,r="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",v="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,a="__lodash_placeholder__",c=1,s=2,l=4,o=1,u=2,m=1,w=2,b=4,M=8,C=16,k=32,x=64,T=128,R=256,I=512,E=30,N="...",S=800,_=16,$=1,L=2,O=3,F=1/0,H=9007199254740991,j=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",m],["bindKey",w],["curry",M],["curryRight",C],["flip",I],["partial",k],["partialRight",x],["rearg",R]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",we="[object Date]",pe="[object DOMException]",_e="[object Error]",rt="[object Function]",Dt="[object GeneratorFunction]",ct="[object Map]",ft="[object Number]",rn="[object Null]",Mt="[object Object]",Vt="[object Promise]",jr="[object Proxy]",wn="[object RegExp]",Qt="[object Set]",De="[object String]",We="[object Symbol]",Zt="[object Undefined]",He="[object WeakMap]",ce="[object WeakSet]",Ae="[object ArrayBuffer]",Ee="[object DataView]",je="[object Float32Array]",qe="[object Float64Array]",ut="[object Int8Array]",ht="[object Int16Array]",ot="[object Int32Array]",st="[object Uint8Array]",et="[object Uint8ClampedArray]",Pt="[object Uint16Array]",Nn="[object Uint32Array]",ii=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bs=/&(?:amp|lt|gt|quot|#39);/g,_l=/[&<>"']/g,Fh=RegExp(Bs.source),Wh=RegExp(_l.source),Ph=/<%-([\s\S]+?)%>/g,Hh=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$n=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/[\\^$.*+?()[\]{}|]/g,Ai=RegExp(Vr.source),Fn=/^\s+/,Ci=/\s/,Ti=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Sl=/,? & /,zh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bh=/[()=,{}\[\]\/\s]/,si=/\\(\\)?/g,jh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ei=/\w*$/,$l=/^[-+]0x[0-9a-f]+$/i,qr=/^0b[01]+$/i,vn=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,hn=/^(?:0|[1-9]\d*)$/,Ko=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,co=/['\n\r\u2028\u2029\\]/g,uo="\\ud800-\\udfff",js="\\u0300-\\u036f",Qo="\\ufe20-\\ufe2f",Ri="\\u20d0-\\u20ff",Zo=js+Qo+Ri,Jo="\\u2700-\\u27bf",Xo="a-z\\xdf-\\xf6\\xf8-\\xff",Us="\\xac\\xb1\\xd7\\xf7",Vs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qs="\\u2000-\\u206f",Gs=" \\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",vr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ys="\\ufe0e\\ufe0f",Ks=Us+Vs+qs+Gs,ho="['’]",Al="["+uo+"]",Cl="["+Ks+"]",es="["+Zo+"]",Tl="\\d+",El="["+Jo+"]",Qs="["+Xo+"]",Rl="[^"+uo+Ks+Tl+Jo+Xo+vr+"]",ts="\\ud83c[\\udffb-\\udfff]",Zs="(?:"+es+"|"+ts+")",fo="[^"+uo+"]",Mi="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",Gr="["+vr+"]",Ml="\\u200d",Ll="(?:"+Qs+"|"+Rl+")",Uh="(?:"+Gr+"|"+Rl+")",ai="(?:"+ho+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+ho+"(?:D|LL|M|RE|S|T|VE))?",ns=Zs+"?",Li="["+Ys+"]?",Vh="(?:"+Ml+"(?:"+[fo,Mi,Js].join("|")+")"+Li+ns+")*",Ii="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xs=Li+ns+Vh,ea="(?:"+[El,Mi,Js].join("|")+")"+Xs,ta="(?:"+[fo+es+"?",es,Mi,Js,Al].join("|")+")",na=RegExp(ho,"g"),Oi=RegExp(es,"g"),Yr=RegExp(ts+"(?="+ts+")|"+ta+Xs,"g"),Il=RegExp([Gr+"?"+Qs+"+"+ai+"(?="+[Cl,Gr,"$"].join("|")+")",Uh+"+"+po+"(?="+[Cl,Gr+Ll,"$"].join("|")+")",Gr+"?"+Ll+"+"+ai,Gr+"+"+po,qh,Ii,Tl,ea].join("|"),"g"),Ol=RegExp("["+Ml+uo+Zo+Ys+"]"),Di=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ni=["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"],Dl=-1,Et={};Et[je]=Et[qe]=Et[ut]=Et[ht]=Et[ot]=Et[st]=Et[et]=Et[Pt]=Et[Nn]=!0,Et[re]=Et[J]=Et[Ae]=Et[me]=Et[Ee]=Et[we]=Et[_e]=Et[rt]=Et[ct]=Et[ft]=Et[Mt]=Et[wn]=Et[Qt]=Et[De]=Et[He]=!1;var Fe={};Fe[re]=Fe[J]=Fe[Ae]=Fe[Ee]=Fe[me]=Fe[we]=Fe[je]=Fe[qe]=Fe[ut]=Fe[ht]=Fe[ot]=Fe[ct]=Fe[ft]=Fe[Mt]=Fe[wn]=Fe[Qt]=Fe[De]=Fe[We]=Fe[st]=Fe[et]=Fe[Pt]=Fe[Nn]=!0,Fe[_e]=Fe[rt]=Fe[He]=!1;var Nt={À:"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"},Kr={"&":"&","<":"<",">":">",'"':""","'":"'"},bn={"&":"&","<":"<",">":">",""":'"',"'":"'"},dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,Lt=parseInt,li=typeof ki=="object"&&ki&&ki.Object===Object&&ki,rs=typeof self=="object"&&self&&self.Object===Object&&self,xn=li||rs||Function("return this")(),br=t&&!t.nodeType&&t,An=br&&!0&&n&&!n.nodeType&&n,Nl=An&&An.exports===br,ra=Nl&&li.process,Jn=function(){try{var ne=An&&An.require&&An.require("util").types;return ne||ra&&ra.binding&&ra.binding("util")}catch{}}(),Fl=Jn&&Jn.isArrayBuffer,xr=Jn&&Jn.isDate,Ir=Jn&&Jn.isMap,Qr=Jn&&Jn.isRegExp,ci=Jn&&Jn.isSet,Wl=Jn&&Jn.isTypedArray;function zt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function Gh(ne,le,se,ke){for(var Oe=-1,Ye=ne==null?0:ne.length;++Oe<Ye;){var St=ne[Oe];le(ke,St,se(St),ne)}return ke}function Un(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke&&le(ne[se],se,ne)!==!1;);return ne}function Pl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Fi(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke;)if(!le(ne[se],se,ne))return!1;return!0}function Xn(ne,le){for(var se=-1,ke=ne==null?0:ne.length,Oe=0,Ye=[];++se<ke;){var St=ne[se];le(St,se,ne)&&(Ye[Oe++]=St)}return Ye}function is(ne,le){var se=ne==null?0:ne.length;return!!se&&ui(ne,le,0)>-1}function go(ne,le,se){for(var ke=-1,Oe=ne==null?0:ne.length;++ke<Oe;)if(se(le,ne[ke]))return!0;return!1}function Ft(ne,le){for(var se=-1,ke=ne==null?0:ne.length,Oe=Array(ke);++se<ke;)Oe[se]=le(ne[se],se,ne);return Oe}function Pn(ne,le){for(var se=-1,ke=le.length,Oe=ne.length;++se<ke;)ne[Oe+se]=le[se];return ne}function _r(ne,le,se,ke){var Oe=-1,Ye=ne==null?0:ne.length;for(ke&&Ye&&(se=ne[++Oe]);++Oe<Ye;)se=le(se,ne[Oe],Oe,ne);return se}function mo(ne,le,se,ke){var Oe=ne==null?0:ne.length;for(ke&&Oe&&(se=ne[--Oe]);Oe--;)se=le(se,ne[Oe],Oe,ne);return se}function os(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke;)if(le(ne[se],se,ne))return!0;return!1}var ia=ca("length");function oa(ne){return ne.split("")}function ss(ne){return ne.match(zh)||[]}function sa(ne,le,se){var ke;return se(ne,function(Oe,Ye,St){if(le(Oe,Ye,St))return ke=Ye,!1}),ke}function yo(ne,le,se,ke){for(var Oe=ne.length,Ye=se+(ke?1:-1);ke?Ye--:++Ye<Oe;)if(le(ne[Ye],Ye,ne))return Ye;return-1}function ui(ne,le,se){return le===le?Ge(ne,le,se):yo(ne,aa,se)}function Hl(ne,le,se,ke){for(var Oe=se-1,Ye=ne.length;++Oe<Ye;)if(ke(ne[Oe],le))return Oe;return-1}function aa(ne){return ne!==ne}function la(ne,le){var se=ne==null?0:ne.length;return se?Pi(ne,le)/se:V}function ca(ne){return function(le){return le==null?e:le[ne]}}function as(ne){return function(le){return ne==null?e:ne[le]}}function ua(ne,le,se,ke,Oe){return Oe(ne,function(Ye,St,Qe){se=ke?(ke=!1,Ye):le(se,Ye,St,Qe)}),se}function Wi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Pi(ne,le){for(var se,ke=-1,Oe=ne.length;++ke<Oe;){var Ye=le(ne[ke]);Ye!==e&&(se=se===e?Ye:se+Ye)}return se}function Jt(ne,le){for(var se=-1,ke=Array(ne);++se<ne;)ke[se]=le(se);return ke}function zl(ne,le){return Ft(le,function(se){return[se,ne[se]]})}function qt(ne){return ne&&ne.slice(0,Ke(ne)+1).replace(Fn,"")}function Hn(ne){return function(le){return ne(le)}}function wo(ne,le){return Ft(le,function(se){return ne[se]})}function Or(ne,le){return ne.has(le)}function Bl(ne,le){for(var se=-1,ke=ne.length;++se<ke&&ui(le,ne[se],0)>-1;);return se}function jl(ne,le){for(var se=ne.length;se--&&ui(le,ne[se],0)>-1;);return se}function ha(ne,le){for(var se=ne.length,ke=0;se--;)ne[se]===le&&++ke;return ke}var W=as(Nt),z=as(Kr);function Y(ne){return"\\"+dn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Ol.test(ne)}function oe(ne){return Di.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function ve(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke,Oe){se[++le]=[Oe,ke]}),se}function be(ne,le){return function(se){return ne(le(se))}}function xe(ne,le){for(var se=-1,ke=ne.length,Oe=0,Ye=[];++se<ke;){var St=ne[se];(St===le||St===a)&&(ne[se]=a,Ye[Oe++]=se)}return Ye}function Se(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke){se[++le]=ke}),se}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke){se[++le]=[ke,ke]}),se}function Ge(ne,le,se){for(var ke=se-1,Oe=ne.length;++ke<Oe;)if(ne[ke]===le)return ke;return-1}function Ct(ne,le,se){for(var ke=se+1;ke--;)if(ne[ke]===le)return ke;return ke}function tt(ne){return te(ne)?kt(ne):ia(ne)}function Ue(ne){return te(ne)?Gt(ne):oa(ne)}function Ke(ne){for(var le=ne.length;le--&&Ci.test(ne.charAt(le)););return le}var Re=as(bn);function kt(ne){for(var le=Yr.lastIndex=0;Yr.test(ne);)++le;return le}function Gt(ne){return ne.match(Yr)||[]}function Bt(ne){return ne.match(Il)||[]}var It=function ne(le){le=le==null?xn:Ot.defaults(xn.Object(),le,Ot.pick(xn,Ni));var se=le.Array,ke=le.Date,Oe=le.Error,Ye=le.Function,St=le.Math,Qe=le.Object,_n=le.RegExp,Vn=le.String,kn=le.TypeError,ur=se.prototype,er=Ye.prototype,ls=Qe.prototype,Ul=le["__core-js_shared__"],Vl=er.toString,Tt=ls.hasOwnProperty,hT=0,ew=function(){var i=/[^.]+$/.exec(Ul&&Ul.keys&&Ul.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ql=ls.toString,dT=Vl.call(Qe),fT=xn._,pT=_n("^"+Vl.call(Tt).replace(Vr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gl=Nl?le.Buffer:e,Hi=le.Symbol,Yl=le.Uint8Array,tw=Gl?Gl.allocUnsafe:e,Kl=be(Qe.getPrototypeOf,Qe),nw=Qe.create,rw=ls.propertyIsEnumerable,Ql=ur.splice,iw=Hi?Hi.isConcatSpreadable:e,da=Hi?Hi.iterator:e,vo=Hi?Hi.toStringTag:e,Zl=function(){try{var i=So(Qe,"defineProperty");return i({},"",{}),i}catch{}}(),gT=le.clearTimeout!==xn.clearTimeout&&le.clearTimeout,mT=ke&&ke.now!==xn.Date.now&&ke.now,yT=le.setTimeout!==xn.setTimeout&&le.setTimeout,Jl=St.ceil,Xl=St.floor,Yh=Qe.getOwnPropertySymbols,wT=Gl?Gl.isBuffer:e,ow=le.isFinite,vT=ur.join,bT=be(Qe.keys,Qe),Sn=St.max,zn=St.min,xT=ke.now,_T=le.parseInt,sw=St.random,kT=ur.reverse,Kh=So(le,"DataView"),fa=So(le,"Map"),Qh=So(le,"Promise"),cs=So(le,"Set"),pa=So(le,"WeakMap"),ga=So(Qe,"create"),ec=pa&&new pa,us={},ST=$o(Kh),$T=$o(fa),AT=$o(Qh),CT=$o(cs),TT=$o(pa),tc=Hi?Hi.prototype:e,ma=tc?tc.valueOf:e,aw=tc?tc.toString:e;function B(i){if(Xt(i)&&!Ze(i)&&!(i instanceof mt)){if(i instanceof kr)return i;if(Tt.call(i,"__wrapped__"))return lv(i)}return new kr(i)}var hs=function(){function i(){}return function(d){if(!Yt(d))return{};if(nw)return nw(d);i.prototype=d;var A=new i;return i.prototype=e,A}}();function nc(){}function kr(i,d){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}B.templateSettings={escape:Ph,evaluate:Hh,interpolate:Ne,variable:"",imports:{_:B}},B.prototype=nc.prototype,B.prototype.constructor=B,kr.prototype=hs(nc.prototype),kr.prototype.constructor=kr;function mt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function ET(){var i=new mt(this.__wrapped__);return i.__actions__=tr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=tr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=tr(this.__views__),i}function RT(){if(this.__filtered__){var i=new mt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function MT(){var i=this.__wrapped__.value(),d=this.__dir__,A=Ze(i),D=d<0,P=A?i.length:0,U=jE(0,P,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,ge=this.__iteratees__,ye=ge.length,$e=0,Me=zn(ie,this.__takeCount__);if(!A||!D&&P==ie&&Me==ie)return Mw(i,this.__actions__);var ze=[];e:for(;ie--&&$e<Me;){fe+=d;for(var it=-1,Be=i[fe];++it<ye;){var pt=ge[it],yt=pt.iteratee,fr=pt.type,Yn=yt(Be);if(fr==L)Be=Yn;else if(!Yn){if(fr==$)continue e;break e}}ze[$e++]=Be}return ze}mt.prototype=hs(nc.prototype),mt.prototype.constructor=mt;function bo(i){var d=-1,A=i==null?0:i.length;for(this.clear();++d<A;){var D=i[d];this.set(D[0],D[1])}}function LT(){this.__data__=ga?ga(null):{},this.size=0}function IT(i){var d=this.has(i)&&delete this.__data__[i];return this.size-=d?1:0,d}function OT(i){var d=this.__data__;if(ga){var A=d[i];return A===h?e:A}return Tt.call(d,i)?d[i]:e}function DT(i){var d=this.__data__;return ga?d[i]!==e:Tt.call(d,i)}function NT(i,d){var A=this.__data__;return this.size+=this.has(i)?0:1,A[i]=ga&&d===e?h:d,this}bo.prototype.clear=LT,bo.prototype.delete=IT,bo.prototype.get=OT,bo.prototype.has=DT,bo.prototype.set=NT;function hi(i){var d=-1,A=i==null?0:i.length;for(this.clear();++d<A;){var D=i[d];this.set(D[0],D[1])}}function FT(){this.__data__=[],this.size=0}function WT(i){var d=this.__data__,A=rc(d,i);if(A<0)return!1;var D=d.length-1;return A==D?d.pop():Ql.call(d,A,1),--this.size,!0}function PT(i){var d=this.__data__,A=rc(d,i);return A<0?e:d[A][1]}function HT(i){return rc(this.__data__,i)>-1}function zT(i,d){var A=this.__data__,D=rc(A,i);return D<0?(++this.size,A.push([i,d])):A[D][1]=d,this}hi.prototype.clear=FT,hi.prototype.delete=WT,hi.prototype.get=PT,hi.prototype.has=HT,hi.prototype.set=zT;function di(i){var d=-1,A=i==null?0:i.length;for(this.clear();++d<A;){var D=i[d];this.set(D[0],D[1])}}function BT(){this.size=0,this.__data__={hash:new bo,map:new(fa||hi),string:new bo}}function jT(i){var d=gc(this,i).delete(i);return this.size-=d?1:0,d}function UT(i){return gc(this,i).get(i)}function VT(i){return gc(this,i).has(i)}function qT(i,d){var A=gc(this,i),D=A.size;return A.set(i,d),this.size+=A.size==D?0:1,this}di.prototype.clear=BT,di.prototype.delete=jT,di.prototype.get=UT,di.prototype.has=VT,di.prototype.set=qT;function xo(i){var d=-1,A=i==null?0:i.length;for(this.__data__=new di;++d<A;)this.add(i[d])}function GT(i){return this.__data__.set(i,h),this}function YT(i){return this.__data__.has(i)}xo.prototype.add=xo.prototype.push=GT,xo.prototype.has=YT;function Dr(i){var d=this.__data__=new hi(i);this.size=d.size}function KT(){this.__data__=new hi,this.size=0}function QT(i){var d=this.__data__,A=d.delete(i);return this.size=d.size,A}function ZT(i){return this.__data__.get(i)}function JT(i){return this.__data__.has(i)}function XT(i,d){var A=this.__data__;if(A instanceof hi){var D=A.__data__;if(!fa||D.length<f-1)return D.push([i,d]),this.size=++A.size,this;A=this.__data__=new di(D)}return A.set(i,d),this.size=A.size,this}Dr.prototype.clear=KT,Dr.prototype.delete=QT,Dr.prototype.get=ZT,Dr.prototype.has=JT,Dr.prototype.set=XT;function lw(i,d){var A=Ze(i),D=!A&&Ao(i),P=!A&&!D&&Vi(i),U=!A&&!D&&!P&&gs(i),Q=A||D||P||U,ee=Q?Jt(i.length,Vn):[],ie=ee.length;for(var fe in i)(d||Tt.call(i,fe))&&!(Q&&(fe=="length"||P&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||mi(fe,ie)))&&ee.push(fe);return ee}function cw(i){var d=i.length;return d?i[ad(0,d-1)]:e}function eE(i,d){return mc(tr(i),_o(d,0,i.length))}function tE(i){return mc(tr(i))}function Zh(i,d,A){(A!==e&&!Nr(i[d],A)||A===e&&!(d in i))&&fi(i,d,A)}function ya(i,d,A){var D=i[d];(!(Tt.call(i,d)&&Nr(D,A))||A===e&&!(d in i))&&fi(i,d,A)}function rc(i,d){for(var A=i.length;A--;)if(Nr(i[A][0],d))return A;return-1}function nE(i,d,A,D){return zi(i,function(P,U,Q){d(D,P,A(P),Q)}),D}function uw(i,d){return i&&Jr(d,Cn(d),i)}function rE(i,d){return i&&Jr(d,rr(d),i)}function fi(i,d,A){d=="__proto__"&&Zl?Zl(i,d,{configurable:!0,enumerable:!0,value:A,writable:!0}):i[d]=A}function Jh(i,d){for(var A=-1,D=d.length,P=se(D),U=i==null;++A<D;)P[A]=U?e:Ld(i,d[A]);return P}function _o(i,d,A){return i===i&&(A!==e&&(i=i<=A?i:A),d!==e&&(i=i>=d?i:d)),i}function Sr(i,d,A,D,P,U){var Q,ee=d&c,ie=d&s,fe=d&l;if(A&&(Q=P?A(i,D,P,U):A(i)),Q!==e)return Q;if(!Yt(i))return i;var ge=Ze(i);if(ge){if(Q=VE(i),!ee)return tr(i,Q)}else{var ye=Bn(i),$e=ye==rt||ye==Dt;if(Vi(i))return Ow(i,ee);if(ye==Mt||ye==re||$e&&!P){if(Q=ie||$e?{}:Xw(i),!ee)return ie?OE(i,rE(Q,i)):IE(i,uw(Q,i))}else{if(!Fe[ye])return P?i:{};Q=qE(i,ye,ee)}}U||(U=new Dr);var Me=U.get(i);if(Me)return Me;U.set(i,Q),Tv(i)?i.forEach(function(Be){Q.add(Sr(Be,d,A,Be,i,U))}):Av(i)&&i.forEach(function(Be,pt){Q.set(pt,Sr(Be,d,A,pt,i,U))});var ze=fe?ie?wd:yd:ie?rr:Cn,it=ge?e:ze(i);return Un(it||i,function(Be,pt){it&&(pt=Be,Be=i[pt]),ya(Q,pt,Sr(Be,d,A,pt,i,U))}),Q}function iE(i){var d=Cn(i);return function(A){return hw(A,i,d)}}function hw(i,d,A){var D=A.length;if(i==null)return!D;for(i=Qe(i);D--;){var P=A[D],U=d[P],Q=i[P];if(Q===e&&!(P in i)||!U(Q))return!1}return!0}function dw(i,d,A){if(typeof i!="function")throw new kn(y);return Sa(function(){i.apply(e,A)},d)}function wa(i,d,A,D){var P=-1,U=is,Q=!0,ee=i.length,ie=[],fe=d.length;if(!ee)return ie;A&&(d=Ft(d,Hn(A))),D?(U=go,Q=!1):d.length>=f&&(U=Or,Q=!1,d=new xo(d));e:for(;++P<ee;){var ge=i[P],ye=A==null?ge:A(ge);if(ge=D||ge!==0?ge:0,Q&&ye===ye){for(var $e=fe;$e--;)if(d[$e]===ye)continue e;ie.push(ge)}else U(d,ye,D)||ie.push(ge)}return ie}var zi=Pw(Zr),fw=Pw(ed,!0);function oE(i,d){var A=!0;return zi(i,function(D,P,U){return A=!!d(D,P,U),A}),A}function ic(i,d,A){for(var D=-1,P=i.length;++D<P;){var U=i[D],Q=d(U);if(Q!=null&&(ee===e?Q===Q&&!dr(Q):A(Q,ee)))var ee=Q,ie=U}return ie}function sE(i,d,A,D){var P=i.length;for(A=nt(A),A<0&&(A=-A>P?0:P+A),D=D===e||D>P?P:nt(D),D<0&&(D+=P),D=A>D?0:Rv(D);A<D;)i[A++]=d;return i}function pw(i,d){var A=[];return zi(i,function(D,P,U){d(D,P,U)&&A.push(D)}),A}function En(i,d,A,D,P){var U=-1,Q=i.length;for(A||(A=YE),P||(P=[]);++U<Q;){var ee=i[U];d>0&&A(ee)?d>1?En(ee,d-1,A,D,P):Pn(P,ee):D||(P[P.length]=ee)}return P}var Xh=Hw(),gw=Hw(!0);function Zr(i,d){return i&&Xh(i,d,Cn)}function ed(i,d){return i&&gw(i,d,Cn)}function oc(i,d){return Xn(d,function(A){return yi(i[A])})}function ko(i,d){d=ji(d,i);for(var A=0,D=d.length;i!=null&&A<D;)i=i[Xr(d[A++])];return A&&A==D?i:e}function mw(i,d,A){var D=d(i);return Ze(i)?D:Pn(D,A(i))}function qn(i){return i==null?i===e?Zt:rn:vo&&vo in Qe(i)?BE(i):tR(i)}function td(i,d){return i>d}function aE(i,d){return i!=null&&Tt.call(i,d)}function lE(i,d){return i!=null&&d in Qe(i)}function cE(i,d,A){return i>=zn(d,A)&&i<Sn(d,A)}function nd(i,d,A){for(var D=A?go:is,P=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var ge=i[Q];Q&&d&&(ge=Ft(ge,Hn(d))),ie=zn(ge.length,ie),ee[Q]=!A&&(d||P>=120&&ge.length>=120)?new xo(Q&&ge):e}ge=i[0];var ye=-1,$e=ee[0];e:for(;++ye<P&&fe.length<ie;){var Me=ge[ye],ze=d?d(Me):Me;if(Me=A||Me!==0?Me:0,!($e?Or($e,ze):D(fe,ze,A))){for(Q=U;--Q;){var it=ee[Q];if(!(it?Or(it,ze):D(i[Q],ze,A)))continue e}$e&&$e.push(ze),fe.push(Me)}}return fe}function uE(i,d,A,D){return Zr(i,function(P,U,Q){d(D,A(P),U,Q)}),D}function va(i,d,A){d=ji(d,i),i=rv(i,d);var D=i==null?i:i[Xr(Ar(d))];return D==null?e:zt(D,i,A)}function yw(i){return Xt(i)&&qn(i)==re}function hE(i){return Xt(i)&&qn(i)==Ae}function dE(i){return Xt(i)&&qn(i)==we}function ba(i,d,A,D,P){return i===d?!0:i==null||d==null||!Xt(i)&&!Xt(d)?i!==i&&d!==d:fE(i,d,A,D,ba,P)}function fE(i,d,A,D,P,U){var Q=Ze(i),ee=Ze(d),ie=Q?J:Bn(i),fe=ee?J:Bn(d);ie=ie==re?Mt:ie,fe=fe==re?Mt:fe;var ge=ie==Mt,ye=fe==Mt,$e=ie==fe;if($e&&Vi(i)){if(!Vi(d))return!1;Q=!0,ge=!1}if($e&&!ge)return U||(U=new Dr),Q||gs(i)?Qw(i,d,A,D,P,U):HE(i,d,ie,A,D,P,U);if(!(A&o)){var Me=ge&&Tt.call(i,"__wrapped__"),ze=ye&&Tt.call(d,"__wrapped__");if(Me||ze){var it=Me?i.value():i,Be=ze?d.value():d;return U||(U=new Dr),P(it,Be,A,D,U)}}return $e?(U||(U=new Dr),zE(i,d,A,D,P,U)):!1}function pE(i){return Xt(i)&&Bn(i)==ct}function rd(i,d,A,D){var P=A.length,U=P,Q=!D;if(i==null)return!U;for(i=Qe(i);P--;){var ee=A[P];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++P<U;){ee=A[P];var ie=ee[0],fe=i[ie],ge=ee[1];if(Q&&ee[2]){if(fe===e&&!(ie in i))return!1}else{var ye=new Dr;if(D)var $e=D(fe,ge,ie,i,d,ye);if(!($e===e?ba(ge,fe,o|u,D,ye):$e))return!1}}return!0}function ww(i){if(!Yt(i)||QE(i))return!1;var d=yi(i)?pT:vn;return d.test($o(i))}function gE(i){return Xt(i)&&qn(i)==wn}function mE(i){return Xt(i)&&Bn(i)==Qt}function yE(i){return Xt(i)&&_c(i.length)&&!!Et[qn(i)]}function vw(i){return typeof i=="function"?i:i==null?ir:typeof i=="object"?Ze(i)?_w(i[0],i[1]):xw(i):zv(i)}function id(i){if(!ka(i))return bT(i);var d=[];for(var A in Qe(i))Tt.call(i,A)&&A!="constructor"&&d.push(A);return d}function wE(i){if(!Yt(i))return eR(i);var d=ka(i),A=[];for(var D in i)D=="constructor"&&(d||!Tt.call(i,D))||A.push(D);return A}function od(i,d){return i<d}function bw(i,d){var A=-1,D=nr(i)?se(i.length):[];return zi(i,function(P,U,Q){D[++A]=d(P,U,Q)}),D}function xw(i){var d=bd(i);return d.length==1&&d[0][2]?tv(d[0][0],d[0][1]):function(A){return A===i||rd(A,i,d)}}function _w(i,d){return _d(i)&&ev(d)?tv(Xr(i),d):function(A){var D=Ld(A,i);return D===e&&D===d?Id(A,i):ba(d,D,o|u)}}function sc(i,d,A,D,P){i!==d&&Xh(d,function(U,Q){if(P||(P=new Dr),Yt(U))vE(i,d,Q,A,sc,D,P);else{var ee=D?D(Sd(i,Q),U,Q+"",i,d,P):e;ee===e&&(ee=U),Zh(i,Q,ee)}},rr)}function vE(i,d,A,D,P,U,Q){var ee=Sd(i,A),ie=Sd(d,A),fe=Q.get(ie);if(fe){Zh(i,A,fe);return}var ge=U?U(ee,ie,A+"",i,d,Q):e,ye=ge===e;if(ye){var $e=Ze(ie),Me=!$e&&Vi(ie),ze=!$e&&!Me&&gs(ie);ge=ie,$e||Me||ze?Ze(ee)?ge=ee:on(ee)?ge=tr(ee):Me?(ye=!1,ge=Ow(ie,!0)):ze?(ye=!1,ge=Dw(ie,!0)):ge=[]:$a(ie)||Ao(ie)?(ge=ee,Ao(ee)?ge=Mv(ee):(!Yt(ee)||yi(ee))&&(ge=Xw(ie))):ye=!1}ye&&(Q.set(ie,ge),P(ge,ie,D,U,Q),Q.delete(ie)),Zh(i,A,ge)}function kw(i,d){var A=i.length;if(A)return d+=d<0?A:0,mi(d,A)?i[d]:e}function Sw(i,d,A){d.length?d=Ft(d,function(U){return Ze(U)?function(Q){return ko(Q,U.length===1?U[0]:U)}:U}):d=[ir];var D=-1;d=Ft(d,Hn(Pe()));var P=bw(i,function(U,Q,ee){var ie=Ft(d,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return Wi(P,function(U,Q){return LE(U,Q,A)})}function bE(i,d){return $w(i,d,function(A,D){return Id(i,D)})}function $w(i,d,A){for(var D=-1,P=d.length,U={};++D<P;){var Q=d[D],ee=ko(i,Q);A(ee,Q)&&xa(U,ji(Q,i),ee)}return U}function xE(i){return function(d){return ko(d,i)}}function sd(i,d,A,D){var P=D?Hl:ui,U=-1,Q=d.length,ee=i;for(i===d&&(d=tr(d)),A&&(ee=Ft(i,Hn(A)));++U<Q;)for(var ie=0,fe=d[U],ge=A?A(fe):fe;(ie=P(ee,ge,ie,D))>-1;)ee!==i&&Ql.call(ee,ie,1),Ql.call(i,ie,1);return i}function Aw(i,d){for(var A=i?d.length:0,D=A-1;A--;){var P=d[A];if(A==D||P!==U){var U=P;mi(P)?Ql.call(i,P,1):ud(i,P)}}return i}function ad(i,d){return i+Xl(sw()*(d-i+1))}function _E(i,d,A,D){for(var P=-1,U=Sn(Jl((d-i)/(A||1)),0),Q=se(U);U--;)Q[D?U:++P]=i,i+=A;return Q}function ld(i,d){var A="";if(!i||d<1||d>H)return A;do d%2&&(A+=i),d=Xl(d/2),d&&(i+=i);while(d);return A}function at(i,d){return $d(nv(i,d,ir),i+"")}function kE(i){return cw(ms(i))}function SE(i,d){var A=ms(i);return mc(A,_o(d,0,A.length))}function xa(i,d,A,D){if(!Yt(i))return i;d=ji(d,i);for(var P=-1,U=d.length,Q=U-1,ee=i;ee!=null&&++P<U;){var ie=Xr(d[P]),fe=A;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(P!=Q){var ge=ee[ie];fe=D?D(ge,ie,ee):e,fe===e&&(fe=Yt(ge)?ge:mi(d[P+1])?[]:{})}ya(ee,ie,fe),ee=ee[ie]}return i}var Cw=ec?function(i,d){return ec.set(i,d),i}:ir,$E=Zl?function(i,d){return Zl(i,"toString",{configurable:!0,enumerable:!1,value:Dd(d),writable:!0})}:ir;function AE(i){return mc(ms(i))}function $r(i,d,A){var D=-1,P=i.length;d<0&&(d=-d>P?0:P+d),A=A>P?P:A,A<0&&(A+=P),P=d>A?0:A-d>>>0,d>>>=0;for(var U=se(P);++D<P;)U[D]=i[D+d];return U}function CE(i,d){var A;return zi(i,function(D,P,U){return A=d(D,P,U),!A}),!!A}function ac(i,d,A){var D=0,P=i==null?D:i.length;if(typeof d=="number"&&d===d&&P<=G){for(;D<P;){var U=D+P>>>1,Q=i[U];Q!==null&&!dr(Q)&&(A?Q<=d:Q<d)?D=U+1:P=U}return P}return cd(i,d,ir,A)}function cd(i,d,A,D){var P=0,U=i==null?0:i.length;if(U===0)return 0;d=A(d);for(var Q=d!==d,ee=d===null,ie=dr(d),fe=d===e;P<U;){var ge=Xl((P+U)/2),ye=A(i[ge]),$e=ye!==e,Me=ye===null,ze=ye===ye,it=dr(ye);if(Q)var Be=D||ze;else fe?Be=ze&&(D||$e):ee?Be=ze&&$e&&(D||!Me):ie?Be=ze&&$e&&!Me&&(D||!it):Me||it?Be=!1:Be=D?ye<=d:ye<d;Be?P=ge+1:U=ge}return zn(U,X)}function Tw(i,d){for(var A=-1,D=i.length,P=0,U=[];++A<D;){var Q=i[A],ee=d?d(Q):Q;if(!A||!Nr(ee,ie)){var ie=ee;U[P++]=Q===0?0:Q}}return U}function Ew(i){return typeof i=="number"?i:dr(i)?V:+i}function hr(i){if(typeof i=="string")return i;if(Ze(i))return Ft(i,hr)+"";if(dr(i))return aw?aw.call(i):"";var d=i+"";return d=="0"&&1/i==-1/0?"-0":d}function Bi(i,d,A){var D=-1,P=is,U=i.length,Q=!0,ee=[],ie=ee;if(A)Q=!1,P=go;else if(U>=f){var fe=d?null:WE(i);if(fe)return Se(fe);Q=!1,P=Or,ie=new xo}else ie=d?[]:ee;e:for(;++D<U;){var ge=i[D],ye=d?d(ge):ge;if(ge=A||ge!==0?ge:0,Q&&ye===ye){for(var $e=ie.length;$e--;)if(ie[$e]===ye)continue e;d&&ie.push(ye),ee.push(ge)}else P(ie,ye,A)||(ie!==ee&&ie.push(ye),ee.push(ge))}return ee}function ud(i,d){return d=ji(d,i),i=rv(i,d),i==null||delete i[Xr(Ar(d))]}function Rw(i,d,A,D){return xa(i,d,A(ko(i,d)),D)}function lc(i,d,A,D){for(var P=i.length,U=D?P:-1;(D?U--:++U<P)&&d(i[U],U,i););return A?$r(i,D?0:U,D?U+1:P):$r(i,D?U+1:0,D?P:U)}function Mw(i,d){var A=i;return A instanceof mt&&(A=A.value()),_r(d,function(D,P){return P.func.apply(P.thisArg,Pn([D],P.args))},A)}function hd(i,d,A){var D=i.length;if(D<2)return D?Bi(i[0]):[];for(var P=-1,U=se(D);++P<D;)for(var Q=i[P],ee=-1;++ee<D;)ee!=P&&(U[P]=wa(U[P]||Q,i[ee],d,A));return Bi(En(U,1),d,A)}function Lw(i,d,A){for(var D=-1,P=i.length,U=d.length,Q={};++D<P;){var ee=D<U?d[D]:e;A(Q,i[D],ee)}return Q}function dd(i){return on(i)?i:[]}function fd(i){return typeof i=="function"?i:ir}function ji(i,d){return Ze(i)?i:_d(i,d)?[i]:av($t(i))}var TE=at;function Ui(i,d,A){var D=i.length;return A=A===e?D:A,!d&&A>=D?i:$r(i,d,A)}var Iw=gT||function(i){return xn.clearTimeout(i)};function Ow(i,d){if(d)return i.slice();var A=i.length,D=tw?tw(A):new i.constructor(A);return i.copy(D),D}function pd(i){var d=new i.constructor(i.byteLength);return new Yl(d).set(new Yl(i)),d}function EE(i,d){var A=d?pd(i.buffer):i.buffer;return new i.constructor(A,i.byteOffset,i.byteLength)}function RE(i){var d=new i.constructor(i.source,Ei.exec(i));return d.lastIndex=i.lastIndex,d}function ME(i){return ma?Qe(ma.call(i)):{}}function Dw(i,d){var A=d?pd(i.buffer):i.buffer;return new i.constructor(A,i.byteOffset,i.length)}function Nw(i,d){if(i!==d){var A=i!==e,D=i===null,P=i===i,U=dr(i),Q=d!==e,ee=d===null,ie=d===d,fe=dr(d);if(!ee&&!fe&&!U&&i>d||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!A&&ie||!P)return 1;if(!D&&!U&&!fe&&i<d||fe&&A&&P&&!D&&!U||ee&&A&&P||!Q&&P||!ie)return-1}return 0}function LE(i,d,A){for(var D=-1,P=i.criteria,U=d.criteria,Q=P.length,ee=A.length;++D<Q;){var ie=Nw(P[D],U[D]);if(ie){if(D>=ee)return ie;var fe=A[D];return ie*(fe=="desc"?-1:1)}}return i.index-d.index}function Fw(i,d,A,D){for(var P=-1,U=i.length,Q=A.length,ee=-1,ie=d.length,fe=Sn(U-Q,0),ge=se(ie+fe),ye=!D;++ee<ie;)ge[ee]=d[ee];for(;++P<Q;)(ye||P<U)&&(ge[A[P]]=i[P]);for(;fe--;)ge[ee++]=i[P++];return ge}function Ww(i,d,A,D){for(var P=-1,U=i.length,Q=-1,ee=A.length,ie=-1,fe=d.length,ge=Sn(U-ee,0),ye=se(ge+fe),$e=!D;++P<ge;)ye[P]=i[P];for(var Me=P;++ie<fe;)ye[Me+ie]=d[ie];for(;++Q<ee;)($e||P<U)&&(ye[Me+A[Q]]=i[P++]);return ye}function tr(i,d){var A=-1,D=i.length;for(d||(d=se(D));++A<D;)d[A]=i[A];return d}function Jr(i,d,A,D){var P=!A;A||(A={});for(var U=-1,Q=d.length;++U<Q;){var ee=d[U],ie=D?D(A[ee],i[ee],ee,A,i):e;ie===e&&(ie=i[ee]),P?fi(A,ee,ie):ya(A,ee,ie)}return A}function IE(i,d){return Jr(i,xd(i),d)}function OE(i,d){return Jr(i,Zw(i),d)}function cc(i,d){return function(A,D){var P=Ze(A)?Gh:nE,U=d?d():{};return P(A,i,Pe(D,2),U)}}function ds(i){return at(function(d,A){var D=-1,P=A.length,U=P>1?A[P-1]:e,Q=P>2?A[2]:e;for(U=i.length>3&&typeof U=="function"?(P--,U):e,Q&&Gn(A[0],A[1],Q)&&(U=P<3?e:U,P=1),d=Qe(d);++D<P;){var ee=A[D];ee&&i(d,ee,D,U)}return d})}function Pw(i,d){return function(A,D){if(A==null)return A;if(!nr(A))return i(A,D);for(var P=A.length,U=d?P:-1,Q=Qe(A);(d?U--:++U<P)&&D(Q[U],U,Q)!==!1;);return A}}function Hw(i){return function(d,A,D){for(var P=-1,U=Qe(d),Q=D(d),ee=Q.length;ee--;){var ie=Q[i?ee:++P];if(A(U[ie],ie,U)===!1)break}return d}}function DE(i,d,A){var D=d&m,P=_a(i);function U(){var Q=this&&this!==xn&&this instanceof U?P:i;return Q.apply(D?A:this,arguments)}return U}function zw(i){return function(d){d=$t(d);var A=te(d)?Ue(d):e,D=A?A[0]:d.charAt(0),P=A?Ui(A,1).join(""):d.slice(1);return D[i]()+P}}function fs(i){return function(d){return _r(Pv(Wv(d).replace(na,"")),i,"")}}function _a(i){return function(){var d=arguments;switch(d.length){case 0:return new i;case 1:return new i(d[0]);case 2:return new i(d[0],d[1]);case 3:return new i(d[0],d[1],d[2]);case 4:return new i(d[0],d[1],d[2],d[3]);case 5:return new i(d[0],d[1],d[2],d[3],d[4]);case 6:return new i(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new i(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var A=hs(i.prototype),D=i.apply(A,d);return Yt(D)?D:A}}function NE(i,d,A){var D=_a(i);function P(){for(var U=arguments.length,Q=se(U),ee=U,ie=ps(P);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:xe(Q,ie);if(U-=fe.length,U<A)return qw(i,d,uc,P.placeholder,e,Q,fe,e,e,A-U);var ge=this&&this!==xn&&this instanceof P?D:i;return zt(ge,this,Q)}return P}function Bw(i){return function(d,A,D){var P=Qe(d);if(!nr(d)){var U=Pe(A,3);d=Cn(d),A=function(ee){return U(P[ee],ee,P)}}var Q=i(d,A,D);return Q>-1?P[U?d[Q]:Q]:e}}function jw(i){return gi(function(d){var A=d.length,D=A,P=kr.prototype.thru;for(i&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new kn(y);if(P&&!Q&&pc(U)=="wrapper")var Q=new kr([],!0)}for(D=Q?D:A;++D<A;){U=d[D];var ee=pc(U),ie=ee=="wrapper"?vd(U):e;ie&&kd(ie[0])&&ie[1]==(T|M|k|R)&&!ie[4].length&&ie[9]==1?Q=Q[pc(ie[0])].apply(Q,ie[3]):Q=U.length==1&&kd(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,ge=fe[0];if(Q&&fe.length==1&&Ze(ge))return Q.plant(ge).value();for(var ye=0,$e=A?d[ye].apply(this,fe):ge;++ye<A;)$e=d[ye].call(this,$e);return $e}})}function uc(i,d,A,D,P,U,Q,ee,ie,fe){var ge=d&T,ye=d&m,$e=d&w,Me=d&(M|C),ze=d&I,it=$e?e:_a(i);function Be(){for(var pt=arguments.length,yt=se(pt),fr=pt;fr--;)yt[fr]=arguments[fr];if(Me)var Yn=ps(Be),pr=ha(yt,Yn);if(D&&(yt=Fw(yt,D,P,Me)),U&&(yt=Ww(yt,U,Q,Me)),pt-=pr,Me&&pt<fe){var sn=xe(yt,Yn);return qw(i,d,uc,Be.placeholder,A,yt,sn,ee,ie,fe-pt)}var Fr=ye?A:this,vi=$e?Fr[i]:i;return pt=yt.length,ee?yt=nR(yt,ee):ze&&pt>1&&yt.reverse(),ge&&ie<pt&&(yt.length=ie),this&&this!==xn&&this instanceof Be&&(vi=it||_a(vi)),vi.apply(Fr,yt)}return Be}function Uw(i,d){return function(A,D){return uE(A,i,d(D),{})}}function hc(i,d){return function(A,D){var P;if(A===e&&D===e)return d;if(A!==e&&(P=A),D!==e){if(P===e)return D;typeof A=="string"||typeof D=="string"?(A=hr(A),D=hr(D)):(A=Ew(A),D=Ew(D)),P=i(A,D)}return P}}function gd(i){return gi(function(d){return d=Ft(d,Hn(Pe())),at(function(A){var D=this;return i(d,function(P){return zt(P,D,A)})})})}function dc(i,d){d=d===e?" ":hr(d);var A=d.length;if(A<2)return A?ld(d,i):d;var D=ld(d,Jl(i/tt(d)));return te(d)?Ui(Ue(D),0,i).join(""):D.slice(0,i)}function FE(i,d,A,D){var P=d&m,U=_a(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,ge=D.length,ye=se(ge+ie),$e=this&&this!==xn&&this instanceof Q?U:i;++fe<ge;)ye[fe]=D[fe];for(;ie--;)ye[fe++]=arguments[++ee];return zt($e,P?A:this,ye)}return Q}function Vw(i){return function(d,A,D){return D&&typeof D!="number"&&Gn(d,A,D)&&(A=D=e),d=wi(d),A===e?(A=d,d=0):A=wi(A),D=D===e?d<A?1:-1:wi(D),_E(d,A,D,i)}}function fc(i){return function(d,A){return typeof d=="string"&&typeof A=="string"||(d=Cr(d),A=Cr(A)),i(d,A)}}function qw(i,d,A,D,P,U,Q,ee,ie,fe){var ge=d&M,ye=ge?Q:e,$e=ge?e:Q,Me=ge?U:e,ze=ge?e:U;d|=ge?k:x,d&=~(ge?x:k),d&b||(d&=-4);var it=[i,d,P,Me,ye,ze,$e,ee,ie,fe],Be=A.apply(e,it);return kd(i)&&iv(Be,it),Be.placeholder=D,ov(Be,i,d)}function md(i){var d=St[i];return function(A,D){if(A=Cr(A),D=D==null?0:zn(nt(D),292),D&&ow(A)){var P=($t(A)+"e").split("e"),U=d(P[0]+"e"+(+P[1]+D));return P=($t(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-D))}return d(A)}}var WE=cs&&1/Se(new cs([,-0]))[1]==F?function(i){return new cs(i)}:Wd;function Gw(i){return function(d){var A=Bn(d);return A==ct?ve(d):A==Qt?Ce(d):zl(d,i(d))}}function pi(i,d,A,D,P,U,Q,ee){var ie=d&w;if(!ie&&typeof i!="function")throw new kn(y);var fe=D?D.length:0;if(fe||(d&=-97,D=P=e),Q=Q===e?Q:Sn(nt(Q),0),ee=ee===e?ee:nt(ee),fe-=P?P.length:0,d&x){var ge=D,ye=P;D=P=e}var $e=ie?e:vd(i),Me=[i,d,A,D,P,ge,ye,U,Q,ee];if($e&&XE(Me,$e),i=Me[0],d=Me[1],A=Me[2],D=Me[3],P=Me[4],ee=Me[9]=Me[9]===e?ie?0:i.length:Sn(Me[9]-fe,0),!ee&&d&(M|C)&&(d&=-25),!d||d==m)var ze=DE(i,d,A);else d==M||d==C?ze=NE(i,d,ee):(d==k||d==(m|k))&&!P.length?ze=FE(i,d,A,D):ze=uc.apply(e,Me);var it=$e?Cw:iv;return ov(it(ze,Me),i,d)}function Yw(i,d,A,D){return i===e||Nr(i,ls[A])&&!Tt.call(D,A)?d:i}function Kw(i,d,A,D,P,U){return Yt(i)&&Yt(d)&&(U.set(d,i),sc(i,d,e,Kw,U),U.delete(d)),i}function PE(i){return $a(i)?e:i}function Qw(i,d,A,D,P,U){var Q=A&o,ee=i.length,ie=d.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),ge=U.get(d);if(fe&&ge)return fe==d&&ge==i;var ye=-1,$e=!0,Me=A&u?new xo:e;for(U.set(i,d),U.set(d,i);++ye<ee;){var ze=i[ye],it=d[ye];if(D)var Be=Q?D(it,ze,ye,d,i,U):D(ze,it,ye,i,d,U);if(Be!==e){if(Be)continue;$e=!1;break}if(Me){if(!os(d,function(pt,yt){if(!Or(Me,yt)&&(ze===pt||P(ze,pt,A,D,U)))return Me.push(yt)})){$e=!1;break}}else if(!(ze===it||P(ze,it,A,D,U))){$e=!1;break}}return U.delete(i),U.delete(d),$e}function HE(i,d,A,D,P,U,Q){switch(A){case Ee:if(i.byteLength!=d.byteLength||i.byteOffset!=d.byteOffset)return!1;i=i.buffer,d=d.buffer;case Ae:return!(i.byteLength!=d.byteLength||!U(new Yl(i),new Yl(d)));case me:case we:case ft:return Nr(+i,+d);case _e:return i.name==d.name&&i.message==d.message;case wn:case De:return i==d+"";case ct:var ee=ve;case Qt:var ie=D&o;if(ee||(ee=Se),i.size!=d.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==d;D|=u,Q.set(i,d);var ge=Qw(ee(i),ee(d),D,P,U,Q);return Q.delete(i),ge;case We:if(ma)return ma.call(i)==ma.call(d)}return!1}function zE(i,d,A,D,P,U){var Q=A&o,ee=yd(i),ie=ee.length,fe=yd(d),ge=fe.length;if(ie!=ge&&!Q)return!1;for(var ye=ie;ye--;){var $e=ee[ye];if(!(Q?$e in d:Tt.call(d,$e)))return!1}var Me=U.get(i),ze=U.get(d);if(Me&&ze)return Me==d&&ze==i;var it=!0;U.set(i,d),U.set(d,i);for(var Be=Q;++ye<ie;){$e=ee[ye];var pt=i[$e],yt=d[$e];if(D)var fr=Q?D(yt,pt,$e,d,i,U):D(pt,yt,$e,i,d,U);if(!(fr===e?pt===yt||P(pt,yt,A,D,U):fr)){it=!1;break}Be||(Be=$e=="constructor")}if(it&&!Be){var Yn=i.constructor,pr=d.constructor;Yn!=pr&&"constructor"in i&&"constructor"in d&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof pr=="function"&&pr instanceof pr)&&(it=!1)}return U.delete(i),U.delete(d),it}function gi(i){return $d(nv(i,e,hv),i+"")}function yd(i){return mw(i,Cn,xd)}function wd(i){return mw(i,rr,Zw)}var vd=ec?function(i){return ec.get(i)}:Wd;function pc(i){for(var d=i.name+"",A=us[d],D=Tt.call(us,d)?A.length:0;D--;){var P=A[D],U=P.func;if(U==null||U==i)return P.name}return d}function ps(i){var d=Tt.call(B,"placeholder")?B:i;return d.placeholder}function Pe(){var i=B.iteratee||Nd;return i=i===Nd?vw:i,arguments.length?i(arguments[0],arguments[1]):i}function gc(i,d){var A=i.__data__;return KE(d)?A[typeof d=="string"?"string":"hash"]:A.map}function bd(i){for(var d=Cn(i),A=d.length;A--;){var D=d[A],P=i[D];d[A]=[D,P,ev(P)]}return d}function So(i,d){var A=K(i,d);return ww(A)?A:e}function BE(i){var d=Tt.call(i,vo),A=i[vo];try{i[vo]=e;var D=!0}catch{}var P=ql.call(i);return D&&(d?i[vo]=A:delete i[vo]),P}var xd=Yh?function(i){return i==null?[]:(i=Qe(i),Xn(Yh(i),function(d){return rw.call(i,d)}))}:Pd,Zw=Yh?function(i){for(var d=[];i;)Pn(d,xd(i)),i=Kl(i);return d}:Pd,Bn=qn;(Kh&&Bn(new Kh(new ArrayBuffer(1)))!=Ee||fa&&Bn(new fa)!=ct||Qh&&Bn(Qh.resolve())!=Vt||cs&&Bn(new cs)!=Qt||pa&&Bn(new pa)!=He)&&(Bn=function(i){var d=qn(i),A=d==Mt?i.constructor:e,D=A?$o(A):"";if(D)switch(D){case ST:return Ee;case $T:return ct;case AT:return Vt;case CT:return Qt;case TT:return He}return d});function jE(i,d,A){for(var D=-1,P=A.length;++D<P;){var U=A[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":d-=Q;break;case"take":d=zn(d,i+Q);break;case"takeRight":i=Sn(i,d-Q);break}}return{start:i,end:d}}function UE(i){var d=i.match(kl);return d?d[1].split(Sl):[]}function Jw(i,d,A){d=ji(d,i);for(var D=-1,P=d.length,U=!1;++D<P;){var Q=Xr(d[D]);if(!(U=i!=null&&A(i,Q)))break;i=i[Q]}return U||++D!=P?U:(P=i==null?0:i.length,!!P&&_c(P)&&mi(Q,P)&&(Ze(i)||Ao(i)))}function VE(i){var d=i.length,A=new i.constructor(d);return d&&typeof i[0]=="string"&&Tt.call(i,"index")&&(A.index=i.index,A.input=i.input),A}function Xw(i){return typeof i.constructor=="function"&&!ka(i)?hs(Kl(i)):{}}function qE(i,d,A){var D=i.constructor;switch(d){case Ae:return pd(i);case me:case we:return new D(+i);case Ee:return EE(i,A);case je:case qe:case ut:case ht:case ot:case st:case et:case Pt:case Nn:return Dw(i,A);case ct:return new D;case ft:case De:return new D(i);case wn:return RE(i);case Qt:return new D;case We:return ME(i)}}function GE(i,d){var A=d.length;if(!A)return i;var D=A-1;return d[D]=(A>1?"& ":"")+d[D],d=d.join(A>2?", ":" "),i.replace(Ti,`{
|
1388
|
+
/* [wrapped with `+d+`] */
|
1389
|
+
`)}function YE(i){return Ze(i)||Ao(i)||!!(iw&&i&&i[iw])}function mi(i,d){var A=typeof i;return d=d??H,!!d&&(A=="number"||A!="symbol"&&hn.test(i))&&i>-1&&i%1==0&&i<d}function Gn(i,d,A){if(!Yt(A))return!1;var D=typeof d;return(D=="number"?nr(A)&&mi(d,A.length):D=="string"&&d in A)?Nr(A[d],i):!1}function _d(i,d){if(Ze(i))return!1;var A=typeof i;return A=="number"||A=="symbol"||A=="boolean"||i==null||dr(i)?!0:$n.test(i)||!oi.test(i)||d!=null&&i in Qe(d)}function KE(i){var d=typeof i;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?i!=="__proto__":i===null}function kd(i){var d=pc(i),A=B[d];if(typeof A!="function"||!(d in mt.prototype))return!1;if(i===A)return!0;var D=vd(A);return!!D&&i===D[0]}function QE(i){return!!ew&&ew in i}var ZE=Ul?yi:Hd;function ka(i){var d=i&&i.constructor,A=typeof d=="function"&&d.prototype||ls;return i===A}function ev(i){return i===i&&!Yt(i)}function tv(i,d){return function(A){return A==null?!1:A[i]===d&&(d!==e||i in Qe(A))}}function JE(i){var d=bc(i,function(D){return A.size===g&&A.clear(),D}),A=d.cache;return d}function XE(i,d){var A=i[1],D=d[1],P=A|D,U=P<(m|w|T),Q=D==T&&A==M||D==T&&A==R&&i[7].length<=d[8]||D==(T|R)&&d[7].length<=d[8]&&A==M;if(!(U||Q))return i;D&m&&(i[2]=d[2],P|=A&m?0:b);var ee=d[3];if(ee){var ie=i[3];i[3]=ie?Fw(ie,ee,d[4]):ee,i[4]=ie?xe(i[3],a):d[4]}return ee=d[5],ee&&(ie=i[5],i[5]=ie?Ww(ie,ee,d[6]):ee,i[6]=ie?xe(i[5],a):d[6]),ee=d[7],ee&&(i[7]=ee),D&T&&(i[8]=i[8]==null?d[8]:zn(i[8],d[8])),i[9]==null&&(i[9]=d[9]),i[0]=d[0],i[1]=P,i}function eR(i){var d=[];if(i!=null)for(var A in Qe(i))d.push(A);return d}function tR(i){return ql.call(i)}function nv(i,d,A){return d=Sn(d===e?i.length-1:d,0),function(){for(var D=arguments,P=-1,U=Sn(D.length-d,0),Q=se(U);++P<U;)Q[P]=D[d+P];P=-1;for(var ee=se(d+1);++P<d;)ee[P]=D[P];return ee[d]=A(Q),zt(i,this,ee)}}function rv(i,d){return d.length<2?i:ko(i,$r(d,0,-1))}function nR(i,d){for(var A=i.length,D=zn(d.length,A),P=tr(i);D--;){var U=d[D];i[D]=mi(U,A)?P[U]:e}return i}function Sd(i,d){if(!(d==="constructor"&&typeof i[d]=="function")&&d!="__proto__")return i[d]}var iv=sv(Cw),Sa=yT||function(i,d){return xn.setTimeout(i,d)},$d=sv($E);function ov(i,d,A){var D=d+"";return $d(i,GE(D,rR(UE(D),A)))}function sv(i){var d=0,A=0;return function(){var D=xT(),P=_-(D-A);if(A=D,P>0){if(++d>=S)return arguments[0]}else d=0;return i.apply(e,arguments)}}function mc(i,d){var A=-1,D=i.length,P=D-1;for(d=d===e?D:d;++A<d;){var U=ad(A,P),Q=i[U];i[U]=i[A],i[A]=Q}return i.length=d,i}var av=JE(function(i){var d=[];return i.charCodeAt(0)===46&&d.push(""),i.replace(Ur,function(A,D,P,U){d.push(P?U.replace(si,"$1"):D||A)}),d});function Xr(i){if(typeof i=="string"||dr(i))return i;var d=i+"";return d=="0"&&1/i==-1/0?"-0":d}function $o(i){if(i!=null){try{return Vl.call(i)}catch{}try{return i+""}catch{}}return""}function rR(i,d){return Un(Z,function(A){var D="_."+A[0];d&A[1]&&!is(i,D)&&i.push(D)}),i.sort()}function lv(i){if(i instanceof mt)return i.clone();var d=new kr(i.__wrapped__,i.__chain__);return d.__actions__=tr(i.__actions__),d.__index__=i.__index__,d.__values__=i.__values__,d}function iR(i,d,A){(A?Gn(i,d,A):d===e)?d=1:d=Sn(nt(d),0);var D=i==null?0:i.length;if(!D||d<1)return[];for(var P=0,U=0,Q=se(Jl(D/d));P<D;)Q[U++]=$r(i,P,P+=d);return Q}function oR(i){for(var d=-1,A=i==null?0:i.length,D=0,P=[];++d<A;){var U=i[d];U&&(P[D++]=U)}return P}function sR(){var i=arguments.length;if(!i)return[];for(var d=se(i-1),A=arguments[0],D=i;D--;)d[D-1]=arguments[D];return Pn(Ze(A)?tr(A):[A],En(d,1))}var aR=at(function(i,d){return on(i)?wa(i,En(d,1,on,!0)):[]}),lR=at(function(i,d){var A=Ar(d);return on(A)&&(A=e),on(i)?wa(i,En(d,1,on,!0),Pe(A,2)):[]}),cR=at(function(i,d){var A=Ar(d);return on(A)&&(A=e),on(i)?wa(i,En(d,1,on,!0),e,A):[]});function uR(i,d,A){var D=i==null?0:i.length;return D?(d=A||d===e?1:nt(d),$r(i,d<0?0:d,D)):[]}function hR(i,d,A){var D=i==null?0:i.length;return D?(d=A||d===e?1:nt(d),d=D-d,$r(i,0,d<0?0:d)):[]}function dR(i,d){return i&&i.length?lc(i,Pe(d,3),!0,!0):[]}function fR(i,d){return i&&i.length?lc(i,Pe(d,3),!0):[]}function pR(i,d,A,D){var P=i==null?0:i.length;return P?(A&&typeof A!="number"&&Gn(i,d,A)&&(A=0,D=P),sE(i,d,A,D)):[]}function cv(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=A==null?0:nt(A);return P<0&&(P=Sn(D+P,0)),yo(i,Pe(d,3),P)}function uv(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=D-1;return A!==e&&(P=nt(A),P=A<0?Sn(D+P,0):zn(P,D-1)),yo(i,Pe(d,3),P,!0)}function hv(i){var d=i==null?0:i.length;return d?En(i,1):[]}function gR(i){var d=i==null?0:i.length;return d?En(i,F):[]}function mR(i,d){var A=i==null?0:i.length;return A?(d=d===e?1:nt(d),En(i,d)):[]}function yR(i){for(var d=-1,A=i==null?0:i.length,D={};++d<A;){var P=i[d];D[P[0]]=P[1]}return D}function dv(i){return i&&i.length?i[0]:e}function wR(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=A==null?0:nt(A);return P<0&&(P=Sn(D+P,0)),ui(i,d,P)}function vR(i){var d=i==null?0:i.length;return d?$r(i,0,-1):[]}var bR=at(function(i){var d=Ft(i,dd);return d.length&&d[0]===i[0]?nd(d):[]}),xR=at(function(i){var d=Ar(i),A=Ft(i,dd);return d===Ar(A)?d=e:A.pop(),A.length&&A[0]===i[0]?nd(A,Pe(d,2)):[]}),_R=at(function(i){var d=Ar(i),A=Ft(i,dd);return d=typeof d=="function"?d:e,d&&A.pop(),A.length&&A[0]===i[0]?nd(A,e,d):[]});function kR(i,d){return i==null?"":vT.call(i,d)}function Ar(i){var d=i==null?0:i.length;return d?i[d-1]:e}function SR(i,d,A){var D=i==null?0:i.length;if(!D)return-1;var P=D;return A!==e&&(P=nt(A),P=P<0?Sn(D+P,0):zn(P,D-1)),d===d?Ct(i,d,P):yo(i,aa,P,!0)}function $R(i,d){return i&&i.length?kw(i,nt(d)):e}var AR=at(fv);function fv(i,d){return i&&i.length&&d&&d.length?sd(i,d):i}function CR(i,d,A){return i&&i.length&&d&&d.length?sd(i,d,Pe(A,2)):i}function TR(i,d,A){return i&&i.length&&d&&d.length?sd(i,d,e,A):i}var ER=gi(function(i,d){var A=i==null?0:i.length,D=Jh(i,d);return Aw(i,Ft(d,function(P){return mi(P,A)?+P:P}).sort(Nw)),D});function RR(i,d){var A=[];if(!(i&&i.length))return A;var D=-1,P=[],U=i.length;for(d=Pe(d,3);++D<U;){var Q=i[D];d(Q,D,i)&&(A.push(Q),P.push(D))}return Aw(i,P),A}function Ad(i){return i==null?i:kT.call(i)}function MR(i,d,A){var D=i==null?0:i.length;return D?(A&&typeof A!="number"&&Gn(i,d,A)?(d=0,A=D):(d=d==null?0:nt(d),A=A===e?D:nt(A)),$r(i,d,A)):[]}function LR(i,d){return ac(i,d)}function IR(i,d,A){return cd(i,d,Pe(A,2))}function OR(i,d){var A=i==null?0:i.length;if(A){var D=ac(i,d);if(D<A&&Nr(i[D],d))return D}return-1}function DR(i,d){return ac(i,d,!0)}function NR(i,d,A){return cd(i,d,Pe(A,2),!0)}function FR(i,d){var A=i==null?0:i.length;if(A){var D=ac(i,d,!0)-1;if(Nr(i[D],d))return D}return-1}function WR(i){return i&&i.length?Tw(i):[]}function PR(i,d){return i&&i.length?Tw(i,Pe(d,2)):[]}function HR(i){var d=i==null?0:i.length;return d?$r(i,1,d):[]}function zR(i,d,A){return i&&i.length?(d=A||d===e?1:nt(d),$r(i,0,d<0?0:d)):[]}function BR(i,d,A){var D=i==null?0:i.length;return D?(d=A||d===e?1:nt(d),d=D-d,$r(i,d<0?0:d,D)):[]}function jR(i,d){return i&&i.length?lc(i,Pe(d,3),!1,!0):[]}function UR(i,d){return i&&i.length?lc(i,Pe(d,3)):[]}var VR=at(function(i){return Bi(En(i,1,on,!0))}),qR=at(function(i){var d=Ar(i);return on(d)&&(d=e),Bi(En(i,1,on,!0),Pe(d,2))}),GR=at(function(i){var d=Ar(i);return d=typeof d=="function"?d:e,Bi(En(i,1,on,!0),e,d)});function YR(i){return i&&i.length?Bi(i):[]}function KR(i,d){return i&&i.length?Bi(i,Pe(d,2)):[]}function QR(i,d){return d=typeof d=="function"?d:e,i&&i.length?Bi(i,e,d):[]}function Cd(i){if(!(i&&i.length))return[];var d=0;return i=Xn(i,function(A){if(on(A))return d=Sn(A.length,d),!0}),Jt(d,function(A){return Ft(i,ca(A))})}function pv(i,d){if(!(i&&i.length))return[];var A=Cd(i);return d==null?A:Ft(A,function(D){return zt(d,e,D)})}var ZR=at(function(i,d){return on(i)?wa(i,d):[]}),JR=at(function(i){return hd(Xn(i,on))}),XR=at(function(i){var d=Ar(i);return on(d)&&(d=e),hd(Xn(i,on),Pe(d,2))}),eM=at(function(i){var d=Ar(i);return d=typeof d=="function"?d:e,hd(Xn(i,on),e,d)}),tM=at(Cd);function nM(i,d){return Lw(i||[],d||[],ya)}function rM(i,d){return Lw(i||[],d||[],xa)}var iM=at(function(i){var d=i.length,A=d>1?i[d-1]:e;return A=typeof A=="function"?(i.pop(),A):e,pv(i,A)});function gv(i){var d=B(i);return d.__chain__=!0,d}function oM(i,d){return d(i),i}function yc(i,d){return d(i)}var sM=gi(function(i){var d=i.length,A=d?i[0]:0,D=this.__wrapped__,P=function(U){return Jh(U,i)};return d>1||this.__actions__.length||!(D instanceof mt)||!mi(A)?this.thru(P):(D=D.slice(A,+A+(d?1:0)),D.__actions__.push({func:yc,args:[P],thisArg:e}),new kr(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function aM(){return gv(this)}function lM(){return new kr(this.value(),this.__chain__)}function cM(){this.__values__===e&&(this.__values__=Ev(this.value()));var i=this.__index__>=this.__values__.length,d=i?e:this.__values__[this.__index__++];return{done:i,value:d}}function uM(){return this}function hM(i){for(var d,A=this;A instanceof nc;){var D=lv(A);D.__index__=0,D.__values__=e,d?P.__wrapped__=D:d=D;var P=D;A=A.__wrapped__}return P.__wrapped__=i,d}function dM(){var i=this.__wrapped__;if(i instanceof mt){var d=i;return this.__actions__.length&&(d=new mt(this)),d=d.reverse(),d.__actions__.push({func:yc,args:[Ad],thisArg:e}),new kr(d,this.__chain__)}return this.thru(Ad)}function fM(){return Mw(this.__wrapped__,this.__actions__)}var pM=cc(function(i,d,A){Tt.call(i,A)?++i[A]:fi(i,A,1)});function gM(i,d,A){var D=Ze(i)?Fi:oE;return A&&Gn(i,d,A)&&(d=e),D(i,Pe(d,3))}function mM(i,d){var A=Ze(i)?Xn:pw;return A(i,Pe(d,3))}var yM=Bw(cv),wM=Bw(uv);function vM(i,d){return En(wc(i,d),1)}function bM(i,d){return En(wc(i,d),F)}function xM(i,d,A){return A=A===e?1:nt(A),En(wc(i,d),A)}function mv(i,d){var A=Ze(i)?Un:zi;return A(i,Pe(d,3))}function yv(i,d){var A=Ze(i)?Pl:fw;return A(i,Pe(d,3))}var _M=cc(function(i,d,A){Tt.call(i,A)?i[A].push(d):fi(i,A,[d])});function kM(i,d,A,D){i=nr(i)?i:ms(i),A=A&&!D?nt(A):0;var P=i.length;return A<0&&(A=Sn(P+A,0)),kc(i)?A<=P&&i.indexOf(d,A)>-1:!!P&&ui(i,d,A)>-1}var SM=at(function(i,d,A){var D=-1,P=typeof d=="function",U=nr(i)?se(i.length):[];return zi(i,function(Q){U[++D]=P?zt(d,Q,A):va(Q,d,A)}),U}),$M=cc(function(i,d,A){fi(i,A,d)});function wc(i,d){var A=Ze(i)?Ft:bw;return A(i,Pe(d,3))}function AM(i,d,A,D){return i==null?[]:(Ze(d)||(d=d==null?[]:[d]),A=D?e:A,Ze(A)||(A=A==null?[]:[A]),Sw(i,d,A))}var CM=cc(function(i,d,A){i[A?0:1].push(d)},function(){return[[],[]]});function TM(i,d,A){var D=Ze(i)?_r:ua,P=arguments.length<3;return D(i,Pe(d,4),A,P,zi)}function EM(i,d,A){var D=Ze(i)?mo:ua,P=arguments.length<3;return D(i,Pe(d,4),A,P,fw)}function RM(i,d){var A=Ze(i)?Xn:pw;return A(i,xc(Pe(d,3)))}function MM(i){var d=Ze(i)?cw:kE;return d(i)}function LM(i,d,A){(A?Gn(i,d,A):d===e)?d=1:d=nt(d);var D=Ze(i)?eE:SE;return D(i,d)}function IM(i){var d=Ze(i)?tE:AE;return d(i)}function OM(i){if(i==null)return 0;if(nr(i))return kc(i)?tt(i):i.length;var d=Bn(i);return d==ct||d==Qt?i.size:id(i).length}function DM(i,d,A){var D=Ze(i)?os:CE;return A&&Gn(i,d,A)&&(d=e),D(i,Pe(d,3))}var NM=at(function(i,d){if(i==null)return[];var A=d.length;return A>1&&Gn(i,d[0],d[1])?d=[]:A>2&&Gn(d[0],d[1],d[2])&&(d=[d[0]]),Sw(i,En(d,1),[])}),vc=mT||function(){return xn.Date.now()};function FM(i,d){if(typeof d!="function")throw new kn(y);return i=nt(i),function(){if(--i<1)return d.apply(this,arguments)}}function wv(i,d,A){return d=A?e:d,d=i&&d==null?i.length:d,pi(i,T,e,e,e,e,d)}function vv(i,d){var A;if(typeof d!="function")throw new kn(y);return i=nt(i),function(){return--i>0&&(A=d.apply(this,arguments)),i<=1&&(d=e),A}}var Td=at(function(i,d,A){var D=m;if(A.length){var P=xe(A,ps(Td));D|=k}return pi(i,D,d,A,P)}),bv=at(function(i,d,A){var D=m|w;if(A.length){var P=xe(A,ps(bv));D|=k}return pi(d,D,i,A,P)});function xv(i,d,A){d=A?e:d;var D=pi(i,M,e,e,e,e,e,d);return D.placeholder=xv.placeholder,D}function _v(i,d,A){d=A?e:d;var D=pi(i,C,e,e,e,e,e,d);return D.placeholder=_v.placeholder,D}function kv(i,d,A){var D,P,U,Q,ee,ie,fe=0,ge=!1,ye=!1,$e=!0;if(typeof i!="function")throw new kn(y);d=Cr(d)||0,Yt(A)&&(ge=!!A.leading,ye="maxWait"in A,U=ye?Sn(Cr(A.maxWait)||0,d):U,$e="trailing"in A?!!A.trailing:$e);function Me(sn){var Fr=D,vi=P;return D=P=e,fe=sn,Q=i.apply(vi,Fr),Q}function ze(sn){return fe=sn,ee=Sa(pt,d),ge?Me(sn):Q}function it(sn){var Fr=sn-ie,vi=sn-fe,Bv=d-Fr;return ye?zn(Bv,U-vi):Bv}function Be(sn){var Fr=sn-ie,vi=sn-fe;return ie===e||Fr>=d||Fr<0||ye&&vi>=U}function pt(){var sn=vc();if(Be(sn))return yt(sn);ee=Sa(pt,it(sn))}function yt(sn){return ee=e,$e&&D?Me(sn):(D=P=e,Q)}function fr(){ee!==e&&Iw(ee),fe=0,D=ie=P=ee=e}function Yn(){return ee===e?Q:yt(vc())}function pr(){var sn=vc(),Fr=Be(sn);if(D=arguments,P=this,ie=sn,Fr){if(ee===e)return ze(ie);if(ye)return Iw(ee),ee=Sa(pt,d),Me(ie)}return ee===e&&(ee=Sa(pt,d)),Q}return pr.cancel=fr,pr.flush=Yn,pr}var WM=at(function(i,d){return dw(i,1,d)}),PM=at(function(i,d,A){return dw(i,Cr(d)||0,A)});function HM(i){return pi(i,I)}function bc(i,d){if(typeof i!="function"||d!=null&&typeof d!="function")throw new kn(y);var A=function(){var D=arguments,P=d?d.apply(this,D):D[0],U=A.cache;if(U.has(P))return U.get(P);var Q=i.apply(this,D);return A.cache=U.set(P,Q)||U,Q};return A.cache=new(bc.Cache||di),A}bc.Cache=di;function xc(i){if(typeof i!="function")throw new kn(y);return function(){var d=arguments;switch(d.length){case 0:return!i.call(this);case 1:return!i.call(this,d[0]);case 2:return!i.call(this,d[0],d[1]);case 3:return!i.call(this,d[0],d[1],d[2])}return!i.apply(this,d)}}function zM(i){return vv(2,i)}var BM=TE(function(i,d){d=d.length==1&&Ze(d[0])?Ft(d[0],Hn(Pe())):Ft(En(d,1),Hn(Pe()));var A=d.length;return at(function(D){for(var P=-1,U=zn(D.length,A);++P<U;)D[P]=d[P].call(this,D[P]);return zt(i,this,D)})}),Ed=at(function(i,d){var A=xe(d,ps(Ed));return pi(i,k,e,d,A)}),Sv=at(function(i,d){var A=xe(d,ps(Sv));return pi(i,x,e,d,A)}),jM=gi(function(i,d){return pi(i,R,e,e,e,d)});function UM(i,d){if(typeof i!="function")throw new kn(y);return d=d===e?d:nt(d),at(i,d)}function VM(i,d){if(typeof i!="function")throw new kn(y);return d=d==null?0:Sn(nt(d),0),at(function(A){var D=A[d],P=Ui(A,0,d);return D&&Pn(P,D),zt(i,this,P)})}function qM(i,d,A){var D=!0,P=!0;if(typeof i!="function")throw new kn(y);return Yt(A)&&(D="leading"in A?!!A.leading:D,P="trailing"in A?!!A.trailing:P),kv(i,d,{leading:D,maxWait:d,trailing:P})}function GM(i){return wv(i,1)}function YM(i,d){return Ed(fd(d),i)}function KM(){if(!arguments.length)return[];var i=arguments[0];return Ze(i)?i:[i]}function QM(i){return Sr(i,l)}function ZM(i,d){return d=typeof d=="function"?d:e,Sr(i,l,d)}function JM(i){return Sr(i,c|l)}function XM(i,d){return d=typeof d=="function"?d:e,Sr(i,c|l,d)}function eL(i,d){return d==null||hw(i,d,Cn(d))}function Nr(i,d){return i===d||i!==i&&d!==d}var tL=fc(td),nL=fc(function(i,d){return i>=d}),Ao=yw(function(){return arguments}())?yw:function(i){return Xt(i)&&Tt.call(i,"callee")&&!rw.call(i,"callee")},Ze=se.isArray,rL=Fl?Hn(Fl):hE;function nr(i){return i!=null&&_c(i.length)&&!yi(i)}function on(i){return Xt(i)&&nr(i)}function iL(i){return i===!0||i===!1||Xt(i)&&qn(i)==me}var Vi=wT||Hd,oL=xr?Hn(xr):dE;function sL(i){return Xt(i)&&i.nodeType===1&&!$a(i)}function aL(i){if(i==null)return!0;if(nr(i)&&(Ze(i)||typeof i=="string"||typeof i.splice=="function"||Vi(i)||gs(i)||Ao(i)))return!i.length;var d=Bn(i);if(d==ct||d==Qt)return!i.size;if(ka(i))return!id(i).length;for(var A in i)if(Tt.call(i,A))return!1;return!0}function lL(i,d){return ba(i,d)}function cL(i,d,A){A=typeof A=="function"?A:e;var D=A?A(i,d):e;return D===e?ba(i,d,e,A):!!D}function Rd(i){if(!Xt(i))return!1;var d=qn(i);return d==_e||d==pe||typeof i.message=="string"&&typeof i.name=="string"&&!$a(i)}function uL(i){return typeof i=="number"&&ow(i)}function yi(i){if(!Yt(i))return!1;var d=qn(i);return d==rt||d==Dt||d==ae||d==jr}function $v(i){return typeof i=="number"&&i==nt(i)}function _c(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=H}function Yt(i){var d=typeof i;return i!=null&&(d=="object"||d=="function")}function Xt(i){return i!=null&&typeof i=="object"}var Av=Ir?Hn(Ir):pE;function hL(i,d){return i===d||rd(i,d,bd(d))}function dL(i,d,A){return A=typeof A=="function"?A:e,rd(i,d,bd(d),A)}function fL(i){return Cv(i)&&i!=+i}function pL(i){if(ZE(i))throw new Oe(p);return ww(i)}function gL(i){return i===null}function mL(i){return i==null}function Cv(i){return typeof i=="number"||Xt(i)&&qn(i)==ft}function $a(i){if(!Xt(i)||qn(i)!=Mt)return!1;var d=Kl(i);if(d===null)return!0;var A=Tt.call(d,"constructor")&&d.constructor;return typeof A=="function"&&A instanceof A&&Vl.call(A)==dT}var Md=Qr?Hn(Qr):gE;function yL(i){return $v(i)&&i>=-9007199254740991&&i<=H}var Tv=ci?Hn(ci):mE;function kc(i){return typeof i=="string"||!Ze(i)&&Xt(i)&&qn(i)==De}function dr(i){return typeof i=="symbol"||Xt(i)&&qn(i)==We}var gs=Wl?Hn(Wl):yE;function wL(i){return i===e}function vL(i){return Xt(i)&&Bn(i)==He}function bL(i){return Xt(i)&&qn(i)==ce}var xL=fc(od),_L=fc(function(i,d){return i<=d});function Ev(i){if(!i)return[];if(nr(i))return kc(i)?Ue(i):tr(i);if(da&&i[da])return de(i[da]());var d=Bn(i),A=d==ct?ve:d==Qt?Se:ms;return A(i)}function wi(i){if(!i)return i===0?i:0;if(i=Cr(i),i===F||i===-1/0){var d=i<0?-1:1;return d*j}return i===i?i:0}function nt(i){var d=wi(i),A=d%1;return d===d?A?d-A:d:0}function Rv(i){return i?_o(nt(i),0,q):0}function Cr(i){if(typeof i=="number")return i;if(dr(i))return V;if(Yt(i)){var d=typeof i.valueOf=="function"?i.valueOf():i;i=Yt(d)?d+"":d}if(typeof i!="string")return i===0?i:+i;i=qt(i);var A=qr.test(i);return A||un.test(i)?Lt(i.slice(2),A?2:8):$l.test(i)?V:+i}function Mv(i){return Jr(i,rr(i))}function kL(i){return i?_o(nt(i),-9007199254740991,H):i===0?i:0}function $t(i){return i==null?"":hr(i)}var SL=ds(function(i,d){if(ka(d)||nr(d)){Jr(d,Cn(d),i);return}for(var A in d)Tt.call(d,A)&&ya(i,A,d[A])}),Lv=ds(function(i,d){Jr(d,rr(d),i)}),Sc=ds(function(i,d,A,D){Jr(d,rr(d),i,D)}),$L=ds(function(i,d,A,D){Jr(d,Cn(d),i,D)}),AL=gi(Jh);function CL(i,d){var A=hs(i);return d==null?A:uw(A,d)}var TL=at(function(i,d){i=Qe(i);var A=-1,D=d.length,P=D>2?d[2]:e;for(P&&Gn(d[0],d[1],P)&&(D=1);++A<D;)for(var U=d[A],Q=rr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],ge=i[fe];(ge===e||Nr(ge,ls[fe])&&!Tt.call(i,fe))&&(i[fe]=U[fe])}return i}),EL=at(function(i){return i.push(e,Kw),zt(Iv,e,i)});function RL(i,d){return sa(i,Pe(d,3),Zr)}function ML(i,d){return sa(i,Pe(d,3),ed)}function LL(i,d){return i==null?i:Xh(i,Pe(d,3),rr)}function IL(i,d){return i==null?i:gw(i,Pe(d,3),rr)}function OL(i,d){return i&&Zr(i,Pe(d,3))}function DL(i,d){return i&&ed(i,Pe(d,3))}function NL(i){return i==null?[]:oc(i,Cn(i))}function FL(i){return i==null?[]:oc(i,rr(i))}function Ld(i,d,A){var D=i==null?e:ko(i,d);return D===e?A:D}function WL(i,d){return i!=null&&Jw(i,d,aE)}function Id(i,d){return i!=null&&Jw(i,d,lE)}var PL=Uw(function(i,d,A){d!=null&&typeof d.toString!="function"&&(d=ql.call(d)),i[d]=A},Dd(ir)),HL=Uw(function(i,d,A){d!=null&&typeof d.toString!="function"&&(d=ql.call(d)),Tt.call(i,d)?i[d].push(A):i[d]=[A]},Pe),zL=at(va);function Cn(i){return nr(i)?lw(i):id(i)}function rr(i){return nr(i)?lw(i,!0):wE(i)}function BL(i,d){var A={};return d=Pe(d,3),Zr(i,function(D,P,U){fi(A,d(D,P,U),D)}),A}function jL(i,d){var A={};return d=Pe(d,3),Zr(i,function(D,P,U){fi(A,P,d(D,P,U))}),A}var UL=ds(function(i,d,A){sc(i,d,A)}),Iv=ds(function(i,d,A,D){sc(i,d,A,D)}),VL=gi(function(i,d){var A={};if(i==null)return A;var D=!1;d=Ft(d,function(U){return U=ji(U,i),D||(D=U.length>1),U}),Jr(i,wd(i),A),D&&(A=Sr(A,c|s|l,PE));for(var P=d.length;P--;)ud(A,d[P]);return A});function qL(i,d){return Ov(i,xc(Pe(d)))}var GL=gi(function(i,d){return i==null?{}:bE(i,d)});function Ov(i,d){if(i==null)return{};var A=Ft(wd(i),function(D){return[D]});return d=Pe(d),$w(i,A,function(D,P){return d(D,P[0])})}function YL(i,d,A){d=ji(d,i);var D=-1,P=d.length;for(P||(P=1,i=e);++D<P;){var U=i==null?e:i[Xr(d[D])];U===e&&(D=P,U=A),i=yi(U)?U.call(i):U}return i}function KL(i,d,A){return i==null?i:xa(i,d,A)}function QL(i,d,A,D){return D=typeof D=="function"?D:e,i==null?i:xa(i,d,A,D)}var Dv=Gw(Cn),Nv=Gw(rr);function ZL(i,d,A){var D=Ze(i),P=D||Vi(i)||gs(i);if(d=Pe(d,4),A==null){var U=i&&i.constructor;P?A=D?new U:[]:Yt(i)?A=yi(U)?hs(Kl(i)):{}:A={}}return(P?Un:Zr)(i,function(Q,ee,ie){return d(A,Q,ee,ie)}),A}function JL(i,d){return i==null?!0:ud(i,d)}function XL(i,d,A){return i==null?i:Rw(i,d,fd(A))}function eI(i,d,A,D){return D=typeof D=="function"?D:e,i==null?i:Rw(i,d,fd(A),D)}function ms(i){return i==null?[]:wo(i,Cn(i))}function tI(i){return i==null?[]:wo(i,rr(i))}function nI(i,d,A){return A===e&&(A=d,d=e),A!==e&&(A=Cr(A),A=A===A?A:0),d!==e&&(d=Cr(d),d=d===d?d:0),_o(Cr(i),d,A)}function rI(i,d,A){return d=wi(d),A===e?(A=d,d=0):A=wi(A),i=Cr(i),cE(i,d,A)}function iI(i,d,A){if(A&&typeof A!="boolean"&&Gn(i,d,A)&&(d=A=e),A===e&&(typeof d=="boolean"?(A=d,d=e):typeof i=="boolean"&&(A=i,i=e)),i===e&&d===e?(i=0,d=1):(i=wi(i),d===e?(d=i,i=0):d=wi(d)),i>d){var D=i;i=d,d=D}if(A||i%1||d%1){var P=sw();return zn(i+P*(d-i+fn("1e-"+((P+"").length-1))),d)}return ad(i,d)}var oI=fs(function(i,d,A){return d=d.toLowerCase(),i+(A?Fv(d):d)});function Fv(i){return Od($t(i).toLowerCase())}function Wv(i){return i=$t(i),i&&i.replace(Ko,W).replace(Oi,"")}function sI(i,d,A){i=$t(i),d=hr(d);var D=i.length;A=A===e?D:_o(nt(A),0,D);var P=A;return A-=d.length,A>=0&&i.slice(A,P)==d}function aI(i){return i=$t(i),i&&Wh.test(i)?i.replace(_l,z):i}function lI(i){return i=$t(i),i&&Ai.test(i)?i.replace(Vr,"\\$&"):i}var cI=fs(function(i,d,A){return i+(A?"-":"")+d.toLowerCase()}),uI=fs(function(i,d,A){return i+(A?" ":"")+d.toLowerCase()}),hI=zw("toLowerCase");function dI(i,d,A){i=$t(i),d=nt(d);var D=d?tt(i):0;if(!d||D>=d)return i;var P=(d-D)/2;return dc(Xl(P),A)+i+dc(Jl(P),A)}function fI(i,d,A){i=$t(i),d=nt(d);var D=d?tt(i):0;return d&&D<d?i+dc(d-D,A):i}function pI(i,d,A){i=$t(i),d=nt(d);var D=d?tt(i):0;return d&&D<d?dc(d-D,A)+i:i}function gI(i,d,A){return A||d==null?d=0:d&&(d=+d),_T($t(i).replace(Fn,""),d||0)}function mI(i,d,A){return(A?Gn(i,d,A):d===e)?d=1:d=nt(d),ld($t(i),d)}function yI(){var i=arguments,d=$t(i[0]);return i.length<3?d:d.replace(i[1],i[2])}var wI=fs(function(i,d,A){return i+(A?"_":"")+d.toLowerCase()});function vI(i,d,A){return A&&typeof A!="number"&&Gn(i,d,A)&&(d=A=e),A=A===e?q:A>>>0,A?(i=$t(i),i&&(typeof d=="string"||d!=null&&!Md(d))&&(d=hr(d),!d&&te(i))?Ui(Ue(i),0,A):i.split(d,A)):[]}var bI=fs(function(i,d,A){return i+(A?" ":"")+Od(d)});function xI(i,d,A){return i=$t(i),A=A==null?0:_o(nt(A),0,i.length),d=hr(d),i.slice(A,A+d.length)==d}function _I(i,d,A){var D=B.templateSettings;A&&Gn(i,d,A)&&(d=e),i=$t(i),d=Sc({},d,D,Yw);var P=Sc({},d.imports,D.imports,Yw),U=Cn(P),Q=wo(P,U),ee,ie,fe=0,ge=d.interpolate||Wn,ye="__p += '",$e=_n((d.escape||Wn).source+"|"+ge.source+"|"+(ge===Ne?jh:Wn).source+"|"+(d.evaluate||Wn).source+"|$","g"),Me="//# sourceURL="+(Tt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dl+"]")+`
|
1390
|
+
`;i.replace($e,function(Be,pt,yt,fr,Yn,pr){return yt||(yt=fr),ye+=i.slice(fe,pr).replace(co,Y),pt&&(ee=!0,ye+=`' +
|
1391
|
+
__e(`+pt+`) +
|
1392
|
+
'`),Yn&&(ie=!0,ye+=`';
|
1393
|
+
`+Yn+`;
|
1394
|
+
__p += '`),yt&&(ye+=`' +
|
1395
|
+
((__t = (`+yt+`)) == null ? '' : __t) +
|
1396
|
+
'`),fe=pr+Be.length,Be}),ye+=`';
|
1397
|
+
`;var ze=Tt.call(d,"variable")&&d.variable;if(!ze)ye=`with (obj) {
|
1398
|
+
`+ye+`
|
1399
|
+
}
|
1400
|
+
`;else if(Bh.test(ze))throw new Oe(v);ye=(ie?ye.replace(ii,""):ye).replace(Zn,"$1").replace(zs,"$1;"),ye="function("+(ze||"obj")+`) {
|
1401
|
+
`+(ze?"":`obj || (obj = {});
|
1402
|
+
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
|
1403
|
+
function print() { __p += __j.call(arguments, '') }
|
1404
|
+
`:`;
|
1405
|
+
`)+ye+`return __p
|
1406
|
+
}`;var it=Hv(function(){return Ye(U,Me+"return "+ye).apply(e,Q)});if(it.source=ye,Rd(it))throw it;return it}function kI(i){return $t(i).toLowerCase()}function SI(i){return $t(i).toUpperCase()}function $I(i,d,A){if(i=$t(i),i&&(A||d===e))return qt(i);if(!i||!(d=hr(d)))return i;var D=Ue(i),P=Ue(d),U=Bl(D,P),Q=jl(D,P)+1;return Ui(D,U,Q).join("")}function AI(i,d,A){if(i=$t(i),i&&(A||d===e))return i.slice(0,Ke(i)+1);if(!i||!(d=hr(d)))return i;var D=Ue(i),P=jl(D,Ue(d))+1;return Ui(D,0,P).join("")}function CI(i,d,A){if(i=$t(i),i&&(A||d===e))return i.replace(Fn,"");if(!i||!(d=hr(d)))return i;var D=Ue(i),P=Bl(D,Ue(d));return Ui(D,P).join("")}function TI(i,d){var A=E,D=N;if(Yt(d)){var P="separator"in d?d.separator:P;A="length"in d?nt(d.length):A,D="omission"in d?hr(d.omission):D}i=$t(i);var U=i.length;if(te(i)){var Q=Ue(i);U=Q.length}if(A>=U)return i;var ee=A-tt(D);if(ee<1)return D;var ie=Q?Ui(Q,0,ee).join(""):i.slice(0,ee);if(P===e)return ie+D;if(Q&&(ee+=ie.length-ee),Md(P)){if(i.slice(ee).search(P)){var fe,ge=ie;for(P.global||(P=_n(P.source,$t(Ei.exec(P))+"g")),P.lastIndex=0;fe=P.exec(ge);)var ye=fe.index;ie=ie.slice(0,ye===e?ee:ye)}}else if(i.indexOf(hr(P),ee)!=ee){var $e=ie.lastIndexOf(P);$e>-1&&(ie=ie.slice(0,$e))}return ie+D}function EI(i){return i=$t(i),i&&Fh.test(i)?i.replace(Bs,Re):i}var RI=fs(function(i,d,A){return i+(A?" ":"")+d.toUpperCase()}),Od=zw("toUpperCase");function Pv(i,d,A){return i=$t(i),d=A?e:d,d===e?oe(i)?Bt(i):ss(i):i.match(d)||[]}var Hv=at(function(i,d){try{return zt(i,e,d)}catch(A){return Rd(A)?A:new Oe(A)}}),MI=gi(function(i,d){return Un(d,function(A){A=Xr(A),fi(i,A,Td(i[A],i))}),i});function LI(i){var d=i==null?0:i.length,A=Pe();return i=d?Ft(i,function(D){if(typeof D[1]!="function")throw new kn(y);return[A(D[0]),D[1]]}):[],at(function(D){for(var P=-1;++P<d;){var U=i[P];if(zt(U[0],this,D))return zt(U[1],this,D)}})}function II(i){return iE(Sr(i,c))}function Dd(i){return function(){return i}}function OI(i,d){return i==null||i!==i?d:i}var DI=jw(),NI=jw(!0);function ir(i){return i}function Nd(i){return vw(typeof i=="function"?i:Sr(i,c))}function FI(i){return xw(Sr(i,c))}function WI(i,d){return _w(i,Sr(d,c))}var PI=at(function(i,d){return function(A){return va(A,i,d)}}),HI=at(function(i,d){return function(A){return va(i,A,d)}});function Fd(i,d,A){var D=Cn(d),P=oc(d,D);A==null&&!(Yt(d)&&(P.length||!D.length))&&(A=d,d=i,i=this,P=oc(d,Cn(d)));var U=!(Yt(A)&&"chain"in A)||!!A.chain,Q=yi(i);return Un(P,function(ee){var ie=d[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var ge=i(this.__wrapped__),ye=ge.__actions__=tr(this.__actions__);return ye.push({func:ie,args:arguments,thisArg:i}),ge.__chain__=fe,ge}return ie.apply(i,Pn([this.value()],arguments))})}),i}function zI(){return xn._===this&&(xn._=fT),this}function Wd(){}function BI(i){return i=nt(i),at(function(d){return kw(d,i)})}var jI=gd(Ft),UI=gd(Fi),VI=gd(os);function zv(i){return _d(i)?ca(Xr(i)):xE(i)}function qI(i){return function(d){return i==null?e:ko(i,d)}}var GI=Vw(),YI=Vw(!0);function Pd(){return[]}function Hd(){return!1}function KI(){return{}}function QI(){return""}function ZI(){return!0}function JI(i,d){if(i=nt(i),i<1||i>H)return[];var A=q,D=zn(i,q);d=Pe(d),i-=q;for(var P=Jt(D,d);++A<i;)d(A);return P}function XI(i){return Ze(i)?Ft(i,Xr):dr(i)?[i]:tr(av($t(i)))}function eO(i){var d=++hT;return $t(i)+d}var tO=hc(function(i,d){return i+d},0),nO=md("ceil"),rO=hc(function(i,d){return i/d},1),iO=md("floor");function oO(i){return i&&i.length?ic(i,ir,td):e}function sO(i,d){return i&&i.length?ic(i,Pe(d,2),td):e}function aO(i){return la(i,ir)}function lO(i,d){return la(i,Pe(d,2))}function cO(i){return i&&i.length?ic(i,ir,od):e}function uO(i,d){return i&&i.length?ic(i,Pe(d,2),od):e}var hO=hc(function(i,d){return i*d},1),dO=md("round"),fO=hc(function(i,d){return i-d},0);function pO(i){return i&&i.length?Pi(i,ir):0}function gO(i,d){return i&&i.length?Pi(i,Pe(d,2)):0}return B.after=FM,B.ary=wv,B.assign=SL,B.assignIn=Lv,B.assignInWith=Sc,B.assignWith=$L,B.at=AL,B.before=vv,B.bind=Td,B.bindAll=MI,B.bindKey=bv,B.castArray=KM,B.chain=gv,B.chunk=iR,B.compact=oR,B.concat=sR,B.cond=LI,B.conforms=II,B.constant=Dd,B.countBy=pM,B.create=CL,B.curry=xv,B.curryRight=_v,B.debounce=kv,B.defaults=TL,B.defaultsDeep=EL,B.defer=WM,B.delay=PM,B.difference=aR,B.differenceBy=lR,B.differenceWith=cR,B.drop=uR,B.dropRight=hR,B.dropRightWhile=dR,B.dropWhile=fR,B.fill=pR,B.filter=mM,B.flatMap=vM,B.flatMapDeep=bM,B.flatMapDepth=xM,B.flatten=hv,B.flattenDeep=gR,B.flattenDepth=mR,B.flip=HM,B.flow=DI,B.flowRight=NI,B.fromPairs=yR,B.functions=NL,B.functionsIn=FL,B.groupBy=_M,B.initial=vR,B.intersection=bR,B.intersectionBy=xR,B.intersectionWith=_R,B.invert=PL,B.invertBy=HL,B.invokeMap=SM,B.iteratee=Nd,B.keyBy=$M,B.keys=Cn,B.keysIn=rr,B.map=wc,B.mapKeys=BL,B.mapValues=jL,B.matches=FI,B.matchesProperty=WI,B.memoize=bc,B.merge=UL,B.mergeWith=Iv,B.method=PI,B.methodOf=HI,B.mixin=Fd,B.negate=xc,B.nthArg=BI,B.omit=VL,B.omitBy=qL,B.once=zM,B.orderBy=AM,B.over=jI,B.overArgs=BM,B.overEvery=UI,B.overSome=VI,B.partial=Ed,B.partialRight=Sv,B.partition=CM,B.pick=GL,B.pickBy=Ov,B.property=zv,B.propertyOf=qI,B.pull=AR,B.pullAll=fv,B.pullAllBy=CR,B.pullAllWith=TR,B.pullAt=ER,B.range=GI,B.rangeRight=YI,B.rearg=jM,B.reject=RM,B.remove=RR,B.rest=UM,B.reverse=Ad,B.sampleSize=LM,B.set=KL,B.setWith=QL,B.shuffle=IM,B.slice=MR,B.sortBy=NM,B.sortedUniq=WR,B.sortedUniqBy=PR,B.split=vI,B.spread=VM,B.tail=HR,B.take=zR,B.takeRight=BR,B.takeRightWhile=jR,B.takeWhile=UR,B.tap=oM,B.throttle=qM,B.thru=yc,B.toArray=Ev,B.toPairs=Dv,B.toPairsIn=Nv,B.toPath=XI,B.toPlainObject=Mv,B.transform=ZL,B.unary=GM,B.union=VR,B.unionBy=qR,B.unionWith=GR,B.uniq=YR,B.uniqBy=KR,B.uniqWith=QR,B.unset=JL,B.unzip=Cd,B.unzipWith=pv,B.update=XL,B.updateWith=eI,B.values=ms,B.valuesIn=tI,B.without=ZR,B.words=Pv,B.wrap=YM,B.xor=JR,B.xorBy=XR,B.xorWith=eM,B.zip=tM,B.zipObject=nM,B.zipObjectDeep=rM,B.zipWith=iM,B.entries=Dv,B.entriesIn=Nv,B.extend=Lv,B.extendWith=Sc,Fd(B,B),B.add=tO,B.attempt=Hv,B.camelCase=oI,B.capitalize=Fv,B.ceil=nO,B.clamp=nI,B.clone=QM,B.cloneDeep=JM,B.cloneDeepWith=XM,B.cloneWith=ZM,B.conformsTo=eL,B.deburr=Wv,B.defaultTo=OI,B.divide=rO,B.endsWith=sI,B.eq=Nr,B.escape=aI,B.escapeRegExp=lI,B.every=gM,B.find=yM,B.findIndex=cv,B.findKey=RL,B.findLast=wM,B.findLastIndex=uv,B.findLastKey=ML,B.floor=iO,B.forEach=mv,B.forEachRight=yv,B.forIn=LL,B.forInRight=IL,B.forOwn=OL,B.forOwnRight=DL,B.get=Ld,B.gt=tL,B.gte=nL,B.has=WL,B.hasIn=Id,B.head=dv,B.identity=ir,B.includes=kM,B.indexOf=wR,B.inRange=rI,B.invoke=zL,B.isArguments=Ao,B.isArray=Ze,B.isArrayBuffer=rL,B.isArrayLike=nr,B.isArrayLikeObject=on,B.isBoolean=iL,B.isBuffer=Vi,B.isDate=oL,B.isElement=sL,B.isEmpty=aL,B.isEqual=lL,B.isEqualWith=cL,B.isError=Rd,B.isFinite=uL,B.isFunction=yi,B.isInteger=$v,B.isLength=_c,B.isMap=Av,B.isMatch=hL,B.isMatchWith=dL,B.isNaN=fL,B.isNative=pL,B.isNil=mL,B.isNull=gL,B.isNumber=Cv,B.isObject=Yt,B.isObjectLike=Xt,B.isPlainObject=$a,B.isRegExp=Md,B.isSafeInteger=yL,B.isSet=Tv,B.isString=kc,B.isSymbol=dr,B.isTypedArray=gs,B.isUndefined=wL,B.isWeakMap=vL,B.isWeakSet=bL,B.join=kR,B.kebabCase=cI,B.last=Ar,B.lastIndexOf=SR,B.lowerCase=uI,B.lowerFirst=hI,B.lt=xL,B.lte=_L,B.max=oO,B.maxBy=sO,B.mean=aO,B.meanBy=lO,B.min=cO,B.minBy=uO,B.stubArray=Pd,B.stubFalse=Hd,B.stubObject=KI,B.stubString=QI,B.stubTrue=ZI,B.multiply=hO,B.nth=$R,B.noConflict=zI,B.noop=Wd,B.now=vc,B.pad=dI,B.padEnd=fI,B.padStart=pI,B.parseInt=gI,B.random=iI,B.reduce=TM,B.reduceRight=EM,B.repeat=mI,B.replace=yI,B.result=YL,B.round=dO,B.runInContext=ne,B.sample=MM,B.size=OM,B.snakeCase=wI,B.some=DM,B.sortedIndex=LR,B.sortedIndexBy=IR,B.sortedIndexOf=OR,B.sortedLastIndex=DR,B.sortedLastIndexBy=NR,B.sortedLastIndexOf=FR,B.startCase=bI,B.startsWith=xI,B.subtract=fO,B.sum=pO,B.sumBy=gO,B.template=_I,B.times=JI,B.toFinite=wi,B.toInteger=nt,B.toLength=Rv,B.toLower=kI,B.toNumber=Cr,B.toSafeInteger=kL,B.toString=$t,B.toUpper=SI,B.trim=$I,B.trimEnd=AI,B.trimStart=CI,B.truncate=TI,B.unescape=EI,B.uniqueId=eO,B.upperCase=RI,B.upperFirst=Od,B.each=mv,B.eachRight=yv,B.first=dv,Fd(B,function(){var i={};return Zr(B,function(d,A){Tt.call(B.prototype,A)||(i[A]=d)}),i}(),{chain:!1}),B.VERSION=r,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){B[i].placeholder=B}),Un(["drop","take"],function(i,d){mt.prototype[i]=function(A){A=A===e?1:Sn(nt(A),0);var D=this.__filtered__&&!d?new mt(this):this.clone();return D.__filtered__?D.__takeCount__=zn(A,D.__takeCount__):D.__views__.push({size:zn(A,q),type:i+(D.__dir__<0?"Right":"")}),D},mt.prototype[i+"Right"]=function(A){return this.reverse()[i](A).reverse()}}),Un(["filter","map","takeWhile"],function(i,d){var A=d+1,D=A==$||A==O;mt.prototype[i]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:Pe(P,3),type:A}),U.__filtered__=U.__filtered__||D,U}}),Un(["head","last"],function(i,d){var A="take"+(d?"Right":"");mt.prototype[i]=function(){return this[A](1).value()[0]}}),Un(["initial","tail"],function(i,d){var A="drop"+(d?"":"Right");mt.prototype[i]=function(){return this.__filtered__?new mt(this):this[A](1)}}),mt.prototype.compact=function(){return this.filter(ir)},mt.prototype.find=function(i){return this.filter(i).head()},mt.prototype.findLast=function(i){return this.reverse().find(i)},mt.prototype.invokeMap=at(function(i,d){return typeof i=="function"?new mt(this):this.map(function(A){return va(A,i,d)})}),mt.prototype.reject=function(i){return this.filter(xc(Pe(i)))},mt.prototype.slice=function(i,d){i=nt(i);var A=this;return A.__filtered__&&(i>0||d<0)?new mt(A):(i<0?A=A.takeRight(-i):i&&(A=A.drop(i)),d!==e&&(d=nt(d),A=d<0?A.dropRight(-d):A.take(d-i)),A)},mt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},mt.prototype.toArray=function(){return this.take(q)},Zr(mt.prototype,function(i,d){var A=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),P=B[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);P&&(B.prototype[d]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof mt,fe=ee[0],ge=ie||Ze(Q),ye=function(pt){var yt=P.apply(B,Pn([pt],ee));return D&&$e?yt[0]:yt};ge&&A&&typeof fe=="function"&&fe.length!=1&&(ie=ge=!1);var $e=this.__chain__,Me=!!this.__actions__.length,ze=U&&!$e,it=ie&&!Me;if(!U&&ge){Q=it?Q:new mt(this);var Be=i.apply(Q,ee);return Be.__actions__.push({func:yc,args:[ye],thisArg:e}),new kr(Be,$e)}return ze&&it?i.apply(this,ee):(Be=this.thru(ye),ze?D?Be.value()[0]:Be.value():Be)})}),Un(["pop","push","shift","sort","splice","unshift"],function(i){var d=ur[i],A=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);B.prototype[i]=function(){var P=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Ze(U)?U:[],P)}return this[A](function(Q){return d.apply(Ze(Q)?Q:[],P)})}}),Zr(mt.prototype,function(i,d){var A=B[d];if(A){var D=A.name+"";Tt.call(us,D)||(us[D]=[]),us[D].push({name:d,func:A})}}),us[uc(e,w).name]=[{name:"wrapper",func:e}],mt.prototype.clone=ET,mt.prototype.reverse=RT,mt.prototype.value=MT,B.prototype.at=sM,B.prototype.chain=aM,B.prototype.commit=lM,B.prototype.next=cM,B.prototype.plant=hM,B.prototype.reverse=dM,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=fM,B.prototype.first=B.prototype.head,da&&(B.prototype[da]=uM),B},Ot=It();An?((An.exports=Ot)._=Ot,br._=Ot):xn._=Ot}).call(v1)}(Ua,Ua.exports)),Ua.exports}var x1=b1();Rn("a",Ea(x1)).debounce(function(){this.rebuildDisplayText()},300);var Lp={exports:{}},Ip;function _1(){return Ip||(Ip=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Lp)),Lp.exports}_1();const k1=!0,gn="u-",S1="uplot",$1=gn+"hz",A1=gn+"vt",C1=gn+"title",T1=gn+"wrap",E1=gn+"under",R1=gn+"over",M1=gn+"axis",eo=gn+"off",L1=gn+"select",I1=gn+"cursor-x",O1=gn+"cursor-y",D1=gn+"cursor-pt",N1=gn+"legend",F1=gn+"live",W1=gn+"inline",P1=gn+"series",H1=gn+"marker",Op=gn+"label",z1=gn+"value",Cs="width",Ts="height",Es="top",Dp="bottom",Do="left",Xc="right",eu="#000",Np=eu+"0",Fp="mousemove",Wp="mousedown",tu="mouseup",Pp="mouseenter",Hp="mouseleave",zp="dblclick",B1="resize",j1="scroll",Bp="change",Va="dppxchange",nu="--",No=typeof window<"u",ru=No?document:null,Fo=No?window:null,U1=No?navigator:null;let bt,qa;function iu(){let n=devicePixelRatio;bt!=n&&(bt=n,qa&&au(Bp,qa,iu),qa=matchMedia(`(min-resolution: ${bt-.001}dppx) and (max-resolution: ${bt+.001}dppx)`),to(Bp,qa,iu),Fo.dispatchEvent(new CustomEvent(Va)))}function sr(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function ou(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Wt(n,t,e){n.style[t]=e+"px"}function Rr(n,t,e,r){let f=ru.createElement(n);return t!=null&&sr(f,t),e!=null&&e.insertBefore(f,r),f}function mr(n,t){return Rr("div",n,t)}const jp=new WeakMap;function Pr(n,t,e,r,f){let p="translate("+t+"px,"+e+"px)",y=jp.get(n);p!=y&&(n.style.transform=p,jp.set(n,p),t<0||e<0||t>r||e>f?sr(n,eo):ou(n,eo))}const Up=new WeakMap;function Vp(n,t,e){let r=t+e,f=Up.get(n);r!=f&&(Up.set(n,r),n.style.background=t,n.style.borderColor=e)}const qp=new WeakMap;function Gp(n,t,e,r){let f=t+""+e,p=qp.get(n);f!=p&&(qp.set(n,f),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=r?-t/2+"px":0,n.style.marginTop=r?-e/2+"px":0)}const su={passive:!0},V1={...su,capture:!0};function to(n,t,e,r){t.addEventListener(n,e,r?V1:su)}function au(n,t,e,r){t.removeEventListener(n,e,su)}No&&iu();function Mr(n,t,e,r){let f;e=e||0,r=r||t.length-1;let p=r<=2147483647;for(;r-e>1;)f=p?e+r>>1:lr((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Wo(n,t,e,r){for(let f=r==1?t:e;f>=t&&f<=e;f+=r)if(n[f]!=null)return f;return-1}function q1(n,t,e,r){let f=jt,p=-1/0;if(r==1)f=n[t],p=n[e];else if(r==-1)f=n[e],p=n[t];else for(let y=t;y<=e;y++){let v=n[y];v!=null&&(v<f&&(f=v),v>p&&(p=v))}return[f,p]}function G1(n,t,e){let r=jt,f=-1/0;for(let p=t;p<=e;p++){let y=n[p];y!=null&&y>0&&(y<r&&(r=y),y>f&&(f=y))}return[r,f]}function Ga(n,t,e,r){let f=Qp(n),p=Qp(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let y=e==10?ni:Zp,v=f==1?lr:yr,h=p==1?yr:lr,g=v(y(mn(n))),a=h(y(mn(t))),c=Po(e,g),s=Po(e,a);return e==10&&(g<0&&(c=Rt(c,-g)),a<0&&(s=Rt(s,-a))),r||e==2?(n=c*f,t=s*p):(n=rg(n,c),t=Qa(t,s)),[n,t]}function lu(n,t,e,r){let f=Ga(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const cu=.1,Yp={mode:3,pad:cu},Rs={pad:0,soft:null,mode:0},Y1={min:Rs,max:Rs};function Ya(n,t,e,r){return Za(e)?Kp(n,t,e):(Rs.pad=e,Rs.soft=r?0:null,Rs.mode=r?3:0,Kp(n,t,Y1))}function vt(n,t){return n??t}function K1(n,t,e){for(t=vt(t,0),e=vt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Kp(n,t,e){let r=e.min,f=e.max,p=vt(r.pad,0),y=vt(f.pad,0),v=vt(r.hard,-1/0),h=vt(f.hard,jt),g=vt(r.soft,jt),a=vt(f.soft,-1/0),c=vt(r.mode,0),s=vt(f.mode,0),l=t-n,o=ni(l),u=In(mn(n),mn(t)),m=ni(u),w=mn(m-o);(l<1e-24||w>10)&&(l=0,(n==0||t==0)&&(l=1e-24,c==2&&g!=jt&&(p=0),s==2&&a!=-1/0&&(y=0)));let b=l||u||1e3,M=ni(b),C=Po(10,lr(M)),k=b*(l==0?n==0?.1:1:p),x=Rt(rg(n-k,C/10),24),T=n>=g&&(c==1||c==3&&x<=g||c==2&&x>=g)?g:jt,R=In(v,x<T&&n>=T?T:wr(T,x)),I=b*(l==0?t==0?.1:1:y),E=Rt(Qa(t+I,C/10),24),N=t<=a&&(s==1||s==3&&E>=a||s==2&&E<=a)?a:-1/0,S=wr(h,E>N&&t<=N?N:In(N,E));return R==S&&R==0&&(S=100),[R,S]}const Q1=new Intl.NumberFormat(No?U1.language:"en-US"),uu=n=>Q1.format(n),ar=Math,Ka=ar.PI,mn=ar.abs,lr=ar.floor,yn=ar.round,yr=ar.ceil,wr=ar.min,In=ar.max,Po=ar.pow,Qp=ar.sign,ni=ar.log10,Zp=ar.log2,Z1=(n,t=1)=>ar.sinh(n)*t,hu=(n,t=1)=>ar.asinh(n/t),jt=1/0;function Jp(n){return(ni((n^n>>31)-(n>>31))|0)+1}function du(n,t,e){return wr(In(n,t),e)}function gt(n){return typeof n=="function"?n:()=>n}const J1=()=>{},Xp=n=>n,eg=(n,t)=>t,X1=n=>null,tg=n=>!0,ng=(n,t)=>n==t,e_=/\.\d*?(?=9{6,}|0{6,})/gm,no=n=>{if(og(n)||Si.has(n))return n;const t=`${n}`,e=t.match(e_);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,p]=t.split("e");return+`${no(f)}e${p}`}return Rt(n,r)};function ro(n,t){return no(Rt(no(n/t))*t)}function Qa(n,t){return no(yr(no(n/t))*t)}function rg(n,t){return no(lr(no(n/t))*t)}function Rt(n,t=0){if(og(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return yn(r)/e}const Si=new Map;function ig(n){return((""+n).split(".")[1]||"").length}function Ms(n,t,e,r){let f=[],p=r.map(ig);for(let y=t;y<e;y++){let v=mn(y),h=Rt(Po(n,y),v);for(let g=0;g<r.length;g++){let a=n==10?+`${r[g]}e${y}`:r[g]*h,c=(y>=0?0:v)+(y>=p[g]?0:p[g]),s=n==10?a:Rt(a,c);f.push(s),Si.set(s,c)}}return f}const Ls={},fu=[],Ho=[null,null],$i=Array.isArray,og=Number.isInteger,t_=n=>n===void 0;function sg(n){return typeof n=="string"}function Za(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function n_(n){return n!=null&&typeof n=="object"}const r_=Object.getPrototypeOf(Uint8Array),ag="__proto__";function zo(n,t=Za){let e;if($i(n)){let r=n.find(f=>f!=null);if($i(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=zo(n[f],t)}else e=n.slice()}else if(n instanceof r_)e=n.slice();else if(t(n)){e={};for(let r in n)r!=ag&&(e[r]=zo(n[r],t))}else e=n;return e}function ln(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=ag&&(Za(n[f])?ln(n[f],zo(r[f])):n[f]=zo(r[f]))}return n}const i_=0,o_=1,s_=2;function a_(n,t,e){for(let r=0,f,p=-1;r<t.length;r++){let y=t[r];if(y>p){for(f=y-1;f>=0&&n[f]==null;)n[f--]=null;for(f=y+1;f<e&&n[f]==null;)n[p=f++]=null}}}function l_(n,t){if(h_(n)){let y=n[0].slice();for(let v=1;v<n.length;v++)y.push(...n[v].slice(1));return d_(y[0])||(y=u_(y)),y}let e=new Set;for(let y=0;y<n.length;y++){let v=n[y][0],h=v.length;for(let g=0;g<h;g++)e.add(v[g])}let r=[Array.from(e).sort((y,v)=>y-v)],f=r[0].length,p=new Map;for(let y=0;y<f;y++)p.set(r[0][y],y);for(let y=0;y<n.length;y++){let v=n[y],h=v[0];for(let g=1;g<v.length;g++){let a=v[g],c=Array(f).fill(void 0),s=t?t[y][g]:o_,l=[];for(let o=0;o<a.length;o++){let u=a[o],m=p.get(h[o]);u===null?s!=i_&&(c[m]=u,s==s_&&l.push(m)):c[m]=u}a_(c,l,f),r.push(c)}}return r}const c_=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function u_(n){let t=n[0],e=t.length,r=Array(e);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,y)=>t[p]-t[y]);let f=[];for(let p=0;p<n.length;p++){let y=n[p],v=Array(e);for(let h=0;h<e;h++)v[h]=y[r[h]];f.push(v)}return f}function h_(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let p=0;p<e;p++)if(f[p]!=t[p])return!1}}return!0}function d_(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const p=In(1,lr((f-r+1)/t));for(let y=n[r],v=r+p;v<=f;v+=p){const h=n[v];if(h!=null){if(h<=y)return!1;y=h}}return!0}const lg=["January","February","March","April","May","June","July","August","September","October","November","December"],cg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function ug(n){return n.slice(0,3)}const f_=cg.map(ug),p_=lg.map(ug),g_={MMMM:lg,MMM:p_,WWWW:cg,WWW:f_};function Is(n){return(n<10?"0":"")+n}function m_(n){return(n<10?"00":n<100?"0":"")+n}const y_={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Is(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Is(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Is(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Is(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Is(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>m_(n.getMilliseconds())};function pu(n,t){t=t||g_;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?y_[f[1]]:f[0]);return p=>{let y="";for(let v=0;v<e.length;v++)y+=typeof e[v]=="string"?e[v]:e[v](p,t);return y}}const w_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function v_(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==w_?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const hg=n=>n%1==0,Ja=[1,2,2.5,5],b_=Ms(10,-32,0,Ja),dg=Ms(10,0,32,Ja),x_=dg.filter(hg),io=b_.concat(dg),gu=`
|
1407
|
+
`,fg="{YYYY}",pg=gu+fg,gg="{M}/{D}",Os=gu+gg,Xa=Os+"/{YY}",mg="{aa}",__="{h}:{mm}",Bo=__+mg,yg=gu+Bo,wg=":{ss}",_t=null;function vg(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,p=f*30,y=f*365,v=(n==1?Ms(10,0,3,Ja).filter(hg):Ms(10,-3,0,Ja)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,p,p*2,p*3,p*4,p*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const h=[[y,fg,_t,_t,_t,_t,_t,_t,1],[f*28,"{MMM}",pg,_t,_t,_t,_t,_t,1],[f,gg,pg,_t,_t,_t,_t,_t,1],[r,"{h}"+mg,Xa,_t,Os,_t,_t,_t,1],[e,Bo,Xa,_t,Os,_t,_t,_t,1],[t,wg,Xa+" "+Bo,_t,Os+" "+Bo,_t,yg,_t,1],[n,wg+".{fff}",Xa+" "+Bo,_t,Os+" "+Bo,_t,yg,_t,1]];function g(a){return(c,s,l,o,u,m)=>{let w=[],b=u>=y,M=u>=p&&u<y,C=a(l),k=Rt(C*n,3),x=mu(C.getFullYear(),b?0:C.getMonth(),M||b?1:C.getDate()),T=Rt(x*n,3);if(M||b){let R=M?u/p:0,I=b?u/y:0,E=k==T?k:Rt(mu(x.getFullYear()+I,x.getMonth()+R,1)*n,3),N=new Date(yn(E/n)),S=N.getFullYear(),_=N.getMonth();for(let $=0;E<=o;$++){let L=mu(S+I*$,_+R*$,1),O=L-a(Rt(L*n,3));E=Rt((+L+O)*n,3),E<=o&&w.push(E)}}else{let R=u>=f?f:u,I=lr(l)-lr(k),E=T+I+Qa(k-T,R);w.push(E);let N=a(E),S=N.getHours()+N.getMinutes()/e+N.getSeconds()/r,_=u/r,$=c.axes[s]._space,L=m/$;for(;E=Rt(E+u,n==1?0:3),!(E>o);)if(_>1){let O=lr(Rt(S+_,6))%24,F=a(E).getHours()-O;F>1&&(F=-1),E-=F*r,S=(S+_)%24;let H=w[w.length-1];Rt((E-H)/u,3)*L>=.7&&w.push(E)}else w.push(E)}return w}}return[v,h,g]}const[k_,S_,$_]=vg(1),[A_,C_,T_]=vg(.001);Ms(2,-53,53,[1]);function bg(n,t){return n.map(e=>e.map((r,f)=>f==0||f==8||r==null?r:t(f==1||e[8]==0?r:e[1]+r)))}function xg(n,t){return(e,r,f,p,y)=>{let v=t.find(o=>y>=o[0])||t[t.length-1],h,g,a,c,s,l;return r.map(o=>{let u=n(o),m=u.getFullYear(),w=u.getMonth(),b=u.getDate(),M=u.getHours(),C=u.getMinutes(),k=u.getSeconds(),x=m!=h&&v[2]||w!=g&&v[3]||b!=a&&v[4]||M!=c&&v[5]||C!=s&&v[6]||k!=l&&v[7]||v[1];return h=m,g=w,a=b,c=M,s=C,l=k,x(u)})}}function E_(n,t){let e=pu(t);return(r,f,p,y,v)=>f.map(h=>e(n(h)))}function mu(n,t,e){return new Date(n,t,e)}function _g(n,t){return t(n)}const R_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function kg(n,t){return(e,r,f,p)=>p==null?nu:t(n(r))}function M_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function L_(n,t){return n.series[t].fill(n,t)}const I_={show:!0,live:!0,isolate:!1,mount:J1,markers:{show:!0,width:2,stroke:M_,fill:L_,dash:"solid"},idx:null,idxs:null,values:[]};function O_(n,t){let e=n.cursor.points,r=mr(),f=e.size(n,t);Wt(r,Cs,f),Wt(r,Ts,f);let p=f/-2;Wt(r,"marginLeft",p),Wt(r,"marginTop",p);let y=e.width(n,t,f);return y&&Wt(r,"borderWidth",y),r}function D_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function N_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function F_(n,t){return n.series[t].points.size}const yu=[0,0];function W_(n,t,e){return yu[0]=t,yu[1]=e,yu}function el(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function wu(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const P_={show:!0,x:!0,y:!0,lock:!1,move:W_,points:{one:!1,show:O_,size:F_,width:0,stroke:N_,fill:D_},bind:{mousedown:el,mouseup:el,click:el,dblclick:el,mousemove:wu,mouseleave:wu,mouseenter:wu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Sg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},vu=ln({},Sg,{filter:eg}),$g=ln({},vu,{size:10}),Ag=ln({},Sg,{show:!1}),bu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Cg="bold "+bu,Tg=1.5,Eg={show:!0,scale:"x",stroke:eu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Cg,side:2,grid:vu,ticks:$g,border:Ag,font:bu,lineGap:Tg,rotate:0},H_="Value",z_="Time",Rg={show:!0,scale:"x",auto:!1,sorted:1,min:jt,max:-1/0,idxs:[]};function B_(n,t,e,r,f){return t.map(p=>p==null?"":uu(p))}function j_(n,t,e,r,f,p,y){let v=[],h=Si.get(f)||0;e=y?e:Rt(Qa(e,f),h);for(let g=e;g<=r;g=Rt(g+f,h))v.push(Object.is(g,-0)?0:g);return v}function xu(n,t,e,r,f,p,y){const v=[],h=n.scales[n.axes[t].scale].log,g=h==10?ni:Zp,a=lr(g(e));f=Po(h,a),h==10&&(f=io[Mr(f,io)]);let c=e,s=f*h;h==10&&(s=io[Mr(s,io)]);do v.push(c),c=c+f,h==10&&!Si.has(c)&&(c=Rt(c,Si.get(f))),c>=s&&(f=c,s=f*h,h==10&&(s=io[Mr(s,io)]));while(c<=r);return v}function U_(n,t,e,r,f,p,y){let v=n.scales[n.axes[t].scale].asinh,h=r>v?xu(n,t,In(v,e),r,f):[v],g=r>=0&&e<=0?[0]:[];return(e<-v?xu(n,t,In(v,-r),-e,f):[v]).reverse().map(a=>-a).concat(g,h)}const Mg=/./,V_=/[12357]/,q_=/[125]/,Lg=/1/,_u=(n,t,e,r)=>n.map((f,p)=>t==4&&f==0||p%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function G_(n,t,e,r,f){let p=n.axes[e],y=p.scale,v=n.scales[y],h=n.valToPos,g=p._space,a=h(10,y),c=h(9,y)-a>=g?Mg:h(7,y)-a>=g?V_:h(5,y)-a>=g?q_:Lg;if(c==Lg){let s=mn(h(1,y)-a);if(s<g)return _u(t.slice().reverse(),v.distr,c,yr(g/s)).reverse()}return _u(t,v.distr,c,1)}function Y_(n,t,e,r,f){let p=n.axes[e],y=p.scale,v=p._space,h=n.valToPos,g=mn(h(1,y)-h(2,y));return g<v?_u(t.slice().reverse(),3,Mg,yr(v/g)).reverse():t}function K_(n,t,e,r){return r==null?nu:t==null?"":uu(t)}const Ig={show:!0,scale:"y",stroke:eu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Cg,side:3,grid:vu,ticks:$g,border:Ag,font:bu,lineGap:Tg,rotate:0};function Q_(n,t){let e=3+(n||1)*2;return Rt(e*t,3)}function Z_(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],p=n.valToPos(f[r[0]],e,!0),y=n.valToPos(f[r[1]],e,!0),v=mn(y-p),h=n.series[t],g=v/(h.points.space*bt);return r[1]-r[0]<=g}const Og={scale:null,auto:!0,sorted:0,min:jt,max:-1/0},Dg=(n,t,e,r,f)=>f,Ng={show:!0,auto:!0,sorted:0,gaps:Dg,alpha:1,facets:[ln({},Og,{scale:"x"}),ln({},Og,{scale:"y"})]},Fg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Dg,alpha:1,points:{show:Z_,filter:null},values:null,min:jt,max:-1/0,idxs:[],path:null,clip:null};function J_(n,t,e,r,f){return e/10}const Wg={time:k1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},X_=ln({},Wg,{time:!1,ori:1}),Pg={};function Hg(n,t){let e=Pg[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,p,y,v,h,g){for(let a=0;a<e.plots.length;a++)e.plots[a]!=f&&e.plots[a].pub(r,f,p,y,v,h,g)}},n!=null&&(Pg[n]=e)),e}const jo=1,ku=2;function oo(n,t,e){const r=n.mode,f=n.series[t],p=r==2?n._data[t]:n._data,y=n.scales,v=n.bbox;let h=p[0],g=r==2?p[1]:p[t],a=r==2?y[f.facets[0].scale]:y[n.series[0].scale],c=r==2?y[f.facets[1].scale]:y[f.scale],s=v.left,l=v.top,o=v.width,u=v.height,m=n.valToPosH,w=n.valToPosV;return a.ori==0?e(f,h,g,a,c,m,w,s,l,o,u,nl,Uo,il,jg,Vg):e(f,h,g,a,c,w,m,l,s,u,o,rl,Vo,Au,Ug,qg)}function Su(n,t){let e=0,r=0,f=vt(n.bands,fu);for(let p=0;p<f.length;p++){let y=f[p];y.series[0]==t?e=y.dir:y.series[1]==t&&(y.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function ek(n,t,e,r,f){let p=n.mode,y=n.series[t],v=p==2?y.facets[1].scale:y.scale,h=n.scales[v];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function ri(n,t,e,r,f,p){return oo(n,t,(y,v,h,g,a,c,s,l,o,u,m)=>{let w=y.pxRound;const b=g.dir*(g.ori==0?1:-1),M=g.ori==0?Uo:Vo;let C,k;b==1?(C=e,k=r):(C=r,k=e);let x=w(c(v[C],g,u,l)),T=w(s(h[C],a,m,o)),R=w(c(v[k],g,u,l)),I=w(s(p==1?a.max:a.min,a,m,o)),E=new Path2D(f);return M(E,R,I),M(E,x,I),M(E,x,T),E})}function tl(n,t,e,r,f,p){let y=null;if(n.length>0){y=new Path2D;const v=t==0?il:Au;let h=e;for(let c=0;c<n.length;c++){let s=n[c];if(s[1]>s[0]){let l=s[0]-h;l>0&&v(y,h,r,l,r+p),h=s[1]}}let g=e+f-h,a=10;g>0&&v(y,h,r-a/2,g,r+p+a)}return y}function tk(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function $u(n,t,e,r,f,p,y){let v=[],h=n.length;for(let g=f==1?e:r;g>=e&&g<=r;g+=f)if(t[g]===null){let a=g,c=g;if(f==1)for(;++g<=r&&t[g]===null;)c=g;else for(;--g>=e&&t[g]===null;)c=g;let s=p(n[a]),l=c==a?s:p(n[c]),o=a-f;s=y<=0&&o>=0&&o<h?p(n[o]):s;let u=c+f;l=y>=0&&u>=0&&u<h?p(n[u]):l,l>=s&&v.push([s,l])}return v}function zg(n){return n==0?Xp:n==1?yn:t=>ro(t,n)}function Bg(n){let t=n==0?nl:rl,e=n==0?(f,p,y,v,h,g)=>{f.arcTo(p,y,v,h,g)}:(f,p,y,v,h,g)=>{f.arcTo(y,p,h,v,g)},r=n==0?(f,p,y,v,h)=>{f.rect(p,y,v,h)}:(f,p,y,v,h)=>{f.rect(y,p,h,v)};return(f,p,y,v,h,g=0,a=0)=>{g==0&&a==0?r(f,p,y,v,h):(g=wr(g,v/2,h/2),a=wr(a,v/2,h/2),t(f,p+g,y),e(f,p+v,y,p+v,y+h,g),e(f,p+v,y+h,p,y+h,a),e(f,p,y+h,p,y,a),e(f,p,y,p+v,y,g),f.closePath())}}const nl=(n,t,e)=>{n.moveTo(t,e)},rl=(n,t,e)=>{n.moveTo(e,t)},Uo=(n,t,e)=>{n.lineTo(t,e)},Vo=(n,t,e)=>{n.lineTo(e,t)},il=Bg(0),Au=Bg(1),jg=(n,t,e,r,f,p)=>{n.arc(t,e,r,f,p)},Ug=(n,t,e,r,f,p)=>{n.arc(e,t,r,f,p)},Vg=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(t,e,r,f,p,y)},qg=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(e,t,f,r,y,p)};function Gg(n){return(t,e,r,f,p)=>oo(t,e,(y,v,h,g,a,c,s,l,o,u,m)=>{let{pxRound:w,points:b}=y,M,C;g.ori==0?(M=nl,C=jg):(M=rl,C=Ug);const k=Rt(b.width*bt,3);let x=(b.size-b.width)/2*bt,T=Rt(x*2,3),R=new Path2D,I=new Path2D,{left:E,top:N,width:S,height:_}=t.bbox;il(I,E-T,N-T,S+T*2,_+T*2);const $=L=>{if(h[L]!=null){let O=w(c(v[L],g,u,l)),F=w(s(h[L],a,m,o));M(R,O+x,F),C(R,O,F,x,0,Ka*2)}};if(p)p.forEach($);else for(let L=r;L<=f;L++)$(L);return{stroke:k>0?R:null,fill:R,clip:I,flags:jo|ku}})}function Yg(n){return(t,e,r,f,p,y)=>{r!=f&&(p!=r&&y!=r&&n(t,e,r),p!=f&&y!=f&&n(t,e,f),n(t,e,y))}}const nk=Yg(Uo),rk=Yg(Vo);function Kg(n){const t=vt(n==null?void 0:n.alignGaps,0);return(e,r,f,p)=>oo(e,r,(y,v,h,g,a,c,s,l,o,u,m)=>{let w=y.pxRound,b=X=>w(c(X,g,u,l)),M=X=>w(s(X,a,m,o)),C,k;g.ori==0?(C=Uo,k=nk):(C=Vo,k=rk);const x=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:jo},R=T.stroke;let I=jt,E=-1/0,N,S,_,$=b(v[x==1?f:p]),L=Wo(h,f,p,1*x),O=Wo(h,f,p,-1*x),F=b(v[L]),H=b(v[O]),j=!1;for(let X=x==1?f:p;X>=f&&X<=p;X+=x){let G=b(v[X]),Z=h[X];G==$?Z!=null?(S=M(Z),I==jt&&(C(R,G,S),N=S),I=wr(S,I),E=In(S,E)):Z===null&&(j=!0):(I!=jt&&(k(R,$,I,E,N,S),_=$),Z!=null?(S=M(Z),C(R,G,S),I=E=N=S):(I=jt,E=-1/0,Z===null&&(j=!0)),$=G)}I!=jt&&I!=E&&_!=$&&k(R,$,I,E,N,S);let[V,q]=Su(e,r);if(y.fill!=null||V!=0){let X=T.fill=new Path2D(R),G=y.fillTo(e,r,y.min,y.max,V),Z=M(G);C(X,H,Z),C(X,F,Z)}if(!y.spanGaps){let X=[];j&&X.push(...$u(v,h,f,p,x,b,t)),T.gaps=X=y.gaps(e,r,f,p,X),T.clip=tl(X,g.ori,l,o,u,m)}return q!=0&&(T.band=q==2?[ri(e,r,f,p,R,-1),ri(e,r,f,p,R,1)]:ri(e,r,f,p,R,q)),T})}function ik(n){const t=vt(n.align,1),e=vt(n.ascDesc,!1),r=vt(n.alignGaps,0),f=vt(n.extend,!1);return(p,y,v,h)=>oo(p,y,(g,a,c,s,l,o,u,m,w,b,M)=>{let C=g.pxRound,{left:k,width:x}=p.bbox,T=V=>C(o(V,s,b,m)),R=V=>C(u(V,l,M,w)),I=s.ori==0?Uo:Vo;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:jo},N=E.stroke,S=s.dir*(s.ori==0?1:-1);v=Wo(c,v,h,1),h=Wo(c,v,h,-1);let _=R(c[S==1?v:h]),$=T(a[S==1?v:h]),L=$,O=$;f&&t==-1&&(O=k,I(N,O,_)),I(N,$,_);for(let V=S==1?v:h;V>=v&&V<=h;V+=S){let q=c[V];if(q==null)continue;let X=T(a[V]),G=R(q);t==1?I(N,X,_):I(N,L,G),I(N,X,G),_=G,L=X}let F=L;f&&t==1&&(F=k+x,I(N,F,_));let[H,j]=Su(p,y);if(g.fill!=null||H!=0){let V=E.fill=new Path2D(N),q=g.fillTo(p,y,g.min,g.max,H),X=R(q);I(V,F,X),I(V,O,X)}if(!g.spanGaps){let V=[];V.push(...$u(a,c,v,h,S,T,r));let q=g.width*bt/2,X=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),E.gaps=V=g.gaps(p,y,v,h,V),E.clip=tl(V,s.ori,m,w,b,M)}return j!=0&&(E.band=j==2?[ri(p,y,v,h,N,-1),ri(p,y,v,h,N,1)]:ri(p,y,v,h,N,j)),E})}function Qg(n,t,e,r,f,p,y=jt){if(n.length>1){let v=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(v!=null){let a=mn(n[h]-n[v]);a<g&&(g=a,y=mn(e(n[h],r,f,p)-e(n[v],r,f,p)))}v=h}}return y}function ok(n){n=n||Ls;const t=vt(n.size,[.6,jt,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const p=gt(f),y=1-t[0],v=vt(t[1],jt),h=vt(t[2],1),g=vt(n.disp,Ls),a=vt(n.each,l=>{}),{fill:c,stroke:s}=g;return(l,o,u,m)=>oo(l,o,(w,b,M,C,k,x,T,R,I,E,N)=>{let S=w.pxRound,_=e,$=r*bt,L=v*bt,O=h*bt,F,H;C.ori==0?[F,H]=p(l,o):[H,F]=p(l,o);const j=C.dir*(C.ori==0?1:-1);let V=C.ori==0?il:Au,q=C.ori==0?a:(He,ce,Ae,Ee,je,qe,ut)=>{a(He,ce,Ae,je,Ee,ut,qe)},X=vt(l.bands,fu).find(He=>He.series[0]==o),G=X!=null?X.dir:0,Z=w.fillTo(l,o,w.min,w.max,G),re=S(T(Z,k,N,I)),J,ae,me,we=E,pe=S(w.width*bt),_e=!1,rt=null,Dt=null,ct=null,ft=null;c!=null&&(pe==0||s!=null)&&(_e=!0,rt=c.values(l,o,u,m),Dt=new Map,new Set(rt).forEach(He=>{He!=null&&Dt.set(He,new Path2D)}),pe>0&&(ct=s.values(l,o,u,m),ft=new Map,new Set(ct).forEach(He=>{He!=null&&ft.set(He,new Path2D)})));let{x0:rn,size:Mt}=g;if(rn!=null&&Mt!=null){_=1,b=rn.values(l,o,u,m),rn.unit==2&&(b=b.map(ce=>l.posToVal(R+ce*E,C.key,!0)));let He=Mt.values(l,o,u,m);Mt.unit==2?ae=He[0]*E:ae=x(He[0],C,E,R)-x(0,C,E,R),we=Qg(b,M,x,C,E,R,we),me=we-ae+$}else we=Qg(b,M,x,C,E,R,we),me=we*y+$,ae=we-me;me<1&&(me=0),pe>=ae/2&&(pe=0),me<5&&(S=Xp);let Vt=me>0,jr=we-me-(Vt?pe:0);ae=S(du(jr,O,L)),J=(_==0?ae/2:_==j?0:ae)-_*j*((_==0?$/2:0)+(Vt?pe/2:0));const wn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Qt=_e?null:new Path2D;let De=null;if(X!=null)De=l.data[X.series[1]];else{let{y0:He,y1:ce}=g;He!=null&&ce!=null&&(M=ce.values(l,o,u,m),De=He.values(l,o,u,m))}let We=F*ae,Zt=H*ae;for(let He=j==1?u:m;He>=u&&He<=m;He+=j){let ce=M[He];if(ce==null)continue;if(De!=null){let st=De[He]??0;if(ce-st==0)continue;re=T(st,k,N,I)}let Ae=C.distr!=2||g!=null?b[He]:He,Ee=x(Ae,C,E,R),je=T(vt(ce,Z),k,N,I),qe=S(Ee-J),ut=S(In(je,re)),ht=S(wr(je,re)),ot=ut-ht;if(ce!=null){let st=ce<0?Zt:We,et=ce<0?We:Zt;_e?(pe>0&&ct[He]!=null&&V(ft.get(ct[He]),qe,ht+lr(pe/2),ae,In(0,ot-pe),st,et),rt[He]!=null&&V(Dt.get(rt[He]),qe,ht+lr(pe/2),ae,In(0,ot-pe),st,et)):V(Qt,qe,ht+lr(pe/2),ae,In(0,ot-pe),st,et),q(l,o,He,qe-pe/2,ht,ae+pe,ot)}}return pe>0?wn.stroke=_e?ft:Qt:_e||(wn._fill=w.width==0?w._fill:w._stroke??w._fill,wn.width=0),wn.fill=_e?Dt:Qt,wn})}function sk(n,t){const e=vt(t==null?void 0:t.alignGaps,0);return(r,f,p,y)=>oo(r,f,(v,h,g,a,c,s,l,o,u,m,w)=>{let b=v.pxRound,M=F=>b(s(F,a,m,o)),C=F=>b(l(F,c,w,u)),k,x,T;a.ori==0?(k=nl,T=Uo,x=Vg):(k=rl,T=Vo,x=qg);const R=a.dir*(a.ori==0?1:-1);p=Wo(g,p,y,1),y=Wo(g,p,y,-1);let I=M(h[R==1?p:y]),E=I,N=[],S=[];for(let F=R==1?p:y;F>=p&&F<=y;F+=R)if(g[F]!=null){let H=h[F],j=M(H);N.push(E=j),S.push(C(g[F]))}const _={stroke:n(N,S,k,T,x,b),fill:null,clip:null,band:null,gaps:null,flags:jo},$=_.stroke;let[L,O]=Su(r,f);if(v.fill!=null||L!=0){let F=_.fill=new Path2D($),H=v.fillTo(r,f,v.min,v.max,L),j=C(H);T(F,E,j),T(F,I,j)}if(!v.spanGaps){let F=[];F.push(...$u(h,g,p,y,R,M,e)),_.gaps=F=v.gaps(r,f,p,y,F),_.clip=tl(F,a.ori,o,u,m,w)}return O!=0&&(_.band=O==2?[ri(r,f,p,y,$,-1),ri(r,f,p,y,$,1)]:ri(r,f,p,y,$,O)),_})}function ak(n){return sk(lk,n)}function lk(n,t,e,r,f,p){const y=n.length;if(y<2)return null;const v=new Path2D;if(e(v,n[0],t[0]),y==2)r(v,n[1],t[1]);else{let h=Array(y),g=Array(y-1),a=Array(y-1),c=Array(y-1);for(let s=0;s<y-1;s++)a[s]=t[s+1]-t[s],c[s]=n[s+1]-n[s],g[s]=a[s]/c[s];h[0]=g[0];for(let s=1;s<y-1;s++)g[s]===0||g[s-1]===0||g[s-1]>0!=g[s]>0?h[s]=0:(h[s]=3*(c[s-1]+c[s])/((2*c[s]+c[s-1])/g[s-1]+(c[s]+2*c[s-1])/g[s]),isFinite(h[s])||(h[s]=0));h[y-1]=g[y-2];for(let s=0;s<y-1;s++)f(v,n[s]+c[s]/3,t[s]+h[s]*c[s]/3,n[s+1]-c[s]/3,t[s+1]-h[s+1]*c[s]/3,n[s+1],t[s+1])}return v}const Cu=new Set;function Zg(){for(let n of Cu)n.syncRect(!0)}No&&(to(B1,Fo,Zg),to(j1,Fo,Zg,!0),to(Va,Fo,()=>{On.pxRatio=bt}));const ck=Kg(),uk=Gg();function Jg(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,p)=>Tu(f,p,t,e))}function hk(n,t){return n.map((e,r)=>r==0?{}:ln({},t,e))}function Tu(n,t,e,r){return ln({},t==0?e:r,n)}function Xg(n,t,e){return t==null?Ho:[t,e]}const dk=Xg;function fk(n,t,e){return t==null?Ho:Ya(t,e,cu,!0)}function em(n,t,e,r){return t==null?Ho:Ga(t,e,n.scales[r].log,!1)}const pk=em;function tm(n,t,e,r){return t==null?Ho:lu(t,e,n.scales[r].log,!1)}const gk=tm;function mk(n,t,e,r,f){let p=In(Jp(n),Jp(t)),y=t-n,v=Mr(f/r*y,e);do{let h=e[v],g=r*h/y;if(g>=f&&p+(h<5?Si.get(h):0)<=17)return[h,g]}while(++v<e.length);return[0,0]}function nm(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=yn((e=+f)*bt))+"px"),[n,t,e]}function yk(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Rt(t[2]*bt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function On(n,t,e){const r={mode:vt(n.mode,1)},f=r.mode;function p(W,z){return((z.distr==3?ni(W>0?W:z.clamp(r,W,z.min,z.max,z.key)):z.distr==4?hu(W,z.asinh):z.distr==100?z.fwd(W):W)-z._min)/(z._max-z._min)}function y(W,z,Y,K){let te=p(W,z);return K+Y*(z.dir==-1?1-te:te)}function v(W,z,Y,K){let te=p(W,z);return K+Y*(z.dir==-1?te:1-te)}function h(W,z,Y,K){return z.ori==0?y(W,z,Y,K):v(W,z,Y,K)}r.valToPosH=y,r.valToPosV=v;let g=!1;r.status=0;const a=r.root=mr(S1);if(n.id!=null&&(a.id=n.id),sr(a,n.class),n.title){let W=mr(C1,a);W.textContent=n.title}const c=Rr("canvas"),s=r.ctx=c.getContext("2d"),l=mr(T1,a);to("click",l,W=>{W.target===u&&(Fe!=Di||Nt!=Ni)&&bn.click(r,W)},!0);const o=r.under=mr(E1,l);l.appendChild(c);const u=r.over=mr(R1,l);n=zo(n);const m=+vt(n.pxAlign,1),w=zg(m);(n.plugins||[]).forEach(W=>{W.opts&&(n=W.opts(r,n)||n)});const b=n.ms||.001,M=r.series=f==1?Jg(n.series||[],Rg,Fg,!1):hk(n.series||[null],Ng),C=r.axes=Jg(n.axes||[],Eg,Ig,!0),k=r.scales={},x=r.bands=n.bands||[];x.forEach(W=>{W.fill=gt(W.fill||null),W.dir=vt(W.dir,-1)});const T=f==2?M[1].facets[0].scale:M[0].scale,R={axes:Uh,series:Tl},I=(n.drawOrder||["axes","series"]).map(W=>R[W]);function E(W){let z=k[W];if(z==null){let Y=(n.scales||Ls)[W]||Ls;if(Y.from!=null)E(Y.from),k[W]=ln({},k[Y.from],Y,{key:W});else{z=k[W]=ln({},W==T?Wg:X_,Y),z.key=W;let K=z.time,te=z.range,oe=$i(te);if((W!=T||f==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Yp:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Yp:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Za(te))){let de=te;te=(ve,be,xe)=>be==null?Ho:Ya(be,xe,de)}z.range=gt(te||(K?dk:W==T?z.distr==3?pk:z.distr==4?gk:Xg:z.distr==3?em:z.distr==4?tm:fk)),z.auto=gt(oe?!1:z.auto),z.clamp=gt(z.clamp||J_),z._min=z._max=null}}}E("x"),E("y"),f==1&&M.forEach(W=>{E(W.scale)}),C.forEach(W=>{E(W.scale)});for(let W in n.scales)E(W);const N=k[T],S=N.distr;let _,$;N.ori==0?(sr(a,$1),_=y,$=v):(sr(a,A1),_=v,$=y);const L={};for(let W in k){let z=k[W];(z.min!=null||z.max!=null)&&(L[W]={min:z.min,max:z.max},z.min=z.max=null)}const O=n.tzDate||(W=>new Date(yn(W/b))),F=n.fmtDate||pu,H=b==1?$_(O):T_(O),j=xg(O,bg(b==1?S_:C_,F)),V=kg(O,_g(R_,F)),q=[],X=r.legend=ln({},I_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=gt(Z.width),Z.dash=gt(Z.dash),Z.stroke=gt(Z.stroke),Z.fill=gt(Z.fill);let re,J,ae,me=[],we=[],pe,_e=!1,rt={};if(X.live){const W=M[1]?M[1].values:null;_e=W!=null,pe=_e?W(r,1,0):{_:0};for(let z in pe)rt[z]=nu}if(G)if(re=Rr("table",N1,a),ae=Rr("tbody",null,re),X.mount(r,re),_e){J=Rr("thead",null,re,ae);let W=Rr("tr",null,J);Rr("th",null,W);for(var Dt in pe)Rr("th",Op,W).textContent=Dt}else sr(re,W1),X.live&&sr(re,F1);const ct={show:!0},ft={show:!1};function rn(W,z){if(z==0&&(_e||!X.live||f==2))return Ho;let Y=[],K=Rr("tr",P1,ae,ae.childNodes[z]);sr(K,W.class),W.show||sr(K,eo);let te=Rr("th",null,K);if(Z.show){let ve=mr(H1,te);if(z>0){let be=Z.width(r,z);be&&(ve.style.border=be+"px "+Z.dash(r,z)+" "+Z.stroke(r,z)),ve.style.background=Z.fill(r,z)}}let oe=mr(Op,te);oe.textContent=W.label,z>0&&(Z.show||(oe.style.color=W.width>0?Z.stroke(r,z):Z.fill(r,z)),Vt("click",te,ve=>{if(Ne._lock)return;oi(ve);let be=M.indexOf(W);if((ve.ctrlKey||ve.metaKey)!=X.isolate){let xe=M.some((Se,Ce)=>Ce>0&&Ce!=be&&Se.show);M.forEach((Se,Ce)=>{Ce>0&&An(Ce,xe?Ce==be?ct:ft:ct,!0,qt.setSeries)})}else An(be,{show:!W.show},!0,qt.setSeries)},!1),Vr&&Vt(Pp,te,ve=>{Ne._lock||(oi(ve),An(M.indexOf(W),ci,!0,qt.setSeries))},!1));for(var de in pe){let ve=Rr("td",z1,K);ve.textContent="--",Y.push(ve)}return[K,Y]}const Mt=new Map;function Vt(W,z,Y,K=!0){const te=Mt.get(z)||{},oe=Ne.bind[W](r,z,Y,K);oe&&(to(W,z,te[W]=oe),Mt.set(z,te))}function jr(W,z,Y){const K=Mt.get(z)||{};for(let te in K)(W==null||te==W)&&(au(te,z,K[te]),delete K[te]);W==null&&Mt.delete(z)}let wn=0,Qt=0,De=0,We=0,Zt=0,He=0,ce=Zt,Ae=He,Ee=De,je=We,qe=0,ut=0,ht=0,ot=0;r.bbox={};let st=!1,et=!1,Pt=!1,Nn=!1,ii=!1,Zn=!1;function zs(W,z,Y){(Y||W!=r.width||z!=r.height)&&Bs(W,z),ai(!1),Pt=!0,et=!0,Ii()}function Bs(W,z){r.width=wn=De=W,r.height=Qt=We=z,Zt=He=0,Ph(),Hh();let Y=r.bbox;qe=Y.left=ro(Zt*bt,.5),ut=Y.top=ro(He*bt,.5),ht=Y.width=ro(De*bt,.5),ot=Y.height=ro(We*bt,.5)}const _l=3;function Fh(){let W=!1,z=0;for(;!W;){z++;let Y=Ml(z),K=Ll(z);W=z==_l||Y&&K,W||(Bs(r.width,r.height),et=!0)}}function Wh({width:W,height:z}){zs(W,z)}r.setSize=Wh;function Ph(){let W=!1,z=!1,Y=!1,K=!1;C.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:ve}=te,be=de%2,xe=te.label!=null?te.labelSize:0,Se=ve+xe;Se>0&&(be?(De-=Se,de==3?(Zt+=Se,K=!0):Y=!0):(We-=Se,de==0?(He+=Se,W=!0):z=!0))}}),si[0]=W,si[1]=Y,si[2]=z,si[3]=K,De-=qr[1]+qr[3],Zt+=qr[3],We-=qr[2]+qr[0],He+=qr[0]}function Hh(){let W=Zt+De,z=He+We,Y=Zt,K=He;function te(oe,de){switch(oe){case 1:return W+=de,W-de;case 2:return z+=de,z-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}C.forEach((oe,de)=>{if(oe.show&&oe._show){let ve=oe.side;oe._pos=te(ve,oe._size),oe.label!=null&&(oe._lpos=te(ve,oe.labelSize))}})}const Ne=r.cursor=ln({},P_,{drag:{y:f==2}},n.cursor);if(Ne.dataIdx==null){let W=Ne.hover,z=W.skip=new Set(W.skip??[]);z.add(void 0);let Y=W.prox=gt(W.prox),K=W.bias??(W.bias=0);Ne.dataIdx=(te,oe,de,ve)=>{if(oe==0)return de;let be=de,xe=Y(te,oe,de,ve)??jt,Se=xe>=0&&xe<jt,Ce=N.ori==0?De:We,Ge=Ne.left,Ct=t[0],tt=t[oe];if(z.has(tt[de])){be=null;let Ue=null,Ke=null,Re;if(K==0||K==-1)for(Re=de;Ue==null&&Re-- >0;)z.has(tt[Re])||(Ue=Re);if(K==0||K==1)for(Re=de;Ke==null&&Re++<tt.length;)z.has(tt[Re])||(Ke=Re);if(Ue!=null||Ke!=null)if(Se){let kt=Ue==null?-1/0:_(Ct[Ue],N,Ce,0),Gt=Ke==null?1/0:_(Ct[Ke],N,Ce,0),Bt=Ge-kt,It=Gt-Ge;Bt<=It?Bt<=xe&&(be=Ue):It<=xe&&(be=Ke)}else be=Ke==null?Ue:Ue==null?Ke:de-Ue<=Ke-de?Ue:Ke}else Se&&mn(Ge-_(Ct[de],N,Ce,0))>xe&&(be=null);return be}}const oi=W=>{Ne.event=W};Ne.idxs=q,Ne._lock=!1;let $n=Ne.points;$n.show=gt($n.show),$n.size=gt($n.size),$n.stroke=gt($n.stroke),$n.width=gt($n.width),$n.fill=gt($n.fill);const Ur=r.focus=ln({},n.focus||{alpha:.3},Ne.focus),Vr=Ur.prox>=0,Ai=Vr&&$n.one;let Fn=[],Ci=[],Ti=[];function kl(W,z){let Y=$n.show(r,z);if(Y)return sr(Y,D1),sr(Y,W.class),Pr(Y,-10,-10,De,We),u.insertBefore(Y,Fn[z]),Y}function Sl(W,z){if(f==1||z>0){let Y=f==1&&k[W.scale].time,K=W.value;W.value=Y?sg(K)?kg(O,_g(K,F)):K||V:K||K_,W.label=W.label||(Y?z_:H_)}if(Ai||z>0){W.width=W.width==null?1:W.width,W.paths=W.paths||ck||X1,W.fillTo=gt(W.fillTo||ek),W.pxAlign=+vt(W.pxAlign,m),W.pxRound=zg(W.pxAlign),W.stroke=gt(W.stroke||null),W.fill=gt(W.fill||null),W._stroke=W._fill=W._paths=W._focus=null;let Y=Q_(In(1,W.width),1),K=W.points=ln({},{size:Y,width:In(1,Y*.2),stroke:W.stroke,space:Y*2,paths:uk,_stroke:null,_fill:null},W.points);K.show=gt(K.show),K.filter=gt(K.filter),K.fill=gt(K.fill),K.stroke=gt(K.stroke),K.paths=gt(K.paths),K.pxAlign=W.pxAlign}if(G){let Y=rn(W,z);me.splice(z,0,Y[0]),we.splice(z,0,Y[1]),X.values.push(null)}if(Ne.show){q.splice(z,0,null);let Y=null;Ai?z==0&&(Y=kl(W,z)):z>0&&(Y=kl(W,z)),Fn.splice(z,0,Y),Ci.splice(z,0,0),Ti.splice(z,0,0)}Jt("addSeries",z)}function zh(W,z){z=z??M.length,W=f==1?Tu(W,z,Rg,Fg):Tu(W,z,{},Ng),M.splice(z,0,W),Sl(M[z],z)}r.addSeries=zh;function Bh(W){if(M.splice(W,1),G){X.values.splice(W,1),we.splice(W,1);let z=me.splice(W,1)[0];jr(null,z.firstChild),z.remove()}Ne.show&&(q.splice(W,1),Fn.splice(W,1)[0].remove(),Ci.splice(W,1),Ti.splice(W,1)),Jt("delSeries",W)}r.delSeries=Bh;const si=[!1,!1,!1,!1];function jh(W,z){if(W._show=W.show,W.show){let Y=W.side%2,K=k[W.scale];K==null&&(W.scale=Y?M[1].scale:T,K=k[W.scale]);let te=K.time;W.size=gt(W.size),W.space=gt(W.space),W.rotate=gt(W.rotate),$i(W.incrs)&&W.incrs.forEach(de=>{!Si.has(de)&&Si.set(de,ig(de))}),W.incrs=gt(W.incrs||(K.distr==2?x_:te?b==1?k_:A_:io)),W.splits=gt(W.splits||(te&&K.distr==1?H:K.distr==3?xu:K.distr==4?U_:j_)),W.stroke=gt(W.stroke),W.grid.stroke=gt(W.grid.stroke),W.ticks.stroke=gt(W.ticks.stroke),W.border.stroke=gt(W.border.stroke);let oe=W.values;W.values=$i(oe)&&!$i(oe[0])?gt(oe):te?$i(oe)?xg(O,bg(oe,F)):sg(oe)?E_(O,oe):oe||j:oe||B_,W.filter=gt(W.filter||(K.distr>=3&&K.log==10?G_:K.distr==3&&K.log==2?Y_:eg)),W.font=nm(W.font),W.labelFont=nm(W.labelFont),W._size=W.size(r,null,z,0),W._space=W._rotate=W._incrs=W._found=W._splits=W._values=null,W._size>0&&(si[z]=!0,W._el=mr(M1,l))}}function Ei(W,z,Y,K){let[te,oe,de,ve]=Y,be=z%2,xe=0;return be==0&&(ve||oe)&&(xe=z==0&&!te||z==2&&!de?yn(Eg.size/3):0),be==1&&(te||de)&&(xe=z==1&&!oe||z==3&&!ve?yn(Ig.size/2):0),xe}const $l=r.padding=(n.padding||[Ei,Ei,Ei,Ei]).map(W=>gt(vt(W,Ei))),qr=r._padding=$l.map((W,z)=>W(r,z,si,0));let vn,un=null,hn=null;const Ko=f==1?M[0].idxs:null;let Wn=null,co=!1;function uo(W,z){if(t=W??[],r.data=r._data=t,f==2){vn=0;for(let Y=1;Y<M.length;Y++)vn+=t[Y][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Wn=t[0],vn=Wn.length;let Y=t;if(S==2){Y=t.slice();let K=Y[0]=Array(vn);for(let te=0;te<vn;te++)K[te]=te}r._data=t=Y}if(ai(!0),Jt("setData"),S==2&&(Pt=!0),z!==!1){let Y=N;Y.auto(r,co)?js():br(T,Y.min,Y.max),Nn=Nn||Ne.left>=0,Zn=!0,Ii()}}r.setData=uo;function js(){co=!0;let W,z;f==1&&(vn>0?(un=Ko[0]=0,hn=Ko[1]=vn-1,W=t[0][un],z=t[0][hn],S==2?(W=un,z=hn):W==z&&(S==3?[W,z]=Ga(W,W,N.log,!1):S==4?[W,z]=lu(W,W,N.log,!1):N.time?z=W+yn(86400/b):[W,z]=Ya(W,z,cu,!0))):(un=Ko[0]=W=null,hn=Ko[1]=z=null)),br(T,W,z)}let Qo,Ri,Zo,Jo,Xo,Us,Vs,qs,Gs,vr;function Ys(W,z,Y,K,te,oe){W??(W=Np),Y??(Y=fu),K??(K="butt"),te??(te=Np),oe??(oe="round"),W!=Qo&&(s.strokeStyle=Qo=W),te!=Ri&&(s.fillStyle=Ri=te),z!=Zo&&(s.lineWidth=Zo=z),oe!=Xo&&(s.lineJoin=Xo=oe),K!=Us&&(s.lineCap=Us=K),Y!=Jo&&s.setLineDash(Jo=Y)}function Ks(W,z,Y,K){z!=Ri&&(s.fillStyle=Ri=z),W!=Vs&&(s.font=Vs=W),Y!=qs&&(s.textAlign=qs=Y),K!=Gs&&(s.textBaseline=Gs=K)}function ho(W,z,Y,K,te=0){if(K.length>0&&W.auto(r,co)&&(z==null||z.min==null)){let oe=vt(un,0),de=vt(hn,K.length-1),ve=Y.min==null?W.distr==3?G1(K,oe,de):q1(K,oe,de,te):[Y.min,Y.max];W.min=wr(W.min,Y.min=ve[0]),W.max=In(W.max,Y.max=ve[1])}}const Al={min:null,max:null};function Cl(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[T]!=null&&te.auto(r,co))&&(L[K]=Al)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=Al)}L[T]!=null&&ai(!0);let W={};for(let K in L){let te=L[K];if(te!=null){let oe=W[K]=zo(k[K],n_);if(te.min!=null)ln(oe,te);else if(K!=T||f==2)if(vn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=jt,oe.max=-1/0}}if(vn>0){M.forEach((K,te)=>{if(f==1){let oe=K.scale,de=L[oe];if(de==null)return;let ve=W[oe];if(te==0){let be=ve.range(r,ve.min,ve.max,oe);ve.min=be[0],ve.max=be[1],un=Mr(ve.min,t[0]),hn=Mr(ve.max,t[0]),hn-un>1&&(t[0][un]<ve.min&&un++,t[0][hn]>ve.max&&hn--),K.min=Wn[un],K.max=Wn[hn]}else K.show&&K.auto&&ho(ve,de,K,t[te],K.sorted);K.idxs[0]=un,K.idxs[1]=hn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,ve=oe.scale,be=de.scale,[xe,Se]=t[te],Ce=W[ve],Ge=W[be];Ce!=null&&ho(Ce,L[ve],oe,xe,oe.sorted),Ge!=null&&ho(Ge,L[be],de,Se,de.sorted),K.min=de.min,K.max=de.max}});for(let K in W){let te=W[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==jt?null:te.min,te.max==-1/0?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in W){let te=W[K];if(te.from!=null){let oe=W[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(r,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let z={},Y=!1;for(let K in W){let te=W[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?ni(oe.min):de==4?hu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?ni(oe.max):de==4?hu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,z[K]=Y=!0}}if(Y){M.forEach((K,te)=>{f==2?te>0&&z.y&&(K._paths=null):z[K.scale]&&(K._paths=null)});for(let K in z)Pt=!0,Jt("setScale",K);Ne.show&&Ne.left>=0&&(Nn=Zn=!0)}for(let K in L)L[K]=null}function es(W){let z=du(un-1,0,vn-1),Y=du(hn+1,0,vn-1);for(;W[z]==null&&z>0;)z--;for(;W[Y]==null&&Y<vn-1;)Y++;return[z,Y]}function Tl(){vn>0&&(M.forEach((W,z)=>{if(z>0&&W.show&&(El(z,!1),El(z,!0),W._paths==null)){vr!=W.alpha&&(s.globalAlpha=vr=W.alpha);let Y=f==2?[0,t[z][0].length-1]:es(t[z]);W._paths=W.paths(r,z,Y[0],Y[1]),vr!=1&&(s.globalAlpha=vr=1)}}),M.forEach((W,z)=>{if(z>0&&W.show){vr!=W.alpha&&(s.globalAlpha=vr=W.alpha),W._paths!=null&&Qs(z,!1);{let Y=W._paths!=null?W._paths.gaps:null,K=W.points.show(r,z,un,hn,Y),te=W.points.filter(r,z,K,Y);(K||te)&&(W.points._paths=W.points.paths(r,z,un,hn,te),Qs(z,!0))}vr!=1&&(s.globalAlpha=vr=1),Jt("drawSeries",z)}}))}function El(W,z){let Y=z?M[W].points:M[W];Y._stroke=Y.stroke(r,W),Y._fill=Y.fill(r,W)}function Qs(W,z){let Y=z?M[W].points:M[W],{stroke:K,fill:te,clip:oe,flags:de,_stroke:ve=Y._stroke,_fill:be=Y._fill,_width:xe=Y.width}=Y._paths;xe=Rt(xe*bt,3);let Se=null,Ce=xe%2/2;z&&be==null&&(be=xe>0?"#fff":ve);let Ge=Y.pxAlign==1&&Ce>0;if(Ge&&s.translate(Ce,Ce),!z){let Ct=qe-xe/2,tt=ut-xe/2,Ue=ht+xe,Ke=ot+xe;Se=new Path2D,Se.rect(Ct,tt,Ue,Ke)}z?Zs(ve,xe,Y.dash,Y.cap,be,K,te,de,oe):Rl(W,ve,xe,Y.dash,Y.cap,be,K,te,de,Se,oe),Ge&&s.translate(-Ce,-Ce)}function Rl(W,z,Y,K,te,oe,de,ve,be,xe,Se){let Ce=!1;be!=0&&x.forEach((Ge,Ct)=>{if(Ge.series[0]==W){let tt=M[Ge.series[1]],Ue=t[Ge.series[1]],Ke=(tt._paths||Ls).band;$i(Ke)&&(Ke=Ge.dir==1?Ke[0]:Ke[1]);let Re,kt=null;tt.show&&Ke&&K1(Ue,un,hn)?(kt=Ge.fill(r,Ct)||oe,Re=tt._paths.clip):Ke=null,Zs(z,Y,K,te,kt,de,ve,be,xe,Se,Re,Ke),Ce=!0}}),Ce||Zs(z,Y,K,te,oe,de,ve,be,xe,Se)}const ts=jo|ku;function Zs(W,z,Y,K,te,oe,de,ve,be,xe,Se,Ce){Ys(W,z,Y,K,te),(be||xe||Ce)&&(s.save(),be&&s.clip(be),xe&&s.clip(xe)),Ce?(ve&ts)==ts?(s.clip(Ce),Se&&s.clip(Se),Mi(te,de),fo(W,oe,z)):ve&ku?(Mi(te,de),s.clip(Ce),fo(W,oe,z)):ve&jo&&(s.save(),s.clip(Ce),Se&&s.clip(Se),Mi(te,de),s.restore(),fo(W,oe,z)):(Mi(te,de),fo(W,oe,z)),(be||xe||Ce)&&s.restore()}function fo(W,z,Y){Y>0&&(z instanceof Map?z.forEach((K,te)=>{s.strokeStyle=Qo=te,s.stroke(K)}):z!=null&&W&&s.stroke(z))}function Mi(W,z){z instanceof Map?z.forEach((Y,K)=>{s.fillStyle=Ri=K,s.fill(Y)}):z!=null&&W&&s.fill(z)}function Js(W,z,Y,K){let te=C[W],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,W,z,Y,K),ve=te._incrs=te.incrs(r,W,z,Y,K,de);oe=mk(z,Y,ve,K,de)}return te._found=oe}function Gr(W,z,Y,K,te,oe,de,ve,be,xe){let Se=de%2/2;m==1&&s.translate(Se,Se),Ys(ve,de,be,xe,ve),s.beginPath();let Ce,Ge,Ct,tt,Ue=te+(K==0||K==3?-oe:oe);Y==0?(Ge=te,tt=Ue):(Ce=te,Ct=Ue);for(let Ke=0;Ke<W.length;Ke++)z[Ke]!=null&&(Y==0?Ce=Ct=W[Ke]:Ge=tt=W[Ke],s.moveTo(Ce,Ge),s.lineTo(Ct,tt));s.stroke(),m==1&&s.translate(-Se,-Se)}function Ml(W){let z=!0;return C.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(z=!1,Y._show=!1,ai(!1));return}else Y._show||(z=!1,Y._show=!0,ai(!1));let oe=Y.side,de=oe%2,{min:ve,max:be}=te,[xe,Se]=Js(K,ve,be,de==0?De:We);if(Se==0)return;let Ce=te.distr==2,Ge=Y._splits=Y.splits(r,K,ve,be,xe,Se,Ce),Ct=te.distr==2?Ge.map(Re=>Wn[Re]):Ge,tt=te.distr==2?Wn[Ge[1]]-Wn[Ge[0]]:xe,Ue=Y._values=Y.values(r,Y.filter(r,Ct,K,Se,tt),K,Se,tt);Y._rotate=oe==2?Y.rotate(r,Ue,K,Se):0;let Ke=Y._size;Y._size=yr(Y.size(r,Ue,K,W)),Ke!=null&&Y._size!=Ke&&(z=!1)}),z}function Ll(W){let z=!0;return $l.forEach((Y,K)=>{let te=Y(r,K,si,W);te!=qr[K]&&(z=!1),qr[K]=te}),z}function Uh(){for(let W=0;W<C.length;W++){let z=C[W];if(!z.show||!z._show)continue;let Y=z.side,K=Y%2,te,oe,de=z.stroke(r,W),ve=Y==0||Y==3?-1:1;if(z.label){let _n=z.labelGap*ve,Vn=yn((z._lpos+_n)*bt);Ks(z.labelFont[0],de,"center",Y==2?Es:Dp),s.save(),K==1?(te=oe=0,s.translate(Vn,yn(ut+ot/2)),s.rotate((Y==3?-Ka:Ka)/2)):(te=yn(qe+ht/2),oe=Vn),s.fillText(z.label,te,oe),s.restore()}let[be,xe]=z._found;if(xe==0)continue;let Se=k[z.scale],Ce=K==0?ht:ot,Ge=K==0?qe:ut,Ct=yn(z.gap*bt),tt=z._splits,Ue=Se.distr==2?tt.map(_n=>Wn[_n]):tt,Ke=Se.distr==2?Wn[tt[1]]-Wn[tt[0]]:be,Re=z.ticks,kt=z.border,Gt=Re.show?yn(Re.size*bt):0,Bt=z._rotate*-Ka/180,It=w(z._pos*bt),Ot=(Gt+Ct)*ve,ne=It+Ot;oe=K==0?ne:0,te=K==1?ne:0;let le=z.font[0],se=z.align==1?Do:z.align==2?Xc:Bt>0?Do:Bt<0?Xc:K==0?"center":Y==3?Xc:Do,ke=Bt||K==1?"middle":Y==2?Es:Dp;Ks(le,de,se,ke);let Oe=z.font[1]*z.lineGap,Ye=tt.map(_n=>w(h(_n,Se,Ce,Ge))),St=z._values;for(let _n=0;_n<St.length;_n++){let Vn=St[_n];if(Vn!=null){K==0?te=Ye[_n]:oe=Ye[_n],Vn=""+Vn;let kn=Vn.indexOf(`
|
1408
|
+
`)==-1?[Vn]:Vn.split(/\n/gm);for(let ur=0;ur<kn.length;ur++){let er=kn[ur];Bt?(s.save(),s.translate(te,oe+ur*Oe),s.rotate(Bt),s.fillText(er,0,0),s.restore()):s.fillText(er,te,oe+ur*Oe)}}}Re.show&&Gr(Ye,Re.filter(r,Ue,W,xe,Ke),K,Y,It,Gt,Rt(Re.width*bt,3),Re.stroke(r,W),Re.dash,Re.cap);let Qe=z.grid;Qe.show&&Gr(Ye,Qe.filter(r,Ue,W,xe,Ke),K,K==0?2:1,K==0?ut:qe,K==0?ot:ht,Rt(Qe.width*bt,3),Qe.stroke(r,W),Qe.dash,Qe.cap),kt.show&&Gr([It],[1],K==0?1:0,K==0?1:2,K==1?ut:qe,K==1?ot:ht,Rt(kt.width*bt,3),kt.stroke(r,W),kt.dash,kt.cap)}Jt("drawAxes")}function ai(W){M.forEach((z,Y)=>{Y>0&&(z._paths=null,W&&(f==1?(z.min=null,z.max=null):z.facets.forEach(K=>{K.min=null,K.max=null})))})}let po=!1,ns=!1,Li=[];function Vh(){ns=!1;for(let W=0;W<Li.length;W++)Jt(...Li[W]);Li.length=0}function Ii(){po||(c_(Xs),po=!0)}function qh(W,z=!1){po=!0,ns=z,W(r),Xs(),z&&Li.length>0&&queueMicrotask(Vh)}r.batch=qh;function Xs(){if(st&&(Cl(),st=!1),Pt&&(Fh(),Pt=!1),et){if(Wt(o,Do,Zt),Wt(o,Es,He),Wt(o,Cs,De),Wt(o,Ts,We),Wt(u,Do,Zt),Wt(u,Es,He),Wt(u,Cs,De),Wt(u,Ts,We),Wt(l,Cs,wn),Wt(l,Ts,Qt),c.width=yn(wn*bt),c.height=yn(Qt*bt),C.forEach(({_el:W,_show:z,_size:Y,_pos:K,side:te})=>{if(W!=null)if(z){let oe=te===3||te===0?Y:0,de=te%2==1;Wt(W,de?"left":"top",K-oe),Wt(W,de?"width":"height",Y),Wt(W,de?"top":"left",de?He:Zt),Wt(W,de?"height":"width",de?We:De),ou(W,eo)}else sr(W,eo)}),Qo=Ri=Zo=Xo=Us=Vs=qs=Gs=Jo=null,vr=1,mo(!0),Zt!=ce||He!=Ae||De!=Ee||We!=je){ai(!1);let W=De/Ee,z=We/je;if(Ne.show&&!Nn&&Ne.left>=0){Ne.left*=W,Ne.top*=z,Oi&&Pr(Oi,yn(Ne.left),0,De,We),Yr&&Pr(Yr,0,yn(Ne.top),De,We);for(let Y=0;Y<Fn.length;Y++){let K=Fn[Y];K!=null&&(Ci[Y]*=W,Ti[Y]*=z,Pr(K,yr(Ci[Y]),yr(Ti[Y]),De,We))}}if(Lt.show&&!ii&&Lt.left>=0&&Lt.width>0){Lt.left*=W,Lt.width*=W,Lt.top*=z,Lt.height*=z;for(let Y in oa)Wt(li,Y,Lt[Y])}ce=Zt,Ae=He,Ee=De,je=We}Jt("setSize"),et=!1}wn>0&&Qt>0&&(s.clearRect(0,0,c.width,c.height),Jt("drawClear"),I.forEach(W=>W()),Jt("draw")),Lt.show&&ii&&(rs(Lt),ii=!1),Ne.show&&Nn&&(Pn(null,!0,!1),Nn=!1),X.show&&X.live&&Zn&&(go(),Zn=!1),g||(g=!0,r.status=1,Jt("ready")),co=!1,po=!1}r.redraw=(W,z)=>{Pt=z||!1,W!==!1?br(T,N.min,N.max):Ii()};function ea(W,z){let Y=k[W];if(Y.from==null){if(vn==0){let K=Y.range(r,z.min,z.max,W);z.min=K[0],z.max=K[1]}if(z.min>z.max){let K=z.min;z.min=z.max,z.max=K}if(vn>1&&z.min!=null&&z.max!=null&&z.max-z.min<1e-16)return;W==T&&Y.distr==2&&vn>0&&(z.min=Mr(z.min,t[0]),z.max=Mr(z.max,t[0]),z.min==z.max&&z.max++),L[W]=z,st=!0,Ii()}}r.setScale=ea;let ta,na,Oi,Yr,Il,Ol,Di,Ni,Dl,Et,Fe,Nt,Kr=!1;const bn=Ne.drag;let dn=bn.x,fn=bn.y;Ne.show&&(Ne.x&&(ta=mr(I1,u)),Ne.y&&(na=mr(O1,u)),N.ori==0?(Oi=ta,Yr=na):(Oi=na,Yr=ta),Fe=Ne.left,Nt=Ne.top);const Lt=r.select=ln({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),li=Lt.show?mr(L1,Lt.over?u:o):null;function rs(W,z){if(Lt.show){for(let Y in W)Lt[Y]=W[Y],Y in oa&&Wt(li,Y,W[Y]);z!==!1&&Jt("setSelect")}}r.setSelect=rs;function xn(W,z){let Y=M[W],K=G?me[W]:null;if(Y.show)K&&ou(K,eo);else{K&&sr(K,eo);let te=Ai?Fn[0]:Fn[W];Pr(te,-10,-10,De,We)}}function br(W,z,Y){ea(W,{min:z,max:Y})}function An(W,z,Y,K){z.focus!=null&&Wl(W),z.show!=null&&M.forEach((te,oe)=>{oe>0&&(W==oe||W==null)&&(te.show=z.show,xn(oe,z.show),f==2?(br(te.facets[0].scale,null,null),br(te.facets[1].scale,null,null)):br(te.scale,null,null),Ii())}),Y!==!1&&Jt("setSeries",W,z),K&&Or("setSeries",r,W,z)}r.setSeries=An;function Nl(W,z){ln(x[W],z)}function ra(W,z){W.fill=gt(W.fill||null),W.dir=vt(W.dir,-1),z=z??x.length,x.splice(z,0,W)}function Jn(W){W==null?x.length=0:x.splice(W,1)}r.addBand=ra,r.setBand=Nl,r.delBand=Jn;function Fl(W,z){M[W].alpha=z,Ne.show&&Fn[W]&&(Fn[W].style.opacity=z),G&&me[W]&&(me[W].style.opacity=z)}let xr,Ir,Qr;const ci={focus:!0};function Wl(W){if(W!=Qr){let z=W==null,Y=Ur.alpha!=1;M.forEach((K,te)=>{if(f==1||te>0){let oe=z||te==0||te==W;K._focus=z?null:oe,Y&&Fl(te,oe?1:Ur.alpha)}}),Qr=W,Y&&Ii()}}G&&Vr&&Vt(Hp,re,W=>{Ne._lock||(oi(W),Qr!=null&&An(null,ci,!0,qt.setSeries))});function zt(W,z,Y){let K=k[z];Y&&(W=W/bt-(K.ori==1?He:Zt));let te=De;K.ori==1&&(te=We,W=te-W),K.dir==-1&&(W=te-W);let oe=K._min,de=K._max,ve=W/te,be=oe+(de-oe)*ve,xe=K.distr;return xe==3?Po(10,be):xe==4?Z1(be,K.asinh):xe==100?K.bwd(be):be}function Gh(W,z){let Y=zt(W,T,z);return Mr(Y,t[0],un,hn)}r.valToIdx=W=>Mr(W,t[0]),r.posToIdx=Gh,r.posToVal=zt,r.valToPos=(W,z,Y)=>k[z].ori==0?y(W,k[z],Y?ht:De,Y?qe:0):v(W,k[z],Y?ot:We,Y?ut:0),r.setCursor=(W,z,Y)=>{Fe=W.left,Nt=W.top,Pn(null,z,Y)};function Un(W,z){Wt(li,Do,Lt.left=W),Wt(li,Cs,Lt.width=z)}function Pl(W,z){Wt(li,Es,Lt.top=W),Wt(li,Ts,Lt.height=z)}let Fi=N.ori==0?Un:Pl,Xn=N.ori==1?Un:Pl;function is(){if(G&&X.live)for(let W=f==2?1:0;W<M.length;W++){if(W==0&&_e)continue;let z=X.values[W],Y=0;for(let K in z)we[W][Y++].firstChild.nodeValue=z[K]}}function go(W,z){if(W!=null&&(W.idxs?W.idxs.forEach((Y,K)=>{q[K]=Y}):t_(W.idx)||q.fill(W.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<M.length;Y++)(Y>0||f==1&&!_e)&&Ft(Y,q[Y]);is()}Zn=!1,z!==!1&&Jt("setLegend")}r.setLegend=go;function Ft(W,z){let Y=M[W],K=W==0&&S==2?Wn:t[W],te;_e?te=Y.values(r,W,z)??rt:(te=Y.value(r,z==null?null:K[z],W,z),te=te==null?rt:{_:te}),X.values[W]=te}function Pn(W,z,Y){Dl=Fe,Et=Nt,[Fe,Nt]=Ne.move(r,Fe,Nt),Ne.left=Fe,Ne.top=Nt,Ne.show&&(Oi&&Pr(Oi,yn(Fe),0,De,We),Yr&&Pr(Yr,0,yn(Nt),De,We));let K,te=un>hn;xr=jt,Ir=null;let oe=N.ori==0?De:We,de=N.ori==1?De:We;if(Fe<0||vn==0||te){K=Ne.idx=null;for(let ve=0;ve<M.length;ve++){let be=Fn[ve];be!=null&&Pr(be,-10,-10,De,We)}Vr&&An(null,ci,!0,W==null&&qt.setSeries),X.live&&(q.fill(K),Zn=!0)}else{let ve,be,xe;f==1&&(ve=N.ori==0?Fe:Nt,be=zt(ve,T),K=Ne.idx=Mr(be,t[0],un,hn),xe=_(t[0][K],N,oe,0));let Se=-10,Ce=-10,Ge=0,Ct=0,tt=!0,Ue="",Ke="";for(let Re=f==2?1:0;Re<M.length;Re++){let kt=M[Re],Gt=q[Re],Bt=Gt==null?null:f==1?t[Re][Gt]:t[Re][1][Gt],It=Ne.dataIdx(r,Re,K,be),Ot=It==null?null:f==1?t[Re][It]:t[Re][1][It];Zn=Zn||Ot!=Bt||It!=Gt,q[Re]=It;let ne=It==K?xe:_(f==1?t[0][It]:t[Re][0][It],N,oe,0);if(Re>0&&kt.show){let le=Ot==null?-10:$(Ot,f==1?k[kt.scale]:k[kt.facets[1].scale],de,0);if(Vr&&Ot!=null){let se=N.ori==1?Fe:Nt,ke=mn(Ur.dist(r,Re,It,le,se));if(ke<xr){let Oe=Ur.bias;if(Oe!=0){let Ye=zt(se,kt.scale),St=Ot>=0?1:-1,Qe=Ye>=0?1:-1;Qe==St&&(Qe==1?Oe==1?Ot>=Ye:Ot<=Ye:Oe==1?Ot<=Ye:Ot>=Ye)&&(xr=ke,Ir=Re)}else xr=ke,Ir=Re}}if(Zn||Ai){let se,ke;N.ori==0?(se=ne,ke=le):(se=le,ke=ne);let Oe,Ye,St,Qe,_n,Vn,kn=!0,ur=$n.bbox;if(ur!=null){kn=!1;let er=ur(r,Re);St=er.left,Qe=er.top,Oe=er.width,Ye=er.height}else St=se,Qe=ke,Oe=Ye=$n.size(r,Re);if(Vn=$n.fill(r,Re),_n=$n.stroke(r,Re),Ai)Re==Ir&&xr<=Ur.prox&&(Se=St,Ce=Qe,Ge=Oe,Ct=Ye,tt=kn,Ue=Vn,Ke=_n);else{let er=Fn[Re];er!=null&&(Ci[Re]=St,Ti[Re]=Qe,Gp(er,Oe,Ye,kn),Vp(er,Vn,_n),Pr(er,yr(St),yr(Qe),De,We))}}}}if(Ai){let Re=Ur.prox,kt=Qr==null?xr<=Re:xr>Re||Ir!=Qr;if(Zn||kt){let Gt=Fn[0];Ci[0]=Se,Ti[0]=Ce,Gp(Gt,Ge,Ct,tt),Vp(Gt,Ue,Ke),Pr(Gt,yr(Se),yr(Ce),De,We)}}}if(Lt.show&&Kr)if(W!=null){let[ve,be]=qt.scales,[xe,Se]=qt.match,[Ce,Ge]=W.cursor.sync.scales,Ct=W.cursor.drag;if(dn=Ct._x,fn=Ct._y,dn||fn){let{left:tt,top:Ue,width:Ke,height:Re}=W.select,kt=W.scales[Ce].ori,Gt=W.posToVal,Bt,It,Ot,ne,le,se=ve!=null&&xe(ve,Ce),ke=be!=null&&Se(be,Ge);se&&dn?(kt==0?(Bt=tt,It=Ke):(Bt=Ue,It=Re),Ot=k[ve],ne=_(Gt(Bt,Ce),Ot,oe,0),le=_(Gt(Bt+It,Ce),Ot,oe,0),Fi(wr(ne,le),mn(le-ne))):Fi(0,oe),ke&&fn?(kt==1?(Bt=tt,It=Ke):(Bt=Ue,It=Re),Ot=k[be],ne=$(Gt(Bt,Ge),Ot,de,0),le=$(Gt(Bt+It,Ge),Ot,de,0),Xn(wr(ne,le),mn(le-ne))):Xn(0,de)}else ss()}else{let ve=mn(Dl-Il),be=mn(Et-Ol);if(N.ori==1){let Ge=ve;ve=be,be=Ge}dn=bn.x&&ve>=bn.dist,fn=bn.y&&be>=bn.dist;let xe=bn.uni;xe!=null?dn&&fn&&(dn=ve>=xe,fn=be>=xe,!dn&&!fn&&(be>ve?fn=!0:dn=!0)):bn.x&&bn.y&&(dn||fn)&&(dn=fn=!0);let Se,Ce;dn&&(N.ori==0?(Se=Di,Ce=Fe):(Se=Ni,Ce=Nt),Fi(wr(Se,Ce),mn(Ce-Se)),fn||Xn(0,de)),fn&&(N.ori==1?(Se=Di,Ce=Fe):(Se=Ni,Ce=Nt),Xn(wr(Se,Ce),mn(Ce-Se)),dn||Fi(0,oe)),!dn&&!fn&&(Fi(0,0),Xn(0,0))}if(bn._x=dn,bn._y=fn,W==null){if(Y){if(Hn!=null){let[ve,be]=qt.scales;qt.values[0]=ve!=null?zt(N.ori==0?Fe:Nt,ve):null,qt.values[1]=be!=null?zt(N.ori==1?Fe:Nt,be):null}Or(Fp,r,Fe,Nt,De,We,K)}if(Vr){let ve=Y&&qt.setSeries,be=Ur.prox;Qr==null?xr<=be&&An(Ir,ci,!0,ve):xr>be?An(null,ci,!0,ve):Ir!=Qr&&An(Ir,ci,!0,ve)}}Zn&&(X.idx=K,go()),z!==!1&&Jt("setCursor")}let _r=null;Object.defineProperty(r,"rect",{get(){return _r==null&&mo(!1),_r}});function mo(W=!1){W?_r=null:(_r=u.getBoundingClientRect(),Jt("syncRect",_r))}function os(W,z,Y,K,te,oe,de){Ne._lock||Kr&&W!=null&&W.movementX==0&&W.movementY==0||(ia(W,z,Y,K,te,oe,de,!1,W!=null),W!=null?Pn(null,!0,!0):Pn(z,!0,!1))}function ia(W,z,Y,K,te,oe,de,ve,be){if(_r==null&&mo(!1),oi(W),W!=null)Y=W.clientX-_r.left,K=W.clientY-_r.top;else{if(Y<0||K<0){Fe=-10,Nt=-10;return}let[xe,Se]=qt.scales,Ce=z.cursor.sync,[Ge,Ct]=Ce.values,[tt,Ue]=Ce.scales,[Ke,Re]=qt.match,kt=z.axes[0].side%2==1,Gt=N.ori==0?De:We,Bt=N.ori==1?De:We,It=kt?oe:te,Ot=kt?te:oe,ne=kt?K:Y,le=kt?Y:K;if(tt!=null?Y=Ke(xe,tt)?h(Ge,k[xe],Gt,0):-10:Y=Gt*(ne/It),Ue!=null?K=Re(Se,Ue)?h(Ct,k[Se],Bt,0):-10:K=Bt*(le/Ot),N.ori==1){let se=Y;Y=K,K=se}}be&&((Y<=1||Y>=De-1)&&(Y=ro(Y,De)),(K<=1||K>=We-1)&&(K=ro(K,We))),ve?(Il=Y,Ol=K,[Di,Ni]=Ne.move(r,Y,K)):(Fe=Y,Nt=K)}const oa={width:0,height:0,left:0,top:0};function ss(){rs(oa,!1)}let sa,yo,ui,Hl;function aa(W,z,Y,K,te,oe,de){Kr=!0,dn=fn=bn._x=bn._y=!1,ia(W,z,Y,K,te,oe,de,!0,!1),W!=null&&(Vt(tu,ru,la,!1),Or(Wp,r,Di,Ni,De,We,null));let{left:ve,top:be,width:xe,height:Se}=Lt;sa=ve,yo=be,ui=xe,Hl=Se,ss()}function la(W,z,Y,K,te,oe,de){Kr=bn._x=bn._y=!1,ia(W,z,Y,K,te,oe,de,!1,!0);let{left:ve,top:be,width:xe,height:Se}=Lt,Ce=xe>0||Se>0,Ge=sa!=ve||yo!=be||ui!=xe||Hl!=Se;if(Ce&&Ge&&rs(Lt),bn.setScale&&Ce&&Ge){let Ct=ve,tt=xe,Ue=be,Ke=Se;if(N.ori==1&&(Ct=be,tt=Se,Ue=ve,Ke=xe),dn&&br(T,zt(Ct,T),zt(Ct+tt,T)),fn)for(let Re in k){let kt=k[Re];Re!=T&&kt.from==null&&kt.min!=jt&&br(Re,zt(Ue+Ke,Re),zt(Ue,Re))}ss()}else Ne.lock&&(Ne._lock=!Ne._lock,Pn(null,!0,!1));W!=null&&(jr(tu,ru),Or(tu,r,Fe,Nt,De,We,null))}function ca(W,z,Y,K,te,oe,de){if(Ne._lock)return;oi(W);let ve=Kr;if(Kr){let be=!0,xe=!0,Se=10,Ce,Ge;N.ori==0?(Ce=dn,Ge=fn):(Ce=fn,Ge=dn),Ce&&Ge&&(be=Fe<=Se||Fe>=De-Se,xe=Nt<=Se||Nt>=We-Se),Ce&&be&&(Fe=Fe<Di?0:De),Ge&&xe&&(Nt=Nt<Ni?0:We),Pn(null,!0,!0),Kr=!1}Fe=-10,Nt=-10,Pn(null,!0,!0),ve&&(Kr=ve)}function as(W,z,Y,K,te,oe,de){Ne._lock||(oi(W),js(),ss(),W!=null&&Or(zp,r,Fe,Nt,De,We,null))}function ua(){C.forEach(yk),zs(r.width,r.height,!0)}to(Va,Fo,ua);const Wi={};Wi.mousedown=aa,Wi.mousemove=os,Wi.mouseup=la,Wi.dblclick=as,Wi.setSeries=(W,z,Y,K)=>{let te=qt.match[2];Y=te(r,z,Y),Y!=-1&&An(Y,K,!0,!1)},Ne.show&&(Vt(Wp,u,aa),Vt(Fp,u,os),Vt(Pp,u,W=>{oi(W),mo(!1)}),Vt(Hp,u,ca),Vt(zp,u,as),Cu.add(r),r.syncRect=mo);const Pi=r.hooks=n.hooks||{};function Jt(W,z,Y){ns?Li.push([W,z,Y]):W in Pi&&Pi[W].forEach(K=>{K.call(null,r,z,Y)})}(n.plugins||[]).forEach(W=>{for(let z in W.hooks)Pi[z]=(Pi[z]||[]).concat(W.hooks[z])});const zl=(W,z,Y)=>Y,qt=ln({key:null,setSeries:!1,filters:{pub:tg,sub:tg},scales:[T,M[1]?M[1].scale:null],match:[ng,ng,zl],values:[null,null]},Ne.sync);qt.match.length==2&&qt.match.push(zl),Ne.sync=qt;const Hn=qt.key,wo=Hg(Hn);function Or(W,z,Y,K,te,oe,de){qt.filters.pub(W,z,Y,K,te,oe,de)&&wo.pub(W,z,Y,K,te,oe,de)}wo.sub(r);function Bl(W,z,Y,K,te,oe,de){qt.filters.sub(W,z,Y,K,te,oe,de)&&Wi[W](null,z,Y,K,te,oe,de)}r.pub=Bl;function jl(){wo.unsub(r),Cu.delete(r),Mt.clear(),au(Va,Fo,ua),a.remove(),re==null||re.remove(),Jt("destroy")}r.destroy=jl;function ha(){Jt("init",n,t),uo(t||n.data,!1),L[T]?ea(T,L[T]):js(),ii=Lt.show&&(Lt.width>0||Lt.height>0),Nn=Zn=!0,zs(n.width,n.height)}return M.forEach(Sl),C.forEach(jh),e?e instanceof HTMLElement?(e.appendChild(a),ha()):e(r,ha):ha(),r}On.assign=ln,On.fmtNum=uu,On.rangeNum=Ya,On.rangeLog=Ga,On.rangeAsinh=lu,On.orient=oo,On.pxRatio=bt,On.join=l_,On.fmtDate=pu,On.tzDate=v_,On.sync=Hg;{On.addGap=tk,On.clipGaps=tl;let n=On.paths={points:Gg};n.linear=Kg,n.stepped=ik,n.bars=ok,n.spline=ak}var rm,im;function wk(){return im||(im=1,rm=function(n,t,e,r,f){var p,y;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(p=r+(f-r>>>1),y=+e(n[p],t,p,n),y<0)r=p+1;else if(y>0)f=p-1;else return p;return~r}),rm}var vk=wk();const NO=Rn("O",Ea(vk));var Eu,om;function bk(){if(om)return Eu;om=1;function n(t,e,r){var f=-1,p=t.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 y=Array(p);++f<p;)y[f]=t[f+e];return y}return Eu=n,Eu}var Ru,sm;function xk(){if(sm)return Ru;sm=1;var n=bk();function t(e,r,f){var p=e.length;return f=f===void 0?p:f,!r&&f>=p?e:n(e,r,f)}return Ru=t,Ru}var Mu,am;function lm(){if(am)return Mu;am=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="\\u200d",v=RegExp("["+y+n+f+p+"]");function h(g){return v.test(g)}return Mu=h,Mu}var Lu,cm;function _k(){if(cm)return Lu;cm=1;function n(t){return t.split("")}return Lu=n,Lu}var Iu,um;function kk(){if(um)return Iu;um=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="["+n+"]",v="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+v+"|"+h+")",a="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=g+"?",u="["+p+"]?",m="(?:"+l+"(?:"+[a,c,s].join("|")+")"+u+o+")*",w=u+o+m,b="(?:"+[a+v+"?",v,c,s,y].join("|")+")",M=RegExp(h+"(?="+h+")|"+b+w,"g");function C(k){return k.match(M)||[]}return Iu=C,Iu}var Ou,hm;function Sk(){if(hm)return Ou;hm=1;var n=_k(),t=lm(),e=kk();function r(f){return t(f)?e(f):n(f)}return Ou=r,Ou}var Du,dm;function $k(){if(dm)return Du;dm=1;var n=typeof ki=="object"&&ki&&ki.Object===Object&&ki;return Du=n,Du}var Nu,fm;function Ak(){if(fm)return Nu;fm=1;var n=$k(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Nu=e,Nu}var Fu,pm;function Wu(){if(pm)return Fu;pm=1;var n=Ak(),t=n.Symbol;return Fu=t,Fu}var Pu,gm;function Ck(){if(gm)return Pu;gm=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,p=Array(f);++r<f;)p[r]=e(t[r],r,t);return p}return Pu=n,Pu}var Hu,mm;function Tk(){if(mm)return Hu;mm=1;var n=Array.isArray;return Hu=n,Hu}var zu,ym;function Ek(){if(ym)return zu;ym=1;var n=Wu(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function p(y){var v=e.call(y,f),h=y[f];try{y[f]=void 0;var g=!0}catch{}var a=r.call(y);return g&&(v?y[f]=h:delete y[f]),a}return zu=p,zu}var Bu,wm;function Rk(){if(wm)return Bu;wm=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Bu=e,Bu}var ju,vm;function Mk(){if(vm)return ju;vm=1;var n=Wu(),t=Ek(),e=Rk(),r="[object Null]",f="[object Undefined]",p=n?n.toStringTag:void 0;function y(v){return v==null?v===void 0?f:r:p&&p in Object(v)?t(v):e(v)}return ju=y,ju}var Uu,bm;function Lk(){if(bm)return Uu;bm=1;function n(t){return t!=null&&typeof t=="object"}return Uu=n,Uu}var Vu,xm;function Ik(){if(xm)return Vu;xm=1;var n=Mk(),t=Lk(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Vu=r,Vu}var qu,_m;function Ok(){if(_m)return qu;_m=1;var n=Wu(),t=Ck(),e=Tk(),r=Ik(),f=n?n.prototype:void 0,p=f?f.toString:void 0;function y(v){if(typeof v=="string")return v;if(e(v))return t(v,y)+"";if(r(v))return p?p.call(v):"";var h=v+"";return h=="0"&&1/v==-1/0?"-0":h}return qu=y,qu}var Gu,km;function ol(){if(km)return Gu;km=1;var n=Ok();function t(e){return e==null?"":n(e)}return Gu=t,Gu}var Yu,Sm;function Dk(){if(Sm)return Yu;Sm=1;var n=xk(),t=lm(),e=Sk(),r=ol();function f(p){return function(y){y=r(y);var v=t(y)?e(y):void 0,h=v?v[0]:y.charAt(0),g=v?n(v,1).join(""):y.slice(1);return h[p]()+g}}return Yu=f,Yu}var Ku,$m;function Am(){if($m)return Ku;$m=1;var n=Dk(),t=n("toUpperCase");return Ku=t,Ku}var Nk=Am();const Fk=Ea(Nk);var Qu,Cm;function Wk(){if(Cm)return Qu;Cm=1;var n=ol(),t=Am();function e(r){return t(n(r).toLowerCase())}return Qu=e,Qu}var Zu,Tm;function Pk(){if(Tm)return Zu;Tm=1;function n(t,e,r,f){var p=-1,y=t==null?0:t.length;for(f&&y&&(r=t[++p]);++p<y;)r=e(r,t[p],p,t);return r}return Zu=n,Zu}var Ju,Em;function Hk(){if(Em)return Ju;Em=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Ju=n,Ju}var Xu,Rm;function zk(){if(Rm)return Xu;Rm=1;var n=Hk(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=n(t);return Xu=e,Xu}var eh,Mm;function Bk(){if(Mm)return eh;Mm=1;var n=zk(),t=ol(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",y=r+f+p,v="["+y+"]",h=RegExp(v,"g");function g(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return eh=g,eh}var th,Lm;function jk(){if(Lm)return th;Lm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return th=t,th}var nh,Im;function Uk(){if(Im)return nh;Im=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return nh=t,nh}var rh,Om;function Vk(){if(Om)return rh;Om=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",v="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\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",c="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",l=v+h+g+a,o="['’]",u="["+l+"]",m="["+f+"]",w="\\d+",b="["+p+"]",M="["+y+"]",C="[^"+n+l+w+p+y+c+"]",k="\\ud83c[\\udffb-\\udfff]",x="(?:"+m+"|"+k+")",T="[^"+n+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+c+"]",N="\\u200d",S="(?:"+M+"|"+C+")",_="(?:"+E+"|"+C+")",$="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=x+"?",F="["+s+"]?",H="(?:"+N+"(?:"+[T,R,I].join("|")+")"+F+O+")*",j="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,X="(?:"+[b,R,I].join("|")+")"+q,G=RegExp([E+"?"+M+"+"+$+"(?="+[u,E,"$"].join("|")+")",_+"+"+L+"(?="+[u,E+S,"$"].join("|")+")",E+"?"+S+"+"+$,E+"+"+L,V,j,w,X].join("|"),"g");function Z(re){return re.match(G)||[]}return rh=Z,rh}var ih,Dm;function qk(){if(Dm)return ih;Dm=1;var n=jk(),t=Uk(),e=ol(),r=Vk();function f(p,y,v){return p=e(p),y=v?void 0:y,y===void 0?t(p)?r(p):n(p):p.match(y)||[]}return ih=f,ih}var oh,Nm;function Gk(){if(Nm)return oh;Nm=1;var n=Pk(),t=Bk(),e=qk(),r="['’]",f=RegExp(r,"g");function p(y){return function(v){return n(e(t(v).replace(f,"")),y,"")}}return oh=p,oh}var sh,Fm;function Yk(){if(Fm)return sh;Fm=1;var n=Wk(),t=Gk(),e=t(function(r,f,p){return f=f.toLowerCase(),r+(p?n(f):f)});return sh=e,sh}var Kk=Yk();const Qk=Ea(Kk),Zk=Object.assign({"./ArrayWidget.vue":()=>Ie(()=>Le.import("./ArrayWidget-DzHELdHv-dabdae81af8f0091cc84.js"),void 0),"./ArrayplotWidget.vue":()=>Ie(()=>Le.import("./ArrayplotWidget-BDvziGSm-79acd828899dd440ae2a.js"),void 0),"./BlockWidget.vue":()=>Ie(()=>Le.import("./BlockWidget-D0On4x3d-314ba7f82dae3cc71985.js"),void 0),"./ButtonWidget.vue":()=>Ie(()=>Le.import("./ButtonWidget-BOYLHMt4-fbe6a30bbec61c7cdc57.js"),void 0),"./CanvasWidget.vue":()=>Ie(()=>Le.import("./CanvasWidget-CQIqiLEy-e5d63620be28c55b20af.js"),void 0),"./CanvasdotWidget.vue":()=>Ie(()=>Le.import("./CanvasdotWidget-BVWutPMF-ec36954ed7f54c43304a.js"),void 0),"./CanvasimageWidget.vue":()=>Ie(()=>Le.import("./CanvasimageWidget-ayu_ASKf-356c04466da427dd10f2.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ie(()=>Le.import("./CanvasimagevalueWidget-mv319g5T-4aea1e9bc67af473502e.js"),void 0),"./CanvaslabelWidget.vue":()=>Ie(()=>Le.import("./CanvaslabelWidget-BNjbXDb8-625f7a02dd99302ba9ce.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ie(()=>Le.import("./CanvaslabelvalueWidget-CrhPwTSP-388dfc06015b5fe9960e.js"),void 0),"./CanvaslineWidget.vue":()=>Ie(()=>Le.import("./CanvaslineWidget--HdKH6oO-5ec6911b77ac8716d713.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ie(()=>Le.import("./CanvaslinevalueWidget-CJsuF6RY-cf24d31a6ea3fa250ef4.js"),void 0),"./CheckbuttonWidget.vue":()=>Ie(()=>Le.import("./CheckbuttonWidget-CQ2HlgIk-407c1f711bf4050fcfe4.js"),void 0),"./ComboboxWidget.vue":()=>Ie(()=>Le.import("./ComboboxWidget-BxILACwz-53867a0dc0ad6adb4e6a.js"),void 0),"./DateWidget.vue":()=>Ie(()=>Le.import("./DateWidget-CIkO0xqH-a4d20b7ccc685aa5f74e.js"),void 0),"./DynamicWidget.vue":()=>Ie(()=>Le.import("./DynamicWidget-gFSYxzvT-a80d2795b0e9245faf67.js"),void 0),"./FormatvalueWidget.vue":()=>Ie(()=>Le.import("./FormatvalueWidget-D8-EO_3E-c9a7063540e7de2eb913.js"),void 0),"./HorizontalWidget.vue":()=>Ie(()=>Le.import("./HorizontalWidget-Bp-qtqoh-c86acc9cd7df6cc218a9.js"),void 0),"./HorizontalboxWidget.vue":()=>Ie(()=>Le.import("./HorizontalboxWidget-CrJuGY3s-d69109230c14f6aca7c0.js"),void 0),"./HorizontallineWidget.vue":()=>Ie(()=>Le.import("./HorizontallineWidget-CbxREBYI-b4f4d136410a114a1605.js"),void 0),"./IframeWidget.vue":()=>Ie(()=>Le.import("./IframeWidget-DusiWNNj-c2f3d8f4f406419fde5f.js"),void 0),"./ImageviewerWidget.vue":()=>Ie(()=>Le.import("./ImageviewerWidget-c0gJ9VDC-7ef9db0289a4deace13c.js"),void 0),"./LabelWidget.vue":()=>Ie(()=>Le.import("./LabelWidget-pPgc0ve3-a67066c7e6baa0381037.js"),void 0),"./LabelledWidget.vue":()=>Ie(()=>Le.import("./LabelledWidget-CkNjby55-3e7a87ce37e20630d8aa.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ie(()=>Le.import("./LabelprogressbarWidget-e2R2yQKw-f2755dece59cbb3c64b0.js"),void 0),"./LabelsparklineWidget.vue":()=>Ie(()=>Le.import("./LabelsparklineWidget-D7MQ_oNw-4d1878f0a3f367a76900.js"),void 0),"./LabelvalueWidget.vue":()=>Ie(()=>Le.import("./LabelvalueWidget-4DShBBvr-e8bea7f4ef89ddb55e67.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ie(()=>Le.import("./LabelvaluedescWidget-Z1m8Bi6N-28adada3731fef3112b6.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ie(()=>Le.import("./LabelvaluelimitsbarWidget-DVa-oYxU-531bcfdf803c0c830324.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ie(()=>Le.import("./LabelvaluelimitscolumnWidget-DduuX632-e0458233718c5fe76132.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ie(()=>Le.import("./LabelvaluerangebarWidget-BR9vXOlt-3e5ed6ee0ee30011c32b.js"),void 0),"./LedWidget.vue":()=>Ie(()=>Le.import("./LedWidget-f7bf8ls_-2abd378793af6d4ce598.js"),void 0),"./LimitsbarWidget.vue":()=>Ie(()=>Le.import("./LimitsbarWidget-B7fHaDcJ-efef4b690669a7981f16.js"),void 0),"./LimitscolorWidget.vue":()=>Ie(()=>Le.import("./LimitscolorWidget-CpC4D_TC-1a1ad1b14c1fd3cb101b.js"),void 0),"./LimitscolumnWidget.vue":()=>Ie(()=>Le.import("./LimitscolumnWidget-C9FbNC-U-d0390cc0428902a734b6.js"),void 0),"./LinegraphWidget.vue":()=>Ie(()=>Le.import("./LinegraphWidget-DkWDQ_3K-2a06bb6067b45e99d651.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ie(()=>Le.import("./MatrixbycolumnsWidget-CHJDyYa3-e72b63f725a17c272ed2.js"),void 0),"./ProgressbarWidget.vue":()=>Ie(()=>Le.import("./ProgressbarWidget-CRZDxClT-cff1c34ede06ed4cf33e.js"),void 0),"./RadiobuttonWidget.vue":()=>Ie(()=>Le.import("./RadiobuttonWidget-BW4yFweH-3c400c98eb2db5b7f27d.js"),void 0),"./RadiogroupWidget.vue":()=>Ie(()=>Le.import("./RadiogroupWidget-_0bVCHjr-3234b1007b8c5a338e21.js"),void 0),"./RangebarWidget.vue":()=>Ie(()=>Le.import("./RangebarWidget-CEQFiG4l-bd3d92b9edd40f7c3b3e.js"),void 0),"./RollupWidget.vue":()=>Ie(()=>Le.import("./RollupWidget-579c7y0R-66944c016fa25fde38fc.js"),void 0),"./ScrollwindowWidget.vue":()=>Ie(()=>Le.import("./ScrollwindowWidget-Kcre9gM3-465f605df5a652ab46cf.js"),void 0),"./SignalWidget.vue":()=>Ie(()=>Le.import("./SignalWidget-D55Myd0q-c1fe393200ffa3abf2d7.js"),void 0),"./SpacerWidget.vue":()=>Ie(()=>Le.import("./SpacerWidget-DBDv_w_s-48faa2f00c83fcae2fa7.js"),void 0),"./SparklineWidget.vue":()=>Ie(()=>Le.import("./SparklineWidget-DJvIL24z-66f9ad08743c98264e1b.js"),void 0),"./TabbookWidget.vue":()=>Ie(()=>Le.import("./TabbookWidget-DH9DHnp1-e26e29b61fa15bbdb3f6.js"),void 0),"./TextboxWidget.vue":()=>Ie(()=>Le.import("./TextboxWidget-DCjIEzJn-25708594b4b8c16bb1cd.js"),void 0),"./TextfieldWidget.vue":()=>Ie(()=>Le.import("./TextfieldWidget-BRQ6oPzR-9e1c718df5bfa6aadc86.js"),void 0),"./TimeWidget.vue":()=>Ie(()=>Le.import("./TimeWidget-pXtrK5IC-252fc5e7b78607e008d9.js"),void 0),"./TitleWidget.vue":()=>Ie(()=>Le.import("./TitleWidget-CfAa2SyT-bb0d98453f8ae837ba6b.js"),void 0),"./ValueWidget.vue":()=>Ie(()=>Le.import("./ValueWidget-DIFivXw_-6fe7fa26cb43e27fb221.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ie(()=>Le.import("./ValuelimitsbarWidget-Cb7_SIUF-9502850483983974feb9.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ie(()=>Le.import("./ValuelimitscolumnWidget-D8bgZ7YP-10cbd601d2530b92d481.js"),void 0),"./ValuerangebarWidget.vue":()=>Ie(()=>Le.import("./ValuerangebarWidget-VKygtFwP-534943cc3c6aa4d4936c.js"),void 0),"./VerticalWidget.vue":()=>Ie(()=>Le.import("./VerticalWidget-BuvedA_b-95f4badc8614449821be.js"),void 0),"./VerticalboxWidget.vue":()=>Ie(()=>Le.import("./VerticalboxWidget-D_LcL3GF-7350fb2c99a054ef86a2.js"),void 0)}),Jk=Object.entries(Zk).reduce((n,[t,e])=>{t=t.split("/").pop();const r=Fk(Qk(t.replace(/\.\w+$/,"")));return{...n,[r]:zd(e)}},{}),FO=Rn("D",{components:Jk});function Wm(n,t){return function(){return n.apply(t,arguments)}}const{toString:Xk}=Object.prototype,{getPrototypeOf:ah}=Object,sl=(n=>t=>{const e=Xk.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Lr=n=>(n=n.toLowerCase(),t=>sl(t)===n),al=n=>t=>typeof t===n,{isArray:qo}=Array,Ds=al("undefined");function eS(n){return n!==null&&!Ds(n)&&n.constructor!==null&&!Ds(n.constructor)&&cr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Pm=Lr("ArrayBuffer");function tS(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Pm(n.buffer),t}const nS=al("string"),cr=al("function"),Hm=al("number"),ll=n=>n!==null&&typeof n=="object",rS=n=>n===!0||n===!1,cl=n=>{if(sl(n)!=="object")return!1;const t=ah(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},iS=Lr("Date"),oS=Lr("File"),sS=Lr("Blob"),aS=Lr("FileList"),lS=n=>ll(n)&&cr(n.pipe),cS=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||cr(n.append)&&((t=sl(n))==="formdata"||t==="object"&&cr(n.toString)&&n.toString()==="[object FormData]"))},uS=Lr("URLSearchParams"),[hS,dS,fS,pS]=["ReadableStream","Request","Response","Headers"].map(Lr),gS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),qo(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let v;for(r=0;r<y;r++)v=p[r],t.call(null,n[v],v,n)}}function zm(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bm=n=>!Ds(n)&&n!==so;function lh(){const{caseless:n}=Bm(this)&&this||{},t={},e=(r,f)=>{const p=n&&zm(t,f)||f;cl(t[p])&&cl(r)?t[p]=lh(t[p],r):cl(r)?t[p]=lh({},r):qo(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Ns(arguments[r],e);return t}const mS=(n,t,e,{allOwnKeys:r}={})=>(Ns(t,(f,p)=>{e&&cr(f)?n[p]=Wm(f,e):n[p]=f},{allOwnKeys:r}),n),yS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),wS=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},vS=(n,t,e,r)=>{let f,p,y;const v={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!r||r(y,n,t))&&!v[y]&&(t[y]=n[y],v[y]=!0);n=e!==!1&&ah(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},bS=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},xS=n=>{if(!n)return null;if(qo(n))return n;let t=n.length;if(!Hm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},_S=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&ah(Uint8Array)),kS=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},SS=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},$S=Lr("HTMLFormElement"),AS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),jm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),CS=Lr("RegExp"),Um=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Ns(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},TS=n=>{Um(n,(t,e)=>{if(cr(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(cr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},ES=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return qo(n)?r(n):r(String(n).split(t)),e},RS=()=>{},MS=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,ch="abcdefghijklmnopqrstuvwxyz",Vm="0123456789",qm={DIGIT:Vm,ALPHA:ch,ALPHA_DIGIT:ch+ch.toUpperCase()+Vm},LS=(n=16,t=qm.ALPHA_DIGIT)=>{let e="";const{length:r}=t;for(;n--;)e+=t[Math.random()*r|0];return e};function IS(n){return!!(n&&cr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const OS=n=>{const t=new Array(10),e=(r,f)=>{if(ll(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=qo(r)?[]:{};return Ns(r,(y,v)=>{const h=e(y,f+1);!Ds(h)&&(p[v]=h)}),t[f]=void 0,p}}return r};return e(n,0)},DS=Lr("AsyncFunction"),NS=n=>n&&(ll(n)||cr(n))&&cr(n.then)&&cr(n.catch),Gm=((n,t)=>n?setImmediate:t?((e,r)=>(so.addEventListener("message",({source:f,data:p})=>{f===so&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),so.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",cr(so.postMessage)),FS=typeof queueMicrotask<"u"?queueMicrotask.bind(so):typeof process<"u"&&process.nextTick||Gm,he={isArray:qo,isArrayBuffer:Pm,isBuffer:eS,isFormData:cS,isArrayBufferView:tS,isString:nS,isNumber:Hm,isBoolean:rS,isObject:ll,isPlainObject:cl,isReadableStream:hS,isRequest:dS,isResponse:fS,isHeaders:pS,isUndefined:Ds,isDate:iS,isFile:oS,isBlob:sS,isRegExp:CS,isFunction:cr,isStream:lS,isURLSearchParams:uS,isTypedArray:_S,isFileList:aS,forEach:Ns,merge:lh,extend:mS,trim:gS,stripBOM:yS,inherits:wS,toFlatObject:vS,kindOf:sl,kindOfTest:Lr,endsWith:bS,toArray:xS,forEachEntry:kS,matchAll:SS,isHTMLForm:$S,hasOwnProperty:jm,hasOwnProp:jm,reduceDescriptors:Um,freezeMethods:TS,toObjectSet:ES,toCamelCase:AS,noop:RS,toFiniteNumber:MS,findKey:zm,global:so,isContextDefined:Bm,ALPHABET:qm,generateString:LS,isSpecCompliantForm:IS,toJSONObject:OS,isAsyncFn:DS,isThenable:NS,setImmediate:Gm,asap:FS};function Xe(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}he.inherits(Xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const Ym=Xe.prototype,Km={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Km[n]={value:n}}),Object.defineProperties(Xe,Km),Object.defineProperty(Ym,"isAxiosError",{value:!0}),Xe.from=(n,t,e,r,f,p)=>{const y=Object.create(Ym);return he.toFlatObject(n,y,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),Xe.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const WS=null;function uh(n){return he.isPlainObject(n)||he.isArray(n)}function Qm(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Zm(n,t,e){return n?n.concat(t).map(function(r,f){return r=Qm(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function PS(n){return he.isArray(n)&&!n.some(uh)}const HS=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function ul(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!he.isUndefined(o[l])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,v=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(f))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!v&&he.isBlob(l))throw new Xe("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(l)||he.isTypedArray(l)?v&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,u){let m=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&PS(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(m=he.toArray(l)))return o=Qm(o),m.forEach(function(w,b){!(he.isUndefined(w)||w===null)&&t.append(y===!0?Zm([o],b,p):y===null?o:o+"[]",h(w))}),!1}return uh(l)?!0:(t.append(Zm(u,o,p),h(l)),!1)}const a=[],c=Object.assign(HS,{defaultVisitor:g,convertValue:h,isVisitable:uh});function s(l,o){if(!he.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(l),he.forEach(l,function(u,m){(!(he.isUndefined(u)||u===null)&&f.call(t,u,he.isString(m)?m.trim():m,o,c))===!0&&s(u,o?o.concat(m):[m])}),a.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Jm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function hh(n,t){this._pairs=[],n&&ul(n,this,t)}const Xm=hh.prototype;Xm.append=function(n,t){this._pairs.push([n,t])},Xm.toString=function(n){const t=n?function(e){return n.call(this,e,Jm)}:Jm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function zS(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ey(n,t,e){if(!t)return n;const r=e&&e.encode||zS;he.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=he.isURLSearchParams(t)?t.toString():new hh(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let ty=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ny={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},BS=typeof URLSearchParams<"u"?URLSearchParams:hh,jS=typeof FormData<"u"?FormData:null,US=typeof Blob<"u"?Blob:null,VS={isBrowser:!0,classes:{URLSearchParams:BS,FormData:jS,Blob:US},protocols:["http","https","file","blob","url","data"]},dh=typeof window<"u"&&typeof document<"u",fh=typeof navigator=="object"&&navigator||void 0,qS=dh&&(!fh||["ReactNative","NativeScript","NS"].indexOf(fh.product)<0),GS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YS=dh&&window.location.href||"http://localhost",KS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dh,hasStandardBrowserEnv:qS,hasStandardBrowserWebWorkerEnv:GS,navigator:fh,origin:YS},Symbol.toStringTag,{value:"Module"})),Dn={...KS,...VS};function QS(n,t){return ul(n,new Dn.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Dn.isNode&&he.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function ZS(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JS(n){const t={},e=Object.keys(n);let r;const f=e.length;let p;for(r=0;r<f;r++)p=e[r],t[p]=n[p];return t}function ry(n){function t(e,r,f,p){let y=e[p++];if(y==="__proto__")return!0;const v=Number.isFinite(+y),h=p>=e.length;return y=!y&&he.isArray(f)?f.length:y,h?(he.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!v):((!f[y]||!he.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&he.isArray(f[y])&&(f[y]=JS(f[y])),!v)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(r,f)=>{t(ZS(r),f,e,0)}),e}return null}function XS(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Fs={transitional:ny,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=he.isObject(n);if(f&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(ry(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return QS(n,this.formSerializer).toString();if((p=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return ul(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),XS(n)):n}],transformResponse:[function(n){const t=this.transitional||Fs.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(p){if(f)throw p.name==="SyntaxError"?Xe.from(p,Xe.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Fs.headers[n]={}});const e$=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t$=n=>{const t={};let e,r,f;return n&&n.split(`
|
1409
|
+
`).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&e$[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},iy=Symbol("internals");function Ws(n){return n&&String(n).trim().toLowerCase()}function hl(n){return n===!1||n==null?n:he.isArray(n)?n.map(hl):String(n)}function n$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const r$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function ph(n,t,e,r,f){if(he.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!he.isString(t)){if(he.isString(r))return t.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(t)}}function i$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function o$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,p,y){return this[r].call(this,t,f,p,y)},configurable:!0})})}let Qn=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function p(v,h,g){const a=Ws(h);if(!a)throw new Error("header name must be a non-empty string");const c=he.findKey(f,a);(!c||f[c]===void 0||g===!0||g===void 0&&f[c]!==!1)&&(f[c||h]=hl(v))}const y=(v,h)=>he.forEach(v,(g,a)=>p(g,a,h));if(he.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(he.isString(t)&&(t=t.trim())&&!r$(t))y(t$(t),e);else if(he.isHeaders(t))for(const[v,h]of t.entries())p(h,v,r);else t!=null&&p(e,t,r);return this}get(t,e){if(t=Ws(t),t){const r=he.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return n$(f);if(he.isFunction(e))return e.call(this,f,r);if(he.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ws(t),t){const r=he.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||ph(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function p(y){if(y=Ws(y),y){const v=he.findKey(r,y);v&&(!e||ph(r,r[v],v,e))&&(delete r[v],f=!0)}}return he.isArray(t)?t.forEach(p):p(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const p=e[r];(!t||ph(this,this[p],p,t,!0))&&(delete this[p],f=!0)}return f}normalize(t){const e=this,r={};return he.forEach(this,(f,p)=>{const y=he.findKey(r,p);if(y){e[y]=hl(f),delete e[p];return}const v=t?i$(p):String(p).trim();v!==p&&delete e[p],e[v]=hl(f),r[v]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&he.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
1410
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[iy]=this[iy]={accessors:{}}).accessors,r=this.prototype;function f(p){const y=Ws(p);e[y]||(o$(r,p),e[y]=!0)}return he.isArray(t)?t.forEach(f):f(t),this}};Qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Qn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),he.freezeMethods(Qn);function gh(n,t){const e=this||Fs,r=t||e,f=Qn.from(r.headers);let p=r.data;return he.forEach(n,function(y){p=y.call(e,p,f.normalize(),t?t.status:void 0)}),f.normalize(),p}function oy(n){return!!(n&&n.__CANCEL__)}function Go(n,t,e){Xe.call(this,n??"canceled",Xe.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Go,Xe,{__CANCEL__:!0});function sy(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Xe("Request failed with status code "+e.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function s$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function a$(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,p=0,y;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),g=r[p];y||(y=h),e[f]=v,r[f]=h;let a=p,c=0;for(;a!==f;)c+=e[a++],a=a%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),h-y<t)return;const s=g&&h-g;return s?Math.round(c*1e3/s):void 0}}function l$(n,t){let e=0,r=1e3/t,f,p;const y=(v,h=Date.now())=>{e=h,f=null,p&&(clearTimeout(p),p=null),n.apply(null,v)};return[(...v)=>{const h=Date.now(),g=h-e;g>=r?y(v,h):(f=v,p||(p=setTimeout(()=>{p=null,y(f)},r-g)))},()=>f&&y(f)]}const dl=(n,t,e=3)=>{let r=0;const f=a$(50,250);return l$(p=>{const y=p.loaded,v=p.lengthComputable?p.total:void 0,h=y-r,g=f(h),a=y<=v;r=y;const c={loaded:y,total:v,progress:v?y/v:void 0,bytes:h,rate:g||void 0,estimated:g&&v&&a?(v-y)/g:void 0,event:p,lengthComputable:v!=null,[t?"download":"upload"]:!0};n(c)},e)},ay=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},ly=n=>(...t)=>he.asap(()=>n(...t)),c$=Dn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Dn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,u$=Dn.hasStandardBrowserEnv?{write(n,t,e,r,f,p){const y=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),he.isString(r)&&y.push("path="+r),he.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function h$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function d$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function cy(n,t){return n&&!h$(t)?d$(n,t):t}const uy=n=>n instanceof Qn?{...n}:n;function ao(n,t){t=t||{};const e={};function r(g,a,c,s){return he.isPlainObject(g)&&he.isPlainObject(a)?he.merge.call({caseless:s},g,a):he.isPlainObject(a)?he.merge({},a):he.isArray(a)?a.slice():a}function f(g,a,c,s){if(he.isUndefined(a)){if(!he.isUndefined(g))return r(void 0,g,c,s)}else return r(g,a,c,s)}function p(g,a){if(!he.isUndefined(a))return r(void 0,a)}function y(g,a){if(he.isUndefined(a)){if(!he.isUndefined(g))return r(void 0,g)}else return r(void 0,a)}function v(g,a,c){if(c in t)return r(g,a);if(c in n)return r(void 0,g)}const h={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:v,headers:(g,a,c)=>f(uy(g),uy(a),c,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(g){const a=h[g]||f,c=a(n[g],t[g],g);he.isUndefined(c)&&a!==v||(e[g]=c)}),e}const hy=n=>{const t=ao({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:v}=t;t.headers=y=Qn.from(y),t.url=ey(cy(t.baseURL,t.url),n.params,n.paramsSerializer),v&&y.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let h;if(he.isFormData(e)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[g,...a]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([g||"multipart/form-data",...a].join("; "))}}if(Dn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||r!==!1&&c$(t.url))){const g=f&&p&&u$.read(p);g&&y.set(f,g)}return t},f$=typeof XMLHttpRequest<"u",p$=f$&&function(n){return new Promise(function(t,e){const r=hy(n);let f=r.data;const p=Qn.from(r.headers).normalize();let{responseType:y,onUploadProgress:v,onDownloadProgress:h}=r,g,a,c,s,l;function o(){s&&s(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function m(){if(!u)return;const b=Qn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),M={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:n,request:u};sy(function(C){t(C),o()},function(C){e(C),o()},M),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(e(new Xe("Request aborted",Xe.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Xe("Network Error",Xe.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||ny;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),e(new Xe(b,M.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,n,u)),u=null},f===void 0&&p.setContentType(null),"setRequestHeader"in u&&he.forEach(p.toJSON(),function(b,M){u.setRequestHeader(M,b)}),he.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=dl(h,!0),u.addEventListener("progress",c)),v&&u.upload&&([a,s]=dl(v),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(g=b=>{u&&(e(!b||b.type?new Go(null,n,u):b),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const w=s$(r.url);if(w&&Dn.protocols.indexOf(w)===-1){e(new Xe("Unsupported protocol "+w+":",Xe.ERR_BAD_REQUEST,n));return}u.send(f||null)})},g$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const p=function(g){if(!f){f=!0,v();const a=g instanceof Error?g:this.reason;r.abort(a instanceof Xe?a:new Go(a instanceof Error?a.message:a))}};let y=t&&setTimeout(()=>{y=null,p(new Xe(`timeout ${t} of ms exceeded`,Xe.ETIMEDOUT))},t);const v=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(p):g.removeEventListener("abort",p)}),n=null)};n.forEach(g=>g.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>he.asap(v),h}},m$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},y$=async function*(n,t){for await(const e of w$(n))yield*m$(e,t)},w$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},dy=(n,t,e,r)=>{const f=y$(n,t);let p=0,y,v=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:g,value:a}=await f.next();if(g){v(),h.close();return}let c=a.byteLength;if(e){let s=p+=c;e(s)}h.enqueue(new Uint8Array(a))}catch(g){throw v(g),g}},cancel(h){return v(h),f.return()}},{highWaterMark:2})},fl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fy=fl&&typeof ReadableStream=="function",v$=fl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),py=(n,...t)=>{try{return!!n(...t)}catch{return!1}},b$=fy&&py(()=>{let n=!1;const t=new Request(Dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),gy=64*1024,mh=fy&&py(()=>he.isReadableStream(new Response("").body)),pl={stream:mh&&(n=>n.body)};fl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pl[t]&&(pl[t]=he.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Xe(`Response type '${t}' is not supported`,Xe.ERR_NOT_SUPPORT,r)})})})(new Response);const x$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Dn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await v$(n)).byteLength},_$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??x$(t),k$=fl&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:p,timeout:y,onDownloadProgress:v,onUploadProgress:h,responseType:g,headers:a,withCredentials:c="same-origin",fetchOptions:s}=hy(n);g=g?(g+"").toLowerCase():"text";let l=g$([f,p&&p.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(h&&b$&&e!=="get"&&e!=="head"&&(m=await _$(a,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(he.isFormData(r)&&(x=k.headers.get("content-type"))&&a.setContentType(x),k.body){const[T,R]=ay(m,dl(ly(h)));r=dy(k.body,gy,T,R)}}he.isString(c)||(c=c?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...s,signal:l,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",credentials:w?c:void 0});let b=await fetch(o);const M=mh&&(g==="stream"||g==="response");if(mh&&(v||M&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=b[I]});const x=he.toFiniteNumber(b.headers.get("content-length")),[T,R]=v&&ay(x,dl(ly(v),!0))||[];b=new Response(dy(b.body,gy,T,()=>{R&&R(),u&&u()}),k)}g=g||"text";let C=await pl[he.findKey(pl,g)||"text"](b,n);return!M&&u&&u(),await new Promise((k,x)=>{sy(k,x,{data:C,headers:Qn.from(b.headers),status:b.status,statusText:b.statusText,config:n,request:o})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Xe("Network Error",Xe.ERR_NETWORK,n,o),{cause:w.cause||w}):Xe.from(w,w&&w.code,n,o)}}),yh={http:WS,xhr:p$,fetch:k$};he.forEach(yh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const my=n=>`- ${n}`,S$=n=>he.isFunction(n)||n===null||n===!1,yy={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let p=0;p<t;p++){e=n[p];let y;if(r=e,!S$(e)&&(r=yh[(y=String(e)).toLowerCase()],r===void 0))throw new Xe(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+p]=r}if(!r){const p=Object.entries(f).map(([v,h])=>`adapter ${v} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?p.length>1?`since :
|
1411
|
+
`+p.map(my).join(`
|
1412
|
+
`):" "+my(p[0]):"as no adapter specified";throw new Xe("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:yh};function wh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Go(null,n)}function wy(n){return wh(n),n.headers=Qn.from(n.headers),n.data=gh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),yy.getAdapter(n.adapter||Fs.adapter)(n).then(function(t){return wh(n),t.data=gh.call(n,n.transformResponse,t),t.headers=Qn.from(t.headers),t},function(t){return oy(t)||(wh(n),t&&t.response&&(t.response.data=gh.call(n,n.transformResponse,t.response),t.response.headers=Qn.from(t.response.headers))),Promise.reject(t)})}const vy="1.7.9",gl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{gl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const by={};gl.transitional=function(n,t,e){function r(f,p){return"[Axios v"+vy+"] Transitional option '"+f+"'"+p+(e?". "+e:"")}return(f,p,y)=>{if(n===!1)throw new Xe(r(p," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!by[p]&&(by[p]=!0,console.warn(r(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,p,y):!0}},gl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function $$(n,t,e){if(typeof n!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const p=r[f],y=t[p];if(y){const v=n[p],h=v===void 0||y(v,p,n);if(h!==!0)throw new Xe("option "+p+" must be "+h,Xe.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Xe("Unknown option "+p,Xe.ERR_BAD_OPTION)}}const ml={assertOptions:$$,validators:gl},Hr=ml.validators;let lo=class{constructor(t){this.defaults=t,this.interceptors={request:new ty,response:new ty}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?p&&!String(r.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
1413
|
+
`+p):r.stack=p}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ao(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:p}=e;r!==void 0&&ml.assertOptions(r,{silentJSONParsing:Hr.transitional(Hr.boolean),forcedJSONParsing:Hr.transitional(Hr.boolean),clarifyTimeoutError:Hr.transitional(Hr.boolean)},!1),f!=null&&(he.isFunction(f)?e.paramsSerializer={serialize:f}:ml.assertOptions(f,{encode:Hr.function,serialize:Hr.function},!0)),ml.assertOptions(e,{baseUrl:Hr.spelling("baseURL"),withXsrfToken:Hr.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let y=p&&he.merge(p.common,p[e.method]);p&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=Qn.concat(y,p);const v=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,v.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let a,c=0,s;if(!h){const o=[wy.bind(this),void 0];for(o.unshift.apply(o,v),o.push.apply(o,g),s=o.length,a=Promise.resolve(e);c<s;)a=a.then(o[c++],o[c++]);return a}s=v.length;let l=e;for(c=0;c<s;){const o=v[c++],u=v[c++];try{l=o(l)}catch(m){u.call(this,m);break}}try{a=wy.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,s=g.length;c<s;)a=a.then(g[c++],g[c++]);return a}getUri(t){t=ao(this.defaults,t);const e=cy(t.baseURL,t.url);return ey(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){lo.prototype[n]=function(t,e){return this.request(ao(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(ao(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}lo.prototype[n]=t(),lo.prototype[n+"Form"]=t(!0)});let A$=class Uv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(v=>{r.subscribe(v),p=v}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new Go(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Uv(function(e){t=e}),cancel:t}}};function C$(n){return function(t){return n.apply(null,t)}}function T$(n){return he.isObject(n)&&n.isAxiosError===!0}const vh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vh).forEach(([n,t])=>{vh[t]=n});function xy(n){const t=new lo(n),e=Wm(lo.prototype.request,t);return he.extend(e,lo.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return xy(ao(n,r))},e}const cn=Rn("E",xy(Fs));cn.Axios=lo,cn.CanceledError=Go,cn.CancelToken=A$,cn.isCancel=oy,cn.VERSION=vy,cn.toFormData=ul,cn.AxiosError=Xe,cn.Cancel=cn.CanceledError,cn.all=function(n){return Promise.all(n)},cn.spread=C$,cn.isAxiosError=T$,cn.mergeConfig=ao,cn.AxiosHeaders=Qn,cn.formToJSON=n=>ry(he.isHTMLForm(n)?new FormData(n):n),cn.getAdapter=yy.getAdapter,cn.HttpStatusCode=vh,cn.default=cn;const{Axios:WO,AxiosError:PO,CanceledError:HO,isCancel:zO,CancelToken:BO,VERSION:jO,all:UO,Cancel:VO,isAxiosError:qO,spread:GO,toFormData:YO,AxiosHeaders:KO,HttpStatusCode:QO,formToJSON:ZO,getAdapter:JO,mergeConfig:XO}=cn,E$=function(n){if(n&&n.includes(".")){let t=n.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"};function _y(){return Object.assign({},To())}function R$(n,t,e){const r=Ht(n,void 0);return r.setTime(r.getTime()+t*Ca),r}function M$(n,t){const e=()=>an(void 0,NaN),r=D$(n);let f;if(r.date){const h=N$(r.date,2);f=F$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const p=+f;let y=0,v;if(r.time&&(y=W$(r.time),isNaN(y)))return e();if(r.timezone){if(v=P$(r.timezone),isNaN(v))return e()}else{const h=new Date(p+y),g=Ht(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return Ht(p+y+v,void 0)}const yl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,I$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,O$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function D$(n){const t={},e=n.split(yl.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],yl.timeZoneDelimiter.test(t.date)&&(t.date=n.split(yl.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=yl.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function N$(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?f:p*100,restDateString:n.slice((r[1]||r[2]).length)}}function F$(n,t){if(t===null)return new Date(NaN);const e=n.match(L$);if(!e)return new Date(NaN);const r=!!e[4],f=Ps(e[1]),p=Ps(e[2])-1,y=Ps(e[3]),v=Ps(e[4]),h=Ps(e[5])-1;if(r)return U$(t,v,h)?H$(t,v,h):new Date(NaN);{const g=new Date(0);return!B$(t,p,y)||!j$(t,f)?new Date(NaN):(g.setUTCFullYear(t,p,Math.max(f,y)),g)}}function Ps(n){return n?parseInt(n):1}function W$(n){const t=n.match(I$);if(!t)return NaN;const e=bh(t[1]),r=bh(t[2]),f=bh(t[3]);return V$(e,r,f)?e*Ec+r*Ca+f*1e3:NaN}function bh(n){return n&&parseFloat(n.replace(",","."))||0}function P$(n){if(n==="Z")return 0;const t=n.match(O$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return q$(r,f)?e*(r*Ec+f*Ca):NaN}function H$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const z$=[31,null,31,30,31,30,31,31,30,31,30,31];function ky(n){return n%400===0||n%4===0&&n%100!==0}function B$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(z$[t]||(ky(n)?29:28))}function j$(n,t){return t>=1&&t<=(ky(n)?366:365)}function U$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function V$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function q$(n,t){return t>=0&&t<=59}function G$(n,t,e){return R$(n,-t)}function Sy(n,t,e){const r=_y(),f=Q$(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?Y$(f,t):K$(f,t)}function Y$(n,t){const e=n.formatToParts(t);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function K$(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function Q$(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function Z$(n,t){const e=nA(t);return"formatToParts"in e?X$(e,n):eA(e,n)}const J$={year:0,month:1,day:2,hour:3,minute:4,second:5};function X$(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const p=J$[e[f].type];p!==void 0&&(r[p]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function eA(n,t){const e=n.format(t),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 xh={},$y=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")),tA=$y==="06/25/2014, 00:00:00"||$y==="06/25/2014 00:00:00";function nA(n){return xh[n]||(xh[n]=tA?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),xh[n]}function Ay(n,t,e,r,f,p,y){const v=new Date(0);return v.setUTCFullYear(n,t,e),v.setUTCHours(r,f,p,y),v}const Cy=36e5,rA=6e4,_h={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function kh(n,t,e){if(!n)return 0;let r=_h.timezoneZ.exec(n);if(r)return 0;let f,p;if(r=_h.timezoneHH.exec(n),r)return f=parseInt(r[1],10),Ty(f)?-(f*Cy):NaN;if(r=_h.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const y=parseInt(r[3],10);return Ty(f,y)?(p=Math.abs(f)*Cy+y*rA,r[1]==="+"?-p:p):NaN}if(sA(n)){t=new Date(t||Date.now());const y=e?t:iA(t),v=Sh(y,n);return-(e?v:oA(t,v,n))}return NaN}function iA(n){return Ay(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Sh(n,t){const e=Z$(n,t),r=Ay(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const p=f%1e3;return f-=p>=0?p:1e3+p,r-f}function oA(n,t,e){let r=n.getTime()-t;const f=Sh(new Date(r),e);if(t===f)return t;r-=f-t;const p=Sh(new Date(r),e);return f===p?f:Math.max(f,p)}function Ty(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Ey={};function sA(n){if(Ey[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Ey[n]=!0,!0}catch{return!1}}const aA=60*1e3,lA={X:function(n,t,e){const r=$h(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ry(r);case"XXXX":case"XX":return Yo(r);case"XXXXX":case"XXX":default:return Yo(r,":")}},x:function(n,t,e){const r=$h(e.timeZone,n);switch(t){case"x":return Ry(r);case"xxxx":case"xx":return Yo(r);case"xxxxx":case"xxx":default:return Yo(r,":")}},O:function(n,t,e){const r=$h(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+cA(r,":");case"OOOO":default:return"GMT"+Yo(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Sy("short",n,e);case"zzzz":default:return Sy("long",n,e)}}};function $h(n,t){const e=n?kh(n,t,!0)/aA:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function wl(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function Yo(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=wl(Math.floor(r/60),2),p=wl(Math.floor(r%60),2);return e+f+t+p}function Ry(n,t){return n%60===0?(n>0?"-":"+")+wl(Math.abs(n)/60,2):Yo(n,t)}function cA(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+wl(p,2)}function My(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const uA=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Ah=36e5,Ly=6e4,hA=2,jn={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:uA};function Iy(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?hA:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=dA(n),{year:f,restDateString:p}=fA(r.date,e),y=pA(p,f);if(y===null||isNaN(y.getTime()))return new Date(NaN);if(y){const v=y.getTime();let h=0,g;if(r.time&&(h=gA(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(g=kh(r.timeZone||t.timeZone,new Date(v+h)),isNaN(g))return new Date(NaN)}else g=My(new Date(v+h)),g=My(new Date(v+h+g));return new Date(v+h+g)}else return new Date(NaN)}function dA(n){const t={};let e=jn.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=jn.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=jn.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function fA(n,t){if(n){const e=jn.YYY[t],r=jn.YYYYY[t];let f=jn.YYYY.exec(n)||r.exec(n);if(f){const p=f[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(f=jn.YY.exec(n)||e.exec(n),f){const p=f[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function pA(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let p=jn.MM.exec(n);if(p)return e=new Date(0),r=parseInt(p[1],10)-1,Ny(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(p=jn.DDD.exec(n),p){e=new Date(0);const y=parseInt(p[1],10);return wA(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(p=jn.MMDD.exec(n),p){e=new Date(0),r=parseInt(p[1],10)-1;const y=parseInt(p[2],10);return Ny(t,r,y)?(e.setUTCFullYear(t,r,y),e):new Date(NaN)}if(p=jn.Www.exec(n),p)return f=parseInt(p[1],10)-1,Fy(f)?Oy(t,f):new Date(NaN);if(p=jn.WwwD.exec(n),p){f=parseInt(p[1],10)-1;const y=parseInt(p[2],10)-1;return Fy(f,y)?Oy(t,f,y):new Date(NaN)}return null}function gA(n){let t,e,r=jn.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),Ch(t)?t%24*Ah:NaN;if(r=jn.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),Ch(t,e)?t%24*Ah+e*Ly:NaN;if(r=jn.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return Ch(t,e,f)?t%24*Ah+e*Ly+f*1e3:NaN}return null}function Oy(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const mA=[31,28,31,30,31,30,31,31,30,31,30,31],yA=[31,29,31,30,31,30,31,31,30,31,30,31];function Dy(n){return n%400===0||n%4===0&&n%100!==0}function Ny(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Dy(n);if(r&&e>yA[t]||!r&&e>mA[t])return!1}return!0}function wA(n,t){if(t<1)return!1;const e=Dy(n);return!(e&&t>366||!e&&t>365)}function Fy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Ch(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const vA=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function bA(n,t,e={}){t=String(t);const r=t.match(vA);if(r){const f=Iy(e.originalDate||n,e);t=r.reduce(function(p,y){if(y[0]==="'")return p;const v=p.indexOf(y),h=p[v-1]==="'",g=p.replace(y,"'"+lA[y[0]](f,y,e)+"'");return h?g.substring(0,v-1)+g.substring(v+1):g},t)}return Mo(n,t,e)}function xA(n,t,e){n=Iy(n,e);const r=kh(t,n,!0),f=new Date(n.getTime()-r),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}function Th(n,t,e,r){return r={...r,timeZone:t,originalDate:n},bA(xA(n,t,{timeZone:r.timeZone}),e,r)}const Eh="yyyy-MM-dd",Wy="HH:mm:ss.SSS",_A="HH:mm:ss",vl=`${Eh} ${Wy}`,e2=Rn("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Mo(!t||t==="local"?G$(n,n.getTimezoneOffset()):n,vl)},formatDateTime(n,t){return!t||t==="local"?Mo(n,vl):Th(n,t,vl)},formatDate:function(n,t){return!t||t==="local"?Mo(n,Eh):Th(n,this.timeZone,Eh)},formatTime:function(n,t,e=Wy){return!t||t==="local"?Mo(n,e):Th(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,_A)},formatTimestamp(n,t){return this.formatDateTime(M$(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var kA=Object.defineProperty,SA=(n,t,e)=>t in n?kA(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Te=(n,t,e)=>SA(n,typeof t!="symbol"?t+"":t,e);function Rh(n,t,e){const r=Ht(n,e==null?void 0:e.in);return isNaN(t)?an((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function $A(n,t){const e=Ht(n,void 0).getDay();return e===0?7:e}function AA(n,t){const e=CA(t)?new t(0):an(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function CA(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const TA=10;class Py{constructor(){Te(this,"subPriority",0)}validate(t,e){return!0}}class EA extends Py{constructor(t,e,r,f,p){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,p&&(this.subPriority=p)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class RA extends Py{constructor(t,e){super(),Te(this,"priority",TA),Te(this,"subPriority",-1),this.context=t||(r=>an(e,r))}set(t,e){return e.timestampIsSet?t:an(t,AA(t,this.context))}}class xt{run(t,e,r,f){const p=this.parse(t,e,r,f);return p?{setter:new EA(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,r){return!0}}class MA extends xt{constructor(){super(...arguments),Te(this,"priority",140),Te(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const tn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},zr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function nn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ut(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Br(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,p=e[3]?parseInt(e[3],10):0,y=e[5]?parseInt(e[5],10):0;return{value:r*(f*Ec+p*Ca+y*nb),rest:t.slice(e[0].length)}}function Hy(n){return Ut(tn.anyDigitsSigned,n)}function Kt(n,t){switch(n){case 1:return Ut(tn.singleDigit,t);case 2:return Ut(tn.twoDigits,t);case 3:return Ut(tn.threeDigits,t);case 4:return Ut(tn.fourDigits,t);default:return Ut(new RegExp("^\\d{1,"+n+"}"),t)}}function zy(n,t){switch(n){case 1:return Ut(tn.singleDigitSigned,t);case 2:return Ut(tn.twoDigitsSigned,t);case 3:return Ut(tn.threeDigitsSigned,t);case 4:return Ut(tn.fourDigitsSigned,t);default:return Ut(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Mh(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function By(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const p=r+50,y=Math.trunc(p/100)*100,v=n>=p%100;f=n+y-(v?100:0)}return e?f:1-f}function jy(n){return n%400===0||n%4===0&&n%100!==0}let LA=class extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="yy"});switch(e){case"y":return nn(Kt(4,t),f);case"yo":return nn(r.ordinalNumber(t,{unit:"year"}),f);default:return nn(Kt(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const y=By(r.year,f);return t.setFullYear(y,0,1),t.setHours(0,0,0,0),t}const p=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(p,0,1),t.setHours(0,0,0,0),t}};class IA extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="YY"});switch(e){case"Y":return nn(Kt(4,t),f);case"Yo":return nn(r.ordinalNumber(t,{unit:"year"}),f);default:return nn(Kt(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const p=Mc(t,f);if(r.isTwoDigitYear){const v=By(r.year,p);return t.setFullYear(v,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),xi(t,f)}const y=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(y,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),xi(t,f)}}class OA extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return zy(e==="R"?4:e.length,t)}set(t,e,r){const f=an(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Eo(f)}}class DA extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return zy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class NA extends xt{constructor(){super(...arguments),Te(this,"priority",120),Te(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Kt(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}let FA=class extends xt{constructor(){super(...arguments),Te(this,"priority",120),Te(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Kt(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}};class WA extends xt{constructor(){super(...arguments),Te(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Te(this,"priority",110)}parse(t,e,r){const f=p=>p-1;switch(e){case"M":return nn(Ut(tn.month,t),f);case"MM":return nn(Kt(2,t),f);case"Mo":return nn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class PA extends xt{constructor(){super(...arguments),Te(this,"priority",110),Te(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=p=>p-1;switch(e){case"L":return nn(Ut(tn.month,t),f);case"LL":return nn(Kt(2,t),f);case"Lo":return nn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}function HA(n,t,e){const r=Ht(n,e==null?void 0:e.in),f=hf(r,e)-t;return r.setDate(r.getDate()-f*7),Ht(r,e==null?void 0:e.in)}class zA extends xt{constructor(){super(...arguments),Te(this,"priority",100),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Ut(tn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return xi(HA(t,r,f),f)}}function BA(n,t,e){const r=Ht(n,void 0),f=uf(r)-t;return r.setDate(r.getDate()-f*7),r}class jA extends xt{constructor(){super(...arguments),Te(this,"priority",100),Te(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Ut(tn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Eo(BA(t,r))}}const UA=[31,28,31,30,31,30,31,31,30,31,30,31],VA=[31,29,31,30,31,30,31,31,30,31,30,31];class qA extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"subPriority",1),Te(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Ut(tn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Kt(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=jy(r),p=t.getMonth();return f?e>=1&&e<=VA[p]:e>=1&&e<=UA[p]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class GA extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"subpriority",1),Te(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Ut(tn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Kt(e.length,t)}}validate(t,e){const r=t.getFullYear();return jy(r)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}}function Lh(n,t,e){var r,f,p,y;const v=To(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??v.weekStartsOn??((y=(p=v.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)??0,g=Ht(n,e==null?void 0:e.in),a=g.getDay(),c=(t%7+7)%7,s=7-h,l=t<0||t>6?t-(a+s)%7:(c+s)%7-(a+s)%7;return Rh(g,l,e)}let YA=class extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Lh(t,r,f),t.setHours(0,0,0,0),t}};class KA extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const p=y=>{const v=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+v};switch(e){case"e":case"ee":return nn(Kt(e.length,t),p);case"eo":return nn(r.ordinalNumber(t,{unit:"day"}),p);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Lh(t,r,f),t.setHours(0,0,0,0),t}}let QA=class extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const p=y=>{const v=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+v};switch(e){case"c":case"cc":return nn(Kt(e.length,t),p);case"co":return nn(r.ordinalNumber(t,{unit:"day"}),p);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Lh(t,r,f),t.setHours(0,0,0,0),t}};function ZA(n,t,e){const r=Ht(n,void 0),f=$A(r),p=t-f;return Rh(r,p,e)}class JA extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=p=>p===0?7:p;switch(e){case"i":case"ii":return Kt(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return nn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return nn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return nn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return nn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=ZA(t,r),t.setHours(0,0,0,0),t}}class XA extends xt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Mh(r),0,0,0),t}}class eC extends xt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Mh(r),0,0,0),t}}class tC extends xt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(Mh(r),0,0,0),t}}class nC extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Ut(tn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class rC extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Ut(tn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class iC extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Ut(tn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class oC extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Ut(tn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}class sC extends xt{constructor(){super(...arguments),Te(this,"priority",60),Te(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Ut(tn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class aC extends xt{constructor(){super(...arguments),Te(this,"priority",50),Te(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Ut(tn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class lC extends xt{constructor(){super(...arguments),Te(this,"priority",30),Te(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return nn(Kt(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class cC extends xt{constructor(){super(...arguments),Te(this,"priority",10),Te(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Br(zr.basicOptionalMinutes,t);case"XX":return Br(zr.basic,t);case"XXXX":return Br(zr.basicOptionalSeconds,t);case"XXXXX":return Br(zr.extendedOptionalSeconds,t);case"XXX":default:return Br(zr.extended,t)}}set(t,e,r){return e.timestampIsSet?t:an(t,t.getTime()-Ta(t)-r)}}class uC extends xt{constructor(){super(...arguments),Te(this,"priority",10),Te(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Br(zr.basicOptionalMinutes,t);case"xx":return Br(zr.basic,t);case"xxxx":return Br(zr.basicOptionalSeconds,t);case"xxxxx":return Br(zr.extendedOptionalSeconds,t);case"xxx":default:return Br(zr.extended,t)}}set(t,e,r){return e.timestampIsSet?t:an(t,t.getTime()-Ta(t)-r)}}class hC extends xt{constructor(){super(...arguments),Te(this,"priority",40),Te(this,"incompatibleTokens","*")}parse(t){return Hy(t)}set(t,e,r){return[an(t,r*1e3),{timestampIsSet:!0}]}}class dC extends xt{constructor(){super(...arguments),Te(this,"priority",20),Te(this,"incompatibleTokens","*")}parse(t){return Hy(t)}set(t,e,r){return[an(t,r),{timestampIsSet:!0}]}}const fC={G:new MA,y:new LA,Y:new IA,R:new OA,u:new DA,Q:new NA,q:new FA,M:new WA,L:new PA,w:new zA,I:new jA,d:new qA,D:new GA,E:new YA,e:new KA,c:new QA,i:new JA,a:new XA,b:new eC,B:new tC,h:new nC,H:new rC,K:new iC,k:new oC,m:new sC,s:new aC,S:new lC,X:new cC,x:new uC,t:new hC,T:new dC},pC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mC=/^'([^]*?)'?$/,yC=/''/g,wC=/\S/,vC=/[a-zA-Z]/;function bC(n,t,e,r){var f,p,y,v;const h=()=>an(e,NaN),g=_y(),a=g.locale??cf,c=g.firstWeekContainsDate??((p=(f=g.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=g.weekStartsOn??((v=(y=g.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??0;if(!t)return n?h():Ht(e,void 0);const l={firstWeekContainsDate:c,weekStartsOn:s,locale:a},o=[new RA(void 0,e)],u=t.match(gC).map(C=>{const k=C[0];if(k in Lc){const x=Lc[k];return x(C,a.formatLong)}return C}).join("").match(pC),m=[];for(let C of u){wf(C)&&Ic(C,t,n),yf(C)&&Ic(C,t,n);const k=C[0],x=fC[k];if(x){const{incompatibleTokens:T}=x;if(Array.isArray(T)){const I=m.find(E=>T.includes(E.token)||E.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${C}\` at the same time`)}else if(x.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);m.push({token:k,fullToken:C});const R=x.run(n,C,a.match,l);if(!R)return h();o.push(R.setter),n=R.rest}else{if(k.match(vC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(C==="''"?C="'":k==="'"&&(C=xC(C)),n.indexOf(C)===0)n=n.slice(C.length);else return h()}}if(n.length>0&&wC.test(n))return h();const w=o.map(C=>C.priority).sort((C,k)=>k-C).filter((C,k,x)=>x.indexOf(C)===k).map(C=>o.filter(k=>k.priority===C).sort((k,x)=>x.subPriority-k.subPriority)).map(C=>C[0]);let b=Ht(e,void 0);if(isNaN(+b))return h();const M={};for(const C of w){if(!C.validate(b,l))return h();const k=C.set(b,M,l);Array.isArray(k)?(b=k[0],Object.assign(M,k[1])):b=k}return b}function xC(n){return n.match(mC)[1].replace(yC,"'")}const _C={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function kC(n,t,e,r,f,p){const y=wt("rux-icon");return pn(),gr(y,{size:e.size,icon:e.icon,style:ws(p.colorStyle)},null,8,["size","icon","style"])}const SC=Co(_C,[["render",kC],["__scopeId","data-v-9af48e85"]]),$C="/icons/status-dark.png",AC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return $C},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=RC.indexOf(Uy[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,r=32*this.scaleFactor*t,f=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${e}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function CC(n,t,e,r,f,p){return pn(),bi("div",{style:ws(p.iconStyle)},null,4)}const TC=Co(AC,[["render",CC]]),Uy={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"},Ih={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},EC=function(n){const t="#000000",e="#ffffff",r=Ih[Uy[n]];if(r){const f=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,y=+`0x${r.slice(5,7)}`;if((f*299+p*587+y*114)/1e3>128)return t}return e},RC=Object.keys(Ih),MC={astro:{component:n=>ys(SC,{...n})},"astro-status":{component:n=>ys(TC,{...n,status:n.icon})}},LC={props:{type:{type:String,required:!0,validator:function(n){return["open","save"].indexOf(n)!==-1}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,modelValue:Boolean},data(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let n=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(n+="be in a target directory and "),n+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
|
1414
|
+
|
1415
|
+
For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,n}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const n="0-9a-zA-Z";let t=`[${`${n}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${n}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){this.loadFiles(),this.requireTargetParentDir&&Ba.get("/openc3-api/targets").then(n=>{this.targets=n.data,this.targets.push("__TEMP__")})},methods:{calcIcon:function(n){return E$(n)},loadFiles:function(){Ba.get(this.apiUrl).then(n=>{this.items=[],this.id=1;for(let t of n.data)this.filepath=t,this.insertFile(this.items,1,t),this.id++;this.inputFilename&&(this.selectedFile=this.inputFilename),this.loading=!1}).catch(n=>{this.$emit("error",`Failed to connect to OpenC3. ${n}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(n){n.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,n[0]),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(n,t){for(let e of n){if(e.id===t)return e.path;if(e.children){const r=this.findItem(e.children,t);if(r)return r}}return null},exists:function(n,t){let e=!1;for(let r of n){if(r.path===t||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===t)return!0;r.children&&(e=e||this.exists(r.children,t))}return e},success:function(){this.selectedFile!==null&&this.error===null&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(n=>Ba.delete("/script-api/scripts/temp_files")).then(n=>{this.$emit("clear-temp"),this.loadFiles()}).catch(n=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${n}`})})},openSuccess:function(){this.disableButtons=!0,Ba.get(`${this.apiUrl}/${this.selectedFile}`).then(n=>{const t={name:this.selectedFile,contents:n.data.contents};n.data.suites&&(t.suites=JSON.parse(n.data.suites)),n.data.error&&(t.error=n.data.error),n.data.success&&(t.success=n.data.success);const e=n.data.locked,r=n.data.breakpoints;this.$emit("file",{file:t,locked:e,breakpoints:r}),this.clear()}).catch(n=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${n}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(n=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(n=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,t,e){let r=e.split("/");if(r.length===1){n.push({id:this.id,title:r[0],file:"ruby",path:this.filepath}),this.id++;return}const f=n.findIndex(p=>p.title===r[0]);f===-1?(n.push({id:this.id,title:r[0],children:[],path:this.filepath.split("/").slice(0,t).join("/")}),this.id++,this.insertFile(n[n.length-1].children,t+1,r.slice(1).join("/"))):this.insertFile(n[f].children,t+1,r.slice(1).join("/"))}}},IC={class:"pa-3"};function OC(n,t,e,r,f,p){const y=wt("v-progress-circular"),v=wt("v-overlay"),h=wt("v-spacer"),g=wt("v-toolbar"),a=wt("v-row"),c=wt("v-text-field"),s=wt("v-icon"),l=wt("v-btn"),o=wt("v-treeview"),u=wt("v-card-text"),m=wt("v-card"),w=wt("v-dialog");return pn(),gr(w,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=b=>p.show=b),width:"600",scrollable:"",onKeydown:t[6]||(t[6]=Bd(b=>p.success(),["enter"]))},{default:dt(()=>[Ve(m,null,{default:dt(()=>[Ve(v,{"model-value":f.loading},{default:dt(()=>[Ve(y,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),ti("form",{onSubmit:t[4]||(t[4]=Aa((...b)=>p.success&&p.success(...b),["prevent"]))},[Ve(g,{height:"24"},{default:dt(()=>[Ve(h),ti("span",null,Tn(p.title),1),Ve(h)]),_:1}),Ve(u,null,{default:dt(()=>[ti("div",IC,[Ve(a,null,{default:dt(()=>[Mn(Tn(p.helpText),1)]),_:1}),Ve(a,{dense:"",class:"mt-5"},{default:dt(()=>[Ve(c,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=b=>f.search=b),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),Ve(a,{dense:"",class:"mt-2"},{default:dt(()=>[Ve(o,{modelValue:f.tree,"onUpdate:modelValue":t[1]||(t[1]=b=>f.tree=b),"onUpdate:activated":p.activeFile,density:"compact",activatable:"",ref:"tree",style:{width:"100%","max-height":"60vh",overflow:"auto"},"item-value":"id",items:f.items,search:f.search,"open-on-click":e.type==="open","open-all":!!f.search},{prepend:dt(({item:b,open:M})=>[b.file?(pn(),gr(s,{key:1},{default:dt(()=>[Mn(Tn(p.calcIcon(b.title)),1)]),_:2},1024)):(pn(),gr(s,{key:0},{default:dt(()=>[Mn(Tn(M?"mdi-folder-open":"mdi-folder"),1)]),_:2},1024))]),append:dt(({item:b})=>[b.title==="__TEMP__"?(pn(),gr(l,{key:0,icon:"",onClick:p.deleteTemp},{default:dt(()=>[Ve(s,null,{default:dt(()=>t[7]||(t[7]=[Mn(" mdi-delete ")])),_:1})]),_:1},8,["onClick"])):ei("",!0)]),_:1},8,["modelValue","onUpdate:activated","items","search","open-on-click","open-all"])]),_:1}),Ve(a,{class:"my-2"},{default:dt(()=>[Ve(c,{modelValue:f.selectedFile,"onUpdate:modelValue":t[2]||(t[2]=b=>f.selectedFile=b),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:e.type==="open"},null,8,["modelValue","disabled"])]),_:1}),Ve(a,{dense:""},{default:dt(()=>[$c(ti("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},Tn(p.error),513),[[Ac,p.error]])]),_:1}),Ve(a,{class:"mt-2"},{default:dt(()=>[Ve(h),Ve(l,{onClick:t[3]||(t[3]=b=>p.show=!1),variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:f.disableButtons},{default:dt(()=>t[8]||(t[8]=[Mn(" Cancel ")])),_:1},8,["disabled"]),Ve(l,{onClick:Aa(p.success,["prevent"]),ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:f.disableButtons||!!p.error},{default:dt(()=>[Mn(Tn(p.submit),1)]),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const t2=Rn("q",Co(LC,[["render",OC]])),Vy="single-spa:app-change",DC={data(){return{show:!1}},created(){window.addEventListener(Vy,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=Xd().length===0},150)},unmounted(){window.removeEventListener(Vy,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},NC={class:"mx-1"};function FC(n,t,e,r,f,p){const y=wt("v-card-title"),v=wt("v-card-text"),h=wt("v-card");return f.show?(pn(),gr(h,{key:0},{default:dt(()=>[Ve(y,null,{default:dt(()=>t[0]||(t[0]=[Mn(" 404 Not Found ")])),_:1}),Ve(v,{class:"d-flex align-center mt-3"},{default:dt(()=>[t[1]||(t[1]=Mn(" The requested URL ")),ti("code",NC,Tn(n.$route.fullPath),1),t[2]||(t[2]=Mn(" was not routable. ")),t[3]||(t[3]=ti("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):ei("",!0)}const qy=[{path:"/",name:"TableManager",component:()=>Ie(()=>Le.import("./TableManager-b33ac3078c9a2175f7e4.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Co(DC,[["render",FC]])}];qy.forEach(rf);const WC=Zd({history:Jd(),routes:qy}),PC={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"}},HC={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},zC=["innerHTML"],BC={key:2},jC={key:3,class:"validate mt-4"};function UC(n,t,e,r,f,p){const y=wt("v-spacer"),v=wt("v-toolbar"),h=wt("v-icon"),g=wt("v-text-field"),a=wt("v-card-text"),c=wt("v-btn"),s=wt("v-card-actions"),l=wt("v-card"),o=wt("v-dialog"),u=wt("v-app");return pn(),gr(u,null,{default:dt(()=>[Ve(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=m=>n.show=m),width:"600"},{default:dt(()=>[Ve(l,null,{default:dt(()=>[Ve(v,{height:"24"},{default:dt(()=>[Ve(y),ti("span",null,Tn(n.params.title),1),Ve(y)]),_:1}),Ve(a,{class:"mt-4 pa-3"},{default:dt(()=>[n.params.validateText?(pn(),gr(h,{key:0,class:"mr-2"},{default:dt(()=>t[2]||(t[2]=[Mn(" mdi-alert ")])),_:1})):ei("",!0),n.params.html?(pn(),bi("span",{key:1,innerHTML:n.params.text},null,8,zC)):(pn(),bi("span",BC,Tn(n.params.text),1)),n.params.validateText?(pn(),bi("div",jC,[Mn(" Enter "+Tn(n.params.validateText)+" to confirm! ",1),Ve(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=m=>n.validationText=m),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):ei("",!0)]),_:1}),Ve(s,{class:"px-2"},{default:dt(()=>[Ve(y),n.params.cancelText?(pn(),gr(c,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:dt(()=>[Mn(Tn(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):ei("",!0),Ve(c,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:dt(()=>[Mn(Tn(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const VC=Co(HC,[["render",UC],["__scopeId","data-v-581c0293"]]);class qC{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(VC);t.use(Dh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:v}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:v},h,g)})}confirm(t,{okText:e="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:null,cancelText:r,html:!1})}alert(t,{okText:e="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:f,validateText:null,cancelText:null,html:r})}validate(t,{okText:e="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:p,validateText:r,cancelText:f,html:!1})}}const GC={install(n,t){const e=new qC;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},YC={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
|
1416
|
+
--toast-bg-color:${Ih[this.toastNotification.level]};
|
1417
|
+
--toast-fg-color:${EC(this.toastNotification.level)};
|
1418
|
+
`},contentStyle:function(){return`
|
1419
|
+
white-space: ${this.expanded?"normal":"nowrap"};
|
1420
|
+
overflow-x: ${this.expanded?"visible":"hidden"};
|
1421
|
+
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1422
|
+
`}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},KC={key:0,class:"text-subtitle-1 mr-1 notification-text"},QC={key:1,class:"text-body-2 notification-text"},ZC={key:2,class:"text-body-2 notification-text"};function JC(n,t,e,r,f,p){const y=wt("v-icon"),v=wt("v-spacer"),h=wt("v-btn"),g=wt("v-sheet"),a=wt("v-slide-y-transition");return pn(),gr(a,null,{default:dt(()=>[$c(Ve(g,{style:ws(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:dt(()=>[Ve(y,{class:"mr-1 notification-text"},{default:dt(()=>[Mn(Tn(p.toastNotificationIcon),1)]),_:1}),ti("div",{class:"toast-content",style:ws(p.contentStyle)},[n.toastNotification.title?(pn(),bi("span",KC,Tn(n.toastNotification.title)+": ",1)):ei("",!0),n.toastNotification.body?(pn(),bi("span",QC,Tn(n.toastNotification.body),1)):ei("",!0),n.toastNotification.message?(pn(),bi("span",ZC,Tn(n.toastNotification.message),1)):ei("",!0)],4),Ve(v),Ve(h,{variant:"text",onClick:Aa(p.hide,["stop"]),class:"notification-text"},{default:dt(()=>t[0]||(t[0]=[Mn(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Ac,n.showToast]])]),_:1})}const XC=Co(YC,[["render",JC],["__scopeId","data-v-b0459ba8"]]);class eT{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Tc(XC);t.use(Dh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:r,message:f,level:p,duration:y,type:v="alert",logToConsole:h=!1,saveToHistory:g=!0}){this.mount(),h&&console.log(f?`${p.toUpperCase()} - ${f}`:`${p.toUpperCase()} - ${e}: ${r}`),g&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:p}),this[t]({title:e,body:r,message:f,level:p,duration:y,type:v})}toast({title:t,body:e,message:r,level:f,duration:p,type:y}){this.$root.toast({title:t,body:e,message:r,level:f,type:y},p)}critical({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}caution({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}off({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}}const tT={install(n,t){const e=new eT(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},Gy=100,Yy=ef({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=Gy&&(n.notifyHistory.length=Gy-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function Ky(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function nT(n,t){const e={},r=new Set(Object.keys(n));for(const f of t)r.has(f)&&(e[f]=n[f]);return e}function Qy(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const f in n)r[f]=n[f];for(const f in t){const p=n[f],y=t[f];if(Ky(p)&&Ky(y)){r[f]=Qy(p,y,e);continue}if(e&&Array.isArray(p)&&Array.isArray(y)){r[f]=e(p,y);continue}r[f]=y}return r}function Hs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Hs.cache.has(n))return Hs.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Hs.cache.set(n,t),t}Hs.cache=new Map;function rT(n){Ud(`Vuetify: ${n}`)}function Zy(n,t){return e=>Object.keys(n).reduce((r,f)=>{const p=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...p,default:e[f]}:r[f]=p,t&&!r[f].source&&(r[f].source=t),r},{})}function Jy(n,t){const e=Yd();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function iT(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jy("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Oh=Symbol.for("vuetify:defaults");function Xy(){const n=Vd(Oh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function oT(n,t){var e,r;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((r=n.props)==null?void 0:r[Hs(t)])<"u"}function sT(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xy();const r=Jy("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=Cc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),p=new Proxy(n,{get(h,g){var a,c,s,l,o,u,m;const w=Reflect.get(h,g);return g==="class"||g==="style"?[(a=f.value)==null?void 0:a[g],w].filter(b=>b!=null):typeof g=="string"&&!oT(r.vnode,g)?((c=f.value)==null?void 0:c[g])!==void 0?(s=f.value)==null?void 0:s[g]:((o=(l=e.value)==null?void 0:l.global)==null?void 0:o[g])!==void 0?(m=(u=e.value)==null?void 0:u.global)==null?void 0:m[g]:w:w}}),y=qd();Gd(()=>{if(f.value){const h=Object.entries(f.value).filter(g=>{let[a]=g;return a.startsWith(a[0].toUpperCase())});y.value=h.length?Object.fromEntries(h):void 0}else y.value=void 0});function v(){const h=iT(Oh,r);Kd(Oh,Cc(()=>y.value?Qy((h==null?void 0:h.value)??{},y.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:v}}function bl(n){if(n._setup=n._setup??n.setup,!n.name)return rT("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Zy(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return nT(e,t)},n.props._as=String,n.setup=function(e,r){const f=Xy();if(!f.value)return n._setup(e,r);const{props:p,provideSubDefaults:y}=sT(e,e._as??n.name,f),v=n._setup(p,r);return y(),v}}return n}function aT(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?bl:jd)(t)}const lT=[String,Function,Object,Array],xl=Zy({icon:{type:lT},tag:{type:String,required:!0}},"icon");aT()({name:"VComponentIcon",props:xl(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Ve(n.tag,null,{default:()=>{var f;return[n.icon?Ve(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),bl({name:"VSvgIcon",inheritAttrs:!1,props:xl(),setup(n,t){let{attrs:e}=t;return()=>Ve(n.tag,Qd(e,{style:null}),{default:()=>[Ve("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?Ve("path",{d:r[0],"fill-opacity":r[1]},null):Ve("path",{d:r},null)):Ve("path",{d:n.icon},null)])]})}}),bl({name:"VLigatureIcon",props:xl(),setup(n){return()=>Ve(n.tag,null,{default:()=>[n.icon]})}});const cT=bl({name:"VClassIcon",props:xl(),setup(n){return()=>Ve(n.tag,{class:n.icon},null)}}),uT={component:n=>ys(cT,{...n,class:"mdi"})},Dh=tf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:PC}},icons:{defaultSet:"mdi",sets:{mdi:uT,...MC}}}),Nh=Gv({createApp:Tc,appOptions:{render(){return ys(tb,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(WC),n.use(Yy),n.use(Dh),n.use(GC),n.use(tT,{store:Yy})}}),r2=Rn("b",Nh.bootstrap),i2=Rn("m",Nh.mount),o2=Rn("d",Nh.unmount)}}});
|