openc3-cosmos-tool-tablemanager 6.2.1 → 6.3.0

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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/tools/tablemanager/{ArrayWidget-BxEO5hEG-3a73fe422564c0429019.js → ArrayWidget-BbsN1dzF-959f895dd277057383c1.js} +2 -2
  3. data/tools/tablemanager/{ArrayplotWidget-B_VPoV4v-614b214bbb69773602e6.js → ArrayplotWidget-CCKEyYIx-346527d8ce418723987f.js} +1 -1
  4. data/tools/tablemanager/{BarColumn-C9dkpg2O-afaaf4c015a17f51205d.js → BarColumn-C6p07yWK-b792c9c7d152d8e7eac0.js} +1 -1
  5. data/tools/tablemanager/BlockWidget-DlCHbqZX-931e540736560d3298ad.js +2 -0
  6. data/tools/tablemanager/{ButtonWidget-B6HM0Doo-ab11ef0f26b360b37c5f.js → ButtonWidget-CtfJzCBR-21a7269786cac7b63ed2.js} +2 -2
  7. data/tools/tablemanager/{CanvasWidget-DZQGG-yQ-450fa6b1ddd932d29d98.js → CanvasWidget-CqRlXc4r-7ea98cc5aa658273d3ab.js} +1 -1
  8. data/tools/tablemanager/CanvasdotWidget--Xr_KsZs-fd37759adf5ff324502c.js +1 -0
  9. data/tools/tablemanager/{CanvasimageWidget-mhcPpAuN-3a4572ba31e277b16cbd.js → CanvasimageWidget-BPlj5QYK-4f3fc8e5b175b2af118a.js} +1 -1
  10. data/tools/tablemanager/{CanvasimagevalueWidget-Cx-dH8Gc-6a5ad086319cf0d016eb.js → CanvasimagevalueWidget-DVFGLt8f-5d90c4a6f82cfaeea904.js} +1 -1
  11. data/tools/tablemanager/CanvaslabelWidget-CYNqmyP0-ee5f201f9b9a94ef6529.js +1 -0
  12. data/tools/tablemanager/{CanvaslabelvalueWidget-CwmYDCjr-95d9dc3d6675b6cd6e95.js → CanvaslabelvalueWidget-B7yIDmsn-a62a21cc67b2555f10ed.js} +1 -1
  13. data/tools/tablemanager/CanvaslineWidget-BICdxX0Q-c00d646b5ebac0888f19.js +1 -0
  14. data/tools/tablemanager/{CanvaslinevalueWidget-C3sJnjLQ-411d1f87490e88f39075.js → CanvaslinevalueWidget-Cq-Ddh0P-7cd0e41fbdea71aaf9d7.js} +1 -1
  15. data/tools/tablemanager/CheckbuttonWidget-B74AWeaW-b3c0cfbdc0a8149a68ca.js +1 -0
  16. data/tools/tablemanager/ComboboxWidget-CtyKbEWb-dc447488fe813641c5c0.js +1 -0
  17. data/tools/tablemanager/DateWidget-BEVSczU8-1f01bd84bcb9e186cab1.js +1 -0
  18. data/tools/tablemanager/{DetailsDialog-BvbziA7Y-8ff3365fb0330e67e92d.js → DetailsDialog-DmEC5BTs-1d5b2d4cb4d94c28fb08.js} +1 -1
  19. data/tools/tablemanager/{DynamicWidget-gFSYxzvT-80de147600fb5278d2fa.js → DynamicWidget-CfMtj7H8-7310a45e174b3e0e1f4d.js} +1 -1
  20. data/tools/tablemanager/{FormatvalueWidget-CGpnTqVH-a388e9c67416044cd56a.js → FormatvalueWidget-DN12xymS-5d92462ee8b18046d1f4.js} +1 -1
  21. data/tools/tablemanager/Graph-Bgo0cjl3-52421e0307d7ca0fbe50.js +1 -0
  22. data/tools/tablemanager/{GraphWidget-Dycey-mj-84f812318e1113f14c38.js → GraphWidget-DurWDmpg-c9b122c94c912d0741ba.js} +1 -1
  23. data/tools/tablemanager/{HorizontalWidget-D31NRWy5-958adfe5f70cc49258e5.js → HorizontalWidget-Cd_wl1b3-1c2997802975048e709f.js} +1 -1
  24. data/tools/tablemanager/HorizontalboxWidget-BcMTFBU--8ad91cd7bc665ab4766a.js +1 -0
  25. data/tools/tablemanager/HorizontallineWidget-CXFqHclf-de6750f9b87d7529cbf5.js +1 -0
  26. data/tools/tablemanager/{IframeWidget-Ctj8OIcG-b610a31a59161ba750cf.js → IframeWidget-BPerHCCa-cdb2815ceb98ee81983f.js} +1 -1
  27. data/tools/tablemanager/{ImageLoader-BrNrCBvi-4a283664736dbaae848c.js → ImageLoader-4N-7Gj61-a07bd29ee9cfe36f21d7.js} +1 -1
  28. data/tools/tablemanager/ImageviewerWidget-Cw_H_HmZ-dc0a5ab97b39f8b02ffd.js +1 -0
  29. data/tools/tablemanager/{LabelWidget-t7I87dp7-23d565a7a3e595de5a3a.js → LabelWidget-xrmcVeq8-d217d37c2a6475bb6a9d.js} +1 -1
  30. data/tools/tablemanager/LabelledWidget-D48QoyMk-24bd01061fc3c283bb8e.js +1 -0
  31. data/tools/tablemanager/LabelprogressbarWidget-C_950t6g-42d1ee457a76977a9926.js +1 -0
  32. data/tools/tablemanager/LabelsparklineWidget-0KXQyPoU-4fefa82bdaecf6d9a3d0.js +1 -0
  33. data/tools/tablemanager/{LabelvalueWidget-Zx_yHCtl-e5c665527952e66cb7bd.js → LabelvalueWidget-CQ06wWDK-ac37a8b84574824ad5b7.js} +1 -1
  34. data/tools/tablemanager/{LabelvaluedescWidget-BBSBh4vI-efaa36da0688d2643586.js → LabelvaluedescWidget-Bo8zT01X-9c0bf9f4cf055d8313f8.js} +1 -1
  35. data/tools/tablemanager/{LabelvaluelimitsbarWidget-CZueHYWG-17bead7bb9d109e43b93.js → LabelvaluelimitsbarWidget-BucTw8Yk-e8fa86e345960718befd.js} +1 -1
  36. data/tools/tablemanager/LabelvaluelimitscolumnWidget-Dflb1hNd-a33ca9d0e9a93745c199.js +1 -0
  37. data/tools/tablemanager/{LabelvaluerangebarWidget-BhYTBgDq-2bdd722a647658c589bd.js → LabelvaluerangebarWidget-D8cbfXFM-ef9ea25e0833526e661c.js} +1 -1
  38. data/tools/tablemanager/{Layout-Bh7VzCZd-8c7800d758c191052a54.js → Layout-Tf--nruw-7e1c88bcb2d1e9c2cc9c.js} +1 -1
  39. data/tools/tablemanager/LedWidget-qH_FthkK-8c5e19d8ac9c7a6f321d.js +1 -0
  40. data/tools/tablemanager/{LimitsbarWidget-Djui0IpK-9c16f9767089dad25ed6.js → LimitsbarWidget-B9lAB2RD-46ce18c4a5dd690481e6.js} +1 -1
  41. data/tools/tablemanager/{LimitscolorWidget-DdmvKzmx-81f0bbf494d5c0a3fa28.js → LimitscolorWidget-c6Qa6su7-1ac01b8834b586d34820.js} +1 -1
  42. data/tools/tablemanager/{LimitscolumnWidget-Cc19IEjq-5e1e31809753a837e695.js → LimitscolumnWidget-CcLs_443-f29417bf8f4f674783bd.js} +1 -1
  43. data/tools/tablemanager/LinegraphWidget-BSVYLFo1-2acb1a88e7e56ce79a5a.js +1 -0
  44. data/tools/tablemanager/MatrixbycolumnsWidget-DXFpZTre-8918bddf56b2e85dce07.js +1 -0
  45. data/tools/tablemanager/{ProgressbarWidget-DIfqhHRE-57a1a49f10e1f8c4fe88.js → ProgressbarWidget-iYGw8-Dc-224838ec829e2d0aaaa2.js} +1 -1
  46. data/tools/tablemanager/RadiobuttonWidget-ytmoVZ3u-203d8cf62a1dbf9d4a07.js +1 -0
  47. data/tools/tablemanager/{RadiogroupWidget-Ci9sCX39-a9368165055b6fb98bec.js → RadiogroupWidget-CusMBhKH-b3330247ae7a777565fa.js} +1 -1
  48. data/tools/tablemanager/{RangebarWidget-CN0YuHqy-55884175e54d1bf0242c.js → RangebarWidget-D_zGTtCa-3b37862085afd896c860.js} +1 -1
  49. data/tools/tablemanager/{RollupWidget-y4jBtJB2-3212cb134c1c60f94d02.js → RollupWidget-Dolsixyt-215ca55830b76e505c94.js} +1 -1
  50. data/tools/tablemanager/ScrollwindowWidget-DV2nZuNi-688f314da002c3dea6fb.js +1 -0
  51. data/tools/tablemanager/{SignalWidget-DQ5Uc2uV-216dbd95901481c86c15.js → SignalWidget-d9-6h85k-5806e363f98a90f36b92.js} +1 -1
  52. data/tools/tablemanager/SpacerWidget-BH0p2OLi-3e44b9fc8ff9cdb8e47e.js +1 -0
  53. data/tools/tablemanager/{SparklineWidget-CZtvu2ss-df7d74a972238c4b44b5.js → SparklineWidget-coxi9r2g-e8dd44a94f090ab553c2.js} +1 -1
  54. data/tools/tablemanager/TabbookWidget-B1XKplGH-21be3775bb05a42b4489.js +1 -0
  55. data/tools/tablemanager/TableManager-57dfe866c6d08795123c.js +13 -0
  56. data/tools/tablemanager/TextboxWidget-C-_M2M4l-1be0ab781fe0200895fd.js +1 -0
  57. data/tools/tablemanager/{TextfieldWidget-Df0ANSiU-a28e82fd9d48be8f8681.js → TextfieldWidget-C08N4JE8-1d9f7537a0fa53d0113c.js} +1 -1
  58. data/tools/tablemanager/TimeWidget-DtwdEcFg-afe7ad8fa99dd194ca59.js +1 -0
  59. data/tools/tablemanager/TitleWidget-CT-aLcNb-458d3c419a64e978301d.js +1 -0
  60. data/tools/tablemanager/{VWidget-C4spAawK-8c01507f7f06c5187684.js → VWidget-DQqb7NVW-d11f448dc9b15447843f.js} +1 -1
  61. data/tools/tablemanager/ValueWidget-C6RanBj3-2f0a0c754e68ac6c14a2.js +1 -0
  62. data/tools/tablemanager/ValuelimitsbarWidget-B3bvjfxc-25ed16c2313234a49832.js +1 -0
  63. data/tools/tablemanager/ValuelimitscolumnWidget-QvhI6EcE-e110f67cadf8ca55f828.js +1 -0
  64. data/tools/tablemanager/ValuerangebarWidget-Dt3K9BnC-75e9d7e093a62f7c3249.js +1 -0
  65. data/tools/tablemanager/{VerticalWidget-D8jUFxjS-cf44fa81ee676059ad9a.js → VerticalWidget-BIIViZgI-9b15e72a48b5a570cf2a.js} +1 -1
  66. data/tools/tablemanager/VerticalboxWidget-DY72fLHW-66bb7cf651d4ee151f1f.js +1 -0
  67. data/tools/tablemanager/{Widget-fRCERxGf-cfb11a01a4e0819f0115.js → Widget-oyqWpFXJ-c03892ad37a5994a2368.js} +1 -1
  68. data/tools/tablemanager/main-1bc219fcc4bfc28dfaea.js +1497 -0
  69. data/tools/tablemanager/main.js +1 -1
  70. metadata +70 -73
  71. data/tools/tablemanager/BlockWidget-CuefOin6-2ce5f8e02729dff1191a.js +0 -2
  72. data/tools/tablemanager/CanvasdotWidget-6wuCSnw_-3e9a58f6ec929696a27d.js +0 -1
  73. data/tools/tablemanager/CanvaslabelWidget-CQZCeohU-2a4272c49b592e4ddf45.js +0 -1
  74. data/tools/tablemanager/CanvaslineWidget-nTP3fJB4-aea34db4c2864fce9a30.js +0 -1
  75. data/tools/tablemanager/CheckbuttonWidget-5-8YDsQL-c0409ca47123c3f97f46.js +0 -1
  76. data/tools/tablemanager/ComboboxWidget-DzBL8h9f-5954ab30bd7b7426b22c.js +0 -1
  77. data/tools/tablemanager/DateWidget-CW7Od7lB-1d0b15f0e4330f7e065f.js +0 -1
  78. data/tools/tablemanager/Graph-3rkhFP3G-1b4e0490f8d49eee571f.js +0 -1
  79. data/tools/tablemanager/HorizontalboxWidget-Br8dSVHD-5039ded5a283caa87aac.js +0 -1
  80. data/tools/tablemanager/HorizontallineWidget-CbxREBYI-37095b3ec5bbd179e346.js +0 -1
  81. data/tools/tablemanager/ImageviewerWidget-XrsqxmLo-9c12d72a58d8807ae1d6.js +0 -1
  82. data/tools/tablemanager/LabelledWidget-C7TDf92M-1c3bd9b94afe1875582f.js +0 -1
  83. data/tools/tablemanager/LabelprogressbarWidget-wwLURt1u-3c35046cdccb5a71641b.js +0 -1
  84. data/tools/tablemanager/LabelsparklineWidget-B3awLUyP-2931c20a0ea5be337cfa.js +0 -1
  85. data/tools/tablemanager/LabelvaluelimitscolumnWidget-BTvzyQMq-b6ffd102e2b4d8350578.js +0 -1
  86. data/tools/tablemanager/LedWidget-CxJjJBBS-26ce1b6e69c9598eb5b0.js +0 -1
  87. data/tools/tablemanager/LinegraphWidget-BtieJxeL-5bcb3fef06b23b91f5f2.js +0 -1
  88. data/tools/tablemanager/MatrixbycolumnsWidget-DnExVRF8-7f673688a46bf30cf39a.js +0 -1
  89. data/tools/tablemanager/RadiobuttonWidget-QzIkNP7m-c961855d53dedce26894.js +0 -1
  90. data/tools/tablemanager/ScrollwindowWidget-CBzYk4Y3-647d2a92619222daf4b8.js +0 -1
  91. data/tools/tablemanager/SpacerWidget-6rsc_dSM-fa85148918d47c63fca8.js +0 -1
  92. data/tools/tablemanager/TabbookWidget-DNALU0jl-51a0e5ec34cf2a336675.js +0 -1
  93. data/tools/tablemanager/TableManager-4489278ed163678dc1b3.js +0 -11
  94. data/tools/tablemanager/TextboxWidget-5hqPj74D-f302a608328b0b1967db.js +0 -1
  95. data/tools/tablemanager/TimeWidget-C6XQMUG2-dd29c7ddc2d565ba7979.js +0 -1
  96. data/tools/tablemanager/TitleWidget-B9SPUlbW-4ff0c087c1a143f4def0.js +0 -1
  97. data/tools/tablemanager/ValueWidget-D4RrYVEK-1772418f3c2af2fafe2f.js +0 -1
  98. data/tools/tablemanager/ValuelimitsbarWidget-Bc9_Vj_f-6789a20f577eb37c438b.js +0 -1
  99. data/tools/tablemanager/ValuelimitscolumnWidget-DHKIL7sf-24c5ee3bba096f057c3d.js +0 -1
  100. data/tools/tablemanager/ValuerangebarWidget-CecQRIok-95791525460c7348f42a.js +0 -1
  101. data/tools/tablemanager/VerticalboxWidget-B4eGUSYH-fe49e2388548a6c9c51d.js +0 -1
  102. data/tools/tablemanager/main-2fe9a0af25d48afd561f.js +0 -1423
@@ -1,1423 +0,0 @@
1
- System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(En,Me){"use strict";var vt,gr,pn,dt,Ve,Zd,ys,bi,vs,ei,Rn,ti,Tn,Jd,$a,Ec,Rc,Xd,ef,tf,Mc,nf,rf,of,sf,Lc,af,lf,cf,uf,hf,df;return{setters:[lt=>{vt=lt.resolveComponent,gr=lt.createBlock,pn=lt.openBlock,dt=lt.withCtx,Ve=lt.createVNode,Zd=lt.defineAsyncComponent,ys=lt.h,bi=lt.createElementBlock,vs=lt.normalizeStyle,ei=lt.createCommentVNode,Rn=lt.createTextVNode,ti=lt.createElementVNode,Tn=lt.toDisplayString,Jd=lt.withKeys,$a=lt.withModifiers,Ec=lt.withDirectives,Rc=lt.vShow,Xd=lt.defineComponent,ef=lt.warn,tf=lt.inject,Mc=lt.computed,nf=lt.shallowRef,rf=lt.watchEffect,of=lt.getCurrentInstance,sf=lt.provide,Lc=lt.createApp,af=lt.mergeProps},lt=>{lf=lt.createRouter,cf=lt.createWebHistory},lt=>{uf=lt.getMountedApps},lt=>{hf=lt.createStore},lt=>{df=lt.createVuetify}],execute:function(){En({$:vf,A:On,c:AT,l:Ht,y:an,z:Hh});var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ff(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function qi(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ff(Object(e),!0).forEach(function(r){l0(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ff(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function l0(n,t,e){return(t=function(r){var f=function(p,y){if(Gi(p)!=="object"||p===null)return p;var v=p[Symbol.toPrimitive];if(v!==void 0){var h=v.call(p,y);if(Gi(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}(r,"string");return Gi(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Gi(n){return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,f=String(e),p=f.length,y=-1,v="",h=f.charCodeAt(0);++y<p;)(r=f.charCodeAt(y))!=0?v+=r>=1&&r<=31||r==127||y==0&&r>=48&&r<=57||y==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":y==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(y):f.charAt(y):v+="�";return v};n.CSS||(n.CSS={}),n.CSS.escape=t})(lt);var c0={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function u0(n){if(Gi(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=qi(qi({},c0),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(Gi(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:h0.bind(null,t,e),mount:d0.bind(null,t,e),unmount:p0.bind(null,t,e),update:f0.bind(null,t,e)}}function h0(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function d0(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,p){return typeof f.appOptions=="function"?f.appOptions(p):Promise.resolve(qi({},f.appOptions))}(n,e).then(function(f){var p;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(p=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(p=f.el).id||(p.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(p.id));else{var y="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(y)),(p=document.getElementById(y))||((p=document.createElement("div")).id=y,document.body.appendChild(p))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var v=document.createElement("div");v.className="single-spa-container",p.appendChild(v)}r.domEl=p,f.render||f.template||!n.rootComponent||(f.render=function(g){return g(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return qi(qi({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function f0(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=qi(qi({},n.appOptions.data||{}),e),p=r.root||r.vueInstance;for(var y in f)p[y]=f[y]})}function p0(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 g0=En("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),m0={};function y0(n,t){const e=vt("router-view"),r=vt("v-app");return pn(),gr(r,{id:"innerapp"},{default:dt(()=>[Ve(e)]),_:1})}const v0=g0(m0,[["render",y0]]),v2="modulepreload",w2=function(n){return"/"+n},b2={},Le=function(t,e,r){let f=Promise.resolve();function p(y){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=y,window.dispatchEvent(v),!v.defaultPrevented)throw y}return f.then(y=>{for(const v of y||[])v.status==="rejected"&&p(v.reason);return t().catch(p)})},pf=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tablemanager/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(pf)},$o=En("s",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Ta=6e4,Oc=36e5,w0=1e3,gf=Symbol.for("constructDateFrom");function an(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&gf in n?n[gf](t):n instanceof Date?new n.constructor(t):new Date(t)}function Ht(n,t){return an(t||n,n)}let b0={};function To(){return b0}function xi(n,t){var e,r,f,p;const y=To(),v=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??y.weekStartsOn??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,h=Ht(n,t==null?void 0:t.in),g=h.getDay(),s=(g<v?7:0)+g-v;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function Io(n,t){return xi(n,{...t,weekStartsOn:1})}function mf(n,t){const e=Ht(n,void 0),r=e.getFullYear(),f=an(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const p=Io(f),y=an(e,0);y.setFullYear(r,0,4),y.setHours(0,0,0,0);const v=Io(y);return e.getTime()>=p.getTime()?r+1:e.getTime()>=v.getTime()?r:r-1}function Ia(n){const t=Ht(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function x0(n,...t){const e=an.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function yf(n,t){const e=Ht(n,void 0);return e.setHours(0,0,0,0),e}function A0(n,t,e){const[r,f]=x0(void 0,n,t),p=yf(r),y=yf(f),v=+p-Ia(p),h=+y-Ia(y);return Math.round((v-h)/864e5)}function C0(n,t){const e=mf(n),r=an(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Io(r)}function k0(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function vf(n){return!(!k0(n)&&typeof n!="number"||isNaN(+Ht(n)))}function _0(n,t){const e=Ht(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const S0={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"}},$0=(n,t,e)=>{let r;const f=S0[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 Dc(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const T0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},I0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},E0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},R0={date:Dc({formats:T0,defaultWidth:"full"}),time:Dc({formats:I0,defaultWidth:"full"}),dateTime:Dc({formats:E0,defaultWidth:"full"})},M0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L0=(n,t,e,r)=>M0[n];function ws(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const y=n.defaultFormattingWidth||n.defaultWidth,v=e!=null&&e.width?String(e.width):y;f=n.formattingValues[v]||n.formattingValues[y]}else{const y=n.defaultWidth,v=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[v]||n.values[y]}const p=n.argumentCallback?n.argumentCallback(t):t;return f[p]}}const O0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},D0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},N0={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"]},F0={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"]},W0={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"}},P0={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"}},H0=(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"},j0={ordinalNumber:H0,era:ws({values:O0,defaultWidth:"wide"}),quarter:ws({values:D0,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ws({values:N0,defaultWidth:"wide"}),day:ws({values:F0,defaultWidth:"wide"}),dayPeriod:ws({values:W0,defaultWidth:"wide",formattingValues:P0,defaultFormattingWidth:"wide"})};function bs(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],p=t.match(f);if(!p)return null;const y=p[0],v=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(v)?z0(v,c=>c.test(y)):B0(v,c=>c.test(y));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const s=t.slice(y.length);return{value:g,rest:s}}}function B0(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function z0(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function U0(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],p=t.match(n.parsePattern);if(!p)return null;let y=n.valueCallback?n.valueCallback(p[0]):p[0];y=e.valueCallback?e.valueCallback(y):y;const v=t.slice(f.length);return{value:y,rest:v}}}const V0=/^(\d+)(th|st|nd|rd)?/i,q0=/\d+/i,G0={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},Y0={any:[/^b/i,/^(a|c)/i]},K0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Q0={any:[/1/i,/2/i,/3/i,/4/i]},Z0={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},J0={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]},X0={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},eb={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]},tb={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},nb={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}},rb={ordinalNumber:U0({matchPattern:V0,parsePattern:q0,valueCallback:n=>parseInt(n,10)}),era:bs({matchPatterns:G0,defaultMatchWidth:"wide",parsePatterns:Y0,defaultParseWidth:"any"}),quarter:bs({matchPatterns:K0,defaultMatchWidth:"wide",parsePatterns:Q0,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bs({matchPatterns:Z0,defaultMatchWidth:"wide",parsePatterns:J0,defaultParseWidth:"any"}),day:bs({matchPatterns:X0,defaultMatchWidth:"wide",parsePatterns:eb,defaultParseWidth:"any"}),dayPeriod:bs({matchPatterns:tb,defaultMatchWidth:"any",parsePatterns:nb,defaultParseWidth:"any"})},wf={code:"en-US",formatDistance:$0,formatLong:R0,formatRelative:L0,localize:j0,match:rb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ib(n,t){const e=Ht(n,void 0);return A0(e,_0(e))+1}function bf(n,t){const e=Ht(n,void 0),r=+Io(e)-+C0(e);return Math.round(r/6048e5)+1}function Nc(n,t){var e,r,f,p;const y=Ht(n,t==null?void 0:t.in),v=y.getFullYear(),h=To(),g=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(f=h.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=an((t==null?void 0:t.in)||n,0);s.setFullYear(v+1,0,g),s.setHours(0,0,0,0);const c=xi(s,t),a=an((t==null?void 0:t.in)||n,0);a.setFullYear(v,0,g),a.setHours(0,0,0,0);const l=xi(a,t);return+y>=+c?v+1:+y>=+l?v:v-1}function ob(n,t){var e,r,f,p;const y=To(),v=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??y.firstWeekContainsDate??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,h=Nc(n,t),g=an((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,v),g.setHours(0,0,0,0),xi(g,t)}function xf(n,t){const e=Ht(n,t==null?void 0:t.in),r=+xi(e,t)-+ob(e,t);return Math.round(r/6048e5)+1}function St(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Ai={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return St(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):St(e+1,2)},d(n,t){return St(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 St(n.getHours()%12||12,t.length)},H(n,t){return St(n.getHours(),t.length)},m(n,t){return St(n.getMinutes(),t.length)},s(n,t){return St(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return St(f,t.length)}},Eo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Af={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 Ai.y(n,t)},Y:function(n,t,e,r){const f=Nc(n,r),p=f>0?f:1-f;if(t==="YY"){const y=p%100;return St(y,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):St(p,t.length)},R:function(n,t){const e=mf(n);return St(e,t.length)},u:function(n,t){const e=n.getFullYear();return St(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 St(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 St(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 Ai.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 St(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=xf(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):St(f,t.length)},I:function(n,t,e){const r=bf(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):St(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Ai.d(n,t)},D:function(n,t,e){const r=ib(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):St(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(p);case"ee":return St(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(p);case"cc":return St(p,t.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return St(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=Eo.noon:r===0?f=Eo.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=Eo.evening:r>=12?f=Eo.afternoon:r>=4?f=Eo.morning:f=Eo.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 Ai.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Ai.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):St(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):St(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ai.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Ai.s(n,t)},S:function(n,t){return Ai.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return kf(r);case"XXXX":case"XX":return Yi(r);case"XXXXX":case"XXX":default:return Yi(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return kf(r);case"xxxx":case"xx":return Yi(r);case"xxxxx":case"xxx":default:return Yi(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Cf(r,":");case"OOOO":default:return"GMT"+Yi(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Cf(r,":");case"zzzz":default:return"GMT"+Yi(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return St(r,t.length)},T:function(n,t,e){return St(+n,t.length)}};function Cf(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+St(p,2)}function kf(n,t){return n%60===0?(n>0?"-":"+")+St(Math.abs(n)/60,2):Yi(n,t)}function Yi(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=St(Math.trunc(r/60),2),p=St(r%60,2);return e+f+t+p}const _f=(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"})}},Sf=(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"})}},sb=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return _f(n,t);let p;switch(r){case"P":p=t.dateTime({width:"short"});break;case"PP":p=t.dateTime({width:"medium"});break;case"PPP":p=t.dateTime({width:"long"});break;case"PPPP":default:p=t.dateTime({width:"full"});break}return p.replace("{{date}}",_f(r,t)).replace("{{time}}",Sf(f,t))},Fc={p:Sf,P:sb},ab=/^D+$/,lb=/^Y+$/,cb=["D","DD","YY","YYYY"];function $f(n){return ab.test(n)}function Tf(n){return lb.test(n)}function Wc(n,t,e){const r=ub(n,t,e);if(console.warn(r),cb.includes(n))throw new RangeError(r)}function ub(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 hb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,db=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fb=/^'([^]*?)'?$/,pb=/''/g,gb=/[a-zA-Z]/;function Ro(n,t,e){var r,f,p,y,v,h,g,s;const c=To(),a=(e==null?void 0:e.locale)??c.locale??wf,l=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??c.firstWeekContainsDate??((y=(p=c.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(v=e==null?void 0:e.locale)==null?void 0:v.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((s=(g=c.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,u=Ht(n,e==null?void 0:e.in);if(!vf(u))throw new RangeError("Invalid time value");let m=t.match(db).map(A=>{const R=A[0];if(R==="p"||R==="P"){const $=Fc[R];return $(A,a.formatLong)}return A}).join("").match(hb).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const R=A[0];if(R==="'")return{isToken:!1,value:mb(A)};if(Af[R])return{isToken:!0,value:A};if(R.match(gb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:A}});a.localize.preprocessor&&(m=a.localize.preprocessor(u,m));const w={firstWeekContainsDate:l,weekStartsOn:o,locale:a};return m.map(A=>{if(!A.isToken)return A.value;const R=A.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Tf(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&$f(R))&&Wc(R,t,String(n));const $=Af[R[0]];return $(u,R,a.localize,w)}).join("")}function mb(n){const t=n.match(fb);return t?t[1].replace(pb,"'"):n}var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ea(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var If={exports:{}},Ef;function yb(){return Ef||(Ef=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(s,c,a){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&&(a=c),f.modules[s]||(f.payloads[s]=a,f.modules[s]=null)};f.modules={},f.payloads={};var p=function(s,c,a){if(typeof c=="string"){var l=h(s,c);if(l!=null)return a&&a(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],u=0,m=c.length;u<m;++u){var w=h(s,c[u]);if(w==null&&y.original)return;o.push(w)}return a&&a.apply(null,o)||!0}},y=function(s,c){var a=p("",s,c);return a==null&&y.original?y.original.apply(this,arguments):a},v=function(s,c){if(c.indexOf("!")!==-1){var a=c.split("!");return v(s,a[0])+"!"+v(s,a[1])}if(c.charAt(0)=="."){var l=s.split("/").slice(0,-1).join("/");for(c=l+"/"+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},h=function(s,c){c=v(s,c);var a=f.modules[c];if(!a){if(a=f.payloads[c],typeof a=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(w,A){return p(c,w,A)},m=a(u,l,o);l=m||o.exports,f.modules[c]=l,delete f.payloads[c]}a=f.modules[c]=l||a}return a};function g(s){var c=r;r[s]||(r[s]={}),c=r[s],(!c.define||!c.define.packaged)&&(f.original=c.define,c.define=f,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(y.original=c.require,c.require=y,c.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function p(y,v,h){Object.defineProperty(y,v,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(y,v){return v=v||0,this.lastIndexOf(y,v)===v}),String.prototype.endsWith||p(String.prototype,"endsWith",function(y,v){var h=this;(v===void 0||v>h.length)&&(v=h.length),v-=y.length;var g=h.indexOf(y,v);return g!==-1&&g===v}),String.prototype.repeat||p(String.prototype,"repeat",function(y){for(var v="",h=this;y>0;)y&1&&(v+=h),(y>>=1)&&(h+=h);return v}),String.prototype.includes||p(String.prototype,"includes",function(y,v){return this.indexOf(y,v)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(y),h=1;h<arguments.length;h++){var g=arguments[h];g!=null&&Object.keys(g).forEach(function(s){v[s]=g[s]})}return v}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(v){return y[v]})}),Array.prototype.find||p(Array.prototype,"find",function(y){for(var v=this.length,h=arguments[1],g=0;g<v;g++){var s=this[g];if(y.call(h,s,g,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(y){for(var v=this.length,h=arguments[1],g=0;g<v;g++){var s=this[g];if(y.call(h,s,g,this))return g}}),Array.prototype.includes||p(Array.prototype,"includes",function(y,v){return this.indexOf(y,v)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(y){for(var v=this,h=v.length>>>0,g=arguments[1],s=g>>0,c=s<0?Math.max(h+s,0):Math.min(s,h),a=arguments[2],l=a===void 0?h:a>>0,o=l<0?Math.max(h+l,0):Math.min(l,h);c<o;)v[c]=y,c++;return v}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function p(y){if(typeof y!="object"||!y)return y;var v;if(Array.isArray(y)){v=[];for(var h=0;h<y.length;h++)v[h]=p(y[h]);return v}if(Object.prototype.toString.call(y)!=="[object Object]")return y;v={};for(var h in y)v[h]=p(y[h]);return v}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(v){return v[v.length-1]},r.stringReverse=function(v){return v.split("").reverse().join("")},r.stringRepeat=function(v,h){for(var g="";h>0;)h&1&&(g+=v),(h>>=1)&&(v+=v);return g};var p=/^\s\s*/,y=/\s\s*$/;r.stringTrimLeft=function(v){return v.replace(p,"")},r.stringTrimRight=function(v){return v.replace(y,"")},r.copyObject=function(v){var h={};for(var g in v)h[g]=v[g];return h},r.copyArray=function(v){for(var h=[],g=0,s=v.length;g<s;g++)v[g]&&typeof v[g]=="object"?h[g]=this.copyObject(v[g]):h[g]=v[g];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(v){for(var h={},g=0;g<v.length;g++)h[v[g]]=1;return h},r.createMap=function(v){var h=Object.create(null);for(var g in v)h[g]=v[g];return h},r.arrayRemove=function(v,h){for(var g=0;g<=v.length;g++)h===v[g]&&v.splice(g,1)},r.escapeRegExp=function(v){return v.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(v){return(""+v).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(v,h){var g=[];return v.replace(h,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},r.deferredCall=function(v){var h=null,g=function(){h=null,v()},s=function(c){return s.cancel(),h=setTimeout(g,c||0),s};return s.schedule=s,s.call=function(){return this.cancel(),v(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(v,h){var g=null,s=function(){g=null,v()},c=function(a){g==null&&(g=setTimeout(s,a||h))};return c.delay=function(a){g&&clearTimeout(g),g=setTimeout(s,a||h)},c.schedule=c,c.call=function(){this.cancel(),v()},c.cancel=function(){g&&clearTimeout(g),g=null},c.isPending=function(){return g},c},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(v,h,g){return g&&v.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},y=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),v=p.userAgent||"",h=p.appName||"";r.isWin=y=="win",r.isMac=y=="mac",r.isLinux=y=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=v.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(v.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(v.split(" Edge/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isAndroid=v.indexOf("Android")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("./useragent"),y="http://www.w3.org/1999/xhtml";r.buildDom=function a(l,o,u){if(typeof l=="string"&&l){var m=document.createTextNode(l);return o&&o.appendChild(m),m}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var w=[],A=0;A<l.length;A++){var R=a(l[A],o,u);R&&w.push(R)}return w}var $=document.createElement(l[0]),C=l[1],b=1;C&&typeof C=="object"&&!Array.isArray(C)&&(b=2);for(var A=b;A<l.length;A++)a(l[A],$,u);return b==2&&Object.keys(C).forEach(function(T){var E=C[T];T==="class"?$.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||T=="value"||T[0]=="$"?$[T]=E:T==="ref"?u&&(u[E]=$):T==="style"?typeof E=="string"&&($.style.cssText=E):E!=null&&$.setAttribute(T,E)}),o&&o.appendChild($),$},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,l){return document.createElementNS?document.createElementNS(l||y,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,l){var o=l?l.ownerDocument:document;return o.createTextNode(a)},r.createFragment=function(a){var l=a?a.ownerDocument:document;return l.createDocumentFragment()},r.hasCssClass=function(a,l){var o=(a.className+"").split(/\s+/g);return o.indexOf(l)!==-1},r.addCssClass=function(a,l){r.hasCssClass(a,l)||(a.className+=" "+l)},r.removeCssClass=function(a,l){for(var o=a.className.split(/\s+/g);;){var u=o.indexOf(l);if(u==-1)break;o.splice(u,1)}a.className=o.join(" ")},r.toggleCssClass=function(a,l){for(var o=a.className.split(/\s+/g),u=!0;;){var m=o.indexOf(l);if(m==-1)break;u=!1,o.splice(m,1)}return u&&o.push(l),a.className=o.join(" "),u},r.setCssClass=function(a,l,o){o?r.addCssClass(a,l):r.removeCssClass(a,l)},r.hasCssString=function(a,l){var o=0,u;if(l=l||document,u=l.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===a)return!0}},r.removeElementById=function(a,l){l=l||document,l.getElementById(a)&&l.getElementById(a).remove()};var v,h=[];r.useStrictCSP=function(a){v=a,a==!1?g():h||(h=[])};function g(){var a=h;h=null,a&&a.forEach(function(l){s(l[0],l[1])})}function s(a,l,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([a,l])}if(!v){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var m=u.ownerDocument||u;if(l&&r.hasCssString(l,u))return null;l&&(a+=`
2
- /*# sourceURL=ace/css/`+l+" */");var w=r.createElement("style");w.appendChild(m.createTextNode(a)),l&&(w.id=l),u==m&&(u=r.getDocumentHead(m)),u.insertBefore(w,u.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(a,l){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(l))},r.scrollbarWidth=function(a){var l=r.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var o=r.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(l);var m=a&&a.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(o);var w=l.offsetWidth;u.overflow="scroll";var A=l.offsetWidth;return w===A&&(A=o.clientWidth),m.removeChild(o),w-A},r.computedStyle=function(a,l){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,l,o){a[l]!==o&&(a[l]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");r.HI_DPI&&c.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof c.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),c=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,l,o){a.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:r.translate=function(a,l,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
3
- * based on code from:
4
- *
5
- * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
6
- * Available via the MIT or new BSD license.
7
- * see: http://github.com/jrburke/requirejs for details
8
- */var p=e("./dom");r.get=function(y,v){var h=new XMLHttpRequest;h.open("GET",y,!0),h.onreadystatechange=function(){h.readyState===4&&v(h.responseText)},h.send(null)},r.loadScript=function(y,v){var h=p.getDocumentHead(),g=document.createElement("script");g.src=y,h.appendChild(g),g.onload=g.onreadystatechange=function(s,c){(c||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,c||v())}},r.qualifyURL=function(y){var v=document.createElement("a");return v.href=y,v.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,r,f){r.inherits=function(p,y){p.super_=y,p.prototype=Object.create(y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(p,y){for(var v in y)p[v]=y[v];return p},r.implement=function(p,y){r.mixin(p,y)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,r,f){var p={},y=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(h,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!s.length&&!c)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=h),g.stopPropagation||(g.stopPropagation=y),g.preventDefault||(g.preventDefault=v),s=s.slice();for(var a=0;a<s.length&&(s[a](g,this),!g.propagationStopped);a++);if(c&&!g.defaultPrevented)return c(g,this)}},p._signal=function(h,g){var s=(this._eventRegistry||{})[h];if(s){s=s.slice();for(var c=0;c<s.length;c++)s[c](g,this)}},p.once=function(h,g){var s=this;if(this.on(h,function c(){s.off(h,c),g.apply(null,arguments)}),!g)return new Promise(function(c){g=c})},p.setDefaultHandler=function(h,g){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[h]){var c=s[h],a=s._disabled_[h];a||(s._disabled_[h]=a=[]),a.push(c);var l=a.indexOf(g);l!=-1&&a.splice(l,1)}s[h]=g},p.removeDefaultHandler=function(h,g){var s=this._defaultHandlers;if(s){var c=s._disabled_[h];if(s[h]==g)c&&this.setDefaultHandler(h,c.pop());else if(c){var a=c.indexOf(g);a!=-1&&c.splice(a,1)}}},p.on=p.addEventListener=function(h,g,s){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(g)==-1&&c[s?"unshift":"push"](g),g},p.off=p.removeListener=p.removeEventListener=function(h,g){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[h];if(s){var c=s.indexOf(g);c!==-1&&s.splice(c,1)}},p.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},r.EventEmitter=p}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,r,f){r.reportError=function(p,y){var v=new Error(p);v.data=y,typeof console=="object"&&console.error&&console.error(v),setTimeout(function(){throw v})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,r,f){var p={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};r.defaultEnglishMessages=p}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,r,f){"no use strict";var p=e("./oop"),y=e("./event_emitter").EventEmitter,v=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,g={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var m=this.$options;o=Object.keys(m).filter(function(w){return!m[w].hidden})}return o.forEach(function(w){u[w]=this.getOption(w)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var m=this.$options[o];if(!m)return s('misspelled option "'+o+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(o,u);m.handlesSet||(this["$"+o]=u),m&&m.set&&m.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:s('misspelled option "'+o+'"')}};function s(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var c,a,l=function(){function o(){this.$defaultOptions={},c=h,a="dollarSigns"}return o.prototype.defineOptions=function(u,m,w){return u.$options||(this.$defaultOptions[m]=u.$options={}),Object.keys(w).forEach(function(A){var R=w[A];typeof R=="string"&&(R={forwardTo:R}),R.name||(R.name=A),u.$options[R.name]=R,"initialValue"in R&&(u["$"+R.name]=R.initialValue)}),p.implement(u,g),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(m){var w=u.$options[m];"value"in w&&u.setOption(m,w.value)})},o.prototype.setDefaultValue=function(u,m,w){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][m])break;if(!this.$defaultOptions[u][m])return!1}var A=this.$defaultOptions[u]||(this.$defaultOptions[u]={});A[m]&&(A.forwardTo?this.setDefaultValue(A.forwardTo,m,w):A[m].value=w)},o.prototype.setDefaultValues=function(u,m){Object.keys(m).forEach(function(w){this.setDefaultValue(u,w,m[w])},this)},o.prototype.setMessages=function(u,m){c=u,m&&m.placeholders&&(a=m.placeholders)},o.prototype.nls=function(u,m,w){c[u]||(s("No message found for the key '"+u+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+m+"'."),c[m]||s("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var A=c[u]||c[m]||m;return w&&(a==="dollarSigns"&&(A=A.replace(/\$(\$|[\d]+)/g,function(R,$){return $=="$"?"$":w[$]})),a==="curlyBrackets"&&(A=A.replace(/\{([^\}]+)\}/g,function(R,$){return w[$]}))),A},o}();l.prototype.warn=s,l.prototype.reportError=v,p.implement(l.prototype,y),r.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,r,f){f.exports=`.ace-tm .ace_gutter {
9
- background: #f0f0f0;
10
- color: #333;
11
- }
12
-
13
- .ace-tm .ace_print-margin {
14
- width: 1px;
15
- background: #e8e8e8;
16
- }
17
-
18
- .ace-tm .ace_fold {
19
- background-color: #6B72E6;
20
- }
21
-
22
- .ace-tm {
23
- background-color: #FFFFFF;
24
- color: black;
25
- }
26
-
27
- .ace-tm .ace_cursor {
28
- color: black;
29
- }
30
-
31
- .ace-tm .ace_invisible {
32
- color: rgb(191, 191, 191);
33
- }
34
-
35
- .ace-tm .ace_storage,
36
- .ace-tm .ace_keyword {
37
- color: blue;
38
- }
39
-
40
- .ace-tm .ace_constant {
41
- color: rgb(197, 6, 11);
42
- }
43
-
44
- .ace-tm .ace_constant.ace_buildin {
45
- color: rgb(88, 72, 246);
46
- }
47
-
48
- .ace-tm .ace_constant.ace_language {
49
- color: rgb(88, 92, 246);
50
- }
51
-
52
- .ace-tm .ace_constant.ace_library {
53
- color: rgb(6, 150, 14);
54
- }
55
-
56
- .ace-tm .ace_invalid {
57
- background-color: rgba(255, 0, 0, 0.1);
58
- color: red;
59
- }
60
-
61
- .ace-tm .ace_support.ace_function {
62
- color: rgb(60, 76, 114);
63
- }
64
-
65
- .ace-tm .ace_support.ace_constant {
66
- color: rgb(6, 150, 14);
67
- }
68
-
69
- .ace-tm .ace_support.ace_type,
70
- .ace-tm .ace_support.ace_class {
71
- color: rgb(109, 121, 222);
72
- }
73
-
74
- .ace-tm .ace_keyword.ace_operator {
75
- color: rgb(104, 118, 135);
76
- }
77
-
78
- .ace-tm .ace_string {
79
- color: rgb(3, 106, 7);
80
- }
81
-
82
- .ace-tm .ace_comment {
83
- color: rgb(76, 136, 107);
84
- }
85
-
86
- .ace-tm .ace_comment.ace_doc {
87
- color: rgb(0, 102, 255);
88
- }
89
-
90
- .ace-tm .ace_comment.ace_doc.ace_tag {
91
- color: rgb(128, 159, 191);
92
- }
93
-
94
- .ace-tm .ace_constant.ace_numeric {
95
- color: rgb(0, 0, 205);
96
- }
97
-
98
- .ace-tm .ace_variable {
99
- color: rgb(49, 132, 149);
100
- }
101
-
102
- .ace-tm .ace_xml-pe {
103
- color: rgb(104, 104, 91);
104
- }
105
-
106
- .ace-tm .ace_entity.ace_name.ace_function {
107
- color: #0000A2;
108
- }
109
-
110
-
111
- .ace-tm .ace_heading {
112
- color: rgb(12, 7, 255);
113
- }
114
-
115
- .ace-tm .ace_list {
116
- color:rgb(185, 6, 144);
117
- }
118
-
119
- .ace-tm .ace_meta.ace_tag {
120
- color:rgb(0, 22, 142);
121
- }
122
-
123
- .ace-tm .ace_string.ace_regex {
124
- color: rgb(255, 0, 0)
125
- }
126
-
127
- .ace-tm .ace_marker-layer .ace_selection {
128
- background: rgb(181, 213, 255);
129
- }
130
- .ace-tm.ace_multiselect .ace_selection.ace_start {
131
- box-shadow: 0 0 3px 0px white;
132
- }
133
- .ace-tm .ace_marker-layer .ace_step {
134
- background: rgb(252, 255, 0);
135
- }
136
-
137
- .ace-tm .ace_marker-layer .ace_stack {
138
- background: rgb(164, 229, 101);
139
- }
140
-
141
- .ace-tm .ace_marker-layer .ace_bracket {
142
- margin: -1px 0 0 -1px;
143
- border: 1px solid rgb(192, 192, 192);
144
- }
145
-
146
- .ace-tm .ace_marker-layer .ace_active-line {
147
- background: rgba(0, 0, 0, 0.07);
148
- }
149
-
150
- .ace-tm .ace_gutter-active-line {
151
- background-color : #dcdcdc;
152
- }
153
-
154
- .ace-tm .ace_marker-layer .ace_selected-word {
155
- background: rgb(250, 250, 255);
156
- border: 1px solid rgb(200, 200, 250);
157
- }
158
-
159
- .ace-tm .ace_indent-guide {
160
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
- }
162
-
163
- .ace-tm .ace_indent-guide-active {
164
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
- }
166
- `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,f){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var p=e("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,r,f){"no use strict";var p=e("./lib/lang"),y=e("./lib/net"),v=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!g.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return g[l]},r.set=function(l,o){if(g.hasOwnProperty(l))g[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&v.useStrictCSP(o)},r.all=function(){return p.copyObject(g)},r.$modes={},r.moduleUrl=function(l,o){if(g.$moduleUrls[l])return g.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var m=o=="snippets"?"/":"-",w=u[u.length-1];if(o=="worker"&&m=="-"){var A=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");w=w.replace(A,"")}(!w||w==o)&&u.length>1&&(w=u[u.length-2]);var R=g[o+"Path"];return R==null?R=g.basePath:m=="/"&&(o=m=""),R&&R.slice(-1)!="/"&&(R+="/"),R+o+m+w+this.get("suffix")},r.setModuleUrl=function(l,o){return g.$moduleUrls[l]=o};var s=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,e("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;r.setLoader=function(l){c=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,o){var u;if(Array.isArray(l))var m=l[0],w=l[1];else if(typeof l=="string")var w=l;var A=function(R){if(R&&!r.$loading[w])return o&&o(R);if(r.$loading[w]||(r.$loading[w]=[]),r.$loading[w].push(o),!(r.$loading[w].length>1)){var $=function(){s(w,function(C,b){b&&(r.$loaded[w]=b),r._emit("load.module",{name:w,module:b});var T=r.$loading[w];r.$loading[w]=null,T.forEach(function(E){E&&E(b)})})};if(!r.get("packaged"))return $();y.loadScript(r.moduleUrl(w,m),$),a()}};if(r.dynamicModules[w])r.dynamicModules[w]().then(function(R){R.default?A(R.default):A(R)});else{try{u=this.$require(w)}catch{}A(u||r.$loaded[w])}},r.$require=function(l){if(typeof f.require=="function"){var o="require";return f[o](l)}},r.setModuleLoader=function(l,o){r.dynamicModules[l]=o};var a=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),a=function(){})};r.version="1.38.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var p=e("./config");p.setLoader(function(g,s){e([g],function(c){s(null,c)})});var y=function(){return this||typeof window<"u"&&window}();f.exports=function(g){p.init=v,p.$require=e,g.require=e},v(!0);function v(g){if(!(!y||!y.document)){p.set("packaged",g||e.packaged||f.packaged||y.define&&(void 0).packaged);var s={},c="",a=document.currentScript||document._currentScript,l=a&&a.ownerDocument||document;a&&a.src&&(c=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=l.getElementsByTagName("script"),u=0;u<o.length;u++){var m=o[u],w=m.src||m.getAttribute("src");if(w){for(var A=m.attributes,R=0,$=A.length;R<$;R++){var C=A[R];C.name.indexOf("data-ace-")===0&&(s[h(C.name.replace(/^data-ace-/,""))]=C.value)}var b=w.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(c=b[1])}}c&&(s.base=s.base||c,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var T in s)typeof s[T]<"u"&&p.set(T,s[T])}}function h(g){return g.replace(/-(.)/g,function(s,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var p=function(){function y(v,h,g,s){this.start={row:v,column:h},this.end={row:g,column:s}}return y.prototype.isEqual=function(v){return this.start.row===v.start.row&&this.end.row===v.end.row&&this.start.column===v.start.column&&this.end.column===v.end.column},y.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},y.prototype.contains=function(v,h){return this.compare(v,h)==0},y.prototype.compareRange=function(v){var h,g=v.end,s=v.start;return h=this.compare(g.row,g.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},y.prototype.comparePoint=function(v){return this.compare(v.row,v.column)},y.prototype.containsRange=function(v){return this.comparePoint(v.start)==0&&this.comparePoint(v.end)==0},y.prototype.intersects=function(v){var h=this.compareRange(v);return h==-1||h==0||h==1},y.prototype.isEnd=function(v,h){return this.end.row==v&&this.end.column==h},y.prototype.isStart=function(v,h){return this.start.row==v&&this.start.column==h},y.prototype.setStart=function(v,h){typeof v=="object"?(this.start.column=v.column,this.start.row=v.row):(this.start.row=v,this.start.column=h)},y.prototype.setEnd=function(v,h){typeof v=="object"?(this.end.column=v.column,this.end.row=v.row):(this.end.row=v,this.end.column=h)},y.prototype.inside=function(v,h){return this.compare(v,h)==0?!(this.isEnd(v,h)||this.isStart(v,h)):!1},y.prototype.insideStart=function(v,h){return this.compare(v,h)==0?!this.isEnd(v,h):!1},y.prototype.insideEnd=function(v,h){return this.compare(v,h)==0?!this.isStart(v,h):!1},y.prototype.compare=function(v,h){return!this.isMultiLine()&&v===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:v<this.start.row?-1:v>this.end.row?1:this.start.row===v?h>=this.start.column?0:-1:this.end.row===v?h<=this.end.column?0:1:0},y.prototype.compareStart=function(v,h){return this.start.row==v&&this.start.column==h?-1:this.compare(v,h)},y.prototype.compareEnd=function(v,h){return this.end.row==v&&this.end.column==h?1:this.compare(v,h)},y.prototype.compareInside=function(v,h){return this.end.row==v&&this.end.column==h?1:this.start.row==v&&this.start.column==h?-1:this.compare(v,h)},y.prototype.clipRows=function(v,h){if(this.end.row>h)var g={row:h+1,column:0};else if(this.end.row<v)var g={row:v,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<v)var s={row:v,column:0};return y.fromPoints(s||this.start,g||this.end)},y.prototype.extend=function(v,h){var g=this.compare(v,h);if(g==0)return this;if(g==-1)var s={row:v,column:h};else var c={row:v,column:h};return y.fromPoints(s||this.start,c||this.end)},y.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},y.prototype.isMultiLine=function(){return this.start.row!==this.end.row},y.prototype.clone=function(){return y.fromPoints(this.start,this.end)},y.prototype.collapseRows=function(){return this.end.column==0?new y(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new y(this.start.row,0,this.end.row,0)},y.prototype.toScreenRange=function(v){var h=v.documentToScreenPosition(this.start),g=v.documentToScreenPosition(this.end);return new y(h.row,h.column,g.row,g.column)},y.prototype.moveBy=function(v,h){this.start.row+=v,this.start.column+=h,this.end.row+=v,this.end.column+=h},y}();p.fromPoints=function(y,v){return new p(y.row,y.column,v.row,v.column)},p.comparePoints=function(y,v){return y.row-v.row||y.column-v.column},r.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var p=e("./oop"),y={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},v={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)v["Digit"+h]=48+h,v["Numpad"+h]=96+h,y.PRINTABLE_KEYS[48+h]=""+h,y.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var g=String.fromCharCode(h+32);v["Key"+g.toUpperCase()]=h,y.PRINTABLE_KEYS[h]=g}for(var h=1;h<13;h++)v["F"+h]=111+h,y.FUNCTION_KEYS[111+h]="F"+h;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var c in s)v[c]=v[c+"Left"]=v[c+"Right"]=s[c];r.$codeToKeyCode=v,y.PRINTABLE_KEYS[173]="-";for(var a in y.FUNCTION_KEYS){var l=y.FUNCTION_KEYS[a].toLowerCase();y[l]=parseInt(a,10)}for(var a in y.PRINTABLE_KEYS){var l=y.PRINTABLE_KEYS[a].toLowerCase();y[l]=parseInt(a,10)}p.mixin(y,y.MODIFIER_KEYS),p.mixin(y,y.PRINTABLE_KEYS),p.mixin(y,y.FUNCTION_KEYS),y.enter=y.return,y.escape=y.esc,y.del=y.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)y.KEY_MODS[u]=o.filter(function(m){return u&y.KEY_MODS[m]}).join("-")+"-"}(),y.KEY_MODS[0]="",y.KEY_MODS[-1]="input-",p.mixin(r,y),r.default=r,r.keyCodeToString=function(o){var u=y[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var p=e("./keys"),y=e("./useragent"),v=null,h=0,g;function s(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function c(){return g==null&&s(),g}function a(R,$,C){this.elem=R,this.type=$,this.callback=C}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=r.addListener=function(R,$,C,b){R.addEventListener($,C,c()),b&&b.$toDestroy.push(new a(R,$,C))},o=r.removeListener=function(R,$,C){R.removeEventListener($,C,c())};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"||y.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},r.capture=function(R,$,C){var b=R&&R.ownerDocument||document;function T(E){$&&$(E),C&&C(E),o(b,"mousemove",$),o(b,"mouseup",T),o(b,"dragstart",T)}return l(b,"mousemove",$),l(b,"mouseup",T),l(b,"dragstart",T),T},r.addMouseWheelListener=function(R,$,C){l(R,"wheel",function(b){var T=.15,E=b.deltaX||0,L=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=E*T,b.wheelY=L*T;break;case b.DOM_DELTA_LINE:var I=15;b.wheelX=E*I,b.wheelY=L*I;break;case b.DOM_DELTA_PAGE:var N=150;b.wheelX=E*N,b.wheelY=L*N;break}$(b)},C)},r.addMultiMouseDownListener=function(R,$,C,b,T){var E=0,L,I,N,_={2:"dblclick",3:"tripleclick",4:"quadclick"};function x(k){if(r.getButton(k)!==0?E=0:k.detail>1?(E++,E>4&&(E=1)):E=1,y.isIE){var M=Math.abs(k.clientX-L)>5||Math.abs(k.clientY-I)>5;(!N||M)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},$[E-1]||600),E==1&&(L=k.clientX,I=k.clientY)}if(k._clicks=E,C[b]("mousedown",k),E>4)E=0;else if(E>1)return C[b](_[E],k)}Array.isArray(R)||(R=[R]),R.forEach(function(k){l(k,"mousedown",x,T)})};function u(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}r.getModifierString=function(R){return p.KEY_MODS[u(R)]};function m(R,$,C){var b=u($);if(!C&&$.code&&(C=p.$codeToKeyCode[$.code]||C),!y.isMac&&v){if($.getModifierState&&($.getModifierState("OS")||$.getModifierState("Win"))&&(b|=8),v.altGr)if((3&b)!=3)v.altGr=0;else return;if(C===18||C===17){var T=$.location;if(C===17&&T===1)v[C]==1&&(h=$.timeStamp);else if(C===18&&b===3&&T===2){var E=$.timeStamp-h;E<50&&(v.altGr=!0)}}}if(C in p.MODIFIER_KEYS&&(C=-1),!(!b&&C===13&&$.location===3&&(R($,b,-C),$.defaultPrevented))){if(y.isChromeOS&&b&8){if(R($,b,C),$.defaultPrevented)return;b&=-9}return!b&&!(C in p.FUNCTION_KEYS)&&!(C in p.PRINTABLE_KEYS)?!1:R($,b,C)}}r.addCommandKeyListener=function(R,$,C){var b=null;l(R,"keydown",function(T){v[T.keyCode]=(v[T.keyCode]||0)+1;var E=m($,T,T.keyCode);return b=T.defaultPrevented,E},C),l(R,"keypress",function(T){b&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),b=null)},C),l(R,"keyup",function(T){v[T.keyCode]=null},C),v||(w(),l(window,"focus",w))};function w(){v=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!y.isOldIE){var A=1;r.nextTick=function(R,$){$=$||window;var C="zero-timeout-message-"+A++,b=function(T){T.data==C&&(r.stopPropagation(T),o($,"message",b),R())};l($,"message",b),$.postMessage(C,"*")}}r.$idleBlocked=!1,r.onIdle=function(R,$){return setTimeout(function C(){r.$idleBlocked?setTimeout(C,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 p;f.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,r,f){var p=e("../lib/event"),y=e("../config").nls,v=e("../lib/useragent"),h=e("../lib/dom"),g=e("../lib/lang"),s=e("../clipboard"),c=v.isChrome<18,a=v.isIE,l=v.isChrome>63,o=400,u=e("../lib/keys"),m=u.KEY_MODS,w=v.isIOS,A=w?/\s/:/\n/,R=v.isMobile,$;$=function(C,b){var T=h.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",C.insertBefore(T,C.firstChild);var E=!1,L=!1,I=!1,N=!1,_="";R||(T.style.fontSize="1px");var x=!1,k=!1,M="",O=0,F=0,P=0,z=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(z=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(b.$textInputAriaLabel&&(ce+="".concat(b.$textInputAriaLabel,", ")),b.session){var Se=b.session.selection.cursor.row;ce+=y("text-input.aria-label","Cursor at row $0",[Se+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",y("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),p.addListener(T,"blur",function(ce){k||(b.onBlur(ce),X=!1)},b),p.addListener(T,"focus",function(ce){if(!k){if(X=!0,v.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ce),v.isEdge?setTimeout(Z):Z()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),_||l||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Se=T.getBoundingClientRect().top!=0}catch{return}var Ie=[];if(Se)for(var ze=T.parentElement;ze&&ze.nodeType==1;)Ie.push(ze),ze.setAttribute("ace_nocontext","true"),!ze.parentElement&&ze.getRootNode?ze=ze.getRootNode().host:ze=ze.parentElement;T.focus({preventScroll:!0}),Se&&Ie.forEach(function(qe){qe.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},b.on("beforeEndOperation",function(){var ce=b.curOp,Se=ce&&ce.command&&ce.command.name;if(Se!="insertstring"){var Ie=Se&&(ce.docChanged||ce.selectionChanged);I&&Ie&&(M=T.value="",Vt()),Z()}}),b.on("changeSelection",this.setAriaLabel);var G=function(ce,Se){for(var Ie=Se,ze=1;ze<=ce-z&&ze<2*q+1;ze++)Ie+=b.session.getLine(ce-ze).length+1;return Ie},Z=w?function(ce){if(!(!X||E&&!ce||N)){ce||(ce="");var Se=`
167
- ab`+ce+`cde fg
168
- `;Se!=T.value&&(T.value=M=Se);var Ie=4,ze=4+(ce.length||(b.selection.isEmpty()?0:1));(O!=Ie||F!=ze)&&T.setSelectionRange(Ie,ze),O=Ie,F=ze}}:function(){if(!(I||N)&&!(!X&&!me)){I=!0;var ce=0,Se=0,Ie="";if(b.session){var ze=b.selection,qe=ze.getRange(),ut=ze.cursor.row;ut===V+1?(z=V+1,V=z+2*q):ut===z-1?(V=z-1,z=V-2*q):(ut<z-1||ut>V+1)&&(z=ut>q?ut-q:0,V=ut>q?ut+q:2*q);for(var ht=[],ot=z;ot<=V;ot++)ht.push(b.session.getLine(ot));if(Ie=ht.join(`
169
- `),ce=G(qe.start.row,qe.start.column),Se=G(qe.end.row,qe.end.column),qe.start.row<z){var st=b.session.getLine(z-1);ce=qe.start.row<z-1?0:ce,Se+=st.length+1,Ie=st+`
170
- `+Ie}else if(qe.end.row>V){var et=b.session.getLine(V+1);Se=qe.end.row>V+1?et.length:qe.end.column,Se+=Ie.length+1,Ie=Ie+`
171
- `+et}else R&&ut>0&&(Ie=`
172
- `+Ie,Se+=1,ce+=1);Ie.length>o&&(ce<o&&Se<o?Ie=Ie.slice(0,o):(Ie=`
173
- `,ce==Se?ce=Se=0:(ce=0,Se=1)));var Pt=Ie+`
174
-
175
- `;Pt!=M&&(T.value=M=Pt,O=F=Pt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Se||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Se),O=ce,F=Se}catch{}I=!1}};this.resetSelection=Z,X&&b.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=M.length&&ce.value===M&&M&&ce.selectionEnd!==F},J=function(ce){I||(E?E=!1:re(T)?(b.selectAll(),Z()):R&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ve=function(ce,Se){if(me&&(me=!1),L)return Z(),ce&&b.onPaste(ce),L=!1,"";for(var Ie=T.selectionStart,ze=T.selectionEnd,qe=O,ut=M.length-F,ht=ce,ot=ce.length-Ie,st=ce.length-ze,et=0;qe>0&&M[et]==ce[et];)et++,qe--;for(ht=ht.slice(et),et=1;ut>0&&M.length-et>O-1&&M[M.length-et]==ce[ce.length-et];)et++,ut--;ot-=et-1,st-=et-1;var Pt=ht.length-et+1;if(Pt<0&&(qe=-Pt,Pt=0),ht=ht.slice(0,Pt),!Se&&!ht&&!ot&&!qe&&!ut&&!st)return"";N=!0;var Nn=!1;return v.isAndroid&&ht==". "&&(ht=" ",Nn=!0),ht&&!qe&&!ut&&!ot&&!st||x?b.onTextInput(ht):b.onTextInput(ht,{extendLeft:qe,extendRight:ut,restoreStart:ot,restoreEnd:st}),N=!1,M=ce,O=Ie,F=ze,P=st,Nn?`
176
- `:ht},pe=function(ce){if(I)return Rt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Se=T.value,Ie=ve(Se,!0);(Se.length>o+100||A.test(Ie)||R&&O<1&&O==F)&&Z()},Ae=function(ce,Se,Ie){var ze=ce.clipboardData||window.clipboardData;if(!(!ze||c)){var qe=a||Ie?"Text":"text/plain";try{return Se?ze.setData(qe,Se)!==!1:ze.getData(qe)}catch(ut){if(!Ie)return Ae(ut,Se,!0)}}},rt=function(ce,Se){var Ie=b.getCopyText();if(!Ie)return p.preventDefault(ce);Ae(ce,Ie)?(w&&(Z(Ie),E=Ie,setTimeout(function(){E=!1},10)),Se?b.onCut():b.onCopy(),p.preventDefault(ce)):(E=!0,T.value=Ie,T.select(),setTimeout(function(){E=!1,Z(),Se?b.onCut():b.onCopy()}))},Dt=function(ce){rt(ce,!0)},ct=function(ce){rt(ce,!1)},ft=function(ce){var Se=Ae(ce);s.pasteCancelled()||(typeof Se=="string"?(Se&&b.onPaste(Se,ce),v.isIE&&setTimeout(Z),p.preventDefault(ce)):(T.value="",L=!0))};p.addCommandKeyListener(T,function(ce,Se,Ie){if(!I)return b.onCommandKey(ce,Se,Ie)},b),p.addListener(T,"select",J,b),p.addListener(T,"input",pe,b),p.addListener(T,"cut",Dt,b),p.addListener(T,"copy",ct,b),p.addListener(T,"paste",ft,b),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&p.addListener(C,"keydown",function(ce){if(!(v.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:ct(ce);break;case 86:ft(ce);break;case 88:Dt(ce);break}},b);var rn=function(ce){if(!(I||!b.onCompositionStart||b.$readOnly)&&(I={},!x)){ce.data&&(I.useTextareaForIME=!1),setTimeout(Rt,0),b._signal("compositionStart"),b.on("mousedown",zr);var Se=b.getSelectionRange();Se.end.row=Se.start.row,Se.end.column=Se.start.column,I.markerRange=Se,I.selectionStart=O,b.onCompositionStart(I),I.useTextareaForIME?(M=T.value="",O=0,F=0):(T.msGetInputContext&&(I.context=T.msGetInputContext()),T.getInputContext&&(I.context=T.getInputContext()))}},Rt=function(){if(!(!I||!b.onCompositionUpdate||b.$readOnly)){if(x)return zr();if(I.useTextareaForIME)b.onCompositionUpdate(T.value);else{var ce=T.value;ve(ce),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+F-I.selectionStart+P)}}},Vt=function(ce){!b.onCompositionEnd||b.$readOnly||(I=!1,b.onCompositionEnd(),b.off("mousedown",zr),ce&&pe())};function zr(){k=!0,T.blur(),T.focus(),k=!1}var vn=g.delayedCall(Rt,50).schedule.bind(null,null);function Qt(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(I||(M=T.value),O=F=-1,Z()),vn()}p.addListener(T,"compositionstart",rn,b),p.addListener(T,"compositionupdate",Rt,b),p.addListener(T,"keyup",Qt,b),p.addListener(T,"keydown",vn,b),p.addListener(T,"compositionend",Vt,b),this.getElement=function(){return T},this.setCommandMode=function(ce){x=ce,T.readOnly=!1},this.setReadOnly=function(ce){x||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),b._emit("nativecontextmenu",{target:b,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Se){_||(_=T.style.cssText),T.style.cssText=(Se?"z-index:100000;":"")+(v.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*b.renderer.characterWidth*.5+"px;";var Ie=b.container.getBoundingClientRect(),ze=h.computedStyle(b.container),qe=Ie.top+(parseInt(ze.borderTopWidth)||0),ut=Ie.left+(parseInt(ze.borderLeftWidth)||0),ht=Ie.bottom-qe-T.clientHeight-2,ot=function(st){h.translate(T,st.clientX-ut-2,Math.min(st.clientY-qe-2,ht))};ot(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(De),v.isWin&&p.capture(b.container,ot,We))},this.onContextMenuClose=We;var De;function We(){clearTimeout(De),De=setTimeout(function(){_&&(T.style.cssText=_,_=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Zt=function(ce){b.textInput.onContextMenu(ce),We()};p.addListener(T,"mouseup",Zt,b),p.addListener(T,"mousedown",function(ce){ce.preventDefault(),We()},b),p.addListener(b.renderer.scroller,"contextmenu",Zt,b),p.addListener(T,"contextmenu",Zt,b),w&&He(C,b,T);function He(ce,Se,Ie){var ze=null,qe=!1;Ie.addEventListener("keydown",function(ht){ze&&clearTimeout(ze),qe=!0},!0),Ie.addEventListener("keyup",function(ht){ze=setTimeout(function(){qe=!1},100)},!0);var ut=function(ht){if(document.activeElement===Ie&&!(qe||I||Se.$mouseHandler.isMousePressed)&&!E){var ot=Ie.selectionStart,st=Ie.selectionEnd,et=null,Pt=0;if(ot==0?et=u.up:ot==1?et=u.home:st>F&&M[st]==`
177
- `?et=u.end:ot<O&&M[ot-1]==" "?(et=u.left,Pt=m.option):ot<O||ot==O&&F!=O&&ot==st?et=u.left:st>F&&M.slice(0,st).split(`
178
- `).length>2?et=u.down:st>F&&M[st-1]==" "?(et=u.right,Pt=m.option):(st>F||st==F&&F!=O&&ot==st)&&(et=u.right),ot!==st&&(Pt|=m.shift),et){var Nn=Se.onCommandKey({},Pt,et);if(!Nn&&Se.commands){et=u.keyCodeToString(et);var ii=Se.commands.findKeyCommand(Pt,et);ii&&Se.execCommand(ii)}O=ot,F=st,Z("")}}};document.addEventListener("selectionchange",ut),Se.on("destroy",function(){document.removeEventListener("selectionchange",ut)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=$,r.$setUserAgentForTests=function(C,b){R=C,w=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("../lib/useragent"),y=0,v=550,h=function(){function c(a){a.$clickSelection=null;var l=a.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){a[u]=this[u]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return c.prototype.onMouseDown=function(a){var l=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var u=this.editor,m=a.getButton();if(m!==0){var w=u.getSelectionRange(),A=w.isEmpty();(A||m==1)&&u.selection.moveToPosition(o),m==2&&(u.textInput.onContextMenu(a.domEvent),p.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(o,a.domEvent._clicks>1),a.preventDefault()},c.prototype.startSelect=function(a,l){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):l||o.selection.moveToPosition(a),l||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},c.prototype.select=function(){var a,l=this.editor,o=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)a=this.$clickSelection.end;else if(u==1)a=this.$clickSelection.start;else{var m=s(this.$clickSelection,o);o=m.cursor,a=m.anchor}l.selection.setSelectionAnchor(a.row,a.column)}l.selection.selectToPosition(o),l.renderer.scrollCursorIntoView()},c.prototype.extendSelectionBy=function(a){var l,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),m=o.selection[a](u.row,u.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(m.start),A=this.$clickSelection.comparePoint(m.end);if(w==-1&&A<=0)l=this.$clickSelection.end,(m.end.row!=u.row||m.end.column!=u.column)&&(u=m.start);else if(A==1&&w>=0)l=this.$clickSelection.start,(m.start.row!=u.row||m.start.column!=u.column)&&(u=m.end);else if(w==-1&&A==1)u=m.end,l=m.start;else{var R=s(this.$clickSelection,u);u=R.cursor,l=R.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var a=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(a>y||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(a){var l=a.getDocumentPosition(),o=this.editor,u=o.session,m=u.getBracketRange(l);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},c.prototype.onTripleClick=function(a){var l=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(a){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},c.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=a.domEvent.timeStamp,m=u-o.t,w=m?a.wheelX/m:o.vx,A=m?a.wheelY/m:o.vy;m<v&&(w=(w+o.vx)/2,A=(A+o.vy)/2);var R=Math.abs(w/A),$=!1;if(R>=1&&l.renderer.isScrollableBy(a.wheelX*a.speed,0)&&($=!0),R<=1&&l.renderer.isScrollableBy(0,a.wheelY*a.speed)&&($=!0),$)o.allowed=u;else if(u-o.allowed<v){var C=Math.abs(w)<=1.5*Math.abs(o.vx)&&Math.abs(A)<=1.5*Math.abs(o.vy);C?($=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=w,o.vy=A,$)return l.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},c}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function g(c,a,l,o){return Math.sqrt(Math.pow(l-c,2)+Math.pow(o-a,2))}function s(c,a){if(c.start.row==c.end.row)var l=2*a.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var l=a.column-4;else var l=2*a.row-c.start.row-c.end.row;return l<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(p){p.stopPropagation();var y=p.currentTarget,v=y.scrollHeight>y.clientHeight;v||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var p=this&&this.__extends||function(){var u=function(m,w){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&(A[$]=R[$])},u(m,w)};return function(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");u(m,w);function A(){this.constructor=m}m.prototype=w===null?Object.create(w):(A.prototype=w.prototype,new A)}}(),y=this&&this.__values||function(u){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&u[m],A=0;if(w)return w.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&A>=u.length&&(u=void 0),{value:u&&u[A++],done:!u}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,s="ace_tooltip",c=function(){function u(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return u.prototype.$init=function(){return this.$element=v.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(m){this.getElement().textContent=m},u.prototype.setHtml=function(m){this.getElement().innerHTML=m},u.prototype.setPosition=function(m,w){this.getElement().style.left=m+"px",this.getElement().style.top=w+"px"},u.prototype.setClassName=function(m){v.addCssClass(this.getElement(),m)},u.prototype.setTheme=function(m){this.$element.className=s+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},u.prototype.show=function(m,w,A){m!=null&&this.setText(m),w!=null&&A!=null&&this.setPosition(w,A),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),a=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},u.prototype.removePopup=function(m){var w=this.popups.indexOf(m);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},u.prototype.updatePopups=function(){var m,w,A,R;this.popups.sort(function(_,x){return x.priority-_.priority});var $=[];try{for(var C=y(this.popups),b=C.next();!b.done;b=C.next()){var T=b.value,E=!0;try{for(var L=(A=void 0,y($)),I=L.next();!I.done;I=L.next()){var N=I.value;if(this.doPopupsOverlap(N,T)){E=!1;break}}}catch(_){A={error:_}}finally{try{I&&!I.done&&(R=L.return)&&R.call(L)}finally{if(A)throw A.error}}E?$.push(T):T.hide()}}catch(_){m={error:_}}finally{try{b&&!b.done&&(w=C.return)&&w.call(C)}finally{if(m)throw m.error}}},u.prototype.doPopupsOverlap=function(m,w){var A=m.getElement().getBoundingClientRect(),R=w.getElement().getBoundingClientRect();return A.left<R.right&&A.right>R.left&&A.top<R.bottom&&A.bottom>R.top},u}(),l=new a;r.popupManager=l,r.Tooltip=c;var o=function(u){p(m,u);function m(w){w===void 0&&(w=document.body);var A=u.call(this,w)||this;A.timeout=void 0,A.lastT=0,A.idleTime=350,A.lastEvent=void 0,A.onMouseOut=A.onMouseOut.bind(A),A.onMouseMove=A.onMouseMove.bind(A),A.waitForHover=A.waitForHover.bind(A),A.hide=A.hide.bind(A);var R=A.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",A.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(A)),R.addEventListener("wheel",g),A}return m.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide),w.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide),w.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(w,A){this.lastEvent=w,this.lastT=Date.now();var R=A.$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=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(w){var A=w.editor,R=w.getDocumentPosition(),$=A.session.getLine(R.row);if(R.column==$.length){var C=A.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),b=A.session.documentToScreenPosition(R.row,R.column);if(b.column!=C.column||b.row!=C.row)return!0}return!1},m.prototype.setDataProvider=function(w){this.$gatherData=w},m.prototype.showForRange=function(w,A,R,$){var C=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=w.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(A,w.session),this.range=h.fromPoints(A.start,A.end);var T=b.textToScreenCoordinates(A.start.row,A.start.column),E=b.scroller.getBoundingClientRect();T.pageX<E.left&&(T.pageX=E.left);var L=this.getElement();L.innerHTML="",L.appendChild(R),L.style.maxHeight="",L.style.display="block";var I=L.clientHeight,N=L.clientWidth,_=window.innerHeight-T.pageY-b.lineHeight,x=!0;T.pageY-I<0&&T.pageY<_&&(x=!1),L.style.maxHeight=(x?T.pageY:_)-C+"px",L.style.top=x?"":T.pageY+b.lineHeight+"px",L.style.bottom=x?window.innerHeight-T.pageY+"px":"",L.style.left=Math.min(T.pageX,window.innerWidth-N-C)+"px"}},m.prototype.addMarker=function(w,A){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=A,this.marker=A&&A.addMarker(w,"ace_highlight-marker","text")},m.prototype.hide=function(w){!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},m}(c);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,r,f){var p=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(m[A]=w[A])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function m(){this.constructor=o}o.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}(),y=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],m=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&m>=l.length&&(l=void 0),{value:l&&l[m++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,s=e("../config").nls;e("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,m=new a(o);l.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var T=u.getRegion(b);if(T!="foldWidgets"){var E=b.getDocumentPosition().row,L=o.session.selection;if(b.getShiftKey())L.selectTo(E,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();l.$clickSelection=o.selection.getLineRange(E)}return l.setState("selectByLines"),l.captureMouse(b),b.preventDefault()}}});var w,A;function R(){var b=A.getDocumentPosition().row,T=o.session.getLength();if(b==T){var E=o.renderer.pixelToScreenCoordinates(0,A.y).row,L=A.$pos;if(E>o.session.documentToScreenRow(L.row,L.column))return $()}if(m.showTooltip(b),!!m.isOpen)if(o.on("mousewheel",$),l.$tooltipFollowsMouse)C(A);else{var I=A.getGutterRow(),N=u.$lines.get(I);if(N){var _=N.element.querySelector(".ace_gutter_annotation"),x=_.getBoundingClientRect(),k=m.getElement().style;k.left=x.right+"px",k.top=x.bottom+"px"}else C(A)}}function $(){w&&(w=clearTimeout(w)),m.isOpen&&(m.hideTooltip(),o.off("mousewheel",$))}function C(b){m.setPosition(b.x,b.y)}l.editor.setDefaultHandler("guttermousemove",function(b){var T=b.domEvent.target||b.domEvent.srcElement;if(v.hasCssClass(T,"ace_fold-widget"))return $();m.isOpen&&l.$tooltipFollowsMouse&&C(b),A=b,!w&&(w=setTimeout(function(){w=null,A&&!l.isMousePressed?R():$()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(b){A=null,!(!m.isOpen||w)&&(w=setTimeout(function(){w=null,$()},50))},o),o.on("changeSession",$),o.on("input",$)}r.GutterHandler=c;var a=function(l){p(o,l);function o(u){var m=l.call(this,u.container)||this;return m.editor=u,m.visibleTooltipRow,m}return o.prototype.setPosition=function(u,m){var w=window.innerWidth||document.documentElement.clientWidth,A=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),$=this.getHeight();u+=15,m+=15,u+R>w&&(u-=u+R-w),m+$>A&&(m-=20+$),g.prototype.setPosition.call(this,u,m)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var m,w=this.editor.renderer.$gutterLayer,A=w.$annotations[u],R;A?R={displayText:Array.from(A.displayText),type:Array.from(A.type)}:R={displayText:[],type:[]};var $=w.session.getFoldLine(u);if($&&w.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},T,E=u+1;E<=$.end.row;E++)if(w.$annotations[E])for(var L=0;L<w.$annotations[E].text.length;L++){var I=w.$annotations[E].type[L];C[I].push(w.$annotations[E].text[L]),(!T||b[I]<b[T])&&(T=I)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(C)," in folded code.");R.displayText.push(N),R.type.push(T+"_fold")}}if(R.displayText.length===0)return this.hideTooltip();for(var _={error:[],security:[],warning:[],info:[],hint:[]},x=w.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var k=v.createElement("span"),M=v.createElement("span");(m=M.classList).add.apply(m,["ace_".concat(R.type[E]),x]),M.setAttribute("aria-label","".concat(o.annotationLabels[R.type[E].replace("_fold","")].singular)),M.setAttribute("role","img"),M.appendChild(v.createTextNode(" ")),k.appendChild(M),k.appendChild(v.createTextNode(R.displayText[E])),k.appendChild(v.createElement("br")),_[R.type[E].replace("_fold","")].push(k)}var O=this.getElement();v.removeChildren(O),_.error.forEach(function(F){return O.appendChild(F)}),_.security.forEach(function(F){return O.appendChild(F)}),_.warning.forEach(function(F){return O.appendChild(F)}),_.info.forEach(function(F){return O.appendChild(F)}),_.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=u,this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},o.annotationsToSummaryString=function(u){var m,w,A=[],R=["error","security","warning","info","hint"];try{for(var $=y(R),C=$.next();!C.done;C=$.next()){var b=C.value;if(u[b].length){var T=u[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;A.push("".concat(u[b].length," ").concat(T))}}}catch(E){m={error:E}}finally{try{C&&!C.done&&(w=$.return)&&w.call($)}finally{if(m)throw m.error}}return A.join(", ")},o}(g);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),v=function(){function h(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-c},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=s.contains(c.row,c.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=v}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/event"),v=e("../lib/useragent"),h=200,g=200,s=5;function c(l){var o=l.editor,u=p.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var w=o.container,A,R,$,C,b,T,E=0,L,I,N,_,x;this.onDragStart=function(G){if(this.cancelDrag||!w.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),re.setDragImage&&re.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),re.clearData(),re.setData("Text",o.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(G){if(w.draggable=!1,I=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!L&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return R=G.clientX,$=G.clientY,A||F(),E++,G.dataTransfer.dropEffect=L=X(G),y.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return R=G.clientX,$=G.clientY,A||(F(),E++),z!==null&&(z=null),G.dataTransfer.dropEffect=L=X(G),y.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&A)return P(),L=null,y.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(I)switch(L){case"move":b.contains(T.row,T.column)?b={start:T,end:T}:b=o.moveText(b,T);break;case"copy":b=o.moveText(b,T,!0);break}else{var re=Z.getData("Text");b={start:T,end:o.session.insert(T,re)},o.focus(),L=null}return P(),y.preventDefault(G)}},y.addListener(w,"dragstart",this.onDragStart.bind(l),o),y.addListener(w,"dragend",this.onDragEnd.bind(l),o),y.addListener(w,"dragenter",this.onDragEnter.bind(l),o),y.addListener(w,"dragover",this.onDragOver.bind(l),o),y.addListener(w,"dragleave",this.onDragLeave.bind(l),o),y.addListener(w,"drop",this.onDrop.bind(l),o);function k(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!_||J||ae)o.moveCursorToPosition(G),_=re,x={x:R,y:$};else{var me=a(x.x,x.y,R,$);me>s?_=null:re-_>=g&&(o.renderer.scrollCursorIntoView(),_=null)}}function M(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ve={x:{left:R-me.left,right:me.right-R},y:{top:$-me.top,bottom:me.bottom-$}},pe=Math.min(ve.x.left,ve.x.right),Ae=Math.min(ve.y.top,ve.y.bottom),rt={row:G.row,column:G.column};pe/ae<=2&&(rt.column+=ve.x.left<ve.x.right?-3:2),Ae/J<=1&&(rt.row+=ve.y.top<ve.y.bottom?-1:1);var Dt=G.row!=rt.row,ct=G.column!=rt.column,ft=!Z||G.row!=Z.row;Dt||ct&&!ft?N?re-N>=h&&o.renderer.scrollCursorIntoView(rt):N=re:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(R,$),k(T,G),M(T,G)}function F(){b=o.selection.toOrientedRange(),A=o.session.addMarker(b,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),O(),C=setInterval(O,20),E=0,y.addListener(document,"mousemove",V)}function P(){clearInterval(C),o.session.removeMarker(A),A=null,o.selection.fromOrientedRange(b),o.isFocused()&&!I&&o.$resetCursorStyle(),b=null,T=null,E=0,N=null,_=null,y.removeListener(document,"mousemove",V)}var z=null;function V(){z==null&&(z=setTimeout(function(){z!=null&&A&&P()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=v.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":re.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var u=v.isWin?"default":"move";l.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(l){var o=this.editor.container;if(v.isIE&&this.state=="dragReady"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,u=l.inSelection(),m=l.getButton(),w=l.domEvent.detail||1;if(w===1&&m===0&&u){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var A=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in A&&(A.unselectable="on"),o.getDragDelay()){if(v.isWebKit){this.cancelDrag=!0;var R=o.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(c.prototype);function a(l,o,u,m){return Math.sqrt(Math.pow(u-l,2)+Math.pow(m-o,2))}r.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var p=e("./mouse_event").MouseEvent,y=e("../lib/event"),v=e("../lib/dom");r.addTouchListeners=function(h,g){var s="scroll",c,a,l,o,u,m,w=0,A,R=0,$=0,C=0,b,T;function E(){var k=window.navigator&&window.navigator.clipboard,M=!1,O=function(){var z=g.getCopyText(),V=g.session.getUndoManager().hasUndo();T.replaceChild(v.buildDom(M?["span",!z&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],z&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],z&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],k&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(z){return g.commands.canExecute(z,g)},P=function(z){var V=z.target.getAttribute("action");if(V=="more"||!M)return M=!M,O();V=="paste"?k.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(k?k.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),T.firstChild.style.display="none",M=!1,V!="openCommandPalette"&&g.focus()};T=v.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(z){s="menu",z.stopPropagation(),z.preventDefault(),g.textInput.focus()},ontouchend:function(z){z.stopPropagation(),z.preventDefault(),P(z)},onclick:P},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function L(){if(!g.getOption("enableMobileMenu")){T&&I();return}T||E();var k=g.selection.cursor,M=g.renderer.textToScreenCoordinates(k.row,k.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,P=g.container.getBoundingClientRect();T.style.top=M.pageY-P.top-3+"px",M.pageX-P.left<P.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-P.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",I)}function I(k){T&&(T.style.display="none"),g.off("input",I)}function N(){u=null,clearTimeout(u);var k=g.selection.getRange(),M=k.contains(A.row,A.column);(k.isEmpty()||!M)&&(g.selection.moveToPosition(A),g.selection.selectWord()),s="wait",L()}function _(){u=null,clearTimeout(u),g.selection.moveToPosition(A);var k=R>=2?g.selection.getLineRange(A.row):g.session.getBracketRange(A);k&&!k.isEmpty()?g.selection.setRange(k):g.selection.selectWord(),s="wait"}y.addListener(h,"contextmenu",function(k){if(b){var M=g.textInput.getElement();M.focus()}},g),y.addListener(h,"touchstart",function(k){var M=k.touches;if(u||M.length>1){clearTimeout(u),u=null,l=-1,s="zoom";return}b=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,P=k.timeStamp;o=P;var z=M[0],V=z.clientX,q=z.clientY;Math.abs(c-V)+Math.abs(a-q)>O&&(l=-1),c=k.clientX=V,a=k.clientY=q,$=C=0;var X=new p(k,g);if(A=X.getDocumentPosition(),P-l<500&&M.length==1&&!w)R++,k.preventDefault(),k.button=0,_();else{R=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,re=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,ve=g.renderer.scrollLeft,pe=function(Dt,ct){return Dt=Dt/F,ct=ct/O-.75,Dt*Dt+ct*ct};if(k.clientX<ae.left){s="zoom";return}var Ae=pe(k.clientX-ae.left-re.left+ve,k.clientY-ae.top-re.top+me),rt=pe(k.clientX-ae.left-J.left+ve,k.clientY-ae.top-J.top+me);Ae<3.5&&rt<3.5&&(s=Ae>rt?"cursor":"anchor"),rt<3.5?s="anchor":Ae<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}l=P},g),y.addListener(h,"touchend",function(k){b=g.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",w=0):u?(g.selection.moveToPosition(A),w=0,L()):s=="scroll"?(x(),I()):L(),clearTimeout(u),u=null},g),y.addListener(h,"touchmove",function(k){u&&(clearTimeout(u),u=null);var M=k.touches;if(!(M.length>1||s=="zoom")){var O=M[0],F=c-O.clientX,P=a-O.clientY;if(s=="wait")if(F*F+P*P>4)s="cursor";else return k.preventDefault();c=O.clientX,a=O.clientY,k.clientX=O.clientX,k.clientY=O.clientY;var z=k.timeStamp,V=z-o;if(o=z,s=="scroll"){var q=new p(k,g);q.speed=1,q.wheelX=F,q.wheelY=P,10*Math.abs(F)<Math.abs(P)&&(F=0),10*Math.abs(P)<Math.abs(F)&&(P=0),V!=0&&($=F/V,C=P/V),g._emit("mousewheel",q),q.propagationStopped||($=C=0)}else{var X=new p(k,g),G=X.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(G):s=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),k.preventDefault()}}},g);function x(){w+=60,m=setInterval(function(){w--<=0&&(clearInterval(m),m=null),Math.abs($)<.01&&($=0),Math.abs(C)<.01&&(C=0),w<20&&($=.9*$),w<20&&(C=.9*C);var k=g.session.getScrollTop();g.renderer.scrollBy(10*$,10*C),k==g.session.getScrollTop()&&(w=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),v=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,a=e("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=u,new v(this),new h(this),new s(this);var w=function($){var C=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());C&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},A=u.renderer.getMouseEventTarget();p.addListener(A,"click",this.onMouseEvent.bind(this,"click"),u),p.addListener(A,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),p.addMultiMouseDownListener([A,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),p.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var R=u.renderer.$gutter;p.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),p.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),u),p.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),p.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),p.addListener(A,"mousedown",w,u),p.addListener(R,"mousedown",w,u),y.isIE&&u.renderer.scrollBarV&&(p.addListener(u.renderer.scrollBarV.element,"mousedown",w,u),p.addListener(u.renderer.scrollBarH.element,"mousedown",w,u)),u.on("mousemove",function($){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var C=u.renderer.screenToTextCoordinates($.x,$.y),b=u.session.selection.getRange(),T=u.renderer;!b.isEmpty()&&b.insideStart(C.row,C.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,m){this.editor.session&&this.editor._emit(u,new g(m,this.editor))},o.prototype.onMouseMove=function(u,m){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(u,new g(m,this.editor))},o.prototype.onMouseWheel=function(u,m){var w=new g(m,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=m.wheelX,w.wheelY=m.wheelY,this.editor._emit(u,w)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,m){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var w=this.editor,A=this.editor.renderer;A.$isMousePressed=!0;var R=this,$=function(L){if(L){if(y.isWebKit&&!L.which&&R.releaseMouse)return R.releaseMouse();R.x=L.clientX,R.y=L.clientY,m&&m(L),R.mouseEvent=new g(L,R.editor),R.$mouseMoved=!0}},C=function(L){w.off("beforeEndOperation",T),clearInterval(E),w.session&&b(),R[R.state+"End"]&&R[R.state+"End"](L),R.state="",R.isMousePressed=A.$isMousePressed=!1,A.$keepTextAreaAtCursor&&A.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,L&&R.onMouseEvent("mouseup",L),w.endOperation()},b=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(y.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){C(u)});var T=function(L){R.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};w.on("beforeEndOperation",T),w.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=$,R.releaseMouse=p.capture(this.editor.container,$,C);var E=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var u=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),m&&m.domEvent&&p.stopEvent(m.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,a.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function v(h){h.on("click",function(g){var s=g.getDocumentPosition(),c=h.session,a=c.getFoldAt(s.row,s.column,1);a&&(g.getAccelKey()?c.removeFold(a):c.expandFold(a),g.stop());var l=g.domEvent&&g.domEvent.target;l&&p.hasCssClass(l,"ace_inline_button")&&p.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var c=g.getDocumentPosition().row,a=h.session;a.foldWidgets&&a.foldWidgets[c]&&h.session.onFoldWidgetClick(c,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var c=g.getDocumentPosition().row,a=h.session,l=a.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var u=a.getFoldAt(c,a.getLine(c).length,1);u?a.removeFold(u):(a.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return v}();r.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var p=e("../lib/keys"),y=e("../lib/event"),v=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var c=this.$handlers.indexOf(g);c!=-1&&this.$handlers.splice(c,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),c==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(s,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,s,c,a){for(var l,o=!1,u=this.$editor.commands,m=this.$handlers.length;m--&&(l=this.$handlers[m].handleKeyboard(this.$data,g,s,c,a),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,a),o&&a&&g!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&y.stopEvent(a),o))););return!o&&g==-1&&(l={command:"insertstring"},o=u.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},h.prototype.onCommandKey=function(g,s,c){var a=p.keyCodeToString(c);return this.$callKeyboardHandlers(s,a,c,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();r.KeyBinding=v}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var p=0,y=0,v=!1,h=!1,g=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],a=0,l=1,o=0,u=1,m=2,w=3,A=4,R=5,$=6,C=7,b=8,T=9,E=10,L=11,I=12,N=13,_=14,x=15,k=16,M=17,O=18,F=[O,O,O,O,O,O,O,O,O,$,R,$,b,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,R,R,R,$,b,A,A,L,L,L,A,A,A,A,A,E,T,E,T,T,m,m,m,m,m,m,m,m,m,m,T,A,A,A,A,A,A,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,A,A,A,A,A,A,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,A,A,A,A,O,O,O,O,O,O,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,A,L,L,L,L,A,A,A,A,o,A,A,O,A,A,L,L,m,m,A,o,A,A,A,m,o,A,A,A,A,A],P=[b,b,b,b,b,b,b,b,b,b,b,O,O,O,o,u,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,b,R,N,_,x,k,M,T,L,L,L,L,L,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,T,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,b];function z(G,Z,re,J){var ae=p?c:s,me=null,ve=null,pe=null,Ae=0,rt=null,Dt=null,ct=-1,ft=null,rn=null,Rt=[];if(!J)for(ft=0,J=[];ft<re;ft++)J[ft]=X(G[ft]);for(y=p,v=!1,h=!1,g=!1,rn=0;rn<re;rn++){if(me=Ae,Rt[rn]=ve=q(G,J,Rt,rn),Ae=ae[me][ve],rt=Ae&240,Ae&=15,Z[rn]=pe=ae[Ae][5],rt>0)if(rt==16){for(ft=ct;ft<rn;ft++)Z[ft]=1;ct=-1}else ct=-1;if(Dt=ae[Ae][6],Dt)ct==-1&&(ct=rn);else if(ct>-1){for(ft=ct;ft<rn;ft++)Z[ft]=pe;ct=-1}J[rn]==R&&(Z[rn]=0),y|=pe}if(g){for(ft=0;ft<re;ft++)if(J[ft]==$){Z[ft]=p;for(var Vt=ft-1;Vt>=0&&J[Vt]==b;Vt--)Z[Vt]=p}}}function V(G,Z,re){if(!(y<G)){if(G==1&&p==l&&!h){re.reverse();return}for(var J=re.length,ae=0,me,ve,pe,Ae;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ve=ae,pe=me-1;ve<pe;ve++,pe--)Ae=re[ve],re[ve]=re[pe],re[pe]=Ae;ae=me}ae++}}}function q(G,Z,re,J){var ae=Z[J],me,ve,pe,Ae;switch(ae){case o:case u:v=!1;case A:case w:return ae;case m:return v?w:m;case C:return v=!0,u;case b:return A;case T:return J<1||J+1>=Z.length||(me=re[J-1])!=m&&me!=w||(ve=Z[J+1])!=m&&ve!=w?A:(v&&(ve=w),ve==me?ve:A);case E:return me=J>0?re[J-1]:R,me==m&&J+1<Z.length&&Z[J+1]==m?m:A;case L:if(J>0&&re[J-1]==m)return m;if(v)return A;for(Ae=J+1,pe=Z.length;Ae<pe&&Z[Ae]==L;)Ae++;return Ae<pe&&Z[Ae]==m?m:A;case I:for(pe=Z.length,Ae=J+1;Ae<pe&&Z[Ae]==I;)Ae++;if(Ae<pe){var rt=G[J],Dt=rt>=1425&&rt<=2303||rt==64286;if(me=Z[Ae],Dt&&(me==u||me==C))return u}return J<1||(me=Z[J-1])==R?A:re[J-1];case R:return v=!1,h=!0,p;case $:return g=!0,A;case N:case _:case k:case M:case x:v=!1;case O:return A}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?u:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?I:/[\u0660-\u0669\u066b-\u066c]/.test(G)?w:Z==1642?L:/[\u06f0-\u06f9]/.test(G)?m:C:re==32&&Z<=8287?P[Z&255]:re==254&&Z>=65136?C:A}r.L=o,r.R=u,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ve=[];p=re?l:a,z(J,ve,J.length,Z);for(var pe=0;pe<ae.length;ae[pe]=pe,pe++);V(2,ve,ae),V(1,ve,ae);for(var pe=0;pe<ae.length-1;pe++)Z[pe]===w?ve[pe]=r.AN:ve[pe]===u&&(Z[pe]>C&&Z[pe]<N||Z[pe]===A||Z[pe]===O)?ve[pe]=r.ON_R:pe>0&&J[pe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[pe])&&(ve[pe-1]=ve[pe]=r.R_H,pe++);J[J.length-1]===r.DOT&&(ve[J.length-1]=r.B),J[0]==="‫"&&(ve[0]=r.RLE);for(var pe=0;pe<ae.length;pe++)me[pe]=ve[ae[pe]];return{logicalFromVisual:ae,bidiLevels:me}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==u||Z[J]==C||Z[J]==w)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var p=e("./lib/bidiutil"),y=e("./lib/lang"),v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=v.test(s.getValue())}return g.prototype.isBidiRow=function(s,c,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(c,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&v.test(s.lines.join(`
179
- `))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,c=this.session.$screenRowCache;if(c.length){var a=this.session.$getRowCacheIndex(c,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},g.prototype.getSplitIndex=function(){var s=0,c=this.session.$screenRowCache;if(c.length)for(var a,l=this.session.$getRowCacheIndex(c,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(c,this.currentRow-s-1),a===l);)l=a,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,c){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,l=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(c===void 0&&(c=this.getSplitIndex()),c>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=c<o.length?this.line.substring(o[c-1],o[c]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[c]),c==o.length&&(this.line+=this.showInvisibles?l:p.DOT))}else this.line+=this.showInvisibles?l:p.DOT;var u=this.session,m=0,w;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(A,R){return A===" "||u.isFullWidth(A.charCodeAt(0))?(w=A===" "?u.getScreenTabSize(R+m):2,m+=w-1,y.stringRepeat(p.DOT,w)):A}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];p.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var c=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=c,this.charWidths[p.R]=this.charWidths[p.AN]=a,this.charWidths[p.R_H]=a*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,c){for(var a=s.getCursorPosition(),l=s.selection.getSelectionAnchor().row;l<=a.row;l++)!c&&s.session.getLine(l).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(l,0,1):c&&s.session.getLine(l).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:l},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var c=this.line.charAt(0)===this.RLE?1:0,a=s>c?this.session.getOverwrite()?s:s-1:c,l=p.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=c&&o[l]%2!==0&&l++;for(var m=0;m<l;m++)u+=this.charWidths[o[m]];return!this.session.getOverwrite()&&s>c&&o[l]%2===0&&(u+=this.charWidths[o[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},g.prototype.getSelections=function(s,c){var a=this.bidiMap,l=a.bidiLevels,o,u=[],m=0,w=Math.min(s,c)-this.wrapIndent,A=Math.max(s,c)-this.wrapIndent,R=!1,$=!1,C=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,T=0;T<l.length;T++)b=a.logicalFromVisual[T],o=l[T],R=b>=w&&b<A,R&&!$?C=m:!R&&$&&u.push({left:C,width:m-C}),m+=this.charWidths[o],$=R;if(R&&T===l.length&&u.push({left:C,width:m-C}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},g.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var c=0,a=Math.max(a,0),l=0,o=0,u=this.bidiMap.bidiLevels,m=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>l+m/2;){if(l+=m,o===u.length-1){m=0;break}m=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(a<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?c=1+(a>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&m===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&m!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},g}();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/lang"),v=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=function(){function s(c){this.session=c,this.doc=c.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(l){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(c,a){this.$isEmpty=!1,this.anchor.setPosition(c,a)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var c=this.anchor,a=this.lead;return c.row>a.row||c.row==a.row&&c.column>a.column},s.prototype.getRange=function(){var c=this.anchor,a=this.lead;return this.$isEmpty?h.fromPoints(a,a):this.isBackwards()?h.fromPoints(a,c):h.fromPoints(c,a)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(c,a){var l=a?c.end:c.start,o=a?c.start:c.end;this.$setSelection(l.row,l.column,o.row,o.column)},s.prototype.$setSelection=function(c,a,l,o){if(!this.$silent){var u=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,a),this.cursor.setPosition(l,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||m)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(c){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),c.call(this)},s.prototype.selectTo=function(c,a){this.$moveSelection(function(){this.moveCursorTo(c,a)})},s.prototype.selectToPosition=function(c){this.$moveSelection(function(){this.moveCursorToPosition(c)})},s.prototype.moveTo=function(c,a){this.clearSelection(),this.moveCursorTo(c,a)},s.prototype.moveToPosition=function(c){this.clearSelection(),this.moveCursorToPosition(c)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(c,a){if(typeof a>"u"){var l=c||this.lead;c=l.row,a=l.column}return this.session.getWordRange(c,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var c=this.getCursor(),a=this.session.getAWordRange(c.row,c.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(c,a){var l=typeof c=="number"?c:this.lead.row,o,u=this.session.getFoldLine(l);return u?(l=u.start.row,o=u.end.row):o=l,a===!0?new h(l,0,o,this.session.getLine(o).length):new h(l,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(c,a,l){var o=c.column,u=c.column+a;return l<0&&(o=c.column-a,u=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,u).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var c=this.lead.getPosition(),a;if(a=this.session.getFoldAt(c.row,c.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(c.column===0)c.row>0&&this.moveCursorTo(c.row-1,this.doc.getLine(c.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(c,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var c=this.lead.getPosition(),a;if(a=this.session.getFoldAt(c.row,c.column,1))this.moveCursorTo(a.end.row,a.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var l=this.session.getTabSize(),c=this.lead;this.wouldMoveIntoSoftTab(c,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var c=this.lead.row,a=this.lead.column,l=this.session.documentToScreenRow(c,a),o=this.session.screenToDocumentPosition(l,0),u=this.session.getDisplayLine(c,null,o.row,o.column),m=u.match(/^\s*/);m[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=m[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var c=this.lead,a=this.session.getDocumentLastRowColumnPosition(c.row,c.column);if(this.lead.column==a.column){var l=this.session.getLine(a.row);if(a.column==l.length){var o=l.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var c=this.doc.getLength()-1,a=this.doc.getLine(c).length;this.moveCursorTo(c,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var c=this.lead.row,a=this.lead.column,l=this.doc.getLine(c),o=l.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(c,a,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=l.substring(a)),a>=l.length){this.moveCursorTo(c,l.length),this.moveCursorRight(),c<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,a)},s.prototype.moveCursorLongWordLeft=function(){var c=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(c,a,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var o=this.session.getFoldStringAt(c,a,-1);o==null&&(o=this.doc.getLine(c).substring(0,a));var u=y.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(a-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(c,0),this.moveCursorLeft(),c>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,a)},s.prototype.$shortWordEndIndex=function(c){var a=0,l,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(c))a=this.session.tokenRe.lastIndex;else{for(;(l=c[a])&&o.test(l);)a++;if(a<1){for(u.lastIndex=0;(l=c[a])&&!u.test(l);)if(u.lastIndex=0,a++,o.test(l))if(a>2){a--;break}else{for(;(l=c[a])&&o.test(l);)a++;if(a>2)break}}}return u.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var c=this.lead.row,a=this.lead.column,l=this.doc.getLine(c),o=l.substring(a),u=this.session.getFoldAt(c,a,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(a==l.length){var m=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<m&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var w=this.$shortWordEndIndex(o);this.moveCursorTo(c,a+w)},s.prototype.moveCursorShortWordLeft=function(){var c=this.lead.row,a=this.lead.column,l;if(l=this.session.getFoldAt(c,a,-1))return this.moveCursorTo(l.start.row,l.start.column);var o=this.session.getLine(c).substring(0,a);if(a===0){do c--,o=this.doc.getLine(c);while(c>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var u=y.stringReverse(o),m=this.$shortWordEndIndex(u);return this.moveCursorTo(c,a-m)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(c,a){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(c!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),c!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];c<0?c-=u.rowsAbove||0:c>0&&(c+=u.rowCount-(u.rowsAbove||0))}var m=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&a===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+a,a===0)},s.prototype.moveCursorToPosition=function(c){this.moveCursorTo(c.row,c.column)},s.prototype.moveCursorTo=function(c,a,l){var o=this.session.getFoldAt(c,a,1);o&&(c=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(u.charAt(a))&&u.charAt(a-1)&&(this.lead.row==c&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(c,a),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(c,a,l){var o=this.session.screenToDocumentPosition(c,a);this.moveCursorTo(o.row,o.column,l)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(c){this.setSelectionRange(c,c.cursor==c.start),this.$desiredColumn=c.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(c){var a=this.getRange();return c?(c.start.column=a.start.column,c.start.row=a.start.row,c.end.column=a.end.column,c.end.row=a.end.row):c=a,c.cursor=this.isBackwards()?c.start:c.end,c.desiredColumn=this.$desiredColumn,c},s.prototype.getRangeOfMovements=function(c){var a=this.getCursor();try{c(this);var l=this.getCursor();return h.fromPoints(a,l)}catch{return h.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var c=this.ranges.map(function(a){var l=a.clone();return l.isBackwards=a.cursor==a.start,l});else{var c=this.getRange();c.isBackwards=this.isBackwards()}return c},s.prototype.fromJSON=function(c){if(c.start==null)if(this.rangeList&&c.length>1){this.toSingleRange(c[0]);for(var a=c.length;a--;){var l=h.fromPoints(c[a].start,c[a].end);c[a].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else c=c[0];this.rangeList&&this.toSingleRange(c),this.setSelectionRange(c,c.isBackwards)},s.prototype.isEqual=function(c){if((c.length||this.rangeCount)&&c.length!=this.rangeCount)return!1;if(!c.length||!this.ranges)return this.getRange().isEqual(c);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(c[a]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,p.implement(g.prototype,v),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,f){var p=e("./lib/report_error").reportError,y=2e3,v=function(){function h(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var c=this.states[s],a=[],l=0,o=this.matchMappings[s]={defaultToken:"text"},u="g",m=[],w=0;w<c.length;w++){var A=c[w];if(A.defaultToken&&(o.defaultToken=A.defaultToken),A.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),A.unicode&&u.indexOf("u")===-1&&(u+="u"),A.regex!=null){A.regex instanceof RegExp&&(A.regex=A.regex.toString().slice(1,-1));var R=A.regex,$=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(A.token)?A.token.length==1||$==1?A.token=A.token[0]:$-1!=A.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:A,groupCount:$-1}),A.token=A.token[0]):(A.tokenArray=A.token,A.token=null,A.onMatch=this.$arrayTokens):typeof A.token=="function"&&!A.onMatch&&($>1?A.onMatch=this.$applyToken:A.onMatch=A.token),$>1&&(/\\\d/.test(A.regex)?R=A.regex.replace(/\\([0-9]+)/g,function(C,b){return"\\"+(parseInt(b,10)+l+1)}):($=1,R=this.removeCapturingGroups(A.regex)),!A.splitRegex&&typeof A.token!="string"&&m.push(A)),o[l]=w,l+=$,a.push(R),A.onMatch||(A.onMatch=null)}}a.length||(o[0]=0,a.push("$")),m.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(g){y=g|0},h.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),c=this.token.apply(this,s);if(typeof c=="string")return[{type:c,value:g}];for(var a=[],l=0,o=c.length;l<o;l++)s[l]&&(a[a.length]={type:c[l],value:s[l]});return a},h.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var c=[],a=this.tokenArray,l=0,o=a.length;l<o;l++)s[l+1]&&(c[c.length]={type:a[l],value:s[l+1]});return c},h.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,a){return a?"(?:":c});return s},h.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var c=0,a=!1,l={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,m,w,A,R){return a?a=A!="]":A?a=!0:w?(c==l.stack&&(l.end=R+1,l.stack=-1),c--):m&&(c++,m.length!=1&&(l.stack=c,l.start=R)),o}),l.end!=null&&/^\)*$/.test(g.substr(l.end))&&(g=g.substring(0,l.start)+g.substr(l.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},h.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var c=s.slice(0);s=c[0],s==="#tmp"&&(c.shift(),s=c.shift())}else var c=[];var a=s||"start",l=this.states[a];l||(a="start",l=this.states[a]);var o=this.matchMappings[a],u=this.regExps[a];u.lastIndex=0;for(var m,w=[],A=0,R=0,$={type:null,value:""};m=u.exec(g);){var C=o.defaultToken,b=null,T=m[0],E=u.lastIndex;if(E-T.length>A){var L=g.substring(A,E-T.length);$.type==C?$.value+=L:($.type&&w.push($),$={type:C,value:L})}for(var I=0;I<m.length-2;I++)if(m[I+1]!==void 0){b=l[o[I]],b.onMatch?C=b.onMatch(T,a,c,g):C=b.token,b.next&&(typeof b.next=="string"?a=b.next:a=b.next(a,c),l=this.states[a],l||(this.reportError("state doesn't exist",a),a="start",l=this.states[a]),o=this.matchMappings[a],A=E,u=this.regExps[a],u.lastIndex=E),b.consumeLineEnd&&(A=E);break}if(T){if(typeof C=="string")(!b||b.merge!==!1)&&$.type===C?$.value+=T:($.type&&w.push($),$={type:C,value:T});else if(C){$.type&&w.push($),$={type:null,value:""};for(var I=0;I<C.length;I++)w.push(C[I])}}if(A==g.length)break;if(A=E,R++>y){for(R>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});A<g.length;)$.type&&w.push($),$={value:g.substring(A,A+=500),type:"overflow"};a="start",c=[];break}}return $.type&&w.push($),c.length>1&&c[0]!==a&&c.unshift("#tmp",a),{tokens:w,state:c.length?c:a}},h}();v.prototype.reportError=p,r.Tokenizer=v}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){var p=e("../lib/deep_copy").deepCopy,y;y=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var c in g)this.$rules[c]=g[c];return}for(var c in g){for(var a=g[c],l=0;l<a.length;l++){var o=a[l];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+c]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,c,a,l){var o=typeof g=="function"?new g().getRules():g;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var m in o)a.push(s+m)}if(this.addRules(o,s),c)for(var w=Array.prototype[l?"push":"unshift"],u=0;u<a.length;u++)w.apply(this.$rules[a[u]],p(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var v=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},h=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function c(a){var l=s[a];l.processed=!0;for(var o=0;o<l.length;o++){var u=l[o],m=null;Array.isArray(u)&&(m=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var w=u.next||u.push;if(w&&Array.isArray(w)){var A=u.stateName;A||(A=u.token,typeof A!="string"&&(A=A[0]||""),s[A]&&(A+=g++)),s[A]=w,u.next=A,c(A)}else w=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=v,delete u.push),u.rules)for(var R in u.rules)s[R]?s[R].push&&s[R].push.apply(s[R],u.rules[R]):s[R]=u.rules[R];var $=typeof u=="string"?u:u.include;if($&&($==="$self"&&($="start"),Array.isArray($)?m=$.map(function(b){return s[b]}):m=s[$]),m){var C=[o,1].concat(m);u.noEscape&&(C=C.filter(function(b){return!b.next})),l.splice.apply(l,C),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(c,this)},this.createKeywordMapper=function(g,s,c,a){var l=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var u=g[o],m=u.split(a||"|"),w=m.length;w--;){var A=m[w];this.$keywordList.push(A),c&&(A=A.toLowerCase()),l[A]=o}},this),g=null,c?function(o){return l[o.toLowerCase()]||s}:function(o){return l[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(y.prototype),r.TextHighlightRules=y}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,f){var p;p=function(){this.$behaviours={}},(function(){this.add=function(y,v,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[y]:this.$behaviours[y]={}}this.$behaviours[y][v]=h},this.addBehaviours=function(y){for(var v in y)for(var h in y[v])this.add(v,h,y[v][h])},this.remove=function(y){this.$behaviours&&this.$behaviours[y]&&delete this.$behaviours[y]},this.inherit=function(y,v){if(typeof y=="function")var h=new y().getBehaviours(v);else var h=y.getBehaviours(v);this.addBehaviours(h)},this.getBehaviours=function(y){if(y){for(var v={},h=0;h<y.length;h++)this.$behaviours[y[h]]&&(v[y[h]]=this.$behaviours[y[h]]);return v}else return this.$behaviours}}).call(p.prototype),r.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,f){var p=e("./range").Range,y=function(){function v(h,g,s){this.$session=h,this.$row=g,this.$rowTokens=h.getTokens(g);var c=h.getTokenAt(g,s);this.$tokenIndex=c?c.index:-1}return v.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},v.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentTokenRow=function(){return this.$row},v.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,g=this.$tokenIndex,s=h[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=h[g].value.length;return s},v.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},v.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new p(this.$row,g,this.$row,g+h.value.length)},v}();r.TokenIterator=y}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,f){var p=e("../../lib/oop"),y=e("../behaviour").Behaviour,v=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,a={},l={'"':'"',"'":"'"},o=function(w){var A=-1;if(w.multiSelect&&(A=w.selection.index,a.rangeCount!=w.multiSelect.rangeCount&&(a={rangeCount:w.multiSelect.rangeCount})),a[A])return c=a[A];c=a[A]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(w,A,R,$){var C=w.end.row-w.start.row;return{text:R+A+$,selection:[0,w.start.column+1,C,w.end.column+(C?0:1)]}},m;m=function(w){w=w||{},this.add("braces","insertion",function(A,R,$,C,b){var T=$.getCursorPosition(),E=C.doc.getLine(T.row);if(b=="{"){o($);var L=$.getSelectionRange(),I=C.doc.getTextRange(L),N=C.getTokenAt(T.row,T.column);if(I!==""&&I!=="{"&&$.getWrapBehavioursEnabled())return u(L,I,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var _=[/tag\-(?:open|name)/,/attribute\-name/];return _.some(function(z){return z.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(m.recordAutoInsert($,C,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion($,C))return/[\]\}\)]/.test(E[T.column])||$.inMultiSelectMode||w.braces?(m.recordAutoInsert($,C,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert($,C,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){o($);var x=E.substring(T.column,T.column+1);if(x=="}"){var k=C.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(k!==null&&m.isAutoInsertedClosing(T,E,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
180
- `||b==`\r
181
- `){o($);var M="";m.isMaybeInsertedClosing(T,E)&&(M=h.stringRepeat("}",c.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var x=E.substring(T.column,T.column+1);if(x==="}"){var O=C.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(C.getLine(O.row))}else if(M)var F=this.$getIndent(E);else{m.clearMaybeInsertedClosing();return}var P=F+C.getTabString();return{text:`
182
- `+P+`
183
- `+F+M,selection:[1,P.length,1,P.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(A,R,$,C,b){var T=C.doc.getTextRange(b);if(!b.isMultiLine()&&T=="{"){o($);var E=C.doc.getLine(b.start.row),L=E.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(A,R,$,C,b){if(b=="("){o($);var T=$.getSelectionRange(),E=C.doc.getTextRange(T);if(E!==""&&$.getWrapBehavioursEnabled())return u(T,E,"(",")");if(m.isSaneInsertion($,C))return m.recordAutoInsert($,C,")"),{text:"()",selection:[1,1]}}else if(b==")"){o($);var L=$.getCursorPosition(),I=C.doc.getLine(L.row),N=I.substring(L.column,L.column+1);if(N==")"){var _=C.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(_!==null&&m.isAutoInsertedClosing(L,I,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(A,R,$,C,b){var T=C.doc.getTextRange(b);if(!b.isMultiLine()&&T=="("){o($);var E=C.doc.getLine(b.start.row),L=E.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(A,R,$,C,b){if(b=="["){o($);var T=$.getSelectionRange(),E=C.doc.getTextRange(T);if(E!==""&&$.getWrapBehavioursEnabled())return u(T,E,"[","]");if(m.isSaneInsertion($,C))return m.recordAutoInsert($,C,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){o($);var L=$.getCursorPosition(),I=C.doc.getLine(L.row),N=I.substring(L.column,L.column+1);if(N=="]"){var _=C.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(_!==null&&m.isAutoInsertedClosing(L,I,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(A,R,$,C,b){var T=C.doc.getTextRange(b);if(!b.isMultiLine()&&T=="["){o($);var E=C.doc.getLine(b.start.row),L=E.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(A,R,$,C,b){var T=C.$mode.$quotes||l;if(b.length==1&&T[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;o($);var E=b,L=$.getSelectionRange(),I=C.doc.getTextRange(L);if(I!==""&&(I.length!=1||!T[I])&&$.getWrapBehavioursEnabled())return u(L,I,E,E);if(!I){var N=$.getCursorPosition(),_=C.doc.getLine(N.row),x=_.substring(N.column-1,N.column),k=_.substring(N.column,N.column+1),M=C.getTokenAt(N.row,N.column),O=C.getTokenAt(N.row,N.column+1);if(x=="\\"&&M&&/escape/.test(M.type))return null;var F=M&&/string|escape/.test(M.type),P=!O||/string|escape/.test(O.type),z;if(k==E)z=F!==P,z&&/string\.end/.test(O.type)&&(z=!1);else{if(F&&!P||F&&P)return null;var V=C.$mode.tokenRe;V.lastIndex=0;var q=V.test(x);V.lastIndex=0;var X=V.test(k),G=C.$mode.$pairQuotesAfter,Z=G&&G[E]&&G[E].test(x);if(!Z&&q||X||k&&!/[\s;,.})\]\\]/.test(k))return null;var re=_[N.column-2];if(x==E&&(re==E||V.test(re)))return null;z=!0}return{text:z?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(A,R,$,C,b){var T=C.$mode.$quotes||l,E=C.doc.getTextRange(b);if(!b.isMultiLine()&&T.hasOwnProperty(E)){o($);var L=C.doc.getLine(b.start.row),I=L.substring(b.start.column+1,b.start.column+2);if(I==E)return b.end.column++,b}}),w.closeDocComment!==!1&&this.add("doc comment end","insertion",function(A,R,$,C,b){if(A==="doc-start"&&(b===`
184
- `||b===`\r
185
- `)&&$.selection.isEmpty()){var T=$.getCursorPosition();if(T.column===0)return;for(var E=C.doc.getLine(T.row),L=C.doc.getLine(T.row+1),I=C.getTokens(T.row),N=0,_=0;_<I.length;_++){N+=I[_].value.length;var x=I[_];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(x.type))return;if(/\*\//.test(x.value)){var k=I[_+1];if(!k||!/\.doc/.test(k.type))return}}var M=T.column-(N-x.value.length),O=x.value.indexOf("*/"),F=x.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&M>F&&M<F+3||O!==-1&&F!==-1&&M>=O&&M<=F||!/\.doc/.test(x.type))return;break}}var P=this.$getIndent(E);if(/\s*\*/.test(L))return/^\s*\*/.test(E)?{text:b+P+"* ",selection:[1,2+P.length,1,2+P.length]}:{text:b+P+" * ",selection:[1,3+P.length,1,3+P.length]};if(/\/\*\*/.test(E.substring(0,T.column)))return{text:b+P+" * "+b+" "+P+"*/",selection:[1,4+P.length,1,4+P.length]}}})},m.isSaneInsertion=function(w,A){var R=w.getCursorPosition(),$=new v(A,R.row,R.column);if(!this.$matchTokenType($.getCurrentToken()||"text",g)){if(/[)}\]]/.test(w.session.getLine(R.row)[R.column]))return!0;var C=new v(A,R.row,R.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",g))return!1}return $.stepForward(),$.getCurrentTokenRow()!==R.row||this.$matchTokenType($.getCurrentToken()||"text",s)},m.$matchTokenType=function(w,A){return A.indexOf(w.type||w)>-1},m.recordAutoInsert=function(w,A,R){var $=w.getCursorPosition(),C=A.doc.getLine($.row);this.isAutoInsertedClosing($,C,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=$.row,c.autoInsertedLineEnd=R+C.substr($.column),c.autoInsertedBrackets++},m.recordMaybeInsert=function(w,A,R){var $=w.getCursorPosition(),C=A.doc.getLine($.row);this.isMaybeInsertedClosing($,C)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=$.row,c.maybeInsertedLineStart=C.substr(0,$.column)+R,c.maybeInsertedLineEnd=C.substr($.column),c.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(w,A,R){return c.autoInsertedBrackets>0&&w.row===c.autoInsertedRow&&R===c.autoInsertedLineEnd[0]&&A.substr(w.column)===c.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(w,A){return c.maybeInsertedBrackets>0&&w.row===c.maybeInsertedRow&&A.substr(w.column)===c.maybeInsertedLineEnd&&A.substr(0,w.column)==c.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},p.inherits(m,y),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(e,r,f){for(var p=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],y=0,v=[],h=0;h<p.length;h+=2)v.push(y+=p[h]),p[h+1]&&v.push(45,y+=p[h+1]);r.wordChars=String.fromCharCode.apply(null,v)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,r,f){var p=e("../config"),y=e("../tokenizer").Tokenizer,v=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,g=e("../unicode"),s=e("../lib/lang"),c=e("../token_iterator").TokenIterator,a=e("../range").Range,l;l=function(){this.HighlightRules=v},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new y(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,m,w){var A=u.doc,R=!0,$=!0,C=1/0,b=u.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(s.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var E=s.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),T=u.getUseSoftTabs();var I=function(z,V){var q=z.match(E);if(q){var X=q[1].length,G=q[0].length;!k(z,X,G)&&q[0][G-1]==" "&&G--,A.removeInLine(V,X,G)}},N=L+" ",_=function(z,V){(!R||/\S/.test(z))&&(k(z,C,C)?A.insertInLine({row:V,column:C},N):A.insertInLine({row:V,column:C},L))},x=function(z,V){return E.test(z)},k=function(z,V,q){for(var X=0;V--&&z.charAt(V)==" ";)X++;if(X%b!=0)return!1;for(var X=0;z.charAt(q++)==" ";)X++;return b>2?X%b!=b-1:X%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,M=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+s.escapeRegExp(L)+")"),O=new RegExp("(?:"+s.escapeRegExp(M)+")\\s*$"),_=function(Z,re){x(Z,re)||(!R||/\S/.test(Z))&&(A.insertInLine({row:re,column:Z.length},M),A.insertInLine({row:re,column:C},L))},I=function(Z,re){var J;(J=Z.match(O))&&A.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(E))&&A.removeInLine(re,J[1].length,J[0].length)},x=function(Z,re){if(E.test(Z))return!0;for(var J=u.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(z){for(var V=m;V<=w;V++)z(A.getLine(V),V)}var P=1/0;F(function(z,V){var q=z.search(/\S/);q!==-1?(q<C&&(C=q),$&&!x(z,V)&&($=!1)):P>z.length&&(P=z.length)}),C==1/0&&(C=P,R=!1,$=!1),T&&C%b!=0&&(C=Math.floor(C/b)*b),F($?I:_)},this.toggleBlockComment=function(o,u,m,w){var A=this.blockComment;if(A){!A.start&&A[0]&&(A=A[0]);var R=new c(u,w.row,w.column),$=R.getCurrentToken();u.selection;var C=u.selection.toOrientedRange(),b,T;if($&&/comment/.test($.type)){for(var E,L;$&&/comment/.test($.type);){var I=$.value.indexOf(A.start);if(I!=-1){var N=R.getCurrentTokenRow(),_=R.getCurrentTokenColumn()+I;E=new a(N,_,N,_+A.start.length);break}$=R.stepBackward()}for(var R=new c(u,w.row,w.column),$=R.getCurrentToken();$&&/comment/.test($.type);){var I=$.value.indexOf(A.end);if(I!=-1){var N=R.getCurrentTokenRow(),_=R.getCurrentTokenColumn()+I;L=new a(N,_,N,_+A.end.length);break}$=R.stepForward()}L&&u.remove(L),E&&(u.remove(E),b=E.start.row,T=-A.start.length)}else T=A.start.length,b=m.start.row,u.insert(m.end,A.end),u.insert(m.start,A.start);C.start.row==b&&(C.start.column+=T),C.end.row==b&&(C.end.column+=T),u.selection.fromOrientedRange(C)}},this.getNextLineIndent=function(o,u,m){return this.$getIndent(u)},this.checkOutdent=function(o,u,m){return!1},this.autoOutdent=function(o,u,m){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var m=o[u],w=m.prototype.$id,A=p.$modes[w];A||(p.$modes[w]=A=new m),p.$modes[u]||(p.$modes[u]=A),this.$embeds.push(u),this.$modes[u]=A}for(var R=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],$=function(T){(function(E){var L=R[T],I=E[L];E[R[T]]=function(){return this.$delegator(L,arguments,I)}})(C)},C=this,u=0;u<R.length;u++)$(u)},this.$delegator=function(o,u,m){var w=u[0]||"start";if(typeof w!="string"){if(Array.isArray(w[2])){var A=w[2][w[2].length-1],R=this.$modes[A];if(R)return R[o].apply(R,[w[1]].concat([].slice.call(u,1)))}w=w[0]||"start"}for(var $=0;$<this.$embeds.length;$++)if(this.$modes[this.$embeds[$]]){var C=w.split(this.$embeds[$]);if(!C[0]&&C[1]){u[0]=C[1];var R=this.$modes[this.$embeds[$]];return R[o].apply(R,u)}}var b=m.apply(this,u);return m?b:void 0},this.transformAction=function(o,u,m,w,A){if(this.$behaviour){var R=this.$behaviour.getBehaviours();for(var $ in R)if(R[$][u]){var C=R[$][u].apply(this,arguments);if(C)return C}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,m=[];for(var w in u)for(var A=u[w],R=0,$=A.length;R<$;R++)if(typeof A[R].token=="string")/keyword|support|storage/.test(A[R].token)&&m.push(A[R].regex);else if(typeof A[R].token=="object"){for(var C=0,b=A[R].token.length;C<b;C++)if(/keyword|support|storage/.test(A[R].token[C])){var w=A[R].regex.match(/\(.+?\)/g)[C];m.push(w.substr(1,w.length-2))}}this.completionKeywords=m}return o?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,m,w){var A=this.$keywordList||this.$createKeywordList();return A.map(function(R){return{name:R,value:R,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),r.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("./lib/dom"),y=function(){function v(h){this.session=h,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return v.prototype.getRowLength=function(h){var g;return this.lineWidgets?g=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[h]?1+g:this.$wrapData[h].length+1+g},v.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(h+=g.rowCount)}),h},v.prototype.$onChangeEditor=function(h){this.attach(h.editor)},v.prototype.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},v.prototype.detach=function(h){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(c){c&&c.el&&c.el.parentNode&&(c._inDocument=!1,c.el.parentNode.removeChild(c.el))})}},v.prototype.updateOnFold=function(h,g){var s=g.lineWidgets;if(!(!s||!h.action)){for(var c=h.data,a=c.start.row,l=c.end.row,o=h.action=="add",u=a+1;u<l;u++)s[u]&&(s[u].hidden=o);s[l]&&(o?s[a]?s[l].hidden=o:s[a]=s[l]:(s[a]==s[l]&&(s[a]=void 0),s[l].hidden=o))}},v.prototype.updateOnChange=function(h){var g=this.session.lineWidgets;if(g){var s=h.start.row,c=h.end.row-s;if(c!==0)if(h.action=="remove"){var a=g.splice(s+1,c);!g[s]&&a[a.length-1]&&(g[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);g[s]&&g[s].column!=null&&h.start.column>g[s].column&&s++,l.unshift(s,0),g.splice.apply(g,l),this.$updateRows()}}},v.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var g=!0;h.forEach(function(s,c){if(s)for(g=!1,s.row=c;s.$oldWidget;)s.$oldWidget.row=c,s=s.$oldWidget}),g&&(this.session.lineWidgets=null)}},v.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[h.row];return g&&(h.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},v.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var g=this.editor.renderer;h.html&&!h.el&&(h.el=p.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=p.createElement("div"),h.el.textContent=h.text),h.el&&(p.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&p.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",g.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/g.layerConfig.lineHeight);var s=this.session.getFoldAt(h.row,0);if(h.$fold=s,s){var c=this.session.lineWidgets;h.row==s.end.row&&!c[s.start.row]?c[s.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(h),h},v.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[h.row];if(g==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;g;){if(g.$oldWidget==h){g.$oldWidget=h.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},v.prototype.getWidgetsAtRow=function(h){for(var g=this.session.lineWidgets,s=g&&g[h],c=[];s;)c.push(s),s=s.$oldWidget;return c},v.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},v.prototype.measureWidgets=function(h,g){var s=this.session._changedWidgets,c=g.layerConfig;if(!(!s||!s.length)){for(var a=1/0,l=0;l<s.length;l++){var o=s[l];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var u=o.h/c.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},v.prototype.renderWidgets=function(h,g){var s=g.layerConfig,c=this.session.lineWidgets;if(c){for(var a=Math.min(this.firstRow,s.firstRow),l=Math.max(this.lastRow,s.lastRow,c.length);a>0&&!c[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,g.$cursorLayer.config=s;for(var o=a;o<=l;o++){var u=c[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,g.container.appendChild(u.el));var m=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(m+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=m-s.offset+"px";var w=u.coverGutter?0:g.gutterWidth;u.fixedWidth||(w-=g.scrollLeft),u.el.style.left=w+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=s.width+2*s.padding+"px"),u.fixedWidth?u.el.style.right=g.scrollBar.getWidth()+"px":u.el.style.right=""}}}},v}();r.LineWidgets=y}),ace.define("ace/apply_delta",["require","exports","module"],function(e,r,f){r.applyDelta=function(p,y,v){var h=y.start.row,g=y.start.column,s=p[h]||"";switch(y.action){case"insert":var c=y.lines;if(c.length===1)p[h]=s.substring(0,g)+y.lines[0]+s.substring(g);else{var a=[h,1].concat(y.lines);p.splice.apply(p,a),p[h]=s.substring(0,g)+p[h],p[h+y.lines.length-1]+=s.substring(g)}break;case"remove":var l=y.end.column,o=y.end.row;h===o?p[h]=s.substring(0,g)+s.substring(l):p.splice(h,o-h+1,s.substring(0,g)+p[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/event_emitter").EventEmitter,v=function(){function s(c,a,l){this.$onChange=this.onChange.bind(this),this.attach(c),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,l)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var a=g(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(c,a,l){var o;if(l?o={row:c,column:a}:o=this.$clipPositionToDocument(c,a),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(c){this.document=c||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(c,a){var l={};return c>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):c<0?(l.row=0,l.column=0):(l.row=c,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,a))),a<0&&(l.column=0),l},s}();v.prototype.$insertRight=!1,p.implement(v.prototype,y);function h(s,c,a){var l=a?s.column<=c.column:s.column<c.column;return s.row<c.row||s.row==c.row&&l}function g(s,c,a){var l=s.action=="insert",o=(l?1:-1)*(s.end.row-s.start.row),u=(l?1:-1)*(s.end.column-s.start.column),m=s.start,w=l?m:s.end;return h(c,m,a)?{row:c.row,column:c.column}:h(w,c,!a)?{row:c.row+o,column:c.column+(c.row==w.row?u:0)}:{row:m.row,column:m.column}}r.Anchor=v}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,r,f){var p=e("./lib/oop"),y=e("./apply_delta").applyDelta,v=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=e("./anchor").Anchor,s=function(){function c(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return c.prototype.setValue=function(a){var l=this.getLength()-1;this.remove(new h(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},a||"")},c.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},c.prototype.createAnchor=function(a,l){return new g(this,a,l)},c.prototype.$detectNewLine=function(a){var l=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
186
- `,this._signal("changeNewLineMode")},c.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
187
- `;case"unix":return`
188
- `;default:return this.$autoNewLine||`
189
- `}},c.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},c.prototype.getNewLineMode=function(){return this.$newLineMode},c.prototype.isNewLine=function(a){return a==`\r
190
- `||a=="\r"||a==`
191
- `},c.prototype.getLine=function(a){return this.$lines[a]||""},c.prototype.getLines=function(a,l){return this.$lines.slice(a,l+1)},c.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},c.prototype.getLength=function(){return this.$lines.length},c.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},c.prototype.getLinesForRange=function(a){var l;if(a.start.row===a.end.row)l=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{l=this.getLines(a.start.row,a.end.row),l[0]=(l[0]||"").substring(a.start.column);var o=l.length-1;a.end.row-a.start.row==o&&(l[o]=l[o].substring(0,a.end.column))}return l},c.prototype.insertLines=function(a,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,l)},c.prototype.removeLines=function(a,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,l)},c.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},c.prototype.insert=function(a,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(a,this.$split(l))},c.prototype.insertInLine=function(a,l){var o=this.clippedPos(a.row,a.column),u=this.pos(a.row,a.column+l.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},c.prototype.clippedPos=function(a,l){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,l=void 0);var u=this.getLine(a);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.length),{row:a,column:l}},c.prototype.clonePos=function(a){return{row:a.row,column:a.column}},c.prototype.pos=function(a,l){return{row:a,column:l}},c.prototype.$clipPosition=function(a){var l=this.getLength();return a.row>=l?(a.row=Math.max(0,l-1),a.column=this.getLine(l-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},c.prototype.insertFullLines=function(a,l){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(l=l.concat([""]),o=0):(l=[""].concat(l),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},l)},c.prototype.insertMergedLines=function(a,l){var o=this.clippedPos(a.row,a.column),u={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:l}),this.clonePos(u)},c.prototype.remove=function(a){var l=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:l,end:o,action:"remove",lines:this.getLinesForRange({start:l,end:o})}),this.clonePos(l)},c.prototype.removeInLine=function(a,l,o){var u=this.clippedPos(a,l),m=this.clippedPos(a,o);return this.applyDelta({start:u,end:m,action:"remove",lines:this.getLinesForRange({start:u,end:m})},!0),this.clonePos(u)},c.prototype.removeFullLines=function(a,l){a=Math.min(Math.max(0,a),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var o=l==this.getLength()-1&&a>0,u=l<this.getLength()-1,m=o?a-1:a,w=o?this.getLine(m).length:0,A=u?l+1:l,R=u?0:this.getLine(A).length,$=new h(m,w,A,R),C=this.$lines.slice(a,l+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),C},c.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(a,l){if(a instanceof h||(a=h.fromPoints(a.start,a.end)),l.length===0&&a.isEmpty())return a.start;if(l==this.getTextRange(a))return a.end;this.remove(a);var o;return l?o=this.insert(a.start,l):o=a.start,o},c.prototype.applyDeltas=function(a){for(var l=0;l<a.length;l++)this.applyDelta(a[l])},c.prototype.revertDeltas=function(a){for(var l=a.length-1;l>=0;l--)this.revertDelta(a[l])},c.prototype.applyDelta=function(a,l){var o=a.action=="insert";(o?a.lines.length<=1&&!a.lines[0]:!h.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(y(this.$lines,a,l),this._signal("change",a)))},c.prototype.$safeApplyDelta=function(a){var l=this.$lines.length;(a.action=="remove"&&a.start.row<l&&a.end.row<l||a.action=="insert"&&a.start.row<=l)&&this.applyDelta(a)},c.prototype.$splitAndapplyLargeDelta=function(a,l){for(var o=a.lines,u=o.length-l+1,m=a.start.row,w=a.start.column,A=0,R=0;A<u;A=R){R+=l-1;var $=o.slice(A,R);$.push(""),this.applyDelta({start:this.pos(m+A,w),end:this.pos(m+R,w=0),action:a.action,lines:$},!0)}a.lines=o.slice(A),a.start.row=m+A,a.start.column=w,this.applyDelta(a,!0)},c.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},c.prototype.indexToPosition=function(a,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,m=l||0,w=o.length;m<w;m++)if(a-=o[m].length+u,a<0)return{row:m,column:a+o[m].length+u};return{row:w-1,column:a+o[w-1].length+u}},c.prototype.positionToIndex=function(a,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,m=0,w=Math.min(a.row,o.length),A=l||0;A<w;++A)m+=o[A].length+u;return m+a.column},c.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},c}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",p.implement(s.prototype,v),r.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/event_emitter").EventEmitter,v=function(){function h(g,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var c=this;this.$worker=function(){if(c.running){for(var a=new Date,l=c.currentLine,o=-1,u=c.doc,m=l;c.lines[l];)l++;var w=u.getLength(),A=0;for(c.running=!1;l<w;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(A++,A%5===0&&new Date-a>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),m<=o&&c.fireUpdateEvent(m,o)}}}return h.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(g,s){var c={first:g,last:s};this._signal("update",{data:c})},h.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(g){var s=g.start.row,c=g.end.row-s;if(c===0)this.lines[s]=null;else if(g.action=="remove")this.lines.splice(s,c+1,null),this.states.splice(s,c+1,null);else{var a=Array(c+1);a.unshift(s,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},h.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},h.prototype.$tokenizeRow=function(g){var s=this.doc.getLine(g),c=this.states[g-1],a=this.tokenizer.getLineTokens(s,c,g);return this.states[g]+""!=a.state+""?(this.states[g]=a.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=a.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();p.implement(v.prototype,y),r.BackgroundTokenizer=v}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,r,f){var p=e("./lib/lang"),y=e("./range").Range,v=function(){function h(g,s,c){c===void 0&&(c="text"),this.setRegexp(g),this.clazz=s,this.type=c}return h.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},h.prototype.update=function(g,s,c,a){if(this.regExp)for(var l=a.firstRow,o=a.lastRow,u={},m=l;m<=o;m++){var w=this.cache[m];w==null&&(w=p.getMatchOffsets(c.getLine(m),this.regExp),w.length>this.MAX_RANGES&&(w=w.slice(0,this.MAX_RANGES)),w=w.map(function(C){return new y(m,C.offset,m,C.offset+C.length)}),this.cache[m]=w.length?w:"");for(var A=w.length;A--;){var R=w[A].toScreenRange(c),$=R.toString();u[$]||(u[$]=!0,s.drawSingleLineMarker(g,R,this.clazz,a))}}},h}();v.prototype.MAX_RANGES=500,r.SearchHighlight=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,r,f){var p=function(){function C(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function(b){this.$session=b},C.prototype.add=function(b,T,E){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},C.prototype.addSelection=function(b,T){this.selections.push({value:b,rev:T||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function(b,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,L=E.length;L--;){var I=E[L][0];if(I.id<=b)break;I.id<T&&(I.ignore=!0)}this.lastDeltas=null},C.prototype.getSelection=function(b,T){for(var E=this.selections,L=E.length;L--;){var I=E[L];if(I.rev<b)return T&&(I=E[L+1]),I}},C.prototype.getRevision=function(){return this.$rev},C.prototype.getDeltas=function(b,T){T==null&&(T=this.$rev+1);for(var E=this.$undoStack,L=null,I=0,N=E.length;N--;){var _=E[N][0];if(_.id<T&&!L&&(L=N+1),_.id<=b){I=N+1;break}}return E.slice(I,L)},C.prototype.getChangedRanges=function(b,T){T==null&&(T=this.$rev+1)},C.prototype.getChangedLines=function(b,T){T==null&&(T=this.$rev+1)},C.prototype.undo=function(b,T){this.lastDeltas=null;var E=this.$undoStack;if(y(E,E.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=E.pop(),I=null;return L&&(I=b.undoChanges(L,T),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I}},C.prototype.redo=function(b,T){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);$(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),I=null;return L&&(I=b.redoChanges(L,T),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I},C.prototype.$syncRev=function(){var b=this.$undoStack,T=b[b.length-1],E=T&&T[0].id||0;this.$redoStackBaseRev=E,this.$rev=E},C.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},C.prototype.canUndo=function(){return this.$undoStack.length>0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},C.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},C.prototype.$prettyPrint=function(b){return b?c(b):c(this.$undoStack)+`
192
- ---
193
- `+c(this.$redoStack)},C}();p.prototype.hasUndo=p.prototype.canUndo,p.prototype.hasRedo=p.prototype.canRedo,p.prototype.isClean=p.prototype.isAtBookmark,p.prototype.markClean=p.prototype.bookmark;function y(C,b){for(var T=b;T--;){var E=C[T];if(E&&!E[0].ignore){for(;T<b-1;){var L=o(C[T],C[T+1]);C[T]=L[0],C[T+1]=L[1],T++}return!0}}}var v=e("./range").Range,h=v.comparePoints;v.comparePoints;function g(C){return{row:C.row,column:C.column}}function s(C){return{start:g(C.start),end:g(C.end),action:C.action,lines:C.lines.slice()}}function c(C){if(C=C||this,Array.isArray(C))return C.map(c).join(`
194
- `);var b="";return C.action?(b=C.action=="insert"?"+":"-",b+="["+C.lines+"]"):C.value&&(Array.isArray(C.value)?b=C.value.map(a).join(`
195
- `):b=a(C.value)),C.start&&(b+=a(C)),(C.id||C.rev)&&(b+=" ("+(C.id||C.rev)+")"),b}function a(C){return C.start.row+":"+C.start.column+"=>"+C.end.row+":"+C.end.column}function l(C,b){var T=C.action=="insert",E=b.action=="insert";if(T&&E)if(h(b.start,C.end)>=0)m(b,C,-1);else if(h(b.start,C.start)<=0)m(C,b,1);else return null;else if(T&&!E)if(h(b.start,C.end)>=0)m(b,C,-1);else if(h(b.end,C.start)<=0)m(C,b,-1);else return null;else if(!T&&E)if(h(b.start,C.start)>=0)m(b,C,1);else if(h(b.start,C.start)<=0)m(C,b,1);else return null;else if(!T&&!E)if(h(b.start,C.start)>=0)m(b,C,1);else if(h(b.end,C.start)<=0)m(C,b,-1);else return null;return[b,C]}function o(C,b){for(var T=C.length;T--;)for(var E=0;E<b.length;E++)if(!l(C[T],b[E])){for(;T<C.length;){for(;E--;)l(b[E],C[T]);E=b.length,T++}return[C,b]}return C.selectionBefore=b.selectionBefore=C.selectionAfter=b.selectionAfter=null,[b,C]}function u(C,b){var T=C.action=="insert",E=b.action=="insert";if(T&&E)h(C.start,b.start)<0?m(b,C,1):m(C,b,1);else if(T&&!E)h(C.start,b.end)>=0?m(C,b,-1):(h(C.start,b.start)<=0||m(C,v.fromPoints(b.start,C.start),-1),m(b,C,1));else if(!T&&E)h(b.start,C.end)>=0?m(b,C,-1):(h(b.start,C.start)<=0||m(b,v.fromPoints(C.start,b.start),-1),m(C,b,1));else if(!T&&!E)if(h(b.start,C.end)>=0)m(b,C,-1);else if(h(b.end,C.start)<=0)m(C,b,-1);else{var L,I;return h(C.start,b.start)<0&&(L=C,C=A(C,b.start)),h(C.end,b.end)>0&&(I=A(C,b.end)),w(b.end,C.start,C.end,-1),I&&!L&&(C.lines=I.lines,C.start=I.start,C.end=I.end,I=C),[b,L,I].filter(Boolean)}return[b,C]}function m(C,b,T){w(C.start,b.start,b.end,T),w(C.end,b.start,b.end,T)}function w(C,b,T,E){C.row==(E==1?b:T).row&&(C.column+=E*(T.column-b.column)),C.row+=E*(T.row-b.row)}function A(C,b){var T=C.lines,E=C.end;C.end=g(b);var L=C.end.row-C.start.row,I=T.splice(L,T.length),N=L?b.column:b.column-C.start.column;T.push(I[0].substring(0,N)),I[0]=I[0].substr(N);var _={start:g(b),end:E,lines:I,action:C.action};return _}function R(C,b){b=s(b);for(var T=C.length;T--;){for(var E=C[T],L=0;L<E.length;L++){var I=E[L],N=u(I,b);b=N[0],N.length!=2&&(N[2]?(E.splice(L+1,1,N[1],N[2]),L++):N[1]||(E.splice(L,1),L--))}E.length||C.splice(T,1)}return C}function $(C,b){for(var T=0;T<b.length;T++)for(var E=b[T],L=0;L<E.length;L++)R(C,E[L])}r.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){function v(h,g){this.foldData=h,Array.isArray(g)?this.folds=g:g=this.folds=[g];var s=g[g.length-1];this.range=new p(g[0].start.row,g[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(c){c.setFoldLine(this)},this)}return v.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(g){g.start.row+=h,g.end.row+=h})},v.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(g,s){return-g.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(h.start.row,h.start.column)>0?(this.end.row=h.end.row,this.end.column=h.end.column):this.range.compareStart(h.end.row,h.end.column)<0&&(this.start.row=h.start.row,this.start.column=h.start.column)}else if(h.start.row==this.end.row)this.folds.push(h),this.end.row=h.end.row,this.end.column=h.end.column;else if(h.end.row==this.start.row)this.folds.unshift(h),this.start.row=h.start.row,this.start.column=h.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");h.foldLine=this},v.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},v.prototype.walk=function(h,g,s){var c=0,a=this.folds,l,o,u,m=!0;g==null&&(g=this.end.row,s=this.end.column);for(var w=0;w<a.length;w++){if(l=a[w],o=l.range.compareStart(g,s),o==-1){h(null,g,s,c,m);return}if(u=h(null,l.start.row,l.start.column,c,m),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;m=!l.sameRow,c=l.end.column}h(null,g,s,c,m)},v.prototype.getNextFoldTo=function(h,g){for(var s,c,a=0;a<this.folds.length;a++){if(s=this.folds[a],c=s.range.compareEnd(h,g),c==-1)return{fold:s,kind:"after"};if(c===0)return{fold:s,kind:"inside"}}return null},v.prototype.addRemoveChars=function(h,g,s){var c=this.getNextFoldTo(h,g),a,l;if(c){if(a=c.fold,c.kind=="inside"&&a.start.column!=g&&a.start.row!=h)window.console&&window.console.log(h,g,a);else if(a.start.row==h){l=this.folds;var o=l.indexOf(a);for(o===0&&(this.start.column+=s),o;o<l.length;o++){if(a=l[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},v.prototype.split=function(h,g){var s=this.getNextFoldTo(h,g);if(!s||s.kind=="inside")return null;var c=s.fold,a=this.folds,l=this.foldData,o=a.indexOf(c),u=a[o-1];this.end.row=u.end.row,this.end.column=u.end.column,a=a.splice(o,a.length-o);var m=new v(l,a);return l.splice(l.indexOf(this)+1,0,m),m},v.prototype.merge=function(h){for(var g=h.folds,s=0;s<g.length;s++)this.addFold(g[s]);var c=this.foldData;c.splice(c.indexOf(h),1)},v.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(g){h.push(" "+g.toString())}),h.push("]"),h.join(`
196
- `)},v.prototype.idxToPosition=function(h){for(var g=0,s=0;s<this.folds.length;s++){var c=this.folds[s];if(h-=c.start.column-g,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;g=c.end.column}return{row:this.end.row,column:this.end.column+h}},v}();r.FoldLine=y}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,r,f){var p=e("./range").Range,y=p.comparePoints,v=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(g,s,c){for(var a=this.ranges,l=c||0;l<a.length;l++){var o=a[l],u=y(g,o.end);if(!(u>0)){var m=y(g,o.start);return u===0?s&&m!==0?-l-2:l:m>0||m===0&&!s?l:-l-1}}return-l-1},h.prototype.add=function(g){var s=!g.isEmpty(),c=this.pointIndex(g.start,s);c<0&&(c=-c-1);var a=this.pointIndex(g.end,s,c);return a<0?a=-a-1:a++,this.ranges.splice(c,a-c,g)},h.prototype.addList=function(g){for(var s=[],c=g.length;c--;)s.push.apply(s,this.add(g[c]));return s},h.prototype.substractPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges.splice(s,1)},h.prototype.merge=function(){var g=[],s=this.ranges;s=s.sort(function(u,m){return y(u.start,m.start)});for(var c=s[0],a,l=1;l<s.length;l++){a=c,c=s[l];var o=y(a.end,c.start);o<0||o==0&&!a.isEmpty()&&!c.isEmpty()||(y(a.end,c.end)<0&&(a.end.row=c.end.row,a.end.column=c.end.column),s.splice(l,1),g.push(c),c=a,l--)}return this.ranges=s,g},h.prototype.contains=function(g,s){return this.pointIndex({row:g,column:s})>=0},h.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},h.prototype.rangeAtPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges[s]},h.prototype.clipRows=function(g,s){var c=this.ranges;if(c[0].start.row>s||c[c.length-1].start.row<g)return[];var a=this.pointIndex({row:g,column:0});a<0&&(a=-a-1);var l=this.pointIndex({row:s,column:0},a);l<0&&(l=-l-1);for(var o=[],u=a;u<l;u++)o.push(c[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(g){for(var s=g.start,c=g.end,a=s.row,l=c.row,o=this.ranges,u=0,m=o.length;u<m;u++){var w=o[u];if(w.end.row>=a)break}if(g.action=="insert")for(var A=l-a,R=-s.column+c.column;u<m;u++){var w=o[u];if(w.start.row>a)break;if(w.start.row==a&&w.start.column>=s.column&&(w.start.column==s.column&&this.$bias<=0||(w.start.column+=R,w.start.row+=A)),w.end.row==a&&w.end.column>=s.column){if(w.end.column==s.column&&this.$bias<0)continue;w.end.column==s.column&&R>0&&u<m-1&&w.end.column>w.start.column&&w.end.column==o[u+1].start.column&&(w.end.column-=R),w.end.column+=R,w.end.row+=A}}else for(var A=a-l,R=s.column-c.column;u<m;u++){var w=o[u];if(w.start.row>l)break;w.end.row<l&&(a<w.end.row||a==w.end.row&&s.column<w.end.column)?(w.end.row=a,w.end.column=s.column):w.end.row==l?w.end.column<=c.column?(A||w.end.column>s.column)&&(w.end.column=s.column,w.end.row=s.row):(w.end.column+=R,w.end.row+=A):w.end.row>l&&(w.end.row+=A),w.start.row<l&&(a<w.start.row||a==w.start.row&&s.column<w.start.column)?(w.start.row=a,w.start.column=s.column):w.start.row==l?w.start.column<=c.column?(A||w.start.column>s.column)&&(w.start.column=s.column,w.start.row=s.row):(w.start.column+=R,w.start.row+=A):w.start.row>l&&(w.start.row+=A)}if(A!=0&&u<m)for(;u<m;u++){var w=o[u];w.start.row+=A,w.end.row+=A}},h}();v.prototype.comparePoints=y,r.RangeList=v}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,r,f){var p=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(u[w]=m[w])},a(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=e("../range_list").RangeList,v=function(a){p(l,a);function l(o,u){var m=a.call(this)||this;return m.foldLine=null,m.placeholder=u,m.range=o,m.start=o.start,m.end=o.end,m.sameRow=o.start.row==o.end.row,m.subFolds=m.ranges=[],m}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(m){u.subFolds.push(m.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var u=o.start.row,m=o.start.column,w=0,A=-1;w<this.subFolds.length&&(A=this.subFolds[w].range.compare(u,m),A==1);w++);var R=this.subFolds[w],$=0;if(A==0){if(R.range.containsRange(o))return R.addSubFold(o);$=1}for(var u=o.range.end.row,m=o.range.end.column,C=w,A=-1;C<this.subFolds.length&&(A=this.subFolds[C].range.compare(u,m),A==1);C++);A==0&&C++;for(var b=this.subFolds.splice(w,C-w,o),T=A==0?b.length-1:b.length,E=$;E<T;E++)o.addSubFold(b[E]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(y);function h(a,l){a.row-=l.row,a.row==0&&(a.column-=l.column)}function g(a,l){h(a.start,l),h(a.end,l)}function s(a,l){a.row==0&&(a.column+=l.column),a.row+=l.row}function c(a,l){s(a.start,l),s(a.end,l)}r.Fold=v}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,r,f){var p=e("../range").Range,y=e("./fold_line").FoldLine,v=e("./fold").Fold,h=e("../token_iterator").TokenIterator,g=e("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(c,a,l){var o=this.getFoldLine(c);if(!o)return null;for(var u=o.folds,m=0;m<u.length;m++){var w=u[m].range;if(w.contains(c,a)){if(l==1&&w.isEnd(c,a)&&!w.isEmpty()||l==-1&&w.isStart(c,a)&&!w.isEmpty())continue;return u[m]}}},this.getFoldsInRange=function(c){var a=c.start,l=c.end,o=this.$foldData,u=[];a.column+=1,l.column-=1;for(var m=0;m<o.length;m++){var w=o[m].range.compareRange(c);if(w!=2){if(w==-2)break;for(var A=o[m].folds,R=0;R<A.length;R++){var $=A[R];if(w=$.range.compareRange(c),w==-2)break;if(w!=2){if(w==42)break;u.push($)}}}}return a.column-=1,l.column+=1,u},this.getFoldsInRangeList=function(c){if(Array.isArray(c)){var a=[];c.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(c);return a},this.getAllFolds=function(){for(var c=[],a=this.$foldData,l=0;l<a.length;l++)for(var o=0;o<a[l].folds.length;o++)c.push(a[l].folds[o]);return c},this.getFoldStringAt=function(c,a,l,o){if(o=o||this.getFoldLine(c),!o)return null;for(var u={end:{column:0}},m,w,A=0;A<o.folds.length;A++){w=o.folds[A];var R=w.range.compareEnd(c,a);if(R==-1){m=this.getLine(w.start.row).substring(u.end.column,w.start.column);break}else if(R===0)return null;u=w}return m||(m=this.getLine(w.start.row).substring(u.end.column)),l==-1?m.substring(0,a-u.end.column):l==1?m.substring(a-u.end.column):m},this.getFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.start.row<=c&&u.end.row>=c)return u;if(u.end.row>c)return null}return null},this.getNextFoldLine=function(c,a){var l=this.$foldData,o=0;for(a&&(o=l.indexOf(a)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.end.row>=c)return u}return null},this.getFoldedRowCount=function(c,a){for(var l=this.$foldData,o=a-c+1,u=0;u<l.length;u++){var m=l[u],w=m.end.row,A=m.start.row;if(w>=a){A<a&&(A>=c?o-=a-A:o=0);break}else w>=c&&(A>=c?o-=w-A:o-=w-c+1)}return o},this.$addFoldLine=function(c){return this.$foldData.push(c),this.$foldData.sort(function(a,l){return a.start.row-l.start.row}),c},this.addFold=function(c,a){var l=this.$foldData,o=!1,u;c instanceof v?u=c:(u=new v(a,c),u.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(u.range);var m=u.start.row,w=u.start.column,A=u.end.row,R=u.end.column,$=this.getFoldAt(m,w,1),C=this.getFoldAt(A,R,-1);if($&&C==$)return $.addSubFold(u);$&&!$.range.isStart(m,w)&&this.removeFold($),C&&!C.range.isEnd(A,R)&&this.removeFold(C);var b=this.getFoldsInRange(u.range);b.length>0&&(this.removeFolds(b),u.collapseChildren||b.forEach(function(I){u.addSubFold(I)}));for(var T=0;T<l.length;T++){var E=l[T];if(A==E.start.row){E.addFold(u),o=!0;break}else if(m==E.end.row){if(E.addFold(u),o=!0,!u.sameRow){var L=l[T+1];if(L&&L.start.row==A){E.merge(L);break}}break}else if(A<=E.start.row)break}return o||(E=this.$addFoldLine(new y(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(E.start.row,E.start.row):this.$updateRowLengthCache(E.start.row,E.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(c){c.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(c){var a=c.foldLine,l=a.start.row,o=a.end.row,u=this.$foldData,m=a.folds;if(m.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(c.end.row,c.end.column))m.pop(),a.end.row=m[m.length-1].end.row,a.end.column=m[m.length-1].end.column;else if(a.range.isStart(c.start.row,c.start.column))m.shift(),a.start.row=m[0].start.row,a.start.column=m[0].start.column;else if(c.sameRow)m.splice(m.indexOf(c),1);else{var w=a.split(c.start.row,c.start.column);m=w.folds,m.shift(),w.start.row=m[0].start.row,w.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var a=[],l=0;l<c.length;l++)a.push(c[l]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(c){this.removeFold(c),c.subFolds.forEach(function(a){c.restoreRange(a),this.addFold(a)},this),c.collapseChildren>0&&this.foldAll(c.start.row+1,c.end.row,c.collapseChildren-1),c.subFolds=[]},this.expandFolds=function(c){c.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(c,a){var l,o;if(c==null)l=new p(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof c=="number")l=new p(c,0,c,this.getLine(c).length);else if("row"in c)l=p.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(m){o=o.concat(this.unfold(m))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&p.comparePoints(o[0].start,l.start)<0&&p.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(a!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(c,a){return!!this.getFoldLine(c,a)},this.getRowFoldEnd=function(c,a){var l=this.getFoldLine(c,a);return l?l.end.row:c},this.getRowFoldStart=function(c,a){var l=this.getFoldLine(c,a);return l?l.start.row:c},this.getFoldDisplayLine=function(c,a,l,o,u){o==null&&(o=c.start.row),u==null&&(u=0),a==null&&(a=c.end.row),l==null&&(l=this.getLine(a).length);var m=this.doc,w="";return c.walk(function(A,R,$,C){if(!(R<o)){if(R==o){if($<u)return;C=Math.max(u,C)}A!=null?w+=A:w+=m.getLine(R).substring(C,$)}},a,l),w},this.getDisplayLine=function(c,a,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,a,l,o);var m;return m=this.doc.getLine(c),m.substring(o||0,a||m.length)},this.$cloneFoldData=function(){var c=[];return c=this.$foldData.map(function(a){var l=a.folds.map(function(o){return o.clone()});return new y(c,l)}),c},this.toggleFold=function(c){var a=this.selection,l=a.getRange(),o,u;if(l.isEmpty()){var m=l.start;if(o=this.getFoldAt(m.row,m.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(m))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:m.row,column:m.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(m.row,m.column)||l}else{var w=this.getFoldsInRange(l);if(c&&w.length){this.expandFolds(w);return}else w.length==1&&(o=w[0])}if(o||(o=this.getFoldAt(l.start.row,l.start.column)),o&&o.range.toString()==l.toString()){this.expandFold(o);return}var A="...";if(!l.isMultiLine()){if(A=this.getTextRange(l),A.length<4)return;A=A.trim().substring(0,2)+".."}this.addFold(A,l)},this.getCommentFoldRange=function(c,a,l){var o=new h(this,c,a),u=o.getCurrentToken(),m=u&&u.type;if(u&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var w=new RegExp(m),A=new p;if(l!=1){do u=o.stepBackward();while(u&&w.test(u.type));u=o.stepForward()}A.start.row=o.getCurrentTokenRow(),A.start.column=o.getCurrentTokenColumn()+u.value.length,o=new h(this,c,a);var R=this.getState(o.$row);if(l!=-1){var $=-1;do if(u=o.stepForward(),$==-1){var C=this.getState(o.$row);R.toString()!==C.toString()&&($=o.$row)}else if(o.$row>$)break;while(u&&w.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return A.end.row=o.getCurrentTokenRow(),A.end.column=o.getCurrentTokenColumn(),A}},this.foldAll=function(c,a,l,o){l==null&&(l=1e5);var u=this.foldWidgets;if(u){a=a||this.getLength(),c=c||0;for(var m=c;m<a;m++)if(u[m]==null&&(u[m]=this.getFoldWidget(m)),u[m]=="start"&&!(o&&!o(m))){var w=this.getFoldWidgetRange(m);w&&w.isMultiLine()&&w.end.row<=a&&w.start.row>=c&&(m=w.end.row,w.collapseChildren=l,this.addFold("...",w))}}},this.foldToLevel=function(c){for(this.foldAll();c-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var c=this;this.foldAll(null,null,null,function(a){for(var l=c.getTokens(a),o=0;o<l.length;o++){var u=l[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(c){if(this.$foldMode!=c){if(this.$foldMode=c,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!c||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=c.getFoldWidget.bind(c,this,this.$foldStyle),this.getFoldWidgetRange=c.getFoldWidgetRange.bind(c,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(c,a){var l=this.foldWidgets;if(!l||a&&l[c])return{};for(var o=c-1,u;o>=0;){var m=l[o];if(m==null&&(m=l[o]=this.getFoldWidget(o)),m=="start"){var w=this.getFoldWidgetRange(o);if(u||(u=w),w&&w.end.row>=c)break}o--}return{range:o!==-1&&w,firstRange:u}},this.onFoldWidgetClick=function(c,a){a instanceof g&&(a=a.domEvent);var l={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var u=a.target||a.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,a){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),u=l==="end"?-1:1,m=this.getFoldAt(c,u===-1?0:o.length,u);if(m)return a.children||a.all?this.removeFold(m):this.expandFold(m),m;var w=this.getFoldWidgetRange(c,!0);if(w&&!w.isMultiLine()&&(m=this.getFoldAt(w.start.row,w.start.column,1),m&&w.isEqual(m.range)))return this.removeFold(m),m;if(a.siblings){var A=this.getParentFoldRangeData(c);if(A.range)var R=A.range.start.row+1,$=A.range.end.row;this.foldAll(R,$,a.all?1e4:0)}else a.children?($=w?w.end.row:this.getLength(),this.foldAll(c+1,$,a.all?1e4:0)):w&&(a.all&&(w.collapseChildren=1e4),this.addFold("...",w));return w}},this.toggleFoldWidget=function(c){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var l=this.$toggleFoldWidget(a,{});if(!l){var o=this.getParentFoldRangeData(a,!0);if(l=o.range||o.firstRange,l){a=l.start.row;var u=this.getFoldAt(a,this.getLine(a).length,1);u?this.removeFold(u):this.addFold("...",l)}}},this.updateFoldWidgets=function(c){var a=c.start.row,l=c.end.row-a;if(l===0)this.foldWidgets[a]=null;else if(c.action=="remove")this.foldWidgets.splice(a,l+1,null);else{var o=Array(l+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(c){var a=c.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,r,f){var p=e("../token_iterator").TokenIterator,y=e("../range").Range;function v(){this.findMatchingBracket=function(h,g){if(h.column==0)return null;var s=g||this.getLine(h.row).charAt(h.column-1);if(s=="")return null;var c=s.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h):null},this.getBracketRange=function(h){var g=this.getLine(h.row),s=!0,c,a=g.charAt(h.column-1),l=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(l||(a=g.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],h);if(!o)return null;c=y.fromPoints(h,o),s||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],h);if(!o)return null;c=y.fromPoints(o,h),s||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,g){var s=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,a=!g&&s.charAt(h.column-1),l=a&&a.match(c);if(l||(a=(g===void 0||g)&&s.charAt(h.column),h={row:h.row,column:h.column+1},l=a&&a.match(c)),!l)return null;var o=new y(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var m=new y(u.row,u.column,u.row,u.column+1);return[o,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,g,s){var c=this.$brackets[h],a=1,l=new p(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=g.column-l.getCurrentTokenColumn()-2,m=o.value;;){for(;u>=0;){var w=m.charAt(u);if(w==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else w==h&&(a+=1);u-=1}do o=l.stepBackward();while(o&&!s.test(o.type));if(o==null)break;m=o.value,u=m.length-1}return null}},this.$findClosingBracket=function(h,g,s){var c=this.$brackets[h],a=1,l=new p(this,g.row,g.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=g.column-l.getCurrentTokenColumn();;){for(var m=o.value,w=m.length;u<w;){var A=m.charAt(u);if(A==c){if(a-=1,a==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else A==h&&(a+=1);u+=1}do o=l.stepForward();while(o&&!s.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var g=new p(this,h.row,h.column),s=this.$findTagName(g);if(s){var c=g.stepBackward();return c.value==="<"?this.$findClosingTag(g,s):this.$findOpeningTag(g,s)}},this.$findTagName=function(h){var g=h.getCurrentToken(),s=!1,c=!1;if(g&&g.type.indexOf("tag-name")===-1)do c?g=h.stepBackward():g=h.stepForward(),g&&(g.value==="/>"?c=!0:g.type.indexOf("tag-name")!==-1&&(s=!0));while(g&&!s);return g},this.$findClosingTag=function(h,g){var s,c=g.value,a=g.value,l=0,o=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);g=h.stepForward();var u=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length),m=!1;do{if(s=g,s.type.indexOf("tag-close")!==-1&&!m){var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);m=!0}if(g=h.stepForward(),g){if(g.value===">"&&!m){var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);m=!0}if(g.type.indexOf("tag-name")!==-1){if(c=g.value,a===c){if(s.value==="<")l++;else if(s.value==="</"&&(l--,l<0)){h.stepBackward();var A=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);g=h.stepForward();var R=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=h.stepForward()),g&&g.value===">")var $=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(a===c&&g.value==="/>"&&(l--,l<0))var A=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),R=A,$=R,w=new y(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(g&&l>=0);if(o&&w&&A&&$&&u&&R)return{openTag:new y(o.start.row,o.start.column,w.end.row,w.end.column),closeTag:new y(A.start.row,A.start.column,$.end.row,$.end.column),openTagName:u,closeTagName:R}},this.$findOpeningTag=function(h,g){var s=h.getCurrentToken(),c=g.value,a=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,m=new y(l,o,l,u);h.stepForward();var w=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=h.stepForward()),!(!g||g.value!==">")){var A=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(g=s,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+g.value.length,s=h.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(c===g.value)if(s.value==="<"){if(a++,a>0){var R=new y(l,o,l,u),$=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do g=h.stepForward();while(g&&g.value!==">");var C=new y(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(g.value==="/>"){for(var b=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===c){a--;break}else if(T.value==="<")break;T=h.stepBackward(),b++}for(var E=0;E<b;E++)h.stepForward()}}while(s&&a<=0);if($&&C&&m&&A&&R&&w)return{openTag:new y($.start.row,$.start.column,C.end.row,C.end.column),closeTag:new y(m.start.row,m.start.column,A.end.row,A.end.column),openTagName:R,closeTagName:w}}}}r.BracketMatch=v}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/lang"),v=e("./bidihandler").BidiHandler,h=e("./config"),g=e("./lib/event_emitter").EventEmitter,s=e("./selection").Selection,c=e("./mode/text").Mode,a=e("./range").Range,l=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,m=e("./search_highlight").SearchHighlight,w=e("./undomanager").UndoManager,A=function(){function _(x,k){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++_.$uid,this.$foldData.toString=function(){return this.join(`
197
- `)},this.bgTokenizer=new u(new c().getTokenizer(),this);var M=this;this.bgTokenizer.on("update",function(O){M._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof x!="object"||!x.getLine)&&(x=new o(x)),this.setDocument(x),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new v(this),h.resetOptions(this),this.setMode(k),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return _.prototype.$initOperationListeners=function(){var x=this;this.curOp=null,this.on("change",function(){x.curOp||(x.startOperation(),x.curOp.selectionBefore=x.$lastSel),x.curOp.docChanged=!0},!0),this.on("changeSelection",function(){x.curOp||(x.startOperation(),x.curOp.selectionBefore=x.$lastSel),x.curOp.selectionChanged=!0},!0),this.$operationResetTimer=y.delayedCall(this.endOperation.bind(this,!0))},_.prototype.startOperation=function(x){if(this.curOp){if(!x||this.curOp.command)return;this.prevOp=this.curOp}x||(x={}),this.$operationResetTimer.schedule(),this.curOp={command:x.command||{},args:x.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",x)},_.prototype.endOperation=function(x){if(this.curOp){if(x&&x.returnValue===!1){this.curOp=null,this._signal("endOperation",x);return}if(x==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var k=this.selection.toJSON();this.curOp.selectionAfter=k,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(k),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",x)}},_.prototype.setDocument=function(x){this.doc&&this.doc.off("change",this.$onChange),this.doc=x,x.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},_.prototype.getDocument=function(){return this.doc},Object.defineProperty(_.prototype,"widgetManager",{get:function(){var x=new l(this);return this.widgetManager=x,this.$editor&&x.attach(this.$editor),x},set:function(x){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:x})},enumerable:!1,configurable:!0}),_.prototype.$resetRowCache=function(x){if(!x){this.$docRowCache=[],this.$screenRowCache=[];return}var k=this.$docRowCache.length,M=this.$getRowCacheIndex(this.$docRowCache,x)+1;k>M&&(this.$docRowCache.splice(M,k),this.$screenRowCache.splice(M,k))},_.prototype.$getRowCacheIndex=function(x,k){for(var M=0,O=x.length-1;M<=O;){var F=M+O>>1,P=x[F];if(k>P)M=F+1;else if(k<P)O=F-1;else return F}return M-1},_.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},_.prototype.onChangeFold=function(x){var k=x.data;this.$resetRowCache(k.start.row)},_.prototype.onChange=function(x){this.$modified=!0,this.$bidiHandler.onChange(x),this.$resetRowCache(x.start.row);var k=this.$updateInternalDataOnChange(x);!this.$fromUndo&&this.$undoManager&&(k&&k.length&&(this.$undoManager.add({action:"removeFolds",folds:k},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(x,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(x),this._signal("change",x)},_.prototype.onSelectionChange=function(){this._signal("changeSelection")},_.prototype.setValue=function(x){this.doc.setValue(x),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},_.fromJSON=function(x){typeof x=="string"&&(x=JSON.parse(x));var k=new w;k.$undoStack=x.history.undo,k.$redoStack=x.history.redo,k.mark=x.history.mark,k.$rev=x.history.rev;var M=new _(x.value);return x.folds.forEach(function(O){M.addFold("...",a.fromPoints(O.start,O.end))}),M.setAnnotations(x.annotations),M.setBreakpoints(x.breakpoints),M.setMode(x.mode),M.setScrollLeft(x.scrollLeft),M.setScrollTop(x.scrollTop),M.setUndoManager(k),M.selection.fromJSON(x.selection),M},_.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(x){return x.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},_.prototype.toString=function(){return this.doc.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.getState=function(x){return this.bgTokenizer.getState(x)},_.prototype.getTokens=function(x){return this.bgTokenizer.getTokens(x)},_.prototype.getTokenAt=function(x,k){var M=this.bgTokenizer.getTokens(x),O,F=0;if(k==null){var P=M.length-1;F=this.getLine(x).length}else for(var P=0;P<M.length&&(F+=M[P].value.length,!(F>=k));P++);return O=M[P],O?(O.index=P,O.start=F-O.value.length,O):null},_.prototype.setUndoManager=function(x){if(this.$undoManager=x,this.$informUndoManager&&this.$informUndoManager.cancel(),x){var k=this;x.addSession(this),this.$syncInformUndoManager=function(){k.$informUndoManager.cancel(),k.mergeUndoDeltas=!1},this.$informUndoManager=y.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},_.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},_.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},_.prototype.getTabString=function(){return this.getUseSoftTabs()?y.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(x){this.setOption("useSoftTabs",x)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(x){this.setOption("tabSize",x)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(x){return this.$useSoftTabs&&x.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(x){this.setOption("navigateWithinSoftTabs",x)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(x){this.setOption("overwrite",x)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(x,k){this.$decorations[x]||(this.$decorations[x]=""),this.$decorations[x]+=" "+k,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(x,k){this.$decorations[x]=(this.$decorations[x]||"").replace(" "+k,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(x){this.$breakpoints=[];for(var k=0;k<x.length;k++)this.$breakpoints[x[k]]="ace_breakpoint";this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},_.prototype.setBreakpoint=function(x,k){k===void 0&&(k="ace_breakpoint"),k?this.$breakpoints[x]=k:delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},_.prototype.clearBreakpoint=function(x){delete this.$breakpoints[x],this._signal("changeBreakpoint",{})},_.prototype.addMarker=function(x,k,M,O){var F=this.$markerId++,P={range:x,type:M||"line",renderer:typeof M=="function"?M:null,clazz:k,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=P,this._signal("changeFrontMarker")):(this.$backMarkers[F]=P,this._signal("changeBackMarker")),F},_.prototype.addDynamicMarker=function(x,k){if(x.update){var M=this.$markerId++;return x.id=M,x.inFront=!!k,k?(this.$frontMarkers[M]=x,this._signal("changeFrontMarker")):(this.$backMarkers[M]=x,this._signal("changeBackMarker")),x}},_.prototype.removeMarker=function(x){var k=this.$frontMarkers[x]||this.$backMarkers[x];if(k){var M=k.inFront?this.$frontMarkers:this.$backMarkers;delete M[x],this._signal(k.inFront?"changeFrontMarker":"changeBackMarker")}},_.prototype.getMarkers=function(x){return x?this.$frontMarkers:this.$backMarkers},_.prototype.highlight=function(x){if(!this.$searchHighlight){var k=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(k)}this.$searchHighlight.setRegexp(x)},_.prototype.highlightLines=function(x,k,M,O){typeof k!="number"&&(M=k,k=x),M||(M="ace_step");var F=new a(x,0,k,1/0);return F.id=this.addMarker(F,M,"fullLine",O),F},_.prototype.setAnnotations=function(x){this.$annotations=x,this._signal("changeAnnotation",{})},_.prototype.getAnnotations=function(){return this.$annotations||[]},_.prototype.clearAnnotations=function(){this.setAnnotations([])},_.prototype.$detectNewLine=function(x){var k=x.match(/^.*?(\r?\n)/m);k?this.$autoNewLine=k[1]:this.$autoNewLine=`
198
- `},_.prototype.getWordRange=function(x,k){var M=this.getLine(x),O=!1;if(k>0&&(O=!!M.charAt(k-1).match(this.tokenRe)),O||(O=!!M.charAt(k).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(M.slice(k-1,k+1)))var F=/\s/;else var F=this.nonTokenRe;var P=k;if(P>0){do P--;while(P>=0&&M.charAt(P).match(F));P++}for(var z=k;z<M.length&&M.charAt(z).match(F);)z++;return new a(x,P,x,z)},_.prototype.getAWordRange=function(x,k){for(var M=this.getWordRange(x,k),O=this.getLine(M.end.row);O.charAt(M.end.column).match(/[ \t]/);)M.end.column+=1;return M},_.prototype.setNewLineMode=function(x){this.doc.setNewLineMode(x)},_.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},_.prototype.setUseWorker=function(x){this.setOption("useWorker",x)},_.prototype.getUseWorker=function(){return this.$useWorker},_.prototype.onReloadTokenizer=function(x){var k=x.data;this.bgTokenizer.start(k.first),this._signal("tokenizerUpdate",x)},_.prototype.setMode=function(x,k){if(x&&typeof x=="object"){if(x.getTokenizer)return this.$onChangeMode(x);var M=x,O=M.path}else O=x||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!M){this.$onChangeMode(this.$modes[O]),k&&k();return}this.$modeId=O,h.loadModule(["mode",O],(function(F){if(!this.destroyed){if(this.$modeId!==O)return k&&k();this.$modes[O]&&!M?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(M),M||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),k&&k()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},_.prototype.$onChangeMode=function(x,k){if(k||(this.$modeId=x.$id),this.$mode!==x){var M=this.$mode;this.$mode=x,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=x.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=x.tokenRe,this.nonTokenRe=x.nonTokenRe,k||(x.attachToSession&&x.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(x.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:M,mode:x}))}},_.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},_.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(x){h.warn("Could not load worker",x),this.$worker=null}},_.prototype.getMode=function(){return this.$mode},_.prototype.setScrollTop=function(x){this.$scrollTop===x||isNaN(x)||(this.$scrollTop=x,this._signal("changeScrollTop",x))},_.prototype.getScrollTop=function(){return this.$scrollTop},_.prototype.setScrollLeft=function(x){this.$scrollLeft===x||isNaN(x)||(this.$scrollLeft=x,this._signal("changeScrollLeft",x))},_.prototype.getScrollLeft=function(){return this.$scrollLeft},_.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},_.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var x=0;return this.lineWidgets.forEach(function(k){k&&k.screenWidth>x&&(x=k.screenWidth)}),this.lineWidgetWidth=x},_.prototype.$computeWidth=function(x){if(this.$modified||x){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var k=this.doc.getAllLines(),M=this.$rowLengthCache,O=0,F=0,P=this.$foldData[F],z=P?P.start.row:1/0,V=k.length,q=0;q<V;q++){if(q>z){if(q=P.end.row+1,q>=V)break;P=this.$foldData[F++],z=P?P.start.row:1/0}M[q]==null&&(M[q]=this.$getStringScreenWidth(k[q])[0]),M[q]>O&&(O=M[q])}this.screenWidth=O}},_.prototype.getLine=function(x){return this.doc.getLine(x)},_.prototype.getLines=function(x,k){return this.doc.getLines(x,k)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(x){return this.doc.getTextRange(x||this.selection.getRange())},_.prototype.insert=function(x,k){return this.doc.insert(x,k)},_.prototype.remove=function(x){return this.doc.remove(x)},_.prototype.removeFullLines=function(x,k){return this.doc.removeFullLines(x,k)},_.prototype.undoChanges=function(x,k){if(x.length){this.$fromUndo=!0;for(var M=x.length-1;M!=-1;M--){var O=x[M];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!k&&this.$undoSelect&&(x.selectionBefore?this.selection.fromJSON(x.selectionBefore):this.selection.setRange(this.$getUndoSelection(x,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(x,k){if(x.length){this.$fromUndo=!0;for(var M=0;M<x.length;M++){var O=x[M];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!k&&this.$undoSelect&&(x.selectionAfter?this.selection.fromJSON(x.selectionAfter):this.selection.setRange(this.$getUndoSelection(x,!1))),this.$fromUndo=!1}},_.prototype.setUndoSelect=function(x){this.$undoSelect=x},_.prototype.$getUndoSelection=function(x,k){function M(V){return k?V.action!=="insert":V.action==="insert"}for(var O,F,P=0;P<x.length;P++){var z=x[P];if(z.start){if(!O){M(z)?O=a.fromPoints(z.start,z.end):O=a.fromPoints(z.start,z.start);continue}M(z)?(F=z.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=z.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=z.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(z.start,z.start)))}}return O},_.prototype.replace=function(x,k){return this.doc.replace(x,k)},_.prototype.moveText=function(x,k,M){var O=this.getTextRange(x),F=this.getFoldsInRange(x),P=a.fromPoints(k,k);if(!M){this.remove(x);var z=x.start.row-x.end.row,V=z?-x.end.column:x.start.column-x.end.column;V&&(P.start.row==x.end.row&&P.start.column>x.end.column&&(P.start.column+=V),P.end.row==x.end.row&&P.end.column>x.end.column&&(P.end.column+=V)),z&&P.start.row>=x.end.row&&(P.start.row+=z,P.end.row+=z)}if(P.end=this.insert(P.start,O),F.length){var q=x.start,X=P.start,z=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==q.row&&(re.start.column+=V),re.end.row==q.row&&(re.end.column+=V),re.start.row+=z,re.end.row+=z,re}))}return P},_.prototype.indentRows=function(x,k,M){M=M.replace(/\t/g,this.getTabString());for(var O=x;O<=k;O++)this.doc.insertInLine({row:O,column:0},M)},_.prototype.outdentRows=function(x){for(var k=x.collapseRows(),M=new a(0,0,0,0),O=this.getTabSize(),F=k.start.row;F<=k.end.row;++F){var P=this.getLine(F);M.start.row=F,M.end.row=F;for(var z=0;z<O&&P.charAt(z)==" ";++z);z<O&&P.charAt(z)==" "?(M.start.column=z,M.end.column=z+1):(M.start.column=0,M.end.column=z),this.remove(M)}},_.prototype.$moveLines=function(x,k,M){if(x=this.getRowFoldStart(x),k=this.getRowFoldEnd(k),M<0){var O=this.getRowFoldStart(x+M);if(O<0)return 0;var F=O-x}else if(M>0){var O=this.getRowFoldEnd(k+M);if(O>this.doc.getLength()-1)return 0;var F=O-k}else{x=this.$clipRowToDocument(x),k=this.$clipRowToDocument(k);var F=k-x+1}var P=new a(x,0,k,Number.MAX_VALUE),z=this.getFoldsInRange(P).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=M==0?this.doc.getLines(x,k):this.doc.removeFullLines(x,k);return this.doc.insertFullLines(x+F,V),z.length&&this.addFolds(z),F},_.prototype.moveLinesUp=function(x,k){return this.$moveLines(x,k,-1)},_.prototype.moveLinesDown=function(x,k){return this.$moveLines(x,k,1)},_.prototype.duplicateLines=function(x,k){return this.$moveLines(x,k,0)},_.prototype.$clipRowToDocument=function(x){return Math.max(0,Math.min(x,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(x,k){return k<0?0:Math.min(this.doc.getLine(x).length,k)},_.prototype.$clipPositionToDocument=function(x,k){if(k=Math.max(0,k),x<0)x=0,k=0;else{var M=this.doc.getLength();x>=M?(x=M-1,k=this.doc.getLine(M-1).length):k=Math.min(this.doc.getLine(x).length,k)}return{row:x,column:k}},_.prototype.$clipRangeToDocument=function(x){x.start.row<0?(x.start.row=0,x.start.column=0):x.start.column=this.$clipColumnToRow(x.start.row,x.start.column);var k=this.doc.getLength()-1;return x.end.row>k?(x.end.row=k,x.end.column=this.doc.getLine(k).length):x.end.column=this.$clipColumnToRow(x.end.row,x.end.column),x},_.prototype.setUseWrapMode=function(x){if(x!=this.$useWrapMode){if(this.$useWrapMode=x,this.$modified=!0,this.$resetRowCache(0),x){var k=this.getLength();this.$wrapData=Array(k),this.$updateWrapData(0,k-1)}this._signal("changeWrapMode")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.prototype.setWrapLimitRange=function(x,k){(this.$wrapLimitRange.min!==x||this.$wrapLimitRange.max!==k)&&(this.$wrapLimitRange={min:x,max:k},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},_.prototype.adjustWrapLimit=function(x,k){var M=this.$wrapLimitRange;M.max<0&&(M={min:k,max:k});var O=this.$constrainWrapLimit(x,M.min,M.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},_.prototype.$constrainWrapLimit=function(x,k,M){return k&&(x=Math.max(k,x)),M&&(x=Math.min(M,x)),x},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(x){this.setWrapLimitRange(x,x)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(x){var k=this.$useWrapMode,M=x.action,O=x.start,F=x.end,P=O.row,z=F.row,V=z-P,q=null;if(this.$updating=!0,V!=0)if(M==="remove"){this[k?"$wrapData":"$rowLengthCache"].splice(P,V);var X=this.$foldData;q=this.getFoldsInRange(x),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var re=this.getFoldLine(P);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}z=P}else{var J=Array(V);J.unshift(P,0);var ae=k?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(P),Z=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(z,0,F.column-O.column))):me==-1&&(G.addRemoveChars(P,0,F.column-O.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=P&&G.shiftRow(V)}}else{V=Math.abs(x.start.column-x.end.column),M==="remove"&&(q=this.getFoldsInRange(x),this.removeFolds(q),V=-V);var G=this.getFoldLine(P);G&&G.addRemoveChars(P,O.column,V)}return k&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,k?this.$updateWrapData(P,z):this.$updateRowLengthCache(P,z),q},_.prototype.$updateRowLengthCache=function(x,k){this.$rowLengthCache[x]=null,this.$rowLengthCache[k]=null},_.prototype.$updateWrapData=function(x,k){var M=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,P=this.$wrapLimit,z,V,q=x;for(k=Math.min(k,M.length-1);q<=k;)V=this.getFoldLine(q,V),V?(z=[],V.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,z.length),J[0]=C;for(var ae=1;ae<J.length;ae++)J[ae]=b}else J=this.$getDisplayTokens(M[G].substring(re,Z),z.length);z=z.concat(J)}).bind(this),V.end.row,M[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(z,P,O),q=V.end.row+1):(z=this.$getDisplayTokens(M[q]),F[q]=this.$computeWrapSplits(z,P,O),q++)},_.prototype.$computeWrapSplits=function(x,k,M){if(x.length==0)return[];var O=[],F=x.length,P=0,z=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=k<=Math.max(2*M,8)||q===!1?0:Math.floor(k/2);function G(){var me=0;if(X===0)return me;if(q)for(var ve=0;ve<x.length;ve++){var pe=x[ve];if(pe==E)me+=1;else if(pe==L)me+=M;else{if(pe==I)continue;break}}return V&&q!==!1&&(me+=M),Math.min(me,X)}function Z(me){for(var ve=me-P,pe=P;pe<me;pe++){var Ae=x[pe];(Ae===12||Ae===2)&&(ve-=1)}O.length||(re=G(),O.indent=re),z+=ve,O.push(z),P=me}for(var re=0;F-P>k-re;){var J=P+k-re;if(x[J-1]>=E&&x[J]>=E){Z(J);continue}if(x[J]==C||x[J]==b){for(J;J!=P-1&&x[J]!=C;J--);if(J>P){Z(J);continue}for(J=P+k,J;J<x.length&&x[J]==b;J++);if(J==x.length)break;Z(J);continue}for(var ae=Math.max(J-(k-(k>>2)),P-1);J>ae&&x[J]<C;)J--;if(V){for(;J>ae&&x[J]<C;)J--;for(;J>ae&&x[J]==T;)J--}else for(;J>ae&&x[J]<E;)J--;if(J>ae){Z(++J);continue}J=P+k,x[J]==$&&J--,Z(J-re)}return O},_.prototype.$getDisplayTokens=function(x,k){var M=[],O;k=k||0;for(var F=0;F<x.length;F++){var P=x.charCodeAt(F);if(P==9){O=this.getScreenTabSize(M.length+k),M.push(L);for(var z=1;z<O;z++)M.push(I)}else P==32?M.push(E):P>39&&P<48||P>57&&P<64?M.push(T):P>=4352&&N(P)?M.push(R,$):M.push(R)}return M},_.prototype.$getStringScreenWidth=function(x,k,M){if(k==0)return[0,0];k==null&&(k=1/0),M=M||0;var O,F;for(F=0;F<x.length&&(O=x.charCodeAt(F),O==9?M+=this.getScreenTabSize(M):O>=4352&&N(O)?M+=2:M+=1,!(M>k));F++);return[M,F]},_.prototype.getRowLength=function(x){var k=1;return this.lineWidgets&&(k+=this.lineWidgets[x]&&this.lineWidgets[x].rowCount||0),!this.$useWrapMode||!this.$wrapData[x]?k:this.$wrapData[x].length+k},_.prototype.getRowLineCount=function(x){return!this.$useWrapMode||!this.$wrapData[x]?1:this.$wrapData[x].length+1},_.prototype.getRowWrapIndent=function(x){if(this.$useWrapMode){var k=this.screenToDocumentPosition(x,Number.MAX_VALUE),M=this.$wrapData[k.row];return M.length&&M[0]<k.column?M.indent:0}else return 0},_.prototype.getScreenLastRowColumn=function(x){var k=this.screenToDocumentPosition(x,Number.MAX_VALUE);return this.documentToScreenColumn(k.row,k.column)},_.prototype.getDocumentLastRowColumn=function(x,k){var M=this.documentToScreenRow(x,k);return this.getScreenLastRowColumn(M)},_.prototype.getDocumentLastRowColumnPosition=function(x,k){var M=this.documentToScreenRow(x,k);return this.screenToDocumentPosition(M,Number.MAX_VALUE/10)},_.prototype.getRowSplitData=function(x){if(this.$useWrapMode)return this.$wrapData[x]},_.prototype.getScreenTabSize=function(x){return this.$tabSize-(x%this.$tabSize|0)},_.prototype.screenToDocumentRow=function(x,k){return this.screenToDocumentPosition(x,k).row},_.prototype.screenToDocumentColumn=function(x,k){return this.screenToDocumentPosition(x,k).column},_.prototype.screenToDocumentPosition=function(x,k,M){if(x<0)return{row:0,column:0};var O,Z=0,F=0,P,G=0,z=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,x),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],re=x>V[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=x&&(z=this.getRowLength(Z),!(G+z>x||Z>=J));)G+=z,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),re&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)O=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+z<=x||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var ve=0,pe=Math.floor(x-G);if(this.$useWrapMode){var Ae=this.$wrapData[Z];Ae&&(P=Ae[pe],pe>0&&Ae.length&&(ve=Ae.indent,F=Ae[pe-1]||Ae[Ae.length-1],O=O.substring(F)))}return M!==void 0&&this.$bidiHandler.isBidiRow(G+pe,Z,pe)&&(k=this.$bidiHandler.offsetToCol(M)),F+=this.$getStringScreenWidth(O,k-ve)[1],this.$useWrapMode&&F>=P&&(F=P-1),ae?ae.idxToPosition(F):{row:Z,column:F}},_.prototype.documentToScreenPosition=function(x,k){if(typeof k>"u")var M=this.$clipPositionToDocument(x.row,x.column);else M=this.$clipPositionToDocument(x,k);x=M.row,k=M.column;var G=0,O=null,F=null;F=this.getFoldAt(x,k,1),F&&(x=F.start.row,k=F.start.column);var P,X=0,z=this.$docRowCache,V=this.$getRowCacheIndex(z,x),q=z.length;if(q&&V>=0)var X=z[V],G=this.$screenRowCache[V],Z=x>z[q-1];else var Z=!q;for(var re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<x;){if(X>=J){if(P=re.end.row+1,P>x)break;re=this.getNextFoldLine(P,re),J=re?re.start.row:1/0}else P=X+1;G+=this.getRowLength(X),X=P,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";re&&X>=J?(ae=this.getFoldDisplayLine(re,x,k),O=re.start.row):(ae=this.getLine(x).substring(0,k),O=x);var me=0;if(this.$useWrapMode){var ve=this.$wrapData[O];if(ve){for(var pe=0;ae.length>=ve[pe];)G++,pe++;ae=ae.substring(ve[pe-1]||0,ae.length),me=pe>0?ve.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},_.prototype.documentToScreenColumn=function(x,k){return this.documentToScreenPosition(x,k).column},_.prototype.documentToScreenRow=function(x,k){return this.documentToScreenPosition(x,k).row},_.prototype.getScreenLength=function(){var x=0,k=null;if(this.$useWrapMode)for(var M=this.$wrapData.length,O=0,F=0,k=this.$foldData[F++],P=k?k.start.row:1/0;O<M;){var z=this.$wrapData[O];x+=z?z.length+1:1,O++,O>P&&(O=k.end.row+1,k=this.$foldData[F++],P=k?k.start.row:1/0)}else{x=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)k=V[F],x-=k.end.row-k.start.row}return this.lineWidgets&&(x+=this.$getWidgetScreenLength()),x},_.prototype.$setFontMetrics=function(x){this.$enableVarChar&&(this.$getStringScreenWidth=function(k,M,O){if(M===0)return[0,0];M||(M=1/0),O=O||0;var F,P;for(P=0;P<k.length&&(F=k.charAt(P),F===" "?O+=this.getScreenTabSize(O):O+=x.getCharacterWidth(F),!(O>M));P++);return[O,P]})},_.prototype.getPrecedingCharacter=function(){var x=this.selection.getCursor();if(x.column===0)return x.row===0?"":this.doc.getNewLineCharacter();var k=this.getLine(x.row);return k[x.column-1]},_.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},_}();A.$uid=0,A.prototype.$modes=h.$modes,A.prototype.getValue=A.prototype.toString,A.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},A.prototype.$overwrite=!1,A.prototype.$mode=null,A.prototype.$modeId=null,A.prototype.$scrollTop=0,A.prototype.$scrollLeft=0,A.prototype.$wrapLimit=80,A.prototype.$useWrapMode=!1,A.prototype.$wrapLimitRange={min:null,max:null},A.prototype.lineWidgets=null,A.prototype.isFullWidth=N,p.implement(A.prototype,g);var R=1,$=2,C=3,b=4,T=9,E=10,L=11,I=12;function N(_){return _<4352?!1:_>=4352&&_<=4447||_>=4515&&_<=4519||_>=4602&&_<=4607||_>=9001&&_<=9002||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12283||_>=12288&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12589||_>=12593&&_<=12686||_>=12688&&_<=12730||_>=12736&&_<=12771||_>=12784&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=13054||_>=13056&&_<=19903||_>=19968&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=55216&&_<=55238||_>=55243&&_<=55291||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=65281&&_<=65376||_>=65504&&_<=65510}e("./edit_session/folding").Folding.call(A.prototype),e("./edit_session/bracket_match").BracketMatch.call(A.prototype),h.defineOptions(A.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var x=typeof _=="number"?_:null;this.setWrapLimitRange(x,x),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=A}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,r,f){var p=e("./lib/lang"),y=e("./lib/oop"),v=e("./range").Range,h=function(){function s(){this.$options={}}return s.prototype.set=function(c){return y.mixin(this.$options,c),this},s.prototype.getOptions=function(){return p.copyObject(this.$options)},s.prototype.setOptions=function(c){this.$options=c},s.prototype.find=function(c){var a=this.$options,l=this.$matchIterator(c,a);if(!l)return!1;var o=null;return l.forEach(function(u,m,w,A){return o=new v(u,m,w,A),m==A&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(c){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var l=a.range,o=l?c.getLines(l.start.row,l.end.row):c.doc.getAllLines(),u=[],m=a.re;if(a.$isMultiLine){var w=m.length,A=o.length-w,R;e:for(var $=m.offset||0;$<=A;$++){for(var C=0;C<w;C++)if(o[$+C].search(m[C])==-1)continue e;var b=o[$],T=o[$+w-1],E=b.length-b.match(m[0])[0].length,L=T.match(m[w-1])[0].length;R&&R.end.row===$&&R.end.column>E||(u.push(R=new v($,E,$+w-1,L)),w>2&&($=$+w-2))}}else for(var I=0;I<o.length;I++)for(var N=p.getMatchOffsets(o[I],m),C=0;C<N.length;C++){var _=N[C];u.push(new v(I,_.offset,I,_.offset+_.length))}if(l){for(var x=l.start.column,k=l.end.column,I=0,C=u.length-1;I<C&&u[I].start.column<x&&u[I].start.row==0;)I++;for(var M=l.end.row-l.start.row;I<C&&u[C].end.column>k&&u[C].end.row==M;)C--;for(u=u.slice(I,C+1),I=0,C=u.length;I<C;I++)u[I].start.row+=l.start.row,u[I].end.row+=l.start.row}return u},s.prototype.replace=function(c,a){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return a;if(o){var u=o.exec(c);if(!u||u[0].length!=c.length)return null;if(l.regExp||(a=a.replace(/\$/g,"$$$$")),a=c.replace(o,a),l.preserveCase){a=a.split("");for(var m=Math.min(c.length,c.length);m--;){var w=c[m];w&&w.toLowerCase()!=w?a[m]=a[m].toUpperCase():a[m]=a[m].toLowerCase()}a=a.join("")}return a}},s.prototype.$assembleRegExp=function(c,a){if(c.needle instanceof RegExp)return c.re=c.needle;var l=c.needle;if(!c.needle)return c.re=!1;c.regExp||(l=p.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=g(l,c)),c.$isMultiLine=!a&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var u=new RegExp(l,o)}catch{u=!1}return c.re=u},s.prototype.$assembleMultilineRegExp=function(c,a){for(var l=c.replace(/\r\n|\r|\n/g,`$
199
- ^`).split(`
200
- `),o=[],u=0;u<l.length;u++)try{o.push(new RegExp(l[u],a))}catch{return!1}return o},s.prototype.$matchIterator=function(c,a){var l=this.$assembleRegExp(a);if(!l)return!1;var o=a.backwards==!0,u=a.skipCurrent!=!1,m=l.unicode,w=a.range,A=a.start;A||(A=w?w[o?"end":"start"]:c.selection.getRange()),A.start&&(A=A[u!=o?"end":"start"]);var R=w?w.start.row:0,$=w?w.end.row:c.getLength()-1;if(o)var C=function(E){var L=A.row;if(!T(L,A.column,E)){for(L--;L>=R;L--)if(T(L,Number.MAX_VALUE,E))return;if(a.wrap!=!1){for(L=$,R=A.row;L>=R;L--)if(T(L,Number.MAX_VALUE,E))return}}};else var C=function(E){var L=A.row;if(!T(L,A.column,E)){for(L=L+1;L<=$;L++)if(T(L,0,E))return;if(a.wrap!=!1){for(L=R,$=A.row;L<=$;L++)if(T(L,0,E))return}}};if(a.$isMultiLine)var b=l.length,T=function(E,L,I){var N=o?E-b+1:E;if(!(N<0||N+b>c.getLength())){var _=c.getLine(N),x=_.search(l[0]);if(!(!o&&x<L||x===-1)){for(var k=1;k<b;k++)if(_=c.getLine(N+k),_.search(l[k])==-1)return;var M=_.match(l[b-1])[0].length;if(!(o&&M>L)&&I(N,x,N+b-1,M))return!0}}};else if(o)var T=function(E,L,I){var N=c.getLine(E),_=[],x,k=0;for(l.lastIndex=0;x=l.exec(N);){var M=x[0].length;if(k=x.index,!M){if(k>=N.length)break;l.lastIndex=k+=p.skipEmptyMatch(N,k,m)}if(x.index+M>L)break;_.push(x.index,M)}for(var O=_.length-1;O>=0;O-=2){var F=_[O-1],M=_[O];if(I(E,F,E,F+M))return!0}};else var T=function(E,L,I){var N=c.getLine(E),_,x;for(l.lastIndex=L;x=l.exec(N);){var k=x[0].length;if(_=x.index,I(E,_,E,_+k))return!0;if(!k&&(l.lastIndex=_+=p.skipEmptyMatch(N,_,m),_>=N.length))return!1}};return{forEach:C}},s}();function g(s,c){var a=p.supportsLookbehind();function l(w,A){A===void 0&&(A=!0);var R=a&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return R.test(w)||c.regExp?a&&c.$supportsUnicodeFlag?A?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],m=o[o.length-1];return l(u)+s+l(m,!1)}r.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var p=this&&this.__extends||function(){var a=function(l,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,m){u.__proto__=m}||function(u,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(u[w]=m[w])},a(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),y=e("../lib/keys"),v=e("../lib/useragent"),h=y.KEY_MODS,g=function(){function a(l,o){this.$init(l,o,!1)}return a.prototype.$init=function(l,o,u){this.platform=o||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},a.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},a.prototype.removeCommand=function(l,o){var u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],o||delete this.commands[u];var m=this.commandKeyBinding;for(var w in m){var A=m[w];if(A==l)delete m[w];else if(Array.isArray(A)){var R=A.indexOf(l);R!=-1&&(A.splice(R,1),A.length==1&&(m[w]=A[0]))}}},a.prototype.bindKey=function(l,o,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(m){var w="";if(m.indexOf(" ")!=-1){var A=m.split(/\s+/);m=A.pop(),A.forEach(function(C){var b=this.parseKeys(C),T=h[b.hashId]+b.key;w+=(w?" ":"")+T,this._addCommandToBinding(w,"chainKeys")},this),w+=" "}var R=this.parseKeys(m),$=h[R.hashId]+R.key;this._addCommandToBinding(w+$,o,u)},this)}},a.prototype._addCommandToBinding=function(l,o,u){var m=this.commandKeyBinding,w;if(!o)delete m[l];else if(!m[l]||this.$singleCommand)m[l]=o;else{Array.isArray(m[l])?(w=m[l].indexOf(o))!=-1&&m[l].splice(w,1):m[l]=[m[l]],typeof u!="number"&&(u=s(o));var A=m[l];for(w=0;w<A.length;w++){var R=A[w],$=s(R);if($>u)break}A.splice(w,0,o)}},a.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var u=l[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},a.prototype.removeCommands=function(l){Object.keys(l).forEach(function(o){this.removeCommand(l[o])},this)},a.prototype.bindKeys=function(l){Object.keys(l).forEach(function(o){this.bindKey(o,l[o])},this)},a.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},a.prototype.parseKeys=function(l){var o=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function($){return $}),u=o.pop(),m=y[u];if(y.FUNCTION_KEYS[m])u=y.FUNCTION_KEYS[m].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var w=0,A=o.length;A--;){var R=y.KEY_MODS[o[A]];if(R==null)return typeof console<"u"&&console.error("invalid modifier "+o[A]+" in "+l),!1;w|=R}return{key:u,hashId:w}},a.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(l,o,u,m){if(!(m<0)){var w=h[o]+u,A=this.commandKeyBinding[w];return l.$keyChain&&(l.$keyChain+=" "+w,A=this.commandKeyBinding[l.$keyChain]||A),A&&(A=="chainKeys"||A[A.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||w,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-w.length-1):(o==-1||m>0)&&(l.$keyChain="")),{command:A})}},a.prototype.getStatusText=function(l,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var c=function(a){p(l,a);function l(o,u){var m=a.call(this,o,u)||this;return m.$singleCommand=!0,m}return l}(g);c.call=function(a,l,o){g.prototype.$init.call(a,l,o,!0)},g.call=function(a,l,o){g.prototype.$init.call(a,l,o,!1)},r.HashHandler=c,r.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,r,f){var p=this&&this.__extends||function(){var s=function(c,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},s(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");s(c,a);function l(){this.constructor=c}c.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),y=e("../lib/oop"),v=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,g=function(s){p(c,s);function c(a,l){var o=s.call(this,l,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return c.prototype.exec=function(a,l,o){if(Array.isArray(a)){for(var u=a.length;u--;)if(this.exec(a[u],l,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,l))return!1;var m={editor:l,command:a,args:o};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},c.prototype.canExecute=function(a,l){return typeof a=="string"&&(a=this.commands[a]),!(!a||l&&l.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(l))},c.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},c.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,a):this.exec(l[0],a,l[1])},this)}finally{this.$inReplay=!1}}},c.prototype.trimMacro=function(a){return a.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},c}(v);y.implement(g.prototype,h),r.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,r,f){var p=e("../lib/lang"),y=e("../config"),v=e("../range").Range;function h(s,c){return{win:s,mac:c}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(s){y.loadModule("ace/ext/settings_menu",function(c){c.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(s){y.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(s){y.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("Ctrl-L","Command-L"),exec:function(s,c){typeof c=="number"&&!isNaN(c)&&s.gotoLine(c),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:h("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:h("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:h("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:h("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(s){y.loadModule("ace/ext/searchbox",function(c){c.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:h("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:h("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:h("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:h("Up","Up|Ctrl-P"),exec:function(s,c){s.navigateUp(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:h("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:h("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:h("Down","Down|Ctrl-N"),exec:function(s,c){s.navigateDown(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:h("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:h("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:h("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:h("Left","Left|Ctrl-B"),exec:function(s,c){s.navigateLeft(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:h("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:h("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:h("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("Right","Right|Ctrl-F"),exec:function(s,c){s.navigateRight(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:h(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:h(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:h("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:h("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:h("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:h(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var c=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=c?s.selection.getLineRange():s.selection.getRange();s._emit("cut",a),a.isEmpty()||s.session.remove(a),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,c){s.$handlePaste(c)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:h("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(s){y.loadModule("ace/ext/searchbox",function(c){c.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:h("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:h("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("Ctrl-Shift-Backspace",null),exec:function(s){var c=s.selection.getRange();c.start.column=0,s.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(s){var c=s.selection.getRange();c.end.column=Number.MAX_VALUE,s.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,c){s.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,c){s.insert(p.stringRepeat(c.text||"",c.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var c=s.selection.getRange();c.start.column=c.end.column=0,c.end.row++,s.selection.setRange(c,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:h("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(null,null),exec:function(s){for(var c=s.selection.isBackwards(),a=c?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),l=c?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,u=s.session.doc.getTextRange(s.selection.getRange()),m=u.replace(/\n\s*/," ").length,w=s.session.doc.getLine(a.row),A=a.row+1;A<=l.row+1;A++){var R=p.stringTrimLeft(p.stringTrimRight(s.session.doc.getLine(A)));R.length!==0&&(R=" "+R),w+=R}l.row+1<s.session.doc.getLength()-1&&(w+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new v(a.row,0,l.row+2,0),w),m>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+m)):(o=s.session.doc.getLine(a.row).length>o?o+1:o,s.selection.moveCursorTo(a.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(s){var c=s.session.doc.getLength()-1,a=s.session.doc.getLine(c).length,l=s.selection.rangeList.ranges,o=[];l.length<1&&(l=[s.selection.getRange()]);for(var u=0;u<l.length;u++)u==l.length-1&&(l[u].end.row===c&&l[u].end.column===a||o.push(new v(l[u].end.row,l[u].end.column,c,a))),u===0?l[u].start.row===0&&l[u].start.column===0||o.push(new v(0,0,l[u].start.row,l[u].start.column)):o.push(new v(l[u-1].end.row,l[u-1].end.column,l[u].start.row,l[u].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var u=0;u<o.length;u++)s.selection.addRange(o[u],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
201
- `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var c=s.getCursorPosition();s.selection.moveTo(c.row-1,Number.MAX_VALUE),s.insert(`
202
- `),c.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:h("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)r.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,r,f){var p=e("../lib/keys"),y=e("../mouse/default_gutter_handler").GutterTooltip,v=function(){function g(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new y(this.editor)}return g.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},g.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},g.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===p.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=p.enter)return;s.preventDefault();var c=this.editor.getCursorPosition().row;this.editor.isRowVisible(c)||this.editor.scrollToLine(c,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(l===null&&o===null)){if(l===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&o===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(l-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new h(s,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===p.tab){s.preventDefault();return}if(s.keyCode===p.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===p.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===p.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===p.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===p.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===p.enter||s.keyCode===p.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var c=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==c&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(c),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=l.right+"px",o.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return c&&a},g.prototype.$isAnnotationVisible=function(s){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return c&&a},g.prototype.$getFoldWidget=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[1]},g.prototype.$getAnnotation=function(s){var c=this.lines.get(s),a=c.element;return a.childNodes[2]},g.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var c=0;s-c>0||s+c<this.lines.getLength()-1;){if(c++,s-c>=0&&this.$isFoldWidgetVisible(s-c))return s-c;if(s+c<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+c))return s+c}return null},g.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var c=0;s-c>0||s+c<this.lines.getLength()-1;){if(c++,s-c>=0&&this.$isAnnotationVisible(s-c))return s-c;if(s+c<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+c))return s+c}return null},g.prototype.$focusFoldWidget=function(s){if(s!=null){var c=this.$getFoldWidget(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$focusAnnotation=function(s){if(s!=null){var c=this.$getAnnotation(s);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},g.prototype.$blurFoldWidget=function(s){var c=this.$getFoldWidget(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$blurAnnotation=function(s){var c=this.$getAnnotation(s);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var c=this.$findNearestAnnotation(this.activeRowIndex);if(c==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(s){var c=this.lines.get(s);return c?c.row:null},g.prototype.$rowToRowIndex=function(s){for(var c=0;c<this.lines.getLength();c++){var a=this.lines.get(c);if(a.row==s)return c}return null},g}();r.GutterKeyboardHandler=v;var h=function(){function g(s,c){this.gutterKeyboardHandler=c,this.domEvent=s}return g.prototype.getKey=function(){return p.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();r.GutterKeyboardEvent=h}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(e,r,f){var p=this&&this.__values||function(_){var x=typeof Symbol=="function"&&Symbol.iterator,k=x&&_[x],M=0;if(k)return k.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&M>=_.length&&(_=void 0),{value:_&&_[M++],done:!_}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")},y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/lang"),g=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,a=e("./mouse/fold_handler").FoldHandler,l=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,m=e("./range").Range,w=e("./lib/event_emitter").EventEmitter,A=e("./commands/command_manager").CommandManager,R=e("./commands/default_commands").commands,$=e("./config"),C=e("./token_iterator").TokenIterator,b=e("./keyboard/gutter_handler").GutterKeyboardHandler,T=e("./config").nls,E=e("./clipboard"),L=e("./lib/keys"),I=function(){function _(x,k,M){this.session,this.$toDestroy=[];var O=x.getContainerElement();this.container=O,this.renderer=x,this.id="editor"+ ++_.$uid,this.commands=new A(g.isMac?"mac":"win",R),typeof document=="object"&&(this.textInput=new s(x.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new a(this)),this.keyBinding=new l(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,P){P._$emitInputEvent.schedule(31)}),this.setSession(k||M&&M.session||new o("")),$.resetOptions(this),M&&this.setOptions(M),$._signal("editor",this)}return _.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},_.prototype.startOperation=function(x){this.session.startOperation(x)},_.prototype.endOperation=function(x){this.session.endOperation(x)},_.prototype.onStartOperation=function(x){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,x||(this.previousCommand=null)},_.prototype.onEndOperation=function(x){if(this.curOp&&this.session){if(x&&x.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var k=this.curOp.command,M=k&&k.scrollIntoView;if(M){switch(M){case"center-animate":M="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}M=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},_.prototype.$historyTracker=function(x){if(this.$mergeUndoDeltas){var k=this.prevOp,M=this.$mergeableCommands,O=k.command&&x.command.name==k.command.name;if(x.command.name=="insertstring"){var F=x.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(k.args)),this.mergeNextCommand=!0}else O=O&&M.indexOf(x.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:M.indexOf(x.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(x,k){if(x&&typeof x=="string"&&x!="ace"){this.$keybindingId=x;var M=this;$.loadModule(["keybinding",x],function(O){M.$keybindingId==x&&M.keyBinding.setKeyboardHandler(O&&O.handler),k&&k()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(x),k&&k()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(x){if(this.session!=x){this.curOp&&this.endOperation(),this.curOp={};var k=this.session;if(k){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var M=this.session.getSelection();M.off("changeCursor",this.$onCursorChange),M.off("changeSelection",this.$onSelectionChange)}this.session=x,x?(this.$onDocumentChange=this.onDocumentChange.bind(this),x.on("change",this.$onDocumentChange),this.renderer.setSession(x),this.$onChangeMode=this.onChangeMode.bind(this),x.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),x.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),x.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),x.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),x.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),x.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=x.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(x)),this._signal("changeSession",{session:x,oldSession:k}),this.curOp=null,k&&k._signal("changeEditor",{oldEditor:this}),k&&(k.$editor=null),x&&x._signal("changeEditor",{editor:this}),x&&(x.$editor=this),x&&!x.destroyed&&x.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(x,k){return this.session.doc.setValue(x),k?k==1?this.navigateFileEnd():k==-1&&this.navigateFileStart():this.selectAll(),x},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(x){this.renderer.onResize(x)},_.prototype.setTheme=function(x,k){this.renderer.setTheme(x,k)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(x){this.renderer.setStyle(x)},_.prototype.unsetStyle=function(x){this.renderer.unsetStyle(x)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(x){this.setOption("fontSize",x)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var x=this;this.$highlightPending=!0,setTimeout(function(){x.$highlightPending=!1;var k=x.session;if(!(!k||k.destroyed)){k.$bracketHighlight&&(k.$bracketHighlight.markerIds.forEach(function(G){k.removeMarker(G)}),k.$bracketHighlight=null);var M=x.getCursorPosition(),O=x.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(x),P=k.getMatchingBracketRanges(M,F);if(!P){var z=new C(k,M.row,M.column),V=z.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=k.getMatchingTags(M);q&&(P=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!P&&k.$mode.getMatching&&(P=k.$mode.getMatching(x.session)),!P){x.getHighlightIndentGuides()&&x.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(P)?P.length==1&&(X="ace_error_bracket"):P=[P],P.length==2&&(m.comparePoints(P[0].end,P[1].start)==0?P=[m.fromPoints(P[0].start,P[1].end)]:m.comparePoints(P[0].start,P[1].end)==0&&(P=[m.fromPoints(P[1].start,P[0].end)])),k.$bracketHighlight={ranges:P,markerIds:P.map(function(G){return k.addMarker(G,X,"text")})},x.getHighlightIndentGuides()&&x.renderer.$textLayer.$highlightIndentGuide()}},50)}},_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(x){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",x))},_.prototype.onBlur=function(x){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",x))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(x){var k=this.session.$useWrapMode,M=x.start.row==x.end.row?x.end.row:1/0;this.renderer.updateLines(x.start.row,M,k),this._signal("change",x),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(x){var k=x.data;this.renderer.updateLines(k.first,k.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var x=this.getSession(),k;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(k=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(k=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(k=!1)),x.$highlightLineMarker&&!k)x.removeMarker(x.$highlightLineMarker.id),x.$highlightLineMarker=null;else if(!x.$highlightLineMarker&&k){var M=new m(k.row,k.column,k.row,1/0);M.id=x.addMarker(M,"ace_active-line","screenLine"),x.$highlightLineMarker=M}else k&&(x.$highlightLineMarker.start.row=k.row,x.$highlightLineMarker.end.row=k.row,x.$highlightLineMarker.start.column=k.column,x._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(x){var k=this.session;if(k.$selectionMarker&&k.removeMarker(k.$selectionMarker),k.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var M=this.selection.getRange(),O=this.getSelectionStyle();k.$selectionMarker=k.addMarker(M,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var x=this.session,k=this.getSelectionRange();if(!(k.isEmpty()||k.isMultiLine())){var M=k.start.column,O=k.end.column,F=x.getLine(k.start.row),P=F.substring(M,O);if(!(P.length>5e3||!/[\w\d]/.test(P))){var z=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:P}),V=F.substring(M-1,O+1);if(z.test(V))return z}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(x){this.renderer.updateText(),this._emit("changeMode",x)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var x=this.getSelectedText(),k=this.session.doc.getNewLineCharacter(),M=!1;if(!x&&this.$copyWithEmptySelection){M=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var P=O[F];F&&O[F-1].start.row==P.start.row||(x+=this.session.getLine(P.start.row)+k)}}var z={text:x};return this._signal("copy",z),E.lineMode=M?z.text:!1,z.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(x,k){var M={text:x,event:k};this.commands.exec("paste",this,M)},_.prototype.$handlePaste=function(x){typeof x=="string"&&(x={text:x}),this._signal("paste",x);var k=x.text,M=k===E.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)M?O.insert({row:this.selection.lead.row,column:0},k):this.insert(k);else if(M)this.selection.rangeList.ranges.forEach(function(X){O.insert({row:X.start.row,column:0},k)});else{var F=k.split(/\r\n|\r|\n/),P=this.selection.rangeList.ranges,z=F.length==2&&(!F[0]||!F[1]);if(F.length!=P.length||z)return this.commands.exec("insertstring",this,k);for(var V=P.length;V--;){var q=P[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},_.prototype.execCommand=function(x,k){return this.commands.exec(x,this,k)},_.prototype.insert=function(x,k){var M=this.session,O=M.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!k){var P=O.transformAction(M.getState(F.row),"insertion",this,M,x);P&&(x!==P.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),x=P.text)}if(x==" "&&(x=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&x.indexOf(`
203
- `)==-1){var z=m.fromPoints(F,F);z.end.column+=x.length,this.session.remove(z)}}else{var z=this.getSelectionRange();F=this.session.remove(z),this.clearSelection()}if(x==`
204
- `||x==`\r
205
- `){var G=M.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);M.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=M.getState(F.row),G=M.getLine(F.row),Z=O.checkOutdent(X,G,x);if(M.insert(F,x),P&&P.selection&&(P.selection.length==2?this.selection.setSelectionRange(new m(F.row,q+P.selection[0],F.row,q+P.selection[1])):this.selection.setSelectionRange(new m(F.row+P.selection[0],P.selection[1],F.row+P.selection[2],P.selection[3]))),this.$enableAutoIndent){if(M.getDocument().isNewLine(x)){var re=O.getNextLineIndent(X,G.slice(0,F.column),M.getTabString());M.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(X,M,F.row)}},_.prototype.autoIndent=function(){for(var x=this.session,k=x.getMode(),M=this.selection.isEmpty()?[new m(0,0,x.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",P="",z=x.getTabString(),V=0;V<M.length;V++)for(var q=M[V].start.row,X=M[V].end.row,G=q;G<=X;G++){G>0&&(O=x.getState(G-1),F=x.getLine(G-1),P=k.getNextLineIndent(O,F,z));var Z=x.getLine(G),re=k.$getIndent(Z);if(P!==re){if(re.length>0){var J=new m(G,0,G,re.length);x.remove(J)}P.length>0&&x.insert({row:G,column:0},P)}k.autoOutdent(O,x,G)}},_.prototype.onTextInput=function(x,k){if(!k)return this.keyBinding.onTextInput(x);this.startOperation({command:{name:"insertstring"}});var M=this.applyComposition.bind(this,x,k);this.selection.rangeCount?this.forEachSelection(M):M(),this.endOperation()},_.prototype.applyComposition=function(x,k){if(k.extendLeft||k.extendRight){var M=this.selection.getRange();M.start.column-=k.extendLeft,M.end.column+=k.extendRight,M.start.column<0&&(M.start.row--,M.start.column+=this.session.getLine(M.start.row).length+1),this.selection.setRange(M),!x&&!M.isEmpty()&&this.remove()}if((x||!this.selection.isEmpty())&&this.insert(x,!0),k.restoreStart||k.restoreEnd){var M=this.selection.getRange();M.start.column-=k.restoreStart,M.end.column-=k.restoreEnd,this.selection.setRange(M)}},_.prototype.onCommandKey=function(x,k,M){return this.keyBinding.onCommandKey(x,k,M)},_.prototype.setOverwrite=function(x){this.session.setOverwrite(x)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(x){this.setOption("scrollSpeed",x)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(x){this.setOption("dragDelay",x)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(x){this.setOption("selectionStyle",x)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(x){this.setOption("highlightActiveLine",x)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(x){this.setOption("highlightSelectedWord",x)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(x){this.renderer.setAnimatedScroll(x)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(x){this.renderer.setShowInvisibles(x)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(x){this.renderer.setDisplayIndentGuides(x)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(x){this.renderer.setHighlightIndentGuides(x)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(x){this.renderer.setShowPrintMargin(x)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(x){this.renderer.setPrintMarginColumn(x)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(x){this.setOption("readOnly",x)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(x){this.setOption("behavioursEnabled",x)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(x){this.setOption("wrapBehavioursEnabled",x)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(x){this.setOption("showFoldWidgets",x)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(x){this.selection.isEmpty()&&(x=="left"?this.selection.selectLeft():this.selection.selectRight());var k=this.getSelectionRange();if(this.getBehavioursEnabled()){var M=this.session,O=M.getState(k.start.row),F=M.getMode().transformAction(O,"deletion",this,M,k);if(k.end.column===0){var P=M.getTextRange(k);if(P[P.length-1]==`
206
- `){var z=M.getLine(k.end.row);/^\s+$/.test(z)&&(k.end.column=z.length)}}F&&(k=F)}this.session.remove(k),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var x=this.getSelectionRange();x.start.column==x.end.column&&x.start.row==x.end.row&&(x.end.column=0,x.end.row++),this.session.remove(x),this.clearSelection()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var x=this.getCursorPosition();this.insert(`
207
- `),this.moveCursorToPosition(x)},_.prototype.setGhostText=function(x,k){this.renderer.setGhostText(x,k)},_.prototype.removeGhostText=function(){this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var x=this.getCursorPosition(),k=x.column;if(k!==0){var M=this.session.getLine(x.row),O,F;k<M.length?(O=M.charAt(k)+M.charAt(k-1),F=new m(x.row,k-1,x.row,k+1)):(O=M.charAt(k-1)+M.charAt(k-2),F=new m(x.row,k-2,x.row,k)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},_.prototype.toLowerCase=function(){var x=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),M=this.session.getTextRange(k);this.session.replace(k,M.toLowerCase()),this.selection.setSelectionRange(x)},_.prototype.toUpperCase=function(){var x=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),M=this.session.getTextRange(k);this.session.replace(k,M.toUpperCase()),this.selection.setSelectionRange(x)},_.prototype.indent=function(){var x=this.session,k=this.getSelectionRange();if(k.start.row<k.end.row){var M=this.$getSelectedRows();x.indentRows(M.first,M.last," ");return}else if(k.start.column<k.end.column){var O=x.getTextRange(k);if(!/^\s+$/.test(O)){var M=this.$getSelectedRows();x.indentRows(M.first,M.last," ");return}}var F=x.getLine(k.start.row),P=k.start,z=x.getTabSize(),V=x.documentToScreenColumn(P.row,P.column);if(this.session.getUseSoftTabs())var q=z-V%z,X=h.stringRepeat(" ",q);else{for(var q=V%z;F[k.start.column-1]==" "&&q;)k.start.column--,q--;this.selection.setSelectionRange(k),X=" "}return this.insert(X)},_.prototype.blockIndent=function(){var x=this.$getSelectedRows();this.session.indentRows(x.first,x.last," ")},_.prototype.blockOutdent=function(){var x=this.session.getSelection();this.session.outdentRows(x.getRange())},_.prototype.sortLines=function(){for(var x=this.$getSelectedRows(),k=this.session,M=[],O=x.first;O<=x.last;O++)M.push(k.getLine(O));M.sort(function(z,V){return z.toLowerCase()<V.toLowerCase()?-1:z.toLowerCase()>V.toLowerCase()?1:0});for(var F=new m(0,0,0,0),O=x.first;O<=x.last;O++){var P=k.getLine(O);F.start.row=O,F.end.row=O,F.end.column=P.length,k.replace(F,M[O-x.first])}},_.prototype.toggleCommentLines=function(){var x=this.session.getState(this.getCursorPosition().row),k=this.$getSelectedRows();this.session.getMode().toggleCommentLines(x,this.session,k.first,k.last)},_.prototype.toggleBlockComment=function(){var x=this.getCursorPosition(),k=this.session.getState(x.row),M=this.getSelectionRange();this.session.getMode().toggleBlockComment(k,this.session,M,x)},_.prototype.getNumberAt=function(x,k){var M=/[\-]?[0-9]+(?:\.[0-9]+)?/g;M.lastIndex=0;for(var O=this.session.getLine(x);M.lastIndex<k;){var F=M.exec(O);if(F.index<=k&&F.index+F[0].length>=k){var P={value:F[0],start:F.index,end:F.index+F[0].length};return P}}return null},_.prototype.modifyNumber=function(x){var k=this.selection.getCursor().row,M=this.selection.getCursor().column,O=new m(k,M-1,k,M),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var P=this.getNumberAt(k,M);if(P){var z=P.value.indexOf(".")>=0?P.start+P.value.indexOf(".")+1:P.end,V=P.start+P.value.length-z,q=parseFloat(P.value);q*=Math.pow(10,V),z!==P.end&&M<z?x*=Math.pow(10,P.end-M-1):x*=Math.pow(10,P.end-M),q+=x,q/=Math.pow(10,V);var X=q.toFixed(V),G=new m(k,P.start,k,P.end);this.session.replace(G,X),this.moveCursorTo(k,Math.max(P.start+1,M+X.length-P.value.length))}}else this.toggleWord()},_.prototype.toggleWord=function(){var x=this.selection.getCursor().row,k=this.selection.getCursor().column;this.selection.selectWord();var M=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=M.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),P=k-O-1;P<0&&(P=0);var z=0,V=0,q=this;M.match(/[A-Za-z0-9_]+/)&&F.forEach(function(pe,Ae){V=z+pe.length,P>=z&&P<=V&&(M=pe,q.selection.clearSelection(),q.moveCursorTo(x,z+O),q.selection.selectTo(x,V+O)),z=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,me=M.match(new RegExp("^\\s?_?("+h.escapeRegExp(re[J])+")\\s?$","i"));if(me){var ve=M.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(me[1])+")($|\\s)","g"));ve&&(G=M.replace(new RegExp(h.escapeRegExp(re[J]),"i"),function(pe){var Ae=re[ae];return pe.toUpperCase()==pe?Ae=Ae.toUpperCase():pe.charAt(0).toUpperCase()==pe.charAt(0)&&(Ae=Ae.substr(0,0)+re[ae].charAt(0).toUpperCase()+Ae.substr(1)),Ae}),this.insert(G),G="")}}},_.prototype.findLinkAt=function(x,k){var M,O,F=this.session.getLine(x),P=F.split(/((?:https?|ftp):\/\/[\S]+)/),z=k;z<0&&(z=0);var V=0,q=0,X;try{for(var G=p(P),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,z>=V&&z<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){M={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(M)throw M.error}}return X},_.prototype.openLink=function(){var x=this.selection.getCursor(),k=this.findLinkAt(x.row,x.column);return k&&window.open(k,"_blank"),k!=null},_.prototype.removeLines=function(){var x=this.$getSelectedRows();this.session.removeFullLines(x.first,x.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var x=this.selection,k=this.session,M=x.getRange(),O=x.isBackwards();if(M.isEmpty()){var F=M.start.row;k.duplicateLines(F,F)}else{var P=O?M.start:M.end,z=k.insert(P,k.getTextRange(M));M.start=P,M.end=z,x.setSelectionRange(M,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(x,k,M){return this.session.moveText(x,k,M)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(x,k){var M,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var P=F.toOrientedRange();M=this.$getSelectedRows(P),O=this.session.$moveLines(M.first,M.last,k?0:x),k&&x==-1&&(O=0),P.moveBy(O,0),F.fromOrientedRange(P)}else{var z=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=z.length,G=0;G<X;G++){var Z=G;z[G].moveBy(V,0),M=this.$getSelectedRows(z[G]);for(var re=M.first,J=M.last;++G<X;){q&&z[G].moveBy(q,0);var ae=this.$getSelectedRows(z[G]);if(k&&ae.first!=J||!k&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(re,J,k?0:x),k&&x==-1&&(Z=G+1);Z<=G;)z[Z].moveBy(V,0),Z++;k||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(x){return x=(x||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(x.start.row),last:this.session.getRowFoldEnd(x.end.row)}},_.prototype.onCompositionStart=function(x){this.renderer.showComposition(x)},_.prototype.onCompositionUpdate=function(x){this.renderer.setCompositionText(x)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(x){return x>=this.getFirstVisibleRow()&&x<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(x){return x>=this.renderer.getFirstFullyVisibleRow()&&x<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(x,k){var M=this.renderer,O=this.renderer.layerConfig,F=x*Math.floor(O.height/O.lineHeight);k===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):k===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var P=M.scrollTop;M.scrollBy(0,F*O.lineHeight),k!=null&&M.scrollCursorIntoView(null,.5),M.animateScrolling(P)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(x){this.renderer.scrollToRow(x)},_.prototype.scrollToLine=function(x,k,M,O){this.renderer.scrollToLine(x,k,M,O)},_.prototype.centerSelection=function(){var x=this.getSelectionRange(),k={row:Math.floor(x.start.row+(x.end.row-x.start.row)/2),column:Math.floor(x.start.column+(x.end.column-x.start.column)/2)};this.renderer.alignCursor(k,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(x,k){this.selection.moveCursorTo(x,k)},_.prototype.moveCursorToPosition=function(x){this.selection.moveCursorToPosition(x)},_.prototype.jumpToMatching=function(x,k){var M=this.getCursorPosition(),O=new C(this.session,M.row,M.column),F=O.getCurrentToken(),P=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var z=F||O.stepForward();if(z){var V,q=!1,X={},G=M.column-z.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(z.value.match(/[{}()\[\]]/g)){for(;G<z.value.length&&!q;G++)if(re[z.value[G]])switch(Z=re[z.value[G]]+"."+z.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),z.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else z.type.indexOf("tag-name")!==-1&&(isNaN(X[z.value])&&(X[z.value]=0),F.value==="<"&&P>1?X[z.value]++:F.value==="</"&&X[z.value]--,X[z.value]===-1&&(V="tag",q=!0));q||(F=z,P++,z=O.stepForward(),G=0)}while(z&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(M),J||(J=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,(k||ae.row===M.row&&Math.abs(ae.column-M.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!z||z.type.indexOf("tag-name")===-1)return;if(J=new m(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(M.row,M.column)===0){var me=this.session.getMatchingTags(M);me&&(me.openTag.contains(M.row,M.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===M.row&&me.closeTag.start.column===M.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(x?J&&k?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},_.prototype.gotoLine=function(x,k,M){this.selection.clearSelection(),this.session.unfold({row:x-1,column:k||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(x-1,k||0),this.isRowFullyVisible(x-1)||this.scrollToLine(x-1,!0,M)},_.prototype.navigateTo=function(x,k){this.selection.moveTo(x,k)},_.prototype.navigateUp=function(x){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(-x||-1,0)},_.prototype.navigateDown=function(x){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(x||1,0)},_.prototype.navigateLeft=function(x){if(this.selection.isEmpty())for(x=x||1;x--;)this.selection.moveCursorLeft();else{var k=this.getSelectionRange().start;this.moveCursorToPosition(k)}this.clearSelection()},_.prototype.navigateRight=function(x){if(this.selection.isEmpty())for(x=x||1;x--;)this.selection.moveCursorRight();else{var k=this.getSelectionRange().end;this.moveCursorToPosition(k)}this.clearSelection()},_.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},_.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},_.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},_.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},_.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},_.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},_.prototype.replace=function(x,k){k&&this.$search.set(k);var M=this.$search.find(this.session),O=0;return M&&(this.$tryReplace(M,x)&&(O=1),this.selection.setSelectionRange(M),this.renderer.scrollSelectionIntoView(M.start,M.end)),O},_.prototype.replaceAll=function(x,k){k&&this.$search.set(k);var M=this.$search.findAll(this.session),O=0;if(!M.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var P=M.length-1;P>=0;--P)this.$tryReplace(M[P],x)&&O++;return this.selection.setSelectionRange(F),O},_.prototype.$tryReplace=function(x,k){var M=this.session.getTextRange(x);return k=this.$search.replace(M,k),k!==null?(x.end=this.session.replace(x,k),x):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(x,k,M){k||(k={}),typeof x=="string"||x instanceof RegExp?k.needle=x:typeof x=="object"&&y.mixin(k,x);var O=this.selection.getRange();k.needle==null&&(x=this.session.getTextRange(O)||this.$search.$options.needle,x||(O=this.session.getWordRange(O.start.row,O.start.column),x=this.session.getTextRange(O)),this.$search.set({needle:x})),this.$search.set(k),k.start||this.$search.set({start:O});var F=this.$search.find(this.session);if(k.preventScroll)return F;if(F)return this.revealRange(F,M),F;k.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(x,k){this.find({skipCurrent:!0,backwards:!1},x,k)},_.prototype.findPrevious=function(x,k){this.find(x,{skipCurrent:!0,backwards:!0},k)},_.prototype.revealRange=function(x,k){this.session.unfold(x),this.selection.setSelectionRange(x);var M=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(x.start,x.end,.5),k!==!1&&this.renderer.animateScrolling(M)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(x){x.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},_.prototype.setAutoScrollEditorIntoView=function(x){if(x){var k,M=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var P=this.on("changeSelection",function(){O=!0}),z=this.renderer.on("beforeRender",function(){O&&(k=M.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&k&&(M.isFocused()||M.searchBox&&M.searchBox.isFocused())){var q=M.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+k.top<0?O=!0:X.top<G.height&&X.top+k.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=k=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",P),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",z))}}},_.prototype.$resetCursorStyle=function(){var x=this.$cursorStyle||"ace",k=this.renderer.$cursorLayer;k&&(k.setSmoothBlinking(/smooth/.test(x)),k.isBlinking=!this.$readOnly&&x!="wide",v.setCssClass(k.element,"ace_slim-cursors",/slim/.test(x)))},_.prototype.prompt=function(x,k,M){var O=this;$.loadModule("ace/ext/prompt",function(F){F.prompt(O,x,k,M)})},_}();I.$uid=0,I.prototype.curOp=null,I.prototype.prevOp={},I.prototype.$mergeableCommands=["backspace","del","insertstring"],I.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],y.implement(I.prototype,w),$.defineOptions(I.prototype,"editor",{selectionStyle:{set:function(_){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:_})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(_){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(_){this.textInput.setReadOnly(_),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(_){this.textInput.setCopyWithEmptySelection(_)},initialValue:!1},cursorStyle:{set:function(_){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(_){this.setAutoScrollEditorIntoView(_)}},keyboardHandler:{set:function(_){this.setKeyboardHandler(_)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(_){this.session.setValue(_)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(_){this.setSession(_)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(_){this.renderer.$gutterLayer.setShowLineNumbers(_),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),_&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(_){this.$showLineNumbers&&_?N.attach(this):N.detach(this)}},placeholder:{set:function(_){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var x=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(x&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),v.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!x&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),v.addCssClass(this.container,"ace_hasPlaceholder");var k=v.createElement("div");k.className="ace_placeholder",k.textContent=this.$placeholder||"",this.renderer.placeholderNode=k,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!x&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(_){var x={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},k=function(O){if(O.target==this.renderer.scroller&&O.keyCode===L.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},M;_?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",k.bind(this)),this.commands.addCommand(x),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",T("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),M||(M=new b(this)),M.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",k.bind(this)),this.commands.removeCommand(x),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),M&&M.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(_){this.$textInputAriaLabel=_},initialValue:""},enableMobileMenu:{set:function(_){this.$enableMobileMenu=_},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(_,x){return(Math.abs(_.selection.lead.row-x)||x+1+(x<9?"·":""))+""},getWidth:function(_,x,k){return Math.max(x.toString().length,(k.lastRow+1).toString().length,2)*k.characterWidth},update:function(_,x){x.renderer.$loop.schedule(x.renderer.CHANGE_GUTTER)},attach:function(_){_.renderer.$gutterLayer.$renderer=this,_.on("changeSelection",this.update),this.update(null,_)},detach:function(_){_.renderer.$gutterLayer.$renderer==this&&(_.renderer.$gutterLayer.$renderer=null),_.off("changeSelection",this.update),this.update(null,_)}};r.Editor=I}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function v(h,g){this.element=h,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return v.prototype.moveContainer=function(h){p.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},v.prototype.pageChanged=function(h,g){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},v.prototype.computeLineTop=function(h,g,s){var c=g.firstRowScreen*g.lineHeight,a=Math.floor(c/this.canvasHeight),l=s.documentToScreenRow(h,0)*g.lineHeight;return l-a*this.canvasHeight},v.prototype.computeLineHeight=function(h,g,s){return g.lineHeight*s.getRowLineCount(h)},v.prototype.getLength=function(){return this.cells.length},v.prototype.get=function(h){return this.cells[h]},v.prototype.shift=function(){this.$cacheCell(this.cells.shift())},v.prototype.pop=function(){this.$cacheCell(this.cells.pop())},v.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var g=p.createFragment(this.element),s=0;s<h.length;s++)g.appendChild(h[s].element);this.element.appendChild(g)}else this.cells.push(h),this.element.appendChild(h.element)},v.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var g=p.createFragment(this.element),s=0;s<h.length;s++)g.appendChild(h[s].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},v.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},v.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},v.prototype.createCell=function(h,g,s,c){var a=this.cellCache.pop();if(!a){var l=p.createElement("div");c&&c(l),this.element.appendChild(l),a={element:l,text:"",row:h}}return a.row=h,a},v}();r.Lines=y}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/oop"),v=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,g=e("./lines").Lines,s=e("../config").nls,c=function(){function l(o){this.element=p.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var m=o[u],w=m.row,A=this.$annotations[w];A||(A=this.$annotations[w]={text:[],type:[],displayText:[]});var R=m.text,$=m.text,C=m.type;R=R?v.escapeHTML(R):m.html||"",$=$||m.html||"",A.text.indexOf(R)===-1&&(A.text.push(R),A.type.push(C),A.displayText.push($));var b=m.className;b?A.className=b:C==="error"?A.className=" ace_error":C==="security"&&!/\bace_error\b/.test(A.className)?A.className=" ace_security":C==="warning"&&!/\bace_(error|security)\b/.test(A.className)?A.className=" ace_warning":C==="info"&&!A.className?A.className=" ace_info":C==="hint"&&!A.className&&(A.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,m=o.end.row-u;if(m!==0)if(o.action=="remove")this.$annotations.splice(u,m+1,null);else{var w=new Array(m+1);w.unshift(u,1),this.$annotations.splice.apply(this.$annotations,w)}}},l.prototype.update=function(o){this.config=o;var u=this.session,m=o.firstRow,w=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=w,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var A=u.getNextFoldLine(m),R=A?A.start.row:1/0,$=null,C=-1,b=m;;){if(b>R&&(b=A.end.row+1,A=u.getNextFoldLine(b,A),R=A?A.start.row:1/0),b>w){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}$=this.$lines.get(++C),$?$.row=b:($=this.$lines.createCell(b,o,this.session,a),this.$lines.push($)),this.$renderCell($,o,A,b),b++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var u=this.session,m=u.gutterRenderer||this.$renderer,w=u.$firstLineNumber,A=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(A=u.getLength()+w-1);var R=m?m.getWidth(u,A,o):A.toString().length*o.characterWidth,$=this.$padding||this.$computePadding();R+=$.left+$.right,R!==this.gutterWidth&&!isNaN(R)&&(this.gutterWidth=R,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",R))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<u.length;m++){var w=u[m];if(w.row>=this.$cursorRow){if(w.row>this.$cursorRow){var A=this.session.getFoldLine(this.$cursorRow);if(m>0&&A&&A.start.row==u[m-1].row)w=u[m-1];else break}w.element.className="ace_gutter-active-line "+w.element.className,this.$cursorCell=w;break}}}}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var m=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),w=this.oldLastRow;if(this.oldLastRow=m,!u||w<o.firstRow)return this.update(o);if(m<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var A=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);A>0;A--)this.$lines.shift();if(w>m)for(var A=this.session.getFoldedRowCount(m+1,w);A>0;A--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),m>w&&this.$lines.push(this.$renderLines(o,w+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,m){for(var w=[],A=u,R=this.session.getNextFoldLine(A),$=R?R.start.row:1/0;A>$&&(A=R.end.row+1,R=this.session.getNextFoldLine(A,R),$=R?R.start.row:1/0),!(A>m);){var C=this.$lines.createCell(A,o,this.session,a);this.$renderCell(C,o,R,A),w.push(C),A++}return w},l.prototype.$renderCell=function(o,u,m,w){var A=o.element,R=this.session,$=A.childNodes[0],C=A.childNodes[1],b=A.childNodes[2],T=b.firstChild,E=R.$firstLineNumber,L=R.$breakpoints,I=R.$decorations,N=R.gutterRenderer||this.$renderer,_=this.$showFoldWidgets&&R.foldWidgets,x=m?m.start.row:Number.MAX_VALUE,k=u.lineHeight+"px",M=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(R,w):w+E).toString();if(this.$highlightGutterLine&&(w==this.$cursorRow||m&&w<this.$cursorRow&&w>=x&&this.$cursorRow<=m.end.row)&&(M+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),L[w]&&(M+=L[w]),I[w]&&(M+=I[w]),this.$annotations[w]&&w!==x&&(M+=this.$annotations[w].className),_){var P=_[w];P==null&&(P=_[w]=R.getFoldWidget(w))}if(P){var z="ace_fold-widget ace_"+P,V=P=="start"&&w==x&&w<m.end.row;if(V){z+=" ace_closed";for(var q="",X=!1,G=w+1;G<=m.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(X=!0,q=" ace_warning_fold")}M+=q}else z+=" ace_open";C.className!=z&&(C.className=z),p.setStyle(C.style,"height",k),p.setStyle(C.style,"display","inline-block"),C.setAttribute("role","button"),C.setAttribute("tabindex","-1");var Z=R.getFoldWidgetRange(w);Z?C.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):m?C.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):C.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[w+1])),V?(C.setAttribute("aria-expanded","false"),C.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(C.setAttribute("aria-expanded","true"),C.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else C&&(p.setStyle(C.style,"display","none"),C.setAttribute("tabindex","0"),C.removeAttribute("role"),C.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",T.className=O,T.className+=q,p.setStyle(T.style,"height",k),p.setStyle(b.style,"display","block"),p.setStyle(b.style,"height",k);var re;switch(q){case" ace_error_fold":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[w]){b.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[w].className:A.classList.add(this.$annotations[w].className.replace(" ","")),p.setStyle(T.style,"height",k),p.setStyle(b.style,"display","block"),p.setStyle(b.style,"height",k);var re;switch(this.$annotations[w].className){case" ace_error":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else p.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return F!==$.data&&($.data=F),A.className!=M&&(A.className=M),p.setStyle(o.element.style,"height",this.$lines.computeLineHeight(w,u,R)+"px"),p.setStyle(o.element.style,"top",this.$lines.computeLineTop(w,u,R)+"px"),o.text=F,b.style.display==="none"&&C.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?p.addCssClass(this.element,"ace_folding-enabled"):p.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=p.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(o.x<u.left+m.left)return"markers";if(this.$showFoldWidgets&&o.x>m.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,y.implement(c.prototype,h);function a(l){var o=document.createTextNode("");l.appendChild(o);var u=p.createElement("span");l.appendChild(u);var m=p.createElement("span");l.appendChild(m);var w=p.createElement("span");return m.appendChild(w),l}r.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,r,f){var p=e("../range").Range,y=e("../lib/dom"),v=function(){function g(s){this.element=y.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setMarkers=function(s){this.markers=s},g.prototype.elt=function(s,c){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=c,a.className=s},g.prototype.update=function(s){if(s){this.config=s,this.i=0;var c;for(var a in this.markers){var l=this.markers[a];if(!l.range){l.update(c,this,this.session,s);continue}var o=l.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),l.renderer){var u=this.$getTop(o.start.row,s),m=this.$padding+o.start.column*s.characterWidth;l.renderer(c,o,m,u,s)}else l.type=="fullLine"?this.drawFullLineMarker(c,o,l.clazz,s):l.type=="screenLine"?this.drawScreenLineMarker(c,o,l.clazz,s):o.isMultiLine()?l.type=="text"?this.drawTextMarker(c,o,l.clazz,s):this.drawMultiLineMarker(c,o,l.clazz,s):this.drawSingleLineMarker(c,o,l.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(s,c){return(s-c.firstRowScreen)*c.lineHeight},g.prototype.drawTextMarker=function(s,c,a,l,o){for(var u=this.session,m=c.start.row,w=c.end.row,A=m,R=0,$=0,C=u.getScreenLastRowColumn(A),b=new p(A,c.start.column,A,$);A<=w;A++)b.start.row=b.end.row=A,b.start.column=A==m?c.start.column:u.getRowWrapIndent(A),b.end.column=C,R=$,$=C,C=A+1<w?u.getScreenLastRowColumn(A+1):A==w?0:c.end.column,this.drawSingleLineMarker(s,b,a+(A==m?" ace_start":"")+" ace_br"+h(A==m||A==m+1&&c.start.column,R<$,$>C,A==w),l,A==w?0:1,o)},g.prototype.drawMultiLineMarker=function(s,c,a,l,o){var u=this.$padding,m=l.lineHeight,w=this.$getTop(c.start.row,l),A=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var R=c.clone();R.end.row=R.start.row,R.end.column=this.session.getLine(R.start.row).length,this.drawBidiSingleLineMarker(s,R,a+" ace_br1 ace_start",l,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:"+u+"px;top:"+w+"px;left:"+A+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var R=c.clone();R.start.row=R.end.row,R.start.column=0,this.drawBidiSingleLineMarker(s,R,a+" ace_br12",l,null,o)}else{w=this.$getTop(c.end.row,l);var $=c.end.column*l.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+$+"px;top:"+w+"px;left:"+u+"px;"+(o||""))}if(m=(c.end.row-c.start.row-1)*l.lineHeight,!(m<=0)){w=this.$getTop(c.start.row+1,l);var C=(c.start.column?1:0)|(c.end.column?0:8);this.elt(a+(C?" ace_br"+C:""),"height:"+m+"px;right:"+u+"px;top:"+w+"px;left:"+u+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(s,c,a,l,o,u){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(s,c,a,l,o,u);var m=l.lineHeight,w=(c.end.column+(o||0)-c.start.column)*l.characterWidth,A=this.$getTop(c.start.row,l),R=this.$padding+c.start.column*l.characterWidth;this.elt(a,"height:"+m+"px;width:"+w+"px;top:"+A+"px;left:"+R+"px;"+(u||""))},g.prototype.drawBidiSingleLineMarker=function(s,c,a,l,o,u){var m=l.lineHeight,w=this.$getTop(c.start.row,l),A=this.$padding,R=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);R.forEach(function($){this.elt(a,"height:"+m+"px;width:"+($.width+(o||0))+"px;top:"+w+"px;left:"+(A+$.left)+"px;"+(u||""))},this)},g.prototype.drawFullLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),m=l.lineHeight;c.start.row!=c.end.row&&(m+=this.$getTop(c.end.row,l)-u),this.elt(a,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(s,c,a,l,o){var u=this.$getTop(c.start.row,l),m=l.lineHeight;this.elt(a,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g}();v.prototype.$padding=0;function h(g,s,c,a){return(g?1:0)|(s?2:0)|(c?4:0)|(a?8:0)}r.Marker=v}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,r,f){var p=new Set(["text","rparen","lparen"]);r.isTextToken=function(y){return p.has(y)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/dom"),v=e("../lib/lang"),h=e("./lines").Lines,g=e("../lib/event_emitter").EventEmitter,s=e("../config").nls,c=e("./text_util").isTextToken,a=function(){function l(o){this.dom=y,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
208
- `&&o.getNewLineMode()!="windows",m=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],m=1;m<o+1;m++)if(this.showTabs){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_tab",w.textContent=v.stringRepeat(this.TAB_CHAR,m),u.push(w)}else u.push(this.dom.createTextNode(v.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var A="ace_indent-guide",R=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?v.stringRepeat(this.SPACE_CHAR,this.tabSize):v.stringRepeat(" ",this.tabSize),C=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?v.stringRepeat(this.TAB_CHAR,this.tabSize):$,w=this.dom.createElement("span");w.className=A+R,w.textContent=$,this.$tabStrings[" "]=w;var w=this.dom.createElement("span");w.className=A+C,w.textContent=b,this.$tabStrings[" "]=w}},l.prototype.updateLines=function(o,u,m){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var w=Math.max(u,o.firstRow),A=Math.min(m,o.lastRow),R=this.element.childNodes,$=0,C=o.firstRow;C<w;C++){var b=this.session.getFoldLine(C);if(b)if(b.containsRow(w)){w=b.start.row;break}else C=b.end.row;$++}for(var T=!1,C=w,b=this.session.getNextFoldLine(C),E=b?b.start.row:1/0;C>E&&(C=b.end.row+1,b=this.session.getNextFoldLine(C,b),E=b?b.start.row:1/0),!(C>A);){var L=R[$++];if(L){this.dom.removeChildren(L),this.$renderLine(L,C,C==E?b:!1),T&&(L.style.top=this.$lines.computeLineTop(C,o,this.session)+"px");var I=o.lineHeight*this.session.getRowLength(C)+"px";L.style.height!=I&&(T=!0,L.style.height=I)}C++}if(T)for(;$<this.$lines.cells.length;){var N=this.$lines.cells[$++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var m=o.lastRow,w=u?u.lastRow:-1;if(!u||w<o.firstRow)return this.update(o);if(m<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var A=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);A>0;A--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var A=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);A>0;A--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(o,u,m){for(var w=[],A=u,R=this.session.getNextFoldLine(A),$=R?R.start.row:1/0;A>$&&(A=R.end.row+1,R=this.session.getNextFoldLine(A,R),$=R?R.start.row:1/0),!(A>m);){var C=this.$lines.createCell(A,o,this.session),b=C.element;this.dom.removeChildren(b),y.setStyle(b.style,"height",this.$lines.computeLineHeight(A,o,this.session)+"px"),y.setStyle(b.style,"top",this.$lines.computeLineTop(A,o,this.session)+"px"),this.$renderLine(b,A,A==$?R:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",w.push(C),A++}return w},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,m=o.lastRow,w=this.$lines;w.getLength();)w.pop();w.push(this.$renderLinesFragment(o,u,m))},l.prototype.$renderToken=function(o,u,m,w){for(var A=this,R=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,$=this.dom.createFragment(this.element),C,b=0;C=R.exec(w);){var T=C[1],E=C[2],L=C[3],I=C[4],N=C[5];if(!(!A.showSpaces&&E)){var _=b!=C.index?w.slice(b,C.index):"";if(b=C.index+C[0].length,_&&$.appendChild(this.dom.createTextNode(_,this.element)),T){var x=A.session.getScreenTabSize(u+C.index);$.appendChild(A.$tabStrings[x].cloneNode(!0)),u+=x-1}else if(E)if(A.showSpaces){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space",k.textContent=v.stringRepeat(A.SPACE_CHAR,E.length),$.appendChild(k)}else $.appendChild(this.dom.createTextNode(E,this.element));else if(L){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space ace_invalid",k.textContent=v.stringRepeat(A.SPACE_CHAR,L.length),$.appendChild(k)}else if(I){u+=1;var k=this.dom.createElement("span");k.style.width=A.config.characterWidth*2+"px",k.className=A.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k.textContent=A.showSpaces?A.SPACE_CHAR:I,$.appendChild(k)}else if(N){u+=1;var k=this.dom.createElement("span");k.style.width=A.config.characterWidth*2+"px",k.className="ace_cjk",k.textContent=N,$.appendChild(k)}}}if($.appendChild(this.dom.createTextNode(b?w.slice(b):w,this.element)),c(m.type))o.appendChild($);else{var M="ace_"+m.type.replace(/\./g," ace_"),k=this.dom.createElement("span");m.type=="fold"&&(k.style.width=m.value.length*this.config.characterWidth+"px",k.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),k.className=M,k.appendChild($),o.appendChild(k)}return u+w.length},l.prototype.renderIndentGuide=function(o,u,m){var w=u.search(this.$indentGuideRe);if(w<=0||w>=m)return u;if(u[0]==" "){w-=w%this.tabSize;for(var A=w/this.tabSize,R=0;R<A;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(w)}else if(u[0]==" "){for(var R=0;R<w;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(w)}return this.$highlightIndentGuide(),u},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,w=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:w,start:u.row};var A=this.session.$bracketHighlight;if(A){for(var R=this.session.$bracketHighlight.ranges,$=0;$<R.length;$++)if(u.row!==R[$].start.row){this.$highlightIndentGuideMarker.end=R[$].start.row+1,u.row>R[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=u.row+1;$<o.length;$++){var C=o[$],b=/^\s*/.exec(C)[0].length;if(C!==""&&(this.$highlightIndentGuideMarker.end=$,b<=m))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){var o=this.element.querySelectorAll(".ace_indent-guide-active");o.forEach(function(u){u.classList.remove("ace_indent-guide-active")})},l.prototype.$setIndentGuideActive=function(o,u){var m=this.session.doc.getLine(o.row);if(m!==""){var w=o.element;if(o.element.classList&&o.element.classList.contains("ace_line_group"))if(o.element.childNodes.length>0)w=o.element.childNodes[0];else return;var A=w.childNodes;if(A){var R=A[u-1];R&&R.classList&&R.classList.contains("ace_indent-guide")&&R.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<o.length;m++){var w=o[m];if(this.$highlightIndentGuideMarker.end&&w.row>=this.$highlightIndentGuideMarker.start+1){if(w.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,u)}}else for(var m=o.length-1;m>=0;m--){var w=o[m];if(this.$highlightIndentGuideMarker.end&&w.row<this.$highlightIndentGuideMarker.start){if(w.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,m){var w=0,A=0,R=m[0],$=0,C=this.$createLineElement();o.appendChild(C);for(var b=0;b<u.length;b++){var T=u[b],E=T.value;if(b==0&&this.displayIndentGuides){if(w=E.length,E=this.renderIndentGuide(C,E,R),!E)continue;w-=E.length}if(w+E.length<R)$=this.$renderToken(C,$,T,E),w+=E.length;else{for(;w+E.length>=R;)$=this.$renderToken(C,$,T,E.substring(0,R-w)),E=E.substring(R-w),w=R,C=this.$createLineElement(),o.appendChild(C),C.appendChild(this.dom.createTextNode(v.stringRepeat(" ",m.indent),this.element)),A++,$=0,R=m[A]||Number.MAX_VALUE;E.length!=0&&(w+=E.length,$=this.$renderToken(C,$,T,E))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,$,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var m=0,w=0;w<u.length;w++){var A=u[w],R=A.value;if(!(w==0&&this.displayIndentGuides&&(R=this.renderIndentGuide(o,R),!R))){if(m+R.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,m,A,R);m=this.$renderToken(o,m,A,R)}}},l.prototype.$renderOverflowMessage=function(o,u,m,w,A){m&&this.$renderToken(o,u,m,w.slice(0,this.MAX_LINE_LENGTH-u));var R=this.dom.createElement("span");R.className="ace_inline_button ace_keyword ace_toggle_wrap",R.textContent=A?"<hide>":"<click to see more...>",o.appendChild(R)},l.prototype.$renderLine=function(o,u,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(u)),m)var w=this.$getFoldLineTokens(u,m);else var w=this.session.getTokens(u);var A=o;if(w.length){var R=this.session.getRowSplitData(u);if(R&&R.length){this.$renderWrappedLine(o,w,R);var A=o.lastChild}else{var A=o;this.$useLineGroups()&&(A=this.$createLineElement(),o.appendChild(A)),this.$renderSimpleLine(A,w)}}else this.$useLineGroups()&&(A=this.$createLineElement(),o.appendChild(A));if(this.showEOL&&A){m&&(u=m.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,A.appendChild($)}},l.prototype.$getFoldLineTokens=function(o,u){var m=this.session,w=[];function A($,C,b){for(var T=0,E=0;E+$[T].value.length<C;)if(E+=$[T].value.length,T++,T==$.length)return;if(E!=C){var L=$[T].value.substring(C-E);L.length>b-C&&(L=L.substring(0,b-C)),w.push({type:$[T].type,value:L}),E=C+L.length,T+=1}for(;E<b&&T<$.length;){var L=$[T].value;L.length+E>b?w.push({type:$[T].type,value:L.substring(0,b-E)}):w.push($[T]),E+=L.length,T+=1}}var R=m.getTokens(o);return u.walk(function($,C,b,T,E){$!=null?w.push({type:"fold",value:$}):(E&&(R=m.getTokens(C)),R.length&&A(R,T,b))},u.end.row,this.session.getLine(u.end.row).length),w},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,p.implement(a.prototype,g),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function v(h){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return v.prototype.$updateOpacity=function(h){for(var g=this.cursors,s=g.length;s--;)p.setStyle(g[s].style,"opacity",h?"":"0")},v.prototype.$startCssAnimation=function(){for(var h=this.cursors,g=h.length;g--;)h[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},v.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},v.prototype.setPadding=function(h){this.$padding=h},v.prototype.setSession=function(h){this.session=h},v.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},v.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},v.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,p.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},v.prototype.addCursor=function(){var h=p.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},v.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},v.prototype.hideCursor=function(){this.isVisible=!1,p.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.showCursor=function(){this.isVisible=!0,p.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,p.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&p.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),p.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),g()},this.blinkInterval),g()}},v.prototype.getPixelPosition=function(h,g){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(h),c=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,h.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:a}},v.prototype.isCursorInView=function(h,g){return h.top>=0&&h.top<g.maxHeight},v.prototype.update=function(h){this.config=h;var g=this.session.$selectionMarkers,s=0,c=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var s=0,a=g.length;s<a;s++){var l=this.getPixelPosition(g[s].cursor,!0);if(!((l.top>h.height+h.offset||l.top<0)&&s>1)){var o=this.cursors[c++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,l,h,g[s],this.session):this.isCursorInView(l,h)?(p.setStyle(u,"display","block"),p.translate(o,l.left,l.top),p.setStyle(u,"width",Math.round(h.characterWidth)+"px"),p.setStyle(u,"height",h.lineHeight+"px")):p.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=l,this.restartTimer()},v.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},v.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},v}();y.prototype.$padding=0,y.prototype.drawCursor=null,r.Cursor=y}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,f){var p=this&&this.__extends||function(){var o=function(u,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,A){w.__proto__=A}||function(w,A){for(var R in A)Object.prototype.hasOwnProperty.call(A,R)&&(w[R]=A[R])},o(u,m)};return function(u,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(u,m);function w(){this.constructor=u}u.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter,s=32768,c=function(){function o(u,m){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();y.implement(c.prototype,g);var a=function(o){p(u,o);function u(m,w){var A=o.call(this,m,"-v")||this;return A.scrollTop=0,A.scrollHeight=0,w.$scrollbarWidth=A.width=v.scrollbarWidth(m.ownerDocument),A.inner.style.width=A.element.style.width=(A.width||15)+5+"px",A.$minWidth=0,A}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(m){this.element.style.height=m+"px"},u.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>s?(this.coeff=s/m,m=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},u.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},u}(c);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(o){p(u,o);function u(m,w){var A=o.call(this,m,"-h")||this;return A.scrollLeft=0,A.height=w.$scrollbarWidth,A.inner.style.height=A.element.style.height=(A.height||15)+5+"px",A}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(m){this.element.style.width=m+"px"},u.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},u.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},u.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},u}(c);r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=l,r.VScrollBar=a,r.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,r,f){var p=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(m[A]=w[A])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function m(){this.constructor=o}o.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}(),y=e("./lib/oop"),v=e("./lib/dom"),h=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter;v.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
209
- position: absolute;
210
- background: rgba(128, 128, 128, 0.6);
211
- -moz-box-sizing: border-box;
212
- box-sizing: border-box;
213
- border: 1px solid #bbb;
214
- border-radius: 2px;
215
- z-index: 8;
216
- }
217
- .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
218
- position: absolute;
219
- z-index: 6;
220
- background: none;
221
- overflow: hidden!important;
222
- }
223
- .ace_editor>.ace_sb-v {
224
- z-index: 6;
225
- right: 0;
226
- top: 0;
227
- width: 12px;
228
- }
229
- .ace_editor>.ace_sb-v div {
230
- z-index: 8;
231
- right: 0;
232
- width: 100%;
233
- }
234
- .ace_editor>.ace_sb-h {
235
- bottom: 0;
236
- left: 0;
237
- height: 12px;
238
- }
239
- .ace_editor>.ace_sb-h div {
240
- bottom: 0;
241
- height: 100%;
242
- }
243
- .ace_editor>.ace_sb_grabbed {
244
- z-index: 8;
245
- background: #000;
246
- }`,"ace_scrollbar.css",!1);var s=function(){function l(o,u){this.element=v.createElement("div"),this.element.className="ace_sb"+u,this.inner=v.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();y.implement(s.prototype,g);var c=function(l){p(o,l);function o(u,m){var w=l.call(this,u,"-v")||this;return w.scrollTop=0,w.scrollHeight=0,w.parent=u,w.width=w.VScrollWidth,w.renderer=m,w.inner.style.width=w.element.style.width=(w.width||15)+"px",w.$minWidth=0,w}return o.prototype.onMouseDown=function(u,m){if(u==="mousedown"&&!(h.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var w=this,A=m.clientY,R=function(I){A=I.clientY},$=function(){clearInterval(E)},C=m.clientY,b=this.thumbTop,T=function(){if(A!==void 0){var I=w.scrollTopFromThumbTop(b+A-C);I!==w.scrollTop&&w._emit("scroll",{data:I})}};h.capture(this.inner,R,$);var E=setInterval(T,20);return h.preventDefault(m)}var L=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),h.preventDefault(m)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var m=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,m){this.pageHeight===u&&!m||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var a=function(l){p(o,l);function o(u,m){var w=l.call(this,u,"-h")||this;return w.scrollLeft=0,w.scrollWidth=0,w.height=w.HScrollHeight,w.inner.style.height=w.element.style.height=(w.height||12)+"px",w.renderer=m,w}return o.prototype.onMouseDown=function(u,m){if(u==="mousedown"&&!(h.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var w=this,A=m.clientX,R=function(I){A=I.clientX},$=function(){clearInterval(E)},C=m.clientX,b=this.thumbLeft,T=function(){if(A!==void 0){var I=w.scrollLeftFromThumbLeft(b+A-C);I!==w.scrollLeft&&w._emit("scroll",{data:I})}};h.capture(this.inner,R,$);var E=setInterval(T,20);return h.preventDefault(m)}var L=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),h.preventDefault(m)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var m=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,m){this.pageWidth===u&&!m||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=a,r.VScrollBar=c,r.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,r,f){var p=e("./lib/event"),y=function(){function v(h,g){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var s=this;this._flush=function(c){s.pending=!1;var a=s.changes;if(a&&(p.blockIdle(100),s.changes=0,s.onRender(a)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return v.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},v.prototype.clear=function(h){var g=this.changes;return this.changes=0,g},v}();r.RenderLoop=y}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/dom"),v=e("../lib/lang"),h=e("../lib/event"),g=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,c=512,a=typeof ResizeObserver=="function",l=200,o=function(){function u(m){this.el=y.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=y.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=y.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=v.stringRepeat("X",c),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(m,w){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",g.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=w?"hidden":"visible"},u.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var w=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=w&&w.width===m.width&&w.height===m.height,this._emit("changeCharacterSize",{data:m})}},u.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(w){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=h.onIdle(function w(){m.checkForSizeChanges(),h.onIdle(w,500)},500)},u.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(m){var w={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/c};return w.width===0||w.height===0?null:w},u.prototype.$measureCharWidth=function(m){this.$main.textContent=v.stringRepeat(m,c);var w=this.$main.getBoundingClientRect();return w.width/c},u.prototype.getCharacterWidth=function(m){var w=this.charSizes[m];return w===void 0&&(w=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),w},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var m=function(w,A){return["div",{style:"position: absolute;top:"+w+"px;left:"+A+"px;"}]};this.els=y.buildDom([m(0,0),m(l,0),m(0,l),m(l,l)],this.el)},u.prototype.transformCoordinates=function(m,w){if(m){var A=this.$getZoom(this.el);m=b(1/A,m)}function R(V,q,X){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*X[0]+q[0]*X[1])/G,(+V[1]*X[0]-V[0]*X[1])/G]}function $(V,q){return[V[0]-q[0],V[1]-q[1]]}function C(V,q){return[V[0]+q[0],V[1]+q[1]]}function b(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var E=T(this.els[0]),L=T(this.els[1]),I=T(this.els[2]),N=T(this.els[3]),_=R($(N,L),$(N,I),$(C(L,I),C(N,E))),x=b(1+_[0],$(L,E)),k=b(1+_[1],$(I,E));if(w){var M=w,O=_[0]*M[0]/l+_[1]*M[1]/l+1,F=C(b(M[0],x),b(M[1],k));return C(b(1/O/l,F),E)}var P=$(m,E),z=R($(x,b(_[0],P)),$(k,b(_[1],P)),P);return b(l,z)},u}();o.prototype.$characterSize={width:0,height:0},p.implement(o.prototype,s),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,r,f){f.exports=`
247
- .ace_br1 {border-top-left-radius : 3px;}
248
- .ace_br2 {border-top-right-radius : 3px;}
249
- .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
250
- .ace_br4 {border-bottom-right-radius: 3px;}
251
- .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
252
- .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
253
- .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
254
- .ace_br8 {border-bottom-left-radius : 3px;}
255
- .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
256
- .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
257
- .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
258
- .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
259
- .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
260
- .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
261
- .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
262
-
263
-
264
- .ace_editor {
265
- position: relative;
266
- overflow: hidden;
267
- padding: 0;
268
- font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
269
- direction: ltr;
270
- text-align: left;
271
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
272
- forced-color-adjust: none;
273
- }
274
-
275
- .ace_scroller {
276
- position: absolute;
277
- overflow: hidden;
278
- top: 0;
279
- bottom: 0;
280
- background-color: inherit;
281
- -ms-user-select: none;
282
- -moz-user-select: none;
283
- -webkit-user-select: none;
284
- user-select: none;
285
- cursor: text;
286
- }
287
-
288
- .ace_content {
289
- position: absolute;
290
- box-sizing: border-box;
291
- min-width: 100%;
292
- contain: style size layout;
293
- font-variant-ligatures: no-common-ligatures;
294
- }
295
-
296
- .ace_keyboard-focus:focus {
297
- box-shadow: inset 0 0 0 2px #5E9ED6;
298
- outline: none;
299
- }
300
-
301
- .ace_dragging .ace_scroller:before{
302
- position: absolute;
303
- top: 0;
304
- left: 0;
305
- right: 0;
306
- bottom: 0;
307
- content: '';
308
- background: rgba(250, 250, 250, 0.01);
309
- z-index: 1000;
310
- }
311
- .ace_dragging.ace_dark .ace_scroller:before{
312
- background: rgba(0, 0, 0, 0.01);
313
- }
314
-
315
- .ace_gutter {
316
- position: absolute;
317
- overflow : hidden;
318
- width: auto;
319
- top: 0;
320
- bottom: 0;
321
- left: 0;
322
- cursor: default;
323
- z-index: 4;
324
- -ms-user-select: none;
325
- -moz-user-select: none;
326
- -webkit-user-select: none;
327
- user-select: none;
328
- contain: style size layout;
329
- }
330
-
331
- .ace_gutter-active-line {
332
- position: absolute;
333
- left: 0;
334
- right: 0;
335
- }
336
-
337
- .ace_scroller.ace_scroll-left:after {
338
- content: "";
339
- position: absolute;
340
- top: 0;
341
- right: 0;
342
- bottom: 0;
343
- left: 0;
344
- box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
345
- pointer-events: none;
346
- }
347
-
348
- .ace_gutter-cell, .ace_gutter-cell_svg-icons {
349
- position: absolute;
350
- top: 0;
351
- left: 0;
352
- right: 0;
353
- padding-left: 19px;
354
- padding-right: 6px;
355
- background-repeat: no-repeat;
356
- }
357
-
358
- .ace_gutter-cell_svg-icons .ace_gutter_annotation {
359
- margin-left: -14px;
360
- float: left;
361
- }
362
-
363
- .ace_gutter-cell .ace_gutter_annotation {
364
- margin-left: -19px;
365
- float: left;
366
- }
367
-
368
- .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
369
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
370
- background-repeat: no-repeat;
371
- background-position: 2px center;
372
- }
373
-
374
- .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
375
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
376
- background-repeat: no-repeat;
377
- background-position: 2px center;
378
- }
379
-
380
- .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
381
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
382
- background-repeat: no-repeat;
383
- background-position: 2px center;
384
- }
385
-
386
- .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
387
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
388
- }
389
-
390
- .ace_icon_svg.ace_error {
391
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
392
- background-color: crimson;
393
- }
394
- .ace_icon_svg.ace_security {
395
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
396
- background-color: crimson;
397
- }
398
- .ace_icon_svg.ace_warning {
399
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
400
- background-color: darkorange;
401
- }
402
- .ace_icon_svg.ace_info {
403
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
404
- background-color: royalblue;
405
- }
406
- .ace_icon_svg.ace_hint {
407
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
408
- background-color: silver;
409
- }
410
-
411
- .ace_icon_svg.ace_error_fold {
412
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
413
- background-color: crimson;
414
- }
415
- .ace_icon_svg.ace_security_fold {
416
- -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
417
- background-color: crimson;
418
- }
419
- .ace_icon_svg.ace_warning_fold {
420
- -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
421
- background-color: darkorange;
422
- }
423
-
424
- .ace_scrollbar {
425
- contain: strict;
426
- position: absolute;
427
- right: 0;
428
- bottom: 0;
429
- z-index: 6;
430
- }
431
-
432
- .ace_scrollbar-inner {
433
- position: absolute;
434
- cursor: text;
435
- left: 0;
436
- top: 0;
437
- }
438
-
439
- .ace_scrollbar-v{
440
- overflow-x: hidden;
441
- overflow-y: scroll;
442
- top: 0;
443
- }
444
-
445
- .ace_scrollbar-h {
446
- overflow-x: scroll;
447
- overflow-y: hidden;
448
- left: 0;
449
- }
450
-
451
- .ace_print-margin {
452
- position: absolute;
453
- height: 100%;
454
- }
455
-
456
- .ace_text-input {
457
- position: absolute;
458
- z-index: 0;
459
- width: 0.5em;
460
- height: 1em;
461
- opacity: 0;
462
- background: transparent;
463
- -moz-appearance: none;
464
- appearance: none;
465
- border: none;
466
- resize: none;
467
- outline: none;
468
- overflow: hidden;
469
- font: inherit;
470
- padding: 0 1px;
471
- margin: 0 -1px;
472
- contain: strict;
473
- -ms-user-select: text;
474
- -moz-user-select: text;
475
- -webkit-user-select: text;
476
- user-select: text;
477
- /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
478
- white-space: pre!important;
479
- }
480
- .ace_text-input.ace_composition {
481
- background: transparent;
482
- color: inherit;
483
- z-index: 1000;
484
- opacity: 1;
485
- }
486
- .ace_composition_placeholder { color: transparent }
487
- .ace_composition_marker {
488
- border-bottom: 1px solid;
489
- position: absolute;
490
- border-radius: 0;
491
- margin-top: 1px;
492
- }
493
-
494
- [ace_nocontext=true] {
495
- transform: none!important;
496
- filter: none!important;
497
- clip-path: none!important;
498
- mask : none!important;
499
- contain: none!important;
500
- perspective: none!important;
501
- mix-blend-mode: initial!important;
502
- z-index: auto;
503
- }
504
-
505
- .ace_layer {
506
- z-index: 1;
507
- position: absolute;
508
- overflow: hidden;
509
- /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
510
- word-wrap: normal;
511
- white-space: pre;
512
- height: 100%;
513
- width: 100%;
514
- box-sizing: border-box;
515
- /* setting pointer-events: auto; on node under the mouse, which changes
516
- during scroll, will break mouse wheel scrolling in Safari */
517
- pointer-events: none;
518
- }
519
-
520
- .ace_gutter-layer {
521
- position: relative;
522
- width: auto;
523
- text-align: right;
524
- pointer-events: auto;
525
- height: 1000000px;
526
- contain: style size layout;
527
- }
528
-
529
- .ace_text-layer {
530
- font: inherit !important;
531
- position: absolute;
532
- height: 1000000px;
533
- width: 1000000px;
534
- contain: style size layout;
535
- }
536
-
537
- .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
538
- contain: style size layout;
539
- position: absolute;
540
- top: 0;
541
- left: 0;
542
- right: 0;
543
- }
544
-
545
- .ace_hidpi .ace_text-layer,
546
- .ace_hidpi .ace_gutter-layer,
547
- .ace_hidpi .ace_content,
548
- .ace_hidpi .ace_gutter {
549
- contain: strict;
550
- }
551
- .ace_hidpi .ace_text-layer > .ace_line,
552
- .ace_hidpi .ace_text-layer > .ace_line_group {
553
- contain: strict;
554
- }
555
-
556
- .ace_cjk {
557
- display: inline-block;
558
- text-align: center;
559
- }
560
-
561
- .ace_cursor-layer {
562
- z-index: 4;
563
- }
564
-
565
- .ace_cursor {
566
- z-index: 4;
567
- position: absolute;
568
- box-sizing: border-box;
569
- border-left: 2px solid;
570
- /* workaround for smooth cursor repaintng whole screen in chrome */
571
- transform: translatez(0);
572
- }
573
-
574
- .ace_multiselect .ace_cursor {
575
- border-left-width: 1px;
576
- }
577
-
578
- .ace_slim-cursors .ace_cursor {
579
- border-left-width: 1px;
580
- }
581
-
582
- .ace_overwrite-cursors .ace_cursor {
583
- border-left-width: 0;
584
- border-bottom: 1px solid;
585
- }
586
-
587
- .ace_hidden-cursors .ace_cursor {
588
- opacity: 0.2;
589
- }
590
-
591
- .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
592
- opacity: 0;
593
- }
594
-
595
- .ace_smooth-blinking .ace_cursor {
596
- transition: opacity 0.18s;
597
- }
598
-
599
- .ace_animate-blinking .ace_cursor {
600
- animation-duration: 1000ms;
601
- animation-timing-function: step-end;
602
- animation-name: blink-ace-animate;
603
- animation-iteration-count: infinite;
604
- }
605
-
606
- .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
607
- animation-duration: 1000ms;
608
- animation-timing-function: ease-in-out;
609
- animation-name: blink-ace-animate-smooth;
610
- }
611
-
612
- @keyframes blink-ace-animate {
613
- from, to { opacity: 1; }
614
- 60% { opacity: 0; }
615
- }
616
-
617
- @keyframes blink-ace-animate-smooth {
618
- from, to { opacity: 1; }
619
- 45% { opacity: 1; }
620
- 60% { opacity: 0; }
621
- 85% { opacity: 0; }
622
- }
623
-
624
- .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
625
- position: absolute;
626
- z-index: 3;
627
- }
628
-
629
- .ace_marker-layer .ace_selection {
630
- position: absolute;
631
- z-index: 5;
632
- }
633
-
634
- .ace_marker-layer .ace_bracket {
635
- position: absolute;
636
- z-index: 6;
637
- }
638
-
639
- .ace_marker-layer .ace_error_bracket {
640
- position: absolute;
641
- border-bottom: 1px solid #DE5555;
642
- border-radius: 0;
643
- }
644
-
645
- .ace_marker-layer .ace_active-line {
646
- position: absolute;
647
- z-index: 2;
648
- }
649
-
650
- .ace_marker-layer .ace_selected-word {
651
- position: absolute;
652
- z-index: 4;
653
- box-sizing: border-box;
654
- }
655
-
656
- .ace_line .ace_fold {
657
- box-sizing: border-box;
658
-
659
- display: inline-block;
660
- height: 11px;
661
- margin-top: -2px;
662
- vertical-align: middle;
663
-
664
- background-image:
665
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
666
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
667
- background-repeat: no-repeat, repeat-x;
668
- background-position: center center, top left;
669
- color: transparent;
670
-
671
- border: 1px solid black;
672
- border-radius: 2px;
673
-
674
- cursor: pointer;
675
- pointer-events: auto;
676
- }
677
-
678
- .ace_dark .ace_fold {
679
- }
680
-
681
- .ace_fold:hover{
682
- background-image:
683
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
684
- url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
685
- }
686
-
687
- .ace_tooltip {
688
- background-color: #f5f5f5;
689
- border: 1px solid gray;
690
- border-radius: 1px;
691
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
692
- color: black;
693
- max-width: 100%;
694
- padding: 3px 4px;
695
- position: fixed;
696
- z-index: 999999;
697
- box-sizing: border-box;
698
- cursor: default;
699
- white-space: pre-wrap;
700
- word-wrap: break-word;
701
- line-height: normal;
702
- font-style: normal;
703
- font-weight: normal;
704
- letter-spacing: normal;
705
- pointer-events: none;
706
- overflow: auto;
707
- max-width: min(60em, 66vw);
708
- overscroll-behavior: contain;
709
- }
710
- .ace_tooltip pre {
711
- white-space: pre-wrap;
712
- }
713
-
714
- .ace_tooltip.ace_dark {
715
- background-color: #636363;
716
- color: #fff;
717
- }
718
-
719
- .ace_tooltip:focus {
720
- outline: 1px solid #5E9ED6;
721
- }
722
-
723
- .ace_icon {
724
- display: inline-block;
725
- width: 18px;
726
- vertical-align: top;
727
- }
728
-
729
- .ace_icon_svg {
730
- display: inline-block;
731
- width: 12px;
732
- vertical-align: top;
733
- -webkit-mask-repeat: no-repeat;
734
- -webkit-mask-size: 12px;
735
- -webkit-mask-position: center;
736
- }
737
-
738
- .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
739
- padding-right: 13px;
740
- }
741
-
742
- .ace_fold-widget {
743
- box-sizing: border-box;
744
-
745
- margin: 0 -12px 0 1px;
746
- display: none;
747
- width: 11px;
748
- vertical-align: top;
749
-
750
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
751
- background-repeat: no-repeat;
752
- background-position: center;
753
-
754
- border-radius: 3px;
755
-
756
- border: 1px solid transparent;
757
- cursor: pointer;
758
- }
759
-
760
- .ace_folding-enabled .ace_fold-widget {
761
- display: inline-block;
762
- }
763
-
764
- .ace_fold-widget.ace_end {
765
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
766
- }
767
-
768
- .ace_fold-widget.ace_closed {
769
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
770
- }
771
-
772
- .ace_fold-widget:hover {
773
- border: 1px solid rgba(0, 0, 0, 0.3);
774
- background-color: rgba(255, 255, 255, 0.2);
775
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
776
- }
777
-
778
- .ace_fold-widget:active {
779
- border: 1px solid rgba(0, 0, 0, 0.4);
780
- background-color: rgba(0, 0, 0, 0.05);
781
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
782
- }
783
- /**
784
- * Dark version for fold widgets
785
- */
786
- .ace_dark .ace_fold-widget {
787
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
788
- }
789
- .ace_dark .ace_fold-widget.ace_end {
790
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
791
- }
792
- .ace_dark .ace_fold-widget.ace_closed {
793
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
794
- }
795
- .ace_dark .ace_fold-widget:hover {
796
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
797
- background-color: rgba(255, 255, 255, 0.1);
798
- }
799
- .ace_dark .ace_fold-widget:active {
800
- box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
801
- }
802
-
803
- .ace_inline_button {
804
- border: 1px solid lightgray;
805
- display: inline-block;
806
- margin: -1px 8px;
807
- padding: 0 5px;
808
- pointer-events: auto;
809
- cursor: pointer;
810
- }
811
- .ace_inline_button:hover {
812
- border-color: gray;
813
- background: rgba(200,200,200,0.2);
814
- display: inline-block;
815
- pointer-events: auto;
816
- }
817
-
818
- .ace_fold-widget.ace_invalid {
819
- background-color: #FFB4B4;
820
- border-color: #DE5555;
821
- }
822
-
823
- .ace_fade-fold-widgets .ace_fold-widget {
824
- transition: opacity 0.4s ease 0.05s;
825
- opacity: 0;
826
- }
827
-
828
- .ace_fade-fold-widgets:hover .ace_fold-widget {
829
- transition: opacity 0.05s ease 0.05s;
830
- opacity:1;
831
- }
832
-
833
- .ace_underline {
834
- text-decoration: underline;
835
- }
836
-
837
- .ace_bold {
838
- font-weight: bold;
839
- }
840
-
841
- .ace_nobold .ace_bold {
842
- font-weight: normal;
843
- }
844
-
845
- .ace_italic {
846
- font-style: italic;
847
- }
848
-
849
-
850
- .ace_error-marker {
851
- background-color: rgba(255, 0, 0,0.2);
852
- position: absolute;
853
- z-index: 9;
854
- }
855
-
856
- .ace_highlight-marker {
857
- background-color: rgba(255, 255, 0,0.2);
858
- position: absolute;
859
- z-index: 8;
860
- }
861
-
862
- .ace_mobile-menu {
863
- position: absolute;
864
- line-height: 1.5;
865
- border-radius: 4px;
866
- -ms-user-select: none;
867
- -moz-user-select: none;
868
- -webkit-user-select: none;
869
- user-select: none;
870
- background: white;
871
- box-shadow: 1px 3px 2px grey;
872
- border: 1px solid #dcdcdc;
873
- color: black;
874
- }
875
- .ace_dark > .ace_mobile-menu {
876
- background: #333;
877
- color: #ccc;
878
- box-shadow: 1px 3px 2px grey;
879
- border: 1px solid #444;
880
-
881
- }
882
- .ace_mobile-button {
883
- padding: 2px;
884
- cursor: pointer;
885
- overflow: hidden;
886
- }
887
- .ace_mobile-button:hover {
888
- background-color: #eee;
889
- opacity:1;
890
- }
891
- .ace_mobile-button:active {
892
- background-color: #ddd;
893
- }
894
-
895
- .ace_placeholder {
896
- position: relative;
897
- font-family: arial;
898
- transform: scale(0.9);
899
- transform-origin: left;
900
- white-space: pre;
901
- opacity: 0.7;
902
- margin: 0 10px;
903
- z-index: 1;
904
- }
905
-
906
- .ace_ghost_text {
907
- opacity: 0.5;
908
- font-style: italic;
909
- }
910
-
911
- .ace_ghost_text_container > div {
912
- white-space: pre;
913
- }
914
-
915
- .ghost_text_line_wrapped::after {
916
- content: "↩";
917
- position: absolute;
918
- }
919
-
920
- .ace_lineWidgetContainer.ace_ghost_text {
921
- margin: 0px 4px
922
- }
923
-
924
- .ace_screenreader-only {
925
- position:absolute;
926
- left:-10000px;
927
- top:auto;
928
- width:1px;
929
- height:1px;
930
- overflow:hidden;
931
- }
932
-
933
- .ace_hidden_token {
934
- display: none;
935
- }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/oop"),v=e("../lib/event_emitter").EventEmitter,h=function(){function g(s,c){this.canvas=p.createElement("canvas"),this.renderer=c,this.pixelRatio=1,this.maxHeight=c.layerConfig.maxHeight,this.lineHeight=c.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(s){var c=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var a=(s.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var l=this.canvas.getContext("2d");function o(N,_){return N.priority<_.priority?-1:N.priority>_.priority?1:0}var u=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),u){var m={info:1,warning:2,error:3};u.forEach(function(N){N.priority=m[N.type]||null}),u=u.sort(o);for(var w=this.renderer.session.$foldData,A=0;A<u.length;A++){var R=u[A].row,$=this.compensateFoldRows(R,w),C=Math.round((R-$)*this.lineHeight*this.heightRatio),b=Math.round((R-$)*this.lineHeight*this.heightRatio),T=Math.round(((R-$)*this.lineHeight+this.lineHeight)*this.heightRatio),E=T-b;if(E<this.minDecorationHeight){var L=(b+T)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),T=Math.round(L+this.halfMinDecorationHeight)}l.fillStyle=c[u[A].type]||null,l.fillRect(0,C,this.canvasWidth,T-b)}}var I=this.renderer.session.selection.getCursor();if(I){var $=this.compensateFoldRows(I.row,w),C=Math.round((I.row-$)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,C,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(s,c){var a=0;if(c&&c.length>0)for(var l=0;l<c.length;l++)s>c[l].start.row&&s<c[l].end.row?a+=s-c[l].start.row:s>=c[l].end.row&&(a+=c[l].end.row-c[l].start.row);return a},g}();y.implement(h.prototype,v),r.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/dom"),v=e("./lib/lang"),h=e("./config"),g=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,c=e("./layer/text").Text,a=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,m=e("./scrollbar_custom").VScrollBar,w=e("./renderloop").RenderLoop,A=e("./layer/font_metrics").FontMetrics,R=e("./lib/event_emitter").EventEmitter,$=e("./css/editor-css"),C=e("./layer/decorators").Decorator,b=e("./lib/useragent"),T=e("./layer/text_util").isTextToken;y.importCssString($,"ace_editor.css",!1);var E=function(){function L(I,N){var _=this;this.container=I||y.createElement("div"),y.addCssClass(this.container,"ace_editor"),y.HI_DPI&&y.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=y.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=y.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=y.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var x=this.$textLayer=new c(this.content);this.canvas=x.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function(k){_.$scrollAnimation||_.session.setScrollTop(k.data-_.scrollMargin.top)}),this.scrollBarH.on("scroll",function(k){_.$scrollAnimation||_.session.setScrollLeft(k.data-_.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new A(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(k){_.updateCharacterSize(),_.onResize(!0,_.gutterWidth,_.$size.width,_.$size.height),_._signal("changeCharacterSize",k)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new w(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return L.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),y.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(I){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=I,I&&this.scrollMargin.top&&I.getScrollTop()<=0&&I.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(I),this.$markerBack.setSession(I),this.$markerFront.setSession(I),this.$gutterLayer.setSession(I),this.$textLayer.setSession(I),I&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},L.prototype.updateLines=function(I,N,_){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>I&&(this.$changedLines.firstRow=I),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:I,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(_)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(I){I?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(I,N,_,x){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=I?1:0;var k=this.container;x||(x=k.clientHeight||k.scrollHeight),!x&&this.$maxLines&&this.lineHeight>1&&(!k.style.height||k.style.height=="0px")&&(k.style.height="1px",x=k.clientHeight||k.scrollHeight),_||(_=k.clientWidth||k.scrollWidth);var M=this.$updateCachedSize(I,N,_,x);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!_&&!x)return this.resizing=0;I&&(this.$gutterLayer.$padding=null),I?this.$renderChanges(M|this.$changes,!0):this.$loop.schedule(M|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(I,N,_,x){x-=this.$extraHeight||0;var k=0,M=this.$size,O={width:M.width,height:M.height,scrollerHeight:M.scrollerHeight,scrollerWidth:M.scrollerWidth};if(x&&(I||M.height!=x)&&(M.height=x,k|=this.CHANGE_SIZE,M.scrollerHeight=M.height,this.$horizScroll&&(M.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(M.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",k=k|this.CHANGE_SCROLL),_&&(I||M.width!=_)){k|=this.CHANGE_SIZE,M.width=_,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,y.setStyle(this.scrollBarH.element.style,"left",N+"px"),y.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),M.scrollerWidth=Math.max(0,_-N-this.scrollBarV.getWidth()-this.margin.h),y.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";y.setStyle(this.scrollBarH.element.style,"right",F),y.setStyle(this.scroller.style,"right",F),y.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(M.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||I)&&(k|=this.CHANGE_FULL)}return M.$dirty=!_||!x,k&&this._signal("resize",O),k},L.prototype.onGutterResize=function(I){var N=this.$showGutter?I:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},L.prototype.adjustWrapLimit=function(){var I=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(I/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(I){this.setOption("animatedScroll",I)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(I){this.setOption("showInvisibles",I),this.session.$bidiHandler.setShowInvisibles(I)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(I){this.setOption("displayIndentGuides",I)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(I){this.setOption("highlightIndentGuides",I)},L.prototype.setShowPrintMargin=function(I){this.setOption("showPrintMargin",I)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(I){this.setOption("printMarginColumn",I)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(I){return this.setOption("showGutter",I)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(I){this.setOption("fadeFoldWidgets",I)},L.prototype.setHighlightGutterLine=function(I){this.setOption("highlightGutterLine",I)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var I=y.createElement("div");I.className="ace_layer ace_print-margin-layer",this.$printMarginEl=y.createElement("div"),this.$printMarginEl.className="ace_print-margin",I.appendChild(this.$printMarginEl),this.content.insertBefore(I,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var I=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){y.translate(this.textarea,-100,0);return}var _=this.$cursorLayer.$pixelPos;if(_){N&&N.markerRange&&(_=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var x=this.layerConfig,k=_.top,M=_.left;k-=x.offset;var O=N&&N.useTextareaForIME||b.isMobile?this.lineHeight:1;if(k<0||k>x.height-O){y.translate(this.textarea,0,0);return}var F=1,P=this.$size.height-O;if(!N)k+=this.lineHeight;else if(N.useTextareaForIME){var z=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(z)[0]}else k+=this.lineHeight+2;M-=this.scrollLeft,M>this.$size.scrollerWidth-F&&(M=this.$size.scrollerWidth-F),M+=this.gutterWidth+this.margin.left,y.setStyle(I,"height",O+"px"),y.setStyle(I,"width",F+"px"),y.translate(this.textarea,Math.min(M,this.$size.scrollerWidth-F),Math.min(k,P))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var I=this.layerConfig,N=I.lastRow,_=this.session.documentToScreenRow(N,0)*I.lineHeight;return _-this.session.getScrollTop()>I.height-I.lineHeight?N-1:N},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(I){this.$padding=I,this.$textLayer.setPadding(I),this.$cursorLayer.setPadding(I),this.$markerFront.setPadding(I),this.$markerBack.setPadding(I),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(I,N,_,x){var k=this.scrollMargin;k.top=I|0,k.bottom=N|0,k.right=x|0,k.left=_|0,k.v=k.top+k.bottom,k.h=k.left+k.right,k.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-k.top),this.updateFull()},L.prototype.setMargin=function(I,N,_,x){var k=this.margin;k.top=I|0,k.bottom=N|0,k.right=x|0,k.left=_|0,k.v=k.top+k.bottom,k.h=k.left+k.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(I){this.setOption("hScrollBarAlwaysVisible",I)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(I){this.setOption("vScrollBarAlwaysVisible",I)},L.prototype.$updateScrollBarV=function(){var I=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(I-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>I-N&&(I=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(I+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(I,N){if(this.$changes&&(I|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!I&&!N){this.$changes|=I;return}if(this.$size.$dirty)return this.$changes|=I,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",I),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var _=this.layerConfig;if(I&this.CHANGE_FULL||I&this.CHANGE_SIZE||I&this.CHANGE_TEXT||I&this.CHANGE_LINES||I&this.CHANGE_SCROLL||I&this.CHANGE_H_SCROLL){if(I|=this.$computeLayerConfig()|this.$loop.clear(),_.firstRow!=this.layerConfig.firstRow&&_.firstRowScreen==this.layerConfig.firstRowScreen){var x=this.scrollTop+(_.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;x>0&&(this.scrollTop=x,I=I|this.CHANGE_SCROLL,I|=this.$computeLayerConfig()|this.$loop.clear())}_=this.layerConfig,this.$updateScrollBarV(),I&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),y.translate(this.content,-this.scrollLeft,-_.offset);var k=_.width+2*this.$padding+"px",M=_.minHeight+"px";y.setStyle(this.content.style,"width",k),y.setStyle(this.content.style,"height",M)}if(I&this.CHANGE_H_SCROLL&&(y.translate(this.content,-this.scrollLeft,-_.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),I&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}if(I&this.CHANGE_SCROLL){this.$changedLines=null,I&this.CHANGE_TEXT||I&this.CHANGE_LINES?this.$textLayer.update(_):this.$textLayer.scrollLines(_),this.$showGutter&&(I&this.CHANGE_GUTTER||I&this.CHANGE_LINES?this.$gutterLayer.update(_):this.$gutterLayer.scrollLines(_)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}I&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):I&this.CHANGE_LINES?((this.$updateLines()||I&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):I&this.CHANGE_TEXT||I&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):I&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)),I&this.CHANGE_CURSOR&&(this.$cursorLayer.update(_),this.$moveTextAreaToCursor()),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(_),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(_),this._signal("afterRender",I)},L.prototype.$autosize=function(){var I=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,_=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,I))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(_+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&_>this.$maxPixelHeight&&(_=this.$maxPixelHeight);var x=_<=2*this.lineHeight,k=!x&&I>N;if(_!=this.desiredHeight||this.$size.height!=this.desiredHeight||k!=this.$vScroll){k!=this.$vScroll&&(this.$vScroll=k,this.scrollBarV.setVisible(k));var M=this.container.clientWidth;this.container.style.height=_+"px",this.$updateCachedSize(!0,this.$gutterWidth,M,_),this.desiredHeight=_,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var I=this.session,N=this.$size,_=N.height<=2*this.lineHeight,x=this.session.getScreenLength(),k=x*this.lineHeight,M=this.$getLongestLine(),O=!_&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-M-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var P=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),_=N.height<=2*this.lineHeight);var z=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;k+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,k-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,M+2*this.$padding-N.scrollerWidth+q.right)));var X=!_&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-k+V<0||this.scrollTop>q.top),G=P!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(z/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,me,ve,pe=this.lineHeight;J=I.screenToDocumentRow(J,0);var Ae=I.getFoldLine(J);Ae&&(J=Ae.start.row),me=I.documentToScreenRow(J,0),ve=I.getRowLength(J)*pe,ae=Math.min(I.screenToDocumentRow(ae,0),I.getLength()-1),z=N.scrollerHeight+I.getRowLength(ae)*pe+ve,Z=this.scrollTop-me*pe;var rt=0;return(this.layerConfig.width!=M||F)&&(rt=this.CHANGE_H_SCROLL),(F||G)&&(rt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(M=this.$getLongestLine())),this.layerConfig={width:M,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:pe,characterWidth:this.characterWidth,minHeight:z,maxHeight:k,offset:Z,gutterOffset:pe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/pe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(M-this.$padding),rt},L.prototype.$updateLines=function(){if(this.$changedLines){var I=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var _=this.layerConfig;if(!(I>_.lastRow+1)&&!(N<_.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(_),this.$textLayer.update(_);return}return this.$textLayer.updateLines(_,I,N),!0}}},L.prototype.$getLongestLine=function(){var I=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(I+=1),this.$textLayer&&I>this.$textLayer.MAX_LINE_LENGTH&&(I=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(I*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(I,N){this.$gutterLayer.addGutterDecoration(I,N)},L.prototype.removeGutterDecoration=function(I,N){this.$gutterLayer.removeGutterDecoration(I,N)},L.prototype.updateBreakpoints=function(I){this._rows=I,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(I){this.$gutterLayer.setAnnotations(I),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(I,N,_){this.scrollCursorIntoView(I,_),this.scrollCursorIntoView(N,_)},L.prototype.scrollCursorIntoView=function(I,N,_){if(this.$size.scrollerHeight!==0){var x=this.$cursorLayer.getPixelPosition(I),k=x.left,M=x.top,O=_&&_.top||0,F=_&&_.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var P=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;P+O>M?(N&&P+O>M+this.lineHeight&&(M-=N*this.$size.scrollerHeight),M===0&&(M=-this.scrollMargin.top),this.session.setScrollTop(M)):P+this.$size.scrollerHeight-F<M+this.lineHeight&&(N&&P+this.$size.scrollerHeight-F<M-this.lineHeight&&(M+=N*this.$size.scrollerHeight),this.session.setScrollTop(M+this.lineHeight+F-this.$size.scrollerHeight));var z=this.scrollLeft,V=2*this.layerConfig.characterWidth;k-V<z?(k-=V,k<this.$padding+V&&(k=-this.scrollMargin.left),this.session.setScrollLeft(k)):(k+=V,z+this.$size.scrollerWidth<k+this.characterWidth?this.session.setScrollLeft(Math.round(k+this.characterWidth-this.$size.scrollerWidth)):z<=this.$padding&&k-z<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(I){this.session.setScrollTop(I*this.lineHeight)},L.prototype.alignCursor=function(I,N){typeof I=="number"&&(I={row:I,column:0});var _=this.$cursorLayer.getPixelPosition(I),x=this.$size.scrollerHeight-this.lineHeight,k=_.top-x*(N||0);return this.session.setScrollTop(k),k},L.prototype.$calcSteps=function(I,N){var _=0,x=this.STEPS,k=[],M=function(O,F,P){return P*(Math.pow(O-1,3)+1)+F};for(_=0;_<x;++_)k.push(M(_/this.STEPS,I,N-I));return k},L.prototype.scrollToLine=function(I,N,_,x){var k=this.$cursorLayer.getPixelPosition({row:I,column:0}),M=k.top;N&&(M-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(M),_!==!1&&this.animateScrolling(O,x)},L.prototype.animateScrolling=function(I,N){var _=this.scrollTop;if(!this.$animatedScroll)return;var x=this;if(I==_)return;if(this.$scrollAnimation){var k=this.$scrollAnimation.steps;if(k.length&&(I=k[0],I==_))return}var M=x.$calcSteps(I,_);this.$scrollAnimation={from:I,to:_,steps:M},clearInterval(this.$timer),x.session.setScrollTop(M.shift()),x.session.$scrollTop=_;function O(){x.$timer=clearInterval(x.$timer),x.$scrollAnimation=null,x.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(x.$stopAnimation){O();return}if(!x.session)return clearInterval(x.$timer);M.length?(x.session.setScrollTop(M.shift()),x.session.$scrollTop=_):_!=null?(x.session.$scrollTop=-1,x.session.setScrollTop(_),_=null):O()},10)},L.prototype.scrollToY=function(I){this.scrollTop!==I&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=I)},L.prototype.scrollToX=function(I){this.scrollLeft!==I&&(this.scrollLeft=I),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(I,N){this.session.setScrollTop(N),this.session.setScrollLeft(I)},L.prototype.scrollBy=function(I,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),I&&this.session.setScrollLeft(this.session.getScrollLeft()+I)},L.prototype.isScrollableBy=function(I,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||I<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||I>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(I,N){var _;if(this.$hasCssTransforms){_={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([I,N]);I=x[1]-this.gutterWidth-this.margin.left,N=x[0]}else _=this.scroller.getBoundingClientRect();var k=I+this.scrollLeft-_.left-this.$padding,M=k/this.characterWidth,O=Math.floor((N+this.scrollTop-_.top)/this.lineHeight),F=this.$blockCursor?Math.floor(M):Math.round(M);return{row:O,column:F,side:M-F>0?1:-1,offsetX:k}},L.prototype.screenToTextCoordinates=function(I,N){var _;if(this.$hasCssTransforms){_={top:0,left:0};var x=this.$fontMetrics.transformCoordinates([I,N]);I=x[1]-this.gutterWidth-this.margin.left,N=x[0]}else _=this.scroller.getBoundingClientRect();var k=I+this.scrollLeft-_.left-this.$padding,M=k/this.characterWidth,O=this.$blockCursor?Math.floor(M):Math.round(M),F=Math.floor((N+this.scrollTop-_.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),k)},L.prototype.textToScreenCoordinates=function(I,N){var _=this.scroller.getBoundingClientRect(),x=this.session.documentToScreenPosition(I,N),k=this.$padding+(this.session.$bidiHandler.isBidiRow(x.row,I)?this.session.$bidiHandler.getPosLeft(x.column):Math.round(x.column*this.characterWidth)),M=x.row*this.lineHeight;return{pageX:_.left+k-this.scrollLeft,pageY:_.top+M-this.scrollTop}},L.prototype.visualizeFocus=function(){y.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){y.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(I){this.$composition=I,I.cssText||(I.cssText=this.textarea.style.cssText),I.useTextareaForIME==null&&(I.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(y.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):I.markerId=this.session.addMarker(I.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(I){var N=this.session.selection.cursor;this.addToken(I,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),y.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var I=this.session.selection.cursor;this.removeExtraToken(I.row,I.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(I,N){var _=this.session.selection.cursor,x=N||{row:_.row,column:_.column};this.removeGhostText();var k=this.$calculateWrappedTextChunks(I,x);this.addToken(k[0].text,"ghost_text",x.row,x.column),this.$ghostText={text:I,position:{row:x.row,column:x.column}};var M=y.createElement("div");if(k.length>1){var O=this.hideTokensAfterPosition(x.row,x.column),F;k.slice(1).forEach(function(G){var Z=y.createElement("div"),re=y.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(y.createTextNode(G.text)),Z.appendChild(re),M.appendChild(Z),F=Z}),O.forEach(function(G){var Z=y.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(y.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:M,row:x.row,column:x.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var P=this.$cursorLayer.getPixelPosition(x,!0),z=this.container,V=z.getBoundingClientRect().height,q=k.length*this.lineHeight,X=q<V-P.top;if(X)return;q<V?this.scrollBy(0,(k.length-1)*this.lineHeight):this.scrollToRow(x.row)}},L.prototype.$calculateWrappedTextChunks=function(I,N){var _=this.$size.scrollerWidth-this.$padding*2,x=Math.floor(_/this.characterWidth)-2;x=x<=0?60:x;for(var k=I.split(/\r?\n/),M=[],O=0;O<k.length;O++){var F=this.session.$getDisplayTokens(k[O],N.column),P=this.session.$computeWrapSplits(F,x,this.session.$tabSize);if(P.length>0){var z=0;P.push(k[O].length);for(var V=0;V<P.length;V++){var q=k[O].slice(z,P[V]);M.push({text:q,wrapped:!0}),z=P[V]}}else M.push({text:k[O],wrapped:!1})}return M},L.prototype.removeGhostText=function(){if(this.$ghostText){var I=this.$ghostText.position;this.removeExtraToken(I.row,I.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(I,N,_,x){var k=this.session;k.bgTokenizer.lines[_]=null;var M={type:N,value:I},O=k.getTokens(_);if(x==null||!O.length)O.push(M);else for(var F=0,P=0;P<O.length;P++){var z=O[P];if(F+=z.value.length,x<=F){var V=z.value.length-(F-x),q=z.value.slice(0,V),X=z.value.slice(V);O.splice(P,1,{type:z.type,value:q},M,{type:z.type,value:X});break}}this.updateLines(_,_)},L.prototype.hideTokensAfterPosition=function(I,N){for(var _=this.session.getTokens(I),x=0,k=!1,M=[],O=0;O<_.length;O++){var F=_[O];if(x+=F.value.length,F.type!=="ghost_text"){if(k){M.push({type:F.type,value:F.value}),F.type="hidden_token";continue}x===N&&(k=!0)}}return this.updateLines(I,I),M},L.prototype.removeExtraToken=function(I,N){this.session.bgTokenizer.lines[I]=null,this.updateLines(I,I)},L.prototype.setTheme=function(I,N){var _=this;if(this.$themeId=I,_._dispatchEvent("themeChange",{theme:I}),!I||typeof I=="string"){var x=I||this.$options.theme.initialValue;h.loadModule(["theme",x],k)}else k(I);function k(M){if(_.$themeId!=I)return N&&N();if(!M||!M.cssClass)throw new Error("couldn't load module "+I+" or it didn't call define");M.$id&&(_.$themeId=M.$id),y.importCssString(M.cssText,M.cssClass,_.container),_.theme&&y.removeCssClass(_.container,_.theme.cssClass);var O="padding"in M?M.padding:"padding"in(_.theme||{})?4:_.$padding;_.$padding&&O!=_.$padding&&_.setPadding(O),_.$theme=M.cssClass,_.theme=M,y.addCssClass(_.container,M.cssClass),y.setCssClass(_.container,"ace_dark",M.isDark),_.$size&&(_.$size.width=0,_.$updateSizeAsync()),_._dispatchEvent("themeLoaded",{theme:M}),N&&N(),b.isSafari&&_.scroller&&(_.scroller.style.background="red",_.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(I,N){y.setCssClass(this.container,I,N!==!1)},L.prototype.unsetStyle=function(I){y.removeCssClass(this.container,I)},L.prototype.setCursorStyle=function(I){y.setStyle(this.scroller.style,"cursor",I)},L.prototype.setMouseCursor=function(I){y.setStyle(this.scroller.style,"cursor",I)},L.prototype.attachToShadowRoot=function(){y.importCssString($,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(I){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,I===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollTop(_.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollLeft(_.data-N.scrollMargin.left)}),this.$scrollDecorator=new C(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollTop(_.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(_){N.$scrollAnimation||N.session.setScrollLeft(_.data-N.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var I=this;this.$resizeTimer=v.delayedCall(function(){I.destroyed||I.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var _=N[0].contentRect.width,x=N[0].contentRect.height;Math.abs(I.$size.width-_)>1||Math.abs(I.$size.height-x)>1?I.$resizeTimer.delay():I.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,p.implement(E.prototype,R),h.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){y.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/net"),v=e("../lib/event_emitter").EventEmitter,h=e("../config");function g(l){var o="importScripts('"+y.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new u;return m.append(o),m.getBlob("application/javascript")}}function s(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=g(l),u=window.URL||window.webkitURL,m=u.createObjectURL(o);return new Worker(m)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){p.implement(this,v),this.$createWorkerFromOldConfig=function(l,o,u,m,w){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)m=m||h.moduleUrl(o,"worker");else{var A=this.$normalizePath;m=m||A(e.toUrl("ace/worker/worker.js",null,"_"));var R={};l.forEach(function($){R[$]=A(e.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(m),w&&this.send("importScripts",w),this.$worker.postMessage({init:!0,tlns:R,module:o,classname:u}),this.$worker},this.onMessage=function(l){var o=l.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return y.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var m=this.callbackId++;this.callbacks[m]=u,o.push(m)}this.send(l,o)},this.emit=function(l,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var a=function(l,o,u){var m=null,w=!1,A=Object.create(v),R=[],$=new c({messageBuffer:R,terminate:function(){},postMessage:function(b){R.push(b),m&&(w?setTimeout(C):C())}});$.setEmitSync=function(b){w=b};var C=function(){var b=R.shift();b.command?m[b.command].apply(m,b.args):b.event&&A._signal(b.event,b.data)};return A.postMessage=function(b){$.onMessage({data:b})},A.callback=function(b,T){this.postMessage({type:"call",id:T,data:b})},A.emit=function(b,T){this.postMessage({type:"event",name:b,data:T})},h.loadModule(["worker",o],function(b){for(m=new b[u](A);R.length;)C()}),$};r.UIWorkerClient=a,r.WorkerClient=c,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,r,f){var p=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,v=e("./lib/oop"),h=function(){function g(s,c,a,l,o,u){var m=this;this.length=c,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=a;var w=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=w.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var s=this,c=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=c.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=a.addMarker(new p(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=c.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),s.others.push(u)}),a.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,c=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new p(a.row,a.column,a.row,a.column+c.length),c.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},g.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var c=s;if(c.start.row===c.end.row&&c.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?c.end.column-c.start.column:c.start.column-c.end.column,l=c.start.column>=this.pos.column&&c.start.column<=this.pos.column+this.length+1,o=c.start.column-this.pos.column;if(this.updateAnchors(s),l&&(this.length+=a),l&&!this.session.$fromUndo){if(s.action==="insert")for(var u=this.others.length-1;u>=0;u--){var m=this.others[u],w={row:m.row,column:m.column+o};this.doc.insertMergedLines(w,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var m=this.others[u],w={row:m.row,column:m.column+o};this.doc.remove(new p(w.row,w.column,w.row,w.column-a))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var c=this.others.length;c--;)this.others[c].onChange(s);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var s=this,c=this.session,a=function(o,u){c.removeMarker(o.markerId),o.markerId=c.addMarker(new p(o.row,o.column,o.row,o.column+s.length),u,null,!1)};a(this.pos,this.mainClass);for(var l=this.others.length;l--;)a(this.others[l],this.othersClass)}},g.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var c=this.session.selection.getCursor();c.row===this.pos.row&&c.column>=this.pos.column&&c.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),c=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<c;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();v.implement(h.prototype,y),r.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent");function v(g,s){return g.row==s.row&&g.column==s.column}function h(g){var s=g.domEvent,c=s.altKey,a=s.shiftKey,l=s.ctrlKey,o=g.getAccelKey(),u=g.getButton();if(l&&y.isMac&&(u=s.button),g.editor.inMultiSelectMode&&u==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!l&&!c&&!o){u===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(u===0){var m=g.editor,w=m.selection,A=m.inMultiSelectMode,R=g.getDocumentPosition(),$=w.getCursor(),C=g.inSelection()||w.isEmpty()&&v(R,$),b=g.x,T=g.y,E=function(q){b=q.clientX,T=q.clientY},L=m.session,I=m.renderer.pixelToScreenCoordinates(b,T),N=I,_;if(m.$mouseHandler.$enableJumpToDef)l&&c||o&&c?_=a?"block":"add":c&&m.$blockSelectEnabled&&(_="block");else if(o&&!c){if(_="add",!A&&a)return}else c&&m.$blockSelectEnabled&&(_="block");if(_&&y.isMac&&s.ctrlKey&&m.$mouseHandler.cancelContextMenu(),_=="add"){if(!A&&C)return;if(!A){var x=w.toOrientedRange();m.addSelectionMarker(x)}var k=w.rangeList.rangeAtPoint(R);m.inVirtualSelectionMode=!0,a&&(k=null,x=w.ranges[0]||x,m.removeSelectionMarker(x)),m.once("mouseup",function(){var q=w.toOrientedRange();k&&q.isEmpty()&&v(k.cursor,q.cursor)?w.substractPoint(q.cursor):(a?w.substractPoint(x.cursor):x&&(m.removeSelectionMarker(x),w.addRange(x)),w.addRange(q)),m.inVirtualSelectionMode=!1})}else if(_=="block"){g.stop(),m.inVirtualSelectionMode=!0;var M,O=[],F=function(){var q=m.renderer.pixelToScreenCoordinates(b,T),X=L.screenToDocumentPosition(q.row,q.column,q.offsetX);v(N,q)&&v(X,w.lead)||(N=q,m.selection.moveToPosition(X),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(O),O=w.rectangularRangeBlock(N,I),m.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=m.$mouseHandler.$clickSelection.clone()),O.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};A&&!o?w.toSingleRange():!A&&o&&(M=w.toOrientedRange(),m.addSelectionMarker(M)),a?I=L.documentToScreenPosition(w.lead):w.moveToPosition(R),N={row:-1,column:-1};var P=function(q){F(),clearInterval(V),m.removeSelectionMarkers(O),O.length||(O=[w.toOrientedRange()]),M&&(m.removeSelectionMarker(M),w.toSingleRange(M));for(var X=0;X<O.length;X++)w.addRange(O[X]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},z=F;p.capture(m.container,E,P);var V=setInterval(function(){z()},20);return g.preventDefault()}}}r.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,r,f){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(y){y.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(y){y.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(y){y.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(y){y.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(y){y.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(y){y.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(y){y.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(y){y.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(y){y.multiSelect.rangeCount>1?y.multiSelect.joinSelections():y.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(y){y.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(y){y.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(y){y.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(y){y.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(y){return y&&y.inMultiSelectMode}}];var p=e("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new p(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,r,f){var p=e("./range_list").RangeList,y=e("./range").Range,v=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,g=e("./lib/event"),s=e("./lib/lang"),c=e("./commands/multi_select_commands");r.commands=c.defaultCommands.concat(c.multiSelectCommands);var a=e("./search").Search,l=new a;function o($,C,b){return l.$options.wrap=!0,l.$options.needle=C,l.$options.backwards=b==-1,l.find($)}var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function($,C){if($){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add($),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),C||this.fromOrientedRange($);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}$.cursor||($.cursor=$.end);var T=this.rangeList.add($);return this.$onAddRange($),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),C||this.fromOrientedRange($)}},this.toSingleRange=function($){$=$||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),$&&this.fromOrientedRange($)},this.substractPoint=function($){var C=this.rangeList.substractPoint($);if(C)return this.$onRemoveRange(C),C[0]},this.mergeOverlappingRanges=function(){var $=this.rangeList.merge();$.length&&this.$onRemoveRange($)},this.$onAddRange=function($){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift($),this._signal("addRange",{range:$})},this.$onRemoveRange=function($){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var C=this.rangeList.ranges.pop();$.push(C),this.rangeCount=0}for(var b=$.length;b--;){var T=this.ranges.indexOf($[b]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:$}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),C=C||this.ranges[0],C&&!C.isEqual(this.getRange())&&this.fromOrientedRange(C)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new p,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var $=this.ranges.length?this.ranges:[this.getRange()],C=[],b=0;b<$.length;b++){var T=$[b],E=T.start.row,L=T.end.row;if(E===L)C.push(T.clone());else{for(C.push(new y(E,T.start.column,E,this.session.getLine(E).length));++E<L;)C.push(this.getLineRange(E,!0));C.push(new y(L,0,L,T.end.column))}b==0&&!this.isBackwards()&&(C=C.reverse())}this.toSingleRange();for(var b=C.length;b--;)this.addRange(C[b])},this.joinSelections=function(){var $=this.rangeList.ranges,C=$[$.length-1],b=y.fromPoints($[0].start,C.end);this.toSingleRange(),this.setSelectionRange(b,C.cursor==C.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var $=this.rangeList.ranges,C=$[$.length-1],b=y.fromPoints($[0].start,C.end);this.toSingleRange(),this.setSelectionRange(b,C.cursor==C.start)}else{var T=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(T,E);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function($,C,b){var T=[],E=$.column<C.column;if(E)var L=$.column,I=C.column,N=$.offsetX,_=C.offsetX;else var L=C.column,I=$.column,N=C.offsetX,_=$.offsetX;var x=$.row<C.row;if(x)var k=$.row,M=C.row;else var k=C.row,M=$.row;L<0&&(L=0),k<0&&(k=0),k==M&&(b=!0);for(var O,F=k;F<=M;F++){var P=y.fromPoints(this.session.screenToDocumentPosition(F,L,N),this.session.screenToDocumentPosition(F,I,_));if(P.isEmpty()){if(O&&w(P.end,O))break;O=P.end}P.cursor=E?P.start:P.end,T.push(P)}if(x&&T.reverse(),!b){for(var z=T.length-1;T[z].isEmpty()&&z>0;)z--;if(z>0)for(var V=0;T[V].isEmpty();)V++;for(var q=z;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(v.prototype);var m=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function($){$.cursor||($.cursor=$.end);var C=this.getSelectionStyle();return $.marker=this.session.addMarker($,"ace_selection",C),this.session.$selectionMarkers.push($),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,$},this.removeSelectionMarker=function($){if($.marker){this.session.removeMarker($.marker);var C=this.session.$selectionMarkers.indexOf($);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function($){for(var C=this.session.$selectionMarkers,b=$.length;b--;){var T=$[b];if(T.marker){this.session.removeMarker(T.marker);var E=C.indexOf(T);E!=-1&&C.splice(E,1)}}this.session.selectionMarkerCount=C.length},this.$onAddRange=function($){this.addSelectionMarker($.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function($){this.removeSelectionMarkers($.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function($){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function($){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function($){var C=$.command,b=$.editor;if(b.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?T=b.forEachSelection(C,$.args):C.multiSelectAction=="forEachLine"?T=b.forEachSelection(C,$.args,!0):C.multiSelectAction=="single"?(b.exitMultiSelectMode(),T=C.exec(b,$.args||{})):T=C.multiSelectAction(b,$.args||{});else{var T=C.exec(b,$.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function($,C,b){if(!this.inVirtualSelectionMode){var T=b&&b.keepOrder,E=b==!0||b&&b.$byLines,L=this.session,I=this.selection,N=I.rangeList,_=(T?I:N).ranges,x;if(!_.length)return $.exec?$.exec(this,C||{}):$(this,C||{});var k=I._eventRegistry;I._eventRegistry={};var M=new v(L);this.inVirtualSelectionMode=!0;for(var O=_.length;O--;){if(E)for(;O>0&&_[O].start.row==_[O-1].end.row;)O--;M.fromOrientedRange(_[O]),M.index=O,this.selection=L.selection=M;var F=$.exec?$.exec(this,C||{}):$(this,C||{});!x&&F!==void 0&&(x=F),M.toOrientedRange(_[O])}M.detach(),this.selection=L.selection=I,this.inVirtualSelectionMode=!1,I._eventRegistry=k,I.mergeOverlappingRanges(),I.ranges[0]&&I.fromOrientedRange(I.ranges[0]);var P=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),P&&P.from==P.to&&this.renderer.animateScrolling(P.from),x}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var $="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,b=[],T=0;T<C.length;T++)b.push(this.session.getTextRange(C[T]));var E=this.session.getDocument().getNewLineCharacter();$=b.join(E),$.length==(b.length-1)*E.length&&($="")}else this.selection.isEmpty()||($=this.session.getTextRange(this.getSelectionRange()));return $},this.$checkMultiselectChange=function($,C){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&C==this.multiSelect.anchor)return;var T=C==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;T.row!=C.row||this.session.$clipPositionToDocument(T.row,T.column).column!=C.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function($,C,b){if(C=C||{},C.needle=$||C.needle,C.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();C.needle=this.session.getTextRange(T)}this.$search.set(C);var E=this.$search.findAll(this.session);if(!E.length)return 0;var L=this.multiSelect;b||L.toSingleRange(E[0]);for(var I=E.length;I--;)L.addRange(E[I],!0);return T&&L.rangeList.rangeAtPoint(T.start)&&L.addRange(T,!0),E.length},this.selectMoreLines=function($,C){var b=this.selection.toOrientedRange(),T=b.cursor==b.end,E=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(E.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(E.row+$,E.column);if(b.isEmpty())var N=L;else var I=this.session.documentToScreenPosition(T?b.end:b.start),N=this.session.screenToDocumentPosition(I.row+$,I.column);if(T){var _=y.fromPoints(L,N);_.cursor=_.start}else{var _=y.fromPoints(N,L);_.cursor=_.end}if(_.desiredColumn=E.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(C)var x=b.cursor;this.selection.addRange(_),x&&this.selection.substractPoint(x)},this.transposeSelections=function($){for(var C=this.session,b=C.multiSelect,T=b.ranges,E=T.length;E--;){var L=T[E];if(L.isEmpty()){var I=C.getWordRange(L.start.row,L.start.column);L.start.row=I.start.row,L.start.column=I.start.column,L.end.row=I.end.row,L.end.column=I.end.column}}b.mergeOverlappingRanges();for(var N=[],E=T.length;E--;){var L=T[E];N.unshift(C.getTextRange(L))}$<0?N.unshift(N.pop()):N.push(N.shift());for(var E=T.length;E--;){var L=T[E],_=L.clone();C.replace(L,N[E]),L.start.row=_.start.row,L.start.column=_.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function($,C,b){var T=this.session,E=T.multiSelect,L=E.toOrientedRange();if(!(L.isEmpty()&&(L=T.getWordRange(L.start.row,L.start.column),L.cursor=$==-1?L.start:L.end,this.multiSelect.addRange(L),b))){var I=T.getTextRange(L),N=o(T,I,$);N&&(N.cursor=$==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),C&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var $=this.session,C=$.multiSelect,b=C.ranges,T=-1,E=b.filter(function(z){if(z.cursor.row==T)return!0;T=z.cursor.row});if(!b.length||E.length==b.length-1){var L=this.selection.getRange(),I=L.start.row,N=L.end.row,_=I==N;if(_){var x=this.session.getLength(),k;do k=this.session.getLine(N);while(/[=:]/.test(k)&&++N<x);do k=this.session.getLine(I);while(/[=:]/.test(k)&&--I>0);I<0&&(I=0),N>=x&&(N=x-1)}var M=this.session.removeFullLines(I,N);M=this.$reAlignText(M,_),this.session.insert({row:I,column:0},M.join(`
936
- `)+`
937
- `),_||(L.start.column=0,L.end.column=M[M.length-1].length),this.selection.setRange(L)}else{E.forEach(function(z){C.substractPoint(z.cursor)});var O=0,F=1/0,P=b.map(function(z){var V=z.cursor,q=$.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>O&&(O=V.column),X<F&&(F=X),X});b.forEach(function(z,V){var q=z.cursor,X=O-q.column,G=P[V]-F;X>G?$.insert(q,s.stringRepeat(" ",X-G)):$.remove(new y(q.row,q.column,q.row,q.column-X+G)),z.start.column=z.end.column=O,z.start.row=z.end.row=q.row,z.cursor=z.end}),C.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function($,C){var b=!0,T=!0,E,L,I;return $.map(function(M){var O=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?E==null?(E=O[1].length,L=O[2].length,I=O[3].length,O):(E+L+I!=O[1].length+O[2].length+O[3].length&&(T=!1),E!=O[1].length&&(b=!1),E>O[1].length&&(E=O[1].length),L<O[2].length&&(L=O[2].length),I>O[3].length&&(I=O[3].length),O):[M]}).map(C?_:b?T?x:_:k);function N(M){return s.stringRepeat(" ",M)}function _(M){return M[2]?N(E)+M[2]+N(L-M[2].length+I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function x(M){return M[2]?N(E+L-M[2].length)+M[2]+N(I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function k(M){return M[2]?N(E)+M[2]+N(I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(m.prototype);function w($,C){return $.row==C.row&&$.column==C.column}r.onSessionChange=function($){var C=$.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.multiSelect;var b=$.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),C&&(C.multiSelect.on("addRange",this.$onAddRange),C.multiSelect.on("removeRange",this.$onRemoveRange),C.multiSelect.on("multiSelect",this.$onMultiSelect),C.multiSelect.on("singleSelect",this.$onSingleSelect),C.multiSelect.lead.on("change",this.$checkMultiselectChange),C.multiSelect.anchor.on("change",this.$checkMultiselectChange)),C&&this.inMultiSelectMode!=C.selection.inMultiSelectMode&&(C.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function A($){$.$multiselectOnSessionChange||($.$onAddRange=$.$onAddRange.bind($),$.$onRemoveRange=$.$onRemoveRange.bind($),$.$onMultiSelect=$.$onMultiSelect.bind($),$.$onSingleSelect=$.$onSingleSelect.bind($),$.$multiselectOnSessionChange=r.onSessionChange.bind($),$.$checkMultiselectChange=$.$checkMultiselectChange.bind($),$.$multiselectOnSessionChange($),$.on("changeSession",$.$multiselectOnSessionChange),$.on("mousedown",h),$.commands.addCommands(c.defaultCommands),R($))}function R($){if(!$.textInput)return;var C=$.textInput.getElement(),b=!1;g.addListener(C,"keydown",function(E){var L=E.keyCode==18&&!(E.ctrlKey||E.shiftKey||E.metaKey);$.$blockSelectEnabled&&L?b||($.renderer.setMouseCursor("crosshair"),b=!0):b&&T()},$),g.addListener(C,"keyup",T,$),g.addListener(C,"blur",T,$);function T(E){b&&($.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=A,e("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function($){A(this),$?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function($){this.$blockSelectEnabled=$},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,r,f){var p=e("../../range").Range,y=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(v,h,g){var s=v.getLine(g);return this.foldingStartMarker.test(s)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(v,h,g){return null},this.indentationBlock=function(v,h,g){var s=/\S/,c=v.getLine(h),a=c.search(s);if(a!=-1){for(var l=g||c.length,o=v.getLength(),u=h,m=h;++h<o;){var w=v.getLine(h).search(s);if(w!=-1){if(w<=a){var A=v.getTokenAt(h,0);if(!A||A.type!=="string")break}m=h}}if(m>u){var R=v.getLine(m).length;return new p(u,l,m,R)}}},this.openingBracketBlock=function(v,h,g,s,c){var a={row:g,column:s+1},l=v.$findClosingBracket(h,a,c);if(l){var o=v.foldWidgets[l.row];return o==null&&(o=v.getFoldWidget(l.row)),o=="start"&&l.row>a.row&&(l.row--,l.column=v.getLine(l.row).length),p.fromPoints(a,l)}},this.closingBracketBlock=function(v,h,g,s,c){var a={row:g,column:s},l=v.$findOpeningBracket(h,a);if(l)return l.column++,a.column--,p.fromPoints(l,a)}}).call(y.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,r,f){var p=e("../lib/dom"),y=e("../range").Range,v=e("../config").nls;function h(s,c,a){for(var l=0,o=s.length-1;l<=o;){var u=l+o>>1,m=a(c,s[u]);if(m>0)l=u+1;else if(m<0)o=u-1;else return u}return-(l+1)}function g(s,c,a){var l=s.getAnnotations().sort(y.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},y.comparePoints);o<0&&(o=-o-1),o>=l.length?o=a>0?0:l.length-1:o===0&&a<0&&(o=l.length-1);var u=l[o];if(!(!u||!a)){if(u.row===c){do u=l[o+=a];while(u&&u.row===c);if(!u)return l.slice()}var m=[];c=u.row;do m[a<0?"unshift":"push"](u),u=l[o+=a];while(u&&u.row==c);return m.length&&m}}}r.showErrorMarker=function(s,c){var a=s.session,l=s.getCursorPosition(),o=l.row,u=a.widgetManager.getWidgetsAtRow(o).filter(function(E){return E.type=="errorMarker"})[0];u?u.destroy():o-=c;var m=g(a,o,c),w;if(m){var A=m[0];l.column=(A.pos&&typeof A.column!="number"?A.pos.sc:A.column)||0,l.row=A.row,w=s.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;w={displayText:[v("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(l.row),s.selection.moveToPosition(l);var R={row:l.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},$=R.el.appendChild(p.createElement("div")),C=R.el.appendChild(p.createElement("div"));C.className="error_widget_arrow "+w.className;var b=s.renderer.$cursorLayer.getPixelPosition(l).left;C.style.left=b+s.renderer.gutterWidth-5+"px",R.el.className="error_widget_wrapper",$.className="error_widget "+w.className,w.displayText.forEach(function(E,L){$.appendChild(p.createTextNode(E)),L<w.displayText.length-1&&$.appendChild(p.createElement("br"))}),$.appendChild(p.createElement("div"));var T=function(E,L,I){if(L===0&&(I==="esc"||I==="return"))return R.destroy(),{command:"null"}};R.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(T),a.widgetManager.removeLineWidget(R),s.off("changeSelection",R.destroy),s.off("changeSession",R.destroy),s.off("mouseup",R.destroy),s.off("change",R.destroy))},s.keyBinding.addKeyboardHandler(T),s.on("changeSelection",R.destroy),s.on("changeSession",R.destroy),s.on("mouseup",R.destroy),s.on("change",R.destroy),s.session.widgetManager.addLineWidget(R),R.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:R.el.offsetHeight})},p.importCssString(`
938
- .error_widget_wrapper {
939
- background: inherit;
940
- color: inherit;
941
- border:none
942
- }
943
- .error_widget {
944
- border-top: solid 2px;
945
- border-bottom: solid 2px;
946
- margin: 5px 0;
947
- padding: 10px 40px;
948
- white-space: pre-wrap;
949
- }
950
- .error_widget.ace_error, .error_widget_arrow.ace_error{
951
- border-color: #ff5a5a
952
- }
953
- .error_widget.ace_warning, .error_widget_arrow.ace_warning{
954
- border-color: #F1D817
955
- }
956
- .error_widget.ace_info, .error_widget_arrow.ace_info{
957
- border-color: #5a5a5a
958
- }
959
- .error_widget.ace_ok, .error_widget_arrow.ace_ok{
960
- border-color: #5aaa5a
961
- }
962
- .error_widget_arrow {
963
- position: absolute;
964
- border: solid 5px;
965
- border-top-color: transparent!important;
966
- border-right-color: transparent!important;
967
- border-left-color: transparent!important;
968
- top: -5px;
969
- }
970
- `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,r,f){e("./loader_build")(r);var p=e("./lib/dom"),y=e("./range").Range,v=e("./editor").Editor,h=e("./edit_session").EditSession,g=e("./undomanager").UndoManager,s=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),r.config=e("./config"),r.edit=function(a,l){if(typeof a=="string"){var o=a;if(a=document.getElementById(o),!a)throw new Error("ace.edit can't find div #"+o)}if(a&&a.env&&a.env.editor instanceof v)return a.env.editor;var u="";if(a&&/input|textarea/i.test(a.tagName)){var m=a;u=m.value,a=p.createElement("pre"),m.parentNode.replaceChild(a,m)}else a&&(u=a.textContent,a.innerHTML="");var w=r.createEditSession(u),A=new v(new s(a),w,l),R={document:w,editor:A,onResize:A.resize.bind(A,null)};return m&&(R.textarea=m),A.on("destroy",function(){R.editor.container.env=null}),A.container.env=A.env=R,A},r.createEditSession=function(a,l){var o=new h(a,l);return o.setUndoManager(new g),o},r.Range=y,r.Editor=v,r.EditSession=h,r.UndoManager=g,r.VirtualRenderer=s;var c=r.config.version;r.version=c}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=e);for(var f in e)e.hasOwnProperty(f)&&(r.ace[f]=e[f]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(If)),If.exports}yb();var Rf={exports:{}},Mf;function vb(){return Mf||(Mf=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},c=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},l=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},m=function(){var w="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",A="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",R="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",$="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",C=this.$keywords=this.createKeywordMapper({keyword:A,"constant.language":R,"variable.language":$,"support.function":w,"invalid.deprecated":"debugger"},"identifier"),b=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,L,I){I.length&&(I=[]);var N=E[E.length-1];return I.unshift(N,L),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,l,v,h,o,g,s,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:C,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(E,L,I){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",_=E.split(this.splitRegex);return I.push(N,_[3]),[{type:"constant",value:_[1]},{type:"string",value:_[2]},{type:"support.class",value:_[3]},{type:"string",value:_[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,L,I){return E===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,L,I){return E===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,L){return L[0]==="heredoc"||L[0]==="indentedHeredoc"?L[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,L,I){return this.next="",E=="}"&&I.length>1&&I[1]!="start"&&(I.shift(),this.next=I.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"string"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,L,I){return I.length&&E===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,L,I){return I.length&&E===I[0]?(I.unshift(E,L),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,L,I){return I.length&&E[0]===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};p.inherits(m,y),r.RubyHighlightRules=m}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var g=v.getLine(h),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=v.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(v.getLine(a.row));v.replace(new p(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=e("../../range").Range,h=e("../../token_iterator").TokenIterator,g=r.FoldMode=function(){};p.inherits(g,y),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(s,c,a){var l=s.getLine(a),o=this.foldingStartMarker.test(l),u=this.foldingStopMarker.test(l);if(o&&!u){var m=l.match(this.foldingStartMarker);if(m[1]){if((m[1]=="if"||m[1]=="else"||m[1]=="while"||m[1]=="until"||m[1]=="unless")&&(m[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||m[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(s.getTokenAt(a,m.index+2).type==="keyword")return"start"}else if(!m[3]||s.getTokenAt(a,m.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var m=l.match(this.foldingStopMarker);if(m[3]==="end"){if(s.getTokenAt(a,m.index+1).type==="keyword")return"end"}else if(!m[1]||s.getTokenAt(a,m.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,c,a){var l=s.doc.getLine(a),o=this.foldingStartMarker.exec(l);if(o)return o[1]||o[3]?this.rubyBlock(s,a,o.index+2):this.openingBracketBlock(s,"{",a,o.index);var o=this.foldingStopMarker.exec(l);if(o)return o[3]==="end"&&s.getTokenAt(a,o.index+1).type==="keyword"?this.rubyBlock(s,a,o.index+1):o[1]==="=end"&&s.getTokenAt(a,o.index+1).type==="comment.multiline"?this.rubyBlock(s,a,o.index+1):this.closingBracketBlock(s,"}",a,o.index+o[0].length)},this.rubyBlock=function(s,c,a,l){var o=new h(s,c,a),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var m=u.value,w=s.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var A=new RegExp("^\\s*"+u.value);if(!A.test(w))return;var R=this.indentKeywords[m];break;case"when":if(/\sthen\s/.test(w))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var A=new RegExp("^\\s*"+u.value+"\\s*$");if(!A.test(w))return;var R=1;break;default:var R=this.indentKeywords[m]}var $=[m];if(R){var C=R===-1?s.getLine(c-1).length:s.getLine(c).length,b=c,T=[];if(T.push(o.getCurrentTokenRange()),o.step=R===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(R==1){if(C=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var L=R*this.indentKeywords[u.value];switch(w=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var I=o.$tokenIndex-1;I>=0;I--){var N=o.$rowTokens[I];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){L=0;break}}break;case"else":var A=new RegExp("^\\s*"+u.value+"\\s*$");(!A.test(w)||m=="case")&&(L=0,E=!0);break;case"if":case"unless":case"while":case"until":var A=new RegExp("^\\s*"+u.value);A.test(w)||(L=0,E=!0);break;case"when":(/\sthen\s/.test(w)||m=="case")&&(L=0,E=!0)}if(L>0)$.unshift(u.value);else if(L<=0&&E===!1){if($.shift(),!$.length&&((m=="while"||m=="until"||m=="for")&&u.value!="do"||u.value=="do"&&R==-1&&L!=0||u.value!="do"))break;L===0&&$.unshift(u.value)}}}if(!u)return null;if(l)return T.push(o.getCurrentTokenRange()),T;var c=o.getCurrentTokenRow();if(R===-1){if(u.type==="comment.multiline")var _=6;else var _=s.getLine(c).length;return new v(c,_,b-1,C)}return new v(b,C,c-1,s.getLine(c-1).length)}}}}).call(g.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../range").Range,s=e("./folding/ruby").FoldMode,c=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};p.inherits(c,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,a),w=m.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(a=="start"){var A=l.match(/^.*[\{\(\[]\s*$/),R=l.match(/^\s*(class|def|module)\s.*$/),$=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),C=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(A||R||$||C)&&(u+=o)}return u},this.checkOutdent=function(a,l,o){return/^\s+(end|else|rescue|ensure)$/.test(l+o)||this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(a,l,o){var u=l.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(l,o);var m=this.$getIndent(u),w=l.getLine(o-1),A=this.$getIndent(w),R=l.getTabString();A.length<=m.length&&m.slice(-R.length)==R&&l.remove(new g(o,m.length-R.length,o,m.length))},this.getMatching=function(a,l,o){if(l==null){var u=a.selection.lead;o=u.column,l=u.row}var m=a.getTokenAt(l,o);if(m&&m.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,l,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(Rf)),Rf.exports}vb();var Lf={exports:{}},Of;function wb(){return Of||(Of=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",s="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":g,keyword:h},"identifier"),a="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",m="(?:(?:[1-9]\\d*)|(?:0))",w="(?:0[oO]?[0-7]+)",A="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",$="(?:"+m+"|"+w+"|"+A+"|"+R+")",C="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",T="(?:\\d+)",E="(?:(?:"+T+"?"+b+")|(?:"+T+"\\.))",L="(?:(?:"+E+"|"+T+")"+C+")",I="(?:"+L+"|"+E+")",N=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:a+'"{3}',next:"qqstring3"},{token:"string",regex:a+'"(?=.)',next:"qqstring"},{token:"string",regex:a+"'{3}",next:"qstring3"},{token:"string",regex:a+"'(?=.)",next:"qstring"},{token:"string",regex:l+'"{3}',next:"rawqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rawqqstring"},{token:"string",regex:l+"'{3}",next:"rawqstring3"},{token:"string",regex:l+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+I+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:I},{token:"constant.numeric",regex:$+"[lL]\\b"},{token:"constant.numeric",regex:$+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};p.inherits(v,y),r.PythonHighlightRules=v}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};p.inherits(v,y),(function(){this.getFoldWidgetRange=function(h,g,s){var c=h.getLine(s),a=c.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(h,a[1],s,a.index):a[2]?this.indentationBlock(h,s,a.index+a[2].length):this.indentationBlock(h,s)}}).call(v.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,g=e("../range").Range,s=function(){this.HighlightRules=v,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};p.inherits(s,y),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,a),w=m.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(a=="start"){var A=l.match(/^.*[\{\(\[:]\s*$/);A&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,l,o){if(o!==`\r
971
- `&&o!=="\r"&&o!==`
972
- `)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!u)return!1;do var m=u.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&c[m.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),m=l.getTabString();u.slice(-m.length)==m&&l.remove(new g(o,u.length-m.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/python"],function(e){n&&(n.exports=e)})}()}(Lf)),Lf.exports}wb();var Df={exports:{}},Nf;function bb(){return Nf||(Nf=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};p.inherits(v,y),r.JsonHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var g=v.getLine(h),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=v.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(v.getLine(a.row));v.replace(new p(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("../../range").Range,v=e("./fold_mode").FoldMode,h=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};p.inherits(h,v),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,c){var a=g.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(g,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(g,s,c,a){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,u);var m=g.getCommentFoldRange(c,u+o[0].length,1);return m&&!m.isMultiLine()&&(a?m=this.getSectionRange(g,c):s!="all"&&(m=null)),m}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,u):g.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(g,s){var c=g.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,m=g.getLength();++s<m;){c=g.getLine(s);var w=c.search(/\S/);if(w!==-1){if(a>w)break;var A=this.getFoldWidgetRange(g,"all",s);if(A){if(A.start.row<=l)break;if(A.isMultiLine())s=A.end.row;else if(a==w)break}u=s}}return new y(l,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,c){for(var a=s.search(/\s*$/),l=g.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++c<l;){s=g.getLine(c);var w=u.exec(s);if(w&&(w[1]?m--:m++,!m))break}var A=c;if(A>o)return new y(o,a,A,s.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("./folding/cstyle").FoldMode,s=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};p.inherits(c,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l);if(a=="start"){var m=l.match(/^.*[\{\(\[]\s*$/);m&&(u+=o)}return u},this.checkOutdent=function(a,l,o){return this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(a,l,o){this.$outdent.autoOutdent(l,o)},this.createWorker=function(a){var l=new s(["ace"],"ace/mode/json_worker","JsonWorker");return l.attachToDocument(a.getDocument()),l.on("annotate",function(o){a.setAnnotations(o.data)}),l.on("terminate",function(){a.clearAnnotations()}),l},this.$id="ace/mode/json"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}(Df)),Df.exports}bb();var Ff={exports:{}},Wf;function xb(){return Wf||(Wf=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop");e("../lib/lang");var y=e("./text_highlight_rules").TextHighlightRules,v=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=r.supportFunction="rgb|rgba|url|attr|counter|counters",g=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",s=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",a=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",l=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var m=this.createKeywordMapper({"support.function":h,"support.constant":g,"support.type":v,"support.constant.color":s,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:a},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+a+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:l},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};p.inherits(u,y),r.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},v.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(v,y),v.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},v.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},v.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},r.JsDocCommentHighlightRules=v}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,r,f){function p(){var a=s.replace("\\d","\\d\\-"),l={onMatch:function(u,m,w){var A=u.charAt(1)=="/"?2:1;return A==1?(m!=this.nextState?w.unshift(this.next,this.nextState,0):w.unshift(this.next),w[2]++):A==2&&m==this.nextState&&(w[1]--,(!w[1]||w[1]<0)&&(w.shift(),w.shift())),[{type:"meta.tag.punctuation."+(A==1?"":"end-")+"tag-open.xml",value:u.slice(0,A)},{type:"meta.tag.tag-name.xml",value:u.substr(A)}]},regex:"</?(?:"+a+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(l);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,m,w){return m==w[0]&&w.shift(),u.length==2&&(w[0]==this.nextState&&w[1]--,(!w[1]||w[1]<0)&&w.splice(0,2)),this.next=w[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,y("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:a},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},l],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function y(a){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var v=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",c=function(a){var l={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},o=this.createKeywordMapper(l,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",m="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",w="(function)(\\s*)(\\*?)",A={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(l).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),y("no_regex"),A,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:w+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),y("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[y("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,$,C){if(this.next=R=="{"?this.nextState:"",R=="{"&&C.length)C.unshift("start",$);else if(R=="}"&&C.length&&(C.shift(),this.next=C.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:m},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!a||a.jsx!=0)&&p.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};v.inherits(c,g),r.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=function(h){var g="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+g+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:g},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+g+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+g+":)?"+g+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:g},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===v&&this.normalizeRules()};(function(){this.embedTagRules=function(h,g,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,a,l){return l.splice(0),this.token}}],this.embedRules(h,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(y.prototype),p.inherits(v,y),r.XmlHighlightRules=v}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/lang"),v=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,g=e("./xml_highlight_rules").XmlHighlightRules,s=y.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),c=function(){g.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(a,l){var o=s[l];return["meta.tag.punctuation."+(a=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(v,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};p.inherits(c,g),r.HtmlHighlightRules=c}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,r,f){var p=e("../config").$modes,y=e("../lib/oop"),v=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,g=e("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+v.escapeRegExp(a)+"\\\\]|\\\\.)*"},c=function(){g.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,m,w){var A=o.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(A[3])[0];return p[R]||(R=""),m.unshift("githubblock",[],[A[1],A[2],R],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,m,w){var A=m[1],R=m[2][0],$=m[2][1],C=m[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<R.length+3&&b[2].length>=$.length&&b[2][0]==$[0])return m.splice(0,3),this.next=m.shift(),this.token;if(this.next="",C&&p[C]){var T=p[C].getTokenizer().getLineTokens(o,A.slice(0));return m[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},a,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},a,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:l}),this.normalizeRules()};y.inherits(c,h),r.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=e("../../range").Range,h=r.FoldMode=function(){};p.inherits(h,y),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,s,c){var a=g.getLine(c);return this.foldingStartMarker.test(a)?a[0]=="`"&&g.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,s,c){function a(E){return R=g.getTokens(E)[0],R&&R.type.lastIndexOf($,0)===0}function l(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var o=g.getLine(c),u=o.length,m=g.getLength(),w=c,A=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(c)!=="start"){for(;++c<m&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(w,u,c,0)}for(;c-- >0&&(o=g.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(c,o.length,w,0)}var R,$="markup.heading";if(a(c)){for(var C=l();++c<m;)if(a(c)){var b=l();if(b>=C)break}if(A=c-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),A>w)for(;A>w&&/^\s*$/.test(g.getLine(A));)A--;if(A>w){var T=g.getLine(A).length;return new v(w,u,A,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var p=e("../range").Range,y=function(){};(function(){this.checkOutdent=function(v,h){return/^\s+$/.test(v)?/^\s*\}/.test(h):!1},this.autoOutdent=function(v,h){var g=v.getLine(h),s=g.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,a=v.findMatchingBracket({row:h,column:c});if(!a||a.row==h)return 0;var l=this.$getIndent(v.getLine(a.row));v.replace(new p(h,0,h,c-1),l)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(y.prototype),r.MatchingBraceOutdent=y}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,f){function p(s,c){return s&&s.type.lastIndexOf(c+".xml")>-1}var y=e("../../lib/oop"),v=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(s,c,a,l,o){if(o=='"'||o=="'"){var u=o,m=l.doc.getTextRange(a.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&a.getWrapBehavioursEnabled())return{text:u+m+u,selection:!1};var w=a.getCursorPosition(),A=l.doc.getLine(w.row),R=A.substring(w.column,w.column+1),$=new h(l,w.row,w.column),C=$.getCurrentToken();if(R==u&&(p(C,"attribute-value")||p(C,"string")))return{text:"",selection:[1,1]};if(C||(C=$.stepBackward()),!C)return;for(;p(C,"tag-whitespace")||p(C,"whitespace");)C=$.stepBackward();var b=!R||R.match(/\s/);if(p(C,"attribute-equals")&&(b||R==">")||p(C,"decl-attribute-equals")&&(b||R=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,c,a,l,o){var u=l.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var m=l.doc.getLine(o.start.row),w=m.substring(o.start.column+1,o.start.column+2);if(w==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,c,a,l,o){if(o==">"){var u=a.getSelectionRange().start,m=new h(l,u.row,u.column),w=m.getCurrentToken()||m.stepBackward();if(!w||!(p(w,"tag-name")||p(w,"tag-whitespace")||p(w,"attribute-name")||p(w,"attribute-equals")||p(w,"attribute-value"))||p(w,"reference.attribute-value"))return;if(p(w,"attribute-value")){var A=m.getCurrentTokenColumn()+w.value.length;if(u.column<A)return;if(u.column==A){var R=m.stepForward();if(R&&p(R,"attribute-value"))return;m.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!p(w,"tag-name");)if(w=m.stepBackward(),w.value=="<"){w=m.stepForward();break}var $=m.getCurrentTokenRow(),C=m.getCurrentTokenColumn();if(p(m.stepBackward(),"end-tag-open"))return;var b=w.value;return $==u.row&&(b=b.substring(0,u.column-C)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,c,a,l,o){if(o==`
973
- `){var u=a.getCursorPosition(),m=l.getLine(u.row),w=new h(l,u.row,u.column),A=w.getCurrentToken();if(p(A,"")&&A.type.indexOf("tag-close")!==-1){if(A.value=="/>")return;for(;A&&A.type.indexOf("tag-name")===-1;)A=w.stepBackward();if(!A)return;var R=A.value,$=w.getCurrentTokenRow();if(A=w.stepBackward(),!A||A.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var C=l.getTokenAt(u.row,u.column+1),m=l.getLine($),b=this.$getIndent(m),T=b+l.getTabString();return C&&C.value==="</"?{text:`
974
- `+T+`
975
- `+b,selection:[1,T.length,1,T.length]}:{text:`
976
- `+T}}}}})};y.inherits(g,v),r.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,r,f){var p=e("../../lib/oop"),y=e("../../token_iterator").TokenIterator,v=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,g=function(){var s=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(v),this.add("autoclosing-fragment","insertion",function(c,a,l,o,u){if(u==">"){var m=l.getSelectionRange().start,w=new y(o,m.row,m.column),A=w.getCurrentToken()||w.stepBackward();if(!A)return;if(A.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(g,v),r.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){function p(c,a){return c.type.lastIndexOf(a+".xml")>-1}var y=e("../../lib/oop"),v=e("../../range").Range,h=e("./fold_mode").FoldMode,g=r.FoldMode=function(c,a){h.call(this),this.voidElements=c||{},this.optionalEndTags=y.mixin({},this.voidElements),a&&y.mixin(this.optionalEndTags,a)};y.inherits(g,h);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(c,a,l){var o=this._getFirstTagInLine(c,l);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(c,l,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(c,l)},this.getCommentFoldWidget=function(c,a){return/comment/.test(c.getState(a))&&/<!-/.test(c.getLine(a))?"start":""},this._getFirstTagInLine=function(c,a){for(var l=c.getTokens(a),o=new s,u=0;u<l.length;u++){var m=l[u];if(p(m,"tag-open")){if(o.end.column=o.start.column+m.value.length,o.closing=p(m,"end-tag-open"),m=l[++u],!m)return null;if(o.tagName=m.value,m.value===""){if(m=l[++u],!m)return null;o.tagName=m.value}for(o.end.column+=m.value.length,u++;u<l.length;u++)if(m=l[u],o.end.column+=m.value.length,p(m,"tag-close")){o.selfClosing=m.value=="/>";break}return o}if(p(m,"tag-close"))return o.selfClosing=m.value=="/>",o;o.start.column+=m.value.length}return null},this._findEndTagInLine=function(c,a,l,o){for(var u=c.getTokens(a),m=0,w=0;w<u.length;w++){var A=u[w];if(m+=A.value.length,!(m<o-1)&&p(A,"end-tag-open")&&(A=u[w+1],p(A,"tag-name")&&A.value===""&&(A=u[w+2]),A&&A.value==l))return!0}return!1},this.getFoldWidgetRange=function(c,a,l){var o=this._getFirstTagInLine(c,l);if(!o)return this.getCommentFoldWidget(c,l)&&c.getCommentFoldRange(l,c.getLine(l).length);var u=c.getMatchingTags({row:l,column:0});if(u)return new v(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("../../range").Range,v=e("./fold_mode").FoldMode,h=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};p.inherits(h,v),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,c){var a=g.getLine(c);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(g,s,c);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(g,s,c,a){var l=g.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(g,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],c,u);var m=g.getCommentFoldRange(c,u+o[0].length,1);return m&&!m.isMultiLine()&&(a?m=this.getSectionRange(g,c):s!="all"&&(m=null)),m}if(s!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],c,u):g.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(g,s){var c=g.getLine(s),a=c.search(/\S/),l=s,o=c.length;s+=1;for(var u=s,m=g.getLength();++s<m;){c=g.getLine(s);var w=c.search(/\S/);if(w!==-1){if(a>w)break;var A=this.getFoldWidgetRange(g,"all",s);if(A){if(A.start.row<=l)break;if(A.isMultiLine())s=A.end.row;else if(a==w)break}u=s}}return new y(l,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,c){for(var a=s.search(/\s*$/),l=g.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++c<l;){s=g.getLine(c);var w=u.exec(s);if(w&&(w[1]?m--:m++,!m))break}var A=c;if(A>o)return new y(o,a,A,s.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,r,f){var p=e("../../lib/oop"),y=e("./xml").FoldMode,v=e("./cstyle").FoldMode,h=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new y};p.inherits(h,v),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,c){var a=this.getFoldWidgetBase(g,s,c);return a||this.xmlFoldMode.getFoldWidget(g,s,c)},this.getFoldWidgetRange=function(g,s,c,a){var l=this.getFoldWidgetRangeBase(g,s,c,a);return l||this.xmlFoldMode.getFoldWidgetRange(g,s,c)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,s=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,a=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=new s,this.foldingRules=new c};p.inherits(a,y),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var m=this.$getIndent(o),w=this.getTokenizer().getLineTokens(o,l),A=w.tokens,R=w.state;if(A.length&&A[A.length-1].type=="comment")return m;if(l=="start"||l=="no_regex"){var $=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);$&&(m+=u)}else if(l=="doc-start"&&(R=="start"||R=="no_regex"))return"";return m},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,r,f){var p={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},y=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var v=document.createElement("c").style;for(var h in v)if(typeof v[h]=="string"){var g=h.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});p.hasOwnProperty(g)||(p[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(v,h,g,s){if(this.completionsDefined||this.defineCompletions(),v==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(g.row).substr(0,g.column),a=/\([^)]*$/.test(c);return a&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(v,h,g,s):this.getPropertyCompletions(v,h,g,s,a)}return[]},this.getPropertyCompletions=function(v,h,g,s,c){c=c||!1;var a=Object.keys(p);return a.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(v,h,g,s){var c=h.getLine(g.row).substr(0,g.column),a=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!a)return[];var l=[];return a in p&&typeof p[a]=="object"&&(l=Object.keys(p[a])),l.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(y.prototype),r.CssCompletions=y}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,r,f){var p=e("../../lib/oop");e("../behaviour").Behaviour;var y=e("./cstyle").CstyleBehaviour,v=e("../../token_iterator").TokenIterator,h=function(){this.inherit(y),this.add("colon","insertion",function(g,s,c,a,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new v(a,o.row,o.column),m=u.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=u.stepBackward()),m&&m.type==="support.type"){var w=a.doc.getLine(o.row),A=w.substring(o.column,o.column+1);if(A===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(w.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,s,c,a,l){var o=a.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),m=new v(a,u.row,u.column),w=m.getCurrentToken();if(w&&w.value.match(/\s+/)&&(w=m.stepBackward()),w&&w.type==="support.type"){var A=a.doc.getLine(l.start.row),R=A.substring(l.end.column,l.end.column+1);if(R===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(g,s,c,a,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row),m=u.substring(o.column,o.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,s,c,a,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};p.inherits(h,y),r.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,s=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,a=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=v,this.$outdent=new h,this.$behaviour=new c,this.$completer=new s,this.foldingRules=new a};p.inherits(l,y),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,m){var w=this.$getIndent(u),A=this.getTokenizer().getLineTokens(u,o).tokens;if(A.length&&A[A.length-1].type=="comment")return w;var R=u.match(/^.*\{\s*$/);return R&&(w+=m),w},this.checkOutdent=function(o,u,m){return this.$outdent.checkOutdent(u,m)},this.autoOutdent=function(o,u,m){this.$outdent.autoOutdent(u,m)},this.getCompletions=function(o,u,m,w){return this.$completer.getCompletions(o,u,m,w)},this.createWorker=function(o){var u=new g(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(m){o.setAnnotations(m.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),r.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var p=e("../../lib/oop"),y=e("./fold_mode").FoldMode,v=r.FoldMode=function(h,g){this.defaultMode=h,this.subModes=g};p.inherits(v,y),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var g in this.subModes)if(h.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(h,g,s,c){var a=this.$getMode(h);return a?a.getFoldWidget(g,s,c):""},this.getFoldWidget=function(h,g,s){return this.$tryMode(h.getState(s-1),h,g,s)||this.$tryMode(h.getState(s),h,g,s)||this.defaultMode.getFoldWidget(h,g,s)},this.getFoldWidgetRange=function(h,g,s){var c=this.$getMode(h.getState(s-1));return(!c||!c.getFoldWidget(h,g,s))&&(c=this.$getMode(h.getState(s))),(!c||!c.getFoldWidget(h,g,s))&&(c=this.defaultMode),c.getFoldWidgetRange(h,g,s)}}).call(v.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,r,f){var p=e("../../lib/oop"),y=e("./mixed").FoldMode,v=e("./xml").FoldMode,h=e("./cstyle").FoldMode,g=r.FoldMode=function(s,c){y.call(this,new v(s,c),{"js-":new h,"css-":new h})};p.inherits(g,y)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,r,f){function p(u,m){return u.type.lastIndexOf(m+".xml")>-1}function y(u,m){for(var w=new h(u,m.row,m.column),A=w.getCurrentToken();A&&!p(A,"tag-name");)A=w.stepBackward();if(A)return A.value}function v(u,m){for(var w=new h(u,m.row,m.column),A=w.getCurrentToken();A&&!p(A,"attribute-name");)A=w.stepBackward();if(A)return A.value}var h=e("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],c=g.concat(s),a={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},l=Object.keys(a),o=function(){};(function(){this.getCompletions=function(u,m,w,A){var R=m.getTokenAt(w.row,w.column);if(!R)return[];if(p(R,"tag-name")||p(R,"tag-open")||p(R,"end-tag-open"))return this.getTagCompletions(u,m,w,A);if(p(R,"tag-whitespace")||p(R,"attribute-name"))return this.getAttributeCompletions(u,m,w,A);if(p(R,"attribute-value"))return this.getAttributeValueCompletions(u,m,w,A);var $=m.getLine(w.row).substr(0,w.column);return/&[a-z]*$/i.test($)?this.getHTMLEntityCompletions(u,m,w,A):[]},this.getTagCompletions=function(u,m,w,A){return l.map(function(R){return{value:R,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,m,w,A){var R=y(m,w);if(!R)return[];var $=c;return R in a&&($=$.concat(Object.keys(a[R]))),$.map(function(C){return{caption:C,snippet:C+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,m,w,A){var R=y(m,w),$=v(m,w);if(!R)return[];var C=[];return R in a&&$ in a[R]&&typeof a[R][$]=="object"&&(C=Object.keys(a[R][$])),C.map(function(b){return{caption:b,snippet:b,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,m,w,A){var R=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return R.map(function($){return{caption:$,snippet:$,meta:"html entity",score:1e6}})}}).call(o.prototype),r.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/lang"),v=e("./text").Mode,h=e("./javascript").Mode,g=e("./css").Mode,s=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,a=e("./folding/html").FoldMode,l=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],w=function(A){this.fragmentContext=A&&A.fragmentContext,this.HighlightRules=s,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":g}),this.foldingRules=new a(this.voidElements,y.arrayToMap(m))};p.inherits(w,v),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=y.arrayToMap(u),this.getNextLineIndent=function(A,R,$){return this.$getIndent(R)},this.checkOutdent=function(A,R,$){return!1},this.getCompletions=function(A,R,$,C){return this.$completer.getCompletions(A,R,$,C)},this.createWorker=function(A){if(this.constructor==w){var R=new o(["ace"],"ace/mode/html_worker","Worker");return R.attachToDocument(A.getDocument()),this.fragmentContext&&R.call("setOptions",[{context:this.fragmentContext}]),R.on("error",function($){A.setAnnotations($.data)}),R.on("terminate",function(){A.clearAnnotations()}),R}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(w.prototype),r.Mode=w}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var p=e("../lib/oop"),y=e("./text_highlight_rules").TextHighlightRules,v=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",h=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",g=function(){var s=this.createKeywordMapper({keyword:v,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+a+")|(?:"+l+"\\.))",u="(?:(?:"+o+"|"+l+"))",m="(?:"+u+"|"+o+")",w="(?:&"+l+")",A="[a-zA-Z_][a-zA-Z0-9_]*",R="(?:"+A+"(?==))",$="(?:\\$(?:SHLVL|\\$|\\!|\\?))",C="(?:"+A+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(b,T,E){var L=b[2]=="-"?"indentedHeredoc":"heredoc",I=b.split(this.splitRegex);return E.push(L,I[4]),[{type:"constant",value:I[1]},{type:"text",value:I[2]},{type:"string",value:I[3]},{type:"support.class",value:I[4]},{type:"string",value:I[5]}]},rules:{heredoc:[{onMatch:function(b,T,E){return b===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(b,T,E){return b===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(b,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:b}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:$},{token:"variable",regex:R},{include:"variables"},{token:"support.function",regex:C},{token:"support.function",regex:w},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:m},{token:"constant.numeric",regex:c+"\\b"},{token:s,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};p.inherits(g,y),r.ShHighlightRules=g}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,r,f){var p=e("../lib/oop"),y=e("./text").Mode,v=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,g=e("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=v,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};p.inherits(s,y),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,l,o){var u=this.$getIndent(l),m=this.getTokenizer().getLineTokens(l,a),w=m.tokens;if(w.length&&w[w.length-1].type=="comment")return u;if(a=="start"){var A=l.match(/^.*[\{\(\[:]\s*$/);A&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,l,o){if(o!==`\r
977
- `&&o!=="\r"&&o!==`
978
- `)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),a).tokens;if(!u)return!1;do var m=u.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&c[m.value]:!1},this.autoOutdent=function(a,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),m=l.getTabString();u.slice(-m.length)==m&&l.remove(new h(o,u.length-m.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),r.Mode=s}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,r,f){var p=e("../lib/oop"),y=e("../lib/lang"),v=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,g=e("./behaviour/xml").XmlBehaviour,s=e("./folding/xml").FoldMode,c=e("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=h,this.$behaviour=new g,this.foldingRules=new s};p.inherits(a,v),(function(){this.voidElements=y.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,r,f){var p=e("../lib/oop"),y=e("./behaviour/cstyle").CstyleBehaviour,v=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,g=e("./folding/markdown").FoldMode,s=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new g,this.$behaviour=new y({braces:!0})};p.inherits(s,v),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(c,a,l){if(c=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(a);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(e){n&&(n.exports=e)})}()}(Ff)),Ff.exports}xb();var Pf={exports:{}},Hf;function Ab(){return Hf||(Hf=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,r,f){f.exports=`.ace-twilight .ace_gutter {
979
- background: #232323;
980
- color: #E2E2E2
981
- }
982
-
983
- .ace-twilight .ace_print-margin {
984
- width: 1px;
985
- background: #232323
986
- }
987
-
988
- .ace-twilight {
989
- background-color: #141414;
990
- color: #F8F8F8
991
- }
992
-
993
- .ace-twilight .ace_cursor {
994
- color: #A7A7A7
995
- }
996
-
997
- .ace-twilight .ace_marker-layer .ace_selection {
998
- background: rgba(221, 240, 255, 0.20)
999
- }
1000
-
1001
- .ace-twilight.ace_multiselect .ace_selection.ace_start {
1002
- box-shadow: 0 0 3px 0px #141414;
1003
- }
1004
-
1005
- .ace-twilight .ace_marker-layer .ace_step {
1006
- background: rgb(102, 82, 0)
1007
- }
1008
-
1009
- .ace-twilight .ace_marker-layer .ace_bracket {
1010
- margin: -1px 0 0 -1px;
1011
- border: 1px solid rgba(255, 255, 255, 0.25)
1012
- }
1013
-
1014
- .ace-twilight .ace_marker-layer .ace_active-line {
1015
- background: rgba(255, 255, 255, 0.031)
1016
- }
1017
-
1018
- .ace-twilight .ace_gutter-active-line {
1019
- background-color: rgba(255, 255, 255, 0.031)
1020
- }
1021
-
1022
- .ace-twilight .ace_marker-layer .ace_selected-word {
1023
- border: 1px solid rgba(221, 240, 255, 0.20)
1024
- }
1025
-
1026
- .ace-twilight .ace_invisible {
1027
- color: rgba(255, 255, 255, 0.25)
1028
- }
1029
-
1030
- .ace-twilight .ace_keyword,
1031
- .ace-twilight .ace_meta {
1032
- color: #CDA869
1033
- }
1034
-
1035
- .ace-twilight .ace_constant,
1036
- .ace-twilight .ace_constant.ace_character,
1037
- .ace-twilight .ace_constant.ace_character.ace_escape,
1038
- .ace-twilight .ace_constant.ace_other,
1039
- .ace-twilight .ace_heading,
1040
- .ace-twilight .ace_markup.ace_heading,
1041
- .ace-twilight .ace_support.ace_constant {
1042
- color: #CF6A4C
1043
- }
1044
-
1045
- .ace-twilight .ace_invalid.ace_illegal {
1046
- color: #F8F8F8;
1047
- background-color: rgba(86, 45, 86, 0.75)
1048
- }
1049
-
1050
- .ace-twilight .ace_invalid.ace_deprecated {
1051
- text-decoration: underline;
1052
- font-style: italic;
1053
- color: #D2A8A1
1054
- }
1055
-
1056
- .ace-twilight .ace_support {
1057
- color: #9B859D
1058
- }
1059
-
1060
- .ace-twilight .ace_fold {
1061
- background-color: #AC885B;
1062
- border-color: #F8F8F8
1063
- }
1064
-
1065
- .ace-twilight .ace_support.ace_function {
1066
- color: #DAD085
1067
- }
1068
-
1069
- .ace-twilight .ace_list,
1070
- .ace-twilight .ace_markup.ace_list,
1071
- .ace-twilight .ace_storage {
1072
- color: #F9EE98
1073
- }
1074
-
1075
- .ace-twilight .ace_entity.ace_name.ace_function,
1076
- .ace-twilight .ace_meta.ace_tag {
1077
- color: #AC885B
1078
- }
1079
-
1080
- .ace-twilight .ace_string {
1081
- color: #8F9D6A
1082
- }
1083
-
1084
- .ace-twilight .ace_string.ace_regexp {
1085
- color: #E9C062
1086
- }
1087
-
1088
- .ace-twilight .ace_comment {
1089
- font-style: italic;
1090
- color: #5F5A60
1091
- }
1092
-
1093
- .ace-twilight .ace_variable {
1094
- color: #7587A6
1095
- }
1096
-
1097
- .ace-twilight .ace_xml-pe {
1098
- color: #494949
1099
- }
1100
-
1101
- .ace-twilight .ace_indent-guide {
1102
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1103
- }
1104
-
1105
- .ace-twilight .ace_indent-guide-active {
1106
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
- }
1108
- `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,r,f){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=e("./twilight-css");var p=e("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n&&(n.exports=e)})}()}(Pf)),Pf.exports}Ab();var jf={exports:{}},Bf;function Cb(){return Bf||(Bf=1,function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,r,f){function p(b){var T=new Date().toLocaleString("en-us",b);return T.length==1?"0"+T:T}var y=e("./lib/dom"),v=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,g=e("./lib/lang"),s=e("./range").Range,c=e("./range_list").RangeList,a=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,T,E){var L=b.session.getTextRange();return E?L.replace(/\n\r?([ \t]*\S)/g,`
1109
- `+E+"$1"):L},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return o.getText&&o.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(b){var T=b.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var m=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function T(I){return I=I.substr(1),/^\d+$/.test(I)?[{tabstopId:parseInt(I,10)}]:[{text:I}]}function E(I){return"(?:[^\\\\"+I+"]|\\\\.)"}var L={regex:"/("+E("/")+"+)/",onMatch:function(I,N,_){var x=_[0];return x.fmtString=!0,x.guard=I.slice(1,-1),x.flag="",""},next:"formatString"};return b.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(I,N,_){var x=I[1];return(x=="}"&&_.length||"`$\\".indexOf(x)!=-1)&&(I=x),[I]}},{regex:/}/,onMatch:function(I,N,_){return[_.length?_.shift():I]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(I,N,_){var x=T(I.substr(1));return _.unshift(x[0]),x},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(I,N,_){var x=I.slice(1,-1).replace(/\\[,|\\]|,/g,function(k){return k.length==2?k[1]:"\0"}).split("\0").map(function(k){return{value:k}});return _[0].choices=x,[x[0]]},next:"start"},L,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(I,N,_){return _.length&&_[0].expectElse?(_[0].expectElse=!1,_[0].ifEnd={elseEnd:_[0]},[_[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(I,N,_){var x=I[1];return x=="}"&&_.length||"`$\\".indexOf(x)!=-1?I=x:x=="n"?I=`
1110
- `:x=="t"?I=" ":"ulULE".indexOf(x)!=-1&&(I={changeCase:x,local:x>"a"}),[I]}},{regex:"/\\w*}",onMatch:function(I,N,_){var x=_.shift();return x&&(x.flag=I.slice(1,-1)),this.next=x&&x.tabstopId?"start":"",[x||I]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(I,N,_){return[{text:I.slice(1)}]}},{regex:/\${\w+/,onMatch:function(I,N,_){var x={text:I.slice(2)};return _.unshift(x),[x]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(I,N,_){var x=_.shift();return this.next=x&&x.tabstopId?"start":"",[x||I]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(I,N,_){var x=_[0];return x.formatFunction=I.slice(2,-1),[_.shift()]},next:"formatString"},L,{regex:/:[\?\-+]?/,onMatch:function(I,N,_){I[1]=="+"&&(_[0].ifEnd=_[0]),I[1]=="?"&&(_[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(T,E){return this.getTokenizer().getLineTokens(T,E).tokens.map(function(L){return L.value||L})},b.prototype.getVariableValue=function(T,E,L){if(/^\d+$/.test(E))return(this.variables.__||{})[E]||"";if(/^[A-Z]\d+$/.test(E))return(this.variables[E[0]+"__"]||{})[E.substr(1)]||"";if(E=E.replace(/^TM_/,""),!this.variables.hasOwnProperty(E))return"";var I=this.variables[E];return typeof I=="function"&&(I=this.variables[E](T,E,L)),I??""},b.prototype.tmStrFormat=function(T,E,L){if(!E.fmt)return T;var I=E.flag||"",N=E.guard;N=new RegExp(N,I.replace(/[^gim]/g,""));var _=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,x=this,k=T.replace(N,function(){var M=x.variables.__;x.variables.__=[].slice.call(arguments);for(var O=x.resolveVariables(_,L),F="E",P=0;P<O.length;P++){var z=O[P];if(typeof z=="object")if(O[P]="",z.changeCase&&z.local){var V=O[P+1];V&&typeof V=="string"&&(z.changeCase=="u"?O[P]=V[0].toUpperCase():O[P]=V[0].toLowerCase(),O[P+1]=V.substr(1))}else z.changeCase&&(F=z.changeCase);else F=="U"?O[P]=z.toUpperCase():F=="L"&&(O[P]=z.toLowerCase())}return x.variables.__=M,O.join("")});return k},b.prototype.tmFormatFunction=function(T,E,L){return E.formatFunction=="upcase"?T.toUpperCase():E.formatFunction=="downcase"?T.toLowerCase():T},b.prototype.resolveVariables=function(T,E){function L(F){var P=T.indexOf(F,x+1);P!=-1&&(x=P)}for(var I=[],N="",_=!0,x=0;x<T.length;x++){var k=T[x];if(typeof k=="string"){I.push(k),k==`
1111
- `?(_=!0,N=""):_&&(N=/^\t*/.exec(k)[0],_=/\S/.test(k));continue}if(k){if(_=!1,k.fmtString){var M=T.indexOf(k,x+1);M==-1&&(M=T.length),k.fmt=T.slice(x+1,M),x=M}if(k.text){var O=this.getVariableValue(E,k.text,N)+"";k.fmtString&&(O=this.tmStrFormat(O,k,E)),k.formatFunction&&(O=this.tmFormatFunction(O,k,E)),O&&!k.ifEnd?(I.push(O),L(k)):!O&&k.ifEnd&&L(k.ifEnd)}else k.elseEnd?L(k.elseEnd):(k.tabstopId!=null||k.changeCase!=null)&&I.push(k)}}return I},b.prototype.getDisplayTextForSnippet=function(T,E){var L=w.call(this,T,E);return L.text},b.prototype.insertSnippetForSelection=function(T,E,L){L===void 0&&(L={});var I=w.call(this,T,E,L),N=T.getSelectionRange(),_=T.session.replace(N,I.text),x=new A(T),k=T.inVirtualSelectionMode&&T.selection.index;x.addTabstops(I.tabstops,N.start,_,k)},b.prototype.insertSnippet=function(T,E,L){L===void 0&&(L={});var I=this;if(T.inVirtualSelectionMode)return I.insertSnippetForSelection(T,E,L);T.forEachSelection(function(){I.insertSnippetForSelection(T,E,L)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},b.prototype.$getScope=function(T){var E=T.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!T.session.$mode.inlinePhp&&(E="html");var L=T.getCursorPosition(),I=T.session.getState(L.row);typeof I=="object"&&(I=I[0]),I.substring&&(I.substring(0,3)=="js-"?E="javascript":I.substring(0,4)=="css-"?E="css":I.substring(0,4)=="php-"&&(E="php"))}return E},b.prototype.getActiveScopes=function(T){var E=this.$getScope(T),L=[E],I=this.snippetMap;return I[E]&&I[E].includeScopes&&L.push.apply(L,I[E].includeScopes),L.push("_"),L},b.prototype.expandWithTab=function(T,E){var L=this,I=T.forEachSelection(function(){return L.expandSnippetForSelection(T,E)},null,{keepOrder:!0});return I&&T.tabstopManager&&T.tabstopManager.tabNext(),I},b.prototype.expandSnippetForSelection=function(T,E){var L=T.getCursorPosition(),I=T.session.getLine(L.row),N=I.substring(0,L.column),_=I.substr(L.column),x=this.snippetMap,k;return this.getActiveScopes(T).some(function(M){var O=x[M];return O&&(k=this.findMatchingSnippet(O,N,_)),!!k},this),k?(E&&E.dryRun||(T.session.doc.removeInLine(L.row,L.column-k.replaceBefore.length,L.column+k.replaceAfter.length),this.variables.M__=k.matchBefore,this.variables.T__=k.matchAfter,this.insertSnippetForSelection(T,k.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(T,E,L){for(var I=T.length;I--;){var N=T[I];if(!(N.startRe&&!N.startRe.test(E))&&!(N.endRe&&!N.endRe.test(L))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(E):[""],N.matchAfter=N.endRe?N.endRe.exec(L):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(E)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(L)[0]:"",N}},b.prototype.register=function(T,E){function L(M){return M&&!/^\^?\(.*\)\$?$|^\\b$/.test(M)&&(M="(?:"+M+")"),M||""}function I(M,O,F){return M=L(M),O=L(O),M=O+M,M&&M[M.length-1]!="$"&&(M+="$"),new RegExp(M)}function N(M){M.scope||(M.scope=E||"_"),E=M.scope,_[E]||(_[E]=[],x[E]={});var O=x[E];if(M.name){var F=O[M.name];F&&k.unregister(F),O[M.name]=M}_[E].push(M),M.prefix&&(M.tabTrigger=M.prefix),!M.content&&M.body&&(M.content=Array.isArray(M.body)?M.body.join(`
1112
- `):M.body),M.tabTrigger&&!M.trigger&&(!M.guard&&/^\w/.test(M.tabTrigger)&&(M.guard="\\b"),M.trigger=g.escapeRegExp(M.tabTrigger)),!(!M.trigger&&!M.guard&&!M.endTrigger&&!M.endGuard)&&(M.startRe=I(M.trigger,M.guard),M.triggerRe=new RegExp(M.trigger),M.endRe=I(M.endTrigger,M.endGuard),M.endTriggerRe=new RegExp(M.endTrigger))}var _=this.snippetMap,x=this.snippetNameMap,k=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(M){N(T[M])}),this._signal("registerSnippets",{scope:E})},b.prototype.unregister=function(T,E){function L(_){var x=N[_.scope||E];if(x&&x[_.name]){delete x[_.name];var k=I[_.scope||E],M=k&&k.indexOf(_);M>=0&&k.splice(M,1)}}var I=this.snippetMap,N=this.snippetNameMap;T.content?L(T):Array.isArray(T)&&T.forEach(L)},b.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var E=[],L={},I=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=I.exec(T);){if(N[1])try{L=JSON.parse(N[1]),E.push(L)}catch{}if(N[4])L.content=N[4].replace(/^\t/gm,""),E.push(L),L={};else{var _=N[2],x=N[3];if(_=="regex"){var k=/\/((?:[^\/\\]|\\.)*)|$/g;L.guard=k.exec(x)[1],L.trigger=k.exec(x)[1],L.endTrigger=k.exec(x)[1],L.endGuard=k.exec(x)[1]}else _=="snippet"?(L.tabTrigger=x.match(/^\S*/)[0],L.name||(L.name=x)):_&&(L[_]=x)}}return E},b.prototype.getSnippetByName=function(T,E){var L=this.snippetNameMap,I;return this.getActiveScopes(E).some(function(N){var _=L[N];return _&&(I=_[T]),!!I},this),I},b}();v.implement(m.prototype,h);var w=function(b,T,E){function L(J){for(var ae=[],me=0;me<J.length;me++){var ve=J[me];if(typeof ve=="object"){if(O[ve.tabstopId])continue;var pe=J.lastIndexOf(ve,me-1);ve=ae[pe]||{tabstopId:ve.tabstopId}}ae[me]=ve}return ae}E===void 0&&(E={});var I=b.getCursorPosition(),N=b.session.getLine(I.row),_=b.session.getTabString(),x=N.match(/^\s*/)[0];I.column<x.length&&(x=x.slice(0,I.column)),T=T.replace(/\r/g,"");var k=this.tokenizeTmSnippet(T);k=this.resolveVariables(k,b),k=k.map(function(J){return J==`
1113
- `&&!E.excludeExtraIndent?J+x:typeof J=="string"?J.replace(/\t/g,_):J});var M=[];k.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,ve=M[me];if(ve||(ve=M[me]=[],ve.index=me,ve.value="",ve.parents={}),ve.indexOf(J)===-1){J.choices&&!ve.choices&&(ve.choices=J.choices),ve.push(J);var pe=k.indexOf(J,ae+1);if(pe!==-1){var Ae=k.slice(ae+1,pe),rt=Ae.some(function(Dt){return typeof Dt=="object"});rt&&!ve.value?ve.value=Ae:Ae.length&&(!ve.value||typeof ve.value!="string")&&(ve.value=Ae.join(""))}}}}),M.forEach(function(J){J.length=0});for(var O={},F=0;F<k.length;F++){var P=k[F];if(typeof P=="object"){var z=P.tabstopId,V=M[z],q=k.indexOf(P,F+1);if(O[z]){O[z]===P&&(delete O[z],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[z]=P;var X=V.value;typeof X!="string"?X=L(X):P.fmt&&(X=this.tmStrFormat(X,P,b)),k.splice.apply(k,[F+1,Math.max(0,q-F)].concat(X,P)),V.indexOf(P)===-1&&V.push(P)}}var G=0,Z=0,re="";return k.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
1114
- `);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:M,tokens:k}},A=function(){function b(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return b.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},b.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},b.prototype.onChange=function(T){for(var E=T.action[0]=="r",L=this.selectedTabstop||{},I=L.parents||{},N=this.tabstops.slice(),_=0;_<N.length;_++){var x=N[_],k=x==L||I[x.index];if(x.rangeList.$bias=k?0:1,T.action=="remove"&&x!==L){var M=x.parents&&x.parents[L.index],O=x.rangeList.pointIndex(T.start,M);O=O<0?-O-1:O+1;var F=x.rangeList.pointIndex(T.end,M);F=F<0?-F-1:F-1;for(var P=x.rangeList.ranges.slice(O,F),z=0;z<P.length;z++)this.removeRange(P[z])}x.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var E=this.session,L=E.getTextRange(T.firstNonLinked),I=0;I<T.length;I++){var N=T[I];if(N.linked){var _=N.original,x=r.snippetManager.tmStrFormat(L,_,this.editor);E.replace(N,x)}}this.$inChange=!1}},b.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,E=this.editor.selection.anchor,L=this.editor.selection.isEmpty(),I=0;I<this.ranges.length;I++)if(!this.ranges[I].linked){var N=this.ranges[I].contains(T.row,T.column),_=L||this.ranges[I].contains(E.row,E.column);if(N&&_)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(T){var E=this.tabstops.length,L=this.index+(T||1);L=Math.min(Math.max(L,1),E),L==E&&(L=0),this.selectTabstop(L),this.updateTabstopMarkers(),L===0&&this.detach()},b.prototype.selectTabstop=function(T){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=T,E=this.tabstops[this.index],!(!E||!E.length)){this.selectedTabstop=E;var L=E.firstNonLinked||E;if(E.choices&&(L.cursor=L.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(L);else{var I=this.editor.multiSelect;I.toSingleRange(L);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||I.addRange(E[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(T,E,L){var I=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(L,L);$(N.start,E),$(N.end,E),T[0]=[N],T[0].index=0}var _=this.index,x=[_+1,0],k=this.ranges,M=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var P=this.$openTabstops[F]||O;P.snippetId=M;for(var z=0;z<O.length;z++){var V=O[z],q=s.fromPoints(V.start,V.end||V.start);R(q.start,E),R(q.end,E),q.original=V,q.tabstop=P,k.push(q),P!=O?P.unshift(q):P[z]=q,V.fmtString||P.firstNonLinked&&I?(q.linked=!0,P.hasLinkedRanges=!0):P.firstNonLinked||(P.firstNonLinked=q)}P.firstNonLinked||(P.hasLinkedRanges=!1),P===O&&(x.push(P),this.$openTabstops[F]=P),this.addTabstopMarkers(P),P.rangeList=P.rangeList||new c,P.rangeList.$bias=0,P.rangeList.addList(P)},this),x.length>2&&(this.tabstops.length&&x.push(x.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,x))},b.prototype.addTabstopMarkers=function(T){var E=this.session;T.forEach(function(L){L.markerId||(L.markerId=E.addMarker(L,"ace_snippet-marker","text"))})},b.prototype.removeTabstopMarkers=function(T){var E=this.session;T.forEach(function(L){E.removeMarker(L.markerId),L.markerId=null})},b.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(E){E.snippetId===T?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},b.prototype.removeRange=function(T){var E=T.tabstop.indexOf(T);E!=-1&&T.tabstop.splice(E,1),E=this.ranges.indexOf(T),E!=-1&&this.ranges.splice(E,1),E=T.tabstop.rangeList.ranges.indexOf(T),E!=-1&&T.tabstop.splice(E,1),this.session.removeMarker(T.markerId),T.tabstop.length||(E=this.tabstops.indexOf(T.tabstop),E!=-1&&this.tabstops.splice(E,1),this.tabstops.length||this.detach())},b}();A.prototype.keyboardHandler=new a,A.prototype.keyboardHandler.bindKeys({Tab:function(b){r.snippetManager&&r.snippetManager.expandWithTab(b)||(b.tabstopManager.tabNext(1),b.renderer.scrollCursorIntoView())},"Shift-Tab":function(b){b.tabstopManager.tabNext(-1),b.renderer.scrollCursorIntoView()},Esc:function(b){b.tabstopManager.detach()}});var R=function(b,T){b.row==0&&(b.column+=T.column),b.row+=T.row},$=function(b,T){b.row==T.row&&(b.column-=T.column),b.row-=T.row};y.importCssString(`
1115
- .ace_snippet-marker {
1116
- -moz-box-sizing: border-box;
1117
- box-sizing: border-box;
1118
- background: rgba(194, 193, 208, 0.09);
1119
- border: 1px dotted rgba(211, 208, 235, 0.62);
1120
- position: absolute;
1121
- }`,"snippets.css",!1),r.snippetManager=new m;var C=e("./editor").Editor;(function(){this.insertSnippet=function(b,T){return r.snippetManager.insertSnippet(this,b,T)},this.expandSnippet=function(b){return r.snippetManager.expandWithTab(this,b)}}).call(C.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,r,f){var p=e("../virtual_renderer").VirtualRenderer,y=e("../editor").Editor,v=e("../range").Range,h=e("../lib/event"),g=e("../lib/lang"),s=e("../lib/dom"),c=e("../config").nls,a=e("./../lib/useragent"),l=function(R){return"suggest-aria-id:".concat(R)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",m=a.isSafari?"aria-current":"aria-selected",w=function(R){var $=new p(R);$.$maxLines=4;var C=new y($);return C.setHighlightActiveLine(!1),C.setShowPrintMargin(!1),C.renderer.setShowGutter(!1),C.renderer.setHighlightGutterLine(!1),C.$mouseHandler.$focusTimeout=0,C.$highlightTagPending=!0,C},A=function(){function R($){var C=s.createElement("div"),b=w(C);$&&$.appendChild(C),C.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",o),b.renderer.$textLayer.element.setAttribute("aria-roledescription",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var T=function(){};b.focus=T,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=T,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(k){var M=k.getDocumentPosition();b.selection.moveToPosition(M),I.start.row=I.end.row=M.row,k.stop()});var E,L=new v(-1,0,-1,1/0),I=new v(-1,0,-1,1/0);I.id=b.session.addMarker(I,"ace_active-line","fullLine"),b.setSelectOnHover=function(k){k?L.id&&(b.session.removeMarker(L.id),L.id=null):L.id=b.session.addMarker(L,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(k){if(!E){E=k;return}if(!(E.x==k.x&&E.y==k.y)){E=k,E.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var M=E.getDocumentPosition().row;L.start.row!=M&&(L.id||b.setRow(M),_(M))}}),b.renderer.on("beforeRender",function(){if(E&&L.start.row!=-1){E.$pos=null;var k=E.getDocumentPosition().row;L.id||b.setRow(k),_(k,!0)}}),b.renderer.on("afterRender",function(){for(var k=b.renderer.$textLayer,M=k.config.firstRow,O=k.config.lastRow;M<=O;M++){var F=k.element.childNodes[M-k.config.firstRow],P=b.getData(M),z="".concat(P.caption||P.value).concat(P.meta?", ".concat(P.meta):"");F.setAttribute("role",u),F.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),F.setAttribute("aria-label",z),F.setAttribute("aria-setsize",b.data.length),F.setAttribute("aria-describedby","doc-tooltip"),F.setAttribute("aria-posinset",M+1);var V=F.querySelectorAll(".ace_completion-highlight");V.forEach(function(q){q.setAttribute("role","mark")})}}),b.renderer.on("afterRender",function(){var k=b.getRow(),M=b.renderer.$textLayer,O=M.element.childNodes[k-M.config.firstRow],F=document.activeElement;if(O!==b.selectedNode&&b.selectedNode&&(s.removeCssClass(b.selectedNode,"ace_selected"),b.selectedNode.removeAttribute(m),b.selectedNode.removeAttribute("id")),F.removeAttribute("aria-activedescendant"),b.selectedNode=O,O){var P=l(k);s.addCssClass(O,"ace_selected"),O.id=P,M.element.setAttribute("aria-activedescendant",P),F.setAttribute("aria-activedescendant",P),O.setAttribute(m,"true")}});var N=function(){_(-1)},_=function(k,M){k!==L.start.row&&(L.start.row=L.end.row=k,M||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return L.start.row},h.addListener(b.container,"mouseout",function(){b.isMouseOver=!1,N()}),b.on("hide",N),b.on("changeSelection",N),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(k){var M=b.data[k];return typeof M=="string"?M:M&&M.value||""};var x=b.session.bgTokenizer;return x.$tokenizeRow=function(k){function M(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=b.data[k],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var P=O.caption||O.value||O.name,z=P.toLowerCase(),V=(b.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var re=z.indexOf(Z,q);if(re==-1)continue;M(P.slice(q,re),""),q=re+Z.length,M(P.slice(re,q),"completion-highlight")}return M(P.slice(q,P.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},x.$updateOnChange=T,x.start=T,b.session.$computeWidth=function(){return this.screenWidth=0},b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.filterText="",b.isMouseOver=!1,b.data=[],b.setData=function(k,M){b.filterText=M||"",b.setValue(g.stringRepeat(`
1122
- `,k.length),-1),b.data=k||[],b.setRow(0)},b.getData=function(k){return b.data[k]},b.getRow=function(){return I.start.row},b.setRow=function(k){k=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,k)),I.start.row!=k&&(b.selection.clearSelection(),I.start.row=I.end.row=k||0,b.session._emit("changeBackMarker"),b.moveCursorTo(k||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function(k,M,O,F){if(!F&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===k.top&&b.anchorPos.left===k.left&&b.anchor===O)return!0;var P=this.container,z=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*M*1.4,G={top:0,bottom:0},Z=z-k.top-3*this.$borderSize-M,re=k.top-3*this.$borderSize;O||(re<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=k.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=k.top+M+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=z;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(P.style.top="",P.style.bottom=z-G.bottom+"px",b.isTopdown=!1):(P.style.top=G.top+"px",P.style.bottom="",b.isTopdown=!0),P.style.display="";var ae=k.left;return ae+P.offsetWidth>V&&(ae=V-P.offsetWidth),P.style.left=ae+"px",P.style.right="",b.isOpen||(b.isOpen=!0,this._signal("show"),E=null),b.anchorPos=k,b.anchor=O,!0},b.show=function(k,M,O){this.tryShow(k,M,O?"bottom":void 0,!0)},b.goTo=function(k){var M=this.getRow(),O=this.session.getLength()-1;switch(k){case"up":M=M<=0?O:M-1;break;case"down":M=M>=O?-1:M+1;break;case"start":M=0;break;case"end":M=O}this.setRow(M)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return R}();s.importCssString(`
1123
- .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1124
- background-color: #CAD6FA;
1125
- z-index: 1;
1126
- }
1127
- .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1128
- background-color: #3a674e;
1129
- }
1130
- .ace_editor.ace_autocomplete .ace_line-hover {
1131
- border: 1px solid #abbffe;
1132
- margin-top: -1px;
1133
- background: rgba(233,233,253,0.4);
1134
- position: absolute;
1135
- z-index: 2;
1136
- }
1137
- .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1138
- border: 1px solid rgba(109, 150, 13, 0.8);
1139
- background: rgba(58, 103, 78, 0.62);
1140
- }
1141
- .ace_completion-meta {
1142
- opacity: 0.5;
1143
- margin-left: 0.9em;
1144
- }
1145
- .ace_completion-message {
1146
- margin-left: 0.9em;
1147
- color: blue;
1148
- }
1149
- .ace_editor.ace_autocomplete .ace_completion-highlight{
1150
- color: #2d69c7;
1151
- }
1152
- .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1153
- color: #93ca12;
1154
- }
1155
- .ace_editor.ace_autocomplete {
1156
- width: 300px;
1157
- z-index: 200000;
1158
- border: 1px lightgray solid;
1159
- position: fixed;
1160
- box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1161
- line-height: 1.4;
1162
- background: #fefefe;
1163
- color: #111;
1164
- }
1165
- .ace_dark.ace_editor.ace_autocomplete {
1166
- border: 1px #484747 solid;
1167
- box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1168
- line-height: 1.4;
1169
- background: #25282c;
1170
- color: #c1c1c1;
1171
- }
1172
- .ace_autocomplete .ace_text-layer {
1173
- width: calc(100% - 8px);
1174
- }
1175
- .ace_autocomplete .ace_line {
1176
- display: flex;
1177
- align-items: center;
1178
- }
1179
- .ace_autocomplete .ace_line > * {
1180
- min-width: 0;
1181
- flex: 0 0 auto;
1182
- }
1183
- .ace_autocomplete .ace_line .ace_ {
1184
- flex: 0 1 auto;
1185
- overflow: hidden;
1186
- text-overflow: ellipsis;
1187
- }
1188
- .ace_autocomplete .ace_completion-spacer {
1189
- flex: 1;
1190
- }
1191
- .ace_autocomplete.ace_loading:after {
1192
- content: "";
1193
- position: absolute;
1194
- top: 0px;
1195
- height: 2px;
1196
- width: 8%;
1197
- background: blue;
1198
- z-index: 100;
1199
- animation: ace_progress 3s infinite linear;
1200
- animation-delay: 300ms;
1201
- transform: translateX(-100%) scaleX(1);
1202
- }
1203
- @keyframes ace_progress {
1204
- 0% { transform: translateX(-100%) scaleX(1) }
1205
- 50% { transform: translateX(625%) scaleX(2) }
1206
- 100% { transform: translateX(1500%) scaleX(3) }
1207
- }
1208
- @media (prefers-reduced-motion) {
1209
- .ace_autocomplete.ace_loading:after {
1210
- transform: translateX(625%) scaleX(2);
1211
- animation: none;
1212
- }
1213
- }
1214
- `,"autocompletion.css",!1),r.AcePopup=A,r.$singleLineEditor=w,r.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var p=function(){function y(v){this.editor=v,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return y.prototype.setScreenReaderContent=function(v){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),s=this.popup.renderer.$textLayer,c=s.element.childNodes[g-s.config.firstRow];if(c){for(var a="doc-tooltip ",l=0;l<this._lines.length;l++)a+="ace-inline-screenreader-line-".concat(l," ");c.setAttribute("aria-describedby",a)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=v.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},y.prototype.destroy=function(){this.screenReaderDiv.remove()},y.prototype.createCodeBlock=function(){var v=document.createElement("pre");v.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);g.appendChild(s),v.appendChild(g)}return v},y}();r.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var p=e("../snippets").snippetManager,y=e("./inline_screenreader").AceInlineScreenReader,v=function(){function h(){this.editor=null}return h.prototype.show=function(g,s,c){if(c=c||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new y(g));var a=s.snippet?p.getDisplayTextForSnippet(g,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(c)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(c.length),a===""?g.removeGhostText():g.setGhostText(a),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=v}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(y,v,h){var g=0,s=y.length;s===0&&h();for(var c=0;c<s;c++)v(y[c],function(a,l){g++,g===s&&h(a,l)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(y,v,h){h=h||p;for(var g=[],s=v-1;s>=0&&h.test(y[s]);s--)g.push(y[s]);return g.reverse().join("")},r.retrieveFollowingIdentifier=function(y,v,h){h=h||p;for(var g=[],s=v;s<y.length&&h.test(y[s]);s++)g.push(y[s]);return g},r.getCompletionPrefix=function(y){var v=y.getCursorPosition(),h=y.session.getLine(v.row),g;return y.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!g&&c&&(g=this.retrievePrecedingIdentifier(h,v.column,c))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(h,v.column)},r.triggerAutocomplete=function(y,h){var h=h??y.session.getPrecedingCharacter();return y.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,f){var p=e("./keyboard/hash_handler").HashHandler,y=e("./autocomplete/popup").AcePopup,v=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,g=e("./autocomplete/util"),s=e("./lib/lang"),c=e("./lib/dom"),a=e("./snippets").snippetManager,l=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,m=function($,C){C.completer&&C.completer.destroy()},w=function(){function $(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var C=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!C||this.editor.completers.length===0||(this.completions=new R($.completionsForLoading),this.openPopup(this.editor,C.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty($,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),$.prototype.$init=function(){return this.popup=new y(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(C){this.insertMatch(),C.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},$.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new v,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(C){!this.hasSeen.has(C)&&C&&C.completer&&C.completer.onSeen&&typeof C.completer.onSeen=="function"&&(C.completer.onSeen(this.editor,C),this.hasSeen.add(C))},$.prototype.$onPopupChange=function(C){if(this.inlineRenderer&&this.inlineEnabled){var b=C?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),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(C){var b=this.base.row,T=this.base.column,E=this.editor.getCursorPosition().column,L=this.editor.session.getLine(b).slice(T,E);this.inlineRenderer.show(this.editor,C,L)?this.$seen(C):this.inlineRenderer.hide()},$.prototype.$onPopupRender=function(){var C=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var T=this.popup.getData(b);T&&(!C||T.hideInlinePreview)&&this.$seen(T)}},$.prototype.$onPopupShow=function(C){this.$onPopupChange(C),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 C=this.editor.container.parentNode,b=[];C;)b.push(C),C.addEventListener("scroll",this.onLayoutChange,{passive:!0}),C=C.parentNode;this.$elements=b}},$.prototype.unObserveLayoutChanges=function(){var C=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",C.onLayoutChange,{passive:!0})}),this.$elements=null},$.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},$.prototype.$updatePopupPosition=function(){var C=this.editor,b=C.renderer,T=b.layerConfig.lineHeight,E=b.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var L=C.container.getBoundingClientRect();E.top+=L.top-b.layerConfig.offset,E.left+=L.left-C.renderer.scrollLeft,E.left+=b.gutterWidth;var I={top:E.top,left:E.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(I.top+=b.$ghostTextWidget.el.offsetHeight);var N=C.container.getBoundingClientRect().bottom-T,_=N<I.top?{top:N,left:I.left}:I;this.popup.tryShow(_,T,"bottom")||this.popup.tryShow(E,T,"top")||this.popup.show(E,T)},$.prototype.openPopup=function(C,b,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E=this.popup.getRow(),L=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),C.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(L)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===E&&L!==this.completions.filtered[I]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(I===E&&N){var _=this.popup.getData(this.popup.getRow());this.$updateGhostText(_)}T||(this.popup.setTheme(C.getTheme()),this.popup.setFontSize(C.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(C){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},$.prototype.blurListener=function(C){var b=document.activeElement,T=this.editor.textInput.getElement(),E=C.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(C.relatedTarget),L=this.popup&&this.popup.container;b!=T&&b.parentNode!=L&&!E&&b!=this.tooltipNode&&C.relatedTarget!=T&&this.detach()},$.prototype.mousedownListener=function(C){this.detach()},$.prototype.mousewheelListener=function(C){this.popup&&!this.popup.isMouseOver&&this.detach()},$.prototype.mouseOutListener=function(C){this.popup.isOpen&&this.$updatePopupPosition()},$.prototype.goTo=function(C){this.popup.goTo(C)},$.prototype.insertMatch=function(C,b){if(C||(C=this.popup.getData(this.popup.getRow())),!C)return!1;if(C.value==="")return this.detach();var T=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,C,T.filterText,b);return this.completions==T&&this.detach(),E},$.prototype.showPopup=function(C,b){this.editor&&this.detach(),this.activated=!0,this.editor=C,C.completer!=this&&(C.completer&&C.completer.detach(),C.completer=this),C.on("changeSelection",this.changeListener),C.on("blur",this.blurListener),C.on("mousedown",this.mousedownListener),C.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},$.prototype.getCompletionProvider=function(C){return this.completionProvider||(this.completionProvider=new A(C)),this.completionProvider},$.prototype.gatherCompletions=function(C,b){return this.getCompletionProvider().gatherCompletions(C,b)},$.prototype.updateCompletions=function(C,b){if(C&&this.base&&this.completions){var E=this.editor.getCursorPosition(),L=this.editor.session.getTextRange({start:this.base,end:E});if(L==this.completions.filterText)return;if(this.completions.setFilter(L),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==L&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,L,C);return}if(b&&b.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new R(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",C)}var T=this.editor.getSession(),E=this.editor.getCursorPosition(),L=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(E.row,E.column-L.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:L,pos:E}).provideCompletions(this.editor,I,(function(N,_,x){var k=_.filtered,M=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),x){if(!k.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(M)),O){var F=[{caption:O,value:""}];this.completions=new R(F),this.openPopup(this.editor,M,C),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(k.length==1&&k[0].value==M&&!k[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&k.length==1)return this.insertMatch(k[0])}this.completions=!x&&this.showLoadingState?new R($.completionsForLoading.concat(k),_.filterText):_,this.openPopup(this.editor,M,C),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!x)}).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 C=this.popup,b=this.completions.filtered,T=b&&(b[C.getHoveredRow()]||b[C.getRow()]),E=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var L=this.editor.completers.length,I=0;I<L;I++){var N=this.editor.completers[I];if(N.getDocTooltip&&T.completerId===N.id){E=N.getDocTooltip(T);break}}if(!E&&typeof T!="string"&&(E=T),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},$.prototype.showDocTooltip=function(C){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var T=this.tooltipNode;C.docHTML?T.innerHTML=C.docHTML:C.docText&&(T.textContent=C.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,L=E.container.getBoundingClientRect();T.style.top=E.container.style.top,T.style.bottom=E.container.style.bottom,T.style.display="block",window.innerWidth-L.right<320?L.left<320?E.isTopdown?(T.style.top=L.bottom+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=E.container.offsetTop-T.offsetHeight+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-L.left+"px",T.style.left=""):(T.style.left=L.right+1+"px",T.style.right="")},$.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var C=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==C&&this.editor.focus(),this.tooltipNode=null,C.parentNode&&C.parentNode.removeChild(C)}},$.prototype.onTooltipClick=function(C){for(var b=C.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},$.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var C=this.popup.container;C&&C.parentNode&&C.parentNode.removeChild(C)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",m),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},$.for=function(C){return C.completer instanceof $||(C.completer&&(C.completer.destroy(),C.completer=null),l.get("sharedPopups")?($.$sharedInstance||($.$sharedInstance=new $),C.completer=$.$sharedInstance):(C.completer=new $,C.once("destroy",m))),C.completer},$}();w.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 C=$.completer.insertMatch();if(C||$.tabstopManager)return C;$.completer.goTo("down")},Backspace:function($){$.execCommand("backspace");var C=g.getCompletionPrefix($);!C&&$.completer&&$.completer.detach()},PageUp:function($){$.completer.popup.gotoPageUp()},PageDown:function($){$.completer.popup.gotoPageDown()}},w.startCommand={name:"startAutocomplete",exec:function($,C){var b=w.for($);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup($,C),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var A=function(){function $(C){this.initialPosition=C,this.active=!0}return $.prototype.insertByIndex=function(C,b,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(C,this.completions.filtered[b],T)},$.prototype.insertMatch=function(C,b,T){if(!b)return!1;if(C.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(C,b);else{if(!this.completions)return!1;var E=this.completions.filterText.length,L=0;if(b.range&&b.range.start.row===b.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-b.range.start.column,L+=b.range.end.column-this.initialPosition.pos.column),E||L){var I;C.selection.getAllRanges?I=C.selection.getAllRanges():I=[C.getSelectionRange()];for(var N=0,_;_=I[N];N++)_.start.column-=E,_.end.column+=L,C.session.remove(_)}b.snippet?a.insertSnippet(C,b.snippet):this.$insertString(C,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(C,b),b.command&&b.command==="startAutocomplete"&&C.execCommand(b.command)}return C.endOperation(),!0},$.prototype.$insertString=function(C,b){var T=b.value||b;C.execCommand("insertstring",T)},$.prototype.gatherCompletions=function(C,b){var T=C.getSession(),E=C.getCursorPosition(),L=g.getCompletionPrefix(C),I=[];this.completers=C.completers;var N=C.completers.length;return C.completers.forEach(function(_,x){_.getCompletions(C,T,E,L,function(k,M){_.hideInlinePreview&&(M=M.map(function(O){return Object.assign(O,{hideInlinePreview:_.hideInlinePreview})})),!k&&M&&(I=I.concat(M)),b(null,{prefix:g.getCompletionPrefix(C),matches:I,finished:--N===0})})}),!0},$.prototype.provideCompletions=function(C,b,T){var E=(function(_){var x=_.prefix,k=_.matches;this.completions=new R(k),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(x),(_.finished||this.completions.filtered.length)&&T(null,this.completions,_.finished)}).bind(this),L=!0,I=null;if(this.gatherCompletions(C,(function(_,x){if(this.active){_&&(T(_,[],!0),this.detach());var k=x.prefix;if(k.indexOf(x.prefix)===0){if(L){I=x;return}E(x)}}}).bind(this)),L=!1,I){var N=I;I=null,E(N)}},$.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(C){typeof C.cancel=="function"&&C.cancel()})},$}(),R=function(){function $(C,b){this.all=C,this.filtered=C,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return $.prototype.setFilter=function(C){if(C.length>this.filterText&&C.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=C,b=this.filterCompletions(b,this.filterText),b=b.sort(function(E,L){return L.exactMatch-E.exactMatch||L.$score-E.$score||(E.caption||E.value).localeCompare(L.caption||L.value)});var T=null;b=b.filter(function(E){var L=E.snippet||E.caption||E.value;return L===T?!1:(T=L,!0)}),this.filtered=b},$.prototype.filterCompletions=function(C,b){var T=[],E=b.toUpperCase(),L=b.toLowerCase();e:for(var I=0,N;N=C[I];I++){if(N.skipFilter){T.push(N);continue}var _=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(_){var x=-1,k=0,M=0,O,F;if(this.exactMatch){if(b!==_.substr(0,b.length))continue e}else{var P=_.toLowerCase().indexOf(L);if(P>-1)M=P;else for(var z=0;z<b.length;z++){var V=_.indexOf(L[z],x+1),q=_.indexOf(E[z],x+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-x-1,F>0&&(x===-1&&(M+=10),M+=F,k|=1<<z),x=O}}N.matchMask=k,N.exactMatch=M?0:1,N.$score=(N.score||0)-M,T.push(N)}}return T},$}();r.Autocomplete=w,r.CompletionProvider=A,r.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function p(g,s){var c=g.getTextRange(v.fromPoints({row:0,column:0},s));return c.split(h).length-1}function y(g,s){var c=p(g,s),a=g.getValue().split(h),l=Object.create(null),o=a[c];return a.forEach(function(u,m){if(!(!u||u===o)){var w=Math.abs(c-m),A=a.length-w;l[u]?l[u]=Math.max(A,l[u]):l[u]=A}}),l}var v=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(g,s,c,a,l){var o=y(s,c),u=Object.keys(o);l(null,u.map(function(m){return{caption:m,value:m,score:o[m],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var p=e("../snippets").snippetManager,y=e("../autocomplete").Autocomplete,v=e("../config"),h=e("../lib/lang"),g=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(E,L,I,N,_){if(L.$mode.completer)return L.$mode.completer.getCompletions(E,L,I,N,_);var x=E.session.getState(I.row),k=L.$mode.getCompletions(x,L,I,N);k=k.map(function(M){return M.completerId=c.id,M}),_(null,k)},id:"keywordCompleter"},a=function(E){var L={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(I,N,_,x){return L[N]=x||""}).replace(/\$(\d+?)/g,function(I,N){return L[N]})},l={getCompletions:function(E,L,I,N,_){var x=[],k=L.getTokenAt(I.row,I.column);k&&k.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?x.push("html-tag"):x=p.getActiveScopes(E);var M=p.snippetMap,O=[];x.forEach(function(F){for(var P=M[F]||[],z=P.length;z--;){var V=P[z],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:l.id})}},this),_(null,O)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(a(E.snippet))].join(""))},id:"snippetCompleter"},o=[l,s,c];r.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},r.addCompleter=function(E){o.push(E)},r.textCompleter=s,r.keyWordCompleter=c,r.snippetCompleter=l;var u={name:"expandSnippet",exec:function(E){return p.expandWithTab(E)},bindKey:"Tab"},m=function(E,L){w(L.session.$mode)},w=function(E){typeof E=="string"&&(E=v.$modes[E]),E&&(p.files||(p.files={}),A(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(w))},A=function(E,L){!L||!E||p.files[E]||(p.files[E]={},v.loadModule(L,function(I){I&&(p.files[E]=I,!I.snippets&&I.snippetText&&(I.snippets=p.parseSnippetFile(I.snippetText)),p.register(I.snippets||[],I.scope),I.includeScopes&&(p.snippetMap[I.scope].includeScopes=I.includeScopes,I.includeScopes.forEach(function(N){w("ace/mode/"+N)})))}))},R=function(E){var L=E.editor,I=L.completer&&L.completer.activated;if(E.command.name==="backspace")I&&!g.getCompletionPrefix(L)&&L.completer.detach();else if(E.command.name==="insertstring"&&!I){$=E;var N=E.editor.$liveAutocompletionDelay;N?C.delay(N):b(E)}},$,C=h.delayedCall(function(){b($)},0),b=function(E){var L=E.editor,I=g.getCompletionPrefix(L),N=E.args,_=g.triggerAutocomplete(L,N);if(I&&I.length>=L.$liveAutocompletionThreshold||_){var x=y.for(L);x.autoShown=!0,x.showPopup(L)}},T=e("../editor").Editor;e("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(y.startCommand)):this.commands.removeCommand(y.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(u),this.off("changeMode",m))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(jf)),jf.exports}Cb();var zf={exports:{}},Uf;function kb(){return Uf||(Uf=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
1215
-
1216
- /* ------------------------------------------------------------------------------------------
1217
- * Editor Search Form
1218
- * --------------------------------------------------------------------------------------- */
1219
- .ace_search {
1220
- background-color: #ddd;
1221
- color: #666;
1222
- border: 1px solid #cbcbcb;
1223
- border-top: 0 none;
1224
- overflow: hidden;
1225
- margin: 0;
1226
- padding: 4px 6px 0 4px;
1227
- position: absolute;
1228
- top: 0;
1229
- z-index: 99;
1230
- white-space: normal;
1231
- }
1232
- .ace_search.left {
1233
- border-left: 0 none;
1234
- border-radius: 0px 0px 5px 0px;
1235
- left: 0;
1236
- }
1237
- .ace_search.right {
1238
- border-radius: 0px 0px 0px 5px;
1239
- border-right: 0 none;
1240
- right: 0;
1241
- }
1242
-
1243
- .ace_search_form, .ace_replace_form {
1244
- margin: 0 20px 4px 0;
1245
- overflow: hidden;
1246
- line-height: 1.9;
1247
- }
1248
- .ace_replace_form {
1249
- margin-right: 0;
1250
- }
1251
- .ace_search_form.ace_nomatch {
1252
- outline: 1px solid red;
1253
- }
1254
-
1255
- .ace_search_field {
1256
- border-radius: 3px 0 0 3px;
1257
- background-color: white;
1258
- color: black;
1259
- border: 1px solid #cbcbcb;
1260
- border-right: 0 none;
1261
- outline: 0;
1262
- padding: 0;
1263
- font-size: inherit;
1264
- margin: 0;
1265
- line-height: inherit;
1266
- padding: 0 6px;
1267
- min-width: 17em;
1268
- vertical-align: top;
1269
- min-height: 1.8em;
1270
- box-sizing: content-box;
1271
- }
1272
- .ace_searchbtn {
1273
- border: 1px solid #cbcbcb;
1274
- line-height: inherit;
1275
- display: inline-block;
1276
- padding: 0 6px;
1277
- background: #fff;
1278
- border-right: 0 none;
1279
- border-left: 1px solid #dcdcdc;
1280
- cursor: pointer;
1281
- margin: 0;
1282
- position: relative;
1283
- color: #666;
1284
- }
1285
- .ace_searchbtn:last-child {
1286
- border-radius: 0 3px 3px 0;
1287
- border-right: 1px solid #cbcbcb;
1288
- }
1289
- .ace_searchbtn:disabled {
1290
- background: none;
1291
- cursor: default;
1292
- }
1293
- .ace_searchbtn:hover {
1294
- background-color: #eef1f6;
1295
- }
1296
- .ace_searchbtn.prev, .ace_searchbtn.next {
1297
- padding: 0px 0.7em
1298
- }
1299
- .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1300
- content: "";
1301
- border: solid 2px #888;
1302
- width: 0.5em;
1303
- height: 0.5em;
1304
- border-width: 2px 0 0 2px;
1305
- display:inline-block;
1306
- transform: rotate(-45deg);
1307
- }
1308
- .ace_searchbtn.next:after {
1309
- border-width: 0 2px 2px 0 ;
1310
- }
1311
- .ace_searchbtn_close {
1312
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1313
- border-radius: 50%;
1314
- border: 0 none;
1315
- color: #656565;
1316
- cursor: pointer;
1317
- font: 16px/16px Arial;
1318
- padding: 0;
1319
- height: 14px;
1320
- width: 14px;
1321
- top: 9px;
1322
- right: 7px;
1323
- position: absolute;
1324
- }
1325
- .ace_searchbtn_close:hover {
1326
- background-color: #656565;
1327
- background-position: 50% 100%;
1328
- color: white;
1329
- }
1330
-
1331
- .ace_button {
1332
- margin-left: 2px;
1333
- cursor: pointer;
1334
- -webkit-user-select: none;
1335
- -moz-user-select: none;
1336
- -o-user-select: none;
1337
- -ms-user-select: none;
1338
- user-select: none;
1339
- overflow: hidden;
1340
- opacity: 0.7;
1341
- border: 1px solid rgba(100,100,100,0.23);
1342
- padding: 1px;
1343
- box-sizing: border-box!important;
1344
- color: black;
1345
- }
1346
-
1347
- .ace_button:hover {
1348
- background-color: #eee;
1349
- opacity:1;
1350
- }
1351
- .ace_button:active {
1352
- background-color: #ddd;
1353
- }
1354
-
1355
- .ace_button.checked {
1356
- border-color: #3399ff;
1357
- opacity:1;
1358
- }
1359
-
1360
- .ace_search_options{
1361
- margin-bottom: 3px;
1362
- text-align: right;
1363
- -webkit-user-select: none;
1364
- -moz-user-select: none;
1365
- -o-user-select: none;
1366
- -ms-user-select: none;
1367
- user-select: none;
1368
- clear: both;
1369
- }
1370
-
1371
- .ace_search_counter {
1372
- float: left;
1373
- font-family: arial;
1374
- padding: 0 8px;
1375
- }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/lang"),v=e("../lib/event"),h=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=e("../config").nls,a=999;p.importCssString(h,"ace_searchbox",!1);var l=function(){function m(w,A,R){this.activeInput;var $=p.createElement("div");p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],$),this.element=$.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(w),p.importCssString(h,"ace_searchbox",w.container)}return m.prototype.setEditor=function(w){w.searchBox=this,w.renderer.scroller.appendChild(this.element),this.editor=w},m.prototype.setSession=function(w){this.searchRange=null,this.$syncOptions(!0)},m.prototype.$initElements=function(w){this.searchBox=w.querySelector(".ace_search_form"),this.replaceBox=w.querySelector(".ace_replace_form"),this.searchOption=w.querySelector("[action=searchInSelection]"),this.replaceOption=w.querySelector("[action=toggleReplace]"),this.regExpOption=w.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=w.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=w.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=w.querySelector(".ace_search_counter")},m.prototype.$init=function(){var w=this.element;this.$initElements(w);var A=this;v.addListener(w,"mousedown",function(R){setTimeout(function(){A.activeInput.focus()},0),v.stopPropagation(R)}),v.addListener(w,"click",function(R){var $=R.target||R.srcElement,C=$.getAttribute("action");C&&A[C]?A[C]():A.$searchBarKb.commands[C]&&A.$searchBarKb.commands[C].exec(A),v.stopPropagation(R)}),v.addCommandKeyListener(w,function(R,$,C){var b=s.keyCodeToString(C),T=A.$searchBarKb.findKeyCommand($,b);T&&T.exec&&(T.exec(A),v.stopEvent(R))}),this.$onChange=y.delayedCall(function(){A.find(!1,!1)}),v.addListener(this.searchInput,"input",function(){A.$onChange.schedule(20)}),v.addListener(this.searchInput,"focus",function(){A.activeInput=A.searchInput,A.searchInput.value&&A.highlight()}),v.addListener(this.replaceInput,"focus",function(){A.activeInput=A.replaceInput,A.searchInput.value&&A.highlight()})},m.prototype.setSearchRange=function(w){this.searchRange=w,w?this.searchRangeMarker=this.editor.session.addMarker(w,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},m.prototype.$syncOptions=function(w){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var A=this.editor.getReadOnly();this.replaceOption.style.display=A?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!A?"":"none",this.find(!1,!1,w)},m.prototype.highlight=function(w){this.editor.session.highlight(w||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},m.prototype.find=function(w,A,R){var $=this.editor.find(this.searchInput.value,{skipCurrent:w,backwards:A,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:R,range:this.searchRange}),C=!$&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",C),this.editor._emit("findSearchBox",{match:!C}),this.highlight(),this.updateCounter()},m.prototype.updateCounter=function(){var w=this.editor,A=w.$search.$options.re,R=A.unicode,$=0,C=0;if(A){var b=this.searchRange?w.session.getTextRange(this.searchRange):w.getValue(),T=w.session.doc.positionToIndex(w.selection.anchor);this.searchRange&&(T-=w.session.doc.positionToIndex(this.searchRange.start));for(var E=A.lastIndex=0,L;(L=A.exec(b))&&($++,E=L.index,E<=T&&C++,!($>a||!L[0]&&(A.lastIndex=E+=y.skipEmptyMatch(b,E,R),E>=b.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[C,$>a?a+"+":$])},m.prototype.findNext=function(){this.find(!0,!1)},m.prototype.findPrev=function(){this.find(!0,!0)},m.prototype.findAll=function(){var w=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),A=!w&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",A),this.editor._emit("findSearchBox",{match:!A}),this.highlight(),this.hide()},m.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},m.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},m.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},m.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},m.prototype.show=function(w,A){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=A,w&&(this.searchInput.value=w),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},m.prototype.isFocused=function(){var w=document.activeElement;return w==this.searchInput||w==this.replaceInput},m}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(m){var w=m.isReplace=!m.isReplace;m.replaceBox.style.display=w?"":"none",m.replaceOption.checked=!1,m.$syncOptions(),m.searchInput.focus()},"Ctrl-H|Command-Option-F":function(m){m.editor.getReadOnly()||(m.replaceOption.checked=!0,m.$syncOptions(),m.replaceInput.focus())},"Ctrl-G|Command-G":function(m){m.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(m){m.findPrev()},esc:function(m){setTimeout(function(){m.hide()})},Return:function(m){m.activeInput==m.replaceInput&&m.replace(),m.findNext()},"Shift-Return":function(m){m.activeInput==m.replaceInput&&m.replace(),m.findPrev()},"Alt-Return":function(m){m.activeInput==m.replaceInput&&m.replaceAll(),m.findAll()},Tab:function(m){(m.activeInput==m.replaceInput?m.searchInput:m.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(m){m.regExpOption.checked=!m.regExpOption.checked,m.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(m){m.caseSensitiveOption.checked=!m.caseSensitiveOption.checked,m.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(m){m.wholeWordOption.checked=!m.wholeWordOption.checked,m.$syncOptions()}},{name:"toggleReplace",exec:function(m){m.replaceOption.checked=!m.replaceOption.checked,m.$syncOptions()}},{name:"searchInSelection",exec:function(m){m.searchOption.checked=!m.searchRange,m.setSearchRange(m.searchOption.checked&&m.editor.getSelectionRange()),m.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(m){m.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,r.SearchBox=l,r.Search=function(m,w){var A=m.searchBox||new l(m);A.show(m.session.getTextRange(),w)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(zf)),zf.exports}kb();var _b=Object.defineProperty,Sb=(n,t,e)=>t in n?_b(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ra=(n,t,e)=>Sb(n,typeof t!="symbol"?t+"":t,e);function Vf(n,t){return function(){return n.apply(t,arguments)}}const{toString:$b}=Object.prototype,{getPrototypeOf:Pc}=Object,Ma=(n=>t=>{const e=$b.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Tr=n=>(n=n.toLowerCase(),t=>Ma(t)===n),La=n=>t=>typeof t===n,{isArray:Mo}=Array,xs=La("undefined");function Tb(n){return n!==null&&!xs(n)&&n.constructor!==null&&!xs(n.constructor)&&or(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const qf=Tr("ArrayBuffer");function Ib(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&qf(n.buffer),t}const Eb=La("string"),or=La("function"),Gf=La("number"),Oa=n=>n!==null&&typeof n=="object",Rb=n=>n===!0||n===!1,Da=n=>{if(Ma(n)!=="object")return!1;const t=Pc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Mb=Tr("Date"),Lb=Tr("File"),Ob=Tr("Blob"),Db=Tr("FileList"),Nb=n=>Oa(n)&&or(n.pipe),Fb=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||or(n.append)&&((t=Ma(n))==="formdata"||t==="object"&&or(n.toString)&&n.toString()==="[object FormData]"))},Wb=Tr("URLSearchParams"),[Pb,Hb,jb,Bb]=["ReadableStream","Request","Response","Headers"].map(Tr),zb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function As(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),Mo(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let v;for(r=0;r<y;r++)v=p[r],t.call(null,n[v],v,n)}}function Yf(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kf=n=>!xs(n)&&n!==Ki;function Hc(){const{caseless:n}=Kf(this)&&this||{},t={},e=(r,f)=>{const p=n&&Yf(t,f)||f;Da(t[p])&&Da(r)?t[p]=Hc(t[p],r):Da(r)?t[p]=Hc({},r):Mo(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&As(arguments[r],e);return t}const Ub=(n,t,e,{allOwnKeys:r}={})=>(As(t,(f,p)=>{e&&or(f)?n[p]=Vf(f,e):n[p]=f},{allOwnKeys:r}),n),Vb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),qb=(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)},Gb=(n,t,e,r)=>{let f,p,y;const v={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!r||r(y,n,t))&&!v[y]&&(t[y]=n[y],v[y]=!0);n=e!==!1&&Pc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Yb=(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},Kb=n=>{if(!n)return null;if(Mo(n))return n;let t=n.length;if(!Gf(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Qb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Pc(Uint8Array)),Zb=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},Jb=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},Xb=Tr("HTMLFormElement"),ex=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Qf=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),tx=Tr("RegExp"),Zf=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};As(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},nx=n=>{Zf(n,(t,e)=>{if(or(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(or(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},rx=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return Mo(n)?r(n):r(String(n).split(t)),e},ix=()=>{},ox=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,jc="abcdefghijklmnopqrstuvwxyz",Jf="0123456789",Xf={DIGIT:Jf,ALPHA:jc,ALPHA_DIGIT:jc+jc.toUpperCase()+Jf},sx=(n=16,t=Xf.ALPHA_DIGIT)=>{let e="";const{length:r}=t;for(;n--;)e+=t[Math.random()*r|0];return e};function ax(n){return!!(n&&or(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const lx=n=>{const t=new Array(10),e=(r,f)=>{if(Oa(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=Mo(r)?[]:{};return As(r,(y,v)=>{const h=e(y,f+1);!xs(h)&&(p[v]=h)}),t[f]=void 0,p}}return r};return e(n,0)},cx=Tr("AsyncFunction"),ux=n=>n&&(Oa(n)||or(n))&&or(n.then)&&or(n.catch),ep=((n,t)=>n?setImmediate:t?((e,r)=>(Ki.addEventListener("message",({source:f,data:p})=>{f===Ki&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Ki.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",or(Ki.postMessage)),hx=typeof queueMicrotask<"u"?queueMicrotask.bind(Ki):typeof process<"u"&&process.nextTick||ep,ue={isArray:Mo,isArrayBuffer:qf,isBuffer:Tb,isFormData:Fb,isArrayBufferView:Ib,isString:Eb,isNumber:Gf,isBoolean:Rb,isObject:Oa,isPlainObject:Da,isReadableStream:Pb,isRequest:Hb,isResponse:jb,isHeaders:Bb,isUndefined:xs,isDate:Mb,isFile:Lb,isBlob:Ob,isRegExp:tx,isFunction:or,isStream:Nb,isURLSearchParams:Wb,isTypedArray:Qb,isFileList:Db,forEach:As,merge:Hc,extend:Ub,trim:zb,stripBOM:Vb,inherits:qb,toFlatObject:Gb,kindOf:Ma,kindOfTest:Tr,endsWith:Yb,toArray:Kb,forEachEntry:Zb,matchAll:Jb,isHTMLForm:Xb,hasOwnProperty:Qf,hasOwnProp:Qf,reduceDescriptors:Zf,freezeMethods:nx,toObjectSet:rx,toCamelCase:ex,noop:ix,toFiniteNumber:ox,findKey:Yf,global:Ki,isContextDefined:Kf,ALPHABET:Xf,generateString:sx,isSpecCompliantForm:ax,toJSONObject:lx,isAsyncFn:cx,isThenable:ux,setImmediate:ep,asap:hx};function Je(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}ue.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const tp=Je.prototype,np={};["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=>{np[n]={value:n}}),Object.defineProperties(Je,np),Object.defineProperty(tp,"isAxiosError",{value:!0}),Je.from=(n,t,e,r,f,p)=>{const y=Object.create(tp);return ue.toFlatObject(n,y,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),Je.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const dx=null;function Bc(n){return ue.isPlainObject(n)||ue.isArray(n)}function rp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function ip(n,t,e){return n?n.concat(t).map(function(r,f){return r=rp(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function fx(n){return ue.isArray(n)&&!n.some(Bc)}const px=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Na(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!ue.isUndefined(o[l])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,v=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(f))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!v&&ue.isBlob(l))throw new Je("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(l)||ue.isTypedArray(l)?v&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,u){let m=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&fx(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(m=ue.toArray(l)))return o=rp(o),m.forEach(function(w,A){!(ue.isUndefined(w)||w===null)&&t.append(y===!0?ip([o],A,p):y===null?o:o+"[]",h(w))}),!1}return Bc(l)?!0:(t.append(ip(u,o,p),h(l)),!1)}const s=[],c=Object.assign(px,{defaultVisitor:g,convertValue:h,isVisitable:Bc});function a(l,o){if(!ue.isUndefined(l)){if(s.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(l),ue.forEach(l,function(u,m){(!(ue.isUndefined(u)||u===null)&&f.call(t,u,ue.isString(m)?m.trim():m,o,c))===!0&&a(u,o?o.concat(m):[m])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),t}function op(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function zc(n,t){this._pairs=[],n&&Na(n,this,t)}const sp=zc.prototype;sp.append=function(n,t){this._pairs.push([n,t])},sp.toString=function(n){const t=n?function(e){return n.call(this,e,op)}:op;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function gx(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ap(n,t,e){if(!t)return n;const r=e&&e.encode||gx;ue.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=ue.isURLSearchParams(t)?t.toString():new zc(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class lp{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const cp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mx=typeof URLSearchParams<"u"?URLSearchParams:zc,yx=typeof FormData<"u"?FormData:null,vx=typeof Blob<"u"?Blob:null,wx={isBrowser:!0,classes:{URLSearchParams:mx,FormData:yx,Blob:vx},protocols:["http","https","file","blob","url","data"]},Uc=typeof window<"u"&&typeof document<"u",Vc=typeof navigator=="object"&&navigator||void 0,bx=Uc&&(!Vc||["ReactNative","NativeScript","NS"].indexOf(Vc.product)<0),xx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ax=Uc&&window.location.href||"http://localhost",Cx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Uc,hasStandardBrowserEnv:bx,hasStandardBrowserWebWorkerEnv:xx,navigator:Vc,origin:Ax},Symbol.toStringTag,{value:"Module"})),Mn={...Cx,...wx};function kx(n,t){return Na(n,new Mn.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Mn.isNode&&ue.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function _x(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sx(n){const t={},e=Object.keys(n);let r;const f=e.length;let p;for(r=0;r<f;r++)p=e[r],t[p]=n[p];return t}function up(n){function t(e,r,f,p){let y=e[p++];if(y==="__proto__")return!0;const v=Number.isFinite(+y),h=p>=e.length;return y=!y&&ue.isArray(f)?f.length:y,h?(ue.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!v):((!f[y]||!ue.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&ue.isArray(f[y])&&(f[y]=Sx(f[y])),!v)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(r,f)=>{t(_x(r),f,e,0)}),e}return null}function $x(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Cs={transitional:cp,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=ue.isObject(n);if(f&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(up(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return kx(n,this.formSerializer).toString();if((p=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Na(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),$x(n)):n}],transformResponse:[function(n){const t=this.transitional||Cs.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(p){if(f)throw p.name==="SyntaxError"?Je.from(p,Je.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mn.classes.FormData,Blob:Mn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{Cs.headers[n]={}});const Tx=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ix=n=>{const t={};let e,r,f;return n&&n.split(`
1376
- `).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&Tx[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},hp=Symbol("internals");function ks(n){return n&&String(n).trim().toLowerCase()}function Fa(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Fa):String(n)}function Ex(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 Rx=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function qc(n,t,e,r,f){if(ue.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!ue.isString(t)){if(ue.isString(r))return t.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(t)}}function Mx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function Lx(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,p,y){return this[r].call(this,t,f,p,y)},configurable:!0})})}let Kn=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function p(v,h,g){const s=ks(h);if(!s)throw new Error("header name must be a non-empty string");const c=ue.findKey(f,s);(!c||f[c]===void 0||g===!0||g===void 0&&f[c]!==!1)&&(f[c||h]=Fa(v))}const y=(v,h)=>ue.forEach(v,(g,s)=>p(g,s,h));if(ue.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(ue.isString(t)&&(t=t.trim())&&!Rx(t))y(Ix(t),e);else if(ue.isHeaders(t))for(const[v,h]of t.entries())p(h,v,r);else t!=null&&p(e,t,r);return this}get(t,e){if(t=ks(t),t){const r=ue.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return Ex(f);if(ue.isFunction(e))return e.call(this,f,r);if(ue.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ks(t),t){const r=ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||qc(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function p(y){if(y=ks(y),y){const v=ue.findKey(r,y);v&&(!e||qc(r,r[v],v,e))&&(delete r[v],f=!0)}}return ue.isArray(t)?t.forEach(p):p(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const p=e[r];(!t||qc(this,this[p],p,t,!0))&&(delete this[p],f=!0)}return f}normalize(t){const e=this,r={};return ue.forEach(this,(f,p)=>{const y=ue.findKey(r,p);if(y){e[y]=Fa(f),delete e[p];return}const v=t?Mx(p):String(p).trim();v!==p&&delete e[p],e[v]=Fa(f),r[v]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&ue.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1377
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[hp]=this[hp]={accessors:{}}).accessors,r=this.prototype;function f(p){const y=ks(p);e[y]||(Lx(r,p),e[y]=!0)}return ue.isArray(t)?t.forEach(f):f(t),this}};Kn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Kn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),ue.freezeMethods(Kn);function Gc(n,t){const e=this||Cs,r=t||e,f=Kn.from(r.headers);let p=r.data;return ue.forEach(n,function(y){p=y.call(e,p,f.normalize(),t?t.status:void 0)}),f.normalize(),p}function dp(n){return!!(n&&n.__CANCEL__)}function Lo(n,t,e){Je.call(this,n??"canceled",Je.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Lo,Je,{__CANCEL__:!0});function fp(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Je("Request failed with status code "+e.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function Ox(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function Dx(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,p=0,y;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),g=r[p];y||(y=h),e[f]=v,r[f]=h;let s=p,c=0;for(;s!==f;)c+=e[s++],s=s%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),h-y<t)return;const a=g&&h-g;return a?Math.round(c*1e3/a):void 0}}function Nx(n,t){let e=0,r=1e3/t,f,p;const y=(v,h=Date.now())=>{e=h,f=null,p&&(clearTimeout(p),p=null),n.apply(null,v)};return[(...v)=>{const h=Date.now(),g=h-e;g>=r?y(v,h):(f=v,p||(p=setTimeout(()=>{p=null,y(f)},r-g)))},()=>f&&y(f)]}const Wa=(n,t,e=3)=>{let r=0;const f=Dx(50,250);return Nx(p=>{const y=p.loaded,v=p.lengthComputable?p.total:void 0,h=y-r,g=f(h),s=y<=v;r=y;const c={loaded:y,total:v,progress:v?y/v:void 0,bytes:h,rate:g||void 0,estimated:g&&v&&s?(v-y)/g:void 0,event:p,lengthComputable:v!=null,[t?"download":"upload"]:!0};n(c)},e)},pp=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},gp=n=>(...t)=>ue.asap(()=>n(...t)),Fx=Mn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Mn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Mn.origin),Mn.navigator&&/(msie|trident)/i.test(Mn.navigator.userAgent)):()=>!0,Wx=Mn.hasStandardBrowserEnv?{write(n,t,e,r,f,p){const y=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),ue.isString(r)&&y.push("path="+r),ue.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Px(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Hx(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function mp(n,t){return n&&!Px(t)?Hx(n,t):t}const yp=n=>n instanceof Kn?{...n}:n;function Qi(n,t){t=t||{};const e={};function r(g,s,c,a){return ue.isPlainObject(g)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},g,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function f(g,s,c,a){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g,c,a)}else return r(g,s,c,a)}function p(g,s){if(!ue.isUndefined(s))return r(void 0,s)}function y(g,s){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function v(g,s,c){if(c in t)return r(g,s);if(c in n)return r(void 0,g)}const h={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:v,headers:(g,s,c)=>f(yp(g),yp(s),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(g){const s=h[g]||f,c=s(n[g],t[g],g);ue.isUndefined(c)&&s!==v||(e[g]=c)}),e}const vp=n=>{const t=Qi({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:v}=t;t.headers=y=Kn.from(y),t.url=ap(mp(t.baseURL,t.url),n.params,n.paramsSerializer),v&&y.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let h;if(ue.isFormData(e)){if(Mn.hasStandardBrowserEnv||Mn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[g,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Mn.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(t)),r||r!==!1&&Fx(t.url))){const g=f&&p&&Wx.read(p);g&&y.set(f,g)}return t},jx=typeof XMLHttpRequest<"u",Bx=jx&&function(n){return new Promise(function(t,e){const r=vp(n);let f=r.data;const p=Kn.from(r.headers).normalize();let{responseType:y,onUploadProgress:v,onDownloadProgress:h}=r,g,s,c,a,l;function o(){a&&a(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function m(){if(!u)return;const A=Kn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:A,config:n,request:u};fp(function($){t($),o()},function($){e($),o()},R),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(e(new Je("Request aborted",Je.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Je("Network Error",Je.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let A=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||cp;r.timeoutErrorMessage&&(A=r.timeoutErrorMessage),e(new Je(A,R.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,n,u)),u=null},f===void 0&&p.setContentType(null),"setRequestHeader"in u&&ue.forEach(p.toJSON(),function(A,R){u.setRequestHeader(R,A)}),ue.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=Wa(h,!0),u.addEventListener("progress",c)),v&&u.upload&&([s,a]=Wa(v),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=A=>{u&&(e(!A||A.type?new Lo(null,n,u):A),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const w=Ox(r.url);if(w&&Mn.protocols.indexOf(w)===-1){e(new Je("Unsupported protocol "+w+":",Je.ERR_BAD_REQUEST,n));return}u.send(f||null)})},zx=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const p=function(g){if(!f){f=!0,v();const s=g instanceof Error?g:this.reason;r.abort(s instanceof Je?s:new Lo(s instanceof Error?s.message:s))}};let y=t&&setTimeout(()=>{y=null,p(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const v=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(p):g.removeEventListener("abort",p)}),n=null)};n.forEach(g=>g.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>ue.asap(v),h}},Ux=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},Vx=async function*(n,t){for await(const e of qx(n))yield*Ux(e,t)},qx=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()}},wp=(n,t,e,r)=>{const f=Vx(n,t);let p=0,y,v=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:g,value:s}=await f.next();if(g){v(),h.close();return}let c=s.byteLength;if(e){let a=p+=c;e(a)}h.enqueue(new Uint8Array(s))}catch(g){throw v(g),g}},cancel(h){return v(h),f.return()}},{highWaterMark:2})},Pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bp=Pa&&typeof ReadableStream=="function",Gx=Pa&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),xp=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Yx=bp&&xp(()=>{let n=!1;const t=new Request(Mn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),Ap=64*1024,Yc=bp&&xp(()=>ue.isReadableStream(new Response("").body)),Ha={stream:Yc&&(n=>n.body)};Pa&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ha[t]&&(Ha[t]=ue.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const Kx=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Mn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await Gx(n)).byteLength},Qx=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??Kx(t),Zx=Pa&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:p,timeout:y,onDownloadProgress:v,onUploadProgress:h,responseType:g,headers:s,withCredentials:c="same-origin",fetchOptions:a}=vp(n);g=g?(g+"").toLowerCase():"text";let l=zx([f,p&&p.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(h&&Yx&&e!=="get"&&e!=="head"&&(m=await Qx(s,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(ue.isFormData(r)&&(b=C.headers.get("content-type"))&&s.setContentType(b),C.body){const[T,E]=pp(m,Wa(gp(h)));r=wp(C.body,Ap,T,E)}}ue.isString(c)||(c=c?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...a,signal:l,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:w?c:void 0});let A=await fetch(o);const R=Yc&&(g==="stream"||g==="response");if(Yc&&(v||R&&u)){const C={};["status","statusText","headers"].forEach(L=>{C[L]=A[L]});const b=ue.toFiniteNumber(A.headers.get("content-length")),[T,E]=v&&pp(b,Wa(gp(v),!0))||[];A=new Response(wp(A.body,Ap,T,()=>{E&&E(),u&&u()}),C)}g=g||"text";let $=await Ha[ue.findKey(Ha,g)||"text"](A,n);return!R&&u&&u(),await new Promise((C,b)=>{fp(C,b,{data:$,headers:Kn.from(A.headers),status:A.status,statusText:A.statusText,config:n,request:o})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,n,o),{cause:w.cause||w}):Je.from(w,w&&w.code,n,o)}}),Kc={http:dx,xhr:Bx,fetch:Zx};ue.forEach(Kc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Cp=n=>`- ${n}`,Jx=n=>ue.isFunction(n)||n===null||n===!1,kp={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let p=0;p<t;p++){e=n[p];let y;if(r=e,!Jx(e)&&(r=Kc[(y=String(e)).toLowerCase()],r===void 0))throw new Je(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+p]=r}if(!r){const p=Object.entries(f).map(([v,h])=>`adapter ${v} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?p.length>1?`since :
1378
- `+p.map(Cp).join(`
1379
- `):" "+Cp(p[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:Kc};function Qc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Lo(null,n)}function _p(n){return Qc(n),n.headers=Kn.from(n.headers),n.data=Gc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),kp.getAdapter(n.adapter||Cs.adapter)(n).then(function(t){return Qc(n),t.data=Gc.call(n,n.transformResponse,t),t.headers=Kn.from(t.headers),t},function(t){return dp(t)||(Qc(n),t&&t.response&&(t.response.data=Gc.call(n,n.transformResponse,t.response),t.response.headers=Kn.from(t.response.headers))),Promise.reject(t)})}const Sp="1.7.9",ja={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{ja[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const $p={};ja.transitional=function(n,t,e){function r(f,p){return"[Axios v"+Sp+"] Transitional option '"+f+"'"+p+(e?". "+e:"")}return(f,p,y)=>{if(n===!1)throw new Je(r(p," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!$p[p]&&($p[p]=!0,console.warn(r(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,p,y):!0}},ja.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function Xx(n,t,e){if(typeof n!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const p=r[f],y=t[p];if(y){const v=n[p],h=v===void 0||y(v,p,n);if(h!==!0)throw new Je("option "+p+" must be "+h,Je.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Je("Unknown option "+p,Je.ERR_BAD_OPTION)}}const Ba={assertOptions:Xx,validators:ja},Wr=Ba.validators;let Zi=class{constructor(n){this.defaults=n,this.interceptors={request:new lp,response:new lp}}async request(n,t){try{return await this._request(n,t)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const f=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?f&&!String(e.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(e.stack+=`
1380
- `+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=Qi(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&Ba.assertOptions(e,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),r!=null&&(ue.isFunction(r)?t.paramsSerializer={serialize:r}:Ba.assertOptions(r,{encode:Wr.function,serialize:Wr.function},!0)),Ba.assertOptions(t,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=f&&ue.merge(f.common,f[t.method]);f&&ue.forEach(["delete","get","head","post","put","patch","common"],l=>{delete f[l]}),t.headers=Kn.concat(p,f);const y=[];let v=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(t)===!1||(v=v&&l.synchronous,y.unshift(l.fulfilled,l.rejected))});const h=[];this.interceptors.response.forEach(function(l){h.push(l.fulfilled,l.rejected)});let g,s=0,c;if(!v){const l=[_p.bind(this),void 0];for(l.unshift.apply(l,y),l.push.apply(l,h),c=l.length,g=Promise.resolve(t);s<c;)g=g.then(l[s++],l[s++]);return g}c=y.length;let a=t;for(s=0;s<c;){const l=y[s++],o=y[s++];try{a=l(a)}catch(u){o.call(this,u);break}}try{g=_p.call(this,a)}catch(l){return Promise.reject(l)}for(s=0,c=h.length;s<c;)g=g.then(h[s++],h[s++]);return g}getUri(n){n=Qi(this.defaults,n);const t=mp(n.baseURL,n.url);return ap(t,n.params,n.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(n){Zi.prototype[n]=function(t,e){return this.request(Qi(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(Qi(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Zi.prototype[n]=t(),Zi.prototype[n+"Form"]=t(!0)});let e1=class s0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(v=>{r.subscribe(v),p=v}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new Lo(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new s0(function(e){t=e}),cancel:t}}};function t1(n){return function(t){return n.apply(null,t)}}function n1(n){return ue.isObject(n)&&n.isAxiosError===!0}const Zc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zc).forEach(([n,t])=>{Zc[t]=n});function Tp(n){const t=new Zi(n),e=Vf(Zi.prototype.request,t);return ue.extend(e,Zi.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Tp(Qi(n,r))},e}const en=Tp(Cs);en.Axios=Zi,en.CanceledError=Lo,en.CancelToken=e1,en.isCancel=dp,en.VERSION=Sp,en.toFormData=Na,en.AxiosError=Je,en.Cancel=en.CanceledError,en.all=function(n){return Promise.all(n)},en.spread=t1,en.isAxiosError=n1,en.mergeConfig=Qi,en.AxiosHeaders=Kn,en.formToJSON=n=>up(ue.isHTMLForm(n)?new FormData(n):n),en.getAdapter=kp.getAdapter,en.HttpStatusCode=Zc,en.default=en;const{Axios:x2,AxiosError:A2,CanceledError:C2,isCancel:k2,CancelToken:_2,VERSION:S2,all:$2,Cancel:T2,isAxiosError:I2,spread:E2,toFormData:R2,AxiosHeaders:M2,HttpStatusCode:L2,formToJSON:O2,getAdapter:D2,mergeConfig:N2}=en,Jc=en.create({baseURL:location.origin,timeout:6e4,params:{}});Jc.interceptors.response.use(n=>n,n=>{var t,e,r,f,p,y,v,h,g,s,c;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let a=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(a+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(a+=`${n.response.config.data} `),(p=(f=n.response)==null?void 0:f.data)!=null&&p.message?a+=`${n.response.data.message}`:(v=(y=n.response)==null?void 0:y.data)!=null&&v.exception?a+=`${n.response.data.exception}`:(s=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`):a+=`${(c=n.response)==null?void 0:c.data}`;const{$cosmosNotify:l}=window;throw l&&l.serious({title:"Network error",body:a}),n}else throw n});const za=async function(n,t,{data:e,params:r={},headers:f,noAuth:p=!1,noScope:y=!1,onUploadProgress:v=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!y&&!r.scope&&(r.scope=window.openc3Scope),Jc({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:v})},Xc={Accept:"application/json"},Ip={...Xc,"Content-Type":"application/json"},Ua=En("a",{get:function(n,{params:t,headers:e=Xc,noScope:r,noAuth:f,onUploadProgress:p}={}){return za("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})},put:function(n,{data:t,params:e,headers:r=Ip,noScope:f,noAuth:p,onUploadProgress:y}={}){return za("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},post:function(n,{data:t,params:e,headers:r=Ip,noScope:f,noAuth:p,onUploadProgress:y}={}){return za("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},delete:function(n,{params:t,headers:e=Xc,noScope:r,noAuth:f,onUploadProgress:p}={}){return za("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})}});let Va=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class _s extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class eu extends _s{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class r1 extends _s{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Ir extends _s{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class i1 extends Ir{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function Ep(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class o1{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const Ji=Symbol("state");class Rp{constructor(t={}){this.emitter=Va(),this.params=Object.freeze(t),this.presence=new o1(this),this.initialConnect=!0,this[Ji]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Ep({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Ji]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[Ji]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Ji]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[Ji]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[Ji]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[Ji]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(p=>p()),e(f||new _s("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class s1{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(t){this._checkIntent(t);let e,r={promise:new Promise(p=>{e=p}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class a1{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class l1{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new a1),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new s1(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class c1{constructor(t={}){this.subscriptions=new l1(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>{y.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>y.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const Mp={debug:0,info:1,warn:2,error:3};class Lp{constructor(t){this.level=t||"warn"}log(t,e,r){Mp[t]<Mp[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class Ss extends Lp{writeLogEntry(){}}class u1{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let h1=0;class Op{constructor(t={}){let{logger:e}=t;this.logger=e||new Ss,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=Ep(r);if(this.pendingUnsubscriptions[f]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,f),new Promise(v=>{setTimeout(()=>{v(this.subscribe(t,e))},y)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((y,v)=>{let h=++h1;this.pendingSubscriptions[f]={resolve:y,reject:v,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,p)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new r1(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:p,reconnect:y}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let v=t.sid;return v&&this.cable.setSessionId(v),this.cable.connected()}if(e==="disconnect"){let v=new Ir(p);this.reset(v),y===!1?this.cable.closed(v):this.cable.disconnected(v);return}if(e==="confirm_subscription"){let v=this.pendingSubscriptions[r];if(!v){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],v.resolve(r)}if(e==="reject_subscription"){let v=this.pendingSubscriptions[r];return v?(delete this.pendingSubscriptions[r],v.reject(new eu)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Dp=()=>Date.now()/1e3|0;class d1 extends Op{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=Dp()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect"||e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=Dp()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),t.restored){let p=t.restored_ids||Object.keys(this.subscriptionStreams);for(let y of p)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(e==="presence"){let p=f.type;if(p==="info"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.resolve(f))}else if(p==="error"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let p=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:p}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let p=this.streamsPositions[f];p&&(r=!0,e[f]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class f1 extends _s{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class tu extends Rp{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Ra(tu,"identifier","__ghost__");const p1="$pubsub";class nu extends Rp{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}Ra(nu,"identifier",p1);const Xi=Symbol("state");let g1=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:p,performFailures:y,transportConfigurator:v}){this.emitter=Va(),this.transport=n,this.encoder=e,this.logger=r||new Ss,this.protocol=t,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new c1(p||{}),this[Xi]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=v,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[Xi]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[Xi]="connecting";let t=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(e){this.handleClose(e)}return t}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Xi]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Ir("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[Xi]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Ir("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Ir(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[Xi]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Ir?n:new Ir(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[Xi]="closed";let e=t||new Ir("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:p,meta:y}=e;r?this.hub.notify(f,r,p):this.hub.transmit(f,p,y)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new nu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new nu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=tu),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let p={identifier:t,params:e};this.logger.debug("subscribing",p);try{let y=await this.protocol.subscribe(t,e);this.hub.subscribe(r,y),this.logger.debug("subscribed",{...p,remoteId:y}),n.notify("connected")}catch(y){if(y){if(y instanceof eu&&this.logger.warn("rejected",p),y instanceof Ir){this.logger.debug("disconnected during subscription; will retry on connect",p),f.release();return}this.logger.error("failed to subscribe",{error:y,...p})}n.close(y),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Ir?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new f1;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,p={id:f,action:t,payload:e};this.logger.debug("perform",p);try{let y=await this.protocol.perform(f,t,e);return y&&this.logger.debug("perform result",{message:y,request:p}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:p}),y}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const m1={maxMissingPings:2,maxReconnectAttempts:1/0},Oo=()=>Date.now(),Np=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),p=>{let y=n*e**p,v=y*e,h=y+(v-y)*Math.random(),g=2*(Math.random()-.5)*r;return h=h*(1+g),f&&f<h&&(h=f),h}};let Fp=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},m1,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new Ss,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Oo()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Oo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Oo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Oo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Oo()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=Oo()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new i1))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class y1{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=Va(),this.unbind=[],this.logger=e.logger||new Ss}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}setToken(t,e){this.transports.forEach(r=>{r.setToken(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class v1{constructor(t,e={}){this.url=t;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Va();let{format:f,subprotocol:p,authStrategy:y}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=y||"param",this.authProtocol="",this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){let t=this.subprotocol;return this.authStrategy==="sub-protocol"&&(t=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,t,this.connectionOptions):this.ws=new this.Impl(this.url,t),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let f=[];f.push(this.once("open",()=>{f.forEach(p=>p()),e()})),f.push(this.once("close",()=>{f.forEach(p=>p()),r(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}setToken(t,e="jid"){if(this.authStrategy==="param")this.setParam(e,t);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(f=>f.toLowerCase()===r)||r,this.connectionOptions.headers[r]=t}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${t}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Wp={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function w1(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},Wp,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:p,websocketAuthStrategy:y,fallbacks:v,logLevel:h,logger:g,transport:s,encoder:c,lazy:a,monitor:l,pingInterval:o,reconnectStrategy:u,maxMissingPings:m,maxReconnectAttempts:w,subprotocol:A,tokenRefresher:R,historyTimestamp:$,protocolOptions:C,concurrentSubscribes:b,performFailures:T,transportConfigurator:E,auth:L}=t;if(g=g||new Ss(h),typeof e=="string"){A=A||e;let _=e.substring(0,e.lastIndexOf("-")),x=e.substring(e.lastIndexOf("-")+1);if(C=C||{},_==="actioncable-v1")e=new Op({logger:g,...C});else if(_==="actioncable-v1-ext")e=new d1({logger:g,historyTimestamp:$,...C});else throw Error(`Protocol is not supported yet: ${e}`);if(x==="json")c=c||new u1,f=f||"text";else if(x==="msgpack"){if(f="binary",!c)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(x==="protobuf"){if(f=f||"binary",!c)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");s=s||new v1(n,{websocketImplementation:r,websocketOptions:p,subprotocol:A,authStrategy:y,format:f}),v&&(s=new y1([s,...v],{logger:g})),L&&L.token&&s.setToken(L.token,L.param||"jid"),u=u||Np(o),l!==!1&&(l=l||new Fp({pingInterval:o,reconnectStrategy:u,maxMissingPings:m,maxReconnectAttempts:w,logger:g}));let I={concurrentSubscribes:b},N=new g1({protocol:e,transport:s,encoder:c,logger:g,lazy:a,hubOptions:I,performFailures:T,transportConfigurator:E});return l&&(l.watch(N),N.monitor=l),R&&b1(N,async()=>{try{await R(s)}catch(_){return g.error("Failed to refresh authentication token: "+_),!1}return N.connect().catch(()=>{}),!0}),N}function b1(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class x1{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class A1 extends tu{constructor(t,e,r){super(t,e),this.subscription=new x1(this),Object.assign(this.subscription,r),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof eu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class C1{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let p=new A1(r,f,e);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class k1{constructor(t){this.cable=t,this.subscriptions=new C1(t)}}class _1 extends Lp{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class S1 extends Fp{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Ir("page_frozen"));document.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const $1=["cable","action-cable"],T1="/cable",qa=(n,t)=>{for(let e of $1){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},Pp=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,I1=()=>{if(typeof document<"u"&&document.head){let n=qa(document,"url");if(n)return Pp(n)}return Pp(T1)},E1=()=>{if(typeof document<"u"&&document.head){let n=qa(document,"history-timestamp");if(n)return n|0}},R1=()=>{if(typeof document<"u"&&document.head)return qa(document,"token")},M1=()=>{if(typeof document<"u"&&document.head)return qa(document,"token-param")};function L1(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||I1(),t=t||{},t.historyTimestamp||(t.historyTimestamp=E1());let e=R1();if(e){let g=M1();t.auth=Object.assign({token:e,param:g},t.auth||{})}t=Object.assign({},Wp,t);let{logLevel:r,logger:f,pingInterval:p,reconnectStrategy:y,maxMissingPings:v,maxReconnectAttempts:h}=t;return f=t.logger=t.logger||new _1(r),y=t.reconnectStrategy=t.reconnectStrategy||Np(p),t.monitor!==!1&&(t.monitor=t.monitor||new S1({pingInterval:p,reconnectStrategy:y,maxMissingPings:v,maxReconnectAttempts:h,logger:f})),w1(n,t)}function O1(n,t){let e=L1(n,t);return new k1(e)}class D1{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>{if(p&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=O1(y)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}En("R",D1);class N1{constructor(t,e,r="",f=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=r,this.url=f}}En("w",N1);function ru(n){return F1.test(n)}const F1=/^-?[0-9]+$/;function Hp(n){return W1.test(n)}const W1=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function jp(n,t){const e=Number.parseFloat(n),r=String(e),f=Bp(n),p=Bp(r);return!!(f===p||(t==null?void 0:t.approx)===!0&&!ru(n)&&p.length>=14&&f.startsWith(p.substring(0,14)))}let $s=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function P1(n){if(jp(n,{approx:!1}))return;if(ru(n))return $s.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?$s.underflow:$s.truncate_float:$s.overflow}function Bp(n){return n.replace(H1,"").replace(B1,"").replace(z1,"").replace(j1,"")}const H1=/[eE][+-]?\d+$/,j1=/^-?(0*)?/,B1=/\./,z1=/0+$/;class U1{constructor(t){if(Ra(this,"isLosslessNumber",!0),!Hp(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=P1(this.value);if(t===void 0||t===$s.truncate_float)return Number.parseFloat(this.value);if(ru(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 V1(n){return n&&typeof n=="object"&&n.isLosslessNumber===!0||!1}function q1(n){return new U1(n)}function G1(n,t){return iu({"":n},"",n,t)}function iu(n,t,e,r){return Array.isArray(e)?r.call(n,t,K1(e,r)):e&&typeof e=="object"&&!V1(e)?r.call(n,t,Y1(e,r)):r.call(n,t,e)}function Y1(n,t){for(const e of Object.keys(n)){const r=iu(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function K1(n,t){for(let e=0;e<n.length;e++)n[e]=iu(n,String(e),n[e],t);return n}function Q1(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q1,r=0;const f=v();return o(f),m(),t?G1(f,t):f;function p(){if(n.charCodeAt(r)===nA){r++,g();const k={};let M=!0;for(;r<n.length&&n.charCodeAt(r)!==Up;){M?M=!1:(a(),g());const O=r,F=s();if(F===void 0){R();return}g(),l();const P=v();if(P===void 0){L();return}Object.prototype.hasOwnProperty.call(k,F)&&!ou(P,k[F])&&$(F,O+1),k[F]=P}return n.charCodeAt(r)!==Up&&C(),r++,k}}function y(){if(n.charCodeAt(r)===rA){r++,g();const k=[];let M=!0;for(;r<n.length&&n.charCodeAt(r)!==Vp;){M?M=!1:a();const O=v();u(O),k.push(O)}return n.charCodeAt(r)!==Vp&&b(),r++,k}}function v(){g();const k=s()??c()??p()??y()??h("true",!0)??h("false",!1)??h("null",null);return g(),k}function h(k,M){if(n.slice(r,r+k.length)===k)return r+=k.length,M}function g(){for(;Z1(n.charCodeAt(r));)r++}function s(){if(n.charCodeAt(r)===su){r++;let k="";for(;r<n.length&&n.charCodeAt(r)!==su;){if(n.charCodeAt(r)===tA){const M=n[r+1],O=eA[M];O!==void 0?(k+=O,r++):M==="u"?Ga(n.charCodeAt(r+2))&&Ga(n.charCodeAt(r+3))&&Ga(n.charCodeAt(r+4))&&Ga(n.charCodeAt(r+5))?(k+=String.fromCharCode(Number.parseInt(n.slice(r+2,r+6),16)),r+=5):I(r):E(r)}else X1(n.charCodeAt(r))?k+=n[r]:T(n[r]);r++}return A(),r++,k}}function c(){const k=r;if(n.charCodeAt(r)===qp&&(r++,w(k)),n.charCodeAt(r)===au)r++;else if(J1(n.charCodeAt(r)))for(r++;Ya(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===hA)for(r++,w(k);Ya(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===mA||n.charCodeAt(r)===gA)for(r++,(n.charCodeAt(r)===qp||n.charCodeAt(r)===lA)&&r++,w(k);Ya(n.charCodeAt(r));)r++;if(r>k)return e(n.slice(k,r))}function a(){if(n.charCodeAt(r)!==uA)throw new SyntaxError(`Comma ',' expected after value ${x()}`);r++}function l(){if(n.charCodeAt(r)!==dA)throw new SyntaxError(`Colon ':' expected after property name ${x()}`);r++}function o(k){if(k===void 0)throw new SyntaxError(`JSON value expected ${x()}`)}function u(k){if(k===void 0)throw new SyntaxError(`Array item expected ${x()}`)}function m(){if(r<n.length)throw new SyntaxError(`Expected end of input ${x()}`)}function w(k){if(!Ya(n.charCodeAt(r))){const M=n.slice(k,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${x()}`)}}function A(){if(n.charCodeAt(r)!==su)throw new SyntaxError(`End of string '"' expected ${x()}`)}function R(){throw new SyntaxError(`Quoted object key expected ${x()}`)}function $(k,M){throw new SyntaxError(`Duplicate key '${k}' encountered at position ${M}`)}function C(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${x()}`)}function b(){throw new SyntaxError(`Array item or end of array ']' expected ${x()}`)}function T(k){throw new SyntaxError(`Invalid character '${k}' ${N()}`)}function E(k){const M=n.slice(k,k+2);throw new SyntaxError(`Invalid escape character '${M}' ${N()}`)}function L(){throw new SyntaxError(`Object value expected after ':' ${N()}`)}function I(k){const M=n.slice(k,k+6);throw new SyntaxError(`Invalid unicode character '${M}' ${N()}`)}function N(){return`at position ${r}`}function _(){return r<n.length?`but got '${n[r]}'`:"but reached end of input"}function x(){return`${_()} ${N()}`}}function Z1(n){return n===iA||n===oA||n===sA||n===aA}function Ga(n){return n>=au&&n<=lu||n>=fA&&n<=yA||n>=pA&&n<=vA}function Ya(n){return n>=au&&n<=lu}function J1(n){return n>=cA&&n<=lu}function X1(n){return n>=32&&n<=1114111}function ou(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>ou(e,t[r])):zp(n)&&zp(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>ou(n[e],t[e])):!1}function zp(n){return typeof n=="object"&&n!==null}const eA={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
1381
- `,r:"\r",t:" "},tA=92,nA=123,Up=125,rA=91,Vp=93,iA=32,oA=10,sA=9,aA=13,su=34,lA=43,qp=45,au=48,cA=49,lu=57,uA=44,hA=46,dA=58,fA=65,pA=97,gA=69,mA=101,yA=70,vA=102;function Gp(n,t,e,r){return f(n);function f(h,g){if(Array.isArray(r)){const s=r.find(c=>c.test(h));if(s){const c=s.stringify(h);if(typeof c!="string"||!Hp(c))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${c})`);return c}}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 p(h);if(h&&typeof h=="object")return y(h)}function p(h,g){if(h.length===0)return"[]";let s="[";for(let c=0;c<h.length;c++){const a=h[c];typeof a<"u"&&typeof a!="function"?s+=f(a):s+="null",c<h.length-1&&(s+=",")}return s+="]",s}function y(h,g){if(typeof h.toJSON=="function")return Gp(h.toJSON(),t,e,void 0);const s=Array.isArray(t)?t.map(String):Object.keys(h);if(s.length===0)return"{}";let c=!0,a="{";for(const l of s){const o=h[l];if(v(l,o)){c?c=!1:a+=",";const u=JSON.stringify(l);a+=`${u}:`,a+=f(o)}}return a+="}",a}function v(h,g){return typeof g<"u"&&typeof g!="function"&&typeof g!="symbol"}}function wA(n){return jp(n)?parseFloat(n):BigInt(n)}class bA{constructor(){Ra(this,"id",1)}async exec(t,e,r={},f={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await Jc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:p,transformRequest:[(y,v)=>Gp(y)],transformResponse:[y=>Q1(y,void 0,wA)]})).data.result}catch(y){let v=new Error;throw y.response?(v.name=y.response.data.error.data.class,v.message=y.response.data.error.data.message,v.object=y.response.data.error):y.request?(v.name="Request error",v.message="Request error, no response received"):v.name="Unknown error",v}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...r){return this.exec("interface_cmd",[t,e,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,r,f=30){const p=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(p!=null){let y=p.length,v=null;for(let h=0;h<y;h++)v=this.decode_openc3_type(p[h][1]),v!==null&&(p[h][1]=v)}return p}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,r=null){let f={stale_time:e};r!==null&&(f.cache_timeout=r);const p=await this.exec("get_tlm_values",[t],f,{},1e4);let y=p[0].length,v=null;for(let h=0;h<y;h++)v=this.decode_openc3_type(p[0][h]),v!==null&&(p[0][h]=v);return p}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))p=await this.exec("tlm",[t],{type:e});else{let v=new Error;throw v.name="TypeError",v.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,v}else p=await this.exec("tlm",[t,e,r],{type:f});let y=this.decode_openc3_type(p);return y!==null&&(p=y),p}async inject_tlm(t,e,r=null,f="CONVERTED"){await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,p){let y=null;for(let v in f)Object.prototype.hasOwnProperty.call(f,v)&&(y=this.encode_openc3_type(f[v]),y!==null&&(f[v]=y));return this.exec(t,[e,r,f],{},p)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={}){return e===void 0?this.exec("cmd",t,{},f):this._cmd("cmd",t,e,r,f)}cmd_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_range_check",t,{},f):this._cmd("cmd_no_range_check",t,e,r,f)}cmd_raw(t,e,r,f={}){return e===void 0?this.exec("cmd_raw",t,{},f):this._cmd("cmd_raw",t,e,r,f)}cmd_raw_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},f):this._cmd("cmd_raw_no_range_check",t,e,r,f)}cmd_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},f):this._cmd("cmd_no_hazardous_check",t,e,r,f)}cmd_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_no_checks",t,{},f):this._cmd("cmd_no_checks",t,e,r,f)}cmd_raw_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f)}cmd_raw_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},f):this._cmd("cmd_raw_no_checks",t,e,r,f)}build_cmd(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}build_command(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(p=>p.toString(16).padStart(2,"0")).join("")}}}En("O",bA);var Ka={exports:{}};/**
1382
- * @license
1383
- * Lodash <https://lodash.com/>
1384
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1385
- * Released under MIT license <https://lodash.com/license>
1386
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1387
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1388
- */var xA=Ka.exports,Yp;function AA(){return Yp||(Yp=1,function(n,t){(function(){var e,r="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",v="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",c=1,a=2,l=4,o=1,u=2,m=1,w=2,A=4,R=8,$=16,C=32,b=64,T=128,E=256,L=512,I=30,N="...",_=800,x=16,k=1,M=2,O=3,F=1/0,P=9007199254740991,z=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",m],["bindKey",w],["curry",R],["curryRight",$],["flip",L],["partial",C],["partialRight",b],["rearg",E]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",pe="[object DOMException]",Ae="[object Error]",rt="[object Function]",Dt="[object GeneratorFunction]",ct="[object Map]",ft="[object Number]",rn="[object Null]",Rt="[object Object]",Vt="[object Promise]",zr="[object Proxy]",vn="[object RegExp]",Qt="[object Set]",De="[object String]",We="[object Symbol]",Zt="[object Undefined]",He="[object WeakMap]",ce="[object WeakSet]",Se="[object ArrayBuffer]",Ie="[object DataView]",ze="[object Float32Array]",qe="[object Float64Array]",ut="[object Int8Array]",ht="[object Int16Array]",ot="[object Int32Array]",st="[object Uint8Array]",et="[object Uint8ClampedArray]",Pt="[object Uint16Array]",Nn="[object Uint32Array]",ii=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zs=/&(?:amp|lt|gt|quot|#39);/g,$l=/[&<>"']/g,Gh=RegExp(zs.source),Yh=RegExp($l.source),Kh=/<%-([\s\S]+?)%>/g,Qh=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_n=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/[\\^$.*+?()[\]{}|]/g,Si=RegExp(Vr.source),Fn=/^\s+/,$i=/\s/,Ti=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tl=/\{\n\/\* \[wrapped with (.+)\] \*/,Il=/,? & /,Zh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jh=/[()=,{}\[\]\/\s]/,si=/\\(\\)?/g,Xh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ii=/\w*$/,El=/^[-+]0x[0-9a-f]+$/i,qr=/^0b[01]+$/i,wn=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,hn=/^(?:0|[1-9]\d*)$/,Ko=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,co=/['\n\r\u2028\u2029\\]/g,uo="\\ud800-\\udfff",Us="\\u0300-\\u036f",Qo="\\ufe20-\\ufe2f",Ei="\\u20d0-\\u20ff",Zo=Us+Qo+Ei,Jo="\\u2700-\\u27bf",Xo="a-z\\xdf-\\xf6\\xf8-\\xff",Vs="\\xac\\xb1\\xd7\\xf7",qs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gs="\\u2000-\\u206f",Ys=" \\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",wr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ks="\\ufe0e\\ufe0f",Qs=Vs+qs+Gs+Ys,ho="['’]",Rl="["+uo+"]",Ml="["+Qs+"]",es="["+Zo+"]",Ll="\\d+",Ol="["+Jo+"]",Zs="["+Xo+"]",Dl="[^"+uo+Qs+Ll+Jo+Xo+wr+"]",ts="\\ud83c[\\udffb-\\udfff]",Js="(?:"+es+"|"+ts+")",fo="[^"+uo+"]",Ri="(?:\\ud83c[\\udde6-\\uddff]){2}",Xs="[\\ud800-\\udbff][\\udc00-\\udfff]",Gr="["+wr+"]",Nl="\\u200d",Fl="(?:"+Zs+"|"+Dl+")",ed="(?:"+Gr+"|"+Dl+")",ai="(?:"+ho+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+ho+"(?:D|LL|M|RE|S|T|VE))?",ns=Js+"?",Mi="["+Ks+"]?",td="(?:"+Nl+"(?:"+[fo,Ri,Xs].join("|")+")"+Mi+ns+")*",Li="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ea=Mi+ns+td,ta="(?:"+[Ol,Ri,Xs].join("|")+")"+ea,na="(?:"+[fo+es+"?",es,Ri,Xs,Rl].join("|")+")",ra=RegExp(ho,"g"),Oi=RegExp(es,"g"),Yr=RegExp(ts+"(?="+ts+")|"+na+ea,"g"),Wl=RegExp([Gr+"?"+Zs+"+"+ai+"(?="+[Ml,Gr,"$"].join("|")+")",ed+"+"+po+"(?="+[Ml,Gr+Fl,"$"].join("|")+")",Gr+"?"+Fl+"+"+ai,Gr+"+"+po,nd,Li,Ll,ta].join("|"),"g"),Pl=RegExp("["+Nl+uo+Zo+Ks+"]"),Di=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ni=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hl=-1,It={};It[ze]=It[qe]=It[ut]=It[ht]=It[ot]=It[st]=It[et]=It[Pt]=It[Nn]=!0,It[re]=It[J]=It[Se]=It[me]=It[Ie]=It[ve]=It[Ae]=It[rt]=It[ct]=It[ft]=It[Rt]=It[vn]=It[Qt]=It[De]=It[He]=!1;var Fe={};Fe[re]=Fe[J]=Fe[Se]=Fe[Ie]=Fe[me]=Fe[ve]=Fe[ze]=Fe[qe]=Fe[ut]=Fe[ht]=Fe[ot]=Fe[ct]=Fe[ft]=Fe[Rt]=Fe[vn]=Fe[Qt]=Fe[De]=Fe[We]=Fe[st]=Fe[et]=Fe[Pt]=Fe[Nn]=!0,Fe[Ae]=Fe[rt]=Fe[He]=!1;var Nt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Kr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,Mt=parseInt,li=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,rs=typeof self=="object"&&self&&self.Object===Object&&self,xn=li||rs||Function("return this")(),br=t&&!t.nodeType&&t,Sn=br&&!0&&n&&!n.nodeType&&n,jl=Sn&&Sn.exports===br,ia=jl&&li.process,Jn=function(){try{var ne=Sn&&Sn.require&&Sn.require("util").types;return ne||ia&&ia.binding&&ia.binding("util")}catch{}}(),Bl=Jn&&Jn.isArrayBuffer,xr=Jn&&Jn.isDate,Lr=Jn&&Jn.isMap,Qr=Jn&&Jn.isRegExp,ci=Jn&&Jn.isSet,zl=Jn&&Jn.isTypedArray;function jt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function rd(ne,le,se,Ce){for(var Oe=-1,Ye=ne==null?0:ne.length;++Oe<Ye;){var kt=ne[Oe];le(Ce,kt,se(kt),ne)}return Ce}function Un(ne,le){for(var se=-1,Ce=ne==null?0:ne.length;++se<Ce&&le(ne[se],se,ne)!==!1;);return ne}function Ul(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Fi(ne,le){for(var se=-1,Ce=ne==null?0:ne.length;++se<Ce;)if(!le(ne[se],se,ne))return!1;return!0}function Xn(ne,le){for(var se=-1,Ce=ne==null?0:ne.length,Oe=0,Ye=[];++se<Ce;){var kt=ne[se];le(kt,se,ne)&&(Ye[Oe++]=kt)}return Ye}function is(ne,le){var se=ne==null?0:ne.length;return!!se&&ui(ne,le,0)>-1}function go(ne,le,se){for(var Ce=-1,Oe=ne==null?0:ne.length;++Ce<Oe;)if(se(le,ne[Ce]))return!0;return!1}function Ft(ne,le){for(var se=-1,Ce=ne==null?0:ne.length,Oe=Array(Ce);++se<Ce;)Oe[se]=le(ne[se],se,ne);return Oe}function Pn(ne,le){for(var se=-1,Ce=le.length,Oe=ne.length;++se<Ce;)ne[Oe+se]=le[se];return ne}function Ar(ne,le,se,Ce){var Oe=-1,Ye=ne==null?0:ne.length;for(Ce&&Ye&&(se=ne[++Oe]);++Oe<Ye;)se=le(se,ne[Oe],Oe,ne);return se}function mo(ne,le,se,Ce){var Oe=ne==null?0:ne.length;for(Ce&&Oe&&(se=ne[--Oe]);Oe--;)se=le(se,ne[Oe],Oe,ne);return se}function os(ne,le){for(var se=-1,Ce=ne==null?0:ne.length;++se<Ce;)if(le(ne[se],se,ne))return!0;return!1}var oa=ua("length");function sa(ne){return ne.split("")}function ss(ne){return ne.match(Zh)||[]}function aa(ne,le,se){var Ce;return se(ne,function(Oe,Ye,kt){if(le(Oe,Ye,kt))return Ce=Ye,!1}),Ce}function yo(ne,le,se,Ce){for(var Oe=ne.length,Ye=se+(Ce?1:-1);Ce?Ye--:++Ye<Oe;)if(le(ne[Ye],Ye,ne))return Ye;return-1}function ui(ne,le,se){return le===le?Ge(ne,le,se):yo(ne,la,se)}function Vl(ne,le,se,Ce){for(var Oe=se-1,Ye=ne.length;++Oe<Ye;)if(Ce(ne[Oe],le))return Oe;return-1}function la(ne){return ne!==ne}function ca(ne,le){var se=ne==null?0:ne.length;return se?Pi(ne,le)/se:V}function ua(ne){return function(le){return le==null?e:le[ne]}}function as(ne){return function(le){return ne==null?e:ne[le]}}function ha(ne,le,se,Ce,Oe){return Oe(ne,function(Ye,kt,Qe){se=Ce?(Ce=!1,Ye):le(se,Ye,kt,Qe)}),se}function Wi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Pi(ne,le){for(var se,Ce=-1,Oe=ne.length;++Ce<Oe;){var Ye=le(ne[Ce]);Ye!==e&&(se=se===e?Ye:se+Ye)}return se}function Jt(ne,le){for(var se=-1,Ce=Array(ne);++se<ne;)Ce[se]=le(se);return Ce}function ql(ne,le){return Ft(le,function(se){return[se,ne[se]]})}function qt(ne){return ne&&ne.slice(0,Ke(ne)+1).replace(Fn,"")}function Hn(ne){return function(le){return ne(le)}}function vo(ne,le){return Ft(le,function(se){return ne[se]})}function Or(ne,le){return ne.has(le)}function Gl(ne,le){for(var se=-1,Ce=ne.length;++se<Ce&&ui(le,ne[se],0)>-1;);return se}function Yl(ne,le){for(var se=ne.length;se--&&ui(le,ne[se],0)>-1;);return se}function da(ne,le){for(var se=ne.length,Ce=0;se--;)ne[se]===le&&++Ce;return Ce}var W=as(Nt),j=as(Kr);function Y(ne){return"\\"+dn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Pl.test(ne)}function oe(ne){return Di.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function we(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Ce,Oe){se[++le]=[Oe,Ce]}),se}function be(ne,le){return function(se){return ne(le(se))}}function xe(ne,le){for(var se=-1,Ce=ne.length,Oe=0,Ye=[];++se<Ce;){var kt=ne[se];(kt===le||kt===s)&&(ne[se]=s,Ye[Oe++]=se)}return Ye}function ke(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Ce){se[++le]=Ce}),se}function $e(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Ce){se[++le]=[Ce,Ce]}),se}function Ge(ne,le,se){for(var Ce=se-1,Oe=ne.length;++Ce<Oe;)if(ne[Ce]===le)return Ce;return-1}function $t(ne,le,se){for(var Ce=se+1;Ce--;)if(ne[Ce]===le)return Ce;return Ce}function tt(ne){return te(ne)?Ct(ne):oa(ne)}function Ue(ne){return te(ne)?Gt(ne):sa(ne)}function Ke(ne){for(var le=ne.length;le--&&$i.test(ne.charAt(le)););return le}var Ee=as(bn);function Ct(ne){for(var le=Yr.lastIndex=0;Yr.test(ne);)++le;return le}function Gt(ne){return ne.match(Yr)||[]}function Bt(ne){return ne.match(Wl)||[]}var Lt=function ne(le){le=le==null?xn:Ot.defaults(xn.Object(),le,Ot.pick(xn,Ni));var se=le.Array,Ce=le.Date,Oe=le.Error,Ye=le.Function,kt=le.Math,Qe=le.Object,An=le.RegExp,Vn=le.String,Cn=le.TypeError,ur=se.prototype,er=Ye.prototype,ls=Qe.prototype,Kl=le["__core-js_shared__"],Ql=er.toString,Tt=ls.hasOwnProperty,fI=0,yv=function(){var i=/[^.]+$/.exec(Kl&&Kl.keys&&Kl.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Zl=ls.toString,pI=Ql.call(Qe),gI=xn._,mI=An("^"+Ql.call(Tt).replace(Vr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jl=jl?le.Buffer:e,Hi=le.Symbol,Xl=le.Uint8Array,vv=Jl?Jl.allocUnsafe:e,ec=be(Qe.getPrototypeOf,Qe),wv=Qe.create,bv=ls.propertyIsEnumerable,tc=ur.splice,xv=Hi?Hi.isConcatSpreadable:e,fa=Hi?Hi.iterator:e,wo=Hi?Hi.toStringTag:e,nc=function(){try{var i=ko(Qe,"defineProperty");return i({},"",{}),i}catch{}}(),yI=le.clearTimeout!==xn.clearTimeout&&le.clearTimeout,vI=Ce&&Ce.now!==xn.Date.now&&Ce.now,wI=le.setTimeout!==xn.setTimeout&&le.setTimeout,rc=kt.ceil,ic=kt.floor,id=Qe.getOwnPropertySymbols,bI=Jl?Jl.isBuffer:e,Av=le.isFinite,xI=ur.join,AI=be(Qe.keys,Qe),kn=kt.max,jn=kt.min,CI=Ce.now,kI=le.parseInt,Cv=kt.random,_I=ur.reverse,od=ko(le,"DataView"),pa=ko(le,"Map"),sd=ko(le,"Promise"),cs=ko(le,"Set"),ga=ko(le,"WeakMap"),ma=ko(Qe,"create"),oc=ga&&new ga,us={},SI=_o(od),$I=_o(pa),TI=_o(sd),II=_o(cs),EI=_o(ga),sc=Hi?Hi.prototype:e,ya=sc?sc.valueOf:e,kv=sc?sc.toString:e;function B(i){if(Xt(i)&&!Ze(i)&&!(i instanceof mt)){if(i instanceof Cr)return i;if(Tt.call(i,"__wrapped__"))return _w(i)}return new Cr(i)}var hs=function(){function i(){}return function(d){if(!Yt(d))return{};if(wv)return wv(d);i.prototype=d;var S=new i;return i.prototype=e,S}}();function ac(){}function Cr(i,d){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}B.templateSettings={escape:Kh,evaluate:Qh,interpolate:Ne,variable:"",imports:{_:B}},B.prototype=ac.prototype,B.prototype.constructor=B,Cr.prototype=hs(ac.prototype),Cr.prototype.constructor=Cr;function mt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function RI(){var i=new mt(this.__wrapped__);return i.__actions__=tr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=tr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=tr(this.__views__),i}function MI(){if(this.__filtered__){var i=new mt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function LI(){var i=this.__wrapped__.value(),d=this.__dir__,S=Ze(i),D=d<0,H=S?i.length:0,U=VE(0,H,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,ge=this.__iteratees__,ye=ge.length,_e=0,Re=jn(ie,this.__takeCount__);if(!S||!D&&H==ie&&Re==ie)return Yv(i,this.__actions__);var je=[];e:for(;ie--&&_e<Re;){fe+=d;for(var it=-1,Be=i[fe];++it<ye;){var pt=ge[it],yt=pt.iteratee,fr=pt.type,Yn=yt(Be);if(fr==M)Be=Yn;else if(!Yn){if(fr==k)continue e;break e}}je[_e++]=Be}return je}mt.prototype=hs(ac.prototype),mt.prototype.constructor=mt;function bo(i){var d=-1,S=i==null?0:i.length;for(this.clear();++d<S;){var D=i[d];this.set(D[0],D[1])}}function OI(){this.__data__=ma?ma(null):{},this.size=0}function DI(i){var d=this.has(i)&&delete this.__data__[i];return this.size-=d?1:0,d}function NI(i){var d=this.__data__;if(ma){var S=d[i];return S===h?e:S}return Tt.call(d,i)?d[i]:e}function FI(i){var d=this.__data__;return ma?d[i]!==e:Tt.call(d,i)}function WI(i,d){var S=this.__data__;return this.size+=this.has(i)?0:1,S[i]=ma&&d===e?h:d,this}bo.prototype.clear=OI,bo.prototype.delete=DI,bo.prototype.get=NI,bo.prototype.has=FI,bo.prototype.set=WI;function hi(i){var d=-1,S=i==null?0:i.length;for(this.clear();++d<S;){var D=i[d];this.set(D[0],D[1])}}function PI(){this.__data__=[],this.size=0}function HI(i){var d=this.__data__,S=lc(d,i);if(S<0)return!1;var D=d.length-1;return S==D?d.pop():tc.call(d,S,1),--this.size,!0}function jI(i){var d=this.__data__,S=lc(d,i);return S<0?e:d[S][1]}function BI(i){return lc(this.__data__,i)>-1}function zI(i,d){var S=this.__data__,D=lc(S,i);return D<0?(++this.size,S.push([i,d])):S[D][1]=d,this}hi.prototype.clear=PI,hi.prototype.delete=HI,hi.prototype.get=jI,hi.prototype.has=BI,hi.prototype.set=zI;function di(i){var d=-1,S=i==null?0:i.length;for(this.clear();++d<S;){var D=i[d];this.set(D[0],D[1])}}function UI(){this.size=0,this.__data__={hash:new bo,map:new(pa||hi),string:new bo}}function VI(i){var d=bc(this,i).delete(i);return this.size-=d?1:0,d}function qI(i){return bc(this,i).get(i)}function GI(i){return bc(this,i).has(i)}function YI(i,d){var S=bc(this,i),D=S.size;return S.set(i,d),this.size+=S.size==D?0:1,this}di.prototype.clear=UI,di.prototype.delete=VI,di.prototype.get=qI,di.prototype.has=GI,di.prototype.set=YI;function xo(i){var d=-1,S=i==null?0:i.length;for(this.__data__=new di;++d<S;)this.add(i[d])}function KI(i){return this.__data__.set(i,h),this}function QI(i){return this.__data__.has(i)}xo.prototype.add=xo.prototype.push=KI,xo.prototype.has=QI;function Dr(i){var d=this.__data__=new hi(i);this.size=d.size}function ZI(){this.__data__=new hi,this.size=0}function JI(i){var d=this.__data__,S=d.delete(i);return this.size=d.size,S}function XI(i){return this.__data__.get(i)}function eE(i){return this.__data__.has(i)}function tE(i,d){var S=this.__data__;if(S instanceof hi){var D=S.__data__;if(!pa||D.length<f-1)return D.push([i,d]),this.size=++S.size,this;S=this.__data__=new di(D)}return S.set(i,d),this.size=S.size,this}Dr.prototype.clear=ZI,Dr.prototype.delete=JI,Dr.prototype.get=XI,Dr.prototype.has=eE,Dr.prototype.set=tE;function _v(i,d){var S=Ze(i),D=!S&&So(i),H=!S&&!D&&Vi(i),U=!S&&!D&&!H&&gs(i),Q=S||D||H||U,ee=Q?Jt(i.length,Vn):[],ie=ee.length;for(var fe in i)(d||Tt.call(i,fe))&&!(Q&&(fe=="length"||H&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||mi(fe,ie)))&&ee.push(fe);return ee}function Sv(i){var d=i.length;return d?i[yd(0,d-1)]:e}function nE(i,d){return xc(tr(i),Ao(d,0,i.length))}function rE(i){return xc(tr(i))}function ad(i,d,S){(S!==e&&!Nr(i[d],S)||S===e&&!(d in i))&&fi(i,d,S)}function va(i,d,S){var D=i[d];(!(Tt.call(i,d)&&Nr(D,S))||S===e&&!(d in i))&&fi(i,d,S)}function lc(i,d){for(var S=i.length;S--;)if(Nr(i[S][0],d))return S;return-1}function iE(i,d,S,D){return ji(i,function(H,U,Q){d(D,H,S(H),Q)}),D}function $v(i,d){return i&&Jr(d,$n(d),i)}function oE(i,d){return i&&Jr(d,rr(d),i)}function fi(i,d,S){d=="__proto__"&&nc?nc(i,d,{configurable:!0,enumerable:!0,value:S,writable:!0}):i[d]=S}function ld(i,d){for(var S=-1,D=d.length,H=se(D),U=i==null;++S<D;)H[S]=U?e:Bd(i,d[S]);return H}function Ao(i,d,S){return i===i&&(S!==e&&(i=i<=S?i:S),d!==e&&(i=i>=d?i:d)),i}function kr(i,d,S,D,H,U){var Q,ee=d&c,ie=d&a,fe=d&l;if(S&&(Q=H?S(i,D,H,U):S(i)),Q!==e)return Q;if(!Yt(i))return i;var ge=Ze(i);if(ge){if(Q=GE(i),!ee)return tr(i,Q)}else{var ye=Bn(i),_e=ye==rt||ye==Dt;if(Vi(i))return Zv(i,ee);if(ye==Rt||ye==re||_e&&!H){if(Q=ie||_e?{}:mw(i),!ee)return ie?NE(i,oE(Q,i)):DE(i,$v(Q,i))}else{if(!Fe[ye])return H?i:{};Q=YE(i,ye,ee)}}U||(U=new Dr);var Re=U.get(i);if(Re)return Re;U.set(i,Q),Vw(i)?i.forEach(function(Be){Q.add(kr(Be,d,S,Be,i,U))}):zw(i)&&i.forEach(function(Be,pt){Q.set(pt,kr(Be,d,S,pt,i,U))});var je=fe?ie?Td:$d:ie?rr:$n,it=ge?e:je(i);return Un(it||i,function(Be,pt){it&&(pt=Be,Be=i[pt]),va(Q,pt,kr(Be,d,S,pt,i,U))}),Q}function sE(i){var d=$n(i);return function(S){return Tv(S,i,d)}}function Tv(i,d,S){var D=S.length;if(i==null)return!D;for(i=Qe(i);D--;){var H=S[D],U=d[H],Q=i[H];if(Q===e&&!(H in i)||!U(Q))return!1}return!0}function Iv(i,d,S){if(typeof i!="function")throw new Cn(y);return _a(function(){i.apply(e,S)},d)}function wa(i,d,S,D){var H=-1,U=is,Q=!0,ee=i.length,ie=[],fe=d.length;if(!ee)return ie;S&&(d=Ft(d,Hn(S))),D?(U=go,Q=!1):d.length>=f&&(U=Or,Q=!1,d=new xo(d));e:for(;++H<ee;){var ge=i[H],ye=S==null?ge:S(ge);if(ge=D||ge!==0?ge:0,Q&&ye===ye){for(var _e=fe;_e--;)if(d[_e]===ye)continue e;ie.push(ge)}else U(d,ye,D)||ie.push(ge)}return ie}var ji=nw(Zr),Ev=nw(ud,!0);function aE(i,d){var S=!0;return ji(i,function(D,H,U){return S=!!d(D,H,U),S}),S}function cc(i,d,S){for(var D=-1,H=i.length;++D<H;){var U=i[D],Q=d(U);if(Q!=null&&(ee===e?Q===Q&&!dr(Q):S(Q,ee)))var ee=Q,ie=U}return ie}function lE(i,d,S,D){var H=i.length;for(S=nt(S),S<0&&(S=-S>H?0:H+S),D=D===e||D>H?H:nt(D),D<0&&(D+=H),D=S>D?0:Gw(D);S<D;)i[S++]=d;return i}function Rv(i,d){var S=[];return ji(i,function(D,H,U){d(D,H,U)&&S.push(D)}),S}function In(i,d,S,D,H){var U=-1,Q=i.length;for(S||(S=QE),H||(H=[]);++U<Q;){var ee=i[U];d>0&&S(ee)?d>1?In(ee,d-1,S,D,H):Pn(H,ee):D||(H[H.length]=ee)}return H}var cd=rw(),Mv=rw(!0);function Zr(i,d){return i&&cd(i,d,$n)}function ud(i,d){return i&&Mv(i,d,$n)}function uc(i,d){return Xn(d,function(S){return yi(i[S])})}function Co(i,d){d=zi(d,i);for(var S=0,D=d.length;i!=null&&S<D;)i=i[Xr(d[S++])];return S&&S==D?i:e}function Lv(i,d,S){var D=d(i);return Ze(i)?D:Pn(D,S(i))}function qn(i){return i==null?i===e?Zt:rn:wo&&wo in Qe(i)?UE(i):rR(i)}function hd(i,d){return i>d}function cE(i,d){return i!=null&&Tt.call(i,d)}function uE(i,d){return i!=null&&d in Qe(i)}function hE(i,d,S){return i>=jn(d,S)&&i<kn(d,S)}function dd(i,d,S){for(var D=S?go:is,H=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var ge=i[Q];Q&&d&&(ge=Ft(ge,Hn(d))),ie=jn(ge.length,ie),ee[Q]=!S&&(d||H>=120&&ge.length>=120)?new xo(Q&&ge):e}ge=i[0];var ye=-1,_e=ee[0];e:for(;++ye<H&&fe.length<ie;){var Re=ge[ye],je=d?d(Re):Re;if(Re=S||Re!==0?Re:0,!(_e?Or(_e,je):D(fe,je,S))){for(Q=U;--Q;){var it=ee[Q];if(!(it?Or(it,je):D(i[Q],je,S)))continue e}_e&&_e.push(je),fe.push(Re)}}return fe}function dE(i,d,S,D){return Zr(i,function(H,U,Q){d(D,S(H),U,Q)}),D}function ba(i,d,S){d=zi(d,i),i=bw(i,d);var D=i==null?i:i[Xr(Sr(d))];return D==null?e:jt(D,i,S)}function Ov(i){return Xt(i)&&qn(i)==re}function fE(i){return Xt(i)&&qn(i)==Se}function pE(i){return Xt(i)&&qn(i)==ve}function xa(i,d,S,D,H){return i===d?!0:i==null||d==null||!Xt(i)&&!Xt(d)?i!==i&&d!==d:gE(i,d,S,D,xa,H)}function gE(i,d,S,D,H,U){var Q=Ze(i),ee=Ze(d),ie=Q?J:Bn(i),fe=ee?J:Bn(d);ie=ie==re?Rt:ie,fe=fe==re?Rt:fe;var ge=ie==Rt,ye=fe==Rt,_e=ie==fe;if(_e&&Vi(i)){if(!Vi(d))return!1;Q=!0,ge=!1}if(_e&&!ge)return U||(U=new Dr),Q||gs(i)?fw(i,d,S,D,H,U):BE(i,d,ie,S,D,H,U);if(!(S&o)){var Re=ge&&Tt.call(i,"__wrapped__"),je=ye&&Tt.call(d,"__wrapped__");if(Re||je){var it=Re?i.value():i,Be=je?d.value():d;return U||(U=new Dr),H(it,Be,S,D,U)}}return _e?(U||(U=new Dr),zE(i,d,S,D,H,U)):!1}function mE(i){return Xt(i)&&Bn(i)==ct}function fd(i,d,S,D){var H=S.length,U=H,Q=!D;if(i==null)return!U;for(i=Qe(i);H--;){var ee=S[H];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++H<U;){ee=S[H];var ie=ee[0],fe=i[ie],ge=ee[1];if(Q&&ee[2]){if(fe===e&&!(ie in i))return!1}else{var ye=new Dr;if(D)var _e=D(fe,ge,ie,i,d,ye);if(!(_e===e?xa(ge,fe,o|u,D,ye):_e))return!1}}return!0}function Dv(i){if(!Yt(i)||JE(i))return!1;var d=yi(i)?mI:wn;return d.test(_o(i))}function yE(i){return Xt(i)&&qn(i)==vn}function vE(i){return Xt(i)&&Bn(i)==Qt}function wE(i){return Xt(i)&&$c(i.length)&&!!It[qn(i)]}function Nv(i){return typeof i=="function"?i:i==null?ir:typeof i=="object"?Ze(i)?Pv(i[0],i[1]):Wv(i):i0(i)}function pd(i){if(!ka(i))return AI(i);var d=[];for(var S in Qe(i))Tt.call(i,S)&&S!="constructor"&&d.push(S);return d}function bE(i){if(!Yt(i))return nR(i);var d=ka(i),S=[];for(var D in i)D=="constructor"&&(d||!Tt.call(i,D))||S.push(D);return S}function gd(i,d){return i<d}function Fv(i,d){var S=-1,D=nr(i)?se(i.length):[];return ji(i,function(H,U,Q){D[++S]=d(H,U,Q)}),D}function Wv(i){var d=Ed(i);return d.length==1&&d[0][2]?vw(d[0][0],d[0][1]):function(S){return S===i||fd(S,i,d)}}function Pv(i,d){return Md(i)&&yw(d)?vw(Xr(i),d):function(S){var D=Bd(S,i);return D===e&&D===d?zd(S,i):xa(d,D,o|u)}}function hc(i,d,S,D,H){i!==d&&cd(d,function(U,Q){if(H||(H=new Dr),Yt(U))xE(i,d,Q,S,hc,D,H);else{var ee=D?D(Od(i,Q),U,Q+"",i,d,H):e;ee===e&&(ee=U),ad(i,Q,ee)}},rr)}function xE(i,d,S,D,H,U,Q){var ee=Od(i,S),ie=Od(d,S),fe=Q.get(ie);if(fe){ad(i,S,fe);return}var ge=U?U(ee,ie,S+"",i,d,Q):e,ye=ge===e;if(ye){var _e=Ze(ie),Re=!_e&&Vi(ie),je=!_e&&!Re&&gs(ie);ge=ie,_e||Re||je?Ze(ee)?ge=ee:on(ee)?ge=tr(ee):Re?(ye=!1,ge=Zv(ie,!0)):je?(ye=!1,ge=Jv(ie,!0)):ge=[]:Sa(ie)||So(ie)?(ge=ee,So(ee)?ge=Yw(ee):(!Yt(ee)||yi(ee))&&(ge=mw(ie))):ye=!1}ye&&(Q.set(ie,ge),H(ge,ie,D,U,Q),Q.delete(ie)),ad(i,S,ge)}function Hv(i,d){var S=i.length;if(S)return d+=d<0?S:0,mi(d,S)?i[d]:e}function jv(i,d,S){d.length?d=Ft(d,function(U){return Ze(U)?function(Q){return Co(Q,U.length===1?U[0]:U)}:U}):d=[ir];var D=-1;d=Ft(d,Hn(Pe()));var H=Fv(i,function(U,Q,ee){var ie=Ft(d,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return Wi(H,function(U,Q){return OE(U,Q,S)})}function AE(i,d){return Bv(i,d,function(S,D){return zd(i,D)})}function Bv(i,d,S){for(var D=-1,H=d.length,U={};++D<H;){var Q=d[D],ee=Co(i,Q);S(ee,Q)&&Aa(U,zi(Q,i),ee)}return U}function CE(i){return function(d){return Co(d,i)}}function md(i,d,S,D){var H=D?Vl:ui,U=-1,Q=d.length,ee=i;for(i===d&&(d=tr(d)),S&&(ee=Ft(i,Hn(S)));++U<Q;)for(var ie=0,fe=d[U],ge=S?S(fe):fe;(ie=H(ee,ge,ie,D))>-1;)ee!==i&&tc.call(ee,ie,1),tc.call(i,ie,1);return i}function zv(i,d){for(var S=i?d.length:0,D=S-1;S--;){var H=d[S];if(S==D||H!==U){var U=H;mi(H)?tc.call(i,H,1):bd(i,H)}}return i}function yd(i,d){return i+ic(Cv()*(d-i+1))}function kE(i,d,S,D){for(var H=-1,U=kn(rc((d-i)/(S||1)),0),Q=se(U);U--;)Q[D?U:++H]=i,i+=S;return Q}function vd(i,d){var S="";if(!i||d<1||d>P)return S;do d%2&&(S+=i),d=ic(d/2),d&&(i+=i);while(d);return S}function at(i,d){return Dd(ww(i,d,ir),i+"")}function _E(i){return Sv(ms(i))}function SE(i,d){var S=ms(i);return xc(S,Ao(d,0,S.length))}function Aa(i,d,S,D){if(!Yt(i))return i;d=zi(d,i);for(var H=-1,U=d.length,Q=U-1,ee=i;ee!=null&&++H<U;){var ie=Xr(d[H]),fe=S;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(H!=Q){var ge=ee[ie];fe=D?D(ge,ie,ee):e,fe===e&&(fe=Yt(ge)?ge:mi(d[H+1])?[]:{})}va(ee,ie,fe),ee=ee[ie]}return i}var Uv=oc?function(i,d){return oc.set(i,d),i}:ir,$E=nc?function(i,d){return nc(i,"toString",{configurable:!0,enumerable:!1,value:Vd(d),writable:!0})}:ir;function TE(i){return xc(ms(i))}function _r(i,d,S){var D=-1,H=i.length;d<0&&(d=-d>H?0:H+d),S=S>H?H:S,S<0&&(S+=H),H=d>S?0:S-d>>>0,d>>>=0;for(var U=se(H);++D<H;)U[D]=i[D+d];return U}function IE(i,d){var S;return ji(i,function(D,H,U){return S=d(D,H,U),!S}),!!S}function dc(i,d,S){var D=0,H=i==null?D:i.length;if(typeof d=="number"&&d===d&&H<=G){for(;D<H;){var U=D+H>>>1,Q=i[U];Q!==null&&!dr(Q)&&(S?Q<=d:Q<d)?D=U+1:H=U}return H}return wd(i,d,ir,S)}function wd(i,d,S,D){var H=0,U=i==null?0:i.length;if(U===0)return 0;d=S(d);for(var Q=d!==d,ee=d===null,ie=dr(d),fe=d===e;H<U;){var ge=ic((H+U)/2),ye=S(i[ge]),_e=ye!==e,Re=ye===null,je=ye===ye,it=dr(ye);if(Q)var Be=D||je;else fe?Be=je&&(D||_e):ee?Be=je&&_e&&(D||!Re):ie?Be=je&&_e&&!Re&&(D||!it):Re||it?Be=!1:Be=D?ye<=d:ye<d;Be?H=ge+1:U=ge}return jn(U,X)}function Vv(i,d){for(var S=-1,D=i.length,H=0,U=[];++S<D;){var Q=i[S],ee=d?d(Q):Q;if(!S||!Nr(ee,ie)){var ie=ee;U[H++]=Q===0?0:Q}}return U}function qv(i){return typeof i=="number"?i:dr(i)?V:+i}function hr(i){if(typeof i=="string")return i;if(Ze(i))return Ft(i,hr)+"";if(dr(i))return kv?kv.call(i):"";var d=i+"";return d=="0"&&1/i==-1/0?"-0":d}function Bi(i,d,S){var D=-1,H=is,U=i.length,Q=!0,ee=[],ie=ee;if(S)Q=!1,H=go;else if(U>=f){var fe=d?null:HE(i);if(fe)return ke(fe);Q=!1,H=Or,ie=new xo}else ie=d?[]:ee;e:for(;++D<U;){var ge=i[D],ye=d?d(ge):ge;if(ge=S||ge!==0?ge:0,Q&&ye===ye){for(var _e=ie.length;_e--;)if(ie[_e]===ye)continue e;d&&ie.push(ye),ee.push(ge)}else H(ie,ye,S)||(ie!==ee&&ie.push(ye),ee.push(ge))}return ee}function bd(i,d){return d=zi(d,i),i=bw(i,d),i==null||delete i[Xr(Sr(d))]}function Gv(i,d,S,D){return Aa(i,d,S(Co(i,d)),D)}function fc(i,d,S,D){for(var H=i.length,U=D?H:-1;(D?U--:++U<H)&&d(i[U],U,i););return S?_r(i,D?0:U,D?U+1:H):_r(i,D?U+1:0,D?H:U)}function Yv(i,d){var S=i;return S instanceof mt&&(S=S.value()),Ar(d,function(D,H){return H.func.apply(H.thisArg,Pn([D],H.args))},S)}function xd(i,d,S){var D=i.length;if(D<2)return D?Bi(i[0]):[];for(var H=-1,U=se(D);++H<D;)for(var Q=i[H],ee=-1;++ee<D;)ee!=H&&(U[H]=wa(U[H]||Q,i[ee],d,S));return Bi(In(U,1),d,S)}function Kv(i,d,S){for(var D=-1,H=i.length,U=d.length,Q={};++D<H;){var ee=D<U?d[D]:e;S(Q,i[D],ee)}return Q}function Ad(i){return on(i)?i:[]}function Cd(i){return typeof i=="function"?i:ir}function zi(i,d){return Ze(i)?i:Md(i,d)?[i]:kw(_t(i))}var EE=at;function Ui(i,d,S){var D=i.length;return S=S===e?D:S,!d&&S>=D?i:_r(i,d,S)}var Qv=yI||function(i){return xn.clearTimeout(i)};function Zv(i,d){if(d)return i.slice();var S=i.length,D=vv?vv(S):new i.constructor(S);return i.copy(D),D}function kd(i){var d=new i.constructor(i.byteLength);return new Xl(d).set(new Xl(i)),d}function RE(i,d){var S=d?kd(i.buffer):i.buffer;return new i.constructor(S,i.byteOffset,i.byteLength)}function ME(i){var d=new i.constructor(i.source,Ii.exec(i));return d.lastIndex=i.lastIndex,d}function LE(i){return ya?Qe(ya.call(i)):{}}function Jv(i,d){var S=d?kd(i.buffer):i.buffer;return new i.constructor(S,i.byteOffset,i.length)}function Xv(i,d){if(i!==d){var S=i!==e,D=i===null,H=i===i,U=dr(i),Q=d!==e,ee=d===null,ie=d===d,fe=dr(d);if(!ee&&!fe&&!U&&i>d||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!S&&ie||!H)return 1;if(!D&&!U&&!fe&&i<d||fe&&S&&H&&!D&&!U||ee&&S&&H||!Q&&H||!ie)return-1}return 0}function OE(i,d,S){for(var D=-1,H=i.criteria,U=d.criteria,Q=H.length,ee=S.length;++D<Q;){var ie=Xv(H[D],U[D]);if(ie){if(D>=ee)return ie;var fe=S[D];return ie*(fe=="desc"?-1:1)}}return i.index-d.index}function ew(i,d,S,D){for(var H=-1,U=i.length,Q=S.length,ee=-1,ie=d.length,fe=kn(U-Q,0),ge=se(ie+fe),ye=!D;++ee<ie;)ge[ee]=d[ee];for(;++H<Q;)(ye||H<U)&&(ge[S[H]]=i[H]);for(;fe--;)ge[ee++]=i[H++];return ge}function tw(i,d,S,D){for(var H=-1,U=i.length,Q=-1,ee=S.length,ie=-1,fe=d.length,ge=kn(U-ee,0),ye=se(ge+fe),_e=!D;++H<ge;)ye[H]=i[H];for(var Re=H;++ie<fe;)ye[Re+ie]=d[ie];for(;++Q<ee;)(_e||H<U)&&(ye[Re+S[Q]]=i[H++]);return ye}function tr(i,d){var S=-1,D=i.length;for(d||(d=se(D));++S<D;)d[S]=i[S];return d}function Jr(i,d,S,D){var H=!S;S||(S={});for(var U=-1,Q=d.length;++U<Q;){var ee=d[U],ie=D?D(S[ee],i[ee],ee,S,i):e;ie===e&&(ie=i[ee]),H?fi(S,ee,ie):va(S,ee,ie)}return S}function DE(i,d){return Jr(i,Rd(i),d)}function NE(i,d){return Jr(i,pw(i),d)}function pc(i,d){return function(S,D){var H=Ze(S)?rd:iE,U=d?d():{};return H(S,i,Pe(D,2),U)}}function ds(i){return at(function(d,S){var D=-1,H=S.length,U=H>1?S[H-1]:e,Q=H>2?S[2]:e;for(U=i.length>3&&typeof U=="function"?(H--,U):e,Q&&Gn(S[0],S[1],Q)&&(U=H<3?e:U,H=1),d=Qe(d);++D<H;){var ee=S[D];ee&&i(d,ee,D,U)}return d})}function nw(i,d){return function(S,D){if(S==null)return S;if(!nr(S))return i(S,D);for(var H=S.length,U=d?H:-1,Q=Qe(S);(d?U--:++U<H)&&D(Q[U],U,Q)!==!1;);return S}}function rw(i){return function(d,S,D){for(var H=-1,U=Qe(d),Q=D(d),ee=Q.length;ee--;){var ie=Q[i?ee:++H];if(S(U[ie],ie,U)===!1)break}return d}}function FE(i,d,S){var D=d&m,H=Ca(i);function U(){var Q=this&&this!==xn&&this instanceof U?H:i;return Q.apply(D?S:this,arguments)}return U}function iw(i){return function(d){d=_t(d);var S=te(d)?Ue(d):e,D=S?S[0]:d.charAt(0),H=S?Ui(S,1).join(""):d.slice(1);return D[i]()+H}}function fs(i){return function(d){return Ar(n0(t0(d).replace(ra,"")),i,"")}}function Ca(i){return function(){var d=arguments;switch(d.length){case 0:return new i;case 1:return new i(d[0]);case 2:return new i(d[0],d[1]);case 3:return new i(d[0],d[1],d[2]);case 4:return new i(d[0],d[1],d[2],d[3]);case 5:return new i(d[0],d[1],d[2],d[3],d[4]);case 6:return new i(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new i(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var S=hs(i.prototype),D=i.apply(S,d);return Yt(D)?D:S}}function WE(i,d,S){var D=Ca(i);function H(){for(var U=arguments.length,Q=se(U),ee=U,ie=ps(H);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:xe(Q,ie);if(U-=fe.length,U<S)return cw(i,d,gc,H.placeholder,e,Q,fe,e,e,S-U);var ge=this&&this!==xn&&this instanceof H?D:i;return jt(ge,this,Q)}return H}function ow(i){return function(d,S,D){var H=Qe(d);if(!nr(d)){var U=Pe(S,3);d=$n(d),S=function(ee){return U(H[ee],ee,H)}}var Q=i(d,S,D);return Q>-1?H[U?d[Q]:Q]:e}}function sw(i){return gi(function(d){var S=d.length,D=S,H=Cr.prototype.thru;for(i&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new Cn(y);if(H&&!Q&&wc(U)=="wrapper")var Q=new Cr([],!0)}for(D=Q?D:S;++D<S;){U=d[D];var ee=wc(U),ie=ee=="wrapper"?Id(U):e;ie&&Ld(ie[0])&&ie[1]==(T|R|C|E)&&!ie[4].length&&ie[9]==1?Q=Q[wc(ie[0])].apply(Q,ie[3]):Q=U.length==1&&Ld(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,ge=fe[0];if(Q&&fe.length==1&&Ze(ge))return Q.plant(ge).value();for(var ye=0,_e=S?d[ye].apply(this,fe):ge;++ye<S;)_e=d[ye].call(this,_e);return _e}})}function gc(i,d,S,D,H,U,Q,ee,ie,fe){var ge=d&T,ye=d&m,_e=d&w,Re=d&(R|$),je=d&L,it=_e?e:Ca(i);function Be(){for(var pt=arguments.length,yt=se(pt),fr=pt;fr--;)yt[fr]=arguments[fr];if(Re)var Yn=ps(Be),pr=da(yt,Yn);if(D&&(yt=ew(yt,D,H,Re)),U&&(yt=tw(yt,U,Q,Re)),pt-=pr,Re&&pt<fe){var sn=xe(yt,Yn);return cw(i,d,gc,Be.placeholder,S,yt,sn,ee,ie,fe-pt)}var Fr=ye?S:this,wi=_e?Fr[i]:i;return pt=yt.length,ee?yt=iR(yt,ee):je&&pt>1&&yt.reverse(),ge&&ie<pt&&(yt.length=ie),this&&this!==xn&&this instanceof Be&&(wi=it||Ca(wi)),wi.apply(Fr,yt)}return Be}function aw(i,d){return function(S,D){return dE(S,i,d(D),{})}}function mc(i,d){return function(S,D){var H;if(S===e&&D===e)return d;if(S!==e&&(H=S),D!==e){if(H===e)return D;typeof S=="string"||typeof D=="string"?(S=hr(S),D=hr(D)):(S=qv(S),D=qv(D)),H=i(S,D)}return H}}function _d(i){return gi(function(d){return d=Ft(d,Hn(Pe())),at(function(S){var D=this;return i(d,function(H){return jt(H,D,S)})})})}function yc(i,d){d=d===e?" ":hr(d);var S=d.length;if(S<2)return S?vd(d,i):d;var D=vd(d,rc(i/tt(d)));return te(d)?Ui(Ue(D),0,i).join(""):D.slice(0,i)}function PE(i,d,S,D){var H=d&m,U=Ca(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,ge=D.length,ye=se(ge+ie),_e=this&&this!==xn&&this instanceof Q?U:i;++fe<ge;)ye[fe]=D[fe];for(;ie--;)ye[fe++]=arguments[++ee];return jt(_e,H?S:this,ye)}return Q}function lw(i){return function(d,S,D){return D&&typeof D!="number"&&Gn(d,S,D)&&(S=D=e),d=vi(d),S===e?(S=d,d=0):S=vi(S),D=D===e?d<S?1:-1:vi(D),kE(d,S,D,i)}}function vc(i){return function(d,S){return typeof d=="string"&&typeof S=="string"||(d=$r(d),S=$r(S)),i(d,S)}}function cw(i,d,S,D,H,U,Q,ee,ie,fe){var ge=d&R,ye=ge?Q:e,_e=ge?e:Q,Re=ge?U:e,je=ge?e:U;d|=ge?C:b,d&=~(ge?b:C),d&A||(d&=-4);var it=[i,d,H,Re,ye,je,_e,ee,ie,fe],Be=S.apply(e,it);return Ld(i)&&xw(Be,it),Be.placeholder=D,Aw(Be,i,d)}function Sd(i){var d=kt[i];return function(S,D){if(S=$r(S),D=D==null?0:jn(nt(D),292),D&&Av(S)){var H=(_t(S)+"e").split("e"),U=d(H[0]+"e"+(+H[1]+D));return H=(_t(U)+"e").split("e"),+(H[0]+"e"+(+H[1]-D))}return d(S)}}var HE=cs&&1/ke(new cs([,-0]))[1]==F?function(i){return new cs(i)}:Yd;function uw(i){return function(d){var S=Bn(d);return S==ct?we(d):S==Qt?$e(d):ql(d,i(d))}}function pi(i,d,S,D,H,U,Q,ee){var ie=d&w;if(!ie&&typeof i!="function")throw new Cn(y);var fe=D?D.length:0;if(fe||(d&=-97,D=H=e),Q=Q===e?Q:kn(nt(Q),0),ee=ee===e?ee:nt(ee),fe-=H?H.length:0,d&b){var ge=D,ye=H;D=H=e}var _e=ie?e:Id(i),Re=[i,d,S,D,H,ge,ye,U,Q,ee];if(_e&&tR(Re,_e),i=Re[0],d=Re[1],S=Re[2],D=Re[3],H=Re[4],ee=Re[9]=Re[9]===e?ie?0:i.length:kn(Re[9]-fe,0),!ee&&d&(R|$)&&(d&=-25),!d||d==m)var je=FE(i,d,S);else d==R||d==$?je=WE(i,d,ee):(d==C||d==(m|C))&&!H.length?je=PE(i,d,S,D):je=gc.apply(e,Re);var it=_e?Uv:xw;return Aw(it(je,Re),i,d)}function hw(i,d,S,D){return i===e||Nr(i,ls[S])&&!Tt.call(D,S)?d:i}function dw(i,d,S,D,H,U){return Yt(i)&&Yt(d)&&(U.set(d,i),hc(i,d,e,dw,U),U.delete(d)),i}function jE(i){return Sa(i)?e:i}function fw(i,d,S,D,H,U){var Q=S&o,ee=i.length,ie=d.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),ge=U.get(d);if(fe&&ge)return fe==d&&ge==i;var ye=-1,_e=!0,Re=S&u?new xo:e;for(U.set(i,d),U.set(d,i);++ye<ee;){var je=i[ye],it=d[ye];if(D)var Be=Q?D(it,je,ye,d,i,U):D(je,it,ye,i,d,U);if(Be!==e){if(Be)continue;_e=!1;break}if(Re){if(!os(d,function(pt,yt){if(!Or(Re,yt)&&(je===pt||H(je,pt,S,D,U)))return Re.push(yt)})){_e=!1;break}}else if(!(je===it||H(je,it,S,D,U))){_e=!1;break}}return U.delete(i),U.delete(d),_e}function BE(i,d,S,D,H,U,Q){switch(S){case Ie:if(i.byteLength!=d.byteLength||i.byteOffset!=d.byteOffset)return!1;i=i.buffer,d=d.buffer;case Se:return!(i.byteLength!=d.byteLength||!U(new Xl(i),new Xl(d)));case me:case ve:case ft:return Nr(+i,+d);case Ae:return i.name==d.name&&i.message==d.message;case vn:case De:return i==d+"";case ct:var ee=we;case Qt:var ie=D&o;if(ee||(ee=ke),i.size!=d.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==d;D|=u,Q.set(i,d);var ge=fw(ee(i),ee(d),D,H,U,Q);return Q.delete(i),ge;case We:if(ya)return ya.call(i)==ya.call(d)}return!1}function zE(i,d,S,D,H,U){var Q=S&o,ee=$d(i),ie=ee.length,fe=$d(d),ge=fe.length;if(ie!=ge&&!Q)return!1;for(var ye=ie;ye--;){var _e=ee[ye];if(!(Q?_e in d:Tt.call(d,_e)))return!1}var Re=U.get(i),je=U.get(d);if(Re&&je)return Re==d&&je==i;var it=!0;U.set(i,d),U.set(d,i);for(var Be=Q;++ye<ie;){_e=ee[ye];var pt=i[_e],yt=d[_e];if(D)var fr=Q?D(yt,pt,_e,d,i,U):D(pt,yt,_e,i,d,U);if(!(fr===e?pt===yt||H(pt,yt,S,D,U):fr)){it=!1;break}Be||(Be=_e=="constructor")}if(it&&!Be){var Yn=i.constructor,pr=d.constructor;Yn!=pr&&"constructor"in i&&"constructor"in d&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof pr=="function"&&pr instanceof pr)&&(it=!1)}return U.delete(i),U.delete(d),it}function gi(i){return Dd(ww(i,e,Tw),i+"")}function $d(i){return Lv(i,$n,Rd)}function Td(i){return Lv(i,rr,pw)}var Id=oc?function(i){return oc.get(i)}:Yd;function wc(i){for(var d=i.name+"",S=us[d],D=Tt.call(us,d)?S.length:0;D--;){var H=S[D],U=H.func;if(U==null||U==i)return H.name}return d}function ps(i){var d=Tt.call(B,"placeholder")?B:i;return d.placeholder}function Pe(){var i=B.iteratee||qd;return i=i===qd?Nv:i,arguments.length?i(arguments[0],arguments[1]):i}function bc(i,d){var S=i.__data__;return ZE(d)?S[typeof d=="string"?"string":"hash"]:S.map}function Ed(i){for(var d=$n(i),S=d.length;S--;){var D=d[S],H=i[D];d[S]=[D,H,yw(H)]}return d}function ko(i,d){var S=K(i,d);return Dv(S)?S:e}function UE(i){var d=Tt.call(i,wo),S=i[wo];try{i[wo]=e;var D=!0}catch{}var H=Zl.call(i);return D&&(d?i[wo]=S:delete i[wo]),H}var Rd=id?function(i){return i==null?[]:(i=Qe(i),Xn(id(i),function(d){return bv.call(i,d)}))}:Kd,pw=id?function(i){for(var d=[];i;)Pn(d,Rd(i)),i=ec(i);return d}:Kd,Bn=qn;(od&&Bn(new od(new ArrayBuffer(1)))!=Ie||pa&&Bn(new pa)!=ct||sd&&Bn(sd.resolve())!=Vt||cs&&Bn(new cs)!=Qt||ga&&Bn(new ga)!=He)&&(Bn=function(i){var d=qn(i),S=d==Rt?i.constructor:e,D=S?_o(S):"";if(D)switch(D){case SI:return Ie;case $I:return ct;case TI:return Vt;case II:return Qt;case EI:return He}return d});function VE(i,d,S){for(var D=-1,H=S.length;++D<H;){var U=S[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":d-=Q;break;case"take":d=jn(d,i+Q);break;case"takeRight":i=kn(i,d-Q);break}}return{start:i,end:d}}function qE(i){var d=i.match(Tl);return d?d[1].split(Il):[]}function gw(i,d,S){d=zi(d,i);for(var D=-1,H=d.length,U=!1;++D<H;){var Q=Xr(d[D]);if(!(U=i!=null&&S(i,Q)))break;i=i[Q]}return U||++D!=H?U:(H=i==null?0:i.length,!!H&&$c(H)&&mi(Q,H)&&(Ze(i)||So(i)))}function GE(i){var d=i.length,S=new i.constructor(d);return d&&typeof i[0]=="string"&&Tt.call(i,"index")&&(S.index=i.index,S.input=i.input),S}function mw(i){return typeof i.constructor=="function"&&!ka(i)?hs(ec(i)):{}}function YE(i,d,S){var D=i.constructor;switch(d){case Se:return kd(i);case me:case ve:return new D(+i);case Ie:return RE(i,S);case ze:case qe:case ut:case ht:case ot:case st:case et:case Pt:case Nn:return Jv(i,S);case ct:return new D;case ft:case De:return new D(i);case vn:return ME(i);case Qt:return new D;case We:return LE(i)}}function KE(i,d){var S=d.length;if(!S)return i;var D=S-1;return d[D]=(S>1?"& ":"")+d[D],d=d.join(S>2?", ":" "),i.replace(Ti,`{
1389
- /* [wrapped with `+d+`] */
1390
- `)}function QE(i){return Ze(i)||So(i)||!!(xv&&i&&i[xv])}function mi(i,d){var S=typeof i;return d=d??P,!!d&&(S=="number"||S!="symbol"&&hn.test(i))&&i>-1&&i%1==0&&i<d}function Gn(i,d,S){if(!Yt(S))return!1;var D=typeof d;return(D=="number"?nr(S)&&mi(d,S.length):D=="string"&&d in S)?Nr(S[d],i):!1}function Md(i,d){if(Ze(i))return!1;var S=typeof i;return S=="number"||S=="symbol"||S=="boolean"||i==null||dr(i)?!0:_n.test(i)||!oi.test(i)||d!=null&&i in Qe(d)}function ZE(i){var d=typeof i;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?i!=="__proto__":i===null}function Ld(i){var d=wc(i),S=B[d];if(typeof S!="function"||!(d in mt.prototype))return!1;if(i===S)return!0;var D=Id(S);return!!D&&i===D[0]}function JE(i){return!!yv&&yv in i}var XE=Kl?yi:Qd;function ka(i){var d=i&&i.constructor,S=typeof d=="function"&&d.prototype||ls;return i===S}function yw(i){return i===i&&!Yt(i)}function vw(i,d){return function(S){return S==null?!1:S[i]===d&&(d!==e||i in Qe(S))}}function eR(i){var d=_c(i,function(D){return S.size===g&&S.clear(),D}),S=d.cache;return d}function tR(i,d){var S=i[1],D=d[1],H=S|D,U=H<(m|w|T),Q=D==T&&S==R||D==T&&S==E&&i[7].length<=d[8]||D==(T|E)&&d[7].length<=d[8]&&S==R;if(!(U||Q))return i;D&m&&(i[2]=d[2],H|=S&m?0:A);var ee=d[3];if(ee){var ie=i[3];i[3]=ie?ew(ie,ee,d[4]):ee,i[4]=ie?xe(i[3],s):d[4]}return ee=d[5],ee&&(ie=i[5],i[5]=ie?tw(ie,ee,d[6]):ee,i[6]=ie?xe(i[5],s):d[6]),ee=d[7],ee&&(i[7]=ee),D&T&&(i[8]=i[8]==null?d[8]:jn(i[8],d[8])),i[9]==null&&(i[9]=d[9]),i[0]=d[0],i[1]=H,i}function nR(i){var d=[];if(i!=null)for(var S in Qe(i))d.push(S);return d}function rR(i){return Zl.call(i)}function ww(i,d,S){return d=kn(d===e?i.length-1:d,0),function(){for(var D=arguments,H=-1,U=kn(D.length-d,0),Q=se(U);++H<U;)Q[H]=D[d+H];H=-1;for(var ee=se(d+1);++H<d;)ee[H]=D[H];return ee[d]=S(Q),jt(i,this,ee)}}function bw(i,d){return d.length<2?i:Co(i,_r(d,0,-1))}function iR(i,d){for(var S=i.length,D=jn(d.length,S),H=tr(i);D--;){var U=d[D];i[D]=mi(U,S)?H[U]:e}return i}function Od(i,d){if(!(d==="constructor"&&typeof i[d]=="function")&&d!="__proto__")return i[d]}var xw=Cw(Uv),_a=wI||function(i,d){return xn.setTimeout(i,d)},Dd=Cw($E);function Aw(i,d,S){var D=d+"";return Dd(i,KE(D,oR(qE(D),S)))}function Cw(i){var d=0,S=0;return function(){var D=CI(),H=x-(D-S);if(S=D,H>0){if(++d>=_)return arguments[0]}else d=0;return i.apply(e,arguments)}}function xc(i,d){var S=-1,D=i.length,H=D-1;for(d=d===e?D:d;++S<d;){var U=yd(S,H),Q=i[U];i[U]=i[S],i[S]=Q}return i.length=d,i}var kw=eR(function(i){var d=[];return i.charCodeAt(0)===46&&d.push(""),i.replace(Ur,function(S,D,H,U){d.push(H?U.replace(si,"$1"):D||S)}),d});function Xr(i){if(typeof i=="string"||dr(i))return i;var d=i+"";return d=="0"&&1/i==-1/0?"-0":d}function _o(i){if(i!=null){try{return Ql.call(i)}catch{}try{return i+""}catch{}}return""}function oR(i,d){return Un(Z,function(S){var D="_."+S[0];d&S[1]&&!is(i,D)&&i.push(D)}),i.sort()}function _w(i){if(i instanceof mt)return i.clone();var d=new Cr(i.__wrapped__,i.__chain__);return d.__actions__=tr(i.__actions__),d.__index__=i.__index__,d.__values__=i.__values__,d}function sR(i,d,S){(S?Gn(i,d,S):d===e)?d=1:d=kn(nt(d),0);var D=i==null?0:i.length;if(!D||d<1)return[];for(var H=0,U=0,Q=se(rc(D/d));H<D;)Q[U++]=_r(i,H,H+=d);return Q}function aR(i){for(var d=-1,S=i==null?0:i.length,D=0,H=[];++d<S;){var U=i[d];U&&(H[D++]=U)}return H}function lR(){var i=arguments.length;if(!i)return[];for(var d=se(i-1),S=arguments[0],D=i;D--;)d[D-1]=arguments[D];return Pn(Ze(S)?tr(S):[S],In(d,1))}var cR=at(function(i,d){return on(i)?wa(i,In(d,1,on,!0)):[]}),uR=at(function(i,d){var S=Sr(d);return on(S)&&(S=e),on(i)?wa(i,In(d,1,on,!0),Pe(S,2)):[]}),hR=at(function(i,d){var S=Sr(d);return on(S)&&(S=e),on(i)?wa(i,In(d,1,on,!0),e,S):[]});function dR(i,d,S){var D=i==null?0:i.length;return D?(d=S||d===e?1:nt(d),_r(i,d<0?0:d,D)):[]}function fR(i,d,S){var D=i==null?0:i.length;return D?(d=S||d===e?1:nt(d),d=D-d,_r(i,0,d<0?0:d)):[]}function pR(i,d){return i&&i.length?fc(i,Pe(d,3),!0,!0):[]}function gR(i,d){return i&&i.length?fc(i,Pe(d,3),!0):[]}function mR(i,d,S,D){var H=i==null?0:i.length;return H?(S&&typeof S!="number"&&Gn(i,d,S)&&(S=0,D=H),lE(i,d,S,D)):[]}function Sw(i,d,S){var D=i==null?0:i.length;if(!D)return-1;var H=S==null?0:nt(S);return H<0&&(H=kn(D+H,0)),yo(i,Pe(d,3),H)}function $w(i,d,S){var D=i==null?0:i.length;if(!D)return-1;var H=D-1;return S!==e&&(H=nt(S),H=S<0?kn(D+H,0):jn(H,D-1)),yo(i,Pe(d,3),H,!0)}function Tw(i){var d=i==null?0:i.length;return d?In(i,1):[]}function yR(i){var d=i==null?0:i.length;return d?In(i,F):[]}function vR(i,d){var S=i==null?0:i.length;return S?(d=d===e?1:nt(d),In(i,d)):[]}function wR(i){for(var d=-1,S=i==null?0:i.length,D={};++d<S;){var H=i[d];D[H[0]]=H[1]}return D}function Iw(i){return i&&i.length?i[0]:e}function bR(i,d,S){var D=i==null?0:i.length;if(!D)return-1;var H=S==null?0:nt(S);return H<0&&(H=kn(D+H,0)),ui(i,d,H)}function xR(i){var d=i==null?0:i.length;return d?_r(i,0,-1):[]}var AR=at(function(i){var d=Ft(i,Ad);return d.length&&d[0]===i[0]?dd(d):[]}),CR=at(function(i){var d=Sr(i),S=Ft(i,Ad);return d===Sr(S)?d=e:S.pop(),S.length&&S[0]===i[0]?dd(S,Pe(d,2)):[]}),kR=at(function(i){var d=Sr(i),S=Ft(i,Ad);return d=typeof d=="function"?d:e,d&&S.pop(),S.length&&S[0]===i[0]?dd(S,e,d):[]});function _R(i,d){return i==null?"":xI.call(i,d)}function Sr(i){var d=i==null?0:i.length;return d?i[d-1]:e}function SR(i,d,S){var D=i==null?0:i.length;if(!D)return-1;var H=D;return S!==e&&(H=nt(S),H=H<0?kn(D+H,0):jn(H,D-1)),d===d?$t(i,d,H):yo(i,la,H,!0)}function $R(i,d){return i&&i.length?Hv(i,nt(d)):e}var TR=at(Ew);function Ew(i,d){return i&&i.length&&d&&d.length?md(i,d):i}function IR(i,d,S){return i&&i.length&&d&&d.length?md(i,d,Pe(S,2)):i}function ER(i,d,S){return i&&i.length&&d&&d.length?md(i,d,e,S):i}var RR=gi(function(i,d){var S=i==null?0:i.length,D=ld(i,d);return zv(i,Ft(d,function(H){return mi(H,S)?+H:H}).sort(Xv)),D});function MR(i,d){var S=[];if(!(i&&i.length))return S;var D=-1,H=[],U=i.length;for(d=Pe(d,3);++D<U;){var Q=i[D];d(Q,D,i)&&(S.push(Q),H.push(D))}return zv(i,H),S}function Nd(i){return i==null?i:_I.call(i)}function LR(i,d,S){var D=i==null?0:i.length;return D?(S&&typeof S!="number"&&Gn(i,d,S)?(d=0,S=D):(d=d==null?0:nt(d),S=S===e?D:nt(S)),_r(i,d,S)):[]}function OR(i,d){return dc(i,d)}function DR(i,d,S){return wd(i,d,Pe(S,2))}function NR(i,d){var S=i==null?0:i.length;if(S){var D=dc(i,d);if(D<S&&Nr(i[D],d))return D}return-1}function FR(i,d){return dc(i,d,!0)}function WR(i,d,S){return wd(i,d,Pe(S,2),!0)}function PR(i,d){var S=i==null?0:i.length;if(S){var D=dc(i,d,!0)-1;if(Nr(i[D],d))return D}return-1}function HR(i){return i&&i.length?Vv(i):[]}function jR(i,d){return i&&i.length?Vv(i,Pe(d,2)):[]}function BR(i){var d=i==null?0:i.length;return d?_r(i,1,d):[]}function zR(i,d,S){return i&&i.length?(d=S||d===e?1:nt(d),_r(i,0,d<0?0:d)):[]}function UR(i,d,S){var D=i==null?0:i.length;return D?(d=S||d===e?1:nt(d),d=D-d,_r(i,d<0?0:d,D)):[]}function VR(i,d){return i&&i.length?fc(i,Pe(d,3),!1,!0):[]}function qR(i,d){return i&&i.length?fc(i,Pe(d,3)):[]}var GR=at(function(i){return Bi(In(i,1,on,!0))}),YR=at(function(i){var d=Sr(i);return on(d)&&(d=e),Bi(In(i,1,on,!0),Pe(d,2))}),KR=at(function(i){var d=Sr(i);return d=typeof d=="function"?d:e,Bi(In(i,1,on,!0),e,d)});function QR(i){return i&&i.length?Bi(i):[]}function ZR(i,d){return i&&i.length?Bi(i,Pe(d,2)):[]}function JR(i,d){return d=typeof d=="function"?d:e,i&&i.length?Bi(i,e,d):[]}function Fd(i){if(!(i&&i.length))return[];var d=0;return i=Xn(i,function(S){if(on(S))return d=kn(S.length,d),!0}),Jt(d,function(S){return Ft(i,ua(S))})}function Rw(i,d){if(!(i&&i.length))return[];var S=Fd(i);return d==null?S:Ft(S,function(D){return jt(d,e,D)})}var XR=at(function(i,d){return on(i)?wa(i,d):[]}),eM=at(function(i){return xd(Xn(i,on))}),tM=at(function(i){var d=Sr(i);return on(d)&&(d=e),xd(Xn(i,on),Pe(d,2))}),nM=at(function(i){var d=Sr(i);return d=typeof d=="function"?d:e,xd(Xn(i,on),e,d)}),rM=at(Fd);function iM(i,d){return Kv(i||[],d||[],va)}function oM(i,d){return Kv(i||[],d||[],Aa)}var sM=at(function(i){var d=i.length,S=d>1?i[d-1]:e;return S=typeof S=="function"?(i.pop(),S):e,Rw(i,S)});function Mw(i){var d=B(i);return d.__chain__=!0,d}function aM(i,d){return d(i),i}function Ac(i,d){return d(i)}var lM=gi(function(i){var d=i.length,S=d?i[0]:0,D=this.__wrapped__,H=function(U){return ld(U,i)};return d>1||this.__actions__.length||!(D instanceof mt)||!mi(S)?this.thru(H):(D=D.slice(S,+S+(d?1:0)),D.__actions__.push({func:Ac,args:[H],thisArg:e}),new Cr(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function cM(){return Mw(this)}function uM(){return new Cr(this.value(),this.__chain__)}function hM(){this.__values__===e&&(this.__values__=qw(this.value()));var i=this.__index__>=this.__values__.length,d=i?e:this.__values__[this.__index__++];return{done:i,value:d}}function dM(){return this}function fM(i){for(var d,S=this;S instanceof ac;){var D=_w(S);D.__index__=0,D.__values__=e,d?H.__wrapped__=D:d=D;var H=D;S=S.__wrapped__}return H.__wrapped__=i,d}function pM(){var i=this.__wrapped__;if(i instanceof mt){var d=i;return this.__actions__.length&&(d=new mt(this)),d=d.reverse(),d.__actions__.push({func:Ac,args:[Nd],thisArg:e}),new Cr(d,this.__chain__)}return this.thru(Nd)}function gM(){return Yv(this.__wrapped__,this.__actions__)}var mM=pc(function(i,d,S){Tt.call(i,S)?++i[S]:fi(i,S,1)});function yM(i,d,S){var D=Ze(i)?Fi:aE;return S&&Gn(i,d,S)&&(d=e),D(i,Pe(d,3))}function vM(i,d){var S=Ze(i)?Xn:Rv;return S(i,Pe(d,3))}var wM=ow(Sw),bM=ow($w);function xM(i,d){return In(Cc(i,d),1)}function AM(i,d){return In(Cc(i,d),F)}function CM(i,d,S){return S=S===e?1:nt(S),In(Cc(i,d),S)}function Lw(i,d){var S=Ze(i)?Un:ji;return S(i,Pe(d,3))}function Ow(i,d){var S=Ze(i)?Ul:Ev;return S(i,Pe(d,3))}var kM=pc(function(i,d,S){Tt.call(i,S)?i[S].push(d):fi(i,S,[d])});function _M(i,d,S,D){i=nr(i)?i:ms(i),S=S&&!D?nt(S):0;var H=i.length;return S<0&&(S=kn(H+S,0)),Tc(i)?S<=H&&i.indexOf(d,S)>-1:!!H&&ui(i,d,S)>-1}var SM=at(function(i,d,S){var D=-1,H=typeof d=="function",U=nr(i)?se(i.length):[];return ji(i,function(Q){U[++D]=H?jt(d,Q,S):ba(Q,d,S)}),U}),$M=pc(function(i,d,S){fi(i,S,d)});function Cc(i,d){var S=Ze(i)?Ft:Fv;return S(i,Pe(d,3))}function TM(i,d,S,D){return i==null?[]:(Ze(d)||(d=d==null?[]:[d]),S=D?e:S,Ze(S)||(S=S==null?[]:[S]),jv(i,d,S))}var IM=pc(function(i,d,S){i[S?0:1].push(d)},function(){return[[],[]]});function EM(i,d,S){var D=Ze(i)?Ar:ha,H=arguments.length<3;return D(i,Pe(d,4),S,H,ji)}function RM(i,d,S){var D=Ze(i)?mo:ha,H=arguments.length<3;return D(i,Pe(d,4),S,H,Ev)}function MM(i,d){var S=Ze(i)?Xn:Rv;return S(i,Sc(Pe(d,3)))}function LM(i){var d=Ze(i)?Sv:_E;return d(i)}function OM(i,d,S){(S?Gn(i,d,S):d===e)?d=1:d=nt(d);var D=Ze(i)?nE:SE;return D(i,d)}function DM(i){var d=Ze(i)?rE:TE;return d(i)}function NM(i){if(i==null)return 0;if(nr(i))return Tc(i)?tt(i):i.length;var d=Bn(i);return d==ct||d==Qt?i.size:pd(i).length}function FM(i,d,S){var D=Ze(i)?os:IE;return S&&Gn(i,d,S)&&(d=e),D(i,Pe(d,3))}var WM=at(function(i,d){if(i==null)return[];var S=d.length;return S>1&&Gn(i,d[0],d[1])?d=[]:S>2&&Gn(d[0],d[1],d[2])&&(d=[d[0]]),jv(i,In(d,1),[])}),kc=vI||function(){return xn.Date.now()};function PM(i,d){if(typeof d!="function")throw new Cn(y);return i=nt(i),function(){if(--i<1)return d.apply(this,arguments)}}function Dw(i,d,S){return d=S?e:d,d=i&&d==null?i.length:d,pi(i,T,e,e,e,e,d)}function Nw(i,d){var S;if(typeof d!="function")throw new Cn(y);return i=nt(i),function(){return--i>0&&(S=d.apply(this,arguments)),i<=1&&(d=e),S}}var Wd=at(function(i,d,S){var D=m;if(S.length){var H=xe(S,ps(Wd));D|=C}return pi(i,D,d,S,H)}),Fw=at(function(i,d,S){var D=m|w;if(S.length){var H=xe(S,ps(Fw));D|=C}return pi(d,D,i,S,H)});function Ww(i,d,S){d=S?e:d;var D=pi(i,R,e,e,e,e,e,d);return D.placeholder=Ww.placeholder,D}function Pw(i,d,S){d=S?e:d;var D=pi(i,$,e,e,e,e,e,d);return D.placeholder=Pw.placeholder,D}function Hw(i,d,S){var D,H,U,Q,ee,ie,fe=0,ge=!1,ye=!1,_e=!0;if(typeof i!="function")throw new Cn(y);d=$r(d)||0,Yt(S)&&(ge=!!S.leading,ye="maxWait"in S,U=ye?kn($r(S.maxWait)||0,d):U,_e="trailing"in S?!!S.trailing:_e);function Re(sn){var Fr=D,wi=H;return D=H=e,fe=sn,Q=i.apply(wi,Fr),Q}function je(sn){return fe=sn,ee=_a(pt,d),ge?Re(sn):Q}function it(sn){var Fr=sn-ie,wi=sn-fe,o0=d-Fr;return ye?jn(o0,U-wi):o0}function Be(sn){var Fr=sn-ie,wi=sn-fe;return ie===e||Fr>=d||Fr<0||ye&&wi>=U}function pt(){var sn=kc();if(Be(sn))return yt(sn);ee=_a(pt,it(sn))}function yt(sn){return ee=e,_e&&D?Re(sn):(D=H=e,Q)}function fr(){ee!==e&&Qv(ee),fe=0,D=ie=H=ee=e}function Yn(){return ee===e?Q:yt(kc())}function pr(){var sn=kc(),Fr=Be(sn);if(D=arguments,H=this,ie=sn,Fr){if(ee===e)return je(ie);if(ye)return Qv(ee),ee=_a(pt,d),Re(ie)}return ee===e&&(ee=_a(pt,d)),Q}return pr.cancel=fr,pr.flush=Yn,pr}var HM=at(function(i,d){return Iv(i,1,d)}),jM=at(function(i,d,S){return Iv(i,$r(d)||0,S)});function BM(i){return pi(i,L)}function _c(i,d){if(typeof i!="function"||d!=null&&typeof d!="function")throw new Cn(y);var S=function(){var D=arguments,H=d?d.apply(this,D):D[0],U=S.cache;if(U.has(H))return U.get(H);var Q=i.apply(this,D);return S.cache=U.set(H,Q)||U,Q};return S.cache=new(_c.Cache||di),S}_c.Cache=di;function Sc(i){if(typeof i!="function")throw new Cn(y);return function(){var d=arguments;switch(d.length){case 0:return!i.call(this);case 1:return!i.call(this,d[0]);case 2:return!i.call(this,d[0],d[1]);case 3:return!i.call(this,d[0],d[1],d[2])}return!i.apply(this,d)}}function zM(i){return Nw(2,i)}var UM=EE(function(i,d){d=d.length==1&&Ze(d[0])?Ft(d[0],Hn(Pe())):Ft(In(d,1),Hn(Pe()));var S=d.length;return at(function(D){for(var H=-1,U=jn(D.length,S);++H<U;)D[H]=d[H].call(this,D[H]);return jt(i,this,D)})}),Pd=at(function(i,d){var S=xe(d,ps(Pd));return pi(i,C,e,d,S)}),jw=at(function(i,d){var S=xe(d,ps(jw));return pi(i,b,e,d,S)}),VM=gi(function(i,d){return pi(i,E,e,e,e,d)});function qM(i,d){if(typeof i!="function")throw new Cn(y);return d=d===e?d:nt(d),at(i,d)}function GM(i,d){if(typeof i!="function")throw new Cn(y);return d=d==null?0:kn(nt(d),0),at(function(S){var D=S[d],H=Ui(S,0,d);return D&&Pn(H,D),jt(i,this,H)})}function YM(i,d,S){var D=!0,H=!0;if(typeof i!="function")throw new Cn(y);return Yt(S)&&(D="leading"in S?!!S.leading:D,H="trailing"in S?!!S.trailing:H),Hw(i,d,{leading:D,maxWait:d,trailing:H})}function KM(i){return Dw(i,1)}function QM(i,d){return Pd(Cd(d),i)}function ZM(){if(!arguments.length)return[];var i=arguments[0];return Ze(i)?i:[i]}function JM(i){return kr(i,l)}function XM(i,d){return d=typeof d=="function"?d:e,kr(i,l,d)}function eL(i){return kr(i,c|l)}function tL(i,d){return d=typeof d=="function"?d:e,kr(i,c|l,d)}function nL(i,d){return d==null||Tv(i,d,$n(d))}function Nr(i,d){return i===d||i!==i&&d!==d}var rL=vc(hd),iL=vc(function(i,d){return i>=d}),So=Ov(function(){return arguments}())?Ov:function(i){return Xt(i)&&Tt.call(i,"callee")&&!bv.call(i,"callee")},Ze=se.isArray,oL=Bl?Hn(Bl):fE;function nr(i){return i!=null&&$c(i.length)&&!yi(i)}function on(i){return Xt(i)&&nr(i)}function sL(i){return i===!0||i===!1||Xt(i)&&qn(i)==me}var Vi=bI||Qd,aL=xr?Hn(xr):pE;function lL(i){return Xt(i)&&i.nodeType===1&&!Sa(i)}function cL(i){if(i==null)return!0;if(nr(i)&&(Ze(i)||typeof i=="string"||typeof i.splice=="function"||Vi(i)||gs(i)||So(i)))return!i.length;var d=Bn(i);if(d==ct||d==Qt)return!i.size;if(ka(i))return!pd(i).length;for(var S in i)if(Tt.call(i,S))return!1;return!0}function uL(i,d){return xa(i,d)}function hL(i,d,S){S=typeof S=="function"?S:e;var D=S?S(i,d):e;return D===e?xa(i,d,e,S):!!D}function Hd(i){if(!Xt(i))return!1;var d=qn(i);return d==Ae||d==pe||typeof i.message=="string"&&typeof i.name=="string"&&!Sa(i)}function dL(i){return typeof i=="number"&&Av(i)}function yi(i){if(!Yt(i))return!1;var d=qn(i);return d==rt||d==Dt||d==ae||d==zr}function Bw(i){return typeof i=="number"&&i==nt(i)}function $c(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=P}function Yt(i){var d=typeof i;return i!=null&&(d=="object"||d=="function")}function Xt(i){return i!=null&&typeof i=="object"}var zw=Lr?Hn(Lr):mE;function fL(i,d){return i===d||fd(i,d,Ed(d))}function pL(i,d,S){return S=typeof S=="function"?S:e,fd(i,d,Ed(d),S)}function gL(i){return Uw(i)&&i!=+i}function mL(i){if(XE(i))throw new Oe(p);return Dv(i)}function yL(i){return i===null}function vL(i){return i==null}function Uw(i){return typeof i=="number"||Xt(i)&&qn(i)==ft}function Sa(i){if(!Xt(i)||qn(i)!=Rt)return!1;var d=ec(i);if(d===null)return!0;var S=Tt.call(d,"constructor")&&d.constructor;return typeof S=="function"&&S instanceof S&&Ql.call(S)==pI}var jd=Qr?Hn(Qr):yE;function wL(i){return Bw(i)&&i>=-9007199254740991&&i<=P}var Vw=ci?Hn(ci):vE;function Tc(i){return typeof i=="string"||!Ze(i)&&Xt(i)&&qn(i)==De}function dr(i){return typeof i=="symbol"||Xt(i)&&qn(i)==We}var gs=zl?Hn(zl):wE;function bL(i){return i===e}function xL(i){return Xt(i)&&Bn(i)==He}function AL(i){return Xt(i)&&qn(i)==ce}var CL=vc(gd),kL=vc(function(i,d){return i<=d});function qw(i){if(!i)return[];if(nr(i))return Tc(i)?Ue(i):tr(i);if(fa&&i[fa])return de(i[fa]());var d=Bn(i),S=d==ct?we:d==Qt?ke:ms;return S(i)}function vi(i){if(!i)return i===0?i:0;if(i=$r(i),i===F||i===-1/0){var d=i<0?-1:1;return d*z}return i===i?i:0}function nt(i){var d=vi(i),S=d%1;return d===d?S?d-S:d:0}function Gw(i){return i?Ao(nt(i),0,q):0}function $r(i){if(typeof i=="number")return i;if(dr(i))return V;if(Yt(i)){var d=typeof i.valueOf=="function"?i.valueOf():i;i=Yt(d)?d+"":d}if(typeof i!="string")return i===0?i:+i;i=qt(i);var S=qr.test(i);return S||un.test(i)?Mt(i.slice(2),S?2:8):El.test(i)?V:+i}function Yw(i){return Jr(i,rr(i))}function _L(i){return i?Ao(nt(i),-9007199254740991,P):i===0?i:0}function _t(i){return i==null?"":hr(i)}var SL=ds(function(i,d){if(ka(d)||nr(d)){Jr(d,$n(d),i);return}for(var S in d)Tt.call(d,S)&&va(i,S,d[S])}),Kw=ds(function(i,d){Jr(d,rr(d),i)}),Ic=ds(function(i,d,S,D){Jr(d,rr(d),i,D)}),$L=ds(function(i,d,S,D){Jr(d,$n(d),i,D)}),TL=gi(ld);function IL(i,d){var S=hs(i);return d==null?S:$v(S,d)}var EL=at(function(i,d){i=Qe(i);var S=-1,D=d.length,H=D>2?d[2]:e;for(H&&Gn(d[0],d[1],H)&&(D=1);++S<D;)for(var U=d[S],Q=rr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],ge=i[fe];(ge===e||Nr(ge,ls[fe])&&!Tt.call(i,fe))&&(i[fe]=U[fe])}return i}),RL=at(function(i){return i.push(e,dw),jt(Qw,e,i)});function ML(i,d){return aa(i,Pe(d,3),Zr)}function LL(i,d){return aa(i,Pe(d,3),ud)}function OL(i,d){return i==null?i:cd(i,Pe(d,3),rr)}function DL(i,d){return i==null?i:Mv(i,Pe(d,3),rr)}function NL(i,d){return i&&Zr(i,Pe(d,3))}function FL(i,d){return i&&ud(i,Pe(d,3))}function WL(i){return i==null?[]:uc(i,$n(i))}function PL(i){return i==null?[]:uc(i,rr(i))}function Bd(i,d,S){var D=i==null?e:Co(i,d);return D===e?S:D}function HL(i,d){return i!=null&&gw(i,d,cE)}function zd(i,d){return i!=null&&gw(i,d,uE)}var jL=aw(function(i,d,S){d!=null&&typeof d.toString!="function"&&(d=Zl.call(d)),i[d]=S},Vd(ir)),BL=aw(function(i,d,S){d!=null&&typeof d.toString!="function"&&(d=Zl.call(d)),Tt.call(i,d)?i[d].push(S):i[d]=[S]},Pe),zL=at(ba);function $n(i){return nr(i)?_v(i):pd(i)}function rr(i){return nr(i)?_v(i,!0):bE(i)}function UL(i,d){var S={};return d=Pe(d,3),Zr(i,function(D,H,U){fi(S,d(D,H,U),D)}),S}function VL(i,d){var S={};return d=Pe(d,3),Zr(i,function(D,H,U){fi(S,H,d(D,H,U))}),S}var qL=ds(function(i,d,S){hc(i,d,S)}),Qw=ds(function(i,d,S,D){hc(i,d,S,D)}),GL=gi(function(i,d){var S={};if(i==null)return S;var D=!1;d=Ft(d,function(U){return U=zi(U,i),D||(D=U.length>1),U}),Jr(i,Td(i),S),D&&(S=kr(S,c|a|l,jE));for(var H=d.length;H--;)bd(S,d[H]);return S});function YL(i,d){return Zw(i,Sc(Pe(d)))}var KL=gi(function(i,d){return i==null?{}:AE(i,d)});function Zw(i,d){if(i==null)return{};var S=Ft(Td(i),function(D){return[D]});return d=Pe(d),Bv(i,S,function(D,H){return d(D,H[0])})}function QL(i,d,S){d=zi(d,i);var D=-1,H=d.length;for(H||(H=1,i=e);++D<H;){var U=i==null?e:i[Xr(d[D])];U===e&&(D=H,U=S),i=yi(U)?U.call(i):U}return i}function ZL(i,d,S){return i==null?i:Aa(i,d,S)}function JL(i,d,S,D){return D=typeof D=="function"?D:e,i==null?i:Aa(i,d,S,D)}var Jw=uw($n),Xw=uw(rr);function XL(i,d,S){var D=Ze(i),H=D||Vi(i)||gs(i);if(d=Pe(d,4),S==null){var U=i&&i.constructor;H?S=D?new U:[]:Yt(i)?S=yi(U)?hs(ec(i)):{}:S={}}return(H?Un:Zr)(i,function(Q,ee,ie){return d(S,Q,ee,ie)}),S}function eO(i,d){return i==null?!0:bd(i,d)}function tO(i,d,S){return i==null?i:Gv(i,d,Cd(S))}function nO(i,d,S,D){return D=typeof D=="function"?D:e,i==null?i:Gv(i,d,Cd(S),D)}function ms(i){return i==null?[]:vo(i,$n(i))}function rO(i){return i==null?[]:vo(i,rr(i))}function iO(i,d,S){return S===e&&(S=d,d=e),S!==e&&(S=$r(S),S=S===S?S:0),d!==e&&(d=$r(d),d=d===d?d:0),Ao($r(i),d,S)}function oO(i,d,S){return d=vi(d),S===e?(S=d,d=0):S=vi(S),i=$r(i),hE(i,d,S)}function sO(i,d,S){if(S&&typeof S!="boolean"&&Gn(i,d,S)&&(d=S=e),S===e&&(typeof d=="boolean"?(S=d,d=e):typeof i=="boolean"&&(S=i,i=e)),i===e&&d===e?(i=0,d=1):(i=vi(i),d===e?(d=i,i=0):d=vi(d)),i>d){var D=i;i=d,d=D}if(S||i%1||d%1){var H=Cv();return jn(i+H*(d-i+fn("1e-"+((H+"").length-1))),d)}return yd(i,d)}var aO=fs(function(i,d,S){return d=d.toLowerCase(),i+(S?e0(d):d)});function e0(i){return Ud(_t(i).toLowerCase())}function t0(i){return i=_t(i),i&&i.replace(Ko,W).replace(Oi,"")}function lO(i,d,S){i=_t(i),d=hr(d);var D=i.length;S=S===e?D:Ao(nt(S),0,D);var H=S;return S-=d.length,S>=0&&i.slice(S,H)==d}function cO(i){return i=_t(i),i&&Yh.test(i)?i.replace($l,j):i}function uO(i){return i=_t(i),i&&Si.test(i)?i.replace(Vr,"\\$&"):i}var hO=fs(function(i,d,S){return i+(S?"-":"")+d.toLowerCase()}),dO=fs(function(i,d,S){return i+(S?" ":"")+d.toLowerCase()}),fO=iw("toLowerCase");function pO(i,d,S){i=_t(i),d=nt(d);var D=d?tt(i):0;if(!d||D>=d)return i;var H=(d-D)/2;return yc(ic(H),S)+i+yc(rc(H),S)}function gO(i,d,S){i=_t(i),d=nt(d);var D=d?tt(i):0;return d&&D<d?i+yc(d-D,S):i}function mO(i,d,S){i=_t(i),d=nt(d);var D=d?tt(i):0;return d&&D<d?yc(d-D,S)+i:i}function yO(i,d,S){return S||d==null?d=0:d&&(d=+d),kI(_t(i).replace(Fn,""),d||0)}function vO(i,d,S){return(S?Gn(i,d,S):d===e)?d=1:d=nt(d),vd(_t(i),d)}function wO(){var i=arguments,d=_t(i[0]);return i.length<3?d:d.replace(i[1],i[2])}var bO=fs(function(i,d,S){return i+(S?"_":"")+d.toLowerCase()});function xO(i,d,S){return S&&typeof S!="number"&&Gn(i,d,S)&&(d=S=e),S=S===e?q:S>>>0,S?(i=_t(i),i&&(typeof d=="string"||d!=null&&!jd(d))&&(d=hr(d),!d&&te(i))?Ui(Ue(i),0,S):i.split(d,S)):[]}var AO=fs(function(i,d,S){return i+(S?" ":"")+Ud(d)});function CO(i,d,S){return i=_t(i),S=S==null?0:Ao(nt(S),0,i.length),d=hr(d),i.slice(S,S+d.length)==d}function kO(i,d,S){var D=B.templateSettings;S&&Gn(i,d,S)&&(d=e),i=_t(i),d=Ic({},d,D,hw);var H=Ic({},d.imports,D.imports,hw),U=$n(H),Q=vo(H,U),ee,ie,fe=0,ge=d.interpolate||Wn,ye="__p += '",_e=An((d.escape||Wn).source+"|"+ge.source+"|"+(ge===Ne?Xh:Wn).source+"|"+(d.evaluate||Wn).source+"|$","g"),Re="//# sourceURL="+(Tt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hl+"]")+`
1391
- `;i.replace(_e,function(Be,pt,yt,fr,Yn,pr){return yt||(yt=fr),ye+=i.slice(fe,pr).replace(co,Y),pt&&(ee=!0,ye+=`' +
1392
- __e(`+pt+`) +
1393
- '`),Yn&&(ie=!0,ye+=`';
1394
- `+Yn+`;
1395
- __p += '`),yt&&(ye+=`' +
1396
- ((__t = (`+yt+`)) == null ? '' : __t) +
1397
- '`),fe=pr+Be.length,Be}),ye+=`';
1398
- `;var je=Tt.call(d,"variable")&&d.variable;if(!je)ye=`with (obj) {
1399
- `+ye+`
1400
- }
1401
- `;else if(Jh.test(je))throw new Oe(v);ye=(ie?ye.replace(ii,""):ye).replace(Zn,"$1").replace(Bs,"$1;"),ye="function("+(je||"obj")+`) {
1402
- `+(je?"":`obj || (obj = {});
1403
- `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
1404
- function print() { __p += __j.call(arguments, '') }
1405
- `:`;
1406
- `)+ye+`return __p
1407
- }`;var it=r0(function(){return Ye(U,Re+"return "+ye).apply(e,Q)});if(it.source=ye,Hd(it))throw it;return it}function _O(i){return _t(i).toLowerCase()}function SO(i){return _t(i).toUpperCase()}function $O(i,d,S){if(i=_t(i),i&&(S||d===e))return qt(i);if(!i||!(d=hr(d)))return i;var D=Ue(i),H=Ue(d),U=Gl(D,H),Q=Yl(D,H)+1;return Ui(D,U,Q).join("")}function TO(i,d,S){if(i=_t(i),i&&(S||d===e))return i.slice(0,Ke(i)+1);if(!i||!(d=hr(d)))return i;var D=Ue(i),H=Yl(D,Ue(d))+1;return Ui(D,0,H).join("")}function IO(i,d,S){if(i=_t(i),i&&(S||d===e))return i.replace(Fn,"");if(!i||!(d=hr(d)))return i;var D=Ue(i),H=Gl(D,Ue(d));return Ui(D,H).join("")}function EO(i,d){var S=I,D=N;if(Yt(d)){var H="separator"in d?d.separator:H;S="length"in d?nt(d.length):S,D="omission"in d?hr(d.omission):D}i=_t(i);var U=i.length;if(te(i)){var Q=Ue(i);U=Q.length}if(S>=U)return i;var ee=S-tt(D);if(ee<1)return D;var ie=Q?Ui(Q,0,ee).join(""):i.slice(0,ee);if(H===e)return ie+D;if(Q&&(ee+=ie.length-ee),jd(H)){if(i.slice(ee).search(H)){var fe,ge=ie;for(H.global||(H=An(H.source,_t(Ii.exec(H))+"g")),H.lastIndex=0;fe=H.exec(ge);)var ye=fe.index;ie=ie.slice(0,ye===e?ee:ye)}}else if(i.indexOf(hr(H),ee)!=ee){var _e=ie.lastIndexOf(H);_e>-1&&(ie=ie.slice(0,_e))}return ie+D}function RO(i){return i=_t(i),i&&Gh.test(i)?i.replace(zs,Ee):i}var MO=fs(function(i,d,S){return i+(S?" ":"")+d.toUpperCase()}),Ud=iw("toUpperCase");function n0(i,d,S){return i=_t(i),d=S?e:d,d===e?oe(i)?Bt(i):ss(i):i.match(d)||[]}var r0=at(function(i,d){try{return jt(i,e,d)}catch(S){return Hd(S)?S:new Oe(S)}}),LO=gi(function(i,d){return Un(d,function(S){S=Xr(S),fi(i,S,Wd(i[S],i))}),i});function OO(i){var d=i==null?0:i.length,S=Pe();return i=d?Ft(i,function(D){if(typeof D[1]!="function")throw new Cn(y);return[S(D[0]),D[1]]}):[],at(function(D){for(var H=-1;++H<d;){var U=i[H];if(jt(U[0],this,D))return jt(U[1],this,D)}})}function DO(i){return sE(kr(i,c))}function Vd(i){return function(){return i}}function NO(i,d){return i==null||i!==i?d:i}var FO=sw(),WO=sw(!0);function ir(i){return i}function qd(i){return Nv(typeof i=="function"?i:kr(i,c))}function PO(i){return Wv(kr(i,c))}function HO(i,d){return Pv(i,kr(d,c))}var jO=at(function(i,d){return function(S){return ba(S,i,d)}}),BO=at(function(i,d){return function(S){return ba(i,S,d)}});function Gd(i,d,S){var D=$n(d),H=uc(d,D);S==null&&!(Yt(d)&&(H.length||!D.length))&&(S=d,d=i,i=this,H=uc(d,$n(d)));var U=!(Yt(S)&&"chain"in S)||!!S.chain,Q=yi(i);return Un(H,function(ee){var ie=d[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var ge=i(this.__wrapped__),ye=ge.__actions__=tr(this.__actions__);return ye.push({func:ie,args:arguments,thisArg:i}),ge.__chain__=fe,ge}return ie.apply(i,Pn([this.value()],arguments))})}),i}function zO(){return xn._===this&&(xn._=gI),this}function Yd(){}function UO(i){return i=nt(i),at(function(d){return Hv(d,i)})}var VO=_d(Ft),qO=_d(Fi),GO=_d(os);function i0(i){return Md(i)?ua(Xr(i)):CE(i)}function YO(i){return function(d){return i==null?e:Co(i,d)}}var KO=lw(),QO=lw(!0);function Kd(){return[]}function Qd(){return!1}function ZO(){return{}}function JO(){return""}function XO(){return!0}function e2(i,d){if(i=nt(i),i<1||i>P)return[];var S=q,D=jn(i,q);d=Pe(d),i-=q;for(var H=Jt(D,d);++S<i;)d(S);return H}function t2(i){return Ze(i)?Ft(i,Xr):dr(i)?[i]:tr(kw(_t(i)))}function n2(i){var d=++fI;return _t(i)+d}var r2=mc(function(i,d){return i+d},0),i2=Sd("ceil"),o2=mc(function(i,d){return i/d},1),s2=Sd("floor");function a2(i){return i&&i.length?cc(i,ir,hd):e}function l2(i,d){return i&&i.length?cc(i,Pe(d,2),hd):e}function c2(i){return ca(i,ir)}function u2(i,d){return ca(i,Pe(d,2))}function h2(i){return i&&i.length?cc(i,ir,gd):e}function d2(i,d){return i&&i.length?cc(i,Pe(d,2),gd):e}var f2=mc(function(i,d){return i*d},1),p2=Sd("round"),g2=mc(function(i,d){return i-d},0);function m2(i){return i&&i.length?Pi(i,ir):0}function y2(i,d){return i&&i.length?Pi(i,Pe(d,2)):0}return B.after=PM,B.ary=Dw,B.assign=SL,B.assignIn=Kw,B.assignInWith=Ic,B.assignWith=$L,B.at=TL,B.before=Nw,B.bind=Wd,B.bindAll=LO,B.bindKey=Fw,B.castArray=ZM,B.chain=Mw,B.chunk=sR,B.compact=aR,B.concat=lR,B.cond=OO,B.conforms=DO,B.constant=Vd,B.countBy=mM,B.create=IL,B.curry=Ww,B.curryRight=Pw,B.debounce=Hw,B.defaults=EL,B.defaultsDeep=RL,B.defer=HM,B.delay=jM,B.difference=cR,B.differenceBy=uR,B.differenceWith=hR,B.drop=dR,B.dropRight=fR,B.dropRightWhile=pR,B.dropWhile=gR,B.fill=mR,B.filter=vM,B.flatMap=xM,B.flatMapDeep=AM,B.flatMapDepth=CM,B.flatten=Tw,B.flattenDeep=yR,B.flattenDepth=vR,B.flip=BM,B.flow=FO,B.flowRight=WO,B.fromPairs=wR,B.functions=WL,B.functionsIn=PL,B.groupBy=kM,B.initial=xR,B.intersection=AR,B.intersectionBy=CR,B.intersectionWith=kR,B.invert=jL,B.invertBy=BL,B.invokeMap=SM,B.iteratee=qd,B.keyBy=$M,B.keys=$n,B.keysIn=rr,B.map=Cc,B.mapKeys=UL,B.mapValues=VL,B.matches=PO,B.matchesProperty=HO,B.memoize=_c,B.merge=qL,B.mergeWith=Qw,B.method=jO,B.methodOf=BO,B.mixin=Gd,B.negate=Sc,B.nthArg=UO,B.omit=GL,B.omitBy=YL,B.once=zM,B.orderBy=TM,B.over=VO,B.overArgs=UM,B.overEvery=qO,B.overSome=GO,B.partial=Pd,B.partialRight=jw,B.partition=IM,B.pick=KL,B.pickBy=Zw,B.property=i0,B.propertyOf=YO,B.pull=TR,B.pullAll=Ew,B.pullAllBy=IR,B.pullAllWith=ER,B.pullAt=RR,B.range=KO,B.rangeRight=QO,B.rearg=VM,B.reject=MM,B.remove=MR,B.rest=qM,B.reverse=Nd,B.sampleSize=OM,B.set=ZL,B.setWith=JL,B.shuffle=DM,B.slice=LR,B.sortBy=WM,B.sortedUniq=HR,B.sortedUniqBy=jR,B.split=xO,B.spread=GM,B.tail=BR,B.take=zR,B.takeRight=UR,B.takeRightWhile=VR,B.takeWhile=qR,B.tap=aM,B.throttle=YM,B.thru=Ac,B.toArray=qw,B.toPairs=Jw,B.toPairsIn=Xw,B.toPath=t2,B.toPlainObject=Yw,B.transform=XL,B.unary=KM,B.union=GR,B.unionBy=YR,B.unionWith=KR,B.uniq=QR,B.uniqBy=ZR,B.uniqWith=JR,B.unset=eO,B.unzip=Fd,B.unzipWith=Rw,B.update=tO,B.updateWith=nO,B.values=ms,B.valuesIn=rO,B.without=XR,B.words=n0,B.wrap=QM,B.xor=eM,B.xorBy=tM,B.xorWith=nM,B.zip=rM,B.zipObject=iM,B.zipObjectDeep=oM,B.zipWith=sM,B.entries=Jw,B.entriesIn=Xw,B.extend=Kw,B.extendWith=Ic,Gd(B,B),B.add=r2,B.attempt=r0,B.camelCase=aO,B.capitalize=e0,B.ceil=i2,B.clamp=iO,B.clone=JM,B.cloneDeep=eL,B.cloneDeepWith=tL,B.cloneWith=XM,B.conformsTo=nL,B.deburr=t0,B.defaultTo=NO,B.divide=o2,B.endsWith=lO,B.eq=Nr,B.escape=cO,B.escapeRegExp=uO,B.every=yM,B.find=wM,B.findIndex=Sw,B.findKey=ML,B.findLast=bM,B.findLastIndex=$w,B.findLastKey=LL,B.floor=s2,B.forEach=Lw,B.forEachRight=Ow,B.forIn=OL,B.forInRight=DL,B.forOwn=NL,B.forOwnRight=FL,B.get=Bd,B.gt=rL,B.gte=iL,B.has=HL,B.hasIn=zd,B.head=Iw,B.identity=ir,B.includes=_M,B.indexOf=bR,B.inRange=oO,B.invoke=zL,B.isArguments=So,B.isArray=Ze,B.isArrayBuffer=oL,B.isArrayLike=nr,B.isArrayLikeObject=on,B.isBoolean=sL,B.isBuffer=Vi,B.isDate=aL,B.isElement=lL,B.isEmpty=cL,B.isEqual=uL,B.isEqualWith=hL,B.isError=Hd,B.isFinite=dL,B.isFunction=yi,B.isInteger=Bw,B.isLength=$c,B.isMap=zw,B.isMatch=fL,B.isMatchWith=pL,B.isNaN=gL,B.isNative=mL,B.isNil=vL,B.isNull=yL,B.isNumber=Uw,B.isObject=Yt,B.isObjectLike=Xt,B.isPlainObject=Sa,B.isRegExp=jd,B.isSafeInteger=wL,B.isSet=Vw,B.isString=Tc,B.isSymbol=dr,B.isTypedArray=gs,B.isUndefined=bL,B.isWeakMap=xL,B.isWeakSet=AL,B.join=_R,B.kebabCase=hO,B.last=Sr,B.lastIndexOf=SR,B.lowerCase=dO,B.lowerFirst=fO,B.lt=CL,B.lte=kL,B.max=a2,B.maxBy=l2,B.mean=c2,B.meanBy=u2,B.min=h2,B.minBy=d2,B.stubArray=Kd,B.stubFalse=Qd,B.stubObject=ZO,B.stubString=JO,B.stubTrue=XO,B.multiply=f2,B.nth=$R,B.noConflict=zO,B.noop=Yd,B.now=kc,B.pad=pO,B.padEnd=gO,B.padStart=mO,B.parseInt=yO,B.random=sO,B.reduce=EM,B.reduceRight=RM,B.repeat=vO,B.replace=wO,B.result=QL,B.round=p2,B.runInContext=ne,B.sample=LM,B.size=NM,B.snakeCase=bO,B.some=FM,B.sortedIndex=OR,B.sortedIndexBy=DR,B.sortedIndexOf=NR,B.sortedLastIndex=FR,B.sortedLastIndexBy=WR,B.sortedLastIndexOf=PR,B.startCase=AO,B.startsWith=CO,B.subtract=g2,B.sum=m2,B.sumBy=y2,B.template=kO,B.times=e2,B.toFinite=vi,B.toInteger=nt,B.toLength=Gw,B.toLower=_O,B.toNumber=$r,B.toSafeInteger=_L,B.toString=_t,B.toUpper=SO,B.trim=$O,B.trimEnd=TO,B.trimStart=IO,B.truncate=EO,B.unescape=RO,B.uniqueId=n2,B.upperCase=MO,B.upperFirst=Ud,B.each=Lw,B.eachRight=Ow,B.first=Iw,Gd(B,function(){var i={};return Zr(B,function(d,S){Tt.call(B.prototype,S)||(i[S]=d)}),i}(),{chain:!1}),B.VERSION=r,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){B[i].placeholder=B}),Un(["drop","take"],function(i,d){mt.prototype[i]=function(S){S=S===e?1:kn(nt(S),0);var D=this.__filtered__&&!d?new mt(this):this.clone();return D.__filtered__?D.__takeCount__=jn(S,D.__takeCount__):D.__views__.push({size:jn(S,q),type:i+(D.__dir__<0?"Right":"")}),D},mt.prototype[i+"Right"]=function(S){return this.reverse()[i](S).reverse()}}),Un(["filter","map","takeWhile"],function(i,d){var S=d+1,D=S==k||S==O;mt.prototype[i]=function(H){var U=this.clone();return U.__iteratees__.push({iteratee:Pe(H,3),type:S}),U.__filtered__=U.__filtered__||D,U}}),Un(["head","last"],function(i,d){var S="take"+(d?"Right":"");mt.prototype[i]=function(){return this[S](1).value()[0]}}),Un(["initial","tail"],function(i,d){var S="drop"+(d?"":"Right");mt.prototype[i]=function(){return this.__filtered__?new mt(this):this[S](1)}}),mt.prototype.compact=function(){return this.filter(ir)},mt.prototype.find=function(i){return this.filter(i).head()},mt.prototype.findLast=function(i){return this.reverse().find(i)},mt.prototype.invokeMap=at(function(i,d){return typeof i=="function"?new mt(this):this.map(function(S){return ba(S,i,d)})}),mt.prototype.reject=function(i){return this.filter(Sc(Pe(i)))},mt.prototype.slice=function(i,d){i=nt(i);var S=this;return S.__filtered__&&(i>0||d<0)?new mt(S):(i<0?S=S.takeRight(-i):i&&(S=S.drop(i)),d!==e&&(d=nt(d),S=d<0?S.dropRight(-d):S.take(d-i)),S)},mt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},mt.prototype.toArray=function(){return this.take(q)},Zr(mt.prototype,function(i,d){var S=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),H=B[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);H&&(B.prototype[d]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof mt,fe=ee[0],ge=ie||Ze(Q),ye=function(pt){var yt=H.apply(B,Pn([pt],ee));return D&&_e?yt[0]:yt};ge&&S&&typeof fe=="function"&&fe.length!=1&&(ie=ge=!1);var _e=this.__chain__,Re=!!this.__actions__.length,je=U&&!_e,it=ie&&!Re;if(!U&&ge){Q=it?Q:new mt(this);var Be=i.apply(Q,ee);return Be.__actions__.push({func:Ac,args:[ye],thisArg:e}),new Cr(Be,_e)}return je&&it?i.apply(this,ee):(Be=this.thru(ye),je?D?Be.value()[0]:Be.value():Be)})}),Un(["pop","push","shift","sort","splice","unshift"],function(i){var d=ur[i],S=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);B.prototype[i]=function(){var H=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Ze(U)?U:[],H)}return this[S](function(Q){return d.apply(Ze(Q)?Q:[],H)})}}),Zr(mt.prototype,function(i,d){var S=B[d];if(S){var D=S.name+"";Tt.call(us,D)||(us[D]=[]),us[D].push({name:d,func:S})}}),us[gc(e,w).name]=[{name:"wrapper",func:e}],mt.prototype.clone=RI,mt.prototype.reverse=MI,mt.prototype.value=LI,B.prototype.at=lM,B.prototype.chain=cM,B.prototype.commit=uM,B.prototype.next=hM,B.prototype.plant=fM,B.prototype.reverse=pM,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=gM,B.prototype.first=B.prototype.head,fa&&(B.prototype[fa]=dM),B},Ot=Lt();Sn?((Sn.exports=Ot)._=Ot,br._=Ot):xn._=Ot}).call(xA)}(Ka,Ka.exports)),Ka.exports}var CA=AA();En("T",Ea(CA)).debounce(function(){this.rebuildDisplayText()},300);var Kp={exports:{}},Qp;function kA(){return Qp||(Qp=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Kp)),Kp.exports}kA();const _A=!0,gn="u-",SA="uplot",$A=gn+"hz",TA=gn+"vt",IA=gn+"title",EA=gn+"wrap",RA=gn+"under",MA=gn+"over",LA=gn+"axis",eo=gn+"off",OA=gn+"select",DA=gn+"cursor-x",NA=gn+"cursor-y",FA=gn+"cursor-pt",WA=gn+"legend",PA=gn+"live",HA=gn+"inline",jA=gn+"series",BA=gn+"marker",Zp=gn+"label",zA=gn+"value",Ts="width",Is="height",Es="top",Jp="bottom",Do="left",cu="right",uu="#000",Xp=uu+"0",eg="mousemove",tg="mousedown",hu="mouseup",ng="mouseenter",rg="mouseleave",ig="dblclick",UA="resize",VA="scroll",og="change",Qa="dppxchange",du="--",No=typeof window<"u",fu=No?document:null,Fo=No?window:null,qA=No?navigator:null;let bt,Za;function pu(){let n=devicePixelRatio;bt!=n&&(bt=n,Za&&yu(og,Za,pu),Za=matchMedia(`(min-resolution: ${bt-.001}dppx) and (max-resolution: ${bt+.001}dppx)`),to(og,Za,pu),Fo.dispatchEvent(new CustomEvent(Qa)))}function sr(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function gu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Wt(n,t,e){n.style[t]=e+"px"}function Er(n,t,e,r){let f=fu.createElement(n);return t!=null&&sr(f,t),e!=null&&e.insertBefore(f,r),f}function mr(n,t){return Er("div",n,t)}const sg=new WeakMap;function Pr(n,t,e,r,f){let p="translate("+t+"px,"+e+"px)",y=sg.get(n);p!=y&&(n.style.transform=p,sg.set(n,p),t<0||e<0||t>r||e>f?sr(n,eo):gu(n,eo))}const ag=new WeakMap;function lg(n,t,e){let r=t+e,f=ag.get(n);r!=f&&(ag.set(n,r),n.style.background=t,n.style.borderColor=e)}const cg=new WeakMap;function ug(n,t,e,r){let f=t+""+e,p=cg.get(n);f!=p&&(cg.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 mu={passive:!0},GA={...mu,capture:!0};function to(n,t,e,r){t.addEventListener(n,e,r?GA:mu)}function yu(n,t,e,r){t.removeEventListener(n,e,mu)}No&&pu();function Rr(n,t,e,r){let f;e=e||0,r=r||t.length-1;let p=r<=2147483647;for(;r-e>1;)f=p?e+r>>1:lr((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Wo(n,t,e,r){for(let f=r==1?t:e;f>=t&&f<=e;f+=r)if(n[f]!=null)return f;return-1}function YA(n,t,e,r){let f=zt,p=-1/0;if(r==1)f=n[t],p=n[e];else if(r==-1)f=n[e],p=n[t];else for(let y=t;y<=e;y++){let v=n[y];v!=null&&(v<f&&(f=v),v>p&&(p=v))}return[f,p]}function KA(n,t,e){let r=zt,f=-1/0;for(let p=t;p<=e;p++){let y=n[p];y!=null&&y>0&&(y<r&&(r=y),y>f&&(f=y))}return[r,f]}function Ja(n,t,e,r){let f=fg(n),p=fg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let y=e==10?ni:pg,v=f==1?lr:yr,h=p==1?yr:lr,g=v(y(mn(n))),s=h(y(mn(t))),c=Po(e,g),a=Po(e,s);return e==10&&(g<0&&(c=Et(c,-g)),s<0&&(a=Et(a,-s))),r||e==2?(n=c*f,t=a*p):(n=bg(n,c),t=tl(t,a)),[n,t]}function vu(n,t,e,r){let f=Ja(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const wu=.1,hg={mode:3,pad:wu},Rs={pad:0,soft:null,mode:0},QA={min:Rs,max:Rs};function Xa(n,t,e,r){return nl(e)?dg(n,t,e):(Rs.pad=e,Rs.soft=r?0:null,Rs.mode=r?3:0,dg(n,t,QA))}function wt(n,t){return n??t}function ZA(n,t,e){for(t=wt(t,0),e=wt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function dg(n,t,e){let r=e.min,f=e.max,p=wt(r.pad,0),y=wt(f.pad,0),v=wt(r.hard,-1/0),h=wt(f.hard,zt),g=wt(r.soft,zt),s=wt(f.soft,-1/0),c=wt(r.mode,0),a=wt(f.mode,0),l=t-n,o=ni(l),u=Ln(mn(n),mn(t)),m=ni(u),w=mn(m-o);(l<1e-24||w>10)&&(l=0,(n==0||t==0)&&(l=1e-24,c==2&&g!=zt&&(p=0),a==2&&s!=-1/0&&(y=0)));let A=l||u||1e3,R=ni(A),$=Po(10,lr(R)),C=A*(l==0?n==0?.1:1:p),b=Et(bg(n-C,$/10),24),T=n>=g&&(c==1||c==3&&b<=g||c==2&&b>=g)?g:zt,E=Ln(v,b<T&&n>=T?T:vr(T,b)),L=A*(l==0?t==0?.1:1:y),I=Et(tl(t+L,$/10),24),N=t<=s&&(a==1||a==3&&I>=s||a==2&&I<=s)?s:-1/0,_=vr(h,I>N&&t<=N?N:Ln(N,I));return E==_&&E==0&&(_=100),[E,_]}const JA=new Intl.NumberFormat(No?qA.language:"en-US"),bu=n=>JA.format(n),ar=Math,el=ar.PI,mn=ar.abs,lr=ar.floor,yn=ar.round,yr=ar.ceil,vr=ar.min,Ln=ar.max,Po=ar.pow,fg=ar.sign,ni=ar.log10,pg=ar.log2,XA=(n,t=1)=>ar.sinh(n)*t,xu=(n,t=1)=>ar.asinh(n/t),zt=1/0;function gg(n){return(ni((n^n>>31)-(n>>31))|0)+1}function Au(n,t,e){return vr(Ln(n,t),e)}function gt(n){return typeof n=="function"?n:()=>n}const eC=()=>{},mg=n=>n,yg=(n,t)=>t,tC=n=>null,vg=n=>!0,wg=(n,t)=>n==t,nC=/\.\d*?(?=9{6,}|0{6,})/gm,no=n=>{if(Ag(n)||ki.has(n))return n;const t=`${n}`,e=t.match(nC);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,p]=t.split("e");return+`${no(f)}e${p}`}return Et(n,r)};function ro(n,t){return no(Et(no(n/t))*t)}function tl(n,t){return no(yr(no(n/t))*t)}function bg(n,t){return no(lr(no(n/t))*t)}function Et(n,t=0){if(Ag(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return yn(r)/e}const ki=new Map;function xg(n){return((""+n).split(".")[1]||"").length}function Ms(n,t,e,r){let f=[],p=r.map(xg);for(let y=t;y<e;y++){let v=mn(y),h=Et(Po(n,y),v);for(let g=0;g<r.length;g++){let s=n==10?+`${r[g]}e${y}`:r[g]*h,c=(y>=0?0:v)+(y>=p[g]?0:p[g]),a=n==10?s:Et(s,c);f.push(a),ki.set(a,c)}}return f}const Ls={},Cu=[],Ho=[null,null],_i=Array.isArray,Ag=Number.isInteger,rC=n=>n===void 0;function Cg(n){return typeof n=="string"}function nl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function iC(n){return n!=null&&typeof n=="object"}const oC=Object.getPrototypeOf(Uint8Array),kg="__proto__";function jo(n,t=nl){let e;if(_i(n)){let r=n.find(f=>f!=null);if(_i(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=jo(n[f],t)}else e=n.slice()}else if(n instanceof oC)e=n.slice();else if(t(n)){e={};for(let r in n)r!=kg&&(e[r]=jo(n[r],t))}else e=n;return e}function ln(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=kg&&(nl(n[f])?ln(n[f],jo(r[f])):n[f]=jo(r[f]))}return n}const sC=0,aC=1,lC=2;function cC(n,t,e){for(let r=0,f,p=-1;r<t.length;r++){let y=t[r];if(y>p){for(f=y-1;f>=0&&n[f]==null;)n[f--]=null;for(f=y+1;f<e&&n[f]==null;)n[p=f++]=null}}}function uC(n,t){if(fC(n)){let y=n[0].slice();for(let v=1;v<n.length;v++)y.push(...n[v].slice(1));return pC(y[0])||(y=dC(y)),y}let e=new Set;for(let y=0;y<n.length;y++){let v=n[y][0],h=v.length;for(let g=0;g<h;g++)e.add(v[g])}let r=[Array.from(e).sort((y,v)=>y-v)],f=r[0].length,p=new Map;for(let y=0;y<f;y++)p.set(r[0][y],y);for(let y=0;y<n.length;y++){let v=n[y],h=v[0];for(let g=1;g<v.length;g++){let s=v[g],c=Array(f).fill(void 0),a=t?t[y][g]:aC,l=[];for(let o=0;o<s.length;o++){let u=s[o],m=p.get(h[o]);u===null?a!=sC&&(c[m]=u,a==lC&&l.push(m)):c[m]=u}cC(c,l,f),r.push(c)}}return r}const hC=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function dC(n){let t=n[0],e=t.length,r=Array(e);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,y)=>t[p]-t[y]);let f=[];for(let p=0;p<n.length;p++){let y=n[p],v=Array(e);for(let h=0;h<e;h++)v[h]=y[r[h]];f.push(v)}return f}function fC(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let p=0;p<e;p++)if(f[p]!=t[p])return!1}}return!0}function pC(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const p=Ln(1,lr((f-r+1)/t));for(let y=n[r],v=r+p;v<=f;v+=p){const h=n[v];if(h!=null){if(h<=y)return!1;y=h}}return!0}const _g=["January","February","March","April","May","June","July","August","September","October","November","December"],Sg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function $g(n){return n.slice(0,3)}const gC=Sg.map($g),mC=_g.map($g),yC={MMMM:_g,MMM:mC,WWWW:Sg,WWW:gC};function Os(n){return(n<10?"0":"")+n}function vC(n){return(n<10?"00":n<100?"0":"")+n}const wC={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=>Os(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Os(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Os(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=>Os(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Os(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>vC(n.getMilliseconds())};function ku(n,t){t=t||yC;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?wC[f[1]]:f[0]);return p=>{let y="";for(let v=0;v<e.length;v++)y+=typeof e[v]=="string"?e[v]:e[v](p,t);return y}}const bC=new Intl.DateTimeFormat().resolvedOptions().timeZone;function xC(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==bC?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const Tg=n=>n%1==0,rl=[1,2,2.5,5],AC=Ms(10,-32,0,rl),Ig=Ms(10,0,32,rl),CC=Ig.filter(Tg),io=AC.concat(Ig),_u=`
1408
- `,Eg="{YYYY}",Rg=_u+Eg,Mg="{M}/{D}",Ds=_u+Mg,il=Ds+"/{YY}",Lg="{aa}",kC="{h}:{mm}",Bo=kC+Lg,Og=_u+Bo,Dg=":{ss}",At=null;function Ng(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,p=f*30,y=f*365,v=(n==1?Ms(10,0,3,rl).filter(Tg):Ms(10,-3,0,rl)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,p,p*2,p*3,p*4,p*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const h=[[y,Eg,At,At,At,At,At,At,1],[f*28,"{MMM}",Rg,At,At,At,At,At,1],[f,Mg,Rg,At,At,At,At,At,1],[r,"{h}"+Lg,il,At,Ds,At,At,At,1],[e,Bo,il,At,Ds,At,At,At,1],[t,Dg,il+" "+Bo,At,Ds+" "+Bo,At,Og,At,1],[n,Dg+".{fff}",il+" "+Bo,At,Ds+" "+Bo,At,Og,At,1]];function g(s){return(c,a,l,o,u,m)=>{let w=[],A=u>=y,R=u>=p&&u<y,$=s(l),C=Et($*n,3),b=Su($.getFullYear(),A?0:$.getMonth(),R||A?1:$.getDate()),T=Et(b*n,3);if(R||A){let E=R?u/p:0,L=A?u/y:0,I=C==T?C:Et(Su(b.getFullYear()+L,b.getMonth()+E,1)*n,3),N=new Date(yn(I/n)),_=N.getFullYear(),x=N.getMonth();for(let k=0;I<=o;k++){let M=Su(_+L*k,x+E*k,1),O=M-s(Et(M*n,3));I=Et((+M+O)*n,3),I<=o&&w.push(I)}}else{let E=u>=f?f:u,L=lr(l)-lr(C),I=T+L+tl(C-T,E);w.push(I);let N=s(I),_=N.getHours()+N.getMinutes()/e+N.getSeconds()/r,x=u/r,k=c.axes[a]._space,M=m/k;for(;I=Et(I+u,n==1?0:3),!(I>o);)if(x>1){let O=lr(Et(_+x,6))%24,F=s(I).getHours()-O;F>1&&(F=-1),I-=F*r,_=(_+x)%24;let P=w[w.length-1];Et((I-P)/u,3)*M>=.7&&w.push(I)}else w.push(I)}return w}}return[v,h,g]}const[_C,SC,$C]=Ng(1),[TC,IC,EC]=Ng(.001);Ms(2,-53,53,[1]);function Fg(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 Wg(n,t){return(e,r,f,p,y)=>{let v=t.find(o=>y>=o[0])||t[t.length-1],h,g,s,c,a,l;return r.map(o=>{let u=n(o),m=u.getFullYear(),w=u.getMonth(),A=u.getDate(),R=u.getHours(),$=u.getMinutes(),C=u.getSeconds(),b=m!=h&&v[2]||w!=g&&v[3]||A!=s&&v[4]||R!=c&&v[5]||$!=a&&v[6]||C!=l&&v[7]||v[1];return h=m,g=w,s=A,c=R,a=$,l=C,b(u)})}}function RC(n,t){let e=ku(t);return(r,f,p,y,v)=>f.map(h=>e(n(h)))}function Su(n,t,e){return new Date(n,t,e)}function Pg(n,t){return t(n)}const MC="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Hg(n,t){return(e,r,f,p)=>p==null?du:t(n(r))}function LC(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function OC(n,t){return n.series[t].fill(n,t)}const DC={show:!0,live:!0,isolate:!1,mount:eC,markers:{show:!0,width:2,stroke:LC,fill:OC,dash:"solid"},idx:null,idxs:null,values:[]};function NC(n,t){let e=n.cursor.points,r=mr(),f=e.size(n,t);Wt(r,Ts,f),Wt(r,Is,f);let p=f/-2;Wt(r,"marginLeft",p),Wt(r,"marginTop",p);let y=e.width(n,t,f);return y&&Wt(r,"borderWidth",y),r}function FC(n,t){let e=n.series[t].points;return e._fill||e._stroke}function WC(n,t){let e=n.series[t].points;return e._stroke||e._fill}function PC(n,t){return n.series[t].points.size}const $u=[0,0];function HC(n,t,e){return $u[0]=t,$u[1]=e,$u}function ol(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function Tu(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const jC={show:!0,x:!0,y:!0,lock:!1,move:HC,points:{one:!1,show:NC,size:PC,width:0,stroke:WC,fill:FC},bind:{mousedown:ol,mouseup:ol,click:ol,dblclick:ol,mousemove:Tu,mouseleave:Tu,mouseenter:Tu},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},jg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Iu=ln({},jg,{filter:yg}),Bg=ln({},Iu,{size:10}),zg=ln({},jg,{show:!1}),Eu='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"',Ug="bold "+Eu,Vg=1.5,qg={show:!0,scale:"x",stroke:uu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ug,side:2,grid:Iu,ticks:Bg,border:zg,font:Eu,lineGap:Vg,rotate:0},BC="Value",zC="Time",Gg={show:!0,scale:"x",auto:!1,sorted:1,min:zt,max:-1/0,idxs:[]};function UC(n,t,e,r,f){return t.map(p=>p==null?"":bu(p))}function VC(n,t,e,r,f,p,y){let v=[],h=ki.get(f)||0;e=y?e:Et(tl(e,f),h);for(let g=e;g<=r;g=Et(g+f,h))v.push(Object.is(g,-0)?0:g);return v}function Ru(n,t,e,r,f,p,y){const v=[],h=n.scales[n.axes[t].scale].log,g=h==10?ni:pg,s=lr(g(e));f=Po(h,s),h==10&&(f=io[Rr(f,io)]);let c=e,a=f*h;h==10&&(a=io[Rr(a,io)]);do v.push(c),c=c+f,h==10&&!ki.has(c)&&(c=Et(c,ki.get(f))),c>=a&&(f=c,a=f*h,h==10&&(a=io[Rr(a,io)]));while(c<=r);return v}function qC(n,t,e,r,f,p,y){let v=n.scales[n.axes[t].scale].asinh,h=r>v?Ru(n,t,Ln(v,e),r,f):[v],g=r>=0&&e<=0?[0]:[];return(e<-v?Ru(n,t,Ln(v,-r),-e,f):[v]).reverse().map(s=>-s).concat(g,h)}const Yg=/./,GC=/[12357]/,YC=/[125]/,Kg=/1/,Mu=(n,t,e,r)=>n.map((f,p)=>t==4&&f==0||p%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function KC(n,t,e,r,f){let p=n.axes[e],y=p.scale,v=n.scales[y],h=n.valToPos,g=p._space,s=h(10,y),c=h(9,y)-s>=g?Yg:h(7,y)-s>=g?GC:h(5,y)-s>=g?YC:Kg;if(c==Kg){let a=mn(h(1,y)-s);if(a<g)return Mu(t.slice().reverse(),v.distr,c,yr(g/a)).reverse()}return Mu(t,v.distr,c,1)}function QC(n,t,e,r,f){let p=n.axes[e],y=p.scale,v=p._space,h=n.valToPos,g=mn(h(1,y)-h(2,y));return g<v?Mu(t.slice().reverse(),3,Yg,yr(v/g)).reverse():t}function ZC(n,t,e,r){return r==null?du:t==null?"":bu(t)}const Qg={show:!0,scale:"y",stroke:uu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ug,side:3,grid:Iu,ticks:Bg,border:zg,font:Eu,lineGap:Vg,rotate:0};function JC(n,t){let e=3+(n||1)*2;return Et(e*t,3)}function XC(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],p=n.valToPos(f[r[0]],e,!0),y=n.valToPos(f[r[1]],e,!0),v=mn(y-p),h=n.series[t],g=v/(h.points.space*bt);return r[1]-r[0]<=g}const Zg={scale:null,auto:!0,sorted:0,min:zt,max:-1/0},Jg=(n,t,e,r,f)=>f,Xg={show:!0,auto:!0,sorted:0,gaps:Jg,alpha:1,facets:[ln({},Zg,{scale:"x"}),ln({},Zg,{scale:"y"})]},em={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Jg,alpha:1,points:{show:XC,filter:null},values:null,min:zt,max:-1/0,idxs:[],path:null,clip:null};function ek(n,t,e,r,f){return e/10}const tm={time:_A,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},tk=ln({},tm,{time:!1,ori:1}),nm={};function rm(n,t){let e=nm[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,p,y,v,h,g){for(let s=0;s<e.plots.length;s++)e.plots[s]!=f&&e.plots[s].pub(r,f,p,y,v,h,g)}},n!=null&&(nm[n]=e)),e}const zo=1,Lu=2;function oo(n,t,e){const r=n.mode,f=n.series[t],p=r==2?n._data[t]:n._data,y=n.scales,v=n.bbox;let h=p[0],g=r==2?p[1]:p[t],s=r==2?y[f.facets[0].scale]:y[n.series[0].scale],c=r==2?y[f.facets[1].scale]:y[f.scale],a=v.left,l=v.top,o=v.width,u=v.height,m=n.valToPosH,w=n.valToPosV;return s.ori==0?e(f,h,g,s,c,m,w,a,l,o,u,al,Uo,cl,sm,lm):e(f,h,g,s,c,w,m,l,a,u,o,ll,Vo,Nu,am,cm)}function Ou(n,t){let e=0,r=0,f=wt(n.bands,Cu);for(let p=0;p<f.length;p++){let y=f[p];y.series[0]==t?e=y.dir:y.series[1]==t&&(y.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function nk(n,t,e,r,f){let p=n.mode,y=n.series[t],v=p==2?y.facets[1].scale:y.scale,h=n.scales[v];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function ri(n,t,e,r,f,p){return oo(n,t,(y,v,h,g,s,c,a,l,o,u,m)=>{let w=y.pxRound;const A=g.dir*(g.ori==0?1:-1),R=g.ori==0?Uo:Vo;let $,C;A==1?($=e,C=r):($=r,C=e);let b=w(c(v[$],g,u,l)),T=w(a(h[$],s,m,o)),E=w(c(v[C],g,u,l)),L=w(a(p==1?s.max:s.min,s,m,o)),I=new Path2D(f);return R(I,E,L),R(I,b,L),R(I,b,T),I})}function sl(n,t,e,r,f,p){let y=null;if(n.length>0){y=new Path2D;const v=t==0?cl:Nu;let h=e;for(let c=0;c<n.length;c++){let a=n[c];if(a[1]>a[0]){let l=a[0]-h;l>0&&v(y,h,r,l,r+p),h=a[1]}}let g=e+f-h,s=10;g>0&&v(y,h,r-s/2,g,r+p+s)}return y}function rk(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function Du(n,t,e,r,f,p,y){let v=[],h=n.length;for(let g=f==1?e:r;g>=e&&g<=r;g+=f)if(t[g]===null){let s=g,c=g;if(f==1)for(;++g<=r&&t[g]===null;)c=g;else for(;--g>=e&&t[g]===null;)c=g;let a=p(n[s]),l=c==s?a:p(n[c]),o=s-f;a=y<=0&&o>=0&&o<h?p(n[o]):a;let u=c+f;l=y>=0&&u>=0&&u<h?p(n[u]):l,l>=a&&v.push([a,l])}return v}function im(n){return n==0?mg:n==1?yn:t=>ro(t,n)}function om(n){let t=n==0?al:ll,e=n==0?(f,p,y,v,h,g)=>{f.arcTo(p,y,v,h,g)}:(f,p,y,v,h,g)=>{f.arcTo(y,p,h,v,g)},r=n==0?(f,p,y,v,h)=>{f.rect(p,y,v,h)}:(f,p,y,v,h)=>{f.rect(y,p,h,v)};return(f,p,y,v,h,g=0,s=0)=>{g==0&&s==0?r(f,p,y,v,h):(g=vr(g,v/2,h/2),s=vr(s,v/2,h/2),t(f,p+g,y),e(f,p+v,y,p+v,y+h,g),e(f,p+v,y+h,p,y+h,s),e(f,p,y+h,p,y,s),e(f,p,y,p+v,y,g),f.closePath())}}const al=(n,t,e)=>{n.moveTo(t,e)},ll=(n,t,e)=>{n.moveTo(e,t)},Uo=(n,t,e)=>{n.lineTo(t,e)},Vo=(n,t,e)=>{n.lineTo(e,t)},cl=om(0),Nu=om(1),sm=(n,t,e,r,f,p)=>{n.arc(t,e,r,f,p)},am=(n,t,e,r,f,p)=>{n.arc(e,t,r,f,p)},lm=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(t,e,r,f,p,y)},cm=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(e,t,f,r,y,p)};function um(n){return(t,e,r,f,p)=>oo(t,e,(y,v,h,g,s,c,a,l,o,u,m)=>{let{pxRound:w,points:A}=y,R,$;g.ori==0?(R=al,$=sm):(R=ll,$=am);const C=Et(A.width*bt,3);let b=(A.size-A.width)/2*bt,T=Et(b*2,3),E=new Path2D,L=new Path2D,{left:I,top:N,width:_,height:x}=t.bbox;cl(L,I-T,N-T,_+T*2,x+T*2);const k=M=>{if(h[M]!=null){let O=w(c(v[M],g,u,l)),F=w(a(h[M],s,m,o));R(E,O+b,F),$(E,O,F,b,0,el*2)}};if(p)p.forEach(k);else for(let M=r;M<=f;M++)k(M);return{stroke:C>0?E:null,fill:E,clip:L,flags:zo|Lu}})}function hm(n){return(t,e,r,f,p,y)=>{r!=f&&(p!=r&&y!=r&&n(t,e,r),p!=f&&y!=f&&n(t,e,f),n(t,e,y))}}const ik=hm(Uo),ok=hm(Vo);function dm(n){const t=wt(n==null?void 0:n.alignGaps,0);return(e,r,f,p)=>oo(e,r,(y,v,h,g,s,c,a,l,o,u,m)=>{let w=y.pxRound,A=X=>w(c(X,g,u,l)),R=X=>w(a(X,s,m,o)),$,C;g.ori==0?($=Uo,C=ik):($=Vo,C=ok);const b=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:zo},E=T.stroke;let L=zt,I=-1/0,N,_,x,k=A(v[b==1?f:p]),M=Wo(h,f,p,1*b),O=Wo(h,f,p,-1*b),F=A(v[M]),P=A(v[O]),z=!1;for(let X=b==1?f:p;X>=f&&X<=p;X+=b){let G=A(v[X]),Z=h[X];G==k?Z!=null?(_=R(Z),L==zt&&($(E,G,_),N=_),L=vr(_,L),I=Ln(_,I)):Z===null&&(z=!0):(L!=zt&&(C(E,k,L,I,N,_),x=k),Z!=null?(_=R(Z),$(E,G,_),L=I=N=_):(L=zt,I=-1/0,Z===null&&(z=!0)),k=G)}L!=zt&&L!=I&&x!=k&&C(E,k,L,I,N,_);let[V,q]=Ou(e,r);if(y.fill!=null||V!=0){let X=T.fill=new Path2D(E),G=y.fillTo(e,r,y.min,y.max,V),Z=R(G);$(X,P,Z),$(X,F,Z)}if(!y.spanGaps){let X=[];z&&X.push(...Du(v,h,f,p,b,A,t)),T.gaps=X=y.gaps(e,r,f,p,X),T.clip=sl(X,g.ori,l,o,u,m)}return q!=0&&(T.band=q==2?[ri(e,r,f,p,E,-1),ri(e,r,f,p,E,1)]:ri(e,r,f,p,E,q)),T})}function sk(n){const t=wt(n.align,1),e=wt(n.ascDesc,!1),r=wt(n.alignGaps,0),f=wt(n.extend,!1);return(p,y,v,h)=>oo(p,y,(g,s,c,a,l,o,u,m,w,A,R)=>{let $=g.pxRound,{left:C,width:b}=p.bbox,T=V=>$(o(V,a,A,m)),E=V=>$(u(V,l,R,w)),L=a.ori==0?Uo:Vo;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:zo},N=I.stroke,_=a.dir*(a.ori==0?1:-1);v=Wo(c,v,h,1),h=Wo(c,v,h,-1);let x=E(c[_==1?v:h]),k=T(s[_==1?v:h]),M=k,O=k;f&&t==-1&&(O=C,L(N,O,x)),L(N,k,x);for(let V=_==1?v:h;V>=v&&V<=h;V+=_){let q=c[V];if(q==null)continue;let X=T(s[V]),G=E(q);t==1?L(N,X,x):L(N,M,G),L(N,X,G),x=G,M=X}let F=M;f&&t==1&&(F=C+b,L(N,F,x));let[P,z]=Ou(p,y);if(g.fill!=null||P!=0){let V=I.fill=new Path2D(N),q=g.fillTo(p,y,g.min,g.max,P),X=E(q);L(V,F,X),L(V,O,X)}if(!g.spanGaps){let V=[];V.push(...Du(s,c,v,h,_,T,r));let q=g.width*bt/2,X=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),I.gaps=V=g.gaps(p,y,v,h,V),I.clip=sl(V,a.ori,m,w,A,R)}return z!=0&&(I.band=z==2?[ri(p,y,v,h,N,-1),ri(p,y,v,h,N,1)]:ri(p,y,v,h,N,z)),I})}function fm(n,t,e,r,f,p,y=zt){if(n.length>1){let v=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(v!=null){let s=mn(n[h]-n[v]);s<g&&(g=s,y=mn(e(n[h],r,f,p)-e(n[v],r,f,p)))}v=h}}return y}function ak(n){n=n||Ls;const t=wt(n.size,[.6,zt,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const p=gt(f),y=1-t[0],v=wt(t[1],zt),h=wt(t[2],1),g=wt(n.disp,Ls),s=wt(n.each,l=>{}),{fill:c,stroke:a}=g;return(l,o,u,m)=>oo(l,o,(w,A,R,$,C,b,T,E,L,I,N)=>{let _=w.pxRound,x=e,k=r*bt,M=v*bt,O=h*bt,F,P;$.ori==0?[F,P]=p(l,o):[P,F]=p(l,o);const z=$.dir*($.ori==0?1:-1);let V=$.ori==0?cl:Nu,q=$.ori==0?s:(He,ce,Se,Ie,ze,qe,ut)=>{s(He,ce,Se,ze,Ie,ut,qe)},X=wt(l.bands,Cu).find(He=>He.series[0]==o),G=X!=null?X.dir:0,Z=w.fillTo(l,o,w.min,w.max,G),re=_(T(Z,C,N,L)),J,ae,me,ve=I,pe=_(w.width*bt),Ae=!1,rt=null,Dt=null,ct=null,ft=null;c!=null&&(pe==0||a!=null)&&(Ae=!0,rt=c.values(l,o,u,m),Dt=new Map,new Set(rt).forEach(He=>{He!=null&&Dt.set(He,new Path2D)}),pe>0&&(ct=a.values(l,o,u,m),ft=new Map,new Set(ct).forEach(He=>{He!=null&&ft.set(He,new Path2D)})));let{x0:rn,size:Rt}=g;if(rn!=null&&Rt!=null){x=1,A=rn.values(l,o,u,m),rn.unit==2&&(A=A.map(ce=>l.posToVal(E+ce*I,$.key,!0)));let He=Rt.values(l,o,u,m);Rt.unit==2?ae=He[0]*I:ae=b(He[0],$,I,E)-b(0,$,I,E),ve=fm(A,R,b,$,I,E,ve),me=ve-ae+k}else ve=fm(A,R,b,$,I,E,ve),me=ve*y+k,ae=ve-me;me<1&&(me=0),pe>=ae/2&&(pe=0),me<5&&(_=mg);let Vt=me>0,zr=ve-me-(Vt?pe:0);ae=_(Au(zr,O,M)),J=(x==0?ae/2:x==z?0:ae)-x*z*((x==0?k/2:0)+(Vt?pe/2:0));const vn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Qt=Ae?null:new Path2D;let De=null;if(X!=null)De=l.data[X.series[1]];else{let{y0:He,y1:ce}=g;He!=null&&ce!=null&&(R=ce.values(l,o,u,m),De=He.values(l,o,u,m))}let We=F*ae,Zt=P*ae;for(let He=z==1?u:m;He>=u&&He<=m;He+=z){let ce=R[He];if(ce==null)continue;if(De!=null){let st=De[He]??0;if(ce-st==0)continue;re=T(st,C,N,L)}let Se=$.distr!=2||g!=null?A[He]:He,Ie=b(Se,$,I,E),ze=T(wt(ce,Z),C,N,L),qe=_(Ie-J),ut=_(Ln(ze,re)),ht=_(vr(ze,re)),ot=ut-ht;if(ce!=null){let st=ce<0?Zt:We,et=ce<0?We:Zt;Ae?(pe>0&&ct[He]!=null&&V(ft.get(ct[He]),qe,ht+lr(pe/2),ae,Ln(0,ot-pe),st,et),rt[He]!=null&&V(Dt.get(rt[He]),qe,ht+lr(pe/2),ae,Ln(0,ot-pe),st,et)):V(Qt,qe,ht+lr(pe/2),ae,Ln(0,ot-pe),st,et),q(l,o,He,qe-pe/2,ht,ae+pe,ot)}}return pe>0?vn.stroke=Ae?ft:Qt:Ae||(vn._fill=w.width==0?w._fill:w._stroke??w._fill,vn.width=0),vn.fill=Ae?Dt:Qt,vn})}function lk(n,t){const e=wt(t==null?void 0:t.alignGaps,0);return(r,f,p,y)=>oo(r,f,(v,h,g,s,c,a,l,o,u,m,w)=>{let A=v.pxRound,R=F=>A(a(F,s,m,o)),$=F=>A(l(F,c,w,u)),C,b,T;s.ori==0?(C=al,T=Uo,b=lm):(C=ll,T=Vo,b=cm);const E=s.dir*(s.ori==0?1:-1);p=Wo(g,p,y,1),y=Wo(g,p,y,-1);let L=R(h[E==1?p:y]),I=L,N=[],_=[];for(let F=E==1?p:y;F>=p&&F<=y;F+=E)if(g[F]!=null){let P=h[F],z=R(P);N.push(I=z),_.push($(g[F]))}const x={stroke:n(N,_,C,T,b,A),fill:null,clip:null,band:null,gaps:null,flags:zo},k=x.stroke;let[M,O]=Ou(r,f);if(v.fill!=null||M!=0){let F=x.fill=new Path2D(k),P=v.fillTo(r,f,v.min,v.max,M),z=$(P);T(F,I,z),T(F,L,z)}if(!v.spanGaps){let F=[];F.push(...Du(h,g,p,y,E,R,e)),x.gaps=F=v.gaps(r,f,p,y,F),x.clip=sl(F,s.ori,o,u,m,w)}return O!=0&&(x.band=O==2?[ri(r,f,p,y,k,-1),ri(r,f,p,y,k,1)]:ri(r,f,p,y,k,O)),x})}function ck(n){return lk(uk,n)}function uk(n,t,e,r,f,p){const y=n.length;if(y<2)return null;const v=new Path2D;if(e(v,n[0],t[0]),y==2)r(v,n[1],t[1]);else{let h=Array(y),g=Array(y-1),s=Array(y-1),c=Array(y-1);for(let a=0;a<y-1;a++)s[a]=t[a+1]-t[a],c[a]=n[a+1]-n[a],g[a]=s[a]/c[a];h[0]=g[0];for(let a=1;a<y-1;a++)g[a]===0||g[a-1]===0||g[a-1]>0!=g[a]>0?h[a]=0:(h[a]=3*(c[a-1]+c[a])/((2*c[a]+c[a-1])/g[a-1]+(c[a]+2*c[a-1])/g[a]),isFinite(h[a])||(h[a]=0));h[y-1]=g[y-2];for(let a=0;a<y-1;a++)f(v,n[a]+c[a]/3,t[a]+h[a]*c[a]/3,n[a+1]-c[a]/3,t[a+1]-h[a+1]*c[a]/3,n[a+1],t[a+1])}return v}const Fu=new Set;function pm(){for(let n of Fu)n.syncRect(!0)}No&&(to(UA,Fo,pm),to(VA,Fo,pm,!0),to(Qa,Fo,()=>{On.pxRatio=bt}));const hk=dm(),dk=um();function gm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,p)=>Wu(f,p,t,e))}function fk(n,t){return n.map((e,r)=>r==0?{}:ln({},t,e))}function Wu(n,t,e,r){return ln({},t==0?e:r,n)}function mm(n,t,e){return t==null?Ho:[t,e]}const pk=mm;function gk(n,t,e){return t==null?Ho:Xa(t,e,wu,!0)}function ym(n,t,e,r){return t==null?Ho:Ja(t,e,n.scales[r].log,!1)}const mk=ym;function vm(n,t,e,r){return t==null?Ho:vu(t,e,n.scales[r].log,!1)}const yk=vm;function vk(n,t,e,r,f){let p=Ln(gg(n),gg(t)),y=t-n,v=Rr(f/r*y,e);do{let h=e[v],g=r*h/y;if(g>=f&&p+(h<5?ki.get(h):0)<=17)return[h,g]}while(++v<e.length);return[0,0]}function wm(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=yn((e=+f)*bt))+"px"),[n,t,e]}function wk(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Et(t[2]*bt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function On(n,t,e){const r={mode:wt(n.mode,1)},f=r.mode;function p(W,j){return((j.distr==3?ni(W>0?W:j.clamp(r,W,j.min,j.max,j.key)):j.distr==4?xu(W,j.asinh):j.distr==100?j.fwd(W):W)-j._min)/(j._max-j._min)}function y(W,j,Y,K){let te=p(W,j);return K+Y*(j.dir==-1?1-te:te)}function v(W,j,Y,K){let te=p(W,j);return K+Y*(j.dir==-1?te:1-te)}function h(W,j,Y,K){return j.ori==0?y(W,j,Y,K):v(W,j,Y,K)}r.valToPosH=y,r.valToPosV=v;let g=!1;r.status=0;const s=r.root=mr(SA);if(n.id!=null&&(s.id=n.id),sr(s,n.class),n.title){let W=mr(IA,s);W.textContent=n.title}const c=Er("canvas"),a=r.ctx=c.getContext("2d"),l=mr(EA,s);to("click",l,W=>{W.target===u&&(Fe!=Di||Nt!=Ni)&&bn.click(r,W)},!0);const o=r.under=mr(RA,l);l.appendChild(c);const u=r.over=mr(MA,l);n=jo(n);const m=+wt(n.pxAlign,1),w=im(m);(n.plugins||[]).forEach(W=>{W.opts&&(n=W.opts(r,n)||n)});const A=n.ms||.001,R=r.series=f==1?gm(n.series||[],Gg,em,!1):fk(n.series||[null],Xg),$=r.axes=gm(n.axes||[],qg,Qg,!0),C=r.scales={},b=r.bands=n.bands||[];b.forEach(W=>{W.fill=gt(W.fill||null),W.dir=wt(W.dir,-1)});const T=f==2?R[1].facets[0].scale:R[0].scale,E={axes:ed,series:Ll},L=(n.drawOrder||["axes","series"]).map(W=>E[W]);function I(W){let j=C[W];if(j==null){let Y=(n.scales||Ls)[W]||Ls;if(Y.from!=null)I(Y.from),C[W]=ln({},C[Y.from],Y,{key:W});else{j=C[W]=ln({},W==T?tm:tk,Y),j.key=W;let K=j.time,te=j.range,oe=_i(te);if((W!=T||f==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?hg:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?hg:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&nl(te))){let de=te;te=(we,be,xe)=>be==null?Ho:Xa(be,xe,de)}j.range=gt(te||(K?pk:W==T?j.distr==3?mk:j.distr==4?yk:mm:j.distr==3?ym:j.distr==4?vm:gk)),j.auto=gt(oe?!1:j.auto),j.clamp=gt(j.clamp||ek),j._min=j._max=null}}}I("x"),I("y"),f==1&&R.forEach(W=>{I(W.scale)}),$.forEach(W=>{I(W.scale)});for(let W in n.scales)I(W);const N=C[T],_=N.distr;let x,k;N.ori==0?(sr(s,$A),x=y,k=v):(sr(s,TA),x=v,k=y);const M={};for(let W in C){let j=C[W];(j.min!=null||j.max!=null)&&(M[W]={min:j.min,max:j.max},j.min=j.max=null)}const O=n.tzDate||(W=>new Date(yn(W/A))),F=n.fmtDate||ku,P=A==1?$C(O):EC(O),z=Wg(O,Fg(A==1?SC:IC,F)),V=Hg(O,Pg(MC,F)),q=[],X=r.legend=ln({},DC,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=gt(Z.width),Z.dash=gt(Z.dash),Z.stroke=gt(Z.stroke),Z.fill=gt(Z.fill);let re,J,ae,me=[],ve=[],pe,Ae=!1,rt={};if(X.live){const W=R[1]?R[1].values:null;Ae=W!=null,pe=Ae?W(r,1,0):{_:0};for(let j in pe)rt[j]=du}if(G)if(re=Er("table",WA,s),ae=Er("tbody",null,re),X.mount(r,re),Ae){J=Er("thead",null,re,ae);let W=Er("tr",null,J);Er("th",null,W);for(var Dt in pe)Er("th",Zp,W).textContent=Dt}else sr(re,HA),X.live&&sr(re,PA);const ct={show:!0},ft={show:!1};function rn(W,j){if(j==0&&(Ae||!X.live||f==2))return Ho;let Y=[],K=Er("tr",jA,ae,ae.childNodes[j]);sr(K,W.class),W.show||sr(K,eo);let te=Er("th",null,K);if(Z.show){let we=mr(BA,te);if(j>0){let be=Z.width(r,j);be&&(we.style.border=be+"px "+Z.dash(r,j)+" "+Z.stroke(r,j)),we.style.background=Z.fill(r,j)}}let oe=mr(Zp,te);oe.textContent=W.label,j>0&&(Z.show||(oe.style.color=W.width>0?Z.stroke(r,j):Z.fill(r,j)),Vt("click",te,we=>{if(Ne._lock)return;oi(we);let be=R.indexOf(W);if((we.ctrlKey||we.metaKey)!=X.isolate){let xe=R.some((ke,$e)=>$e>0&&$e!=be&&ke.show);R.forEach((ke,$e)=>{$e>0&&Sn($e,xe?$e==be?ct:ft:ct,!0,qt.setSeries)})}else Sn(be,{show:!W.show},!0,qt.setSeries)},!1),Vr&&Vt(ng,te,we=>{Ne._lock||(oi(we),Sn(R.indexOf(W),ci,!0,qt.setSeries))},!1));for(var de in pe){let we=Er("td",zA,K);we.textContent="--",Y.push(we)}return[K,Y]}const Rt=new Map;function Vt(W,j,Y,K=!0){const te=Rt.get(j)||{},oe=Ne.bind[W](r,j,Y,K);oe&&(to(W,j,te[W]=oe),Rt.set(j,te))}function zr(W,j,Y){const K=Rt.get(j)||{};for(let te in K)(W==null||te==W)&&(yu(te,j,K[te]),delete K[te]);W==null&&Rt.delete(j)}let vn=0,Qt=0,De=0,We=0,Zt=0,He=0,ce=Zt,Se=He,Ie=De,ze=We,qe=0,ut=0,ht=0,ot=0;r.bbox={};let st=!1,et=!1,Pt=!1,Nn=!1,ii=!1,Zn=!1;function Bs(W,j,Y){(Y||W!=r.width||j!=r.height)&&zs(W,j),ai(!1),Pt=!0,et=!0,Li()}function zs(W,j){r.width=vn=De=W,r.height=Qt=We=j,Zt=He=0,Kh(),Qh();let Y=r.bbox;qe=Y.left=ro(Zt*bt,.5),ut=Y.top=ro(He*bt,.5),ht=Y.width=ro(De*bt,.5),ot=Y.height=ro(We*bt,.5)}const $l=3;function Gh(){let W=!1,j=0;for(;!W;){j++;let Y=Nl(j),K=Fl(j);W=j==$l||Y&&K,W||(zs(r.width,r.height),et=!0)}}function Yh({width:W,height:j}){Bs(W,j)}r.setSize=Yh;function Kh(){let W=!1,j=!1,Y=!1,K=!1;$.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:we}=te,be=de%2,xe=te.label!=null?te.labelSize:0,ke=we+xe;ke>0&&(be?(De-=ke,de==3?(Zt+=ke,K=!0):Y=!0):(We-=ke,de==0?(He+=ke,W=!0):j=!0))}}),si[0]=W,si[1]=Y,si[2]=j,si[3]=K,De-=qr[1]+qr[3],Zt+=qr[3],We-=qr[2]+qr[0],He+=qr[0]}function Qh(){let W=Zt+De,j=He+We,Y=Zt,K=He;function te(oe,de){switch(oe){case 1:return W+=de,W-de;case 2:return j+=de,j-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}$.forEach((oe,de)=>{if(oe.show&&oe._show){let we=oe.side;oe._pos=te(we,oe._size),oe.label!=null&&(oe._lpos=te(we,oe.labelSize))}})}const Ne=r.cursor=ln({},jC,{drag:{y:f==2}},n.cursor);if(Ne.dataIdx==null){let W=Ne.hover,j=W.skip=new Set(W.skip??[]);j.add(void 0);let Y=W.prox=gt(W.prox),K=W.bias??(W.bias=0);Ne.dataIdx=(te,oe,de,we)=>{if(oe==0)return de;let be=de,xe=Y(te,oe,de,we)??zt,ke=xe>=0&&xe<zt,$e=N.ori==0?De:We,Ge=Ne.left,$t=t[0],tt=t[oe];if(j.has(tt[de])){be=null;let Ue=null,Ke=null,Ee;if(K==0||K==-1)for(Ee=de;Ue==null&&Ee-- >0;)j.has(tt[Ee])||(Ue=Ee);if(K==0||K==1)for(Ee=de;Ke==null&&Ee++<tt.length;)j.has(tt[Ee])||(Ke=Ee);if(Ue!=null||Ke!=null)if(ke){let Ct=Ue==null?-1/0:x($t[Ue],N,$e,0),Gt=Ke==null?1/0:x($t[Ke],N,$e,0),Bt=Ge-Ct,Lt=Gt-Ge;Bt<=Lt?Bt<=xe&&(be=Ue):Lt<=xe&&(be=Ke)}else be=Ke==null?Ue:Ue==null?Ke:de-Ue<=Ke-de?Ue:Ke}else ke&&mn(Ge-x($t[de],N,$e,0))>xe&&(be=null);return be}}const oi=W=>{Ne.event=W};Ne.idxs=q,Ne._lock=!1;let _n=Ne.points;_n.show=gt(_n.show),_n.size=gt(_n.size),_n.stroke=gt(_n.stroke),_n.width=gt(_n.width),_n.fill=gt(_n.fill);const Ur=r.focus=ln({},n.focus||{alpha:.3},Ne.focus),Vr=Ur.prox>=0,Si=Vr&&_n.one;let Fn=[],$i=[],Ti=[];function Tl(W,j){let Y=_n.show(r,j);if(Y)return sr(Y,FA),sr(Y,W.class),Pr(Y,-10,-10,De,We),u.insertBefore(Y,Fn[j]),Y}function Il(W,j){if(f==1||j>0){let Y=f==1&&C[W.scale].time,K=W.value;W.value=Y?Cg(K)?Hg(O,Pg(K,F)):K||V:K||ZC,W.label=W.label||(Y?zC:BC)}if(Si||j>0){W.width=W.width==null?1:W.width,W.paths=W.paths||hk||tC,W.fillTo=gt(W.fillTo||nk),W.pxAlign=+wt(W.pxAlign,m),W.pxRound=im(W.pxAlign),W.stroke=gt(W.stroke||null),W.fill=gt(W.fill||null),W._stroke=W._fill=W._paths=W._focus=null;let Y=JC(Ln(1,W.width),1),K=W.points=ln({},{size:Y,width:Ln(1,Y*.2),stroke:W.stroke,space:Y*2,paths:dk,_stroke:null,_fill:null},W.points);K.show=gt(K.show),K.filter=gt(K.filter),K.fill=gt(K.fill),K.stroke=gt(K.stroke),K.paths=gt(K.paths),K.pxAlign=W.pxAlign}if(G){let Y=rn(W,j);me.splice(j,0,Y[0]),ve.splice(j,0,Y[1]),X.values.push(null)}if(Ne.show){q.splice(j,0,null);let Y=null;Si?j==0&&(Y=Tl(W,j)):j>0&&(Y=Tl(W,j)),Fn.splice(j,0,Y),$i.splice(j,0,0),Ti.splice(j,0,0)}Jt("addSeries",j)}function Zh(W,j){j=j??R.length,W=f==1?Wu(W,j,Gg,em):Wu(W,j,{},Xg),R.splice(j,0,W),Il(R[j],j)}r.addSeries=Zh;function Jh(W){if(R.splice(W,1),G){X.values.splice(W,1),ve.splice(W,1);let j=me.splice(W,1)[0];zr(null,j.firstChild),j.remove()}Ne.show&&(q.splice(W,1),Fn.splice(W,1)[0].remove(),$i.splice(W,1),Ti.splice(W,1)),Jt("delSeries",W)}r.delSeries=Jh;const si=[!1,!1,!1,!1];function Xh(W,j){if(W._show=W.show,W.show){let Y=W.side%2,K=C[W.scale];K==null&&(W.scale=Y?R[1].scale:T,K=C[W.scale]);let te=K.time;W.size=gt(W.size),W.space=gt(W.space),W.rotate=gt(W.rotate),_i(W.incrs)&&W.incrs.forEach(de=>{!ki.has(de)&&ki.set(de,xg(de))}),W.incrs=gt(W.incrs||(K.distr==2?CC:te?A==1?_C:TC:io)),W.splits=gt(W.splits||(te&&K.distr==1?P:K.distr==3?Ru:K.distr==4?qC:VC)),W.stroke=gt(W.stroke),W.grid.stroke=gt(W.grid.stroke),W.ticks.stroke=gt(W.ticks.stroke),W.border.stroke=gt(W.border.stroke);let oe=W.values;W.values=_i(oe)&&!_i(oe[0])?gt(oe):te?_i(oe)?Wg(O,Fg(oe,F)):Cg(oe)?RC(O,oe):oe||z:oe||UC,W.filter=gt(W.filter||(K.distr>=3&&K.log==10?KC:K.distr==3&&K.log==2?QC:yg)),W.font=wm(W.font),W.labelFont=wm(W.labelFont),W._size=W.size(r,null,j,0),W._space=W._rotate=W._incrs=W._found=W._splits=W._values=null,W._size>0&&(si[j]=!0,W._el=mr(LA,l))}}function Ii(W,j,Y,K){let[te,oe,de,we]=Y,be=j%2,xe=0;return be==0&&(we||oe)&&(xe=j==0&&!te||j==2&&!de?yn(qg.size/3):0),be==1&&(te||de)&&(xe=j==1&&!oe||j==3&&!we?yn(Qg.size/2):0),xe}const El=r.padding=(n.padding||[Ii,Ii,Ii,Ii]).map(W=>gt(wt(W,Ii))),qr=r._padding=El.map((W,j)=>W(r,j,si,0));let wn,un=null,hn=null;const Ko=f==1?R[0].idxs:null;let Wn=null,co=!1;function uo(W,j){if(t=W??[],r.data=r._data=t,f==2){wn=0;for(let Y=1;Y<R.length;Y++)wn+=t[Y][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Wn=t[0],wn=Wn.length;let Y=t;if(_==2){Y=t.slice();let K=Y[0]=Array(wn);for(let te=0;te<wn;te++)K[te]=te}r._data=t=Y}if(ai(!0),Jt("setData"),_==2&&(Pt=!0),j!==!1){let Y=N;Y.auto(r,co)?Us():br(T,Y.min,Y.max),Nn=Nn||Ne.left>=0,Zn=!0,Li()}}r.setData=uo;function Us(){co=!0;let W,j;f==1&&(wn>0?(un=Ko[0]=0,hn=Ko[1]=wn-1,W=t[0][un],j=t[0][hn],_==2?(W=un,j=hn):W==j&&(_==3?[W,j]=Ja(W,W,N.log,!1):_==4?[W,j]=vu(W,W,N.log,!1):N.time?j=W+yn(86400/A):[W,j]=Xa(W,j,wu,!0))):(un=Ko[0]=W=null,hn=Ko[1]=j=null)),br(T,W,j)}let Qo,Ei,Zo,Jo,Xo,Vs,qs,Gs,Ys,wr;function Ks(W,j,Y,K,te,oe){W??(W=Xp),Y??(Y=Cu),K??(K="butt"),te??(te=Xp),oe??(oe="round"),W!=Qo&&(a.strokeStyle=Qo=W),te!=Ei&&(a.fillStyle=Ei=te),j!=Zo&&(a.lineWidth=Zo=j),oe!=Xo&&(a.lineJoin=Xo=oe),K!=Vs&&(a.lineCap=Vs=K),Y!=Jo&&a.setLineDash(Jo=Y)}function Qs(W,j,Y,K){j!=Ei&&(a.fillStyle=Ei=j),W!=qs&&(a.font=qs=W),Y!=Gs&&(a.textAlign=Gs=Y),K!=Ys&&(a.textBaseline=Ys=K)}function ho(W,j,Y,K,te=0){if(K.length>0&&W.auto(r,co)&&(j==null||j.min==null)){let oe=wt(un,0),de=wt(hn,K.length-1),we=Y.min==null?W.distr==3?KA(K,oe,de):YA(K,oe,de,te):[Y.min,Y.max];W.min=vr(W.min,Y.min=we[0]),W.max=Ln(W.max,Y.max=we[1])}}const Rl={min:null,max:null};function Ml(){for(let K in C){let te=C[K];M[K]==null&&(te.min==null||M[T]!=null&&te.auto(r,co))&&(M[K]=Rl)}for(let K in C){let te=C[K];M[K]==null&&te.from!=null&&M[te.from]!=null&&(M[K]=Rl)}M[T]!=null&&ai(!0);let W={};for(let K in M){let te=M[K];if(te!=null){let oe=W[K]=jo(C[K],iC);if(te.min!=null)ln(oe,te);else if(K!=T||f==2)if(wn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=zt,oe.max=-1/0}}if(wn>0){R.forEach((K,te)=>{if(f==1){let oe=K.scale,de=M[oe];if(de==null)return;let we=W[oe];if(te==0){let be=we.range(r,we.min,we.max,oe);we.min=be[0],we.max=be[1],un=Rr(we.min,t[0]),hn=Rr(we.max,t[0]),hn-un>1&&(t[0][un]<we.min&&un++,t[0][hn]>we.max&&hn--),K.min=Wn[un],K.max=Wn[hn]}else K.show&&K.auto&&ho(we,de,K,t[te],K.sorted);K.idxs[0]=un,K.idxs[1]=hn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,we=oe.scale,be=de.scale,[xe,ke]=t[te],$e=W[we],Ge=W[be];$e!=null&&ho($e,M[we],oe,xe,oe.sorted),Ge!=null&&ho(Ge,M[be],de,ke,de.sorted),K.min=de.min,K.max=de.max}});for(let K in W){let te=W[K],oe=M[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==zt?null:te.min,te.max==-1/0?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in W){let te=W[K];if(te.from!=null){let oe=W[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(r,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let j={},Y=!1;for(let K in W){let te=W[K],oe=C[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?ni(oe.min):de==4?xu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?ni(oe.max):de==4?xu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,j[K]=Y=!0}}if(Y){R.forEach((K,te)=>{f==2?te>0&&j.y&&(K._paths=null):j[K.scale]&&(K._paths=null)});for(let K in j)Pt=!0,Jt("setScale",K);Ne.show&&Ne.left>=0&&(Nn=Zn=!0)}for(let K in M)M[K]=null}function es(W){let j=Au(un-1,0,wn-1),Y=Au(hn+1,0,wn-1);for(;W[j]==null&&j>0;)j--;for(;W[Y]==null&&Y<wn-1;)Y++;return[j,Y]}function Ll(){wn>0&&(R.forEach((W,j)=>{if(j>0&&W.show&&(Ol(j,!1),Ol(j,!0),W._paths==null)){wr!=W.alpha&&(a.globalAlpha=wr=W.alpha);let Y=f==2?[0,t[j][0].length-1]:es(t[j]);W._paths=W.paths(r,j,Y[0],Y[1]),wr!=1&&(a.globalAlpha=wr=1)}}),R.forEach((W,j)=>{if(j>0&&W.show){wr!=W.alpha&&(a.globalAlpha=wr=W.alpha),W._paths!=null&&Zs(j,!1);{let Y=W._paths!=null?W._paths.gaps:null,K=W.points.show(r,j,un,hn,Y),te=W.points.filter(r,j,K,Y);(K||te)&&(W.points._paths=W.points.paths(r,j,un,hn,te),Zs(j,!0))}wr!=1&&(a.globalAlpha=wr=1),Jt("drawSeries",j)}}))}function Ol(W,j){let Y=j?R[W].points:R[W];Y._stroke=Y.stroke(r,W),Y._fill=Y.fill(r,W)}function Zs(W,j){let Y=j?R[W].points:R[W],{stroke:K,fill:te,clip:oe,flags:de,_stroke:we=Y._stroke,_fill:be=Y._fill,_width:xe=Y.width}=Y._paths;xe=Et(xe*bt,3);let ke=null,$e=xe%2/2;j&&be==null&&(be=xe>0?"#fff":we);let Ge=Y.pxAlign==1&&$e>0;if(Ge&&a.translate($e,$e),!j){let $t=qe-xe/2,tt=ut-xe/2,Ue=ht+xe,Ke=ot+xe;ke=new Path2D,ke.rect($t,tt,Ue,Ke)}j?Js(we,xe,Y.dash,Y.cap,be,K,te,de,oe):Dl(W,we,xe,Y.dash,Y.cap,be,K,te,de,ke,oe),Ge&&a.translate(-$e,-$e)}function Dl(W,j,Y,K,te,oe,de,we,be,xe,ke){let $e=!1;be!=0&&b.forEach((Ge,$t)=>{if(Ge.series[0]==W){let tt=R[Ge.series[1]],Ue=t[Ge.series[1]],Ke=(tt._paths||Ls).band;_i(Ke)&&(Ke=Ge.dir==1?Ke[0]:Ke[1]);let Ee,Ct=null;tt.show&&Ke&&ZA(Ue,un,hn)?(Ct=Ge.fill(r,$t)||oe,Ee=tt._paths.clip):Ke=null,Js(j,Y,K,te,Ct,de,we,be,xe,ke,Ee,Ke),$e=!0}}),$e||Js(j,Y,K,te,oe,de,we,be,xe,ke)}const ts=zo|Lu;function Js(W,j,Y,K,te,oe,de,we,be,xe,ke,$e){Ks(W,j,Y,K,te),(be||xe||$e)&&(a.save(),be&&a.clip(be),xe&&a.clip(xe)),$e?(we&ts)==ts?(a.clip($e),ke&&a.clip(ke),Ri(te,de),fo(W,oe,j)):we&Lu?(Ri(te,de),a.clip($e),fo(W,oe,j)):we&zo&&(a.save(),a.clip($e),ke&&a.clip(ke),Ri(te,de),a.restore(),fo(W,oe,j)):(Ri(te,de),fo(W,oe,j)),(be||xe||$e)&&a.restore()}function fo(W,j,Y){Y>0&&(j instanceof Map?j.forEach((K,te)=>{a.strokeStyle=Qo=te,a.stroke(K)}):j!=null&&W&&a.stroke(j))}function Ri(W,j){j instanceof Map?j.forEach((Y,K)=>{a.fillStyle=Ei=K,a.fill(Y)}):j!=null&&W&&a.fill(j)}function Xs(W,j,Y,K){let te=$[W],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,W,j,Y,K),we=te._incrs=te.incrs(r,W,j,Y,K,de);oe=vk(j,Y,we,K,de)}return te._found=oe}function Gr(W,j,Y,K,te,oe,de,we,be,xe){let ke=de%2/2;m==1&&a.translate(ke,ke),Ks(we,de,be,xe,we),a.beginPath();let $e,Ge,$t,tt,Ue=te+(K==0||K==3?-oe:oe);Y==0?(Ge=te,tt=Ue):($e=te,$t=Ue);for(let Ke=0;Ke<W.length;Ke++)j[Ke]!=null&&(Y==0?$e=$t=W[Ke]:Ge=tt=W[Ke],a.moveTo($e,Ge),a.lineTo($t,tt));a.stroke(),m==1&&a.translate(-ke,-ke)}function Nl(W){let j=!0;return $.forEach((Y,K)=>{if(!Y.show)return;let te=C[Y.scale];if(te.min==null){Y._show&&(j=!1,Y._show=!1,ai(!1));return}else Y._show||(j=!1,Y._show=!0,ai(!1));let oe=Y.side,de=oe%2,{min:we,max:be}=te,[xe,ke]=Xs(K,we,be,de==0?De:We);if(ke==0)return;let $e=te.distr==2,Ge=Y._splits=Y.splits(r,K,we,be,xe,ke,$e),$t=te.distr==2?Ge.map(Ee=>Wn[Ee]):Ge,tt=te.distr==2?Wn[Ge[1]]-Wn[Ge[0]]:xe,Ue=Y._values=Y.values(r,Y.filter(r,$t,K,ke,tt),K,ke,tt);Y._rotate=oe==2?Y.rotate(r,Ue,K,ke):0;let Ke=Y._size;Y._size=yr(Y.size(r,Ue,K,W)),Ke!=null&&Y._size!=Ke&&(j=!1)}),j}function Fl(W){let j=!0;return El.forEach((Y,K)=>{let te=Y(r,K,si,W);te!=qr[K]&&(j=!1),qr[K]=te}),j}function ed(){for(let W=0;W<$.length;W++){let j=$[W];if(!j.show||!j._show)continue;let Y=j.side,K=Y%2,te,oe,de=j.stroke(r,W),we=Y==0||Y==3?-1:1;if(j.label){let An=j.labelGap*we,Vn=yn((j._lpos+An)*bt);Qs(j.labelFont[0],de,"center",Y==2?Es:Jp),a.save(),K==1?(te=oe=0,a.translate(Vn,yn(ut+ot/2)),a.rotate((Y==3?-el:el)/2)):(te=yn(qe+ht/2),oe=Vn),a.fillText(j.label,te,oe),a.restore()}let[be,xe]=j._found;if(xe==0)continue;let ke=C[j.scale],$e=K==0?ht:ot,Ge=K==0?qe:ut,$t=yn(j.gap*bt),tt=j._splits,Ue=ke.distr==2?tt.map(An=>Wn[An]):tt,Ke=ke.distr==2?Wn[tt[1]]-Wn[tt[0]]:be,Ee=j.ticks,Ct=j.border,Gt=Ee.show?yn(Ee.size*bt):0,Bt=j._rotate*-el/180,Lt=w(j._pos*bt),Ot=(Gt+$t)*we,ne=Lt+Ot;oe=K==0?ne:0,te=K==1?ne:0;let le=j.font[0],se=j.align==1?Do:j.align==2?cu:Bt>0?Do:Bt<0?cu:K==0?"center":Y==3?cu:Do,Ce=Bt||K==1?"middle":Y==2?Es:Jp;Qs(le,de,se,Ce);let Oe=j.font[1]*j.lineGap,Ye=tt.map(An=>w(h(An,ke,$e,Ge))),kt=j._values;for(let An=0;An<kt.length;An++){let Vn=kt[An];if(Vn!=null){K==0?te=Ye[An]:oe=Ye[An],Vn=""+Vn;let Cn=Vn.indexOf(`
1409
- `)==-1?[Vn]:Vn.split(/\n/gm);for(let ur=0;ur<Cn.length;ur++){let er=Cn[ur];Bt?(a.save(),a.translate(te,oe+ur*Oe),a.rotate(Bt),a.fillText(er,0,0),a.restore()):a.fillText(er,te,oe+ur*Oe)}}}Ee.show&&Gr(Ye,Ee.filter(r,Ue,W,xe,Ke),K,Y,Lt,Gt,Et(Ee.width*bt,3),Ee.stroke(r,W),Ee.dash,Ee.cap);let Qe=j.grid;Qe.show&&Gr(Ye,Qe.filter(r,Ue,W,xe,Ke),K,K==0?2:1,K==0?ut:qe,K==0?ot:ht,Et(Qe.width*bt,3),Qe.stroke(r,W),Qe.dash,Qe.cap),Ct.show&&Gr([Lt],[1],K==0?1:0,K==0?1:2,K==1?ut:qe,K==1?ot:ht,Et(Ct.width*bt,3),Ct.stroke(r,W),Ct.dash,Ct.cap)}Jt("drawAxes")}function ai(W){R.forEach((j,Y)=>{Y>0&&(j._paths=null,W&&(f==1?(j.min=null,j.max=null):j.facets.forEach(K=>{K.min=null,K.max=null})))})}let po=!1,ns=!1,Mi=[];function td(){ns=!1;for(let W=0;W<Mi.length;W++)Jt(...Mi[W]);Mi.length=0}function Li(){po||(hC(ea),po=!0)}function nd(W,j=!1){po=!0,ns=j,W(r),ea(),j&&Mi.length>0&&queueMicrotask(td)}r.batch=nd;function ea(){if(st&&(Ml(),st=!1),Pt&&(Gh(),Pt=!1),et){if(Wt(o,Do,Zt),Wt(o,Es,He),Wt(o,Ts,De),Wt(o,Is,We),Wt(u,Do,Zt),Wt(u,Es,He),Wt(u,Ts,De),Wt(u,Is,We),Wt(l,Ts,vn),Wt(l,Is,Qt),c.width=yn(vn*bt),c.height=yn(Qt*bt),$.forEach(({_el:W,_show:j,_size:Y,_pos:K,side:te})=>{if(W!=null)if(j){let oe=te===3||te===0?Y:0,de=te%2==1;Wt(W,de?"left":"top",K-oe),Wt(W,de?"width":"height",Y),Wt(W,de?"top":"left",de?He:Zt),Wt(W,de?"height":"width",de?We:De),gu(W,eo)}else sr(W,eo)}),Qo=Ei=Zo=Xo=Vs=qs=Gs=Ys=Jo=null,wr=1,mo(!0),Zt!=ce||He!=Se||De!=Ie||We!=ze){ai(!1);let W=De/Ie,j=We/ze;if(Ne.show&&!Nn&&Ne.left>=0){Ne.left*=W,Ne.top*=j,Oi&&Pr(Oi,yn(Ne.left),0,De,We),Yr&&Pr(Yr,0,yn(Ne.top),De,We);for(let Y=0;Y<Fn.length;Y++){let K=Fn[Y];K!=null&&($i[Y]*=W,Ti[Y]*=j,Pr(K,yr($i[Y]),yr(Ti[Y]),De,We))}}if(Mt.show&&!ii&&Mt.left>=0&&Mt.width>0){Mt.left*=W,Mt.width*=W,Mt.top*=j,Mt.height*=j;for(let Y in sa)Wt(li,Y,Mt[Y])}ce=Zt,Se=He,Ie=De,ze=We}Jt("setSize"),et=!1}vn>0&&Qt>0&&(a.clearRect(0,0,c.width,c.height),Jt("drawClear"),L.forEach(W=>W()),Jt("draw")),Mt.show&&ii&&(rs(Mt),ii=!1),Ne.show&&Nn&&(Pn(null,!0,!1),Nn=!1),X.show&&X.live&&Zn&&(go(),Zn=!1),g||(g=!0,r.status=1,Jt("ready")),co=!1,po=!1}r.redraw=(W,j)=>{Pt=j||!1,W!==!1?br(T,N.min,N.max):Li()};function ta(W,j){let Y=C[W];if(Y.from==null){if(wn==0){let K=Y.range(r,j.min,j.max,W);j.min=K[0],j.max=K[1]}if(j.min>j.max){let K=j.min;j.min=j.max,j.max=K}if(wn>1&&j.min!=null&&j.max!=null&&j.max-j.min<1e-16)return;W==T&&Y.distr==2&&wn>0&&(j.min=Rr(j.min,t[0]),j.max=Rr(j.max,t[0]),j.min==j.max&&j.max++),M[W]=j,st=!0,Li()}}r.setScale=ta;let na,ra,Oi,Yr,Wl,Pl,Di,Ni,Hl,It,Fe,Nt,Kr=!1;const bn=Ne.drag;let dn=bn.x,fn=bn.y;Ne.show&&(Ne.x&&(na=mr(DA,u)),Ne.y&&(ra=mr(NA,u)),N.ori==0?(Oi=na,Yr=ra):(Oi=ra,Yr=na),Fe=Ne.left,Nt=Ne.top);const Mt=r.select=ln({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),li=Mt.show?mr(OA,Mt.over?u:o):null;function rs(W,j){if(Mt.show){for(let Y in W)Mt[Y]=W[Y],Y in sa&&Wt(li,Y,W[Y]);j!==!1&&Jt("setSelect")}}r.setSelect=rs;function xn(W,j){let Y=R[W],K=G?me[W]:null;if(Y.show)K&&gu(K,eo);else{K&&sr(K,eo);let te=Si?Fn[0]:Fn[W];Pr(te,-10,-10,De,We)}}function br(W,j,Y){ta(W,{min:j,max:Y})}function Sn(W,j,Y,K){j.focus!=null&&zl(W),j.show!=null&&R.forEach((te,oe)=>{oe>0&&(W==oe||W==null)&&(te.show=j.show,xn(oe,j.show),f==2?(br(te.facets[0].scale,null,null),br(te.facets[1].scale,null,null)):br(te.scale,null,null),Li())}),Y!==!1&&Jt("setSeries",W,j),K&&Or("setSeries",r,W,j)}r.setSeries=Sn;function jl(W,j){ln(b[W],j)}function ia(W,j){W.fill=gt(W.fill||null),W.dir=wt(W.dir,-1),j=j??b.length,b.splice(j,0,W)}function Jn(W){W==null?b.length=0:b.splice(W,1)}r.addBand=ia,r.setBand=jl,r.delBand=Jn;function Bl(W,j){R[W].alpha=j,Ne.show&&Fn[W]&&(Fn[W].style.opacity=j),G&&me[W]&&(me[W].style.opacity=j)}let xr,Lr,Qr;const ci={focus:!0};function zl(W){if(W!=Qr){let j=W==null,Y=Ur.alpha!=1;R.forEach((K,te)=>{if(f==1||te>0){let oe=j||te==0||te==W;K._focus=j?null:oe,Y&&Bl(te,oe?1:Ur.alpha)}}),Qr=W,Y&&Li()}}G&&Vr&&Vt(rg,re,W=>{Ne._lock||(oi(W),Qr!=null&&Sn(null,ci,!0,qt.setSeries))});function jt(W,j,Y){let K=C[j];Y&&(W=W/bt-(K.ori==1?He:Zt));let te=De;K.ori==1&&(te=We,W=te-W),K.dir==-1&&(W=te-W);let oe=K._min,de=K._max,we=W/te,be=oe+(de-oe)*we,xe=K.distr;return xe==3?Po(10,be):xe==4?XA(be,K.asinh):xe==100?K.bwd(be):be}function rd(W,j){let Y=jt(W,T,j);return Rr(Y,t[0],un,hn)}r.valToIdx=W=>Rr(W,t[0]),r.posToIdx=rd,r.posToVal=jt,r.valToPos=(W,j,Y)=>C[j].ori==0?y(W,C[j],Y?ht:De,Y?qe:0):v(W,C[j],Y?ot:We,Y?ut:0),r.setCursor=(W,j,Y)=>{Fe=W.left,Nt=W.top,Pn(null,j,Y)};function Un(W,j){Wt(li,Do,Mt.left=W),Wt(li,Ts,Mt.width=j)}function Ul(W,j){Wt(li,Es,Mt.top=W),Wt(li,Is,Mt.height=j)}let Fi=N.ori==0?Un:Ul,Xn=N.ori==1?Un:Ul;function is(){if(G&&X.live)for(let W=f==2?1:0;W<R.length;W++){if(W==0&&Ae)continue;let j=X.values[W],Y=0;for(let K in j)ve[W][Y++].firstChild.nodeValue=j[K]}}function go(W,j){if(W!=null&&(W.idxs?W.idxs.forEach((Y,K)=>{q[K]=Y}):rC(W.idx)||q.fill(W.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<R.length;Y++)(Y>0||f==1&&!Ae)&&Ft(Y,q[Y]);is()}Zn=!1,j!==!1&&Jt("setLegend")}r.setLegend=go;function Ft(W,j){let Y=R[W],K=W==0&&_==2?Wn:t[W],te;Ae?te=Y.values(r,W,j)??rt:(te=Y.value(r,j==null?null:K[j],W,j),te=te==null?rt:{_:te}),X.values[W]=te}function Pn(W,j,Y){Hl=Fe,It=Nt,[Fe,Nt]=Ne.move(r,Fe,Nt),Ne.left=Fe,Ne.top=Nt,Ne.show&&(Oi&&Pr(Oi,yn(Fe),0,De,We),Yr&&Pr(Yr,0,yn(Nt),De,We));let K,te=un>hn;xr=zt,Lr=null;let oe=N.ori==0?De:We,de=N.ori==1?De:We;if(Fe<0||wn==0||te){K=Ne.idx=null;for(let we=0;we<R.length;we++){let be=Fn[we];be!=null&&Pr(be,-10,-10,De,We)}Vr&&Sn(null,ci,!0,W==null&&qt.setSeries),X.live&&(q.fill(K),Zn=!0)}else{let we,be,xe;f==1&&(we=N.ori==0?Fe:Nt,be=jt(we,T),K=Ne.idx=Rr(be,t[0],un,hn),xe=x(t[0][K],N,oe,0));let ke=-10,$e=-10,Ge=0,$t=0,tt=!0,Ue="",Ke="";for(let Ee=f==2?1:0;Ee<R.length;Ee++){let Ct=R[Ee],Gt=q[Ee],Bt=Gt==null?null:f==1?t[Ee][Gt]:t[Ee][1][Gt],Lt=Ne.dataIdx(r,Ee,K,be),Ot=Lt==null?null:f==1?t[Ee][Lt]:t[Ee][1][Lt];Zn=Zn||Ot!=Bt||Lt!=Gt,q[Ee]=Lt;let ne=Lt==K?xe:x(f==1?t[0][Lt]:t[Ee][0][Lt],N,oe,0);if(Ee>0&&Ct.show){let le=Ot==null?-10:k(Ot,f==1?C[Ct.scale]:C[Ct.facets[1].scale],de,0);if(Vr&&Ot!=null){let se=N.ori==1?Fe:Nt,Ce=mn(Ur.dist(r,Ee,Lt,le,se));if(Ce<xr){let Oe=Ur.bias;if(Oe!=0){let Ye=jt(se,Ct.scale),kt=Ot>=0?1:-1,Qe=Ye>=0?1:-1;Qe==kt&&(Qe==1?Oe==1?Ot>=Ye:Ot<=Ye:Oe==1?Ot<=Ye:Ot>=Ye)&&(xr=Ce,Lr=Ee)}else xr=Ce,Lr=Ee}}if(Zn||Si){let se,Ce;N.ori==0?(se=ne,Ce=le):(se=le,Ce=ne);let Oe,Ye,kt,Qe,An,Vn,Cn=!0,ur=_n.bbox;if(ur!=null){Cn=!1;let er=ur(r,Ee);kt=er.left,Qe=er.top,Oe=er.width,Ye=er.height}else kt=se,Qe=Ce,Oe=Ye=_n.size(r,Ee);if(Vn=_n.fill(r,Ee),An=_n.stroke(r,Ee),Si)Ee==Lr&&xr<=Ur.prox&&(ke=kt,$e=Qe,Ge=Oe,$t=Ye,tt=Cn,Ue=Vn,Ke=An);else{let er=Fn[Ee];er!=null&&($i[Ee]=kt,Ti[Ee]=Qe,ug(er,Oe,Ye,Cn),lg(er,Vn,An),Pr(er,yr(kt),yr(Qe),De,We))}}}}if(Si){let Ee=Ur.prox,Ct=Qr==null?xr<=Ee:xr>Ee||Lr!=Qr;if(Zn||Ct){let Gt=Fn[0];$i[0]=ke,Ti[0]=$e,ug(Gt,Ge,$t,tt),lg(Gt,Ue,Ke),Pr(Gt,yr(ke),yr($e),De,We)}}}if(Mt.show&&Kr)if(W!=null){let[we,be]=qt.scales,[xe,ke]=qt.match,[$e,Ge]=W.cursor.sync.scales,$t=W.cursor.drag;if(dn=$t._x,fn=$t._y,dn||fn){let{left:tt,top:Ue,width:Ke,height:Ee}=W.select,Ct=W.scales[$e].ori,Gt=W.posToVal,Bt,Lt,Ot,ne,le,se=we!=null&&xe(we,$e),Ce=be!=null&&ke(be,Ge);se&&dn?(Ct==0?(Bt=tt,Lt=Ke):(Bt=Ue,Lt=Ee),Ot=C[we],ne=x(Gt(Bt,$e),Ot,oe,0),le=x(Gt(Bt+Lt,$e),Ot,oe,0),Fi(vr(ne,le),mn(le-ne))):Fi(0,oe),Ce&&fn?(Ct==1?(Bt=tt,Lt=Ke):(Bt=Ue,Lt=Ee),Ot=C[be],ne=k(Gt(Bt,Ge),Ot,de,0),le=k(Gt(Bt+Lt,Ge),Ot,de,0),Xn(vr(ne,le),mn(le-ne))):Xn(0,de)}else ss()}else{let we=mn(Hl-Wl),be=mn(It-Pl);if(N.ori==1){let Ge=we;we=be,be=Ge}dn=bn.x&&we>=bn.dist,fn=bn.y&&be>=bn.dist;let xe=bn.uni;xe!=null?dn&&fn&&(dn=we>=xe,fn=be>=xe,!dn&&!fn&&(be>we?fn=!0:dn=!0)):bn.x&&bn.y&&(dn||fn)&&(dn=fn=!0);let ke,$e;dn&&(N.ori==0?(ke=Di,$e=Fe):(ke=Ni,$e=Nt),Fi(vr(ke,$e),mn($e-ke)),fn||Xn(0,de)),fn&&(N.ori==1?(ke=Di,$e=Fe):(ke=Ni,$e=Nt),Xn(vr(ke,$e),mn($e-ke)),dn||Fi(0,oe)),!dn&&!fn&&(Fi(0,0),Xn(0,0))}if(bn._x=dn,bn._y=fn,W==null){if(Y){if(Hn!=null){let[we,be]=qt.scales;qt.values[0]=we!=null?jt(N.ori==0?Fe:Nt,we):null,qt.values[1]=be!=null?jt(N.ori==1?Fe:Nt,be):null}Or(eg,r,Fe,Nt,De,We,K)}if(Vr){let we=Y&&qt.setSeries,be=Ur.prox;Qr==null?xr<=be&&Sn(Lr,ci,!0,we):xr>be?Sn(null,ci,!0,we):Lr!=Qr&&Sn(Lr,ci,!0,we)}}Zn&&(X.idx=K,go()),j!==!1&&Jt("setCursor")}let Ar=null;Object.defineProperty(r,"rect",{get(){return Ar==null&&mo(!1),Ar}});function mo(W=!1){W?Ar=null:(Ar=u.getBoundingClientRect(),Jt("syncRect",Ar))}function os(W,j,Y,K,te,oe,de){Ne._lock||Kr&&W!=null&&W.movementX==0&&W.movementY==0||(oa(W,j,Y,K,te,oe,de,!1,W!=null),W!=null?Pn(null,!0,!0):Pn(j,!0,!1))}function oa(W,j,Y,K,te,oe,de,we,be){if(Ar==null&&mo(!1),oi(W),W!=null)Y=W.clientX-Ar.left,K=W.clientY-Ar.top;else{if(Y<0||K<0){Fe=-10,Nt=-10;return}let[xe,ke]=qt.scales,$e=j.cursor.sync,[Ge,$t]=$e.values,[tt,Ue]=$e.scales,[Ke,Ee]=qt.match,Ct=j.axes[0].side%2==1,Gt=N.ori==0?De:We,Bt=N.ori==1?De:We,Lt=Ct?oe:te,Ot=Ct?te:oe,ne=Ct?K:Y,le=Ct?Y:K;if(tt!=null?Y=Ke(xe,tt)?h(Ge,C[xe],Gt,0):-10:Y=Gt*(ne/Lt),Ue!=null?K=Ee(ke,Ue)?h($t,C[ke],Bt,0):-10:K=Bt*(le/Ot),N.ori==1){let se=Y;Y=K,K=se}}be&&((Y<=1||Y>=De-1)&&(Y=ro(Y,De)),(K<=1||K>=We-1)&&(K=ro(K,We))),we?(Wl=Y,Pl=K,[Di,Ni]=Ne.move(r,Y,K)):(Fe=Y,Nt=K)}const sa={width:0,height:0,left:0,top:0};function ss(){rs(sa,!1)}let aa,yo,ui,Vl;function la(W,j,Y,K,te,oe,de){Kr=!0,dn=fn=bn._x=bn._y=!1,oa(W,j,Y,K,te,oe,de,!0,!1),W!=null&&(Vt(hu,fu,ca,!1),Or(tg,r,Di,Ni,De,We,null));let{left:we,top:be,width:xe,height:ke}=Mt;aa=we,yo=be,ui=xe,Vl=ke,ss()}function ca(W,j,Y,K,te,oe,de){Kr=bn._x=bn._y=!1,oa(W,j,Y,K,te,oe,de,!1,!0);let{left:we,top:be,width:xe,height:ke}=Mt,$e=xe>0||ke>0,Ge=aa!=we||yo!=be||ui!=xe||Vl!=ke;if($e&&Ge&&rs(Mt),bn.setScale&&$e&&Ge){let $t=we,tt=xe,Ue=be,Ke=ke;if(N.ori==1&&($t=be,tt=ke,Ue=we,Ke=xe),dn&&br(T,jt($t,T),jt($t+tt,T)),fn)for(let Ee in C){let Ct=C[Ee];Ee!=T&&Ct.from==null&&Ct.min!=zt&&br(Ee,jt(Ue+Ke,Ee),jt(Ue,Ee))}ss()}else Ne.lock&&(Ne._lock=!Ne._lock,Pn(null,!0,!1));W!=null&&(zr(hu,fu),Or(hu,r,Fe,Nt,De,We,null))}function ua(W,j,Y,K,te,oe,de){if(Ne._lock)return;oi(W);let we=Kr;if(Kr){let be=!0,xe=!0,ke=10,$e,Ge;N.ori==0?($e=dn,Ge=fn):($e=fn,Ge=dn),$e&&Ge&&(be=Fe<=ke||Fe>=De-ke,xe=Nt<=ke||Nt>=We-ke),$e&&be&&(Fe=Fe<Di?0:De),Ge&&xe&&(Nt=Nt<Ni?0:We),Pn(null,!0,!0),Kr=!1}Fe=-10,Nt=-10,Pn(null,!0,!0),we&&(Kr=we)}function as(W,j,Y,K,te,oe,de){Ne._lock||(oi(W),Us(),ss(),W!=null&&Or(ig,r,Fe,Nt,De,We,null))}function ha(){$.forEach(wk),Bs(r.width,r.height,!0)}to(Qa,Fo,ha);const Wi={};Wi.mousedown=la,Wi.mousemove=os,Wi.mouseup=ca,Wi.dblclick=as,Wi.setSeries=(W,j,Y,K)=>{let te=qt.match[2];Y=te(r,j,Y),Y!=-1&&Sn(Y,K,!0,!1)},Ne.show&&(Vt(tg,u,la),Vt(eg,u,os),Vt(ng,u,W=>{oi(W),mo(!1)}),Vt(rg,u,ua),Vt(ig,u,as),Fu.add(r),r.syncRect=mo);const Pi=r.hooks=n.hooks||{};function Jt(W,j,Y){ns?Mi.push([W,j,Y]):W in Pi&&Pi[W].forEach(K=>{K.call(null,r,j,Y)})}(n.plugins||[]).forEach(W=>{for(let j in W.hooks)Pi[j]=(Pi[j]||[]).concat(W.hooks[j])});const ql=(W,j,Y)=>Y,qt=ln({key:null,setSeries:!1,filters:{pub:vg,sub:vg},scales:[T,R[1]?R[1].scale:null],match:[wg,wg,ql],values:[null,null]},Ne.sync);qt.match.length==2&&qt.match.push(ql),Ne.sync=qt;const Hn=qt.key,vo=rm(Hn);function Or(W,j,Y,K,te,oe,de){qt.filters.pub(W,j,Y,K,te,oe,de)&&vo.pub(W,j,Y,K,te,oe,de)}vo.sub(r);function Gl(W,j,Y,K,te,oe,de){qt.filters.sub(W,j,Y,K,te,oe,de)&&Wi[W](null,j,Y,K,te,oe,de)}r.pub=Gl;function Yl(){vo.unsub(r),Fu.delete(r),Rt.clear(),yu(Qa,Fo,ha),s.remove(),re==null||re.remove(),Jt("destroy")}r.destroy=Yl;function da(){Jt("init",n,t),uo(t||n.data,!1),M[T]?ta(T,M[T]):Us(),ii=Mt.show&&(Mt.width>0||Mt.height>0),Nn=Zn=!0,Bs(n.width,n.height)}return R.forEach(Il),$.forEach(Xh),e?e instanceof HTMLElement?(e.appendChild(s),da()):e(r,da):da(),r}On.assign=ln,On.fmtNum=bu,On.rangeNum=Xa,On.rangeLog=Ja,On.rangeAsinh=vu,On.orient=oo,On.pxRatio=bt,On.join=uC,On.fmtDate=ku,On.tzDate=xC,On.sync=rm;{On.addGap=rk,On.clipGaps=sl;let n=On.paths={points:um};n.linear=dm,n.stepped=sk,n.bars=ak,n.spline=ck}var bm,xm;function bk(){return xm||(xm=1,bm=function(n,t,e,r,f){var p,y;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(p=r+(f-r>>>1),y=+e(n[p],t,p,n),y<0)r=p+1;else if(y>0)f=p-1;else return p;return~r}),bm}var xk=bk();const W2=En("N",Ea(xk));var Pu,Am;function Ak(){if(Am)return Pu;Am=1;function n(t,e,r){var f=-1,p=t.length;e<0&&(e=-e>p?0:p+e),r=r>p?p:r,r<0&&(r+=p),p=e>r?0:r-e>>>0,e>>>=0;for(var y=Array(p);++f<p;)y[f]=t[f+e];return y}return Pu=n,Pu}var Hu,Cm;function Ck(){if(Cm)return Hu;Cm=1;var n=Ak();function t(e,r,f){var p=e.length;return f=f===void 0?p:f,!r&&f>=p?e:n(e,r,f)}return Hu=t,Hu}var ju,km;function _m(){if(km)return ju;km=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="\\u200d",v=RegExp("["+y+n+f+p+"]");function h(g){return v.test(g)}return ju=h,ju}var Bu,Sm;function kk(){if(Sm)return Bu;Sm=1;function n(t){return t.split("")}return Bu=n,Bu}var zu,$m;function _k(){if($m)return zu;$m=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="["+n+"]",v="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+v+"|"+h+")",s="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=g+"?",u="["+p+"]?",m="(?:"+l+"(?:"+[s,c,a].join("|")+")"+u+o+")*",w=u+o+m,A="(?:"+[s+v+"?",v,c,a,y].join("|")+")",R=RegExp(h+"(?="+h+")|"+A+w,"g");function $(C){return C.match(R)||[]}return zu=$,zu}var Uu,Tm;function Sk(){if(Tm)return Uu;Tm=1;var n=kk(),t=_m(),e=_k();function r(f){return t(f)?e(f):n(f)}return Uu=r,Uu}var Vu,Im;function $k(){if(Im)return Vu;Im=1;var n=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci;return Vu=n,Vu}var qu,Em;function Tk(){if(Em)return qu;Em=1;var n=$k(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return qu=e,qu}var Gu,Rm;function Yu(){if(Rm)return Gu;Rm=1;var n=Tk(),t=n.Symbol;return Gu=t,Gu}var Ku,Mm;function Ik(){if(Mm)return Ku;Mm=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,p=Array(f);++r<f;)p[r]=e(t[r],r,t);return p}return Ku=n,Ku}var Qu,Lm;function Ek(){if(Lm)return Qu;Lm=1;var n=Array.isArray;return Qu=n,Qu}var Zu,Om;function Rk(){if(Om)return Zu;Om=1;var n=Yu(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function p(y){var v=e.call(y,f),h=y[f];try{y[f]=void 0;var g=!0}catch{}var s=r.call(y);return g&&(v?y[f]=h:delete y[f]),s}return Zu=p,Zu}var Ju,Dm;function Mk(){if(Dm)return Ju;Dm=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Ju=e,Ju}var Xu,Nm;function Lk(){if(Nm)return Xu;Nm=1;var n=Yu(),t=Rk(),e=Mk(),r="[object Null]",f="[object Undefined]",p=n?n.toStringTag:void 0;function y(v){return v==null?v===void 0?f:r:p&&p in Object(v)?t(v):e(v)}return Xu=y,Xu}var eh,Fm;function Ok(){if(Fm)return eh;Fm=1;function n(t){return t!=null&&typeof t=="object"}return eh=n,eh}var th,Wm;function Dk(){if(Wm)return th;Wm=1;var n=Lk(),t=Ok(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return th=r,th}var nh,Pm;function Nk(){if(Pm)return nh;Pm=1;var n=Yu(),t=Ik(),e=Ek(),r=Dk(),f=n?n.prototype:void 0,p=f?f.toString:void 0;function y(v){if(typeof v=="string")return v;if(e(v))return t(v,y)+"";if(r(v))return p?p.call(v):"";var h=v+"";return h=="0"&&1/v==-1/0?"-0":h}return nh=y,nh}var rh,Hm;function ul(){if(Hm)return rh;Hm=1;var n=Nk();function t(e){return e==null?"":n(e)}return rh=t,rh}var ih,jm;function Fk(){if(jm)return ih;jm=1;var n=Ck(),t=_m(),e=Sk(),r=ul();function f(p){return function(y){y=r(y);var v=t(y)?e(y):void 0,h=v?v[0]:y.charAt(0),g=v?n(v,1).join(""):y.slice(1);return h[p]()+g}}return ih=f,ih}var oh,Bm;function zm(){if(Bm)return oh;Bm=1;var n=Fk(),t=n("toUpperCase");return oh=t,oh}var Wk=zm();const Pk=Ea(Wk);var sh,Um;function Hk(){if(Um)return sh;Um=1;var n=ul(),t=zm();function e(r){return t(n(r).toLowerCase())}return sh=e,sh}var ah,Vm;function jk(){if(Vm)return ah;Vm=1;function n(t,e,r,f){var p=-1,y=t==null?0:t.length;for(f&&y&&(r=t[++p]);++p<y;)r=e(r,t[p],p,t);return r}return ah=n,ah}var lh,qm;function Bk(){if(qm)return lh;qm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return lh=n,lh}var ch,Gm;function zk(){if(Gm)return ch;Gm=1;var n=Bk(),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 ch=e,ch}var uh,Ym;function Uk(){if(Ym)return uh;Ym=1;var n=zk(),t=ul(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",y=r+f+p,v="["+y+"]",h=RegExp(v,"g");function g(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return uh=g,uh}var hh,Km;function Vk(){if(Km)return hh;Km=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return hh=t,hh}var dh,Qm;function qk(){if(Qm)return dh;Qm=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 dh=t,dh}var fh,Zm;function Gk(){if(Zm)return fh;Zm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",v="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",l=v+h+g+s,o="['’]",u="["+l+"]",m="["+f+"]",w="\\d+",A="["+p+"]",R="["+y+"]",$="[^"+n+l+w+p+y+c+"]",C="\\ud83c[\\udffb-\\udfff]",b="(?:"+m+"|"+C+")",T="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+c+"]",N="\\u200d",_="(?:"+R+"|"+$+")",x="(?:"+I+"|"+$+")",k="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",M="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=b+"?",F="["+a+"]?",P="(?:"+N+"(?:"+[T,E,L].join("|")+")"+F+O+")*",z="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+P,X="(?:"+[A,E,L].join("|")+")"+q,G=RegExp([I+"?"+R+"+"+k+"(?="+[u,I,"$"].join("|")+")",x+"+"+M+"(?="+[u,I+_,"$"].join("|")+")",I+"?"+_+"+"+k,I+"+"+M,V,z,w,X].join("|"),"g");function Z(re){return re.match(G)||[]}return fh=Z,fh}var ph,Jm;function Yk(){if(Jm)return ph;Jm=1;var n=Vk(),t=qk(),e=ul(),r=Gk();function f(p,y,v){return p=e(p),y=v?void 0:y,y===void 0?t(p)?r(p):n(p):p.match(y)||[]}return ph=f,ph}var gh,Xm;function Kk(){if(Xm)return gh;Xm=1;var n=jk(),t=Uk(),e=Yk(),r="['’]",f=RegExp(r,"g");function p(y){return function(v){return n(e(t(v).replace(f,"")),y,"")}}return gh=p,gh}var mh,ey;function Qk(){if(ey)return mh;ey=1;var n=Hk(),t=Kk(),e=t(function(r,f,p){return f=f.toLowerCase(),r+(p?n(f):f)});return mh=e,mh}var Zk=Qk();const Jk=Ea(Zk),Xk=Object.assign({"./ArrayWidget.vue":()=>Le(()=>Me.import("./ArrayWidget-BxEO5hEG-3a73fe422564c0429019.js"),void 0),"./ArrayplotWidget.vue":()=>Le(()=>Me.import("./ArrayplotWidget-B_VPoV4v-614b214bbb69773602e6.js"),void 0),"./BlockWidget.vue":()=>Le(()=>Me.import("./BlockWidget-CuefOin6-2ce5f8e02729dff1191a.js"),void 0),"./ButtonWidget.vue":()=>Le(()=>Me.import("./ButtonWidget-B6HM0Doo-ab11ef0f26b360b37c5f.js"),void 0),"./CanvasWidget.vue":()=>Le(()=>Me.import("./CanvasWidget-DZQGG-yQ-450fa6b1ddd932d29d98.js"),void 0),"./CanvasdotWidget.vue":()=>Le(()=>Me.import("./CanvasdotWidget-6wuCSnw_-3e9a58f6ec929696a27d.js"),void 0),"./CanvasimageWidget.vue":()=>Le(()=>Me.import("./CanvasimageWidget-mhcPpAuN-3a4572ba31e277b16cbd.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Le(()=>Me.import("./CanvasimagevalueWidget-Cx-dH8Gc-6a5ad086319cf0d016eb.js"),void 0),"./CanvaslabelWidget.vue":()=>Le(()=>Me.import("./CanvaslabelWidget-CQZCeohU-2a4272c49b592e4ddf45.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Le(()=>Me.import("./CanvaslabelvalueWidget-CwmYDCjr-95d9dc3d6675b6cd6e95.js"),void 0),"./CanvaslineWidget.vue":()=>Le(()=>Me.import("./CanvaslineWidget-nTP3fJB4-aea34db4c2864fce9a30.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Le(()=>Me.import("./CanvaslinevalueWidget-C3sJnjLQ-411d1f87490e88f39075.js"),void 0),"./CheckbuttonWidget.vue":()=>Le(()=>Me.import("./CheckbuttonWidget-5-8YDsQL-c0409ca47123c3f97f46.js"),void 0),"./ComboboxWidget.vue":()=>Le(()=>Me.import("./ComboboxWidget-DzBL8h9f-5954ab30bd7b7426b22c.js"),void 0),"./DateWidget.vue":()=>Le(()=>Me.import("./DateWidget-CW7Od7lB-1d0b15f0e4330f7e065f.js"),void 0),"./DynamicWidget.vue":()=>Le(()=>Me.import("./DynamicWidget-gFSYxzvT-80de147600fb5278d2fa.js"),void 0),"./FormatvalueWidget.vue":()=>Le(()=>Me.import("./FormatvalueWidget-CGpnTqVH-a388e9c67416044cd56a.js"),void 0),"./HorizontalWidget.vue":()=>Le(()=>Me.import("./HorizontalWidget-D31NRWy5-958adfe5f70cc49258e5.js"),void 0),"./HorizontalboxWidget.vue":()=>Le(()=>Me.import("./HorizontalboxWidget-Br8dSVHD-5039ded5a283caa87aac.js"),void 0),"./HorizontallineWidget.vue":()=>Le(()=>Me.import("./HorizontallineWidget-CbxREBYI-37095b3ec5bbd179e346.js"),void 0),"./IframeWidget.vue":()=>Le(()=>Me.import("./IframeWidget-Ctj8OIcG-b610a31a59161ba750cf.js"),void 0),"./ImageviewerWidget.vue":()=>Le(()=>Me.import("./ImageviewerWidget-XrsqxmLo-9c12d72a58d8807ae1d6.js"),void 0),"./LabelWidget.vue":()=>Le(()=>Me.import("./LabelWidget-t7I87dp7-23d565a7a3e595de5a3a.js"),void 0),"./LabelledWidget.vue":()=>Le(()=>Me.import("./LabelledWidget-C7TDf92M-1c3bd9b94afe1875582f.js"),void 0),"./LabelprogressbarWidget.vue":()=>Le(()=>Me.import("./LabelprogressbarWidget-wwLURt1u-3c35046cdccb5a71641b.js"),void 0),"./LabelsparklineWidget.vue":()=>Le(()=>Me.import("./LabelsparklineWidget-B3awLUyP-2931c20a0ea5be337cfa.js"),void 0),"./LabelvalueWidget.vue":()=>Le(()=>Me.import("./LabelvalueWidget-Zx_yHCtl-e5c665527952e66cb7bd.js"),void 0),"./LabelvaluedescWidget.vue":()=>Le(()=>Me.import("./LabelvaluedescWidget-BBSBh4vI-efaa36da0688d2643586.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Le(()=>Me.import("./LabelvaluelimitsbarWidget-CZueHYWG-17bead7bb9d109e43b93.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Le(()=>Me.import("./LabelvaluelimitscolumnWidget-BTvzyQMq-b6ffd102e2b4d8350578.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Le(()=>Me.import("./LabelvaluerangebarWidget-BhYTBgDq-2bdd722a647658c589bd.js"),void 0),"./LedWidget.vue":()=>Le(()=>Me.import("./LedWidget-CxJjJBBS-26ce1b6e69c9598eb5b0.js"),void 0),"./LimitsbarWidget.vue":()=>Le(()=>Me.import("./LimitsbarWidget-Djui0IpK-9c16f9767089dad25ed6.js"),void 0),"./LimitscolorWidget.vue":()=>Le(()=>Me.import("./LimitscolorWidget-DdmvKzmx-81f0bbf494d5c0a3fa28.js"),void 0),"./LimitscolumnWidget.vue":()=>Le(()=>Me.import("./LimitscolumnWidget-Cc19IEjq-5e1e31809753a837e695.js"),void 0),"./LinegraphWidget.vue":()=>Le(()=>Me.import("./LinegraphWidget-BtieJxeL-5bcb3fef06b23b91f5f2.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Le(()=>Me.import("./MatrixbycolumnsWidget-DnExVRF8-7f673688a46bf30cf39a.js"),void 0),"./ProgressbarWidget.vue":()=>Le(()=>Me.import("./ProgressbarWidget-DIfqhHRE-57a1a49f10e1f8c4fe88.js"),void 0),"./RadiobuttonWidget.vue":()=>Le(()=>Me.import("./RadiobuttonWidget-QzIkNP7m-c961855d53dedce26894.js"),void 0),"./RadiogroupWidget.vue":()=>Le(()=>Me.import("./RadiogroupWidget-Ci9sCX39-a9368165055b6fb98bec.js"),void 0),"./RangebarWidget.vue":()=>Le(()=>Me.import("./RangebarWidget-CN0YuHqy-55884175e54d1bf0242c.js"),void 0),"./RollupWidget.vue":()=>Le(()=>Me.import("./RollupWidget-y4jBtJB2-3212cb134c1c60f94d02.js"),void 0),"./ScrollwindowWidget.vue":()=>Le(()=>Me.import("./ScrollwindowWidget-CBzYk4Y3-647d2a92619222daf4b8.js"),void 0),"./SignalWidget.vue":()=>Le(()=>Me.import("./SignalWidget-DQ5Uc2uV-216dbd95901481c86c15.js"),void 0),"./SpacerWidget.vue":()=>Le(()=>Me.import("./SpacerWidget-6rsc_dSM-fa85148918d47c63fca8.js"),void 0),"./SparklineWidget.vue":()=>Le(()=>Me.import("./SparklineWidget-CZtvu2ss-df7d74a972238c4b44b5.js"),void 0),"./TabbookWidget.vue":()=>Le(()=>Me.import("./TabbookWidget-DNALU0jl-51a0e5ec34cf2a336675.js"),void 0),"./TextboxWidget.vue":()=>Le(()=>Me.import("./TextboxWidget-5hqPj74D-f302a608328b0b1967db.js"),void 0),"./TextfieldWidget.vue":()=>Le(()=>Me.import("./TextfieldWidget-Df0ANSiU-a28e82fd9d48be8f8681.js"),void 0),"./TimeWidget.vue":()=>Le(()=>Me.import("./TimeWidget-C6XQMUG2-dd29c7ddc2d565ba7979.js"),void 0),"./TitleWidget.vue":()=>Le(()=>Me.import("./TitleWidget-B9SPUlbW-4ff0c087c1a143f4def0.js"),void 0),"./ValueWidget.vue":()=>Le(()=>Me.import("./ValueWidget-D4RrYVEK-1772418f3c2af2fafe2f.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Le(()=>Me.import("./ValuelimitsbarWidget-Bc9_Vj_f-6789a20f577eb37c438b.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Le(()=>Me.import("./ValuelimitscolumnWidget-DHKIL7sf-24c5ee3bba096f057c3d.js"),void 0),"./ValuerangebarWidget.vue":()=>Le(()=>Me.import("./ValuerangebarWidget-CecQRIok-95791525460c7348f42a.js"),void 0),"./VerticalWidget.vue":()=>Le(()=>Me.import("./VerticalWidget-D8jUFxjS-cf44fa81ee676059ad9a.js"),void 0),"./VerticalboxWidget.vue":()=>Le(()=>Me.import("./VerticalboxWidget-B4eGUSYH-fe49e2388548a6c9c51d.js"),void 0)}),e_=Object.entries(Xk).reduce((n,[t,e])=>{t=t.split("/").pop();const r=Pk(Jk(t.replace(/\.\w+$/,"")));return{...n,[r]:Zd(e)}},{}),P2=En("F",{components:e_});function ty(n,t){return function(){return n.apply(t,arguments)}}const{toString:t_}=Object.prototype,{getPrototypeOf:yh}=Object,hl=(n=>t=>{const e=t_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Mr=n=>(n=n.toLowerCase(),t=>hl(t)===n),dl=n=>t=>typeof t===n,{isArray:qo}=Array,Ns=dl("undefined");function n_(n){return n!==null&&!Ns(n)&&n.constructor!==null&&!Ns(n.constructor)&&cr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ny=Mr("ArrayBuffer");function r_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&ny(n.buffer),t}const i_=dl("string"),cr=dl("function"),ry=dl("number"),fl=n=>n!==null&&typeof n=="object",o_=n=>n===!0||n===!1,pl=n=>{if(hl(n)!=="object")return!1;const t=yh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},s_=Mr("Date"),a_=Mr("File"),l_=Mr("Blob"),c_=Mr("FileList"),u_=n=>fl(n)&&cr(n.pipe),h_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||cr(n.append)&&((t=hl(n))==="formdata"||t==="object"&&cr(n.toString)&&n.toString()==="[object FormData]"))},d_=Mr("URLSearchParams"),[f_,p_,g_,m_]=["ReadableStream","Request","Response","Headers"].map(Mr),y_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),qo(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let v;for(r=0;r<y;r++)v=p[r],t.call(null,n[v],v,n)}}function iy(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,oy=n=>!Ns(n)&&n!==so;function vh(){const{caseless:n}=oy(this)&&this||{},t={},e=(r,f)=>{const p=n&&iy(t,f)||f;pl(t[p])&&pl(r)?t[p]=vh(t[p],r):pl(r)?t[p]=vh({},r):qo(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Fs(arguments[r],e);return t}const v_=(n,t,e,{allOwnKeys:r}={})=>(Fs(t,(f,p)=>{e&&cr(f)?n[p]=ty(f,e):n[p]=f},{allOwnKeys:r}),n),w_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),b_=(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)},x_=(n,t,e,r)=>{let f,p,y;const v={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!r||r(y,n,t))&&!v[y]&&(t[y]=n[y],v[y]=!0);n=e!==!1&&yh(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},C_=n=>{if(!n)return null;if(qo(n))return n;let t=n.length;if(!ry(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},k_=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&yh(Uint8Array)),__=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},S_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},$_=Mr("HTMLFormElement"),T_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),sy=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),I_=Mr("RegExp"),ay=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Fs(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},E_=n=>{ay(n,(t,e)=>{if(cr(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(cr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},R_=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return qo(n)?r(n):r(String(n).split(t)),e},M_=()=>{},L_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,wh="abcdefghijklmnopqrstuvwxyz",ly="0123456789",cy={DIGIT:ly,ALPHA:wh,ALPHA_DIGIT:wh+wh.toUpperCase()+ly},O_=(n=16,t=cy.ALPHA_DIGIT)=>{let e="";const{length:r}=t;for(;n--;)e+=t[Math.random()*r|0];return e};function D_(n){return!!(n&&cr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const N_=n=>{const t=new Array(10),e=(r,f)=>{if(fl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=qo(r)?[]:{};return Fs(r,(y,v)=>{const h=e(y,f+1);!Ns(h)&&(p[v]=h)}),t[f]=void 0,p}}return r};return e(n,0)},F_=Mr("AsyncFunction"),W_=n=>n&&(fl(n)||cr(n))&&cr(n.then)&&cr(n.catch),uy=((n,t)=>n?setImmediate:t?((e,r)=>(so.addEventListener("message",({source:f,data:p})=>{f===so&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),so.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",cr(so.postMessage)),P_=typeof queueMicrotask<"u"?queueMicrotask.bind(so):typeof process<"u"&&process.nextTick||uy,he={isArray:qo,isArrayBuffer:ny,isBuffer:n_,isFormData:h_,isArrayBufferView:r_,isString:i_,isNumber:ry,isBoolean:o_,isObject:fl,isPlainObject:pl,isReadableStream:f_,isRequest:p_,isResponse:g_,isHeaders:m_,isUndefined:Ns,isDate:s_,isFile:a_,isBlob:l_,isRegExp:I_,isFunction:cr,isStream:u_,isURLSearchParams:d_,isTypedArray:k_,isFileList:c_,forEach:Fs,merge:vh,extend:v_,trim:y_,stripBOM:w_,inherits:b_,toFlatObject:x_,kindOf:hl,kindOfTest:Mr,endsWith:A_,toArray:C_,forEachEntry:__,matchAll:S_,isHTMLForm:$_,hasOwnProperty:sy,hasOwnProp:sy,reduceDescriptors:ay,freezeMethods:E_,toObjectSet:R_,toCamelCase:T_,noop:M_,toFiniteNumber:L_,findKey:iy,global:so,isContextDefined:oy,ALPHABET:cy,generateString:O_,isSpecCompliantForm:D_,toJSONObject:N_,isAsyncFn:F_,isThenable:W_,setImmediate:uy,asap:P_};function Xe(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}he.inherits(Xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const hy=Xe.prototype,dy={};["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=>{dy[n]={value:n}}),Object.defineProperties(Xe,dy),Object.defineProperty(hy,"isAxiosError",{value:!0}),Xe.from=(n,t,e,r,f,p)=>{const y=Object.create(hy);return he.toFlatObject(n,y,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),Xe.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const H_=null;function bh(n){return he.isPlainObject(n)||he.isArray(n)}function fy(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function py(n,t,e){return n?n.concat(t).map(function(r,f){return r=fy(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function j_(n){return he.isArray(n)&&!n.some(bh)}const B_=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function gl(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!he.isUndefined(o[l])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,v=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(f))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!v&&he.isBlob(l))throw new Xe("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(l)||he.isTypedArray(l)?v&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function g(l,o,u){let m=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&j_(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(m=he.toArray(l)))return o=fy(o),m.forEach(function(w,A){!(he.isUndefined(w)||w===null)&&t.append(y===!0?py([o],A,p):y===null?o:o+"[]",h(w))}),!1}return bh(l)?!0:(t.append(py(u,o,p),h(l)),!1)}const s=[],c=Object.assign(B_,{defaultVisitor:g,convertValue:h,isVisitable:bh});function a(l,o){if(!he.isUndefined(l)){if(s.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(l),he.forEach(l,function(u,m){(!(he.isUndefined(u)||u===null)&&f.call(t,u,he.isString(m)?m.trim():m,o,c))===!0&&a(u,o?o.concat(m):[m])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),t}function gy(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function xh(n,t){this._pairs=[],n&&gl(n,this,t)}const my=xh.prototype;my.append=function(n,t){this._pairs.push([n,t])},my.toString=function(n){const t=n?function(e){return n.call(this,e,gy)}:gy;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function z_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yy(n,t,e){if(!t)return n;const r=e&&e.encode||z_;he.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=he.isURLSearchParams(t)?t.toString():new xh(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let vy=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const wy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},U_=typeof URLSearchParams<"u"?URLSearchParams:xh,V_=typeof FormData<"u"?FormData:null,q_=typeof Blob<"u"?Blob:null,G_={isBrowser:!0,classes:{URLSearchParams:U_,FormData:V_,Blob:q_},protocols:["http","https","file","blob","url","data"]},Ah=typeof window<"u"&&typeof document<"u",Ch=typeof navigator=="object"&&navigator||void 0,Y_=Ah&&(!Ch||["ReactNative","NativeScript","NS"].indexOf(Ch.product)<0),K_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q_=Ah&&window.location.href||"http://localhost",Z_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ah,hasStandardBrowserEnv:Y_,hasStandardBrowserWebWorkerEnv:K_,navigator:Ch,origin:Q_},Symbol.toStringTag,{value:"Module"})),Dn={...Z_,...G_};function J_(n,t){return gl(n,new Dn.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Dn.isNode&&he.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function X_(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eS(n){const t={},e=Object.keys(n);let r;const f=e.length;let p;for(r=0;r<f;r++)p=e[r],t[p]=n[p];return t}function by(n){function t(e,r,f,p){let y=e[p++];if(y==="__proto__")return!0;const v=Number.isFinite(+y),h=p>=e.length;return y=!y&&he.isArray(f)?f.length:y,h?(he.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!v):((!f[y]||!he.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&he.isArray(f[y])&&(f[y]=eS(f[y])),!v)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(r,f)=>{t(X_(r),f,e,0)}),e}return null}function tS(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Ws={transitional:wy,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=he.isObject(n);if(f&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(by(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return J_(n,this.formSerializer).toString();if((p=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return gl(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),tS(n)):n}],transformResponse:[function(n){const t=this.transitional||Ws.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(p){if(f)throw p.name==="SyntaxError"?Xe.from(p,Xe.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Ws.headers[n]={}});const nS=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rS=n=>{const t={};let e,r,f;return n&&n.split(`
1410
- `).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&nS[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},xy=Symbol("internals");function Ps(n){return n&&String(n).trim().toLowerCase()}function ml(n){return n===!1||n==null?n:he.isArray(n)?n.map(ml):String(n)}function iS(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 oS=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function kh(n,t,e,r,f){if(he.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!he.isString(t)){if(he.isString(r))return t.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(t)}}function sS(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function aS(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,p,y){return this[r].call(this,t,f,p,y)},configurable:!0})})}let Qn=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function p(v,h,g){const s=Ps(h);if(!s)throw new Error("header name must be a non-empty string");const c=he.findKey(f,s);(!c||f[c]===void 0||g===!0||g===void 0&&f[c]!==!1)&&(f[c||h]=ml(v))}const y=(v,h)=>he.forEach(v,(g,s)=>p(g,s,h));if(he.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(he.isString(t)&&(t=t.trim())&&!oS(t))y(rS(t),e);else if(he.isHeaders(t))for(const[v,h]of t.entries())p(h,v,r);else t!=null&&p(e,t,r);return this}get(t,e){if(t=Ps(t),t){const r=he.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return iS(f);if(he.isFunction(e))return e.call(this,f,r);if(he.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ps(t),t){const r=he.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||kh(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function p(y){if(y=Ps(y),y){const v=he.findKey(r,y);v&&(!e||kh(r,r[v],v,e))&&(delete r[v],f=!0)}}return he.isArray(t)?t.forEach(p):p(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const p=e[r];(!t||kh(this,this[p],p,t,!0))&&(delete this[p],f=!0)}return f}normalize(t){const e=this,r={};return he.forEach(this,(f,p)=>{const y=he.findKey(r,p);if(y){e[y]=ml(f),delete e[p];return}const v=t?sS(p):String(p).trim();v!==p&&delete e[p],e[v]=ml(f),r[v]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&he.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1411
- `)}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[xy]=this[xy]={accessors:{}}).accessors,r=this.prototype;function f(p){const y=Ps(p);e[y]||(aS(r,p),e[y]=!0)}return he.isArray(t)?t.forEach(f):f(t),this}};Qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Qn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),he.freezeMethods(Qn);function _h(n,t){const e=this||Ws,r=t||e,f=Qn.from(r.headers);let p=r.data;return he.forEach(n,function(y){p=y.call(e,p,f.normalize(),t?t.status:void 0)}),f.normalize(),p}function Ay(n){return!!(n&&n.__CANCEL__)}function Go(n,t,e){Xe.call(this,n??"canceled",Xe.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Go,Xe,{__CANCEL__:!0});function Cy(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Xe("Request failed with status code "+e.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function lS(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function cS(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,p=0,y;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),g=r[p];y||(y=h),e[f]=v,r[f]=h;let s=p,c=0;for(;s!==f;)c+=e[s++],s=s%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),h-y<t)return;const a=g&&h-g;return a?Math.round(c*1e3/a):void 0}}function uS(n,t){let e=0,r=1e3/t,f,p;const y=(v,h=Date.now())=>{e=h,f=null,p&&(clearTimeout(p),p=null),n.apply(null,v)};return[(...v)=>{const h=Date.now(),g=h-e;g>=r?y(v,h):(f=v,p||(p=setTimeout(()=>{p=null,y(f)},r-g)))},()=>f&&y(f)]}const yl=(n,t,e=3)=>{let r=0;const f=cS(50,250);return uS(p=>{const y=p.loaded,v=p.lengthComputable?p.total:void 0,h=y-r,g=f(h),s=y<=v;r=y;const c={loaded:y,total:v,progress:v?y/v:void 0,bytes:h,rate:g||void 0,estimated:g&&v&&s?(v-y)/g:void 0,event:p,lengthComputable:v!=null,[t?"download":"upload"]:!0};n(c)},e)},ky=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},_y=n=>(...t)=>he.asap(()=>n(...t)),hS=Dn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Dn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,dS=Dn.hasStandardBrowserEnv?{write(n,t,e,r,f,p){const y=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),he.isString(r)&&y.push("path="+r),he.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fS(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function pS(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Sy(n,t){return n&&!fS(t)?pS(n,t):t}const $y=n=>n instanceof Qn?{...n}:n;function ao(n,t){t=t||{};const e={};function r(g,s,c,a){return he.isPlainObject(g)&&he.isPlainObject(s)?he.merge.call({caseless:a},g,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function f(g,s,c,a){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g,c,a)}else return r(g,s,c,a)}function p(g,s){if(!he.isUndefined(s))return r(void 0,s)}function y(g,s){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function v(g,s,c){if(c in t)return r(g,s);if(c in n)return r(void 0,g)}const h={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:v,headers:(g,s,c)=>f($y(g),$y(s),c,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(g){const s=h[g]||f,c=s(n[g],t[g],g);he.isUndefined(c)&&s!==v||(e[g]=c)}),e}const Ty=n=>{const t=ao({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:v}=t;t.headers=y=Qn.from(y),t.url=yy(Sy(t.baseURL,t.url),n.params,n.paramsSerializer),v&&y.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let h;if(he.isFormData(e)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[g,...s]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];y.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Dn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||r!==!1&&hS(t.url))){const g=f&&p&&dS.read(p);g&&y.set(f,g)}return t},gS=typeof XMLHttpRequest<"u",mS=gS&&function(n){return new Promise(function(t,e){const r=Ty(n);let f=r.data;const p=Qn.from(r.headers).normalize();let{responseType:y,onUploadProgress:v,onDownloadProgress:h}=r,g,s,c,a,l;function o(){a&&a(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function m(){if(!u)return;const A=Qn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!y||y==="text"||y==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:A,config:n,request:u};Cy(function($){t($),o()},function($){e($),o()},R),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(e(new Xe("Request aborted",Xe.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Xe("Network Error",Xe.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let A=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||wy;r.timeoutErrorMessage&&(A=r.timeoutErrorMessage),e(new Xe(A,R.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,n,u)),u=null},f===void 0&&p.setContentType(null),"setRequestHeader"in u&&he.forEach(p.toJSON(),function(A,R){u.setRequestHeader(R,A)}),he.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),y&&y!=="json"&&(u.responseType=r.responseType),h&&([c,l]=yl(h,!0),u.addEventListener("progress",c)),v&&u.upload&&([s,a]=yl(v),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=A=>{u&&(e(!A||A.type?new Go(null,n,u):A),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const w=lS(r.url);if(w&&Dn.protocols.indexOf(w)===-1){e(new Xe("Unsupported protocol "+w+":",Xe.ERR_BAD_REQUEST,n));return}u.send(f||null)})},yS=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const p=function(g){if(!f){f=!0,v();const s=g instanceof Error?g:this.reason;r.abort(s instanceof Xe?s:new Go(s instanceof Error?s.message:s))}};let y=t&&setTimeout(()=>{y=null,p(new Xe(`timeout ${t} of ms exceeded`,Xe.ETIMEDOUT))},t);const v=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(p):g.removeEventListener("abort",p)}),n=null)};n.forEach(g=>g.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>he.asap(v),h}},vS=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},wS=async function*(n,t){for await(const e of bS(n))yield*vS(e,t)},bS=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()}},Iy=(n,t,e,r)=>{const f=wS(n,t);let p=0,y,v=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:g,value:s}=await f.next();if(g){v(),h.close();return}let c=s.byteLength;if(e){let a=p+=c;e(a)}h.enqueue(new Uint8Array(s))}catch(g){throw v(g),g}},cancel(h){return v(h),f.return()}},{highWaterMark:2})},vl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ey=vl&&typeof ReadableStream=="function",xS=vl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Ry=(n,...t)=>{try{return!!n(...t)}catch{return!1}},AS=Ey&&Ry(()=>{let n=!1;const t=new Request(Dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),My=64*1024,Sh=Ey&&Ry(()=>he.isReadableStream(new Response("").body)),wl={stream:Sh&&(n=>n.body)};vl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wl[t]&&(wl[t]=he.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Xe(`Response type '${t}' is not supported`,Xe.ERR_NOT_SUPPORT,r)})})})(new Response);const CS=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Dn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await xS(n)).byteLength},kS=async(n,t)=>he.toFiniteNumber(n.getContentLength())??CS(t),_S=vl&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:p,timeout:y,onDownloadProgress:v,onUploadProgress:h,responseType:g,headers:s,withCredentials:c="same-origin",fetchOptions:a}=Ty(n);g=g?(g+"").toLowerCase():"text";let l=yS([f,p&&p.toAbortSignal()],y),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let m;try{if(h&&AS&&e!=="get"&&e!=="head"&&(m=await kS(s,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(he.isFormData(r)&&(b=C.headers.get("content-type"))&&s.setContentType(b),C.body){const[T,E]=ky(m,yl(_y(h)));r=Iy(C.body,My,T,E)}}he.isString(c)||(c=c?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...a,signal:l,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:w?c:void 0});let A=await fetch(o);const R=Sh&&(g==="stream"||g==="response");if(Sh&&(v||R&&u)){const C={};["status","statusText","headers"].forEach(L=>{C[L]=A[L]});const b=he.toFiniteNumber(A.headers.get("content-length")),[T,E]=v&&ky(b,yl(_y(v),!0))||[];A=new Response(Iy(A.body,My,T,()=>{E&&E(),u&&u()}),C)}g=g||"text";let $=await wl[he.findKey(wl,g)||"text"](A,n);return!R&&u&&u(),await new Promise((C,b)=>{Cy(C,b,{data:$,headers:Qn.from(A.headers),status:A.status,statusText:A.statusText,config:n,request:o})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Xe("Network Error",Xe.ERR_NETWORK,n,o),{cause:w.cause||w}):Xe.from(w,w&&w.code,n,o)}}),$h={http:H_,xhr:mS,fetch:_S};he.forEach($h,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Ly=n=>`- ${n}`,SS=n=>he.isFunction(n)||n===null||n===!1,Oy={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let p=0;p<t;p++){e=n[p];let y;if(r=e,!SS(e)&&(r=$h[(y=String(e)).toLowerCase()],r===void 0))throw new Xe(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+p]=r}if(!r){const p=Object.entries(f).map(([v,h])=>`adapter ${v} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?p.length>1?`since :
1412
- `+p.map(Ly).join(`
1413
- `):" "+Ly(p[0]):"as no adapter specified";throw new Xe("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:$h};function Th(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Go(null,n)}function Dy(n){return Th(n),n.headers=Qn.from(n.headers),n.data=_h.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Oy.getAdapter(n.adapter||Ws.adapter)(n).then(function(t){return Th(n),t.data=_h.call(n,n.transformResponse,t),t.headers=Qn.from(t.headers),t},function(t){return Ay(t)||(Th(n),t&&t.response&&(t.response.data=_h.call(n,n.transformResponse,t.response),t.response.headers=Qn.from(t.response.headers))),Promise.reject(t)})}const Ny="1.7.9",bl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{bl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Fy={};bl.transitional=function(n,t,e){function r(f,p){return"[Axios v"+Ny+"] Transitional option '"+f+"'"+p+(e?". "+e:"")}return(f,p,y)=>{if(n===!1)throw new Xe(r(p," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!Fy[p]&&(Fy[p]=!0,console.warn(r(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,p,y):!0}},bl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function $S(n,t,e){if(typeof n!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const p=r[f],y=t[p];if(y){const v=n[p],h=v===void 0||y(v,p,n);if(h!==!0)throw new Xe("option "+p+" must be "+h,Xe.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Xe("Unknown option "+p,Xe.ERR_BAD_OPTION)}}const xl={assertOptions:$S,validators:bl},Hr=xl.validators;let lo=class{constructor(t){this.defaults=t,this.interceptors={request:new vy,response:new vy}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?p&&!String(r.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1414
- `+p):r.stack=p}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ao(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:p}=e;r!==void 0&&xl.assertOptions(r,{silentJSONParsing:Hr.transitional(Hr.boolean),forcedJSONParsing:Hr.transitional(Hr.boolean),clarifyTimeoutError:Hr.transitional(Hr.boolean)},!1),f!=null&&(he.isFunction(f)?e.paramsSerializer={serialize:f}:xl.assertOptions(f,{encode:Hr.function,serialize:Hr.function},!0)),xl.assertOptions(e,{baseUrl:Hr.spelling("baseURL"),withXsrfToken:Hr.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let y=p&&he.merge(p.common,p[e.method]);p&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=Qn.concat(y,p);const v=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,v.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,c=0,a;if(!h){const o=[Dy.bind(this),void 0];for(o.unshift.apply(o,v),o.push.apply(o,g),a=o.length,s=Promise.resolve(e);c<a;)s=s.then(o[c++],o[c++]);return s}a=v.length;let l=e;for(c=0;c<a;){const o=v[c++],u=v[c++];try{l=o(l)}catch(m){u.call(this,m);break}}try{s=Dy.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,a=g.length;c<a;)s=s.then(g[c++],g[c++]);return s}getUri(t){t=ao(this.defaults,t);const e=Sy(t.baseURL,t.url);return yy(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){lo.prototype[n]=function(t,e){return this.request(ao(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(ao(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}lo.prototype[n]=t(),lo.prototype[n+"Form"]=t(!0)});let TS=class a0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(v=>{r.subscribe(v),p=v}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new Go(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new a0(function(e){t=e}),cancel:t}}};function IS(n){return function(t){return n.apply(null,t)}}function ES(n){return he.isObject(n)&&n.isAxiosError===!0}const Ih={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ih).forEach(([n,t])=>{Ih[t]=n});function Wy(n){const t=new lo(n),e=ty(lo.prototype.request,t);return he.extend(e,lo.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Wy(ao(n,r))},e}const cn=En("E",Wy(Ws));cn.Axios=lo,cn.CanceledError=Go,cn.CancelToken=TS,cn.isCancel=Ay,cn.VERSION=Ny,cn.toFormData=gl,cn.AxiosError=Xe,cn.Cancel=cn.CanceledError,cn.all=function(n){return Promise.all(n)},cn.spread=IS,cn.isAxiosError=ES,cn.mergeConfig=ao,cn.AxiosHeaders=Qn,cn.formToJSON=n=>by(he.isHTMLForm(n)?new FormData(n):n),cn.getAdapter=Oy.getAdapter,cn.HttpStatusCode=Ih,cn.default=cn;const{Axios:H2,AxiosError:j2,CanceledError:B2,isCancel:z2,CancelToken:U2,VERSION:V2,all:q2,Cancel:G2,isAxiosError:Y2,spread:K2,toFormData:Q2,AxiosHeaders:Z2,HttpStatusCode:J2,formToJSON:X2,getAdapter:eD,mergeConfig:tD}=cn,RS=function(n){if(n&&n.includes(".")){let t=n.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"};function Py(){return Object.assign({},To())}function MS(n,t,e){const r=Ht(n,void 0);return r.setTime(r.getTime()+t*Ta),r}function LS(n,t){const e=()=>an(void 0,NaN),r=FS(n);let f;if(r.date){const h=WS(r.date,2);f=PS(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const p=+f;let y=0,v;if(r.time&&(y=HS(r.time),isNaN(y)))return e();if(r.timezone){if(v=jS(r.timezone),isNaN(v))return e()}else{const h=new Date(p+y),g=Ht(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return Ht(p+y+v,void 0)}const Al={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},OS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,DS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,NS=/^([+-])(\d{2})(?::?(\d{2}))?$/;function FS(n){const t={},e=n.split(Al.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],Al.timeZoneDelimiter.test(t.date)&&(t.date=n.split(Al.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=Al.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function WS(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?f:p*100,restDateString:n.slice((r[1]||r[2]).length)}}function PS(n,t){if(t===null)return new Date(NaN);const e=n.match(OS);if(!e)return new Date(NaN);const r=!!e[4],f=Hs(e[1]),p=Hs(e[2])-1,y=Hs(e[3]),v=Hs(e[4]),h=Hs(e[5])-1;if(r)return qS(t,v,h)?BS(t,v,h):new Date(NaN);{const g=new Date(0);return!US(t,p,y)||!VS(t,f)?new Date(NaN):(g.setUTCFullYear(t,p,Math.max(f,y)),g)}}function Hs(n){return n?parseInt(n):1}function HS(n){const t=n.match(DS);if(!t)return NaN;const e=Eh(t[1]),r=Eh(t[2]),f=Eh(t[3]);return GS(e,r,f)?e*Oc+r*Ta+f*1e3:NaN}function Eh(n){return n&&parseFloat(n.replace(",","."))||0}function jS(n){if(n==="Z")return 0;const t=n.match(NS);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return YS(r,f)?e*(r*Oc+f*Ta):NaN}function BS(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const zS=[31,null,31,30,31,30,31,31,30,31,30,31];function Hy(n){return n%400===0||n%4===0&&n%100!==0}function US(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(zS[t]||(Hy(n)?29:28))}function VS(n,t){return t>=1&&t<=(Hy(n)?366:365)}function qS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function GS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function YS(n,t){return t>=0&&t<=59}function KS(n,t,e){return MS(n,-t)}function jy(n,t,e){const r=Py(),f=JS(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?QS(f,t):ZS(f,t)}function QS(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 ZS(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function JS(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function XS(n,t){const e=i$(t);return"formatToParts"in e?t$(e,n):n$(e,n)}const e$={year:0,month:1,day:2,hour:3,minute:4,second:5};function t$(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const p=e$[e[f].type];p!==void 0&&(r[p]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function n$(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 Rh={},By=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")),r$=By==="06/25/2014, 00:00:00"||By==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function i$(n){return Rh[n]||(Rh[n]=r$?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"})),Rh[n]}function zy(n,t,e,r,f,p,y){const v=new Date(0);return v.setUTCFullYear(n,t,e),v.setUTCHours(r,f,p,y),v}const Uy=36e5,o$=6e4,Mh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Lh(n,t,e){if(!n)return 0;let r=Mh.timezoneZ.exec(n);if(r)return 0;let f,p;if(r=Mh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),Vy(f)?-(f*Uy):NaN;if(r=Mh.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const y=parseInt(r[3],10);return Vy(f,y)?(p=Math.abs(f)*Uy+y*o$,r[1]==="+"?-p:p):NaN}if(l$(n)){t=new Date(t||Date.now());const y=e?t:s$(t),v=Oh(y,n);return-(e?v:a$(t,v,n))}return NaN}function s$(n){return zy(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Oh(n,t){const e=XS(n,t),r=zy(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const p=f%1e3;return f-=p>=0?p:1e3+p,r-f}function a$(n,t,e){let r=n.getTime()-t;const f=Oh(new Date(r),e);if(t===f)return t;r-=f-t;const p=Oh(new Date(r),e);return f===p?f:Math.max(f,p)}function Vy(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const qy={};function l$(n){if(qy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),qy[n]=!0,!0}catch{return!1}}const c$=60*1e3,u$={X:function(n,t,e){const r=Dh(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Gy(r);case"XXXX":case"XX":return Yo(r);case"XXXXX":case"XXX":default:return Yo(r,":")}},x:function(n,t,e){const r=Dh(e.timeZone,n);switch(t){case"x":return Gy(r);case"xxxx":case"xx":return Yo(r);case"xxxxx":case"xxx":default:return Yo(r,":")}},O:function(n,t,e){const r=Dh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+h$(r,":");case"OOOO":default:return"GMT"+Yo(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return jy("short",n,e);case"zzzz":default:return jy("long",n,e)}}};function Dh(n,t){const e=n?Lh(n,t,!0)/c$:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function Cl(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function Yo(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cl(Math.floor(r/60),2),p=Cl(Math.floor(r%60),2);return e+f+t+p}function Gy(n,t){return n%60===0?(n>0?"-":"+")+Cl(Math.abs(n)/60,2):Yo(n,t)}function h$(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+Cl(p,2)}function Yy(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 d$=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Nh=36e5,Ky=6e4,f$=2,zn={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:d$};function Qy(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?f$: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=p$(n),{year:f,restDateString:p}=g$(r.date,e),y=m$(p,f);if(y===null||isNaN(y.getTime()))return new Date(NaN);if(y){const v=y.getTime();let h=0,g;if(r.time&&(h=y$(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(g=Lh(r.timeZone||t.timeZone,new Date(v+h)),isNaN(g))return new Date(NaN)}else g=Yy(new Date(v+h)),g=Yy(new Date(v+h+g));return new Date(v+h+g)}else return new Date(NaN)}function p$(n){const t={};let e=zn.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=zn.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=zn.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function g$(n,t){if(n){const e=zn.YYY[t],r=zn.YYYYY[t];let f=zn.YYYY.exec(n)||r.exec(n);if(f){const p=f[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(f=zn.YY.exec(n)||e.exec(n),f){const p=f[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function m$(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let p=zn.MM.exec(n);if(p)return e=new Date(0),r=parseInt(p[1],10)-1,Xy(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(p=zn.DDD.exec(n),p){e=new Date(0);const y=parseInt(p[1],10);return b$(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(p=zn.MMDD.exec(n),p){e=new Date(0),r=parseInt(p[1],10)-1;const y=parseInt(p[2],10);return Xy(t,r,y)?(e.setUTCFullYear(t,r,y),e):new Date(NaN)}if(p=zn.Www.exec(n),p)return f=parseInt(p[1],10)-1,ev(f)?Zy(t,f):new Date(NaN);if(p=zn.WwwD.exec(n),p){f=parseInt(p[1],10)-1;const y=parseInt(p[2],10)-1;return ev(f,y)?Zy(t,f,y):new Date(NaN)}return null}function y$(n){let t,e,r=zn.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),Fh(t)?t%24*Nh:NaN;if(r=zn.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),Fh(t,e)?t%24*Nh+e*Ky:NaN;if(r=zn.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return Fh(t,e,f)?t%24*Nh+e*Ky+f*1e3:NaN}return null}function Zy(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const v$=[31,28,31,30,31,30,31,31,30,31,30,31],w$=[31,29,31,30,31,30,31,31,30,31,30,31];function Jy(n){return n%400===0||n%4===0&&n%100!==0}function Xy(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Jy(n);if(r&&e>w$[t]||!r&&e>v$[t])return!1}return!0}function b$(n,t){if(t<1)return!1;const e=Jy(n);return!(e&&t>366||!e&&t>365)}function ev(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Fh(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const x$=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function A$(n,t,e={}){t=String(t);const r=t.match(x$);if(r){const f=Qy(e.originalDate||n,e);t=r.reduce(function(p,y){if(y[0]==="'")return p;const v=p.indexOf(y),h=p[v-1]==="'",g=p.replace(y,"'"+u$[y[0]](f,y,e)+"'");return h?g.substring(0,v-1)+g.substring(v+1):g},t)}return Ro(n,t,e)}function C$(n,t,e){n=Qy(n,e);const r=Lh(t,n,!0),f=new Date(n.getTime()-r),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}function Wh(n,t,e,r){return r={...r,timeZone:t,originalDate:n},A$(C$(n,t,{timeZone:r.timeZone}),e,r)}const Ph="yyyy-MM-dd",tv="HH:mm:ss.SSS",k$="HH:mm:ss",kl=`${Ph} ${tv}`,nD=En("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Ro(!t||t==="local"?KS(n,n.getTimezoneOffset()):n,kl)},formatDateTime(n,t){return!t||t==="local"?Ro(n,kl):Wh(n,t,kl)},formatDate:function(n,t){return!t||t==="local"?Ro(n,Ph):Wh(n,this.timeZone,Ph)},formatTime:function(n,t,e=tv){return!t||t==="local"?Ro(n,e):Wh(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,k$)},formatTimestamp(n,t){return this.formatDateTime(LS(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 _$=Object.defineProperty,S$=(n,t,e)=>t in n?_$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Te=(n,t,e)=>S$(n,typeof t!="symbol"?t+"":t,e);function Hh(n,t,e){const r=Ht(n,e==null?void 0:e.in);return isNaN(t)?an((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function $$(n,t){const e=Ht(n,void 0).getDay();return e===0?7:e}function T$(n,t){const e=I$(t)?new t(0):an(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function I$(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const E$=10;class nv{constructor(){Te(this,"subPriority",0)}validate(t,e){return!0}}class R$ extends nv{constructor(t,e,r,f,p){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,p&&(this.subPriority=p)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class M$ extends nv{constructor(t,e){super(),Te(this,"priority",E$),Te(this,"subPriority",-1),this.context=t||(r=>an(e,r))}set(t,e){return e.timestampIsSet?t:an(t,T$(t,this.context))}}class xt{run(t,e,r,f){const p=this.parse(t,e,r,f);return p?{setter:new R$(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,r){return!0}}class L$ extends xt{constructor(){super(...arguments),Te(this,"priority",140),Te(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const tn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},jr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function nn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ut(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Br(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,p=e[3]?parseInt(e[3],10):0,y=e[5]?parseInt(e[5],10):0;return{value:r*(f*Oc+p*Ta+y*w0),rest:t.slice(e[0].length)}}function rv(n){return Ut(tn.anyDigitsSigned,n)}function Kt(n,t){switch(n){case 1:return Ut(tn.singleDigit,t);case 2:return Ut(tn.twoDigits,t);case 3:return Ut(tn.threeDigits,t);case 4:return Ut(tn.fourDigits,t);default:return Ut(new RegExp("^\\d{1,"+n+"}"),t)}}function iv(n,t){switch(n){case 1:return Ut(tn.singleDigitSigned,t);case 2:return Ut(tn.twoDigitsSigned,t);case 3:return Ut(tn.threeDigitsSigned,t);case 4:return Ut(tn.fourDigitsSigned,t);default:return Ut(new RegExp("^-?\\d{1,"+n+"}"),t)}}function jh(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 ov(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const p=r+50,y=Math.trunc(p/100)*100,v=n>=p%100;f=n+y-(v?100:0)}return e?f:1-f}function sv(n){return n%400===0||n%4===0&&n%100!==0}let O$=class extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="yy"});switch(e){case"y":return nn(Kt(4,t),f);case"yo":return nn(r.ordinalNumber(t,{unit:"year"}),f);default:return nn(Kt(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const y=ov(r.year,f);return t.setFullYear(y,0,1),t.setHours(0,0,0,0),t}const p=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(p,0,1),t.setHours(0,0,0,0),t}};class D$ extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="YY"});switch(e){case"Y":return nn(Kt(4,t),f);case"Yo":return nn(r.ordinalNumber(t,{unit:"year"}),f);default:return nn(Kt(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const p=Nc(t,f);if(r.isTwoDigitYear){const v=ov(r.year,p);return t.setFullYear(v,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),xi(t,f)}const y=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(y,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),xi(t,f)}}class N$ extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return iv(e==="R"?4:e.length,t)}set(t,e,r){const f=an(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Io(f)}}class F$ extends xt{constructor(){super(...arguments),Te(this,"priority",130),Te(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return iv(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class W$ extends xt{constructor(){super(...arguments),Te(this,"priority",120),Te(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Kt(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}let P$=class extends xt{constructor(){super(...arguments),Te(this,"priority",120),Te(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Kt(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}};class H$ extends xt{constructor(){super(...arguments),Te(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Te(this,"priority",110)}parse(t,e,r){const f=p=>p-1;switch(e){case"M":return nn(Ut(tn.month,t),f);case"MM":return nn(Kt(2,t),f);case"Mo":return nn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}let j$=class extends xt{constructor(){super(...arguments),Te(this,"priority",110),Te(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=p=>p-1;switch(e){case"L":return nn(Ut(tn.month,t),f);case"LL":return nn(Kt(2,t),f);case"Lo":return nn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};function B$(n,t,e){const r=Ht(n,e==null?void 0:e.in),f=xf(r,e)-t;return r.setDate(r.getDate()-f*7),Ht(r,e==null?void 0:e.in)}class z$ extends xt{constructor(){super(...arguments),Te(this,"priority",100),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Ut(tn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return xi(B$(t,r,f),f)}}function U$(n,t,e){const r=Ht(n,void 0),f=bf(r)-t;return r.setDate(r.getDate()-f*7),r}class V$ extends xt{constructor(){super(...arguments),Te(this,"priority",100),Te(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Ut(tn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Io(U$(t,r))}}const q$=[31,28,31,30,31,30,31,31,30,31,30,31],G$=[31,29,31,30,31,30,31,31,30,31,30,31];class Y$ extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"subPriority",1),Te(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Ut(tn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Kt(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=sv(r),p=t.getMonth();return f?e>=1&&e<=G$[p]:e>=1&&e<=q$[p]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class K$ extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"subpriority",1),Te(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Ut(tn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Kt(e.length,t)}}validate(t,e){const r=t.getFullYear();return sv(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 Bh(n,t,e){var r,f,p,y;const v=To(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??v.weekStartsOn??((y=(p=v.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)??0,g=Ht(n,e==null?void 0:e.in),s=g.getDay(),c=(t%7+7)%7,a=7-h,l=t<0||t>6?t-(s+a)%7:(c+a)%7-(s+a)%7;return Hh(g,l,e)}class Q$ extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Bh(t,r,f),t.setHours(0,0,0,0),t}}class Z$ extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const p=y=>{const v=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+v};switch(e){case"e":case"ee":return nn(Kt(e.length,t),p);case"eo":return nn(r.ordinalNumber(t,{unit:"day"}),p);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Bh(t,r,f),t.setHours(0,0,0,0),t}}let J$=class extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const p=y=>{const v=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+v};switch(e){case"c":case"cc":return nn(Kt(e.length,t),p);case"co":return nn(r.ordinalNumber(t,{unit:"day"}),p);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=Bh(t,r,f),t.setHours(0,0,0,0),t}};function X$(n,t,e){const r=Ht(n,void 0),f=$$(r),p=t-f;return Hh(r,p,e)}class eT extends xt{constructor(){super(...arguments),Te(this,"priority",90),Te(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=p=>p===0?7:p;switch(e){case"i":case"ii":return Kt(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return nn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return nn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return nn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return nn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=X$(t,r),t.setHours(0,0,0,0),t}}class tT extends xt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(jh(r),0,0,0),t}}class nT extends xt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(jh(r),0,0,0),t}}class rT extends xt{constructor(){super(...arguments),Te(this,"priority",80),Te(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(jh(r),0,0,0),t}}class iT extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Ut(tn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class oT extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Ut(tn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class sT extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Ut(tn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class aT extends xt{constructor(){super(...arguments),Te(this,"priority",70),Te(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Ut(tn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Kt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}let lT=class extends xt{constructor(){super(...arguments),Te(this,"priority",60),Te(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Ut(tn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}};class cT extends xt{constructor(){super(...arguments),Te(this,"priority",50),Te(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Ut(tn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Kt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class uT extends xt{constructor(){super(...arguments),Te(this,"priority",30),Te(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return nn(Kt(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class hT extends xt{constructor(){super(...arguments),Te(this,"priority",10),Te(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Br(jr.basicOptionalMinutes,t);case"XX":return Br(jr.basic,t);case"XXXX":return Br(jr.basicOptionalSeconds,t);case"XXXXX":return Br(jr.extendedOptionalSeconds,t);case"XXX":default:return Br(jr.extended,t)}}set(t,e,r){return e.timestampIsSet?t:an(t,t.getTime()-Ia(t)-r)}}let dT=class extends xt{constructor(){super(...arguments),Te(this,"priority",10),Te(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Br(jr.basicOptionalMinutes,t);case"xx":return Br(jr.basic,t);case"xxxx":return Br(jr.basicOptionalSeconds,t);case"xxxxx":return Br(jr.extendedOptionalSeconds,t);case"xxx":default:return Br(jr.extended,t)}}set(t,e,r){return e.timestampIsSet?t:an(t,t.getTime()-Ia(t)-r)}};class fT extends xt{constructor(){super(...arguments),Te(this,"priority",40),Te(this,"incompatibleTokens","*")}parse(t){return rv(t)}set(t,e,r){return[an(t,r*1e3),{timestampIsSet:!0}]}}class pT extends xt{constructor(){super(...arguments),Te(this,"priority",20),Te(this,"incompatibleTokens","*")}parse(t){return rv(t)}set(t,e,r){return[an(t,r),{timestampIsSet:!0}]}}const gT={G:new L$,y:new O$,Y:new D$,R:new N$,u:new F$,Q:new W$,q:new P$,M:new H$,L:new j$,w:new z$,I:new V$,d:new Y$,D:new K$,E:new Q$,e:new Z$,c:new J$,i:new eT,a:new tT,b:new nT,B:new rT,h:new iT,H:new oT,K:new sT,k:new aT,m:new lT,s:new cT,S:new uT,X:new hT,x:new dT,t:new fT,T:new pT},mT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vT=/^'([^]*?)'?$/,wT=/''/g,bT=/\S/,xT=/[a-zA-Z]/;function AT(n,t,e,r){var f,p,y,v;const h=()=>an(e,NaN),g=Py(),s=g.locale??wf,c=g.firstWeekContainsDate??((p=(f=g.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=g.weekStartsOn??((v=(y=g.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??0;if(!t)return n?h():Ht(e,void 0);const l={firstWeekContainsDate:c,weekStartsOn:a,locale:s},o=[new M$(void 0,e)],u=t.match(yT).map($=>{const C=$[0];if(C in Fc){const b=Fc[C];return b($,s.formatLong)}return $}).join("").match(mT),m=[];for(let $ of u){Tf($)&&Wc($,t,n),$f($)&&Wc($,t,n);const C=$[0],b=gT[C];if(b){const{incompatibleTokens:T}=b;if(Array.isArray(T)){const L=m.find(I=>T.includes(I.token)||I.token===C);if(L)throw new RangeError(`The format string mustn't contain \`${L.fullToken}\` and \`${$}\` at the same time`)}else if(b.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${$}\` and any other token at the same time`);m.push({token:C,fullToken:$});const E=b.run(n,$,s.match,l);if(!E)return h();o.push(E.setter),n=E.rest}else{if(C.match(xT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if($==="''"?$="'":C==="'"&&($=CT($)),n.indexOf($)===0)n=n.slice($.length);else return h()}}if(n.length>0&&bT.test(n))return h();const w=o.map($=>$.priority).sort(($,C)=>C-$).filter(($,C,b)=>b.indexOf($)===C).map($=>o.filter(C=>C.priority===$).sort((C,b)=>b.subPriority-C.subPriority)).map($=>$[0]);let A=Ht(e,void 0);if(isNaN(+A))return h();const R={};for(const $ of w){if(!$.validate(A,l))return h();const C=$.set(A,R,l);Array.isArray(C)?(A=C[0],Object.assign(R,C[1])):A=C}return A}function CT(n){return n.match(vT)[1].replace(wT,"'")}const kT={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function _T(n,t,e,r,f,p){const y=vt("rux-icon");return pn(),gr(y,{size:e.size,icon:e.icon,style:vs(p.colorStyle)},null,8,["size","icon","style"])}const ST=$o(kT,[["render",_T],["__scopeId","data-v-9af48e85"]]),$T="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=",TT={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return $T},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=MT.indexOf(av[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 IT(n,t,e,r,f,p){return pn(),bi("div",{style:vs(p.iconStyle)},null,4)}const ET=$o(TT,[["render",IT]]),av={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"},zh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},RT=function(n){const t="#000000",e="#ffffff",r=zh[av[n]];if(r){const f=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,y=+`0x${r.slice(5,7)}`;if((f*299+p*587+y*114)/1e3>128)return t}return e},MT=Object.keys(zh),LT={astro:{component:n=>ys(ST,{...n})},"astro-status":{component:n=>ys(ET,{...n,status:n.icon})}},OT={props:{type:{type:String,required:!0,validator:function(n){return["open","save"].indexOf(n)!==-1}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,modelValue:Boolean},data(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let n=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(n+="be in a target directory and "),n+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
1415
-
1416
- For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,n}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const n="0-9a-zA-Z";let t=`[${`${n}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${n}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){this.loadFiles(),this.requireTargetParentDir&&Ua.get("/openc3-api/targets").then(n=>{this.targets=n.data,this.targets.push("__TEMP__")})},methods:{calcIcon:function(n){return RS(n)},loadFiles:function(){Ua.get(this.apiUrl).then(n=>{this.items=[],this.id=1;for(let t of n.data)this.filepath=t,this.insertFile(this.items,1,t),this.id++;this.inputFilename&&(this.selectedFile=this.inputFilename),this.loading=!1}).catch(n=>{this.$emit("error",`Failed to connect to OpenC3. ${n}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(n){n.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,n[0]),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(n,t){for(let e of n){if(e.id===t)return e.path;if(e.children){const r=this.findItem(e.children,t);if(r)return r}}return null},exists:function(n,t){let e=!1;for(let r of n){if(r.path===t||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===t)return!0;r.children&&(e=e||this.exists(r.children,t))}return e},success:function(){this.selectedFile!==null&&this.error===null&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(n=>Ua.delete("/script-api/scripts/temp_files")).then(n=>{this.$emit("clear-temp"),this.loadFiles()}).catch(n=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${n}`})})},openSuccess:function(){this.disableButtons=!0,Ua.get(`${this.apiUrl}/${this.selectedFile}`).then(n=>{const t={name:this.selectedFile,contents:n.data.contents};n.data.suites&&(t.suites=JSON.parse(n.data.suites)),n.data.error&&(t.error=n.data.error),n.data.success&&(t.success=n.data.success);const e=n.data.locked,r=n.data.breakpoints;this.$emit("file",{file:t,locked:e,breakpoints:r}),this.clear()}).catch(n=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${n}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(n=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(n=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,t,e){let r=e.split("/");if(r.length===1){n.push({id:this.id,title:r[0],file:"ruby",path:this.filepath}),this.id++;return}const f=n.findIndex(p=>p.title===r[0]);f===-1?(n.push({id:this.id,title:r[0],children:[],path:this.filepath.split("/").slice(0,t).join("/")}),this.id++,this.insertFile(n[n.length-1].children,t+1,r.slice(1).join("/"))):this.insertFile(n[f].children,t+1,r.slice(1).join("/"))}}},DT={class:"pa-3"};function NT(n,t,e,r,f,p){const y=vt("v-progress-circular"),v=vt("v-overlay"),h=vt("v-spacer"),g=vt("v-toolbar"),s=vt("v-row"),c=vt("v-text-field"),a=vt("v-icon"),l=vt("v-btn"),o=vt("v-treeview"),u=vt("v-card-text"),m=vt("v-card"),w=vt("v-dialog");return pn(),gr(w,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=A=>p.show=A),width:"600",scrollable:"",onKeydown:t[6]||(t[6]=Jd(A=>p.success(),["enter"]))},{default:dt(()=>[Ve(m,null,{default:dt(()=>[Ve(v,{"model-value":f.loading},{default:dt(()=>[Ve(y,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),ti("form",{onSubmit:t[4]||(t[4]=$a((...A)=>p.success&&p.success(...A),["prevent"]))},[Ve(g,{height:"24"},{default:dt(()=>[Ve(h),ti("span",null,Tn(p.title),1),Ve(h)]),_:1}),Ve(u,null,{default:dt(()=>[ti("div",DT,[Ve(s,null,{default:dt(()=>[Rn(Tn(p.helpText),1)]),_:1}),Ve(s,{dense:"",class:"mt-5"},{default:dt(()=>[Ve(c,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=A=>f.search=A),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),Ve(s,{dense:"",class:"mt-2"},{default:dt(()=>[Ve(o,{modelValue:f.tree,"onUpdate:modelValue":t[1]||(t[1]=A=>f.tree=A),"onUpdate:activated":p.activeFile,density:"compact",activatable:"",ref:"tree",style:{width:"100%","max-height":"60vh",overflow:"auto"},"item-value":"id",items:f.items,search:f.search,"open-on-click":e.type==="open","open-all":!!f.search},{prepend:dt(({item:A,open:R})=>[A.file?(pn(),gr(a,{key:1},{default:dt(()=>[Rn(Tn(p.calcIcon(A.title)),1)]),_:2},1024)):(pn(),gr(a,{key:0},{default:dt(()=>[Rn(Tn(R?"mdi-folder-open":"mdi-folder"),1)]),_:2},1024))]),append:dt(({item:A})=>[A.title==="__TEMP__"?(pn(),gr(l,{key:0,icon:"",onClick:p.deleteTemp},{default:dt(()=>[Ve(a,null,{default:dt(()=>t[7]||(t[7]=[Rn(" mdi-delete ")])),_:1})]),_:1},8,["onClick"])):ei("",!0)]),_:1},8,["modelValue","onUpdate:activated","items","search","open-on-click","open-all"])]),_:1}),Ve(s,{class:"my-2"},{default:dt(()=>[Ve(c,{modelValue:f.selectedFile,"onUpdate:modelValue":t[2]||(t[2]=A=>f.selectedFile=A),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:e.type==="open"},null,8,["modelValue","disabled"])]),_:1}),Ve(s,{dense:""},{default:dt(()=>[Ec(ti("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},Tn(p.error),513),[[Rc,p.error]])]),_:1}),Ve(s,{class:"mt-2"},{default:dt(()=>[Ve(h),Ve(l,{onClick:t[3]||(t[3]=A=>p.show=!1),variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:f.disableButtons},{default:dt(()=>t[8]||(t[8]=[Rn(" Cancel ")])),_:1},8,["disabled"]),Ve(l,{onClick:$a(p.success,["prevent"]),ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:f.disableButtons||!!p.error},{default:dt(()=>[Rn(Tn(p.submit),1)]),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const rD=En("J",$o(OT,[["render",NT]])),lv="single-spa:app-change",FT={data(){return{show:!1}},created(){window.addEventListener(lv,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=uf().length===0},150)},unmounted(){window.removeEventListener(lv,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},WT={class:"mx-1"};function PT(n,t,e,r,f,p){const y=vt("v-card-title"),v=vt("v-card-text"),h=vt("v-card");return f.show?(pn(),gr(h,{key:0},{default:dt(()=>[Ve(y,null,{default:dt(()=>t[0]||(t[0]=[Rn(" 404 Not Found ")])),_:1}),Ve(v,{class:"d-flex align-center mt-3"},{default:dt(()=>[t[1]||(t[1]=Rn(" The requested URL ")),ti("code",WT,Tn(n.$route.fullPath),1),t[2]||(t[2]=Rn(" was not routable. ")),t[3]||(t[3]=ti("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):ei("",!0)}const cv=[{path:"/",name:"TableManager",component:()=>Le(()=>Me.import("./TableManager-4489278ed163678dc1b3.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:$o(FT,[["render",PT]])}];cv.forEach(pf);const HT=lf({history:cf(),routes:cv}),jT={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"}},BT={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},zT=["innerHTML"],UT={key:2},VT={key:3,class:"validate mt-4"};function qT(n,t,e,r,f,p){const y=vt("v-spacer"),v=vt("v-toolbar"),h=vt("v-icon"),g=vt("v-text-field"),s=vt("v-card-text"),c=vt("v-btn"),a=vt("v-card-actions"),l=vt("v-card"),o=vt("v-dialog"),u=vt("v-app");return pn(),gr(u,null,{default:dt(()=>[Ve(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=m=>n.show=m),width:"600"},{default:dt(()=>[Ve(l,null,{default:dt(()=>[Ve(v,{height:"24"},{default:dt(()=>[Ve(y),ti("span",null,Tn(n.params.title),1),Ve(y)]),_:1}),Ve(s,{class:"mt-4 pa-3"},{default:dt(()=>[n.params.validateText?(pn(),gr(h,{key:0,class:"mr-2"},{default:dt(()=>t[2]||(t[2]=[Rn(" mdi-alert ")])),_:1})):ei("",!0),n.params.html?(pn(),bi("span",{key:1,innerHTML:n.params.text},null,8,zT)):(pn(),bi("span",UT,Tn(n.params.text),1)),n.params.validateText?(pn(),bi("div",VT,[Rn(" Enter "+Tn(n.params.validateText)+" to confirm! ",1),Ve(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=m=>n.validationText=m),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):ei("",!0)]),_:1}),Ve(a,{class:"px-2"},{default:dt(()=>[Ve(y),n.params.cancelText?(pn(),gr(c,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:dt(()=>[Rn(Tn(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):ei("",!0),Ve(c,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:dt(()=>[Rn(Tn(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const GT=$o(BT,[["render",qT],["__scopeId","data-v-581c0293"]]);class YT{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(GT);t.use(Vh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:v}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:v},h,g)})}confirm(t,{okText:e="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:null,cancelText:r,html:!1})}alert(t,{okText:e="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:f,validateText:null,cancelText:null,html:r})}validate(t,{okText:e="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:p,validateText:r,cancelText:f,html:!1})}}const KT={install(n,t){const e=new YT;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},QT={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
1417
- --toast-bg-color:${zh[this.toastNotification.level]};
1418
- --toast-fg-color:${RT(this.toastNotification.level)};
1419
- `},contentStyle:function(){return`
1420
- white-space: ${this.expanded?"normal":"nowrap"};
1421
- overflow-x: ${this.expanded?"visible":"hidden"};
1422
- text-overflow: ${this.expanded?"unset":"ellipsis"};
1423
- `}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},ZT={key:0,class:"text-subtitle-1 mr-1 notification-text"},JT={key:1,class:"text-body-2 notification-text"},XT={key:2,class:"text-body-2 notification-text"};function eI(n,t,e,r,f,p){const y=vt("v-icon"),v=vt("v-spacer"),h=vt("v-btn"),g=vt("v-sheet"),s=vt("v-slide-y-transition");return pn(),gr(s,null,{default:dt(()=>[Ec(Ve(g,{style:vs(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:dt(()=>[Ve(y,{class:"mr-1 notification-text"},{default:dt(()=>[Rn(Tn(p.toastNotificationIcon),1)]),_:1}),ti("div",{class:"toast-content",style:vs(p.contentStyle)},[n.toastNotification.title?(pn(),bi("span",ZT,Tn(n.toastNotification.title)+": ",1)):ei("",!0),n.toastNotification.body?(pn(),bi("span",JT,Tn(n.toastNotification.body),1)):ei("",!0),n.toastNotification.message?(pn(),bi("span",XT,Tn(n.toastNotification.message),1)):ei("",!0)],4),Ve(v),Ve(h,{variant:"text",onClick:$a(p.hide,["stop"]),class:"notification-text"},{default:dt(()=>t[0]||(t[0]=[Rn(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Rc,n.showToast]])]),_:1})}const tI=$o(QT,[["render",eI],["__scopeId","data-v-b0459ba8"]]);class nI{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Lc(tI);t.use(Vh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:r,message:f,level:p,duration:y,type:v="alert",logToConsole:h=!1,saveToHistory:g=!0}){this.mount(),h&&console.log(f?`${p.toUpperCase()} - ${f}`:`${p.toUpperCase()} - ${e}: ${r}`),g&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:p}),this[t]({title:e,body:r,message:f,level:p,duration:y,type:v})}toast({title:t,body:e,message:r,level:f,duration:p,type:y}){this.$root.toast({title:t,body:e,message:r,level:f,type:y},p)}critical({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}caution({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}off({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:v})}}const rI={install(n,t){const e=new nI(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},uv=100,hv=hf({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=uv&&(n.notifyHistory.length=uv-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function dv(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function iI(n,t){const e={};for(const r of t)Object.hasOwn(n,r)&&(e[r]=n[r]);return e}function fv(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const f in n)r[f]=n[f];for(const f in t){const p=n[f],y=t[f];if(dv(p)&&dv(y)){r[f]=fv(p,y,e);continue}if(e&&Array.isArray(p)&&Array.isArray(y)){r[f]=e(p,y);continue}r[f]=y}return r}function js(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(js.cache.has(n))return js.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return js.cache.set(n,t),t}js.cache=new Map;function oI(n){ef(`Vuetify: ${n}`)}function pv(n,t){return e=>Object.keys(n).reduce((r,f)=>{const p=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...p,default:e[f]}:r[f]=p,t&&!r[f].source&&(r[f].source=t),r},{})}function gv(n,t){const e=of();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function sI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gv("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Uh=Symbol.for("vuetify:defaults");function mv(){const n=tf(Uh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function aI(n,t){var e,r;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((r=n.props)==null?void 0:r[js(t)])<"u"}function lI(){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]:mv();const r=gv("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=Mc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),p=new Proxy(n,{get(h,g){var s,c,a,l,o,u,m;const w=Reflect.get(h,g);return g==="class"||g==="style"?[(s=f.value)==null?void 0:s[g],w].filter(A=>A!=null):typeof g=="string"&&!aI(r.vnode,g)?((c=f.value)==null?void 0:c[g])!==void 0?(a=f.value)==null?void 0:a[g]:((o=(l=e.value)==null?void 0:l.global)==null?void 0:o[g])!==void 0?(m=(u=e.value)==null?void 0:u.global)==null?void 0:m[g]:w:w}}),y=nf();rf(()=>{if(f.value){const h=Object.entries(f.value).filter(g=>{let[s]=g;return s.startsWith(s[0].toUpperCase())});y.value=h.length?Object.fromEntries(h):void 0}else y.value=void 0});function v(){const h=sI(Uh,r);sf(Uh,Mc(()=>y.value?fv((h==null?void 0:h.value)??{},y.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:v}}function _l(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=pv(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return iI(e,t)},n.props._as=String,n.setup=function(e,r){const f=mv();if(!f.value)return n._setup(e,r);const{props:p,provideSubDefaults:y}=lI(e,e._as??n.name,f),v=n._setup(p,r);return y(),v}}return n}function cI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?_l:Xd)(t)}const uI=[String,Function,Object,Array],Sl=pv({icon:{type:uI},tag:{type:String,required:!0}},"icon");cI()({name:"VComponentIcon",props:Sl(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Ve(n.tag,null,{default:()=>{var f;return[n.icon?Ve(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),_l({name:"VSvgIcon",inheritAttrs:!1,props:Sl(),setup(n,t){let{attrs:e}=t;return()=>Ve(n.tag,af(e,{style:null}),{default:()=>[Ve("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?Ve("path",{d:r[0],"fill-opacity":r[1]},null):Ve("path",{d:r},null)):Ve("path",{d:n.icon},null)])]})}}),_l({name:"VLigatureIcon",props:Sl(),setup(n){return()=>Ve(n.tag,null,{default:()=>[n.icon]})}});const hI=_l({name:"VClassIcon",props:Sl(),setup(n){return()=>Ve(n.tag,{class:n.icon},null)}}),dI={component:n=>ys(hI,{...n,class:"mdi"})},Vh=df({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:jT}},icons:{defaultSet:"mdi",sets:{mdi:dI,...LT}}}),qh=u0({createApp:Lc,appOptions:{render(){return ys(v0,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(HT),n.use(hv),n.use(Vh),n.use(KT),n.use(rI,{store:hv})}}),oD=En("b",qh.bootstrap),sD=En("m",qh.mount),aD=En("u",qh.unmount)}}});