openc3-cosmos-tool-tlmviewer 6.10.1 → 6.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/tlmviewer/{ArrayWidget-DQRQ7dPa-66e9bd0355d185ad27cf.js → ArrayWidget-CR7Wpw3N-a28c62832573c8910d85.js} +2 -2
- data/tools/tlmviewer/{ArrayplotWidget-BeSfz3MR-326ebc058a153eb752db.js → ArrayplotWidget-DDEd-jRJ-2211e872a4324164bb01.js} +1 -1
- data/tools/tlmviewer/{BarColumn-BdIaQfOz-de874d75ae02d8b00ef5.js → BarColumn-XWs-3Cwb-d9ec302158045a671407.js} +1 -1
- data/tools/tlmviewer/{BlockWidget-DSFKrUxl-f48136daf309b7de0b39.js → BlockWidget-CfFgdNSv-2526a161a65380ebb4b1.js} +2 -2
- data/tools/tlmviewer/{ButtonWidget-CFbjdxSr-4b038286b59a316971ef.js → ButtonWidget-BaSvtElA-a849d7aaf13625acbb10.js} +2 -2
- data/tools/tlmviewer/{CanvasWidget-BloYxuKE-35177622be4f066f5c6f.js → CanvasWidget-DcwDi5Zk-8da7f83c09b0fd1e30a2.js} +1 -1
- data/tools/tlmviewer/{CanvasdotWidget-CZxUOPRd-344783544045a77db954.js → CanvasdotWidget--awMOWyz-e49c54a7c468272c8d55.js} +1 -1
- data/tools/tlmviewer/{CanvasimageWidget-ULQq3nqZ-88bb1dd25b0123e1821c.js → CanvasimageWidget-YP1pCtvb-c69efba326dbfa276c2b.js} +1 -1
- data/tools/tlmviewer/{CanvasimagevalueWidget-jFCVXYhi-e5ad0a3cca449f1a741c.js → CanvasimagevalueWidget-CjVHb2uj-fd911f4d52e9aa73181e.js} +1 -1
- data/tools/tlmviewer/{CanvaslabelWidget-DQhBI1vZ-88c59d74bba2cffbb5d0.js → CanvaslabelWidget-DoMplTTO-fbc1f303852bec51677b.js} +1 -1
- data/tools/tlmviewer/{CanvaslabelvalueWidget-C4REgztL-724c590c09ffcfdb6afb.js → CanvaslabelvalueWidget-Dyo_ogHn-5f7d285c0552ed39f7df.js} +1 -1
- data/tools/tlmviewer/{CanvaslineWidget-S4PCEvZM-4606d454ee084a349dc5.js → CanvaslineWidget-D7W1TIxm-cf82ffd80d55b09dbf4e.js} +1 -1
- data/tools/tlmviewer/{CanvaslinevalueWidget-597khOSA-3b2ec1802267570159f5.js → CanvaslinevalueWidget-BOZyJuLE-6c6efb496f53eec3cfaf.js} +1 -1
- data/tools/tlmviewer/CheckbuttonWidget-B1E4BC6v-a7640a7ccb7038641568.js +1 -0
- data/tools/tlmviewer/{ComboboxWidget-BMcHS4g5-671f368829770c4551e2.js → ComboboxWidget-BExUBH57-d2470299a2c4e7c8095c.js} +1 -1
- data/tools/tlmviewer/DateWidget-_ZmPsi2l-4d3b69843d8a6b20d6d8.js +1 -0
- data/tools/tlmviewer/{DetailsDialog-q9piPmHq-69772eebce7ce00a7365.js → DetailsDialog-Bq7SS7bc-38eb1e917d713b30d6a1.js} +1 -1
- data/tools/tlmviewer/{DynamicWidget-DHL7pbgW-985e005bbe10f0c076c5.js → DynamicWidget-DHL7pbgW-9d9ed1ca26f2d770d3a3.js} +1 -1
- data/tools/tlmviewer/{FormatvalueWidget-Cm-HmAmw-5f94f4ef292e7887efed.js → FormatvalueWidget-4C0vrL2i-dc2deec086826570de97.js} +1 -1
- data/tools/tlmviewer/{Graph-BEodMaxQ-c67ffcbe902141b3caa2.js → Graph-B7KPo9Ul-8312ff52f69f7ea9bada.js} +1 -1
- data/tools/tlmviewer/{GraphWidget-CAADBFV--4f6b9b73a777d41be04a.js → GraphWidget-BpkPpAbd-3e5b8af5de8bc9066ff5.js} +1 -1
- data/tools/tlmviewer/{HorizontalWidget-NcXIXxh7-d945f548fe62b6b122c3.js → HorizontalWidget-DbEQYjFC-afddfd1a0b4c14aa877f.js} +1 -1
- data/tools/tlmviewer/HorizontalboxWidget-CTomf_Iy-1f0e8dcd8f0634081367.js +1 -0
- data/tools/tlmviewer/HorizontallineWidget-B7xx7ofY-966f2a1896e0fdbe4561.js +1 -0
- data/tools/tlmviewer/{IframeWidget-BBU3MkSq-ef21a8ddc0cfa9a388ac.js → IframeWidget-DK7rbULe-2fde659e20a086c42eb8.js} +1 -1
- data/tools/tlmviewer/{ImageLoader-XAGgjKkq-0f58ec92b6c583cb7092.js → ImageLoader-C9rN_pSY-68a48173fb11f7081aaf.js} +1 -1
- data/tools/tlmviewer/{ImageviewerWidget-UByjeO63-4e1b09ce97575c9f3903.js → ImageviewerWidget-6d6Kl3W_-dc763820a80471aa8495.js} +1 -1
- data/tools/tlmviewer/{LabelWidget-BsOpolUL-8303bd80933831d68cc5.js → LabelWidget-D71FfOSw-55622cf48de59fcd50c5.js} +1 -1
- data/tools/tlmviewer/LabelledWidget-D2ir5kVU-64f7913336635e5f4456.js +1 -0
- data/tools/tlmviewer/LabelprogressbarWidget-C4_YbROz-765cfadd1309e5415c58.js +1 -0
- data/tools/tlmviewer/LabelsparklineWidget-CdZ_pM2B-22f6bf59f833f7be8de3.js +1 -0
- data/tools/tlmviewer/LabelvalueWidget-BS0EPY5h-718c61969874dad6ad66.js +1 -0
- data/tools/tlmviewer/{LabelvaluedescWidget-Cfu2vuja-5354c744d761e7042110.js → LabelvaluedescWidget-Cpr8_Voq-faabe42b62037e35e98a.js} +1 -1
- data/tools/tlmviewer/{LabelvaluelimitsbarWidget-DYV68AJ_-bf5fdb1dda71e69a5ee3.js → LabelvaluelimitsbarWidget-DTcYbEQS-13107a59827d56fe3d5a.js} +1 -1
- data/tools/tlmviewer/LabelvaluelimitscolumnWidget-D0ltQ9Ta-2404b009625e144acff7.js +1 -0
- data/tools/tlmviewer/{LabelvaluerangebarWidget-3EaUB6E6-29dbea1fac75b05fb7ae.js → LabelvaluerangebarWidget-O8IHjvHs-82f513eb0330767e9f3b.js} +1 -1
- data/tools/tlmviewer/Layout-DW5yNlp7-350220b56fd26d1d7ec0.js +1 -0
- data/tools/tlmviewer/{LedWidget-Gi6GXtrW-365d866963edc1c837a1.js → LedWidget-DUvJ2v8k-206249f4c6ab464c7357.js} +1 -1
- data/tools/tlmviewer/{LimitsbarWidget-BTZQY9XQ-cc4654c5e76d52ebf067.js → LimitsbarWidget-BehZv0-k-22c68fb612b5c1b9ea45.js} +1 -1
- data/tools/tlmviewer/{LimitscolorWidget-CFnmvlrA-604e99dc57574347521d.js → LimitscolorWidget-FXT0ZPPH-907137d6fd5d5e72a0e4.js} +1 -1
- data/tools/tlmviewer/{LimitscolumnWidget-DSsz36tT-50eeb0df497d05d55e66.js → LimitscolumnWidget-CjBy-CCI-c746e04c1b94699b087c.js} +1 -1
- data/tools/tlmviewer/LinegraphWidget-lmu_tFKd-9b9b64c1bcf07367d0bb.js +1 -0
- data/tools/tlmviewer/{MatrixbycolumnsWidget-DX9uhjAv-aa0ac356c5a0d77336ac.js → MatrixbycolumnsWidget-CCF7rCkV-94904b7936d9597a9bb4.js} +1 -1
- data/tools/tlmviewer/{ProgressbarWidget-DJepvOip-ada5683dcfe1b31a7936.js → ProgressbarWidget-B5WN658S-4f073e6f03cc9290b39d.js} +1 -1
- data/tools/tlmviewer/RadiobuttonWidget-B_3nys46-81f5804bc8a9ff8d3ac3.js +1 -0
- data/tools/tlmviewer/{RadiogroupWidget-CUucj6aT-669542e238af544c9cff.js → RadiogroupWidget-BiMIL9li-6293f41641a3d68b2460.js} +1 -1
- data/tools/tlmviewer/{RangebarWidget-Bu4rqlrx-894b27a87c69fcac5248.js → RangebarWidget-Dn0GASdi-f2c3417f62181d181fd0.js} +1 -1
- data/tools/tlmviewer/{RollupWidget-ByLvEEau-4aba0914ca6ebd291a45.js → RollupWidget-b62qcG5K-fc98daa6337124baa140.js} +1 -1
- data/tools/tlmviewer/ScrollwindowWidget-Dn29gs-U-a14fcc91680e783fccc6.js +1 -0
- data/tools/tlmviewer/{SignalWidget-qvL2YZJA-a6bb7491a49e5b855bac.js → SignalWidget-CLi6qask-b579852d66cf498f2eeb.js} +1 -1
- data/tools/tlmviewer/SpacerWidget-BCA3gdap-92f47a4e3247a72018bc.js +1 -0
- data/tools/tlmviewer/{SparklineWidget-BkNSRypJ-342fa95b7cbc4a8770c0.js → SparklineWidget-D8mb4zLt-c2db0098cebf289d7e07.js} +1 -1
- data/tools/tlmviewer/TabbookWidget-Bkt4g02d-1a8fe73c0f28e729bacb.js +1 -0
- data/tools/tlmviewer/{TextboxWidget-DbwpPVGB-47da64f0653301f73462.js → TextboxWidget-CR05wO-t-8af8933225c92d276f90.js} +1 -1
- data/tools/tlmviewer/{TextfieldWidget-DzMlTMYW-54a1b72625a3cf7072a2.js → TextfieldWidget-Be_Pz2bF-4c1f04721dc2b4cdcd34.js} +1 -1
- data/tools/tlmviewer/{TimeWidget-BHybAfg8-6a94f7aca93e636e28a0.js → TimeWidget-Dy8zpkC6-3affabf9cb709000d8ad.js} +1 -1
- data/tools/tlmviewer/TitleWidget-BcmxUDzM-c682ebed67231c2f1a63.js +1 -0
- data/tools/tlmviewer/{TlmViewer-a8453a470edd1e8d092a.js → TlmViewer-d371db00d26902b1ce34.js} +1 -1
- data/tools/tlmviewer/{VWidget-D06LY-Yc-78b8546f29f96a312ff4.js → VWidget-CBmUpKSV-4d8d62de7b768d96c856.js} +1 -1
- data/tools/tlmviewer/{ValueWidget-CGT0LV_n-5af51cfb7a81089f3053.js → ValueWidget-BxWrHkYY-e5417a4081f7a7d4093e.js} +1 -1
- data/tools/tlmviewer/ValuelimitsbarWidget-BdY02gqc-c459b6aed8923548fb40.js +1 -0
- data/tools/tlmviewer/{ValuelimitscolumnWidget-jzxrQd-f-2da8bbafceef402a278d.js → ValuelimitscolumnWidget-CuJ6rqtC-6964a97a5649673a58cb.js} +1 -1
- data/tools/tlmviewer/{ValuerangebarWidget-C8ckuAeh-ab1d333ac86699af775c.js → ValuerangebarWidget-C5rolGDi-c8adf83206096de08133.js} +1 -1
- data/tools/tlmviewer/VerticalWidget-DsnEzKZ2-115e9bb749e75a438562.js +1 -0
- data/tools/tlmviewer/VerticalboxWidget-CzDgveBl-ebc41416e2d89394b02a.js +1 -0
- data/tools/tlmviewer/{Widget-DXvVFSH5-6145e231355f6e9825f7.js → Widget-VCl8Ts8s-3962ce03dbbfed925826.js} +1 -1
- data/tools/tlmviewer/{main-dfbd80de0f43e84c2772.js → main-7d1578397e201c5b4337.js} +34 -34
- data/tools/tlmviewer/main.js +1 -1
- metadata +68 -68
- data/tools/tlmviewer/CheckbuttonWidget-BcblKat3-7623acc73d22c01fbdc8.js +0 -1
- data/tools/tlmviewer/DateWidget-BpnMzSBn-44c0105e20f11f5a6190.js +0 -1
- data/tools/tlmviewer/HorizontalboxWidget-CW9XX4uH-a40ea95ef024ec347f0b.js +0 -1
- data/tools/tlmviewer/HorizontallineWidget-Cu2dDt7k-61d3e93566b54bef6362.js +0 -1
- data/tools/tlmviewer/LabelledWidget-DVOGpgZ--17452feaa52fad1c6105.js +0 -1
- data/tools/tlmviewer/LabelprogressbarWidget-BeE9fDs6-ba636a9e94ab39cd1525.js +0 -1
- data/tools/tlmviewer/LabelsparklineWidget-Bj7trKML-aa28b3a4e06de0b9f9a8.js +0 -1
- data/tools/tlmviewer/LabelvalueWidget-Dwqsh5o2-7f2a2c62e621de50098d.js +0 -1
- data/tools/tlmviewer/LabelvaluelimitscolumnWidget-CtaoTixt-d4df31d3839a70f23973.js +0 -1
- data/tools/tlmviewer/Layout-DNR3xnku-cceb7a3e2ed14a579ac6.js +0 -1
- data/tools/tlmviewer/LinegraphWidget-CeBijgDo-31cb9988a29096ba594b.js +0 -1
- data/tools/tlmviewer/RadiobuttonWidget-4e8ROIfg-54995490942bcc19198c.js +0 -1
- data/tools/tlmviewer/ScrollwindowWidget-CXJ9QGN1-7a6e141c1cfa17a8d8bf.js +0 -1
- data/tools/tlmviewer/SpacerWidget-CaWx41K7-a45a48576c42fdb64a41.js +0 -1
- data/tools/tlmviewer/TabbookWidget-MsrRG1vn-2de0c7f07b5c2e3833ce.js +0 -1
- data/tools/tlmviewer/TitleWidget-DL_sE5YE-8a6b8a5daecc1a0a7f87.js +0 -1
- data/tools/tlmviewer/ValuelimitsbarWidget-CmpyPO-1-8b57577ee29d333d936f.js +0 -1
- data/tools/tlmviewer/VerticalWidget-qN82km_m-788754f95ccc8db8e21c.js +0 -1
- data/tools/tlmviewer/VerticalboxWidget-CiJZDlHJ-3b7ec02981a457a3a07b.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,it){"use strict";var xt,lo,En,Rt,ht,ri,mr,Sp,_p,Zs,La,_l,So,Rr,ii,$l,Qs,Tl,Ml,$p,Tp,Mp,hu,Ip,Ep,Rp,Lp,Op,du,Np,Dp,Fp,pu,Pp,Wp;return{setters:[Tt=>{xt=Tt.resolveComponent,lo=Tt.createBlock,En=Tt.openBlock,Rt=Tt.withCtx,ht=Tt.createVNode,ri=Tt.createElementBlock,mr=Tt.createElementVNode,Sp=Tt.useCssVars,_p=Tt.defineAsyncComponent,Zs=Tt.h,La=Tt.normalizeStyle,_l=Tt.Fragment,So=Tt.createCommentVNode,Rr=Tt.createTextVNode,ii=Tt.toDisplayString,$l=Tt.withKeys,Qs=Tt.withModifiers,Tl=Tt.withDirectives,Ml=Tt.vShow,$p=Tt.defineComponent,Tp=Tt.warn,Mp=Tt.inject,hu=Tt.computed,Ip=Tt.shallowRef,Ep=Tt.watchEffect,Rp=Tt.normalizeClass,Lp=Tt.getCurrentInstance,Op=Tt.provide,du=Tt.createApp,Np=Tt.mergeProps},Tt=>{Dp=Tt.createRouter,Fp=Tt.createWebHistory},Tt=>{pu=Tt.getMountedApps},Tt=>{Pp=Tt.createStore},Tt=>{Wp=Tt.createVuetify}],execute:function(){Kn({$:Kp,c:xM,f:Or,l:Sn,y:tr,z:md});var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bp(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 ms(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(e),!0).forEach(function(r){aw(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Bp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function aw(n,t,e){return(t=function(r){var f=function(g,m){if(vs(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,m);if(vs(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(r,"string");return vs(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 vs(n){return vs=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},vs(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),g=f.length,m=-1,w="",h=f.charCodeAt(0);++m<g;)(r=f.charCodeAt(m))!=0?w+=r>=1&&r<=31||r==127||m==0&&r>=48&&r<=57||m==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":m==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(m):f.charAt(m):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(Tt);var lw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function cw(n){if(vs(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=ms(ms({},lw),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(vs(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:uw.bind(null,t,e),mount:hw.bind(null,t,e),unmount:pw.bind(null,t,e),update:dw.bind(null,t,e)}}function uw(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function hw(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,g){return typeof f.appOptions=="function"?f.appOptions(g):Promise.resolve(ms({},f.appOptions))}(n,e).then(function(f){var g;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(g=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(g=f.el).id||(g.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(g.id));else{var m="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(m)),(g=document.getElementById(m))||((g=document.createElement("div")).id=m,document.body.appendChild(g))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,f.render||f.template||!n.rootComponent||(f.render=function(d){return d(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return ms(ms({},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 dw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=ms(ms({},n.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var m in f)g[m]=f[m]})}function pw(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 fw=Kn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),gw={};function mw(n,t){const e=xt("router-view"),r=xt("v-app");return En(),lo(r,{id:"innerapp"},{default:Rt(()=>[ht(e)]),_:1})}const vw=fw(gw,[["render",mw]]),GN="modulepreload",YN=function(n){return"/"+n},XN={},ot=function(t,e,r){let f=Promise.resolve();function g(m){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=m,window.dispatchEvent(w),!w.defaultPrevented)throw m}return f.then(m=>{for(const w of m||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},zp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tlmviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(zp)},Ko=Kn("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),yw="/icons/customIcons.svg",fu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return yw+"#"+this.icon}}},Hp=()=>{Sp(n=>({v259824e2:n.color}))},jp=fu.setup;fu.setup=jp?(n,t)=>(Hp(),jp(n,t)):Hp;const bw={class:"cosmos-custom-icon"},ww={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},xw=["href"];function Cw(n,t,e,r,f,g){return En(),ri("span",bw,[(En(),ri("svg",ww,[mr("use",{href:g.iconSrc},null,8,xw)]))])}const kw=Ko(fu,[["render",Cw],["__scopeId","data-v-4b6f1199"]]),Il=6e4,gu=36e5,Aw=1e3,Up=Symbol.for("constructDateFrom");function tr(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&Up in n?n[Up](t):n instanceof Date?new n.constructor(t):new Date(t)}function Sn(n,t){return tr(t||n,n)}let Sw={};function Js(){return Sw}function Go(n,t){var e,r,f,g;const m=Js(),w=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??m.weekStartsOn??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,h=Sn(n,t==null?void 0:t.in),d=h.getDay(),s=(d<w?7:0)+d-w;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function ea(n,t){return Go(n,{...t,weekStartsOn:1})}function Vp(n,t){const e=Sn(n,void 0),r=e.getFullYear(),f=tr(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const g=ea(f),m=tr(e,0);m.setFullYear(r,0,4),m.setHours(0,0,0,0);const w=ea(m);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function El(n){const t=Sn(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 _w(n,...t){const e=tr.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function qp(n,t){const e=Sn(n,void 0);return e.setHours(0,0,0,0),e}function $w(n,t,e){const[r,f]=_w(void 0,n,t),g=qp(r),m=qp(f),w=+g-El(g),h=+m-El(m);return Math.round((w-h)/864e5)}function Tw(n,t){const e=Vp(n),r=tr(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),ea(r)}function Mw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Kp(n){return!(!Mw(n)&&typeof n!="number"||isNaN(+Sn(n)))}function Iw(n,t){const e=Sn(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Ew={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"}},Rw=(n,t,e)=>{let r;const f=Ew[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 mu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Lw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ow={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dw={date:mu({formats:Lw,defaultWidth:"full"}),time:mu({formats:Ow,defaultWidth:"full"}),dateTime:mu({formats:Nw,defaultWidth:"full"})},Fw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pw=(n,t,e,r)=>Fw[n];function Oa(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const m=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):m;f=n.formattingValues[w]||n.formattingValues[m]}else{const m=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[w]||n.values[m]}const g=n.argumentCallback?n.argumentCallback(t):t;return f[g]}}const Ww={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zw={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"]},Hw={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"]},jw={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"}},Uw={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"}},Vw=(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"},qw={ordinalNumber:Vw,era:Oa({values:Ww,defaultWidth:"wide"}),quarter:Oa({values:Bw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Oa({values:zw,defaultWidth:"wide"}),day:Oa({values:Hw,defaultWidth:"wide"}),dayPeriod:Oa({values:jw,defaultWidth:"wide",formattingValues:Uw,defaultFormattingWidth:"wide"})};function Na(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],g=t.match(f);if(!g)return null;const m=g[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?Gw(w,l=>l.test(m)):Kw(w,l=>l.test(m));let d;d=n.valueCallback?n.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const s=t.slice(m.length);return{value:d,rest:s}}}function Kw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Gw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Yw(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],g=t.match(n.parsePattern);if(!g)return null;let m=n.valueCallback?n.valueCallback(g[0]):g[0];m=e.valueCallback?e.valueCallback(m):m;const w=t.slice(f.length);return{value:m,rest:w}}}const Xw=/^(\d+)(th|st|nd|rd)?/i,Zw=/\d+/i,Qw={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},Jw={any:[/^b/i,/^(a|c)/i]},ex={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tx={any:[/1/i,/2/i,/3/i,/4/i]},nx={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},rx={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]},ix={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},ox={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]},sx={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},ax={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}},lx={ordinalNumber:Yw({matchPattern:Xw,parsePattern:Zw,valueCallback:n=>parseInt(n,10)}),era:Na({matchPatterns:Qw,defaultMatchWidth:"wide",parsePatterns:Jw,defaultParseWidth:"any"}),quarter:Na({matchPatterns:ex,defaultMatchWidth:"wide",parsePatterns:tx,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Na({matchPatterns:nx,defaultMatchWidth:"wide",parsePatterns:rx,defaultParseWidth:"any"}),day:Na({matchPatterns:ix,defaultMatchWidth:"wide",parsePatterns:ox,defaultParseWidth:"any"}),dayPeriod:Na({matchPatterns:sx,defaultMatchWidth:"any",parsePatterns:ax,defaultParseWidth:"any"})},Gp={code:"en-US",formatDistance:Rw,formatLong:Dw,formatRelative:Pw,localize:qw,match:lx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cx(n,t){const e=Sn(n,void 0);return $w(e,Iw(e))+1}function Yp(n,t){const e=Sn(n,void 0),r=+ea(e)-+Tw(e);return Math.round(r/6048e5)+1}function vu(n,t){var e,r,f,g;const m=Sn(n,t==null?void 0:t.in),w=m.getFullYear(),h=Js(),d=(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??((g=(f=h.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,s=tr((t==null?void 0:t.in)||n,0);s.setFullYear(w+1,0,d),s.setHours(0,0,0,0);const l=Go(s,t),u=tr((t==null?void 0:t.in)||n,0);u.setFullYear(w,0,d),u.setHours(0,0,0,0);const c=Go(u,t);return+m>=+l?w+1:+m>=+c?w:w-1}function ux(n,t){var e,r,f,g;const m=Js(),w=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??m.firstWeekContainsDate??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,h=vu(n,t),d=tr((t==null?void 0:t.in)||n,0);return d.setFullYear(h,0,w),d.setHours(0,0,0,0),Go(d,t)}function Xp(n,t){const e=Sn(n,t==null?void 0:t.in),r=+Go(e,t)-+ux(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Yo={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(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 an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},ta={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zp={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 Yo.y(n,t)},Y:function(n,t,e,r){const f=vu(n,r),g=f>0?f:1-f;if(t==="YY"){const m=g%100;return an(m,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):an(g,t.length)},R:function(n,t){const e=Vp(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(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 an(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 an(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 Yo.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 an(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=Xp(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Yp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Yo.d(n,t)},D:function(n,t,e){const r=cx(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(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(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return an(g,2);case"eo":return e.ordinalNumber(g,{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(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return an(g,t.length);case"co":return e.ordinalNumber(g,{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 an(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=ta.noon:r===0?f=ta.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=ta.evening:r>=12?f=ta.afternoon:r>=4?f=ta.morning:f=ta.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 Yo.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Yo.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Yo.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Yo.s(n,t)},S:function(n,t){return Yo.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Jp(r);case"XXXX":case"XX":return ys(r);case"XXXXX":case"XXX":default:return ys(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Jp(r);case"xxxx":case"xx":return ys(r);case"xxxxx":case"xxx":default:return ys(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qp(r,":");case"OOOO":default:return"GMT"+ys(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qp(r,":");case"zzzz":default:return"GMT"+ys(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Qp(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+an(g,2)}function Jp(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):ys(n,t)}function ys(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),g=an(r%60,2);return e+f+t+g}const ef=(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"})}},tf=(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"})}},hx=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return ef(n,t);let g;switch(r){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",ef(r,t)).replace("{{time}}",tf(f,t))},yu={p:tf,P:hx},dx=/^D+$/,px=/^Y+$/,fx=["D","DD","YY","YYYY"];function nf(n){return dx.test(n)}function rf(n){return px.test(n)}function bu(n,t,e){const r=gx(n,t,e);if(console.warn(r),fx.includes(n))throw new RangeError(r)}function gx(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 mx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yx=/^'([^]*?)'?$/,bx=/''/g,wx=/[a-zA-Z]/;function bs(n,t,e){var r,f,g,m,w,h,d,s;const l=Js(),u=(e==null?void 0:e.locale)??l.locale??Gp,c=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((m=(g=l.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((s=(d=l.locale)==null?void 0:d.options)==null?void 0:s.weekStartsOn)??0,a=Sn(n,e==null?void 0:e.in);if(!Kp(a))throw new RangeError("Invalid time value");let p=t.match(vx).map(x=>{const R=x[0];if(R==="p"||R==="P"){const _=yu[R];return _(x,u.formatLong)}return x}).join("").match(mx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:xx(x)};if(Zp[R])return{isToken:!0,value:x};if(R.match(wx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(p=u.localize.preprocessor(a,p));const b={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&rf(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&nf(R))&&bu(R,t,String(n));const _=Zp[R[0]];return _(a,R,u.localize,b)}).join("")}function xx(n){const t=n.match(yx);return t?t[1].replace(bx,"'"):n}var Xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var of={exports:{}},sf;function Cx(){return sf||(sf=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(s,l,u){if(typeof s!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),f.modules[s]||(f.payloads[s]=u,f.modules[s]=null)};f.modules={},f.payloads={};var g=function(s,l,u){if(typeof l=="string"){var c=h(s,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],a=0,p=l.length;a<p;++a){var b=h(s,l[a]);if(b==null&&m.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},m=function(s,l){var u=g("",s,l);return u==null&&m.original?m.original.apply(this,arguments):u},w=function(s,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(s,u[0])+"!"+w(s,u[1])}if(l.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(s,l){l=w(s,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},a=function(b,x){return g(l,b,x)},p=u(a,c,i);c=p||i.exports,f.modules[l]=c,delete f.payloads[l]}u=f.modules[l]=c||u}return u};function d(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(m.original=l.require,l.require=m,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function g(m,w,h){Object.defineProperty(m,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(m,w){return w=w||0,this.lastIndexOf(m,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(m,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=m.length;var d=h.indexOf(m,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(m){for(var w="",h=this;m>0;)m&1&&(w+=h),(m>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(m),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(s){w[s]=d[s]})}return w}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(w){return m[w]})}),Array.prototype.find||g(Array.prototype,"find",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var s=this[d];if(m.call(h,s,d,this))return s}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var s=this[d];if(m.call(h,s,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(m){for(var w=this,h=w.length>>>0,d=arguments[1],s=d>>0,l=s<0?Math.max(h+s,0):Math.min(s,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=m,l++;return w}),Array.of||g(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 g(m){if(typeof m!="object"||!m)return m;var w;if(Array.isArray(m)){w=[];for(var h=0;h<m.length;h++)w[h]=g(m[h]);return w}if(Object.prototype.toString.call(m)!=="[object Object]")return m;w={};for(var h in m)w[h]=g(m[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,m=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(m,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,s=w.length;d<s;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(s){d.push({offset:arguments[arguments.length-2],length:s.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},s=function(l){return s.cancel(),h=setTimeout(d,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),w(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(w,h){var d=null,s=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(s,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(s,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,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 g=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=m=="win",r.isMac=m=="mac",r.isLinux=m=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("./useragent"),m="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,a){if(typeof c=="string"&&c){var p=document.createTextNode(c);return i&&i.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var R=u(c[x],i,a);R&&b.push(R)}return b}var _=document.createElement(c[0]),k=c[1],C=1;k&&typeof k=="object"&&!Array.isArray(k)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],_,a);return C==2&&Object.keys(k).forEach(function(L){var D=k[L];L==="class"?_.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?_[L]=D:L==="ref"?a&&(a[D]=_):L==="style"?typeof D=="string"&&(_.style.cssText=D):D!=null&&_.setAttribute(L,D)}),i&&i.appendChild(_),_},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||m,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var a=i.indexOf(c);if(a==-1)break;i.splice(a,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),a=!0;;){var p=i.indexOf(c);if(p==-1)break;a=!1,i.splice(p,1)}return a&&i.push(c),u.className=i.join(" "),a},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,a;if(c=c||document,a=c.querySelectorAll("style")){for(;i<a.length;)if(a[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){s(c[0],c[1])})}function s(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var a=i;!i||!i.getRootNode?a=document:(a=i.getRootNode(),(!a||a==i)&&(a=document));var p=a.ownerDocument||a;if(c&&r.hasCssString(c,a))return null;c&&(u+=`
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,it){"use strict";var xt,lo,Rn,Rt,ht,ri,mr,Sp,_p,Zs,La,_l,_o,Rr,ii,$l,Qs,Tl,Ml,$p,Tp,Mp,hu,Ip,Ep,Rp,Lp,Op,du,Np,Dp,Fp,pu,Pp,Wp;return{setters:[Tt=>{xt=Tt.resolveComponent,lo=Tt.createBlock,Rn=Tt.openBlock,Rt=Tt.withCtx,ht=Tt.createVNode,ri=Tt.createElementBlock,mr=Tt.createElementVNode,Sp=Tt.useCssVars,_p=Tt.defineAsyncComponent,Zs=Tt.h,La=Tt.normalizeStyle,_l=Tt.Fragment,_o=Tt.createCommentVNode,Rr=Tt.createTextVNode,ii=Tt.toDisplayString,$l=Tt.withKeys,Qs=Tt.withModifiers,Tl=Tt.withDirectives,Ml=Tt.vShow,$p=Tt.defineComponent,Tp=Tt.warn,Mp=Tt.inject,hu=Tt.computed,Ip=Tt.shallowRef,Ep=Tt.watchEffect,Rp=Tt.normalizeClass,Lp=Tt.getCurrentInstance,Op=Tt.provide,du=Tt.createApp,Np=Tt.mergeProps},Tt=>{Dp=Tt.createRouter,Fp=Tt.createWebHistory},Tt=>{pu=Tt.getMountedApps},Tt=>{Pp=Tt.createStore},Tt=>{Wp=Tt.createVuetify}],execute:function(){Kn({$:Kp,c:xM,f:Or,l:_n,y:tr,z:md});var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bp(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 ms(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(e),!0).forEach(function(r){aw(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Bp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function aw(n,t,e){return(t=function(r){var f=function(g,m){if(vs(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,m);if(vs(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(r,"string");return vs(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 vs(n){return vs=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},vs(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),g=f.length,m=-1,w="",h=f.charCodeAt(0);++m<g;)(r=f.charCodeAt(m))!=0?w+=r>=1&&r<=31||r==127||m==0&&r>=48&&r<=57||m==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":m==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(m):f.charAt(m):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(Tt);var lw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function cw(n){if(vs(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=ms(ms({},lw),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(vs(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:uw.bind(null,t,e),mount:hw.bind(null,t,e),unmount:pw.bind(null,t,e),update:dw.bind(null,t,e)}}function uw(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function hw(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,g){return typeof f.appOptions=="function"?f.appOptions(g):Promise.resolve(ms({},f.appOptions))}(n,e).then(function(f){var g;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(g=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(g=f.el).id||(g.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(g.id));else{var m="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(m)),(g=document.getElementById(m))||((g=document.createElement("div")).id=m,document.body.appendChild(g))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,f.render||f.template||!n.rootComponent||(f.render=function(d){return d(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return ms(ms({},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 dw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=ms(ms({},n.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var m in f)g[m]=f[m]})}function pw(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 fw=Kn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),gw={};function mw(n,t){const e=xt("router-view"),r=xt("v-app");return Rn(),lo(r,{id:"innerapp"},{default:Rt(()=>[ht(e)]),_:1})}const vw=fw(gw,[["render",mw]]),GN="modulepreload",YN=function(n){return"/"+n},XN={},ot=function(t,e,r){let f=Promise.resolve();function g(m){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=m,window.dispatchEvent(w),!w.defaultPrevented)throw m}return f.then(m=>{for(const w of m||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},zp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tlmviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(zp)},Ko=Kn("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),yw="/icons/customIcons.svg",fu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return yw+"#"+this.icon}}},Hp=()=>{Sp(n=>({v259824e2:n.color}))},jp=fu.setup;fu.setup=jp?(n,t)=>(Hp(),jp(n,t)):Hp;const bw={class:"cosmos-custom-icon"},ww={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},xw=["href"];function Cw(n,t,e,r,f,g){return Rn(),ri("span",bw,[(Rn(),ri("svg",ww,[mr("use",{href:g.iconSrc},null,8,xw)]))])}const kw=Ko(fu,[["render",Cw],["__scopeId","data-v-4b6f1199"]]),Il=6e4,gu=36e5,Aw=1e3,Up=Symbol.for("constructDateFrom");function tr(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&Up in n?n[Up](t):n instanceof Date?new n.constructor(t):new Date(t)}function _n(n,t){return tr(t||n,n)}let Sw={};function Js(){return Sw}function Go(n,t){var e,r,f,g;const m=Js(),w=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??m.weekStartsOn??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,h=_n(n,t==null?void 0:t.in),d=h.getDay(),s=(d<w?7:0)+d-w;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function ea(n,t){return Go(n,{...t,weekStartsOn:1})}function Vp(n,t){const e=_n(n,void 0),r=e.getFullYear(),f=tr(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const g=ea(f),m=tr(e,0);m.setFullYear(r,0,4),m.setHours(0,0,0,0);const w=ea(m);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function El(n){const t=_n(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 _w(n,...t){const e=tr.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function qp(n,t){const e=_n(n,void 0);return e.setHours(0,0,0,0),e}function $w(n,t,e){const[r,f]=_w(void 0,n,t),g=qp(r),m=qp(f),w=+g-El(g),h=+m-El(m);return Math.round((w-h)/864e5)}function Tw(n,t){const e=Vp(n),r=tr(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),ea(r)}function Mw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Kp(n){return!(!Mw(n)&&typeof n!="number"||isNaN(+_n(n)))}function Iw(n,t){const e=_n(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Ew={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"}},Rw=(n,t,e)=>{let r;const f=Ew[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 mu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Lw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ow={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dw={date:mu({formats:Lw,defaultWidth:"full"}),time:mu({formats:Ow,defaultWidth:"full"}),dateTime:mu({formats:Nw,defaultWidth:"full"})},Fw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pw=(n,t,e,r)=>Fw[n];function Oa(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const m=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):m;f=n.formattingValues[w]||n.formattingValues[m]}else{const m=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[w]||n.values[m]}const g=n.argumentCallback?n.argumentCallback(t):t;return f[g]}}const Ww={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zw={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"]},Hw={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"]},jw={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"}},Uw={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"}},Vw=(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"},qw={ordinalNumber:Vw,era:Oa({values:Ww,defaultWidth:"wide"}),quarter:Oa({values:Bw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Oa({values:zw,defaultWidth:"wide"}),day:Oa({values:Hw,defaultWidth:"wide"}),dayPeriod:Oa({values:jw,defaultWidth:"wide",formattingValues:Uw,defaultFormattingWidth:"wide"})};function Na(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],g=t.match(f);if(!g)return null;const m=g[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?Gw(w,l=>l.test(m)):Kw(w,l=>l.test(m));let d;d=n.valueCallback?n.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const s=t.slice(m.length);return{value:d,rest:s}}}function Kw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Gw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Yw(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],g=t.match(n.parsePattern);if(!g)return null;let m=n.valueCallback?n.valueCallback(g[0]):g[0];m=e.valueCallback?e.valueCallback(m):m;const w=t.slice(f.length);return{value:m,rest:w}}}const Xw=/^(\d+)(th|st|nd|rd)?/i,Zw=/\d+/i,Qw={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},Jw={any:[/^b/i,/^(a|c)/i]},ex={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tx={any:[/1/i,/2/i,/3/i,/4/i]},nx={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},rx={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]},ix={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},ox={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]},sx={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},ax={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}},lx={ordinalNumber:Yw({matchPattern:Xw,parsePattern:Zw,valueCallback:n=>parseInt(n,10)}),era:Na({matchPatterns:Qw,defaultMatchWidth:"wide",parsePatterns:Jw,defaultParseWidth:"any"}),quarter:Na({matchPatterns:ex,defaultMatchWidth:"wide",parsePatterns:tx,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Na({matchPatterns:nx,defaultMatchWidth:"wide",parsePatterns:rx,defaultParseWidth:"any"}),day:Na({matchPatterns:ix,defaultMatchWidth:"wide",parsePatterns:ox,defaultParseWidth:"any"}),dayPeriod:Na({matchPatterns:sx,defaultMatchWidth:"any",parsePatterns:ax,defaultParseWidth:"any"})},Gp={code:"en-US",formatDistance:Rw,formatLong:Dw,formatRelative:Pw,localize:qw,match:lx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cx(n,t){const e=_n(n,void 0);return $w(e,Iw(e))+1}function Yp(n,t){const e=_n(n,void 0),r=+ea(e)-+Tw(e);return Math.round(r/6048e5)+1}function vu(n,t){var e,r,f,g;const m=_n(n,t==null?void 0:t.in),w=m.getFullYear(),h=Js(),d=(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??((g=(f=h.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,s=tr((t==null?void 0:t.in)||n,0);s.setFullYear(w+1,0,d),s.setHours(0,0,0,0);const l=Go(s,t),u=tr((t==null?void 0:t.in)||n,0);u.setFullYear(w,0,d),u.setHours(0,0,0,0);const c=Go(u,t);return+m>=+l?w+1:+m>=+c?w:w-1}function ux(n,t){var e,r,f,g;const m=Js(),w=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??m.firstWeekContainsDate??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,h=vu(n,t),d=tr((t==null?void 0:t.in)||n,0);return d.setFullYear(h,0,w),d.setHours(0,0,0,0),Go(d,t)}function Xp(n,t){const e=_n(n,t==null?void 0:t.in),r=+Go(e,t)-+ux(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Yo={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(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 an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},ta={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zp={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 Yo.y(n,t)},Y:function(n,t,e,r){const f=vu(n,r),g=f>0?f:1-f;if(t==="YY"){const m=g%100;return an(m,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):an(g,t.length)},R:function(n,t){const e=Vp(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(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 an(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 an(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 Yo.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 an(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=Xp(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Yp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Yo.d(n,t)},D:function(n,t,e){const r=cx(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(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(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return an(g,2);case"eo":return e.ordinalNumber(g,{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(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return an(g,t.length);case"co":return e.ordinalNumber(g,{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 an(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=ta.noon:r===0?f=ta.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=ta.evening:r>=12?f=ta.afternoon:r>=4?f=ta.morning:f=ta.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 Yo.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Yo.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Yo.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Yo.s(n,t)},S:function(n,t){return Yo.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Jp(r);case"XXXX":case"XX":return ys(r);case"XXXXX":case"XXX":default:return ys(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Jp(r);case"xxxx":case"xx":return ys(r);case"xxxxx":case"xxx":default:return ys(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qp(r,":");case"OOOO":default:return"GMT"+ys(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qp(r,":");case"zzzz":default:return"GMT"+ys(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Qp(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+an(g,2)}function Jp(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):ys(n,t)}function ys(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),g=an(r%60,2);return e+f+t+g}const ef=(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"})}},tf=(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"})}},hx=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return ef(n,t);let g;switch(r){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",ef(r,t)).replace("{{time}}",tf(f,t))},yu={p:tf,P:hx},dx=/^D+$/,px=/^Y+$/,fx=["D","DD","YY","YYYY"];function nf(n){return dx.test(n)}function rf(n){return px.test(n)}function bu(n,t,e){const r=gx(n,t,e);if(console.warn(r),fx.includes(n))throw new RangeError(r)}function gx(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 mx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yx=/^'([^]*?)'?$/,bx=/''/g,wx=/[a-zA-Z]/;function bs(n,t,e){var r,f,g,m,w,h,d,s;const l=Js(),u=(e==null?void 0:e.locale)??l.locale??Gp,c=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((m=(g=l.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((s=(d=l.locale)==null?void 0:d.options)==null?void 0:s.weekStartsOn)??0,a=_n(n,e==null?void 0:e.in);if(!Kp(a))throw new RangeError("Invalid time value");let p=t.match(vx).map(x=>{const R=x[0];if(R==="p"||R==="P"){const _=yu[R];return _(x,u.formatLong)}return x}).join("").match(mx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:xx(x)};if(Zp[R])return{isToken:!0,value:x};if(R.match(wx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(p=u.localize.preprocessor(a,p));const b={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&rf(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&nf(R))&&bu(R,t,String(n));const _=Zp[R[0]];return _(a,R,u.localize,b)}).join("")}function xx(n){const t=n.match(yx);return t?t[1].replace(bx,"'"):n}var Xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var of={exports:{}},sf;function Cx(){return sf||(sf=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(s,l,u){if(typeof s!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),f.modules[s]||(f.payloads[s]=u,f.modules[s]=null)};f.modules={},f.payloads={};var g=function(s,l,u){if(typeof l=="string"){var c=h(s,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],a=0,p=l.length;a<p;++a){var b=h(s,l[a]);if(b==null&&m.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},m=function(s,l){var u=g("",s,l);return u==null&&m.original?m.original.apply(this,arguments):u},w=function(s,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(s,u[0])+"!"+w(s,u[1])}if(l.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(s,l){l=w(s,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},a=function(b,x){return g(l,b,x)},p=u(a,c,i);c=p||i.exports,f.modules[l]=c,delete f.payloads[l]}u=f.modules[l]=c||u}return u};function d(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(m.original=l.require,l.require=m,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function g(m,w,h){Object.defineProperty(m,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(m,w){return w=w||0,this.lastIndexOf(m,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(m,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=m.length;var d=h.indexOf(m,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(m){for(var w="",h=this;m>0;)m&1&&(w+=h),(m>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(m),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(s){w[s]=d[s]})}return w}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(w){return m[w]})}),Array.prototype.find||g(Array.prototype,"find",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var s=this[d];if(m.call(h,s,d,this))return s}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var s=this[d];if(m.call(h,s,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(m){for(var w=this,h=w.length>>>0,d=arguments[1],s=d>>0,l=s<0?Math.max(h+s,0):Math.min(s,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=m,l++;return w}),Array.of||g(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 g(m){if(typeof m!="object"||!m)return m;var w;if(Array.isArray(m)){w=[];for(var h=0;h<m.length;h++)w[h]=g(m[h]);return w}if(Object.prototype.toString.call(m)!=="[object Object]")return m;w={};for(var h in m)w[h]=g(m[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,m=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(m,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,s=w.length;d<s;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(s){d.push({offset:arguments[arguments.length-2],length:s.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},s=function(l){return s.cancel(),h=setTimeout(d,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),w(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(w,h){var d=null,s=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(s,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(s,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,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 g=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=m=="win",r.isMac=m=="mac",r.isLinux=m=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("./useragent"),m="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,a){if(typeof c=="string"&&c){var p=document.createTextNode(c);return i&&i.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var R=u(c[x],i,a);R&&b.push(R)}return b}var _=document.createElement(c[0]),k=c[1],C=1;k&&typeof k=="object"&&!Array.isArray(k)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],_,a);return C==2&&Object.keys(k).forEach(function(L){var D=k[L];L==="class"?_.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?_[L]=D:L==="ref"?a&&(a[D]=_):L==="style"?typeof D=="string"&&(_.style.cssText=D):D!=null&&_.setAttribute(L,D)}),i&&i.appendChild(_),_},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||m,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var a=i.indexOf(c);if(a==-1)break;i.splice(a,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),a=!0;;){var p=i.indexOf(c);if(p==-1)break;a=!1,i.splice(p,1)}return a&&i.push(c),u.className=i.join(" "),a},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,a;if(c=c||document,a=c.querySelectorAll("style")){for(;i<a.length;)if(a[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){s(c[0],c[1])})}function s(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var a=i;!i||!i.getRootNode?a=document:(a=i.getRootNode(),(!a||a==i)&&(a=document));var p=a.ownerDocument||a;if(c&&r.hasCssString(c,a))return null;c&&(u+=`
|
|
2
2
|
/*# sourceURL=ace/css/`+c+" */");var b=r.createElement("style");b.appendChild(p.createTextNode(u)),c&&(b.id=c),a==p&&(a=r.getDocumentHead(p)),a.insertBefore(b,a.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(u,c){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(c))},r.$fixPositionBug=function(u){var c=u.getBoundingClientRect();if(u.style.left){var i=parseFloat(u.style.left),a=+c.left;Math.abs(i-a)>1&&(u.style.left=2*i-a+"px")}if(u.style.right){var i=parseFloat(u.style.right),a=window.innerWidth-c.right;Math.abs(i-a)>1&&(u.style.right=2*i-a+"px")}if(u.style.top){var i=parseFloat(u.style.top),a=+c.top;Math.abs(i-a)>1&&(u.style.top=2*i-a+"px")}if(u.style.bottom){var i=parseFloat(u.style.bottom),a=window.innerHeight-c.bottom;Math.abs(i-a)>1&&(u.style.bottom=2*i-a+"px")}},r.scrollbarWidth=function(u){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var i=r.createElement("ace_outer"),a=i.style;a.position="absolute",a.left="-10000px",a.overflow="hidden",a.width="200px",a.minWidth="0px",a.height="150px",a.display="block",i.appendChild(c);var p=u&&u.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(i);var b=c.offsetWidth;a.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=i.clientWidth),p.removeChild(i),b-x},r.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,c,i){u[c]!==i&&(u[c]=i)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=g.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,g.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!g.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,c,i){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(i)+"px)"}:r.translate=function(u,c,i){u.style.top=Math.round(i)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
|
|
3
3
|
* based on code from:
|
|
4
4
|
*
|
|
@@ -163,7 +163,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,i
|
|
|
163
163
|
.ace-tm .ace_indent-guide-active {
|
|
164
164
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
165
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 g=e("../lib/dom");g.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 g=e("./lib/lang"),m=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!d.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return d[c]},r.set=function(c,i){if(d.hasOwnProperty(c))d[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return g.copyObject(d)},r.$modes={},r.moduleUrl=function(c,i){if(d.$moduleUrls[c])return d.$moduleUrls[c];var a=c.split("/");i=i||a[a.length-2]||"";var p=i=="snippets"?"/":"-",b=a[a.length-1];if(i=="worker"&&p=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&a.length>1&&(b=a[a.length-2]);var R=d[i+"Path"];return R==null?R=d.basePath:p=="/"&&(i=p=""),R&&R.slice(-1)!="/"&&(R+="/"),R+i+p+b+this.get("suffix")},r.setModuleUrl=function(c,i){return d.$moduleUrls[c]=i};var s=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(c,i);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var a;if(Array.isArray(c))var p=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(R){if(R&&!r.$loading[b])return i&&i(R);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var _=function(){s(b,function(k,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var L=r.$loading[b];r.$loading[b]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return _();m.loadScript(r.moduleUrl(b,p),_),u()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(R){R.default?x(R.default):x(R)});else{try{a=this.$require(b)}catch{}x(a||r.$loaded[b])}},r.$require=function(c){if(typeof f.require=="function"){var i="require";return f[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.4"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(d,s){e([d],function(l){s(null,l)})});var m=function(){return this||typeof window<"u"&&window}();f.exports=function(d){g.init=w,g.$require=e,d.require=e},w(!0);function w(d){if(!(!m||!m.document)){g.set("packaged",d||e.packaged||f.packaged||m.define&&(void 0).packaged);var s={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),a=0;a<i.length;a++){var p=i[a],b=p.src||p.getAttribute("src");if(b){for(var x=p.attributes,R=0,_=x.length;R<_;R++){var k=x[R];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var L in s)typeof s[L]<"u"&&g.set(L,s[L])}}function h(d){return d.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h,d,s){this.start={row:w,column:h},this.end={row:d,column:s}}return m.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},m.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},m.prototype.contains=function(w,h){return this.compare(w,h)==0},m.prototype.compareRange=function(w){var h,d=w.end,s=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},m.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},m.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},m.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},m.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},m.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},m.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},m.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},m.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},m.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},m.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},m.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},m.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},m.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<w)var s={row:w,column:0};return m.fromPoints(s||this.start,d||this.end)},m.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var s={row:w,column:h};else var l={row:w,column:h};return m.fromPoints(s||this.start,l||this.end)},m.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},m.prototype.isMultiLine=function(){return this.start.row!==this.end.row},m.prototype.clone=function(){return m.fromPoints(this.start,this.end)},m.prototype.collapseRows=function(){return this.end.column==0?new m(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new m(this.start.row,0,this.end.row,0)},m.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new m(h.row,h.column,d.row,d.column)},m.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},m}();g.fromPoints=function(m,w){return new g(m.row,m.column,w.row,w.column)},g.comparePoints=function(m,w){return m.row-w.row||m.column-w.column},r.Range=g}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var g=e("./oop"),m={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,m.PRINTABLE_KEYS[48+h]=""+h,m.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,m.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,m.FUNCTION_KEYS[111+h]="F"+h;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)w[l]=w[l+"Left"]=w[l+"Right"]=s[l];r.$codeToKeyCode=w,m.PRINTABLE_KEYS[173]="-";for(var u in m.FUNCTION_KEYS){var c=m.FUNCTION_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}for(var u in m.PRINTABLE_KEYS){var c=m.PRINTABLE_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}g.mixin(m,m.MODIFIER_KEYS),g.mixin(m,m.PRINTABLE_KEYS),g.mixin(m,m.FUNCTION_KEYS),m.enter=m.return,m.escape=m.esc,m.del=m.delete,function(){for(var i=["cmd","ctrl","alt","shift"],a=Math.pow(2,i.length);a--;)m.KEY_MODS[a]=i.filter(function(p){return a&m.KEY_MODS[p]}).join("-")+"-"}(),m.KEY_MODS[0]="",m.KEY_MODS[-1]="input-",g.mixin(r,m),r.default=r,r.keyCodeToString=function(i){var a=m[i];return typeof a!="string"&&(a=String.fromCharCode(i)),a.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var g=e("./keys"),m=e("./useragent"),w=null,h=0,d;function s(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&s(),d}function u(R,_,k){this.elem=R,this.type=_,this.callback=k}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(R,_,k,C){R.addEventListener(_,k,l()),C&&C.$toDestroy.push(new u(R,_,k))},i=r.removeListener=function(R,_,k){R.removeEventListener(_,k,l())};r.stopEvent=function(R){return r.stopPropagation(R),r.preventDefault(R),!1},r.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},r.preventDefault=function(R){R.preventDefault&&R.preventDefault()},r.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||m.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},r.capture=function(R,_,k){var C=R&&R.ownerDocument||document;function L(D){_&&_(D),k&&k(D),i(C,"mousemove",_),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",_),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(R,_,k){c(R,"wheel",function(C){var L=.15,D=C.deltaX||0,E=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=E*L;break;case C.DOM_DELTA_LINE:var I=15;C.wheelX=D*I,C.wheelY=E*I;break;case C.DOM_DELTA_PAGE:var z=150;C.wheelX=D*z,C.wheelY=E*z;break}_(C)},k)},r.addMultiMouseDownListener=function(R,_,k,C,L){var D=0,E,I,z,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,m.isIE){var A=Math.abs($.clientX-E)>5||Math.abs($.clientY-I)>5;(!z||A)&&(D=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},_[D-1]||600),D==1&&(E=$.clientX,I=$.clientY)}if($._clicks=D,k[C]("mousedown",$),D>4)D=0;else if(D>1)return k[C](P[D],$)}Array.isArray(R)||(R=[R]),R.forEach(function($){c($,"mousedown",O,L)})};function a(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}r.getModifierString=function(R){return g.KEY_MODS[a(R)]};function p(R,_,k){var C=a(_);if(!k&&_.code&&(k=g.$codeToKeyCode[_.code]||k),!m.isMac&&w){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(k===18||k===17){var L=_.location;if(k===17&&L===1)w[k]==1&&(h=_.timeStamp);else if(k===18&&C===3&&L===2){var D=_.timeStamp-h;D<50&&(w.altGr=!0)}}}if(k in g.MODIFIER_KEYS&&(k=-1),!(!C&&k===13&&_.location===3&&(R(_,C,-k),_.defaultPrevented))){if(m.isChromeOS&&C&8){if(R(_,C,k),_.defaultPrevented)return;C&=-9}return!C&&!(k in g.FUNCTION_KEYS)&&!(k in g.PRINTABLE_KEYS)?!1:R(_,C,k)}}r.addCommandKeyListener=function(R,_,k){var C=null;c(R,"keydown",function(L){w[L.keyCode]=(w[L.keyCode]||0)+1;var D=p(_,L,L.keyCode);return C=L.defaultPrevented,D},k),c(R,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},k),c(R,"keyup",function(L){w[L.keyCode]=null},k),w||(b(),c(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!m.isOldIE){var x=1;r.nextTick=function(R,_){_=_||window;var k="zero-timeout-message-"+x++,C=function(L){L.data==k&&(r.stopPropagation(L),i(_,"message",C),R())};c(_,"message",C),_.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(R,_){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):R()},_)},r.$idleBlockId=null,r.blockIdle=function(R){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},R||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(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,f){var g;f.exports={lineMode:!1,pasteCancelled:function(){return g&&g>Date.now()-50?!0:g=!1},cancel:function(){g=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 g=e("../lib/event"),m=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),s=e("../clipboard"),l=w.isChrome<18,u=w.isIE,c=w.isChrome>63,i=400,a=e("../lib/keys"),p=a.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,R=w.isMobile,_=function(){function k(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",R||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),g.addListener(this.text,"blur",function(E){D.ignoreFocusEvents||(L.onBlur(E),D.$isFocused=!1)},L),g.addListener(this.text,"focus",function(E){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(E),w.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var E=L.curOp,I=E&&E.command&&E.command.name;if(I!="insertstring"){var z=I&&(E.docChanged||E.selectionChanged);D.inComposition&&z&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,g.addCommandKeyListener(this.text,function(E,I,z){if(!D.inComposition)return L.onCommandKey(E,I,z)},L),g.addListener(this.text,"select",this.onSelect.bind(this),L),g.addListener(this.text,"input",this.onInput.bind(this),L),g.addListener(this.text,"cut",this.onCut.bind(this),L),g.addListener(this.text,"copy",this.onCopy.bind(this),L),g.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&g.addListener(C,"keydown",function(E){if(!(w.isMac&&!E.metaKey||!E.ctrlKey))switch(E.keyCode){case 67:D.onCopy(E);break;case 86:D.onPaste(E);break;case 88:D.onCut(E);break}},L),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),g.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),g.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),g.addListener(this.text,"keyup",this.onKeyup.bind(this),L),g.addListener(this.text,"keydown",this.syncComposition.bind(this),L),g.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,g.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),g.addListener(this.text,"mousedown",function(E){E.preventDefault(),D.onContextMenuClose()},L),g.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),g.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),b&&this.addIosSelectionHandler(C,L,this.text)}return k.prototype.addIosSelectionHandler=function(C,L,D){var E=this,I=null,z=!1;D.addEventListener("keydown",function(O){I&&clearTimeout(I),z=!0},!0),D.addEventListener("keyup",function(O){I=setTimeout(function(){z=!1},100)},!0);var P=function(O){if(document.activeElement===D&&!(z||E.inComposition||L.$mouseHandler.isMousePressed)&&!E.copied){var $=D.selectionStart,A=D.selectionEnd,N=null,B=0;if($==0?N=a.up:$==1?N=a.home:A>E.lastSelectionEnd&&E.lastValue[A]==`
|
|
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 g=e("../lib/dom");g.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 g=e("./lib/lang"),m=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!d.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return d[c]},r.set=function(c,i){if(d.hasOwnProperty(c))d[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return g.copyObject(d)},r.$modes={},r.moduleUrl=function(c,i){if(d.$moduleUrls[c])return d.$moduleUrls[c];var a=c.split("/");i=i||a[a.length-2]||"";var p=i=="snippets"?"/":"-",b=a[a.length-1];if(i=="worker"&&p=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&a.length>1&&(b=a[a.length-2]);var R=d[i+"Path"];return R==null?R=d.basePath:p=="/"&&(i=p=""),R&&R.slice(-1)!="/"&&(R+="/"),R+i+p+b+this.get("suffix")},r.setModuleUrl=function(c,i){return d.$moduleUrls[c]=i};var s=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(c,i);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var a;if(Array.isArray(c))var p=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(R){if(R&&!r.$loading[b])return i&&i(R);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var _=function(){s(b,function(k,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var L=r.$loading[b];r.$loading[b]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return _();m.loadScript(r.moduleUrl(b,p),_),u()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(R){R.default?x(R.default):x(R)});else{try{a=this.$require(b)}catch{}x(a||r.$loaded[b])}},r.$require=function(c){if(typeof f.require=="function"){var i="require";return f[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(d,s){e([d],function(l){s(null,l)})});var m=function(){return this||typeof window<"u"&&window}();f.exports=function(d){g.init=w,g.$require=e,d.require=e},w(!0);function w(d){if(!(!m||!m.document)){g.set("packaged",d||e.packaged||f.packaged||m.define&&(void 0).packaged);var s={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),a=0;a<i.length;a++){var p=i[a],b=p.src||p.getAttribute("src");if(b){for(var x=p.attributes,R=0,_=x.length;R<_;R++){var k=x[R];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var L in s)typeof s[L]<"u"&&g.set(L,s[L])}}function h(d){return d.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h,d,s){this.start={row:w,column:h},this.end={row:d,column:s}}return m.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},m.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},m.prototype.contains=function(w,h){return this.compare(w,h)==0},m.prototype.compareRange=function(w){var h,d=w.end,s=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},m.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},m.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},m.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},m.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},m.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},m.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},m.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},m.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},m.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},m.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},m.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},m.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},m.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<w)var s={row:w,column:0};return m.fromPoints(s||this.start,d||this.end)},m.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var s={row:w,column:h};else var l={row:w,column:h};return m.fromPoints(s||this.start,l||this.end)},m.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},m.prototype.isMultiLine=function(){return this.start.row!==this.end.row},m.prototype.clone=function(){return m.fromPoints(this.start,this.end)},m.prototype.collapseRows=function(){return this.end.column==0?new m(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new m(this.start.row,0,this.end.row,0)},m.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new m(h.row,h.column,d.row,d.column)},m.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},m}();g.fromPoints=function(m,w){return new g(m.row,m.column,w.row,w.column)},g.comparePoints=function(m,w){return m.row-w.row||m.column-w.column},r.Range=g}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var g=e("./oop"),m={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,m.PRINTABLE_KEYS[48+h]=""+h,m.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,m.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,m.FUNCTION_KEYS[111+h]="F"+h;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)w[l]=w[l+"Left"]=w[l+"Right"]=s[l];r.$codeToKeyCode=w,m.PRINTABLE_KEYS[173]="-";for(var u in m.FUNCTION_KEYS){var c=m.FUNCTION_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}for(var u in m.PRINTABLE_KEYS){var c=m.PRINTABLE_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}g.mixin(m,m.MODIFIER_KEYS),g.mixin(m,m.PRINTABLE_KEYS),g.mixin(m,m.FUNCTION_KEYS),m.enter=m.return,m.escape=m.esc,m.del=m.delete,function(){for(var i=["cmd","ctrl","alt","shift"],a=Math.pow(2,i.length);a--;)m.KEY_MODS[a]=i.filter(function(p){return a&m.KEY_MODS[p]}).join("-")+"-"}(),m.KEY_MODS[0]="",m.KEY_MODS[-1]="input-",g.mixin(r,m),r.default=r,r.keyCodeToString=function(i){var a=m[i];return typeof a!="string"&&(a=String.fromCharCode(i)),a.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var g=e("./keys"),m=e("./useragent"),w=null,h=0,d;function s(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&s(),d}function u(R,_,k){this.elem=R,this.type=_,this.callback=k}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(R,_,k,C){R.addEventListener(_,k,l()),C&&C.$toDestroy.push(new u(R,_,k))},i=r.removeListener=function(R,_,k){R.removeEventListener(_,k,l())};r.stopEvent=function(R){return r.stopPropagation(R),r.preventDefault(R),!1},r.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},r.preventDefault=function(R){R.preventDefault&&R.preventDefault()},r.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||m.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},r.capture=function(R,_,k){var C=R&&R.ownerDocument||document;function L(D){_&&_(D),k&&k(D),i(C,"mousemove",_),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",_),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(R,_,k){c(R,"wheel",function(C){var L=.15,D=C.deltaX||0,E=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=E*L;break;case C.DOM_DELTA_LINE:var I=15;C.wheelX=D*I,C.wheelY=E*I;break;case C.DOM_DELTA_PAGE:var z=150;C.wheelX=D*z,C.wheelY=E*z;break}_(C)},k)},r.addMultiMouseDownListener=function(R,_,k,C,L){var D=0,E,I,z,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,m.isIE){var A=Math.abs($.clientX-E)>5||Math.abs($.clientY-I)>5;(!z||A)&&(D=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},_[D-1]||600),D==1&&(E=$.clientX,I=$.clientY)}if($._clicks=D,k[C]("mousedown",$),D>4)D=0;else if(D>1)return k[C](P[D],$)}Array.isArray(R)||(R=[R]),R.forEach(function($){c($,"mousedown",O,L)})};function a(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}r.getModifierString=function(R){return g.KEY_MODS[a(R)]};function p(R,_,k){var C=a(_);if(!k&&_.code&&(k=g.$codeToKeyCode[_.code]||k),!m.isMac&&w){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(k===18||k===17){var L=_.location;if(k===17&&L===1)w[k]==1&&(h=_.timeStamp);else if(k===18&&C===3&&L===2){var D=_.timeStamp-h;D<50&&(w.altGr=!0)}}}if(k in g.MODIFIER_KEYS&&(k=-1),!(!C&&k===13&&_.location===3&&(R(_,C,-k),_.defaultPrevented))){if(m.isChromeOS&&C&8){if(R(_,C,k),_.defaultPrevented)return;C&=-9}return!C&&!(k in g.FUNCTION_KEYS)&&!(k in g.PRINTABLE_KEYS)?!1:R(_,C,k)}}r.addCommandKeyListener=function(R,_,k){var C=null;c(R,"keydown",function(L){w[L.keyCode]=(w[L.keyCode]||0)+1;var D=p(_,L,L.keyCode);return C=L.defaultPrevented,D},k),c(R,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},k),c(R,"keyup",function(L){w[L.keyCode]=null},k),w||(b(),c(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!m.isOldIE){var x=1;r.nextTick=function(R,_){_=_||window;var k="zero-timeout-message-"+x++,C=function(L){L.data==k&&(r.stopPropagation(L),i(_,"message",C),R())};c(_,"message",C),_.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(R,_){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):R()},_)},r.$idleBlockId=null,r.blockIdle=function(R){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},R||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(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,f){var g;f.exports={lineMode:!1,pasteCancelled:function(){return g&&g>Date.now()-50?!0:g=!1},cancel:function(){g=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 g=e("../lib/event"),m=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),s=e("../clipboard"),l=w.isChrome<18,u=w.isIE,c=w.isChrome>63,i=400,a=e("../lib/keys"),p=a.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,R=w.isMobile,_=function(){function k(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",R||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),g.addListener(this.text,"blur",function(E){D.ignoreFocusEvents||(L.onBlur(E),D.$isFocused=!1)},L),g.addListener(this.text,"focus",function(E){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(E),w.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var E=L.curOp,I=E&&E.command&&E.command.name;if(I!="insertstring"){var z=I&&(E.docChanged||E.selectionChanged);D.inComposition&&z&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,g.addCommandKeyListener(this.text,function(E,I,z){if(!D.inComposition)return L.onCommandKey(E,I,z)},L),g.addListener(this.text,"select",this.onSelect.bind(this),L),g.addListener(this.text,"input",this.onInput.bind(this),L),g.addListener(this.text,"cut",this.onCut.bind(this),L),g.addListener(this.text,"copy",this.onCopy.bind(this),L),g.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&g.addListener(C,"keydown",function(E){if(!(w.isMac&&!E.metaKey||!E.ctrlKey))switch(E.keyCode){case 67:D.onCopy(E);break;case 86:D.onPaste(E);break;case 88:D.onCut(E);break}},L),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),g.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),g.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),g.addListener(this.text,"keyup",this.onKeyup.bind(this),L),g.addListener(this.text,"keydown",this.syncComposition.bind(this),L),g.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,g.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),g.addListener(this.text,"mousedown",function(E){E.preventDefault(),D.onContextMenuClose()},L),g.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),g.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),b&&this.addIosSelectionHandler(C,L,this.text)}return k.prototype.addIosSelectionHandler=function(C,L,D){var E=this,I=null,z=!1;D.addEventListener("keydown",function(O){I&&clearTimeout(I),z=!0},!0),D.addEventListener("keyup",function(O){I=setTimeout(function(){z=!1},100)},!0);var P=function(O){if(document.activeElement===D&&!(z||E.inComposition||L.$mouseHandler.isMousePressed)&&!E.copied){var $=D.selectionStart,A=D.selectionEnd,N=null,B=0;if($==0?N=a.up:$==1?N=a.home:A>E.lastSelectionEnd&&E.lastValue[A]==`
|
|
167
167
|
`?N=a.end:$<E.lastSelectionStart&&E.lastValue[$-1]==" "?(N=a.left,B=p.option):$<E.lastSelectionStart||$==E.lastSelectionStart&&E.lastSelectionEnd!=E.lastSelectionStart&&$==A?N=a.left:A>E.lastSelectionEnd&&E.lastValue.slice(0,A).split(`
|
|
168
168
|
`).length>2?N=a.down:A>E.lastSelectionEnd&&E.lastValue[A-1]==" "?(N=a.right,B=p.option):(A>E.lastSelectionEnd||A==E.lastSelectionEnd&&E.lastSelectionEnd!=E.lastSelectionStart&&$==A)&&(N=a.right),$!==A&&(B|=p.shift),N){var U=L.onCommandKey({},B,N);if(!U&&L.commands){N=a.keyCodeToString(N);var K=L.commands.findKeyCommand(B,N);K&&L.execCommand(K)}E.lastSelectionStart=$,E.lastSelectionEnd=A,E.resetSelection("")}}};document.addEventListener("selectionchange",P),L.on("destroy",function(){document.removeEventListener("selectionchange",P)})},k.prototype.onContextMenuClose=function(){var C=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){C.tempStyle&&(C.text.style.cssText=C.tempStyle,C.tempStyle=""),C.host.renderer.$isMousePressed=!1,C.host.renderer.$keepTextAreaAtCursor&&C.host.renderer.$moveTextAreaToCursor()},0)},k.prototype.$onContextMenu=function(C){this.host.textInput.onContextMenu(C),this.onContextMenuClose()},k.prototype.onKeyup=function(C){C.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},k.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},k.prototype.onCompositionStart=function(C){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){C.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var L=this.host.getSelectionRange();L.end.row=L.start.row,L.end.column=L.start.column,this.inComposition.markerRange=L,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},k.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var C=this.text.value;this.sendText(C),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},k.prototype.onCompositionEnd=function(C){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),C&&this.onInput())},k.prototype.onCut=function(C){this.doCopy(C,!0)},k.prototype.onCopy=function(C){this.doCopy(C,!1)},k.prototype.onPaste=function(C){var L=this.handleClipboardData(C);s.pasteCancelled()||(typeof L=="string"?(L&&this.host.onPaste(L,C),w.isIE&&setTimeout(this.resetSelection),g.preventDefault(C)):(this.text.value="",this.pasted=!0))},k.prototype.doCopy=function(C,L){var D=this,E=this.host.getCopyText();if(!E)return g.preventDefault(C);this.handleClipboardData(C,E)?(b&&(this.resetSelection(E),this.copied=E,setTimeout(function(){D.copied=!1},10)),L?this.host.onCut():this.host.onCopy(),g.preventDefault(C)):(this.copied=!0,this.text.value=E,this.text.select(),setTimeout(function(){D.copied=!1,D.resetSelection(),L?D.host.onCut():D.host.onCopy()}))},k.prototype.handleClipboardData=function(C,L,D){var E=C.clipboardData||window.clipboardData;if(!(!E||l)){var I=u||D?"Text":"text/plain";try{return L?E.setData(I,L)!==!1:E.getData(I)}catch(z){if(!D)return this.handleClipboardData(z,L,!0)}}},k.prototype.onInput=function(C){if(this.inComposition)return this.onCompositionUpdate();if(C&&C.inputType){if(C.inputType=="historyUndo")return this.host.execCommand("undo");if(C.inputType=="historyRedo")return this.host.execCommand("redo")}var L=this.text.value,D=this.sendText(L,!0);(L.length>i+100||x.test(D)||R&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},k.prototype.sendText=function(C,L){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),C&&this.host.onPaste(C),this.pasted=!1,"";for(var D=this.text.selectionStart,E=this.text.selectionEnd,I=this.lastSelectionStart,z=this.lastValue.length-this.lastSelectionEnd,P=C,O=C.length-D,$=C.length-E,A=0;I>0&&this.lastValue[A]==C[A];)A++,I--;for(P=P.slice(A),A=1;z>0&&this.lastValue.length-A>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-A]==C[C.length-A];)A++,z--;O-=A-1,$-=A-1;var N=P.length-A+1;if(N<0&&(I=-N,N=0),P=P.slice(0,N),!L&&!P&&!O&&!I&&!z&&!$)return"";this.sendingText=!0;var B=!1;return w.isAndroid&&P==". "&&(P=" ",B=!0),P&&!I&&!z&&!O&&!$||this.commandMode?this.host.onTextInput(P):this.host.onTextInput(P,{extendLeft:I,extendRight:z,restoreStart:O,restoreEnd:$}),this.sendingText=!1,this.lastValue=C,this.lastSelectionStart=D,this.lastSelectionEnd=E,this.lastRestoreEnd=$,B?`
|
|
169
169
|
`:P},k.prototype.onSelect=function(C){var L=this;if(!this.inComposition){var D=function(E){return E.selectionStart===0&&E.selectionEnd>=L.lastValue.length&&E.value===L.lastValue&&L.lastValue&&E.selectionEnd!==L.lastSelectionEnd};this.copied?this.copied=!1:D(this.text)?(this.host.selectAll(),this.resetSelection()):R&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},k.prototype.$resetSelectionIOS=function(C){if(!(!this.$isFocused||this.copied&&!C||this.sendingText)){C||(C="");var L=`
|
|
@@ -175,7 +175,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,i
|
|
|
175
175
|
`+E,D+=1,L+=1);E.length>i&&(L<i&&D<i?E=E.slice(0,i):(E=`
|
|
176
176
|
`,L==D?L=D=0:(L=0,D=1)));var U=E+`
|
|
177
177
|
|
|
178
|
-
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},k.prototype.setHost=function(C){this.host=C},k.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},k.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=m("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},k.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",m("text-input.aria-roledescription","editor")),this.setAriaLabel())},k.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var E=[];if(D)for(var I=this.text.parentElement;I&&I.nodeType==1;)E.push(I),I.setAttribute("ace_nocontext","true"),!I.parentElement&&I.getRootNode?I=I.getRootNode().host:I=I.parentElement;this.text.focus({preventScroll:!0}),D&&E.forEach(function(z){z.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(C){this.inputHandler=C},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},k.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},k.prototype.setCopyWithEmptySelection=function(C){},k.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},k.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var E=this.host.container.getBoundingClientRect(),I=h.computedStyle(this.host.container),z=E.top+(parseInt(I.borderTopWidth)||0),P=E.left+(parseInt(I.borderLeftWidth)||0),O=E.bottom-z-this.text.clientHeight-2,$=function(A){h.translate(D.text,A.clientX-P-2,Math.min(A.clientY-z-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&g.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},k}();r.TextInput=_,r.$setUserAgentForTests=function(k,C){R=k,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("../lib/useragent"),m=0,w=550,h=function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(a){u[a]=this[a]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var a=this.editor,p=u.getButton();if(p!==0){var b=a.getSelectionRange(),x=b.isEmpty();(x||p==1)&&a.selection.moveToPosition(i),p==2&&(a.textInput.onContextMenu(u.domEvent),g.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!a.isFocused()&&(a.focus(),this.$focusTimeout&&!this.$clickSelection&&!a.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(i);if(a==-1)u=this.$clickSelection.end;else if(a==1)u=this.$clickSelection.start;else{var p=s(this.$clickSelection,i,c.session);i=p.cursor,u=p.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,i=this.editor,a=i.renderer.screenToTextCoordinates(this.x,this.y),p=i.selection[u](a.row,a.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(p.end.row!=a.row||p.end.column!=a.column)&&(a=p.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(p.start.row!=a.row||p.start.column!=a.column)&&(a=p.end);else if(b==-1&&x==1)a=p.end,c=p.start;else{var R=s(this.$clickSelection,a,i.session);a=R.cursor,c=R.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(a),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>m||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,a=i.session,p=a.getBracketRange(c);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var a=i.getSelectionRange();a.isMultiLine()&&a.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(a.start.row),this.$clickSelection.end=i.selection.getLineRange(a.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,a=u.domEvent.timeStamp,p=a-i.t,b=p?u.wheelX/p:i.vx,x=p?u.wheelY/p:i.vy;p<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var R=Math.abs(b/x),_=!1;if(R>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),R<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)i.allowed=a;else if(a-i.allowed<w){var k=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);k?(_=!0,i.allowed=a):i.allowed=0}if(i.t=a,i.vx=b,i.vy=x,_)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function d(l,u,c,i){return Math.sqrt(Math.pow(c-l,2)+Math.pow(i-u,2))}function s(l,u,c){if(l.start.row==l.end.row)var i=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var i=3*u.column-2*c.getLine(l.start.row).length;else var i=2*u.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/event"),m=e("../lib/useragent"),w=function(){function h(d,s){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=s,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){g.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var d=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,s=d.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return g.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return m.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(g){g.stopPropagation();var m=g.currentTarget,w=m.scrollHeight>m.clientHeight;w||g.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var g=this&&this.__extends||function(){var a=function(p,b){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var _ in R)Object.prototype.hasOwnProperty.call(R,_)&&(x[_]=R[_])},a(p,b)};return function(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");a(p,b);function x(){this.constructor=p}p.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),m=this&&this.__values||function(a){var p=typeof Symbol=="function"&&Symbol.iterator,b=p&&a[p],x=0;if(b)return b.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&x>=a.length&&(a=void 0),{value:a&&a[x++],done:!a}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function a(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return a.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(p){this.getElement().textContent=p},a.prototype.setHtml=function(p){this.getElement().innerHTML=p},a.prototype.setPosition=function(p,b){this.getElement().style.left=p+"px",this.getElement().style.top=b+"px"},a.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},a.prototype.setTheme=function(p){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),p.isDark&&w.addCssClass(this.getElement(),"ace_dark"),p.cssClass&&w.addCssClass(this.getElement(),p.cssClass),this.theme={isDark:p.isDark,cssClass:p.cssClass}},a.prototype.show=function(p,b,x){p!=null&&this.setText(p),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),u=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},a.prototype.removePopup=function(p){var b=this.popups.indexOf(p);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},a.prototype.updatePopups=function(){var p,b,x,R;this.popups.sort(function(P,O){return O.priority-P.priority});var _=[];try{for(var k=m(this.popups),C=k.next();!C.done;C=k.next()){var L=C.value,D=!0;try{for(var E=(x=void 0,m(_)),I=E.next();!I.done;I=E.next()){var z=I.value;if(this.doPopupsOverlap(z,L)){D=!1;break}}}catch(P){x={error:P}}finally{try{I&&!I.done&&(R=E.return)&&R.call(E)}finally{if(x)throw x.error}}D?_.push(L):L.hide()}}catch(P){p={error:P}}finally{try{C&&!C.done&&(b=k.return)&&b.call(k)}finally{if(p)throw p.error}}},a.prototype.doPopupsOverlap=function(p,b){var x=p.getElement().getBoundingClientRect(),R=b.getElement().getBoundingClientRect();return x.left<R.right&&x.right>R.left&&x.top<R.bottom&&x.bottom>R.top},a}(),c=new u;r.popupManager=c,r.Tooltip=l;var i=function(a){g(p,a);function p(b){b===void 0&&(b=document.body);var x=a.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var R=x.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",x.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(x)),R.addEventListener("wheel",d),x}return p.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var R=x.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(b){var x=b.editor,R=b.getDocumentPosition(),_=x.session.getLine(R.row);if(R.column==_.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(R.row,R.column);if(C.column!=k.column||C.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(b){this.$gatherData=b},p.prototype.showForRange=function(b,x,R,_){if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var k=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(k.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=k.textToScreenCoordinates(x.start.row,x.start.column),L=k.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(R),D.style.maxHeight="",D.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(D)}},p.prototype.$setPosition=function(b,x,R,_){var k=10;R&&this.addMarker(_,b.session);var C=b.renderer,L=this.getElement(),D=L.offsetHeight,E=L.offsetWidth,I=x.pageY,z=x.pageX,P=window.innerHeight-I-C.lineHeight,O=this.$shouldPlaceAbove(D,I,P-k);L.style.maxHeight=(O?I:P)-k+"px",L.style.top=O?"":I+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-I+"px":"",L.style.left=Math.min(z,window.innerWidth-E-k)+"px"},p.prototype.$shouldPlaceAbove=function(b,x,R){return!(x-b<0&&x<R)},p.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},p.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},p}(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,f){var g=this&&this.__extends||function(){var i=function(a,p){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var R in x)Object.prototype.hasOwnProperty.call(x,R)&&(b[R]=x[R])},i(a,p)};return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");i(a,p);function b(){this.constructor=a}a.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}(),m=this&&this.__values||function(i){var a=typeof Symbol=="function"&&Symbol.iterator,p=a&&i[a],b=0;if(p)return p.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,s=e("../config").nls,l=e("../range").Range;function u(i){var a=i.editor,p=a.renderer.$gutterLayer;i.$tooltip=new c(a),i.$tooltip.addToEditor(a),i.$tooltip.setDataProvider(function(b,x){var R=b.getDocumentPosition().row;i.$tooltip.showTooltip(R)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!a.isFocused()||b.getButton()!=0)){var x=p.getRegion(b);if(x!="foldWidgets"){var R=b.getDocumentPosition().row,_=a.session.selection;if(b.getShiftKey())_.selectTo(R,0);else{if(b.domEvent.detail==2)return a.selectAll(),b.preventDefault();i.$clickSelection=a.selection.getLineRange(R)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=u;var c=function(i){g(a,i);function a(p){var b=i.call(this,p.container)||this;b.id="gt"+ ++a.$uid,b.editor=p,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return a.prototype.onDomMouseMove=function(p){var b=new h(p,this.editor);this.onMouseMove(b,this.editor)},a.prototype.onDomMouseOut=function(p){var b=new h(p,this.editor);this.onMouseOut(b)},a.prototype.addToEditor=function(p){var b=p.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,p)},a.prototype.removeFromEditor=function(p){var b=p.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,p)},a.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(a,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),a.prototype.showTooltip=function(p){var b,x=this.editor.renderer.$gutterLayer,R=x.$annotations[p],_;R?_={displayText:Array.from(R.displayText),type:Array.from(R.type)}:_={displayText:[],type:[]};var k=x.session.getFoldLine(p);if(k&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,E=p+1;E<=k.end.row;E++)if(x.$annotations[E])for(var I=0;I<x.$annotations[E].text.length;I++){var z=x.$annotations[E].type[I];C[z].push(x.$annotations[E].text[I]),(!D||L[z]<L[D])&&(D=z)}if(["error","security","warning"].includes(D)){var P="".concat(a.annotationsToSummaryString(C)," in folded code.");_.displayText.push(P),_.type.push(D+"_fold")}}if(_.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<_.displayText.length;E++){var A=w.createElement("span"),N=w.createElement("span");(b=N.classList).add.apply(b,["ace_".concat(_.type[E]),$]),N.setAttribute("aria-label","".concat(a.annotationLabels[_.type[E].replace("_fold","")].singular)),N.setAttribute("role","img"),N.appendChild(w.createTextNode(" ")),A.appendChild(N),A.appendChild(w.createTextNode(_.displayText[E])),A.appendChild(w.createElement("br")),O[_.type[E].replace("_fold","")].push(A)}var B=w.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(p);U&&U.setAttribute("aria-describedby",this.id);var K=l.fromPoints({row:p,column:0},{row:p,column:0});this.showForRange(this.editor,K,B),this.visibleTooltipRow=p,this.editor._signal("showGutterTooltip",this)},a.prototype.$setPosition=function(p,b,x,R){var _=this.$findCellByRow(R.start.row);if(_){var k=_&&_.element,C=k&&k.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,p,D,!1,R)}}}},a.prototype.$shouldPlaceAbove=function(p,b,x){return x<p},a.prototype.$findLinkedAnnotationNode=function(p){var b=this.$findCellByRow(p);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},a.prototype.$findCellByRow=function(p){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===p})},a.prototype.hide=function(p){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,p)}},a.annotationsToSummaryString=function(p){var b,x,R=[],_=["error","security","warning","info","hint"];try{for(var k=m(_),C=k.next();!C.done;C=k.next()){var L=C.value;if(p[L].length){var D=p[L].length===1?a.annotationLabels[L].singular:a.annotationLabels[L].plural;R.push("".concat(p[L].length," ").concat(D))}}}catch(E){b={error:E}}finally{try{C&&!C.done&&(x=k.return)&&x.call(k)}finally{if(b)throw b.error}}return R.join(", ")},a.prototype.isOutsideOfText=function(p){var b=p.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(p.clientX>=x.left&&p.clientX<=x.right&&p.clientY>=x.top&&p.clientY<=x.bottom)},a}(d);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/dom"),m=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,s=5;function l(c){var i=c.editor,a=g.createElement("div");a.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",a.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var b=i.container,x,R,_,k,C,L,D=0,E,I,z,P,O;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var le=this;return setTimeout(function(){le.startSelect(),le.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(a),se.setDragImage&&se.setDragImage(a,0,0),setTimeout(function(){i.container.removeChild(a)}),se.clearData(),se.setData("Text",i.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,I=!1,this.setState(null),!i.getReadOnly()){var le=ne.dataTransfer.dropEffect;!E&&le=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return R=ne.clientX,_=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=E=he(ne),m.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return R=ne.clientX,_=ne.clientY,x||(B(),D++),K!==null&&(K=null),ne.dataTransfer.dropEffect=E=he(ne),m.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),E=null,m.preventDefault(ne)},this.onDrop=function(ne){if(L){var le=ne.dataTransfer;if(I)switch(E){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=le.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),E=null}return U(),m.preventDefault(ne)}},m.addListener(b,"dragstart",this.onDragStart.bind(c),i),m.addListener(b,"dragend",this.onDragEnd.bind(c),i),m.addListener(b,"dragenter",this.onDragEnter.bind(c),i),m.addListener(b,"dragover",this.onDragOver.bind(c),i),m.addListener(b,"dragleave",this.onDragLeave.bind(c),i),m.addListener(b,"drop",this.onDrop.bind(c),i);function $(ne,le){var se=Date.now(),de=!le||ne.row!=le.row,me=!le||ne.column!=le.column;if(!P||de||me)i.moveCursorToPosition(ne),P=se,O={x:R,y:_};else{var _e=u(O.x,O.y,R,_);_e>s?P=null:se-P>=d&&(i.renderer.scrollCursorIntoView(),P=null)}}function A(ne,le){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,_e=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:R-_e.left,right:_e.right-R},y:{top:_-_e.top,bottom:_e.bottom-_}},Me=Math.min(Te.x.left,Te.x.right),Xe=Math.min(Te.y.top,Te.y.bottom),Ke={row:ne.row,column:ne.column};Me/me<=2&&(Ke.column+=Te.x.left<Te.x.right?-3:2),Xe/de<=1&&(Ke.row+=Te.y.top<Te.y.bottom?-1:1);var at=ne.row!=Ke.row,et=ne.column!=Ke.column,lt=!le||ne.row!=le.row;at||et&&!lt?z?se-z>=h&&i.renderer.scrollCursorIntoView(Ke):z=se:z=null}function N(){var ne=L;L=i.renderer.screenToTextCoordinates(R,_),$(L,ne),A(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),N(),k=setInterval(N,20),D=0,m.addListener(document,"mousemove",Q)}function U(){clearInterval(k),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!I&&i.$resetCursorStyle(),C=null,L=null,D=0,z=null,P=null,m.removeListener(document,"mousemove",Q)}var K=null;function Q(){K==null&&(K=setTimeout(function(){K!=null&&x&&U()},20))}function J(ne){var le=ne.types;return!le||Array.prototype.some.call(le,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var le=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var _e="none";return de&&le.indexOf(me)>=0?_e="copy":se.indexOf(me)>=0?_e="move":le.indexOf(me)>=0&&(_e="copy"),_e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var a=w.isWin?"default":"move";c.renderer.setCursorStyle(a),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var a=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);a>3&&i.dragDrop()}if(this.state==="dragWait"){var a=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);a>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,a=c.inSelection(),p=c.getButton(),b=c.domEvent.detail||1;if(b===1&&p===0&&a){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var R=i.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,i,a,p){return Math.sqrt(Math.pow(a-c,2)+Math.pow(p-i,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var g=e("./mouse_event").MouseEvent,m=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var s="scroll",l,u,c,i,a,p,b=0,x,R=0,_=0,k=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=d.getCopyText(),Q=d.session.getUndoManager().hasUndo();L.replaceChild(w.buildDom(A?["span",!K&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],K&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],K&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},B=function(K){return d.commands.canExecute(K,d)},U=function(K){var Q=K.target.getAttribute("action");if(Q=="more"||!A)return A=!A,N();Q=="paste"?$.readText().then(function(J){d.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Q)),L.firstChild.style.display="none",A=!1,Q!="openCommandPalette"&&d.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(K){s="menu",K.stopPropagation(),K.preventDefault(),d.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function E(){if(!d.getOption("enableMobileMenu")){L&&I();return}L||D();var $=d.selection.cursor,A=d.renderer.textToScreenCoordinates($.row,$.column),N=d.renderer.textToScreenCoordinates(0,0).pageX,B=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();L.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=N+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",d.on("input",I)}function I($){L&&(L.style.display="none"),d.off("input",I)}function z(){a=null,clearTimeout(a);var $=d.selection.getRange(),A=$.contains(x.row,x.column);($.isEmpty()||!A)&&(d.selection.moveToPosition(x),d.selection.selectWord()),s="wait",E()}function P(){a=null,clearTimeout(a),d.selection.moveToPosition(x);var $=R>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);$&&!$.isEmpty()?d.selection.setRange($):d.selection.selectWord(),s="wait"}m.addListener(h,"contextmenu",function($){if(C){var A=d.textInput.getElement();A.focus()}},d),m.addListener(h,"touchstart",function($){var A=$.touches;if(a||A.length>1){clearTimeout(a),a=null,c=-1,s="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var N=d.renderer.layerConfig.lineHeight,B=d.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var K=A[0],Q=K.clientX,J=K.clientY;Math.abs(l-Q)+Math.abs(u-J)>N&&(c=-1),l=$.clientX=Q,u=$.clientY=J,_=k=0;var he=new g($,d);if(x=he.getDocumentPosition(),U-c<500&&A.length==1&&!b)R++,$.preventDefault(),$.button=0,P();else{R=0;var ne=d.selection.cursor,le=d.selection.isEmpty()?ne:d.selection.anchor,se=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(le,!0),me=d.renderer.scroller.getBoundingClientRect(),_e=d.renderer.layerConfig.offset,Te=d.renderer.scrollLeft,Me=function(at,et){return at=at/B,et=et/N-.75,at*at+et*et};if($.clientX<me.left){s="zoom";return}var Xe=Me($.clientX-me.left-se.left+Te,$.clientY-me.top-se.top+_e),Ke=Me($.clientX-me.left-de.left+Te,$.clientY-me.top-de.top+_e);Xe<3.5&&Ke<3.5&&(s=Xe>Ke?"cursor":"anchor"),Ke<3.5?s="anchor":Xe<3.5?s="cursor":s="scroll",a=setTimeout(z,450)}c=U},d),m.addListener(h,"touchend",function($){C=d.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),s=="zoom"?(s="",b=0):a?(d.selection.moveToPosition(x),b=0,E()):s=="scroll"?(O(),I()):E(),clearTimeout(a),a=null},d),m.addListener(h,"touchmove",function($){a&&(clearTimeout(a),a=null);var A=$.touches;if(!(A.length>1||s=="zoom")){var N=A[0],B=l-N.clientX,U=u-N.clientY;if(s=="wait")if(B*B+U*U>4)s="cursor";else return $.preventDefault();l=N.clientX,u=N.clientY,$.clientX=N.clientX,$.clientY=N.clientY;var K=$.timeStamp,Q=K-i;if(i=K,s=="scroll"){var J=new g($,d);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(_=B/Q,k=U/Q),d._emit("mousewheel",J),J.propagationStopped||(_=k=0)}else{var he=new g($,d),ne=he.getDocumentPosition();s=="cursor"?d.selection.moveCursorToPosition(ne):s=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},d);function O(){b+=60,p=setInterval(function(){b--<=0&&(clearInterval(p),p=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),b<20&&(_=.9*_),b<20&&(k=.9*k);var $=d.session.getScrollTop();d.renderer.scrollBy(10*_,10*k),$==d.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,f){var g=e("../lib/event"),m=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),c=function(){function i(a){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=a,new w(this),new h(this),new s(this);var b=function(_){var k=!document.hasFocus||!document.hasFocus()||!a.isFocused()&&document.activeElement==(a.textInput&&a.textInput.getElement());k&&window.focus(),a.focus(),setTimeout(function(){a.isFocused()||a.focus()})},x=a.renderer.getMouseEventTarget();g.addListener(x,"click",this.onMouseEvent.bind(this,"click"),a),g.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),a),g.addMultiMouseDownListener([x,a.renderer.scrollBarV&&a.renderer.scrollBarV.inner,a.renderer.scrollBarH&&a.renderer.scrollBarH.inner,a.textInput&&a.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",a),g.addMouseWheelListener(a.container,this.onMouseWheel.bind(this,"mousewheel"),a),l(a.container,a);var R=a.renderer.$gutter;g.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),a),g.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),a),g.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),a),g.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),a),g.addListener(x,"mousedown",b,a),g.addListener(R,"mousedown",b,a),m.isIE&&a.renderer.scrollBarV&&(g.addListener(a.renderer.scrollBarV.element,"mousedown",b,a),g.addListener(a.renderer.scrollBarH.element,"mousedown",b,a)),a.on("mousemove",function(_){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=a.renderer.screenToTextCoordinates(_.x,_.y),C=a.session.selection.getRange(),L=a.renderer;!C.isEmpty()&&C.insideStart(k.row,k.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},a)}return i.prototype.onMouseEvent=function(a,p){this.editor.session&&this.editor._emit(a,new d(p,this.editor))},i.prototype.onMouseMove=function(a,p){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(a,new d(p,this.editor))},i.prototype.onMouseWheel=function(a,p){var b=new d(p,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=p.wheelX,b.wheelY=p.wheelY,this.editor._emit(a,b)},i.prototype.setState=function(a){this.state=a},i.prototype.captureMouse=function(a,p){this.x=a.x,this.y=a.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var R=this,_=!0,k=function(I){if(I){if(m.isWebKit&&!I.which&&R.releaseMouse)return R.releaseMouse();R.x=I.clientX,R.y=I.clientY,p&&p(I),R.mouseEvent=new d(I,R.editor),R.$mouseMoved=!0}},C=function(I){b.off("beforeEndOperation",E),_=!1,b.session&&L(),R[R.state+"End"]&&R[R.state+"End"](I),R.state="",R.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,I&&R.onMouseEvent("mouseup",I),b.endOperation()},L=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1},D=function(){_&&(L(),g.nextFrame(D))};if(m.isOldIE&&a.domEvent.type=="dblclick")return setTimeout(function(){C(a)});var E=function(I){R.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};b.on("beforeEndOperation",E),b.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=k,R.releaseMouse=g.capture(this.editor.container,k,C),D()},i.prototype.cancelContextMenu=function(){var a=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",a),p&&p.domEvent&&g.stopEvent(p.domEvent))}).bind(this);setTimeout(a,10),this.editor.on("nativecontextmenu",a)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:m.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var g=e("../lib/dom"),m=function(){function w(h){h.on("click",function(d){var s=d.getDocumentPosition(),l=h.session,u=l.getFoldAt(s.row,s.column,1);u&&(d.getAccelKey()?l.removeFold(u):l.expandFold(u),d.stop());var c=d.domEvent&&d.domEvent.target;c&&g.hasCssClass(c,"ace_inline_button")&&g.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var s=h.renderer.$gutterLayer.getRegion(d);if(s=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var s=h.renderer.$gutterLayer.getRegion(d);if(s=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(l,!0),i=c.range||c.firstRange;if(i){l=i.start.row;var a=u.getFoldAt(l,u.getLine(l).length,1);a?u.removeFold(a):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w}();r.FoldHandler=m}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var g=e("../lib/keys"),m=e("../lib/event"),w=function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var s=this.$handlers;if(s[s.length-1]!=d){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,s){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(d):this.$handlers.splice(s,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var s=this.$handlers.indexOf(d);return s==-1?!1:(this.$handlers.splice(s,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,s=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,s,l,u){for(var c,i=!1,a=this.$editor.commands,p=this.$handlers.length;p--&&(c=this.$handlers[p].handleKeyboard(this.$data,d,s,l,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=a.exec(c.command,this.$editor,c.args,u),i&&u&&d!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&m.stopEvent(u),i))););return!i&&d==-1&&(c={command:"insertstring"},i=a.exec("insertstring",this.$editor,s)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(d,s,l){var u=g.keyCodeToString(l);return this.$callKeyboardHandlers(s,u,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var g=0,m=0,w=!1,h=!1,d=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,c=1,i=0,a=1,p=2,b=3,x=4,R=5,_=6,k=7,C=8,L=9,D=10,E=11,I=12,z=13,P=14,O=15,$=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,_,R,_,C,R,N,N,N,N,N,N,N,N,N,N,N,N,N,N,R,R,R,_,C,x,x,E,E,E,x,x,x,x,x,D,L,D,L,L,p,p,p,p,p,p,p,p,p,p,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,N,N,N,N,N,N,R,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,L,x,E,E,E,E,x,x,x,x,i,x,x,N,x,x,E,E,p,p,x,i,x,x,x,p,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,i,a,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,R,z,P,O,$,A,L,E,E,E,E,E,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function K(ne,le,se,de){var me=g?l:s,_e=null,Te=null,Me=null,Xe=0,Ke=null,at=null,et=-1,lt=null,Yt=null,xn=[];if(!de)for(lt=0,de=[];lt<se;lt++)de[lt]=he(ne[lt]);for(m=g,w=!1,h=!1,d=!1,Yt=0;Yt<se;Yt++){if(_e=Xe,xn[Yt]=Te=J(ne,de,xn,Yt),Xe=me[_e][Te],Ke=Xe&240,Xe&=15,le[Yt]=Me=me[Xe][5],Ke>0)if(Ke==16){for(lt=et;lt<Yt;lt++)le[lt]=1;et=-1}else et=-1;if(at=me[Xe][6],at)et==-1&&(et=Yt);else if(et>-1){for(lt=et;lt<Yt;lt++)le[lt]=Me;et=-1}de[Yt]==R&&(le[Yt]=0),m|=Me}if(d){for(lt=0;lt<se;lt++)if(de[lt]==_){le[lt]=g;for(var Wt=lt-1;Wt>=0&&de[Wt]==C;Wt--)le[Wt]=g}}}function Q(ne,le,se){if(!(m<ne)){if(ne==1&&g==c&&!h){se.reverse();return}for(var de=se.length,me=0,_e,Te,Me,Xe;me<de;){if(le[me]>=ne){for(_e=me+1;_e<de&&le[_e]>=ne;)_e++;for(Te=me,Me=_e-1;Te<Me;Te++,Me--)Xe=se[Te],se[Te]=se[Me],se[Me]=Xe;me=_e}me++}}}function J(ne,le,se,de){var me=le[de],_e,Te,Me,Xe;switch(me){case i:case a:w=!1;case x:case b:return me;case p:return w?b:p;case k:return w=!0,a;case C:return x;case L:return de<1||de+1>=le.length||(_e=se[de-1])!=p&&_e!=b||(Te=le[de+1])!=p&&Te!=b?x:(w&&(Te=b),Te==_e?Te:x);case D:return _e=de>0?se[de-1]:R,_e==p&&de+1<le.length&&le[de+1]==p?p:x;case E:if(de>0&&se[de-1]==p)return p;if(w)return x;for(Xe=de+1,Me=le.length;Xe<Me&&le[Xe]==E;)Xe++;return Xe<Me&&le[Xe]==p?p:x;case I:for(Me=le.length,Xe=de+1;Xe<Me&&le[Xe]==I;)Xe++;if(Xe<Me){var Ke=ne[de],at=Ke>=1425&&Ke<=2303||Ke==64286;if(_e=le[Xe],at&&(_e==a||_e==k))return a}return de<1||(_e=le[de-1])==R?x:se[de-1];case R:return w=!1,h=!0,g;case _:return d=!0,x;case z:case P:case $:case A:case O:w=!1;case N:return x}}function he(ne){var le=ne.charCodeAt(0),se=le>>8;return se==0?le>191?i:B[le]:se==5?/[\u0591-\u05f4]/.test(ne)?a:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:le==1642?E:/[\u06f0-\u06f9]/.test(ne)?p:k:se==32&&le<=8287?U[le&255]:se==254&&le>=65136?k:x}r.L=i,r.R=a,r.EN=p,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,le,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),_e=new Array(de.length),Te=[];g=se?c:u,K(de,Te,de.length,le);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)le[Me]===b?Te[Me]=r.AN:Te[Me]===a&&(le[Me]>k&&le[Me]<z||le[Me]===x||le[Me]===N)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]===""&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)_e[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:_e}},r.hasBidiCharacters=function(ne,le){for(var se=!1,de=0;de<ne.length;de++)le[de]=he(ne.charAt(de)),!se&&(le[de]==a||le[de]==k||le[de]==b)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,le){for(var se=0;se<le.logicalFromVisual.length;se++)if(le.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var g=e("./lib/bidiutil"),m=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function d(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=g,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(s.getValue())}return d.prototype.isBidiRow=function(s,l,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
|
|
178
|
+
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},k.prototype.setHost=function(C){this.host=C},k.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},k.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=m("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},k.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",m("text-input.aria-roledescription","editor")),this.setAriaLabel())},k.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var E=[];if(D)for(var I=this.text.parentElement;I&&I.nodeType==1;)E.push(I),I.setAttribute("ace_nocontext","true"),!I.parentElement&&I.getRootNode?I=I.getRootNode().host:I=I.parentElement;this.text.focus({preventScroll:!0}),D&&E.forEach(function(z){z.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(C){this.inputHandler=C},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},k.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},k.prototype.setCopyWithEmptySelection=function(C){},k.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},k.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var E=this.host.container.getBoundingClientRect(),I=h.computedStyle(this.host.container),z=E.top+(parseInt(I.borderTopWidth)||0),P=E.left+(parseInt(I.borderLeftWidth)||0),O=E.bottom-z-this.text.clientHeight-2,$=function(A){h.translate(D.text,A.clientX-P-2,Math.min(A.clientY-z-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&g.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},k}();r.TextInput=_,r.$setUserAgentForTests=function(k,C){R=k,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("../lib/useragent"),m=0,w=550,h=function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(a){u[a]=this[a]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var a=this.editor,p=u.getButton();if(p!==0){var b=a.getSelectionRange(),x=b.isEmpty();(x||p==1)&&a.selection.moveToPosition(i),p==2&&(a.textInput.onContextMenu(u.domEvent),g.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!a.isFocused()&&(a.focus(),this.$focusTimeout&&!this.$clickSelection&&!a.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(i);if(a==-1)u=this.$clickSelection.end;else if(a==1)u=this.$clickSelection.start;else{var p=s(this.$clickSelection,i,c.session);i=p.cursor,u=p.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,i=this.editor,a=i.renderer.screenToTextCoordinates(this.x,this.y),p=i.selection[u](a.row,a.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(p.end.row!=a.row||p.end.column!=a.column)&&(a=p.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(p.start.row!=a.row||p.start.column!=a.column)&&(a=p.end);else if(b==-1&&x==1)a=p.end,c=p.start;else{var R=s(this.$clickSelection,a,i.session);a=R.cursor,c=R.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(a),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>m||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,a=i.session,p=a.getBracketRange(c);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var a=i.getSelectionRange();a.isMultiLine()&&a.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(a.start.row),this.$clickSelection.end=i.selection.getLineRange(a.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,a=u.domEvent.timeStamp,p=a-i.t,b=p?u.wheelX/p:i.vx,x=p?u.wheelY/p:i.vy;p<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var R=Math.abs(b/x),_=!1;if(R>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),R<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)i.allowed=a;else if(a-i.allowed<w){var k=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);k?(_=!0,i.allowed=a):i.allowed=0}if(i.t=a,i.vx=b,i.vy=x,_)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function d(l,u,c,i){return Math.sqrt(Math.pow(c-l,2)+Math.pow(i-u,2))}function s(l,u,c){if(l.start.row==l.end.row)var i=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var i=3*u.column-2*c.getLine(l.start.row).length;else var i=2*u.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/event"),m=e("../lib/useragent"),w=function(){function h(d,s){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=s,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){g.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var d=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,s=d.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return g.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return m.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(g){g.stopPropagation();var m=g.currentTarget,w=m.scrollHeight>m.clientHeight;w||g.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var g=this&&this.__extends||function(){var a=function(p,b){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var _ in R)Object.prototype.hasOwnProperty.call(R,_)&&(x[_]=R[_])},a(p,b)};return function(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");a(p,b);function x(){this.constructor=p}p.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),m=this&&this.__values||function(a){var p=typeof Symbol=="function"&&Symbol.iterator,b=p&&a[p],x=0;if(b)return b.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&x>=a.length&&(a=void 0),{value:a&&a[x++],done:!a}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function a(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return a.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(p){this.getElement().textContent=p},a.prototype.setHtml=function(p){this.getElement().innerHTML=p},a.prototype.setPosition=function(p,b){this.getElement().style.left=p+"px",this.getElement().style.top=b+"px"},a.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},a.prototype.setTheme=function(p){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),p.isDark&&w.addCssClass(this.getElement(),"ace_dark"),p.cssClass&&w.addCssClass(this.getElement(),p.cssClass),this.theme={isDark:p.isDark,cssClass:p.cssClass}},a.prototype.show=function(p,b,x){p!=null&&this.setText(p),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),u=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},a.prototype.removePopup=function(p){var b=this.popups.indexOf(p);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},a.prototype.updatePopups=function(){var p,b,x,R;this.popups.sort(function(P,O){return O.priority-P.priority});var _=[];try{for(var k=m(this.popups),C=k.next();!C.done;C=k.next()){var L=C.value,D=!0;try{for(var E=(x=void 0,m(_)),I=E.next();!I.done;I=E.next()){var z=I.value;if(this.doPopupsOverlap(z,L)){D=!1;break}}}catch(P){x={error:P}}finally{try{I&&!I.done&&(R=E.return)&&R.call(E)}finally{if(x)throw x.error}}D?_.push(L):L.hide()}}catch(P){p={error:P}}finally{try{C&&!C.done&&(b=k.return)&&b.call(k)}finally{if(p)throw p.error}}},a.prototype.doPopupsOverlap=function(p,b){var x=p.getElement().getBoundingClientRect(),R=b.getElement().getBoundingClientRect();return x.left<R.right&&x.right>R.left&&x.top<R.bottom&&x.bottom>R.top},a}(),c=new u;r.popupManager=c,r.Tooltip=l;var i=function(a){g(p,a);function p(b){b===void 0&&(b=document.body);var x=a.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var R=x.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",x.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(x)),R.addEventListener("wheel",d),x}return p.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var R=x.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(b){var x=b.editor,R=b.getDocumentPosition(),_=x.session.getLine(R.row);if(R.column==_.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(R.row,R.column);if(C.column!=k.column||C.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(b){this.$gatherData=b},p.prototype.showForRange=function(b,x,R,_){if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var k=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(k.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=k.textToScreenCoordinates(x.start.row,x.start.column),L=k.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(R),D.style.maxHeight="",D.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(D)}},p.prototype.$setPosition=function(b,x,R,_){var k=10;R&&this.addMarker(_,b.session);var C=b.renderer,L=this.getElement(),D=L.offsetHeight,E=L.offsetWidth,I=x.pageY,z=x.pageX,P=window.innerHeight-I-C.lineHeight,O=this.$shouldPlaceAbove(D,I,P-k);L.style.maxHeight=(O?I:P)-k+"px",L.style.top=O?"":I+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-I+"px":"",L.style.left=Math.min(z,window.innerWidth-E-k)+"px"},p.prototype.$shouldPlaceAbove=function(b,x,R){return!(x-b<0&&x<R)},p.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},p.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},p}(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,f){var g=this&&this.__extends||function(){var i=function(a,p){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var R in x)Object.prototype.hasOwnProperty.call(x,R)&&(b[R]=x[R])},i(a,p)};return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");i(a,p);function b(){this.constructor=a}a.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}(),m=this&&this.__values||function(i){var a=typeof Symbol=="function"&&Symbol.iterator,p=a&&i[a],b=0;if(p)return p.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,s=e("../config").nls,l=e("../range").Range;function u(i){var a=i.editor,p=a.renderer.$gutterLayer;i.$tooltip=new c(a),i.$tooltip.addToEditor(a),i.$tooltip.setDataProvider(function(b,x){var R=b.getDocumentPosition().row;i.$tooltip.showTooltip(R)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!a.isFocused()||b.getButton()!=0)){var x=p.getRegion(b);if(x!="foldWidgets"){var R=b.getDocumentPosition().row,_=a.session.selection;if(b.getShiftKey())_.selectTo(R,0);else{if(b.domEvent.detail==2)return a.selectAll(),b.preventDefault();i.$clickSelection=a.selection.getLineRange(R)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=u;var c=function(i){g(a,i);function a(p){var b=i.call(this,p.container)||this;b.id="gt"+ ++a.$uid,b.editor=p,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return a.prototype.onDomMouseMove=function(p){var b=new h(p,this.editor);this.onMouseMove(b,this.editor)},a.prototype.onDomMouseOut=function(p){var b=new h(p,this.editor);this.onMouseOut(b)},a.prototype.addToEditor=function(p){var b=p.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,p)},a.prototype.removeFromEditor=function(p){var b=p.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,p)},a.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(a,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),a.prototype.showTooltip=function(p){var b,x=this.editor.renderer.$gutterLayer,R=x.$annotations[p],_;R?_={displayText:Array.from(R.displayText),type:Array.from(R.type)}:_={displayText:[],type:[]};var k=x.session.getFoldLine(p);if(k&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,E=p+1;E<=k.end.row;E++)if(x.$annotations[E])for(var I=0;I<x.$annotations[E].text.length;I++){var z=x.$annotations[E].type[I];C[z].push(x.$annotations[E].text[I]),(!D||L[z]<L[D])&&(D=z)}if(["error","security","warning"].includes(D)){var P="".concat(a.annotationsToSummaryString(C)," in folded code.");_.displayText.push(P),_.type.push(D+"_fold")}}if(_.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<_.displayText.length;E++){var A=w.createElement("span"),N=w.createElement("span");(b=N.classList).add.apply(b,["ace_".concat(_.type[E]),$]),N.setAttribute("aria-label","".concat(a.annotationLabels[_.type[E].replace("_fold","")].singular)),N.setAttribute("role","img"),N.appendChild(w.createTextNode(" ")),A.appendChild(N),A.appendChild(w.createTextNode(_.displayText[E])),A.appendChild(w.createElement("br")),O[_.type[E].replace("_fold","")].push(A)}var B=w.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(p);U&&U.setAttribute("aria-describedby",this.id);var K=l.fromPoints({row:p,column:0},{row:p,column:0});this.showForRange(this.editor,K,B),this.visibleTooltipRow=p,this.editor._signal("showGutterTooltip",this)},a.prototype.$setPosition=function(p,b,x,R){var _=this.$findCellByRow(R.start.row);if(_){var k=_&&_.element,C=k&&k.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,p,D,!1,R)}}}},a.prototype.$shouldPlaceAbove=function(p,b,x){return x<p},a.prototype.$findLinkedAnnotationNode=function(p){var b=this.$findCellByRow(p);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},a.prototype.$findCellByRow=function(p){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===p})},a.prototype.hide=function(p){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,p)}},a.annotationsToSummaryString=function(p){var b,x,R=[],_=["error","security","warning","info","hint"];try{for(var k=m(_),C=k.next();!C.done;C=k.next()){var L=C.value;if(p[L].length){var D=p[L].length===1?a.annotationLabels[L].singular:a.annotationLabels[L].plural;R.push("".concat(p[L].length," ").concat(D))}}}catch(E){b={error:E}}finally{try{C&&!C.done&&(x=k.return)&&x.call(k)}finally{if(b)throw b.error}}return R.join(", ")},a.prototype.isOutsideOfText=function(p){var b=p.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(p.clientX>=x.left&&p.clientX<=x.right&&p.clientY>=x.top&&p.clientY<=x.bottom)},a}(d);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/dom"),m=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,s=5;function l(c){var i=c.editor,a=g.createElement("div");a.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",a.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var b=i.container,x,R,_,k,C,L,D=0,E,I,z,P,O;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var le=this;return setTimeout(function(){le.startSelect(),le.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(a),se.setDragImage&&se.setDragImage(a,0,0),setTimeout(function(){i.container.removeChild(a)}),se.clearData(),se.setData("Text",i.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,I=!1,this.setState(null),!i.getReadOnly()){var le=ne.dataTransfer.dropEffect;!E&&le=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return R=ne.clientX,_=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=E=he(ne),m.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return R=ne.clientX,_=ne.clientY,x||(B(),D++),K!==null&&(K=null),ne.dataTransfer.dropEffect=E=he(ne),m.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),E=null,m.preventDefault(ne)},this.onDrop=function(ne){if(L){var le=ne.dataTransfer;if(I)switch(E){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=le.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),E=null}return U(),m.preventDefault(ne)}},m.addListener(b,"dragstart",this.onDragStart.bind(c),i),m.addListener(b,"dragend",this.onDragEnd.bind(c),i),m.addListener(b,"dragenter",this.onDragEnter.bind(c),i),m.addListener(b,"dragover",this.onDragOver.bind(c),i),m.addListener(b,"dragleave",this.onDragLeave.bind(c),i),m.addListener(b,"drop",this.onDrop.bind(c),i);function $(ne,le){var se=Date.now(),de=!le||ne.row!=le.row,me=!le||ne.column!=le.column;if(!P||de||me)i.moveCursorToPosition(ne),P=se,O={x:R,y:_};else{var _e=u(O.x,O.y,R,_);_e>s?P=null:se-P>=d&&(i.renderer.scrollCursorIntoView(),P=null)}}function A(ne,le){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,_e=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:R-_e.left,right:_e.right-R},y:{top:_-_e.top,bottom:_e.bottom-_}},Me=Math.min(Te.x.left,Te.x.right),Xe=Math.min(Te.y.top,Te.y.bottom),Ke={row:ne.row,column:ne.column};Me/me<=2&&(Ke.column+=Te.x.left<Te.x.right?-3:2),Xe/de<=1&&(Ke.row+=Te.y.top<Te.y.bottom?-1:1);var at=ne.row!=Ke.row,et=ne.column!=Ke.column,lt=!le||ne.row!=le.row;at||et&&!lt?z?se-z>=h&&i.renderer.scrollCursorIntoView(Ke):z=se:z=null}function N(){var ne=L;L=i.renderer.screenToTextCoordinates(R,_),$(L,ne),A(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),N(),k=setInterval(N,20),D=0,m.addListener(document,"mousemove",Q)}function U(){clearInterval(k),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!I&&i.$resetCursorStyle(),C=null,L=null,D=0,z=null,P=null,m.removeListener(document,"mousemove",Q)}var K=null;function Q(){K==null&&(K=setTimeout(function(){K!=null&&x&&U()},20))}function J(ne){var le=ne.types;return!le||Array.prototype.some.call(le,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var le=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var _e="none";return de&&le.indexOf(me)>=0?_e="copy":se.indexOf(me)>=0?_e="move":le.indexOf(me)>=0&&(_e="copy"),_e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var a=w.isWin?"default":"move";c.renderer.setCursorStyle(a),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var a=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);a>3&&i.dragDrop()}if(this.state==="dragWait"){var a=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);a>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,a=c.inSelection(),p=c.getButton(),b=c.domEvent.detail||1;if(b===1&&p===0&&a){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var R=i.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,i,a,p){return Math.sqrt(Math.pow(a-c,2)+Math.pow(p-i,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var g=e("./mouse_event").MouseEvent,m=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var s="scroll",l,u,c,i,a,p,b=0,x,R=0,_=0,k=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=d.getCopyText(),Q=d.session.getUndoManager().hasUndo();L.replaceChild(w.buildDom(A?["span",!K&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],K&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],K&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},B=function(K){return d.commands.canExecute(K,d)},U=function(K){var Q=K.target.getAttribute("action");if(Q=="more"||!A)return A=!A,N();Q=="paste"?$.readText().then(function(J){d.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Q)),L.firstChild.style.display="none",A=!1,Q!="openCommandPalette"&&d.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(K){s="menu",K.stopPropagation(),K.preventDefault(),d.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function E(){if(!d.getOption("enableMobileMenu")){L&&I();return}L||D();var $=d.selection.cursor,A=d.renderer.textToScreenCoordinates($.row,$.column),N=d.renderer.textToScreenCoordinates(0,0).pageX,B=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();L.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=N+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",d.on("input",I)}function I($){L&&(L.style.display="none"),d.off("input",I)}function z(){a=null,clearTimeout(a);var $=d.selection.getRange(),A=$.contains(x.row,x.column);($.isEmpty()||!A)&&(d.selection.moveToPosition(x),d.selection.selectWord()),s="wait",E()}function P(){a=null,clearTimeout(a),d.selection.moveToPosition(x);var $=R>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);$&&!$.isEmpty()?d.selection.setRange($):d.selection.selectWord(),s="wait"}m.addListener(h,"contextmenu",function($){if(C){var A=d.textInput.getElement();A.focus()}},d),m.addListener(h,"touchstart",function($){var A=$.touches;if(a||A.length>1){clearTimeout(a),a=null,c=-1,s="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var N=d.renderer.layerConfig.lineHeight,B=d.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var K=A[0],Q=K.clientX,J=K.clientY;Math.abs(l-Q)+Math.abs(u-J)>N&&(c=-1),l=$.clientX=Q,u=$.clientY=J,_=k=0;var he=new g($,d);if(x=he.getDocumentPosition(),U-c<500&&A.length==1&&!b)R++,$.preventDefault(),$.button=0,P();else{R=0;var ne=d.selection.cursor,le=d.selection.isEmpty()?ne:d.selection.anchor,se=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(le,!0),me=d.renderer.scroller.getBoundingClientRect(),_e=d.renderer.layerConfig.offset,Te=d.renderer.scrollLeft,Me=function(at,et){return at=at/B,et=et/N-.75,at*at+et*et};if($.clientX<me.left){s="zoom";return}var Xe=Me($.clientX-me.left-se.left+Te,$.clientY-me.top-se.top+_e),Ke=Me($.clientX-me.left-de.left+Te,$.clientY-me.top-de.top+_e);Xe<3.5&&Ke<3.5&&(s=Xe>Ke?"cursor":"anchor"),Ke<3.5?s="anchor":Xe<3.5?s="cursor":s="scroll",a=setTimeout(z,450)}c=U},d),m.addListener(h,"touchend",function($){C=d.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),s=="zoom"?(s="",b=0):a?(d.selection.moveToPosition(x),b=0,E()):s=="scroll"?(O(),I()):E(),clearTimeout(a),a=null},d),m.addListener(h,"touchmove",function($){a&&(clearTimeout(a),a=null);var A=$.touches;if(!(A.length>1||s=="zoom")){var N=A[0],B=l-N.clientX,U=u-N.clientY;if(s=="wait")if(B*B+U*U>4)s="cursor";else return $.preventDefault();l=N.clientX,u=N.clientY,$.clientX=N.clientX,$.clientY=N.clientY;var K=$.timeStamp,Q=K-i;if(i=K,s=="scroll"){var J=new g($,d);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(_=B/Q,k=U/Q),d._emit("mousewheel",J),J.propagationStopped||(_=k=0)}else{var he=new g($,d),ne=he.getDocumentPosition();s=="cursor"?d.selection.moveCursorToPosition(ne):s=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},d);function O(){b+=60,p=setInterval(function(){b--<=0&&(clearInterval(p),p=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),b<20&&(_=.9*_),b<20&&(k=.9*k);var $=d.session.getScrollTop();d.renderer.scrollBy(10*_,10*k),$==d.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,f){var g=e("../lib/event"),m=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),c=function(){function i(a){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=a,new w(this),new h(this),new s(this);var b=function(_){var k=!document.hasFocus||!document.hasFocus()||!a.isFocused()&&document.activeElement==(a.textInput&&a.textInput.getElement());k&&window.focus(),a.focus(),setTimeout(function(){a.isFocused()||a.focus()})},x=a.renderer.getMouseEventTarget();g.addListener(x,"click",this.onMouseEvent.bind(this,"click"),a),g.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),a),g.addMultiMouseDownListener([x,a.renderer.scrollBarV&&a.renderer.scrollBarV.inner,a.renderer.scrollBarH&&a.renderer.scrollBarH.inner,a.textInput&&a.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",a),g.addMouseWheelListener(a.container,this.onMouseWheel.bind(this,"mousewheel"),a),l(a.container,a);var R=a.renderer.$gutter;g.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),a),g.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),a),g.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),a),g.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),a),g.addListener(x,"mousedown",b,a),g.addListener(R,"mousedown",b,a),m.isIE&&a.renderer.scrollBarV&&(g.addListener(a.renderer.scrollBarV.element,"mousedown",b,a),g.addListener(a.renderer.scrollBarH.element,"mousedown",b,a)),a.on("mousemove",function(_){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=a.renderer.screenToTextCoordinates(_.x,_.y),C=a.session.selection.getRange(),L=a.renderer;!C.isEmpty()&&C.insideStart(k.row,k.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},a)}return i.prototype.onMouseEvent=function(a,p){this.editor.session&&this.editor._emit(a,new d(p,this.editor))},i.prototype.onMouseMove=function(a,p){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(a,new d(p,this.editor))},i.prototype.onMouseWheel=function(a,p){var b=new d(p,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=p.wheelX,b.wheelY=p.wheelY,this.editor._emit(a,b)},i.prototype.setState=function(a){this.state=a},i.prototype.captureMouse=function(a,p){this.x=a.x,this.y=a.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var R=this,_=!0,k=function(I){if(I){if(m.isWebKit&&!I.which&&R.releaseMouse)return R.releaseMouse();R.x=I.clientX,R.y=I.clientY,p&&p(I),R.mouseEvent=new d(I,R.editor),R.$mouseMoved=!0}},C=function(I){b.off("beforeEndOperation",E),_=!1,b.session&&L(),R[R.state+"End"]&&R[R.state+"End"](I),R.state="",R.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,I&&R.onMouseEvent("mouseup",I),b.endOperation()},L=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1},D=function(){_&&(L(),g.nextFrame(D))};if(m.isOldIE&&a.domEvent.type=="dblclick")return setTimeout(function(){C(a)});var E=function(I){R.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};b.on("beforeEndOperation",E),b.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=k,R.releaseMouse=g.capture(this.editor.container,k,C),D()},i.prototype.cancelContextMenu=function(){var a=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",a),p&&p.domEvent&&g.stopEvent(p.domEvent))}).bind(this);setTimeout(a,10),this.editor.on("nativecontextmenu",a)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:m.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var g=e("../lib/dom"),m=function(){function w(h){h.on("click",function(d){var s=d.getDocumentPosition(),l=h.session,u=l.getFoldAt(s.row,s.column,1);u&&(d.getAccelKey()?l.removeFold(u):l.expandFold(u),d.stop());var c=d.domEvent&&d.domEvent.target;c&&g.hasCssClass(c,"ace_inline_button")&&g.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var s=h.renderer.$gutterLayer.getRegion(d);if(s=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var s=h.renderer.$gutterLayer.getRegion(d);if(s=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(l,!0),i=c.range||c.firstRange;if(i){l=i.start.row;var a=u.getFoldAt(l,u.getLine(l).length,1);a?u.removeFold(a):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w}();r.FoldHandler=m}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var g=e("../lib/keys"),m=e("../lib/event"),w=function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var s=this.$handlers;if(s[s.length-1]!=d){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,s){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(d):this.$handlers.splice(s,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var s=this.$handlers.indexOf(d);return s==-1?!1:(this.$handlers.splice(s,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,s=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,s,l,u){for(var c,i=!1,a=this.$editor.commands,p=this.$handlers.length;p--&&(c=this.$handlers[p].handleKeyboard(this.$data,d,s,l,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=a.exec(c.command,this.$editor,c.args,u),i&&u&&d!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&m.stopEvent(u),i))););return!i&&d==-1&&(c={command:"insertstring"},i=a.exec("insertstring",this.$editor,s)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(d,s,l){var u=g.keyCodeToString(l);return this.$callKeyboardHandlers(s,u,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var g=0,m=0,w=!1,h=!1,d=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,c=1,i=0,a=1,p=2,b=3,x=4,R=5,_=6,k=7,C=8,L=9,D=10,E=11,I=12,z=13,P=14,O=15,$=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,_,R,_,C,R,N,N,N,N,N,N,N,N,N,N,N,N,N,N,R,R,R,_,C,x,x,E,E,E,x,x,x,x,x,D,L,D,L,L,p,p,p,p,p,p,p,p,p,p,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,N,N,N,N,N,N,R,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,L,x,E,E,E,E,x,x,x,x,i,x,x,N,x,x,E,E,p,p,x,i,x,x,x,p,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,i,a,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,R,z,P,O,$,A,L,E,E,E,E,E,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function K(ne,le,se,de){var me=g?l:s,_e=null,Te=null,Me=null,Xe=0,Ke=null,at=null,et=-1,lt=null,Xt=null,xn=[];if(!de)for(lt=0,de=[];lt<se;lt++)de[lt]=he(ne[lt]);for(m=g,w=!1,h=!1,d=!1,Xt=0;Xt<se;Xt++){if(_e=Xe,xn[Xt]=Te=J(ne,de,xn,Xt),Xe=me[_e][Te],Ke=Xe&240,Xe&=15,le[Xt]=Me=me[Xe][5],Ke>0)if(Ke==16){for(lt=et;lt<Xt;lt++)le[lt]=1;et=-1}else et=-1;if(at=me[Xe][6],at)et==-1&&(et=Xt);else if(et>-1){for(lt=et;lt<Xt;lt++)le[lt]=Me;et=-1}de[Xt]==R&&(le[Xt]=0),m|=Me}if(d){for(lt=0;lt<se;lt++)if(de[lt]==_){le[lt]=g;for(var Wt=lt-1;Wt>=0&&de[Wt]==C;Wt--)le[Wt]=g}}}function Q(ne,le,se){if(!(m<ne)){if(ne==1&&g==c&&!h){se.reverse();return}for(var de=se.length,me=0,_e,Te,Me,Xe;me<de;){if(le[me]>=ne){for(_e=me+1;_e<de&&le[_e]>=ne;)_e++;for(Te=me,Me=_e-1;Te<Me;Te++,Me--)Xe=se[Te],se[Te]=se[Me],se[Me]=Xe;me=_e}me++}}}function J(ne,le,se,de){var me=le[de],_e,Te,Me,Xe;switch(me){case i:case a:w=!1;case x:case b:return me;case p:return w?b:p;case k:return w=!0,a;case C:return x;case L:return de<1||de+1>=le.length||(_e=se[de-1])!=p&&_e!=b||(Te=le[de+1])!=p&&Te!=b?x:(w&&(Te=b),Te==_e?Te:x);case D:return _e=de>0?se[de-1]:R,_e==p&&de+1<le.length&&le[de+1]==p?p:x;case E:if(de>0&&se[de-1]==p)return p;if(w)return x;for(Xe=de+1,Me=le.length;Xe<Me&&le[Xe]==E;)Xe++;return Xe<Me&&le[Xe]==p?p:x;case I:for(Me=le.length,Xe=de+1;Xe<Me&&le[Xe]==I;)Xe++;if(Xe<Me){var Ke=ne[de],at=Ke>=1425&&Ke<=2303||Ke==64286;if(_e=le[Xe],at&&(_e==a||_e==k))return a}return de<1||(_e=le[de-1])==R?x:se[de-1];case R:return w=!1,h=!0,g;case _:return d=!0,x;case z:case P:case $:case A:case O:w=!1;case N:return x}}function he(ne){var le=ne.charCodeAt(0),se=le>>8;return se==0?le>191?i:B[le]:se==5?/[\u0591-\u05f4]/.test(ne)?a:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:le==1642?E:/[\u06f0-\u06f9]/.test(ne)?p:k:se==32&&le<=8287?U[le&255]:se==254&&le>=65136?k:x}r.L=i,r.R=a,r.EN=p,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,le,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),_e=new Array(de.length),Te=[];g=se?c:u,K(de,Te,de.length,le);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)le[Me]===b?Te[Me]=r.AN:Te[Me]===a&&(le[Me]>k&&le[Me]<z||le[Me]===x||le[Me]===N)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]===""&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)_e[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:_e}},r.hasBidiCharacters=function(ne,le){for(var se=!1,de=0;de<ne.length;de++)le[de]=he(ne.charAt(de)),!se&&(le[de]==a||le[de]==k||le[de]==b)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,le){for(var se=0;se<le.logicalFromVisual.length;se++)if(le.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var g=e("./lib/bidiutil"),m=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function d(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=g,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(s.getValue())}return d.prototype.isBidiRow=function(s,l,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
|
|
179
179
|
`))&&(this.seenBidi=!0,this.currentRow=null)},d.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(s=this.session.$docRowCache[u])}return s},d.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var u,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-s-1),u===c);)c=u,s++;else s=this.currentRow;return s},d.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var u=s===this.session.getLength()-1,c=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[s];i&&(l===void 0&&(l=this.getSplitIndex()),l>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[g.L],this.line=l<i.length?this.line.substring(i[l-1],i[l]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[l]),l==i.length&&(this.line+=this.showInvisibles?c:g.DOT))}else this.line+=this.showInvisibles?c:g.DOT;var a=this.session,p=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,R){return x===" "||a.isFullWidth(x.charCodeAt(0))?(b=x===" "?a.getScreenTabSize(R+p):2,p+=b-1,m.stringRepeat(g.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==g.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},d.prototype.updateBidiMap=function(){var s=[];g.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=g.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},d.prototype.markAsDirty=function(){this.currentRow=null},d.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,u=s.$measureCharWidth("ה");this.charWidths[g.L]=this.charWidths[g.EN]=this.charWidths[g.ON_R]=l,this.charWidths[g.R]=this.charWidths[g.AN]=u,this.charWidths[g.R_H]=u*.45,this.charWidths[g.B]=this.charWidths[g.RLE]=0,this.currentRow=null}},d.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},d.prototype.setEolChar=function(s){this.EOL=s},d.prototype.setContentWidth=function(s){this.contentWidth=s},d.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},d.prototype.setRtlDirection=function(s,l){for(var u=s.getCursorPosition(),c=s.selection.getSelectionAnchor().row;c<=u.row;c++)!l&&s.session.getLine(c).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(c,0,1):l&&s.session.getLine(c).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:c},s.session.$bidiHandler.RLE)},d.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=s>l?this.session.getOverwrite()?s:s-1:l,c=g.getVisualFromLogicalIdx(u,this.bidiMap),i=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&s<=l&&i[c]%2!==0&&c++;for(var p=0;p<c;p++)a+=this.charWidths[i[p]];return!this.session.getOverwrite()&&s>l&&i[c]%2===0&&(a+=this.charWidths[i[c]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},d.prototype.getSelections=function(s,l){var u=this.bidiMap,c=u.bidiLevels,i,a=[],p=0,b=Math.min(s,l)-this.wrapIndent,x=Math.max(s,l)-this.wrapIndent,R=!1,_=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,L=0;L<c.length;L++)C=u.logicalFromVisual[L],i=c[L],R=C>=b&&C<x,R&&!_?k=p:!R&&_&&a.push({left:k,width:p-k}),p+=this.charWidths[i],_=R;if(R&&L===c.length&&a.push({left:k,width:p-k}),this.isRtlDir)for(var D=0;D<a.length;D++)a[D].left+=this.rtlLineOffset;return a},d.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),c=0,i=0,a=this.bidiMap.bidiLevels,p=this.charWidths[a[i]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+p/2;){if(c+=p,i===a.length-1){p=0;break}p=this.charWidths[a[++i]]}return i>0&&a[i-1]%2!==0&&a[i]%2===0?(u<c&&i--,l=this.bidiMap.logicalFromVisual[i]):i>0&&a[i-1]%2===0&&a[i]%2!==0?l=1+(u>c?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===a.length-1&&p===0&&a[i-1]%2===0||!this.isRtlDir&&i===0&&a[i]%2!==0?l=1+this.bidiMap.logicalFromVisual[i]:(i>0&&a[i-1]%2!==0&&p!==0&&i--,l=this.bidiMap.logicalFromVisual[i]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},d}();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,r,f){var g=e("./lib/oop"),m=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},s.prototype.getRange=function(){var l=this.anchor,u=this.lead;return this.$isEmpty?h.fromPoints(u,u):this.isBackwards()?h.fromPoints(u,l):h.fromPoints(l,u)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,u){var c=u?l.end:l.start,i=u?l.start:l.end;this.$setSelection(c.row,c.column,i.row,i.column)},s.prototype.$setSelection=function(l,u,c,i){if(!this.$silent){var a=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(c,i),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||a!=this.$isEmpty||p)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},s.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,u){if(typeof u>"u"){var c=l||this.lead;l=c.row,u=c.column}return this.session.getWordRange(l,u)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},s.prototype.getLineRange=function(l,u){var c=typeof l=="number"?l:this.lead.row,i,a=this.session.getFoldLine(c);return a?(c=a.start.row,i=a.end.row):i=c,u===!0?new h(c,0,i,this.session.getLine(i).length):new h(c,0,i+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,u,c){var i=l.column,a=l.column+u;return c<0&&(i=l.column-u,a=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(i,a).split(" ").length-1==u},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(l,u),i=this.session.screenToDocumentPosition(c,0),a=this.session.getDisplayLine(l,null,i.row,i.column),p=a.match(/^\s*/);p[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(i.column+=p[0].length),this.moveCursorToPosition(i)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var i=c.search(/\s+$/);i>0&&(u.column=i)}}this.moveCursorTo(u.row,u.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var a=this.session.getFoldAt(l,u,1);if(a){this.moveCursorTo(a.end.row,a.end.column);return}if(this.session.nonTokenRe.exec(i)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=c.substring(u)),u>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(i)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var i=this.session.getFoldStringAt(l,u,-1);i==null&&(i=this.doc.getLine(l).substring(0,u));var a=m.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(a)&&(u-=this.session.nonTokenRe.lastIndex,a=a.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(a)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},s.prototype.$shortWordEndIndex=function(l){var u=0,c,i=/\s/,a=this.session.tokenRe;if(a.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(c=l[u])&&i.test(c);)u++;if(u<1){for(a.lastIndex=0;(c=l[u])&&!a.test(c);)if(a.lastIndex=0,u++,i.test(c))if(u>2){u--;break}else{for(;(c=l[u])&&i.test(c);)u++;if(u>2)break}}}return a.lastIndex=0,u},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u),a=this.session.getFoldAt(l,u,1);if(a)return this.moveCursorTo(a.end.row,a.end.column);if(u==c.length){var p=this.doc.getLength();do l++,i=this.doc.getLine(l);while(l<p&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),u=0}var b=this.$shortWordEndIndex(i);this.moveCursorTo(l,u+b)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var i=this.session.getLine(l).substring(0,u);if(u===0){do l--,i=this.doc.getLine(l);while(l>0&&/^\s*$/.test(i));u=i.length,/\s+$/.test(i)||(i="")}var a=m.stringReverse(i),p=this.$shortWordEndIndex(a);return this.moveCursorTo(l,u-p)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var a=this.session.lineWidgets[this.lead.row];l<0?l-=a.rowsAbove||0:l>0&&(l+=a.rowCount-(a.rowsAbove||0))}var p=this.session.screenToDocumentPosition(c.row+l,c.column,i);l!==0&&u===0&&p.row===this.lead.row&&(p.column,this.lead.column),this.moveCursorTo(p.row,p.column+u,u===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,u,c){var i=this.session.getFoldAt(l,u,1);i&&(l=i.start.row,u=i.start.column),this.$keepDesiredColumnOnChange=!0;var a=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(a.charAt(u))&&a.charAt(u-1)&&(this.lead.row==l&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(l,u),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,u,c){var i=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(i.row,i.column,c)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var u=this.getRange();return l?(l.start.column=u.start.column,l.start.row=u.start.row,l.end.column=u.end.column,l.end.row=u.end.row):l=u,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var c=this.getCursor();return h.fromPoints(u,c)}catch{return h.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var u=l.length;u--;){var c=h.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(l[u]))return!1;return!0},s}();d.prototype.setSelectionAnchor=d.prototype.setAnchor,d.prototype.getSelectionAnchor=d.prototype.getAnchor,d.prototype.setSelectionRange=d.prototype.setRange,g.implement(d.prototype,w),r.Selection=d}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,f){var g=e("./lib/report_error").reportError,m=2e3,w=function(){function h(d){this.splitRegex,this.states=d,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],u=[],c=0,i=this.matchMappings[s]={defaultToken:"text"},a="g",p=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(i.defaultToken=x.defaultToken),x.caseInsensitive&&a.indexOf("i")===-1&&(a+="i"),x.unicode&&a.indexOf("u")===-1&&(a+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var R=x.regex,_=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||_==1?x.token=x.token[0]:_-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:_-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(_>1?x.onMatch=this.$applyToken:x.onMatch=x.token),_>1&&(/\\\d/.test(x.regex)?R=x.regex.replace(/\\([0-9]+)/g,function(k,C){return"\\"+(parseInt(C,10)+c+1)}):(_=1,R=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&p.push(x)),i[c]=b,c+=_,u.push(R),x.onMatch||(x.onMatch=null)}}u.length||(i[0]=0,u.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,a)},this),this.regExps[s]=new RegExp("("+u.join(")|(")+")|($)",a)}}return h.prototype.$setMaxTokenCount=function(d){m=d|0},h.prototype.$applyToken=function(d){var s=this.splitRegex.exec(d).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:d}];for(var u=[],c=0,i=l.length;c<i;c++)s[c]&&(u[u.length]={type:l[c],value:s[c]});return u},h.prototype.$arrayTokens=function(d){if(!d)return[];var s=this.splitRegex.exec(d);if(!s)return"text";for(var l=[],u=this.tokenArray,c=0,i=u.length;c<i;c++)s[c+1]&&(l[l.length]={type:u[c],value:s[c+1]});return l},h.prototype.removeCapturingGroups=function(d){var s=d.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return s},h.prototype.createSplitterRegexp=function(d,s){if(d.indexOf("(?=")!=-1){var l=0,u=!1,c={};d.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(i,a,p,b,x,R){return u?u=x!="]":x?u=!0:b?(l==c.stack&&(c.end=R+1,c.stack=-1),l--):p&&(l++,p.length!=1&&(c.stack=l,c.start=R)),i}),c.end!=null&&/^\)*$/.test(d.substr(c.end))&&(d=d.substring(0,c.start)+d.substr(c.end))}return d.charAt(0)!="^"&&(d="^"+d),d.charAt(d.length-1)!="$"&&(d+="$"),new RegExp(d,(s||"").replace("g",""))},h.prototype.getLineTokens=function(d,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var u=s||"start",c=this.states[u];c||(u="start",c=this.states[u]);var i=this.matchMappings[u],a=this.regExps[u];a.lastIndex=0;for(var p,b=[],x=0,R=0,_={type:null,value:""};p=a.exec(d);){var k=i.defaultToken,C=null,L=p[0],D=a.lastIndex;if(D-L.length>x){var E=d.substring(x,D-L.length);_.type==k?_.value+=E:(_.type&&b.push(_),_={type:k,value:E})}for(var I=0;I<p.length-2;I++)if(p[I+1]!==void 0){C=c[i[I]],C.onMatch?k=C.onMatch(L,u,l,d):k=C.token,C.next&&(typeof C.next=="string"?u=C.next:u=C.next(u,l),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),i=this.matchMappings[u],x=D,a=this.regExps[u],a.lastIndex=D),C.consumeLineEnd&&(x=D);break}if(L){if(typeof k=="string")(!C||C.merge!==!1)&&_.type===k?_.value+=L:(_.type&&b.push(_),_={type:k,value:L});else if(k){_.type&&b.push(_),_={type:null,value:""};for(var I=0;I<k.length;I++)b.push(k[I])}}if(x==d.length)break;if(x=D,R++>m){for(R>2*d.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:d});x<d.length;)_.type&&b.push(_),_={value:d.substring(x,x+=500),type:"overflow"};u="start",l=[];break}}return _.type&&b.push(_),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:b,state:l.length?l:u}},h}();w.prototype.reportError=g,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){var g=e("../lib/deep_copy").deepCopy,m;m=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(d,s){if(!s){for(var l in d)this.$rules[l]=d[l];return}for(var l in d){for(var u=d[l],c=0;c<u.length;c++){var i=u[c];(i.next||i.onMatch)&&(typeof i.next=="string"&&i.next.indexOf(s)!==0&&(i.next=s+i.next),i.nextState&&i.nextState.indexOf(s)!==0&&(i.nextState=s+i.nextState))}this.$rules[s+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(d,s,l,u,c){var i=typeof d=="function"?new d().getRules():d;if(u)for(var a=0;a<u.length;a++)u[a]=s+u[a];else{u=[];for(var p in i)u.push(s+p)}if(this.addRules(i,s),l)for(var b=Array.prototype[c?"push":"unshift"],a=0;a<u.length;a++)b.apply(this.$rules[u[a]],g(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(d,s){return(d!="start"||s.length)&&s.unshift(this.nextState,d),this.nextState},h=function(d,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var d=0,s=this.$rules;function l(u){var c=s[u];c.processed=!0;for(var i=0;i<c.length;i++){var a=c[i],p=null;Array.isArray(a)&&(p=a,a={}),!a.regex&&a.start&&(a.regex=a.start,a.next||(a.next=[]),a.next.push({defaultToken:a.token},{token:a.token+".end",regex:a.end||a.start,next:"pop"}),a.token=a.token+".start",a.push=!0);var b=a.next||a.push;if(b&&Array.isArray(b)){var x=a.stateName;x||(x=a.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=d++)),s[x]=b,a.next=x,l(x)}else b=="pop"&&(a.next=h);if(a.push&&(a.nextState=a.next||a.push,a.next=w,delete a.push),a.rules)for(var R in a.rules)s[R]?s[R].push&&s[R].push.apply(s[R],a.rules[R]):s[R]=a.rules[R];var _=typeof a=="string"?a:a.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?p=_.map(function(C){return s[C]}):p=s[_]),p){var k=[i,1].concat(p);a.noEscape&&(k=k.filter(function(C){return!C.next})),c.splice.apply(c,k),i--}a.keywordMap&&(a.token=this.createKeywordMapper(a.keywordMap,a.defaultToken||"text",a.caseInsensitive),delete a.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(d,s,l,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(d).forEach(function(i){for(var a=d[i],p=a.split(u||"|"),b=p.length;b--;){var x=p[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=i}},this),d=null,l?function(i){return c[i.toLowerCase()]||s}:function(i){return c[i]||s}},this.getKeywords=function(){return this.$keywords}}).call(m.prototype),r.TextHighlightRules=m}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,f){var g;g=function(){this.$behaviours={}},(function(){this.add=function(m,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[m]:this.$behaviours[m]={}}this.$behaviours[m][w]=h},this.addBehaviours=function(m){for(var w in m)for(var h in m[w])this.add(w,h,m[w][h])},this.remove=function(m){this.$behaviours&&this.$behaviours[m]&&delete this.$behaviours[m]},this.inherit=function(m,w){if(typeof m=="function")var h=new m().getBehaviours(w);else var h=m.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(m){if(m){for(var w={},h=0;h<m.length;h++)this.$behaviours[m[h]]&&(w[m[h]]=this.$behaviours[m[h]]);return w}else return this.$behaviours}}).call(g.prototype),r.Behaviour=g}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,f){var g=e("./range").Range,m=function(){function w(h,d,s){this.$session=h,this.$row=d,this.$rowTokens=h.getTokens(d);var l=h.getTokenAt(d,s);this.$tokenIndex=l?l.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,d=this.$tokenIndex,s=h[d].start;if(s!==void 0)return s;for(s=0;d>0;)d-=1,s+=h[d].value.length;return s},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],d=this.getCurrentTokenColumn();return new g(this.$row,d,this.$row,d+h.value.length)},w}();r.TokenIterator=m}),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 g=e("../../lib/oop"),m=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,u={},c={'"':'"',"'":"'"},i=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,u.rangeCount!=b.multiSelect.rangeCount&&(u={rangeCount:b.multiSelect.rangeCount})),u[x])return l=u[x];l=u[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},a=function(b,x,R,_){var k=b.end.row-b.start.row;return{text:R+x+_,selection:[0,b.start.column+1,k,b.end.column+(k?0:1)]}},p;p=function(b){b=b||{},this.add("braces","insertion",function(x,R,_,k,C){var L=_.getCursorPosition(),D=k.doc.getLine(L.row);if(C=="{"){i(_);var E=_.getSelectionRange(),I=k.doc.getTextRange(E),z=k.getTokenAt(L.row,L.column);if(I!==""&&I!=="{"&&_.getWrapBehavioursEnabled())return a(E,I,"{","}");if(z&&/(?:string)\.quasi|\.xml/.test(z.type)){var P=[/tag\-(?:open|name)/,/attribute\-name/];return P.some(function(K){return K.test(z.type)})||/(string)\.quasi/.test(z.type)&&z.value[L.column-z.start-1]!=="$"?void 0:(p.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]})}else if(p.isSaneInsertion(_,k))return/[\]\}\)]/.test(D[L.column])||_.inMultiSelectMode||b.braces?(p.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(_,k,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){i(_);var O=D.substring(L.column,L.column+1);if(O=="}"){var $=k.$findOpeningBracket("}",{column:L.column+1,row:L.row});if($!==null&&p.isAutoInsertedClosing(L,D,C))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
|
|
180
180
|
`||C==`\r
|
|
181
181
|
`){i(_);var A="";p.isMaybeInsertedClosing(L,D)&&(A=h.stringRepeat("}",l.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var O=D.substring(L.column,L.column+1);if(O==="}"){var N=k.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!N)return null;var B=this.$getIndent(k.getLine(N.row))}else if(A)var B=this.$getIndent(D);else{p.clearMaybeInsertedClosing();return}var U=B+k.getTabString();return{text:`
|
|
@@ -1134,7 +1134,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,i
|
|
|
1134
1134
|
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1135
1135
|
position: absolute;
|
|
1136
1136
|
}`,"snippets.css",!1),r.snippetManager=new p;var k=e("./editor").Editor;(function(){this.insertSnippet=function(C,L){return r.snippetManager.insertSnippet(this,C,L)},this.expandSnippet=function(C){return r.snippetManager.expandWithTab(this,C)}}).call(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 g=e("../virtual_renderer").VirtualRenderer,m=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),d=e("../lib/lang"),s=e("../lib/dom"),l=e("../config").nls,u=e("./../lib/useragent"),c=function(R){return"suggest-aria-id:".concat(R)},i=u.isSafari?"menu":"listbox",a=u.isSafari?"menuitem":"option",p=u.isSafari?"aria-current":"aria-selected",b=function(R){var _=new g(R);_.$maxLines=4;var k=new m(_);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function R(_){var k=s.createElement("div"),C=b(k);_&&_.appendChild(k),k.style.display="none",C.renderer.content.style.cursor="default",C.renderer.setStyle("ace_autocomplete"),C.renderer.$textLayer.element.setAttribute("role",i),C.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),C.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),C.renderer.textarea.setAttribute("aria-hidden","true"),C.setOption("displayIndentGuides",!1),C.setOption("dragDelay",150);var L=function(){};C.focus=L,C.$isFocused=!0,C.renderer.$cursorLayer.restartTimer=L,C.renderer.$cursorLayer.element.style.opacity="0",C.renderer.$maxLines=8,C.renderer.$keepTextAreaAtCursor=!1,C.setHighlightActiveLine(!1),C.session.highlight(""),C.session.$searchHighlight.clazz="ace_highlight-marker",C.on("mousedown",function($){var A=$.getDocumentPosition();C.selection.moveToPosition(A),I.start.row=I.end.row=A.row,$.stop()});var D,E=new w(-1,0,-1,1/0),I=new w(-1,0,-1,1/0);I.id=C.session.addMarker(I,"ace_active-line","fullLine"),C.setSelectOnHover=function($){$?E.id&&(C.session.removeMarker(E.id),E.id=null):E.id=C.session.addMarker(E,"ace_line-hover","fullLine")},C.setSelectOnHover(!1),C.on("mousemove",function($){if(!D){D=$;return}if(!(D.x==$.x&&D.y==$.y)){D=$,D.scrollTop=C.renderer.scrollTop,C.isMouseOver=!0;var A=D.getDocumentPosition().row;E.start.row!=A&&(E.id||C.setRow(A),P(A))}}),C.renderer.on("beforeRender",function(){if(D&&E.start.row!=-1){D.$pos=null;var $=D.getDocumentPosition().row;E.id||C.setRow($),P($,!0)}}),C.renderer.on("afterRender",function(){for(var $=C.renderer.$textLayer,A=$.config.firstRow,N=$.config.lastRow;A<=N;A++){var B=$.element.childNodes[A-$.config.firstRow];B.setAttribute("role",a),B.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),B.setAttribute("aria-setsize",C.data.length),B.setAttribute("aria-describedby","doc-tooltip"),B.setAttribute("aria-posinset",A+1);var U=C.getData(A);if(U){var K="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");B.setAttribute("aria-label",K)}var Q=B.querySelectorAll(".ace_completion-highlight");Q.forEach(function(J){J.setAttribute("role","mark")})}}),C.renderer.on("afterRender",function(){var $=C.getRow(),A=C.renderer.$textLayer,N=A.element.childNodes[$-A.config.firstRow],B=document.activeElement;if(N!==C.selectedNode&&C.selectedNode&&(s.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode.removeAttribute(p),C.selectedNode.removeAttribute("id")),B.removeAttribute("aria-activedescendant"),C.selectedNode=N,N){var U=c($);s.addCssClass(N,"ace_selected"),N.id=U,A.element.setAttribute("aria-activedescendant",U),B.setAttribute("aria-activedescendant",U),N.setAttribute(p,"true")}});var z=function(){P(-1)},P=function($,A){$!==E.start.row&&(E.start.row=E.end.row=$,A||C.session._emit("changeBackMarker"),C._emit("changeHoverMarker"))};C.getHoveredRow=function(){return E.start.row},h.addListener(C.container,"mouseout",function(){C.isMouseOver=!1,z()}),C.on("hide",z),C.on("changeSelection",z),C.session.doc.getLength=function(){return C.data.length},C.session.doc.getLine=function($){var A=C.data[$];return typeof A=="string"?A:A&&A.value||""};var O=C.session.bgTokenizer;return O.$tokenizeRow=function($){function A(de,me){de&&B.push({type:(N.className||"")+(me||""),value:de})}var N=C.data[$],B=[];if(!N)return B;typeof N=="string"&&(N={value:N});for(var U=N.caption||N.value||N.name,K=U.toLowerCase(),Q=(C.filterText||"").toLowerCase(),J=0,he=0,ne=0;ne<=Q.length;ne++)if(ne!=he&&(N.matchMask&1<<ne||ne==Q.length)){var le=Q.slice(he,ne);he=ne;var se=K.indexOf(le,J);if(se==-1)continue;A(U.slice(J,se),""),J=se+le.length,A(U.slice(se,J),"completion-highlight")}return A(U.slice(J,U.length),""),B.push({type:"completion-spacer",value:" "}),N.meta&&B.push({type:"completion-meta",value:N.meta}),N.message&&B.push({type:"completion-message",value:N.message}),B},O.$updateOnChange=L,O.start=L,C.session.$computeWidth=function(){return this.screenWidth=0},C.isOpen=!1,C.isTopdown=!1,C.autoSelect=!0,C.filterText="",C.isMouseOver=!1,C.data=[],C.setData=function($,A){C.filterText=A||"",C.setValue(d.stringRepeat(`
|
|
1137
|
-
`,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return I.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),I.start.row!=$&&(C.selection.clearSelection(),I.start.row=I.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,A,N,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===N)return!0;var U=this.container,K=this.renderer.scrollBar.width||10,Q=window.innerHeight-K,J=window.innerWidth-K,he=this.renderer,ne=he.$maxLines*A*1.4,le={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-A,de=$.top-3*this.$borderSize;N||(de<=se||se>=ne?N="bottom":N="top"),N==="top"?(le.bottom=$.top-this.$borderSize,le.top=le.bottom-ne):N==="bottom"&&(le.top=$.top+A+this.$borderSize,le.bottom=le.top+ne);var me=le.top>=0&&le.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,N==="top"?(U.style.top="",U.style.bottom=Q+K-le.bottom+"px",C.isTopdown=!1):(U.style.top=le.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var _e=$.left;return _e+U.offsetWidth>J&&(_e=J-U.offsetWidth),U.style.left=_e+"px",U.style.right="",C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=N
|
|
1137
|
+
`,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return I.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),I.start.row!=$&&(C.selection.clearSelection(),I.start.row=I.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,A,N,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===N)return!0;var U=this.container,K=this.renderer.scrollBar.width||10,Q=window.innerHeight-K,J=window.innerWidth-K,he=this.renderer,ne=he.$maxLines*A*1.4,le={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-A,de=$.top-3*this.$borderSize;N||(de<=se||se>=ne?N="bottom":N="top"),N==="top"?(le.bottom=$.top-this.$borderSize,le.top=le.bottom-ne):N==="bottom"&&(le.top=$.top+A+this.$borderSize,le.bottom=le.top+ne);var me=le.top>=0&&le.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,N==="top"?(U.style.top="",U.style.bottom=Q+K-le.bottom+"px",C.isTopdown=!1):(U.style.top=le.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var _e=$.left;return _e+U.offsetWidth>J&&(_e=J-U.offsetWidth),U.style.left=_e+"px",U.style.right="",s.$fixPositionBug(U),C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=N,!0},C.show=function($,A,N){this.tryShow($,A,N?"bottom":void 0,!0)},C.goTo=function($){var A=this.getRow(),N=this.session.getLength()-1;switch($){case"up":A=A<=0?N:A-1;break;case"down":A=A>=N?-1:A+1;break;case"start":A=0;break;case"end":A=N}this.setRow(A)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return R}();s.importCssString(`
|
|
1138
1138
|
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1139
1139
|
background-color: #CAD6FA;
|
|
1140
1140
|
z-index: 1;
|
|
@@ -1226,7 +1226,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,i
|
|
|
1226
1226
|
animation: none;
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var g=function(){function m(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return m.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[d-s.config.firstRow];if(l){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},m.prototype.destroy=function(){this.screenReaderDiv.remove()},m.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);d.appendChild(s),w.appendChild(d)}return w},m}();r.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(d,s,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new m(d));var u=s.snippet?g.getDisplayTextForSnippet(d,s.snippet):s.value;return s.hideInlinePreview||!u||!u.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(l.length),u===""?d.removeGhostText():d.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(m,w,h){var d=0,s=m.length;s===0&&h();for(var l=0;l<s;l++)w(m[l],function(u,c){d++,d===s&&h(u,c)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(m,w,h){h=h||g;for(var d=[],s=w-1;s>=0&&h.test(m[s]);s--)d.push(m[s]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(m,w,h){h=h||g;for(var d=[],s=w;s<m.length&&h.test(m[s]);s++)d.push(m[s]);return d},r.getCompletionPrefix=function(m){var w=m.getCursorPosition(),h=m.session.getLine(w.row),d;return m.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(m,h){var h=h??m.session.getPrecedingCharacter();return m.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,f){var g=e("./keyboard/hash_handler").HashHandler,m=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),s=e("./lib/lang"),l=e("./lib/dom"),u=e("./snippets").snippetManager,c=e("./config"),i=e("./lib/event"),a=e("./lib/scroll").preventParentScroll,p=function(_,k){k.completer&&k.completer.destroy()},b=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new g,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new R(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new m(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)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.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))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var C=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,E=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,k,E)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!k||L.hideInlinePreview)&&this.$seen(L)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.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,C=[];k;)C.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=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(C){C.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,C=k.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var E=k.container.getBoundingClientRect();D.top+=E.top-C.layerConfig.offset,D.left+=E.left-k.renderer.scrollLeft,D.left+=C.gutterWidth;var I={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(I.top+=C.$ghostTextWidget.el.offsetHeight);var z=k.container.getBoundingClientRect().bottom-L,P=z<I.top?{top:z,left:I.left}:I;this.popup.tryShow(P,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},_.prototype.openPopup=function(k,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),E=this.popup.data[D];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 I;this.stickySelection&&(I=this.popup.data.indexOf(E)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===D&&E!==this.completions.filtered[I]&&this.$onPopupChange();var z=this.inlineRenderer&&this.inlineEnabled;if(I===D&&z){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}L||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.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()},_.prototype.changeListener=function(k){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var C=document.activeElement,L=this.editor.textInput.getElement(),D=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),E=this.popup&&this.popup.container;C!=L&&C.parentNode!=E&&!D&&C!=this.tooltipNode&&k.relatedTarget!=L&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,C){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,k,L.filterText,C);return this.completions==L&&this.detach(),D},_.prototype.showPopup=function(k,C){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,C)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,C){return this.getCompletionProvider().gatherCompletions(k,C)},_.prototype.updateCompletions=function(k,C){if(k&&this.base&&this.completions){var D=this.editor.getCursorPosition(),E=this.editor.session.getTextRange({start:this.base,end:D});if(E==this.completions.filterText)return;if(this.completions.setFilter(E),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==E&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,E,k);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new R(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),E=d.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-E.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:E,pos:D}).provideCompletions(this.editor,I,(function(z,P,O){var $=P.filtered,A=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(A)),N){var B=[{caption:N,value:""}];this.completions=new R(B),this.openPopup(this.editor,A,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==A&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new R(_.completionsForLoading.concat($),P.filterText):P,this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[k.getHoveredRow()]||C[k.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var E=this.editor.completers.length,I=0;I<E;I++){var z=this.editor.completers[I];if(z.getDocTooltip&&L.completerId===z.id){D=z.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",a));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;k.docHTML?L.innerHTML=k.docHTML:k.docText&&(L.textContent=k.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,E=D.container.getBoundingClientRect(),I=400,z=300,P=D.renderer.scrollBar.width||10,O=E.left,$=window.innerWidth-E.right-P,A=D.isTopdown?E.top:window.innerHeight-P-E.bottom,N=[Math.min($/I,1),Math.min(O/I,1),Math.min(A/z*.9)],B=Math.max.apply(Math,N),U=L.style;U.display="block",B==N[0]?(U.left=E.right+1+"px",U.right="",U.maxWidth=I*B+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.top,z)+"px"):B==N[1]?(U.right=window.innerWidth-E.left+"px",U.left="",U.maxWidth=I*B+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.top,z)+"px"):B==N[2]&&(U.left=window.innerWidth-E.left+"px",U.maxWidth=Math.min(I,window.innerWidth)+"px",D.isTopdown?(U.top=E.bottom+"px",U.left=E.left+"px",U.right="",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.bottom,z)+"px"):(U.top=D.container.offsetTop-L.offsetHeight+"px",U.left=E.left+"px",U.right="",U.bottom="",U.maxHeight=Math.min(D.container.offsetTop,z)+"px"))},_.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)}},_.prototype.onTooltipClick=function(k){for(var C=k.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_.for=function(k){return k.completer instanceof _||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(_.$sharedInstance||(_.$sharedInstance=new _),k.completer=_.$sharedInstance):(k.completer=new _,k.once("destroy",p))),k.completer},_}();b.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(k||_.tabstopManager)return k;_.completer.goTo("down")},Backspace:function(_){_.execCommand("backspace");var k=d.getCompletionPrefix(_);!k&&_.completer&&_.completer.detach()},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(_,k){var C=b.for(_);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(_,k),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[C],L)},_.prototype.insertMatch=function(k,C,L){if(!C)return!1;if(k.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(k,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,E=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,E+=C.range.end.column-this.initialPosition.pos.column),D||E){var I;k.selection.getAllRanges?I=k.selection.getAllRanges():I=[k.getSelectionRange()];for(var z=0,P;P=I[z];z++)P.start.column-=D,P.end.column+=E,k.session.remove(P)}C.snippet?u.insertSnippet(k,C.snippet):this.$insertString(k,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(k,C),C.command&&C.command==="startAutocomplete"&&k.execCommand(C.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,C){var L=C.value||C;k.execCommand("insertstring",L)},_.prototype.gatherCompletions=function(k,C){var L=k.getSession(),D=k.getCursorPosition(),E=d.getCompletionPrefix(k),I=[];this.completers=k.completers;var z=k.completers.length;return k.completers.forEach(function(P,O){P.getCompletions(k,L,D,E,function($,A){P.hideInlinePreview&&(A=A.map(function(N){return Object.assign(N,{hideInlinePreview:P.hideInlinePreview})})),!$&&A&&(I=I.concat(A)),C(null,{prefix:d.getCompletionPrefix(k),matches:I,finished:--z===0})})}),!0},_.prototype.provideCompletions=function(k,C,L){var D=(function(P){var O=P.prefix,$=P.matches;this.completions=new R($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(P.finished||this.completions.filtered.length)&&L(null,this.completions,P.finished)}).bind(this),E=!0,I=null;if(this.gatherCompletions(k,(function(P,O){if(this.active){P&&(L(P,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(E){I=O;return}D(O)}}}).bind(this)),E=!1,I){var z=I;I=null,D(z)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),R=function(){function _(k,C){this.all=k,this.filtered=k,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=k,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,E){return E.exactMatch-D.exactMatch||E.$score-D.$score||(D.caption||D.value).localeCompare(E.caption||E.value)});var L=null;C=C.filter(function(D){var E=D.snippet||D.caption||D.value;return E===L?!1:(L=E,!0)}),this.filtered=C},_.prototype.filterCompletions=function(k,C){var L=[],D=C.toUpperCase(),E=C.toLowerCase();e:for(var I=0,z;z=k[I];I++){if(z.skipFilter){z.$score=z.score,L.push(z);continue}var P=!this.ignoreCaption&&z.caption||z.value||z.snippet;if(P){var O=-1,$=0,A=0,N,B;if(this.exactMatch){if(C!==P.substr(0,C.length))continue e}else{var U=P.toLowerCase().indexOf(E);if(U>-1)A=U;else for(var K=0;K<C.length;K++){var Q=P.indexOf(E[K],O+1),J=P.indexOf(D[K],O+1);if(N=Q>=0&&(J<0||Q<J)?Q:J,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(A+=10),A+=B,$|=1<<K),O=N}}z.matchMask=$,z.exactMatch=A?0:1,z.$score=(z.score||0)-A,L.push(z)}}return L},_}();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=R}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return m.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},m.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},m.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},m.prototype.update=function(w,h,d,s){if(!(!this.markers||!this.markers.length))for(var l=s.firstRow,u=s.lastRow,c,i=0,a=0,p=0;p<this.markers.length;p++){var b=this.markers[p];if(!(b.range.end.row<l)&&!(b.range.start.row>u)&&(b.range.start.row===a?i++:(a=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var R=x.toScreenRange(d);if(R.isEmpty()){c=d.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(l=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,R,b.className,s):R.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,R,b.className,s):h.drawTextMarker(w,R,b.className,s):h.drawSingleLineMarker(w,R,b.className+" ace_br15",s)}}}},m}();g.prototype.MAX_MARKERS=1e4,r.MarkerGroup=g}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function g(d,s){var l=d.getTextRange(w.fromPoints({row:0,column:0},s));return l.split(h).length-1}function m(d,s){var l=g(d,s),u=d.getValue().split(h),c=Object.create(null),i=u[l];return u.forEach(function(a,p){if(!(!a||a===i)){var b=Math.abs(l-p),x=u.length-b;c[a]?c[a]=Math.max(x,c[a]):c[a]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(d,s,l,u,c){var i=m(s,l),a=Object.keys(i);c(null,a.map(function(p){return{caption:p,value:p,score:i[p],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),s=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),u={getCompletions:function(E,I,z,P,O){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,z,P,O);var $=E.session.getState(z.row),A=I.$mode.getCompletions($,I,z,P);A=A.map(function(N){return N.completerId=u.id,N}),O(null,A)},id:"keywordCompleter"},c=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(z,P,O,$){return I[P]=$||""}).replace(/\$(\d+?)/g,function(z,P){return I[P]})},i={getCompletions:function(E,I,z,P,O){var $=[],A=I.getTokenAt(z.row,z.column);A&&A.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=g.getActiveScopes(E);var N=g.snippetMap,B=[];$.forEach(function(U){for(var K=N[U]||[],Q=K.length;Q--;){var J=K[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(c(E.snippet))].join(""))},id:"snippetCompleter"},a=[i,l,u];r.setCompleters=function(E){a.length=0,E&&a.push.apply(a,E)},r.addCompleter=function(E){a.push(E)},r.textCompleter=l,r.keyWordCompleter=u,r.snippetCompleter=i;var p={name:"expandSnippet",exec:function(E){return g.expandWithTab(E)},bindKey:"Tab"},b=function(E,I){x(I.session.$mode)},x=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(g.files||(g.files={}),R(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(x))},R=function(E,I){!I||!E||g.files[E]||(g.files[E]={},w.loadModule(I,function(z){z&&(g.files[E]=z,!z.snippets&&z.snippetText&&(z.snippets=g.parseSnippetFile(z.snippetText)),g.register(z.snippets||[],z.scope),z.includeScopes&&(g.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(P){x("ace/mode/"+P)})))}))},_=function(E){var I=E.editor,z=I.completer&&I.completer.activated;if(E.command.name==="backspace")z&&!d.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!z){k=E;var P=E.editor.$liveAutocompletionDelay;P?C.delay(P):L(E)}},k,C=h.delayedCall(function(){L(k)},0),L=function(E){var I=E.editor,z=d.getCompletionPrefix(I),P=E.args,O=d.triggerAutocomplete(I,P);if(z&&z.length>=I.$liveAutocompletionThreshold||O){var $=m.for(I);$.autoShown=!0,$.showPopup(I)}},D=e("../editor").Editor;e("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(m.for(this),this.completers||(this.completers=Array.isArray(E)?E:a),this.commands.addCommand(m.startCommand)):this.commands.removeCommand(m.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:a),this.commands.on("afterExec",_)):this.commands.off("afterExec",_)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(p),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(p),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=s}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(vf)),vf.exports}Tx();var bf={exports:{}},wf;function Mx(){return wf||(wf=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
|
|
1229
|
+
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var g=function(){function m(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return m.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[d-s.config.firstRow];if(l){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},m.prototype.destroy=function(){this.screenReaderDiv.remove()},m.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);d.appendChild(s),w.appendChild(d)}return w},m}();r.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(d,s,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new m(d));var u=s.snippet?g.getDisplayTextForSnippet(d,s.snippet):s.value;return s.hideInlinePreview||!u||!u.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(l.length),u===""?d.removeGhostText():d.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(m,w,h){var d=0,s=m.length;s===0&&h();for(var l=0;l<s;l++)w(m[l],function(u,c){d++,d===s&&h(u,c)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(m,w,h){h=h||g;for(var d=[],s=w-1;s>=0&&h.test(m[s]);s--)d.push(m[s]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(m,w,h){h=h||g;for(var d=[],s=w;s<m.length&&h.test(m[s]);s++)d.push(m[s]);return d},r.getCompletionPrefix=function(m){var w=m.getCursorPosition(),h=m.session.getLine(w.row),d;return m.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(m,h){var h=h??m.session.getPrecedingCharacter();return m.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,f){var g=e("./keyboard/hash_handler").HashHandler,m=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),s=e("./lib/lang"),l=e("./lib/dom"),u=e("./snippets").snippetManager,c=e("./config"),i=e("./lib/event"),a=e("./lib/scroll").preventParentScroll,p=function(_,k){k.completer&&k.completer.destroy()},b=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new g,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new R(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new m(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)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.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))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var C=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,E=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,k,E)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!k||L.hideInlinePreview)&&this.$seen(L)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.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,C=[];k;)C.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=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(C){C.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,C=k.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var E=k.container.getBoundingClientRect();D.top+=E.top-C.layerConfig.offset,D.left+=E.left-k.renderer.scrollLeft,D.left+=C.gutterWidth;var I={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(I.top+=C.$ghostTextWidget.el.offsetHeight);var z=k.container.getBoundingClientRect().bottom-L,P=z<I.top?{top:z,left:I.left}:I;this.popup.tryShow(P,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},_.prototype.openPopup=function(k,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),E=this.popup.data[D];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 I;this.stickySelection&&(I=this.popup.data.indexOf(E)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===D&&E!==this.completions.filtered[I]&&this.$onPopupChange();var z=this.inlineRenderer&&this.inlineEnabled;if(I===D&&z){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}L||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.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()},_.prototype.changeListener=function(k){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var C=document.activeElement,L=this.editor.textInput.getElement(),D=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),E=this.popup&&this.popup.container;C!=L&&C.parentNode!=E&&!D&&C!=this.tooltipNode&&k.relatedTarget!=L&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,C){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,k,L.filterText,C);return this.completions==L&&this.detach(),D},_.prototype.showPopup=function(k,C){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,C)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,C){return this.getCompletionProvider().gatherCompletions(k,C)},_.prototype.updateCompletions=function(k,C){if(k&&this.base&&this.completions){var D=this.editor.getCursorPosition(),E=this.editor.session.getTextRange({start:this.base,end:D});if(E==this.completions.filterText)return;if(this.completions.setFilter(E),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==E&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,E,k);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new R(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),E=d.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-E.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:E,pos:D}).provideCompletions(this.editor,I,(function(z,P,O){var $=P.filtered,A=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(A)),N){var B=[{caption:N,value:""}];this.completions=new R(B),this.openPopup(this.editor,A,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==A&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new R(_.completionsForLoading.concat($),P.filterText):P,this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[k.getHoveredRow()]||C[k.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var E=this.editor.completers.length,I=0;I<E;I++){var z=this.editor.completers[I];if(z.getDocTooltip&&L.completerId===z.id){D=z.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",a));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;k.docHTML?L.innerHTML=k.docHTML:k.docText&&(L.textContent=k.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,E=D.container.getBoundingClientRect(),I=400,z=300,P=D.renderer.scrollBar.width||10,O=E.left,$=window.innerWidth-E.right-P,A=D.isTopdown?window.innerHeight-P-E.bottom:E.top,N=[Math.min($/I,1),Math.min(O/I,1),Math.min(A/z,1)*.9],B=Math.max.apply(Math,N),U=L.style;U.display="block",B==N[0]||N[0]>=1?(U.left=E.right+1+"px",U.right="",U.maxWidth=I*B+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.top,z)+"px"):B==N[1]||N[1]>=1?(U.right=window.innerWidth-E.left+"px",U.left="",U.maxWidth=I*B+"px",U.top=E.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.top,z)+"px"):B==N[2]&&(U.left=E.left+"px",U.right="",U.maxWidth=Math.min(I,window.innerWidth-E.left)+"px",D.isTopdown?(U.top=E.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-E.bottom,z)+"px"):(U.top="",U.bottom=window.innerHeight-E.top+"px",U.maxHeight=Math.min(E.top,z)+"px")),l.$fixPositionBug(L)},_.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)}},_.prototype.onTooltipClick=function(k){for(var C=k.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_.for=function(k){return k.completer instanceof _||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(_.$sharedInstance||(_.$sharedInstance=new _),k.completer=_.$sharedInstance):(k.completer=new _,k.once("destroy",p))),k.completer},_}();b.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(k||_.tabstopManager)return k;_.completer.goTo("down")},Backspace:function(_){_.execCommand("backspace");var k=d.getCompletionPrefix(_);!k&&_.completer&&_.completer.detach()},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(_,k){var C=b.for(_);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(_,k),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[C],L)},_.prototype.insertMatch=function(k,C,L){if(!C)return!1;if(k.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(k,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,E=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,E+=C.range.end.column-this.initialPosition.pos.column),D||E){var I;k.selection.getAllRanges?I=k.selection.getAllRanges():I=[k.getSelectionRange()];for(var z=0,P;P=I[z];z++)P.start.column-=D,P.end.column+=E,k.session.remove(P)}C.snippet?u.insertSnippet(k,C.snippet):this.$insertString(k,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(k,C),C.command&&C.command==="startAutocomplete"&&k.execCommand(C.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,C){var L=C.value||C;k.execCommand("insertstring",L)},_.prototype.gatherCompletions=function(k,C){var L=k.getSession(),D=k.getCursorPosition(),E=d.getCompletionPrefix(k),I=[];this.completers=k.completers;var z=k.completers.length;return k.completers.forEach(function(P,O){P.getCompletions(k,L,D,E,function($,A){P.hideInlinePreview&&(A=A.map(function(N){return Object.assign(N,{hideInlinePreview:P.hideInlinePreview})})),!$&&A&&(I=I.concat(A)),C(null,{prefix:d.getCompletionPrefix(k),matches:I,finished:--z===0})})}),!0},_.prototype.provideCompletions=function(k,C,L){var D=(function(P){var O=P.prefix,$=P.matches;this.completions=new R($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(P.finished||this.completions.filtered.length)&&L(null,this.completions,P.finished)}).bind(this),E=!0,I=null;if(this.gatherCompletions(k,(function(P,O){if(this.active){P&&(L(P,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(E){I=O;return}D(O)}}}).bind(this)),E=!1,I){var z=I;I=null,D(z)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),R=function(){function _(k,C){this.all=k,this.filtered=k,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=k,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,E){return E.exactMatch-D.exactMatch||E.$score-D.$score||(D.caption||D.value).localeCompare(E.caption||E.value)});var L=null;C=C.filter(function(D){var E=D.snippet||D.caption||D.value;return E===L?!1:(L=E,!0)}),this.filtered=C},_.prototype.filterCompletions=function(k,C){var L=[],D=C.toUpperCase(),E=C.toLowerCase();e:for(var I=0,z;z=k[I];I++){if(z.skipFilter){z.$score=z.score,L.push(z);continue}var P=!this.ignoreCaption&&z.caption||z.value||z.snippet;if(P){var O=-1,$=0,A=0,N,B;if(this.exactMatch){if(C!==P.substr(0,C.length))continue e}else{var U=P.toLowerCase().indexOf(E);if(U>-1)A=U;else for(var K=0;K<C.length;K++){var Q=P.indexOf(E[K],O+1),J=P.indexOf(D[K],O+1);if(N=Q>=0&&(J<0||Q<J)?Q:J,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(A+=10),A+=B,$|=1<<K),O=N}}z.matchMask=$,z.exactMatch=A?0:1,z.$score=(z.score||0)-A,L.push(z)}}return L},_}();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=R}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return m.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},m.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},m.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},m.prototype.update=function(w,h,d,s){if(!(!this.markers||!this.markers.length))for(var l=s.firstRow,u=s.lastRow,c,i=0,a=0,p=0;p<this.markers.length;p++){var b=this.markers[p];if(!(b.range.end.row<l)&&!(b.range.start.row>u)&&(b.range.start.row===a?i++:(a=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var R=x.toScreenRange(d);if(R.isEmpty()){c=d.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(l=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,R,b.className,s):R.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,R,b.className,s):h.drawTextMarker(w,R,b.className,s):h.drawSingleLineMarker(w,R,b.className+" ace_br15",s)}}}},m}();g.prototype.MAX_MARKERS=1e4,r.MarkerGroup=g}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function g(d,s){var l=d.getTextRange(w.fromPoints({row:0,column:0},s));return l.split(h).length-1}function m(d,s){var l=g(d,s),u=d.getValue().split(h),c=Object.create(null),i=u[l];return u.forEach(function(a,p){if(!(!a||a===i)){var b=Math.abs(l-p),x=u.length-b;c[a]?c[a]=Math.max(x,c[a]):c[a]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(d,s,l,u,c){var i=m(s,l),a=Object.keys(i);c(null,a.map(function(p){return{caption:p,value:p,score:i[p],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),s=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),u={getCompletions:function(E,I,z,P,O){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,z,P,O);var $=E.session.getState(z.row),A=I.$mode.getCompletions($,I,z,P);A=A.map(function(N){return N.completerId=u.id,N}),O(null,A)},id:"keywordCompleter"},c=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(z,P,O,$){return I[P]=$||""}).replace(/\$(\d+?)/g,function(z,P){return I[P]})},i={getCompletions:function(E,I,z,P,O){var $=[],A=I.getTokenAt(z.row,z.column);A&&A.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=g.getActiveScopes(E);var N=g.snippetMap,B=[];$.forEach(function(U){for(var K=N[U]||[],Q=K.length;Q--;){var J=K[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(c(E.snippet))].join(""))},id:"snippetCompleter"},a=[i,l,u];r.setCompleters=function(E){a.length=0,E&&a.push.apply(a,E)},r.addCompleter=function(E){a.push(E)},r.textCompleter=l,r.keyWordCompleter=u,r.snippetCompleter=i;var p={name:"expandSnippet",exec:function(E){return g.expandWithTab(E)},bindKey:"Tab"},b=function(E,I){x(I.session.$mode)},x=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(g.files||(g.files={}),R(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(x))},R=function(E,I){!I||!E||g.files[E]||(g.files[E]={},w.loadModule(I,function(z){z&&(g.files[E]=z,!z.snippets&&z.snippetText&&(z.snippets=g.parseSnippetFile(z.snippetText)),g.register(z.snippets||[],z.scope),z.includeScopes&&(g.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(P){x("ace/mode/"+P)})))}))},_=function(E){var I=E.editor,z=I.completer&&I.completer.activated;if(E.command.name==="backspace")z&&!d.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!z){k=E;var P=E.editor.$liveAutocompletionDelay;P?C.delay(P):L(E)}},k,C=h.delayedCall(function(){L(k)},0),L=function(E){var I=E.editor,z=d.getCompletionPrefix(I),P=E.args,O=d.triggerAutocomplete(I,P);if(z&&z.length>=I.$liveAutocompletionThreshold||O){var $=m.for(I);$.autoShown=!0,$.showPopup(I)}},D=e("../editor").Editor;e("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(m.for(this),this.completers||(this.completers=Array.isArray(E)?E:a),this.commands.addCommand(m.startCommand)):this.commands.removeCommand(m.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:a),this.commands.on("afterExec",_)):this.commands.off("afterExec",_)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(p),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(p),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=s}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(vf)),vf.exports}Tx();var bf={exports:{}},wf;function Mx(){return wf||(wf=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
|
|
1230
1230
|
|
|
1231
1231
|
/* ------------------------------------------------------------------------------------------
|
|
1232
1232
|
* Editor Search Form
|
|
@@ -1398,14 +1398,14 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,i
|
|
|
1398
1398
|
`),h=w.length;for(let d=0;d<h;d++){this.lineNumber=d+1;let s=w[d].trim();if(s.length===0){r&&g(null,[],this.line,this.lineNumber);continue}if(m===!0){if(s[0]==="#")continue;s=s.substring(1,s.length)}let l=s.charAt(s.length-1),u=!1;switch(l){case"+":u=!0;case"\\":let b=s.substring(0,s.length-1).trim();this.line+=b.substring(0,b.length-1),u&&(this.line+=`
|
|
1399
1399
|
`),m=!0;continue;case"&":this.line+=s.substring(0,s.length-1);continue;default:this.line+=s}m=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,i=this.scan_string(this.line,c),a="";if(i.length>0&&(a=a+i[0]),a.length===0||a.charAt(0)==="#"?this.keyword=null:this.keyword=a.toUpperCase(),this.parameters=[],this.keyword===null){r&&g(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let p=i.length;if(p>1)for(let b=1;b<p;b++){let x=i[b];if(x.length>0&&x.charAt(0)==="#")break;f?this.parameters.push(this.remove_quotes(x)):this.parameters.push(x)}g(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}Kn("W",BC);function ja(n){return zC.test(n)}const zC=/^-?[0-9]+$/;function vg(n){return HC.test(n)}const HC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function yg(n,t){if(ja(n))return Number.isSafeInteger(Number.parseInt(n,10));const e=Number.parseFloat(n),r=String(e);if(n===r)return!0;const f=bg(n),g=bg(r);return!!(f===g||(t==null?void 0:t.approx)===!0&&!ja(n)&&g.length>=14&&f.startsWith(g.substring(0,14)))}let Ua=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function jC(n){if(yg(n,{approx:!1}))return;if(ja(n))return Ua.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?Ua.underflow:Ua.truncate_float:Ua.overflow}function bg(n){const{start:t,end:e}=UC(n),r=n.substring(t,e),f=r.indexOf(".");return f===-1?r:r.substring(0,f)+r.substring(f+1)}function UC(n){let t=0;for(n[0]==="-"&&t++;n[t]==="0"||n[t]===".";)t++;let e=n.lastIndexOf("e");for(e===-1&&(e=n.lastIndexOf("E")),e===-1&&(e=n.length);(n[e-1]==="0"||n[e-1]===".")&&e>t;)e--;return{start:t,end:e}}class VC{constructor(t){if(co(this,"isLosslessNumber",!0),!vg(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=jC(this.value);if(t===void 0||t===Ua.truncate_float)return Number.parseFloat(this.value);if(ja(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function qC(n){return n&&typeof n=="object"&&n.isLosslessNumber||!1}function KC(n){return new VC(n)}function GC(n,t){return Fu({"":n},"",n,t)}function Fu(n,t,e,r){return Array.isArray(e)?r.call(n,t,XC(e,r)):e&&typeof e=="object"&&!qC(e)?r.call(n,t,YC(e,r)):r.call(n,t,e)}function YC(n,t){for(const e of Object.keys(n)){const r=Fu(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function XC(n,t){for(let e=0;e<n.length;e++)n[e]=Fu(n,String(e),n[e],t);return n}function ZC(n,t,e){const r=typeof e=="function"?{parseNumber:e}:e,f=(r==null?void 0:r.parseNumber)??KC,g=(r==null?void 0:r.onDuplicateKey)??L;let m=0;const w=s();return b(w),R(),t?GC(w,t):w;function h(){if(n.charCodeAt(m)===rk){m++,u();const B={};let U=!0;for(;m<n.length&&n.charCodeAt(m)!==xg;){U?U=!1:(a(),u());const K=m,Q=c();if(Q===void 0){C();return}u(),p();const J=s();if(J===void 0){P();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Pu(J,B[Q])){const he=g({key:Q,position:K+1,oldValue:B[Q],newValue:J});he!==void 0&&(B[Q]=he)}else B[Q]=J}return n.charCodeAt(m)!==xg&&D(),m++,B}}function d(){if(n.charCodeAt(m)===ik){m++,u();const B=[];let U=!0;for(;m<n.length&&n.charCodeAt(m)!==Cg;){U?U=!1:a();const K=s();x(K),B.push(K)}return n.charCodeAt(m)!==Cg&&E(),m++,B}}function s(){u();const B=c()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return u(),B}function l(B,U){if(n.slice(m,m+B.length)===B)return m+=B.length,U}function u(){for(;QC(n.charCodeAt(m));)m++}function c(){if(n.charCodeAt(m)===Wu){m++;let B="";for(;m<n.length&&n.charCodeAt(m)!==Wu;){if(n.charCodeAt(m)===nk){const U=n[m+1],K=tk[U];K!==void 0?(B+=K,m++):U==="u"?ql(n.charCodeAt(m+2))&&ql(n.charCodeAt(m+3))&&ql(n.charCodeAt(m+4))&&ql(n.charCodeAt(m+5))?(B+=String.fromCharCode(Number.parseInt(n.slice(m+2,m+6),16)),m+=5):O(m):z(m)}else ek(n.charCodeAt(m))?B+=n[m]:I(n[m]);m++}return k(),m++,B}}function i(){const B=m;if(n.charCodeAt(m)===kg&&(m++,_(B)),n.charCodeAt(m)===Bu)m++;else if(JC(n.charCodeAt(m)))for(m++;Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===dk)for(m++,_(B);Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===vk||n.charCodeAt(m)===mk)for(m++,(n.charCodeAt(m)===kg||n.charCodeAt(m)===ck)&&m++,_(B);Kl(n.charCodeAt(m));)m++;if(m>B)return f(n.slice(B,m))}function a(){if(n.charCodeAt(m)!==hk)throw new SyntaxError(`Comma ',' expected after value ${N()}`);m++}function p(){if(n.charCodeAt(m)!==pk)throw new SyntaxError(`Colon ':' expected after property name ${N()}`);m++}function b(B){if(B===void 0)throw new SyntaxError(`JSON value expected ${N()}`)}function x(B){if(B===void 0)throw new SyntaxError(`Array item expected ${N()}`)}function R(){if(m<n.length)throw new SyntaxError(`Expected end of input ${N()}`)}function _(B){if(!Kl(n.charCodeAt(m))){const U=n.slice(B,m);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${N()}`)}}function k(){if(n.charCodeAt(m)!==Wu)throw new SyntaxError(`End of string '"' expected ${N()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${N()}`)}function L(B){let{key:U,position:K}=B;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${K}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${N()}`)}function E(){throw new SyntaxError(`Array item or end of array ']' expected ${N()}`)}function I(B){throw new SyntaxError(`Invalid character '${B}' ${$()}`)}function z(B){const U=n.slice(B,B+2);throw new SyntaxError(`Invalid escape character '${U}' ${$()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function O(B){const U=n.slice(B,B+6);throw new SyntaxError(`Invalid unicode character '${U}' ${$()}`)}function $(){return`at position ${m}`}function A(){return m<n.length?`but got '${n[m]}'`:"but reached end of input"}function N(){return`${A()} ${$()}`}}function QC(n){return n===ok||n===sk||n===ak||n===lk}function ql(n){return n>=Bu&&n<=zu||n>=fk&&n<=yk||n>=gk&&n<=bk}function Kl(n){return n>=Bu&&n<=zu}function JC(n){return n>=uk&&n<=zu}function ek(n){return n>=32&&n<=1114111}function Pu(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Pu(e,t[r])):wg(n)&&wg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Pu(n[e],t[e])):!1}function wg(n){return typeof n=="object"&&n!==null}const tk={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1400
1400
|
`,r:"\r",t:" "},nk=92,rk=123,xg=125,ik=91,Cg=93,ok=32,sk=10,ak=9,lk=13,Wu=34,ck=43,kg=45,Bu=48,uk=49,zu=57,hk=44,dk=46,pk=58,fk=65,gk=97,mk=69,vk=101,yk=70,bk=102;function Ag(n,t,e,r){return f(n);function f(h,d){if(Array.isArray(r)){const s=r.find(l=>l.test(h));if(s){const l=s.stringify(h);if(typeof l!="string"||!vg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h!=null&&h.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return g(h);if(h&&typeof h=="object")return m(h)}function g(h,d){if(h.length===0)return"[]";let s="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?s+=f(u):s+="null",l<h.length-1&&(s+=",")}return s+="]",s}function m(h,d){if(typeof h.toJSON=="function")return Ag(h.toJSON(),t,e,void 0);const s=Array.isArray(t)?t.map(String):Object.keys(h);if(s.length===0)return"{}";let l=!0,u="{";for(const c of s){const i=h[c];if(w(c,i)){l?l=!1:u+=",";const a=JSON.stringify(c);u+=`${a}:`,u+=f(i)}}return u+="}",u}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function wk(n){return ja(n)&&!yg(n)?BigInt(n):parseFloat(n)}class Ss{constructor(){co(this,"id",1)}async exec(t,e,r={},f={},g=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 Eu.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:g,transformRequest:[(m,w)=>Ag(m)],transformResponse:[m=>ZC(m,void 0,wk)]})).data.result}catch(m){let w=new Error;throw m.response?(w.name=m.response.data.error.data.class,w.message=m.response.data.error.data.message,w.object=m.response.data.error):m.request?(w.name="Request error",w.message="Request error, no response received"):w=m,w}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e,r,f,g){return this.exec("map_target_to_interface",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_interface(t,e,r,f){return this.exec("unmap_target_from_interface",[t,e],{cmd_only:r,tlm_only:f})}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])}interface_target_enable(t,e,r=!1,f=!1){return this.exec("interface_target_enable",[t,e],{cmd_only:r,tlm_only:f})}interface_target_disable(t,e,r=!1,f=!1){return this.exec("interface_target_disable",[t,e],{cmd_only:r,tlm_only:f})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,e,r,f,g){return this.exec("map_target_to_router",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_router(t,e,r,f){return this.exec("unmap_target_from_router",[t,e],{cmd_only:r,tlm_only:f})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,e,r=!1,f=!1){return this.exec("router_target_enable",[t,e],{cmd_only:r,tlm_only:f})}router_target_disable(t,e,r=!1,f=!1){return this.exec("router_target_disable",[t,e],{cmd_only:r,tlm_only:f})}router_details(t){return this.exec("router_details",[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])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,e,r,f=30){const g=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(g!=null){let m=g.length,w=null;for(let h=0;h<m;h++)w=this.decode_openc3_type(g[h][1]),w!==null&&(g[h][1]=w)}return g}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])}get_tlm_available(t){return this.exec("get_tlm_available",[t])}async get_tlm_values(t,e=30,r=null,f=null,g=null){let m={stale_time:e};r!==null&&(m.cache_timeout=r),f!==null&&(m.start_time=f.toISOString()),g!==null&&(m.end_time=g.toISOString());const w=await this.exec("get_tlm_values",[t],m,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let s=0;s<h;s++)d=this.decode_openc3_type(w[s][0]),d!==null&&(w[s][0]=d)}return w}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let g=null;if(e===void 0)g=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))g=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else g=await this.exec("tlm",[t,e,r],{type:f});let m=this.decode_openc3_type(g);return m!==null&&(g=m),g}async inject_tlm(t,e,r=null,f="CONVERTED"){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,g,m={}){let w=null;for(let h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w=this.encode_openc3_type(f[h]),w!==null&&(f[h]=w));return this.exec(t,[e,r,f],m,g)}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={},g={}){return e===void 0?this.exec("cmd",t,g,f):this._cmd("cmd",t,e,r,f,g)}cmd_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_range_check",t,g,f):this._cmd("cmd_no_range_check",t,e,r,f,g)}cmd_raw(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw",t,g,f):this._cmd("cmd_raw",t,e,r,f,g)}cmd_raw_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,g,f):this._cmd("cmd_raw_no_range_check",t,e,r,f,g)}cmd_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,g,f):this._cmd("cmd_no_hazardous_check",t,e,r,f,g)}cmd_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_checks",t,g,f):this._cmd("cmd_no_checks",t,e,r,f,g)}cmd_raw_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,g,f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f,g)}cmd_raw_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_checks",t,g,f):this._cmd("cmd_raw_no_checks",t,e,r,f,g)}build_cmd(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}build_command(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_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,e){return this.exec("get_setting",[t],e)}get_settings(t,e){return this.exec("get_settings",t,e)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}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(g=>g.toString(16).padStart(2,"0")).join("")}}}Kn("B",Ss);var Sg={exports:{}},_g;function xk(){return _g||(_g=1,function(n,t){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,f){function g(d,s){function l(E,I,z){if(!(E.length<I)){var P=E.slice(0,I),O=E.slice(I),$=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(P),N=0,B=0;if(A&&!A[2]&&(N=I-A[1].length,B=I),$&&!$[2]&&(N||(N=I),B=I+$[1].length),N)return{start:N,end:B};if(A&&A[2]&&A.index>z)return{start:A.index,end:A.index+A[2].length};if($&&$[2])return N=I+$[2].length,{start:N,end:N+$[3].length}}}for(var u=s.column||d.getOption("printMarginColumn"),c=s.allowMerge!=0,i=Math.min(s.startRow,s.endRow),a=Math.max(s.startRow,s.endRow),p=d.session;i<=a;){var b=p.getLine(i);if(b.length>u){var x=l(b,u,5);if(x){var R=/^\s*/.exec(b)[0];p.replace(new w(i,x.start,i,x.end),`
|
|
1401
|
-
`+R)}a++}else if(c&&/\S/.test(b)&&i!=a){var _=p.getLine(i+1);if(_&&/\S/.test(_)){var k=b.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=l(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new w(i,k.length,i+1,_.length-C.length);p.replace(D," "),i--,a--}else k.length<b.length&&p.remove(new w(i,k.length,i,b.length))}}i++}}function m(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var s=d.editor,l=s.selection.cursor;if(l.column<=s.renderer.$printMarginColumn)return;var u=s.session.$undoManager.$lastDelta;g(s,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",m):this.commands.off("afterExec",m)},value:!1}}),r.hardWrap=g}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,f){function g(y){return{row:y.line,column:y.ch}}function m(y){return new Ne(y.row,y.column)}function w(y,T,S){if(T.line===S.line&&T.ch>=S.ch-1){var F=y.getLine(T.line),W=F.charCodeAt(T.ch);55296<=W&&W<=55551&&(S.ch+=1)}return{start:T,end:S}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),We.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",rs),L(y),We.on(y.getInputField(),"paste",s(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",rs),We.off(y.getInputField(),"paste",s(y)),y.state.vim=null,Ar&&clearTimeout(Ar)}function s(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Un.enterInsertMode(y,{},T))}),T.onPasteFn}function l(y,T){return T>=y.firstLine()&&T<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return Aa.test(y)}function a(y){return rn.test(y)}function p(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,T){for(var S=0;S<T.length;S++)if(T[S]==y)return!0;return!1}function R(y,T,S,F,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),
|
|
1402
|
-
`;else if(Bi[S]){var W=
|
|
1403
|
-
`){var q=
|
|
1404
|
-
`;else{if(Bi.hasOwnProperty(ae)){Y=Bi[ae],os(y,Y);continue}Y=Y[0],H.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(Zr.pop(),hn=Zr.length?F:!1,!Zr.length&&
|
|
1405
|
-
`;break;case"<Space>":S=" ";break;default:S=""}return S}function Xe(y,T,S){return function(){for(var F=0;F<S;F++)T(y)}}function Ke(y){return new Ne(y.line,y.ch)}function at(y,T){return y.ch==T.ch&&y.line==T.line}function et(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function lt(y,T){return arguments.length>2&&(T=lt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?y:T}function
|
|
1406
|
-
`);W.pop();for(var H,H=W.pop();W.length>0&&H&&p(H);H=W.pop())S.line--,S.ch=0;H?(S.line--,S.ch=Wt(y,S.line)):S.ch=0}}function Nn(y,T,S){T.ch=0,S.ch=0,S.line++}function Kt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function ln(y,T,S){var F=T.inclusive,W=T.innerWord,H=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||ur(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?Do[0]:Pi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(bn){return/\s/.test(bn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ci(y,Z,!0,H,!0);break}H?Oe=Pi[0]:(Oe=Do[0],Oe(re.charAt(ve))||(Oe=Do[1]))}for(var Le=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Le=we.to,ke=we.line,ae=y.getLine(ke),!ae&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(F){var st=Le,Ze=Z.ch<=Ve&&/\s/.test(re.charAt(Z.ch));if(!Ze)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(st==Le||Ze){for(var tt=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=tt)}}return{start:new Ne(be,Ve),end:new Ne(ke,Le)}}function Dr(y,T,S){var F=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:F,end:F};var W=We.findMatchingTag(y,T)||We.findEnclosingTag(y,T);return!W||!W.open||!W.close?{start:F,end:F}:S?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Kr(y,T,S){at(T,S)||He.jumpList.add(y,T,S)}function Gr(y,T){He.lastCharacterSearch.increment=y,He.lastCharacterSearch.forward=T.forward,He.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Ai(y,T,S,F){var W=Ke(y.getCursor()),H=S?1:-1,q=S?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ae={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:F,reverseSymb:(S?{")":"(","}":"{"}:{"(":")","{":"}"})[F],forward:S,depth:0,curMoveThrough:!1},be=_i[F];if(!be)return W;var ke=$i[be].init,ve=$i[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=H,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=H,ae.lineText=y.getLine(Z)||"",H>0)ae.index=0;else{var we=ae.lineText.length;ae.index=we>0?we-1:0}ae.nextCh=ae.lineText.charAt(ae.index)}ve(ae)&&(W.line=Z,W.ch=ae.index,T--)}return ae.nextCh||ae.curMoveThrough?new Ne(Z,ae.index):W}function ci(y,T,S,F,W){var H=T.line,q=T.ch,Y=y.getLine(H),Z=S?1:-1,re=F?Pi:Do;if(W&&Y==""){if(H+=Z,Y=y.getLine(H),!l(y,H))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var ae=Z>0?Y.length:-1,be=ae,ke=ae;q!=ae;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(q))){for(be=q;q!=ae&&re[we](Y.charAt(q));)q+=Z;if(ke=q,ve=be!=ke,be==T.ch&&H==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:H}}ve||(q+=Z)}if(H+=Z,!l(y,H))return null;Y=y.getLine(H),q=Z>0?0:Y.length}}function Bn(y,T,S,F,W,H){var q=Ke(T),Y=[];(F&&!W||!F&&W)&&S++;for(var Z=!F||!W,re=0;re<S;re++){var ae=ci(y,T,F,H,Z);if(!ae){var be=Wt(y,y.lastLine());Y.push(F?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(ae),T=new Ne(ae.line,F?ae.to-1:ae.from)}var ke=Y.length!=S,ve=Y[0],we=Y.pop();return F&&!W?(!ke&&(ve.from!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):F&&W?new Ne(we.line,we.to-1):!F&&W?(!ke&&(ve.to!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function to(y,T,S,F,W){var H=T,q=new Ne(H.line+S.repeat-1,1/0),Y=y.clipPos(q);return Y.ch--,W||(F.lastHPos=1/0,F.lastHSPos=y.charCoords(Y,"div").left),q}function ui(y,T,S,F,W){for(var H=W||y.getCursor(),q=H.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(H.line);if(Y=_n(q,re,F,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function Ns(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function Yr(y,T,S,F){!x(S,xo)&&!Jt.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(F))}function _n(y,T,S,F,W){var H;return F?(H=T.indexOf(S,y+1),H!=-1):(H=T.lastIndexOf(S,y-1),H!=-1),H}function hi(y,T,S,F,W){function H(Ve){return!/\S/.test(y.getLine(Ve))}function q(Ve,st,Ze){return Ze?H(Ve)!=H(Ve+st):!H(Ve)&&H(Ve+st)}function Y(Ve){F=F>0?1:-1;var st=y.ace.session.getFoldLine(Ve);st&&Ve+F>st.start.row&&Ve+F<st.end.row&&(F=(F>0?st.end.row:st.start.row)-Ve)}var Z=T.line,re=y.firstLine(),ae=y.lastLine(),be,ke,ve=Z;if(F){for(;re<=ve&&ve<=ae&&S>0;)Y(ve),q(ve,F)&&S--,ve+=F;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&q(Z,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Le=H(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||H(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||H(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Jo(y,T,S,F,W){function H(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function q(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&p(we.line[we.pos]);)Oe=we.pos,H(we);return{ln:we.ln,pos:Oe+1}}H(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(!p(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?p(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};H(we)}return we.line=ve,W&&p(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:T.line,pos:T.ch};S>0;)F<0?Z=Y(y,Z.ln,Z.pos,F):Z=q(y,Z.ln,Z.pos,F),S--;return new Ne(Z.ln,Z.pos)}function di(y,T,S,F){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function H(Z,re,ae,be){var Le=Z.getLine(re),ke=Le==="",ve={line:Le,ln:re,pos:ae,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!p(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||p(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var Ve=Le.length-1;Ve>=0;--Ve)if(!p(Le[Ve])){we.pos=Ve;break}return we}function q(Z,re,ae,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:ae,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!p(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!p(Oe[Le])){ve.pos=Le;break}return ve}for(var Y={ln:T.line,pos:T.ch};S>0;)F<0?Y=q(y,Y.ln,Y.pos,F):Y=H(y,Y.ln,Y.pos,F),S--;return new Ne(Y.ln,Y.pos)}function Cn(y,T,S,F){var W=T,H,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(H=y.scanForBracket(new Ne(W.line,W.ch+ae),-1,void 0,{bracketRegex:Y}),q=y.scanForBracket(new Ne(W.line,W.ch+ae),1,void 0,{bracketRegex:Y}),!H||!q)return null;if(H=H.pos,q=q.pos,H.line==q.line&&H.ch>q.ch||H.line>q.line){var be=H;H=q,q=be}return F?q.ch+=1:H.ch+=1,{start:H,end:q}}function hr(y,T,S,F){var W=Ke(T),H=y.getLine(W.line),q=H.split(""),Y,Z,re,ae,be=q.indexOf(S);if(W.ch<be)W.ch=be;else if(be<W.ch&&q[W.ch]==S){var ke=/string/.test(y.getTokenTypeAt(me(T,0,1))),ve=/string/.test(y.getTokenTypeAt(T)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(q[W.ch]==S&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==S&&(Y=re+1);if(Y&&!Z)for(re=Y,ae=q.length;re<ae&&!Z;re++)q[re]==S&&(Z=re);return!Y||!Z?{start:W,end:W}:(F&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function pi(){}function kn(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new pi)}function $n(y){return fi(y,"/")}function br(y){return mo(y,"/")}function fi(y,T){var S=mo(y,T)||[];if(!S.length)return[];var F=[];if(S[0]===0){for(var W=0;W<S.length;W++)typeof S[W]=="number"&&F.push(y.substring(S[W]+1,S[W+1]));return F}}function mo(y,T){T||(T="/");for(var S=!1,F=[],W=0;W<y.length;W++){var H=y.charAt(W);!S&&H==T&&F.push(W),S=!S&&H=="\\"}return F}function vo(y){for(var T="|(){",S="}",F=!1,W=[],H=-1;H<y.length;H++){var q=y.charAt(H)||"",Y=y.charAt(H+1)||"",Z=Y&&T.indexOf(Y)!=-1;F?((q!=="\\"||!Z)&&W.push(q),F=!1):q==="\\"?(F=!0,Y&&S.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(q)):(W.push(q),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function es(y){for(var T=!1,S=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",H=y.charAt(F+1)||"";zi[W+H]?(S.push(zi[W+H]),F++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(H)||H==="$"?S.push("$"):H!=="/"&&H!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),H==="/"&&S.push("\\"))}return S.join("")}function Xr(y){for(var T=new We.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var F=!1;for(var W in kr)if(T.match(W,!0)){F=!0,S.push(kr[W]);break}F||S.push(T.next())}return S.join("")}function gi(y,T,S){var F=He.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=br(y),H,q;if(!W.length)H=y;else{H=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!H)return null;k("pcre")||(H=vo(H)),S&&(T=/^[^A-Z]*$/.test(H));var Z=new RegExp(H,T||q?"im":"m");return Z}function Fr(y){typeof y=="string"&&(y=document.createElement(y));for(var T,S=1;S<arguments.length;S++)if(T=arguments[S])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)y.appendChild(T);else for(var F in T)Object.prototype.hasOwnProperty.call(T,F)&&(F[0]==="$"?y.style[F.slice(1)]=T[F]:y.setAttribute(F,T[F]));return y}function Ot(y,T){var S=Fr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function Mo(y,T){return Fr("div",{$display:"flex"},Fr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Fr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&Fr("span",{$color:"#888"},T))}function wr(y,T){if(Zr.length){T.value||(T.value=""),An=T;return}var S=Mo(T.prefix,T.desc);if(y.openDialog)y.openDialog(S,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var F="";typeof T.prefix!="string"&&T.prefix&&(F+=T.prefix.textContent),T.desc&&(F+=" "+T.desc),T.onClose(prompt(F,""))}}function ce(y,T){if(y instanceof RegExp&&T instanceof RegExp){for(var S=["global","multiline","ignoreCase","source"],F=0;F<S.length;F++){var W=S[F];if(y[W]!==T[W])return!1}return!0}return!1}function ze(y,T,S,F){if(T){var W=kn(y),H=gi(T,!!S,!!F);if(H)return St(y,H),ce(H,W.getQuery())||W.setQuery(H),H}}function Fe(y){if(y.source.charAt(0)=="^")var T=!0;return{token:function(S){if(T&&!S.sol()){S.skipToEnd();return}var F=S.match(y,!1);if(F)return F[0].length==0?(S.next(),"searching"):!S.sol()&&(S.backUp(1),!y.exec(S.next()+F[0]))?(S.next(),null):(S.match(y),"searching");for(;!S.eol()&&(S.next(),!S.match(y,!1)););},query:y}}function St(y,T){clearTimeout(Ar);var S=kn(y);S.highlightTimeout=Ar,Ar=setTimeout(function(){if(y.state.vim){var F=kn(y);F.highlightTimeout=null;var W=F.getOverlay();(!W||T!=W.query)&&(W&&y.removeOverlay(W),W=Fe(T),y.addOverlay(W),y.showMatchesOnScrollbar&&(F.getScrollbarAnnotate()&&F.getScrollbarAnnotate().clear(),F.setScrollbarAnnotate(y.showMatchesOnScrollbar(T))),F.setOverlay(W))}},50)}function Gt(y,T,S,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),H=y.getSearchCursor(S,W),q=0;q<F;q++){var Y=H.find(T);if(q==0&&Y&&at(H.from(),W)){var Z=T?H.from():H.to();Y=H.find(T),Y&&!Y[0]&&at(H.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=H.find(T))}if(!Y&&(H=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!H.find(T)))return}return H.from()})}function Ht(y,T,S,F,W){return F===void 0&&(F=1),y.operation(function(){var H=y.getCursor(),q=y.getSearchCursor(S,H),Y=q.find(!T);!W.visualMode&&Y&&at(q.from(),H)&&q.find(!T);for(var Z=0;Z<F;Z++)if(Y=q.find(T),!Y&&(q=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function xr(y){var T=kn(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(kn(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function dr(y,T,S){return typeof y!="number"&&(y=y.line),T instanceof Array?x(y,T):typeof S=="number"?y>=T&&y<=S:y==T}function zn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Cr(y,T,S){if(S=="'"||S=="`")return He.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return mn(y);var F=T.marks[S];return F&&F.find()}function mn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Ke(T[S].changes[0].to)}function no(y,T,S,F,W,H,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var Ze=y.getRange(H.from(),H.to()),tt=Ze.replace(q,Y),bn=H.to().line;H.replace(tt),Ve=H.to().line,W+=Ve-bn,st=Ve<bn}function be(){var Ze=Le&&Ke(H.to()),tt=H.findNext();return tt&&!tt[0]&&Ze&&at(H.from(),Ze)&&(tt=H.findNext()),tt}function ke(){for(;be()&&dr(H.from(),F,W);)if(!(!S&&H.from().line==Ve&&!st)){y.scrollIntoView(H.from(),30),y.setSelection(H.from(),H.to()),Le=H.from(),Oe=!1;return}Oe=!0}function ve(Ze){if(Ze&&Ze(),y.focus(),Le){y.setCursor(Le);var tt=y.state.vim;tt.exMode=!1,tt.lastHPos=tt.lastHSPos=Le.ch}Z&&Z()}function we(Ze,tt,bn){We.e_stop(Ze);var ct=z(Ze);switch(ct){case"y":ae(),ke();break;case"n":ke();break;case"a":var Tn=Z;Z=void 0,y.operation(re),Z=Tn;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(bn)}return Oe&&ve(bn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,Ve,st;if(ke(),Oe){Ot(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}wr(y,{prefix:Fr("span","replace with ",Fr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Pr(y,T){var S=y.state.vim,F=He.macroModeState,W=He.registerController.getRegister("."),H=F.isPlaying,q=F.lastInsertModeChanges;H||(y.off("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,We.off(y.getInputField(),"keydown",Ws)),!H&&S.insertModeRepeat>1&&(wa(y,S,S.insertModeRepeat-1,!0),S.lastEditInputState.repeatOverride=S.insertModeRepeat),delete S.insertModeRepeat,S.insertMode=!1,T||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(q.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&pr(F)}function ts(y){Dn.unshift(y)}function Ds(y,T,S,F,W){var H={keys:y,type:T};H[T]=S,H[T+"Args"]=F;for(var q in W)H[q]=W[q];ts(H)}function Fs(y,T,S,F){var W=He.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Ir.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var H=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var Z=H[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),vt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;He.macroModeState.lastInsertModeChanges.changes=be,ss(y,be,1),Pr(y)}S.isPlaying=!1}function ns(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushText(T)}}function pr(y){if(!y.isPlaying){var T=y.latestRegister,S=He.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Ps(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushSearchQuery&&F.pushSearchQuery(T)}}function Io(y,T){var S=He.macroModeState,F=S.lastInsertModeChanges;if(!S.isPlaying)for(var W=y.state.vim;T;){if(F.expectCursorActivityForChange=!0,F.ignoreCount>1)F.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var H=y.listSelections().length;H>1&&(F.ignoreCount=H);var q=T.text.join(`
|
|
1407
|
-
`);if(F.maybeReset&&(F.changes=[],F.maybeReset=!1),q)if(y.state.overwrite&&!/\n/.test(q))F.changes.push([q]);else{if(q.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<q.length&&(F.changes.push([q,re]),q="")}}q&&F.changes.push(q)}}T=T.next}}function rs(y){var T=y.state.vim;if(T.insertMode){var S=He.macroModeState;if(S.isPlaying)return;var F=S.lastInsertModeChanges;F.expectCursorActivityForChange?F.expectCursorActivityForChange=!1:(F.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||is(y,T)}function is(y,T,S){var F=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?gn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var H=et(W,F)?0:-1,q=et(W,F)?-1:0;W=me(W,0,H),F=me(F,0,q),T.sel={anchor:F,head:W},Yr(y,T,"<",lt(W,F)),Yr(y,T,">",
|
|
1408
|
-
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=Ro.stopEvent,We.keyName=function(y){var T=hl[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Ro.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},We.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},We.lookupKey=function y(T,S,F){S||(S="default"),typeof S=="string"&&(S=We.keyMap[S]||We.keyMap.default);var W=typeof S=="function"?S(T):S[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&F(W))return"handled";if(S.fallthrough){if(!Array.isArray(S.fallthrough))return y(T,S.fallthrough,F);for(var H=0;H<S.fallthrough.length;H++){var q=y(T,S.fallthrough[H],F);if(q)return q}}},We.findMatchingTag=function(y,T){return y.findMatchingTag(T)},We.findEnclosingTag=function(y,T){},We.signal=function(y,T,S){return y._signal(T,S)},We.on=Ro.addListener,We.off=Ro.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(Ca.lastIndex=0,Ca.test(y))},(function(){xa.implement(We.prototype,
|
|
1401
|
+
`+R)}a++}else if(c&&/\S/.test(b)&&i!=a){var _=p.getLine(i+1);if(_&&/\S/.test(_)){var k=b.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=l(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new w(i,k.length,i+1,_.length-C.length);p.replace(D," "),i--,a--}else k.length<b.length&&p.remove(new w(i,k.length,i,b.length))}}i++}}function m(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var s=d.editor,l=s.selection.cursor;if(l.column<=s.renderer.$printMarginColumn)return;var u=s.session.$undoManager.$lastDelta;g(s,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",m):this.commands.off("afterExec",m)},value:!1}}),r.hardWrap=g}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,f){function g(y){return{row:y.line,column:y.ch}}function m(y){return new Ne(y.row,y.column)}function w(y,T,S){if(T.line===S.line&&T.ch>=S.ch-1){var F=y.getLine(T.line),W=F.charCodeAt(T.ch);55296<=W&&W<=55551&&(S.ch+=1)}return{start:T,end:S}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),We.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",rs),L(y),We.on(y.getInputField(),"paste",s(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",rs),We.off(y.getInputField(),"paste",s(y)),y.state.vim=null,Ar&&clearTimeout(Ar)}function s(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Un.enterInsertMode(y,{},T))}),T.onPasteFn}function l(y,T){return T>=y.firstLine()&&T<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return Aa.test(y)}function a(y){return rn.test(y)}function p(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,T){for(var S=0;S<T.length;S++)if(T[S]==y)return!0;return!1}function R(y,T,S,F,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),Ut[y]={type:S,defaultValue:T,callback:W},F)for(var H=0;H<F.length;H++)Ut[F[H]]=Ut[y];T&&_(y,T)}function _(y,T,S,F){var W=Ut[y];F=F||{};var H=F.scope;if(!W)return new Error("Unknown option: "+y);if(W.type=="boolean"){if(T&&T!==!0)return new Error("Invalid argument: "+y+"="+T);T!==!1&&(T=!0)}W.callback?(H!=="local"&&W.callback(T,void 0),H!=="global"&&S&&W.callback(T,S)):(H!=="local"&&(W.value=W.type=="boolean"?!!T:T),H!=="global"&&S&&(S.state.vim.options[y]={value:T}))}function k(y,T,S){var F=Ut[y];S=S||{};var W=S.scope;if(!F)return new Error("Unknown option: "+y);if(F.callback){var H=T&&F.callback(void 0,T);return W!=="global"&&H!==void 0?H:W!=="local"?F.callback():void 0}var H=W!=="global"&&T&&T.state.vim.options[y];return(H||W!=="local"&&F||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Hn()}function L(y){return y.state.vim||(y.state.vim={inputState:new $,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),y.state.vim}function D(){He={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Wi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in Ut){var T=Ut[y];T.value=T.defaultValue}}function E(y){function T(Y){typeof Y=="string"?Sn.value=Y:Sn=null}if(y[0]=="<"){var S=y.toLowerCase().slice(1,-1),F=S.split("-");if(S=F.pop()||"",S=="lt")y="<";else if(S=="space")y=" ";else if(S=="cr")y=`
|
|
1402
|
+
`;else if(Bi[S]){var W=Sn.value,H={key:Bi[S],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};Sn.onKeyDown&&Sn.onKeyDown(H,Sn.value,T),Sn&&Sn.onKeyUp&&Sn.onKeyUp(H,Sn.value,T);return}}if(y==`
|
|
1403
|
+
`){var q=Sn;Sn=null,q.onClose&&q.onClose(q.value)}else Sn.value=(Sn.value||"")+y}function I(y,T,S){var F=hn;if(S){if(Zr.indexOf(S)!=-1)return;Zr.push(S),hn=S.noremap!=0}try{for(var W=L(y),H=/<(?:[CSMA]-)*\w+>|./gi,q;q=H.exec(T);){var Y=q[0],Z=W.insertMode;if(Sn){E(Y);continue}var re=vt.handleKey(y,Y,"mapping");if(!re&&Z&&W.insertMode){if(Y[0]=="<"){var ae=Y.toLowerCase().slice(1,-1),be=ae.split("-");if(ae=be.pop()||"",ae=="lt")Y="<";else if(ae=="space")Y=" ";else if(ae=="cr")Y=`
|
|
1404
|
+
`;else{if(Bi.hasOwnProperty(ae)){Y=Bi[ae],os(y,Y);continue}Y=Y[0],H.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(Zr.pop(),hn=Zr.length?F:!1,!Zr.length&&Sn){var ke=Sn;Sn=null,wr(y,ke)}}}function z(y,T){var S=y.key;if(!Qr[S]){S.length>1&&S[0]=="n"&&(S=S.replace("Numpad","")),S=ir[S]||S;var F="";if(y.ctrlKey&&(F+="C-"),y.altKey&&(F+="A-"),y.metaKey&&(F+="M-"),We.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(F=F.slice(2)),(F||S.length>1)&&y.shiftKey&&(F+="S-"),T&&!T.expectLiteralNext&&S.length==1){if(Qn.keymap&&S in Qn.keymap)(Qn.remapCtrl!=0||!F)&&(S=Qn.keymap[S]);else if(S.charCodeAt(0)>255){var W=y.code&&y.code.slice(-1)||"";y.shiftKey||(W=W.toLowerCase()),W&&(S=W)}}return F+=S,F.length>1&&(F="<"+F+">"),F}}function P(y,T){Qn.string!==y&&(Qn=O(y)),Qn.remapCtrl=T}function O(y){function T(F){return F.split(/\\?(.)/).filter(Boolean)}var S={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(F){if(F){var W=F.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var H=T(W[1]),q=T(W[2]);if(H.length!==q.length)return;for(var Y=0;Y<H.length;++Y)S[H[Y]]=q[Y]}else if(W.length==1){var Z=T(F);if(Z.length%2!==0)return;for(var Y=0;Y<Z.length;Y+=2)S[Z[Y]]=Z[Y+1]}}}),{keymap:S,string:y}):{keymap:S,string:""}}function $(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function A(y,T){y.state.vim.inputState=new $,y.state.vim.expectLiteralNext=!1,We.signal(y,"vim-command-done",T)}function N(){this.removed=[],this.inserted=""}function B(y,T,S){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!T,this.blockwise=!!S}function U(y,T){var S=He.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");S[y]=T,nn.push(y)}function K(y){this.registers=y,this.unnamedRegister=y['"']=new B,y["."]=new B,y[":"]=new B,y["/"]=new B,y["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function J(y,T){mi[y]=T}function he(y,T){for(var S=[],F=0;F<T;F++)S.push(y);return S}function ne(y,T){cs[y]=T}function le(y,T){Un[y]=T}function se(y,T,S){var F=y.state.vim,W=F.insertMode||F.visualMode,H=Math.min(Math.max(y.firstLine(),T.line),y.lastLine()),q=y.getLine(H),Y=q.length-1+ +!!W,Z=Math.min(Math.max(0,T.ch),Y),re=q.charCodeAt(Z);if(56320<=re&&re<=57343){var ae=1;S&&S.line==H&&S.ch>Z&&(ae=-1),Z+=ae,Z>Y&&(Z-=2)}return new Ne(H,Z)}function de(y){var T={};for(var S in y)y.hasOwnProperty(S)&&(T[S]=y[S]);return T}function me(y,T,S){return typeof T=="object"&&(S=T.ch,T=T.line),new Ne(y.line+T,y.ch+S)}function _e(y,T,S,F){F.operator&&(S="operatorPending");for(var W,H=[],q=[],Y=hn?T.length-No:0,Z=Y;Z<T.length;Z++){var re=T[Z];S=="insert"&&re.context!="insert"||re.context&&re.context!=S||F.operator&&re.type=="action"||!(W=Te(y,re.keys))||(W=="partial"&&H.push(re),W=="full"&&q.push(re))}return{partial:H.length&&H,full:q.length&&q}}function Te(y,T){var S=T.slice(-11)=="<character>",F=T.slice(-10)=="<register>";if(S||F){var W=T.length-(S?11:10),H=y.slice(0,W),q=T.slice(0,W);return H==q&&y.length>W?"full":q.indexOf(H)==0?"partial":!1}return y==T?"full":T.indexOf(y)==0?"partial":!1}function Me(y){var T=/^.*(<[^>]+>)$/.exec(y),S=T?T[1]:y.slice(-1);if(S.length>1)switch(S){case"<CR>":S=`
|
|
1405
|
+
`;break;case"<Space>":S=" ";break;default:S=""}return S}function Xe(y,T,S){return function(){for(var F=0;F<S;F++)T(y)}}function Ke(y){return new Ne(y.line,y.ch)}function at(y,T){return y.ch==T.ch&&y.line==T.line}function et(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function lt(y,T){return arguments.length>2&&(T=lt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?y:T}function Xt(y,T){return arguments.length>2&&(T=Xt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?T:y}function xn(y,T,S){var F=et(y,T),W=et(T,S);return F&&W}function Wt(y,T){return y.getLine(T).length}function vr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function un(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function On(y,T,S){var F=Wt(y,T),W=new Array(S-F+1).join(" ");y.setCursor(new Ne(T,F)),y.replaceRange(W,y.getCursor())}function Zn(y,T){var S=[],F=y.listSelections(),W=Ke(y.clipPos(T)),H=!at(T,W),q=y.getCursor("head"),Y=mt(F,q),Z=at(F[Y].head,F[Y].anchor),re=F.length-1,ae=re-Y>Y?re:0,be=F[ae].anchor,ke=Math.min(be.line,W.line),ve=Math.max(be.line,W.line),we=be.ch,Oe=W.ch,Le=F[ae].head.ch-we,Ve=Oe-we;Le>0&&Ve<=0?(we++,H||Oe--):Le<0&&Ve>=0?(we--,Z||Oe++):Le<0&&Ve==-1&&(we--,Oe++);for(var st=ke;st<=ve;st++){var Ze={anchor:new Ne(st,we),head:new Ne(st,Oe)};S.push(Ze)}return y.setSelections(S),T.ch=Oe,be.ch=we,be}function Tr(y,T,S){for(var F=[],W=0;W<S;W++){var H=me(T,W,0);F.push({anchor:H,head:H})}y.setSelections(F,0)}function mt(y,T,S){for(var F=0;F<y.length;F++){var W=at(y[F].anchor,T),H=at(y[F].head,T);if(W||H)return F}return-1}function je(y,T){var S=T.lastSelection,F=function(){var H=y.listSelections(),q=H[0],Y=H[H.length-1],Z=et(q.anchor,q.head)?q.anchor:q.head,re=et(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var H=y.getCursor(),q=y.getCursor(),Y=S.visualBlock;if(Y){var Z=Y.width,re=Y.height;q=new Ne(H.line+re,H.ch+Z);for(var ae=[],be=H.line;be<q.line;be++){var ke=new Ne(be,H.ch),ve=new Ne(be,q.ch),we={anchor:ke,head:ve};ae.push(we)}y.setSelections(ae)}else{var Oe=S.anchorMark.find(),Le=S.headMark.find(),Ve=Le.line-Oe.line,st=Le.ch-Oe.ch;q={line:q.line+Ve,ch:Ve?q.ch:st+q.ch},S.visualLine&&(H=new Ne(H.line,0),q=new Ne(q.line,Wt(y,q.line))),y.setSelection(H,q)}return[H,q]};return T.visualMode?F():W()}function Lt(y,T){var S=T.sel.anchor,F=T.sel.head;T.lastPastedText&&(F=y.posFromIndex(y.indexFromPos(S)+T.lastPastedText.length),T.lastPastedText=null),T.lastSelection={anchorMark:y.setBookmark(S),headMark:y.setBookmark(F),anchor:Ke(S),head:Ke(F),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function Ht(y,T,S,F){var W=y.state.vim.sel,H=F?T:W.head,q=F?T:W.anchor,Y;return et(S,T)&&(Y=S,S=T,T=Y),et(H,q)?(H=lt(T,H),q=Xt(q,S)):(q=lt(T,q),H=Xt(H,S),H=me(H,0,-1),H.ch==-1&&H.line!=y.firstLine()&&(H=new Ne(H.line-1,Wt(y,H.line-1)))),[q,H]}function $n(y,T,W){var F=y.state.vim;T=T||F.sel;var W=W||F.visualLine?"line":F.visualBlock?"block":"char",H=yr(y,T,W);y.setSelections(H.ranges,H.primary)}function yr(y,T,S,F){var W=Ke(T.head),H=Ke(T.anchor);if(S=="char"){var q=!F&&!et(T.head,T.anchor)?1:0,Y=et(T.head,T.anchor)?1:0;return W=me(T.head,0,q),H=me(T.anchor,0,Y),{ranges:[{anchor:H,head:W}],primary:0}}if(S=="line"){if(et(T.head,T.anchor))W.ch=0,H.ch=Wt(y,H.line);else{H.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Wt(y,W.line)}return{ranges:[{anchor:H,head:W}],primary:0}}if(S=="block"){var re=Math.min(H.line,W.line),ae=H.ch,be=Math.max(H.line,W.line),ke=W.ch;ae<ke?ke+=1:ae+=1;for(var ve=be-re+1,we=W.line==re?0:ve-1,Oe=[],Le=0;Le<ve;Le++)Oe.push({anchor:new Ne(re+Le,ae),head:new Ne(re+Le,ke)});return{ranges:Oe,primary:we}}}function ur(y){var T=y.getCursor("head");return y.getSelection().length==1&&(T=lt(T,y.getCursor("anchor"))),T}function gn(y,T){var S=y.state.vim;T!==!1&&y.setCursor(se(y,S.sel.head)),Lt(y,S),S.visualMode=!1,S.visualLine=!1,S.visualBlock=!1,S.insertMode||We.signal(y,"vim-mode-change",{mode:"normal"})}function Wn(y,T,S){var F=y.getRange(T,S);if(/\n\s*$/.test(F)){var W=F.split(`
|
|
1406
|
+
`);W.pop();for(var H,H=W.pop();W.length>0&&H&&p(H);H=W.pop())S.line--,S.ch=0;H?(S.line--,S.ch=Wt(y,S.line)):S.ch=0}}function Nn(y,T,S){T.ch=0,S.ch=0,S.line++}function Gt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function ln(y,T,S){var F=T.inclusive,W=T.innerWord,H=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||ur(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?Do[0]:Pi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(bn){return/\s/.test(bn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ci(y,Z,!0,H,!0);break}H?Oe=Pi[0]:(Oe=Do[0],Oe(re.charAt(ve))||(Oe=Do[1]))}for(var Le=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Le=we.to,ke=we.line,ae=y.getLine(ke),!ae&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(F){var st=Le,Ze=Z.ch<=Ve&&/\s/.test(re.charAt(Z.ch));if(!Ze)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(st==Le||Ze){for(var tt=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=tt)}}return{start:new Ne(be,Ve),end:new Ne(ke,Le)}}function Dr(y,T,S){var F=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:F,end:F};var W=We.findMatchingTag(y,T)||We.findEnclosingTag(y,T);return!W||!W.open||!W.close?{start:F,end:F}:S?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Kr(y,T,S){at(T,S)||He.jumpList.add(y,T,S)}function Gr(y,T){He.lastCharacterSearch.increment=y,He.lastCharacterSearch.forward=T.forward,He.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Ai(y,T,S,F){var W=Ke(y.getCursor()),H=S?1:-1,q=S?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ae={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:F,reverseSymb:(S?{")":"(","}":"{"}:{"(":")","{":"}"})[F],forward:S,depth:0,curMoveThrough:!1},be=_i[F];if(!be)return W;var ke=$i[be].init,ve=$i[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=H,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=H,ae.lineText=y.getLine(Z)||"",H>0)ae.index=0;else{var we=ae.lineText.length;ae.index=we>0?we-1:0}ae.nextCh=ae.lineText.charAt(ae.index)}ve(ae)&&(W.line=Z,W.ch=ae.index,T--)}return ae.nextCh||ae.curMoveThrough?new Ne(Z,ae.index):W}function ci(y,T,S,F,W){var H=T.line,q=T.ch,Y=y.getLine(H),Z=S?1:-1,re=F?Pi:Do;if(W&&Y==""){if(H+=Z,Y=y.getLine(H),!l(y,H))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var ae=Z>0?Y.length:-1,be=ae,ke=ae;q!=ae;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(q))){for(be=q;q!=ae&&re[we](Y.charAt(q));)q+=Z;if(ke=q,ve=be!=ke,be==T.ch&&H==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:H}}ve||(q+=Z)}if(H+=Z,!l(y,H))return null;Y=y.getLine(H),q=Z>0?0:Y.length}}function Bn(y,T,S,F,W,H){var q=Ke(T),Y=[];(F&&!W||!F&&W)&&S++;for(var Z=!F||!W,re=0;re<S;re++){var ae=ci(y,T,F,H,Z);if(!ae){var be=Wt(y,y.lastLine());Y.push(F?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(ae),T=new Ne(ae.line,F?ae.to-1:ae.from)}var ke=Y.length!=S,ve=Y[0],we=Y.pop();return F&&!W?(!ke&&(ve.from!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):F&&W?new Ne(we.line,we.to-1):!F&&W?(!ke&&(ve.to!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function to(y,T,S,F,W){var H=T,q=new Ne(H.line+S.repeat-1,1/0),Y=y.clipPos(q);return Y.ch--,W||(F.lastHPos=1/0,F.lastHSPos=y.charCoords(Y,"div").left),q}function ui(y,T,S,F,W){for(var H=W||y.getCursor(),q=H.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(H.line);if(Y=Cn(q,re,F,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function Ns(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function Yr(y,T,S,F){!x(S,Co)&&!Jt.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(F))}function Cn(y,T,S,F,W){var H;return F?(H=T.indexOf(S,y+1),H!=-1):(H=T.lastIndexOf(S,y-1),H!=-1),H}function hi(y,T,S,F,W){function H(Ve){return!/\S/.test(y.getLine(Ve))}function q(Ve,st,Ze){return Ze?H(Ve)!=H(Ve+st):!H(Ve)&&H(Ve+st)}function Y(Ve){F=F>0?1:-1;var st=y.ace.session.getFoldLine(Ve);st&&Ve+F>st.start.row&&Ve+F<st.end.row&&(F=(F>0?st.end.row:st.start.row)-Ve)}var Z=T.line,re=y.firstLine(),ae=y.lastLine(),be,ke,ve=Z;if(F){for(;re<=ve&&ve<=ae&&S>0;)Y(ve),q(ve,F)&&S--,ve+=F;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&q(Z,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Le=H(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||H(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||H(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Jo(y,T,S,F,W){function H(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function q(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&p(we.line[we.pos]);)Oe=we.pos,H(we);return{ln:we.ln,pos:Oe+1}}H(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(!p(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?p(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};H(we)}return we.line=ve,W&&p(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:T.line,pos:T.ch};S>0;)F<0?Z=Y(y,Z.ln,Z.pos,F):Z=q(y,Z.ln,Z.pos,F),S--;return new Ne(Z.ln,Z.pos)}function di(y,T,S,F){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function H(Z,re,ae,be){var Le=Z.getLine(re),ke=Le==="",ve={line:Le,ln:re,pos:ae,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!p(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||p(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var Ve=Le.length-1;Ve>=0;--Ve)if(!p(Le[Ve])){we.pos=Ve;break}return we}function q(Z,re,ae,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:ae,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!p(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!p(Oe[Le])){ve.pos=Le;break}return ve}for(var Y={ln:T.line,pos:T.ch};S>0;)F<0?Y=q(y,Y.ln,Y.pos,F):Y=H(y,Y.ln,Y.pos,F),S--;return new Ne(Y.ln,Y.pos)}function kn(y,T,S,F){var W=T,H,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(H=y.scanForBracket(new Ne(W.line,W.ch+ae),-1,void 0,{bracketRegex:Y}),q=y.scanForBracket(new Ne(W.line,W.ch+ae),1,void 0,{bracketRegex:Y}),!H||!q)return null;if(H=H.pos,q=q.pos,H.line==q.line&&H.ch>q.ch||H.line>q.line){var be=H;H=q,q=be}return F?q.ch+=1:H.ch+=1,{start:H,end:q}}function hr(y,T,S,F){var W=Ke(T),H=y.getLine(W.line),q=H.split(""),Y,Z,re,ae,be=q.indexOf(S);if(W.ch<be)W.ch=be;else if(be<W.ch&&q[W.ch]==S){var ke=/string/.test(y.getTokenTypeAt(me(T,0,1))),ve=/string/.test(y.getTokenTypeAt(T)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(q[W.ch]==S&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==S&&(Y=re+1);if(Y&&!Z)for(re=Y,ae=q.length;re<ae&&!Z;re++)q[re]==S&&(Z=re);return!Y||!Z?{start:W,end:W}:(F&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function pi(){}function An(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new pi)}function Tn(y){return fi(y,"/")}function br(y){return vo(y,"/")}function fi(y,T){var S=vo(y,T)||[];if(!S.length)return[];var F=[];if(S[0]===0){for(var W=0;W<S.length;W++)typeof S[W]=="number"&&F.push(y.substring(S[W]+1,S[W+1]));return F}}function vo(y,T){T||(T="/");for(var S=!1,F=[],W=0;W<y.length;W++){var H=y.charAt(W);!S&&H==T&&F.push(W),S=!S&&H=="\\"}return F}function yo(y){for(var T="|(){",S="}",F=!1,W=[],H=-1;H<y.length;H++){var q=y.charAt(H)||"",Y=y.charAt(H+1)||"",Z=Y&&T.indexOf(Y)!=-1;F?((q!=="\\"||!Z)&&W.push(q),F=!1):q==="\\"?(F=!0,Y&&S.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(q)):(W.push(q),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function es(y){for(var T=!1,S=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",H=y.charAt(F+1)||"";zi[W+H]?(S.push(zi[W+H]),F++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(H)||H==="$"?S.push("$"):H!=="/"&&H!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),H==="/"&&S.push("\\"))}return S.join("")}function Xr(y){for(var T=new We.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var F=!1;for(var W in kr)if(T.match(W,!0)){F=!0,S.push(kr[W]);break}F||S.push(T.next())}return S.join("")}function gi(y,T,S){var F=He.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=br(y),H,q;if(!W.length)H=y;else{H=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!H)return null;k("pcre")||(H=yo(H)),S&&(T=/^[^A-Z]*$/.test(H));var Z=new RegExp(H,T||q?"im":"m");return Z}function Fr(y){typeof y=="string"&&(y=document.createElement(y));for(var T,S=1;S<arguments.length;S++)if(T=arguments[S])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)y.appendChild(T);else for(var F in T)Object.prototype.hasOwnProperty.call(T,F)&&(F[0]==="$"?y.style[F.slice(1)]=T[F]:y.setAttribute(F,T[F]));return y}function Ot(y,T){var S=Fr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function Mo(y,T){return Fr("div",{$display:"flex"},Fr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Fr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&Fr("span",{$color:"#888"},T))}function wr(y,T){if(Zr.length){T.value||(T.value=""),Sn=T;return}var S=Mo(T.prefix,T.desc);if(y.openDialog)y.openDialog(S,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var F="";typeof T.prefix!="string"&&T.prefix&&(F+=T.prefix.textContent),T.desc&&(F+=" "+T.desc),T.onClose(prompt(F,""))}}function ce(y,T){if(y instanceof RegExp&&T instanceof RegExp){for(var S=["global","multiline","ignoreCase","source"],F=0;F<S.length;F++){var W=S[F];if(y[W]!==T[W])return!1}return!0}return!1}function ze(y,T,S,F){if(T){var W=An(y),H=gi(T,!!S,!!F);if(H)return St(y,H),ce(H,W.getQuery())||W.setQuery(H),H}}function Fe(y){if(y.source.charAt(0)=="^")var T=!0;return{token:function(S){if(T&&!S.sol()){S.skipToEnd();return}var F=S.match(y,!1);if(F)return F[0].length==0?(S.next(),"searching"):!S.sol()&&(S.backUp(1),!y.exec(S.next()+F[0]))?(S.next(),null):(S.match(y),"searching");for(;!S.eol()&&(S.next(),!S.match(y,!1)););},query:y}}function St(y,T){clearTimeout(Ar);var S=An(y);S.highlightTimeout=Ar,Ar=setTimeout(function(){if(y.state.vim){var F=An(y);F.highlightTimeout=null;var W=F.getOverlay();(!W||T!=W.query)&&(W&&y.removeOverlay(W),W=Fe(T),y.addOverlay(W),y.showMatchesOnScrollbar&&(F.getScrollbarAnnotate()&&F.getScrollbarAnnotate().clear(),F.setScrollbarAnnotate(y.showMatchesOnScrollbar(T))),F.setOverlay(W))}},50)}function Yt(y,T,S,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),H=y.getSearchCursor(S,W),q=0;q<F;q++){var Y=H.find(T);if(q==0&&Y&&at(H.from(),W)){var Z=T?H.from():H.to();Y=H.find(T),Y&&!Y[0]&&at(H.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=H.find(T))}if(!Y&&(H=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!H.find(T)))return}return H.from()})}function jt(y,T,S,F,W){return F===void 0&&(F=1),y.operation(function(){var H=y.getCursor(),q=y.getSearchCursor(S,H),Y=q.find(!T);!W.visualMode&&Y&&at(q.from(),H)&&q.find(!T);for(var Z=0;Z<F;Z++)if(Y=q.find(T),!Y&&(q=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function xr(y){var T=An(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(An(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function dr(y,T,S){return typeof y!="number"&&(y=y.line),T instanceof Array?x(y,T):typeof S=="number"?y>=T&&y<=S:y==T}function zn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Cr(y,T,S){if(S=="'"||S=="`")return He.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return mn(y);var F=T.marks[S];return F&&F.find()}function mn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Ke(T[S].changes[0].to)}function no(y,T,S,F,W,H,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var Ze=y.getRange(H.from(),H.to()),tt=Ze.replace(q,Y),bn=H.to().line;H.replace(tt),Ve=H.to().line,W+=Ve-bn,st=Ve<bn}function be(){var Ze=Le&&Ke(H.to()),tt=H.findNext();return tt&&!tt[0]&&Ze&&at(H.from(),Ze)&&(tt=H.findNext()),tt}function ke(){for(;be()&&dr(H.from(),F,W);)if(!(!S&&H.from().line==Ve&&!st)){y.scrollIntoView(H.from(),30),y.setSelection(H.from(),H.to()),Le=H.from(),Oe=!1;return}Oe=!0}function ve(Ze){if(Ze&&Ze(),y.focus(),Le){y.setCursor(Le);var tt=y.state.vim;tt.exMode=!1,tt.lastHPos=tt.lastHSPos=Le.ch}Z&&Z()}function we(Ze,tt,bn){We.e_stop(Ze);var ct=z(Ze);switch(ct){case"y":ae(),ke();break;case"n":ke();break;case"a":var Mn=Z;Z=void 0,y.operation(re),Z=Mn;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(bn)}return Oe&&ve(bn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,Ve,st;if(ke(),Oe){Ot(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}wr(y,{prefix:Fr("span","replace with ",Fr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Pr(y,T){var S=y.state.vim,F=He.macroModeState,W=He.registerController.getRegister("."),H=F.isPlaying,q=F.lastInsertModeChanges;H||(y.off("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,We.off(y.getInputField(),"keydown",Ws)),!H&&S.insertModeRepeat>1&&(wa(y,S,S.insertModeRepeat-1,!0),S.lastEditInputState.repeatOverride=S.insertModeRepeat),delete S.insertModeRepeat,S.insertMode=!1,T||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(q.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&pr(F)}function ts(y){Dn.unshift(y)}function Ds(y,T,S,F,W){var H={keys:y,type:T};H[T]=S,H[T+"Args"]=F;for(var q in W)H[q]=W[q];ts(H)}function Fs(y,T,S,F){var W=He.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Ir.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var H=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var Z=H[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),vt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;He.macroModeState.lastInsertModeChanges.changes=be,ss(y,be,1),Pr(y)}S.isPlaying=!1}function ns(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushText(T)}}function pr(y){if(!y.isPlaying){var T=y.latestRegister,S=He.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Ps(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushSearchQuery&&F.pushSearchQuery(T)}}function Io(y,T){var S=He.macroModeState,F=S.lastInsertModeChanges;if(!S.isPlaying)for(var W=y.state.vim;T;){if(F.expectCursorActivityForChange=!0,F.ignoreCount>1)F.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var H=y.listSelections().length;H>1&&(F.ignoreCount=H);var q=T.text.join(`
|
|
1407
|
+
`);if(F.maybeReset&&(F.changes=[],F.maybeReset=!1),q)if(y.state.overwrite&&!/\n/.test(q))F.changes.push([q]);else{if(q.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<q.length&&(F.changes.push([q,re]),q="")}}q&&F.changes.push(q)}}T=T.next}}function rs(y){var T=y.state.vim;if(T.insertMode){var S=He.macroModeState;if(S.isPlaying)return;var F=S.lastInsertModeChanges;F.expectCursorActivityForChange?F.expectCursorActivityForChange=!1:(F.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||is(y,T)}function is(y,T,S){var F=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?gn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var H=et(W,F)?0:-1,q=et(W,F)?-1:0;W=me(W,0,H),F=me(F,0,q),T.sel={anchor:F,head:W},Yr(y,T,"<",lt(W,F)),Yr(y,T,">",Xt(W,F))}else!T.insertMode&&!S&&(T.lastHPos=y.getCursor().ch)}function bo(y,T){this.keyName=y,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Ws(y){var T=He.macroModeState,S=T.lastInsertModeChanges,F=We.keyName?We.keyName(y):y.key;F&&(F.indexOf("Delete")!=-1||F.indexOf("Backspace")!=-1)&&(S.maybeReset&&(S.changes=[],S.maybeReset=!1),S.changes.push(new bo(F,y)))}function wa(y,T,S,F){function W(){Y?jn.processAction(y,T,T.lastEditActionCommand):jn.evalInput(y,T)}function H(ae){if(q.lastInsertModeChanges.changes.length>0){ae=T.lastEditActionCommand?ae:1;var be=q.lastInsertModeChanges;ss(y,be.changes,ae)}}var q=He.macroModeState;q.isPlaying=!0;var Y=!!T.lastEditActionCommand,Z=T.inputState;if(T.inputState=T.lastEditInputState,Y&&T.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<S;re++)W(),H(1);else F||W(),H(S);T.inputState=Z,T.insertMode&&!F&&Pr(y),q.isPlaying=!1}function os(y,T){We.lookupKey(T,"vim-insert",function(S){return typeof S=="string"?We.commands[S](y):S(y),!0})}function ss(y,T,S){var F=y.getCursor("head"),W=He.macroModeState.lastInsertModeChanges.visualBlock;W&&(Tr(y,F,W+1),S=y.listSelections().length,y.setCursor(F));for(var H=0;H<S;H++){W&&y.setCursor(me(F,H,0));for(var q=0;q<T.length;q++){var Y=T[q];if(Y instanceof bo)os(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(F,0,1))}function Bs(y,T,S,F){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=Wr[T]||T;var W="";if(S.ctrlKey&&(W+="C-"),S.altKey&&(W+="A-"),(W||T.length>1)&&S.shiftKey&&(W+="S-"),F&&!F.expectLiteralNext&&T.length==1){if(Qn.keymap&&T in Qn.keymap)(Qn.remapCtrl!==!1||!W)&&(T=Qn.keymap[T]);else if(T.charCodeAt(0)>255){var H=S.code&&S.code.slice(-1)||"";S.shiftKey||(H=H.toLowerCase()),H&&(T=H)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function as(y){var T=new y.constructor;return Object.keys(y).forEach(function(S){if(S!="insertEnd"){var F=y[S];Array.isArray(F)?F=F.slice():F&&typeof F=="object"&&F.constructor!=Object&&(F=as(F)),T[S]=F}}),y.sel&&(T.sel={head:y.sel.head&&Ke(y.sel.head),anchor:y.sel.anchor&&Ke(y.sel.anchor)}),T}function Eo(y,T,S){var F=!1,W=vt.maybeInitVimState_(y),H=W.visualBlock||W.wasInVisualBlock,q=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)y.ace.exitMultiSelectMode();else if(H||!q||y.ace.inVirtualSelectionMode)F=vt.handleKey(y,T,S);else{var Y=as(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ae=y.ace.selection;y.state.vim.lastHPos=ae.$desiredColumn==null?ae.lead.column:ae.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var be=y.getCursor("head"),ke=y.getCursor("anchor"),ve=et(be,ke)?0:-1,we=et(be,ke)?-1:0;be=me(be,0,ve),ke=me(ke,0,we),y.state.vim.sel.head=be,y.state.vim.sel.anchor=ke,F=Ti(y,T,S),ae.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=as(Y)),re++}),y.curOp.cursorActivity&&!F&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return F&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&is(y,W,!0),F}function Fi(y,T){T.off("beforeEndOperation",Fi);var S=T.state.cm.vimCmd;S&&T.execCommand(S.exec?S:S.name,S.args),T.curOp=T.prevOp}var fr=e("../range").Range,wo=e("../lib/event_emitter").EventEmitter,ro=e("../lib/dom"),xa=e("../lib/oop"),hl=e("../lib/keys"),Ro=e("../lib/event"),io=e("../search").Search,Lo=e("../lib/useragent"),ls=e("../search_highlight").SearchHighlight,Oo=e("../commands/multi_select_commands"),Ca=e("../mode/text").Mode.prototype.tokenRe,xo=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=function(y){this.ace=y,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};We.Pos=function(y,T){if(!(this instanceof Ne))return new Ne(y,T);this.line=y,this.ch=T},We.defineOption=function(y,T,S){},We.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
|
|
1408
|
+
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=Ro.stopEvent,We.keyName=function(y){var T=hl[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Ro.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},We.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},We.lookupKey=function y(T,S,F){S||(S="default"),typeof S=="string"&&(S=We.keyMap[S]||We.keyMap.default);var W=typeof S=="function"?S(T):S[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&F(W))return"handled";if(S.fallthrough){if(!Array.isArray(S.fallthrough))return y(T,S.fallthrough,F);for(var H=0;H<S.fallthrough.length;H++){var q=y(T,S.fallthrough[H],F);if(q)return q}}},We.findMatchingTag=function(y,T){return y.findMatchingTag(T)},We.findEnclosingTag=function(y,T){},We.signal=function(y,T,S){return y._signal(T,S)},We.on=Ro.addListener,We.off=Ro.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(Ca.lastIndex=0,Ca.test(y))},(function(){xa.implement(We.prototype,wo),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(S){this.$lineHandleChanges&&this.$lineHandleChanges.push(S);var F={text:S.action[0]=="i"?S.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=F:W.lastChange=W.change=F,this.$updateMarkers(S)},this.onSelectionChange=function(){var S=this.curOp=this.curOp||{};S.cursorActivityHandlers||(S.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Oo.keyboardHandler)},this.operation=function(S,F){if(!F&&this.curOp||F&&this.curOp&&this.curOp.force)return S();if((F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var H=this.curOp=this.curOp||{};this.curOp.force=F;var q=S();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!H.cursorActivity&&!H.lastChange&&W&&(this.ace.prevOp=W)),(F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),q},this.onBeforeEndOperation=function(){var S=this.curOp;S&&(S.change&&this.signal("change",S.change,S),S&&S.cursorActivity&&this.signal("cursorActivity",null,S),this.curOp=null)},this.signal=function(S,F,W){var H=W?W[S+"Handlers"]:(this._eventRegistry||{})[S];if(H){H=H.slice();for(var q=0;q<H.length;q++)H[q](this,F)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(S,F){typeof S=="object"&&(F=S.ch,S=S.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:S,column:F}),this.ace.selection.moveTo(S,F),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(S){var F=this.ace.selection,W=S=="anchor"?F.isEmpty()?F.lead:F.anchor:S=="head"||!S?F.lead:F.getRange()[S];return m(W)},this.listSelections=function(S){var F=this.ace.multiSelect.rangeList.ranges;return!F.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:F.map(function(W){return{anchor:this.clipPos(m(W.cursor==W.end?W.start:W.end)),head:this.clipPos(m(W.cursor))}},this)},this.setSelections=function(S,F){var W=this.ace.multiSelect,H=S.map(function(re){var ae=g(re.anchor),be=g(re.head),ke=fr.comparePoints(ae,be)<0?new fr.fromPoints(ae,be):new fr.fromPoints(be,ae);return ke.cursor=fr.comparePoints(ke.start,be)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(H[0]);return}F?H[F]&&H.push(H.splice(F,1)[0]):H=H.reverse(),W.toSingleRange(H[0].clone());for(var q=this.ace.session,Y=0;Y<H.length;Y++){var Z=q.$clipRangeToDocument(H[Y]);W.addRange(Z)}},this.setSelection=function(S,F,W){var H=this.ace.selection;H.moveTo(S.line,S.ch),H.selectTo(F.line,F.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(S){return!this.ace.selection.isEmpty()},this.clipPos=function(S){var F=this.ace.session.$clipPositionToDocument(S.line,S.ch);return m(F)},this.foldCode=function(S){this.ace.session.$toggleFoldWidget(S.line,{})},this.markText=function(S){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(S){var F=S.action=="insert",W=S.start,H=S.end,q=(H.row-W.row)*(F?1:-1),Y=(H.column-W.column)*(F?1:-1);F&&(H=W);for(var Z in this.marks){var re=this.marks[Z],ae=fr.comparePoints(re,W);if(!(ae<0)){if(ae===0&&F)if(!re.$insertRight)ae=1;else{if(re.bias!=1){re.bias=-1;continue}ae=1}var be=F?ae:fr.comparePoints(re,H);if(be>0){re.row+=q,re.column+=re.row==H.row?Y:0;continue}!F&&be<=0&&(re.row=W.row,re.column=W.column,be===0&&(re.bias=1))}}};var y=function(S,F,W,H){this.cm=S,this.id=F,this.row=W,this.column=H,S.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return m(this)},this.setBookmark=function(S,F){var W=new y(this,this.$uid++,S.line,S.ch);return(!F||!F.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(S,F){if(F=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,S)}},this.findPosV=function(S,F,W,H){if(W=="page"){var q=this.ace.renderer,Y=q.layerConfig;F*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Z=this.ace.session.documentToScreenPosition(S.line,S.ch);H!=null&&(Z.column=H),Z.row+=F,Z.row=Math.min(Math.max(0,Z.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Z.row,Z.column);return m(re)}debugger},this.charCoords=function(S,F){if(F=="div"||!F){var W=this.ace.session.documentToScreenPosition(S.line,S.ch);return{left:W.column,top:W.row}}if(F=="local"){var H=this.ace.renderer,W=this.ace.session.documentToScreenPosition(S.line,S.ch),q=H.layerConfig.lineHeight,Y=H.layerConfig.characterWidth,Z=q*W.row;return{left:W.column*Y,top:Z,bottom:Z+q}}},this.coordsChar=function(S,F){var W=this.ace.renderer;if(F=="local"){var H=Math.max(0,Math.floor(S.top/W.lineHeight)),q=Math.max(0,Math.floor(S.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(H,q);return m(Y)}if(F=="div")throw"not implemented"},this.getSearchCursor=function(S,F,W){var H=!1,q=!1;S instanceof RegExp&&!S.global&&(H=!S.ignoreCase,S=S.source,q=!0),S=="\\n"&&(S=`
|
|
1409
1409
|
`,q=!1);var Y=new io;F.ch==null&&(F.ch=Number.MAX_VALUE);var Z={row:F.line,column:F.ch},re=this,ae=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(be){Y.setOptions({needle:S,caseSensitive:H,wrap:!1,backwards:be,regExp:q,start:ae||Z});var ke=Y.find(re.ace.session);return ae=ke,ae&&[!ae.isEmpty()]},from:function(){return ae&&m(ae.start)},to:function(){return ae&&m(ae.end)},replace:function(be){ae&&(ae.end=re.ace.session.doc.replace(ae,be))}}},this.scrollTo=function(S,F){var W=this.ace.renderer,H=W.layerConfig,q=H.maxHeight;q-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,F!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(F,q))),S!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(S,H.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(S,F){if(S){var W=this.ace.renderer,H={top:0,bottom:F};W.scrollCursorIntoView(g(S),W.lineHeight*2/W.$size.scrollerHeight,H)}},this.getLine=function(S){return this.ace.session.getLine(S)},this.getRange=function(S,F){return this.ace.session.getTextRange(new fr(S.line,S.ch,F.line,F.ch))},this.replaceRange=function(S,F,W){W||(W=F);var H=new fr(F.line,F.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(H),this.ace.session.replace(H,S)},this.replaceSelection=this.replaceSelections=function(S){var F=Array.isArray(S)&&S,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),F?S[0]||"":S);return}W.inVirtualSelectionMode=!0;var H=W.rangeList.ranges;H.length||(H=[this.ace.multiSelect.getRange()]);for(var q=H.length;q--;)this.ace.session.replace(H[q],F?S[q]||"":S);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(S){return this.getRange(S.anchor,S.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var T={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(S,F){switch(this.state[S]=F,S){case"indentWithTabs":S=T[S],F=!F;break;case"keyMap":this.state.$keyMap=F;return;default:S=T[S]}S&&this.ace.setOption(S,F)},this.getOption=function(S){var F,W=T[S];switch(W&&(F=this.ace.getOption(W)),S){case"indentWithTabs":return S=T[S],!F;case"keyMap":return this.state.$keyMap||"vim"}return W?F:this.state[S]},this.toggleOverwrite=function(S){return this.state.overwrite=S,this.ace.setOverwrite(S)},this.addOverlay=function(S){if(!this.$searchHighlight||!this.$searchHighlight.session){var F=new ls(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(F);F.id=W.id,F.session=this.ace.session,F.destroy=function(q){F.session.off("change",F.updateOnChange),F.session.off("changeEditor",F.destroy),F.session.removeMarker(F.id),F.session=null},F.updateOnChange=function(q){var Y=q.start.row;Y==q.end.row?F.cache[Y]=void 0:F.cache.splice(Y,F.cache.length)},F.session.on("changeEditor",F.destroy),F.session.on("change",F.updateOnChange)}var H=new RegExp(S.query.source,"gmi");this.$searchHighlight=S.highlight=F,this.$searchHighlight.setRegexp(H),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(S){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var S=this.ace.renderer,F=S.layerConfig;return{left:S.scrollLeft,top:S.scrollTop,height:F.maxHeight,width:F.width,clientHeight:F.height,clientWidth:F.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(S){return this.ace.setValue(S,-1)},this.getTokenTypeAt=function(S){var F=this.ace.session.getTokenAt(S.line,S.ch);return F&&/comment|string/.test(F.type)?"string":""},this.findMatchingBracket=function(S){var F=this.ace.session.findMatchingBracket(g(S));return{to:F&&m(F)}},this.findMatchingTag=function(S){var F=this.ace.session.getMatchingTags(g(S));if(F)return{open:{from:m(F.openTag.start),to:m(F.openTag.end)},close:{from:m(F.closeTag.start),to:m(F.closeTag.end)}}},this.indentLine=function(S,F){F===!0?this.ace.session.indentRows(S,S," "):F===!1&&this.ace.session.outdentRows(new fr(S,0,S,0))},this.indexFromPos=function(S){return this.ace.session.doc.positionToIndex(g(S))},this.posFromIndex=function(S){return m(this.ace.session.doc.indexToPosition(S))},this.focus=function(S){return this.ace.textInput.focus()},this.blur=function(S){return this.ace.blur()},this.defaultTextHeight=function(S){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(S,F,W,H){var q=H.bracketRegex.source,Y=/paren|text|operator|tag/;if(F==1)var Z=this.ace.session.$findClosingBracket(q.slice(1,2),g(S),Y);else{var Z=this.ace.session.$findOpeningBracket(q.slice(-2,-1),{row:S.line,column:S.ch+1},Y);!Z&&H.bracketRegex&&H.bracketRegex.test(this.getLine(S.line)[S.ch-1])&&(Z={row:S.line,column:S.ch-1})}return Z&&{pos:m(Z)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(S){if(We.commands.hasOwnProperty(S))return We.commands[S](this);if(S=="indentAuto")return this.ace.execCommand("autoindent");console.log(S+" is not implemented")},this.getLineNumber=function(S){var F=this.$lineHandleChanges;if(!F)return null;for(var W=S.row,H=0;H<F.length;H++){var q=F[H];if(q.start.row!=q.end.row){if(q.action[0]=="i")q.start.row<W&&(W+=q.end.row-q.start.row);else if(q.start.row<W){if(W<q.end.row||W==q.end.row&&q.start.column>0)return null;W-=q.end.row-q.start.row}}}return W},this.getLineHandle=function(S){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(S),row:S}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var S=this.ace.session.$undoManager;if(S&&S.$lastDelta)return m(S.$lastDelta.end)}}).call(We.prototype);var ka=We.StringStream=function(y,T){this.pos=this.start=0,this.string=y,this.tabSize=T||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};ka.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(y){var T=this.string.charAt(this.pos);if(typeof y=="string")var S=T==y;else var S=T&&(y.test?y.test(T):y(T));if(S)return++this.pos,T},eatWhile:function(y){for(var T=this.pos;this.eat(y););return this.pos>T},eatSpace:function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},skipToEnd:function(){this.pos=this.string.length},skipTo:function(y){var T=this.string.indexOf(y,this.pos);if(T>-1)return this.pos=T,!0},backUp:function(y){this.pos-=y},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(y,T,S){if(typeof y!="string"){var F=this.string.slice(this.pos).match(y);return F&&F.index>0?null:(F&&T!==!1&&(this.pos+=F[0].length),F)}var W=function(q){return S?q.toLowerCase():q},H=this.string.substr(this.pos,y.length);if(W(H)==W(y))return T!==!1&&(this.pos+=y.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(y,T){this.lineStart+=y;try{return T()}finally{this.lineStart-=y}}},We.defineExtension=function(y,T){We.prototype[y]=T},ro.importCssString(`.normal-mode .ace_cursor{
|
|
1410
1410
|
border: none;
|
|
1411
1411
|
background-color: rgba(255,0,0,0.5);
|
|
@@ -1439,44 +1439,44 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Kn,i
|
|
|
1439
1439
|
width: 20em;
|
|
1440
1440
|
color: inherit;
|
|
1441
1441
|
font-family: monospace;
|
|
1442
|
-
}`,"vimMode",!1),function(){function y(S,F,W){var H=S.ace.container,q;return q=H.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof F=="string"?q.innerHTML=F:q.appendChild(F),q}function T(S,F){S.state.currentNotificationClose&&S.state.currentNotificationClose(),S.state.currentNotificationClose=F}We.defineExtension("openDialog",function(S,F,W){function H(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==q&&(Z.state.dialog=null,Z.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var q=y(this,S,W.bottom),Y=!1,Z=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],ae;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(be){W.onInput(be,re.value,H)}),W.onKeyUp&&We.on(re,"keyup",function(be){W.onKeyUp(be,re.value,H)}),We.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,H)||(be.keyCode==13&&F(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(We.e_stop(be),H()))}),W.closeOnBlur!==!1&&We.on(re,"blur",H),re.focus()):(ae=q.getElementsByTagName("button")[0])&&(We.on(ae,"click",function(){H(),Z.focus()}),W.closeOnBlur!==!1&&We.on(ae,"blur",H),ae.focus()),H}}),We.defineExtension("openNotification",function(S,F){function W(){q||(q=!0,clearTimeout(Y),H.remove())}if(!this.virtualSelectionMode()){T(this,W);var H=y(this,S,F&&F.bottom),q=!1,Y,Z=F&&typeof F.duration<"u"?F.duration:5e3;return We.on(H,"click",function(re){We.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})}();var Ne=We.Pos,Dn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],No=Dn.length,Si=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Qn=O(""),Aa=/[\d]/,Do=[We.isWordChar,function(y){return y&&!We.isWordChar(y)&&!/\s/.test(y)}],Pi=[function(y){return/\S/.test(y)}],xo=["<",">"],nn=["-",'"',".",":","_","/","+"],Jt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var jt={};R("filetype",void 0,"string",["ft"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("mode");return S=="null"?"":S}var S=y==""?"null":y;T.setOption("mode",S)}}),R("textwidth",80,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("textwidth");return S}var F=Math.round(y);F>1&&T.setOption("textwidth",F)}});var Wi=function(){function y(Z,re,ae){function be(Oe){var Le=++W%F,Ve=Y[Le];Ve&&Ve.clear(),Y[Le]=Z.setBookmark(Oe)}var ke=W%F,ve=Y[ke];if(ve){var we=ve.find();we&&!at(we,re)&&be(re)}else be(re);be(ae),H=W,q=W-F+1,q<0&&(q=0)}function T(Z,re){W+=re,W>H?W=H:W<q&&(W=q);var ae=Y[(F+W)%F];if(ae&&!ae.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,ae=Y[(F+W)%F],ae&&(ke=ae.find())&&!at(ve,ke))break;while(W<H&&W>q)}return ae}function S(Z,re){var ae=W,be=T(Z,re);return W=ae,be&&be.find()}var F=100,W=-1,H=0,q=0,Y=new Array(F);return{cachedCursor:void 0,add:y,find:S,move:T}},Hn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=He.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,T){var S=He.registerController.getRegister(T);if(S){if(S.clear(),this.latestRegister=T,y.openDialog){var F=Fr("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=y.openDialog(F,null,{bottom:!0})}this.isRecording=!0}}};var He,yn,vt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return He.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return He},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:yo,map:function(y,T,S){Ir.map(y,T,S)},unmap:function(y,T){return Ir.unmap(y,T)},noremap:function(y,T,S){Ir.map(y,T,S,!0)},mapclear:function(y){var T=Dn.length,S=No,F=Dn.slice(0,T-S);if(Dn=Dn.slice(T-S),y)for(var W=F.length-1;W>=0;W--){var H=F[W];if(y!==H.context)if(H.context)this._mapCommand(H);else{var q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==y){var Z={};for(var re in H)Z[re]=H[re];Z.context=q[Y],this._mapCommand(Z)}}}},langmap:P,vimKeyFromEvent:z,setOption:_,getOption:k,defineOption:R,defineEx:function(y,T,S){if(!T)T=y;else if(y.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+y+'", command not registered');zs[y]=S,Ir.commandMap_[T]={name:y,shortName:T,type:"api"}},handleKey:function(y,T,S){var F=this.findKey(y,T,S);if(typeof F=="function")return F()},multiSelectHandleKey:Eo,findKey:function(y,T,S){function F(){var re=He.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(y),!0;S!="mapping"&&ns(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)gn(y);else{if(!Y.insertMode)return;Pr(y)}return A(y),!0}}function H(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),ae=T.length==1,be=jn.matchCommand(re,Dn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return A(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),yn&&window.clearTimeout(yn),yn=ae&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(y)},k("insertModeEscKeysTimeout")),ae){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=T;for(var we=0;we<ve.length;we++){var Oe=lt(ve[we].anchor,ve[we].head),Le=Yt(ve[we].anchor,ve[we].head),Ve=y.getRange(Oe,y.state.overwrite?me(Le,0,1):Le);ke.removed[we]=(ke.removed[we]||"")+Ve}}return!ae}if(Y.expectLiteralNext=!1,yn&&window.clearTimeout(yn),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var st=ve[we].head;y.replaceRange(ke.removed[we]||"",me(st,0,-ke.inserted.length),st,"+input")}He.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||A(y),be.command}function q(){if(F()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ae=/^(\d*)(.*)$/.exec(re);if(!ae)return A(y),!1;var be=Y.visualMode?"visual":"normal",ke=ae[2]||ae[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=jn.matchCommand(ke,Dn,Y.inputState,be);return ve.type=="none"?(A(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(A(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ae=/^(\d*)(.*)$/.exec(re),ae[1]&&ae[1]!="0"&&Y.inputState.pushRepeatDigit(ae[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=H():Z=q(),Z===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?I(y,Z.toKeys,Z):jn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),vt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,T){Ir.processCommand(y,T)},defineMotion:J,defineAction:le,defineOperator:ne,mapCommand:Ds,_mapCommand:ts,defineRegister:U,exitVisualMode:gn,exitInsertMode:Pr},Zr=[],hn=!1,An,ir={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Qr={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Bi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(ir)).forEach(function(y){Bi[(ir[y]||"").toLowerCase()]=Bi[y.toLowerCase()]=y}),R("langmap",void 0,"string",["lmap"],function(y,T){if(y===void 0)return Qn.string;P(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,T,S){this.keyBuffer=[y||""],this.linewise=!!T,this.blockwise=!!S},pushText:function(y,T){T&&(this.linewise||this.keyBuffer.push(`
|
|
1442
|
+
}`,"vimMode",!1),function(){function y(S,F,W){var H=S.ace.container,q;return q=H.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof F=="string"?q.innerHTML=F:q.appendChild(F),q}function T(S,F){S.state.currentNotificationClose&&S.state.currentNotificationClose(),S.state.currentNotificationClose=F}We.defineExtension("openDialog",function(S,F,W){function H(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==q&&(Z.state.dialog=null,Z.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var q=y(this,S,W.bottom),Y=!1,Z=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],ae;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(be){W.onInput(be,re.value,H)}),W.onKeyUp&&We.on(re,"keyup",function(be){W.onKeyUp(be,re.value,H)}),We.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,H)||(be.keyCode==13&&F(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(We.e_stop(be),H()))}),W.closeOnBlur!==!1&&We.on(re,"blur",H),re.focus()):(ae=q.getElementsByTagName("button")[0])&&(We.on(ae,"click",function(){H(),Z.focus()}),W.closeOnBlur!==!1&&We.on(ae,"blur",H),ae.focus()),H}}),We.defineExtension("openNotification",function(S,F){function W(){q||(q=!0,clearTimeout(Y),H.remove())}if(!this.virtualSelectionMode()){T(this,W);var H=y(this,S,F&&F.bottom),q=!1,Y,Z=F&&typeof F.duration<"u"?F.duration:5e3;return We.on(H,"click",function(re){We.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})}();var Ne=We.Pos,Dn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],No=Dn.length,Si=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Qn=O(""),Aa=/[\d]/,Do=[We.isWordChar,function(y){return y&&!We.isWordChar(y)&&!/\s/.test(y)}],Pi=[function(y){return/\S/.test(y)}],Co=["<",">"],nn=["-",'"',".",":","_","/","+"],Jt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var Ut={};R("filetype",void 0,"string",["ft"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("mode");return S=="null"?"":S}var S=y==""?"null":y;T.setOption("mode",S)}}),R("textwidth",80,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("textwidth");return S}var F=Math.round(y);F>1&&T.setOption("textwidth",F)}});var Wi=function(){function y(Z,re,ae){function be(Oe){var Le=++W%F,Ve=Y[Le];Ve&&Ve.clear(),Y[Le]=Z.setBookmark(Oe)}var ke=W%F,ve=Y[ke];if(ve){var we=ve.find();we&&!at(we,re)&&be(re)}else be(re);be(ae),H=W,q=W-F+1,q<0&&(q=0)}function T(Z,re){W+=re,W>H?W=H:W<q&&(W=q);var ae=Y[(F+W)%F];if(ae&&!ae.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,ae=Y[(F+W)%F],ae&&(ke=ae.find())&&!at(ve,ke))break;while(W<H&&W>q)}return ae}function S(Z,re){var ae=W,be=T(Z,re);return W=ae,be&&be.find()}var F=100,W=-1,H=0,q=0,Y=new Array(F);return{cachedCursor:void 0,add:y,find:S,move:T}},Hn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=He.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,T){var S=He.registerController.getRegister(T);if(S){if(S.clear(),this.latestRegister=T,y.openDialog){var F=Fr("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=y.openDialog(F,null,{bottom:!0})}this.isRecording=!0}}};var He,yn,vt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return He.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return He},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:bo,map:function(y,T,S){Ir.map(y,T,S)},unmap:function(y,T){return Ir.unmap(y,T)},noremap:function(y,T,S){Ir.map(y,T,S,!0)},mapclear:function(y){var T=Dn.length,S=No,F=Dn.slice(0,T-S);if(Dn=Dn.slice(T-S),y)for(var W=F.length-1;W>=0;W--){var H=F[W];if(y!==H.context)if(H.context)this._mapCommand(H);else{var q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==y){var Z={};for(var re in H)Z[re]=H[re];Z.context=q[Y],this._mapCommand(Z)}}}},langmap:P,vimKeyFromEvent:z,setOption:_,getOption:k,defineOption:R,defineEx:function(y,T,S){if(!T)T=y;else if(y.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+y+'", command not registered');zs[y]=S,Ir.commandMap_[T]={name:y,shortName:T,type:"api"}},handleKey:function(y,T,S){var F=this.findKey(y,T,S);if(typeof F=="function")return F()},multiSelectHandleKey:Eo,findKey:function(y,T,S){function F(){var re=He.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(y),!0;S!="mapping"&&ns(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)gn(y);else{if(!Y.insertMode)return;Pr(y)}return A(y),!0}}function H(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),ae=T.length==1,be=jn.matchCommand(re,Dn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return A(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),yn&&window.clearTimeout(yn),yn=ae&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(y)},k("insertModeEscKeysTimeout")),ae){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=T;for(var we=0;we<ve.length;we++){var Oe=lt(ve[we].anchor,ve[we].head),Le=Xt(ve[we].anchor,ve[we].head),Ve=y.getRange(Oe,y.state.overwrite?me(Le,0,1):Le);ke.removed[we]=(ke.removed[we]||"")+Ve}}return!ae}if(Y.expectLiteralNext=!1,yn&&window.clearTimeout(yn),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var st=ve[we].head;y.replaceRange(ke.removed[we]||"",me(st,0,-ke.inserted.length),st,"+input")}He.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||A(y),be.command}function q(){if(F()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ae=/^(\d*)(.*)$/.exec(re);if(!ae)return A(y),!1;var be=Y.visualMode?"visual":"normal",ke=ae[2]||ae[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=jn.matchCommand(ke,Dn,Y.inputState,be);return ve.type=="none"?(A(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(A(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ae=/^(\d*)(.*)$/.exec(re),ae[1]&&ae[1]!="0"&&Y.inputState.pushRepeatDigit(ae[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=H():Z=q(),Z===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?I(y,Z.toKeys,Z):jn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),vt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,T){Ir.processCommand(y,T)},defineMotion:J,defineAction:le,defineOperator:ne,mapCommand:Ds,_mapCommand:ts,defineRegister:U,exitVisualMode:gn,exitInsertMode:Pr},Zr=[],hn=!1,Sn,ir={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Qr={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Bi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(ir)).forEach(function(y){Bi[(ir[y]||"").toLowerCase()]=Bi[y.toLowerCase()]=y}),R("langmap",void 0,"string",["lmap"],function(y,T){if(y===void 0)return Qn.string;P(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,T,S){this.keyBuffer=[y||""],this.linewise=!!T,this.blockwise=!!S},pushText:function(y,T){T&&(this.linewise||this.keyBuffer.push(`
|
|
1443
1443
|
`),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Hn(y))},pushSearchQuery:function(y){this.searchQueries.push(y)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},K.prototype={pushText:function(y,T,S,F,W){if(y!=="_"){F&&S.charAt(S.length-1)!==`
|
|
1444
1444
|
`&&(S+=`
|
|
1445
1445
|
`);var H=this.isValidRegister(y)?this.getRegister(y):null;if(!H){switch(T){case"yank":this.registers[0]=new B(S,F,W);break;case"delete":case"change":S.indexOf(`
|
|
1446
|
-
`)==-1?this.registers["-"]=new B(S,F):(this.shiftNumericRegisters_(),this.registers[1]=new B(S,F))}this.unnamedRegister.setText(S,F,W);return}var q=a(y);q?H.pushText(S,F):H.setText(S,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(H.toString(),F)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,nn)||Jt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,T){var S=this.historyBuffer,F=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+F;T?W>=0:W<S.length;W+=F)for(var H=S[W],q=0;q<=H.length;q++)if(this.initialPrefix==H.substring(0,q))return this.iterator=W,H;if(W>=S.length)return this.iterator=S.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var T=this.historyBuffer.indexOf(y);T>-1&&this.historyBuffer.splice(T,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var jn={matchCommand:function(y,T,S,F){var W=_e(y,T,F,S);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var H,q=0;q<W.full.length;q++){var Y=W.full[q];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:H}},processCommand:function(y,T,S){switch(T.inputState.repeatOverride=S.repeatOverride,S.type){case"motion":this.processMotion(y,T,S);break;case"operator":this.processOperator(y,T,S);break;case"operatorMotion":this.processOperatorMotion(y,T,S);break;case"action":this.processAction(y,T,S);break;case"search":this.processSearch(y,T,S);break;case"ex":case"keyToEx":this.processEx(y,T,S);break}},processMotion:function(y,T,S){T.inputState.motion=S.motion,T.inputState.motionArgs=de(S.motionArgs),this.evalInput(y,T)},processOperator:function(y,T,S){var F=T.inputState;if(F.operator){if(F.operator==S.operator){F.motion="expandToLine",F.motionArgs={linewise:!0},this.evalInput(y,T);return}A(y)}F.operator=S.operator,F.operatorArgs=de(S.operatorArgs),S.keys.length>1&&(F.operatorShortcut=S.keys),S.exitVisualBlock&&(T.visualBlock=!1,On(y)),T.visualMode&&this.evalInput(y,T)},processOperatorMotion:function(y,T,S){var F=T.visualMode,W=de(S.operatorMotionArgs);W&&F&&W.visualLine&&(T.visualLine=!0),this.processOperator(y,T,S),F||this.processMotion(y,T,S)},processAction:function(y,T,S){var F=T.inputState,W=F.getRepeat(),H=!!W,q=de(S.actionArgs)||{};F.selectedCharacter&&(q.selectedCharacter=F.selectedCharacter),S.operator&&this.processOperator(y,T,S),S.motion&&this.processMotion(y,T,S),(S.motion||S.operator)&&this.evalInput(y,T),q.repeat=W||1,q.repeatIsExplicit=H,q.registerName=F.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,F,S),Un[S.action](y,q,T)},processSearch:function(y,T,S){function F(Le,Ve,st){He.searchHistoryController.pushInput(Le),He.searchHistoryController.reset();try{ze(y,Le,Ve,st)}catch{Ot(y,"Invalid regex: "+Le),A(y);return}jn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){F(Le,!0,!0);var Ve=He.macroModeState;Ve.isRecording&&Ps(Ve,Le)}function H(Le,Ve,st){var Ze=z(Le),tt,bn;Ze=="<Up>"||Ze=="<Down>"?(tt=Ze=="<Up>",bn=Le.target?Le.target.selectionEnd:0,Ve=He.searchHistoryController.nextMatch(Ve,tt)||"",st(Ve),bn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(bn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&He.searchHistoryController.reset();var ct;try{ct=ze(y,Ve,!0,!0)}catch{}ct?y.scrollIntoView(Gt(y,!Y,ct),30):(xr(y),y.scrollTo(be.left,be.top))}function q(Le,Ve,st){var Ze=z(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(He.searchHistoryController.pushInput(Ve),He.searchHistoryController.reset(),ze(y,ae),xr(y),y.scrollTo(be.left,be.top),We.e_stop(Le),A(y),st(),y.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Le):Ze=="<C-u>"&&(We.e_stop(Le),st(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;kn(y).setReversed(!Y);var re=Y?"/":"?",ae=kn(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=He.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();F(Oe,!0,!1)}else wr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:q});break;case"wordUnderCursor":var ve=ln(y,{noSymbol:!0}),we=!0;if(ve||(ve=ln(y,{noSymbol:!1}),we=!1),!ve){Ot(y,"No word under cursor"),A(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=un(Oe),He.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,T,S){function F(H){He.exCommandHistoryController.pushInput(H),He.exCommandHistoryController.reset(),Ir.processCommand(y,H),y.state.vim&&A(y)}function W(H,q,Y){var Z=z(H),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(He.exCommandHistoryController.pushInput(q),He.exCommandHistoryController.reset(),We.e_stop(H),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(H),re=Z=="<Up>",ae=H.target?H.target.selectionEnd:0,q=He.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(ae,H.target.value.length))):Z=="<C-u>"?(We.e_stop(H),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&He.exCommandHistoryController.reset()}S.type=="keyToEx"?Ir.processCommand(y,S.exArgs.input):T.visualMode?wr(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):wr(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,F=S.motion,W=S.motionArgs||{},H=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Ke(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Ke(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Ke(re),ke=Ke(ae),ve,we,Oe;if(H&&this.recordLastEdit(T,S),S.repeatOverride!==void 0?Oe=S.repeatOverride:Oe=S.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),S.selectedCharacter&&(W.selectedCharacter=q.selectedCharacter=S.selectedCharacter),W.repeat=Oe,A(y),F){var Le=mi[F](y,re,W,T,S);if(T.lastMotion=mi[F],!Le)return;if(W.toJumplist){!H&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=He.jumpList,st=Ve.cachedCursor;st?(Kr(y,st,Le),delete Ve.cachedCursor):Kr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Ke(re)),T.visualMode?((!T.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,On(y),Yr(y,T,"<",et(we,ve)?we:ve),Yr(y,T,">",et(we,ve)?ve:we)):H||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(H){if(q.lastSel){we=ke;var Ze=q.lastSel,tt=Math.abs(Ze.head.line-Ze.anchor.line),bn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?ve=new Ne(ke.line+tt,ke.ch):Ze.visualBlock?ve=new Ne(ke.line+tt,ke.ch+bn):Ze.head.line==Ze.anchor.line?ve=new Ne(ke.line,ke.ch+bn):ve=new Ne(ke.line+tt,ke.ch),T.visualMode=!0,T.visualLine=Ze.visualLine,T.visualBlock=Ze.visualBlock,Z=T.sel={anchor:we,head:ve},On(y)}else T.visualMode&&(q.lastSel={anchor:Ke(Z.anchor),head:Ke(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ct,Tn,bt,_t,or;if(T.visualMode){ct=lt(Z.head,Z.anchor),Tn=Yt(Z.head,Z.anchor),bt=T.visualLine||q.linewise,_t=T.visualBlock?"block":bt?"line":"char";var Sr=w(y,ct,Tn);if(or=yr(y,{anchor:Sr.start,head:Sr.end},_t),bt){var Mn=or.ranges;if(_t=="block")for(var V=0;V<Mn.length;V++)Mn[V].head.ch=Wt(y,Mn[V].head.line);else _t=="line"&&(Mn[0].head=new Ne(Mn[0].head.line+1,0))}}else{if(ct=Ke(we||ke),Tn=Ke(ve||be),et(Tn,ct)){var X=ct;ct=Tn,Tn=X}bt=W.linewise||q.linewise,bt?Nn(y,ct,Tn):W.forward&&Wn(y,ct,Tn),_t="char";var ie=!W.inclusive||bt,Sr=w(y,ct,Tn);or=yr(y,{anchor:Sr.start,head:Sr.end},_t,ie)}y.setSelections(or.ranges,or.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=bt;var oe=cs[H](y,q,or.ranges,ke,ve);T.visualMode&&gn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var F=He.macroModeState;F.isPlaying||(y.lastEditInputState=T,y.lastEditActionCommand=S,F.lastInsertModeChanges.changes=[],F.lastInsertModeChanges.expectCursorActivityForChange=!1,F.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},mi={moveToTopLine:function(y,T,S){var F=zn(y).top+S.repeat-1;return new Ne(F,Kt(y.getLine(F)))},moveToMiddleLine:function(y){var T=zn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Kt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var F=zn(y).bottom-S.repeat+1;return new Ne(F,Kt(y.getLine(F)))},expandToLine:function(y,T,S){var F=T;return new Ne(F.line+S.repeat-1,1/0)},findNext:function(y,T,S){var F=kn(y),W=F.getQuery();if(W){var H=!S.forward;return H=F.isReversed()?!H:H,St(y,W),Gt(y,H,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,F,W){var H=kn(y),q=H.getQuery();if(q){var Y=!S.forward;Y=H.isReversed()?!Y:Y;var Z=Ht(y,Y,q,S.repeat,F);if(Z){if(W.operator)return Z;var re=Z[0],ae=new Ne(Z[1].line,Z[1].ch-1);if(F.visualMode){(F.visualLine||F.visualBlock)&&(F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=F.sel.anchor;if(be)return H.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,F){var W=Cr(y,F,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Kt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,T,S,F){if(F.visualBlock&&S.sameLine){var W=F.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[F.sel.head,F.sel.anchor]},jumpToMark:function(y,T,S,F){for(var W=T,H=0;H<S.repeat;H++){var q=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=S.forward?et(Z,q):et(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=at(q,W),be=S.forward?xn(q,Z,W):xn(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Kt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var F=T,W=S.repeat,H=S.forward?F.ch+W:F.ch-W;return new Ne(F.line,H)},moveByLines:function(y,T,S,F){var W=T,H=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=F.lastHPos;break;default:F.lastHPos=H}var q=S.repeat+(S.repeatOffset||0),Y=S.forward?W.line+q:W.line-q,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,T,S,F);if(Y>re&&W.line==re)return to(y,T,S,F,!0);var ae=y.ace.session.getFoldLine(Y);return ae&&(S.forward?Y>ae.start.row&&(Y=ae.end.row+1):Y=ae.start.row),S.toFirstChar&&(H=Kt(y.getLine(Y)),F.lastHPos=H),F.lastHSPos=y.charCoords(new Ne(Y,H),"div").left,new Ne(Y,H)},moveByDisplayLines:function(y,T,S,F){var W=T;switch(F.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:F.lastHSPos=y.charCoords(W,"div").left}var H=S.repeat,Z=y.findPosV(W,S.forward?H:-H,"line",F.lastHSPos);if(Z.hitSide)if(S.forward)var q=y.charCoords(Z,"div"),Y={top:q.top+8,left:F.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=F.lastHSPos,Z=y.coordsChar(re,"div")}return F.lastHPos=Z.ch,Z},moveByPage:function(y,T,S){var F=T,W=S.repeat;return y.findPosV(F,S.forward?W:-W,"page")},moveByParagraph:function(y,T,S){var F=S.forward?1:-1;return hi(y,T,S.repeat,F)},moveBySentence:function(y,T,S){var F=S.forward?1:-1;return di(y,T,S.repeat,F)},moveByScroll:function(y,T,S,F){var W=y.getScrollInfo(),H=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,H=mi.moveByDisplayLines(y,T,S,F),!H)return null;var Z=y.charCoords(H,"local");return y.scrollTo(null,W.top+Z.top-Y.top),H},moveByWords:function(y,T,S){return Bn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var F=S.repeat,W=ui(y,F,S.forward,S.selectedCharacter,T),H=S.forward?-1:1;return Gr(H,S),W?(W.ch+=H,W):null},moveToCharacter:function(y,T,S){var F=S.repeat;return Gr(0,S),ui(y,F,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var F=S.repeat;return Ai(y,F,S.forward,S.selectedCharacter)||T},moveToColumn:function(y,T,S,F){var W=S.repeat;return F.lastHPos=W-1,F.lastHSPos=y.charCoords(T,"div").left,Ns(y,W)},moveToEol:function(y,T,S,F){return to(y,T,S,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Kt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,F=S.line,W=S.ch,H=y.getLine(F),q;W<H.length;W++)if(q=H.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var Z=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(F,W+1),{bracketRegex:Z});return re.to}return S},moveToStartOfLine:function(y,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(y,T,S){var F=S.forward?y.lastLine():y.firstLine();return S.repeatIsExplicit&&(F=S.repeat-y.getOption("firstLineNumber")),new Ne(F,Kt(y.getLine(F)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var T=y.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(y,T,S,F){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},q=S.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!S.textObjectInner,Z,re;if(W[q]){if(re=!0,Z=Cn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=Cn(y,ae.from(),q,Y))}}else if(H[q])re=!0,Z=hr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=ln(y,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(q==="p")if(Z=hi(y,T,S.repeat,0,Y),S.linewise=!0,F.visualMode)F.visualLine||(F.visualLine=!0);else{var ve=F.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(q==="t")Z=Dr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&b(we[T.ch])&&(T.ch-=1);var Oe=Jo(y,T,S.repeat,1,Y),Le=Jo(y,T,S.repeat,-1,Y);p(y.getLine(Le.line)[Le.ch])&&p(y.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Z={start:Le,end:Oe}}return Z?y.state.vim.visualMode?Qt(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var F=He.lastCharacterSearch,W=S.repeat,H=S.forward===F.forward,q=(F.increment?1:0)*(H?-1:1);y.moveH(-q,"char"),S.inclusive=!!H;var Y=ui(y,W,H,F.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},cs={change:function(y,T,S){var F,W,H=y.state.vim,q=S[0].anchor,Y=S[0].head;if(H.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(q,Y),W=y.getSelection(),y.replaceSelection(""),F=q;else{W=y.getSelection();var Z=he("",S.length);y.replaceSelections(Z),F=lt(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=H.lastEditInputState||{};if(re.motion=="moveByWords"&&!p(W)){var ae=/\s+$/.exec(W);ae&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ae[0].length),W=W.slice(0,-ae[0].length))}T.linewise&&(q=new Ne(q.line,Kt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),F=q}He.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Un.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,T,S){var F,W,H=y.state.vim;if(H.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),F=lt(S[0].head,S[0].anchor)}else{var Y=S[0].anchor,Z=S[0].head;T.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Wt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,T.linewise&&(F=mi.moveToFirstNonWhiteSpaceCharacter(y,Y))}return He.registerController.pushText(T.registerName,"delete",W,T.linewise,H.visualBlock),se(y,F)},indent:function(y,T,S){var F=y.state.vim,W=F.visualMode?T.repeat:1;if(F.visualBlock){for(var H=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(H),Y,Z=S.length-1;Z>=0;Z--)if(Y=lt(S[Z].anchor,S[Z].head),T.indentRight)y.replaceRange(q.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ae=0,be=0;be<W;be++){var ke=re[Y.ch+ae];if(ke==" ")ae++;else{if(ke!=" ")break;ae++;for(var ve=1;ve<q.length&&(ke=re[Y.ch+ae],ke===" ");ve++)ae++}}y.replaceRange("",Y,me(Y,0,ae))}return Y}if(y.indentMore)for(var be=0;be<W;be++)T.indentRight?y.indentMore():y.indentLess();else{var we=S[0].anchor.line,Oe=F.visualBlock?S[S.length-1].anchor.line:S[0].head.line;T.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,T.indentRight)}return mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,F,W){if(y.hardWrap){var H=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:H,to:q});return Y>H&&T.linewise&&Y--,T.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,T,S,F,W){for(var H=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<H.length;Z++){var re=H[Z],ae="";if(Y===!0)ae=re.toLowerCase();else if(Y===!1)ae=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);ae+=a(ke)?ke.toLowerCase():ke.toUpperCase()}q.push(ae)}return y.replaceSelections(q),T.shouldMoveCursor?W:!y.state.vim.visualMode&&T.linewise&&S[0].anchor.line+1==S[0].head.line?mi.moveToFirstNonWhiteSpaceCharacter(y,F):T.linewise?F:lt(S[0].anchor,S[0].head)},yank:function(y,T,S,F){var W=y.state.vim,H=y.getSelection(),q=W.visualMode?lt(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):F;return He.registerController.pushText(T.registerName,"yank",H,T.linewise,W.visualBlock),q}},Un={jumpListWalk:function(y,T,S){if(!S.visualMode){var F=T.repeat,W=T.forward,H=He.jumpList,q=H.move(y,W?F:-F),Y=q?q.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,T,S){if(!S.visualMode){var F=T.repeat||1,W=y.defaultTextHeight(),H=y.getScrollInfo().top,q=W*F,Y=T.forward?H+q:H-q,Z=Ke(y.getCursor()),re=y.charCoords(Z,"local");if(T.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ae=Y+y.getScrollInfo().clientHeight;ae<re.bottom?(Z.line-=(re.bottom-ae)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,T){var S=y.getCursor().line,F=y.charCoords(new Ne(S,0),"local"),W=y.getScrollInfo().clientHeight,H=F.top;switch(T.position){case"center":H=F.bottom-W/2;break;case"bottom":var q=new Ne(S,y.getLine(S).length-1),Y=y.charCoords(q,"local"),Z=Y.bottom-H;H=H-W+Z}y.scrollTo(null,H)},replayMacro:function(y,T,S){var F=T.selectedCharacter,W=T.repeat,H=He.macroModeState;for(F=="@"?F=H.latestRegister:H.latestRegister=F;W--;)Fs(y,S,H,F)},enterMacroRecordMode:function(y,T){var S=He.macroModeState,F=T.selectedCharacter;He.registerController.isValidRegister(F)&&S.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,T,S){if(!y.getOption("readOnly")){S.insertMode=!0,S.insertModeRepeat=T&&T.repeat||1;var F=T?T.insertAt:null,W=S.sel,H=T.head||y.getCursor("head"),q=y.listSelections().length;if(F=="eol")H=new Ne(H.line,Wt(y,H.line));else if(F=="bol")H=new Ne(H.line,0);else if(F=="charAfter"){var Y=w(y,H,me(H,0,1));H=Y.end}else if(F=="firstNonBlank"){var Y=w(y,H,mi.moveToFirstNonWhiteSpaceCharacter(y,H));H=Y.end}else if(F=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?H=W.head:H=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?H=me(W.head,0,1):H=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(S.visualMode)return}else F=="lastEdit"&&(H=mn(y)||H);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),He.macroModeState.isPlaying||(y.on("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(H,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Ws)),S.visualMode&&gn(y),Tr(y,H,q)}},toggleVisualMode:function(y,T,S){var F=T.repeat,W=y.getCursor(),H;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),On(y)):gn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,H=se(y,new Ne(W.line,W.ch+F-1));var q=w(y,W,H);S.sel={anchor:q.start,head:q.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),On(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Yt(W,H))}},reselectLastSelection:function(y,T,S){var F=S.lastSelection;if(S.visualMode&&Lt(y,S),F){var W=F.anchorMark.find(),H=F.headMark.find();if(!W||!H)return;S.sel={anchor:W,head:H},S.visualMode=!0,S.visualLine=F.visualLine,S.visualBlock=F.visualBlock,On(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Yt(W,H)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""})}},joinLines:function(y,T,S){var F,W;if(S.visualMode){if(F=y.getCursor("anchor"),W=y.getCursor("head"),et(W,F)){var H=W;W=F,F=H}W.ch=Wt(y,W.line)-1}else{var q=Math.max(T.repeat,2);F=y.getCursor(),W=se(y,new Ne(F.line+q-1,1/0))}for(var Y=0,Z=F.line;Z<W.line;Z++){Y=Wt(y,F.line);var re="",ae=0;if(!T.keepSpaces){var be=y.getLine(F.line+1);ae=be.search(/\S/),ae==-1?ae=be.length:re=" "}y.replaceRange(re,new Ne(F.line,Y),new Ne(F.line+1,ae))}var ke=se(y,new Ne(F.line,Y));S.visualMode&&gn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var F=Ke(y.getCursor());if(F.line===y.firstLine()&&!T.after)y.replaceRange(`
|
|
1447
|
-
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{F.line=T.after?F.line:F.line-1,F.ch=Wt(y,F.line),y.setCursor(F);var W=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var F=this,W=He.registerController.getRegister(T.registerName),H=function(){var q=W.toString();F.continuePaste(y,T,S,q,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(q){F.continuePaste(y,T,S,q,W)},function(){H()}):H()},continuePaste:function(y,T,S,F,W){var H=Ke(y.getCursor());if(F){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(
|
|
1446
|
+
`)==-1?this.registers["-"]=new B(S,F):(this.shiftNumericRegisters_(),this.registers[1]=new B(S,F))}this.unnamedRegister.setText(S,F,W);return}var q=a(y);q?H.pushText(S,F):H.setText(S,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(H.toString(),F)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,nn)||Jt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,T){var S=this.historyBuffer,F=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+F;T?W>=0:W<S.length;W+=F)for(var H=S[W],q=0;q<=H.length;q++)if(this.initialPrefix==H.substring(0,q))return this.iterator=W,H;if(W>=S.length)return this.iterator=S.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var T=this.historyBuffer.indexOf(y);T>-1&&this.historyBuffer.splice(T,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var jn={matchCommand:function(y,T,S,F){var W=_e(y,T,F,S);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var H,q=0;q<W.full.length;q++){var Y=W.full[q];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:H}},processCommand:function(y,T,S){switch(T.inputState.repeatOverride=S.repeatOverride,S.type){case"motion":this.processMotion(y,T,S);break;case"operator":this.processOperator(y,T,S);break;case"operatorMotion":this.processOperatorMotion(y,T,S);break;case"action":this.processAction(y,T,S);break;case"search":this.processSearch(y,T,S);break;case"ex":case"keyToEx":this.processEx(y,T,S);break}},processMotion:function(y,T,S){T.inputState.motion=S.motion,T.inputState.motionArgs=de(S.motionArgs),this.evalInput(y,T)},processOperator:function(y,T,S){var F=T.inputState;if(F.operator){if(F.operator==S.operator){F.motion="expandToLine",F.motionArgs={linewise:!0},this.evalInput(y,T);return}A(y)}F.operator=S.operator,F.operatorArgs=de(S.operatorArgs),S.keys.length>1&&(F.operatorShortcut=S.keys),S.exitVisualBlock&&(T.visualBlock=!1,$n(y)),T.visualMode&&this.evalInput(y,T)},processOperatorMotion:function(y,T,S){var F=T.visualMode,W=de(S.operatorMotionArgs);W&&F&&W.visualLine&&(T.visualLine=!0),this.processOperator(y,T,S),F||this.processMotion(y,T,S)},processAction:function(y,T,S){var F=T.inputState,W=F.getRepeat(),H=!!W,q=de(S.actionArgs)||{};F.selectedCharacter&&(q.selectedCharacter=F.selectedCharacter),S.operator&&this.processOperator(y,T,S),S.motion&&this.processMotion(y,T,S),(S.motion||S.operator)&&this.evalInput(y,T),q.repeat=W||1,q.repeatIsExplicit=H,q.registerName=F.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,F,S),Un[S.action](y,q,T)},processSearch:function(y,T,S){function F(Le,Ve,st){He.searchHistoryController.pushInput(Le),He.searchHistoryController.reset();try{ze(y,Le,Ve,st)}catch{Ot(y,"Invalid regex: "+Le),A(y);return}jn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){F(Le,!0,!0);var Ve=He.macroModeState;Ve.isRecording&&Ps(Ve,Le)}function H(Le,Ve,st){var Ze=z(Le),tt,bn;Ze=="<Up>"||Ze=="<Down>"?(tt=Ze=="<Up>",bn=Le.target?Le.target.selectionEnd:0,Ve=He.searchHistoryController.nextMatch(Ve,tt)||"",st(Ve),bn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(bn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&He.searchHistoryController.reset();var ct;try{ct=ze(y,Ve,!0,!0)}catch{}ct?y.scrollIntoView(Yt(y,!Y,ct),30):(xr(y),y.scrollTo(be.left,be.top))}function q(Le,Ve,st){var Ze=z(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(He.searchHistoryController.pushInput(Ve),He.searchHistoryController.reset(),ze(y,ae),xr(y),y.scrollTo(be.left,be.top),We.e_stop(Le),A(y),st(),y.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Le):Ze=="<C-u>"&&(We.e_stop(Le),st(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;An(y).setReversed(!Y);var re=Y?"/":"?",ae=An(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=He.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();F(Oe,!0,!1)}else wr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:q});break;case"wordUnderCursor":var ve=ln(y,{noSymbol:!0}),we=!0;if(ve||(ve=ln(y,{noSymbol:!1}),we=!1),!ve){Ot(y,"No word under cursor"),A(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=un(Oe),He.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,T,S){function F(H){He.exCommandHistoryController.pushInput(H),He.exCommandHistoryController.reset(),Ir.processCommand(y,H),y.state.vim&&A(y)}function W(H,q,Y){var Z=z(H),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(He.exCommandHistoryController.pushInput(q),He.exCommandHistoryController.reset(),We.e_stop(H),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(H),re=Z=="<Up>",ae=H.target?H.target.selectionEnd:0,q=He.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(ae,H.target.value.length))):Z=="<C-u>"?(We.e_stop(H),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&He.exCommandHistoryController.reset()}S.type=="keyToEx"?Ir.processCommand(y,S.exArgs.input):T.visualMode?wr(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):wr(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,F=S.motion,W=S.motionArgs||{},H=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Ke(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Ke(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Ke(re),ke=Ke(ae),ve,we,Oe;if(H&&this.recordLastEdit(T,S),S.repeatOverride!==void 0?Oe=S.repeatOverride:Oe=S.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),S.selectedCharacter&&(W.selectedCharacter=q.selectedCharacter=S.selectedCharacter),W.repeat=Oe,A(y),F){var Le=mi[F](y,re,W,T,S);if(T.lastMotion=mi[F],!Le)return;if(W.toJumplist){!H&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=He.jumpList,st=Ve.cachedCursor;st?(Kr(y,st,Le),delete Ve.cachedCursor):Kr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Ke(re)),T.visualMode?((!T.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,$n(y),Yr(y,T,"<",et(we,ve)?we:ve),Yr(y,T,">",et(we,ve)?ve:we)):H||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(H){if(q.lastSel){we=ke;var Ze=q.lastSel,tt=Math.abs(Ze.head.line-Ze.anchor.line),bn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?ve=new Ne(ke.line+tt,ke.ch):Ze.visualBlock?ve=new Ne(ke.line+tt,ke.ch+bn):Ze.head.line==Ze.anchor.line?ve=new Ne(ke.line,ke.ch+bn):ve=new Ne(ke.line+tt,ke.ch),T.visualMode=!0,T.visualLine=Ze.visualLine,T.visualBlock=Ze.visualBlock,Z=T.sel={anchor:we,head:ve},$n(y)}else T.visualMode&&(q.lastSel={anchor:Ke(Z.anchor),head:Ke(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ct,Mn,bt,_t,or;if(T.visualMode){ct=lt(Z.head,Z.anchor),Mn=Xt(Z.head,Z.anchor),bt=T.visualLine||q.linewise,_t=T.visualBlock?"block":bt?"line":"char";var Sr=w(y,ct,Mn);if(or=yr(y,{anchor:Sr.start,head:Sr.end},_t),bt){var In=or.ranges;if(_t=="block")for(var V=0;V<In.length;V++)In[V].head.ch=Wt(y,In[V].head.line);else _t=="line"&&(In[0].head=new Ne(In[0].head.line+1,0))}}else{if(ct=Ke(we||ke),Mn=Ke(ve||be),et(Mn,ct)){var X=ct;ct=Mn,Mn=X}bt=W.linewise||q.linewise,bt?Nn(y,ct,Mn):W.forward&&Wn(y,ct,Mn),_t="char";var ie=!W.inclusive||bt,Sr=w(y,ct,Mn);or=yr(y,{anchor:Sr.start,head:Sr.end},_t,ie)}y.setSelections(or.ranges,or.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=bt;var oe=cs[H](y,q,or.ranges,ke,ve);T.visualMode&&gn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var F=He.macroModeState;F.isPlaying||(y.lastEditInputState=T,y.lastEditActionCommand=S,F.lastInsertModeChanges.changes=[],F.lastInsertModeChanges.expectCursorActivityForChange=!1,F.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},mi={moveToTopLine:function(y,T,S){var F=zn(y).top+S.repeat-1;return new Ne(F,Gt(y.getLine(F)))},moveToMiddleLine:function(y){var T=zn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Gt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var F=zn(y).bottom-S.repeat+1;return new Ne(F,Gt(y.getLine(F)))},expandToLine:function(y,T,S){var F=T;return new Ne(F.line+S.repeat-1,1/0)},findNext:function(y,T,S){var F=An(y),W=F.getQuery();if(W){var H=!S.forward;return H=F.isReversed()?!H:H,St(y,W),Yt(y,H,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,F,W){var H=An(y),q=H.getQuery();if(q){var Y=!S.forward;Y=H.isReversed()?!Y:Y;var Z=jt(y,Y,q,S.repeat,F);if(Z){if(W.operator)return Z;var re=Z[0],ae=new Ne(Z[1].line,Z[1].ch-1);if(F.visualMode){(F.visualLine||F.visualBlock)&&(F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=F.sel.anchor;if(be)return H.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,F){var W=Cr(y,F,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Gt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,T,S,F){if(F.visualBlock&&S.sameLine){var W=F.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[F.sel.head,F.sel.anchor]},jumpToMark:function(y,T,S,F){for(var W=T,H=0;H<S.repeat;H++){var q=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=S.forward?et(Z,q):et(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=at(q,W),be=S.forward?xn(q,Z,W):xn(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Gt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var F=T,W=S.repeat,H=S.forward?F.ch+W:F.ch-W;return new Ne(F.line,H)},moveByLines:function(y,T,S,F){var W=T,H=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=F.lastHPos;break;default:F.lastHPos=H}var q=S.repeat+(S.repeatOffset||0),Y=S.forward?W.line+q:W.line-q,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,T,S,F);if(Y>re&&W.line==re)return to(y,T,S,F,!0);var ae=y.ace.session.getFoldLine(Y);return ae&&(S.forward?Y>ae.start.row&&(Y=ae.end.row+1):Y=ae.start.row),S.toFirstChar&&(H=Gt(y.getLine(Y)),F.lastHPos=H),F.lastHSPos=y.charCoords(new Ne(Y,H),"div").left,new Ne(Y,H)},moveByDisplayLines:function(y,T,S,F){var W=T;switch(F.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:F.lastHSPos=y.charCoords(W,"div").left}var H=S.repeat,Z=y.findPosV(W,S.forward?H:-H,"line",F.lastHSPos);if(Z.hitSide)if(S.forward)var q=y.charCoords(Z,"div"),Y={top:q.top+8,left:F.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=F.lastHSPos,Z=y.coordsChar(re,"div")}return F.lastHPos=Z.ch,Z},moveByPage:function(y,T,S){var F=T,W=S.repeat;return y.findPosV(F,S.forward?W:-W,"page")},moveByParagraph:function(y,T,S){var F=S.forward?1:-1;return hi(y,T,S.repeat,F)},moveBySentence:function(y,T,S){var F=S.forward?1:-1;return di(y,T,S.repeat,F)},moveByScroll:function(y,T,S,F){var W=y.getScrollInfo(),H=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,H=mi.moveByDisplayLines(y,T,S,F),!H)return null;var Z=y.charCoords(H,"local");return y.scrollTo(null,W.top+Z.top-Y.top),H},moveByWords:function(y,T,S){return Bn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var F=S.repeat,W=ui(y,F,S.forward,S.selectedCharacter,T),H=S.forward?-1:1;return Gr(H,S),W?(W.ch+=H,W):null},moveToCharacter:function(y,T,S){var F=S.repeat;return Gr(0,S),ui(y,F,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var F=S.repeat;return Ai(y,F,S.forward,S.selectedCharacter)||T},moveToColumn:function(y,T,S,F){var W=S.repeat;return F.lastHPos=W-1,F.lastHSPos=y.charCoords(T,"div").left,Ns(y,W)},moveToEol:function(y,T,S,F){return to(y,T,S,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Gt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,F=S.line,W=S.ch,H=y.getLine(F),q;W<H.length;W++)if(q=H.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var Z=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(F,W+1),{bracketRegex:Z});return re.to}return S},moveToStartOfLine:function(y,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(y,T,S){var F=S.forward?y.lastLine():y.firstLine();return S.repeatIsExplicit&&(F=S.repeat-y.getOption("firstLineNumber")),new Ne(F,Gt(y.getLine(F)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var T=y.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(y,T,S,F){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},q=S.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!S.textObjectInner,Z,re;if(W[q]){if(re=!0,Z=kn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=kn(y,ae.from(),q,Y))}}else if(H[q])re=!0,Z=hr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=ln(y,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(q==="p")if(Z=hi(y,T,S.repeat,0,Y),S.linewise=!0,F.visualMode)F.visualLine||(F.visualLine=!0);else{var ve=F.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(q==="t")Z=Dr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&b(we[T.ch])&&(T.ch-=1);var Oe=Jo(y,T,S.repeat,1,Y),Le=Jo(y,T,S.repeat,-1,Y);p(y.getLine(Le.line)[Le.ch])&&p(y.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Z={start:Le,end:Oe}}return Z?y.state.vim.visualMode?Ht(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var F=He.lastCharacterSearch,W=S.repeat,H=S.forward===F.forward,q=(F.increment?1:0)*(H?-1:1);y.moveH(-q,"char"),S.inclusive=!!H;var Y=ui(y,W,H,F.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},cs={change:function(y,T,S){var F,W,H=y.state.vim,q=S[0].anchor,Y=S[0].head;if(H.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(q,Y),W=y.getSelection(),y.replaceSelection(""),F=q;else{W=y.getSelection();var Z=he("",S.length);y.replaceSelections(Z),F=lt(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=H.lastEditInputState||{};if(re.motion=="moveByWords"&&!p(W)){var ae=/\s+$/.exec(W);ae&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ae[0].length),W=W.slice(0,-ae[0].length))}T.linewise&&(q=new Ne(q.line,Gt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),F=q}He.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Un.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,T,S){var F,W,H=y.state.vim;if(H.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),F=lt(S[0].head,S[0].anchor)}else{var Y=S[0].anchor,Z=S[0].head;T.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Wt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,T.linewise&&(F=mi.moveToFirstNonWhiteSpaceCharacter(y,Y))}return He.registerController.pushText(T.registerName,"delete",W,T.linewise,H.visualBlock),se(y,F)},indent:function(y,T,S){var F=y.state.vim,W=F.visualMode?T.repeat:1;if(F.visualBlock){for(var H=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(H),Y,Z=S.length-1;Z>=0;Z--)if(Y=lt(S[Z].anchor,S[Z].head),T.indentRight)y.replaceRange(q.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ae=0,be=0;be<W;be++){var ke=re[Y.ch+ae];if(ke==" ")ae++;else{if(ke!=" ")break;ae++;for(var ve=1;ve<q.length&&(ke=re[Y.ch+ae],ke===" ");ve++)ae++}}y.replaceRange("",Y,me(Y,0,ae))}return Y}if(y.indentMore)for(var be=0;be<W;be++)T.indentRight?y.indentMore():y.indentLess();else{var we=S[0].anchor.line,Oe=F.visualBlock?S[S.length-1].anchor.line:S[0].head.line;T.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,T.indentRight)}return mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,F,W){if(y.hardWrap){var H=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:H,to:q});return Y>H&&T.linewise&&Y--,T.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,T,S,F,W){for(var H=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<H.length;Z++){var re=H[Z],ae="";if(Y===!0)ae=re.toLowerCase();else if(Y===!1)ae=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);ae+=a(ke)?ke.toLowerCase():ke.toUpperCase()}q.push(ae)}return y.replaceSelections(q),T.shouldMoveCursor?W:!y.state.vim.visualMode&&T.linewise&&S[0].anchor.line+1==S[0].head.line?mi.moveToFirstNonWhiteSpaceCharacter(y,F):T.linewise?F:lt(S[0].anchor,S[0].head)},yank:function(y,T,S,F){var W=y.state.vim,H=y.getSelection(),q=W.visualMode?lt(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):F;return He.registerController.pushText(T.registerName,"yank",H,T.linewise,W.visualBlock),q}},Un={jumpListWalk:function(y,T,S){if(!S.visualMode){var F=T.repeat,W=T.forward,H=He.jumpList,q=H.move(y,W?F:-F),Y=q?q.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,T,S){if(!S.visualMode){var F=T.repeat||1,W=y.defaultTextHeight(),H=y.getScrollInfo().top,q=W*F,Y=T.forward?H+q:H-q,Z=Ke(y.getCursor()),re=y.charCoords(Z,"local");if(T.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ae=Y+y.getScrollInfo().clientHeight;ae<re.bottom?(Z.line-=(re.bottom-ae)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,T){var S=y.getCursor().line,F=y.charCoords(new Ne(S,0),"local"),W=y.getScrollInfo().clientHeight,H=F.top;switch(T.position){case"center":H=F.bottom-W/2;break;case"bottom":var q=new Ne(S,y.getLine(S).length-1),Y=y.charCoords(q,"local"),Z=Y.bottom-H;H=H-W+Z}y.scrollTo(null,H)},replayMacro:function(y,T,S){var F=T.selectedCharacter,W=T.repeat,H=He.macroModeState;for(F=="@"?F=H.latestRegister:H.latestRegister=F;W--;)Fs(y,S,H,F)},enterMacroRecordMode:function(y,T){var S=He.macroModeState,F=T.selectedCharacter;He.registerController.isValidRegister(F)&&S.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,T,S){if(!y.getOption("readOnly")){S.insertMode=!0,S.insertModeRepeat=T&&T.repeat||1;var F=T?T.insertAt:null,W=S.sel,H=T.head||y.getCursor("head"),q=y.listSelections().length;if(F=="eol")H=new Ne(H.line,Wt(y,H.line));else if(F=="bol")H=new Ne(H.line,0);else if(F=="charAfter"){var Y=w(y,H,me(H,0,1));H=Y.end}else if(F=="firstNonBlank"){var Y=w(y,H,mi.moveToFirstNonWhiteSpaceCharacter(y,H));H=Y.end}else if(F=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?H=W.head:H=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?H=me(W.head,0,1):H=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(S.visualMode)return}else F=="lastEdit"&&(H=mn(y)||H);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),He.macroModeState.isPlaying||(y.on("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(H,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Ws)),S.visualMode&&gn(y),Tr(y,H,q)}},toggleVisualMode:function(y,T,S){var F=T.repeat,W=y.getCursor(),H;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),$n(y)):gn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,H=se(y,new Ne(W.line,W.ch+F-1));var q=w(y,W,H);S.sel={anchor:q.start,head:q.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),$n(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Xt(W,H))}},reselectLastSelection:function(y,T,S){var F=S.lastSelection;if(S.visualMode&&Lt(y,S),F){var W=F.anchorMark.find(),H=F.headMark.find();if(!W||!H)return;S.sel={anchor:W,head:H},S.visualMode=!0,S.visualLine=F.visualLine,S.visualBlock=F.visualBlock,$n(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Xt(W,H)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""})}},joinLines:function(y,T,S){var F,W;if(S.visualMode){if(F=y.getCursor("anchor"),W=y.getCursor("head"),et(W,F)){var H=W;W=F,F=H}W.ch=Wt(y,W.line)-1}else{var q=Math.max(T.repeat,2);F=y.getCursor(),W=se(y,new Ne(F.line+q-1,1/0))}for(var Y=0,Z=F.line;Z<W.line;Z++){Y=Wt(y,F.line);var re="",ae=0;if(!T.keepSpaces){var be=y.getLine(F.line+1);ae=be.search(/\S/),ae==-1?ae=be.length:re=" "}y.replaceRange(re,new Ne(F.line,Y),new Ne(F.line+1,ae))}var ke=se(y,new Ne(F.line,Y));S.visualMode&&gn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var F=Ke(y.getCursor());if(F.line===y.firstLine()&&!T.after)y.replaceRange(`
|
|
1447
|
+
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{F.line=T.after?F.line:F.line-1,F.ch=Wt(y,F.line),y.setCursor(F);var W=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var F=this,W=He.registerController.getRegister(T.registerName),H=function(){var q=W.toString();F.continuePaste(y,T,S,q,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(q){F.continuePaste(y,T,S,q,W)},function(){H()}):H()},continuePaste:function(y,T,S,F,W){var H=Ke(y.getCursor());if(F){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(In){var V=In.split(" ").length-1,X=In.split(" ").length-1;return V*q+X*1},Z=y.getLine(y.getCursor().line),re=Y(Z.match(/^\s*/)[0]),ae=F.replace(/\n$/,""),be=F!==ae,ke=Y(F.match(/^\s*/)[0]),F=ae.replace(/^\s*/gm,function(In){var V=re+(Y(In)-ke);if(V<0)return"";if(y.getOption("indentWithTabs")){var X=Math.floor(V/q);return Array(X+1).join(" ")}return Array(V+1).join(" ")});F+=be?`
|
|
1448
1448
|
`:""}if(T.repeat>1)var F=Array(T.repeat+1).join(F);var ve=W.linewise,we=W.blockwise;if(we){F=F.split(`
|
|
1449
1449
|
`),ve&&F.pop();for(var Oe=0;Oe<F.length;Oe++)F[Oe]=F[Oe]==""?" ":F[Oe];H.ch+=T.after?1:0,H.ch=Math.min(Wt(y,H.line),H.ch)}else ve?S.visualMode?F=S.visualLine?F.slice(0,-1):`
|
|
1450
1450
|
`+F.slice(0,F.length-1)+`
|
|
1451
1451
|
`:T.after?(F=`
|
|
1452
|
-
`+F.slice(0,F.length-1),H.ch=Wt(y,H.line)):H.ch=0:H.ch+=T.after?1:0;var Le;if(S.visualMode){S.lastPastedText=F;var Ve,st=je(y,S),Ze=st[0],tt=st[1],bn=y.getSelection(),ct=y.listSelections(),
|
|
1453
|
-
`,new Ne(bt,0));var _t=Wt(y,bt);_t<H.ch&&
|
|
1452
|
+
`+F.slice(0,F.length-1),H.ch=Wt(y,H.line)):H.ch=0:H.ch+=T.after?1:0;var Le;if(S.visualMode){S.lastPastedText=F;var Ve,st=je(y,S),Ze=st[0],tt=st[1],bn=y.getSelection(),ct=y.listSelections(),Mn=new Array(ct.length).join("1").split("1");S.lastSelection&&(Ve=S.lastSelection.headMark.find()),He.registerController.unnamedRegister.setText(bn),we?(y.replaceSelections(Mn),tt=new Ne(Ze.line+F.length-1,Ze.ch),y.setCursor(Ze),Zn(y,tt),y.replaceSelections(F),Le=Ze):S.visualBlock?(y.replaceSelections(Mn),y.setCursor(Ze),y.replaceRange(F,Ze,Ze),Le=Ze):(y.replaceRange(F,Ze,tt),Le=y.posFromIndex(y.indexFromPos(Ze)+F.length-1)),Ve&&(S.lastSelection.headMark=y.setBookmark(Ve)),ve&&(Le.ch=0)}else if(we){y.setCursor(H);for(var Oe=0;Oe<F.length;Oe++){var bt=H.line+Oe;bt>y.lastLine()&&y.replaceRange(`
|
|
1453
|
+
`,new Ne(bt,0));var _t=Wt(y,bt);_t<H.ch&&On(y,bt,H.ch)}y.setCursor(H),Zn(y,new Ne(H.line+F.length-1,H.ch)),y.replaceSelections(F),Le=H}else if(y.replaceRange(F,H),ve){var bt=T.after?H.line+1:H.line;Le=new Ne(bt,Gt(y.getLine(bt)))}else Le=Ke(H),/\n/.test(F)||(Le.ch+=F.length-(T.after?1:0));S.visualMode&&gn(y,!1),y.setCursor(Le)}},undo:function(y,T){y.operation(function(){Xe(y,We.commands.undo,T.repeat)(),y.setCursor(se(y,y.getCursor("start")))})},redo:function(y,T){Xe(y,We.commands.redo,T.repeat)()},setRegister:function(y,T,S){S.inputState.registerName=T.selectedCharacter},insertRegister:function(y,T,S){var F=T.selectedCharacter,W=He.registerController.getRegister(F),H=W&&W.toString();H&&y.replaceSelection(H)},oneNormalCommand:function(y,T,S){Pr(y,!0),S.insertModeReturn=!0,We.on(y,"vim-command-done",function F(){S.visualMode||(S.insertModeReturn&&(S.insertModeReturn=!1,S.insertMode||Un.enterInsertMode(y,{},S)),We.off(y,"vim-command-done",F))})},setMark:function(y,T,S){var F=T.selectedCharacter;Yr(y,S,F,y.getCursor())},replace:function(y,T,S){var F=T.selectedCharacter,W=y.getCursor(),H,q,Y=y.listSelections();if(S.visualMode)W=y.getCursor("start"),q=y.getCursor("end");else{var Z=y.getLine(W.line);H=W.ch+T.repeat,H>Z.length&&(H=Z.length),q=new Ne(W.line,H)}var re=w(y,W,q);if(W=re.start,q=re.end,F==`
|
|
1454
1454
|
`)S.visualMode||y.replaceRange("",W,q),(We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent)(y);else{var ae=y.getRange(W,q);if(ae=ae.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F),ae=ae.replace(/[^\n]/g,F),S.visualBlock){var be=new Array(y.getOption("tabSize")+1).join(" ");ae=y.getSelection(),ae=ae.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F),ae=ae.replace(/\t/g,be).replace(/[^\n]/g,F).split(`
|
|
1455
1455
|
`),y.replaceSelections(ae)}else y.replaceRange(ae,W,q);S.visualMode?(W=et(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,y.setCursor(W),gn(y,!1)):y.setCursor(me(q,0,-1))}},incrementNumberToken:function(y,T){for(var S=y.getCursor(),F=y.getLine(S.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,H,q,Y,Z;(H=W.exec(F))!==null&&(q=H.index,Y=q+H[0].length,!(S.ch<Y)););if(!(!T.backtrack&&Y<=S.ch)&&H){var re=H[2]||H[4],ae=H[3]||H[5],be=T.increase?1:-1,ke={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],ve=parseInt(H[1]+ae,ke)+be*T.repeat;Z=ve.toString(ke);var we=re?new Array(ae.length-Z.length+1+H[1].length).join("0"):"";Z.charAt(0)==="-"?Z="-"+re+we+Z.substr(1):Z=re+we+Z;var Oe=new Ne(S.line,q),Le=new Ne(S.line,Y);y.replaceRange(Z,Oe,Le),y.setCursor(new Ne(S.line,q+Z.length-1))}},repeatLastEdit:function(y,T,S){var F=S.lastEditInputState;if(F){var W=T.repeat;W&&T.repeatIsExplicit?S.lastEditInputState.repeatOverride=W:W=S.lastEditInputState.repeatOverride||W,wa(y,S,W,!1)}},indent:function(y,T){y.indentLine(y.getCursor().line,T.indentRight)},exitInsertMode:Pr},_i={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},$i={bracket:{isComplete:function(y){if(y.nextCh===y.symb){if(y.depth++,y.depth>=1)return!0}else y.nextCh===y.reverseSymb&&y.depth--;return!1}},section:{init:function(y){y.curMoveThrough=!0,y.symb=(y.forward?"]":"[")===y.symb?"{":"}"},isComplete:function(y){return y.index===0&&y.nextCh===y.symb}},comment:{isComplete:function(y){var T=y.lastCh==="*"&&y.nextCh==="/";return y.lastCh=y.nextCh,T}},method:{init:function(y){y.symb=y.symb==="m"?"{":"}",y.reverseSymb=y.symb==="{"?"}":"{"},isComplete:function(y){return y.nextCh===y.symb}},preprocess:{init:function(y){y.index=0},isComplete:function(y){if(y.nextCh==="#"){var T=y.lineText.match(/^#(\w+)/)[1];if(T==="endif"){if(y.forward&&y.depth===0)return!0;y.depth++}else if(T==="if"){if(!y.forward&&y.depth===0)return!0;y.depth--}if(T==="else"&&y.depth===0)return!0}return!1}}};R("pcre",!0,"boolean"),pi.prototype={getQuery:function(){return He.query},setQuery:function(y){He.query=y},getOverlay:function(){return this.searchOverlay},setOverlay:function(y){this.searchOverlay=y},isReversed:function(){return He.isReversed},setReversed:function(y){He.isReversed=y},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(y){this.annotate=y}};var zi={"\\n":`
|
|
1456
1456
|
`,"\\r":"\r","\\t":" "},kr={"\\/":"/","\\\\":"\\","\\n":`
|
|
1457
|
-
`,"\\r":"\r","\\t":" ","\\&":"&"},Ar=0,Mr=function(){this.buildCommandMap_()};Mr.prototype={processCommand:function(y,T,S){var F=this;y.operation(function(){y.curOp.isVimOp=!0,F._processCommand(y,T,S)})},_processCommand:function(y,T,S){var F=y.state.vim,W=He.registerController.getRegister(":"),H=W.toString(),q=new We.StringStream(T);W.setText(T);var Y=S||{};Y.input=T;try{this.parseInput_(y,q,Y)}catch(ae){throw Ot(y,ae.toString()),ae}F.visualMode&&gn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(H),this.parseCommandArgs_(q,Y,Z),Z.type=="exToKey"){I(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Ot(y,'Not an editor command ":'+T+'"');return}try{zs[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ae){throw Ot(y,ae.toString()),ae}},parseInput_:function(y,T,S){if(T.eatWhile(":"),T.eat("%")?(S.line=y.firstLine(),S.lineEnd=y.lastLine()):(S.line=this.parseLineSpec_(y,T),S.line!==void 0&&T.eat(",")&&(S.lineEnd=this.parseLineSpec_(y,T))),S.line==null)if(y.state.vim.visualMode){var F=Cr(y,y.state.vim,"<");S.selectionLine=F&&F.line,F=Cr(y,y.state.vim,">"),S.selectionLineEnd=F&&F.line}else S.selectionLine=y.getCursor().line;else S.selectionLine=S.line,S.selectionLineEnd=S.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?S.commandName=W[1]:S.commandName=T.match(/.*/)[0],S},parseLineSpec_:function(y,T){var S=T.match(/^(\d+)/);if(S)return parseInt(S[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,y.getCursor().line);case"$":return this.parseLineSpecOffset_(T,y.lastLine());case"'":var F=T.next(),W=Cr(y,y.state.vim,F);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,y.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(y,T){var S=y.match(/^([+-])?(\d+)/);if(S){var F=parseInt(S[2],10);S[1]=="-"?T-=F:T+=F}return T},parseCommandArgs_:function(y,T,S){if(!y.eol()){T.argString=y.match(/.*/)[0];var F=S.argDelimiter||/\s+/,W=vr(T.argString).split(F);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(y){for(var T=y.length;T>0;T--){var S=y.substring(0,T);if(this.commandMap_[S]){var F=this.commandMap_[S];if(F.name.indexOf(y)===0)return F}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<Si.length;y++){var T=Si[y],S=T.shortName||T.name;this.commandMap_[S]=T}},map:function(y,T,S,F){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var W=y.substring(1);T!=":"&&T.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:T.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:T,user:!0}}else{var H={keys:y,type:"keyToKey",toKeys:T,noremap:!!F};S&&(H.context=S),Dn.unshift(H)}},unmap:function(y,T){if(y!=":"&&y.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var S=y.substring(1);if(this.commandMap_[S]&&this.commandMap_[S].user)return delete this.commandMap_[S],!0}else for(var F=y,W=0;W<Dn.length;W++)if(F==Dn[W].keys&&Dn[W].context===T)return Dn.splice(W,1),!0}};var zs={colorscheme:function(y,T){if(!T.args||T.args.length<1){Ot(y,y.getOption("theme"));return}y.setOption("theme",T.args[0])},map:function(y,T,S,F){var W=T.args;if(!W||W.length<2){y&&Ot(y,"Invalid mapping: "+T.input);return}Ir.map(W[0],W[1],S,F)},imap:function(y,T){this.map(y,T,"insert")},nmap:function(y,T){this.map(y,T,"normal")},vmap:function(y,T){this.map(y,T,"visual")},omap:function(y,T){this.map(y,T,"operatorPending")},noremap:function(y,T){this.map(y,T,void 0,!0)},inoremap:function(y,T){this.map(y,T,"insert",!0)},nnoremap:function(y,T){this.map(y,T,"normal",!0)},vnoremap:function(y,T){this.map(y,T,"visual",!0)},onoremap:function(y,T){this.map(y,T,"operatorPending",!0)},unmap:function(y,T,S){var F=T.args;(!F||F.length<1||!Ir.unmap(F[0],S))&&y&&Ot(y,"No such mapping: "+T.input)},mapclear:function(y,T){vt.mapclear()},imapclear:function(y,T){vt.mapclear("insert")},nmapclear:function(y,T){vt.mapclear("normal")},vmapclear:function(y,T){vt.mapclear("visual")},omapclear:function(y,T){vt.mapclear("operatorPending")},move:function(y,T){jn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(y,T){var S=T.args,F=T.setCfg||{};if(!S||S.length<1){y&&Ot(y,"Invalid mapping: "+T.input);return}var W=S[0].split("="),H=W[0],q=W[1],Y=!1,Z=!1;if(H.charAt(H.length-1)=="?"){if(q)throw Error("Trailing characters: "+T.argString);H=H.substring(0,H.length-1),Y=!0}else H.charAt(H.length-1)=="!"&&(H=H.substring(0,H.length-1),Z=!0);q===void 0&&H.substring(0,2)=="no"&&(H=H.substring(2),q=!1);var re=
|
|
1457
|
+
`,"\\r":"\r","\\t":" ","\\&":"&"},Ar=0,Mr=function(){this.buildCommandMap_()};Mr.prototype={processCommand:function(y,T,S){var F=this;y.operation(function(){y.curOp.isVimOp=!0,F._processCommand(y,T,S)})},_processCommand:function(y,T,S){var F=y.state.vim,W=He.registerController.getRegister(":"),H=W.toString(),q=new We.StringStream(T);W.setText(T);var Y=S||{};Y.input=T;try{this.parseInput_(y,q,Y)}catch(ae){throw Ot(y,ae.toString()),ae}F.visualMode&&gn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(H),this.parseCommandArgs_(q,Y,Z),Z.type=="exToKey"){I(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Ot(y,'Not an editor command ":'+T+'"');return}try{zs[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ae){throw Ot(y,ae.toString()),ae}},parseInput_:function(y,T,S){if(T.eatWhile(":"),T.eat("%")?(S.line=y.firstLine(),S.lineEnd=y.lastLine()):(S.line=this.parseLineSpec_(y,T),S.line!==void 0&&T.eat(",")&&(S.lineEnd=this.parseLineSpec_(y,T))),S.line==null)if(y.state.vim.visualMode){var F=Cr(y,y.state.vim,"<");S.selectionLine=F&&F.line,F=Cr(y,y.state.vim,">"),S.selectionLineEnd=F&&F.line}else S.selectionLine=y.getCursor().line;else S.selectionLine=S.line,S.selectionLineEnd=S.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?S.commandName=W[1]:S.commandName=T.match(/.*/)[0],S},parseLineSpec_:function(y,T){var S=T.match(/^(\d+)/);if(S)return parseInt(S[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,y.getCursor().line);case"$":return this.parseLineSpecOffset_(T,y.lastLine());case"'":var F=T.next(),W=Cr(y,y.state.vim,F);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,y.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(y,T){var S=y.match(/^([+-])?(\d+)/);if(S){var F=parseInt(S[2],10);S[1]=="-"?T-=F:T+=F}return T},parseCommandArgs_:function(y,T,S){if(!y.eol()){T.argString=y.match(/.*/)[0];var F=S.argDelimiter||/\s+/,W=vr(T.argString).split(F);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(y){for(var T=y.length;T>0;T--){var S=y.substring(0,T);if(this.commandMap_[S]){var F=this.commandMap_[S];if(F.name.indexOf(y)===0)return F}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<Si.length;y++){var T=Si[y],S=T.shortName||T.name;this.commandMap_[S]=T}},map:function(y,T,S,F){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var W=y.substring(1);T!=":"&&T.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:T.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:T,user:!0}}else{var H={keys:y,type:"keyToKey",toKeys:T,noremap:!!F};S&&(H.context=S),Dn.unshift(H)}},unmap:function(y,T){if(y!=":"&&y.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var S=y.substring(1);if(this.commandMap_[S]&&this.commandMap_[S].user)return delete this.commandMap_[S],!0}else for(var F=y,W=0;W<Dn.length;W++)if(F==Dn[W].keys&&Dn[W].context===T)return Dn.splice(W,1),!0}};var zs={colorscheme:function(y,T){if(!T.args||T.args.length<1){Ot(y,y.getOption("theme"));return}y.setOption("theme",T.args[0])},map:function(y,T,S,F){var W=T.args;if(!W||W.length<2){y&&Ot(y,"Invalid mapping: "+T.input);return}Ir.map(W[0],W[1],S,F)},imap:function(y,T){this.map(y,T,"insert")},nmap:function(y,T){this.map(y,T,"normal")},vmap:function(y,T){this.map(y,T,"visual")},omap:function(y,T){this.map(y,T,"operatorPending")},noremap:function(y,T){this.map(y,T,void 0,!0)},inoremap:function(y,T){this.map(y,T,"insert",!0)},nnoremap:function(y,T){this.map(y,T,"normal",!0)},vnoremap:function(y,T){this.map(y,T,"visual",!0)},onoremap:function(y,T){this.map(y,T,"operatorPending",!0)},unmap:function(y,T,S){var F=T.args;(!F||F.length<1||!Ir.unmap(F[0],S))&&y&&Ot(y,"No such mapping: "+T.input)},mapclear:function(y,T){vt.mapclear()},imapclear:function(y,T){vt.mapclear("insert")},nmapclear:function(y,T){vt.mapclear("normal")},vmapclear:function(y,T){vt.mapclear("visual")},omapclear:function(y,T){vt.mapclear("operatorPending")},move:function(y,T){jn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(y,T){var S=T.args,F=T.setCfg||{};if(!S||S.length<1){y&&Ot(y,"Invalid mapping: "+T.input);return}var W=S[0].split("="),H=W[0],q=W[1],Y=!1,Z=!1;if(H.charAt(H.length-1)=="?"){if(q)throw Error("Trailing characters: "+T.argString);H=H.substring(0,H.length-1),Y=!0}else H.charAt(H.length-1)=="!"&&(H=H.substring(0,H.length-1),Z=!0);q===void 0&&H.substring(0,2)=="no"&&(H=H.substring(2),q=!1);var re=Ut[H]&&Ut[H].type=="boolean";if(re&&(Z?q=!k(H,y,F):q==null&&(q=!0)),!re&&q===void 0||Y){var ae=k(H,y,F);ae instanceof Error?Ot(y,ae.message):ae===!0||ae===!1?Ot(y," "+(ae?"":"no")+H):Ot(y," "+H+"="+ae)}else{var be=_(H,q,y,F);be instanceof Error&&Ot(y,be.message)}},setlocal:function(y,T){T.setCfg={scope:"local"},this.set(y,T)},setglobal:function(y,T){T.setCfg={scope:"global"},this.set(y,T)},registers:function(y,T){var S=T.args,F=He.registerController.registers,W=`----------Registers----------
|
|
1458
1458
|
|
|
1459
1459
|
`;if(S){var H;S=S.join("");for(var q=0;q<S.length;q++)if(H=S.charAt(q),!!He.registerController.isValidRegister(H)){var Y=F[H]||new B;W+='"'+H+" "+Y.toString()+`
|
|
1460
1460
|
`}}else for(var H in F){var Z=F[H].toString();Z.length&&(W+='"'+H+" "+Z+`
|
|
1461
|
-
`)}Ot(y,W)},sort:function(y,T){function S(){if(T.argString){var bt=new We.StringStream(T.argString);if(bt.eat("!")&&(H=!0),bt.eol())return;if(!bt.eatSpace())return"Invalid arguments";var _t=bt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!_t&&!bt.eol())return"Invalid arguments";if(_t[1]){q=_t[1].indexOf("i")!=-1,Y=_t[1].indexOf("u")!=-1;var or=_t[1].indexOf("d")!=-1||_t[1].indexOf("n")!=-1&&1,Sr=_t[1].indexOf("x")!=-1&&1,
|
|
1462
|
-
`),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ve=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,st=[],Ze=[];if(Z||re)for(var tt=0;tt<Oe.length;tt++){var bn=re?Oe[tt].match(re):null;bn&&bn[0]!=""?st.push(bn):!re&&Le.exec(Oe[tt])?st.push(Oe[tt]):Ze.push(Oe[tt])}else Ze=Oe;if(st.sort(re?W:F),re)for(var tt=0;tt<st.length;tt++)st[tt]=st[tt].input;else Z||Ze.sort(F);if(Oe=H?st.concat(Ze):Ze.concat(st),Y){var ct=Oe,
|
|
1463
|
-
`),ve,we)}},vglobal:function(y,T){this.global(y,T)},normal:function(y,T){var S=T.argString;if(S&&S[0]=="!"&&(S=S.slice(1),hn=!0),S=S.trimStart(),!S){Ot(y,"Argument is required.");return}var F=T.line;if(typeof F=="number")for(var W=isNaN(T.lineEnd)?F:T.lineEnd,H=F;H<=W;H++)y.setCursor(H,0),I(y,T.argString.trimStart()),y.state.vim.insertMode&&Pr(y,!0);else I(y,T.argString.trimStart()),y.state.vim.insertMode&&Pr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Ot(y,"Regular Expression missing from global");return}var F=T.commandName[0]==="v";S[0]==="!"&&T.commandName[0]==="g"&&(F=!0,S=S.slice(1));var W=T.line!==void 0?T.line:y.firstLine(),H=T.lineEnd||T.line||y.lastLine(),q
|
|
1464
|
-
`));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],Ve=y.getLineNumber(Le);if(Ve==null){Oe();return}var st=Ve+1+Z;Ir.processCommand(y,st,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,T){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var S=T.argString,F=S?fi(S,S[0]):[],W,H="",q,Y,Z,re=!1,ae=!1;if(F.length)W=F[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),H=F[1],H!==void 0&&(k("pcre")?H=Xr(H.replace(/([^\\])&/g,"$1$$&")):H=es(H),He.lastSubstituteReplacePart=H),q=F[2]?F[2].split(" "):[];else if(S&&S.length){Ot(y,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Z=parseInt(q[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ae=!0),k("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{ze(y,W,!0,!0)}catch{Ot(y,"Invalid regex: "+W);return}if(H=H||He.lastSubstituteReplacePart,H===void 0){Ot(y,"No previous substitute regular expression");return}var be=kn(y),ke=be.getQuery(),ve=T.line!==void 0?T.line:y.getCursor().line,we=T.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Le=y.getSearchCursor(ke,Oe);no(y,re,ae,ve,we,Le,ke,H,T.callback)},startinsert:function(y,T){I(y,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){xr(y)},yank:function(y){var T=Ke(y.getCursor()),S=T.line,F=y.getLine(S);He.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;cs.delete(y,{linewise:!0},[{anchor:new Ne(S,0),head:new Ne(F+1,0)}])},join:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;y.setCursor(new Ne(S,0)),Un.joinLines(y,{repeat:F-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!vr(T.argString)){Ot(y,"Argument required");return}for(var S=y.state.vim,F=new We.StringStream(vr(T.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var H=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var q=H,Y=F.next();if(!(u(q)&&u(Y)||a(q)&&a(Y))){Ot(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Ot(y,"Invalid argument: "+T.argString.substring(W));return}for(var ae=0;ae<=re-Z;ae++){var be=String.fromCharCode(Z+ae);delete S.marks[be]}}else delete S.marks[H]}}},Ir=new Mr;R("insertModeEscKeysTimeout",200,"number"),We.Vim=vt;var Wr={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Ti=vt.handleKey.bind(vt);vt.handleKey=function(y,T,S){return y.operation(function(){return Ti(y,T,S)},!0)},D(),r.CodeMirror=We;var Mi=vt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,F,W){var H=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!H.insertMode){var ae=F.cursor?fr.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!H.insertMode&&H.status&&(Y/=2,Z+=Y),ro.translate(y,re,Z),ro.setStyle(y.style,"width",q+"px"),ro.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Mi(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,F,W){var H=y.editor,q=H.state.cm,Y=Mi(q);if(F!=-1){if(Y.insertMode||(T==-1?(S.charCodeAt(0)>255&&y.inputKey&&(S=y.inputKey,S&&y.inputHash==4&&(S=S.toUpperCase())),y.inputChar=S):T==4||T==0?y.inputKey==S&&y.inputHash==T&&y.inputChar?(S=y.inputChar,T=-1):(y.inputChar=null,y.inputKey=S,y.inputHash=T):y.inputChar=y.inputKey=null),q.state.overwrite&&Y.insertMode&&S=="backspace"&&T==0)return{command:"gotoleft"};if(S=="c"&&T==1&&!Lo.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():q.operation(function(){gn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=kn(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Bs(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Eo(q,be,"user");return Y=Mi(q),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),q._signal("changeStatus"),!ke&&(T!=-1||ae)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function T(){var F=Mi(S).insertMode;S.ace.renderer.setStyle("normal-mode",!F),y.textInput.setCommandMode(!F),y.renderer.$keepTextAreaAtCursor=F,y.renderer.$blockCursor=!F}y.state||(y.state={});var S=new We(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Mi(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Mi(S).status=null,S.ace._signal("changeStatus"),S.ace.session.markUndoGroup())}),S.on("changeStatus",function(){S.ace.renderer.updateCursor(),S.ace._signal("changeStatus")}),S.on("vim-mode-change",function(){S.virtualSelectionMode()||(T(),S._signal("changeStatus"))}),T(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(S)},detach:function(y){var T=y.state.cm;d(T),T.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var T=y.state.cm,S=Mi(T);if(S.insertMode)return"INSERT";var F="";return S.visualMode&&(F+="VISUAL",S.visualLine&&(F+=" LINE"),S.visualBlock&&(F+=" BLOCK")),S.status&&(F+=(F?" ":"")+S.status),F}},vt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),vt.defineEx("write","w",function(){console.log(":write is not implemented")}),Dn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Dn.push({keys:"gq",type:"operator",operator:"hardWrap"}),vt.defineOperator("hardWrap",function(y,T,S,F,W){var H=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,wo(y.ace,{startRow:H,endRow:q}),Ne(q,0)}),R("textwidth",void 0,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.ace.getOption("printMarginColumn");return S}var F=Math.round(y);F>1&&T.ace.setOption("printMarginColumn",F)}}),Un.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Fi):Fi(null,y.ace)},Un.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},No=Dn.length,r.handler.defaultKeymap=Dn,r.handler.actions=Un,r.Vim=vt}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(Sg)),Sg.exports}xk();var $g={},Tg;function Ck(){return Tg||(Tg=1,function(n){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return f(m(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function f(w,h){var d=1,s=w.length,l,u="",c,i,a,p,b,x,R,_;for(c=0;c<s;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(a=w[c],a.keys)for(l=h[d],i=0;i<a.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[i],a.keys[i-1]));l=l[a.keys[i]]}else a.param_no?l=h[a.param_no]:l=h[d++];if(t.not_type.test(a.type)&&t.not_primitive.test(a.type)&&l instanceof Function&&(l=l()),t.numeric_arg.test(a.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(t.number.test(a.type)&&(R=l>=0),a.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,a.width?parseInt(a.width):0);break;case"e":l=a.precision?parseFloat(l).toExponential(a.precision):parseFloat(l).toExponential();break;case"f":l=a.precision?parseFloat(l).toFixed(a.precision):parseFloat(l);break;case"g":l=a.precision?String(Number(l.toPrecision(a.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=a.precision?l.substring(0,a.precision):l;break;case"t":l=String(!!l),l=a.precision?l.substring(0,a.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=a.precision?l.substring(0,a.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=a.precision?l.substring(0,a.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}t.json.test(a.type)?u+=l:(t.number.test(a.type)&&(!R||a.sign)?(_=R?"+":"-",l=l.toString().replace(t.sign,"")):_="",b=a.pad_char?a.pad_char==="0"?"0":a.pad_char.charAt(1):" ",x=a.width-(_+l).length,p=a.width&&x>0?b.repeat(x):"",u+=a.align?_+l+p:b==="0"?_+p+l:p+_+l)}return u}var g=Object.create(null);function m(w){if(g[w])return g[w];for(var h=w,d,s=[],l=0;h;){if((d=t.text.exec(h))!==null)s.push(d[0]);else if((d=t.modulo.exec(h))!==null)s.push("%");else if((d=t.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=t.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=t.key_access.exec(c))!==null)u.push(i[1]);else if((i=t.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=s}n.sprintf=e,n.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()}($g)),$g}Ck();var Gl={exports:{}};/**
|
|
1461
|
+
`)}Ot(y,W)},sort:function(y,T){function S(){if(T.argString){var bt=new We.StringStream(T.argString);if(bt.eat("!")&&(H=!0),bt.eol())return;if(!bt.eatSpace())return"Invalid arguments";var _t=bt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!_t&&!bt.eol())return"Invalid arguments";if(_t[1]){q=_t[1].indexOf("i")!=-1,Y=_t[1].indexOf("u")!=-1;var or=_t[1].indexOf("d")!=-1||_t[1].indexOf("n")!=-1&&1,Sr=_t[1].indexOf("x")!=-1&&1,In=_t[1].indexOf("o")!=-1&&1;if(or+Sr+In>1)return"Invalid arguments";Z=or&&"decimal"||Sr&&"hex"||In&&"octal"}_t[2]&&(re=new RegExp(_t[2].substr(1,_t[2].length-2),q?"i":""))}}function F(bt,_t){if(H){var or;or=bt,bt=_t,_t=or}q&&(bt=bt.toLowerCase(),_t=_t.toLowerCase());var Sr=Z&&Le.exec(bt),In=Z&&Le.exec(_t);return Sr?(Sr=parseInt((Sr[1]+Sr[2]).toLowerCase(),Ve),In=parseInt((In[1]+In[2]).toLowerCase(),Ve),Sr-In):bt<_t?-1:1}function W(bt,_t){if(H){var or;or=bt,bt=_t,_t=or}return q&&(bt[0]=bt[0].toLowerCase(),_t[0]=_t[0].toLowerCase()),bt[0]<_t[0]?-1:1}var H,q,Y,Z,re,ae=S();if(ae){Ot(y,ae+": "+T.argString);return}var be=T.line||y.firstLine(),ke=T.lineEnd||T.line||y.lastLine();if(be!=ke){var ve=new Ne(be,0),we=new Ne(ke,Wt(y,ke)),Oe=y.getRange(ve,we).split(`
|
|
1462
|
+
`),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ve=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,st=[],Ze=[];if(Z||re)for(var tt=0;tt<Oe.length;tt++){var bn=re?Oe[tt].match(re):null;bn&&bn[0]!=""?st.push(bn):!re&&Le.exec(Oe[tt])?st.push(Oe[tt]):Ze.push(Oe[tt])}else Ze=Oe;if(st.sort(re?W:F),re)for(var tt=0;tt<st.length;tt++)st[tt]=st[tt].input;else Z||Ze.sort(F);if(Oe=H?st.concat(Ze):Ze.concat(st),Y){var ct=Oe,Mn;Oe=[];for(var tt=0;tt<ct.length;tt++)ct[tt]!=Mn&&Oe.push(ct[tt]),Mn=ct[tt]}y.replaceRange(Oe.join(`
|
|
1463
|
+
`),ve,we)}},vglobal:function(y,T){this.global(y,T)},normal:function(y,T){var S=T.argString;if(S&&S[0]=="!"&&(S=S.slice(1),hn=!0),S=S.trimStart(),!S){Ot(y,"Argument is required.");return}var F=T.line;if(typeof F=="number")for(var W=isNaN(T.lineEnd)?F:T.lineEnd,H=F;H<=W;H++)y.setCursor(H,0),I(y,T.argString.trimStart()),y.state.vim.insertMode&&Pr(y,!0);else I(y,T.argString.trimStart()),y.state.vim.insertMode&&Pr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Ot(y,"Regular Expression missing from global");return}var F=T.commandName[0]==="v";S[0]==="!"&&T.commandName[0]==="g"&&(F=!0,S=S.slice(1));var W=T.line!==void 0?T.line:y.firstLine(),H=T.lineEnd||T.line||y.lastLine(),q=Tn(S),Y=S,Z;if(q.length&&(Y=q[0],Z=q.slice(1,q.length).join("/")),Y)try{ze(y,Y,!0,!0)}catch{Ot(y,"Invalid regex: "+Y);return}for(var re=An(y).getQuery(),ae=[],be=W;be<=H;be++){var ke=y.getLine(be),ve=re.test(ke);ve!==F&&ae.push(Z?y.getLineHandle(be):ke)}if(!Z){Ot(y,ae.join(`
|
|
1464
|
+
`));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],Ve=y.getLineNumber(Le);if(Ve==null){Oe();return}var st=Ve+1+Z;Ir.processCommand(y,st,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,T){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var S=T.argString,F=S?fi(S,S[0]):[],W,H="",q,Y,Z,re=!1,ae=!1;if(F.length)W=F[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),H=F[1],H!==void 0&&(k("pcre")?H=Xr(H.replace(/([^\\])&/g,"$1$$&")):H=es(H),He.lastSubstituteReplacePart=H),q=F[2]?F[2].split(" "):[];else if(S&&S.length){Ot(y,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Z=parseInt(q[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ae=!0),k("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{ze(y,W,!0,!0)}catch{Ot(y,"Invalid regex: "+W);return}if(H=H||He.lastSubstituteReplacePart,H===void 0){Ot(y,"No previous substitute regular expression");return}var be=An(y),ke=be.getQuery(),ve=T.line!==void 0?T.line:y.getCursor().line,we=T.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Le=y.getSearchCursor(ke,Oe);no(y,re,ae,ve,we,Le,ke,H,T.callback)},startinsert:function(y,T){I(y,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){xr(y)},yank:function(y){var T=Ke(y.getCursor()),S=T.line,F=y.getLine(S);He.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;cs.delete(y,{linewise:!0},[{anchor:new Ne(S,0),head:new Ne(F+1,0)}])},join:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;y.setCursor(new Ne(S,0)),Un.joinLines(y,{repeat:F-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!vr(T.argString)){Ot(y,"Argument required");return}for(var S=y.state.vim,F=new We.StringStream(vr(T.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var H=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var q=H,Y=F.next();if(!(u(q)&&u(Y)||a(q)&&a(Y))){Ot(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Ot(y,"Invalid argument: "+T.argString.substring(W));return}for(var ae=0;ae<=re-Z;ae++){var be=String.fromCharCode(Z+ae);delete S.marks[be]}}else delete S.marks[H]}}},Ir=new Mr;R("insertModeEscKeysTimeout",200,"number"),We.Vim=vt;var Wr={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Ti=vt.handleKey.bind(vt);vt.handleKey=function(y,T,S){return y.operation(function(){return Ti(y,T,S)},!0)},D(),r.CodeMirror=We;var Mi=vt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,F,W){var H=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!H.insertMode){var ae=F.cursor?fr.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!H.insertMode&&H.status&&(Y/=2,Z+=Y),ro.translate(y,re,Z),ro.setStyle(y.style,"width",q+"px"),ro.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Mi(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,F,W){var H=y.editor,q=H.state.cm,Y=Mi(q);if(F!=-1){if(Y.insertMode||(T==-1?(S.charCodeAt(0)>255&&y.inputKey&&(S=y.inputKey,S&&y.inputHash==4&&(S=S.toUpperCase())),y.inputChar=S):T==4||T==0?y.inputKey==S&&y.inputHash==T&&y.inputChar?(S=y.inputChar,T=-1):(y.inputChar=null,y.inputKey=S,y.inputHash=T):y.inputChar=y.inputKey=null),q.state.overwrite&&Y.insertMode&&S=="backspace"&&T==0)return{command:"gotoleft"};if(S=="c"&&T==1&&!Lo.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():q.operation(function(){gn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=An(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Bs(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Eo(q,be,"user");return Y=Mi(q),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),q._signal("changeStatus"),!ke&&(T!=-1||ae)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function T(){var F=Mi(S).insertMode;S.ace.renderer.setStyle("normal-mode",!F),y.textInput.setCommandMode(!F),y.renderer.$keepTextAreaAtCursor=F,y.renderer.$blockCursor=!F}y.state||(y.state={});var S=new We(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Mi(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Mi(S).status=null,S.ace._signal("changeStatus"),S.ace.session.markUndoGroup())}),S.on("changeStatus",function(){S.ace.renderer.updateCursor(),S.ace._signal("changeStatus")}),S.on("vim-mode-change",function(){S.virtualSelectionMode()||(T(),S._signal("changeStatus"))}),T(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(S)},detach:function(y){var T=y.state.cm;d(T),T.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var T=y.state.cm,S=Mi(T);if(S.insertMode)return"INSERT";var F="";return S.visualMode&&(F+="VISUAL",S.visualLine&&(F+=" LINE"),S.visualBlock&&(F+=" BLOCK")),S.status&&(F+=(F?" ":"")+S.status),F}},vt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),vt.defineEx("write","w",function(){console.log(":write is not implemented")}),Dn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Dn.push({keys:"gq",type:"operator",operator:"hardWrap"}),vt.defineOperator("hardWrap",function(y,T,S,F,W){var H=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,xo(y.ace,{startRow:H,endRow:q}),Ne(q,0)}),R("textwidth",void 0,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.ace.getOption("printMarginColumn");return S}var F=Math.round(y);F>1&&T.ace.setOption("printMarginColumn",F)}}),Un.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Fi):Fi(null,y.ace)},Un.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},No=Dn.length,r.handler.defaultKeymap=Dn,r.handler.actions=Un,r.Vim=vt}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(Sg)),Sg.exports}xk();var $g={},Tg;function Ck(){return Tg||(Tg=1,function(n){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return f(m(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function f(w,h){var d=1,s=w.length,l,u="",c,i,a,p,b,x,R,_;for(c=0;c<s;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(a=w[c],a.keys)for(l=h[d],i=0;i<a.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[i],a.keys[i-1]));l=l[a.keys[i]]}else a.param_no?l=h[a.param_no]:l=h[d++];if(t.not_type.test(a.type)&&t.not_primitive.test(a.type)&&l instanceof Function&&(l=l()),t.numeric_arg.test(a.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(t.number.test(a.type)&&(R=l>=0),a.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,a.width?parseInt(a.width):0);break;case"e":l=a.precision?parseFloat(l).toExponential(a.precision):parseFloat(l).toExponential();break;case"f":l=a.precision?parseFloat(l).toFixed(a.precision):parseFloat(l);break;case"g":l=a.precision?String(Number(l.toPrecision(a.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=a.precision?l.substring(0,a.precision):l;break;case"t":l=String(!!l),l=a.precision?l.substring(0,a.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=a.precision?l.substring(0,a.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=a.precision?l.substring(0,a.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}t.json.test(a.type)?u+=l:(t.number.test(a.type)&&(!R||a.sign)?(_=R?"+":"-",l=l.toString().replace(t.sign,"")):_="",b=a.pad_char?a.pad_char==="0"?"0":a.pad_char.charAt(1):" ",x=a.width-(_+l).length,p=a.width&&x>0?b.repeat(x):"",u+=a.align?_+l+p:b==="0"?_+p+l:p+_+l)}return u}var g=Object.create(null);function m(w){if(g[w])return g[w];for(var h=w,d,s=[],l=0;h;){if((d=t.text.exec(h))!==null)s.push(d[0]);else if((d=t.modulo.exec(h))!==null)s.push("%");else if((d=t.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=t.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=t.key_access.exec(c))!==null)u.push(i[1]);else if((i=t.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=s}n.sprintf=e,n.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()}($g)),$g}Ck();var Gl={exports:{}};/**
|
|
1465
1465
|
* @license
|
|
1466
1466
|
* Lodash <https://lodash.com/>
|
|
1467
1467
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1468
1468
|
* Released under MIT license <https://lodash.com/license>
|
|
1469
1469
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1470
1470
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1471
|
-
*/var kk=Gl.exports,Mg;function Ak(){return Mg||(Mg=1,function(n,t){(function(){var e,r="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,s="__lodash_placeholder__",l=1,u=2,c=4,i=1,a=2,p=1,b=2,x=4,R=8,_=16,k=32,C=64,L=128,D=256,E=512,I=30,z="...",P=800,O=16,$=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,le=[["ary",L],["bind",p],["bindKey",b],["curry",R],["curryRight",_],["flip",E],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Xe="[object Error]",Ke="[object Function]",at="[object GeneratorFunction]",et="[object Map]",lt="[object Number]",Yt="[object Null]",xn="[object Object]",Wt="[object Promise]",vr="[object Proxy]",un="[object RegExp]",Ln="[object Set]",Zn="[object String]",Tr="[object Symbol]",mt="[object Undefined]",je="[object WeakMap]",Lt="[object WeakSet]",Qt="[object ArrayBuffer]",On="[object DataView]",yr="[object Float32Array]",ur="[object Float64Array]",gn="[object Int8Array]",Wn="[object Int16Array]",Nn="[object Int32Array]",Kt="[object Uint8Array]",ln="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Kr="[object Uint32Array]",Gr=/\b__p \+= '';/g,Ai=/\b(__p \+=) '' \+/g,ci=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,to=/[&<>"']/g,ui=RegExp(Bn.source),Ns=RegExp(to.source),Yr=/<%-([\s\S]+?)%>/g,_n=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,Jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,Cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(hr.source),kn=/^\s+/,$n=/\s/,br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,mo=/,? & /,vo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,es=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,Mo=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,Gt=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",xr="\\u0300-\\u036f",dr="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Cr=xr+dr+zn,mn="\\u2700-\\u27bf",no="a-z\\xdf-\\xf6\\xf8-\\xff",Pr="\\xac\\xb1\\xd7\\xf7",ts="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ds="\\u2000-\\u206f",Fs=" \\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",ns="A-Z\\xc0-\\xd6\\xd8-\\xde",pr="\\ufe0e\\ufe0f",Ps=Pr+ts+Ds+Fs,Io="['’]",rs="["+Ht+"]",is="["+Ps+"]",yo="["+Cr+"]",Ws="\\d+",wa="["+mn+"]",os="["+no+"]",ss="[^"+Ht+Ps+Ws+mn+no+ns+"]",Bs="\\ud83c[\\udffb-\\udfff]",as="(?:"+yo+"|"+Bs+")",Eo="[^"+Ht+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",fr="[\\ud800-\\udbff][\\udc00-\\udfff]",bo="["+ns+"]",ro="\\u200d",xa="(?:"+os+"|"+ss+")",hl="(?:"+bo+"|"+ss+")",Ro="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",io="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",Lo=as+"?",ls="["+pr+"]?",Oo="(?:"+ro+"(?:"+[Eo,Fi,fr].join("|")+")"+ls+Lo+")*",Ca="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=ls+Lo+Oo,ka="(?:"+[wa,Fi,fr].join("|")+")"+We,Ne="(?:"+[Eo+yo+"?",yo,Fi,fr,rs].join("|")+")",Dn=RegExp(Io,"g"),No=RegExp(yo,"g"),Si=RegExp(Bs+"(?="+Bs+")|"+Ne+We,"g"),Qn=RegExp([bo+"?"+os+"+"+Ro+"(?="+[is,bo,"$"].join("|")+")",hl+"+"+io+"(?="+[is,bo+xa,"$"].join("|")+")",bo+"?"+xa+"+"+Ro,bo+"+"+io,wo,Ca,Ws,ka].join("|"),"g"),Aa=RegExp("["+ro+Ht+Cr+pr+"]"),Do=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pi=["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"],xo=-1,nn={};nn[yr]=nn[ur]=nn[gn]=nn[Wn]=nn[Nn]=nn[Kt]=nn[ln]=nn[Dr]=nn[Kr]=!0,nn[se]=nn[de]=nn[Qt]=nn[_e]=nn[On]=nn[Te]=nn[Xe]=nn[Ke]=nn[et]=nn[lt]=nn[xn]=nn[un]=nn[Ln]=nn[Zn]=nn[je]=!1;var Jt={};Jt[se]=Jt[de]=Jt[Qt]=Jt[On]=Jt[_e]=Jt[Te]=Jt[yr]=Jt[ur]=Jt[gn]=Jt[Wn]=Jt[Nn]=Jt[et]=Jt[lt]=Jt[xn]=Jt[un]=Jt[Ln]=Jt[Zn]=Jt[Tr]=Jt[Kt]=Jt[ln]=Jt[Dr]=Jt[Kr]=!0,Jt[Xe]=Jt[Ke]=Jt[je]=!1;var rn={À:"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"},jt={"&":"&","<":"<",">":">",'"':""","'":"'"},Wi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,yn=parseInt,vt=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo,Zr=typeof self=="object"&&self&&self.Object===Object&&self,hn=vt||Zr||Function("return this")(),An=t&&!t.nodeType&&t,ir=An&&!0&&n&&!n.nodeType&&n,Qr=ir&&ir.exports===An,Bi=Qr&&vt.process,jn=function(){try{var fe=ir&&ir.require&&ir.require("util").types;return fe||Bi&&Bi.binding&&Bi.binding("util")}catch{}}(),mi=jn&&jn.isArrayBuffer,cs=jn&&jn.isDate,Un=jn&&jn.isMap,_i=jn&&jn.isRegExp,$i=jn&&jn.isSet,zi=jn&&jn.isTypedArray;function kr(fe,$e,Ce){switch(Ce.length){case 0:return fe.call($e);case 1:return fe.call($e,Ce[0]);case 2:return fe.call($e,Ce[0],Ce[1]);case 3:return fe.call($e,Ce[0],Ce[1],Ce[2])}return fe.apply($e,Ce)}function Ar(fe,$e,Ce,Ue){for(var ut=-1,$t=fe==null?0:fe.length;++ut<$t;){var Xt=fe[ut];$e(Ue,Xt,Ce(Xt),fe)}return Ue}function Mr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function zs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Ir(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Wr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=0,$t=[];++Ce<Ue;){var Xt=fe[Ce];$e(Xt,Ce,fe)&&($t[ut++]=Xt)}return $t}function Ti(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Mi(fe,$e,Ce){for(var Ue=-1,ut=fe==null?0:fe.length;++Ue<ut;)if(Ce($e,fe[Ue]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=Array(Ue);++Ce<Ue;)ut[Ce]=$e(fe[Ce],Ce,fe);return ut}function T(fe,$e){for(var Ce=-1,Ue=$e.length,ut=fe.length;++Ce<Ue;)fe[ut+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ue){var ut=-1,$t=fe==null?0:fe.length;for(Ue&&$t&&(Ce=fe[++ut]);++ut<$t;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function F(fe,$e,Ce,Ue){var ut=fe==null?0:fe.length;for(Ue&&ut&&(Ce=fe[--ut]);ut--;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if($e(fe[Ce],Ce,fe))return!0;return!1}var H=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(vo)||[]}function Z(fe,$e,Ce){var Ue;return Ce(fe,function(ut,$t,Xt){if($e(ut,$t,Xt))return Ue=$t,!1}),Ue}function re(fe,$e,Ce,Ue){for(var ut=fe.length,$t=Ce+(Ue?1:-1);Ue?$t--:++$t<ut;)if($e(fe[$t],$t,fe))return $t;return-1}function ae(fe,$e,Ce){return $e===$e?Qe(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ue){for(var ut=Ce-1,$t=fe.length;++ut<$t;)if(Ue(fe[ut],$e))return ut;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?st(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?e:$e[fe]}}function Oe(fe){return function($e){return fe==null?e:fe[$e]}}function Le(fe,$e,Ce,Ue,ut){return ut(fe,function($t,Xt,It){Ce=Ue?(Ue=!1,$t):$e(Ce,$t,Xt,It)}),Ce}function Ve(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function st(fe,$e){for(var Ce,Ue=-1,ut=fe.length;++Ue<ut;){var $t=$e(fe[Ue]);$t!==e&&(Ce=Ce===e?$t:Ce+$t)}return Ce}function Ze(fe,$e){for(var Ce=-1,Ue=Array(fe);++Ce<fe;)Ue[Ce]=$e(Ce);return Ue}function tt(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function bn(fe){return fe&&fe.slice(0,Nt(fe)+1).replace(kn,"")}function ct(fe){return function($e){return fe($e)}}function Tn(fe,$e){return y($e,function(Ce){return fe[Ce]})}function bt(fe,$e){return fe.has($e)}function _t(fe,$e){for(var Ce=-1,Ue=fe.length;++Ce<Ue&&ae($e,fe[Ce],0)>-1;);return Ce}function or(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Sr(fe,$e){for(var Ce=fe.length,Ue=0;Ce--;)fe[Ce]===$e&&++Ue;return Ue}var Mn=Oe(rn),V=Oe(jt);function X(fe){return"\\"+Hn[fe]}function ie(fe,$e){return fe==null?e:fe[$e]}function oe(fe){return Aa.test(fe)}function ge(fe){return Do.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ie(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue,ut){Ce[++$e]=[ut,Ue]}),Ce}function Pe(fe,$e){return function(Ce){return fe($e(Ce))}}function Be(fe,$e){for(var Ce=-1,Ue=fe.length,ut=0,$t=[];++Ce<Ue;){var Xt=fe[Ce];(Xt===$e||Xt===s)&&(fe[Ce]=s,$t[ut++]=Ce)}return $t}function qe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Ye(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Qe(fe,$e,Ce){for(var Ue=Ce-1,ut=fe.length;++Ue<ut;)if(fe[Ue]===$e)return Ue;return-1}function yt(fe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(fe[Ue]===$e)return Ue;return Ue}function Ft(fe){return oe(fe)?rt(fe):H(fe)}function wt(fe){return oe(fe)?vn(fe):q(fe)}function Nt(fe){for(var $e=fe.length;$e--&&$n.test(fe.charAt($e)););return $e}var dt=Oe(Wi);function rt(fe){for(var $e=Si.lastIndex=0;Si.test(fe);)++$e;return $e}function vn(fe){return fe.match(Si)||[]}function In(fe){return fe.match(Qn)||[]}var sr=function fe($e){$e=$e==null?hn:Vt.defaults(hn.Object(),$e,Vt.pick(hn,Pi));var Ce=$e.Array,Ue=$e.Date,ut=$e.Error,$t=$e.Function,Xt=$e.Math,It=$e.Object,Jr=$e.RegExp,Hi=$e.String,dn=$e.TypeError,_r=Ce.prototype,Fo=$t.prototype,Vn=It.prototype,Hs=$e["__core-js_shared__"],Ec=Fo.toString,cn=Vn.hasOwnProperty,jI=0,mb=function(){var o=/[^.]+$/.exec(Hs&&Hs.keys&&Hs.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Rc=Vn.toString,UI=Ec.call(It),VI=hn._,qI=Jr("^"+Ec.call(cn).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Qr?$e.Buffer:e,us=$e.Symbol,Oc=$e.Uint8Array,vb=Lc?Lc.allocUnsafe:e,Nc=Pe(It.getPrototypeOf,It),yb=It.create,bb=Vn.propertyIsEnumerable,Dc=_r.splice,wb=us?us.isConcatSpreadable:e,dl=us?us.iterator:e,js=us?us.toStringTag:e,Fc=function(){try{var o=Gs(It,"defineProperty");return o({},"",{}),o}catch{}}(),KI=$e.clearTimeout!==hn.clearTimeout&&$e.clearTimeout,GI=Ue&&Ue.now!==hn.Date.now&&Ue.now,YI=$e.setTimeout!==hn.setTimeout&&$e.setTimeout,Pc=Xt.ceil,Wc=Xt.floor,Rd=It.getOwnPropertySymbols,XI=Lc?Lc.isBuffer:e,xb=$e.isFinite,ZI=_r.join,QI=Pe(It.keys,It),gr=Xt.max,Br=Xt.min,JI=Ue.now,eE=$e.parseInt,Cb=Xt.random,tE=_r.reverse,Ld=Gs($e,"DataView"),pl=Gs($e,"Map"),Od=Gs($e,"Promise"),Sa=Gs($e,"Set"),fl=Gs($e,"WeakMap"),gl=Gs(It,"create"),Bc=fl&&new fl,_a={},nE=Ys(Ld),rE=Ys(pl),iE=Ys(Od),oE=Ys(Sa),sE=Ys(fl),zc=us?us.prototype:e,ml=zc?zc.valueOf:e,kb=zc?zc.toString:e;function ee(o){if(qn(o)&&!Ct(o)&&!(o instanceof Ut)){if(o instanceof ji)return o;if(cn.call(o,"__wrapped__"))return A0(o)}return new ji(o)}var $a=function(){function o(){}return function(v){if(!Fn(v))return{};if(yb)return yb(v);o.prototype=v;var M=new o;return o.prototype=e,M}}();function Hc(){}function ji(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=e}ee.templateSettings={escape:Yr,evaluate:_n,interpolate:hi,variable:"",imports:{_:ee}},ee.prototype=Hc.prototype,ee.prototype.constructor=ee,ji.prototype=$a(Hc.prototype),ji.prototype.constructor=ji;function Ut(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function aE(){var o=new Ut(this.__wrapped__);return o.__actions__=vi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=vi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=vi(this.__views__),o}function lE(){if(this.__filtered__){var o=new Ut(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function cE(){var o=this.__wrapped__.value(),v=this.__dir__,M=Ct(o),j=v<0,G=M?o.length:0,te=xR(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ee=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ge=0,nt=Br(ye,this.__takeCount__);if(!M||!j&&G==ye&&nt==ye)return Kb(o,this.__actions__);var ft=[];e:for(;ye--&&Ge<nt;){Ee+=v;for(var Et=-1,gt=o[Ee];++Et<De;){var Bt=Re[Et],qt=Bt.iteratee,Ri=Bt.type,ni=qt(gt);if(Ri==A)gt=ni;else if(!ni){if(Ri==$)continue e;break e}}ft[Ge++]=gt}return ft}Ut.prototype=$a(Hc.prototype),Ut.prototype.constructor=Ut;function Us(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function uE(){this.__data__=gl?gl(null):{},this.size=0}function hE(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function dE(o){var v=this.__data__;if(gl){var M=v[o];return M===h?e:M}return cn.call(v,o)?v[o]:e}function pE(o){var v=this.__data__;return gl?v[o]!==e:cn.call(v,o)}function fE(o,v){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=gl&&v===e?h:v,this}Us.prototype.clear=uE,Us.prototype.delete=hE,Us.prototype.get=dE,Us.prototype.has=pE,Us.prototype.set=fE;function Po(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function gE(){this.__data__=[],this.size=0}function mE(o){var v=this.__data__,M=jc(v,o);if(M<0)return!1;var j=v.length-1;return M==j?v.pop():Dc.call(v,M,1),--this.size,!0}function vE(o){var v=this.__data__,M=jc(v,o);return M<0?e:v[M][1]}function yE(o){return jc(this.__data__,o)>-1}function bE(o,v){var M=this.__data__,j=jc(M,o);return j<0?(++this.size,M.push([o,v])):M[j][1]=v,this}Po.prototype.clear=gE,Po.prototype.delete=mE,Po.prototype.get=vE,Po.prototype.has=yE,Po.prototype.set=bE;function Wo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function wE(){this.size=0,this.__data__={hash:new Us,map:new(pl||Po),string:new Us}}function xE(o){var v=tu(this,o).delete(o);return this.size-=v?1:0,v}function CE(o){return tu(this,o).get(o)}function kE(o){return tu(this,o).has(o)}function AE(o,v){var M=tu(this,o),j=M.size;return M.set(o,v),this.size+=M.size==j?0:1,this}Wo.prototype.clear=wE,Wo.prototype.delete=xE,Wo.prototype.get=CE,Wo.prototype.has=kE,Wo.prototype.set=AE;function Vs(o){var v=-1,M=o==null?0:o.length;for(this.__data__=new Wo;++v<M;)this.add(o[v])}function SE(o){return this.__data__.set(o,h),this}function _E(o){return this.__data__.has(o)}Vs.prototype.add=Vs.prototype.push=SE,Vs.prototype.has=_E;function oo(o){var v=this.__data__=new Po(o);this.size=v.size}function $E(){this.__data__=new Po,this.size=0}function TE(o){var v=this.__data__,M=v.delete(o);return this.size=v.size,M}function ME(o){return this.__data__.get(o)}function IE(o){return this.__data__.has(o)}function EE(o,v){var M=this.__data__;if(M instanceof Po){var j=M.__data__;if(!pl||j.length<f-1)return j.push([o,v]),this.size=++M.size,this;M=this.__data__=new Wo(j)}return M.set(o,v),this.size=M.size,this}oo.prototype.clear=$E,oo.prototype.delete=TE,oo.prototype.get=ME,oo.prototype.has=IE,oo.prototype.set=EE;function Ab(o,v){var M=Ct(o),j=!M&&Xs(o),G=!M&&!j&&gs(o),te=!M&&!j&&!G&&Ea(o),ue=M||j||G||te,pe=ue?Ze(o.length,Hi):[],ye=pe.length;for(var Ee in o)(v||cn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||jo(Ee,ye)))&&pe.push(Ee);return pe}function Sb(o){var v=o.length;return v?o[Vd(0,v-1)]:e}function RE(o,v){return nu(vi(o),qs(v,0,o.length))}function LE(o){return nu(vi(o))}function Nd(o,v,M){(M!==e&&!so(o[v],M)||M===e&&!(v in o))&&Bo(o,v,M)}function vl(o,v,M){var j=o[v];(!(cn.call(o,v)&&so(j,M))||M===e&&!(v in o))&&Bo(o,v,M)}function jc(o,v){for(var M=o.length;M--;)if(so(o[M][0],v))return M;return-1}function OE(o,v,M,j){return hs(o,function(G,te,ue){v(j,G,M(G),ue)}),j}function _b(o,v){return o&&ko(v,$r(v),o)}function NE(o,v){return o&&ko(v,bi(v),o)}function Bo(o,v,M){v=="__proto__"&&Fc?Fc(o,v,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[v]=M}function Dd(o,v){for(var M=-1,j=v.length,G=Ce(j),te=o==null;++M<j;)G[M]=te?e:mp(o,v[M]);return G}function qs(o,v,M){return o===o&&(M!==e&&(o=o<=M?o:M),v!==e&&(o=o>=v?o:v)),o}function Ui(o,v,M,j,G,te){var ue,pe=v&l,ye=v&u,Ee=v&c;if(M&&(ue=G?M(o,j,G,te):M(o)),ue!==e)return ue;if(!Fn(o))return o;var Re=Ct(o);if(Re){if(ue=kR(o),!pe)return vi(o,ue)}else{var De=zr(o),Ge=De==Ke||De==at;if(gs(o))return Xb(o,pe);if(De==xn||De==se||Ge&&!G){if(ue=ye||Ge?{}:g0(o),!pe)return ye?dR(o,NE(ue,o)):hR(o,_b(ue,o))}else{if(!Jt[De])return G?o:{};ue=AR(o,De,pe)}}te||(te=new oo);var nt=te.get(o);if(nt)return nt;te.set(o,ue),U0(o)?o.forEach(function(gt){ue.add(Ui(gt,v,M,gt,o,te))}):H0(o)&&o.forEach(function(gt,Bt){ue.set(Bt,Ui(gt,v,M,Bt,o,te))});var ft=Ee?ye?np:tp:ye?bi:$r,Et=Re?e:ft(o);return Mr(Et||o,function(gt,Bt){Et&&(Bt=gt,gt=o[Bt]),vl(ue,Bt,Ui(gt,v,M,Bt,o,te))}),ue}function DE(o){var v=$r(o);return function(M){return $b(M,o,v)}}function $b(o,v,M){var j=M.length;if(o==null)return!j;for(o=It(o);j--;){var G=M[j],te=v[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function Tb(o,v,M){if(typeof o!="function")throw new dn(m);return Al(function(){o.apply(e,M)},v)}function yl(o,v,M,j){var G=-1,te=Ti,ue=!0,pe=o.length,ye=[],Ee=v.length;if(!pe)return ye;M&&(v=y(v,ct(M))),j?(te=Mi,ue=!1):v.length>=f&&(te=bt,ue=!1,v=new Vs(v));e:for(;++G<pe;){var Re=o[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ge=Ee;Ge--;)if(v[Ge]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var hs=t0(Co),Mb=t0(Pd,!0);function FE(o,v){var M=!0;return hs(o,function(j,G,te){return M=!!v(j,G,te),M}),M}function Uc(o,v,M){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===e?ue===ue&&!Ei(ue):M(ue,pe)))var pe=ue,ye=te}return ye}function PE(o,v,M,j){var G=o.length;for(M=Mt(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:Mt(j),j<0&&(j+=G),j=M>j?0:q0(j);M<j;)o[M++]=v;return o}function Ib(o,v){var M=[];return hs(o,function(j,G,te){v(j,G,te)&&M.push(j)}),M}function Er(o,v,M,j,G){var te=-1,ue=o.length;for(M||(M=_R),G||(G=[]);++te<ue;){var pe=o[te];v>0&&M(pe)?v>1?Er(pe,v-1,M,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var Fd=n0(),Eb=n0(!0);function Co(o,v){return o&&Fd(o,v,$r)}function Pd(o,v){return o&&Eb(o,v,$r)}function Vc(o,v){return Wr(v,function(M){return Uo(o[M])})}function Ks(o,v){v=ps(v,o);for(var M=0,j=v.length;o!=null&&M<j;)o=o[Ao(v[M++])];return M&&M==j?o:e}function Rb(o,v,M){var j=v(o);return Ct(o)?j:T(j,M(o))}function ei(o){return o==null?o===e?mt:Yt:js&&js in It(o)?wR(o):LR(o)}function Wd(o,v){return o>v}function WE(o,v){return o!=null&&cn.call(o,v)}function BE(o,v){return o!=null&&v in It(o)}function zE(o,v,M){return o>=Br(v,M)&&o<gr(v,M)}function Bd(o,v,M){for(var j=M?Mi:Ti,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ee=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,ct(v))),ye=Br(Re.length,ye),pe[ue]=!M&&(v||G>=120&&Re.length>=120)?new Vs(ue&&Re):e}Re=o[0];var De=-1,Ge=pe[0];e:for(;++De<G&&Ee.length<ye;){var nt=Re[De],ft=v?v(nt):nt;if(nt=M||nt!==0?nt:0,!(Ge?bt(Ge,ft):j(Ee,ft,M))){for(ue=te;--ue;){var Et=pe[ue];if(!(Et?bt(Et,ft):j(o[ue],ft,M)))continue e}Ge&&Ge.push(ft),Ee.push(nt)}}return Ee}function HE(o,v,M,j){return Co(o,function(G,te,ue){v(j,M(G),te,ue)}),j}function bl(o,v,M){v=ps(v,o),o=b0(o,v);var j=o==null?o:o[Ao(qi(v))];return j==null?e:kr(j,o,M)}function Lb(o){return qn(o)&&ei(o)==se}function jE(o){return qn(o)&&ei(o)==Qt}function UE(o){return qn(o)&&ei(o)==Te}function wl(o,v,M,j,G){return o===v?!0:o==null||v==null||!qn(o)&&!qn(v)?o!==o&&v!==v:VE(o,v,M,j,wl,G)}function VE(o,v,M,j,G,te){var ue=Ct(o),pe=Ct(v),ye=ue?de:zr(o),Ee=pe?de:zr(v);ye=ye==se?xn:ye,Ee=Ee==se?xn:Ee;var Re=ye==xn,De=Ee==xn,Ge=ye==Ee;if(Ge&&gs(o)){if(!gs(v))return!1;ue=!0,Re=!1}if(Ge&&!Re)return te||(te=new oo),ue||Ea(o)?d0(o,v,M,j,G,te):yR(o,v,ye,M,j,G,te);if(!(M&i)){var nt=Re&&cn.call(o,"__wrapped__"),ft=De&&cn.call(v,"__wrapped__");if(nt||ft){var Et=nt?o.value():o,gt=ft?v.value():v;return te||(te=new oo),G(Et,gt,M,j,te)}}return Ge?(te||(te=new oo),bR(o,v,M,j,G,te)):!1}function qE(o){return qn(o)&&zr(o)==et}function zd(o,v,M,j){var G=M.length,te=G,ue=!j;if(o==null)return!te;for(o=It(o);G--;){var pe=M[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=M[G];var ye=pe[0],Ee=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new oo;if(j)var Ge=j(Ee,Re,ye,o,v,De);if(!(Ge===e?wl(Re,Ee,i|a,j,De):Ge))return!1}}return!0}function Ob(o){if(!Fn(o)||TR(o))return!1;var v=Uo(o)?qI:wr;return v.test(Ys(o))}function KE(o){return qn(o)&&ei(o)==un}function GE(o){return qn(o)&&zr(o)==Ln}function YE(o){return qn(o)&&lu(o.length)&&!!nn[ei(o)]}function Nb(o){return typeof o=="function"?o:o==null?wi:typeof o=="object"?Ct(o)?Pb(o[0],o[1]):Fb(o):rw(o)}function Hd(o){if(!kl(o))return QI(o);var v=[];for(var M in It(o))cn.call(o,M)&&M!="constructor"&&v.push(M);return v}function XE(o){if(!Fn(o))return RR(o);var v=kl(o),M=[];for(var j in o)j=="constructor"&&(v||!cn.call(o,j))||M.push(j);return M}function jd(o,v){return o<v}function Db(o,v){var M=-1,j=yi(o)?Ce(o.length):[];return hs(o,function(G,te,ue){j[++M]=v(G,te,ue)}),j}function Fb(o){var v=ip(o);return v.length==1&&v[0][2]?v0(v[0][0],v[0][1]):function(M){return M===o||zd(M,o,v)}}function Pb(o,v){return sp(o)&&m0(v)?v0(Ao(o),v):function(M){var j=mp(M,o);return j===e&&j===v?vp(M,o):wl(v,j,i|a)}}function qc(o,v,M,j,G){o!==v&&Fd(v,function(te,ue){if(G||(G=new oo),Fn(te))ZE(o,v,ue,M,qc,j,G);else{var pe=j?j(lp(o,ue),te,ue+"",o,v,G):e;pe===e&&(pe=te),Nd(o,ue,pe)}},bi)}function ZE(o,v,M,j,G,te,ue){var pe=lp(o,M),ye=lp(v,M),Ee=ue.get(ye);if(Ee){Nd(o,M,Ee);return}var Re=te?te(pe,ye,M+"",o,v,ue):e,De=Re===e;if(De){var Ge=Ct(ye),nt=!Ge&&gs(ye),ft=!Ge&&!nt&&Ea(ye);Re=ye,Ge||nt||ft?Ct(pe)?Re=pe:Jn(pe)?Re=vi(pe):nt?(De=!1,Re=Xb(ye,!0)):ft?(De=!1,Re=Zb(ye,!0)):Re=[]:Sl(ye)||Xs(ye)?(Re=pe,Xs(pe)?Re=K0(pe):(!Fn(pe)||Uo(pe))&&(Re=g0(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),Nd(o,M,Re)}function Wb(o,v){var M=o.length;if(M)return v+=v<0?M:0,jo(v,M)?o[v]:e}function Bb(o,v,M){v.length?v=y(v,function(te){return Ct(te)?function(ue){return Ks(ue,te.length===1?te[0]:te)}:te}):v=[wi];var j=-1;v=y(v,ct(pt()));var G=Db(o,function(te,ue,pe){var ye=y(v,function(Ee){return Ee(te)});return{criteria:ye,index:++j,value:te}});return Ve(G,function(te,ue){return uR(te,ue,M)})}function QE(o,v){return zb(o,v,function(M,j){return vp(o,j)})}function zb(o,v,M){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=Ks(o,ue);M(pe,ue)&&xl(te,ps(ue,o),pe)}return te}function JE(o){return function(v){return Ks(v,o)}}function Ud(o,v,M,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=vi(v)),M&&(pe=y(o,ct(M)));++te<ue;)for(var ye=0,Ee=v[te],Re=M?M(Ee):Ee;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Dc.call(pe,ye,1),Dc.call(o,ye,1);return o}function Hb(o,v){for(var M=o?v.length:0,j=M-1;M--;){var G=v[M];if(M==j||G!==te){var te=G;jo(G)?Dc.call(o,G,1):Gd(o,G)}}return o}function Vd(o,v){return o+Wc(Cb()*(v-o+1))}function eR(o,v,M,j){for(var G=-1,te=gr(Pc((v-o)/(M||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=M;return ue}function qd(o,v){var M="";if(!o||v<1||v>U)return M;do v%2&&(M+=o),v=Wc(v/2),v&&(o+=o);while(v);return M}function Dt(o,v){return cp(y0(o,v,wi),o+"")}function tR(o){return Sb(Ra(o))}function nR(o,v){var M=Ra(o);return nu(M,qs(v,0,M.length))}function xl(o,v,M,j){if(!Fn(o))return o;v=ps(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=Ao(v[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ee=j?j(Re,ye,pe):e,Ee===e&&(Ee=Fn(Re)?Re:jo(v[G+1])?[]:{})}vl(pe,ye,Ee),pe=pe[ye]}return o}var jb=Bc?function(o,v){return Bc.set(o,v),o}:wi,rR=Fc?function(o,v){return Fc(o,"toString",{configurable:!0,enumerable:!1,value:bp(v),writable:!0})}:wi;function iR(o){return nu(Ra(o))}function Vi(o,v,M){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),M=M>G?G:M,M<0&&(M+=G),G=v>M?0:M-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function oR(o,v){var M;return hs(o,function(j,G,te){return M=v(j,G,te),!M}),!!M}function Kc(o,v,M){var j=0,G=o==null?j:o.length;if(typeof v=="number"&&v===v&&G<=ne){for(;j<G;){var te=j+G>>>1,ue=o[te];ue!==null&&!Ei(ue)&&(M?ue<=v:ue<v)?j=te+1:G=te}return G}return Kd(o,v,wi,M)}function Kd(o,v,M,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=M(v);for(var ue=v!==v,pe=v===null,ye=Ei(v),Ee=v===e;G<te;){var Re=Wc((G+te)/2),De=M(o[Re]),Ge=De!==e,nt=De===null,ft=De===De,Et=Ei(De);if(ue)var gt=j||ft;else Ee?gt=ft&&(j||Ge):pe?gt=ft&&Ge&&(j||!nt):ye?gt=ft&&Ge&&!nt&&(j||!Et):nt||Et?gt=!1:gt=j?De<=v:De<v;gt?G=Re+1:te=Re}return Br(te,he)}function Ub(o,v){for(var M=-1,j=o.length,G=0,te=[];++M<j;){var ue=o[M],pe=v?v(ue):ue;if(!M||!so(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function Vb(o){return typeof o=="number"?o:Ei(o)?Q:+o}function Ii(o){if(typeof o=="string")return o;if(Ct(o))return y(o,Ii)+"";if(Ei(o))return kb?kb.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function ds(o,v,M){var j=-1,G=Ti,te=o.length,ue=!0,pe=[],ye=pe;if(M)ue=!1,G=Mi;else if(te>=f){var Ee=v?null:mR(o);if(Ee)return qe(Ee);ue=!1,G=bt,ye=new Vs}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=M||Re!==0?Re:0,ue&&De===De){for(var Ge=ye.length;Ge--;)if(ye[Ge]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,M)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function Gd(o,v){return v=ps(v,o),o=b0(o,v),o==null||delete o[Ao(qi(v))]}function qb(o,v,M,j){return xl(o,v,M(Ks(o,v)),j)}function Gc(o,v,M,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return M?Vi(o,j?0:te,j?te+1:G):Vi(o,j?te+1:0,j?G:te)}function Kb(o,v){var M=o;return M instanceof Ut&&(M=M.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Yd(o,v,M){var j=o.length;if(j<2)return j?ds(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=yl(te[G]||ue,o[pe],v,M));return ds(Er(te,1),v,M)}function Gb(o,v,M){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:e;M(ue,o[j],pe)}return ue}function Xd(o){return Jn(o)?o:[]}function Zd(o){return typeof o=="function"?o:wi}function ps(o,v){return Ct(o)?o:sp(o,v)?[o]:k0(sn(o))}var sR=Dt;function fs(o,v,M){var j=o.length;return M=M===e?j:M,!v&&M>=j?o:Vi(o,v,M)}var Yb=KI||function(o){return hn.clearTimeout(o)};function Xb(o,v){if(v)return o.slice();var M=o.length,j=vb?vb(M):new o.constructor(M);return o.copy(j),j}function Qd(o){var v=new o.constructor(o.byteLength);return new Oc(v).set(new Oc(o)),v}function aR(o,v){var M=v?Qd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function lR(o){var v=new o.constructor(o.source,Fr.exec(o));return v.lastIndex=o.lastIndex,v}function cR(o){return ml?It(ml.call(o)):{}}function Zb(o,v){var M=v?Qd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Qb(o,v){if(o!==v){var M=o!==e,j=o===null,G=o===o,te=Ei(o),ue=v!==e,pe=v===null,ye=v===v,Ee=Ei(v);if(!pe&&!Ee&&!te&&o>v||te&&ue&&ye&&!pe&&!Ee||j&&ue&&ye||!M&&ye||!G)return 1;if(!j&&!te&&!Ee&&o<v||Ee&&M&&G&&!j&&!te||pe&&M&&G||!ue&&G||!ye)return-1}return 0}function uR(o,v,M){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=M.length;++j<ue;){var ye=Qb(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ee=M[j];return ye*(Ee=="desc"?-1:1)}}return o.index-v.index}function Jb(o,v,M,j){for(var G=-1,te=o.length,ue=M.length,pe=-1,ye=v.length,Ee=gr(te-ue,0),Re=Ce(ye+Ee),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[M[G]]=o[G]);for(;Ee--;)Re[pe++]=o[G++];return Re}function e0(o,v,M,j){for(var G=-1,te=o.length,ue=-1,pe=M.length,ye=-1,Ee=v.length,Re=gr(te-pe,0),De=Ce(Re+Ee),Ge=!j;++G<Re;)De[G]=o[G];for(var nt=G;++ye<Ee;)De[nt+ye]=v[ye];for(;++ue<pe;)(Ge||G<te)&&(De[nt+M[ue]]=o[G++]);return De}function vi(o,v){var M=-1,j=o.length;for(v||(v=Ce(j));++M<j;)v[M]=o[M];return v}function ko(o,v,M,j){var G=!M;M||(M={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(M[pe],o[pe],pe,M,o):e;ye===e&&(ye=o[pe]),G?Bo(M,pe,ye):vl(M,pe,ye)}return M}function hR(o,v){return ko(o,op(o),v)}function dR(o,v){return ko(o,p0(o),v)}function Yc(o,v){return function(M,j){var G=Ct(M)?Ar:OE,te=v?v():{};return G(M,o,pt(j,2),te)}}function Ta(o){return Dt(function(v,M){var j=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&ti(M[0],M[1],ue)&&(te=G<3?e:te,G=1),v=It(v);++j<G;){var pe=M[j];pe&&o(v,pe,j,te)}return v})}function t0(o,v){return function(M,j){if(M==null)return M;if(!yi(M))return o(M,j);for(var G=M.length,te=v?G:-1,ue=It(M);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return M}}function n0(o){return function(v,M,j){for(var G=-1,te=It(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(M(te[ye],ye,te)===!1)break}return v}}function pR(o,v,M){var j=v&p,G=Cl(o);function te(){var ue=this&&this!==hn&&this instanceof te?G:o;return ue.apply(j?M:this,arguments)}return te}function r0(o){return function(v){v=sn(v);var M=oe(v)?wt(v):e,j=M?M[0]:v.charAt(0),G=M?fs(M,1).join(""):v.slice(1);return j[o]()+G}}function Ma(o){return function(v){return S(tw(ew(v).replace(Dn,"")),o,"")}}function Cl(o){return function(){var v=arguments;switch(v.length){case 0:return new o;case 1:return new o(v[0]);case 2:return new o(v[0],v[1]);case 3:return new o(v[0],v[1],v[2]);case 4:return new o(v[0],v[1],v[2],v[3]);case 5:return new o(v[0],v[1],v[2],v[3],v[4]);case 6:return new o(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new o(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var M=$a(o.prototype),j=o.apply(M,v);return Fn(j)?j:M}}function fR(o,v,M){var j=Cl(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Ia(G);pe--;)ue[pe]=arguments[pe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:Be(ue,ye);if(te-=Ee.length,te<M)return l0(o,v,Xc,G.placeholder,e,ue,Ee,e,e,M-te);var Re=this&&this!==hn&&this instanceof G?j:o;return kr(Re,this,ue)}return G}function i0(o){return function(v,M,j){var G=It(v);if(!yi(v)){var te=pt(M,3);v=$r(v),M=function(pe){return te(G[pe],pe,G)}}var ue=o(v,M,j);return ue>-1?G[te?v[ue]:ue]:e}}function o0(o){return Ho(function(v){var M=v.length,j=M,G=ji.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new dn(m);if(G&&!ue&&eu(te)=="wrapper")var ue=new ji([],!0)}for(j=ue?j:M;++j<M;){te=v[j];var pe=eu(te),ye=pe=="wrapper"?rp(te):e;ye&&ap(ye[0])&&ye[1]==(L|R|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[eu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&ap(te)?ue[pe]():ue.thru(te)}return function(){var Ee=arguments,Re=Ee[0];if(ue&&Ee.length==1&&Ct(Re))return ue.plant(Re).value();for(var De=0,Ge=M?v[De].apply(this,Ee):Re;++De<M;)Ge=v[De].call(this,Ge);return Ge}})}function Xc(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&L,De=v&p,Ge=v&b,nt=v&(R|_),ft=v&E,Et=Ge?e:Cl(o);function gt(){for(var Bt=arguments.length,qt=Ce(Bt),Ri=Bt;Ri--;)qt[Ri]=arguments[Ri];if(nt)var ni=Ia(gt),Li=Sr(qt,ni);if(j&&(qt=Jb(qt,j,G,nt)),te&&(qt=e0(qt,te,ue,nt)),Bt-=Li,nt&&Bt<Ee){var er=Be(qt,ni);return l0(o,v,Xc,gt.placeholder,M,qt,er,pe,ye,Ee-Bt)}var ao=De?M:this,qo=Ge?ao[o]:o;return Bt=qt.length,pe?qt=OR(qt,pe):ft&&Bt>1&&qt.reverse(),Re&&ye<Bt&&(qt.length=ye),this&&this!==hn&&this instanceof gt&&(qo=Et||Cl(qo)),qo.apply(ao,qt)}return gt}function s0(o,v){return function(M,j){return HE(M,o,v(j),{})}}function Zc(o,v){return function(M,j){var G;if(M===e&&j===e)return v;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=Ii(M),j=Ii(j)):(M=Vb(M),j=Vb(j)),G=o(M,j)}return G}}function Jd(o){return Ho(function(v){return v=y(v,ct(pt())),Dt(function(M){var j=this;return o(v,function(G){return kr(G,j,M)})})})}function Qc(o,v){v=v===e?" ":Ii(v);var M=v.length;if(M<2)return M?qd(v,o):v;var j=qd(v,Pc(o/Ft(v)));return oe(v)?fs(wt(j),0,o).join(""):j.slice(0,o)}function gR(o,v,M,j){var G=v&p,te=Cl(o);function ue(){for(var pe=-1,ye=arguments.length,Ee=-1,Re=j.length,De=Ce(Re+ye),Ge=this&&this!==hn&&this instanceof ue?te:o;++Ee<Re;)De[Ee]=j[Ee];for(;ye--;)De[Ee++]=arguments[++pe];return kr(Ge,G?M:this,De)}return ue}function a0(o){return function(v,M,j){return j&&typeof j!="number"&&ti(v,M,j)&&(M=j=e),v=Vo(v),M===e?(M=v,v=0):M=Vo(M),j=j===e?v<M?1:-1:Vo(j),eR(v,M,j,o)}}function Jc(o){return function(v,M){return typeof v=="string"&&typeof M=="string"||(v=Ki(v),M=Ki(M)),o(v,M)}}function l0(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&R,De=Re?ue:e,Ge=Re?e:ue,nt=Re?te:e,ft=Re?e:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Et=[o,v,G,nt,De,ft,Ge,pe,ye,Ee],gt=M.apply(e,Et);return ap(o)&&w0(gt,Et),gt.placeholder=j,x0(gt,o,v)}function ep(o){var v=Xt[o];return function(M,j){if(M=Ki(M),j=j==null?0:Br(Mt(j),292),j&&xb(M)){var G=(sn(M)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(sn(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(M)}}var mR=Sa&&1/qe(new Sa([,-0]))[1]==B?function(o){return new Sa(o)}:Cp;function c0(o){return function(v){var M=zr(v);return M==et?Ie(v):M==Ln?Ye(v):tt(v,o(v))}}function zo(o,v,M,j,G,te,ue,pe){var ye=v&b;if(!ye&&typeof o!="function")throw new dn(m);var Ee=j?j.length:0;if(Ee||(v&=-97,j=G=e),ue=ue===e?ue:gr(Mt(ue),0),pe=pe===e?pe:Mt(pe),Ee-=G?G.length:0,v&C){var Re=j,De=G;j=G=e}var Ge=ye?e:rp(o),nt=[o,v,M,j,G,Re,De,te,ue,pe];if(Ge&&ER(nt,Ge),o=nt[0],v=nt[1],M=nt[2],j=nt[3],G=nt[4],pe=nt[9]=nt[9]===e?ye?0:o.length:gr(nt[9]-Ee,0),!pe&&v&(R|_)&&(v&=-25),!v||v==p)var ft=pR(o,v,M);else v==R||v==_?ft=fR(o,v,pe):(v==k||v==(p|k))&&!G.length?ft=gR(o,v,M,j):ft=Xc.apply(e,nt);var Et=Ge?jb:w0;return x0(Et(ft,nt),o,v)}function u0(o,v,M,j){return o===e||so(o,Vn[M])&&!cn.call(j,M)?v:o}function h0(o,v,M,j,G,te){return Fn(o)&&Fn(v)&&(te.set(v,o),qc(o,v,e,h0,te),te.delete(v)),o}function vR(o){return Sl(o)?e:o}function d0(o,v,M,j,G,te){var ue=M&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ee=te.get(o),Re=te.get(v);if(Ee&&Re)return Ee==v&&Re==o;var De=-1,Ge=!0,nt=M&a?new Vs:e;for(te.set(o,v),te.set(v,o);++De<pe;){var ft=o[De],Et=v[De];if(j)var gt=ue?j(Et,ft,De,v,o,te):j(ft,Et,De,o,v,te);if(gt!==e){if(gt)continue;Ge=!1;break}if(nt){if(!W(v,function(Bt,qt){if(!bt(nt,qt)&&(ft===Bt||G(ft,Bt,M,j,te)))return nt.push(qt)})){Ge=!1;break}}else if(!(ft===Et||G(ft,Et,M,j,te))){Ge=!1;break}}return te.delete(o),te.delete(v),Ge}function yR(o,v,M,j,G,te,ue){switch(M){case On:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Qt:return!(o.byteLength!=v.byteLength||!te(new Oc(o),new Oc(v)));case _e:case Te:case lt:return so(+o,+v);case Xe:return o.name==v.name&&o.message==v.message;case un:case Zn:return o==v+"";case et:var pe=Ie;case Ln:var ye=j&i;if(pe||(pe=qe),o.size!=v.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==v;j|=a,ue.set(o,v);var Re=d0(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Tr:if(ml)return ml.call(o)==ml.call(v)}return!1}function bR(o,v,M,j,G,te){var ue=M&i,pe=tp(o),ye=pe.length,Ee=tp(v),Re=Ee.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ge=pe[De];if(!(ue?Ge in v:cn.call(v,Ge)))return!1}var nt=te.get(o),ft=te.get(v);if(nt&&ft)return nt==v&&ft==o;var Et=!0;te.set(o,v),te.set(v,o);for(var gt=ue;++De<ye;){Ge=pe[De];var Bt=o[Ge],qt=v[Ge];if(j)var Ri=ue?j(qt,Bt,Ge,v,o,te):j(Bt,qt,Ge,o,v,te);if(!(Ri===e?Bt===qt||G(Bt,qt,M,j,te):Ri)){Et=!1;break}gt||(gt=Ge=="constructor")}if(Et&&!gt){var ni=o.constructor,Li=v.constructor;ni!=Li&&"constructor"in o&&"constructor"in v&&!(typeof ni=="function"&&ni instanceof ni&&typeof Li=="function"&&Li instanceof Li)&&(Et=!1)}return te.delete(o),te.delete(v),Et}function Ho(o){return cp(y0(o,e,$0),o+"")}function tp(o){return Rb(o,$r,op)}function np(o){return Rb(o,bi,p0)}var rp=Bc?function(o){return Bc.get(o)}:Cp;function eu(o){for(var v=o.name+"",M=_a[v],j=cn.call(_a,v)?M.length:0;j--;){var G=M[j],te=G.func;if(te==null||te==o)return G.name}return v}function Ia(o){var v=cn.call(ee,"placeholder")?ee:o;return v.placeholder}function pt(){var o=ee.iteratee||wp;return o=o===wp?Nb:o,arguments.length?o(arguments[0],arguments[1]):o}function tu(o,v){var M=o.__data__;return $R(v)?M[typeof v=="string"?"string":"hash"]:M.map}function ip(o){for(var v=$r(o),M=v.length;M--;){var j=v[M],G=o[j];v[M]=[j,G,m0(G)]}return v}function Gs(o,v){var M=ie(o,v);return Ob(M)?M:e}function wR(o){var v=cn.call(o,js),M=o[js];try{o[js]=e;var j=!0}catch{}var G=Rc.call(o);return j&&(v?o[js]=M:delete o[js]),G}var op=Rd?function(o){return o==null?[]:(o=It(o),Wr(Rd(o),function(v){return bb.call(o,v)}))}:kp,p0=Rd?function(o){for(var v=[];o;)T(v,op(o)),o=Nc(o);return v}:kp,zr=ei;(Ld&&zr(new Ld(new ArrayBuffer(1)))!=On||pl&&zr(new pl)!=et||Od&&zr(Od.resolve())!=Wt||Sa&&zr(new Sa)!=Ln||fl&&zr(new fl)!=je)&&(zr=function(o){var v=ei(o),M=v==xn?o.constructor:e,j=M?Ys(M):"";if(j)switch(j){case nE:return On;case rE:return et;case iE:return Wt;case oE:return Ln;case sE:return je}return v});function xR(o,v,M){for(var j=-1,G=M.length;++j<G;){var te=M[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Br(v,o+ue);break;case"takeRight":o=gr(o,v-ue);break}}return{start:o,end:v}}function CR(o){var v=o.match(fi);return v?v[1].split(mo):[]}function f0(o,v,M){v=ps(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=Ao(v[j]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&lu(G)&&jo(ue,G)&&(Ct(o)||Xs(o)))}function kR(o){var v=o.length,M=new o.constructor(v);return v&&typeof o[0]=="string"&&cn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function g0(o){return typeof o.constructor=="function"&&!kl(o)?$a(Nc(o)):{}}function AR(o,v,M){var j=o.constructor;switch(v){case Qt:return Qd(o);case _e:case Te:return new j(+o);case On:return aR(o,M);case yr:case ur:case gn:case Wn:case Nn:case Kt:case ln:case Dr:case Kr:return Zb(o,M);case et:return new j;case lt:case Zn:return new j(o);case un:return lR(o);case Ln:return new j;case Tr:return cR(o)}}function SR(o,v){var M=v.length;if(!M)return o;var j=M-1;return v[j]=(M>1?"& ":"")+v[j],v=v.join(M>2?", ":" "),o.replace(br,`{
|
|
1471
|
+
*/var kk=Gl.exports,Mg;function Ak(){return Mg||(Mg=1,function(n,t){(function(){var e,r="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,s="__lodash_placeholder__",l=1,u=2,c=4,i=1,a=2,p=1,b=2,x=4,R=8,_=16,k=32,C=64,L=128,D=256,E=512,I=30,z="...",P=800,O=16,$=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,le=[["ary",L],["bind",p],["bindKey",b],["curry",R],["curryRight",_],["flip",E],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Xe="[object Error]",Ke="[object Function]",at="[object GeneratorFunction]",et="[object Map]",lt="[object Number]",Xt="[object Null]",xn="[object Object]",Wt="[object Promise]",vr="[object Proxy]",un="[object RegExp]",On="[object Set]",Zn="[object String]",Tr="[object Symbol]",mt="[object Undefined]",je="[object WeakMap]",Lt="[object WeakSet]",Ht="[object ArrayBuffer]",$n="[object DataView]",yr="[object Float32Array]",ur="[object Float64Array]",gn="[object Int8Array]",Wn="[object Int16Array]",Nn="[object Int32Array]",Gt="[object Uint8Array]",ln="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Kr="[object Uint32Array]",Gr=/\b__p \+= '';/g,Ai=/\b(__p \+=) '' \+/g,ci=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,to=/[&<>"']/g,ui=RegExp(Bn.source),Ns=RegExp(to.source),Yr=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,Jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(hr.source),An=/^\s+/,Tn=/\s/,br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,vo=/,? & /,yo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,es=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,Mo=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",xr="\\u0300-\\u036f",dr="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Cr=xr+dr+zn,mn="\\u2700-\\u27bf",no="a-z\\xdf-\\xf6\\xf8-\\xff",Pr="\\xac\\xb1\\xd7\\xf7",ts="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ds="\\u2000-\\u206f",Fs=" \\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",ns="A-Z\\xc0-\\xd6\\xd8-\\xde",pr="\\ufe0e\\ufe0f",Ps=Pr+ts+Ds+Fs,Io="['’]",rs="["+jt+"]",is="["+Ps+"]",bo="["+Cr+"]",Ws="\\d+",wa="["+mn+"]",os="["+no+"]",ss="[^"+jt+Ps+Ws+mn+no+ns+"]",Bs="\\ud83c[\\udffb-\\udfff]",as="(?:"+bo+"|"+Bs+")",Eo="[^"+jt+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",fr="[\\ud800-\\udbff][\\udc00-\\udfff]",wo="["+ns+"]",ro="\\u200d",xa="(?:"+os+"|"+ss+")",hl="(?:"+wo+"|"+ss+")",Ro="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",io="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",Lo=as+"?",ls="["+pr+"]?",Oo="(?:"+ro+"(?:"+[Eo,Fi,fr].join("|")+")"+ls+Lo+")*",Ca="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=ls+Lo+Oo,ka="(?:"+[wa,Fi,fr].join("|")+")"+We,Ne="(?:"+[Eo+bo+"?",bo,Fi,fr,rs].join("|")+")",Dn=RegExp(Io,"g"),No=RegExp(bo,"g"),Si=RegExp(Bs+"(?="+Bs+")|"+Ne+We,"g"),Qn=RegExp([wo+"?"+os+"+"+Ro+"(?="+[is,wo,"$"].join("|")+")",hl+"+"+io+"(?="+[is,wo+xa,"$"].join("|")+")",wo+"?"+xa+"+"+Ro,wo+"+"+io,xo,Ca,Ws,ka].join("|"),"g"),Aa=RegExp("["+ro+jt+Cr+pr+"]"),Do=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pi=["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"],Co=-1,nn={};nn[yr]=nn[ur]=nn[gn]=nn[Wn]=nn[Nn]=nn[Gt]=nn[ln]=nn[Dr]=nn[Kr]=!0,nn[se]=nn[de]=nn[Ht]=nn[_e]=nn[$n]=nn[Te]=nn[Xe]=nn[Ke]=nn[et]=nn[lt]=nn[xn]=nn[un]=nn[On]=nn[Zn]=nn[je]=!1;var Jt={};Jt[se]=Jt[de]=Jt[Ht]=Jt[$n]=Jt[_e]=Jt[Te]=Jt[yr]=Jt[ur]=Jt[gn]=Jt[Wn]=Jt[Nn]=Jt[et]=Jt[lt]=Jt[xn]=Jt[un]=Jt[On]=Jt[Zn]=Jt[Tr]=Jt[Gt]=Jt[ln]=Jt[Dr]=Jt[Kr]=!0,Jt[Xe]=Jt[Ke]=Jt[je]=!1;var rn={À:"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"},Ut={"&":"&","<":"<",">":">",'"':""","'":"'"},Wi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,yn=parseInt,vt=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo,Zr=typeof self=="object"&&self&&self.Object===Object&&self,hn=vt||Zr||Function("return this")(),Sn=t&&!t.nodeType&&t,ir=Sn&&!0&&n&&!n.nodeType&&n,Qr=ir&&ir.exports===Sn,Bi=Qr&&vt.process,jn=function(){try{var fe=ir&&ir.require&&ir.require("util").types;return fe||Bi&&Bi.binding&&Bi.binding("util")}catch{}}(),mi=jn&&jn.isArrayBuffer,cs=jn&&jn.isDate,Un=jn&&jn.isMap,_i=jn&&jn.isRegExp,$i=jn&&jn.isSet,zi=jn&&jn.isTypedArray;function kr(fe,$e,Ce){switch(Ce.length){case 0:return fe.call($e);case 1:return fe.call($e,Ce[0]);case 2:return fe.call($e,Ce[0],Ce[1]);case 3:return fe.call($e,Ce[0],Ce[1],Ce[2])}return fe.apply($e,Ce)}function Ar(fe,$e,Ce,Ue){for(var ut=-1,$t=fe==null?0:fe.length;++ut<$t;){var Zt=fe[ut];$e(Ue,Zt,Ce(Zt),fe)}return Ue}function Mr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function zs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Ir(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Wr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=0,$t=[];++Ce<Ue;){var Zt=fe[Ce];$e(Zt,Ce,fe)&&($t[ut++]=Zt)}return $t}function Ti(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Mi(fe,$e,Ce){for(var Ue=-1,ut=fe==null?0:fe.length;++Ue<ut;)if(Ce($e,fe[Ue]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=Array(Ue);++Ce<Ue;)ut[Ce]=$e(fe[Ce],Ce,fe);return ut}function T(fe,$e){for(var Ce=-1,Ue=$e.length,ut=fe.length;++Ce<Ue;)fe[ut+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ue){var ut=-1,$t=fe==null?0:fe.length;for(Ue&&$t&&(Ce=fe[++ut]);++ut<$t;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function F(fe,$e,Ce,Ue){var ut=fe==null?0:fe.length;for(Ue&&ut&&(Ce=fe[--ut]);ut--;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if($e(fe[Ce],Ce,fe))return!0;return!1}var H=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(yo)||[]}function Z(fe,$e,Ce){var Ue;return Ce(fe,function(ut,$t,Zt){if($e(ut,$t,Zt))return Ue=$t,!1}),Ue}function re(fe,$e,Ce,Ue){for(var ut=fe.length,$t=Ce+(Ue?1:-1);Ue?$t--:++$t<ut;)if($e(fe[$t],$t,fe))return $t;return-1}function ae(fe,$e,Ce){return $e===$e?Qe(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ue){for(var ut=Ce-1,$t=fe.length;++ut<$t;)if(Ue(fe[ut],$e))return ut;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?st(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?e:$e[fe]}}function Oe(fe){return function($e){return fe==null?e:fe[$e]}}function Le(fe,$e,Ce,Ue,ut){return ut(fe,function($t,Zt,It){Ce=Ue?(Ue=!1,$t):$e(Ce,$t,Zt,It)}),Ce}function Ve(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function st(fe,$e){for(var Ce,Ue=-1,ut=fe.length;++Ue<ut;){var $t=$e(fe[Ue]);$t!==e&&(Ce=Ce===e?$t:Ce+$t)}return Ce}function Ze(fe,$e){for(var Ce=-1,Ue=Array(fe);++Ce<fe;)Ue[Ce]=$e(Ce);return Ue}function tt(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function bn(fe){return fe&&fe.slice(0,Nt(fe)+1).replace(An,"")}function ct(fe){return function($e){return fe($e)}}function Mn(fe,$e){return y($e,function(Ce){return fe[Ce]})}function bt(fe,$e){return fe.has($e)}function _t(fe,$e){for(var Ce=-1,Ue=fe.length;++Ce<Ue&&ae($e,fe[Ce],0)>-1;);return Ce}function or(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Sr(fe,$e){for(var Ce=fe.length,Ue=0;Ce--;)fe[Ce]===$e&&++Ue;return Ue}var In=Oe(rn),V=Oe(Ut);function X(fe){return"\\"+Hn[fe]}function ie(fe,$e){return fe==null?e:fe[$e]}function oe(fe){return Aa.test(fe)}function ge(fe){return Do.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ie(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue,ut){Ce[++$e]=[ut,Ue]}),Ce}function Pe(fe,$e){return function(Ce){return fe($e(Ce))}}function Be(fe,$e){for(var Ce=-1,Ue=fe.length,ut=0,$t=[];++Ce<Ue;){var Zt=fe[Ce];(Zt===$e||Zt===s)&&(fe[Ce]=s,$t[ut++]=Ce)}return $t}function qe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Ye(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Qe(fe,$e,Ce){for(var Ue=Ce-1,ut=fe.length;++Ue<ut;)if(fe[Ue]===$e)return Ue;return-1}function yt(fe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(fe[Ue]===$e)return Ue;return Ue}function Pt(fe){return oe(fe)?rt(fe):H(fe)}function wt(fe){return oe(fe)?vn(fe):q(fe)}function Nt(fe){for(var $e=fe.length;$e--&&Tn.test(fe.charAt($e)););return $e}var dt=Oe(Wi);function rt(fe){for(var $e=Si.lastIndex=0;Si.test(fe);)++$e;return $e}function vn(fe){return fe.match(Si)||[]}function En(fe){return fe.match(Qn)||[]}var sr=function fe($e){$e=$e==null?hn:qt.defaults(hn.Object(),$e,qt.pick(hn,Pi));var Ce=$e.Array,Ue=$e.Date,ut=$e.Error,$t=$e.Function,Zt=$e.Math,It=$e.Object,Jr=$e.RegExp,Hi=$e.String,dn=$e.TypeError,_r=Ce.prototype,Fo=$t.prototype,Vn=It.prototype,Hs=$e["__core-js_shared__"],Ec=Fo.toString,cn=Vn.hasOwnProperty,jI=0,mb=function(){var o=/[^.]+$/.exec(Hs&&Hs.keys&&Hs.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Rc=Vn.toString,UI=Ec.call(It),VI=hn._,qI=Jr("^"+Ec.call(cn).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Qr?$e.Buffer:e,us=$e.Symbol,Oc=$e.Uint8Array,vb=Lc?Lc.allocUnsafe:e,Nc=Pe(It.getPrototypeOf,It),yb=It.create,bb=Vn.propertyIsEnumerable,Dc=_r.splice,wb=us?us.isConcatSpreadable:e,dl=us?us.iterator:e,js=us?us.toStringTag:e,Fc=function(){try{var o=Gs(It,"defineProperty");return o({},"",{}),o}catch{}}(),KI=$e.clearTimeout!==hn.clearTimeout&&$e.clearTimeout,GI=Ue&&Ue.now!==hn.Date.now&&Ue.now,YI=$e.setTimeout!==hn.setTimeout&&$e.setTimeout,Pc=Zt.ceil,Wc=Zt.floor,Rd=It.getOwnPropertySymbols,XI=Lc?Lc.isBuffer:e,xb=$e.isFinite,ZI=_r.join,QI=Pe(It.keys,It),gr=Zt.max,Br=Zt.min,JI=Ue.now,eE=$e.parseInt,Cb=Zt.random,tE=_r.reverse,Ld=Gs($e,"DataView"),pl=Gs($e,"Map"),Od=Gs($e,"Promise"),Sa=Gs($e,"Set"),fl=Gs($e,"WeakMap"),gl=Gs(It,"create"),Bc=fl&&new fl,_a={},nE=Ys(Ld),rE=Ys(pl),iE=Ys(Od),oE=Ys(Sa),sE=Ys(fl),zc=us?us.prototype:e,ml=zc?zc.valueOf:e,kb=zc?zc.toString:e;function ee(o){if(qn(o)&&!Ct(o)&&!(o instanceof Vt)){if(o instanceof ji)return o;if(cn.call(o,"__wrapped__"))return A0(o)}return new ji(o)}var $a=function(){function o(){}return function(v){if(!Fn(v))return{};if(yb)return yb(v);o.prototype=v;var M=new o;return o.prototype=e,M}}();function Hc(){}function ji(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=e}ee.templateSettings={escape:Yr,evaluate:Cn,interpolate:hi,variable:"",imports:{_:ee}},ee.prototype=Hc.prototype,ee.prototype.constructor=ee,ji.prototype=$a(Hc.prototype),ji.prototype.constructor=ji;function Vt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function aE(){var o=new Vt(this.__wrapped__);return o.__actions__=vi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=vi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=vi(this.__views__),o}function lE(){if(this.__filtered__){var o=new Vt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function cE(){var o=this.__wrapped__.value(),v=this.__dir__,M=Ct(o),j=v<0,G=M?o.length:0,te=xR(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ee=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ge=0,nt=Br(ye,this.__takeCount__);if(!M||!j&&G==ye&&nt==ye)return Kb(o,this.__actions__);var ft=[];e:for(;ye--&&Ge<nt;){Ee+=v;for(var Et=-1,gt=o[Ee];++Et<De;){var Bt=Re[Et],Kt=Bt.iteratee,Ri=Bt.type,ni=Kt(gt);if(Ri==A)gt=ni;else if(!ni){if(Ri==$)continue e;break e}}ft[Ge++]=gt}return ft}Vt.prototype=$a(Hc.prototype),Vt.prototype.constructor=Vt;function Us(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function uE(){this.__data__=gl?gl(null):{},this.size=0}function hE(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function dE(o){var v=this.__data__;if(gl){var M=v[o];return M===h?e:M}return cn.call(v,o)?v[o]:e}function pE(o){var v=this.__data__;return gl?v[o]!==e:cn.call(v,o)}function fE(o,v){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=gl&&v===e?h:v,this}Us.prototype.clear=uE,Us.prototype.delete=hE,Us.prototype.get=dE,Us.prototype.has=pE,Us.prototype.set=fE;function Po(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function gE(){this.__data__=[],this.size=0}function mE(o){var v=this.__data__,M=jc(v,o);if(M<0)return!1;var j=v.length-1;return M==j?v.pop():Dc.call(v,M,1),--this.size,!0}function vE(o){var v=this.__data__,M=jc(v,o);return M<0?e:v[M][1]}function yE(o){return jc(this.__data__,o)>-1}function bE(o,v){var M=this.__data__,j=jc(M,o);return j<0?(++this.size,M.push([o,v])):M[j][1]=v,this}Po.prototype.clear=gE,Po.prototype.delete=mE,Po.prototype.get=vE,Po.prototype.has=yE,Po.prototype.set=bE;function Wo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function wE(){this.size=0,this.__data__={hash:new Us,map:new(pl||Po),string:new Us}}function xE(o){var v=tu(this,o).delete(o);return this.size-=v?1:0,v}function CE(o){return tu(this,o).get(o)}function kE(o){return tu(this,o).has(o)}function AE(o,v){var M=tu(this,o),j=M.size;return M.set(o,v),this.size+=M.size==j?0:1,this}Wo.prototype.clear=wE,Wo.prototype.delete=xE,Wo.prototype.get=CE,Wo.prototype.has=kE,Wo.prototype.set=AE;function Vs(o){var v=-1,M=o==null?0:o.length;for(this.__data__=new Wo;++v<M;)this.add(o[v])}function SE(o){return this.__data__.set(o,h),this}function _E(o){return this.__data__.has(o)}Vs.prototype.add=Vs.prototype.push=SE,Vs.prototype.has=_E;function oo(o){var v=this.__data__=new Po(o);this.size=v.size}function $E(){this.__data__=new Po,this.size=0}function TE(o){var v=this.__data__,M=v.delete(o);return this.size=v.size,M}function ME(o){return this.__data__.get(o)}function IE(o){return this.__data__.has(o)}function EE(o,v){var M=this.__data__;if(M instanceof Po){var j=M.__data__;if(!pl||j.length<f-1)return j.push([o,v]),this.size=++M.size,this;M=this.__data__=new Wo(j)}return M.set(o,v),this.size=M.size,this}oo.prototype.clear=$E,oo.prototype.delete=TE,oo.prototype.get=ME,oo.prototype.has=IE,oo.prototype.set=EE;function Ab(o,v){var M=Ct(o),j=!M&&Xs(o),G=!M&&!j&&gs(o),te=!M&&!j&&!G&&Ea(o),ue=M||j||G||te,pe=ue?Ze(o.length,Hi):[],ye=pe.length;for(var Ee in o)(v||cn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||jo(Ee,ye)))&&pe.push(Ee);return pe}function Sb(o){var v=o.length;return v?o[Vd(0,v-1)]:e}function RE(o,v){return nu(vi(o),qs(v,0,o.length))}function LE(o){return nu(vi(o))}function Nd(o,v,M){(M!==e&&!so(o[v],M)||M===e&&!(v in o))&&Bo(o,v,M)}function vl(o,v,M){var j=o[v];(!(cn.call(o,v)&&so(j,M))||M===e&&!(v in o))&&Bo(o,v,M)}function jc(o,v){for(var M=o.length;M--;)if(so(o[M][0],v))return M;return-1}function OE(o,v,M,j){return hs(o,function(G,te,ue){v(j,G,M(G),ue)}),j}function _b(o,v){return o&&Ao(v,$r(v),o)}function NE(o,v){return o&&Ao(v,bi(v),o)}function Bo(o,v,M){v=="__proto__"&&Fc?Fc(o,v,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[v]=M}function Dd(o,v){for(var M=-1,j=v.length,G=Ce(j),te=o==null;++M<j;)G[M]=te?e:mp(o,v[M]);return G}function qs(o,v,M){return o===o&&(M!==e&&(o=o<=M?o:M),v!==e&&(o=o>=v?o:v)),o}function Ui(o,v,M,j,G,te){var ue,pe=v&l,ye=v&u,Ee=v&c;if(M&&(ue=G?M(o,j,G,te):M(o)),ue!==e)return ue;if(!Fn(o))return o;var Re=Ct(o);if(Re){if(ue=kR(o),!pe)return vi(o,ue)}else{var De=zr(o),Ge=De==Ke||De==at;if(gs(o))return Xb(o,pe);if(De==xn||De==se||Ge&&!G){if(ue=ye||Ge?{}:g0(o),!pe)return ye?dR(o,NE(ue,o)):hR(o,_b(ue,o))}else{if(!Jt[De])return G?o:{};ue=AR(o,De,pe)}}te||(te=new oo);var nt=te.get(o);if(nt)return nt;te.set(o,ue),U0(o)?o.forEach(function(gt){ue.add(Ui(gt,v,M,gt,o,te))}):H0(o)&&o.forEach(function(gt,Bt){ue.set(Bt,Ui(gt,v,M,Bt,o,te))});var ft=Ee?ye?np:tp:ye?bi:$r,Et=Re?e:ft(o);return Mr(Et||o,function(gt,Bt){Et&&(Bt=gt,gt=o[Bt]),vl(ue,Bt,Ui(gt,v,M,Bt,o,te))}),ue}function DE(o){var v=$r(o);return function(M){return $b(M,o,v)}}function $b(o,v,M){var j=M.length;if(o==null)return!j;for(o=It(o);j--;){var G=M[j],te=v[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function Tb(o,v,M){if(typeof o!="function")throw new dn(m);return Al(function(){o.apply(e,M)},v)}function yl(o,v,M,j){var G=-1,te=Ti,ue=!0,pe=o.length,ye=[],Ee=v.length;if(!pe)return ye;M&&(v=y(v,ct(M))),j?(te=Mi,ue=!1):v.length>=f&&(te=bt,ue=!1,v=new Vs(v));e:for(;++G<pe;){var Re=o[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ge=Ee;Ge--;)if(v[Ge]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var hs=t0(ko),Mb=t0(Pd,!0);function FE(o,v){var M=!0;return hs(o,function(j,G,te){return M=!!v(j,G,te),M}),M}function Uc(o,v,M){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===e?ue===ue&&!Ei(ue):M(ue,pe)))var pe=ue,ye=te}return ye}function PE(o,v,M,j){var G=o.length;for(M=Mt(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:Mt(j),j<0&&(j+=G),j=M>j?0:q0(j);M<j;)o[M++]=v;return o}function Ib(o,v){var M=[];return hs(o,function(j,G,te){v(j,G,te)&&M.push(j)}),M}function Er(o,v,M,j,G){var te=-1,ue=o.length;for(M||(M=_R),G||(G=[]);++te<ue;){var pe=o[te];v>0&&M(pe)?v>1?Er(pe,v-1,M,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var Fd=n0(),Eb=n0(!0);function ko(o,v){return o&&Fd(o,v,$r)}function Pd(o,v){return o&&Eb(o,v,$r)}function Vc(o,v){return Wr(v,function(M){return Uo(o[M])})}function Ks(o,v){v=ps(v,o);for(var M=0,j=v.length;o!=null&&M<j;)o=o[So(v[M++])];return M&&M==j?o:e}function Rb(o,v,M){var j=v(o);return Ct(o)?j:T(j,M(o))}function ei(o){return o==null?o===e?mt:Xt:js&&js in It(o)?wR(o):LR(o)}function Wd(o,v){return o>v}function WE(o,v){return o!=null&&cn.call(o,v)}function BE(o,v){return o!=null&&v in It(o)}function zE(o,v,M){return o>=Br(v,M)&&o<gr(v,M)}function Bd(o,v,M){for(var j=M?Mi:Ti,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ee=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,ct(v))),ye=Br(Re.length,ye),pe[ue]=!M&&(v||G>=120&&Re.length>=120)?new Vs(ue&&Re):e}Re=o[0];var De=-1,Ge=pe[0];e:for(;++De<G&&Ee.length<ye;){var nt=Re[De],ft=v?v(nt):nt;if(nt=M||nt!==0?nt:0,!(Ge?bt(Ge,ft):j(Ee,ft,M))){for(ue=te;--ue;){var Et=pe[ue];if(!(Et?bt(Et,ft):j(o[ue],ft,M)))continue e}Ge&&Ge.push(ft),Ee.push(nt)}}return Ee}function HE(o,v,M,j){return ko(o,function(G,te,ue){v(j,M(G),te,ue)}),j}function bl(o,v,M){v=ps(v,o),o=b0(o,v);var j=o==null?o:o[So(qi(v))];return j==null?e:kr(j,o,M)}function Lb(o){return qn(o)&&ei(o)==se}function jE(o){return qn(o)&&ei(o)==Ht}function UE(o){return qn(o)&&ei(o)==Te}function wl(o,v,M,j,G){return o===v?!0:o==null||v==null||!qn(o)&&!qn(v)?o!==o&&v!==v:VE(o,v,M,j,wl,G)}function VE(o,v,M,j,G,te){var ue=Ct(o),pe=Ct(v),ye=ue?de:zr(o),Ee=pe?de:zr(v);ye=ye==se?xn:ye,Ee=Ee==se?xn:Ee;var Re=ye==xn,De=Ee==xn,Ge=ye==Ee;if(Ge&&gs(o)){if(!gs(v))return!1;ue=!0,Re=!1}if(Ge&&!Re)return te||(te=new oo),ue||Ea(o)?d0(o,v,M,j,G,te):yR(o,v,ye,M,j,G,te);if(!(M&i)){var nt=Re&&cn.call(o,"__wrapped__"),ft=De&&cn.call(v,"__wrapped__");if(nt||ft){var Et=nt?o.value():o,gt=ft?v.value():v;return te||(te=new oo),G(Et,gt,M,j,te)}}return Ge?(te||(te=new oo),bR(o,v,M,j,G,te)):!1}function qE(o){return qn(o)&&zr(o)==et}function zd(o,v,M,j){var G=M.length,te=G,ue=!j;if(o==null)return!te;for(o=It(o);G--;){var pe=M[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=M[G];var ye=pe[0],Ee=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new oo;if(j)var Ge=j(Ee,Re,ye,o,v,De);if(!(Ge===e?wl(Re,Ee,i|a,j,De):Ge))return!1}}return!0}function Ob(o){if(!Fn(o)||TR(o))return!1;var v=Uo(o)?qI:wr;return v.test(Ys(o))}function KE(o){return qn(o)&&ei(o)==un}function GE(o){return qn(o)&&zr(o)==On}function YE(o){return qn(o)&&lu(o.length)&&!!nn[ei(o)]}function Nb(o){return typeof o=="function"?o:o==null?wi:typeof o=="object"?Ct(o)?Pb(o[0],o[1]):Fb(o):rw(o)}function Hd(o){if(!kl(o))return QI(o);var v=[];for(var M in It(o))cn.call(o,M)&&M!="constructor"&&v.push(M);return v}function XE(o){if(!Fn(o))return RR(o);var v=kl(o),M=[];for(var j in o)j=="constructor"&&(v||!cn.call(o,j))||M.push(j);return M}function jd(o,v){return o<v}function Db(o,v){var M=-1,j=yi(o)?Ce(o.length):[];return hs(o,function(G,te,ue){j[++M]=v(G,te,ue)}),j}function Fb(o){var v=ip(o);return v.length==1&&v[0][2]?v0(v[0][0],v[0][1]):function(M){return M===o||zd(M,o,v)}}function Pb(o,v){return sp(o)&&m0(v)?v0(So(o),v):function(M){var j=mp(M,o);return j===e&&j===v?vp(M,o):wl(v,j,i|a)}}function qc(o,v,M,j,G){o!==v&&Fd(v,function(te,ue){if(G||(G=new oo),Fn(te))ZE(o,v,ue,M,qc,j,G);else{var pe=j?j(lp(o,ue),te,ue+"",o,v,G):e;pe===e&&(pe=te),Nd(o,ue,pe)}},bi)}function ZE(o,v,M,j,G,te,ue){var pe=lp(o,M),ye=lp(v,M),Ee=ue.get(ye);if(Ee){Nd(o,M,Ee);return}var Re=te?te(pe,ye,M+"",o,v,ue):e,De=Re===e;if(De){var Ge=Ct(ye),nt=!Ge&&gs(ye),ft=!Ge&&!nt&&Ea(ye);Re=ye,Ge||nt||ft?Ct(pe)?Re=pe:Jn(pe)?Re=vi(pe):nt?(De=!1,Re=Xb(ye,!0)):ft?(De=!1,Re=Zb(ye,!0)):Re=[]:Sl(ye)||Xs(ye)?(Re=pe,Xs(pe)?Re=K0(pe):(!Fn(pe)||Uo(pe))&&(Re=g0(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),Nd(o,M,Re)}function Wb(o,v){var M=o.length;if(M)return v+=v<0?M:0,jo(v,M)?o[v]:e}function Bb(o,v,M){v.length?v=y(v,function(te){return Ct(te)?function(ue){return Ks(ue,te.length===1?te[0]:te)}:te}):v=[wi];var j=-1;v=y(v,ct(pt()));var G=Db(o,function(te,ue,pe){var ye=y(v,function(Ee){return Ee(te)});return{criteria:ye,index:++j,value:te}});return Ve(G,function(te,ue){return uR(te,ue,M)})}function QE(o,v){return zb(o,v,function(M,j){return vp(o,j)})}function zb(o,v,M){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=Ks(o,ue);M(pe,ue)&&xl(te,ps(ue,o),pe)}return te}function JE(o){return function(v){return Ks(v,o)}}function Ud(o,v,M,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=vi(v)),M&&(pe=y(o,ct(M)));++te<ue;)for(var ye=0,Ee=v[te],Re=M?M(Ee):Ee;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Dc.call(pe,ye,1),Dc.call(o,ye,1);return o}function Hb(o,v){for(var M=o?v.length:0,j=M-1;M--;){var G=v[M];if(M==j||G!==te){var te=G;jo(G)?Dc.call(o,G,1):Gd(o,G)}}return o}function Vd(o,v){return o+Wc(Cb()*(v-o+1))}function eR(o,v,M,j){for(var G=-1,te=gr(Pc((v-o)/(M||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=M;return ue}function qd(o,v){var M="";if(!o||v<1||v>U)return M;do v%2&&(M+=o),v=Wc(v/2),v&&(o+=o);while(v);return M}function Dt(o,v){return cp(y0(o,v,wi),o+"")}function tR(o){return Sb(Ra(o))}function nR(o,v){var M=Ra(o);return nu(M,qs(v,0,M.length))}function xl(o,v,M,j){if(!Fn(o))return o;v=ps(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=So(v[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ee=j?j(Re,ye,pe):e,Ee===e&&(Ee=Fn(Re)?Re:jo(v[G+1])?[]:{})}vl(pe,ye,Ee),pe=pe[ye]}return o}var jb=Bc?function(o,v){return Bc.set(o,v),o}:wi,rR=Fc?function(o,v){return Fc(o,"toString",{configurable:!0,enumerable:!1,value:bp(v),writable:!0})}:wi;function iR(o){return nu(Ra(o))}function Vi(o,v,M){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),M=M>G?G:M,M<0&&(M+=G),G=v>M?0:M-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function oR(o,v){var M;return hs(o,function(j,G,te){return M=v(j,G,te),!M}),!!M}function Kc(o,v,M){var j=0,G=o==null?j:o.length;if(typeof v=="number"&&v===v&&G<=ne){for(;j<G;){var te=j+G>>>1,ue=o[te];ue!==null&&!Ei(ue)&&(M?ue<=v:ue<v)?j=te+1:G=te}return G}return Kd(o,v,wi,M)}function Kd(o,v,M,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=M(v);for(var ue=v!==v,pe=v===null,ye=Ei(v),Ee=v===e;G<te;){var Re=Wc((G+te)/2),De=M(o[Re]),Ge=De!==e,nt=De===null,ft=De===De,Et=Ei(De);if(ue)var gt=j||ft;else Ee?gt=ft&&(j||Ge):pe?gt=ft&&Ge&&(j||!nt):ye?gt=ft&&Ge&&!nt&&(j||!Et):nt||Et?gt=!1:gt=j?De<=v:De<v;gt?G=Re+1:te=Re}return Br(te,he)}function Ub(o,v){for(var M=-1,j=o.length,G=0,te=[];++M<j;){var ue=o[M],pe=v?v(ue):ue;if(!M||!so(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function Vb(o){return typeof o=="number"?o:Ei(o)?Q:+o}function Ii(o){if(typeof o=="string")return o;if(Ct(o))return y(o,Ii)+"";if(Ei(o))return kb?kb.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function ds(o,v,M){var j=-1,G=Ti,te=o.length,ue=!0,pe=[],ye=pe;if(M)ue=!1,G=Mi;else if(te>=f){var Ee=v?null:mR(o);if(Ee)return qe(Ee);ue=!1,G=bt,ye=new Vs}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=M||Re!==0?Re:0,ue&&De===De){for(var Ge=ye.length;Ge--;)if(ye[Ge]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,M)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function Gd(o,v){return v=ps(v,o),o=b0(o,v),o==null||delete o[So(qi(v))]}function qb(o,v,M,j){return xl(o,v,M(Ks(o,v)),j)}function Gc(o,v,M,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return M?Vi(o,j?0:te,j?te+1:G):Vi(o,j?te+1:0,j?G:te)}function Kb(o,v){var M=o;return M instanceof Vt&&(M=M.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Yd(o,v,M){var j=o.length;if(j<2)return j?ds(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=yl(te[G]||ue,o[pe],v,M));return ds(Er(te,1),v,M)}function Gb(o,v,M){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:e;M(ue,o[j],pe)}return ue}function Xd(o){return Jn(o)?o:[]}function Zd(o){return typeof o=="function"?o:wi}function ps(o,v){return Ct(o)?o:sp(o,v)?[o]:k0(sn(o))}var sR=Dt;function fs(o,v,M){var j=o.length;return M=M===e?j:M,!v&&M>=j?o:Vi(o,v,M)}var Yb=KI||function(o){return hn.clearTimeout(o)};function Xb(o,v){if(v)return o.slice();var M=o.length,j=vb?vb(M):new o.constructor(M);return o.copy(j),j}function Qd(o){var v=new o.constructor(o.byteLength);return new Oc(v).set(new Oc(o)),v}function aR(o,v){var M=v?Qd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function lR(o){var v=new o.constructor(o.source,Fr.exec(o));return v.lastIndex=o.lastIndex,v}function cR(o){return ml?It(ml.call(o)):{}}function Zb(o,v){var M=v?Qd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Qb(o,v){if(o!==v){var M=o!==e,j=o===null,G=o===o,te=Ei(o),ue=v!==e,pe=v===null,ye=v===v,Ee=Ei(v);if(!pe&&!Ee&&!te&&o>v||te&&ue&&ye&&!pe&&!Ee||j&&ue&&ye||!M&&ye||!G)return 1;if(!j&&!te&&!Ee&&o<v||Ee&&M&&G&&!j&&!te||pe&&M&&G||!ue&&G||!ye)return-1}return 0}function uR(o,v,M){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=M.length;++j<ue;){var ye=Qb(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ee=M[j];return ye*(Ee=="desc"?-1:1)}}return o.index-v.index}function Jb(o,v,M,j){for(var G=-1,te=o.length,ue=M.length,pe=-1,ye=v.length,Ee=gr(te-ue,0),Re=Ce(ye+Ee),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[M[G]]=o[G]);for(;Ee--;)Re[pe++]=o[G++];return Re}function e0(o,v,M,j){for(var G=-1,te=o.length,ue=-1,pe=M.length,ye=-1,Ee=v.length,Re=gr(te-pe,0),De=Ce(Re+Ee),Ge=!j;++G<Re;)De[G]=o[G];for(var nt=G;++ye<Ee;)De[nt+ye]=v[ye];for(;++ue<pe;)(Ge||G<te)&&(De[nt+M[ue]]=o[G++]);return De}function vi(o,v){var M=-1,j=o.length;for(v||(v=Ce(j));++M<j;)v[M]=o[M];return v}function Ao(o,v,M,j){var G=!M;M||(M={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(M[pe],o[pe],pe,M,o):e;ye===e&&(ye=o[pe]),G?Bo(M,pe,ye):vl(M,pe,ye)}return M}function hR(o,v){return Ao(o,op(o),v)}function dR(o,v){return Ao(o,p0(o),v)}function Yc(o,v){return function(M,j){var G=Ct(M)?Ar:OE,te=v?v():{};return G(M,o,pt(j,2),te)}}function Ta(o){return Dt(function(v,M){var j=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&ti(M[0],M[1],ue)&&(te=G<3?e:te,G=1),v=It(v);++j<G;){var pe=M[j];pe&&o(v,pe,j,te)}return v})}function t0(o,v){return function(M,j){if(M==null)return M;if(!yi(M))return o(M,j);for(var G=M.length,te=v?G:-1,ue=It(M);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return M}}function n0(o){return function(v,M,j){for(var G=-1,te=It(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(M(te[ye],ye,te)===!1)break}return v}}function pR(o,v,M){var j=v&p,G=Cl(o);function te(){var ue=this&&this!==hn&&this instanceof te?G:o;return ue.apply(j?M:this,arguments)}return te}function r0(o){return function(v){v=sn(v);var M=oe(v)?wt(v):e,j=M?M[0]:v.charAt(0),G=M?fs(M,1).join(""):v.slice(1);return j[o]()+G}}function Ma(o){return function(v){return S(tw(ew(v).replace(Dn,"")),o,"")}}function Cl(o){return function(){var v=arguments;switch(v.length){case 0:return new o;case 1:return new o(v[0]);case 2:return new o(v[0],v[1]);case 3:return new o(v[0],v[1],v[2]);case 4:return new o(v[0],v[1],v[2],v[3]);case 5:return new o(v[0],v[1],v[2],v[3],v[4]);case 6:return new o(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new o(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var M=$a(o.prototype),j=o.apply(M,v);return Fn(j)?j:M}}function fR(o,v,M){var j=Cl(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Ia(G);pe--;)ue[pe]=arguments[pe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:Be(ue,ye);if(te-=Ee.length,te<M)return l0(o,v,Xc,G.placeholder,e,ue,Ee,e,e,M-te);var Re=this&&this!==hn&&this instanceof G?j:o;return kr(Re,this,ue)}return G}function i0(o){return function(v,M,j){var G=It(v);if(!yi(v)){var te=pt(M,3);v=$r(v),M=function(pe){return te(G[pe],pe,G)}}var ue=o(v,M,j);return ue>-1?G[te?v[ue]:ue]:e}}function o0(o){return Ho(function(v){var M=v.length,j=M,G=ji.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new dn(m);if(G&&!ue&&eu(te)=="wrapper")var ue=new ji([],!0)}for(j=ue?j:M;++j<M;){te=v[j];var pe=eu(te),ye=pe=="wrapper"?rp(te):e;ye&&ap(ye[0])&&ye[1]==(L|R|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[eu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&ap(te)?ue[pe]():ue.thru(te)}return function(){var Ee=arguments,Re=Ee[0];if(ue&&Ee.length==1&&Ct(Re))return ue.plant(Re).value();for(var De=0,Ge=M?v[De].apply(this,Ee):Re;++De<M;)Ge=v[De].call(this,Ge);return Ge}})}function Xc(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&L,De=v&p,Ge=v&b,nt=v&(R|_),ft=v&E,Et=Ge?e:Cl(o);function gt(){for(var Bt=arguments.length,Kt=Ce(Bt),Ri=Bt;Ri--;)Kt[Ri]=arguments[Ri];if(nt)var ni=Ia(gt),Li=Sr(Kt,ni);if(j&&(Kt=Jb(Kt,j,G,nt)),te&&(Kt=e0(Kt,te,ue,nt)),Bt-=Li,nt&&Bt<Ee){var er=Be(Kt,ni);return l0(o,v,Xc,gt.placeholder,M,Kt,er,pe,ye,Ee-Bt)}var ao=De?M:this,qo=Ge?ao[o]:o;return Bt=Kt.length,pe?Kt=OR(Kt,pe):ft&&Bt>1&&Kt.reverse(),Re&&ye<Bt&&(Kt.length=ye),this&&this!==hn&&this instanceof gt&&(qo=Et||Cl(qo)),qo.apply(ao,Kt)}return gt}function s0(o,v){return function(M,j){return HE(M,o,v(j),{})}}function Zc(o,v){return function(M,j){var G;if(M===e&&j===e)return v;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=Ii(M),j=Ii(j)):(M=Vb(M),j=Vb(j)),G=o(M,j)}return G}}function Jd(o){return Ho(function(v){return v=y(v,ct(pt())),Dt(function(M){var j=this;return o(v,function(G){return kr(G,j,M)})})})}function Qc(o,v){v=v===e?" ":Ii(v);var M=v.length;if(M<2)return M?qd(v,o):v;var j=qd(v,Pc(o/Pt(v)));return oe(v)?fs(wt(j),0,o).join(""):j.slice(0,o)}function gR(o,v,M,j){var G=v&p,te=Cl(o);function ue(){for(var pe=-1,ye=arguments.length,Ee=-1,Re=j.length,De=Ce(Re+ye),Ge=this&&this!==hn&&this instanceof ue?te:o;++Ee<Re;)De[Ee]=j[Ee];for(;ye--;)De[Ee++]=arguments[++pe];return kr(Ge,G?M:this,De)}return ue}function a0(o){return function(v,M,j){return j&&typeof j!="number"&&ti(v,M,j)&&(M=j=e),v=Vo(v),M===e?(M=v,v=0):M=Vo(M),j=j===e?v<M?1:-1:Vo(j),eR(v,M,j,o)}}function Jc(o){return function(v,M){return typeof v=="string"&&typeof M=="string"||(v=Ki(v),M=Ki(M)),o(v,M)}}function l0(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&R,De=Re?ue:e,Ge=Re?e:ue,nt=Re?te:e,ft=Re?e:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Et=[o,v,G,nt,De,ft,Ge,pe,ye,Ee],gt=M.apply(e,Et);return ap(o)&&w0(gt,Et),gt.placeholder=j,x0(gt,o,v)}function ep(o){var v=Zt[o];return function(M,j){if(M=Ki(M),j=j==null?0:Br(Mt(j),292),j&&xb(M)){var G=(sn(M)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(sn(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(M)}}var mR=Sa&&1/qe(new Sa([,-0]))[1]==B?function(o){return new Sa(o)}:Cp;function c0(o){return function(v){var M=zr(v);return M==et?Ie(v):M==On?Ye(v):tt(v,o(v))}}function zo(o,v,M,j,G,te,ue,pe){var ye=v&b;if(!ye&&typeof o!="function")throw new dn(m);var Ee=j?j.length:0;if(Ee||(v&=-97,j=G=e),ue=ue===e?ue:gr(Mt(ue),0),pe=pe===e?pe:Mt(pe),Ee-=G?G.length:0,v&C){var Re=j,De=G;j=G=e}var Ge=ye?e:rp(o),nt=[o,v,M,j,G,Re,De,te,ue,pe];if(Ge&&ER(nt,Ge),o=nt[0],v=nt[1],M=nt[2],j=nt[3],G=nt[4],pe=nt[9]=nt[9]===e?ye?0:o.length:gr(nt[9]-Ee,0),!pe&&v&(R|_)&&(v&=-25),!v||v==p)var ft=pR(o,v,M);else v==R||v==_?ft=fR(o,v,pe):(v==k||v==(p|k))&&!G.length?ft=gR(o,v,M,j):ft=Xc.apply(e,nt);var Et=Ge?jb:w0;return x0(Et(ft,nt),o,v)}function u0(o,v,M,j){return o===e||so(o,Vn[M])&&!cn.call(j,M)?v:o}function h0(o,v,M,j,G,te){return Fn(o)&&Fn(v)&&(te.set(v,o),qc(o,v,e,h0,te),te.delete(v)),o}function vR(o){return Sl(o)?e:o}function d0(o,v,M,j,G,te){var ue=M&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ee=te.get(o),Re=te.get(v);if(Ee&&Re)return Ee==v&&Re==o;var De=-1,Ge=!0,nt=M&a?new Vs:e;for(te.set(o,v),te.set(v,o);++De<pe;){var ft=o[De],Et=v[De];if(j)var gt=ue?j(Et,ft,De,v,o,te):j(ft,Et,De,o,v,te);if(gt!==e){if(gt)continue;Ge=!1;break}if(nt){if(!W(v,function(Bt,Kt){if(!bt(nt,Kt)&&(ft===Bt||G(ft,Bt,M,j,te)))return nt.push(Kt)})){Ge=!1;break}}else if(!(ft===Et||G(ft,Et,M,j,te))){Ge=!1;break}}return te.delete(o),te.delete(v),Ge}function yR(o,v,M,j,G,te,ue){switch(M){case $n:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Ht:return!(o.byteLength!=v.byteLength||!te(new Oc(o),new Oc(v)));case _e:case Te:case lt:return so(+o,+v);case Xe:return o.name==v.name&&o.message==v.message;case un:case Zn:return o==v+"";case et:var pe=Ie;case On:var ye=j&i;if(pe||(pe=qe),o.size!=v.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==v;j|=a,ue.set(o,v);var Re=d0(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Tr:if(ml)return ml.call(o)==ml.call(v)}return!1}function bR(o,v,M,j,G,te){var ue=M&i,pe=tp(o),ye=pe.length,Ee=tp(v),Re=Ee.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ge=pe[De];if(!(ue?Ge in v:cn.call(v,Ge)))return!1}var nt=te.get(o),ft=te.get(v);if(nt&&ft)return nt==v&&ft==o;var Et=!0;te.set(o,v),te.set(v,o);for(var gt=ue;++De<ye;){Ge=pe[De];var Bt=o[Ge],Kt=v[Ge];if(j)var Ri=ue?j(Kt,Bt,Ge,v,o,te):j(Bt,Kt,Ge,o,v,te);if(!(Ri===e?Bt===Kt||G(Bt,Kt,M,j,te):Ri)){Et=!1;break}gt||(gt=Ge=="constructor")}if(Et&&!gt){var ni=o.constructor,Li=v.constructor;ni!=Li&&"constructor"in o&&"constructor"in v&&!(typeof ni=="function"&&ni instanceof ni&&typeof Li=="function"&&Li instanceof Li)&&(Et=!1)}return te.delete(o),te.delete(v),Et}function Ho(o){return cp(y0(o,e,$0),o+"")}function tp(o){return Rb(o,$r,op)}function np(o){return Rb(o,bi,p0)}var rp=Bc?function(o){return Bc.get(o)}:Cp;function eu(o){for(var v=o.name+"",M=_a[v],j=cn.call(_a,v)?M.length:0;j--;){var G=M[j],te=G.func;if(te==null||te==o)return G.name}return v}function Ia(o){var v=cn.call(ee,"placeholder")?ee:o;return v.placeholder}function pt(){var o=ee.iteratee||wp;return o=o===wp?Nb:o,arguments.length?o(arguments[0],arguments[1]):o}function tu(o,v){var M=o.__data__;return $R(v)?M[typeof v=="string"?"string":"hash"]:M.map}function ip(o){for(var v=$r(o),M=v.length;M--;){var j=v[M],G=o[j];v[M]=[j,G,m0(G)]}return v}function Gs(o,v){var M=ie(o,v);return Ob(M)?M:e}function wR(o){var v=cn.call(o,js),M=o[js];try{o[js]=e;var j=!0}catch{}var G=Rc.call(o);return j&&(v?o[js]=M:delete o[js]),G}var op=Rd?function(o){return o==null?[]:(o=It(o),Wr(Rd(o),function(v){return bb.call(o,v)}))}:kp,p0=Rd?function(o){for(var v=[];o;)T(v,op(o)),o=Nc(o);return v}:kp,zr=ei;(Ld&&zr(new Ld(new ArrayBuffer(1)))!=$n||pl&&zr(new pl)!=et||Od&&zr(Od.resolve())!=Wt||Sa&&zr(new Sa)!=On||fl&&zr(new fl)!=je)&&(zr=function(o){var v=ei(o),M=v==xn?o.constructor:e,j=M?Ys(M):"";if(j)switch(j){case nE:return $n;case rE:return et;case iE:return Wt;case oE:return On;case sE:return je}return v});function xR(o,v,M){for(var j=-1,G=M.length;++j<G;){var te=M[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Br(v,o+ue);break;case"takeRight":o=gr(o,v-ue);break}}return{start:o,end:v}}function CR(o){var v=o.match(fi);return v?v[1].split(vo):[]}function f0(o,v,M){v=ps(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=So(v[j]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&lu(G)&&jo(ue,G)&&(Ct(o)||Xs(o)))}function kR(o){var v=o.length,M=new o.constructor(v);return v&&typeof o[0]=="string"&&cn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function g0(o){return typeof o.constructor=="function"&&!kl(o)?$a(Nc(o)):{}}function AR(o,v,M){var j=o.constructor;switch(v){case Ht:return Qd(o);case _e:case Te:return new j(+o);case $n:return aR(o,M);case yr:case ur:case gn:case Wn:case Nn:case Gt:case ln:case Dr:case Kr:return Zb(o,M);case et:return new j;case lt:case Zn:return new j(o);case un:return lR(o);case On:return new j;case Tr:return cR(o)}}function SR(o,v){var M=v.length;if(!M)return o;var j=M-1;return v[j]=(M>1?"& ":"")+v[j],v=v.join(M>2?", ":" "),o.replace(br,`{
|
|
1472
1472
|
/* [wrapped with `+v+`] */
|
|
1473
|
-
`)}function _R(o){return Ct(o)||Xs(o)||!!(wb&&o&&o[wb])}function jo(o,v){var M=typeof o;return v=v??U,!!v&&(M=="number"||M!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ti(o,v,M){if(!Fn(M))return!1;var j=typeof v;return(j=="number"?yi(M)&&jo(v,M.length):j=="string"&&v in M)?so(M[v],o):!1}function sp(o,v){if(Ct(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||Ei(o)?!0:di.test(o)||!Jo.test(o)||v!=null&&o in It(v)}function $R(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function ap(o){var v=eu(o),M=ee[v];if(typeof M!="function"||!(v in Ut.prototype))return!1;if(o===M)return!0;var j=rp(M);return!!j&&o===j[0]}function TR(o){return!!mb&&mb in o}var MR=Hs?Uo:Ap;function kl(o){var v=o&&o.constructor,M=typeof v=="function"&&v.prototype||Vn;return o===M}function m0(o){return o===o&&!Fn(o)}function v0(o,v){return function(M){return M==null?!1:M[o]===v&&(v!==e||o in It(M))}}function IR(o){var v=su(o,function(j){return M.size===d&&M.clear(),j}),M=v.cache;return v}function ER(o,v){var M=o[1],j=v[1],G=M|j,te=G<(p|b|L),ue=j==L&&M==R||j==L&&M==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&M==R;if(!(te||ue))return o;j&p&&(o[2]=v[2],G|=M&p?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?Jb(ye,pe,v[4]):pe,o[4]=ye?Be(o[3],s):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?e0(ye,pe,v[6]):pe,o[6]=ye?Be(o[5],s):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Br(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function RR(o){var v=[];if(o!=null)for(var M in It(o))v.push(M);return v}function LR(o){return Rc.call(o)}function y0(o,v,M){return v=gr(v===e?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=gr(j.length-v,0),ue=Ce(te);++G<te;)ue[G]=j[v+G];G=-1;for(var pe=Ce(v+1);++G<v;)pe[G]=j[G];return pe[v]=M(ue),kr(o,this,pe)}}function b0(o,v){return v.length<2?o:Ks(o,Vi(v,0,-1))}function OR(o,v){for(var M=o.length,j=Br(v.length,M),G=vi(o);j--;){var te=v[j];o[j]=jo(te,M)?G[te]:e}return o}function lp(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var w0=C0(jb),Al=YI||function(o,v){return hn.setTimeout(o,v)},cp=C0(rR);function x0(o,v,M){var j=v+"";return cp(o,SR(j,NR(CR(j),M)))}function C0(o){var v=0,M=0;return function(){var j=JI(),G=O-(j-M);if(M=j,G>0){if(++v>=P)return arguments[0]}else v=0;return o.apply(e,arguments)}}function nu(o,v){var M=-1,j=o.length,G=j-1;for(v=v===e?j:v;++M<v;){var te=Vd(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=v,o}var k0=IR(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(Cn,function(M,j,G,te){v.push(G?te.replace(Xr,"$1"):j||M)}),v});function Ao(o){if(typeof o=="string"||Ei(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function Ys(o){if(o!=null){try{return Ec.call(o)}catch{}try{return o+""}catch{}}return""}function NR(o,v){return Mr(le,function(M){var j="_."+M[0];v&M[1]&&!Ti(o,j)&&o.push(j)}),o.sort()}function A0(o){if(o instanceof Ut)return o.clone();var v=new ji(o.__wrapped__,o.__chain__);return v.__actions__=vi(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function DR(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=gr(Mt(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Pc(j/v));G<j;)ue[te++]=Vi(o,G,G+=v);return ue}function FR(o){for(var v=-1,M=o==null?0:o.length,j=0,G=[];++v<M;){var te=o[v];te&&(G[j++]=te)}return G}function PR(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),M=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(Ct(M)?vi(M):[M],Er(v,1))}var WR=Dt(function(o,v){return Jn(o)?yl(o,Er(v,1,Jn,!0)):[]}),BR=Dt(function(o,v){var M=qi(v);return Jn(M)&&(M=e),Jn(o)?yl(o,Er(v,1,Jn,!0),pt(M,2)):[]}),zR=Dt(function(o,v){var M=qi(v);return Jn(M)&&(M=e),Jn(o)?yl(o,Er(v,1,Jn,!0),e,M):[]});function HR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),Vi(o,v<0?0:v,j)):[]}function jR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,0,v<0?0:v)):[]}function UR(o,v){return o&&o.length?Gc(o,pt(v,3),!0,!0):[]}function VR(o,v){return o&&o.length?Gc(o,pt(v,3),!0):[]}function qR(o,v,M,j){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&ti(o,v,M)&&(M=0,j=G),PE(o,v,M,j)):[]}function S0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=gr(j+G,0)),re(o,pt(v,3),G)}function _0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return M!==e&&(G=Mt(M),G=M<0?gr(j+G,0):Br(G,j-1)),re(o,pt(v,3),G,!0)}function $0(o){var v=o==null?0:o.length;return v?Er(o,1):[]}function KR(o){var v=o==null?0:o.length;return v?Er(o,B):[]}function GR(o,v){var M=o==null?0:o.length;return M?(v=v===e?1:Mt(v),Er(o,v)):[]}function YR(o){for(var v=-1,M=o==null?0:o.length,j={};++v<M;){var G=o[v];j[G[0]]=G[1]}return j}function T0(o){return o&&o.length?o[0]:e}function XR(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=gr(j+G,0)),ae(o,v,G)}function ZR(o){var v=o==null?0:o.length;return v?Vi(o,0,-1):[]}var QR=Dt(function(o){var v=y(o,Xd);return v.length&&v[0]===o[0]?Bd(v):[]}),JR=Dt(function(o){var v=qi(o),M=y(o,Xd);return v===qi(M)?v=e:M.pop(),M.length&&M[0]===o[0]?Bd(M,pt(v,2)):[]}),eL=Dt(function(o){var v=qi(o),M=y(o,Xd);return v=typeof v=="function"?v:e,v&&M.pop(),M.length&&M[0]===o[0]?Bd(M,e,v):[]});function tL(o,v){return o==null?"":ZI.call(o,v)}function qi(o){var v=o==null?0:o.length;return v?o[v-1]:e}function nL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j;return M!==e&&(G=Mt(M),G=G<0?gr(j+G,0):Br(G,j-1)),v===v?yt(o,v,G):re(o,ke,G,!0)}function rL(o,v){return o&&o.length?Wb(o,Mt(v)):e}var iL=Dt(M0);function M0(o,v){return o&&o.length&&v&&v.length?Ud(o,v):o}function oL(o,v,M){return o&&o.length&&v&&v.length?Ud(o,v,pt(M,2)):o}function sL(o,v,M){return o&&o.length&&v&&v.length?Ud(o,v,e,M):o}var aL=Ho(function(o,v){var M=o==null?0:o.length,j=Dd(o,v);return Hb(o,y(v,function(G){return jo(G,M)?+G:G}).sort(Qb)),j});function lL(o,v){var M=[];if(!(o&&o.length))return M;var j=-1,G=[],te=o.length;for(v=pt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(M.push(ue),G.push(j))}return Hb(o,G),M}function up(o){return o==null?o:tE.call(o)}function cL(o,v,M){var j=o==null?0:o.length;return j?(M&&typeof M!="number"&&ti(o,v,M)?(v=0,M=j):(v=v==null?0:Mt(v),M=M===e?j:Mt(M)),Vi(o,v,M)):[]}function uL(o,v){return Kc(o,v)}function hL(o,v,M){return Kd(o,v,pt(M,2))}function dL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v);if(j<M&&so(o[j],v))return j}return-1}function pL(o,v){return Kc(o,v,!0)}function fL(o,v,M){return Kd(o,v,pt(M,2),!0)}function gL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v,!0)-1;if(so(o[j],v))return j}return-1}function mL(o){return o&&o.length?Ub(o):[]}function vL(o,v){return o&&o.length?Ub(o,pt(v,2)):[]}function yL(o){var v=o==null?0:o.length;return v?Vi(o,1,v):[]}function bL(o,v,M){return o&&o.length?(v=M||v===e?1:Mt(v),Vi(o,0,v<0?0:v)):[]}function wL(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,v<0?0:v,j)):[]}function xL(o,v){return o&&o.length?Gc(o,pt(v,3),!1,!0):[]}function CL(o,v){return o&&o.length?Gc(o,pt(v,3)):[]}var kL=Dt(function(o){return ds(Er(o,1,Jn,!0))}),AL=Dt(function(o){var v=qi(o);return Jn(v)&&(v=e),ds(Er(o,1,Jn,!0),pt(v,2))}),SL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,ds(Er(o,1,Jn,!0),e,v)});function _L(o){return o&&o.length?ds(o):[]}function $L(o,v){return o&&o.length?ds(o,pt(v,2)):[]}function TL(o,v){return v=typeof v=="function"?v:e,o&&o.length?ds(o,e,v):[]}function hp(o){if(!(o&&o.length))return[];var v=0;return o=Wr(o,function(M){if(Jn(M))return v=gr(M.length,v),!0}),Ze(v,function(M){return y(o,we(M))})}function I0(o,v){if(!(o&&o.length))return[];var M=hp(o);return v==null?M:y(M,function(j){return kr(v,e,j)})}var ML=Dt(function(o,v){return Jn(o)?yl(o,v):[]}),IL=Dt(function(o){return Yd(Wr(o,Jn))}),EL=Dt(function(o){var v=qi(o);return Jn(v)&&(v=e),Yd(Wr(o,Jn),pt(v,2))}),RL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,Yd(Wr(o,Jn),e,v)}),LL=Dt(hp);function OL(o,v){return Gb(o||[],v||[],vl)}function NL(o,v){return Gb(o||[],v||[],xl)}var DL=Dt(function(o){var v=o.length,M=v>1?o[v-1]:e;return M=typeof M=="function"?(o.pop(),M):e,I0(o,M)});function E0(o){var v=ee(o);return v.__chain__=!0,v}function FL(o,v){return v(o),o}function ru(o,v){return v(o)}var PL=Ho(function(o){var v=o.length,M=v?o[0]:0,j=this.__wrapped__,G=function(te){return Dd(te,o)};return v>1||this.__actions__.length||!(j instanceof Ut)||!jo(M)?this.thru(G):(j=j.slice(M,+M+(v?1:0)),j.__actions__.push({func:ru,args:[G],thisArg:e}),new ji(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(e),te}))});function WL(){return E0(this)}function BL(){return new ji(this.value(),this.__chain__)}function zL(){this.__values__===e&&(this.__values__=V0(this.value()));var o=this.__index__>=this.__values__.length,v=o?e:this.__values__[this.__index__++];return{done:o,value:v}}function HL(){return this}function jL(o){for(var v,M=this;M instanceof Hc;){var j=A0(M);j.__index__=0,j.__values__=e,v?G.__wrapped__=j:v=j;var G=j;M=M.__wrapped__}return G.__wrapped__=o,v}function UL(){var o=this.__wrapped__;if(o instanceof Ut){var v=o;return this.__actions__.length&&(v=new Ut(this)),v=v.reverse(),v.__actions__.push({func:ru,args:[up],thisArg:e}),new ji(v,this.__chain__)}return this.thru(up)}function VL(){return Kb(this.__wrapped__,this.__actions__)}var qL=Yc(function(o,v,M){cn.call(o,M)?++o[M]:Bo(o,M,1)});function KL(o,v,M){var j=Ct(o)?Ir:FE;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}function GL(o,v){var M=Ct(o)?Wr:Ib;return M(o,pt(v,3))}var YL=i0(S0),XL=i0(_0);function ZL(o,v){return Er(iu(o,v),1)}function QL(o,v){return Er(iu(o,v),B)}function JL(o,v,M){return M=M===e?1:Mt(M),Er(iu(o,v),M)}function R0(o,v){var M=Ct(o)?Mr:hs;return M(o,pt(v,3))}function L0(o,v){var M=Ct(o)?zs:Mb;return M(o,pt(v,3))}var eO=Yc(function(o,v,M){cn.call(o,M)?o[M].push(v):Bo(o,M,[v])});function tO(o,v,M,j){o=yi(o)?o:Ra(o),M=M&&!j?Mt(M):0;var G=o.length;return M<0&&(M=gr(G+M,0)),cu(o)?M<=G&&o.indexOf(v,M)>-1:!!G&&ae(o,v,M)>-1}var nO=Dt(function(o,v,M){var j=-1,G=typeof v=="function",te=yi(o)?Ce(o.length):[];return hs(o,function(ue){te[++j]=G?kr(v,ue,M):bl(ue,v,M)}),te}),rO=Yc(function(o,v,M){Bo(o,M,v)});function iu(o,v){var M=Ct(o)?y:Db;return M(o,pt(v,3))}function iO(o,v,M,j){return o==null?[]:(Ct(v)||(v=v==null?[]:[v]),M=j?e:M,Ct(M)||(M=M==null?[]:[M]),Bb(o,v,M))}var oO=Yc(function(o,v,M){o[M?0:1].push(v)},function(){return[[],[]]});function sO(o,v,M){var j=Ct(o)?S:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,hs)}function aO(o,v,M){var j=Ct(o)?F:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,Mb)}function lO(o,v){var M=Ct(o)?Wr:Ib;return M(o,au(pt(v,3)))}function cO(o){var v=Ct(o)?Sb:tR;return v(o)}function uO(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=Mt(v);var j=Ct(o)?RE:nR;return j(o,v)}function hO(o){var v=Ct(o)?LE:iR;return v(o)}function dO(o){if(o==null)return 0;if(yi(o))return cu(o)?Ft(o):o.length;var v=zr(o);return v==et||v==Ln?o.size:Hd(o).length}function pO(o,v,M){var j=Ct(o)?W:oR;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}var fO=Dt(function(o,v){if(o==null)return[];var M=v.length;return M>1&&ti(o,v[0],v[1])?v=[]:M>2&&ti(v[0],v[1],v[2])&&(v=[v[0]]),Bb(o,Er(v,1),[])}),ou=GI||function(){return hn.Date.now()};function gO(o,v){if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){if(--o<1)return v.apply(this,arguments)}}function O0(o,v,M){return v=M?e:v,v=o&&v==null?o.length:v,zo(o,L,e,e,e,e,v)}function N0(o,v){var M;if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){return--o>0&&(M=v.apply(this,arguments)),o<=1&&(v=e),M}}var dp=Dt(function(o,v,M){var j=p;if(M.length){var G=Be(M,Ia(dp));j|=k}return zo(o,j,v,M,G)}),D0=Dt(function(o,v,M){var j=p|b;if(M.length){var G=Be(M,Ia(D0));j|=k}return zo(v,j,o,M,G)});function F0(o,v,M){v=M?e:v;var j=zo(o,R,e,e,e,e,e,v);return j.placeholder=F0.placeholder,j}function P0(o,v,M){v=M?e:v;var j=zo(o,_,e,e,e,e,e,v);return j.placeholder=P0.placeholder,j}function W0(o,v,M){var j,G,te,ue,pe,ye,Ee=0,Re=!1,De=!1,Ge=!0;if(typeof o!="function")throw new dn(m);v=Ki(v)||0,Fn(M)&&(Re=!!M.leading,De="maxWait"in M,te=De?gr(Ki(M.maxWait)||0,v):te,Ge="trailing"in M?!!M.trailing:Ge);function nt(er){var ao=j,qo=G;return j=G=e,Ee=er,ue=o.apply(qo,ao),ue}function ft(er){return Ee=er,pe=Al(Bt,v),Re?nt(er):ue}function Et(er){var ao=er-ye,qo=er-Ee,iw=v-ao;return De?Br(iw,te-qo):iw}function gt(er){var ao=er-ye,qo=er-Ee;return ye===e||ao>=v||ao<0||De&&qo>=te}function Bt(){var er=ou();if(gt(er))return qt(er);pe=Al(Bt,Et(er))}function qt(er){return pe=e,Ge&&j?nt(er):(j=G=e,ue)}function Ri(){pe!==e&&Yb(pe),Ee=0,j=ye=G=pe=e}function ni(){return pe===e?ue:qt(ou())}function Li(){var er=ou(),ao=gt(er);if(j=arguments,G=this,ye=er,ao){if(pe===e)return ft(ye);if(De)return Yb(pe),pe=Al(Bt,v),nt(ye)}return pe===e&&(pe=Al(Bt,v)),ue}return Li.cancel=Ri,Li.flush=ni,Li}var mO=Dt(function(o,v){return Tb(o,1,v)}),vO=Dt(function(o,v,M){return Tb(o,Ki(v)||0,M)});function yO(o){return zo(o,E)}function su(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new dn(m);var M=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(su.Cache||Wo),M}su.Cache=Wo;function au(o){if(typeof o!="function")throw new dn(m);return function(){var v=arguments;switch(v.length){case 0:return!o.call(this);case 1:return!o.call(this,v[0]);case 2:return!o.call(this,v[0],v[1]);case 3:return!o.call(this,v[0],v[1],v[2])}return!o.apply(this,v)}}function bO(o){return N0(2,o)}var wO=sR(function(o,v){v=v.length==1&&Ct(v[0])?y(v[0],ct(pt())):y(Er(v,1),ct(pt()));var M=v.length;return Dt(function(j){for(var G=-1,te=Br(j.length,M);++G<te;)j[G]=v[G].call(this,j[G]);return kr(o,this,j)})}),pp=Dt(function(o,v){var M=Be(v,Ia(pp));return zo(o,k,e,v,M)}),B0=Dt(function(o,v){var M=Be(v,Ia(B0));return zo(o,C,e,v,M)}),xO=Ho(function(o,v){return zo(o,D,e,e,e,v)});function CO(o,v){if(typeof o!="function")throw new dn(m);return v=v===e?v:Mt(v),Dt(o,v)}function kO(o,v){if(typeof o!="function")throw new dn(m);return v=v==null?0:gr(Mt(v),0),Dt(function(M){var j=M[v],G=fs(M,0,v);return j&&T(G,j),kr(o,this,G)})}function AO(o,v,M){var j=!0,G=!0;if(typeof o!="function")throw new dn(m);return Fn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),W0(o,v,{leading:j,maxWait:v,trailing:G})}function SO(o){return O0(o,1)}function _O(o,v){return pp(Zd(v),o)}function $O(){if(!arguments.length)return[];var o=arguments[0];return Ct(o)?o:[o]}function TO(o){return Ui(o,c)}function MO(o,v){return v=typeof v=="function"?v:e,Ui(o,c,v)}function IO(o){return Ui(o,l|c)}function EO(o,v){return v=typeof v=="function"?v:e,Ui(o,l|c,v)}function RO(o,v){return v==null||$b(o,v,$r(v))}function so(o,v){return o===v||o!==o&&v!==v}var LO=Jc(Wd),OO=Jc(function(o,v){return o>=v}),Xs=Lb(function(){return arguments}())?Lb:function(o){return qn(o)&&cn.call(o,"callee")&&!bb.call(o,"callee")},Ct=Ce.isArray,NO=mi?ct(mi):jE;function yi(o){return o!=null&&lu(o.length)&&!Uo(o)}function Jn(o){return qn(o)&&yi(o)}function DO(o){return o===!0||o===!1||qn(o)&&ei(o)==_e}var gs=XI||Ap,FO=cs?ct(cs):UE;function PO(o){return qn(o)&&o.nodeType===1&&!Sl(o)}function WO(o){if(o==null)return!0;if(yi(o)&&(Ct(o)||typeof o=="string"||typeof o.splice=="function"||gs(o)||Ea(o)||Xs(o)))return!o.length;var v=zr(o);if(v==et||v==Ln)return!o.size;if(kl(o))return!Hd(o).length;for(var M in o)if(cn.call(o,M))return!1;return!0}function BO(o,v){return wl(o,v)}function zO(o,v,M){M=typeof M=="function"?M:e;var j=M?M(o,v):e;return j===e?wl(o,v,e,M):!!j}function fp(o){if(!qn(o))return!1;var v=ei(o);return v==Xe||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Sl(o)}function HO(o){return typeof o=="number"&&xb(o)}function Uo(o){if(!Fn(o))return!1;var v=ei(o);return v==Ke||v==at||v==me||v==vr}function z0(o){return typeof o=="number"&&o==Mt(o)}function lu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function Fn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function qn(o){return o!=null&&typeof o=="object"}var H0=Un?ct(Un):qE;function jO(o,v){return o===v||zd(o,v,ip(v))}function UO(o,v,M){return M=typeof M=="function"?M:e,zd(o,v,ip(v),M)}function VO(o){return j0(o)&&o!=+o}function qO(o){if(MR(o))throw new ut(g);return Ob(o)}function KO(o){return o===null}function GO(o){return o==null}function j0(o){return typeof o=="number"||qn(o)&&ei(o)==lt}function Sl(o){if(!qn(o)||ei(o)!=xn)return!1;var v=Nc(o);if(v===null)return!0;var M=cn.call(v,"constructor")&&v.constructor;return typeof M=="function"&&M instanceof M&&Ec.call(M)==UI}var gp=_i?ct(_i):KE;function YO(o){return z0(o)&&o>=-U&&o<=U}var U0=$i?ct($i):GE;function cu(o){return typeof o=="string"||!Ct(o)&&qn(o)&&ei(o)==Zn}function Ei(o){return typeof o=="symbol"||qn(o)&&ei(o)==Tr}var Ea=zi?ct(zi):YE;function XO(o){return o===e}function ZO(o){return qn(o)&&zr(o)==je}function QO(o){return qn(o)&&ei(o)==Lt}var JO=Jc(jd),e2=Jc(function(o,v){return o<=v});function V0(o){if(!o)return[];if(yi(o))return cu(o)?wt(o):vi(o);if(dl&&o[dl])return xe(o[dl]());var v=zr(o),M=v==et?Ie:v==Ln?qe:Ra;return M(o)}function Vo(o){if(!o)return o===0?o:0;if(o=Ki(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function Mt(o){var v=Vo(o),M=v%1;return v===v?M?v-M:v:0}function q0(o){return o?qs(Mt(o),0,J):0}function Ki(o){if(typeof o=="number")return o;if(Ei(o))return Q;if(Fn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=Fn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=bn(o);var M=Mo.test(o);return M||ce.test(o)?yn(o.slice(2),M?2:8):Ot.test(o)?Q:+o}function K0(o){return ko(o,bi(o))}function t2(o){return o?qs(Mt(o),-U,U):o===0?o:0}function sn(o){return o==null?"":Ii(o)}var n2=Ta(function(o,v){if(kl(v)||yi(v)){ko(v,$r(v),o);return}for(var M in v)cn.call(v,M)&&vl(o,M,v[M])}),G0=Ta(function(o,v){ko(v,bi(v),o)}),uu=Ta(function(o,v,M,j){ko(v,bi(v),o,j)}),r2=Ta(function(o,v,M,j){ko(v,$r(v),o,j)}),i2=Ho(Dd);function o2(o,v){var M=$a(o);return v==null?M:_b(M,v)}var s2=Dt(function(o,v){o=It(o);var M=-1,j=v.length,G=j>2?v[2]:e;for(G&&ti(v[0],v[1],G)&&(j=1);++M<j;)for(var te=v[M],ue=bi(te),pe=-1,ye=ue.length;++pe<ye;){var Ee=ue[pe],Re=o[Ee];(Re===e||so(Re,Vn[Ee])&&!cn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),a2=Dt(function(o){return o.push(e,h0),kr(Y0,e,o)});function l2(o,v){return Z(o,pt(v,3),Co)}function c2(o,v){return Z(o,pt(v,3),Pd)}function u2(o,v){return o==null?o:Fd(o,pt(v,3),bi)}function h2(o,v){return o==null?o:Eb(o,pt(v,3),bi)}function d2(o,v){return o&&Co(o,pt(v,3))}function p2(o,v){return o&&Pd(o,pt(v,3))}function f2(o){return o==null?[]:Vc(o,$r(o))}function g2(o){return o==null?[]:Vc(o,bi(o))}function mp(o,v,M){var j=o==null?e:Ks(o,v);return j===e?M:j}function m2(o,v){return o!=null&&f0(o,v,WE)}function vp(o,v){return o!=null&&f0(o,v,BE)}var v2=s0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),o[v]=M},bp(wi)),y2=s0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),cn.call(o,v)?o[v].push(M):o[v]=[M]},pt),b2=Dt(bl);function $r(o){return yi(o)?Ab(o):Hd(o)}function bi(o){return yi(o)?Ab(o,!0):XE(o)}function w2(o,v){var M={};return v=pt(v,3),Co(o,function(j,G,te){Bo(M,v(j,G,te),j)}),M}function x2(o,v){var M={};return v=pt(v,3),Co(o,function(j,G,te){Bo(M,G,v(j,G,te))}),M}var C2=Ta(function(o,v,M){qc(o,v,M)}),Y0=Ta(function(o,v,M,j){qc(o,v,M,j)}),k2=Ho(function(o,v){var M={};if(o==null)return M;var j=!1;v=y(v,function(te){return te=ps(te,o),j||(j=te.length>1),te}),ko(o,np(o),M),j&&(M=Ui(M,l|u|c,vR));for(var G=v.length;G--;)Gd(M,v[G]);return M});function A2(o,v){return X0(o,au(pt(v)))}var S2=Ho(function(o,v){return o==null?{}:QE(o,v)});function X0(o,v){if(o==null)return{};var M=y(np(o),function(j){return[j]});return v=pt(v),zb(o,M,function(j,G){return v(j,G[0])})}function _2(o,v,M){v=ps(v,o);var j=-1,G=v.length;for(G||(G=1,o=e);++j<G;){var te=o==null?e:o[Ao(v[j])];te===e&&(j=G,te=M),o=Uo(te)?te.call(o):te}return o}function $2(o,v,M){return o==null?o:xl(o,v,M)}function T2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:xl(o,v,M,j)}var Z0=c0($r),Q0=c0(bi);function M2(o,v,M){var j=Ct(o),G=j||gs(o)||Ea(o);if(v=pt(v,4),M==null){var te=o&&o.constructor;G?M=j?new te:[]:Fn(o)?M=Uo(te)?$a(Nc(o)):{}:M={}}return(G?Mr:Co)(o,function(ue,pe,ye){return v(M,ue,pe,ye)}),M}function I2(o,v){return o==null?!0:Gd(o,v)}function E2(o,v,M){return o==null?o:qb(o,v,Zd(M))}function R2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:qb(o,v,Zd(M),j)}function Ra(o){return o==null?[]:Tn(o,$r(o))}function L2(o){return o==null?[]:Tn(o,bi(o))}function O2(o,v,M){return M===e&&(M=v,v=e),M!==e&&(M=Ki(M),M=M===M?M:0),v!==e&&(v=Ki(v),v=v===v?v:0),qs(Ki(o),v,M)}function N2(o,v,M){return v=Vo(v),M===e?(M=v,v=0):M=Vo(M),o=Ki(o),zE(o,v,M)}function D2(o,v,M){if(M&&typeof M!="boolean"&&ti(o,v,M)&&(v=M=e),M===e&&(typeof v=="boolean"?(M=v,v=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&v===e?(o=0,v=1):(o=Vo(o),v===e?(v=o,o=0):v=Vo(v)),o>v){var j=o;o=v,v=j}if(M||o%1||v%1){var G=Cb();return Br(o+G*(v-o+He("1e-"+((G+"").length-1))),v)}return Vd(o,v)}var F2=Ma(function(o,v,M){return v=v.toLowerCase(),o+(M?J0(v):v)});function J0(o){return yp(sn(o).toLowerCase())}function ew(o){return o=sn(o),o&&o.replace(Fe,Mn).replace(No,"")}function P2(o,v,M){o=sn(o),v=Ii(v);var j=o.length;M=M===e?j:qs(Mt(M),0,j);var G=M;return M-=v.length,M>=0&&o.slice(M,G)==v}function W2(o){return o=sn(o),o&&Ns.test(o)?o.replace(to,V):o}function B2(o){return o=sn(o),o&&pi.test(o)?o.replace(hr,"\\$&"):o}var z2=Ma(function(o,v,M){return o+(M?"-":"")+v.toLowerCase()}),H2=Ma(function(o,v,M){return o+(M?" ":"")+v.toLowerCase()}),j2=r0("toLowerCase");function U2(o,v,M){o=sn(o),v=Mt(v);var j=v?Ft(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return Qc(Wc(G),M)+o+Qc(Pc(G),M)}function V2(o,v,M){o=sn(o),v=Mt(v);var j=v?Ft(o):0;return v&&j<v?o+Qc(v-j,M):o}function q2(o,v,M){o=sn(o),v=Mt(v);var j=v?Ft(o):0;return v&&j<v?Qc(v-j,M)+o:o}function K2(o,v,M){return M||v==null?v=0:v&&(v=+v),eE(sn(o).replace(kn,""),v||0)}function G2(o,v,M){return(M?ti(o,v,M):v===e)?v=1:v=Mt(v),qd(sn(o),v)}function Y2(){var o=arguments,v=sn(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var X2=Ma(function(o,v,M){return o+(M?"_":"")+v.toLowerCase()});function Z2(o,v,M){return M&&typeof M!="number"&&ti(o,v,M)&&(v=M=e),M=M===e?J:M>>>0,M?(o=sn(o),o&&(typeof v=="string"||v!=null&&!gp(v))&&(v=Ii(v),!v&&oe(o))?fs(wt(o),0,M):o.split(v,M)):[]}var Q2=Ma(function(o,v,M){return o+(M?" ":"")+yp(v)});function J2(o,v,M){return o=sn(o),M=M==null?0:qs(Mt(M),0,o.length),v=Ii(v),o.slice(M,M+v.length)==v}function eN(o,v,M){var j=ee.templateSettings;M&&ti(o,v,M)&&(v=e),o=sn(o),v=uu({},v,j,u0);var G=uu({},v.imports,j.imports,u0),te=$r(G),ue=Tn(G,te),pe,ye,Ee=0,Re=v.interpolate||St,De="__p += '",Ge=Jr((v.escape||St).source+"|"+Re.source+"|"+(Re===hi?gi:St).source+"|"+(v.evaluate||St).source+"|$","g"),nt="//# sourceURL="+(cn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+`
|
|
1474
|
-
`;o.replace(Ge,function(gt,Bt,
|
|
1473
|
+
`)}function _R(o){return Ct(o)||Xs(o)||!!(wb&&o&&o[wb])}function jo(o,v){var M=typeof o;return v=v??U,!!v&&(M=="number"||M!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ti(o,v,M){if(!Fn(M))return!1;var j=typeof v;return(j=="number"?yi(M)&&jo(v,M.length):j=="string"&&v in M)?so(M[v],o):!1}function sp(o,v){if(Ct(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||Ei(o)?!0:di.test(o)||!Jo.test(o)||v!=null&&o in It(v)}function $R(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function ap(o){var v=eu(o),M=ee[v];if(typeof M!="function"||!(v in Vt.prototype))return!1;if(o===M)return!0;var j=rp(M);return!!j&&o===j[0]}function TR(o){return!!mb&&mb in o}var MR=Hs?Uo:Ap;function kl(o){var v=o&&o.constructor,M=typeof v=="function"&&v.prototype||Vn;return o===M}function m0(o){return o===o&&!Fn(o)}function v0(o,v){return function(M){return M==null?!1:M[o]===v&&(v!==e||o in It(M))}}function IR(o){var v=su(o,function(j){return M.size===d&&M.clear(),j}),M=v.cache;return v}function ER(o,v){var M=o[1],j=v[1],G=M|j,te=G<(p|b|L),ue=j==L&&M==R||j==L&&M==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&M==R;if(!(te||ue))return o;j&p&&(o[2]=v[2],G|=M&p?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?Jb(ye,pe,v[4]):pe,o[4]=ye?Be(o[3],s):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?e0(ye,pe,v[6]):pe,o[6]=ye?Be(o[5],s):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Br(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function RR(o){var v=[];if(o!=null)for(var M in It(o))v.push(M);return v}function LR(o){return Rc.call(o)}function y0(o,v,M){return v=gr(v===e?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=gr(j.length-v,0),ue=Ce(te);++G<te;)ue[G]=j[v+G];G=-1;for(var pe=Ce(v+1);++G<v;)pe[G]=j[G];return pe[v]=M(ue),kr(o,this,pe)}}function b0(o,v){return v.length<2?o:Ks(o,Vi(v,0,-1))}function OR(o,v){for(var M=o.length,j=Br(v.length,M),G=vi(o);j--;){var te=v[j];o[j]=jo(te,M)?G[te]:e}return o}function lp(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var w0=C0(jb),Al=YI||function(o,v){return hn.setTimeout(o,v)},cp=C0(rR);function x0(o,v,M){var j=v+"";return cp(o,SR(j,NR(CR(j),M)))}function C0(o){var v=0,M=0;return function(){var j=JI(),G=O-(j-M);if(M=j,G>0){if(++v>=P)return arguments[0]}else v=0;return o.apply(e,arguments)}}function nu(o,v){var M=-1,j=o.length,G=j-1;for(v=v===e?j:v;++M<v;){var te=Vd(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=v,o}var k0=IR(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(kn,function(M,j,G,te){v.push(G?te.replace(Xr,"$1"):j||M)}),v});function So(o){if(typeof o=="string"||Ei(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function Ys(o){if(o!=null){try{return Ec.call(o)}catch{}try{return o+""}catch{}}return""}function NR(o,v){return Mr(le,function(M){var j="_."+M[0];v&M[1]&&!Ti(o,j)&&o.push(j)}),o.sort()}function A0(o){if(o instanceof Vt)return o.clone();var v=new ji(o.__wrapped__,o.__chain__);return v.__actions__=vi(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function DR(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=gr(Mt(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Pc(j/v));G<j;)ue[te++]=Vi(o,G,G+=v);return ue}function FR(o){for(var v=-1,M=o==null?0:o.length,j=0,G=[];++v<M;){var te=o[v];te&&(G[j++]=te)}return G}function PR(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),M=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(Ct(M)?vi(M):[M],Er(v,1))}var WR=Dt(function(o,v){return Jn(o)?yl(o,Er(v,1,Jn,!0)):[]}),BR=Dt(function(o,v){var M=qi(v);return Jn(M)&&(M=e),Jn(o)?yl(o,Er(v,1,Jn,!0),pt(M,2)):[]}),zR=Dt(function(o,v){var M=qi(v);return Jn(M)&&(M=e),Jn(o)?yl(o,Er(v,1,Jn,!0),e,M):[]});function HR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),Vi(o,v<0?0:v,j)):[]}function jR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,0,v<0?0:v)):[]}function UR(o,v){return o&&o.length?Gc(o,pt(v,3),!0,!0):[]}function VR(o,v){return o&&o.length?Gc(o,pt(v,3),!0):[]}function qR(o,v,M,j){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&ti(o,v,M)&&(M=0,j=G),PE(o,v,M,j)):[]}function S0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=gr(j+G,0)),re(o,pt(v,3),G)}function _0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return M!==e&&(G=Mt(M),G=M<0?gr(j+G,0):Br(G,j-1)),re(o,pt(v,3),G,!0)}function $0(o){var v=o==null?0:o.length;return v?Er(o,1):[]}function KR(o){var v=o==null?0:o.length;return v?Er(o,B):[]}function GR(o,v){var M=o==null?0:o.length;return M?(v=v===e?1:Mt(v),Er(o,v)):[]}function YR(o){for(var v=-1,M=o==null?0:o.length,j={};++v<M;){var G=o[v];j[G[0]]=G[1]}return j}function T0(o){return o&&o.length?o[0]:e}function XR(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=gr(j+G,0)),ae(o,v,G)}function ZR(o){var v=o==null?0:o.length;return v?Vi(o,0,-1):[]}var QR=Dt(function(o){var v=y(o,Xd);return v.length&&v[0]===o[0]?Bd(v):[]}),JR=Dt(function(o){var v=qi(o),M=y(o,Xd);return v===qi(M)?v=e:M.pop(),M.length&&M[0]===o[0]?Bd(M,pt(v,2)):[]}),eL=Dt(function(o){var v=qi(o),M=y(o,Xd);return v=typeof v=="function"?v:e,v&&M.pop(),M.length&&M[0]===o[0]?Bd(M,e,v):[]});function tL(o,v){return o==null?"":ZI.call(o,v)}function qi(o){var v=o==null?0:o.length;return v?o[v-1]:e}function nL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j;return M!==e&&(G=Mt(M),G=G<0?gr(j+G,0):Br(G,j-1)),v===v?yt(o,v,G):re(o,ke,G,!0)}function rL(o,v){return o&&o.length?Wb(o,Mt(v)):e}var iL=Dt(M0);function M0(o,v){return o&&o.length&&v&&v.length?Ud(o,v):o}function oL(o,v,M){return o&&o.length&&v&&v.length?Ud(o,v,pt(M,2)):o}function sL(o,v,M){return o&&o.length&&v&&v.length?Ud(o,v,e,M):o}var aL=Ho(function(o,v){var M=o==null?0:o.length,j=Dd(o,v);return Hb(o,y(v,function(G){return jo(G,M)?+G:G}).sort(Qb)),j});function lL(o,v){var M=[];if(!(o&&o.length))return M;var j=-1,G=[],te=o.length;for(v=pt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(M.push(ue),G.push(j))}return Hb(o,G),M}function up(o){return o==null?o:tE.call(o)}function cL(o,v,M){var j=o==null?0:o.length;return j?(M&&typeof M!="number"&&ti(o,v,M)?(v=0,M=j):(v=v==null?0:Mt(v),M=M===e?j:Mt(M)),Vi(o,v,M)):[]}function uL(o,v){return Kc(o,v)}function hL(o,v,M){return Kd(o,v,pt(M,2))}function dL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v);if(j<M&&so(o[j],v))return j}return-1}function pL(o,v){return Kc(o,v,!0)}function fL(o,v,M){return Kd(o,v,pt(M,2),!0)}function gL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v,!0)-1;if(so(o[j],v))return j}return-1}function mL(o){return o&&o.length?Ub(o):[]}function vL(o,v){return o&&o.length?Ub(o,pt(v,2)):[]}function yL(o){var v=o==null?0:o.length;return v?Vi(o,1,v):[]}function bL(o,v,M){return o&&o.length?(v=M||v===e?1:Mt(v),Vi(o,0,v<0?0:v)):[]}function wL(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,v<0?0:v,j)):[]}function xL(o,v){return o&&o.length?Gc(o,pt(v,3),!1,!0):[]}function CL(o,v){return o&&o.length?Gc(o,pt(v,3)):[]}var kL=Dt(function(o){return ds(Er(o,1,Jn,!0))}),AL=Dt(function(o){var v=qi(o);return Jn(v)&&(v=e),ds(Er(o,1,Jn,!0),pt(v,2))}),SL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,ds(Er(o,1,Jn,!0),e,v)});function _L(o){return o&&o.length?ds(o):[]}function $L(o,v){return o&&o.length?ds(o,pt(v,2)):[]}function TL(o,v){return v=typeof v=="function"?v:e,o&&o.length?ds(o,e,v):[]}function hp(o){if(!(o&&o.length))return[];var v=0;return o=Wr(o,function(M){if(Jn(M))return v=gr(M.length,v),!0}),Ze(v,function(M){return y(o,we(M))})}function I0(o,v){if(!(o&&o.length))return[];var M=hp(o);return v==null?M:y(M,function(j){return kr(v,e,j)})}var ML=Dt(function(o,v){return Jn(o)?yl(o,v):[]}),IL=Dt(function(o){return Yd(Wr(o,Jn))}),EL=Dt(function(o){var v=qi(o);return Jn(v)&&(v=e),Yd(Wr(o,Jn),pt(v,2))}),RL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,Yd(Wr(o,Jn),e,v)}),LL=Dt(hp);function OL(o,v){return Gb(o||[],v||[],vl)}function NL(o,v){return Gb(o||[],v||[],xl)}var DL=Dt(function(o){var v=o.length,M=v>1?o[v-1]:e;return M=typeof M=="function"?(o.pop(),M):e,I0(o,M)});function E0(o){var v=ee(o);return v.__chain__=!0,v}function FL(o,v){return v(o),o}function ru(o,v){return v(o)}var PL=Ho(function(o){var v=o.length,M=v?o[0]:0,j=this.__wrapped__,G=function(te){return Dd(te,o)};return v>1||this.__actions__.length||!(j instanceof Vt)||!jo(M)?this.thru(G):(j=j.slice(M,+M+(v?1:0)),j.__actions__.push({func:ru,args:[G],thisArg:e}),new ji(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(e),te}))});function WL(){return E0(this)}function BL(){return new ji(this.value(),this.__chain__)}function zL(){this.__values__===e&&(this.__values__=V0(this.value()));var o=this.__index__>=this.__values__.length,v=o?e:this.__values__[this.__index__++];return{done:o,value:v}}function HL(){return this}function jL(o){for(var v,M=this;M instanceof Hc;){var j=A0(M);j.__index__=0,j.__values__=e,v?G.__wrapped__=j:v=j;var G=j;M=M.__wrapped__}return G.__wrapped__=o,v}function UL(){var o=this.__wrapped__;if(o instanceof Vt){var v=o;return this.__actions__.length&&(v=new Vt(this)),v=v.reverse(),v.__actions__.push({func:ru,args:[up],thisArg:e}),new ji(v,this.__chain__)}return this.thru(up)}function VL(){return Kb(this.__wrapped__,this.__actions__)}var qL=Yc(function(o,v,M){cn.call(o,M)?++o[M]:Bo(o,M,1)});function KL(o,v,M){var j=Ct(o)?Ir:FE;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}function GL(o,v){var M=Ct(o)?Wr:Ib;return M(o,pt(v,3))}var YL=i0(S0),XL=i0(_0);function ZL(o,v){return Er(iu(o,v),1)}function QL(o,v){return Er(iu(o,v),B)}function JL(o,v,M){return M=M===e?1:Mt(M),Er(iu(o,v),M)}function R0(o,v){var M=Ct(o)?Mr:hs;return M(o,pt(v,3))}function L0(o,v){var M=Ct(o)?zs:Mb;return M(o,pt(v,3))}var eO=Yc(function(o,v,M){cn.call(o,M)?o[M].push(v):Bo(o,M,[v])});function tO(o,v,M,j){o=yi(o)?o:Ra(o),M=M&&!j?Mt(M):0;var G=o.length;return M<0&&(M=gr(G+M,0)),cu(o)?M<=G&&o.indexOf(v,M)>-1:!!G&&ae(o,v,M)>-1}var nO=Dt(function(o,v,M){var j=-1,G=typeof v=="function",te=yi(o)?Ce(o.length):[];return hs(o,function(ue){te[++j]=G?kr(v,ue,M):bl(ue,v,M)}),te}),rO=Yc(function(o,v,M){Bo(o,M,v)});function iu(o,v){var M=Ct(o)?y:Db;return M(o,pt(v,3))}function iO(o,v,M,j){return o==null?[]:(Ct(v)||(v=v==null?[]:[v]),M=j?e:M,Ct(M)||(M=M==null?[]:[M]),Bb(o,v,M))}var oO=Yc(function(o,v,M){o[M?0:1].push(v)},function(){return[[],[]]});function sO(o,v,M){var j=Ct(o)?S:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,hs)}function aO(o,v,M){var j=Ct(o)?F:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,Mb)}function lO(o,v){var M=Ct(o)?Wr:Ib;return M(o,au(pt(v,3)))}function cO(o){var v=Ct(o)?Sb:tR;return v(o)}function uO(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=Mt(v);var j=Ct(o)?RE:nR;return j(o,v)}function hO(o){var v=Ct(o)?LE:iR;return v(o)}function dO(o){if(o==null)return 0;if(yi(o))return cu(o)?Pt(o):o.length;var v=zr(o);return v==et||v==On?o.size:Hd(o).length}function pO(o,v,M){var j=Ct(o)?W:oR;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}var fO=Dt(function(o,v){if(o==null)return[];var M=v.length;return M>1&&ti(o,v[0],v[1])?v=[]:M>2&&ti(v[0],v[1],v[2])&&(v=[v[0]]),Bb(o,Er(v,1),[])}),ou=GI||function(){return hn.Date.now()};function gO(o,v){if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){if(--o<1)return v.apply(this,arguments)}}function O0(o,v,M){return v=M?e:v,v=o&&v==null?o.length:v,zo(o,L,e,e,e,e,v)}function N0(o,v){var M;if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){return--o>0&&(M=v.apply(this,arguments)),o<=1&&(v=e),M}}var dp=Dt(function(o,v,M){var j=p;if(M.length){var G=Be(M,Ia(dp));j|=k}return zo(o,j,v,M,G)}),D0=Dt(function(o,v,M){var j=p|b;if(M.length){var G=Be(M,Ia(D0));j|=k}return zo(v,j,o,M,G)});function F0(o,v,M){v=M?e:v;var j=zo(o,R,e,e,e,e,e,v);return j.placeholder=F0.placeholder,j}function P0(o,v,M){v=M?e:v;var j=zo(o,_,e,e,e,e,e,v);return j.placeholder=P0.placeholder,j}function W0(o,v,M){var j,G,te,ue,pe,ye,Ee=0,Re=!1,De=!1,Ge=!0;if(typeof o!="function")throw new dn(m);v=Ki(v)||0,Fn(M)&&(Re=!!M.leading,De="maxWait"in M,te=De?gr(Ki(M.maxWait)||0,v):te,Ge="trailing"in M?!!M.trailing:Ge);function nt(er){var ao=j,qo=G;return j=G=e,Ee=er,ue=o.apply(qo,ao),ue}function ft(er){return Ee=er,pe=Al(Bt,v),Re?nt(er):ue}function Et(er){var ao=er-ye,qo=er-Ee,iw=v-ao;return De?Br(iw,te-qo):iw}function gt(er){var ao=er-ye,qo=er-Ee;return ye===e||ao>=v||ao<0||De&&qo>=te}function Bt(){var er=ou();if(gt(er))return Kt(er);pe=Al(Bt,Et(er))}function Kt(er){return pe=e,Ge&&j?nt(er):(j=G=e,ue)}function Ri(){pe!==e&&Yb(pe),Ee=0,j=ye=G=pe=e}function ni(){return pe===e?ue:Kt(ou())}function Li(){var er=ou(),ao=gt(er);if(j=arguments,G=this,ye=er,ao){if(pe===e)return ft(ye);if(De)return Yb(pe),pe=Al(Bt,v),nt(ye)}return pe===e&&(pe=Al(Bt,v)),ue}return Li.cancel=Ri,Li.flush=ni,Li}var mO=Dt(function(o,v){return Tb(o,1,v)}),vO=Dt(function(o,v,M){return Tb(o,Ki(v)||0,M)});function yO(o){return zo(o,E)}function su(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new dn(m);var M=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(su.Cache||Wo),M}su.Cache=Wo;function au(o){if(typeof o!="function")throw new dn(m);return function(){var v=arguments;switch(v.length){case 0:return!o.call(this);case 1:return!o.call(this,v[0]);case 2:return!o.call(this,v[0],v[1]);case 3:return!o.call(this,v[0],v[1],v[2])}return!o.apply(this,v)}}function bO(o){return N0(2,o)}var wO=sR(function(o,v){v=v.length==1&&Ct(v[0])?y(v[0],ct(pt())):y(Er(v,1),ct(pt()));var M=v.length;return Dt(function(j){for(var G=-1,te=Br(j.length,M);++G<te;)j[G]=v[G].call(this,j[G]);return kr(o,this,j)})}),pp=Dt(function(o,v){var M=Be(v,Ia(pp));return zo(o,k,e,v,M)}),B0=Dt(function(o,v){var M=Be(v,Ia(B0));return zo(o,C,e,v,M)}),xO=Ho(function(o,v){return zo(o,D,e,e,e,v)});function CO(o,v){if(typeof o!="function")throw new dn(m);return v=v===e?v:Mt(v),Dt(o,v)}function kO(o,v){if(typeof o!="function")throw new dn(m);return v=v==null?0:gr(Mt(v),0),Dt(function(M){var j=M[v],G=fs(M,0,v);return j&&T(G,j),kr(o,this,G)})}function AO(o,v,M){var j=!0,G=!0;if(typeof o!="function")throw new dn(m);return Fn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),W0(o,v,{leading:j,maxWait:v,trailing:G})}function SO(o){return O0(o,1)}function _O(o,v){return pp(Zd(v),o)}function $O(){if(!arguments.length)return[];var o=arguments[0];return Ct(o)?o:[o]}function TO(o){return Ui(o,c)}function MO(o,v){return v=typeof v=="function"?v:e,Ui(o,c,v)}function IO(o){return Ui(o,l|c)}function EO(o,v){return v=typeof v=="function"?v:e,Ui(o,l|c,v)}function RO(o,v){return v==null||$b(o,v,$r(v))}function so(o,v){return o===v||o!==o&&v!==v}var LO=Jc(Wd),OO=Jc(function(o,v){return o>=v}),Xs=Lb(function(){return arguments}())?Lb:function(o){return qn(o)&&cn.call(o,"callee")&&!bb.call(o,"callee")},Ct=Ce.isArray,NO=mi?ct(mi):jE;function yi(o){return o!=null&&lu(o.length)&&!Uo(o)}function Jn(o){return qn(o)&&yi(o)}function DO(o){return o===!0||o===!1||qn(o)&&ei(o)==_e}var gs=XI||Ap,FO=cs?ct(cs):UE;function PO(o){return qn(o)&&o.nodeType===1&&!Sl(o)}function WO(o){if(o==null)return!0;if(yi(o)&&(Ct(o)||typeof o=="string"||typeof o.splice=="function"||gs(o)||Ea(o)||Xs(o)))return!o.length;var v=zr(o);if(v==et||v==On)return!o.size;if(kl(o))return!Hd(o).length;for(var M in o)if(cn.call(o,M))return!1;return!0}function BO(o,v){return wl(o,v)}function zO(o,v,M){M=typeof M=="function"?M:e;var j=M?M(o,v):e;return j===e?wl(o,v,e,M):!!j}function fp(o){if(!qn(o))return!1;var v=ei(o);return v==Xe||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Sl(o)}function HO(o){return typeof o=="number"&&xb(o)}function Uo(o){if(!Fn(o))return!1;var v=ei(o);return v==Ke||v==at||v==me||v==vr}function z0(o){return typeof o=="number"&&o==Mt(o)}function lu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function Fn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function qn(o){return o!=null&&typeof o=="object"}var H0=Un?ct(Un):qE;function jO(o,v){return o===v||zd(o,v,ip(v))}function UO(o,v,M){return M=typeof M=="function"?M:e,zd(o,v,ip(v),M)}function VO(o){return j0(o)&&o!=+o}function qO(o){if(MR(o))throw new ut(g);return Ob(o)}function KO(o){return o===null}function GO(o){return o==null}function j0(o){return typeof o=="number"||qn(o)&&ei(o)==lt}function Sl(o){if(!qn(o)||ei(o)!=xn)return!1;var v=Nc(o);if(v===null)return!0;var M=cn.call(v,"constructor")&&v.constructor;return typeof M=="function"&&M instanceof M&&Ec.call(M)==UI}var gp=_i?ct(_i):KE;function YO(o){return z0(o)&&o>=-U&&o<=U}var U0=$i?ct($i):GE;function cu(o){return typeof o=="string"||!Ct(o)&&qn(o)&&ei(o)==Zn}function Ei(o){return typeof o=="symbol"||qn(o)&&ei(o)==Tr}var Ea=zi?ct(zi):YE;function XO(o){return o===e}function ZO(o){return qn(o)&&zr(o)==je}function QO(o){return qn(o)&&ei(o)==Lt}var JO=Jc(jd),e2=Jc(function(o,v){return o<=v});function V0(o){if(!o)return[];if(yi(o))return cu(o)?wt(o):vi(o);if(dl&&o[dl])return xe(o[dl]());var v=zr(o),M=v==et?Ie:v==On?qe:Ra;return M(o)}function Vo(o){if(!o)return o===0?o:0;if(o=Ki(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function Mt(o){var v=Vo(o),M=v%1;return v===v?M?v-M:v:0}function q0(o){return o?qs(Mt(o),0,J):0}function Ki(o){if(typeof o=="number")return o;if(Ei(o))return Q;if(Fn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=Fn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=bn(o);var M=Mo.test(o);return M||ce.test(o)?yn(o.slice(2),M?2:8):Ot.test(o)?Q:+o}function K0(o){return Ao(o,bi(o))}function t2(o){return o?qs(Mt(o),-U,U):o===0?o:0}function sn(o){return o==null?"":Ii(o)}var n2=Ta(function(o,v){if(kl(v)||yi(v)){Ao(v,$r(v),o);return}for(var M in v)cn.call(v,M)&&vl(o,M,v[M])}),G0=Ta(function(o,v){Ao(v,bi(v),o)}),uu=Ta(function(o,v,M,j){Ao(v,bi(v),o,j)}),r2=Ta(function(o,v,M,j){Ao(v,$r(v),o,j)}),i2=Ho(Dd);function o2(o,v){var M=$a(o);return v==null?M:_b(M,v)}var s2=Dt(function(o,v){o=It(o);var M=-1,j=v.length,G=j>2?v[2]:e;for(G&&ti(v[0],v[1],G)&&(j=1);++M<j;)for(var te=v[M],ue=bi(te),pe=-1,ye=ue.length;++pe<ye;){var Ee=ue[pe],Re=o[Ee];(Re===e||so(Re,Vn[Ee])&&!cn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),a2=Dt(function(o){return o.push(e,h0),kr(Y0,e,o)});function l2(o,v){return Z(o,pt(v,3),ko)}function c2(o,v){return Z(o,pt(v,3),Pd)}function u2(o,v){return o==null?o:Fd(o,pt(v,3),bi)}function h2(o,v){return o==null?o:Eb(o,pt(v,3),bi)}function d2(o,v){return o&&ko(o,pt(v,3))}function p2(o,v){return o&&Pd(o,pt(v,3))}function f2(o){return o==null?[]:Vc(o,$r(o))}function g2(o){return o==null?[]:Vc(o,bi(o))}function mp(o,v,M){var j=o==null?e:Ks(o,v);return j===e?M:j}function m2(o,v){return o!=null&&f0(o,v,WE)}function vp(o,v){return o!=null&&f0(o,v,BE)}var v2=s0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),o[v]=M},bp(wi)),y2=s0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),cn.call(o,v)?o[v].push(M):o[v]=[M]},pt),b2=Dt(bl);function $r(o){return yi(o)?Ab(o):Hd(o)}function bi(o){return yi(o)?Ab(o,!0):XE(o)}function w2(o,v){var M={};return v=pt(v,3),ko(o,function(j,G,te){Bo(M,v(j,G,te),j)}),M}function x2(o,v){var M={};return v=pt(v,3),ko(o,function(j,G,te){Bo(M,G,v(j,G,te))}),M}var C2=Ta(function(o,v,M){qc(o,v,M)}),Y0=Ta(function(o,v,M,j){qc(o,v,M,j)}),k2=Ho(function(o,v){var M={};if(o==null)return M;var j=!1;v=y(v,function(te){return te=ps(te,o),j||(j=te.length>1),te}),Ao(o,np(o),M),j&&(M=Ui(M,l|u|c,vR));for(var G=v.length;G--;)Gd(M,v[G]);return M});function A2(o,v){return X0(o,au(pt(v)))}var S2=Ho(function(o,v){return o==null?{}:QE(o,v)});function X0(o,v){if(o==null)return{};var M=y(np(o),function(j){return[j]});return v=pt(v),zb(o,M,function(j,G){return v(j,G[0])})}function _2(o,v,M){v=ps(v,o);var j=-1,G=v.length;for(G||(G=1,o=e);++j<G;){var te=o==null?e:o[So(v[j])];te===e&&(j=G,te=M),o=Uo(te)?te.call(o):te}return o}function $2(o,v,M){return o==null?o:xl(o,v,M)}function T2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:xl(o,v,M,j)}var Z0=c0($r),Q0=c0(bi);function M2(o,v,M){var j=Ct(o),G=j||gs(o)||Ea(o);if(v=pt(v,4),M==null){var te=o&&o.constructor;G?M=j?new te:[]:Fn(o)?M=Uo(te)?$a(Nc(o)):{}:M={}}return(G?Mr:ko)(o,function(ue,pe,ye){return v(M,ue,pe,ye)}),M}function I2(o,v){return o==null?!0:Gd(o,v)}function E2(o,v,M){return o==null?o:qb(o,v,Zd(M))}function R2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:qb(o,v,Zd(M),j)}function Ra(o){return o==null?[]:Mn(o,$r(o))}function L2(o){return o==null?[]:Mn(o,bi(o))}function O2(o,v,M){return M===e&&(M=v,v=e),M!==e&&(M=Ki(M),M=M===M?M:0),v!==e&&(v=Ki(v),v=v===v?v:0),qs(Ki(o),v,M)}function N2(o,v,M){return v=Vo(v),M===e?(M=v,v=0):M=Vo(M),o=Ki(o),zE(o,v,M)}function D2(o,v,M){if(M&&typeof M!="boolean"&&ti(o,v,M)&&(v=M=e),M===e&&(typeof v=="boolean"?(M=v,v=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&v===e?(o=0,v=1):(o=Vo(o),v===e?(v=o,o=0):v=Vo(v)),o>v){var j=o;o=v,v=j}if(M||o%1||v%1){var G=Cb();return Br(o+G*(v-o+He("1e-"+((G+"").length-1))),v)}return Vd(o,v)}var F2=Ma(function(o,v,M){return v=v.toLowerCase(),o+(M?J0(v):v)});function J0(o){return yp(sn(o).toLowerCase())}function ew(o){return o=sn(o),o&&o.replace(Fe,In).replace(No,"")}function P2(o,v,M){o=sn(o),v=Ii(v);var j=o.length;M=M===e?j:qs(Mt(M),0,j);var G=M;return M-=v.length,M>=0&&o.slice(M,G)==v}function W2(o){return o=sn(o),o&&Ns.test(o)?o.replace(to,V):o}function B2(o){return o=sn(o),o&&pi.test(o)?o.replace(hr,"\\$&"):o}var z2=Ma(function(o,v,M){return o+(M?"-":"")+v.toLowerCase()}),H2=Ma(function(o,v,M){return o+(M?" ":"")+v.toLowerCase()}),j2=r0("toLowerCase");function U2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return Qc(Wc(G),M)+o+Qc(Pc(G),M)}function V2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;return v&&j<v?o+Qc(v-j,M):o}function q2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;return v&&j<v?Qc(v-j,M)+o:o}function K2(o,v,M){return M||v==null?v=0:v&&(v=+v),eE(sn(o).replace(An,""),v||0)}function G2(o,v,M){return(M?ti(o,v,M):v===e)?v=1:v=Mt(v),qd(sn(o),v)}function Y2(){var o=arguments,v=sn(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var X2=Ma(function(o,v,M){return o+(M?"_":"")+v.toLowerCase()});function Z2(o,v,M){return M&&typeof M!="number"&&ti(o,v,M)&&(v=M=e),M=M===e?J:M>>>0,M?(o=sn(o),o&&(typeof v=="string"||v!=null&&!gp(v))&&(v=Ii(v),!v&&oe(o))?fs(wt(o),0,M):o.split(v,M)):[]}var Q2=Ma(function(o,v,M){return o+(M?" ":"")+yp(v)});function J2(o,v,M){return o=sn(o),M=M==null?0:qs(Mt(M),0,o.length),v=Ii(v),o.slice(M,M+v.length)==v}function eN(o,v,M){var j=ee.templateSettings;M&&ti(o,v,M)&&(v=e),o=sn(o),v=uu({},v,j,u0);var G=uu({},v.imports,j.imports,u0),te=$r(G),ue=Mn(G,te),pe,ye,Ee=0,Re=v.interpolate||St,De="__p += '",Ge=Jr((v.escape||St).source+"|"+Re.source+"|"+(Re===hi?gi:St).source+"|"+(v.evaluate||St).source+"|$","g"),nt="//# sourceURL="+(cn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Co+"]")+`
|
|
1474
|
+
`;o.replace(Ge,function(gt,Bt,Kt,Ri,ni,Li){return Kt||(Kt=Ri),De+=o.slice(Ee,Li).replace(Yt,X),Bt&&(pe=!0,De+=`' +
|
|
1475
1475
|
__e(`+Bt+`) +
|
|
1476
1476
|
'`),ni&&(ye=!0,De+=`';
|
|
1477
1477
|
`+ni+`;
|
|
1478
|
-
__p += '`),
|
|
1479
|
-
((__t = (`+
|
|
1478
|
+
__p += '`),Kt&&(De+=`' +
|
|
1479
|
+
((__t = (`+Kt+`)) == null ? '' : __t) +
|
|
1480
1480
|
'`),Ee=Li+gt.length,gt}),De+=`';
|
|
1481
1481
|
`;var ft=cn.call(v,"variable")&&v.variable;if(!ft)De=`with (obj) {
|
|
1482
1482
|
`+De+`
|
|
@@ -1487,19 +1487,19 @@ __p += '`),qt&&(De+=`' +
|
|
|
1487
1487
|
function print() { __p += __j.call(arguments, '') }
|
|
1488
1488
|
`:`;
|
|
1489
1489
|
`)+De+`return __p
|
|
1490
|
-
}`;var Et=nw(function(){return $t(te,nt+"return "+De).apply(e,ue)});if(Et.source=De,fp(Et))throw Et;return Et}function tN(o){return sn(o).toLowerCase()}function nN(o){return sn(o).toUpperCase()}function rN(o,v,M){if(o=sn(o),o&&(M||v===e))return bn(o);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=wt(v),te=_t(j,G),ue=or(j,G)+1;return fs(j,te,ue).join("")}function iN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.slice(0,Nt(o)+1);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=or(j,wt(v))+1;return fs(j,0,G).join("")}function oN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.replace(kn,"");if(!o||!(v=Ii(v)))return o;var j=wt(o),G=_t(j,wt(v));return fs(j,G).join("")}function sN(o,v){var M=I,j=z;if(Fn(v)){var G="separator"in v?v.separator:G;M="length"in v?Mt(v.length):M,j="omission"in v?Ii(v.omission):j}o=sn(o);var te=o.length;if(oe(o)){var ue=wt(o);te=ue.length}if(M>=te)return o;var pe=M-Ft(j);if(pe<1)return j;var ye=ue?fs(ue,0,pe).join(""):o.slice(0,pe);if(G===e)return ye+j;if(ue&&(pe+=ye.length-pe),gp(G)){if(o.slice(pe).search(G)){var Ee,Re=ye;for(G.global||(G=Jr(G.source,sn(Fr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ye=ye.slice(0,De===e?pe:De)}}else if(o.indexOf(Ii(G),pe)!=pe){var Ge=ye.lastIndexOf(G);Ge>-1&&(ye=ye.slice(0,Ge))}return ye+j}function aN(o){return o=sn(o),o&&ui.test(o)?o.replace(Bn,dt):o}var lN=Ma(function(o,v,M){return o+(M?" ":"")+v.toUpperCase()}),yp=r0("toUpperCase");function tw(o,v,M){return o=sn(o),v=M?e:v,v===e?ge(o)?In(o):Y(o):o.match(v)||[]}var nw=Dt(function(o,v){try{return kr(o,e,v)}catch(M){return fp(M)?M:new ut(M)}}),cN=Ho(function(o,v){return Mr(v,function(M){M=Ao(M),Bo(o,M,dp(o[M],o))}),o});function uN(o){var v=o==null?0:o.length,M=pt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new dn(m);return[M(j[0]),j[1]]}):[],Dt(function(j){for(var G=-1;++G<v;){var te=o[G];if(kr(te[0],this,j))return kr(te[1],this,j)}})}function hN(o){return DE(Ui(o,l))}function bp(o){return function(){return o}}function dN(o,v){return o==null||o!==o?v:o}var pN=o0(),fN=o0(!0);function wi(o){return o}function wp(o){return Nb(typeof o=="function"?o:Ui(o,l))}function gN(o){return Fb(Ui(o,l))}function mN(o,v){return Pb(o,Ui(v,l))}var vN=Dt(function(o,v){return function(M){return bl(M,o,v)}}),yN=Dt(function(o,v){return function(M){return bl(o,M,v)}});function xp(o,v,M){var j=$r(v),G=Vc(v,j);M==null&&!(Fn(v)&&(G.length||!j.length))&&(M=v,v=o,o=this,G=Vc(v,$r(v)));var te=!(Fn(M)&&"chain"in M)||!!M.chain,ue=Uo(o);return Mr(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ee=this.__chain__;if(te||Ee){var Re=o(this.__wrapped__),De=Re.__actions__=vi(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ee,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function bN(){return hn._===this&&(hn._=VI),this}function Cp(){}function wN(o){return o=Mt(o),Dt(function(v){return Wb(v,o)})}var xN=Jd(y),CN=Jd(Ir),kN=Jd(W);function rw(o){return sp(o)?we(Ao(o)):JE(o)}function AN(o){return function(v){return o==null?e:Ks(o,v)}}var SN=a0(),_N=a0(!0);function kp(){return[]}function Ap(){return!1}function $N(){return{}}function TN(){return""}function MN(){return!0}function IN(o,v){if(o=Mt(o),o<1||o>U)return[];var M=J,j=Br(o,J);v=pt(v),o-=J;for(var G=Ze(j,v);++M<o;)v(M);return G}function EN(o){return Ct(o)?y(o,Ao):Ei(o)?[o]:vi(k0(sn(o)))}function RN(o){var v=++jI;return sn(o)+v}var LN=Zc(function(o,v){return o+v},0),ON=ep("ceil"),NN=Zc(function(o,v){return o/v},1),DN=ep("floor");function FN(o){return o&&o.length?Uc(o,wi,Wd):e}function PN(o,v){return o&&o.length?Uc(o,pt(v,2),Wd):e}function WN(o){return ve(o,wi)}function BN(o,v){return ve(o,pt(v,2))}function zN(o){return o&&o.length?Uc(o,wi,jd):e}function HN(o,v){return o&&o.length?Uc(o,pt(v,2),jd):e}var jN=Zc(function(o,v){return o*v},1),UN=ep("round"),VN=Zc(function(o,v){return o-v},0);function qN(o){return o&&o.length?st(o,wi):0}function KN(o,v){return o&&o.length?st(o,pt(v,2)):0}return ee.after=gO,ee.ary=O0,ee.assign=n2,ee.assignIn=G0,ee.assignInWith=uu,ee.assignWith=r2,ee.at=i2,ee.before=N0,ee.bind=dp,ee.bindAll=cN,ee.bindKey=D0,ee.castArray=$O,ee.chain=E0,ee.chunk=DR,ee.compact=FR,ee.concat=PR,ee.cond=uN,ee.conforms=hN,ee.constant=bp,ee.countBy=qL,ee.create=o2,ee.curry=F0,ee.curryRight=P0,ee.debounce=W0,ee.defaults=s2,ee.defaultsDeep=a2,ee.defer=mO,ee.delay=vO,ee.difference=WR,ee.differenceBy=BR,ee.differenceWith=zR,ee.drop=HR,ee.dropRight=jR,ee.dropRightWhile=UR,ee.dropWhile=VR,ee.fill=qR,ee.filter=GL,ee.flatMap=ZL,ee.flatMapDeep=QL,ee.flatMapDepth=JL,ee.flatten=$0,ee.flattenDeep=KR,ee.flattenDepth=GR,ee.flip=yO,ee.flow=pN,ee.flowRight=fN,ee.fromPairs=YR,ee.functions=f2,ee.functionsIn=g2,ee.groupBy=eO,ee.initial=ZR,ee.intersection=QR,ee.intersectionBy=JR,ee.intersectionWith=eL,ee.invert=v2,ee.invertBy=y2,ee.invokeMap=nO,ee.iteratee=wp,ee.keyBy=rO,ee.keys=$r,ee.keysIn=bi,ee.map=iu,ee.mapKeys=w2,ee.mapValues=x2,ee.matches=gN,ee.matchesProperty=mN,ee.memoize=su,ee.merge=C2,ee.mergeWith=Y0,ee.method=vN,ee.methodOf=yN,ee.mixin=xp,ee.negate=au,ee.nthArg=wN,ee.omit=k2,ee.omitBy=A2,ee.once=bO,ee.orderBy=iO,ee.over=xN,ee.overArgs=wO,ee.overEvery=CN,ee.overSome=kN,ee.partial=pp,ee.partialRight=B0,ee.partition=oO,ee.pick=S2,ee.pickBy=X0,ee.property=rw,ee.propertyOf=AN,ee.pull=iL,ee.pullAll=M0,ee.pullAllBy=oL,ee.pullAllWith=sL,ee.pullAt=aL,ee.range=SN,ee.rangeRight=_N,ee.rearg=xO,ee.reject=lO,ee.remove=lL,ee.rest=CO,ee.reverse=up,ee.sampleSize=uO,ee.set=$2,ee.setWith=T2,ee.shuffle=hO,ee.slice=cL,ee.sortBy=fO,ee.sortedUniq=mL,ee.sortedUniqBy=vL,ee.split=Z2,ee.spread=kO,ee.tail=yL,ee.take=bL,ee.takeRight=wL,ee.takeRightWhile=xL,ee.takeWhile=CL,ee.tap=FL,ee.throttle=AO,ee.thru=ru,ee.toArray=V0,ee.toPairs=Z0,ee.toPairsIn=Q0,ee.toPath=EN,ee.toPlainObject=K0,ee.transform=M2,ee.unary=SO,ee.union=kL,ee.unionBy=AL,ee.unionWith=SL,ee.uniq=_L,ee.uniqBy=$L,ee.uniqWith=TL,ee.unset=I2,ee.unzip=hp,ee.unzipWith=I0,ee.update=E2,ee.updateWith=R2,ee.values=Ra,ee.valuesIn=L2,ee.without=ML,ee.words=tw,ee.wrap=_O,ee.xor=IL,ee.xorBy=EL,ee.xorWith=RL,ee.zip=LL,ee.zipObject=OL,ee.zipObjectDeep=NL,ee.zipWith=DL,ee.entries=Z0,ee.entriesIn=Q0,ee.extend=G0,ee.extendWith=uu,xp(ee,ee),ee.add=LN,ee.attempt=nw,ee.camelCase=F2,ee.capitalize=J0,ee.ceil=ON,ee.clamp=O2,ee.clone=TO,ee.cloneDeep=IO,ee.cloneDeepWith=EO,ee.cloneWith=MO,ee.conformsTo=RO,ee.deburr=ew,ee.defaultTo=dN,ee.divide=NN,ee.endsWith=P2,ee.eq=so,ee.escape=W2,ee.escapeRegExp=B2,ee.every=KL,ee.find=YL,ee.findIndex=S0,ee.findKey=l2,ee.findLast=XL,ee.findLastIndex=_0,ee.findLastKey=c2,ee.floor=DN,ee.forEach=R0,ee.forEachRight=L0,ee.forIn=u2,ee.forInRight=h2,ee.forOwn=d2,ee.forOwnRight=p2,ee.get=mp,ee.gt=LO,ee.gte=OO,ee.has=m2,ee.hasIn=vp,ee.head=T0,ee.identity=wi,ee.includes=tO,ee.indexOf=XR,ee.inRange=N2,ee.invoke=b2,ee.isArguments=Xs,ee.isArray=Ct,ee.isArrayBuffer=NO,ee.isArrayLike=yi,ee.isArrayLikeObject=Jn,ee.isBoolean=DO,ee.isBuffer=gs,ee.isDate=FO,ee.isElement=PO,ee.isEmpty=WO,ee.isEqual=BO,ee.isEqualWith=zO,ee.isError=fp,ee.isFinite=HO,ee.isFunction=Uo,ee.isInteger=z0,ee.isLength=lu,ee.isMap=H0,ee.isMatch=jO,ee.isMatchWith=UO,ee.isNaN=VO,ee.isNative=qO,ee.isNil=GO,ee.isNull=KO,ee.isNumber=j0,ee.isObject=Fn,ee.isObjectLike=qn,ee.isPlainObject=Sl,ee.isRegExp=gp,ee.isSafeInteger=YO,ee.isSet=U0,ee.isString=cu,ee.isSymbol=Ei,ee.isTypedArray=Ea,ee.isUndefined=XO,ee.isWeakMap=ZO,ee.isWeakSet=QO,ee.join=tL,ee.kebabCase=z2,ee.last=qi,ee.lastIndexOf=nL,ee.lowerCase=H2,ee.lowerFirst=j2,ee.lt=JO,ee.lte=e2,ee.max=FN,ee.maxBy=PN,ee.mean=WN,ee.meanBy=BN,ee.min=zN,ee.minBy=HN,ee.stubArray=kp,ee.stubFalse=Ap,ee.stubObject=$N,ee.stubString=TN,ee.stubTrue=MN,ee.multiply=jN,ee.nth=rL,ee.noConflict=bN,ee.noop=Cp,ee.now=ou,ee.pad=U2,ee.padEnd=V2,ee.padStart=q2,ee.parseInt=K2,ee.random=D2,ee.reduce=sO,ee.reduceRight=aO,ee.repeat=G2,ee.replace=Y2,ee.result=_2,ee.round=UN,ee.runInContext=fe,ee.sample=cO,ee.size=dO,ee.snakeCase=X2,ee.some=pO,ee.sortedIndex=uL,ee.sortedIndexBy=hL,ee.sortedIndexOf=dL,ee.sortedLastIndex=pL,ee.sortedLastIndexBy=fL,ee.sortedLastIndexOf=gL,ee.startCase=Q2,ee.startsWith=J2,ee.subtract=VN,ee.sum=qN,ee.sumBy=KN,ee.template=eN,ee.times=IN,ee.toFinite=Vo,ee.toInteger=Mt,ee.toLength=q0,ee.toLower=tN,ee.toNumber=Ki,ee.toSafeInteger=t2,ee.toString=sn,ee.toUpper=nN,ee.trim=rN,ee.trimEnd=iN,ee.trimStart=oN,ee.truncate=sN,ee.unescape=aN,ee.uniqueId=RN,ee.upperCase=lN,ee.upperFirst=yp,ee.each=R0,ee.eachRight=L0,ee.first=T0,xp(ee,function(){var o={};return Co(ee,function(v,M){cn.call(ee.prototype,M)||(o[M]=v)}),o}(),{chain:!1}),ee.VERSION=r,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Mr(["drop","take"],function(o,v){Ut.prototype[o]=function(M){M=M===e?1:gr(Mt(M),0);var j=this.__filtered__&&!v?new Ut(this):this.clone();return j.__filtered__?j.__takeCount__=Br(M,j.__takeCount__):j.__views__.push({size:Br(M,J),type:o+(j.__dir__<0?"Right":"")}),j},Ut.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),Mr(["filter","map","takeWhile"],function(o,v){var M=v+1,j=M==$||M==N;Ut.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:pt(G,3),type:M}),te.__filtered__=te.__filtered__||j,te}}),Mr(["head","last"],function(o,v){var M="take"+(v?"Right":"");Ut.prototype[o]=function(){return this[M](1).value()[0]}}),Mr(["initial","tail"],function(o,v){var M="drop"+(v?"":"Right");Ut.prototype[o]=function(){return this.__filtered__?new Ut(this):this[M](1)}}),Ut.prototype.compact=function(){return this.filter(wi)},Ut.prototype.find=function(o){return this.filter(o).head()},Ut.prototype.findLast=function(o){return this.reverse().find(o)},Ut.prototype.invokeMap=Dt(function(o,v){return typeof o=="function"?new Ut(this):this.map(function(M){return bl(M,o,v)})}),Ut.prototype.reject=function(o){return this.filter(au(pt(o)))},Ut.prototype.slice=function(o,v){o=Mt(o);var M=this;return M.__filtered__&&(o>0||v<0)?new Ut(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),v!==e&&(v=Mt(v),M=v<0?M.dropRight(-v):M.take(v-o)),M)},Ut.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Ut.prototype.toArray=function(){return this.take(J)},Co(Ut.prototype,function(o,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),G=ee[j?"take"+(v=="last"?"Right":""):v],te=j||/^find/.test(v);G&&(ee.prototype[v]=function(){var ue=this.__wrapped__,pe=j?[1]:arguments,ye=ue instanceof Ut,Ee=pe[0],Re=ye||Ct(ue),De=function(Bt){var qt=G.apply(ee,T([Bt],pe));return j&&Ge?qt[0]:qt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Re=!1);var Ge=this.__chain__,nt=!!this.__actions__.length,ft=te&&!Ge,Et=ye&&!nt;if(!te&&Re){ue=Et?ue:new Ut(this);var gt=o.apply(ue,pe);return gt.__actions__.push({func:ru,args:[De],thisArg:e}),new ji(gt,Ge)}return ft&&Et?o.apply(this,pe):(gt=this.thru(De),ft?j?gt.value()[0]:gt.value():gt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(o){var v=_r[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",j=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(j&&!this.__chain__){var te=this.value();return v.apply(Ct(te)?te:[],G)}return this[M](function(ue){return v.apply(Ct(ue)?ue:[],G)})}}),Co(Ut.prototype,function(o,v){var M=ee[v];if(M){var j=M.name+"";cn.call(_a,j)||(_a[j]=[]),_a[j].push({name:v,func:M})}}),_a[Xc(e,b).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=aE,Ut.prototype.reverse=lE,Ut.prototype.value=cE,ee.prototype.at=PL,ee.prototype.chain=WL,ee.prototype.commit=BL,ee.prototype.next=zL,ee.prototype.plant=jL,ee.prototype.reverse=UL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=VL,ee.prototype.first=ee.prototype.head,dl&&(ee.prototype[dl]=HL),ee},Vt=sr();ir?((ir.exports=Vt)._=Vt,An._=Vt):hn._=Vt}).call(kk)}(Gl,Gl.exports)),Gl.exports}var Sk=Kn("I",Ak());Kn("O",Rl(Sk)).debounce(function(){this.rebuildDisplayText()},300);var Ig={exports:{}},Eg;function _k(){return Eg||(Eg=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Ig)),Ig.exports}_k();const $k=!0,ar="u-",Tk="uplot",Mk=ar+"hz",Ik=ar+"vt",Ek=ar+"title",Rk=ar+"wrap",Lk=ar+"under",Ok=ar+"over",Nk=ar+"axis",_s=ar+"off",Dk=ar+"select",Fk=ar+"cursor-x",Pk=ar+"cursor-y",Wk=ar+"cursor-pt",Bk=ar+"legend",zk=ar+"live",Hk=ar+"inline",jk=ar+"series",Uk=ar+"marker",Rg=ar+"label",Vk=ar+"value",Va="width",qa="height",Ka="top",Lg="bottom",sa="left",Hu="right",ju="#000",Og=ju+"0",Uu="mousemove",Ng="mousedown",Vu="mouseup",Dg="mouseenter",Fg="mouseleave",Pg="dblclick",qk="resize",Kk="scroll",Wg="change",Yl="dppxchange",qu="--",aa=typeof window<"u",Ku=aa?document:null,la=aa?window:null,Gk=aa?navigator:null;let en,Xl;function Gu(){let n=devicePixelRatio;en!=n&&(en=n,Xl&&Zu(Wg,Xl,Gu),Xl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),$s(Wg,Xl,Gu),la.dispatchEvent(new CustomEvent(Yl)))}function xi(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Yu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function wn(n,t,e){n.style[t]=e+"px"}function Xi(n,t,e,r){let f=Ku.createElement(n);return t!=null&&xi(f,t),e!=null&&e.insertBefore(f,r),f}function Oi(n,t){return Xi("div",n,t)}const Bg=new WeakMap;function ho(n,t,e,r,f){let g="translate("+t+"px,"+e+"px)",m=Bg.get(n);g!=m&&(n.style.transform=g,Bg.set(n,g),t<0||e<0||t>r||e>f?xi(n,_s):Yu(n,_s))}const zg=new WeakMap;function Hg(n,t,e){let r=t+e,f=zg.get(n);r!=f&&(zg.set(n,r),n.style.background=t,n.style.borderColor=e)}const jg=new WeakMap;function Ug(n,t,e,r){let f=t+""+e,g=jg.get(n);f!=g&&(jg.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 Xu={passive:!0},Yk={...Xu,capture:!0};function $s(n,t,e,r){t.addEventListener(n,e,r?Yk:Xu)}function Zu(n,t,e,r){t.removeEventListener(n,e,Xu)}aa&&Gu();function Zi(n,t,e,r){let f;e=e||0,r=r||t.length-1;let g=r<=2147483647;for(;r-e>1;)f=g?e+r>>1:ki((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Vg(n){return(t,e,r)=>{let f=-1,g=-1;for(let m=e;m<=r;m++)if(n(t[m])){f=m;break}for(let m=r;m>=e;m--)if(n(t[m])){g=m;break}return[f,g]}}const qg=n=>n!=null,Kg=n=>n!=null&&n>0,Zl=Vg(qg),Xk=Vg(Kg);function Zk(n,t,e,r=0,f=!1){let g=f?Xk:Zl,m=f?Kg:qg;[t,e]=g(n,t,e);let w=n[t],h=n[t];if(t>-1)if(r==1)w=n[t],h=n[e];else if(r==-1)w=n[e],h=n[t];else for(let d=t;d<=e;d++){let s=n[d];m(s)&&(s<w?w=s:s>h&&(h=s))}return[w??pn,h??-pn]}function Ql(n,t,e,r){let f=Xg(n),g=Xg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let m=e==10?_o:Zg,w=f==1?ki:Ni,h=g==1?Ni:ki,d=w(m(lr(n))),s=h(m(lr(t))),l=ca(e,d),u=ca(e,s);return e==10&&(d<0&&(l=fn(l,-d)),s<0&&(u=fn(u,-s))),r||e==2?(n=l*f,t=u*g):(n=im(n,l),t=tc(t,u)),[n,t]}function Qu(n,t,e,r){let f=Ql(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Ju=.1,Gg={mode:3,pad:Ju},Ga={pad:0,soft:null,mode:0},Qk={min:Ga,max:Ga};function Jl(n,t,e,r){return nc(e)?Yg(n,t,e):(Ga.pad=e,Ga.soft=r?0:null,Ga.mode=r?3:0,Yg(n,t,Qk))}function Zt(n,t){return n??t}function Jk(n,t,e){for(t=Zt(t,0),e=Zt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Yg(n,t,e){let r=e.min,f=e.max,g=Zt(r.pad,0),m=Zt(f.pad,0),w=Zt(r.hard,-pn),h=Zt(f.hard,pn),d=Zt(r.soft,pn),s=Zt(f.soft,-pn),l=Zt(r.mode,0),u=Zt(f.mode,0),c=t-n,i=_o(c),a=Hr(lr(n),lr(t)),p=_o(a),b=lr(p-i);(c<1e-24||b>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&d!=pn&&(g=0),u==2&&s!=-pn&&(m=0)));let x=c||a||1e3,R=_o(x),_=ca(10,ki(R)),k=x*(c==0?n==0?.1:1:g),C=fn(im(n-k,_/10),24),L=n>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:pn,D=Hr(w,C<L&&n>=L?L:Qi(L,C)),E=x*(c==0?t==0?.1:1:m),I=fn(tc(t+E,_/10),24),z=t<=s&&(u==1||u==3&&I>=s||u==2&&I<=s)?s:-pn,P=Qi(h,I>z&&t<=z?z:Hr(z,I));return D==P&&D==0&&(P=100),[D,P]}const eA=new Intl.NumberFormat(aa?Gk.language:"en-US"),eh=n=>eA.format(n),Ci=Math,ec=Ci.PI,lr=Ci.abs,ki=Ci.floor,cr=Ci.round,Ni=Ci.ceil,Qi=Ci.min,Hr=Ci.max,ca=Ci.pow,Xg=Ci.sign,_o=Ci.log10,Zg=Ci.log2,tA=(n,t=1)=>Ci.sinh(n)*t,th=(n,t=1)=>Ci.asinh(n/t),pn=1/0;function Qg(n){return(_o((n^n>>31)-(n>>31))|0)+1}function nh(n,t,e){return Qi(Hr(n,t),e)}function Jg(n){return typeof n=="function"}function zt(n){return Jg(n)?n:()=>n}const nA=()=>{},em=n=>n,tm=(n,t)=>t,rA=n=>null,nm=n=>!0,rm=(n,t)=>n==t,iA=/\.\d*?(?=9{6,}|0{6,})/gm,Ts=n=>{if(sm(n)||Zo.has(n))return n;const t=`${n}`,e=t.match(iA);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,g]=t.split("e");return+`${Ts(f)}e${g}`}return fn(n,r)};function Ms(n,t){return Ts(fn(Ts(n/t))*t)}function tc(n,t){return Ts(Ni(Ts(n/t))*t)}function im(n,t){return Ts(ki(Ts(n/t))*t)}function fn(n,t=0){if(sm(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return cr(r)/e}const Zo=new Map;function om(n){return((""+n).split(".")[1]||"").length}function Ya(n,t,e,r){let f=[],g=r.map(om);for(let m=t;m<e;m++){let w=lr(m),h=fn(ca(n,m),w);for(let d=0;d<r.length;d++){let s=n==10?+`${r[d]}e${m}`:r[d]*h,l=(m>=0?0:w)+(m>=g[d]?0:g[d]),u=n==10?s:fn(s,l);f.push(u),Zo.set(u,l)}}return f}const Xa={},rh=[],ua=[null,null],Qo=Array.isArray,sm=Number.isInteger,oA=n=>n===void 0;function am(n){return typeof n=="string"}function nc(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function sA(n){return n!=null&&typeof n=="object"}const aA=Object.getPrototypeOf(Uint8Array),lm="__proto__";function ha(n,t=nc){let e;if(Qo(n)){let r=n.find(f=>f!=null);if(Qo(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=ha(n[f],t)}else e=n.slice()}else if(n instanceof aA)e=n.slice();else if(t(n)){e={};for(let r in n)r!=lm&&(e[r]=ha(n[r],t))}else e=n;return e}function nr(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=lm&&(nc(n[f])?nr(n[f],ha(r[f])):n[f]=ha(r[f]))}return n}const lA=0,cA=1,uA=2;function hA(n,t,e){for(let r=0,f,g=-1;r<t.length;r++){let m=t[r];if(m>g){for(f=m-1;f>=0&&n[f]==null;)n[f--]=null;for(f=m+1;f<e&&n[f]==null;)n[g=f++]=null}}}function dA(n,t){if(gA(n)){let m=n[0].slice();for(let w=1;w<n.length;w++)m.push(...n[w].slice(1));return mA(m[0])||(m=fA(m)),m}let e=new Set;for(let m=0;m<n.length;m++){let w=n[m][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((m,w)=>m-w)],f=r[0].length,g=new Map;for(let m=0;m<f;m++)g.set(r[0][m],m);for(let m=0;m<n.length;m++){let w=n[m],h=w[0];for(let d=1;d<w.length;d++){let s=w[d],l=Array(f).fill(void 0),u=t?t[m][d]:cA,c=[];for(let i=0;i<s.length;i++){let a=s[i],p=g.get(h[i]);a===null?u!=lA&&(l[p]=a,u==uA&&c.push(p)):l[p]=a}hA(l,c,f),r.push(l)}}return r}const pA=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function fA(n){let t=n[0],e=t.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,m)=>t[g]-t[m]);let f=[];for(let g=0;g<n.length;g++){let m=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=m[r[h]];f.push(w)}return f}function gA(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 g=0;g<e;g++)if(f[g]!=t[g])return!1}}return!0}function mA(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 g=Hr(1,ki((f-r+1)/t));for(let m=n[r],w=r+g;w<=f;w+=g){const h=n[w];if(h!=null){if(h<=m)return!1;m=h}}return!0}const cm=["January","February","March","April","May","June","July","August","September","October","November","December"],um=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function hm(n){return n.slice(0,3)}const vA=um.map(hm),yA=cm.map(hm),bA={MMMM:cm,MMM:yA,WWWW:um,WWW:vA};function Za(n){return(n<10?"0":"")+n}function wA(n){return(n<10?"00":n<100?"0":"")+n}const xA={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=>Za(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Za(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Za(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=>Za(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Za(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>wA(n.getMilliseconds())};function ih(n,t){t=t||bA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?xA[f[1]]:f[0]);return g=>{let m="";for(let w=0;w<e.length;w++)m+=typeof e[w]=="string"?e[w]:e[w](g,t);return m}}const CA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function kA(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==CA?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const dm=n=>n%1==0,rc=[1,2,2.5,5],AA=Ya(10,-32,0,rc),pm=Ya(10,0,32,rc),SA=pm.filter(dm),Is=AA.concat(pm),oh=`
|
|
1491
|
-
`,fm="{YYYY}",gm=oh+fm,mm="{M}/{D}",Qa=oh+mm,ic=Qa+"/{YY}",vm="{aa}",_A="{h}:{mm}",da=_A+vm,ym=oh+da,bm=":{ss}",on=null;function wm(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,g=f*30,m=f*365,w=(n==1?Ya(10,0,3,rc).filter(dm):Ya(10,-3,0,rc)).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,g,g*2,g*3,g*4,g*6,m,m*2,m*5,m*10,m*25,m*50,m*100]);const h=[[m,fm,on,on,on,on,on,on,1],[f*28,"{MMM}",gm,on,on,on,on,on,1],[f,mm,gm,on,on,on,on,on,1],[r,"{h}"+vm,ic,on,Qa,on,on,on,1],[e,da,ic,on,Qa,on,on,on,1],[t,bm,ic+" "+da,on,Qa+" "+da,on,ym,on,1],[n,bm+".{fff}",ic+" "+da,on,Qa+" "+da,on,ym,on,1]];function d(s){return(l,u,c,i,a,p)=>{let b=[],x=a>=m,R=a>=g&&a<m,_=s(c),k=fn(_*n,3),C=sh(_.getFullYear(),x?0:_.getMonth(),R||x?1:_.getDate()),L=fn(C*n,3);if(R||x){let D=R?a/g:0,E=x?a/m:0,I=k==L?k:fn(sh(C.getFullYear()+E,C.getMonth()+D,1)*n,3),z=new Date(cr(I/n)),P=z.getFullYear(),O=z.getMonth();for(let $=0;I<=i;$++){let A=sh(P+E*$,O+D*$,1),N=A-s(fn(A*n,3));I=fn((+A+N)*n,3),I<=i&&b.push(I)}}else{let D=a>=f?f:a,E=ki(c)-ki(k),I=L+E+tc(k-L,D);b.push(I);let z=s(I),P=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=a/r,$=l.axes[u]._space,A=p/$;for(;I=fn(I+a,n==1?0:3),!(I>i);)if(O>1){let N=ki(fn(P+O,6))%24,B=s(I).getHours()-N;B>1&&(B=-1),I-=B*r,P=(P+O)%24;let U=b[b.length-1];fn((I-U)/a,3)*A>=.7&&b.push(I)}else b.push(I)}return b}}return[w,h,d]}const[$A,TA,MA]=wm(1),[IA,EA,RA]=wm(.001);Ya(2,-53,53,[1]);function xm(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 Cm(n,t){return(e,r,f,g,m)=>{let w=t.find(i=>m>=i[0])||t[t.length-1],h,d,s,l,u,c;return r.map(i=>{let a=n(i),p=a.getFullYear(),b=a.getMonth(),x=a.getDate(),R=a.getHours(),_=a.getMinutes(),k=a.getSeconds(),C=p!=h&&w[2]||b!=d&&w[3]||x!=s&&w[4]||R!=l&&w[5]||_!=u&&w[6]||k!=c&&w[7]||w[1];return h=p,d=b,s=x,l=R,u=_,c=k,C(a)})}}function LA(n,t){let e=ih(t);return(r,f,g,m,w)=>f.map(h=>e(n(h)))}function sh(n,t,e){return new Date(n,t,e)}function km(n,t){return t(n)}const OA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Am(n,t){return(e,r,f,g)=>g==null?qu:t(n(r))}function NA(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function DA(n,t){return n.series[t].fill(n,t)}const FA={show:!0,live:!0,isolate:!1,mount:nA,markers:{show:!0,width:2,stroke:NA,fill:DA,dash:"solid"},idx:null,idxs:null,values:[]};function PA(n,t){let e=n.cursor.points,r=Oi(),f=e.size(n,t);wn(r,Va,f),wn(r,qa,f);let g=f/-2;wn(r,"marginLeft",g),wn(r,"marginTop",g);let m=e.width(n,t,f);return m&&wn(r,"borderWidth",m),r}function WA(n,t){let e=n.series[t].points;return e._fill||e._stroke}function BA(n,t){let e=n.series[t].points;return e._stroke||e._fill}function zA(n,t){return n.series[t].points.size}const ah=[0,0];function HA(n,t,e){return ah[0]=t,ah[1]=e,ah}function oc(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function lh(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const jA={show:!0,x:!0,y:!0,lock:!1,move:HA,points:{one:!1,show:PA,size:zA,width:0,stroke:BA,fill:WA},bind:{mousedown:oc,mouseup:oc,click:oc,dblclick:oc,mousemove:lh,mouseleave:lh,mouseenter:lh},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},Sm={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ch=nr({},Sm,{filter:tm}),_m=nr({},ch,{size:10}),$m=nr({},Sm,{show:!1}),uh='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"',Tm="bold "+uh,Mm=1.5,Im={show:!0,scale:"x",stroke:ju,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Tm,side:2,grid:ch,ticks:_m,border:$m,font:uh,lineGap:Mm,rotate:0},UA="Value",VA="Time",Em={show:!0,scale:"x",auto:!1,sorted:1,min:pn,max:-pn,idxs:[]};function qA(n,t,e,r,f){return t.map(g=>g==null?"":eh(g))}function KA(n,t,e,r,f,g,m){let w=[],h=Zo.get(f)||0;e=m?e:fn(tc(e,f),h);for(let d=e;d<=r;d=fn(d+f,h))w.push(Object.is(d,-0)?0:d);return w}function hh(n,t,e,r,f,g,m){const w=[],h=n.scales[n.axes[t].scale].log,d=h==10?_o:Zg,s=ki(d(e));f=ca(h,s),h==10&&(f=Is[Zi(f,Is)]);let l=e,u=f*h;h==10&&(u=Is[Zi(u,Is)]);do w.push(l),l=l+f,h==10&&!Zo.has(l)&&(l=fn(l,Zo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=Is[Zi(u,Is)]));while(l<=r);return w}function GA(n,t,e,r,f,g,m){let w=n.scales[n.axes[t].scale].asinh,h=r>w?hh(n,t,Hr(w,e),r,f):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?hh(n,t,Hr(w,-r),-e,f):[w]).reverse().map(s=>-s).concat(d,h)}const Rm=/./,YA=/[12357]/,XA=/[125]/,Lm=/1/,dh=(n,t,e,r)=>n.map((f,g)=>t==4&&f==0||g%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function ZA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=n.scales[m],h=n.valToPos,d=g._space,s=h(10,m),l=h(9,m)-s>=d?Rm:h(7,m)-s>=d?YA:h(5,m)-s>=d?XA:Lm;if(l==Lm){let u=lr(h(1,m)-s);if(u<d)return dh(t.slice().reverse(),w.distr,l,Ni(d/u)).reverse()}return dh(t,w.distr,l,1)}function QA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=g._space,h=n.valToPos,d=lr(h(1,m)-h(2,m));return d<w?dh(t.slice().reverse(),3,Rm,Ni(w/d)).reverse():t}function JA(n,t,e,r){return r==null?qu:t==null?"":eh(t)}const Om={show:!0,scale:"y",stroke:ju,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Tm,side:3,grid:ch,ticks:_m,border:$m,font:uh,lineGap:Mm,rotate:0};function eS(n,t){let e=3+(n||1)*2;return fn(e*t,3)}function tS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],g=n.valToPos(f[r[0]],e,!0),m=n.valToPos(f[r[1]],e,!0),w=lr(m-g),h=n.series[t],d=w/(h.points.space*en);return r[1]-r[0]<=d}const Nm={scale:null,auto:!0,sorted:0,min:pn,max:-pn},Dm=(n,t,e,r,f)=>f,Fm={show:!0,auto:!0,sorted:0,gaps:Dm,alpha:1,facets:[nr({},Nm,{scale:"x"}),nr({},Nm,{scale:"y"})]},Pm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Dm,alpha:1,points:{show:tS,filter:null},values:null,min:pn,max:-pn,idxs:[],path:null,clip:null};function nS(n,t,e,r,f){return e/10}const Wm={time:$k,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},rS=nr({},Wm,{time:!1,ori:1}),Bm={};function zm(n,t){let e=Bm[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,g,m,w,h,d){for(let s=0;s<e.plots.length;s++)e.plots[s]!=f&&e.plots[s].pub(r,f,g,m,w,h,d)}},n!=null&&(Bm[n]=e)),e}const pa=1,ph=2;function Es(n,t,e){const r=n.mode,f=n.series[t],g=r==2?n._data[t]:n._data,m=n.scales,w=n.bbox;let h=g[0],d=r==2?g[1]:g[t],s=r==2?m[f.facets[0].scale]:m[n.series[0].scale],l=r==2?m[f.facets[1].scale]:m[f.scale],u=w.left,c=w.top,i=w.width,a=w.height,p=n.valToPosH,b=n.valToPosV;return s.ori==0?e(f,h,d,s,l,p,b,u,c,i,a,ac,fa,cc,Um,qm):e(f,h,d,s,l,b,p,c,u,a,i,lc,ga,mh,Vm,Km)}function fh(n,t){let e=0,r=0,f=Zt(n.bands,rh);for(let g=0;g<f.length;g++){let m=f[g];m.series[0]==t?e=m.dir:m.series[1]==t&&(m.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function iS(n,t,e,r,f){let g=n.mode,m=n.series[t],w=g==2?m.facets[1].scale:m.scale,h=n.scales[w];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function $o(n,t,e,r,f,g){return Es(n,t,(m,w,h,d,s,l,u,c,i,a,p)=>{let b=m.pxRound;const x=d.dir*(d.ori==0?1:-1),R=d.ori==0?fa:ga;let _,k;x==1?(_=e,k=r):(_=r,k=e);let C=b(l(w[_],d,a,c)),L=b(u(h[_],s,p,i)),D=b(l(w[k],d,a,c)),E=b(u(g==1?s.max:s.min,s,p,i)),I=new Path2D(f);return R(I,D,E),R(I,C,E),R(I,C,L),I})}function sc(n,t,e,r,f,g){let m=null;if(n.length>0){m=new Path2D;const w=t==0?cc:mh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(m,h,r,c,r+g),h=u[1]}}let d=e+f-h,s=10;d>0&&w(m,h,r-s/2,d,r+g+s)}return m}function oS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function gh(n,t,e,r,f,g,m){let w=[],h=n.length;for(let d=f==1?e:r;d>=e&&d<=r;d+=f)if(t[d]===null){let s=d,l=d;if(f==1)for(;++d<=r&&t[d]===null;)l=d;else for(;--d>=e&&t[d]===null;)l=d;let u=g(n[s]),c=l==s?u:g(n[l]),i=s-f;u=m<=0&&i>=0&&i<h?g(n[i]):u;let a=l+f;c=m>=0&&a>=0&&a<h?g(n[a]):c,c>=u&&w.push([u,c])}return w}function Hm(n){return n==0?em:n==1?cr:t=>Ms(t,n)}function jm(n){let t=n==0?ac:lc,e=n==0?(f,g,m,w,h,d)=>{f.arcTo(g,m,w,h,d)}:(f,g,m,w,h,d)=>{f.arcTo(m,g,h,w,d)},r=n==0?(f,g,m,w,h)=>{f.rect(g,m,w,h)}:(f,g,m,w,h)=>{f.rect(m,g,h,w)};return(f,g,m,w,h,d=0,s=0)=>{d==0&&s==0?r(f,g,m,w,h):(d=Qi(d,w/2,h/2),s=Qi(s,w/2,h/2),t(f,g+d,m),e(f,g+w,m,g+w,m+h,d),e(f,g+w,m+h,g,m+h,s),e(f,g,m+h,g,m,s),e(f,g,m,g+w,m,d),f.closePath())}}const ac=(n,t,e)=>{n.moveTo(t,e)},lc=(n,t,e)=>{n.moveTo(e,t)},fa=(n,t,e)=>{n.lineTo(t,e)},ga=(n,t,e)=>{n.lineTo(e,t)},cc=jm(0),mh=jm(1),Um=(n,t,e,r,f,g)=>{n.arc(t,e,r,f,g)},Vm=(n,t,e,r,f,g)=>{n.arc(e,t,r,f,g)},qm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(t,e,r,f,g,m)},Km=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(e,t,f,r,m,g)};function Gm(n){return(t,e,r,f,g)=>Es(t,e,(m,w,h,d,s,l,u,c,i,a,p)=>{let{pxRound:b,points:x}=m,R,_;d.ori==0?(R=ac,_=Um):(R=lc,_=Vm);const k=fn(x.width*en,3);let C=(x.size-x.width)/2*en,L=fn(C*2,3),D=new Path2D,E=new Path2D,{left:I,top:z,width:P,height:O}=t.bbox;cc(E,I-L,z-L,P+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=b(l(w[A],d,a,c)),B=b(u(h[A],s,p,i));R(D,N+C,B),_(D,N,B,C,0,ec*2)}};if(g)g.forEach($);else for(let A=r;A<=f;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:E,flags:pa|ph}})}function Ym(n){return(t,e,r,f,g,m)=>{r!=f&&(g!=r&&m!=r&&n(t,e,r),g!=f&&m!=f&&n(t,e,f),n(t,e,m))}}const sS=Ym(fa),aS=Ym(ga);function Xm(n){const t=Zt(n==null?void 0:n.alignGaps,0);return(e,r,f,g)=>Es(e,r,(m,w,h,d,s,l,u,c,i,a,p)=>{[f,g]=Zl(h,f,g);let b=m.pxRound,x=P=>b(l(P,d,a,c)),R=P=>b(u(P,s,p,i)),_,k;d.ori==0?(_=fa,k=sS):(_=ga,k=aS);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:pa},D=L.stroke;let E=!1;if(g-f>=a*4){let P=he=>e.posToVal(he,d.key,!0),O=null,$=null,A,N,B,U=x(w[C==1?f:g]),K=x(w[f]),Q=x(w[g]),J=P(C==1?K+1:Q-1);for(let he=C==1?f:g;he>=f&&he<=g;he+=C){let ne=w[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,R(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(E=!0):(O!=null&&k(D,U,R(O),R($),R(A),R(N)),se!=null?(N=se,_(D,le,R(N)),O=$=A=N):(O=$=null,se===null&&(E=!0)),U=le,J=P(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,R(O),R($),R(A),R(N))}else for(let P=C==1?f:g;P>=f&&P<=g;P+=C){let O=h[P];O===null?E=!0:O!=null&&_(D,x(w[P]),R(O))}let[I,z]=fh(e,r);if(m.fill!=null||I!=0){let P=L.fill=new Path2D(D),O=m.fillTo(e,r,m.min,m.max,I),$=R(O),A=x(w[f]),N=x(w[g]);C==-1&&([N,A]=[A,N]),_(P,N,$),_(P,A,$)}if(!m.spanGaps){let P=[];E&&P.push(...gh(w,h,f,g,C,x,t)),L.gaps=P=m.gaps(e,r,f,g,P),L.clip=sc(P,d.ori,c,i,a,p)}return z!=0&&(L.band=z==2?[$o(e,r,f,g,D,-1),$o(e,r,f,g,D,1)]:$o(e,r,f,g,D,z)),L})}function lS(n){const t=Zt(n.align,1),e=Zt(n.ascDesc,!1),r=Zt(n.alignGaps,0),f=Zt(n.extend,!1);return(g,m,w,h)=>Es(g,m,(d,s,l,u,c,i,a,p,b,x,R)=>{[w,h]=Zl(l,w,h);let _=d.pxRound,{left:k,width:C}=g.bbox,L=Q=>_(i(Q,u,x,p)),D=Q=>_(a(Q,c,R,b)),E=u.ori==0?fa:ga;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:pa},z=I.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(l[P==1?w:h]),$=L(s[P==1?w:h]),A=$,N=$;f&&t==-1&&(N=k,E(z,N,O)),E(z,$,O);for(let Q=P==1?w:h;Q>=w&&Q<=h;Q+=P){let J=l[Q];if(J==null)continue;let he=L(s[Q]),ne=D(J);t==1?E(z,he,O):E(z,A,ne),E(z,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=k+C,E(z,B,O));let[U,K]=fh(g,m);if(d.fill!=null||U!=0){let Q=I.fill=new Path2D(z),J=d.fillTo(g,m,d.min,d.max,U),he=D(J);E(Q,B,he),E(Q,N,he)}if(!d.spanGaps){let Q=[];Q.push(...gh(s,l,w,h,P,L,r));let J=d.width*en/2,he=e||t==1?J:-J,ne=e||t==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),I.gaps=Q=d.gaps(g,m,w,h,Q),I.clip=sc(Q,u.ori,p,b,x,R)}return K!=0&&(I.band=K==2?[$o(g,m,w,h,z,-1),$o(g,m,w,h,z,1)]:$o(g,m,w,h,z,K)),I})}function Zm(n,t,e,r,f,g,m=pn){if(n.length>1){let w=null;for(let h=0,d=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let s=lr(n[h]-n[w]);s<d&&(d=s,m=lr(e(n[h],r,f,g)-e(n[w],r,f,g)))}w=h}}return m}function cS(n){n=n||Xa;const t=Zt(n.size,[.6,pn,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 g=zt(f),m=1-t[0],w=Zt(t[1],pn),h=Zt(t[2],1),d=Zt(n.disp,Xa),s=Zt(n.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,a,p)=>Es(c,i,(b,x,R,_,k,C,L,D,E,I,z)=>{let P=b.pxRound,O=e,$=r*en,A=w*en,N=h*en,B,U;_.ori==0?[B,U]=g(c,i):[U,B]=g(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?cc:mh,J=_.ori==0?s:(je,Lt,Qt,On,yr,ur,gn)=>{s(je,Lt,Qt,yr,On,gn,ur)},he=Zt(c.bands,rh).find(je=>je.series[0]==i),ne=he!=null?he.dir:0,le=b.fillTo(c,i,b.min,b.max,ne),se=P(L(le,k,z,E)),de,me,_e,Te=I,Me=P(b.width*en),Xe=!1,Ke=null,at=null,et=null,lt=null;l!=null&&(Me==0||u!=null)&&(Xe=!0,Ke=l.values(c,i,a,p),at=new Map,new Set(Ke).forEach(je=>{je!=null&&at.set(je,new Path2D)}),Me>0&&(et=u.values(c,i,a,p),lt=new Map,new Set(et).forEach(je=>{je!=null&<.set(je,new Path2D)})));let{x0:Yt,size:xn}=d;if(Yt!=null&&xn!=null){O=1,x=Yt.values(c,i,a,p),Yt.unit==2&&(x=x.map(Lt=>c.posToVal(D+Lt*I,_.key,!0)));let je=xn.values(c,i,a,p);xn.unit==2?me=je[0]*I:me=C(je[0],_,I,D)-C(0,_,I,D),Te=Zm(x,R,C,_,I,D,Te),_e=Te-me+$}else Te=Zm(x,R,C,_,I,D,Te),_e=Te*m+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(P=em);let Wt=_e>0,vr=Te-_e-(Wt?Me:0);me=P(nh(vr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Wt?Me/2:0));const un={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ln=Xe?null:new Path2D;let Zn=null;if(he!=null)Zn=c.data[he.series[1]];else{let{y0:je,y1:Lt}=d;je!=null&&Lt!=null&&(R=Lt.values(c,i,a,p),Zn=je.values(c,i,a,p))}let Tr=B*me,mt=U*me;for(let je=K==1?a:p;je>=a&&je<=p;je+=K){let Lt=R[je];if(Lt==null)continue;if(Zn!=null){let Kt=Zn[je]??0;if(Lt-Kt==0)continue;se=L(Kt,k,z,E)}let Qt=_.distr!=2||d!=null?x[je]:je,On=C(Qt,_,I,D),yr=L(Zt(Lt,le),k,z,E),ur=P(On-de),gn=P(Hr(yr,se)),Wn=P(Qi(yr,se)),Nn=gn-Wn;if(Lt!=null){let Kt=Lt<0?mt:Tr,ln=Lt<0?Tr:mt;Xe?(Me>0&&et[je]!=null&&Q(lt.get(et[je]),ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Kt,ln),Ke[je]!=null&&Q(at.get(Ke[je]),ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Kt,ln)):Q(Ln,ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Kt,ln),J(c,i,je,ur-Me/2,Wn,me+Me,Nn)}}return Me>0?un.stroke=Xe?lt:Ln:Xe||(un._fill=b.width==0?b._fill:b._stroke??b._fill,un.width=0),un.fill=Xe?at:Ln,un})}function uS(n,t){const e=Zt(t==null?void 0:t.alignGaps,0);return(r,f,g,m)=>Es(r,f,(w,h,d,s,l,u,c,i,a,p,b)=>{[g,m]=Zl(d,g,m);let x=w.pxRound,R=B=>x(u(B,s,p,i)),_=B=>x(c(B,l,b,a)),k,C,L;s.ori==0?(k=ac,L=fa,C=qm):(k=lc,L=ga,C=Km);const D=s.dir*(s.ori==0?1:-1);let E=R(h[D==1?g:m]),I=E,z=[],P=[];for(let B=D==1?g:m;B>=g&&B<=m;B+=D)if(d[B]!=null){let U=h[B],K=R(U);z.push(I=K),P.push(_(d[B]))}const O={stroke:n(z,P,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:pa},$=O.stroke;let[A,N]=fh(r,f);if(w.fill!=null||A!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,f,w.min,w.max,A),K=_(U);L(B,I,K),L(B,E,K)}if(!w.spanGaps){let B=[];B.push(...gh(h,d,g,m,D,R,e)),O.gaps=B=w.gaps(r,f,g,m,B),O.clip=sc(B,s.ori,i,a,p,b)}return N!=0&&(O.band=N==2?[$o(r,f,g,m,$,-1),$o(r,f,g,m,$,1)]:$o(r,f,g,m,$,N)),O})}function hS(n){return uS(dS,n)}function dS(n,t,e,r,f,g){const m=n.length;if(m<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),m==2)r(w,n[1],t[1]);else{let h=Array(m),d=Array(m-1),s=Array(m-1),l=Array(m-1);for(let u=0;u<m-1;u++)s[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],d[u]=s[u]/l[u];h[0]=d[0];for(let u=1;u<m-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[m-1]=d[m-2];for(let u=0;u<m-1;u++)f(w,n[u]+l[u]/3,t[u]+h[u]*l[u]/3,n[u+1]-l[u]/3,t[u+1]-h[u+1]*l[u]/3,n[u+1],t[u+1])}return w}const vh=new Set;function Qm(){for(let n of vh)n.syncRect(!0)}aa&&($s(qk,la,Qm),$s(Kk,la,Qm,!0),$s(Yl,la,()=>{Or.pxRatio=en}));const pS=Xm(),fS=Gm();function Jm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,g)=>yh(f,g,t,e))}function gS(n,t){return n.map((e,r)=>r==0?{}:nr({},t,e))}function yh(n,t,e,r){return nr({},t==0?e:r,n)}function ev(n,t,e){return t==null?ua:[t,e]}const mS=ev;function vS(n,t,e){return t==null?ua:Jl(t,e,Ju,!0)}function tv(n,t,e,r){return t==null?ua:Ql(t,e,n.scales[r].log,!1)}const yS=tv;function nv(n,t,e,r){return t==null?ua:Qu(t,e,n.scales[r].log,!1)}const bS=nv;function wS(n,t,e,r,f){let g=Hr(Qg(n),Qg(t)),m=t-n,w=Zi(f/r*m,e);do{let h=e[w],d=r*h/m;if(d>=f&&g+(h<5?Zo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function rv(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=cr((e=+f)*en))+"px"),[n,t,e]}function xS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=fn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Or(n,t,e){const r={mode:Zt(n.mode,1)},f=r.mode;function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function m(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?g(V,X,ie,oe):m(V,X,ie,oe)}r.valToPosH=g,r.valToPosV=m;let h=!1;r.status=0;const d=r.root=Oi(Tk);if(n.id!=null&&(d.id=n.id),xi(d,n.class),n.title){let V=Oi(Ek,d);V.textContent=n.title}const s=Xi("canvas"),l=r.ctx=s.getContext("2d"),u=Oi(Rk,d);$s("click",u,V=>{V.target===i&&(rn!=Pi||jt!=xo)&&Hn.click(r,V)},!0);const c=r.under=Oi(Lk,u);u.appendChild(s);const i=r.over=Oi(Ok,u);n=ha(n);const a=+Zt(n.pxAlign,1),p=Hm(a);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const b=n.ms||.001,x=r.series=f==1?Jm(n.series||[],Em,Pm,!1):gS(n.series||[null],Fm),R=r.axes=Jm(n.axes||[],Im,Om,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=zt(V.fill||null),V.dir=Zt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,L={axes:Ro,series:wa},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function E(V){const X=V.distr==3?ie=>_o(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>th(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function I(V){let X=_[V];if(X==null){let ie=(n.scales||Xa)[V]||Xa;if(ie.from!=null){I(ie.from);let oe=nr({},_[ie.from],ie,{key:V});oe.valToPct=E(oe),_[V]=oe}else{X=_[V]=nr({},V==C?Wm:rS,ie),X.key=V;let oe=X.time,ge=X.range,xe=Qo(ge);if((V!=C||f==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Gg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Gg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&nc(ge))){let Ie=ge;ge=(Pe,Be,qe)=>Be==null?ua:Jl(Be,qe,Ie)}X.range=zt(ge||(oe?mS:V==C?X.distr==3?yS:X.distr==4?bS:ev:X.distr==3?tv:X.distr==4?nv:vS)),X.auto=zt(xe?!1:X.auto),X.clamp=zt(X.clamp||nS),X._min=X._max=null,X.valToPct=E(X)}}}I("x"),I("y"),f==1&&x.forEach(V=>{I(V.scale)}),R.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const z=_[C],P=z.distr;let O,$;z.ori==0?(xi(d,Mk),O=g,$=m):(xi(d,Ik),O=m,$=g);const A={};for(let V in _){let X=_[V];(X.min!=null||X.max!=null)&&(A[V]={min:X.min,max:X.max},X.min=X.max=null)}const N=n.tzDate||(V=>new Date(cr(V/b))),B=n.fmtDate||ih,U=b==1?MA(N):RA(N),K=Cm(N,xm(b==1?TA:EA,B)),Q=Am(N,km(OA,B)),J=[],he=r.legend=nr({},FA,n.legend),ne=r.cursor=nr({},jA,{drag:{y:f==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,_e,Te,Me=[],Xe=[],Ke,at=!1,et={};if(he.live){const V=x[1]?x[1].values:null;at=V!=null,Ke=at?V(r,1,0):{_:0};for(let X in Ke)et[X]=qu}if(le)if(me=Xi("table",Bk,d),Te=Xi("tbody",null,me),he.mount(r,me),at){_e=Xi("thead",null,me,Te);let V=Xi("tr",null,_e);Xi("th",null,V);for(var lt in Ke)Xi("th",Rg,V).textContent=lt}else xi(me,Hk),he.live&&xi(me,zk);const Yt={show:!0},xn={show:!1};function Wt(V,X){if(X==0&&(at||!he.live||f==2))return ua;let ie=[],oe=Xi("tr",jk,Te,Te.childNodes[X]);xi(oe,V.class),V.show||xi(oe,_s);let ge=Xi("th",null,oe);if(de.show){let Pe=Oi(Uk,ge);if(X>0){let Be=de.width(r,X);Be&&(Pe.style.border=Be+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Pe.style.background=de.fill(r,X)}}let xe=Oi(Rg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),un("click",ge,Pe=>{if(ne._lock)return;di(Pe);let Be=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let qe=x.some((Ye,Qe)=>Qe>0&&Qe!=Be&&Ye.show);x.forEach((Ye,Qe)=>{Qe>0&&Qr(Qe,qe?Qe==Be?Yt:xn:Yt,!0,ct.setSeries)})}else Qr(Be,{show:!V.show},!0,ct.setSeries)},!1),pi&&un(Dg,ge,Pe=>{ne._lock||(di(Pe),Qr(x.indexOf(V),zi,!0,ct.setSeries))},!1));for(var Ie in Ke){let Pe=Xi("td",Vk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const vr=new Map;function un(V,X,ie,oe=!0){const ge=vr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&($s(V,X,ge[V]=xe),vr.set(X,ge))}function Ln(V,X,ie){const oe=vr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Zu(ge,X,oe[ge]),delete oe[ge]);V==null&&vr.delete(X)}let Zn=0,Tr=0,mt=0,je=0,Lt=0,Qt=0,On=Lt,yr=Qt,ur=mt,gn=je,Wn=0,Nn=0,Kt=0,ln=0;r.bbox={};let Dr=!1,Kr=!1,Gr=!1,Ai=!1,ci=!1,Bn=!1;function to(V,X,ie){(ie||V!=r.width||X!=r.height)&&ui(V,X),io(!1),Gr=!0,Kr=!0,wo()}function ui(V,X){r.width=Zn=mt=V,r.height=Tr=je=X,Lt=Qt=0,hi(),Jo();let ie=r.bbox;Wn=ie.left=Ms(Lt*en,.5),Nn=ie.top=Ms(Qt*en,.5),Kt=ie.width=Ms(mt*en,.5),ln=ie.height=Ms(je*en,.5)}const Ns=3;function Yr(){let V=!1,X=0;for(;!V;){X++;let ie=xa(X),oe=hl(X);V=X==Ns||ie&&oe,V||(ui(r.width,r.height),Kr=!0)}}function _n({width:V,height:X}){to(V,X)}r.setSize=_n;function hi(){let V=!1,X=!1,ie=!1,oe=!1;R.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Pe}=ge,Be=Ie%2,qe=ge.label!=null?ge.labelSize:0,Ye=Pe+qe;Ye>0&&(Be?(mt-=Ye,Ie==3?(Lt+=Ye,oe=!0):ie=!0):(je-=Ye,Ie==0?(Qt+=Ye,V=!0):X=!0))}}),gi[0]=V,gi[1]=ie,gi[2]=X,gi[3]=oe,mt-=wr[1]+wr[3],Lt+=wr[3],je-=wr[2]+wr[0],Qt+=wr[0]}function Jo(){let V=Lt+mt,X=Qt+je,ie=Lt,oe=Qt;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}R.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Pe=xe.side;xe._pos=ge(Pe,xe._size),xe.label!=null&&(xe._lpos=ge(Pe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=zt(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ie,Pe)=>{if(xe==0)return Ie;let Be=Ie,qe=ie(ge,xe,Ie,Pe)??pn,Ye=qe>=0&&qe<pn,Qe=z.ori==0?mt:je,yt=ne.left,Ft=t[0],wt=t[xe];if(X.has(wt[Ie])){Be=null;let Nt=null,dt=null,rt;if(oe==0||oe==-1)for(rt=Ie;Nt==null&&rt-- >0;)X.has(wt[rt])||(Nt=rt);if(oe==0||oe==1)for(rt=Ie;dt==null&&rt++<wt.length;)X.has(wt[rt])||(dt=rt);if(Nt!=null||dt!=null)if(Ye){let vn=Nt==null?-1/0:O(Ft[Nt],z,Qe,0),In=dt==null?1/0:O(Ft[dt],z,Qe,0),sr=yt-vn,Vt=In-yt;sr<=Vt?sr<=qe&&(Be=Nt):Vt<=qe&&(Be=dt)}else Be=dt==null?Nt:Nt==null?dt:Ie-Nt<=dt-Ie?Nt:dt}else Ye&&lr(yt-O(Ft[Ie],z,Qe,0))>qe&&(Be=null);return Be}}const di=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let Cn=ne.points;Cn.show=zt(Cn.show),Cn.size=zt(Cn.size),Cn.stroke=zt(Cn.stroke),Cn.width=zt(Cn.width),Cn.fill=zt(Cn.fill);const hr=r.focus=nr({},n.focus||{alpha:.3},ne.focus),pi=hr.prox>=0,kn=pi&&Cn.one;let $n=[],br=[],fi=[];function mo(V,X){let ie=Cn.show(r,X);if(ie instanceof HTMLElement)return xi(ie,Wk),xi(ie,V.class),ho(ie,-10,-10,mt,je),i.insertBefore(ie,$n[X]),ie}function vo(V,X){if(f==1||X>0){let ie=f==1&&_[V.scale].time,oe=V.value;V.value=ie?am(oe)?Am(N,km(oe,B)):oe||Q:oe||JA,V.label=V.label||(ie?VA:UA)}if(kn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||pS||rA,V.fillTo=zt(V.fillTo||iS),V.pxAlign=+Zt(V.pxAlign,a),V.pxRound=Hm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=eS(Hr(1,V.width),1),oe=V.points=nr({},{size:ie,width:Hr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:fS,_stroke:null,_fill:null},V.points);oe.show=zt(oe.show),oe.filter=zt(oe.filter),oe.fill=zt(oe.fill),oe.stroke=zt(oe.stroke),oe.paths=zt(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Wt(V,X);Me.splice(X,0,ie[0]),Xe.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;kn?X==0&&(ie=mo(V,X)):X>0&&(ie=mo(V,X)),$n.splice(X,0,ie),br.splice(X,0,0),fi.splice(X,0,0)}tt("addSeries",X)}function es(V,X){X=X??x.length,V=f==1?yh(V,X,Em,Pm):yh(V,X,{},Fm),x.splice(X,0,V),vo(x[X],X)}r.addSeries=es;function Xr(V){if(x.splice(V,1),le){he.values.splice(V,1),Xe.splice(V,1);let X=Me.splice(V,1)[0];Ln(null,X.firstChild),X.remove()}se&&(J.splice(V,1),$n.splice(V,1)[0].remove(),br.splice(V,1),fi.splice(V,1)),tt("delSeries",V)}r.delSeries=Xr;const gi=[!1,!1,!1,!1];function Fr(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=_[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=_[V.scale]);let ge=oe.time;V.size=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),Qo(V.incrs)&&V.incrs.forEach(Ie=>{!Zo.has(Ie)&&Zo.set(Ie,om(Ie))}),V.incrs=zt(V.incrs||(oe.distr==2?SA:ge?b==1?$A:IA:Is)),V.splits=zt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?hh:oe.distr==4?GA:KA)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=Qo(xe)&&!Qo(xe[0])?zt(xe):ge?Qo(xe)?Cm(N,xm(xe,B)):am(xe)?LA(N,xe):xe||K:xe||qA,V.filter=zt(V.filter||(oe.distr>=3&&oe.log==10?ZA:oe.distr==3&&oe.log==2?QA:tm)),V.font=rv(V.font),V.labelFont=rv(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(gi[X]=!0,V._el=Oi(Nk,u))}}function Ot(V,X,ie,oe){let[ge,xe,Ie,Pe]=ie,Be=X%2,qe=0;return Be==0&&(Pe||xe)&&(qe=X==0&&!ge||X==2&&!Ie?cr(Im.size/3):0),Be==1&&(ge||Ie)&&(qe=X==1&&!xe||X==3&&!Pe?cr(Om.size/2):0),qe}const Mo=r.padding=(n.padding||[Ot,Ot,Ot,Ot]).map(V=>zt(Zt(V,Ot))),wr=r._padding=Mo.map((V,X)=>V(r,X,gi,0));let ce,ze=null,Fe=null;const St=f==1?x[0].idxs:null;let Gt=null,Ht=!1;function xr(V,X){if(t=V??[],r.data=r._data=t,f==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Gt=t[0],ce=Gt.length;let ie=t;if(P==2){ie=t.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=t=ie}if(io(!0),tt("setData"),P==2&&(Gr=!0),X!==!1){let ie=z;ie.auto(r,Ht)?dr():ir(C,ie.min,ie.max),Ai=Ai||ne.left>=0,Bn=!0,wo()}}r.setData=xr;function dr(){Ht=!0;let V,X;f==1&&(ce>0?(ze=St[0]=0,Fe=St[1]=ce-1,V=t[0][ze],X=t[0][Fe],P==2?(V=ze,X=Fe):V==X&&(P==3?[V,X]=Ql(V,V,z.log,!1):P==4?[V,X]=Qu(V,V,z.log,!1):z.time?X=V+cr(86400/b):[V,X]=Jl(V,X,Ju,!0))):(ze=St[0]=V=null,Fe=St[1]=X=null)),ir(C,V,X)}let zn,Cr,mn,no,Pr,ts,Ds,Fs,ns,pr;function Ps(V,X,ie,oe,ge,xe){V??(V=Og),ie??(ie=rh),oe??(oe="butt"),ge??(ge=Og),xe??(xe="round"),V!=zn&&(l.strokeStyle=zn=V),ge!=Cr&&(l.fillStyle=Cr=ge),X!=mn&&(l.lineWidth=mn=X),xe!=Pr&&(l.lineJoin=Pr=xe),oe!=ts&&(l.lineCap=ts=oe),ie!=no&&l.setLineDash(no=ie)}function Io(V,X,ie,oe){X!=Cr&&(l.fillStyle=Cr=X),V!=Ds&&(l.font=Ds=V),ie!=Fs&&(l.textAlign=Fs=ie),oe!=ns&&(l.textBaseline=ns=oe)}function rs(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,Ht)&&(X==null||X.min==null)){let xe=Zt(ze,0),Ie=Zt(Fe,oe.length-1),Pe=ie.min==null?Zk(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=Qi(V.min,ie.min=Pe[0]),V.max=Hr(V.max,ie.max=Pe[1])}}const is={min:null,max:null};function yo(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,Ht))&&(A[oe]=is)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=is)}A[C]!=null&&io(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=ha(_[oe],sA);if(ge.min!=null)nr(xe,ge);else if(oe!=C||f==2)if(ce==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=pn,xe.max=-pn}}if(ce>0){x.forEach((oe,ge)=>{if(f==1){let xe=oe.scale,Ie=A[xe];if(Ie==null)return;let Pe=V[xe];if(ge==0){let Be=Pe.range(r,Pe.min,Pe.max,xe);Pe.min=Be[0],Pe.max=Be[1],ze=Zi(Pe.min,t[0]),Fe=Zi(Pe.max,t[0]),Fe-ze>1&&(t[0][ze]<Pe.min&&ze++,t[0][Fe]>Pe.max&&Fe--),oe.min=Gt[ze],oe.max=Gt[Fe]}else oe.show&&oe.auto&&rs(Pe,Ie,oe,t[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Pe=xe.scale,Be=Ie.scale,[qe,Ye]=t[ge],Qe=V[Pe],yt=V[Be];Qe!=null&&rs(Qe,A[Pe],xe,qe,xe.sorted),yt!=null&&rs(yt,A[Be],Ie,Ye,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==pn?null:ge.min,ge.max==-pn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=_[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?_o(xe.min):Ie==4?th(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?_o(xe.max):Ie==4?th(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{f==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)Gr=!0,tt("setScale",oe);se&&ne.left>=0&&(Ai=Bn=!0)}for(let oe in A)A[oe]=null}function Ws(V){let X=nh(ze-1,0,ce-1),ie=nh(Fe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function wa(){if(ce>0){let V=x.some(X=>X._focus)&&pr!=hr.alpha;V&&(l.globalAlpha=pr=hr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(os(ie,!1),os(ie,!0),X._paths==null)){let oe=pr;pr!=X.alpha&&(l.globalAlpha=pr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Ws(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),pr!=oe&&(l.globalAlpha=pr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=pr;pr!=X.alpha&&(l.globalAlpha=pr=X.alpha),X._paths!=null&&ss(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Fe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,ze,Fe,Ie),ss(ie,!0))}pr!=oe&&(l.globalAlpha=pr=oe),tt("drawSeries",ie)}}),V&&(l.globalAlpha=pr=1)}}function os(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function ss(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Pe=ie._stroke,_fill:Be=ie._fill,_width:qe=ie.width}=ie._paths;qe=fn(qe*en,3);let Ye=null,Qe=qe%2/2;X&&Be==null&&(Be=qe>0?"#fff":Pe);let yt=ie.pxAlign==1&&Qe>0;if(yt&&l.translate(Qe,Qe),!X){let Ft=Wn-qe/2,wt=Nn-qe/2,Nt=Kt+qe,dt=ln+qe;Ye=new Path2D,Ye.rect(Ft,wt,Nt,dt)}X?Eo(Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,xe):Bs(V,Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,Ye,xe),yt&&l.translate(-Qe,-Qe)}function Bs(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye){let Qe=!1;Be!=0&&k.forEach((yt,Ft)=>{if(yt.series[0]==V){let wt=x[yt.series[1]],Nt=t[yt.series[1]],dt=(wt._paths||Xa).band;Qo(dt)&&(dt=yt.dir==1?dt[0]:dt[1]);let rt,vn=null;wt.show&&dt&&Jk(Nt,ze,Fe)?(vn=yt.fill(r,Ft)||xe,rt=wt._paths.clip):dt=null,Eo(X,ie,oe,ge,vn,Ie,Pe,Be,qe,Ye,rt,dt),Qe=!0}}),Qe||Eo(X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye)}const as=pa|ph;function Eo(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye,Qe){Ps(V,X,ie,oe,ge),(Be||qe||Qe)&&(l.save(),Be&&l.clip(Be),qe&&l.clip(qe)),Qe?(Pe&as)==as?(l.clip(Qe),Ye&&l.clip(Ye),fr(ge,Ie),Fi(V,xe,X)):Pe&ph?(fr(ge,Ie),l.clip(Qe),Fi(V,xe,X)):Pe&pa&&(l.save(),l.clip(Qe),Ye&&l.clip(Ye),fr(ge,Ie),l.restore(),Fi(V,xe,X)):(fr(ge,Ie),Fi(V,xe,X)),(Be||qe||Qe)&&l.restore()}function Fi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=zn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function fr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Cr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function bo(V,X,ie,oe){let ge=R[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=wS(X,ie,Pe,oe,Ie)}return ge._found=xe}function ro(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe){let Ye=Ie%2/2;a==1&&l.translate(Ye,Ye),Ps(Pe,Ie,Be,qe,Pe),l.beginPath();let Qe,yt,Ft,wt,Nt=ge+(oe==0||oe==3?-xe:xe);ie==0?(yt=ge,wt=Nt):(Qe=ge,Ft=Nt);for(let dt=0;dt<V.length;dt++)X[dt]!=null&&(ie==0?Qe=Ft=V[dt]:yt=wt=V[dt],l.moveTo(Qe,yt),l.lineTo(Ft,wt));l.stroke(),a==1&&l.translate(-Ye,-Ye)}function xa(V){let X=!0;return R.forEach((ie,oe)=>{if(!ie.show)return;let ge=_[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,io(!1));return}else ie._show||(X=!1,ie._show=!0,io(!1));let xe=ie.side,Ie=xe%2,{min:Pe,max:Be}=ge,[qe,Ye]=bo(oe,Pe,Be,Ie==0?mt:je);if(Ye==0)return;let Qe=ge.distr==2,yt=ie._splits=ie.splits(r,oe,Pe,Be,qe,Ye,Qe),Ft=ge.distr==2?yt.map(rt=>Gt[rt]):yt,wt=ge.distr==2?Gt[yt[1]]-Gt[yt[0]]:qe,Nt=ie._values=ie.values(r,ie.filter(r,Ft,oe,Ye,wt),oe,Ye,wt);ie._rotate=xe==2?ie.rotate(r,Nt,oe,Ye):0;let dt=ie._size;ie._size=Ni(ie.size(r,Nt,oe,V)),dt!=null&&ie._size!=dt&&(X=!1)}),X}function hl(V){let X=!0;return Mo.forEach((ie,oe)=>{let ge=ie(r,oe,gi,V);ge!=wr[oe]&&(X=!1),wr[oe]=ge}),X}function Ro(){for(let V=0;V<R.length;V++){let X=R[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ie=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[Be,qe]=X._found;if(X.label!=null){let dn=X.labelGap*Pe,_r=cr((X._lpos+dn)*en);Io(X.labelFont[0],Ie,"center",ie==2?Ka:Lg),l.save(),oe==1?(ge=xe=0,l.translate(_r,cr(Nn+ln/2)),l.rotate((ie==3?-ec:ec)/2)):(ge=cr(Wn+Kt/2),xe=_r);let Fo=Jg(X.label)?X.label(r,V,Be,qe):X.label;l.fillText(Fo,ge,xe),l.restore()}if(qe==0)continue;let Ye=_[X.scale],Qe=oe==0?Kt:ln,yt=oe==0?Wn:Nn,Ft=X._splits,wt=Ye.distr==2?Ft.map(dn=>Gt[dn]):Ft,Nt=Ye.distr==2?Gt[Ft[1]]-Gt[Ft[0]]:Be,dt=X.ticks,rt=X.border,vn=dt.show?dt.size:0,In=cr(vn*en),sr=cr((X.alignTo==2?X._size-vn-X.gap:X.gap)*en),Vt=X._rotate*-ec/180,fe=p(X._pos*en),$e=(In+sr)*Pe,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],ut=X.align==1?sa:X.align==2?Hu:Vt>0?sa:Vt<0?Hu:oe==0?"center":ie==3?Hu:sa,$t=Vt||oe==1?"middle":ie==2?Ka:Lg;Io(Ue,Ie,ut,$t);let Xt=X.font[1]*X.lineGap,It=Ft.map(dn=>p(w(dn,Ye,Qe,yt))),Jr=X._values;for(let dn=0;dn<Jr.length;dn++){let _r=Jr[dn];if(_r!=null){oe==0?ge=It[dn]:xe=It[dn],_r=""+_r;let Fo=_r.indexOf(`
|
|
1492
|
-
`)==-1?[_r]:_r.split(/\n/gm);for(let Vn=0;Vn<Fo.length;Vn++){let Hs=Fo[Vn];Vt?(l.save(),l.translate(ge,xe+Vn*Xt),l.rotate(Vt),l.fillText(Hs,0,0),l.restore()):l.fillText(Hs,ge,xe+Vn*Xt)}}}dt.show&&ro(It,dt.filter(r,wt,V,qe,Nt),oe,ie,fe,In,fn(dt.width*en,3),dt.stroke(r,V),dt.dash,dt.cap);let Hi=X.grid;Hi.show&&ro(It,Hi.filter(r,wt,V,qe,Nt),oe,oe==0?2:1,oe==0?Nn:Wn,oe==0?ln:Kt,fn(Hi.width*en,3),Hi.stroke(r,V),Hi.dash,Hi.cap),rt.show&&ro([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Wn,oe==1?ln:Kt,fn(rt.width*en,3),rt.stroke(r,V),rt.dash,rt.cap)}tt("drawAxes")}function io(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(f==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Lo=!1,ls=!1,Oo=[];function Ca(){ls=!1;for(let V=0;V<Oo.length;V++)tt(...Oo[V]);Oo.length=0}function wo(){Lo||(pA(ka),Lo=!0)}function We(V,X=!1){Lo=!0,ls=X,V(r),ka(),X&&Oo.length>0&&queueMicrotask(Ca)}r.batch=We;function ka(){if(Dr&&(yo(),Dr=!1),Gr&&(Yr(),Gr=!1),Kr){if(wn(c,sa,Lt),wn(c,Ka,Qt),wn(c,Va,mt),wn(c,qa,je),wn(i,sa,Lt),wn(i,Ka,Qt),wn(i,Va,mt),wn(i,qa,je),wn(u,Va,Zn),wn(u,qa,Tr),s.width=cr(Zn*en),s.height=cr(Tr*en),R.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;wn(V,Ie?"left":"top",oe-xe),wn(V,Ie?"width":"height",ie),wn(V,Ie?"top":"left",Ie?Qt:Lt),wn(V,Ie?"height":"width",Ie?je:mt),Yu(V,_s)}else xi(V,_s)}),zn=Cr=mn=Pr=ts=Ds=Fs=ns=no=null,pr=1,W(!0),Lt!=On||Qt!=yr||mt!=ur||je!=gn){io(!1);let V=mt/ur,X=je/gn;if(se&&!Ai&&ne.left>=0){ne.left*=V,ne.top*=X,Si&&ho(Si,cr(ne.left),0,mt,je),Qn&&ho(Qn,0,cr(ne.top),mt,je);for(let ie=0;ie<$n.length;ie++){let oe=$n[ie];oe!=null&&(br[ie]*=V,fi[ie]*=X,ho(oe,Ni(br[ie]),Ni(fi[ie]),mt,je))}}if(vt.show&&!ci&&vt.left>=0&&vt.width>0){vt.left*=V,vt.width*=V,vt.top*=X,vt.height*=X;for(let ie in Y)wn(Zr,ie,vt[ie])}On=Lt,yr=Qt,ur=mt,gn=je}tt("setSize"),Kr=!1}Zn>0&&Tr>0&&(l.clearRect(0,0,s.width,s.height),tt("drawClear"),D.forEach(V=>V()),tt("draw")),vt.show&&ci&&(hn(vt),ci=!1),se&&Ai&&(S(null,!0,!1),Ai=!1),he.show&&he.live&&Bn&&(y(),Bn=!1),h||(h=!0,r.status=1,tt("ready")),Ht=!1,Lo=!1}r.redraw=(V,X)=>{Gr=X||!1,V!==!1?ir(C,z.min,z.max):wo()};function Ne(V,X){let ie=_[V];if(ie.from==null){if(ce==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(ce>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ce>0&&(X.min=Zi(X.min,t[0]),X.max=Zi(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Dr=!0,wo()}}r.setScale=Ne;let Dn,No,Si,Qn,Aa,Do,Pi,xo,nn,Jt,rn,jt,Wi=!1;const Hn=ne.drag;let He=Hn.x,yn=Hn.y;se&&(ne.x&&(Dn=Oi(Fk,i)),ne.y&&(No=Oi(Pk,i)),z.ori==0?(Si=Dn,Qn=No):(Si=No,Qn=Dn),rn=ne.left,jt=ne.top);const vt=r.select=nr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Zr=vt.show?Oi(Dk,vt.over?i:c):null;function hn(V,X){if(vt.show){for(let ie in V)vt[ie]=V[ie],ie in Y&&wn(Zr,ie,V[ie]);X!==!1&&tt("setSelect")}}r.setSelect=hn;function An(V){if(x[V].show)le&&Yu(Me[V],_s);else if(le&&xi(Me[V],_s),se){let X=kn?$n[0]:$n[V];X!=null&&ho(X,-10,-10,mt,je)}}function ir(V,X,ie){Ne(V,{min:X,max:ie})}function Qr(V,X,ie,oe){X.focus!=null&&kr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,An(xe),f==2?(ir(ge.facets[0].scale,null,null),ir(ge.facets[1].scale,null,null)):ir(ge.scale,null,null),wo())}),ie!==!1&&tt("setSeries",V,X),oe&&_t("setSeries",r,V,X)}r.setSeries=Qr;function Bi(V,X){nr(k[V],X)}function jn(V,X){V.fill=zt(V.fill||null),V.dir=Zt(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function mi(V){V==null?k.length=0:k.splice(V,1)}r.addBand=jn,r.setBand=Bi,r.delBand=mi;function cs(V,X){x[V].alpha=X,se&&$n[V]!=null&&($n[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Un,_i,$i;const zi={focus:!0};function kr(V){if(V!=$i){let X=V==null,ie=hr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&cs(ge,xe?1:hr.alpha)}}),$i=V,ie&&wo()}}le&&pi&&un(Fg,me,V=>{ne._lock||(di(V),$i!=null&&Qr(null,zi,!0,ct.setSeries))});function Ar(V,X,ie){let oe=_[X];ie&&(V=V/en-(oe.ori==1?Qt:Lt));let ge=mt;oe.ori==1&&(ge=je,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Pe=V/ge,Be=xe+(Ie-xe)*Pe,qe=oe.distr;return qe==3?ca(10,Be):qe==4?tA(Be,oe.asinh):qe==100?oe.bwd(Be):Be}function Mr(V,X){let ie=Ar(V,C,X);return Zi(ie,t[0],ze,Fe)}r.valToIdx=V=>Zi(V,t[0]),r.posToIdx=Mr,r.posToVal=Ar,r.valToPos=(V,X,ie)=>_[X].ori==0?g(V,_[X],ie?Kt:mt,ie?Wn:0):m(V,_[X],ie?ln:je,ie?Nn:0),r.setCursor=(V,X,ie)=>{rn=V.left,jt=V.top,S(null,X,ie)};function zs(V,X){wn(Zr,sa,vt.left=V),wn(Zr,Va,vt.width=X)}function Ir(V,X){wn(Zr,Ka,vt.top=V),wn(Zr,qa,vt.height=X)}let Wr=z.ori==0?zs:Ir,Ti=z.ori==1?zs:Ir;function Mi(){if(le&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&at)continue;let X=he.values[V],ie=0;for(let oe in X)Xe[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):oA(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!at)&&T(ie,J[ie]);Mi()}Bn=!1,X!==!1&&tt("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&P==2?Gt:t[V],ge;at?ge=ie.values(r,V,X)??et:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?et:{_:ge}),he.values[V]=ge}function S(V,X,ie){nn=rn,Jt=jt,[rn,jt]=ne.move(r,rn,jt),ne.left=rn,ne.top=jt,se&&(Si&&ho(Si,cr(rn),0,mt,je),Qn&&ho(Qn,0,cr(jt),mt,je));let oe,ge=ze>Fe;Un=pn,_i=null;let xe=z.ori==0?mt:je,Ie=z.ori==1?mt:je;if(rn<0||ce==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let Be=$n[Pe];Be!=null&&ho(Be,-10,-10,mt,je)}pi&&Qr(null,zi,!0,V==null&&ct.setSeries),he.live&&(J.fill(oe),Bn=!0)}else{let Pe,Be,qe;f==1&&(Pe=z.ori==0?rn:jt,Be=Ar(Pe,C),oe=ne.idx=Zi(Be,t[0],ze,Fe),qe=O(t[0][oe],z,xe,0));let Ye=-10,Qe=-10,yt=0,Ft=0,wt=!0,Nt="",dt="";for(let rt=f==2?1:0;rt<x.length;rt++){let vn=x[rt],In=J[rt],sr=In==null?null:f==1?t[rt][In]:t[rt][1][In],Vt=ne.dataIdx(r,rt,oe,Be),fe=Vt==null?null:f==1?t[rt][Vt]:t[rt][1][Vt];if(Bn=Bn||fe!=sr||Vt!=In,J[rt]=Vt,rt>0&&vn.show){let $e=Vt==null?-10:Vt==oe?qe:O(f==1?t[0][Vt]:t[rt][0][Vt],z,xe,0),Ce=fe==null?-10:$(fe,f==1?_[vn.scale]:_[vn.facets[1].scale],Ie,0);if(pi&&fe!=null){let Ue=z.ori==1?rn:jt,ut=lr(hr.dist(r,rt,Vt,Ce,Ue));if(ut<Un){let $t=hr.bias;if($t!=0){let Xt=Ar(Ue,vn.scale),It=fe>=0?1:-1,Jr=Xt>=0?1:-1;Jr==It&&(Jr==1?$t==1?fe>=Xt:fe<=Xt:$t==1?fe<=Xt:fe>=Xt)&&(Un=ut,_i=rt)}else Un=ut,_i=rt}}if(Bn||kn){let Ue,ut;z.ori==0?(Ue=$e,ut=Ce):(Ue=Ce,ut=$e);let $t,Xt,It,Jr,Hi,dn,_r=!0,Fo=Cn.bbox;if(Fo!=null){_r=!1;let Vn=Fo(r,rt);It=Vn.left,Jr=Vn.top,$t=Vn.width,Xt=Vn.height}else It=Ue,Jr=ut,$t=Xt=Cn.size(r,rt);if(dn=Cn.fill(r,rt),Hi=Cn.stroke(r,rt),kn)rt==_i&&Un<=hr.prox&&(Ye=It,Qe=Jr,yt=$t,Ft=Xt,wt=_r,Nt=dn,dt=Hi);else{let Vn=$n[rt];Vn!=null&&(br[rt]=It,fi[rt]=Jr,Ug(Vn,$t,Xt,_r),Hg(Vn,dn,Hi),ho(Vn,Ni(It),Ni(Jr),mt,je))}}}}if(kn){let rt=hr.prox,vn=$i==null?Un<=rt:Un>rt||_i!=$i;if(Bn||vn){let In=$n[0];In!=null&&(br[0]=Ye,fi[0]=Qe,Ug(In,yt,Ft,wt),Hg(In,Nt,dt),ho(In,Ni(Ye),Ni(Qe),mt,je))}}}if(vt.show&&Wi)if(V!=null){let[Pe,Be]=ct.scales,[qe,Ye]=ct.match,[Qe,yt]=V.cursor.sync.scales,Ft=V.cursor.drag;if(He=Ft._x,yn=Ft._y,He||yn){let{left:wt,top:Nt,width:dt,height:rt}=V.select,vn=V.scales[Qe].ori,In=V.posToVal,sr,Vt,fe,$e,Ce,Ue=Pe!=null&&qe(Pe,Qe),ut=Be!=null&&Ye(Be,yt);Ue&&He?(vn==0?(sr=wt,Vt=dt):(sr=Nt,Vt=rt),fe=_[Pe],$e=O(In(sr,Qe),fe,xe,0),Ce=O(In(sr+Vt,Qe),fe,xe,0),Wr(Qi($e,Ce),lr(Ce-$e))):Wr(0,xe),ut&&yn?(vn==1?(sr=wt,Vt=dt):(sr=Nt,Vt=rt),fe=_[Be],$e=$(In(sr,yt),fe,Ie,0),Ce=$(In(sr+Vt,yt),fe,Ie,0),Ti(Qi($e,Ce),lr(Ce-$e))):Ti(0,Ie)}else Z()}else{let Pe=lr(nn-Aa),Be=lr(Jt-Do);if(z.ori==1){let yt=Pe;Pe=Be,Be=yt}He=Hn.x&&Pe>=Hn.dist,yn=Hn.y&&Be>=Hn.dist;let qe=Hn.uni;qe!=null?He&&yn&&(He=Pe>=qe,yn=Be>=qe,!He&&!yn&&(Be>Pe?yn=!0:He=!0)):Hn.x&&Hn.y&&(He||yn)&&(He=yn=!0);let Ye,Qe;He&&(z.ori==0?(Ye=Pi,Qe=rn):(Ye=xo,Qe=jt),Wr(Qi(Ye,Qe),lr(Qe-Ye)),yn||Ti(0,Ie)),yn&&(z.ori==1?(Ye=Pi,Qe=rn):(Ye=xo,Qe=jt),Ti(Qi(Ye,Qe),lr(Qe-Ye)),He||Wr(0,xe)),!He&&!yn&&(Wr(0,0),Ti(0,0))}if(Hn._x=He,Hn._y=yn,V==null){if(ie){if(Tn!=null){let[Pe,Be]=ct.scales;ct.values[0]=Pe!=null?Ar(z.ori==0?rn:jt,Pe):null,ct.values[1]=Be!=null?Ar(z.ori==1?rn:jt,Be):null}_t(Uu,r,rn,jt,mt,je,oe)}if(pi){let Pe=ie&&ct.setSeries,Be=hr.prox;$i==null?Un<=Be&&Qr(_i,zi,!0,Pe):Un>Be?Qr(null,zi,!0,Pe):_i!=$i&&Qr(_i,zi,!0,Pe)}}Bn&&(he.idx=oe,y()),X!==!1&&tt("setCursor")}let F=null;Object.defineProperty(r,"rect",{get(){return F==null&&W(!1),F}});function W(V=!1){V?F=null:(F=i.getBoundingClientRect(),tt("syncRect",F))}function H(V,X,ie,oe,ge,xe,Ie){ne._lock||Wi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ie,Pe,Be){if(F==null&&W(!1),di(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){rn=-10,jt=-10;return}let[qe,Ye]=ct.scales,Qe=X.cursor.sync,[yt,Ft]=Qe.values,[wt,Nt]=Qe.scales,[dt,rt]=ct.match,vn=X.axes[0].side%2==1,In=z.ori==0?mt:je,sr=z.ori==1?mt:je,Vt=vn?xe:ge,fe=vn?ge:xe,$e=vn?oe:ie,Ce=vn?ie:oe;if(wt!=null?ie=dt(qe,wt)?w(yt,_[qe],In,0):-10:ie=In*($e/Vt),Nt!=null?oe=rt(Ye,Nt)?w(Ft,_[Ye],sr,0):-10:oe=sr*(Ce/fe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}Be&&(X==null||X.cursor.event.type==Uu)&&((ie<=1||ie>=mt-1)&&(ie=Ms(ie,mt)),(oe<=1||oe>=je-1)&&(oe=Ms(oe,je))),Pe?(Aa=ie,Do=oe,[Pi,xo]=ne.move(r,ie,oe)):(rn=ie,jt=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){hn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){Wi=!0,He=yn=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(un(Vu,Ku,we,!1),_t(Ng,r,Pi,xo,mt,je,null));let{left:Pe,top:Be,width:qe,height:Ye}=vt;re=Pe,ae=Be,be=qe,ke=Ye}function we(V,X,ie,oe,ge,xe,Ie){Wi=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Pe,top:Be,width:qe,height:Ye}=vt,Qe=qe>0||Ye>0,yt=re!=Pe||ae!=Be||be!=qe||ke!=Ye;if(Qe&&yt&&hn(vt),Hn.setScale&&Qe&&yt){let Ft=Pe,wt=qe,Nt=Be,dt=Ye;if(z.ori==1&&(Ft=Be,wt=Ye,Nt=Pe,dt=qe),He&&ir(C,Ar(Ft,C),Ar(Ft+wt,C)),yn)for(let rt in _){let vn=_[rt];rt!=C&&vn.from==null&&vn.min!=pn&&ir(rt,Ar(Nt+dt,rt),Ar(Nt,rt))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(Ln(Vu,Ku),_t(Vu,r,rn,jt,mt,je,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;di(V);let Pe=Wi;if(Wi){let Be=!0,qe=!0,Ye=10,Qe,yt;z.ori==0?(Qe=He,yt=yn):(Qe=yn,yt=He),Qe&&yt&&(Be=rn<=Ye||rn>=mt-Ye,qe=jt<=Ye||jt>=je-Ye),Qe&&Be&&(rn=rn<Pi?0:mt),yt&&qe&&(jt=jt<xo?0:je),S(null,!0,!0),Wi=!1}rn=-10,jt=-10,J.fill(null),S(null,!0,!0),Pe&&(Wi=Pe)}function Le(V,X,ie,oe,ge,xe,Ie){ne._lock||(di(V),dr(),Z(),V!=null&&_t(Pg,r,rn,jt,mt,je,null))}function Ve(){R.forEach(xS),to(r.width,r.height,!0)}$s(Yl,la,Ve);const st={};st.mousedown=ve,st.mousemove=H,st.mouseup=we,st.dblclick=Le,st.setSeries=(V,X,ie,oe)=>{let ge=ct.match[2];ie=ge(r,X,ie),ie!=-1&&Qr(ie,oe,!0,!1)},se&&(un(Ng,i,ve),un(Uu,i,H),un(Dg,i,V=>{di(V),W(!1)}),un(Fg,i,Oe),un(Pg,i,Le),vh.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function tt(V,X,ie){ls?Oo.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const bn=(V,X,ie)=>ie,ct=nr({key:null,setSeries:!1,filters:{pub:nm,sub:nm},scales:[C,x[1]?x[1].scale:null],match:[rm,rm,bn],values:[null,null]},ne.sync);ct.match.length==2&&ct.match.push(bn),ne.sync=ct;const Tn=ct.key,bt=zm(Tn);function _t(V,X,ie,oe,ge,xe,Ie){ct.filters.pub(V,X,ie,oe,ge,xe,Ie)&&bt.pub(V,X,ie,oe,ge,xe,Ie)}bt.sub(r);function or(V,X,ie,oe,ge,xe,Ie){ct.filters.sub(V,X,ie,oe,ge,xe,Ie)&&st[V](null,X,ie,oe,ge,xe,Ie)}r.pub=or;function Sr(){bt.unsub(r),vh.delete(r),vr.clear(),Zu(Yl,la,Ve),d.remove(),me==null||me.remove(),tt("destroy")}r.destroy=Sr;function Mn(){tt("init",n,t),xr(t||n.data,!1),A[C]?Ne(C,A[C]):dr(),ci=vt.show&&(vt.width>0||vt.height>0),Ai=Bn=!0,to(n.width,n.height)}return x.forEach(vo),R.forEach(Fr),e?e instanceof HTMLElement?(e.appendChild(d),Mn()):e(r,Mn):Mn(),r}Or.assign=nr,Or.fmtNum=eh,Or.rangeNum=Jl,Or.rangeLog=Ql,Or.rangeAsinh=Qu,Or.orient=Es,Or.pxRatio=en,Or.join=dA,Or.fmtDate=ih,Or.tzDate=kA,Or.sync=zm;{Or.addGap=oS,Or.clipGaps=sc;let n=Or.paths={points:Gm};n.linear=Xm,n.stepped=lS,n.bars=cS,n.spline=hS}var iv,ov;function CS(){return ov||(ov=1,iv=function(n,t,e,r,f){var g,m;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(g=r+(f-r>>>1),m=+e(n[g],t,g,n),m<0)r=g+1;else if(m>0)f=g-1;else return g;return~r}),iv}var kS=CS();const mD=Kn("e",Rl(kS));var bh,sv;function AS(){if(sv)return bh;sv=1;function n(t,e,r){var f=-1,g=t.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var m=Array(g);++f<g;)m[f]=t[f+e];return m}return bh=n,bh}var wh,av;function SS(){if(av)return wh;av=1;var n=AS();function t(e,r,f){var g=e.length;return f=f===void 0?g:f,!r&&f>=g?e:n(e,r,f)}return wh=t,wh}var xh,lv;function cv(){if(lv)return xh;lv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="\\u200d",w=RegExp("["+m+n+f+g+"]");function h(d){return w.test(d)}return xh=h,xh}var Ch,uv;function _S(){if(uv)return Ch;uv=1;function n(t){return t.split("")}return Ch=n,Ch}var kh,hv;function $S(){if(hv)return kh;hv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="["+n+"]",w="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",a="["+g+"]?",p="(?:"+c+"(?:"+[s,l,u].join("|")+")"+a+i+")*",b=a+i+p,x="(?:"+[s+w+"?",w,l,u,m].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+b,"g");function _(k){return k.match(R)||[]}return kh=_,kh}var Ah,dv;function TS(){if(dv)return Ah;dv=1;var n=_S(),t=cv(),e=$S();function r(f){return t(f)?e(f):n(f)}return Ah=r,Ah}var Sh,pv;function MS(){if(pv)return Sh;pv=1;var n=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo;return Sh=n,Sh}var _h,fv;function IS(){if(fv)return _h;fv=1;var n=MS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return _h=e,_h}var $h,gv;function Th(){if(gv)return $h;gv=1;var n=IS(),t=n.Symbol;return $h=t,$h}var Mh,mv;function ES(){if(mv)return Mh;mv=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,g=Array(f);++r<f;)g[r]=e(t[r],r,t);return g}return Mh=n,Mh}var Ih,vv;function RS(){if(vv)return Ih;vv=1;var n=Array.isArray;return Ih=n,Ih}var Eh,yv;function LS(){if(yv)return Eh;yv=1;var n=Th(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function g(m){var w=e.call(m,f),h=m[f];try{m[f]=void 0;var d=!0}catch{}var s=r.call(m);return d&&(w?m[f]=h:delete m[f]),s}return Eh=g,Eh}var Rh,bv;function OS(){if(bv)return Rh;bv=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Rh=e,Rh}var Lh,wv;function NS(){if(wv)return Lh;wv=1;var n=Th(),t=LS(),e=OS(),r="[object Null]",f="[object Undefined]",g=n?n.toStringTag:void 0;function m(w){return w==null?w===void 0?f:r:g&&g in Object(w)?t(w):e(w)}return Lh=m,Lh}var Oh,xv;function DS(){if(xv)return Oh;xv=1;function n(t){return t!=null&&typeof t=="object"}return Oh=n,Oh}var Nh,Cv;function FS(){if(Cv)return Nh;Cv=1;var n=NS(),t=DS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Nh=r,Nh}var Dh,kv;function PS(){if(kv)return Dh;kv=1;var n=Th(),t=ES(),e=RS(),r=FS(),f=n?n.prototype:void 0,g=f?f.toString:void 0;function m(w){if(typeof w=="string")return w;if(e(w))return t(w,m)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Dh=m,Dh}var Fh,Av;function uc(){if(Av)return Fh;Av=1;var n=PS();function t(e){return e==null?"":n(e)}return Fh=t,Fh}var Ph,Sv;function WS(){if(Sv)return Ph;Sv=1;var n=SS(),t=cv(),e=TS(),r=uc();function f(g){return function(m){m=r(m);var w=t(m)?e(m):void 0,h=w?w[0]:m.charAt(0),d=w?n(w,1).join(""):m.slice(1);return h[g]()+d}}return Ph=f,Ph}var Wh,_v;function $v(){if(_v)return Wh;_v=1;var n=WS(),t=n("toUpperCase");return Wh=t,Wh}var BS=$v();const zS=Rl(BS);var Bh,Tv;function HS(){if(Tv)return Bh;Tv=1;var n=uc(),t=$v();function e(r){return t(n(r).toLowerCase())}return Bh=e,Bh}var zh,Mv;function jS(){if(Mv)return zh;Mv=1;function n(t,e,r,f){var g=-1,m=t==null?0:t.length;for(f&&m&&(r=t[++g]);++g<m;)r=e(r,t[g],g,t);return r}return zh=n,zh}var Hh,Iv;function US(){if(Iv)return Hh;Iv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Hh=n,Hh}var jh,Ev;function VS(){if(Ev)return jh;Ev=1;var n=US(),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 jh=e,jh}var Uh,Rv;function qS(){if(Rv)return Uh;Rv=1;var n=VS(),t=uc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",m=r+f+g,w="["+m+"]",h=RegExp(w,"g");function d(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return Uh=d,Uh}var Vh,Lv;function KS(){if(Lv)return Vh;Lv=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Vh=t,Vh}var qh,Ov;function GS(){if(Ov)return qh;Ov=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 qh=t,qh}var Kh,Nv;function YS(){if(Nv)return Kh;Nv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\u2700-\\u27bf",m="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c=w+h+d+s,i="['’]",a="["+c+"]",p="["+f+"]",b="\\d+",x="["+g+"]",R="["+m+"]",_="[^"+n+c+b+g+m+l+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+p+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",z="\\u200d",P="(?:"+R+"|"+_+")",O="(?:"+I+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,E].join("|")+")"+B+N+")*",K="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+N+U,he="(?:"+[x,D,E].join("|")+")"+J,ne=RegExp([I+"?"+R+"+"+$+"(?="+[a,I,"$"].join("|")+")",O+"+"+A+"(?="+[a,I+P,"$"].join("|")+")",I+"?"+P+"+"+$,I+"+"+A,Q,K,b,he].join("|"),"g");function le(se){return se.match(ne)||[]}return Kh=le,Kh}var Gh,Dv;function XS(){if(Dv)return Gh;Dv=1;var n=KS(),t=GS(),e=uc(),r=YS();function f(g,m,w){return g=e(g),m=w?void 0:m,m===void 0?t(g)?r(g):n(g):g.match(m)||[]}return Gh=f,Gh}var Yh,Fv;function ZS(){if(Fv)return Yh;Fv=1;var n=jS(),t=qS(),e=XS(),r="['’]",f=RegExp(r,"g");function g(m){return function(w){return n(e(t(w).replace(f,"")),m,"")}}return Yh=g,Yh}var Xh,Pv;function QS(){if(Pv)return Xh;Pv=1;var n=HS(),t=ZS(),e=t(function(r,f,g){return f=f.toLowerCase(),r+(g?n(f):f)});return Xh=e,Xh}var JS=QS();const e_=Rl(JS),t_=Object.assign({"./ArrayWidget.vue":()=>ot(()=>it.import("./ArrayWidget-DQRQ7dPa-66e9bd0355d185ad27cf.js"),void 0),"./ArrayplotWidget.vue":()=>ot(()=>it.import("./ArrayplotWidget-BeSfz3MR-326ebc058a153eb752db.js"),void 0),"./BlockWidget.vue":()=>ot(()=>it.import("./BlockWidget-DSFKrUxl-f48136daf309b7de0b39.js"),void 0),"./ButtonWidget.vue":()=>ot(()=>it.import("./ButtonWidget-CFbjdxSr-4b038286b59a316971ef.js"),void 0),"./CanvasWidget.vue":()=>ot(()=>it.import("./CanvasWidget-BloYxuKE-35177622be4f066f5c6f.js"),void 0),"./CanvasdotWidget.vue":()=>ot(()=>it.import("./CanvasdotWidget-CZxUOPRd-344783544045a77db954.js"),void 0),"./CanvasimageWidget.vue":()=>ot(()=>it.import("./CanvasimageWidget-ULQq3nqZ-88bb1dd25b0123e1821c.js"),void 0),"./CanvasimagevalueWidget.vue":()=>ot(()=>it.import("./CanvasimagevalueWidget-jFCVXYhi-e5ad0a3cca449f1a741c.js"),void 0),"./CanvaslabelWidget.vue":()=>ot(()=>it.import("./CanvaslabelWidget-DQhBI1vZ-88c59d74bba2cffbb5d0.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>ot(()=>it.import("./CanvaslabelvalueWidget-C4REgztL-724c590c09ffcfdb6afb.js"),void 0),"./CanvaslineWidget.vue":()=>ot(()=>it.import("./CanvaslineWidget-S4PCEvZM-4606d454ee084a349dc5.js"),void 0),"./CanvaslinevalueWidget.vue":()=>ot(()=>it.import("./CanvaslinevalueWidget-597khOSA-3b2ec1802267570159f5.js"),void 0),"./CheckbuttonWidget.vue":()=>ot(()=>it.import("./CheckbuttonWidget-BcblKat3-7623acc73d22c01fbdc8.js"),void 0),"./ComboboxWidget.vue":()=>ot(()=>it.import("./ComboboxWidget-BMcHS4g5-671f368829770c4551e2.js"),void 0),"./DateWidget.vue":()=>ot(()=>it.import("./DateWidget-BpnMzSBn-44c0105e20f11f5a6190.js"),void 0),"./DynamicWidget.vue":()=>ot(()=>it.import("./DynamicWidget-DHL7pbgW-985e005bbe10f0c076c5.js"),void 0),"./FormatvalueWidget.vue":()=>ot(()=>it.import("./FormatvalueWidget-Cm-HmAmw-5f94f4ef292e7887efed.js"),void 0),"./HorizontalWidget.vue":()=>ot(()=>it.import("./HorizontalWidget-NcXIXxh7-d945f548fe62b6b122c3.js"),void 0),"./HorizontalboxWidget.vue":()=>ot(()=>it.import("./HorizontalboxWidget-CW9XX4uH-a40ea95ef024ec347f0b.js"),void 0),"./HorizontallineWidget.vue":()=>ot(()=>it.import("./HorizontallineWidget-Cu2dDt7k-61d3e93566b54bef6362.js"),void 0),"./IframeWidget.vue":()=>ot(()=>it.import("./IframeWidget-BBU3MkSq-ef21a8ddc0cfa9a388ac.js"),void 0),"./ImageviewerWidget.vue":()=>ot(()=>it.import("./ImageviewerWidget-UByjeO63-4e1b09ce97575c9f3903.js"),void 0),"./LabelWidget.vue":()=>ot(()=>it.import("./LabelWidget-BsOpolUL-8303bd80933831d68cc5.js"),void 0),"./LabelledWidget.vue":()=>ot(()=>it.import("./LabelledWidget-DVOGpgZ--17452feaa52fad1c6105.js"),void 0),"./LabelprogressbarWidget.vue":()=>ot(()=>it.import("./LabelprogressbarWidget-BeE9fDs6-ba636a9e94ab39cd1525.js"),void 0),"./LabelsparklineWidget.vue":()=>ot(()=>it.import("./LabelsparklineWidget-Bj7trKML-aa28b3a4e06de0b9f9a8.js"),void 0),"./LabelvalueWidget.vue":()=>ot(()=>it.import("./LabelvalueWidget-Dwqsh5o2-7f2a2c62e621de50098d.js"),void 0),"./LabelvaluedescWidget.vue":()=>ot(()=>it.import("./LabelvaluedescWidget-Cfu2vuja-5354c744d761e7042110.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>ot(()=>it.import("./LabelvaluelimitsbarWidget-DYV68AJ_-bf5fdb1dda71e69a5ee3.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>ot(()=>it.import("./LabelvaluelimitscolumnWidget-CtaoTixt-d4df31d3839a70f23973.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>ot(()=>it.import("./LabelvaluerangebarWidget-3EaUB6E6-29dbea1fac75b05fb7ae.js"),void 0),"./LedWidget.vue":()=>ot(()=>it.import("./LedWidget-Gi6GXtrW-365d866963edc1c837a1.js"),void 0),"./LimitsbarWidget.vue":()=>ot(()=>it.import("./LimitsbarWidget-BTZQY9XQ-cc4654c5e76d52ebf067.js"),void 0),"./LimitscolorWidget.vue":()=>ot(()=>it.import("./LimitscolorWidget-CFnmvlrA-604e99dc57574347521d.js"),void 0),"./LimitscolumnWidget.vue":()=>ot(()=>it.import("./LimitscolumnWidget-DSsz36tT-50eeb0df497d05d55e66.js"),void 0),"./LinegraphWidget.vue":()=>ot(()=>it.import("./LinegraphWidget-CeBijgDo-31cb9988a29096ba594b.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>ot(()=>it.import("./MatrixbycolumnsWidget-DX9uhjAv-aa0ac356c5a0d77336ac.js"),void 0),"./ProgressbarWidget.vue":()=>ot(()=>it.import("./ProgressbarWidget-DJepvOip-ada5683dcfe1b31a7936.js"),void 0),"./RadiobuttonWidget.vue":()=>ot(()=>it.import("./RadiobuttonWidget-4e8ROIfg-54995490942bcc19198c.js"),void 0),"./RadiogroupWidget.vue":()=>ot(()=>it.import("./RadiogroupWidget-CUucj6aT-669542e238af544c9cff.js"),void 0),"./RangebarWidget.vue":()=>ot(()=>it.import("./RangebarWidget-Bu4rqlrx-894b27a87c69fcac5248.js"),void 0),"./RollupWidget.vue":()=>ot(()=>it.import("./RollupWidget-ByLvEEau-4aba0914ca6ebd291a45.js"),void 0),"./ScrollwindowWidget.vue":()=>ot(()=>it.import("./ScrollwindowWidget-CXJ9QGN1-7a6e141c1cfa17a8d8bf.js"),void 0),"./SignalWidget.vue":()=>ot(()=>it.import("./SignalWidget-qvL2YZJA-a6bb7491a49e5b855bac.js"),void 0),"./SpacerWidget.vue":()=>ot(()=>it.import("./SpacerWidget-CaWx41K7-a45a48576c42fdb64a41.js"),void 0),"./SparklineWidget.vue":()=>ot(()=>it.import("./SparklineWidget-BkNSRypJ-342fa95b7cbc4a8770c0.js"),void 0),"./TabbookWidget.vue":()=>ot(()=>it.import("./TabbookWidget-MsrRG1vn-2de0c7f07b5c2e3833ce.js"),void 0),"./TextboxWidget.vue":()=>ot(()=>it.import("./TextboxWidget-DbwpPVGB-47da64f0653301f73462.js"),void 0),"./TextfieldWidget.vue":()=>ot(()=>it.import("./TextfieldWidget-DzMlTMYW-54a1b72625a3cf7072a2.js"),void 0),"./TimeWidget.vue":()=>ot(()=>it.import("./TimeWidget-BHybAfg8-6a94f7aca93e636e28a0.js"),void 0),"./TitleWidget.vue":()=>ot(()=>it.import("./TitleWidget-DL_sE5YE-8a6b8a5daecc1a0a7f87.js"),void 0),"./ValueWidget.vue":()=>ot(()=>it.import("./ValueWidget-CGT0LV_n-5af51cfb7a81089f3053.js"),void 0),"./ValuelimitsbarWidget.vue":()=>ot(()=>it.import("./ValuelimitsbarWidget-CmpyPO-1-8b57577ee29d333d936f.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>ot(()=>it.import("./ValuelimitscolumnWidget-jzxrQd-f-2da8bbafceef402a278d.js"),void 0),"./ValuerangebarWidget.vue":()=>ot(()=>it.import("./ValuerangebarWidget-C8ckuAeh-ab1d333ac86699af775c.js"),void 0),"./VerticalWidget.vue":()=>ot(()=>it.import("./VerticalWidget-qN82km_m-788754f95ccc8db8e21c.js"),void 0),"./VerticalboxWidget.vue":()=>ot(()=>it.import("./VerticalboxWidget-CiJZDlHJ-3b7ec02981a457a3a07b.js"),void 0)}),n_=Object.entries(t_).reduce((n,[t,e])=>{t=t.split("/").pop();const r=zS(e_(t.replace(/\.\w+$/,"")));return{...n,[r]:_p(e)}},{}),vD=Kn("U",{components:n_});function Wv(n,t){return function(){return n.apply(t,arguments)}}const{toString:r_}=Object.prototype,{getPrototypeOf:Zh}=Object,{iterator:hc,toStringTag:Bv}=Symbol,dc=(n=>t=>{const e=r_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ji=n=>(n=n.toLowerCase(),t=>dc(t)===n),pc=n=>t=>typeof t===n,{isArray:ma}=Array,va=pc("undefined");function Ja(n){return n!==null&&!va(n)&&n.constructor!==null&&!va(n.constructor)&&ai(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const zv=Ji("ArrayBuffer");function i_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&zv(n.buffer),t}const o_=pc("string"),ai=pc("function"),Hv=pc("number"),el=n=>n!==null&&typeof n=="object",s_=n=>n===!0||n===!1,fc=n=>{if(dc(n)!=="object")return!1;const t=Zh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Bv in n)&&!(hc in n)},a_=n=>{if(!el(n)||Ja(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},l_=Ji("Date"),c_=Ji("File"),u_=Ji("Blob"),h_=Ji("FileList"),d_=n=>el(n)&&ai(n.pipe),p_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ai(n.append)&&((t=dc(n))==="formdata"||t==="object"&&ai(n.toString)&&n.toString()==="[object FormData]"))},f_=Ji("URLSearchParams"),[g_,m_,v_,y_]=["ReadableStream","Request","Response","Headers"].map(Ji),b_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tl(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ma(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{if(Ja(n))return;const g=e?Object.getOwnPropertyNames(n):Object.keys(n),m=g.length;let w;for(r=0;r<m;r++)w=g[r],t.call(null,n[w],w,n)}}function jv(n,t){if(Ja(n))return null;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 Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Uv=n=>!va(n)&&n!==Rs;function Qh(){const{caseless:n,skipUndefined:t}=Uv(this)&&this||{},e={},r=(f,g)=>{const m=n&&jv(e,g)||g;fc(e[m])&&fc(f)?e[m]=Qh(e[m],f):fc(f)?e[m]=Qh({},f):ma(f)?e[m]=f.slice():(!t||!va(f))&&(e[m]=f)};for(let f=0,g=arguments.length;f<g;f++)arguments[f]&&tl(arguments[f],r);return e}const w_=(n,t,e,{allOwnKeys:r}={})=>(tl(t,(f,g)=>{e&&ai(f)?n[g]=Wv(f,e):n[g]=f},{allOwnKeys:r}),n),x_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),C_=(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)},k_=(n,t,e,r)=>{let f,g,m;const w={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),g=f.length;g-- >0;)m=f[g],(!r||r(m,n,t))&&!w[m]&&(t[m]=n[m],w[m]=!0);n=e!==!1&&Zh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},A_=(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},S_=n=>{if(!n)return null;if(ma(n))return n;let t=n.length;if(!Hv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},__=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Zh(Uint8Array)),$_=(n,t)=>{const e=(n&&n[hc]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},T_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},M_=Ji("HTMLFormElement"),I_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Vv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),E_=Ji("RegExp"),qv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};tl(e,(f,g)=>{let m;(m=t(f,g,n))!==!1&&(r[g]=m||f)}),Object.defineProperties(n,r)},R_=n=>{qv(n,(t,e)=>{if(ai(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ai(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+"'")})}})},L_=(n,t)=>{const e={},r=f=>{f.forEach(g=>{e[g]=!0})};return ma(n)?r(n):r(String(n).split(t)),e},O_=()=>{},N_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function D_(n){return!!(n&&ai(n.append)&&n[Bv]==="FormData"&&n[hc])}const F_=n=>{const t=new Array(10),e=(r,f)=>{if(el(r)){if(t.indexOf(r)>=0)return;if(Ja(r))return r;if(!("toJSON"in r)){t[f]=r;const g=ma(r)?[]:{};return tl(r,(m,w)=>{const h=e(m,f+1);!va(h)&&(g[w]=h)}),t[f]=void 0,g}}return r};return e(n,0)},P_=Ji("AsyncFunction"),W_=n=>n&&(el(n)||ai(n))&&ai(n.then)&&ai(n.catch),Kv=((n,t)=>n?setImmediate:t?((e,r)=>(Rs.addEventListener("message",({source:f,data:g})=>{f===Rs&&g===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Rs.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ai(Rs.postMessage)),B_=typeof queueMicrotask<"u"?queueMicrotask.bind(Rs):typeof process<"u"&&process.nextTick||Kv,z_=n=>n!=null&&ai(n[hc]),Se={isArray:ma,isArrayBuffer:zv,isBuffer:Ja,isFormData:p_,isArrayBufferView:i_,isString:o_,isNumber:Hv,isBoolean:s_,isObject:el,isPlainObject:fc,isEmptyObject:a_,isReadableStream:g_,isRequest:m_,isResponse:v_,isHeaders:y_,isUndefined:va,isDate:l_,isFile:c_,isBlob:u_,isRegExp:E_,isFunction:ai,isStream:d_,isURLSearchParams:f_,isTypedArray:__,isFileList:h_,forEach:tl,merge:Qh,extend:w_,trim:b_,stripBOM:x_,inherits:C_,toFlatObject:k_,kindOf:dc,kindOfTest:Ji,endsWith:A_,toArray:S_,forEachEntry:$_,matchAll:T_,isHTMLForm:M_,hasOwnProperty:Vv,hasOwnProp:Vv,reduceDescriptors:qv,freezeMethods:R_,toObjectSet:L_,toCamelCase:I_,noop:O_,toFiniteNumber:N_,findKey:jv,global:Rs,isContextDefined:Uv,isSpecCompliantForm:D_,toJSONObject:F_,isAsyncFn:P_,isThenable:W_,setImmediate:Kv,asap:B_,isIterable:z_};function At(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)}Se.inherits(At,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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const Gv=At.prototype,Yv={};["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=>{Yv[n]={value:n}}),Object.defineProperties(At,Yv),Object.defineProperty(Gv,"isAxiosError",{value:!0}),At.from=(n,t,e,r,f,g)=>{const m=Object.create(Gv);Se.toFlatObject(n,m,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const w=n&&n.message?n.message:"Error",h=t==null&&n?n.code:t;return At.call(m,w,h,e,r,f),n&&m.cause==null&&Object.defineProperty(m,"cause",{value:n,configurable:!0}),m.name=n&&n.name||"Error",g&&Object.assign(m,g),m};const H_=null;function Jh(n){return Se.isPlainObject(n)||Se.isArray(n)}function Xv(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function Zv(n,t,e){return n?n.concat(t).map(function(r,f){return r=Xv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function j_(n){return Se.isArray(n)&&!n.some(Jh)}const U_=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function gc(n,t,e){if(!Se.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Se.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=e.metaTokens,f=e.visitor||d,g=e.dots,m=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(f))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Se.isDate(c))return c.toISOString();if(Se.isBoolean(c))return c.toString();if(!w&&Se.isBlob(c))throw new At("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,a){let p=c;if(c&&!a&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&j_(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(p=Se.toArray(c)))return i=Xv(i),p.forEach(function(b,x){!(Se.isUndefined(b)||b===null)&&t.append(m===!0?Zv([i],x,g):m===null?i:i+"[]",h(b))}),!1}return Jh(c)?!0:(t.append(Zv(a,i,g),h(c)),!1)}const s=[],l=Object.assign(U_,{defaultVisitor:d,convertValue:h,isVisitable:Jh});function u(c,i){if(!Se.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));s.push(c),Se.forEach(c,function(a,p){(!(Se.isUndefined(a)||a===null)&&f.call(t,a,Se.isString(p)?p.trim():p,i,l))===!0&&u(a,i?i.concat(p):[p])}),s.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),t}function Qv(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ed(n,t){this._pairs=[],n&&gc(n,this,t)}const Jv=ed.prototype;Jv.append=function(n,t){this._pairs.push([n,t])},Jv.toString=function(n){const t=n?function(e){return n.call(this,e,Qv)}:Qv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function V_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ey(n,t,e){if(!t)return n;const r=e&&e.encode||V_;Se.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let g;if(f?g=f(t,e):g=Se.isURLSearchParams(t)?t.toString():new ed(t,e).toString(r),g){const m=n.indexOf("#");m!==-1&&(n=n.slice(0,m)),n+=(n.indexOf("?")===-1?"?":"&")+g}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){Se.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ny={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},q_=typeof URLSearchParams<"u"?URLSearchParams:ed,K_=typeof FormData<"u"?FormData:null,G_=typeof Blob<"u"?Blob:null,Y_={isBrowser:!0,classes:{URLSearchParams:q_,FormData:K_,Blob:G_},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",nd=typeof navigator=="object"&&navigator||void 0,X_=td&&(!nd||["ReactNative","NativeScript","NS"].indexOf(nd.product)<0),Z_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q_=td&&window.location.href||"http://localhost",J_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:X_,hasStandardBrowserWebWorkerEnv:Z_,navigator:nd,origin:Q_},Symbol.toStringTag,{value:"Module"})),Nr={...J_,...Y_};function e$(n,t){return gc(n,new Nr.classes.URLSearchParams,{visitor:function(e,r,f,g){return Nr.isNode&&Se.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...t})}function t$(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function n$(n){const t={},e=Object.keys(n);let r;const f=e.length;let g;for(r=0;r<f;r++)g=e[r],t[g]=n[g];return t}function ry(n){function t(e,r,f,g){let m=e[g++];if(m==="__proto__")return!0;const w=Number.isFinite(+m),h=g>=e.length;return m=!m&&Se.isArray(f)?f.length:m,h?(Se.hasOwnProp(f,m)?f[m]=[f[m],r]:f[m]=r,!w):((!f[m]||!Se.isObject(f[m]))&&(f[m]=[]),t(e,r,f[m],g)&&Se.isArray(f[m])&&(f[m]=n$(f[m])),!w)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const e={};return Se.forEachEntry(n,(r,f)=>{t(t$(r),f,e,0)}),e}return null}function r$(n,t,e){if(Se.isString(n))try{return(t||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const nl={transitional:ny,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Se.isObject(n);if(f&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(ry(n)):n;if(Se.isArrayBuffer(n)||Se.isBuffer(n)||Se.isStream(n)||Se.isFile(n)||Se.isBlob(n)||Se.isReadableStream(n))return n;if(Se.isArrayBufferView(n))return n.buffer;if(Se.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return e$(n,this.formSerializer).toString();if((g=Se.isFileList(n))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return gc(g?{"files[]":n}:n,m&&new m,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),r$(n)):n}],transformResponse:[function(n){const t=this.transitional||nl.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?At.from(g,At.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],n=>{nl.headers[n]={}});const i$=Se.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"]),o$=n=>{const t={};let e,r,f;return n&&n.split(`
|
|
1490
|
+
}`;var Et=nw(function(){return $t(te,nt+"return "+De).apply(e,ue)});if(Et.source=De,fp(Et))throw Et;return Et}function tN(o){return sn(o).toLowerCase()}function nN(o){return sn(o).toUpperCase()}function rN(o,v,M){if(o=sn(o),o&&(M||v===e))return bn(o);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=wt(v),te=_t(j,G),ue=or(j,G)+1;return fs(j,te,ue).join("")}function iN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.slice(0,Nt(o)+1);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=or(j,wt(v))+1;return fs(j,0,G).join("")}function oN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.replace(An,"");if(!o||!(v=Ii(v)))return o;var j=wt(o),G=_t(j,wt(v));return fs(j,G).join("")}function sN(o,v){var M=I,j=z;if(Fn(v)){var G="separator"in v?v.separator:G;M="length"in v?Mt(v.length):M,j="omission"in v?Ii(v.omission):j}o=sn(o);var te=o.length;if(oe(o)){var ue=wt(o);te=ue.length}if(M>=te)return o;var pe=M-Pt(j);if(pe<1)return j;var ye=ue?fs(ue,0,pe).join(""):o.slice(0,pe);if(G===e)return ye+j;if(ue&&(pe+=ye.length-pe),gp(G)){if(o.slice(pe).search(G)){var Ee,Re=ye;for(G.global||(G=Jr(G.source,sn(Fr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ye=ye.slice(0,De===e?pe:De)}}else if(o.indexOf(Ii(G),pe)!=pe){var Ge=ye.lastIndexOf(G);Ge>-1&&(ye=ye.slice(0,Ge))}return ye+j}function aN(o){return o=sn(o),o&&ui.test(o)?o.replace(Bn,dt):o}var lN=Ma(function(o,v,M){return o+(M?" ":"")+v.toUpperCase()}),yp=r0("toUpperCase");function tw(o,v,M){return o=sn(o),v=M?e:v,v===e?ge(o)?En(o):Y(o):o.match(v)||[]}var nw=Dt(function(o,v){try{return kr(o,e,v)}catch(M){return fp(M)?M:new ut(M)}}),cN=Ho(function(o,v){return Mr(v,function(M){M=So(M),Bo(o,M,dp(o[M],o))}),o});function uN(o){var v=o==null?0:o.length,M=pt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new dn(m);return[M(j[0]),j[1]]}):[],Dt(function(j){for(var G=-1;++G<v;){var te=o[G];if(kr(te[0],this,j))return kr(te[1],this,j)}})}function hN(o){return DE(Ui(o,l))}function bp(o){return function(){return o}}function dN(o,v){return o==null||o!==o?v:o}var pN=o0(),fN=o0(!0);function wi(o){return o}function wp(o){return Nb(typeof o=="function"?o:Ui(o,l))}function gN(o){return Fb(Ui(o,l))}function mN(o,v){return Pb(o,Ui(v,l))}var vN=Dt(function(o,v){return function(M){return bl(M,o,v)}}),yN=Dt(function(o,v){return function(M){return bl(o,M,v)}});function xp(o,v,M){var j=$r(v),G=Vc(v,j);M==null&&!(Fn(v)&&(G.length||!j.length))&&(M=v,v=o,o=this,G=Vc(v,$r(v)));var te=!(Fn(M)&&"chain"in M)||!!M.chain,ue=Uo(o);return Mr(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ee=this.__chain__;if(te||Ee){var Re=o(this.__wrapped__),De=Re.__actions__=vi(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ee,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function bN(){return hn._===this&&(hn._=VI),this}function Cp(){}function wN(o){return o=Mt(o),Dt(function(v){return Wb(v,o)})}var xN=Jd(y),CN=Jd(Ir),kN=Jd(W);function rw(o){return sp(o)?we(So(o)):JE(o)}function AN(o){return function(v){return o==null?e:Ks(o,v)}}var SN=a0(),_N=a0(!0);function kp(){return[]}function Ap(){return!1}function $N(){return{}}function TN(){return""}function MN(){return!0}function IN(o,v){if(o=Mt(o),o<1||o>U)return[];var M=J,j=Br(o,J);v=pt(v),o-=J;for(var G=Ze(j,v);++M<o;)v(M);return G}function EN(o){return Ct(o)?y(o,So):Ei(o)?[o]:vi(k0(sn(o)))}function RN(o){var v=++jI;return sn(o)+v}var LN=Zc(function(o,v){return o+v},0),ON=ep("ceil"),NN=Zc(function(o,v){return o/v},1),DN=ep("floor");function FN(o){return o&&o.length?Uc(o,wi,Wd):e}function PN(o,v){return o&&o.length?Uc(o,pt(v,2),Wd):e}function WN(o){return ve(o,wi)}function BN(o,v){return ve(o,pt(v,2))}function zN(o){return o&&o.length?Uc(o,wi,jd):e}function HN(o,v){return o&&o.length?Uc(o,pt(v,2),jd):e}var jN=Zc(function(o,v){return o*v},1),UN=ep("round"),VN=Zc(function(o,v){return o-v},0);function qN(o){return o&&o.length?st(o,wi):0}function KN(o,v){return o&&o.length?st(o,pt(v,2)):0}return ee.after=gO,ee.ary=O0,ee.assign=n2,ee.assignIn=G0,ee.assignInWith=uu,ee.assignWith=r2,ee.at=i2,ee.before=N0,ee.bind=dp,ee.bindAll=cN,ee.bindKey=D0,ee.castArray=$O,ee.chain=E0,ee.chunk=DR,ee.compact=FR,ee.concat=PR,ee.cond=uN,ee.conforms=hN,ee.constant=bp,ee.countBy=qL,ee.create=o2,ee.curry=F0,ee.curryRight=P0,ee.debounce=W0,ee.defaults=s2,ee.defaultsDeep=a2,ee.defer=mO,ee.delay=vO,ee.difference=WR,ee.differenceBy=BR,ee.differenceWith=zR,ee.drop=HR,ee.dropRight=jR,ee.dropRightWhile=UR,ee.dropWhile=VR,ee.fill=qR,ee.filter=GL,ee.flatMap=ZL,ee.flatMapDeep=QL,ee.flatMapDepth=JL,ee.flatten=$0,ee.flattenDeep=KR,ee.flattenDepth=GR,ee.flip=yO,ee.flow=pN,ee.flowRight=fN,ee.fromPairs=YR,ee.functions=f2,ee.functionsIn=g2,ee.groupBy=eO,ee.initial=ZR,ee.intersection=QR,ee.intersectionBy=JR,ee.intersectionWith=eL,ee.invert=v2,ee.invertBy=y2,ee.invokeMap=nO,ee.iteratee=wp,ee.keyBy=rO,ee.keys=$r,ee.keysIn=bi,ee.map=iu,ee.mapKeys=w2,ee.mapValues=x2,ee.matches=gN,ee.matchesProperty=mN,ee.memoize=su,ee.merge=C2,ee.mergeWith=Y0,ee.method=vN,ee.methodOf=yN,ee.mixin=xp,ee.negate=au,ee.nthArg=wN,ee.omit=k2,ee.omitBy=A2,ee.once=bO,ee.orderBy=iO,ee.over=xN,ee.overArgs=wO,ee.overEvery=CN,ee.overSome=kN,ee.partial=pp,ee.partialRight=B0,ee.partition=oO,ee.pick=S2,ee.pickBy=X0,ee.property=rw,ee.propertyOf=AN,ee.pull=iL,ee.pullAll=M0,ee.pullAllBy=oL,ee.pullAllWith=sL,ee.pullAt=aL,ee.range=SN,ee.rangeRight=_N,ee.rearg=xO,ee.reject=lO,ee.remove=lL,ee.rest=CO,ee.reverse=up,ee.sampleSize=uO,ee.set=$2,ee.setWith=T2,ee.shuffle=hO,ee.slice=cL,ee.sortBy=fO,ee.sortedUniq=mL,ee.sortedUniqBy=vL,ee.split=Z2,ee.spread=kO,ee.tail=yL,ee.take=bL,ee.takeRight=wL,ee.takeRightWhile=xL,ee.takeWhile=CL,ee.tap=FL,ee.throttle=AO,ee.thru=ru,ee.toArray=V0,ee.toPairs=Z0,ee.toPairsIn=Q0,ee.toPath=EN,ee.toPlainObject=K0,ee.transform=M2,ee.unary=SO,ee.union=kL,ee.unionBy=AL,ee.unionWith=SL,ee.uniq=_L,ee.uniqBy=$L,ee.uniqWith=TL,ee.unset=I2,ee.unzip=hp,ee.unzipWith=I0,ee.update=E2,ee.updateWith=R2,ee.values=Ra,ee.valuesIn=L2,ee.without=ML,ee.words=tw,ee.wrap=_O,ee.xor=IL,ee.xorBy=EL,ee.xorWith=RL,ee.zip=LL,ee.zipObject=OL,ee.zipObjectDeep=NL,ee.zipWith=DL,ee.entries=Z0,ee.entriesIn=Q0,ee.extend=G0,ee.extendWith=uu,xp(ee,ee),ee.add=LN,ee.attempt=nw,ee.camelCase=F2,ee.capitalize=J0,ee.ceil=ON,ee.clamp=O2,ee.clone=TO,ee.cloneDeep=IO,ee.cloneDeepWith=EO,ee.cloneWith=MO,ee.conformsTo=RO,ee.deburr=ew,ee.defaultTo=dN,ee.divide=NN,ee.endsWith=P2,ee.eq=so,ee.escape=W2,ee.escapeRegExp=B2,ee.every=KL,ee.find=YL,ee.findIndex=S0,ee.findKey=l2,ee.findLast=XL,ee.findLastIndex=_0,ee.findLastKey=c2,ee.floor=DN,ee.forEach=R0,ee.forEachRight=L0,ee.forIn=u2,ee.forInRight=h2,ee.forOwn=d2,ee.forOwnRight=p2,ee.get=mp,ee.gt=LO,ee.gte=OO,ee.has=m2,ee.hasIn=vp,ee.head=T0,ee.identity=wi,ee.includes=tO,ee.indexOf=XR,ee.inRange=N2,ee.invoke=b2,ee.isArguments=Xs,ee.isArray=Ct,ee.isArrayBuffer=NO,ee.isArrayLike=yi,ee.isArrayLikeObject=Jn,ee.isBoolean=DO,ee.isBuffer=gs,ee.isDate=FO,ee.isElement=PO,ee.isEmpty=WO,ee.isEqual=BO,ee.isEqualWith=zO,ee.isError=fp,ee.isFinite=HO,ee.isFunction=Uo,ee.isInteger=z0,ee.isLength=lu,ee.isMap=H0,ee.isMatch=jO,ee.isMatchWith=UO,ee.isNaN=VO,ee.isNative=qO,ee.isNil=GO,ee.isNull=KO,ee.isNumber=j0,ee.isObject=Fn,ee.isObjectLike=qn,ee.isPlainObject=Sl,ee.isRegExp=gp,ee.isSafeInteger=YO,ee.isSet=U0,ee.isString=cu,ee.isSymbol=Ei,ee.isTypedArray=Ea,ee.isUndefined=XO,ee.isWeakMap=ZO,ee.isWeakSet=QO,ee.join=tL,ee.kebabCase=z2,ee.last=qi,ee.lastIndexOf=nL,ee.lowerCase=H2,ee.lowerFirst=j2,ee.lt=JO,ee.lte=e2,ee.max=FN,ee.maxBy=PN,ee.mean=WN,ee.meanBy=BN,ee.min=zN,ee.minBy=HN,ee.stubArray=kp,ee.stubFalse=Ap,ee.stubObject=$N,ee.stubString=TN,ee.stubTrue=MN,ee.multiply=jN,ee.nth=rL,ee.noConflict=bN,ee.noop=Cp,ee.now=ou,ee.pad=U2,ee.padEnd=V2,ee.padStart=q2,ee.parseInt=K2,ee.random=D2,ee.reduce=sO,ee.reduceRight=aO,ee.repeat=G2,ee.replace=Y2,ee.result=_2,ee.round=UN,ee.runInContext=fe,ee.sample=cO,ee.size=dO,ee.snakeCase=X2,ee.some=pO,ee.sortedIndex=uL,ee.sortedIndexBy=hL,ee.sortedIndexOf=dL,ee.sortedLastIndex=pL,ee.sortedLastIndexBy=fL,ee.sortedLastIndexOf=gL,ee.startCase=Q2,ee.startsWith=J2,ee.subtract=VN,ee.sum=qN,ee.sumBy=KN,ee.template=eN,ee.times=IN,ee.toFinite=Vo,ee.toInteger=Mt,ee.toLength=q0,ee.toLower=tN,ee.toNumber=Ki,ee.toSafeInteger=t2,ee.toString=sn,ee.toUpper=nN,ee.trim=rN,ee.trimEnd=iN,ee.trimStart=oN,ee.truncate=sN,ee.unescape=aN,ee.uniqueId=RN,ee.upperCase=lN,ee.upperFirst=yp,ee.each=R0,ee.eachRight=L0,ee.first=T0,xp(ee,function(){var o={};return ko(ee,function(v,M){cn.call(ee.prototype,M)||(o[M]=v)}),o}(),{chain:!1}),ee.VERSION=r,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Mr(["drop","take"],function(o,v){Vt.prototype[o]=function(M){M=M===e?1:gr(Mt(M),0);var j=this.__filtered__&&!v?new Vt(this):this.clone();return j.__filtered__?j.__takeCount__=Br(M,j.__takeCount__):j.__views__.push({size:Br(M,J),type:o+(j.__dir__<0?"Right":"")}),j},Vt.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),Mr(["filter","map","takeWhile"],function(o,v){var M=v+1,j=M==$||M==N;Vt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:pt(G,3),type:M}),te.__filtered__=te.__filtered__||j,te}}),Mr(["head","last"],function(o,v){var M="take"+(v?"Right":"");Vt.prototype[o]=function(){return this[M](1).value()[0]}}),Mr(["initial","tail"],function(o,v){var M="drop"+(v?"":"Right");Vt.prototype[o]=function(){return this.__filtered__?new Vt(this):this[M](1)}}),Vt.prototype.compact=function(){return this.filter(wi)},Vt.prototype.find=function(o){return this.filter(o).head()},Vt.prototype.findLast=function(o){return this.reverse().find(o)},Vt.prototype.invokeMap=Dt(function(o,v){return typeof o=="function"?new Vt(this):this.map(function(M){return bl(M,o,v)})}),Vt.prototype.reject=function(o){return this.filter(au(pt(o)))},Vt.prototype.slice=function(o,v){o=Mt(o);var M=this;return M.__filtered__&&(o>0||v<0)?new Vt(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),v!==e&&(v=Mt(v),M=v<0?M.dropRight(-v):M.take(v-o)),M)},Vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Vt.prototype.toArray=function(){return this.take(J)},ko(Vt.prototype,function(o,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),G=ee[j?"take"+(v=="last"?"Right":""):v],te=j||/^find/.test(v);G&&(ee.prototype[v]=function(){var ue=this.__wrapped__,pe=j?[1]:arguments,ye=ue instanceof Vt,Ee=pe[0],Re=ye||Ct(ue),De=function(Bt){var Kt=G.apply(ee,T([Bt],pe));return j&&Ge?Kt[0]:Kt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Re=!1);var Ge=this.__chain__,nt=!!this.__actions__.length,ft=te&&!Ge,Et=ye&&!nt;if(!te&&Re){ue=Et?ue:new Vt(this);var gt=o.apply(ue,pe);return gt.__actions__.push({func:ru,args:[De],thisArg:e}),new ji(gt,Ge)}return ft&&Et?o.apply(this,pe):(gt=this.thru(De),ft?j?gt.value()[0]:gt.value():gt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(o){var v=_r[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",j=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(j&&!this.__chain__){var te=this.value();return v.apply(Ct(te)?te:[],G)}return this[M](function(ue){return v.apply(Ct(ue)?ue:[],G)})}}),ko(Vt.prototype,function(o,v){var M=ee[v];if(M){var j=M.name+"";cn.call(_a,j)||(_a[j]=[]),_a[j].push({name:v,func:M})}}),_a[Xc(e,b).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=aE,Vt.prototype.reverse=lE,Vt.prototype.value=cE,ee.prototype.at=PL,ee.prototype.chain=WL,ee.prototype.commit=BL,ee.prototype.next=zL,ee.prototype.plant=jL,ee.prototype.reverse=UL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=VL,ee.prototype.first=ee.prototype.head,dl&&(ee.prototype[dl]=HL),ee},qt=sr();ir?((ir.exports=qt)._=qt,Sn._=qt):hn._=qt}).call(kk)}(Gl,Gl.exports)),Gl.exports}var Sk=Kn("I",Ak());Kn("O",Rl(Sk)).debounce(function(){this.rebuildDisplayText()},300);var Ig={exports:{}},Eg;function _k(){return Eg||(Eg=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Ig)),Ig.exports}_k();const $k=!0,ar="u-",Tk="uplot",Mk=ar+"hz",Ik=ar+"vt",Ek=ar+"title",Rk=ar+"wrap",Lk=ar+"under",Ok=ar+"over",Nk=ar+"axis",_s=ar+"off",Dk=ar+"select",Fk=ar+"cursor-x",Pk=ar+"cursor-y",Wk=ar+"cursor-pt",Bk=ar+"legend",zk=ar+"live",Hk=ar+"inline",jk=ar+"series",Uk=ar+"marker",Rg=ar+"label",Vk=ar+"value",Va="width",qa="height",Ka="top",Lg="bottom",sa="left",Hu="right",ju="#000",Og=ju+"0",Uu="mousemove",Ng="mousedown",Vu="mouseup",Dg="mouseenter",Fg="mouseleave",Pg="dblclick",qk="resize",Kk="scroll",Wg="change",Yl="dppxchange",qu="--",aa=typeof window<"u",Ku=aa?document:null,la=aa?window:null,Gk=aa?navigator:null;let en,Xl;function Gu(){let n=devicePixelRatio;en!=n&&(en=n,Xl&&Zu(Wg,Xl,Gu),Xl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),$s(Wg,Xl,Gu),la.dispatchEvent(new CustomEvent(Yl)))}function xi(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Yu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function wn(n,t,e){n.style[t]=e+"px"}function Xi(n,t,e,r){let f=Ku.createElement(n);return t!=null&&xi(f,t),e!=null&&e.insertBefore(f,r),f}function Oi(n,t){return Xi("div",n,t)}const Bg=new WeakMap;function ho(n,t,e,r,f){let g="translate("+t+"px,"+e+"px)",m=Bg.get(n);g!=m&&(n.style.transform=g,Bg.set(n,g),t<0||e<0||t>r||e>f?xi(n,_s):Yu(n,_s))}const zg=new WeakMap;function Hg(n,t,e){let r=t+e,f=zg.get(n);r!=f&&(zg.set(n,r),n.style.background=t,n.style.borderColor=e)}const jg=new WeakMap;function Ug(n,t,e,r){let f=t+""+e,g=jg.get(n);f!=g&&(jg.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 Xu={passive:!0},Yk={...Xu,capture:!0};function $s(n,t,e,r){t.addEventListener(n,e,r?Yk:Xu)}function Zu(n,t,e,r){t.removeEventListener(n,e,Xu)}aa&&Gu();function Zi(n,t,e,r){let f;e=e||0,r=r||t.length-1;let g=r<=2147483647;for(;r-e>1;)f=g?e+r>>1:ki((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Vg(n){return(t,e,r)=>{let f=-1,g=-1;for(let m=e;m<=r;m++)if(n(t[m])){f=m;break}for(let m=r;m>=e;m--)if(n(t[m])){g=m;break}return[f,g]}}const qg=n=>n!=null,Kg=n=>n!=null&&n>0,Zl=Vg(qg),Xk=Vg(Kg);function Zk(n,t,e,r=0,f=!1){let g=f?Xk:Zl,m=f?Kg:qg;[t,e]=g(n,t,e);let w=n[t],h=n[t];if(t>-1)if(r==1)w=n[t],h=n[e];else if(r==-1)w=n[e],h=n[t];else for(let d=t;d<=e;d++){let s=n[d];m(s)&&(s<w?w=s:s>h&&(h=s))}return[w??pn,h??-pn]}function Ql(n,t,e,r){let f=Xg(n),g=Xg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let m=e==10?$o:Zg,w=f==1?ki:Ni,h=g==1?Ni:ki,d=w(m(lr(n))),s=h(m(lr(t))),l=ca(e,d),u=ca(e,s);return e==10&&(d<0&&(l=fn(l,-d)),s<0&&(u=fn(u,-s))),r||e==2?(n=l*f,t=u*g):(n=im(n,l),t=tc(t,u)),[n,t]}function Qu(n,t,e,r){let f=Ql(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Ju=.1,Gg={mode:3,pad:Ju},Ga={pad:0,soft:null,mode:0},Qk={min:Ga,max:Ga};function Jl(n,t,e,r){return nc(e)?Yg(n,t,e):(Ga.pad=e,Ga.soft=r?0:null,Ga.mode=r?3:0,Yg(n,t,Qk))}function Qt(n,t){return n??t}function Jk(n,t,e){for(t=Qt(t,0),e=Qt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Yg(n,t,e){let r=e.min,f=e.max,g=Qt(r.pad,0),m=Qt(f.pad,0),w=Qt(r.hard,-pn),h=Qt(f.hard,pn),d=Qt(r.soft,pn),s=Qt(f.soft,-pn),l=Qt(r.mode,0),u=Qt(f.mode,0),c=t-n,i=$o(c),a=Hr(lr(n),lr(t)),p=$o(a),b=lr(p-i);(c<1e-24||b>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&d!=pn&&(g=0),u==2&&s!=-pn&&(m=0)));let x=c||a||1e3,R=$o(x),_=ca(10,ki(R)),k=x*(c==0?n==0?.1:1:g),C=fn(im(n-k,_/10),24),L=n>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:pn,D=Hr(w,C<L&&n>=L?L:Qi(L,C)),E=x*(c==0?t==0?.1:1:m),I=fn(tc(t+E,_/10),24),z=t<=s&&(u==1||u==3&&I>=s||u==2&&I<=s)?s:-pn,P=Qi(h,I>z&&t<=z?z:Hr(z,I));return D==P&&D==0&&(P=100),[D,P]}const eA=new Intl.NumberFormat(aa?Gk.language:"en-US"),eh=n=>eA.format(n),Ci=Math,ec=Ci.PI,lr=Ci.abs,ki=Ci.floor,cr=Ci.round,Ni=Ci.ceil,Qi=Ci.min,Hr=Ci.max,ca=Ci.pow,Xg=Ci.sign,$o=Ci.log10,Zg=Ci.log2,tA=(n,t=1)=>Ci.sinh(n)*t,th=(n,t=1)=>Ci.asinh(n/t),pn=1/0;function Qg(n){return($o((n^n>>31)-(n>>31))|0)+1}function nh(n,t,e){return Qi(Hr(n,t),e)}function Jg(n){return typeof n=="function"}function zt(n){return Jg(n)?n:()=>n}const nA=()=>{},em=n=>n,tm=(n,t)=>t,rA=n=>null,nm=n=>!0,rm=(n,t)=>n==t,iA=/\.\d*?(?=9{6,}|0{6,})/gm,Ts=n=>{if(sm(n)||Zo.has(n))return n;const t=`${n}`,e=t.match(iA);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,g]=t.split("e");return+`${Ts(f)}e${g}`}return fn(n,r)};function Ms(n,t){return Ts(fn(Ts(n/t))*t)}function tc(n,t){return Ts(Ni(Ts(n/t))*t)}function im(n,t){return Ts(ki(Ts(n/t))*t)}function fn(n,t=0){if(sm(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return cr(r)/e}const Zo=new Map;function om(n){return((""+n).split(".")[1]||"").length}function Ya(n,t,e,r){let f=[],g=r.map(om);for(let m=t;m<e;m++){let w=lr(m),h=fn(ca(n,m),w);for(let d=0;d<r.length;d++){let s=n==10?+`${r[d]}e${m}`:r[d]*h,l=(m>=0?0:w)+(m>=g[d]?0:g[d]),u=n==10?s:fn(s,l);f.push(u),Zo.set(u,l)}}return f}const Xa={},rh=[],ua=[null,null],Qo=Array.isArray,sm=Number.isInteger,oA=n=>n===void 0;function am(n){return typeof n=="string"}function nc(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function sA(n){return n!=null&&typeof n=="object"}const aA=Object.getPrototypeOf(Uint8Array),lm="__proto__";function ha(n,t=nc){let e;if(Qo(n)){let r=n.find(f=>f!=null);if(Qo(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=ha(n[f],t)}else e=n.slice()}else if(n instanceof aA)e=n.slice();else if(t(n)){e={};for(let r in n)r!=lm&&(e[r]=ha(n[r],t))}else e=n;return e}function nr(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=lm&&(nc(n[f])?nr(n[f],ha(r[f])):n[f]=ha(r[f]))}return n}const lA=0,cA=1,uA=2;function hA(n,t,e){for(let r=0,f,g=-1;r<t.length;r++){let m=t[r];if(m>g){for(f=m-1;f>=0&&n[f]==null;)n[f--]=null;for(f=m+1;f<e&&n[f]==null;)n[g=f++]=null}}}function dA(n,t){if(gA(n)){let m=n[0].slice();for(let w=1;w<n.length;w++)m.push(...n[w].slice(1));return mA(m[0])||(m=fA(m)),m}let e=new Set;for(let m=0;m<n.length;m++){let w=n[m][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((m,w)=>m-w)],f=r[0].length,g=new Map;for(let m=0;m<f;m++)g.set(r[0][m],m);for(let m=0;m<n.length;m++){let w=n[m],h=w[0];for(let d=1;d<w.length;d++){let s=w[d],l=Array(f).fill(void 0),u=t?t[m][d]:cA,c=[];for(let i=0;i<s.length;i++){let a=s[i],p=g.get(h[i]);a===null?u!=lA&&(l[p]=a,u==uA&&c.push(p)):l[p]=a}hA(l,c,f),r.push(l)}}return r}const pA=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function fA(n){let t=n[0],e=t.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,m)=>t[g]-t[m]);let f=[];for(let g=0;g<n.length;g++){let m=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=m[r[h]];f.push(w)}return f}function gA(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 g=0;g<e;g++)if(f[g]!=t[g])return!1}}return!0}function mA(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 g=Hr(1,ki((f-r+1)/t));for(let m=n[r],w=r+g;w<=f;w+=g){const h=n[w];if(h!=null){if(h<=m)return!1;m=h}}return!0}const cm=["January","February","March","April","May","June","July","August","September","October","November","December"],um=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function hm(n){return n.slice(0,3)}const vA=um.map(hm),yA=cm.map(hm),bA={MMMM:cm,MMM:yA,WWWW:um,WWW:vA};function Za(n){return(n<10?"0":"")+n}function wA(n){return(n<10?"00":n<100?"0":"")+n}const xA={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=>Za(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Za(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Za(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=>Za(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Za(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>wA(n.getMilliseconds())};function ih(n,t){t=t||bA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?xA[f[1]]:f[0]);return g=>{let m="";for(let w=0;w<e.length;w++)m+=typeof e[w]=="string"?e[w]:e[w](g,t);return m}}const CA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function kA(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==CA?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const dm=n=>n%1==0,rc=[1,2,2.5,5],AA=Ya(10,-32,0,rc),pm=Ya(10,0,32,rc),SA=pm.filter(dm),Is=AA.concat(pm),oh=`
|
|
1491
|
+
`,fm="{YYYY}",gm=oh+fm,mm="{M}/{D}",Qa=oh+mm,ic=Qa+"/{YY}",vm="{aa}",_A="{h}:{mm}",da=_A+vm,ym=oh+da,bm=":{ss}",on=null;function wm(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,g=f*30,m=f*365,w=(n==1?Ya(10,0,3,rc).filter(dm):Ya(10,-3,0,rc)).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,g,g*2,g*3,g*4,g*6,m,m*2,m*5,m*10,m*25,m*50,m*100]);const h=[[m,fm,on,on,on,on,on,on,1],[f*28,"{MMM}",gm,on,on,on,on,on,1],[f,mm,gm,on,on,on,on,on,1],[r,"{h}"+vm,ic,on,Qa,on,on,on,1],[e,da,ic,on,Qa,on,on,on,1],[t,bm,ic+" "+da,on,Qa+" "+da,on,ym,on,1],[n,bm+".{fff}",ic+" "+da,on,Qa+" "+da,on,ym,on,1]];function d(s){return(l,u,c,i,a,p)=>{let b=[],x=a>=m,R=a>=g&&a<m,_=s(c),k=fn(_*n,3),C=sh(_.getFullYear(),x?0:_.getMonth(),R||x?1:_.getDate()),L=fn(C*n,3);if(R||x){let D=R?a/g:0,E=x?a/m:0,I=k==L?k:fn(sh(C.getFullYear()+E,C.getMonth()+D,1)*n,3),z=new Date(cr(I/n)),P=z.getFullYear(),O=z.getMonth();for(let $=0;I<=i;$++){let A=sh(P+E*$,O+D*$,1),N=A-s(fn(A*n,3));I=fn((+A+N)*n,3),I<=i&&b.push(I)}}else{let D=a>=f?f:a,E=ki(c)-ki(k),I=L+E+tc(k-L,D);b.push(I);let z=s(I),P=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=a/r,$=l.axes[u]._space,A=p/$;for(;I=fn(I+a,n==1?0:3),!(I>i);)if(O>1){let N=ki(fn(P+O,6))%24,B=s(I).getHours()-N;B>1&&(B=-1),I-=B*r,P=(P+O)%24;let U=b[b.length-1];fn((I-U)/a,3)*A>=.7&&b.push(I)}else b.push(I)}return b}}return[w,h,d]}const[$A,TA,MA]=wm(1),[IA,EA,RA]=wm(.001);Ya(2,-53,53,[1]);function xm(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 Cm(n,t){return(e,r,f,g,m)=>{let w=t.find(i=>m>=i[0])||t[t.length-1],h,d,s,l,u,c;return r.map(i=>{let a=n(i),p=a.getFullYear(),b=a.getMonth(),x=a.getDate(),R=a.getHours(),_=a.getMinutes(),k=a.getSeconds(),C=p!=h&&w[2]||b!=d&&w[3]||x!=s&&w[4]||R!=l&&w[5]||_!=u&&w[6]||k!=c&&w[7]||w[1];return h=p,d=b,s=x,l=R,u=_,c=k,C(a)})}}function LA(n,t){let e=ih(t);return(r,f,g,m,w)=>f.map(h=>e(n(h)))}function sh(n,t,e){return new Date(n,t,e)}function km(n,t){return t(n)}const OA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Am(n,t){return(e,r,f,g)=>g==null?qu:t(n(r))}function NA(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function DA(n,t){return n.series[t].fill(n,t)}const FA={show:!0,live:!0,isolate:!1,mount:nA,markers:{show:!0,width:2,stroke:NA,fill:DA,dash:"solid"},idx:null,idxs:null,values:[]};function PA(n,t){let e=n.cursor.points,r=Oi(),f=e.size(n,t);wn(r,Va,f),wn(r,qa,f);let g=f/-2;wn(r,"marginLeft",g),wn(r,"marginTop",g);let m=e.width(n,t,f);return m&&wn(r,"borderWidth",m),r}function WA(n,t){let e=n.series[t].points;return e._fill||e._stroke}function BA(n,t){let e=n.series[t].points;return e._stroke||e._fill}function zA(n,t){return n.series[t].points.size}const ah=[0,0];function HA(n,t,e){return ah[0]=t,ah[1]=e,ah}function oc(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function lh(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const jA={show:!0,x:!0,y:!0,lock:!1,move:HA,points:{one:!1,show:PA,size:zA,width:0,stroke:BA,fill:WA},bind:{mousedown:oc,mouseup:oc,click:oc,dblclick:oc,mousemove:lh,mouseleave:lh,mouseenter:lh},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},Sm={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ch=nr({},Sm,{filter:tm}),_m=nr({},ch,{size:10}),$m=nr({},Sm,{show:!1}),uh='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"',Tm="bold "+uh,Mm=1.5,Im={show:!0,scale:"x",stroke:ju,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Tm,side:2,grid:ch,ticks:_m,border:$m,font:uh,lineGap:Mm,rotate:0},UA="Value",VA="Time",Em={show:!0,scale:"x",auto:!1,sorted:1,min:pn,max:-pn,idxs:[]};function qA(n,t,e,r,f){return t.map(g=>g==null?"":eh(g))}function KA(n,t,e,r,f,g,m){let w=[],h=Zo.get(f)||0;e=m?e:fn(tc(e,f),h);for(let d=e;d<=r;d=fn(d+f,h))w.push(Object.is(d,-0)?0:d);return w}function hh(n,t,e,r,f,g,m){const w=[],h=n.scales[n.axes[t].scale].log,d=h==10?$o:Zg,s=ki(d(e));f=ca(h,s),h==10&&(f=Is[Zi(f,Is)]);let l=e,u=f*h;h==10&&(u=Is[Zi(u,Is)]);do w.push(l),l=l+f,h==10&&!Zo.has(l)&&(l=fn(l,Zo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=Is[Zi(u,Is)]));while(l<=r);return w}function GA(n,t,e,r,f,g,m){let w=n.scales[n.axes[t].scale].asinh,h=r>w?hh(n,t,Hr(w,e),r,f):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?hh(n,t,Hr(w,-r),-e,f):[w]).reverse().map(s=>-s).concat(d,h)}const Rm=/./,YA=/[12357]/,XA=/[125]/,Lm=/1/,dh=(n,t,e,r)=>n.map((f,g)=>t==4&&f==0||g%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function ZA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=n.scales[m],h=n.valToPos,d=g._space,s=h(10,m),l=h(9,m)-s>=d?Rm:h(7,m)-s>=d?YA:h(5,m)-s>=d?XA:Lm;if(l==Lm){let u=lr(h(1,m)-s);if(u<d)return dh(t.slice().reverse(),w.distr,l,Ni(d/u)).reverse()}return dh(t,w.distr,l,1)}function QA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=g._space,h=n.valToPos,d=lr(h(1,m)-h(2,m));return d<w?dh(t.slice().reverse(),3,Rm,Ni(w/d)).reverse():t}function JA(n,t,e,r){return r==null?qu:t==null?"":eh(t)}const Om={show:!0,scale:"y",stroke:ju,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Tm,side:3,grid:ch,ticks:_m,border:$m,font:uh,lineGap:Mm,rotate:0};function eS(n,t){let e=3+(n||1)*2;return fn(e*t,3)}function tS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],g=n.valToPos(f[r[0]],e,!0),m=n.valToPos(f[r[1]],e,!0),w=lr(m-g),h=n.series[t],d=w/(h.points.space*en);return r[1]-r[0]<=d}const Nm={scale:null,auto:!0,sorted:0,min:pn,max:-pn},Dm=(n,t,e,r,f)=>f,Fm={show:!0,auto:!0,sorted:0,gaps:Dm,alpha:1,facets:[nr({},Nm,{scale:"x"}),nr({},Nm,{scale:"y"})]},Pm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Dm,alpha:1,points:{show:tS,filter:null},values:null,min:pn,max:-pn,idxs:[],path:null,clip:null};function nS(n,t,e,r,f){return e/10}const Wm={time:$k,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},rS=nr({},Wm,{time:!1,ori:1}),Bm={};function zm(n,t){let e=Bm[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,g,m,w,h,d){for(let s=0;s<e.plots.length;s++)e.plots[s]!=f&&e.plots[s].pub(r,f,g,m,w,h,d)}},n!=null&&(Bm[n]=e)),e}const pa=1,ph=2;function Es(n,t,e){const r=n.mode,f=n.series[t],g=r==2?n._data[t]:n._data,m=n.scales,w=n.bbox;let h=g[0],d=r==2?g[1]:g[t],s=r==2?m[f.facets[0].scale]:m[n.series[0].scale],l=r==2?m[f.facets[1].scale]:m[f.scale],u=w.left,c=w.top,i=w.width,a=w.height,p=n.valToPosH,b=n.valToPosV;return s.ori==0?e(f,h,d,s,l,p,b,u,c,i,a,ac,fa,cc,Um,qm):e(f,h,d,s,l,b,p,c,u,a,i,lc,ga,mh,Vm,Km)}function fh(n,t){let e=0,r=0,f=Qt(n.bands,rh);for(let g=0;g<f.length;g++){let m=f[g];m.series[0]==t?e=m.dir:m.series[1]==t&&(m.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function iS(n,t,e,r,f){let g=n.mode,m=n.series[t],w=g==2?m.facets[1].scale:m.scale,h=n.scales[w];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function To(n,t,e,r,f,g){return Es(n,t,(m,w,h,d,s,l,u,c,i,a,p)=>{let b=m.pxRound;const x=d.dir*(d.ori==0?1:-1),R=d.ori==0?fa:ga;let _,k;x==1?(_=e,k=r):(_=r,k=e);let C=b(l(w[_],d,a,c)),L=b(u(h[_],s,p,i)),D=b(l(w[k],d,a,c)),E=b(u(g==1?s.max:s.min,s,p,i)),I=new Path2D(f);return R(I,D,E),R(I,C,E),R(I,C,L),I})}function sc(n,t,e,r,f,g){let m=null;if(n.length>0){m=new Path2D;const w=t==0?cc:mh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(m,h,r,c,r+g),h=u[1]}}let d=e+f-h,s=10;d>0&&w(m,h,r-s/2,d,r+g+s)}return m}function oS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function gh(n,t,e,r,f,g,m){let w=[],h=n.length;for(let d=f==1?e:r;d>=e&&d<=r;d+=f)if(t[d]===null){let s=d,l=d;if(f==1)for(;++d<=r&&t[d]===null;)l=d;else for(;--d>=e&&t[d]===null;)l=d;let u=g(n[s]),c=l==s?u:g(n[l]),i=s-f;u=m<=0&&i>=0&&i<h?g(n[i]):u;let a=l+f;c=m>=0&&a>=0&&a<h?g(n[a]):c,c>=u&&w.push([u,c])}return w}function Hm(n){return n==0?em:n==1?cr:t=>Ms(t,n)}function jm(n){let t=n==0?ac:lc,e=n==0?(f,g,m,w,h,d)=>{f.arcTo(g,m,w,h,d)}:(f,g,m,w,h,d)=>{f.arcTo(m,g,h,w,d)},r=n==0?(f,g,m,w,h)=>{f.rect(g,m,w,h)}:(f,g,m,w,h)=>{f.rect(m,g,h,w)};return(f,g,m,w,h,d=0,s=0)=>{d==0&&s==0?r(f,g,m,w,h):(d=Qi(d,w/2,h/2),s=Qi(s,w/2,h/2),t(f,g+d,m),e(f,g+w,m,g+w,m+h,d),e(f,g+w,m+h,g,m+h,s),e(f,g,m+h,g,m,s),e(f,g,m,g+w,m,d),f.closePath())}}const ac=(n,t,e)=>{n.moveTo(t,e)},lc=(n,t,e)=>{n.moveTo(e,t)},fa=(n,t,e)=>{n.lineTo(t,e)},ga=(n,t,e)=>{n.lineTo(e,t)},cc=jm(0),mh=jm(1),Um=(n,t,e,r,f,g)=>{n.arc(t,e,r,f,g)},Vm=(n,t,e,r,f,g)=>{n.arc(e,t,r,f,g)},qm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(t,e,r,f,g,m)},Km=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(e,t,f,r,m,g)};function Gm(n){return(t,e,r,f,g)=>Es(t,e,(m,w,h,d,s,l,u,c,i,a,p)=>{let{pxRound:b,points:x}=m,R,_;d.ori==0?(R=ac,_=Um):(R=lc,_=Vm);const k=fn(x.width*en,3);let C=(x.size-x.width)/2*en,L=fn(C*2,3),D=new Path2D,E=new Path2D,{left:I,top:z,width:P,height:O}=t.bbox;cc(E,I-L,z-L,P+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=b(l(w[A],d,a,c)),B=b(u(h[A],s,p,i));R(D,N+C,B),_(D,N,B,C,0,ec*2)}};if(g)g.forEach($);else for(let A=r;A<=f;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:E,flags:pa|ph}})}function Ym(n){return(t,e,r,f,g,m)=>{r!=f&&(g!=r&&m!=r&&n(t,e,r),g!=f&&m!=f&&n(t,e,f),n(t,e,m))}}const sS=Ym(fa),aS=Ym(ga);function Xm(n){const t=Qt(n==null?void 0:n.alignGaps,0);return(e,r,f,g)=>Es(e,r,(m,w,h,d,s,l,u,c,i,a,p)=>{[f,g]=Zl(h,f,g);let b=m.pxRound,x=P=>b(l(P,d,a,c)),R=P=>b(u(P,s,p,i)),_,k;d.ori==0?(_=fa,k=sS):(_=ga,k=aS);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:pa},D=L.stroke;let E=!1;if(g-f>=a*4){let P=he=>e.posToVal(he,d.key,!0),O=null,$=null,A,N,B,U=x(w[C==1?f:g]),K=x(w[f]),Q=x(w[g]),J=P(C==1?K+1:Q-1);for(let he=C==1?f:g;he>=f&&he<=g;he+=C){let ne=w[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,R(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(E=!0):(O!=null&&k(D,U,R(O),R($),R(A),R(N)),se!=null?(N=se,_(D,le,R(N)),O=$=A=N):(O=$=null,se===null&&(E=!0)),U=le,J=P(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,R(O),R($),R(A),R(N))}else for(let P=C==1?f:g;P>=f&&P<=g;P+=C){let O=h[P];O===null?E=!0:O!=null&&_(D,x(w[P]),R(O))}let[I,z]=fh(e,r);if(m.fill!=null||I!=0){let P=L.fill=new Path2D(D),O=m.fillTo(e,r,m.min,m.max,I),$=R(O),A=x(w[f]),N=x(w[g]);C==-1&&([N,A]=[A,N]),_(P,N,$),_(P,A,$)}if(!m.spanGaps){let P=[];E&&P.push(...gh(w,h,f,g,C,x,t)),L.gaps=P=m.gaps(e,r,f,g,P),L.clip=sc(P,d.ori,c,i,a,p)}return z!=0&&(L.band=z==2?[To(e,r,f,g,D,-1),To(e,r,f,g,D,1)]:To(e,r,f,g,D,z)),L})}function lS(n){const t=Qt(n.align,1),e=Qt(n.ascDesc,!1),r=Qt(n.alignGaps,0),f=Qt(n.extend,!1);return(g,m,w,h)=>Es(g,m,(d,s,l,u,c,i,a,p,b,x,R)=>{[w,h]=Zl(l,w,h);let _=d.pxRound,{left:k,width:C}=g.bbox,L=Q=>_(i(Q,u,x,p)),D=Q=>_(a(Q,c,R,b)),E=u.ori==0?fa:ga;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:pa},z=I.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(l[P==1?w:h]),$=L(s[P==1?w:h]),A=$,N=$;f&&t==-1&&(N=k,E(z,N,O)),E(z,$,O);for(let Q=P==1?w:h;Q>=w&&Q<=h;Q+=P){let J=l[Q];if(J==null)continue;let he=L(s[Q]),ne=D(J);t==1?E(z,he,O):E(z,A,ne),E(z,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=k+C,E(z,B,O));let[U,K]=fh(g,m);if(d.fill!=null||U!=0){let Q=I.fill=new Path2D(z),J=d.fillTo(g,m,d.min,d.max,U),he=D(J);E(Q,B,he),E(Q,N,he)}if(!d.spanGaps){let Q=[];Q.push(...gh(s,l,w,h,P,L,r));let J=d.width*en/2,he=e||t==1?J:-J,ne=e||t==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),I.gaps=Q=d.gaps(g,m,w,h,Q),I.clip=sc(Q,u.ori,p,b,x,R)}return K!=0&&(I.band=K==2?[To(g,m,w,h,z,-1),To(g,m,w,h,z,1)]:To(g,m,w,h,z,K)),I})}function Zm(n,t,e,r,f,g,m=pn){if(n.length>1){let w=null;for(let h=0,d=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let s=lr(n[h]-n[w]);s<d&&(d=s,m=lr(e(n[h],r,f,g)-e(n[w],r,f,g)))}w=h}}return m}function cS(n){n=n||Xa;const t=Qt(n.size,[.6,pn,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 g=zt(f),m=1-t[0],w=Qt(t[1],pn),h=Qt(t[2],1),d=Qt(n.disp,Xa),s=Qt(n.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,a,p)=>Es(c,i,(b,x,R,_,k,C,L,D,E,I,z)=>{let P=b.pxRound,O=e,$=r*en,A=w*en,N=h*en,B,U;_.ori==0?[B,U]=g(c,i):[U,B]=g(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?cc:mh,J=_.ori==0?s:(je,Lt,Ht,$n,yr,ur,gn)=>{s(je,Lt,Ht,yr,$n,gn,ur)},he=Qt(c.bands,rh).find(je=>je.series[0]==i),ne=he!=null?he.dir:0,le=b.fillTo(c,i,b.min,b.max,ne),se=P(L(le,k,z,E)),de,me,_e,Te=I,Me=P(b.width*en),Xe=!1,Ke=null,at=null,et=null,lt=null;l!=null&&(Me==0||u!=null)&&(Xe=!0,Ke=l.values(c,i,a,p),at=new Map,new Set(Ke).forEach(je=>{je!=null&&at.set(je,new Path2D)}),Me>0&&(et=u.values(c,i,a,p),lt=new Map,new Set(et).forEach(je=>{je!=null&<.set(je,new Path2D)})));let{x0:Xt,size:xn}=d;if(Xt!=null&&xn!=null){O=1,x=Xt.values(c,i,a,p),Xt.unit==2&&(x=x.map(Lt=>c.posToVal(D+Lt*I,_.key,!0)));let je=xn.values(c,i,a,p);xn.unit==2?me=je[0]*I:me=C(je[0],_,I,D)-C(0,_,I,D),Te=Zm(x,R,C,_,I,D,Te),_e=Te-me+$}else Te=Zm(x,R,C,_,I,D,Te),_e=Te*m+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(P=em);let Wt=_e>0,vr=Te-_e-(Wt?Me:0);me=P(nh(vr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Wt?Me/2:0));const un={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},On=Xe?null:new Path2D;let Zn=null;if(he!=null)Zn=c.data[he.series[1]];else{let{y0:je,y1:Lt}=d;je!=null&&Lt!=null&&(R=Lt.values(c,i,a,p),Zn=je.values(c,i,a,p))}let Tr=B*me,mt=U*me;for(let je=K==1?a:p;je>=a&&je<=p;je+=K){let Lt=R[je];if(Lt==null)continue;if(Zn!=null){let Gt=Zn[je]??0;if(Lt-Gt==0)continue;se=L(Gt,k,z,E)}let Ht=_.distr!=2||d!=null?x[je]:je,$n=C(Ht,_,I,D),yr=L(Qt(Lt,le),k,z,E),ur=P($n-de),gn=P(Hr(yr,se)),Wn=P(Qi(yr,se)),Nn=gn-Wn;if(Lt!=null){let Gt=Lt<0?mt:Tr,ln=Lt<0?Tr:mt;Xe?(Me>0&&et[je]!=null&&Q(lt.get(et[je]),ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln),Ke[je]!=null&&Q(at.get(Ke[je]),ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln)):Q(On,ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln),J(c,i,je,ur-Me/2,Wn,me+Me,Nn)}}return Me>0?un.stroke=Xe?lt:On:Xe||(un._fill=b.width==0?b._fill:b._stroke??b._fill,un.width=0),un.fill=Xe?at:On,un})}function uS(n,t){const e=Qt(t==null?void 0:t.alignGaps,0);return(r,f,g,m)=>Es(r,f,(w,h,d,s,l,u,c,i,a,p,b)=>{[g,m]=Zl(d,g,m);let x=w.pxRound,R=B=>x(u(B,s,p,i)),_=B=>x(c(B,l,b,a)),k,C,L;s.ori==0?(k=ac,L=fa,C=qm):(k=lc,L=ga,C=Km);const D=s.dir*(s.ori==0?1:-1);let E=R(h[D==1?g:m]),I=E,z=[],P=[];for(let B=D==1?g:m;B>=g&&B<=m;B+=D)if(d[B]!=null){let U=h[B],K=R(U);z.push(I=K),P.push(_(d[B]))}const O={stroke:n(z,P,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:pa},$=O.stroke;let[A,N]=fh(r,f);if(w.fill!=null||A!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,f,w.min,w.max,A),K=_(U);L(B,I,K),L(B,E,K)}if(!w.spanGaps){let B=[];B.push(...gh(h,d,g,m,D,R,e)),O.gaps=B=w.gaps(r,f,g,m,B),O.clip=sc(B,s.ori,i,a,p,b)}return N!=0&&(O.band=N==2?[To(r,f,g,m,$,-1),To(r,f,g,m,$,1)]:To(r,f,g,m,$,N)),O})}function hS(n){return uS(dS,n)}function dS(n,t,e,r,f,g){const m=n.length;if(m<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),m==2)r(w,n[1],t[1]);else{let h=Array(m),d=Array(m-1),s=Array(m-1),l=Array(m-1);for(let u=0;u<m-1;u++)s[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],d[u]=s[u]/l[u];h[0]=d[0];for(let u=1;u<m-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[m-1]=d[m-2];for(let u=0;u<m-1;u++)f(w,n[u]+l[u]/3,t[u]+h[u]*l[u]/3,n[u+1]-l[u]/3,t[u+1]-h[u+1]*l[u]/3,n[u+1],t[u+1])}return w}const vh=new Set;function Qm(){for(let n of vh)n.syncRect(!0)}aa&&($s(qk,la,Qm),$s(Kk,la,Qm,!0),$s(Yl,la,()=>{Or.pxRatio=en}));const pS=Xm(),fS=Gm();function Jm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,g)=>yh(f,g,t,e))}function gS(n,t){return n.map((e,r)=>r==0?{}:nr({},t,e))}function yh(n,t,e,r){return nr({},t==0?e:r,n)}function ev(n,t,e){return t==null?ua:[t,e]}const mS=ev;function vS(n,t,e){return t==null?ua:Jl(t,e,Ju,!0)}function tv(n,t,e,r){return t==null?ua:Ql(t,e,n.scales[r].log,!1)}const yS=tv;function nv(n,t,e,r){return t==null?ua:Qu(t,e,n.scales[r].log,!1)}const bS=nv;function wS(n,t,e,r,f){let g=Hr(Qg(n),Qg(t)),m=t-n,w=Zi(f/r*m,e);do{let h=e[w],d=r*h/m;if(d>=f&&g+(h<5?Zo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function rv(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=cr((e=+f)*en))+"px"),[n,t,e]}function xS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=fn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Or(n,t,e){const r={mode:Qt(n.mode,1)},f=r.mode;function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function m(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?g(V,X,ie,oe):m(V,X,ie,oe)}r.valToPosH=g,r.valToPosV=m;let h=!1;r.status=0;const d=r.root=Oi(Tk);if(n.id!=null&&(d.id=n.id),xi(d,n.class),n.title){let V=Oi(Ek,d);V.textContent=n.title}const s=Xi("canvas"),l=r.ctx=s.getContext("2d"),u=Oi(Rk,d);$s("click",u,V=>{V.target===i&&(rn!=Pi||Ut!=Co)&&Hn.click(r,V)},!0);const c=r.under=Oi(Lk,u);u.appendChild(s);const i=r.over=Oi(Ok,u);n=ha(n);const a=+Qt(n.pxAlign,1),p=Hm(a);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const b=n.ms||.001,x=r.series=f==1?Jm(n.series||[],Em,Pm,!1):gS(n.series||[null],Fm),R=r.axes=Jm(n.axes||[],Im,Om,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,L={axes:Ro,series:wa},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function E(V){const X=V.distr==3?ie=>$o(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>th(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function I(V){let X=_[V];if(X==null){let ie=(n.scales||Xa)[V]||Xa;if(ie.from!=null){I(ie.from);let oe=nr({},_[ie.from],ie,{key:V});oe.valToPct=E(oe),_[V]=oe}else{X=_[V]=nr({},V==C?Wm:rS,ie),X.key=V;let oe=X.time,ge=X.range,xe=Qo(ge);if((V!=C||f==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Gg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Gg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&nc(ge))){let Ie=ge;ge=(Pe,Be,qe)=>Be==null?ua:Jl(Be,qe,Ie)}X.range=zt(ge||(oe?mS:V==C?X.distr==3?yS:X.distr==4?bS:ev:X.distr==3?tv:X.distr==4?nv:vS)),X.auto=zt(xe?!1:X.auto),X.clamp=zt(X.clamp||nS),X._min=X._max=null,X.valToPct=E(X)}}}I("x"),I("y"),f==1&&x.forEach(V=>{I(V.scale)}),R.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const z=_[C],P=z.distr;let O,$;z.ori==0?(xi(d,Mk),O=g,$=m):(xi(d,Ik),O=m,$=g);const A={};for(let V in _){let X=_[V];(X.min!=null||X.max!=null)&&(A[V]={min:X.min,max:X.max},X.min=X.max=null)}const N=n.tzDate||(V=>new Date(cr(V/b))),B=n.fmtDate||ih,U=b==1?MA(N):RA(N),K=Cm(N,xm(b==1?TA:EA,B)),Q=Am(N,km(OA,B)),J=[],he=r.legend=nr({},FA,n.legend),ne=r.cursor=nr({},jA,{drag:{y:f==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,_e,Te,Me=[],Xe=[],Ke,at=!1,et={};if(he.live){const V=x[1]?x[1].values:null;at=V!=null,Ke=at?V(r,1,0):{_:0};for(let X in Ke)et[X]=qu}if(le)if(me=Xi("table",Bk,d),Te=Xi("tbody",null,me),he.mount(r,me),at){_e=Xi("thead",null,me,Te);let V=Xi("tr",null,_e);Xi("th",null,V);for(var lt in Ke)Xi("th",Rg,V).textContent=lt}else xi(me,Hk),he.live&&xi(me,zk);const Xt={show:!0},xn={show:!1};function Wt(V,X){if(X==0&&(at||!he.live||f==2))return ua;let ie=[],oe=Xi("tr",jk,Te,Te.childNodes[X]);xi(oe,V.class),V.show||xi(oe,_s);let ge=Xi("th",null,oe);if(de.show){let Pe=Oi(Uk,ge);if(X>0){let Be=de.width(r,X);Be&&(Pe.style.border=Be+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Pe.style.background=de.fill(r,X)}}let xe=Oi(Rg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),un("click",ge,Pe=>{if(ne._lock)return;di(Pe);let Be=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let qe=x.some((Ye,Qe)=>Qe>0&&Qe!=Be&&Ye.show);x.forEach((Ye,Qe)=>{Qe>0&&Qr(Qe,qe?Qe==Be?Xt:xn:Xt,!0,ct.setSeries)})}else Qr(Be,{show:!V.show},!0,ct.setSeries)},!1),pi&&un(Dg,ge,Pe=>{ne._lock||(di(Pe),Qr(x.indexOf(V),zi,!0,ct.setSeries))},!1));for(var Ie in Ke){let Pe=Xi("td",Vk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const vr=new Map;function un(V,X,ie,oe=!0){const ge=vr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&($s(V,X,ge[V]=xe),vr.set(X,ge))}function On(V,X,ie){const oe=vr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Zu(ge,X,oe[ge]),delete oe[ge]);V==null&&vr.delete(X)}let Zn=0,Tr=0,mt=0,je=0,Lt=0,Ht=0,$n=Lt,yr=Ht,ur=mt,gn=je,Wn=0,Nn=0,Gt=0,ln=0;r.bbox={};let Dr=!1,Kr=!1,Gr=!1,Ai=!1,ci=!1,Bn=!1;function to(V,X,ie){(ie||V!=r.width||X!=r.height)&&ui(V,X),io(!1),Gr=!0,Kr=!0,xo()}function ui(V,X){r.width=Zn=mt=V,r.height=Tr=je=X,Lt=Ht=0,hi(),Jo();let ie=r.bbox;Wn=ie.left=Ms(Lt*en,.5),Nn=ie.top=Ms(Ht*en,.5),Gt=ie.width=Ms(mt*en,.5),ln=ie.height=Ms(je*en,.5)}const Ns=3;function Yr(){let V=!1,X=0;for(;!V;){X++;let ie=xa(X),oe=hl(X);V=X==Ns||ie&&oe,V||(ui(r.width,r.height),Kr=!0)}}function Cn({width:V,height:X}){to(V,X)}r.setSize=Cn;function hi(){let V=!1,X=!1,ie=!1,oe=!1;R.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Pe}=ge,Be=Ie%2,qe=ge.label!=null?ge.labelSize:0,Ye=Pe+qe;Ye>0&&(Be?(mt-=Ye,Ie==3?(Lt+=Ye,oe=!0):ie=!0):(je-=Ye,Ie==0?(Ht+=Ye,V=!0):X=!0))}}),gi[0]=V,gi[1]=ie,gi[2]=X,gi[3]=oe,mt-=wr[1]+wr[3],Lt+=wr[3],je-=wr[2]+wr[0],Ht+=wr[0]}function Jo(){let V=Lt+mt,X=Ht+je,ie=Lt,oe=Ht;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}R.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Pe=xe.side;xe._pos=ge(Pe,xe._size),xe.label!=null&&(xe._lpos=ge(Pe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=zt(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ie,Pe)=>{if(xe==0)return Ie;let Be=Ie,qe=ie(ge,xe,Ie,Pe)??pn,Ye=qe>=0&&qe<pn,Qe=z.ori==0?mt:je,yt=ne.left,Pt=t[0],wt=t[xe];if(X.has(wt[Ie])){Be=null;let Nt=null,dt=null,rt;if(oe==0||oe==-1)for(rt=Ie;Nt==null&&rt-- >0;)X.has(wt[rt])||(Nt=rt);if(oe==0||oe==1)for(rt=Ie;dt==null&&rt++<wt.length;)X.has(wt[rt])||(dt=rt);if(Nt!=null||dt!=null)if(Ye){let vn=Nt==null?-1/0:O(Pt[Nt],z,Qe,0),En=dt==null?1/0:O(Pt[dt],z,Qe,0),sr=yt-vn,qt=En-yt;sr<=qt?sr<=qe&&(Be=Nt):qt<=qe&&(Be=dt)}else Be=dt==null?Nt:Nt==null?dt:Ie-Nt<=dt-Ie?Nt:dt}else Ye&&lr(yt-O(Pt[Ie],z,Qe,0))>qe&&(Be=null);return Be}}const di=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let kn=ne.points;kn.show=zt(kn.show),kn.size=zt(kn.size),kn.stroke=zt(kn.stroke),kn.width=zt(kn.width),kn.fill=zt(kn.fill);const hr=r.focus=nr({},n.focus||{alpha:.3},ne.focus),pi=hr.prox>=0,An=pi&&kn.one;let Tn=[],br=[],fi=[];function vo(V,X){let ie=kn.show(r,X);if(ie instanceof HTMLElement)return xi(ie,Wk),xi(ie,V.class),ho(ie,-10,-10,mt,je),i.insertBefore(ie,Tn[X]),ie}function yo(V,X){if(f==1||X>0){let ie=f==1&&_[V.scale].time,oe=V.value;V.value=ie?am(oe)?Am(N,km(oe,B)):oe||Q:oe||JA,V.label=V.label||(ie?VA:UA)}if(An||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||pS||rA,V.fillTo=zt(V.fillTo||iS),V.pxAlign=+Qt(V.pxAlign,a),V.pxRound=Hm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=eS(Hr(1,V.width),1),oe=V.points=nr({},{size:ie,width:Hr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:fS,_stroke:null,_fill:null},V.points);oe.show=zt(oe.show),oe.filter=zt(oe.filter),oe.fill=zt(oe.fill),oe.stroke=zt(oe.stroke),oe.paths=zt(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Wt(V,X);Me.splice(X,0,ie[0]),Xe.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;An?X==0&&(ie=vo(V,X)):X>0&&(ie=vo(V,X)),Tn.splice(X,0,ie),br.splice(X,0,0),fi.splice(X,0,0)}tt("addSeries",X)}function es(V,X){X=X??x.length,V=f==1?yh(V,X,Em,Pm):yh(V,X,{},Fm),x.splice(X,0,V),yo(x[X],X)}r.addSeries=es;function Xr(V){if(x.splice(V,1),le){he.values.splice(V,1),Xe.splice(V,1);let X=Me.splice(V,1)[0];On(null,X.firstChild),X.remove()}se&&(J.splice(V,1),Tn.splice(V,1)[0].remove(),br.splice(V,1),fi.splice(V,1)),tt("delSeries",V)}r.delSeries=Xr;const gi=[!1,!1,!1,!1];function Fr(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=_[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=_[V.scale]);let ge=oe.time;V.size=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),Qo(V.incrs)&&V.incrs.forEach(Ie=>{!Zo.has(Ie)&&Zo.set(Ie,om(Ie))}),V.incrs=zt(V.incrs||(oe.distr==2?SA:ge?b==1?$A:IA:Is)),V.splits=zt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?hh:oe.distr==4?GA:KA)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=Qo(xe)&&!Qo(xe[0])?zt(xe):ge?Qo(xe)?Cm(N,xm(xe,B)):am(xe)?LA(N,xe):xe||K:xe||qA,V.filter=zt(V.filter||(oe.distr>=3&&oe.log==10?ZA:oe.distr==3&&oe.log==2?QA:tm)),V.font=rv(V.font),V.labelFont=rv(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(gi[X]=!0,V._el=Oi(Nk,u))}}function Ot(V,X,ie,oe){let[ge,xe,Ie,Pe]=ie,Be=X%2,qe=0;return Be==0&&(Pe||xe)&&(qe=X==0&&!ge||X==2&&!Ie?cr(Im.size/3):0),Be==1&&(ge||Ie)&&(qe=X==1&&!xe||X==3&&!Pe?cr(Om.size/2):0),qe}const Mo=r.padding=(n.padding||[Ot,Ot,Ot,Ot]).map(V=>zt(Qt(V,Ot))),wr=r._padding=Mo.map((V,X)=>V(r,X,gi,0));let ce,ze=null,Fe=null;const St=f==1?x[0].idxs:null;let Yt=null,jt=!1;function xr(V,X){if(t=V??[],r.data=r._data=t,f==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Yt=t[0],ce=Yt.length;let ie=t;if(P==2){ie=t.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=t=ie}if(io(!0),tt("setData"),P==2&&(Gr=!0),X!==!1){let ie=z;ie.auto(r,jt)?dr():ir(C,ie.min,ie.max),Ai=Ai||ne.left>=0,Bn=!0,xo()}}r.setData=xr;function dr(){jt=!0;let V,X;f==1&&(ce>0?(ze=St[0]=0,Fe=St[1]=ce-1,V=t[0][ze],X=t[0][Fe],P==2?(V=ze,X=Fe):V==X&&(P==3?[V,X]=Ql(V,V,z.log,!1):P==4?[V,X]=Qu(V,V,z.log,!1):z.time?X=V+cr(86400/b):[V,X]=Jl(V,X,Ju,!0))):(ze=St[0]=V=null,Fe=St[1]=X=null)),ir(C,V,X)}let zn,Cr,mn,no,Pr,ts,Ds,Fs,ns,pr;function Ps(V,X,ie,oe,ge,xe){V??(V=Og),ie??(ie=rh),oe??(oe="butt"),ge??(ge=Og),xe??(xe="round"),V!=zn&&(l.strokeStyle=zn=V),ge!=Cr&&(l.fillStyle=Cr=ge),X!=mn&&(l.lineWidth=mn=X),xe!=Pr&&(l.lineJoin=Pr=xe),oe!=ts&&(l.lineCap=ts=oe),ie!=no&&l.setLineDash(no=ie)}function Io(V,X,ie,oe){X!=Cr&&(l.fillStyle=Cr=X),V!=Ds&&(l.font=Ds=V),ie!=Fs&&(l.textAlign=Fs=ie),oe!=ns&&(l.textBaseline=ns=oe)}function rs(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,jt)&&(X==null||X.min==null)){let xe=Qt(ze,0),Ie=Qt(Fe,oe.length-1),Pe=ie.min==null?Zk(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=Qi(V.min,ie.min=Pe[0]),V.max=Hr(V.max,ie.max=Pe[1])}}const is={min:null,max:null};function bo(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,jt))&&(A[oe]=is)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=is)}A[C]!=null&&io(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=ha(_[oe],sA);if(ge.min!=null)nr(xe,ge);else if(oe!=C||f==2)if(ce==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=pn,xe.max=-pn}}if(ce>0){x.forEach((oe,ge)=>{if(f==1){let xe=oe.scale,Ie=A[xe];if(Ie==null)return;let Pe=V[xe];if(ge==0){let Be=Pe.range(r,Pe.min,Pe.max,xe);Pe.min=Be[0],Pe.max=Be[1],ze=Zi(Pe.min,t[0]),Fe=Zi(Pe.max,t[0]),Fe-ze>1&&(t[0][ze]<Pe.min&&ze++,t[0][Fe]>Pe.max&&Fe--),oe.min=Yt[ze],oe.max=Yt[Fe]}else oe.show&&oe.auto&&rs(Pe,Ie,oe,t[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Pe=xe.scale,Be=Ie.scale,[qe,Ye]=t[ge],Qe=V[Pe],yt=V[Be];Qe!=null&&rs(Qe,A[Pe],xe,qe,xe.sorted),yt!=null&&rs(yt,A[Be],Ie,Ye,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==pn?null:ge.min,ge.max==-pn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=_[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?$o(xe.min):Ie==4?th(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?$o(xe.max):Ie==4?th(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{f==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)Gr=!0,tt("setScale",oe);se&&ne.left>=0&&(Ai=Bn=!0)}for(let oe in A)A[oe]=null}function Ws(V){let X=nh(ze-1,0,ce-1),ie=nh(Fe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function wa(){if(ce>0){let V=x.some(X=>X._focus)&&pr!=hr.alpha;V&&(l.globalAlpha=pr=hr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(os(ie,!1),os(ie,!0),X._paths==null)){let oe=pr;pr!=X.alpha&&(l.globalAlpha=pr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Ws(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),pr!=oe&&(l.globalAlpha=pr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=pr;pr!=X.alpha&&(l.globalAlpha=pr=X.alpha),X._paths!=null&&ss(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Fe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,ze,Fe,Ie),ss(ie,!0))}pr!=oe&&(l.globalAlpha=pr=oe),tt("drawSeries",ie)}}),V&&(l.globalAlpha=pr=1)}}function os(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function ss(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Pe=ie._stroke,_fill:Be=ie._fill,_width:qe=ie.width}=ie._paths;qe=fn(qe*en,3);let Ye=null,Qe=qe%2/2;X&&Be==null&&(Be=qe>0?"#fff":Pe);let yt=ie.pxAlign==1&&Qe>0;if(yt&&l.translate(Qe,Qe),!X){let Pt=Wn-qe/2,wt=Nn-qe/2,Nt=Gt+qe,dt=ln+qe;Ye=new Path2D,Ye.rect(Pt,wt,Nt,dt)}X?Eo(Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,xe):Bs(V,Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,Ye,xe),yt&&l.translate(-Qe,-Qe)}function Bs(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye){let Qe=!1;Be!=0&&k.forEach((yt,Pt)=>{if(yt.series[0]==V){let wt=x[yt.series[1]],Nt=t[yt.series[1]],dt=(wt._paths||Xa).band;Qo(dt)&&(dt=yt.dir==1?dt[0]:dt[1]);let rt,vn=null;wt.show&&dt&&Jk(Nt,ze,Fe)?(vn=yt.fill(r,Pt)||xe,rt=wt._paths.clip):dt=null,Eo(X,ie,oe,ge,vn,Ie,Pe,Be,qe,Ye,rt,dt),Qe=!0}}),Qe||Eo(X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye)}const as=pa|ph;function Eo(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye,Qe){Ps(V,X,ie,oe,ge),(Be||qe||Qe)&&(l.save(),Be&&l.clip(Be),qe&&l.clip(qe)),Qe?(Pe&as)==as?(l.clip(Qe),Ye&&l.clip(Ye),fr(ge,Ie),Fi(V,xe,X)):Pe&ph?(fr(ge,Ie),l.clip(Qe),Fi(V,xe,X)):Pe&pa&&(l.save(),l.clip(Qe),Ye&&l.clip(Ye),fr(ge,Ie),l.restore(),Fi(V,xe,X)):(fr(ge,Ie),Fi(V,xe,X)),(Be||qe||Qe)&&l.restore()}function Fi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=zn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function fr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Cr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function wo(V,X,ie,oe){let ge=R[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=wS(X,ie,Pe,oe,Ie)}return ge._found=xe}function ro(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe){let Ye=Ie%2/2;a==1&&l.translate(Ye,Ye),Ps(Pe,Ie,Be,qe,Pe),l.beginPath();let Qe,yt,Pt,wt,Nt=ge+(oe==0||oe==3?-xe:xe);ie==0?(yt=ge,wt=Nt):(Qe=ge,Pt=Nt);for(let dt=0;dt<V.length;dt++)X[dt]!=null&&(ie==0?Qe=Pt=V[dt]:yt=wt=V[dt],l.moveTo(Qe,yt),l.lineTo(Pt,wt));l.stroke(),a==1&&l.translate(-Ye,-Ye)}function xa(V){let X=!0;return R.forEach((ie,oe)=>{if(!ie.show)return;let ge=_[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,io(!1));return}else ie._show||(X=!1,ie._show=!0,io(!1));let xe=ie.side,Ie=xe%2,{min:Pe,max:Be}=ge,[qe,Ye]=wo(oe,Pe,Be,Ie==0?mt:je);if(Ye==0)return;let Qe=ge.distr==2,yt=ie._splits=ie.splits(r,oe,Pe,Be,qe,Ye,Qe),Pt=ge.distr==2?yt.map(rt=>Yt[rt]):yt,wt=ge.distr==2?Yt[yt[1]]-Yt[yt[0]]:qe,Nt=ie._values=ie.values(r,ie.filter(r,Pt,oe,Ye,wt),oe,Ye,wt);ie._rotate=xe==2?ie.rotate(r,Nt,oe,Ye):0;let dt=ie._size;ie._size=Ni(ie.size(r,Nt,oe,V)),dt!=null&&ie._size!=dt&&(X=!1)}),X}function hl(V){let X=!0;return Mo.forEach((ie,oe)=>{let ge=ie(r,oe,gi,V);ge!=wr[oe]&&(X=!1),wr[oe]=ge}),X}function Ro(){for(let V=0;V<R.length;V++){let X=R[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ie=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[Be,qe]=X._found;if(X.label!=null){let dn=X.labelGap*Pe,_r=cr((X._lpos+dn)*en);Io(X.labelFont[0],Ie,"center",ie==2?Ka:Lg),l.save(),oe==1?(ge=xe=0,l.translate(_r,cr(Nn+ln/2)),l.rotate((ie==3?-ec:ec)/2)):(ge=cr(Wn+Gt/2),xe=_r);let Fo=Jg(X.label)?X.label(r,V,Be,qe):X.label;l.fillText(Fo,ge,xe),l.restore()}if(qe==0)continue;let Ye=_[X.scale],Qe=oe==0?Gt:ln,yt=oe==0?Wn:Nn,Pt=X._splits,wt=Ye.distr==2?Pt.map(dn=>Yt[dn]):Pt,Nt=Ye.distr==2?Yt[Pt[1]]-Yt[Pt[0]]:Be,dt=X.ticks,rt=X.border,vn=dt.show?dt.size:0,En=cr(vn*en),sr=cr((X.alignTo==2?X._size-vn-X.gap:X.gap)*en),qt=X._rotate*-ec/180,fe=p(X._pos*en),$e=(En+sr)*Pe,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],ut=X.align==1?sa:X.align==2?Hu:qt>0?sa:qt<0?Hu:oe==0?"center":ie==3?Hu:sa,$t=qt||oe==1?"middle":ie==2?Ka:Lg;Io(Ue,Ie,ut,$t);let Zt=X.font[1]*X.lineGap,It=Pt.map(dn=>p(w(dn,Ye,Qe,yt))),Jr=X._values;for(let dn=0;dn<Jr.length;dn++){let _r=Jr[dn];if(_r!=null){oe==0?ge=It[dn]:xe=It[dn],_r=""+_r;let Fo=_r.indexOf(`
|
|
1492
|
+
`)==-1?[_r]:_r.split(/\n/gm);for(let Vn=0;Vn<Fo.length;Vn++){let Hs=Fo[Vn];qt?(l.save(),l.translate(ge,xe+Vn*Zt),l.rotate(qt),l.fillText(Hs,0,0),l.restore()):l.fillText(Hs,ge,xe+Vn*Zt)}}}dt.show&&ro(It,dt.filter(r,wt,V,qe,Nt),oe,ie,fe,En,fn(dt.width*en,3),dt.stroke(r,V),dt.dash,dt.cap);let Hi=X.grid;Hi.show&&ro(It,Hi.filter(r,wt,V,qe,Nt),oe,oe==0?2:1,oe==0?Nn:Wn,oe==0?ln:Gt,fn(Hi.width*en,3),Hi.stroke(r,V),Hi.dash,Hi.cap),rt.show&&ro([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Wn,oe==1?ln:Gt,fn(rt.width*en,3),rt.stroke(r,V),rt.dash,rt.cap)}tt("drawAxes")}function io(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(f==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Lo=!1,ls=!1,Oo=[];function Ca(){ls=!1;for(let V=0;V<Oo.length;V++)tt(...Oo[V]);Oo.length=0}function xo(){Lo||(pA(ka),Lo=!0)}function We(V,X=!1){Lo=!0,ls=X,V(r),ka(),X&&Oo.length>0&&queueMicrotask(Ca)}r.batch=We;function ka(){if(Dr&&(bo(),Dr=!1),Gr&&(Yr(),Gr=!1),Kr){if(wn(c,sa,Lt),wn(c,Ka,Ht),wn(c,Va,mt),wn(c,qa,je),wn(i,sa,Lt),wn(i,Ka,Ht),wn(i,Va,mt),wn(i,qa,je),wn(u,Va,Zn),wn(u,qa,Tr),s.width=cr(Zn*en),s.height=cr(Tr*en),R.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;wn(V,Ie?"left":"top",oe-xe),wn(V,Ie?"width":"height",ie),wn(V,Ie?"top":"left",Ie?Ht:Lt),wn(V,Ie?"height":"width",Ie?je:mt),Yu(V,_s)}else xi(V,_s)}),zn=Cr=mn=Pr=ts=Ds=Fs=ns=no=null,pr=1,W(!0),Lt!=$n||Ht!=yr||mt!=ur||je!=gn){io(!1);let V=mt/ur,X=je/gn;if(se&&!Ai&&ne.left>=0){ne.left*=V,ne.top*=X,Si&&ho(Si,cr(ne.left),0,mt,je),Qn&&ho(Qn,0,cr(ne.top),mt,je);for(let ie=0;ie<Tn.length;ie++){let oe=Tn[ie];oe!=null&&(br[ie]*=V,fi[ie]*=X,ho(oe,Ni(br[ie]),Ni(fi[ie]),mt,je))}}if(vt.show&&!ci&&vt.left>=0&&vt.width>0){vt.left*=V,vt.width*=V,vt.top*=X,vt.height*=X;for(let ie in Y)wn(Zr,ie,vt[ie])}$n=Lt,yr=Ht,ur=mt,gn=je}tt("setSize"),Kr=!1}Zn>0&&Tr>0&&(l.clearRect(0,0,s.width,s.height),tt("drawClear"),D.forEach(V=>V()),tt("draw")),vt.show&&ci&&(hn(vt),ci=!1),se&&Ai&&(S(null,!0,!1),Ai=!1),he.show&&he.live&&Bn&&(y(),Bn=!1),h||(h=!0,r.status=1,tt("ready")),jt=!1,Lo=!1}r.redraw=(V,X)=>{Gr=X||!1,V!==!1?ir(C,z.min,z.max):xo()};function Ne(V,X){let ie=_[V];if(ie.from==null){if(ce==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(ce>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ce>0&&(X.min=Zi(X.min,t[0]),X.max=Zi(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Dr=!0,xo()}}r.setScale=Ne;let Dn,No,Si,Qn,Aa,Do,Pi,Co,nn,Jt,rn,Ut,Wi=!1;const Hn=ne.drag;let He=Hn.x,yn=Hn.y;se&&(ne.x&&(Dn=Oi(Fk,i)),ne.y&&(No=Oi(Pk,i)),z.ori==0?(Si=Dn,Qn=No):(Si=No,Qn=Dn),rn=ne.left,Ut=ne.top);const vt=r.select=nr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Zr=vt.show?Oi(Dk,vt.over?i:c):null;function hn(V,X){if(vt.show){for(let ie in V)vt[ie]=V[ie],ie in Y&&wn(Zr,ie,V[ie]);X!==!1&&tt("setSelect")}}r.setSelect=hn;function Sn(V){if(x[V].show)le&&Yu(Me[V],_s);else if(le&&xi(Me[V],_s),se){let X=An?Tn[0]:Tn[V];X!=null&&ho(X,-10,-10,mt,je)}}function ir(V,X,ie){Ne(V,{min:X,max:ie})}function Qr(V,X,ie,oe){X.focus!=null&&kr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,Sn(xe),f==2?(ir(ge.facets[0].scale,null,null),ir(ge.facets[1].scale,null,null)):ir(ge.scale,null,null),xo())}),ie!==!1&&tt("setSeries",V,X),oe&&_t("setSeries",r,V,X)}r.setSeries=Qr;function Bi(V,X){nr(k[V],X)}function jn(V,X){V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function mi(V){V==null?k.length=0:k.splice(V,1)}r.addBand=jn,r.setBand=Bi,r.delBand=mi;function cs(V,X){x[V].alpha=X,se&&Tn[V]!=null&&(Tn[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Un,_i,$i;const zi={focus:!0};function kr(V){if(V!=$i){let X=V==null,ie=hr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&cs(ge,xe?1:hr.alpha)}}),$i=V,ie&&xo()}}le&&pi&&un(Fg,me,V=>{ne._lock||(di(V),$i!=null&&Qr(null,zi,!0,ct.setSeries))});function Ar(V,X,ie){let oe=_[X];ie&&(V=V/en-(oe.ori==1?Ht:Lt));let ge=mt;oe.ori==1&&(ge=je,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Pe=V/ge,Be=xe+(Ie-xe)*Pe,qe=oe.distr;return qe==3?ca(10,Be):qe==4?tA(Be,oe.asinh):qe==100?oe.bwd(Be):Be}function Mr(V,X){let ie=Ar(V,C,X);return Zi(ie,t[0],ze,Fe)}r.valToIdx=V=>Zi(V,t[0]),r.posToIdx=Mr,r.posToVal=Ar,r.valToPos=(V,X,ie)=>_[X].ori==0?g(V,_[X],ie?Gt:mt,ie?Wn:0):m(V,_[X],ie?ln:je,ie?Nn:0),r.setCursor=(V,X,ie)=>{rn=V.left,Ut=V.top,S(null,X,ie)};function zs(V,X){wn(Zr,sa,vt.left=V),wn(Zr,Va,vt.width=X)}function Ir(V,X){wn(Zr,Ka,vt.top=V),wn(Zr,qa,vt.height=X)}let Wr=z.ori==0?zs:Ir,Ti=z.ori==1?zs:Ir;function Mi(){if(le&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&at)continue;let X=he.values[V],ie=0;for(let oe in X)Xe[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):oA(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!at)&&T(ie,J[ie]);Mi()}Bn=!1,X!==!1&&tt("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&P==2?Yt:t[V],ge;at?ge=ie.values(r,V,X)??et:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?et:{_:ge}),he.values[V]=ge}function S(V,X,ie){nn=rn,Jt=Ut,[rn,Ut]=ne.move(r,rn,Ut),ne.left=rn,ne.top=Ut,se&&(Si&&ho(Si,cr(rn),0,mt,je),Qn&&ho(Qn,0,cr(Ut),mt,je));let oe,ge=ze>Fe;Un=pn,_i=null;let xe=z.ori==0?mt:je,Ie=z.ori==1?mt:je;if(rn<0||ce==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let Be=Tn[Pe];Be!=null&&ho(Be,-10,-10,mt,je)}pi&&Qr(null,zi,!0,V==null&&ct.setSeries),he.live&&(J.fill(oe),Bn=!0)}else{let Pe,Be,qe;f==1&&(Pe=z.ori==0?rn:Ut,Be=Ar(Pe,C),oe=ne.idx=Zi(Be,t[0],ze,Fe),qe=O(t[0][oe],z,xe,0));let Ye=-10,Qe=-10,yt=0,Pt=0,wt=!0,Nt="",dt="";for(let rt=f==2?1:0;rt<x.length;rt++){let vn=x[rt],En=J[rt],sr=En==null?null:f==1?t[rt][En]:t[rt][1][En],qt=ne.dataIdx(r,rt,oe,Be),fe=qt==null?null:f==1?t[rt][qt]:t[rt][1][qt];if(Bn=Bn||fe!=sr||qt!=En,J[rt]=qt,rt>0&&vn.show){let $e=qt==null?-10:qt==oe?qe:O(f==1?t[0][qt]:t[rt][0][qt],z,xe,0),Ce=fe==null?-10:$(fe,f==1?_[vn.scale]:_[vn.facets[1].scale],Ie,0);if(pi&&fe!=null){let Ue=z.ori==1?rn:Ut,ut=lr(hr.dist(r,rt,qt,Ce,Ue));if(ut<Un){let $t=hr.bias;if($t!=0){let Zt=Ar(Ue,vn.scale),It=fe>=0?1:-1,Jr=Zt>=0?1:-1;Jr==It&&(Jr==1?$t==1?fe>=Zt:fe<=Zt:$t==1?fe<=Zt:fe>=Zt)&&(Un=ut,_i=rt)}else Un=ut,_i=rt}}if(Bn||An){let Ue,ut;z.ori==0?(Ue=$e,ut=Ce):(Ue=Ce,ut=$e);let $t,Zt,It,Jr,Hi,dn,_r=!0,Fo=kn.bbox;if(Fo!=null){_r=!1;let Vn=Fo(r,rt);It=Vn.left,Jr=Vn.top,$t=Vn.width,Zt=Vn.height}else It=Ue,Jr=ut,$t=Zt=kn.size(r,rt);if(dn=kn.fill(r,rt),Hi=kn.stroke(r,rt),An)rt==_i&&Un<=hr.prox&&(Ye=It,Qe=Jr,yt=$t,Pt=Zt,wt=_r,Nt=dn,dt=Hi);else{let Vn=Tn[rt];Vn!=null&&(br[rt]=It,fi[rt]=Jr,Ug(Vn,$t,Zt,_r),Hg(Vn,dn,Hi),ho(Vn,Ni(It),Ni(Jr),mt,je))}}}}if(An){let rt=hr.prox,vn=$i==null?Un<=rt:Un>rt||_i!=$i;if(Bn||vn){let En=Tn[0];En!=null&&(br[0]=Ye,fi[0]=Qe,Ug(En,yt,Pt,wt),Hg(En,Nt,dt),ho(En,Ni(Ye),Ni(Qe),mt,je))}}}if(vt.show&&Wi)if(V!=null){let[Pe,Be]=ct.scales,[qe,Ye]=ct.match,[Qe,yt]=V.cursor.sync.scales,Pt=V.cursor.drag;if(He=Pt._x,yn=Pt._y,He||yn){let{left:wt,top:Nt,width:dt,height:rt}=V.select,vn=V.scales[Qe].ori,En=V.posToVal,sr,qt,fe,$e,Ce,Ue=Pe!=null&&qe(Pe,Qe),ut=Be!=null&&Ye(Be,yt);Ue&&He?(vn==0?(sr=wt,qt=dt):(sr=Nt,qt=rt),fe=_[Pe],$e=O(En(sr,Qe),fe,xe,0),Ce=O(En(sr+qt,Qe),fe,xe,0),Wr(Qi($e,Ce),lr(Ce-$e))):Wr(0,xe),ut&&yn?(vn==1?(sr=wt,qt=dt):(sr=Nt,qt=rt),fe=_[Be],$e=$(En(sr,yt),fe,Ie,0),Ce=$(En(sr+qt,yt),fe,Ie,0),Ti(Qi($e,Ce),lr(Ce-$e))):Ti(0,Ie)}else Z()}else{let Pe=lr(nn-Aa),Be=lr(Jt-Do);if(z.ori==1){let yt=Pe;Pe=Be,Be=yt}He=Hn.x&&Pe>=Hn.dist,yn=Hn.y&&Be>=Hn.dist;let qe=Hn.uni;qe!=null?He&&yn&&(He=Pe>=qe,yn=Be>=qe,!He&&!yn&&(Be>Pe?yn=!0:He=!0)):Hn.x&&Hn.y&&(He||yn)&&(He=yn=!0);let Ye,Qe;He&&(z.ori==0?(Ye=Pi,Qe=rn):(Ye=Co,Qe=Ut),Wr(Qi(Ye,Qe),lr(Qe-Ye)),yn||Ti(0,Ie)),yn&&(z.ori==1?(Ye=Pi,Qe=rn):(Ye=Co,Qe=Ut),Ti(Qi(Ye,Qe),lr(Qe-Ye)),He||Wr(0,xe)),!He&&!yn&&(Wr(0,0),Ti(0,0))}if(Hn._x=He,Hn._y=yn,V==null){if(ie){if(Mn!=null){let[Pe,Be]=ct.scales;ct.values[0]=Pe!=null?Ar(z.ori==0?rn:Ut,Pe):null,ct.values[1]=Be!=null?Ar(z.ori==1?rn:Ut,Be):null}_t(Uu,r,rn,Ut,mt,je,oe)}if(pi){let Pe=ie&&ct.setSeries,Be=hr.prox;$i==null?Un<=Be&&Qr(_i,zi,!0,Pe):Un>Be?Qr(null,zi,!0,Pe):_i!=$i&&Qr(_i,zi,!0,Pe)}}Bn&&(he.idx=oe,y()),X!==!1&&tt("setCursor")}let F=null;Object.defineProperty(r,"rect",{get(){return F==null&&W(!1),F}});function W(V=!1){V?F=null:(F=i.getBoundingClientRect(),tt("syncRect",F))}function H(V,X,ie,oe,ge,xe,Ie){ne._lock||Wi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ie,Pe,Be){if(F==null&&W(!1),di(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){rn=-10,Ut=-10;return}let[qe,Ye]=ct.scales,Qe=X.cursor.sync,[yt,Pt]=Qe.values,[wt,Nt]=Qe.scales,[dt,rt]=ct.match,vn=X.axes[0].side%2==1,En=z.ori==0?mt:je,sr=z.ori==1?mt:je,qt=vn?xe:ge,fe=vn?ge:xe,$e=vn?oe:ie,Ce=vn?ie:oe;if(wt!=null?ie=dt(qe,wt)?w(yt,_[qe],En,0):-10:ie=En*($e/qt),Nt!=null?oe=rt(Ye,Nt)?w(Pt,_[Ye],sr,0):-10:oe=sr*(Ce/fe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}Be&&(X==null||X.cursor.event.type==Uu)&&((ie<=1||ie>=mt-1)&&(ie=Ms(ie,mt)),(oe<=1||oe>=je-1)&&(oe=Ms(oe,je))),Pe?(Aa=ie,Do=oe,[Pi,Co]=ne.move(r,ie,oe)):(rn=ie,Ut=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){hn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){Wi=!0,He=yn=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(un(Vu,Ku,we,!1),_t(Ng,r,Pi,Co,mt,je,null));let{left:Pe,top:Be,width:qe,height:Ye}=vt;re=Pe,ae=Be,be=qe,ke=Ye}function we(V,X,ie,oe,ge,xe,Ie){Wi=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Pe,top:Be,width:qe,height:Ye}=vt,Qe=qe>0||Ye>0,yt=re!=Pe||ae!=Be||be!=qe||ke!=Ye;if(Qe&&yt&&hn(vt),Hn.setScale&&Qe&&yt){let Pt=Pe,wt=qe,Nt=Be,dt=Ye;if(z.ori==1&&(Pt=Be,wt=Ye,Nt=Pe,dt=qe),He&&ir(C,Ar(Pt,C),Ar(Pt+wt,C)),yn)for(let rt in _){let vn=_[rt];rt!=C&&vn.from==null&&vn.min!=pn&&ir(rt,Ar(Nt+dt,rt),Ar(Nt,rt))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(On(Vu,Ku),_t(Vu,r,rn,Ut,mt,je,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;di(V);let Pe=Wi;if(Wi){let Be=!0,qe=!0,Ye=10,Qe,yt;z.ori==0?(Qe=He,yt=yn):(Qe=yn,yt=He),Qe&&yt&&(Be=rn<=Ye||rn>=mt-Ye,qe=Ut<=Ye||Ut>=je-Ye),Qe&&Be&&(rn=rn<Pi?0:mt),yt&&qe&&(Ut=Ut<Co?0:je),S(null,!0,!0),Wi=!1}rn=-10,Ut=-10,J.fill(null),S(null,!0,!0),Pe&&(Wi=Pe)}function Le(V,X,ie,oe,ge,xe,Ie){ne._lock||(di(V),dr(),Z(),V!=null&&_t(Pg,r,rn,Ut,mt,je,null))}function Ve(){R.forEach(xS),to(r.width,r.height,!0)}$s(Yl,la,Ve);const st={};st.mousedown=ve,st.mousemove=H,st.mouseup=we,st.dblclick=Le,st.setSeries=(V,X,ie,oe)=>{let ge=ct.match[2];ie=ge(r,X,ie),ie!=-1&&Qr(ie,oe,!0,!1)},se&&(un(Ng,i,ve),un(Uu,i,H),un(Dg,i,V=>{di(V),W(!1)}),un(Fg,i,Oe),un(Pg,i,Le),vh.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function tt(V,X,ie){ls?Oo.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const bn=(V,X,ie)=>ie,ct=nr({key:null,setSeries:!1,filters:{pub:nm,sub:nm},scales:[C,x[1]?x[1].scale:null],match:[rm,rm,bn],values:[null,null]},ne.sync);ct.match.length==2&&ct.match.push(bn),ne.sync=ct;const Mn=ct.key,bt=zm(Mn);function _t(V,X,ie,oe,ge,xe,Ie){ct.filters.pub(V,X,ie,oe,ge,xe,Ie)&&bt.pub(V,X,ie,oe,ge,xe,Ie)}bt.sub(r);function or(V,X,ie,oe,ge,xe,Ie){ct.filters.sub(V,X,ie,oe,ge,xe,Ie)&&st[V](null,X,ie,oe,ge,xe,Ie)}r.pub=or;function Sr(){bt.unsub(r),vh.delete(r),vr.clear(),Zu(Yl,la,Ve),d.remove(),me==null||me.remove(),tt("destroy")}r.destroy=Sr;function In(){tt("init",n,t),xr(t||n.data,!1),A[C]?Ne(C,A[C]):dr(),ci=vt.show&&(vt.width>0||vt.height>0),Ai=Bn=!0,to(n.width,n.height)}return x.forEach(yo),R.forEach(Fr),e?e instanceof HTMLElement?(e.appendChild(d),In()):e(r,In):In(),r}Or.assign=nr,Or.fmtNum=eh,Or.rangeNum=Jl,Or.rangeLog=Ql,Or.rangeAsinh=Qu,Or.orient=Es,Or.pxRatio=en,Or.join=dA,Or.fmtDate=ih,Or.tzDate=kA,Or.sync=zm;{Or.addGap=oS,Or.clipGaps=sc;let n=Or.paths={points:Gm};n.linear=Xm,n.stepped=lS,n.bars=cS,n.spline=hS}var iv,ov;function CS(){return ov||(ov=1,iv=function(n,t,e,r,f){var g,m;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(g=r+(f-r>>>1),m=+e(n[g],t,g,n),m<0)r=g+1;else if(m>0)f=g-1;else return g;return~r}),iv}var kS=CS();const mD=Kn("e",Rl(kS));var bh,sv;function AS(){if(sv)return bh;sv=1;function n(t,e,r){var f=-1,g=t.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var m=Array(g);++f<g;)m[f]=t[f+e];return m}return bh=n,bh}var wh,av;function SS(){if(av)return wh;av=1;var n=AS();function t(e,r,f){var g=e.length;return f=f===void 0?g:f,!r&&f>=g?e:n(e,r,f)}return wh=t,wh}var xh,lv;function cv(){if(lv)return xh;lv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="\\u200d",w=RegExp("["+m+n+f+g+"]");function h(d){return w.test(d)}return xh=h,xh}var Ch,uv;function _S(){if(uv)return Ch;uv=1;function n(t){return t.split("")}return Ch=n,Ch}var kh,hv;function $S(){if(hv)return kh;hv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="["+n+"]",w="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",a="["+g+"]?",p="(?:"+c+"(?:"+[s,l,u].join("|")+")"+a+i+")*",b=a+i+p,x="(?:"+[s+w+"?",w,l,u,m].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+b,"g");function _(k){return k.match(R)||[]}return kh=_,kh}var Ah,dv;function TS(){if(dv)return Ah;dv=1;var n=_S(),t=cv(),e=$S();function r(f){return t(f)?e(f):n(f)}return Ah=r,Ah}var Sh,pv;function MS(){if(pv)return Sh;pv=1;var n=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo;return Sh=n,Sh}var _h,fv;function IS(){if(fv)return _h;fv=1;var n=MS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return _h=e,_h}var $h,gv;function Th(){if(gv)return $h;gv=1;var n=IS(),t=n.Symbol;return $h=t,$h}var Mh,mv;function ES(){if(mv)return Mh;mv=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,g=Array(f);++r<f;)g[r]=e(t[r],r,t);return g}return Mh=n,Mh}var Ih,vv;function RS(){if(vv)return Ih;vv=1;var n=Array.isArray;return Ih=n,Ih}var Eh,yv;function LS(){if(yv)return Eh;yv=1;var n=Th(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function g(m){var w=e.call(m,f),h=m[f];try{m[f]=void 0;var d=!0}catch{}var s=r.call(m);return d&&(w?m[f]=h:delete m[f]),s}return Eh=g,Eh}var Rh,bv;function OS(){if(bv)return Rh;bv=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Rh=e,Rh}var Lh,wv;function NS(){if(wv)return Lh;wv=1;var n=Th(),t=LS(),e=OS(),r="[object Null]",f="[object Undefined]",g=n?n.toStringTag:void 0;function m(w){return w==null?w===void 0?f:r:g&&g in Object(w)?t(w):e(w)}return Lh=m,Lh}var Oh,xv;function DS(){if(xv)return Oh;xv=1;function n(t){return t!=null&&typeof t=="object"}return Oh=n,Oh}var Nh,Cv;function FS(){if(Cv)return Nh;Cv=1;var n=NS(),t=DS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Nh=r,Nh}var Dh,kv;function PS(){if(kv)return Dh;kv=1;var n=Th(),t=ES(),e=RS(),r=FS(),f=n?n.prototype:void 0,g=f?f.toString:void 0;function m(w){if(typeof w=="string")return w;if(e(w))return t(w,m)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Dh=m,Dh}var Fh,Av;function uc(){if(Av)return Fh;Av=1;var n=PS();function t(e){return e==null?"":n(e)}return Fh=t,Fh}var Ph,Sv;function WS(){if(Sv)return Ph;Sv=1;var n=SS(),t=cv(),e=TS(),r=uc();function f(g){return function(m){m=r(m);var w=t(m)?e(m):void 0,h=w?w[0]:m.charAt(0),d=w?n(w,1).join(""):m.slice(1);return h[g]()+d}}return Ph=f,Ph}var Wh,_v;function $v(){if(_v)return Wh;_v=1;var n=WS(),t=n("toUpperCase");return Wh=t,Wh}var BS=$v();const zS=Rl(BS);var Bh,Tv;function HS(){if(Tv)return Bh;Tv=1;var n=uc(),t=$v();function e(r){return t(n(r).toLowerCase())}return Bh=e,Bh}var zh,Mv;function jS(){if(Mv)return zh;Mv=1;function n(t,e,r,f){var g=-1,m=t==null?0:t.length;for(f&&m&&(r=t[++g]);++g<m;)r=e(r,t[g],g,t);return r}return zh=n,zh}var Hh,Iv;function US(){if(Iv)return Hh;Iv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Hh=n,Hh}var jh,Ev;function VS(){if(Ev)return jh;Ev=1;var n=US(),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 jh=e,jh}var Uh,Rv;function qS(){if(Rv)return Uh;Rv=1;var n=VS(),t=uc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",m=r+f+g,w="["+m+"]",h=RegExp(w,"g");function d(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return Uh=d,Uh}var Vh,Lv;function KS(){if(Lv)return Vh;Lv=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Vh=t,Vh}var qh,Ov;function GS(){if(Ov)return qh;Ov=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 qh=t,qh}var Kh,Nv;function YS(){if(Nv)return Kh;Nv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\u2700-\\u27bf",m="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c=w+h+d+s,i="['’]",a="["+c+"]",p="["+f+"]",b="\\d+",x="["+g+"]",R="["+m+"]",_="[^"+n+c+b+g+m+l+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+p+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",z="\\u200d",P="(?:"+R+"|"+_+")",O="(?:"+I+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,E].join("|")+")"+B+N+")*",K="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+N+U,he="(?:"+[x,D,E].join("|")+")"+J,ne=RegExp([I+"?"+R+"+"+$+"(?="+[a,I,"$"].join("|")+")",O+"+"+A+"(?="+[a,I+P,"$"].join("|")+")",I+"?"+P+"+"+$,I+"+"+A,Q,K,b,he].join("|"),"g");function le(se){return se.match(ne)||[]}return Kh=le,Kh}var Gh,Dv;function XS(){if(Dv)return Gh;Dv=1;var n=KS(),t=GS(),e=uc(),r=YS();function f(g,m,w){return g=e(g),m=w?void 0:m,m===void 0?t(g)?r(g):n(g):g.match(m)||[]}return Gh=f,Gh}var Yh,Fv;function ZS(){if(Fv)return Yh;Fv=1;var n=jS(),t=qS(),e=XS(),r="['’]",f=RegExp(r,"g");function g(m){return function(w){return n(e(t(w).replace(f,"")),m,"")}}return Yh=g,Yh}var Xh,Pv;function QS(){if(Pv)return Xh;Pv=1;var n=HS(),t=ZS(),e=t(function(r,f,g){return f=f.toLowerCase(),r+(g?n(f):f)});return Xh=e,Xh}var JS=QS();const e_=Rl(JS),t_=Object.assign({"./ArrayWidget.vue":()=>ot(()=>it.import("./ArrayWidget-CR7Wpw3N-a28c62832573c8910d85.js"),void 0),"./ArrayplotWidget.vue":()=>ot(()=>it.import("./ArrayplotWidget-DDEd-jRJ-2211e872a4324164bb01.js"),void 0),"./BlockWidget.vue":()=>ot(()=>it.import("./BlockWidget-CfFgdNSv-2526a161a65380ebb4b1.js"),void 0),"./ButtonWidget.vue":()=>ot(()=>it.import("./ButtonWidget-BaSvtElA-a849d7aaf13625acbb10.js"),void 0),"./CanvasWidget.vue":()=>ot(()=>it.import("./CanvasWidget-DcwDi5Zk-8da7f83c09b0fd1e30a2.js"),void 0),"./CanvasdotWidget.vue":()=>ot(()=>it.import("./CanvasdotWidget--awMOWyz-e49c54a7c468272c8d55.js"),void 0),"./CanvasimageWidget.vue":()=>ot(()=>it.import("./CanvasimageWidget-YP1pCtvb-c69efba326dbfa276c2b.js"),void 0),"./CanvasimagevalueWidget.vue":()=>ot(()=>it.import("./CanvasimagevalueWidget-CjVHb2uj-fd911f4d52e9aa73181e.js"),void 0),"./CanvaslabelWidget.vue":()=>ot(()=>it.import("./CanvaslabelWidget-DoMplTTO-fbc1f303852bec51677b.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>ot(()=>it.import("./CanvaslabelvalueWidget-Dyo_ogHn-5f7d285c0552ed39f7df.js"),void 0),"./CanvaslineWidget.vue":()=>ot(()=>it.import("./CanvaslineWidget-D7W1TIxm-cf82ffd80d55b09dbf4e.js"),void 0),"./CanvaslinevalueWidget.vue":()=>ot(()=>it.import("./CanvaslinevalueWidget-BOZyJuLE-6c6efb496f53eec3cfaf.js"),void 0),"./CheckbuttonWidget.vue":()=>ot(()=>it.import("./CheckbuttonWidget-B1E4BC6v-a7640a7ccb7038641568.js"),void 0),"./ComboboxWidget.vue":()=>ot(()=>it.import("./ComboboxWidget-BExUBH57-d2470299a2c4e7c8095c.js"),void 0),"./DateWidget.vue":()=>ot(()=>it.import("./DateWidget-_ZmPsi2l-4d3b69843d8a6b20d6d8.js"),void 0),"./DynamicWidget.vue":()=>ot(()=>it.import("./DynamicWidget-DHL7pbgW-9d9ed1ca26f2d770d3a3.js"),void 0),"./FormatvalueWidget.vue":()=>ot(()=>it.import("./FormatvalueWidget-4C0vrL2i-dc2deec086826570de97.js"),void 0),"./HorizontalWidget.vue":()=>ot(()=>it.import("./HorizontalWidget-DbEQYjFC-afddfd1a0b4c14aa877f.js"),void 0),"./HorizontalboxWidget.vue":()=>ot(()=>it.import("./HorizontalboxWidget-CTomf_Iy-1f0e8dcd8f0634081367.js"),void 0),"./HorizontallineWidget.vue":()=>ot(()=>it.import("./HorizontallineWidget-B7xx7ofY-966f2a1896e0fdbe4561.js"),void 0),"./IframeWidget.vue":()=>ot(()=>it.import("./IframeWidget-DK7rbULe-2fde659e20a086c42eb8.js"),void 0),"./ImageviewerWidget.vue":()=>ot(()=>it.import("./ImageviewerWidget-6d6Kl3W_-dc763820a80471aa8495.js"),void 0),"./LabelWidget.vue":()=>ot(()=>it.import("./LabelWidget-D71FfOSw-55622cf48de59fcd50c5.js"),void 0),"./LabelledWidget.vue":()=>ot(()=>it.import("./LabelledWidget-D2ir5kVU-64f7913336635e5f4456.js"),void 0),"./LabelprogressbarWidget.vue":()=>ot(()=>it.import("./LabelprogressbarWidget-C4_YbROz-765cfadd1309e5415c58.js"),void 0),"./LabelsparklineWidget.vue":()=>ot(()=>it.import("./LabelsparklineWidget-CdZ_pM2B-22f6bf59f833f7be8de3.js"),void 0),"./LabelvalueWidget.vue":()=>ot(()=>it.import("./LabelvalueWidget-BS0EPY5h-718c61969874dad6ad66.js"),void 0),"./LabelvaluedescWidget.vue":()=>ot(()=>it.import("./LabelvaluedescWidget-Cpr8_Voq-faabe42b62037e35e98a.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>ot(()=>it.import("./LabelvaluelimitsbarWidget-DTcYbEQS-13107a59827d56fe3d5a.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>ot(()=>it.import("./LabelvaluelimitscolumnWidget-D0ltQ9Ta-2404b009625e144acff7.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>ot(()=>it.import("./LabelvaluerangebarWidget-O8IHjvHs-82f513eb0330767e9f3b.js"),void 0),"./LedWidget.vue":()=>ot(()=>it.import("./LedWidget-DUvJ2v8k-206249f4c6ab464c7357.js"),void 0),"./LimitsbarWidget.vue":()=>ot(()=>it.import("./LimitsbarWidget-BehZv0-k-22c68fb612b5c1b9ea45.js"),void 0),"./LimitscolorWidget.vue":()=>ot(()=>it.import("./LimitscolorWidget-FXT0ZPPH-907137d6fd5d5e72a0e4.js"),void 0),"./LimitscolumnWidget.vue":()=>ot(()=>it.import("./LimitscolumnWidget-CjBy-CCI-c746e04c1b94699b087c.js"),void 0),"./LinegraphWidget.vue":()=>ot(()=>it.import("./LinegraphWidget-lmu_tFKd-9b9b64c1bcf07367d0bb.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>ot(()=>it.import("./MatrixbycolumnsWidget-CCF7rCkV-94904b7936d9597a9bb4.js"),void 0),"./ProgressbarWidget.vue":()=>ot(()=>it.import("./ProgressbarWidget-B5WN658S-4f073e6f03cc9290b39d.js"),void 0),"./RadiobuttonWidget.vue":()=>ot(()=>it.import("./RadiobuttonWidget-B_3nys46-81f5804bc8a9ff8d3ac3.js"),void 0),"./RadiogroupWidget.vue":()=>ot(()=>it.import("./RadiogroupWidget-BiMIL9li-6293f41641a3d68b2460.js"),void 0),"./RangebarWidget.vue":()=>ot(()=>it.import("./RangebarWidget-Dn0GASdi-f2c3417f62181d181fd0.js"),void 0),"./RollupWidget.vue":()=>ot(()=>it.import("./RollupWidget-b62qcG5K-fc98daa6337124baa140.js"),void 0),"./ScrollwindowWidget.vue":()=>ot(()=>it.import("./ScrollwindowWidget-Dn29gs-U-a14fcc91680e783fccc6.js"),void 0),"./SignalWidget.vue":()=>ot(()=>it.import("./SignalWidget-CLi6qask-b579852d66cf498f2eeb.js"),void 0),"./SpacerWidget.vue":()=>ot(()=>it.import("./SpacerWidget-BCA3gdap-92f47a4e3247a72018bc.js"),void 0),"./SparklineWidget.vue":()=>ot(()=>it.import("./SparklineWidget-D8mb4zLt-c2db0098cebf289d7e07.js"),void 0),"./TabbookWidget.vue":()=>ot(()=>it.import("./TabbookWidget-Bkt4g02d-1a8fe73c0f28e729bacb.js"),void 0),"./TextboxWidget.vue":()=>ot(()=>it.import("./TextboxWidget-CR05wO-t-8af8933225c92d276f90.js"),void 0),"./TextfieldWidget.vue":()=>ot(()=>it.import("./TextfieldWidget-Be_Pz2bF-4c1f04721dc2b4cdcd34.js"),void 0),"./TimeWidget.vue":()=>ot(()=>it.import("./TimeWidget-Dy8zpkC6-3affabf9cb709000d8ad.js"),void 0),"./TitleWidget.vue":()=>ot(()=>it.import("./TitleWidget-BcmxUDzM-c682ebed67231c2f1a63.js"),void 0),"./ValueWidget.vue":()=>ot(()=>it.import("./ValueWidget-BxWrHkYY-e5417a4081f7a7d4093e.js"),void 0),"./ValuelimitsbarWidget.vue":()=>ot(()=>it.import("./ValuelimitsbarWidget-BdY02gqc-c459b6aed8923548fb40.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>ot(()=>it.import("./ValuelimitscolumnWidget-CuJ6rqtC-6964a97a5649673a58cb.js"),void 0),"./ValuerangebarWidget.vue":()=>ot(()=>it.import("./ValuerangebarWidget-C5rolGDi-c8adf83206096de08133.js"),void 0),"./VerticalWidget.vue":()=>ot(()=>it.import("./VerticalWidget-DsnEzKZ2-115e9bb749e75a438562.js"),void 0),"./VerticalboxWidget.vue":()=>ot(()=>it.import("./VerticalboxWidget-CzDgveBl-ebc41416e2d89394b02a.js"),void 0)}),n_=Object.entries(t_).reduce((n,[t,e])=>{t=t.split("/").pop();const r=zS(e_(t.replace(/\.\w+$/,"")));return{...n,[r]:_p(e)}},{}),vD=Kn("U",{components:n_});function Wv(n,t){return function(){return n.apply(t,arguments)}}const{toString:r_}=Object.prototype,{getPrototypeOf:Zh}=Object,{iterator:hc,toStringTag:Bv}=Symbol,dc=(n=>t=>{const e=r_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ji=n=>(n=n.toLowerCase(),t=>dc(t)===n),pc=n=>t=>typeof t===n,{isArray:ma}=Array,va=pc("undefined");function Ja(n){return n!==null&&!va(n)&&n.constructor!==null&&!va(n.constructor)&&ai(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const zv=Ji("ArrayBuffer");function i_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&zv(n.buffer),t}const o_=pc("string"),ai=pc("function"),Hv=pc("number"),el=n=>n!==null&&typeof n=="object",s_=n=>n===!0||n===!1,fc=n=>{if(dc(n)!=="object")return!1;const t=Zh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Bv in n)&&!(hc in n)},a_=n=>{if(!el(n)||Ja(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},l_=Ji("Date"),c_=Ji("File"),u_=Ji("Blob"),h_=Ji("FileList"),d_=n=>el(n)&&ai(n.pipe),p_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ai(n.append)&&((t=dc(n))==="formdata"||t==="object"&&ai(n.toString)&&n.toString()==="[object FormData]"))},f_=Ji("URLSearchParams"),[g_,m_,v_,y_]=["ReadableStream","Request","Response","Headers"].map(Ji),b_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tl(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ma(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{if(Ja(n))return;const g=e?Object.getOwnPropertyNames(n):Object.keys(n),m=g.length;let w;for(r=0;r<m;r++)w=g[r],t.call(null,n[w],w,n)}}function jv(n,t){if(Ja(n))return null;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 Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Uv=n=>!va(n)&&n!==Rs;function Qh(){const{caseless:n,skipUndefined:t}=Uv(this)&&this||{},e={},r=(f,g)=>{const m=n&&jv(e,g)||g;fc(e[m])&&fc(f)?e[m]=Qh(e[m],f):fc(f)?e[m]=Qh({},f):ma(f)?e[m]=f.slice():(!t||!va(f))&&(e[m]=f)};for(let f=0,g=arguments.length;f<g;f++)arguments[f]&&tl(arguments[f],r);return e}const w_=(n,t,e,{allOwnKeys:r}={})=>(tl(t,(f,g)=>{e&&ai(f)?n[g]=Wv(f,e):n[g]=f},{allOwnKeys:r}),n),x_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),C_=(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)},k_=(n,t,e,r)=>{let f,g,m;const w={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),g=f.length;g-- >0;)m=f[g],(!r||r(m,n,t))&&!w[m]&&(t[m]=n[m],w[m]=!0);n=e!==!1&&Zh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},A_=(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},S_=n=>{if(!n)return null;if(ma(n))return n;let t=n.length;if(!Hv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},__=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Zh(Uint8Array)),$_=(n,t)=>{const e=(n&&n[hc]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},T_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},M_=Ji("HTMLFormElement"),I_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Vv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),E_=Ji("RegExp"),qv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};tl(e,(f,g)=>{let m;(m=t(f,g,n))!==!1&&(r[g]=m||f)}),Object.defineProperties(n,r)},R_=n=>{qv(n,(t,e)=>{if(ai(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ai(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+"'")})}})},L_=(n,t)=>{const e={},r=f=>{f.forEach(g=>{e[g]=!0})};return ma(n)?r(n):r(String(n).split(t)),e},O_=()=>{},N_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function D_(n){return!!(n&&ai(n.append)&&n[Bv]==="FormData"&&n[hc])}const F_=n=>{const t=new Array(10),e=(r,f)=>{if(el(r)){if(t.indexOf(r)>=0)return;if(Ja(r))return r;if(!("toJSON"in r)){t[f]=r;const g=ma(r)?[]:{};return tl(r,(m,w)=>{const h=e(m,f+1);!va(h)&&(g[w]=h)}),t[f]=void 0,g}}return r};return e(n,0)},P_=Ji("AsyncFunction"),W_=n=>n&&(el(n)||ai(n))&&ai(n.then)&&ai(n.catch),Kv=((n,t)=>n?setImmediate:t?((e,r)=>(Rs.addEventListener("message",({source:f,data:g})=>{f===Rs&&g===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Rs.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ai(Rs.postMessage)),B_=typeof queueMicrotask<"u"?queueMicrotask.bind(Rs):typeof process<"u"&&process.nextTick||Kv,z_=n=>n!=null&&ai(n[hc]),Se={isArray:ma,isArrayBuffer:zv,isBuffer:Ja,isFormData:p_,isArrayBufferView:i_,isString:o_,isNumber:Hv,isBoolean:s_,isObject:el,isPlainObject:fc,isEmptyObject:a_,isReadableStream:g_,isRequest:m_,isResponse:v_,isHeaders:y_,isUndefined:va,isDate:l_,isFile:c_,isBlob:u_,isRegExp:E_,isFunction:ai,isStream:d_,isURLSearchParams:f_,isTypedArray:__,isFileList:h_,forEach:tl,merge:Qh,extend:w_,trim:b_,stripBOM:x_,inherits:C_,toFlatObject:k_,kindOf:dc,kindOfTest:Ji,endsWith:A_,toArray:S_,forEachEntry:$_,matchAll:T_,isHTMLForm:M_,hasOwnProperty:Vv,hasOwnProp:Vv,reduceDescriptors:qv,freezeMethods:R_,toObjectSet:L_,toCamelCase:I_,noop:O_,toFiniteNumber:N_,findKey:jv,global:Rs,isContextDefined:Uv,isSpecCompliantForm:D_,toJSONObject:F_,isAsyncFn:P_,isThenable:W_,setImmediate:Kv,asap:B_,isIterable:z_};function At(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)}Se.inherits(At,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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const Gv=At.prototype,Yv={};["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=>{Yv[n]={value:n}}),Object.defineProperties(At,Yv),Object.defineProperty(Gv,"isAxiosError",{value:!0}),At.from=(n,t,e,r,f,g)=>{const m=Object.create(Gv);Se.toFlatObject(n,m,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const w=n&&n.message?n.message:"Error",h=t==null&&n?n.code:t;return At.call(m,w,h,e,r,f),n&&m.cause==null&&Object.defineProperty(m,"cause",{value:n,configurable:!0}),m.name=n&&n.name||"Error",g&&Object.assign(m,g),m};const H_=null;function Jh(n){return Se.isPlainObject(n)||Se.isArray(n)}function Xv(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function Zv(n,t,e){return n?n.concat(t).map(function(r,f){return r=Xv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function j_(n){return Se.isArray(n)&&!n.some(Jh)}const U_=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function gc(n,t,e){if(!Se.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Se.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=e.metaTokens,f=e.visitor||d,g=e.dots,m=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(f))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Se.isDate(c))return c.toISOString();if(Se.isBoolean(c))return c.toString();if(!w&&Se.isBlob(c))throw new At("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,a){let p=c;if(c&&!a&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&j_(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(p=Se.toArray(c)))return i=Xv(i),p.forEach(function(b,x){!(Se.isUndefined(b)||b===null)&&t.append(m===!0?Zv([i],x,g):m===null?i:i+"[]",h(b))}),!1}return Jh(c)?!0:(t.append(Zv(a,i,g),h(c)),!1)}const s=[],l=Object.assign(U_,{defaultVisitor:d,convertValue:h,isVisitable:Jh});function u(c,i){if(!Se.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));s.push(c),Se.forEach(c,function(a,p){(!(Se.isUndefined(a)||a===null)&&f.call(t,a,Se.isString(p)?p.trim():p,i,l))===!0&&u(a,i?i.concat(p):[p])}),s.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),t}function Qv(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ed(n,t){this._pairs=[],n&&gc(n,this,t)}const Jv=ed.prototype;Jv.append=function(n,t){this._pairs.push([n,t])},Jv.toString=function(n){const t=n?function(e){return n.call(this,e,Qv)}:Qv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function V_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ey(n,t,e){if(!t)return n;const r=e&&e.encode||V_;Se.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let g;if(f?g=f(t,e):g=Se.isURLSearchParams(t)?t.toString():new ed(t,e).toString(r),g){const m=n.indexOf("#");m!==-1&&(n=n.slice(0,m)),n+=(n.indexOf("?")===-1?"?":"&")+g}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){Se.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ny={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},q_=typeof URLSearchParams<"u"?URLSearchParams:ed,K_=typeof FormData<"u"?FormData:null,G_=typeof Blob<"u"?Blob:null,Y_={isBrowser:!0,classes:{URLSearchParams:q_,FormData:K_,Blob:G_},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",nd=typeof navigator=="object"&&navigator||void 0,X_=td&&(!nd||["ReactNative","NativeScript","NS"].indexOf(nd.product)<0),Z_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q_=td&&window.location.href||"http://localhost",J_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:X_,hasStandardBrowserWebWorkerEnv:Z_,navigator:nd,origin:Q_},Symbol.toStringTag,{value:"Module"})),Nr={...J_,...Y_};function e$(n,t){return gc(n,new Nr.classes.URLSearchParams,{visitor:function(e,r,f,g){return Nr.isNode&&Se.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...t})}function t$(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function n$(n){const t={},e=Object.keys(n);let r;const f=e.length;let g;for(r=0;r<f;r++)g=e[r],t[g]=n[g];return t}function ry(n){function t(e,r,f,g){let m=e[g++];if(m==="__proto__")return!0;const w=Number.isFinite(+m),h=g>=e.length;return m=!m&&Se.isArray(f)?f.length:m,h?(Se.hasOwnProp(f,m)?f[m]=[f[m],r]:f[m]=r,!w):((!f[m]||!Se.isObject(f[m]))&&(f[m]=[]),t(e,r,f[m],g)&&Se.isArray(f[m])&&(f[m]=n$(f[m])),!w)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const e={};return Se.forEachEntry(n,(r,f)=>{t(t$(r),f,e,0)}),e}return null}function r$(n,t,e){if(Se.isString(n))try{return(t||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const nl={transitional:ny,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Se.isObject(n);if(f&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(ry(n)):n;if(Se.isArrayBuffer(n)||Se.isBuffer(n)||Se.isStream(n)||Se.isFile(n)||Se.isBlob(n)||Se.isReadableStream(n))return n;if(Se.isArrayBufferView(n))return n.buffer;if(Se.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return e$(n,this.formSerializer).toString();if((g=Se.isFileList(n))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return gc(g?{"files[]":n}:n,m&&new m,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),r$(n)):n}],transformResponse:[function(n){const t=this.transitional||nl.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?At.from(g,At.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],n=>{nl.headers[n]={}});const i$=Se.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"]),o$=n=>{const t={};let e,r,f;return n&&n.split(`
|
|
1493
1493
|
`).forEach(function(g){f=g.indexOf(":"),e=g.substring(0,f).trim().toLowerCase(),r=g.substring(f+1).trim(),!(!e||t[e]&&i$[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 rl(n){return n&&String(n).trim().toLowerCase()}function mc(n){return n===!1||n==null?n:Se.isArray(n)?n.map(mc):String(n)}function s$(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 a$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function rd(n,t,e,r,f){if(Se.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function l$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function c$(n,t){const e=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,g,m){return this[r].call(this,t,f,g,m)},configurable:!0})})}let li=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function g(w,h,d){const s=rl(h);if(!s)throw new Error("header name must be a non-empty string");const l=Se.findKey(f,s);(!l||f[l]===void 0||d===!0||d===void 0&&f[l]!==!1)&&(f[l||h]=mc(w))}const m=(w,h)=>Se.forEach(w,(d,s)=>g(d,s,h));if(Se.isPlainObject(t)||t instanceof this.constructor)m(t,e);else if(Se.isString(t)&&(t=t.trim())&&!a$(t))m(o$(t),e);else if(Se.isObject(t)&&Se.isIterable(t)){let w={},h,d;for(const s of t){if(!Se.isArray(s))throw TypeError("Object iterator must return a key-value pair");w[d=s[0]]=(h=w[d])?Se.isArray(h)?[...h,s[1]]:[h,s[1]]:s[1]}m(w,e)}else t!=null&&g(e,t,r);return this}get(t,e){if(t=rl(t),t){const r=Se.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return s$(f);if(Se.isFunction(e))return e.call(this,f,r);if(Se.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=rl(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||rd(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function g(m){if(m=rl(m),m){const w=Se.findKey(r,m);w&&(!e||rd(r,r[w],w,e))&&(delete r[w],f=!0)}}return Se.isArray(t)?t.forEach(g):g(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const g=e[r];(!t||rd(this,this[g],g,t,!0))&&(delete this[g],f=!0)}return f}normalize(t){const e=this,r={};return Se.forEach(this,(f,g)=>{const m=Se.findKey(r,g);if(m){e[m]=mc(f),delete e[g];return}const w=t?l$(g):String(g).trim();w!==g&&delete e[g],e[w]=mc(f),r[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Se.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&Se.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(`
|
|
1494
1494
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...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(g){const m=rl(g);e[m]||(c$(r,g),e[m]=!0)}return Se.isArray(t)?t.forEach(f):f(t),this}};li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(li.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),Se.freezeMethods(li);function id(n,t){const e=this||nl,r=t||e,f=li.from(r.headers);let g=r.data;return Se.forEach(n,function(m){g=m.call(e,g,f.normalize(),t?t.status:void 0)}),f.normalize(),g}function oy(n){return!!(n&&n.__CANCEL__)}function ya(n,t,e){At.call(this,n??"canceled",At.ERR_CANCELED,t,e),this.name="CanceledError"}Se.inherits(ya,At,{__CANCEL__:!0});function sy(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new At("Request failed with status code "+e.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function u$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function h$(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,g=0,m;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),d=r[g];m||(m=h),e[f]=w,r[f]=h;let s=g,l=0;for(;s!==f;)l+=e[s++],s=s%n;if(f=(f+1)%n,f===g&&(g=(g+1)%n),h-m<t)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function d$(n,t){let e=0,r=1e3/t,f,g;const m=(w,h=Date.now())=>{e=h,f=null,g&&(clearTimeout(g),g=null),n(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?m(w,h):(f=w,g||(g=setTimeout(()=>{g=null,m(f)},r-d)))},()=>f&&m(f)]}const vc=(n,t,e=3)=>{let r=0;const f=h$(50,250);return d$(g=>{const m=g.loaded,w=g.lengthComputable?g.total:void 0,h=m-r,d=f(h),s=m<=w;r=m;const l={loaded:m,total:w,progress:w?m/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&s?(w-m)/d:void 0,event:g,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},ay=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},ly=n=>(...t)=>Se.asap(()=>n(...t)),p$=Nr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Nr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Nr.origin),Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent)):()=>!0,f$=Nr.hasStandardBrowserEnv?{write(n,t,e,r,f,g,m){if(typeof document>"u")return;const w=[`${n}=${encodeURIComponent(t)}`];Se.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Se.isString(r)&&w.push(`path=${r}`),Se.isString(f)&&w.push(`domain=${f}`),g===!0&&w.push("secure"),Se.isString(m)&&w.push(`SameSite=${m}`),document.cookie=w.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function g$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function m$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function cy(n,t,e){let r=!g$(t);return n&&(r||e==!1)?m$(n,t):t}const uy=n=>n instanceof li?{...n}:n;function Ls(n,t){t=t||{};const e={};function r(d,s,l,u){return Se.isPlainObject(d)&&Se.isPlainObject(s)?Se.merge.call({caseless:u},d,s):Se.isPlainObject(s)?Se.merge({},s):Se.isArray(s)?s.slice():s}function f(d,s,l,u){if(Se.isUndefined(s)){if(!Se.isUndefined(d))return r(void 0,d,l,u)}else return r(d,s,l,u)}function g(d,s){if(!Se.isUndefined(s))return r(void 0,s)}function m(d,s){if(Se.isUndefined(s)){if(!Se.isUndefined(d))return r(void 0,d)}else return r(void 0,s)}function w(d,s,l){if(l in t)return r(d,s);if(l in n)return r(void 0,d)}const h={url:g,method:g,data:g,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:w,headers:(d,s,l)=>f(uy(d),uy(s),l,!0)};return Se.forEach(Object.keys({...n,...t}),function(d){const s=h[d]||f,l=s(n[d],t[d],d);Se.isUndefined(l)&&s!==w||(e[d]=l)}),e}const hy=n=>{const t=Ls({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:g,headers:m,auth:w}=t;if(t.headers=m=li.from(m),t.url=ey(cy(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),w&&m.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),Se.isFormData(e)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(Se.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([s,l])=>{d.includes(s.toLowerCase())&&m.set(s,l)})}}if(Nr.hasStandardBrowserEnv&&(r&&Se.isFunction(r)&&(r=r(t)),r||r!==!1&&p$(t.url))){const h=f&&g&&f$.read(g);h&&m.set(f,h)}return t},v$=typeof XMLHttpRequest<"u",y$=v$&&function(n){return new Promise(function(t,e){const r=hy(n);let f=r.data;const g=li.from(r.headers).normalize();let{responseType:m,onUploadProgress:w,onDownloadProgress:h}=r,d,s,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let a=new XMLHttpRequest;a.open(r.method.toUpperCase(),r.url,!0),a.timeout=r.timeout;function p(){if(!a)return;const x=li.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),R={data:!m||m==="text"||m==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:x,config:n,request:a};sy(function(_){t(_),i()},function(_){e(_),i()},R),a=null}"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(p)},a.onabort=function(){a&&(e(new At("Request aborted",At.ECONNABORTED,n,a)),a=null)},a.onerror=function(x){const R=x&&x.message?x.message:"Network Error",_=new At(R,At.ERR_NETWORK,n,a);_.event=x||null,e(_),a=null},a.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||ny;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new At(x,R.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,n,a)),a=null},f===void 0&&g.setContentType(null),"setRequestHeader"in a&&Se.forEach(g.toJSON(),function(x,R){a.setRequestHeader(R,x)}),Se.isUndefined(r.withCredentials)||(a.withCredentials=!!r.withCredentials),m&&m!=="json"&&(a.responseType=r.responseType),h&&([l,c]=vc(h,!0),a.addEventListener("progress",l)),w&&a.upload&&([s,u]=vc(w),a.upload.addEventListener("progress",s),a.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{a&&(e(!x||x.type?new ya(null,n,a):x),a.abort(),a=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=u$(r.url);if(b&&Nr.protocols.indexOf(b)===-1){e(new At("Unsupported protocol "+b+":",At.ERR_BAD_REQUEST,n));return}a.send(f||null)})},b$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const g=function(d){if(!f){f=!0,w();const s=d instanceof Error?d:this.reason;r.abort(s instanceof At?s:new ya(s instanceof Error?s.message:s))}};let m=t&&setTimeout(()=>{m=null,g(new At(`timeout ${t} of ms exceeded`,At.ETIMEDOUT))},t);const w=()=>{n&&(m&&clearTimeout(m),m=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(g):d.removeEventListener("abort",g)}),n=null)};n.forEach(d=>d.addEventListener("abort",g));const{signal:h}=r;return h.unsubscribe=()=>Se.asap(w),h}},w$=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},x$=async function*(n,t){for await(const e of C$(n))yield*w$(e,t)},C$=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=x$(n,t);let g=0,m,w=h=>{m||(m=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:s}=await f.next();if(d){w(),h.close();return}let l=s.byteLength;if(e){let u=g+=l;e(u)}h.enqueue(new Uint8Array(s))}catch(d){throw w(d),d}},cancel(h){return w(h),f.return()}},{highWaterMark:2})},py=64*1024,{isFunction:yc}=Se,k$=(({Request:n,Response:t})=>({Request:n,Response:t}))(Se.global),{ReadableStream:fy,TextEncoder:gy}=Se.global,my=(n,...t)=>{try{return!!n(...t)}catch{return!1}},A$=n=>{n=Se.merge.call({skipUndefined:!0},k$,n);const{fetch:t,Request:e,Response:r}=n,f=t?yc(t):typeof fetch=="function",g=yc(e),m=yc(r);if(!f)return!1;const w=f&&yc(fy),h=f&&(typeof gy=="function"?(i=>a=>i.encode(a))(new gy):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=g&&w&&my(()=>{let i=!1;const a=new e(Nr.origin,{body:new fy,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!a}),s=m&&w&&my(()=>Se.isReadableStream(new r("").body)),l={stream:s&&(i=>i.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(a,p)=>{let b=a&&a[i];if(b)return b.call(a);throw new At(`Response type '${i}' is not supported`,At.ERR_NOT_SUPPORT,p)})});const u=async i=>{if(i==null)return 0;if(Se.isBlob(i))return i.size;if(Se.isSpecCompliantForm(i))return(await new e(Nr.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Se.isArrayBufferView(i)||Se.isArrayBuffer(i))return i.byteLength;if(Se.isURLSearchParams(i)&&(i=i+""),Se.isString(i))return(await h(i)).byteLength},c=async(i,a)=>Se.toFiniteNumber(i.getContentLength())??u(a);return async i=>{let{url:a,method:p,data:b,signal:x,cancelToken:R,timeout:_,onDownloadProgress:k,onUploadProgress:C,responseType:L,headers:D,withCredentials:E="same-origin",fetchOptions:I}=hy(i),z=t||fetch;L=L?(L+"").toLowerCase():"text";let P=b$([x,R&&R.toAbortSignal()],_),O=null;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let A;try{if(C&&d&&p!=="get"&&p!=="head"&&(A=await c(D,b))!==0){let J=new e(a,{method:"POST",body:b,duplex:"half"}),he;if(Se.isFormData(b)&&(he=J.headers.get("content-type"))&&D.setContentType(he),J.body){const[ne,le]=ay(A,vc(ly(C)));b=dy(J.body,py,ne,le)}}Se.isString(E)||(E=E?"include":"omit");const N=g&&"credentials"in e.prototype,B={...I,signal:P,method:p.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:N?E:void 0};O=g&&new e(a,B);let U=await(g?z(O,I):z(a,B));const K=s&&(L==="stream"||L==="response");if(s&&(k||K&&$)){const J={};["status","statusText","headers"].forEach(se=>{J[se]=U[se]});const he=Se.toFiniteNumber(U.headers.get("content-length")),[ne,le]=k&&ay(he,vc(ly(k),!0))||[];U=new r(dy(U.body,py,ne,()=>{le&&le(),$&&$()}),J)}L=L||"text";let Q=await l[Se.findKey(l,L)||"text"](U,i);return!K&&$&&$(),await new Promise((J,he)=>{sy(J,he,{data:Q,headers:li.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:O})})}catch(N){throw $&&$(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,i,O),{cause:N.cause||N}):At.from(N,N&&N.code,i,O)}}},S$=new Map,vy=n=>{let t=n&&n.env||{};const{fetch:e,Request:r,Response:f}=t,g=[r,f,e];let m=g.length,w=m,h,d,s=S$;for(;w--;)h=g[w],d=s.get(h),d===void 0&&s.set(h,d=w?new Map:A$(t)),s=d;return d};vy();const od={http:H_,xhr:y$,fetch:{get:vy}};Se.forEach(od,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const yy=n=>`- ${n}`,_$=n=>Se.isFunction(n)||n===null||n===!1;function $$(n,t){n=Se.isArray(n)?n:[n];const{length:e}=n;let r,f;const g={};for(let m=0;m<e;m++){r=n[m];let w;if(f=r,!_$(r)&&(f=od[(w=String(r)).toLowerCase()],f===void 0))throw new At(`Unknown adapter '${w}'`);if(f&&(Se.isFunction(f)||(f=f.get(t))))break;g[w||"#"+m]=f}if(!f){const m=Object.entries(g).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?m.length>1?`since :
|
|
1495
1495
|
`+m.map(yy).join(`
|
|
1496
1496
|
`):" "+yy(m[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return f}const by={getAdapter:$$,adapters:od};function sd(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ya(null,n)}function wy(n){return sd(n),n.headers=li.from(n.headers),n.data=id.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),by.getAdapter(n.adapter||nl.adapter,n)(n).then(function(t){return sd(n),t.data=id.call(n,n.transformResponse,t),t.headers=li.from(t.headers),t},function(t){return oy(t)||(sd(n),t&&t.response&&(t.response.data=id.call(n,n.transformResponse,t.response),t.response.headers=li.from(t.response.headers))),Promise.reject(t)})}const xy="1.13.2",bc={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{bc[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Cy={};bc.transitional=function(n,t,e){function r(f,g){return"[Axios v"+xy+"] Transitional option '"+f+"'"+g+(e?". "+e:"")}return(f,g,m)=>{if(n===!1)throw new At(r(g," has been removed"+(t?" in "+t:"")),At.ERR_DEPRECATED);return t&&!Cy[g]&&(Cy[g]=!0,console.warn(r(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,g,m):!0}},bc.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function T$(n,t,e){if(typeof n!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const g=r[f],m=t[g];if(m){const w=n[g],h=w===void 0||m(w,g,n);if(h!==!0)throw new At("option "+g+" must be "+h,At.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new At("Unknown option "+g,At.ERR_BAD_OPTION)}}const wc={assertOptions:T$,validators:bc},po=wc.validators;let Os=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 g=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?g&&!String(r.stack).endsWith(g.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1497
|
-
`+g):r.stack=g}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Ls(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:g}=e;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1),f!=null&&(Se.isFunction(f)?e.paramsSerializer={serialize:f}:wc.assertOptions(f,{encode:po.function,serialize:po.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),wc.assertOptions(e,{baseUrl:po.spelling("baseURL"),withXsrfToken:po.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let m=g&&Se.merge(g.common,g[e.method]);g&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=li.concat(m,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(e)===!1||(h=h&&i.synchronous,w.unshift(i.fulfilled,i.rejected))});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let s,l=0,u;if(!h){const i=[wy.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,s=Promise.resolve(e);l<u;)s=s.then(i[l++],i[l++]);return s}u=w.length;let c=e;for(;l<u;){const i=w[l++],a=w[l++];try{c=i(c)}catch(p){a.call(this,p);break}}try{s=wy.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)s=s.then(d[l++],d[l++]);return s}getUri(t){t=Ls(this.defaults,t);const e=cy(t.baseURL,t.url,t.allowAbsoluteUrls);return ey(e,t.params,t.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Os.prototype[n]=function(t,e){return this.request(Ls(e||{},{method:n,url:t,data:(e||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(Ls(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Os.prototype[n]=t(),Os.prototype[n+"Form"]=t(!0)});let M$=class sw{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 g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new ya(f,g,m),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 sw(function(e){t=e}),cancel:t}}};function I$(n){return function(t){return n.apply(null,t)}}function E$(n){return Se.isObject(n)&&n.isAxiosError===!0}const ad={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ad).forEach(([n,t])=>{ad[t]=n});function ky(n){const t=new Os(n),e=Wv(Os.prototype.request,t);return Se.extend(e,Os.prototype,t,{allOwnKeys:!0}),Se.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return ky(Ls(n,r))},e}const rr=Kn("w",ky(nl));rr.Axios=Os,rr.CanceledError=ya,rr.CancelToken=M$,rr.isCancel=oy,rr.VERSION=xy,rr.toFormData=gc,rr.AxiosError=At,rr.Cancel=rr.CanceledError,rr.all=function(n){return Promise.all(n)},rr.spread=I$,rr.isAxiosError=E$,rr.mergeConfig=Ls,rr.AxiosHeaders=li,rr.formToJSON=n=>ry(Se.isHTMLForm(n)?new FormData(n):n),rr.getAdapter=by.getAdapter,rr.HttpStatusCode=ad,rr.default=rr;const{Axios:yD,AxiosError:bD,CanceledError:wD,isCancel:xD,CancelToken:CD,VERSION:kD,all:AD,Cancel:SD,isAxiosError:_D,spread:$D,toFormData:TD,AxiosHeaders:MD,HttpStatusCode:ID,formToJSON:ED,getAdapter:RD,mergeConfig:LD}=rr;function Ay(){return Object.assign({},Js())}function R$(n,t,e){const r=Sn(n,void 0);return r.setTime(r.getTime()+t*Il),r}function L$(n,t){const e=()=>tr(void 0,NaN),r=F$(n);let f;if(r.date){const h=P$(r.date,2);f=W$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const g=+f;let m=0,w;if(r.time&&(m=B$(r.time),isNaN(m)))return e();if(r.timezone){if(w=z$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+m),d=Sn(0,void 0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return Sn(g+m+w,void 0)}const xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},O$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,N$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,D$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function F$(n){const t={},e=n.split(xc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],xc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=xc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function P$(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,g=r[2]?parseInt(r[2]):null;return{year:g===null?f:g*100,restDateString:n.slice((r[1]||r[2]).length)}}function W$(n,t){if(t===null)return new Date(NaN);const e=n.match(O$);if(!e)return new Date(NaN);const r=!!e[4],f=il(e[1]),g=il(e[2])-1,m=il(e[3]),w=il(e[4]),h=il(e[5])-1;if(r)return q$(t,w,h)?H$(t,w,h):new Date(NaN);{const d=new Date(0);return!U$(t,g,m)||!V$(t,f)?new Date(NaN):(d.setUTCFullYear(t,g,Math.max(f,m)),d)}}function il(n){return n?parseInt(n):1}function B$(n){const t=n.match(N$);if(!t)return NaN;const e=ld(t[1]),r=ld(t[2]),f=ld(t[3]);return K$(e,r,f)?e*gu+r*Il+f*1e3:NaN}function ld(n){return n&&parseFloat(n.replace(",","."))||0}function z$(n){if(n==="Z")return 0;const t=n.match(D$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return G$(r,f)?e*(r*gu+f*Il):NaN}function H$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const j$=[31,null,31,30,31,30,31,31,30,31,30,31];function Sy(n){return n%400===0||n%4===0&&n%100!==0}function U$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(j$[t]||(Sy(n)?29:28))}function V$(n,t){return t>=1&&t<=(Sy(n)?366:365)}function q$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function K$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function G$(n,t){return t>=0&&t<=59}function Y$(n,t,e){return R$(n,-t)}function _y(n,t,e){const r=Ay(),f=Q$(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?X$(f,t):Z$(f,t)}function X$(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 Z$(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 J$(n,t){const e=iT(t);return"formatToParts"in e?tT(e,n):nT(e,n)}const eT={year:0,month:1,day:2,hour:3,minute:4,second:5};function tT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const g=eT[e[f].type];g!==void 0&&(r[g]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function nT(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 cd={},$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")),rT=$y==="06/25/2014, 00:00:00"||$y==="06/25/2014 00:00:00";function iT(n){return cd[n]||(cd[n]=rT?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"})),cd[n]}function Ty(n,t,e,r,f,g,m){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(r,f,g,m),w}const My=36e5,oT=6e4,ud={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function hd(n,t,e){if(!n)return 0;let r=ud.timezoneZ.exec(n);if(r)return 0;let f,g;if(r=ud.timezoneHH.exec(n),r)return f=parseInt(r[1],10),Iy(f)?-(f*My):NaN;if(r=ud.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const m=parseInt(r[3],10);return Iy(f,m)?(g=Math.abs(f)*My+m*oT,r[1]==="+"?-g:g):NaN}if(lT(n)){t=new Date(t||Date.now());const m=e?t:sT(t),w=dd(m,n);return-(e?w:aT(t,w,n))}return NaN}function sT(n){return Ty(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function dd(n,t){const e=J$(n,t),r=Ty(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const g=f%1e3;return f-=g>=0?g:1e3+g,r-f}function aT(n,t,e){let r=n.getTime()-t;const f=dd(new Date(r),e);if(t===f)return t;r-=f-t;const g=dd(new Date(r),e);return f===g?f:Math.max(f,g)}function Iy(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Ey={};function lT(n){if(Ey[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Ey[n]=!0,!0}catch{return!1}}const cT=60*1e3,uT={X:function(n,t,e){const r=pd(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ry(r);case"XXXX":case"XX":return ba(r);case"XXXXX":case"XXX":default:return ba(r,":")}},x:function(n,t,e){const r=pd(e.timeZone,n);switch(t){case"x":return Ry(r);case"xxxx":case"xx":return ba(r);case"xxxxx":case"xxx":default:return ba(r,":")}},O:function(n,t,e){const r=pd(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+hT(r,":");case"OOOO":default:return"GMT"+ba(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return _y("short",n,e);case"zzzz":default:return _y("long",n,e)}}};function pd(n,t){const e=n?hd(n,t,!0)/cT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function Cc(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function ba(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cc(Math.floor(r/60),2),g=Cc(Math.floor(r%60),2);return e+f+t+g}function Ry(n,t){return n%60===0?(n>0?"-":"+")+Cc(Math.abs(n)/60,2):ba(n,t)}function hT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+Cc(g,2)}function Ly(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 dT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,fd=36e5,Oy=6e4,pT=2,jr={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:dT};function Ny(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?pT: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=fT(n),{year:f,restDateString:g}=gT(r.date,e),m=mT(g,f);if(m===null||isNaN(m.getTime()))return new Date(NaN);if(m){const w=m.getTime();let h=0,d;if(r.time&&(h=vT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=hd(r.timeZone||t.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=Ly(new Date(w+h)),d=Ly(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function fT(n){const t={};let e=jr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=jr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=jr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function gT(n,t){if(n){const e=jr.YYY[t],r=jr.YYYYY[t];let f=jr.YYYY.exec(n)||r.exec(n);if(f){const g=f[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(f=jr.YY.exec(n)||e.exec(n),f){const g=f[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function mT(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 g=jr.MM.exec(n);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Py(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(g=jr.DDD.exec(n),g){e=new Date(0);const m=parseInt(g[1],10);return wT(t,m)?(e.setUTCFullYear(t,0,m),e):new Date(NaN)}if(g=jr.MMDD.exec(n),g){e=new Date(0),r=parseInt(g[1],10)-1;const m=parseInt(g[2],10);return Py(t,r,m)?(e.setUTCFullYear(t,r,m),e):new Date(NaN)}if(g=jr.Www.exec(n),g)return f=parseInt(g[1],10)-1,Wy(f)?Dy(t,f):new Date(NaN);if(g=jr.WwwD.exec(n),g){f=parseInt(g[1],10)-1;const m=parseInt(g[2],10)-1;return Wy(f,m)?Dy(t,f,m):new Date(NaN)}return null}function vT(n){let t,e,r=jr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),gd(t)?t%24*fd:NaN;if(r=jr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),gd(t,e)?t%24*fd+e*Oy:NaN;if(r=jr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return gd(t,e,f)?t%24*fd+e*Oy+f*1e3:NaN}return null}function Dy(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const yT=[31,28,31,30,31,30,31,31,30,31,30,31],bT=[31,29,31,30,31,30,31,31,30,31,30,31];function Fy(n){return n%400===0||n%4===0&&n%100!==0}function Py(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Fy(n);if(r&&e>bT[t]||!r&&e>yT[t])return!1}return!0}function wT(n,t){if(t<1)return!1;const e=Fy(n);return!(e&&t>366||!e&&t>365)}function Wy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function gd(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const xT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function CT(n,t,e={}){t=String(t);const r=t.match(xT);if(r){const f=Ny(e.originalDate||n,e);t=r.reduce(function(g,m){if(m[0]==="'")return g;const w=g.indexOf(m),h=g[w-1]==="'",d=g.replace(m,"'"+uT[m[0]](f,m,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},t)}return bs(n,t,e)}function kT(n,t,e){n=Ny(n,e);const r=hd(t,n,!0),f=new Date(n.getTime()-r),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}function kc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},CT(kT(n,t,{timeZone:r.timeZone}),e,r)}const Ac="yyyy-MM-dd",By="HH:mm:ss.SSS",zy="HH:mm:ss",Sc=`${Ac} ${By}`,Hy=`${Ac} ${zy}`,OD=Kn("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return bs(!t||t==="local"?Y$(n,n.getTimezoneOffset()):n,Sc)},formatDateTime(n,t){return!t||t==="local"?bs(n,Sc):kc(n,t,Sc)},formatDateTimeHMS(n,t){return!t||t==="local"?bs(n,Hy):kc(n,t,Hy)},formatDate:function(n,t){return!t||t==="local"?bs(n,Ac):kc(n,this.timeZone,Ac)},formatTime:function(n,t,e=By){return!t||t==="local"?bs(n,e):kc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,zy)},formatTimestamp(n,t){return this.formatDateTime(L$(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 AT=Object.defineProperty,ST=(n,t,e)=>t in n?AT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Je=(n,t,e)=>ST(n,typeof t!="symbol"?t+"":t,e);function md(n,t,e){const r=Sn(n,e==null?void 0:e.in);return isNaN(t)?tr((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function _T(n,t){const e=Sn(n,void 0).getDay();return e===0?7:e}function $T(n,t){const e=TT(t)?new t(0):tr(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function TT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const MT=10;let jy=class{constructor(){Je(this,"subPriority",0)}validate(t,e){return!0}},IT=class extends jy{constructor(t,e,r,f,g){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}};class ET extends jy{constructor(t,e){super(),Je(this,"priority",MT),Je(this,"subPriority",-1),this.context=t||(r=>tr(e,r))}set(t,e){return e.timestampIsSet?t:tr(t,$T(t,this.context))}}class tn{run(t,e,r,f){const g=this.parse(t,e,r,f);return g?{setter:new IT(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,r){return!0}}class RT extends tn{constructor(){super(...arguments),Je(this,"priority",140),Je(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 Yn={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}/},fo={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 Xn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Rn(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function go(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,g=e[3]?parseInt(e[3],10):0,m=e[5]?parseInt(e[5],10):0;return{value:r*(f*gu+g*Il+m*Aw),rest:t.slice(e[0].length)}}function Uy(n){return Rn(Yn.anyDigitsSigned,n)}function Pn(n,t){switch(n){case 1:return Rn(Yn.singleDigit,t);case 2:return Rn(Yn.twoDigits,t);case 3:return Rn(Yn.threeDigits,t);case 4:return Rn(Yn.fourDigits,t);default:return Rn(new RegExp("^\\d{1,"+n+"}"),t)}}function Vy(n,t){switch(n){case 1:return Rn(Yn.singleDigitSigned,t);case 2:return Rn(Yn.twoDigitsSigned,t);case 3:return Rn(Yn.threeDigitsSigned,t);case 4:return Rn(Yn.fourDigitsSigned,t);default:return Rn(new RegExp("^-?\\d{1,"+n+"}"),t)}}function vd(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 qy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const g=r+50,m=Math.trunc(g/100)*100,w=n>=g%100;f=n+m-(w?100:0)}return e?f:1-f}function Ky(n){return n%400===0||n%4===0&&n%100!==0}let LT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return Xn(Pn(4,t),f);case"yo":return Xn(r.ordinalNumber(t,{unit:"year"}),f);default:return Xn(Pn(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 m=qy(r.year,f);return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class OT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return Xn(Pn(4,t),f);case"Yo":return Xn(r.ordinalNumber(t,{unit:"year"}),f);default:return Xn(Pn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const g=vu(t,f);if(r.isTwoDigitYear){const w=qy(r.year,g);return t.setFullYear(w,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Go(t,f)}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Go(t,f)}}class NT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Vy(e==="R"?4:e.length,t)}set(t,e,r){const f=tr(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),ea(f)}}let DT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Vy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};class FT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(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 Pn(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}}class PT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(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 Pn(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}}let WT=class extends tn{constructor(){super(...arguments),Je(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Je(this,"priority",110)}parse(t,e,r){const f=g=>g-1;switch(e){case"M":return Xn(Rn(Yn.month,t),f);case"MM":return Xn(Pn(2,t),f);case"Mo":return Xn(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}},BT=class extends tn{constructor(){super(...arguments),Je(this,"priority",110),Je(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=g=>g-1;switch(e){case"L":return Xn(Rn(Yn.month,t),f);case"LL":return Xn(Pn(2,t),f);case"Lo":return Xn(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 zT(n,t,e){const r=Sn(n,e==null?void 0:e.in),f=Xp(r,e)-t;return r.setDate(r.getDate()-f*7),Sn(r,e==null?void 0:e.in)}let HT=class extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Rn(Yn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Go(zT(t,r,f),f)}};function jT(n,t,e){const r=Sn(n,void 0),f=Yp(r)-t;return r.setDate(r.getDate()-f*7),r}class UT extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(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 Rn(Yn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return ea(jT(t,r))}}const VT=[31,28,31,30,31,30,31,31,30,31,30,31],qT=[31,29,31,30,31,30,31,31,30,31,30,31];class KT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subPriority",1),Je(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Rn(Yn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=Ky(r),g=t.getMonth();return f?e>=1&&e<=qT[g]:e>=1&&e<=VT[g]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}let GT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subpriority",1),Je(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 Rn(Yn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear();return Ky(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 yd(n,t,e){var r,f,g,m;const w=Js(),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)??w.weekStartsOn??((m=(g=w.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,d=Sn(n,e==null?void 0:e.in),s=d.getDay(),l=(t%7+7)%7,u=7-h,c=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return md(d,c,e)}class YT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(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=yd(t,r,f),t.setHours(0,0,0,0),t}}class XT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return Xn(Pn(e.length,t),g);case"eo":return Xn(r.ordinalNumber(t,{unit:"day"}),g);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=yd(t,r,f),t.setHours(0,0,0,0),t}}let ZT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return Xn(Pn(e.length,t),g);case"co":return Xn(r.ordinalNumber(t,{unit:"day"}),g);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=yd(t,r,f),t.setHours(0,0,0,0),t}};function QT(n,t,e){const r=Sn(n,void 0),f=_T(r),g=t-f;return md(r,g,e)}let JT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=g=>g===0?7:g;switch(e){case"i":case"ii":return Pn(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Xn(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 Xn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return Xn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return Xn(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=QT(t,r),t.setHours(0,0,0,0),t}};class eM extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(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(vd(r),0,0,0),t}}class tM extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(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(vd(r),0,0,0),t}}let nM=class extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(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(vd(r),0,0,0),t}};class rM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Rn(Yn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(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 iM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Rn(Yn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class oM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Rn(Yn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(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 sM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Rn(Yn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(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 aM extends tn{constructor(){super(...arguments),Je(this,"priority",60),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Rn(Yn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class lM extends tn{constructor(){super(...arguments),Je(this,"priority",50),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Rn(Yn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class cM extends tn{constructor(){super(...arguments),Je(this,"priority",30),Je(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return Xn(Pn(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class uM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return go(fo.basicOptionalMinutes,t);case"XX":return go(fo.basic,t);case"XXXX":return go(fo.basicOptionalSeconds,t);case"XXXXX":return go(fo.extendedOptionalSeconds,t);case"XXX":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:tr(t,t.getTime()-El(t)-r)}}class hM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return go(fo.basicOptionalMinutes,t);case"xx":return go(fo.basic,t);case"xxxx":return go(fo.basicOptionalSeconds,t);case"xxxxx":return go(fo.extendedOptionalSeconds,t);case"xxx":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:tr(t,t.getTime()-El(t)-r)}}class dM extends tn{constructor(){super(...arguments),Je(this,"priority",40),Je(this,"incompatibleTokens","*")}parse(t){return Uy(t)}set(t,e,r){return[tr(t,r*1e3),{timestampIsSet:!0}]}}class pM extends tn{constructor(){super(...arguments),Je(this,"priority",20),Je(this,"incompatibleTokens","*")}parse(t){return Uy(t)}set(t,e,r){return[tr(t,r),{timestampIsSet:!0}]}}const fM={G:new RT,y:new LT,Y:new OT,R:new NT,u:new DT,Q:new FT,q:new PT,M:new WT,L:new BT,w:new HT,I:new UT,d:new KT,D:new GT,E:new YT,e:new XT,c:new ZT,i:new JT,a:new eM,b:new tM,B:new nM,h:new rM,H:new iM,K:new oM,k:new sM,m:new aM,s:new lM,S:new cM,X:new uM,x:new hM,t:new dM,T:new pM},gM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vM=/^'([^]*?)'?$/,yM=/''/g,bM=/\S/,wM=/[a-zA-Z]/;function xM(n,t,e,r){var f,g,m,w;const h=()=>tr(e,NaN),d=Ay(),s=d.locale??Gp,l=d.firstWeekContainsDate??((g=(f=d.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,u=d.weekStartsOn??((w=(m=d.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():Sn(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:u,locale:s},i=[new ET(void 0,e)],a=t.match(mM).map(_=>{const k=_[0];if(k in yu){const C=yu[k];return C(_,s.formatLong)}return _}).join("").match(gM),p=[];for(let _ of a){rf(_)&&bu(_,t,n),nf(_)&&bu(_,t,n);const k=_[0],C=fM[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const E=p.find(I=>L.includes(I.token)||I.token===k);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);p.push({token:k,fullToken:_});const D=C.run(n,_,s.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(wM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=CM(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&bM.test(n))return h();const b=i.map(_=>_.priority).sort((_,k)=>k-_).filter((_,k,C)=>C.indexOf(_)===k).map(_=>i.filter(k=>k.priority===_).sort((k,C)=>C.subPriority-k.subPriority)).map(_=>_[0]);let x=Sn(e,void 0);if(isNaN(+x))return h();const R={};for(const _ of b){if(!_.validate(x,c))return h();const k=_.set(x,R,c);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function CM(n){return n.match(vM)[1].replace(yM,"'")}const kM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",AM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return kM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=EM.indexOf(Gy[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 SM(n,t,e,r,f,g){return En(),ri("div",{style:La(g.iconStyle)},null,4)}const _M=Ko(AM,[["render",SM]]),$M={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function TM(n,t,e,r,f,g){const m=xt("rux-icon");return En(),lo(m,{size:e.size,icon:e.icon,style:La(g.colorStyle)},null,8,["size","icon","style"])}const MM=Ko($M,[["render",TM],["__scopeId","data-v-9af48e85"]]),Gy={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"},bd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},IM=function(n){const t="#000000",e="#ffffff",r=bd[Gy[n]];if(r){const f=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,m=+`0x${r.slice(5,7)}`;if((f*299+g*587+m*114)/1e3>128)return t}return e},EM=Object.keys(bd),RM={astro:{component:n=>Zs(MM,{...n})},"astro-status":{component:n=>Zs(_M,{...n,status:n.icon})}},LM={extras:{component:n=>Zs(kw,{...n})}},ND=Kn("p",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new Ss().load_config(this.configKey,n).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(r)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:r})})},saveConfigBase:function(n,t){new Ss().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),OM={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Ss().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new Ss().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},NM={class:"mt-4 pa-3"},DM=["textContent"];function FM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),s=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),a=xt("v-dialog");return En(),lo(a,{modelValue:g.show,"onUpdate:modelValue":t[4]||(t[4]=p=>g.show=p),persistent:"",width:"600",onKeydown:$l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[3]||(t[3]=Qs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[5]||(t[5]=mr("span",null,"Open Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",NM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"Search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[Tl(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,DM),[[Ml,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(s,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:g.cancel},{default:Rt(()=>[...t[6]||(t[6]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(s,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!g.error,onClick:Qs(g.success,["prevent"])},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const DD=Kn("g",Ko(OM,[["render",FM]])),PM={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}},mounted(){let n=-1;new Ss().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new Ss().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},WM={class:"mt-4 pa-3"},BM=["textContent"];function zM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),s=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),a=xt("v-dialog");return En(),lo(a,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=p=>g.show=p),persistent:"",width:"600",onKeydown:$l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[4]||(t[4]=Qs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[6]||(t[6]=mr("span",null,"Save Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",WM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>f.configName=p),"hide-details":"",autofocus:"",disabled:!!g.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ht(d,{dense:""},{default:Rt(()=>[Tl(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,BM),[[Ml,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(s,{variant:"outlined",onClick:g.cancel},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(s,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!g.error,onClick:Qs(g.success,["prevent"])},{default:Rt(()=>[...t[8]||(t[8]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const FD=Kn("a",Ko(PM,[["render",zM]])),HM=50,jM=2e3,Yy="single-spa:app-change",UM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Yy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},jM)},unmounted(){window.removeEventListener(Yy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=pu().length>0,pu().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},HM)}}},VM={class:"mx-1"},qM={key:1,class:"d-flex justify-center align-center"};function KM(n,t,e,r,f,g){const m=xt("v-card-title"),w=xt("v-card-text"),h=xt("v-card"),d=xt("v-progress-circular");return En(),ri(_l,null,[f.show?(En(),lo(h,{key:0},{default:Rt(()=>[ht(m,null,{default:Rt(()=>[...t[0]||(t[0]=[Rr(" 404 Not Found ",-1)])]),_:1}),ht(w,{class:"d-flex align-center mt-3"},{default:Rt(()=>[t[1]||(t[1]=Rr(" The requested URL ",-1)),mr("code",VM,ii(n.$route.fullPath),1),t[2]||(t[2]=Rr(" was not routable. ",-1)),t[3]||(t[3]=mr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):So("",!0),g.showSpinner?(En(),ri("div",qM,[ht(d,{indeterminate:""})])):So("",!0)],64)}const Xy=[{path:"/:target?/:screen?",name:"TlmViewer",component:()=>ot(()=>it.import("./TlmViewer-a8453a470edd1e8d092a.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Ko(UM,[["render",KM]])}];Xy.forEach(zp);const GM=Dp({history:Fp(),routes:Xy});/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:Zy,setPrototypeOf:Qy,isFrozen:YM,getPrototypeOf:XM,getOwnPropertyDescriptor:ZM}=Object;let{freeze:Ur,seal:Di,create:wd}=Object,{apply:xd,construct:Cd}=typeof Reflect<"u"&&Reflect;Ur||(Ur=function(n){return n}),Di||(Di=function(n){return n}),xd||(xd=function(n,t){for(var e=arguments.length,r=new Array(e>2?e-2:0),f=2;f<e;f++)r[f-2]=arguments[f];return n.apply(t,r)}),Cd||(Cd=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new n(...e)});const _c=qr(Array.prototype.forEach),QM=qr(Array.prototype.lastIndexOf),Jy=qr(Array.prototype.pop),ol=qr(Array.prototype.push),JM=qr(Array.prototype.splice),$c=qr(String.prototype.toLowerCase),kd=qr(String.prototype.toString),Ad=qr(String.prototype.match),sl=qr(String.prototype.replace),eI=qr(String.prototype.indexOf),tI=qr(String.prototype.trim),eo=qr(Object.prototype.hasOwnProperty),Vr=qr(RegExp.prototype.test),al=nI(TypeError);function qr(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),f=1;f<e;f++)r[f-1]=arguments[f];return xd(n,t,r)}}function nI(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Cd(n,e)}}function Pt(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;Qy&&Qy(n,null);let r=t.length;for(;r--;){let f=t[r];if(typeof f=="string"){const g=e(f);g!==f&&(YM(t)||(t[r]=g),f=g)}n[f]=!0}return n}function rI(n){for(let t=0;t<n.length;t++)eo(n,t)||(n[t]=null);return n}function To(n){const t=wd(null);for(const[e,r]of Zy(n))eo(n,e)&&(Array.isArray(r)?t[e]=rI(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=To(r):t[e]=r);return t}function ll(n,t){for(;n!==null;){const r=ZM(n,t);if(r){if(r.get)return qr(r.get);if(typeof r.value=="function")return qr(r.value)}n=XM(n)}function e(){return null}return e}const eb=Ur(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sd=Ur(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_d=Ur(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),iI=Ur(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$d=Ur(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oI=Ur(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tb=Ur(["#text"]),nb=Ur(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Td=Ur(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rb=Ur(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tc=Ur(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sI=Di(/\{\{[\w\W]*|[\w\W]*\}\}/gm),aI=Di(/<%[\w\W]*|[\w\W]*%>/gm),lI=Di(/\$\{[\w\W]*/gm),cI=Di(/^data-[\-\w.\u00B7-\uFFFF]+$/),uI=Di(/^aria-[\-\w]+$/),ib=Di(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hI=Di(/^(?:\w+script|data):/i),dI=Di(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ob=Di(/^html$/i),pI=Di(/^[a-z][.\w]*(-[.\w]+)+$/i);var sb=Object.freeze({__proto__:null,ARIA_ATTR:uI,ATTR_WHITESPACE:dI,CUSTOM_ELEMENT:pI,DATA_ATTR:cI,DOCTYPE_NAME:ob,ERB_EXPR:aI,IS_ALLOWED_URI:ib,IS_SCRIPT_OR_DATA:hI,MUSTACHE_EXPR:sI,TMPLIT_EXPR:lI});const cl={element:1,text:3,progressingInstruction:7,comment:8,document:9},fI=function(){return typeof window>"u"?null:window},gI=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const f="dompurify"+(e?"#"+e:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},ab=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function lb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fI();const t=ce=>lb(ce);if(t.version="3.3.0",t.removed=[],!n||!n.document||n.document.nodeType!==cl.document||!n.Element)return t.isSupported=!1,t;let{document:e}=n;const r=e,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:w,Element:h,NodeFilter:d,NamedNodeMap:s=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=n,i=h.prototype,a=ll(i,"cloneNode"),p=ll(i,"remove"),b=ll(i,"nextSibling"),x=ll(i,"childNodes"),R=ll(i,"parentNode");if(typeof m=="function"){const ce=e.createElement("template");ce.content&&ce.content.ownerDocument&&(e=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:E}=e,{importNode:I}=r;let z=ab();t.isSupported=typeof Zy=="function"&&typeof R=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:A,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:K}=sb;let{IS_ALLOWED_URI:Q}=sb,J=null;const he=Pt({},[...eb,...Sd,..._d,...$d,...tb]);let ne=null;const le=Pt({},[...nb,...Td,...rb,...Tc]);let se=Object.seal(wd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const _e=Object.seal(wd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Xe=!1,Ke=!0,at=!1,et=!0,lt=!1,Yt=!1,xn=!1,Wt=!1,vr=!1,un=!1,Ln=!0,Zn=!1;const Tr="user-content-";let mt=!0,je=!1,Lt={},Qt=null;const On=Pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yr=null;const ur=Pt({},["audio","video","img","source","image","track"]);let gn=null;const Wn=Pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let Dr=ln,Kr=!1,Gr=null;const Ai=Pt({},[Nn,Kt,ln],kd);let ci=Pt({},["mi","mo","mn","ms","mtext"]),Bn=Pt({},["annotation-xml"]);const to=Pt({},["title","style","font","a","script"]);let ui=null;const Ns=["application/xhtml+xml","text/html"],Yr="text/html";let _n=null,hi=null;const Jo=e.createElement("form"),di=function(ce){return ce instanceof RegExp||ce instanceof Function},Cn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hi&&hi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=To(ce),ui=Ns.indexOf(ce.PARSER_MEDIA_TYPE)===-1?Yr:ce.PARSER_MEDIA_TYPE,_n=ui==="application/xhtml+xml"?kd:$c,J=eo(ce,"ALLOWED_TAGS")?Pt({},ce.ALLOWED_TAGS,_n):he,ne=eo(ce,"ALLOWED_ATTR")?Pt({},ce.ALLOWED_ATTR,_n):le,Gr=eo(ce,"ALLOWED_NAMESPACES")?Pt({},ce.ALLOWED_NAMESPACES,kd):Ai,gn=eo(ce,"ADD_URI_SAFE_ATTR")?Pt(To(Wn),ce.ADD_URI_SAFE_ATTR,_n):Wn,yr=eo(ce,"ADD_DATA_URI_TAGS")?Pt(To(ur),ce.ADD_DATA_URI_TAGS,_n):ur,Qt=eo(ce,"FORBID_CONTENTS")?Pt({},ce.FORBID_CONTENTS,_n):On,de=eo(ce,"FORBID_TAGS")?Pt({},ce.FORBID_TAGS,_n):To({}),me=eo(ce,"FORBID_ATTR")?Pt({},ce.FORBID_ATTR,_n):To({}),Lt=eo(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Xe=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Ke=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=ce.SAFE_FOR_TEMPLATES||!1,et=ce.SAFE_FOR_XML!==!1,lt=ce.WHOLE_DOCUMENT||!1,Wt=ce.RETURN_DOM||!1,vr=ce.RETURN_DOM_FRAGMENT||!1,un=ce.RETURN_TRUSTED_TYPE||!1,xn=ce.FORCE_BODY||!1,Ln=ce.SANITIZE_DOM!==!1,Zn=ce.SANITIZE_NAMED_PROPS||!1,mt=ce.KEEP_CONTENT!==!1,je=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||ib,Dr=ce.NAMESPACE||ln,ci=ce.MATHML_TEXT_INTEGRATION_POINTS||ci,Bn=ce.HTML_INTEGRATION_POINTS||Bn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),at&&(Me=!1),vr&&(Wt=!0),Lt&&(J=Pt({},tb),ne=[],Lt.html===!0&&(Pt(J,eb),Pt(ne,nb)),Lt.svg===!0&&(Pt(J,Sd),Pt(ne,Td),Pt(ne,Tc)),Lt.svgFilters===!0&&(Pt(J,_d),Pt(ne,Td),Pt(ne,Tc)),Lt.mathMl===!0&&(Pt(J,$d),Pt(ne,rb),Pt(ne,Tc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=To(J)),Pt(J,ce.ADD_TAGS,_n))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=To(ne)),Pt(ne,ce.ADD_ATTR,_n))),ce.ADD_URI_SAFE_ATTR&&Pt(gn,ce.ADD_URI_SAFE_ATTR,_n),ce.FORBID_CONTENTS&&(Qt===On&&(Qt=To(Qt)),Pt(Qt,ce.FORBID_CONTENTS,_n)),mt&&(J["#text"]=!0),lt&&Pt(J,["html","head","body"]),J.table&&(Pt(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw al('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw al('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=gI(c,f)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Ur&&Ur(ce),hi=ce}},hr=Pt({},[...Sd,..._d,...iI]),pi=Pt({},[...$d,...oI]),kn=function(ce){let ze=R(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Dr,tagName:"template"});const Fe=$c(ce.tagName),St=$c(ze.tagName);return Gr[ce.namespaceURI]?ce.namespaceURI===Kt?ze.namespaceURI===ln?Fe==="svg":ze.namespaceURI===Nn?Fe==="svg"&&(St==="annotation-xml"||ci[St]):!!hr[Fe]:ce.namespaceURI===Nn?ze.namespaceURI===ln?Fe==="math":ze.namespaceURI===Kt?Fe==="math"&&Bn[St]:!!pi[Fe]:ce.namespaceURI===ln?ze.namespaceURI===Kt&&!Bn[St]||ze.namespaceURI===Nn&&!ci[St]?!1:!pi[Fe]&&(to[Fe]||!hr[Fe]):!!(ui==="application/xhtml+xml"&&Gr[ce.namespaceURI]):!1},$n=function(ce){ol(t.removed,{element:ce});try{R(ce).removeChild(ce)}catch{p(ce)}},br=function(ce,ze){try{ol(t.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{ol(t.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Wt||vr)try{$n(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},fi=function(ce){let ze=null,Fe=null;if(xn)ce="<remove></remove>"+ce;else{const Ht=Ad(ce,/^[\r\n\t ]+/);Fe=Ht&&Ht[0]}ui==="application/xhtml+xml"&&Dr===ln&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const St=_?_.createHTML(ce):ce;if(Dr===ln)try{ze=new u().parseFromString(St,ui)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Dr,"template",null);try{ze.documentElement.innerHTML=Kr?k:St}catch{}}const Gt=ze.body||ze.documentElement;return ce&&Fe&&Gt.insertBefore(e.createTextNode(Fe),Gt.childNodes[0]||null),Dr===ln?E.call(ze,lt?"html":"body")[0]:lt?ze.documentElement:Gt},mo=function(ce){return L.call(ce.ownerDocument||ce,ce,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},vo=function(ce){return ce instanceof l&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof s)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},es=function(ce){return typeof w=="function"&&ce instanceof w};function Xr(ce,ze,Fe){_c(ce,St=>{St.call(t,ze,Fe,hi)})}const gi=function(ce){let ze=null;if(Xr(z.beforeSanitizeElements,ce,null),vo(ce))return $n(ce),!0;const Fe=_n(ce.nodeName);if(Xr(z.uponSanitizeElement,ce,{tagName:Fe,allowedTags:J}),et&&ce.hasChildNodes()&&!es(ce.firstElementChild)&&Vr(/<[/\w!]/g,ce.innerHTML)&&Vr(/<[/\w!]/g,ce.textContent)||ce.nodeType===cl.progressingInstruction||et&&ce.nodeType===cl.comment&&Vr(/<[/\w]/g,ce.data))return $n(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Ot(Fe)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(mt&&!Qt[Fe]){const St=R(ce)||ce.parentNode,Gt=x(ce)||ce.childNodes;if(Gt&&St){const Ht=Gt.length;for(let xr=Ht-1;xr>=0;--xr){const dr=a(Gt[xr],!0);dr.__removalCount=(ce.__removalCount||0)+1,St.insertBefore(dr,b(ce))}}}return $n(ce),!0}return ce instanceof h&&!kn(ce)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Vr(/<\/no(script|embed|frames)/i,ce.innerHTML)?($n(ce),!0):(at&&ce.nodeType===cl.text&&(ze=ce.textContent,_c([P,O,$],St=>{ze=sl(ze,St," ")}),ce.textContent!==ze&&(ol(t.removed,{element:ce.cloneNode()}),ce.textContent=ze)),Xr(z.afterSanitizeElements,ce,null),!1)},Fr=function(ce,ze,Fe){if(Ln&&(ze==="id"||ze==="name")&&(Fe in e||Fe in Jo))return!1;if(!(Me&&!me[ze]&&Vr(A,ze))&&!(Te&&Vr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Ot(ce)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&Vr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!gn[ze]&&!Vr(Q,sl(Fe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&eI(Fe,"data:")===0&&yr[ce])&&!(Xe&&!Vr(B,sl(Fe,U,"")))&&Fe)return!1}return!0},Ot=function(ce){return ce!=="annotation-xml"&&Ad(ce,K)},Mo=function(ce){Xr(z.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||vo(ce))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let St=ze.length;for(;St--;){const Gt=ze[St],{name:Ht,namespaceURI:xr,value:dr}=Gt,zn=_n(Ht),Cr=dr;let mn=Ht==="value"?Cr:tI(Cr);if(Fe.attrName=zn,Fe.attrValue=mn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Xr(z.uponSanitizeAttribute,ce,Fe),mn=Fe.attrValue,Zn&&(zn==="id"||zn==="name")&&(br(Ht,ce),mn=Tr+mn),et&&Vr(/((--!?|])>)|<\/(style|title|textarea)/i,mn)){br(Ht,ce);continue}if(zn==="attributename"&&Ad(mn,"href")){br(Ht,ce);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){br(Ht,ce);continue}if(!Ke&&Vr(/\/>/i,mn)){br(Ht,ce);continue}at&&_c([P,O,$],Pr=>{mn=sl(mn,Pr," ")});const no=_n(ce.nodeName);if(!Fr(no,zn,mn)){br(Ht,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!xr)switch(c.getAttributeType(no,zn)){case"TrustedHTML":{mn=_.createHTML(mn);break}case"TrustedScriptURL":{mn=_.createScriptURL(mn);break}}if(mn!==Cr)try{xr?ce.setAttributeNS(xr,Ht,mn):ce.setAttribute(Ht,mn),vo(ce)?$n(ce):Jy(t.removed)}catch{br(Ht,ce)}}Xr(z.afterSanitizeAttributes,ce,null)},wr=function ce(ze){let Fe=null;const St=mo(ze);for(Xr(z.beforeSanitizeShadowDOM,ze,null);Fe=St.nextNode();)Xr(z.uponSanitizeShadowNode,Fe,null),gi(Fe),Mo(Fe),Fe.content instanceof g&&ce(Fe.content);Xr(z.afterSanitizeShadowDOM,ze,null)};return t.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,St=null,Gt=null,Ht=null;if(Kr=!ce,Kr&&(ce="<!-->"),typeof ce!="string"&&!es(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw al("dirty is not a string, aborting")}else throw al("toString is not a function");if(!t.isSupported)return ce;if(Yt||Cn(ze),t.removed=[],typeof ce=="string"&&(je=!1),je){if(ce.nodeName){const zn=_n(ce.nodeName);if(!J[zn]||de[zn])throw al("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof w)Fe=fi("<!---->"),St=Fe.ownerDocument.importNode(ce,!0),St.nodeType===cl.element&&St.nodeName==="BODY"||St.nodeName==="HTML"?Fe=St:Fe.appendChild(St);else{if(!Wt&&!at&&!lt&&ce.indexOf("<")===-1)return _&&un?_.createHTML(ce):ce;if(Fe=fi(ce),!Fe)return Wt?null:un?k:""}Fe&&xn&&$n(Fe.firstChild);const xr=mo(je?ce:Fe);for(;Gt=xr.nextNode();)gi(Gt),Mo(Gt),Gt.content instanceof g&&wr(Gt.content);if(je)return ce;if(Wt){if(vr)for(Ht=D.call(Fe.ownerDocument);Fe.firstChild;)Ht.appendChild(Fe.firstChild);else Ht=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(Ht=I.call(r,Ht,!0)),Ht}let dr=lt?Fe.outerHTML:Fe.innerHTML;return lt&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Vr(ob,Fe.ownerDocument.doctype.name)&&(dr="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1498
|
-
`+dr),at&&_c([P,O,$],zn=>{dr=sl(dr,zn," ")}),_&&un?_.createHTML(dr):dr},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};
|
|
1497
|
+
`+g):r.stack=g}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Ls(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:g}=e;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1),f!=null&&(Se.isFunction(f)?e.paramsSerializer={serialize:f}:wc.assertOptions(f,{encode:po.function,serialize:po.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),wc.assertOptions(e,{baseUrl:po.spelling("baseURL"),withXsrfToken:po.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let m=g&&Se.merge(g.common,g[e.method]);g&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=li.concat(m,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(e)===!1||(h=h&&i.synchronous,w.unshift(i.fulfilled,i.rejected))});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let s,l=0,u;if(!h){const i=[wy.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,s=Promise.resolve(e);l<u;)s=s.then(i[l++],i[l++]);return s}u=w.length;let c=e;for(;l<u;){const i=w[l++],a=w[l++];try{c=i(c)}catch(p){a.call(this,p);break}}try{s=wy.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)s=s.then(d[l++],d[l++]);return s}getUri(t){t=Ls(this.defaults,t);const e=cy(t.baseURL,t.url,t.allowAbsoluteUrls);return ey(e,t.params,t.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Os.prototype[n]=function(t,e){return this.request(Ls(e||{},{method:n,url:t,data:(e||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(Ls(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Os.prototype[n]=t(),Os.prototype[n+"Form"]=t(!0)});let M$=class sw{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 g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new ya(f,g,m),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 sw(function(e){t=e}),cancel:t}}};function I$(n){return function(t){return n.apply(null,t)}}function E$(n){return Se.isObject(n)&&n.isAxiosError===!0}const ad={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ad).forEach(([n,t])=>{ad[t]=n});function ky(n){const t=new Os(n),e=Wv(Os.prototype.request,t);return Se.extend(e,Os.prototype,t,{allOwnKeys:!0}),Se.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return ky(Ls(n,r))},e}const rr=Kn("w",ky(nl));rr.Axios=Os,rr.CanceledError=ya,rr.CancelToken=M$,rr.isCancel=oy,rr.VERSION=xy,rr.toFormData=gc,rr.AxiosError=At,rr.Cancel=rr.CanceledError,rr.all=function(n){return Promise.all(n)},rr.spread=I$,rr.isAxiosError=E$,rr.mergeConfig=Ls,rr.AxiosHeaders=li,rr.formToJSON=n=>ry(Se.isHTMLForm(n)?new FormData(n):n),rr.getAdapter=by.getAdapter,rr.HttpStatusCode=ad,rr.default=rr;const{Axios:yD,AxiosError:bD,CanceledError:wD,isCancel:xD,CancelToken:CD,VERSION:kD,all:AD,Cancel:SD,isAxiosError:_D,spread:$D,toFormData:TD,AxiosHeaders:MD,HttpStatusCode:ID,formToJSON:ED,getAdapter:RD,mergeConfig:LD}=rr;function Ay(){return Object.assign({},Js())}function R$(n,t,e){const r=_n(n,void 0);return r.setTime(r.getTime()+t*Il),r}function L$(n,t){const e=()=>tr(void 0,NaN),r=F$(n);let f;if(r.date){const h=P$(r.date,2);f=W$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const g=+f;let m=0,w;if(r.time&&(m=B$(r.time),isNaN(m)))return e();if(r.timezone){if(w=z$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+m),d=_n(0,void 0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return _n(g+m+w,void 0)}const xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},O$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,N$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,D$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function F$(n){const t={},e=n.split(xc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],xc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=xc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function P$(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,g=r[2]?parseInt(r[2]):null;return{year:g===null?f:g*100,restDateString:n.slice((r[1]||r[2]).length)}}function W$(n,t){if(t===null)return new Date(NaN);const e=n.match(O$);if(!e)return new Date(NaN);const r=!!e[4],f=il(e[1]),g=il(e[2])-1,m=il(e[3]),w=il(e[4]),h=il(e[5])-1;if(r)return q$(t,w,h)?H$(t,w,h):new Date(NaN);{const d=new Date(0);return!U$(t,g,m)||!V$(t,f)?new Date(NaN):(d.setUTCFullYear(t,g,Math.max(f,m)),d)}}function il(n){return n?parseInt(n):1}function B$(n){const t=n.match(N$);if(!t)return NaN;const e=ld(t[1]),r=ld(t[2]),f=ld(t[3]);return K$(e,r,f)?e*gu+r*Il+f*1e3:NaN}function ld(n){return n&&parseFloat(n.replace(",","."))||0}function z$(n){if(n==="Z")return 0;const t=n.match(D$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return G$(r,f)?e*(r*gu+f*Il):NaN}function H$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const j$=[31,null,31,30,31,30,31,31,30,31,30,31];function Sy(n){return n%400===0||n%4===0&&n%100!==0}function U$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(j$[t]||(Sy(n)?29:28))}function V$(n,t){return t>=1&&t<=(Sy(n)?366:365)}function q$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function K$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function G$(n,t){return t>=0&&t<=59}function Y$(n,t,e){return R$(n,-t)}function _y(n,t,e){const r=Ay(),f=Q$(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?X$(f,t):Z$(f,t)}function X$(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 Z$(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 J$(n,t){const e=iT(t);return"formatToParts"in e?tT(e,n):nT(e,n)}const eT={year:0,month:1,day:2,hour:3,minute:4,second:5};function tT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const g=eT[e[f].type];g!==void 0&&(r[g]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function nT(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 cd={},$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")),rT=$y==="06/25/2014, 00:00:00"||$y==="06/25/2014 00:00:00";function iT(n){return cd[n]||(cd[n]=rT?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"})),cd[n]}function Ty(n,t,e,r,f,g,m){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(r,f,g,m),w}const My=36e5,oT=6e4,ud={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function hd(n,t,e){if(!n)return 0;let r=ud.timezoneZ.exec(n);if(r)return 0;let f,g;if(r=ud.timezoneHH.exec(n),r)return f=parseInt(r[1],10),Iy(f)?-(f*My):NaN;if(r=ud.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const m=parseInt(r[3],10);return Iy(f,m)?(g=Math.abs(f)*My+m*oT,r[1]==="+"?-g:g):NaN}if(lT(n)){t=new Date(t||Date.now());const m=e?t:sT(t),w=dd(m,n);return-(e?w:aT(t,w,n))}return NaN}function sT(n){return Ty(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function dd(n,t){const e=J$(n,t),r=Ty(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const g=f%1e3;return f-=g>=0?g:1e3+g,r-f}function aT(n,t,e){let r=n.getTime()-t;const f=dd(new Date(r),e);if(t===f)return t;r-=f-t;const g=dd(new Date(r),e);return f===g?f:Math.max(f,g)}function Iy(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Ey={};function lT(n){if(Ey[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Ey[n]=!0,!0}catch{return!1}}const cT=60*1e3,uT={X:function(n,t,e){const r=pd(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ry(r);case"XXXX":case"XX":return ba(r);case"XXXXX":case"XXX":default:return ba(r,":")}},x:function(n,t,e){const r=pd(e.timeZone,n);switch(t){case"x":return Ry(r);case"xxxx":case"xx":return ba(r);case"xxxxx":case"xxx":default:return ba(r,":")}},O:function(n,t,e){const r=pd(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+hT(r,":");case"OOOO":default:return"GMT"+ba(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return _y("short",n,e);case"zzzz":default:return _y("long",n,e)}}};function pd(n,t){const e=n?hd(n,t,!0)/cT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function Cc(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function ba(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cc(Math.floor(r/60),2),g=Cc(Math.floor(r%60),2);return e+f+t+g}function Ry(n,t){return n%60===0?(n>0?"-":"+")+Cc(Math.abs(n)/60,2):ba(n,t)}function hT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+Cc(g,2)}function Ly(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 dT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,fd=36e5,Oy=6e4,pT=2,jr={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:dT};function Ny(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?pT: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=fT(n),{year:f,restDateString:g}=gT(r.date,e),m=mT(g,f);if(m===null||isNaN(m.getTime()))return new Date(NaN);if(m){const w=m.getTime();let h=0,d;if(r.time&&(h=vT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=hd(r.timeZone||t.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=Ly(new Date(w+h)),d=Ly(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function fT(n){const t={};let e=jr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=jr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=jr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function gT(n,t){if(n){const e=jr.YYY[t],r=jr.YYYYY[t];let f=jr.YYYY.exec(n)||r.exec(n);if(f){const g=f[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(f=jr.YY.exec(n)||e.exec(n),f){const g=f[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function mT(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 g=jr.MM.exec(n);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Py(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(g=jr.DDD.exec(n),g){e=new Date(0);const m=parseInt(g[1],10);return wT(t,m)?(e.setUTCFullYear(t,0,m),e):new Date(NaN)}if(g=jr.MMDD.exec(n),g){e=new Date(0),r=parseInt(g[1],10)-1;const m=parseInt(g[2],10);return Py(t,r,m)?(e.setUTCFullYear(t,r,m),e):new Date(NaN)}if(g=jr.Www.exec(n),g)return f=parseInt(g[1],10)-1,Wy(f)?Dy(t,f):new Date(NaN);if(g=jr.WwwD.exec(n),g){f=parseInt(g[1],10)-1;const m=parseInt(g[2],10)-1;return Wy(f,m)?Dy(t,f,m):new Date(NaN)}return null}function vT(n){let t,e,r=jr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),gd(t)?t%24*fd:NaN;if(r=jr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),gd(t,e)?t%24*fd+e*Oy:NaN;if(r=jr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return gd(t,e,f)?t%24*fd+e*Oy+f*1e3:NaN}return null}function Dy(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const yT=[31,28,31,30,31,30,31,31,30,31,30,31],bT=[31,29,31,30,31,30,31,31,30,31,30,31];function Fy(n){return n%400===0||n%4===0&&n%100!==0}function Py(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Fy(n);if(r&&e>bT[t]||!r&&e>yT[t])return!1}return!0}function wT(n,t){if(t<1)return!1;const e=Fy(n);return!(e&&t>366||!e&&t>365)}function Wy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function gd(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const xT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function CT(n,t,e={}){t=String(t);const r=t.match(xT);if(r){const f=Ny(e.originalDate||n,e);t=r.reduce(function(g,m){if(m[0]==="'")return g;const w=g.indexOf(m),h=g[w-1]==="'",d=g.replace(m,"'"+uT[m[0]](f,m,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},t)}return bs(n,t,e)}function kT(n,t,e){n=Ny(n,e);const r=hd(t,n,!0),f=new Date(n.getTime()-r),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}function kc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},CT(kT(n,t,{timeZone:r.timeZone}),e,r)}const Ac="yyyy-MM-dd",By="HH:mm:ss.SSS",zy="HH:mm:ss",Sc=`${Ac} ${By}`,Hy=`${Ac} ${zy}`,OD=Kn("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return bs(!t||t==="local"?Y$(n,n.getTimezoneOffset()):n,Sc)},formatDateTime(n,t){return!t||t==="local"?bs(n,Sc):kc(n,t,Sc)},formatDateTimeHMS(n,t){return!t||t==="local"?bs(n,Hy):kc(n,t,Hy)},formatDate:function(n,t){return!t||t==="local"?bs(n,Ac):kc(n,this.timeZone,Ac)},formatTime:function(n,t,e=By){return!t||t==="local"?bs(n,e):kc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,zy)},formatTimestamp(n,t){return this.formatDateTime(L$(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 AT=Object.defineProperty,ST=(n,t,e)=>t in n?AT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Je=(n,t,e)=>ST(n,typeof t!="symbol"?t+"":t,e);function md(n,t,e){const r=_n(n,e==null?void 0:e.in);return isNaN(t)?tr((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function _T(n,t){const e=_n(n,void 0).getDay();return e===0?7:e}function $T(n,t){const e=TT(t)?new t(0):tr(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function TT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const MT=10;let jy=class{constructor(){Je(this,"subPriority",0)}validate(t,e){return!0}},IT=class extends jy{constructor(t,e,r,f,g){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}};class ET extends jy{constructor(t,e){super(),Je(this,"priority",MT),Je(this,"subPriority",-1),this.context=t||(r=>tr(e,r))}set(t,e){return e.timestampIsSet?t:tr(t,$T(t,this.context))}}class tn{run(t,e,r,f){const g=this.parse(t,e,r,f);return g?{setter:new IT(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,r){return!0}}class RT extends tn{constructor(){super(...arguments),Je(this,"priority",140),Je(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 Yn={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}/},fo={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 Xn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ln(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function go(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,g=e[3]?parseInt(e[3],10):0,m=e[5]?parseInt(e[5],10):0;return{value:r*(f*gu+g*Il+m*Aw),rest:t.slice(e[0].length)}}function Uy(n){return Ln(Yn.anyDigitsSigned,n)}function Pn(n,t){switch(n){case 1:return Ln(Yn.singleDigit,t);case 2:return Ln(Yn.twoDigits,t);case 3:return Ln(Yn.threeDigits,t);case 4:return Ln(Yn.fourDigits,t);default:return Ln(new RegExp("^\\d{1,"+n+"}"),t)}}function Vy(n,t){switch(n){case 1:return Ln(Yn.singleDigitSigned,t);case 2:return Ln(Yn.twoDigitsSigned,t);case 3:return Ln(Yn.threeDigitsSigned,t);case 4:return Ln(Yn.fourDigitsSigned,t);default:return Ln(new RegExp("^-?\\d{1,"+n+"}"),t)}}function vd(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 qy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const g=r+50,m=Math.trunc(g/100)*100,w=n>=g%100;f=n+m-(w?100:0)}return e?f:1-f}function Ky(n){return n%400===0||n%4===0&&n%100!==0}let LT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return Xn(Pn(4,t),f);case"yo":return Xn(r.ordinalNumber(t,{unit:"year"}),f);default:return Xn(Pn(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 m=qy(r.year,f);return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class OT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return Xn(Pn(4,t),f);case"Yo":return Xn(r.ordinalNumber(t,{unit:"year"}),f);default:return Xn(Pn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const g=vu(t,f);if(r.isTwoDigitYear){const w=qy(r.year,g);return t.setFullYear(w,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Go(t,f)}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Go(t,f)}}class NT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Vy(e==="R"?4:e.length,t)}set(t,e,r){const f=tr(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),ea(f)}}let DT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Vy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};class FT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(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 Pn(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}}class PT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(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 Pn(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}}let WT=class extends tn{constructor(){super(...arguments),Je(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Je(this,"priority",110)}parse(t,e,r){const f=g=>g-1;switch(e){case"M":return Xn(Ln(Yn.month,t),f);case"MM":return Xn(Pn(2,t),f);case"Mo":return Xn(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}},BT=class extends tn{constructor(){super(...arguments),Je(this,"priority",110),Je(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=g=>g-1;switch(e){case"L":return Xn(Ln(Yn.month,t),f);case"LL":return Xn(Pn(2,t),f);case"Lo":return Xn(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 zT(n,t,e){const r=_n(n,e==null?void 0:e.in),f=Xp(r,e)-t;return r.setDate(r.getDate()-f*7),_n(r,e==null?void 0:e.in)}let HT=class extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Ln(Yn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Go(zT(t,r,f),f)}};function jT(n,t,e){const r=_n(n,void 0),f=Yp(r)-t;return r.setDate(r.getDate()-f*7),r}class UT extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(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 Ln(Yn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return ea(jT(t,r))}}const VT=[31,28,31,30,31,30,31,31,30,31,30,31],qT=[31,29,31,30,31,30,31,31,30,31,30,31];class KT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subPriority",1),Je(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Ln(Yn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=Ky(r),g=t.getMonth();return f?e>=1&&e<=qT[g]:e>=1&&e<=VT[g]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}let GT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subpriority",1),Je(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 Ln(Yn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear();return Ky(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 yd(n,t,e){var r,f,g,m;const w=Js(),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)??w.weekStartsOn??((m=(g=w.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,d=_n(n,e==null?void 0:e.in),s=d.getDay(),l=(t%7+7)%7,u=7-h,c=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return md(d,c,e)}class YT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(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=yd(t,r,f),t.setHours(0,0,0,0),t}}class XT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return Xn(Pn(e.length,t),g);case"eo":return Xn(r.ordinalNumber(t,{unit:"day"}),g);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=yd(t,r,f),t.setHours(0,0,0,0),t}}class ZT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return Xn(Pn(e.length,t),g);case"co":return Xn(r.ordinalNumber(t,{unit:"day"}),g);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=yd(t,r,f),t.setHours(0,0,0,0),t}}function QT(n,t,e){const r=_n(n,void 0),f=_T(r),g=t-f;return md(r,g,e)}let JT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=g=>g===0?7:g;switch(e){case"i":case"ii":return Pn(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Xn(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 Xn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return Xn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return Xn(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=QT(t,r),t.setHours(0,0,0,0),t}};class eM extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(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(vd(r),0,0,0),t}}class tM extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(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(vd(r),0,0,0),t}}let nM=class extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(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(vd(r),0,0,0),t}};class rM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Ln(Yn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(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 iM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Ln(Yn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class oM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Ln(Yn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(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 sM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Ln(Yn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(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 aM extends tn{constructor(){super(...arguments),Je(this,"priority",60),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Ln(Yn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class lM extends tn{constructor(){super(...arguments),Je(this,"priority",50),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Ln(Yn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class cM extends tn{constructor(){super(...arguments),Je(this,"priority",30),Je(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return Xn(Pn(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class uM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return go(fo.basicOptionalMinutes,t);case"XX":return go(fo.basic,t);case"XXXX":return go(fo.basicOptionalSeconds,t);case"XXXXX":return go(fo.extendedOptionalSeconds,t);case"XXX":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:tr(t,t.getTime()-El(t)-r)}}class hM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return go(fo.basicOptionalMinutes,t);case"xx":return go(fo.basic,t);case"xxxx":return go(fo.basicOptionalSeconds,t);case"xxxxx":return go(fo.extendedOptionalSeconds,t);case"xxx":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:tr(t,t.getTime()-El(t)-r)}}class dM extends tn{constructor(){super(...arguments),Je(this,"priority",40),Je(this,"incompatibleTokens","*")}parse(t){return Uy(t)}set(t,e,r){return[tr(t,r*1e3),{timestampIsSet:!0}]}}class pM extends tn{constructor(){super(...arguments),Je(this,"priority",20),Je(this,"incompatibleTokens","*")}parse(t){return Uy(t)}set(t,e,r){return[tr(t,r),{timestampIsSet:!0}]}}const fM={G:new RT,y:new LT,Y:new OT,R:new NT,u:new DT,Q:new FT,q:new PT,M:new WT,L:new BT,w:new HT,I:new UT,d:new KT,D:new GT,E:new YT,e:new XT,c:new ZT,i:new JT,a:new eM,b:new tM,B:new nM,h:new rM,H:new iM,K:new oM,k:new sM,m:new aM,s:new lM,S:new cM,X:new uM,x:new hM,t:new dM,T:new pM},gM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vM=/^'([^]*?)'?$/,yM=/''/g,bM=/\S/,wM=/[a-zA-Z]/;function xM(n,t,e,r){var f,g,m,w;const h=()=>tr(e,NaN),d=Ay(),s=d.locale??Gp,l=d.firstWeekContainsDate??((g=(f=d.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,u=d.weekStartsOn??((w=(m=d.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():_n(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:u,locale:s},i=[new ET(void 0,e)],a=t.match(mM).map(_=>{const k=_[0];if(k in yu){const C=yu[k];return C(_,s.formatLong)}return _}).join("").match(gM),p=[];for(let _ of a){rf(_)&&bu(_,t,n),nf(_)&&bu(_,t,n);const k=_[0],C=fM[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const E=p.find(I=>L.includes(I.token)||I.token===k);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);p.push({token:k,fullToken:_});const D=C.run(n,_,s.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(wM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=CM(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&bM.test(n))return h();const b=i.map(_=>_.priority).sort((_,k)=>k-_).filter((_,k,C)=>C.indexOf(_)===k).map(_=>i.filter(k=>k.priority===_).sort((k,C)=>C.subPriority-k.subPriority)).map(_=>_[0]);let x=_n(e,void 0);if(isNaN(+x))return h();const R={};for(const _ of b){if(!_.validate(x,c))return h();const k=_.set(x,R,c);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function CM(n){return n.match(vM)[1].replace(yM,"'")}const kM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",AM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return kM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=EM.indexOf(Gy[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 SM(n,t,e,r,f,g){return Rn(),ri("div",{style:La(g.iconStyle)},null,4)}const _M=Ko(AM,[["render",SM]]),$M={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function TM(n,t,e,r,f,g){const m=xt("rux-icon");return Rn(),lo(m,{size:e.size,icon:e.icon,style:La(g.colorStyle)},null,8,["size","icon","style"])}const MM=Ko($M,[["render",TM],["__scopeId","data-v-9af48e85"]]),Gy={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"},bd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},IM=function(n){const t="#000000",e="#ffffff",r=bd[Gy[n]];if(r){const f=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,m=+`0x${r.slice(5,7)}`;if((f*299+g*587+m*114)/1e3>128)return t}return e},EM=Object.keys(bd),RM={astro:{component:n=>Zs(MM,{...n})},"astro-status":{component:n=>Zs(_M,{...n,status:n.icon})}},LM={extras:{component:n=>Zs(kw,{...n})}},ND=Kn("p",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new Ss().load_config(this.configKey,n).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(r)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:r})})},saveConfigBase:function(n,t){new Ss().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),OM={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Ss().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new Ss().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},NM={class:"mt-4 pa-3"},DM=["textContent"];function FM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),s=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),a=xt("v-dialog");return Rn(),lo(a,{modelValue:g.show,"onUpdate:modelValue":t[4]||(t[4]=p=>g.show=p),persistent:"",width:"600",onKeydown:$l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[3]||(t[3]=Qs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[5]||(t[5]=mr("span",null,"Open Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",NM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"Search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[Tl(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,DM),[[Ml,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(s,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:g.cancel},{default:Rt(()=>[...t[6]||(t[6]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(s,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!g.error,onClick:Qs(g.success,["prevent"])},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const DD=Kn("g",Ko(OM,[["render",FM]])),PM={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}},mounted(){let n=-1;new Ss().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new Ss().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},WM={class:"mt-4 pa-3"},BM=["textContent"];function zM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),s=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),a=xt("v-dialog");return Rn(),lo(a,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=p=>g.show=p),persistent:"",width:"600",onKeydown:$l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[4]||(t[4]=Qs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[6]||(t[6]=mr("span",null,"Save Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",WM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>f.configName=p),"hide-details":"",autofocus:"",disabled:!!g.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ht(d,{dense:""},{default:Rt(()=>[Tl(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,BM),[[Ml,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(s,{variant:"outlined",onClick:g.cancel},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(s,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!g.error,onClick:Qs(g.success,["prevent"])},{default:Rt(()=>[...t[8]||(t[8]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const FD=Kn("a",Ko(PM,[["render",zM]])),HM=50,jM=2e3,Yy="single-spa:app-change",UM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Yy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},jM)},unmounted(){window.removeEventListener(Yy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=pu().length>0,pu().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},HM)}}},VM={class:"mx-1"},qM={key:1,class:"d-flex justify-center align-center"};function KM(n,t,e,r,f,g){const m=xt("v-card-title"),w=xt("v-card-text"),h=xt("v-card"),d=xt("v-progress-circular");return Rn(),ri(_l,null,[f.show?(Rn(),lo(h,{key:0},{default:Rt(()=>[ht(m,null,{default:Rt(()=>[...t[0]||(t[0]=[Rr(" 404 Not Found ",-1)])]),_:1}),ht(w,{class:"d-flex align-center mt-3"},{default:Rt(()=>[t[1]||(t[1]=Rr(" The requested URL ",-1)),mr("code",VM,ii(n.$route.fullPath),1),t[2]||(t[2]=Rr(" was not routable. ",-1)),t[3]||(t[3]=mr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):_o("",!0),g.showSpinner?(Rn(),ri("div",qM,[ht(d,{indeterminate:""})])):_o("",!0)],64)}const Xy=[{path:"/:target?/:screen?",name:"TlmViewer",component:()=>ot(()=>it.import("./TlmViewer-d371db00d26902b1ce34.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Ko(UM,[["render",KM]])}];Xy.forEach(zp);const GM=Dp({history:Fp(),routes:Xy});/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Zy,setPrototypeOf:Qy,isFrozen:YM,getPrototypeOf:XM,getOwnPropertyDescriptor:ZM}=Object;let{freeze:Ur,seal:Di,create:wd}=Object,{apply:xd,construct:Cd}=typeof Reflect<"u"&&Reflect;Ur||(Ur=function(n){return n}),Di||(Di=function(n){return n}),xd||(xd=function(n,t){for(var e=arguments.length,r=new Array(e>2?e-2:0),f=2;f<e;f++)r[f-2]=arguments[f];return n.apply(t,r)}),Cd||(Cd=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new n(...e)});const _c=qr(Array.prototype.forEach),QM=qr(Array.prototype.lastIndexOf),Jy=qr(Array.prototype.pop),ol=qr(Array.prototype.push),JM=qr(Array.prototype.splice),$c=qr(String.prototype.toLowerCase),kd=qr(String.prototype.toString),Ad=qr(String.prototype.match),sl=qr(String.prototype.replace),eI=qr(String.prototype.indexOf),tI=qr(String.prototype.trim),eo=qr(Object.prototype.hasOwnProperty),Vr=qr(RegExp.prototype.test),al=nI(TypeError);function qr(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),f=1;f<e;f++)r[f-1]=arguments[f];return xd(n,t,r)}}function nI(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Cd(n,e)}}function Ft(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;Qy&&Qy(n,null);let r=t.length;for(;r--;){let f=t[r];if(typeof f=="string"){const g=e(f);g!==f&&(YM(t)||(t[r]=g),f=g)}n[f]=!0}return n}function rI(n){for(let t=0;t<n.length;t++)eo(n,t)||(n[t]=null);return n}function mo(n){const t=wd(null);for(const[e,r]of Zy(n))eo(n,e)&&(Array.isArray(r)?t[e]=rI(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=mo(r):t[e]=r);return t}function ll(n,t){for(;n!==null;){const r=ZM(n,t);if(r){if(r.get)return qr(r.get);if(typeof r.value=="function")return qr(r.value)}n=XM(n)}function e(){return null}return e}const eb=Ur(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sd=Ur(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_d=Ur(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),iI=Ur(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$d=Ur(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oI=Ur(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tb=Ur(["#text"]),nb=Ur(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Td=Ur(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rb=Ur(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tc=Ur(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sI=Di(/\{\{[\w\W]*|[\w\W]*\}\}/gm),aI=Di(/<%[\w\W]*|[\w\W]*%>/gm),lI=Di(/\$\{[\w\W]*/gm),cI=Di(/^data-[\-\w.\u00B7-\uFFFF]+$/),uI=Di(/^aria-[\-\w]+$/),ib=Di(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hI=Di(/^(?:\w+script|data):/i),dI=Di(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ob=Di(/^html$/i),pI=Di(/^[a-z][.\w]*(-[.\w]+)+$/i);var sb=Object.freeze({__proto__:null,ARIA_ATTR:uI,ATTR_WHITESPACE:dI,CUSTOM_ELEMENT:pI,DATA_ATTR:cI,DOCTYPE_NAME:ob,ERB_EXPR:aI,IS_ALLOWED_URI:ib,IS_SCRIPT_OR_DATA:hI,MUSTACHE_EXPR:sI,TMPLIT_EXPR:lI});const cl={element:1,text:3,progressingInstruction:7,comment:8,document:9},fI=function(){return typeof window>"u"?null:window},gI=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const f="dompurify"+(e?"#"+e:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},ab=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function lb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fI();const t=ce=>lb(ce);if(t.version="3.3.1",t.removed=[],!n||!n.document||n.document.nodeType!==cl.document||!n.Element)return t.isSupported=!1,t;let{document:e}=n;const r=e,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:w,Element:h,NodeFilter:d,NamedNodeMap:s=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=n,i=h.prototype,a=ll(i,"cloneNode"),p=ll(i,"remove"),b=ll(i,"nextSibling"),x=ll(i,"childNodes"),R=ll(i,"parentNode");if(typeof m=="function"){const ce=e.createElement("template");ce.content&&ce.content.ownerDocument&&(e=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:E}=e,{importNode:I}=r;let z=ab();t.isSupported=typeof Zy=="function"&&typeof R=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:A,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:K}=sb;let{IS_ALLOWED_URI:Q}=sb,J=null;const he=Ft({},[...eb,...Sd,..._d,...$d,...tb]);let ne=null;const le=Ft({},[...nb,...Td,...rb,...Tc]);let se=Object.seal(wd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const _e=Object.seal(wd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Xe=!1,Ke=!0,at=!1,et=!0,lt=!1,Xt=!1,xn=!1,Wt=!1,vr=!1,un=!1,On=!0,Zn=!1;const Tr="user-content-";let mt=!0,je=!1,Lt={},Ht=null;const $n=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yr=null;const ur=Ft({},["audio","video","img","source","image","track"]);let gn=null;const Wn=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let Dr=ln,Kr=!1,Gr=null;const Ai=Ft({},[Nn,Gt,ln],kd);let ci=Ft({},["mi","mo","mn","ms","mtext"]),Bn=Ft({},["annotation-xml"]);const to=Ft({},["title","style","font","a","script"]);let ui=null;const Ns=["application/xhtml+xml","text/html"],Yr="text/html";let Cn=null,hi=null;const Jo=e.createElement("form"),di=function(ce){return ce instanceof RegExp||ce instanceof Function},kn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hi&&hi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=mo(ce),ui=Ns.indexOf(ce.PARSER_MEDIA_TYPE)===-1?Yr:ce.PARSER_MEDIA_TYPE,Cn=ui==="application/xhtml+xml"?kd:$c,J=eo(ce,"ALLOWED_TAGS")?Ft({},ce.ALLOWED_TAGS,Cn):he,ne=eo(ce,"ALLOWED_ATTR")?Ft({},ce.ALLOWED_ATTR,Cn):le,Gr=eo(ce,"ALLOWED_NAMESPACES")?Ft({},ce.ALLOWED_NAMESPACES,kd):Ai,gn=eo(ce,"ADD_URI_SAFE_ATTR")?Ft(mo(Wn),ce.ADD_URI_SAFE_ATTR,Cn):Wn,yr=eo(ce,"ADD_DATA_URI_TAGS")?Ft(mo(ur),ce.ADD_DATA_URI_TAGS,Cn):ur,Ht=eo(ce,"FORBID_CONTENTS")?Ft({},ce.FORBID_CONTENTS,Cn):$n,de=eo(ce,"FORBID_TAGS")?Ft({},ce.FORBID_TAGS,Cn):mo({}),me=eo(ce,"FORBID_ATTR")?Ft({},ce.FORBID_ATTR,Cn):mo({}),Lt=eo(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Xe=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Ke=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=ce.SAFE_FOR_TEMPLATES||!1,et=ce.SAFE_FOR_XML!==!1,lt=ce.WHOLE_DOCUMENT||!1,Wt=ce.RETURN_DOM||!1,vr=ce.RETURN_DOM_FRAGMENT||!1,un=ce.RETURN_TRUSTED_TYPE||!1,xn=ce.FORCE_BODY||!1,On=ce.SANITIZE_DOM!==!1,Zn=ce.SANITIZE_NAMED_PROPS||!1,mt=ce.KEEP_CONTENT!==!1,je=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||ib,Dr=ce.NAMESPACE||ln,ci=ce.MATHML_TEXT_INTEGRATION_POINTS||ci,Bn=ce.HTML_INTEGRATION_POINTS||Bn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),at&&(Me=!1),vr&&(Wt=!0),Lt&&(J=Ft({},tb),ne=[],Lt.html===!0&&(Ft(J,eb),Ft(ne,nb)),Lt.svg===!0&&(Ft(J,Sd),Ft(ne,Td),Ft(ne,Tc)),Lt.svgFilters===!0&&(Ft(J,_d),Ft(ne,Td),Ft(ne,Tc)),Lt.mathMl===!0&&(Ft(J,$d),Ft(ne,rb),Ft(ne,Tc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=mo(J)),Ft(J,ce.ADD_TAGS,Cn))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=mo(ne)),Ft(ne,ce.ADD_ATTR,Cn))),ce.ADD_URI_SAFE_ATTR&&Ft(gn,ce.ADD_URI_SAFE_ATTR,Cn),ce.FORBID_CONTENTS&&(Ht===$n&&(Ht=mo(Ht)),Ft(Ht,ce.FORBID_CONTENTS,Cn)),ce.ADD_FORBID_CONTENTS&&(Ht===$n&&(Ht=mo(Ht)),Ft(Ht,ce.ADD_FORBID_CONTENTS,Cn)),mt&&(J["#text"]=!0),lt&&Ft(J,["html","head","body"]),J.table&&(Ft(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw al('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw al('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=gI(c,f)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Ur&&Ur(ce),hi=ce}},hr=Ft({},[...Sd,..._d,...iI]),pi=Ft({},[...$d,...oI]),An=function(ce){let ze=R(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Dr,tagName:"template"});const Fe=$c(ce.tagName),St=$c(ze.tagName);return Gr[ce.namespaceURI]?ce.namespaceURI===Gt?ze.namespaceURI===ln?Fe==="svg":ze.namespaceURI===Nn?Fe==="svg"&&(St==="annotation-xml"||ci[St]):!!hr[Fe]:ce.namespaceURI===Nn?ze.namespaceURI===ln?Fe==="math":ze.namespaceURI===Gt?Fe==="math"&&Bn[St]:!!pi[Fe]:ce.namespaceURI===ln?ze.namespaceURI===Gt&&!Bn[St]||ze.namespaceURI===Nn&&!ci[St]?!1:!pi[Fe]&&(to[Fe]||!hr[Fe]):!!(ui==="application/xhtml+xml"&&Gr[ce.namespaceURI]):!1},Tn=function(ce){ol(t.removed,{element:ce});try{R(ce).removeChild(ce)}catch{p(ce)}},br=function(ce,ze){try{ol(t.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{ol(t.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Wt||vr)try{Tn(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},fi=function(ce){let ze=null,Fe=null;if(xn)ce="<remove></remove>"+ce;else{const jt=Ad(ce,/^[\r\n\t ]+/);Fe=jt&&jt[0]}ui==="application/xhtml+xml"&&Dr===ln&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const St=_?_.createHTML(ce):ce;if(Dr===ln)try{ze=new u().parseFromString(St,ui)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Dr,"template",null);try{ze.documentElement.innerHTML=Kr?k:St}catch{}}const Yt=ze.body||ze.documentElement;return ce&&Fe&&Yt.insertBefore(e.createTextNode(Fe),Yt.childNodes[0]||null),Dr===ln?E.call(ze,lt?"html":"body")[0]:lt?ze.documentElement:Yt},vo=function(ce){return L.call(ce.ownerDocument||ce,ce,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},yo=function(ce){return ce instanceof l&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof s)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},es=function(ce){return typeof w=="function"&&ce instanceof w};function Xr(ce,ze,Fe){_c(ce,St=>{St.call(t,ze,Fe,hi)})}const gi=function(ce){let ze=null;if(Xr(z.beforeSanitizeElements,ce,null),yo(ce))return Tn(ce),!0;const Fe=Cn(ce.nodeName);if(Xr(z.uponSanitizeElement,ce,{tagName:Fe,allowedTags:J}),et&&ce.hasChildNodes()&&!es(ce.firstElementChild)&&Vr(/<[/\w!]/g,ce.innerHTML)&&Vr(/<[/\w!]/g,ce.textContent)||ce.nodeType===cl.progressingInstruction||et&&ce.nodeType===cl.comment&&Vr(/<[/\w]/g,ce.data))return Tn(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Ot(Fe)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(mt&&!Ht[Fe]){const St=R(ce)||ce.parentNode,Yt=x(ce)||ce.childNodes;if(Yt&&St){const jt=Yt.length;for(let xr=jt-1;xr>=0;--xr){const dr=a(Yt[xr],!0);dr.__removalCount=(ce.__removalCount||0)+1,St.insertBefore(dr,b(ce))}}}return Tn(ce),!0}return ce instanceof h&&!An(ce)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Vr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Tn(ce),!0):(at&&ce.nodeType===cl.text&&(ze=ce.textContent,_c([P,O,$],St=>{ze=sl(ze,St," ")}),ce.textContent!==ze&&(ol(t.removed,{element:ce.cloneNode()}),ce.textContent=ze)),Xr(z.afterSanitizeElements,ce,null),!1)},Fr=function(ce,ze,Fe){if(On&&(ze==="id"||ze==="name")&&(Fe in e||Fe in Jo))return!1;if(!(Me&&!me[ze]&&Vr(A,ze))&&!(Te&&Vr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Ot(ce)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&Vr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!gn[ze]&&!Vr(Q,sl(Fe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&eI(Fe,"data:")===0&&yr[ce])&&!(Xe&&!Vr(B,sl(Fe,U,"")))&&Fe)return!1}return!0},Ot=function(ce){return ce!=="annotation-xml"&&Ad(ce,K)},Mo=function(ce){Xr(z.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||yo(ce))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let St=ze.length;for(;St--;){const Yt=ze[St],{name:jt,namespaceURI:xr,value:dr}=Yt,zn=Cn(jt),Cr=dr;let mn=jt==="value"?Cr:tI(Cr);if(Fe.attrName=zn,Fe.attrValue=mn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Xr(z.uponSanitizeAttribute,ce,Fe),mn=Fe.attrValue,Zn&&(zn==="id"||zn==="name")&&(br(jt,ce),mn=Tr+mn),et&&Vr(/((--!?|])>)|<\/(style|title|textarea)/i,mn)){br(jt,ce);continue}if(zn==="attributename"&&Ad(mn,"href")){br(jt,ce);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){br(jt,ce);continue}if(!Ke&&Vr(/\/>/i,mn)){br(jt,ce);continue}at&&_c([P,O,$],Pr=>{mn=sl(mn,Pr," ")});const no=Cn(ce.nodeName);if(!Fr(no,zn,mn)){br(jt,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!xr)switch(c.getAttributeType(no,zn)){case"TrustedHTML":{mn=_.createHTML(mn);break}case"TrustedScriptURL":{mn=_.createScriptURL(mn);break}}if(mn!==Cr)try{xr?ce.setAttributeNS(xr,jt,mn):ce.setAttribute(jt,mn),yo(ce)?Tn(ce):Jy(t.removed)}catch{br(jt,ce)}}Xr(z.afterSanitizeAttributes,ce,null)},wr=function ce(ze){let Fe=null;const St=vo(ze);for(Xr(z.beforeSanitizeShadowDOM,ze,null);Fe=St.nextNode();)Xr(z.uponSanitizeShadowNode,Fe,null),gi(Fe),Mo(Fe),Fe.content instanceof g&&ce(Fe.content);Xr(z.afterSanitizeShadowDOM,ze,null)};return t.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,St=null,Yt=null,jt=null;if(Kr=!ce,Kr&&(ce="<!-->"),typeof ce!="string"&&!es(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw al("dirty is not a string, aborting")}else throw al("toString is not a function");if(!t.isSupported)return ce;if(Xt||kn(ze),t.removed=[],typeof ce=="string"&&(je=!1),je){if(ce.nodeName){const zn=Cn(ce.nodeName);if(!J[zn]||de[zn])throw al("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof w)Fe=fi("<!---->"),St=Fe.ownerDocument.importNode(ce,!0),St.nodeType===cl.element&&St.nodeName==="BODY"||St.nodeName==="HTML"?Fe=St:Fe.appendChild(St);else{if(!Wt&&!at&&!lt&&ce.indexOf("<")===-1)return _&&un?_.createHTML(ce):ce;if(Fe=fi(ce),!Fe)return Wt?null:un?k:""}Fe&&xn&&Tn(Fe.firstChild);const xr=vo(je?ce:Fe);for(;Yt=xr.nextNode();)gi(Yt),Mo(Yt),Yt.content instanceof g&&wr(Yt.content);if(je)return ce;if(Wt){if(vr)for(jt=D.call(Fe.ownerDocument);Fe.firstChild;)jt.appendChild(Fe.firstChild);else jt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(jt=I.call(r,jt,!0)),jt}let dr=lt?Fe.outerHTML:Fe.innerHTML;return lt&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Vr(ob,Fe.ownerDocument.doctype.name)&&(dr="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1498
|
+
`+dr),at&&_c([P,O,$],zn=>{dr=sl(dr,zn," ")}),_&&un?_.createHTML(dr):dr},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kn(ce),Xt=!0},t.clearConfig=function(){hi=null,Xt=!1},t.isValidAttribute=function(ce,ze,Fe){hi||kn({});const St=Cn(ce),Yt=Cn(ze);return Fr(St,Yt,Fe)},t.addHook=function(ce,ze){typeof ze=="function"&&ol(z[ce],ze)},t.removeHook=function(ce,ze){if(ze!==void 0){const Fe=QM(z[ce],ze);return Fe===-1?void 0:JM(z[ce],Fe,1)[0]}return Jy(z[ce])},t.removeHooks=function(ce){z[ce]=[]},t.removeAllHooks=function(){z=ab()},t}var mI=lb();const vI={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"}},yI={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()}`},sanitizedText:function(){return mI.sanitize(this.params.text)}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},bI=["innerHTML"],wI={key:2},xI={key:3,class:"validate mt-4"};function CI(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-icon"),d=xt("v-text-field"),s=xt("v-card-text"),l=xt("v-btn"),u=xt("v-card-actions"),c=xt("v-card"),i=xt("v-dialog"),a=xt("v-app");return Rn(),lo(a,null,{default:Rt(()=>[ht(i,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),persistent:"",width:"600",onKeydown:$l(g.cancel,["esc"])},{default:Rt(()=>[ht(c,null,{default:Rt(()=>[ht(w,{height:"24"},{default:Rt(()=>[ht(m),mr("span",null,ii(n.params.title),1),ht(m)]),_:1}),ht(s,{class:"mt-4 pa-3"},{default:Rt(()=>[n.params.validateText?(Rn(),lo(h,{key:0,class:"mr-2"},{default:Rt(()=>[...t[2]||(t[2]=[Rr(" mdi-alert ",-1)])]),_:1})):_o("",!0),n.params.html?(Rn(),ri("span",{key:1,innerHTML:g.sanitizedText},null,8,bI)):(Rn(),ri("span",wI,ii(g.sanitizedText),1)),n.params.validateText?(Rn(),ri("div",xI,[Rr(" Enter "+ii(n.params.validateText)+" to confirm! ",1),ht(d,{modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):_o("",!0)]),_:1}),ht(u,{class:"px-2"},{default:Rt(()=>[ht(m),n.params.cancelText?(Rn(),lo(l,{key:0,variant:"outlined","data-test":g.dataTestCancel,onClick:g.cancel},{default:Rt(()=>[Rr(ii(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):_o("",!0),ht(l,{variant:"flat",color:n.params.okClass,"data-test":g.dataTestOk,onClick:g.ok},{default:Rt(()=>[Rr(ii(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const kI=Ko(yI,[["render",CI],["__scopeId","data-v-016d2acf"]]);class AI{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(kI);t.use(Id);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:g,cancelText:m,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:g,cancelText:m,html:w},h,d)})}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:g="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:g,validateText:r,cancelText:f,html:!1})}}const SI={install(n,t){const e=new AI;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},_I={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`
|
|
1499
1499
|
--toast-bg-color:${bd[this.toastNotification.level]};
|
|
1500
1500
|
--toast-fg-color:${IM(this.toastNotification.level)};
|
|
1501
1501
|
`},contentStyle:function(){return`
|
|
1502
1502
|
white-space: ${this.expanded?"normal":"nowrap"};
|
|
1503
1503
|
overflow-x: ${this.expanded?"visible":"hidden"};
|
|
1504
1504
|
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
|
1505
|
-
`}},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}}},$I={key:0,class:"text-subtitle-1 mr-1 notification-text"},TI={key:1,class:"text-body-2 notification-text"},MI={key:2,class:"text-body-2 notification-text"};function II(n,t,e,r,f,g){const m=xt("v-icon"),w=xt("v-spacer"),h=xt("v-btn"),d=xt("v-sheet"),s=xt("v-slide-y-transition");return
|
|
1505
|
+
`}},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}}},$I={key:0,class:"text-subtitle-1 mr-1 notification-text"},TI={key:1,class:"text-body-2 notification-text"},MI={key:2,class:"text-body-2 notification-text"};function II(n,t,e,r,f,g){const m=xt("v-icon"),w=xt("v-spacer"),h=xt("v-btn"),d=xt("v-sheet"),s=xt("v-slide-y-transition");return Rn(),lo(s,null,{default:Rt(()=>[Tl(ht(d,{style:La(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:Rt(()=>[ht(m,{class:"mr-1 notification-text"},{default:Rt(()=>[Rr(ii(g.toastNotificationIcon),1)]),_:1}),mr("div",{class:"toast-content",style:La(g.contentStyle)},[n.toastNotification.title?(Rn(),ri("span",$I,[n.toastNotification.body||n.toastNotification.message?(Rn(),ri(_l,{key:0},[Rr(ii(n.toastNotification.title)+": ",1)],64)):(Rn(),ri(_l,{key:1},[Rr(ii(n.toastNotification.title),1)],64))])):_o("",!0),n.toastNotification.body?(Rn(),ri("span",TI,ii(n.toastNotification.body),1)):_o("",!0),n.toastNotification.message?(Rn(),ri("span",MI,ii(n.toastNotification.message),1)):_o("",!0)],4),ht(w),ht(h,{variant:"text",class:"notification-text",onClick:Qs(g.hide,["stop"])},{default:Rt(()=>[...t[0]||(t[0]=[Rr(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Ml,n.showToast]])]),_:1})}const EI=Ko(_I,[["render",II],["__scopeId","data-v-84833581"]]);class RI{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=du(EI);t.use(Id);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:g,duration:m,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(f?`${g.toUpperCase()} - ${f}`:`${g.toUpperCase()} - ${e}: ${r}`),d&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:g}),this[t]({title:e,body:r,message:f,level:g,duration:m,type:w})}toast({title:t,body:e,message:r,level:f,duration:g,type:m}){this.$root.toast({title:t,body:e,message:r,level:f,type:m},g)}critical({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}caution({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}off({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}}const LI={install(n,t){const e=new RI(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},cb=100,ub=Pp({state(){return{notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1}}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory(n,t){n.notifyHistory.length>=cb&&(n.notifyHistory.length=cb-1),n.notifyHistory.unshift(t)},notifyClearHistory(n){n.notifyHistory=[]},setNamedWidget(n,t){Object.assign(n.namedWidgets,t)},clearNamedWidget(n,t){delete n.namedWidgets[t]},playback(n,t){Object.assign(n.playback,t)}},modules:{}});function OI(n){Tp(`Vuetify: ${n}`)}function hb(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function NI(n,t){const e={};for(const r of t)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}function db(){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 g=n[f],m=t[f];if(hb(g)&&hb(m)){r[f]=db(g,m,e);continue}if(e&&Array.isArray(g)&&Array.isArray(m)){r[f]=e(g,m);continue}r[f]=m}return r}function ul(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ul.cache.has(n))return ul.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ul.cache.set(n,t),t}ul.cache=new Map;function pb(n,t){return e=>Object.keys(n).reduce((r,f)=>{const g=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...g,default:e[f]}:r[f]=g,t&&!r[f].source&&(r[f].source=t),r},{})}function fb(n,t){const e=Lp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function DI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fb("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Md=Symbol.for("vuetify:defaults");function gb(){const n=Mp(Md);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function FI(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[ul(t)]<"u")}function PI(){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]:gb();const r=fb("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=hu(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),g=new Proxy(n,{get(h,d){var s,l,u,c;const i=Reflect.get(h,d);if(d==="class"||d==="style")return[(s=f.value)==null?void 0:s[d],i].filter(b=>b!=null);if(FI(r.vnode,d))return i;const a=(l=f.value)==null?void 0:l[d];if(a!==void 0)return a;const p=(c=(u=e.value)==null?void 0:u.global)==null?void 0:c[d];return p!==void 0?p:i}}),m=Ip();Ep(()=>{if(f.value){const h=Object.entries(f.value).filter(d=>{let[s]=d;return s.startsWith(s[0].toUpperCase())});m.value=h.length?Object.fromEntries(h):void 0}else m.value=void 0});function w(){const h=DI(Md,r);Op(Md,hu(()=>m.value?db((h==null?void 0:h.value)??{},m.value):h==null?void 0:h.value))}return{props:g,provideSubDefaults:w}}function Mc(n){if(n._setup=n._setup??n.setup,!n.name)return OI("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=pb(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return NI(e,t)},n.props._as=String,n.setup=function(e,r){const f=gb();if(!f.value)return n._setup(e,r);const{props:g,provideSubDefaults:m}=PI(e,e._as??n.name,f),w=n._setup(g,r);return m(),w}}return n}function WI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Mc:$p)(t)}const BI=[String,Function,Object,Array],Ic=pb({icon:{type:BI},tag:{type:[String,Object,Function],required:!0}},"icon");WI()({name:"VComponentIcon",props:Ic(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return ht(n.tag,null,{default:()=>{var f;return[n.icon?ht(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),Mc({name:"VSvgIcon",inheritAttrs:!1,props:Ic(),setup(n,t){let{attrs:e}=t;return()=>ht(n.tag,Np(e,{style:null}),{default:()=>[mr("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)?mr("path",{d:r[0],"fill-opacity":r[1]},null):mr("path",{d:r},null)):mr("path",{d:n.icon},null)])]})}}),Mc({name:"VLigatureIcon",props:Ic(),setup(n){return()=>ht(n.tag,null,{default:()=>[n.icon]})}});const zI=Mc({name:"VClassIcon",props:Ic(),setup(n){return()=>ht(n.tag,{class:Rp(n.icon)},null)}}),HI={component:n=>Zs(zI,{...n,class:"mdi"})},Id=Wp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:vI}},icons:{defaultSet:"mdi",sets:{mdi:HI,...RM,...LM}}}),Ed=cw({createApp:du,appOptions:{render(){return Zs(vw,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(GM),n.use(ub),n.use(Id),n.use(SI),n.use(LI,{store:ub})}}),WD=Kn("h",Ed.bootstrap),BD=Kn("m",Ed.mount),zD=Kn("u",Ed.unmount)}}});
|