diff --git a/assets/index-10835ddf.css b/assets/index-10835ddf.css deleted file mode 100644 index a1514c8..0000000 --- a/assets/index-10835ddf.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap";body{font-family:Poppins,sans-serif;overflow-y:hidden}h1,h2,h3,h4.h5.h6,p,span,button,a,th,td{font-family:Poppins,sans-serif}.ace_editor,.ace_editor *{font-family:Monaco,Menlo,Ubuntu Mono,Droid Sans Mono,Consolas,monospace!important;font-size:12px!important;font-weight:400!important;letter-spacing:0!important}*{margin:0;padding:0;box-sizing:border-box}.container{height:100vh;transition:transform .3s ease}.side-nav,.nav-menu{height:100%}.side-nav .nav-menu{list-style:none;padding:60px 0;width:320px;background-image:linear-gradient(to right,#2458b7,#7f7fd5)}.container.menu-open{transform:translate(0)}.container.menu-closed{transform:translate(-350px)}.side-nav.open{width:350px}.side-nav.closed{width:0px}.menu-toggle{position:absolute;top:20px;right:10px;border:none;cursor:pointer;z-index:999}.menu-toggle.open{background-color:transparent}.menu-toggle.close{background-color:#3498db;right:-350px;padding:5px}.menu-toggle i{font-size:24px;color:#fff}.side-nav .nav-item{position:relative;padding:30px 10px}.nav-item.active{background-color:#fff;box-shadow:0 -3px #0003,0 3px #0003}.nav-item.active a{color:#2980b9}.nav-item a{text-decoration:none;color:#fff}.nav-item a span{font-size:14px}.menu-text{padding:0 5px}.side-nav .nav-item.active:before{content:"";position:absolute;background-color:transparent;bottom:100%;right:0;height:150%;width:20px;border-bottom-right-radius:25px;box-shadow:0 20px #fff}.side-nav .nav-item.active:after{content:"";position:absolute;background-color:transparent;top:100%;right:0;height:150%;width:20px;border-top-right-radius:25px;box-shadow:0 -20px #fff}#heading{text-align:center;font-size:26px;font-family:arial,sans-serif;font-weight:300;color:#00c1ff}#source-code{width:100%;height:40vh;background-color:#2f2f2f;display:flex;justify-content:space-between;overflow-y:scroll;border-radius:10px}#source-code *{box-sizing:border-box}#codeblock{white-space:pre-wrap;width:calc(100% - 30px);float:right;height:auto;font-family:arial;color:#fff;background:transparent;padding:15px;line-height:30px;overflow:hidden;min-height:100%;border:none}#line-numbers{min-width:30px;height:100%;padding:15px 5px;font-size:14px;vertical-align:middle;text-align:right;margin:0;color:#fff;background:black}#line-numbers p{display:block;height:30px;line-height:30px;margin:0}#codeblock:focus{outline:none}#root{display:grid;grid-template-columns:320px 1fr 450px;gap:1rem;transition:grid-template-columns .3s ease}#root.menu-closed{grid-template-columns:50px 1fr 650px}.w100{width:100%;margin:1rem}.flex{display:flex;flex-direction:column}.sidebar{background-image:linear-gradient(to right,#cd121c,#cf5036);overflow-y:scroll;overflow-x:hidden}.sidebar::-webkit-scrollbar{width:1rem}.sidebar::-webkit-scrollbar-thumb{height:2rem;border-radius:.5rem;border:4px solid transparent;background-clip:content-box;background-color:#fff}.sidebar h3{text-align:center;margin-top:2rem;color:#fff}.sidebarlist{list-style:circle;padding:1rem 2rem;gap:2rem;height:100vh;color:#fff}.sidebarlist li{font-size:14px}.mt1{margin-top:1rem}.g1{gap:1rem}.query-selection-list{list-style:none;gap:1rem;display:flex;flex-wrap:wrap}.query-selection-list li{border:1px solid black;padding:.5rem 1.5rem;transition:background .2s ease-in;cursor:pointer}.query-selection-list li:hover{background:black;color:#fff}.red-error{color:red}.mw-90{margin:1rem auto;height:100vh;overflow:scroll}.mw-90::-webkit-scrollbar{width:1rem}.mw-90::-webkit-scrollbar-thumb{height:2rem;border-radius:.5rem;border:4px solid transparent;background-clip:content-box;background-image:linear-gradient(45deg,#2458b7,#cd121c)}.table-container{margin-top:1rem}.table_blur{background:#f5ffff;border-collapse:collapse;text-align:left;width:95%;margin:0 auto}.table_blur th{border-top:1px solid #777777;border-bottom:1px solid #777777;box-shadow:inset 0 1px #999,inset 0 -1px #999;background:linear-gradient(#111113,#000000);color:#fff;padding:10px 15px;position:relative}.table_blur th:after{content:"";display:block;position:absolute;left:0;top:25%;height:25%;width:100%;background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.08))}.table_blur tr:nth-child(odd){background:#ebf3f9}.table_blur th:first-child{border-left:1px solid #777777;border-bottom:1px solid #777777;box-shadow:inset 1px 1px #999,inset 0 -1px #999}.table_blur th:last-child{border-right:1px solid #777777;border-bottom:1px solid #777777;box-shadow:inset -1px 1px #999,inset 0 -1px #999}.table_blur td{text-align:left;border:1px solid #e3eef7;padding:10px 15px;position:relative;transition:all .5s ease}.table_blur tbody:hover td{color:transparent;text-shadow:0 0 3px #a09f9d}.table_blur tbody:hover tr:hover td{color:#444;text-shadow:none}.continue-application{--color: #fff;--background: #404660;--background-hover: #3A4059;--background-left: #2B3044;--folder: #F3E9CB;--folder-inner: #BEB393;--paper: #FFFFFF;--paper-lines: #BBC1E1;--paper-behind: #E1E6F9;--pencil-cap: #fff;--pencil-top: #275EFE;--pencil-middle: #fff;--pencil-bottom: #5C86FF;--shadow: rgba(13, 15, 25, .2);border:none;outline:none;cursor:pointer;position:relative;border-radius:5px;font-size:14px;font-weight:500;line-height:19px;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;padding:17px 29px 17px 69px;transition:background .3s;color:var(--color);background:var(--bg, var(--background))}.continue-application>div{top:0;left:0;bottom:0;width:53px;position:absolute;overflow:hidden;border-radius:5px 0 0 5px;background:var(--background-left)}.continue-application>div .folder{width:23px;height:27px;position:absolute;left:15px;top:13px}.continue-application>div .folder .top{left:0;top:0;z-index:2;position:absolute;transform:translate(var(--fx, 0));transition:transform .4s ease var(--fd, .3s)}.continue-application>div .folder .top svg{width:24px;height:27px;display:block;fill:var(--folder);transform-origin:0 50%;transition:transform .3s ease var(--fds, .45s);transform:perspective(120px) rotateY(var(--fr, 0deg))}.continue-application>div .folder:before,.continue-application>div .folder:after,.continue-application>div .folder .paper{content:"";position:absolute;left:var(--l, 0);top:var(--t, 0);width:var(--w, 100%);height:var(--h, 100%);border-radius:1px;background:var(--b, var(--folder-inner))}.continue-application>div .folder:before{box-shadow:0 1.5px 3px var(--shadow),0 2.5px 5px var(--shadow),0 3.5px 7px var(--shadow);transform:translate(var(--fx, 0));transition:transform .4s ease var(--fd, .3s)}.continue-application>div .folder:after,.continue-application>div .folder .paper{--l: 1px;--t: 1px;--w: 21px;--h: 25px;--b: var(--paper-behind)}.continue-application>div .folder:after{transform:translate(var(--pbx, 0),var(--pby, 0));transition:transform .4s ease var(--pbd, 0s)}.continue-application>div .folder .paper{z-index:1;--b: var(--paper)}.continue-application>div .folder .paper:before,.continue-application>div .folder .paper:after{content:"";width:var(--wp, 14px);height:2px;border-radius:1px;transform:scaleY(.5);left:3px;top:var(--tp, 3px);position:absolute;background:var(--paper-lines);box-shadow:0 12px 0 0 var(--paper-lines),0 24px 0 0 var(--paper-lines)}.continue-application>div .folder .paper:after{--tp: 6px;--wp: 10px}.continue-application>div .pencil{height:2px;width:3px;border-radius:1px 1px 0 0;top:8px;left:105%;position:absolute;z-index:3;transform-origin:50% 19px;background:var(--pencil-cap);transform:translate(var(--pex, 0)) rotate(35deg);transition:transform .4s ease var(--pbd, 0s)}.continue-application>div .pencil:before,.continue-application>div .pencil:after{content:"";position:absolute;display:block;background:var(--b, linear-gradient(var(--pencil-top) 55%, var(--pencil-middle) 55.1%, var(--pencil-middle) 60%, var(--pencil-bottom) 60.1%));width:var(--w, 5px);height:var(--h, 20px);border-radius:var(--br, 2px 2px 0 0);top:var(--t, 2px);left:var(--l, -1px)}.continue-application>div .pencil:before{-webkit-clip-path:polygon(0 5%,5px 5%,5px 17px,50% 20px,0 17px);clip-path:polygon(0 5%,5px 5%,5px 17px,50% 20px,0 17px)}.continue-application>div .pencil:after{--b: none;--w: 3px;--h: 6px;--br: 0 2px 1px 0;--t: 3px;--l: 3px;border-top:1px solid var(--pencil-top);border-right:1px solid var(--pencil-top)}.continue-application:before,.continue-application:after{content:"";position:absolute;width:10px;height:2px;border-radius:1px;background:var(--color);transform-origin:9px 1px;transform:translate(var(--cx, 0)) scale(.5) rotate(var(--r, -45deg));top:26px;right:16px;transition:transform .3s}.continue-application:after{--r: 45deg}.continue-application:hover{--cx: 2px;--bg: var(--background-hover);--fx: -40px;--fr: -60deg;--fd: .15s;--fds: 0s;--pbx: 3px;--pby: -3px;--pbd: .15s;--pex: -24px}.border{border:1px solid black;padding:1rem}.mb1{margin-bottom:1rem}.flex-r{flex-direction:row}@media screen and (max-width:768px){body{overflow:visible}#root{display:block}.container{height:100%}.mw-90{max-width:95%}.query-selection-list{flex-wrap:wrap;justify-content:center}.query-heading{text-align:center}.side-nav.open{width:100%}.menu-toggle.open{display:none}.side-nav .nav-menu{width:100%}} diff --git a/assets/index-3c66a909.js b/assets/index-3c66a909.js deleted file mode 100644 index 0ceed2d..0000000 --- a/assets/index-3c66a909.js +++ /dev/null @@ -1,1044 +0,0 @@ -function Ig(e,t){for(var n=0;nr[d]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const o of d)if(o.type==="childList")for(const p of o.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function n(d){const o={};return d.integrity&&(o.integrity=d.integrity),d.referrerPolicy&&(o.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?o.credentials="include":d.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(d){if(d.ep)return;d.ep=!0;const o=n(d);fetch(d.href,o)}})();var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh={exports:{}},hs={},Oh={exports:{}},he={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Fi=Symbol.for("react.element"),Ng=Symbol.for("react.portal"),Fg=Symbol.for("react.fragment"),Pg=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),Hg=Symbol.for("react.provider"),Wg=Symbol.for("react.context"),zg=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Ug=Symbol.for("react.memo"),Vg=Symbol.for("react.lazy"),Ju=Symbol.iterator;function Gg(e){return e===null||typeof e!="object"?null:(e=Ju&&e[Ju]||e["@@iterator"],typeof e=="function"?e:null)}var Ih={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dh=Object.assign,Nh={};function Dr(e,t,n){this.props=e,this.context=t,this.refs=Nh,this.updater=n||Ih}Dr.prototype.isReactComponent={};Dr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fh(){}Fh.prototype=Dr.prototype;function kl(e,t,n){this.props=e,this.context=t,this.refs=Nh,this.updater=n||Ih}var xl=kl.prototype=new Fh;xl.constructor=kl;Dh(xl,Dr.prototype);xl.isPureReactComponent=!0;var Zu=Array.isArray,Ph=Object.prototype.hasOwnProperty,Ll={current:null},Bh={key:!0,ref:!0,__self:!0,__source:!0};function Hh(e,t,n){var r,d={},o=null,p=null;if(t!=null)for(r in t.ref!==void 0&&(p=t.ref),t.key!==void 0&&(o=""+t.key),t)Ph.call(t,r)&&!Bh.hasOwnProperty(r)&&(d[r]=t[r]);var m=arguments.length-2;if(m===1)d.children=n;else if(1>>1,U=O[B];if(0>>1;Bd(j,F))Vd(Y,j)?(O[B]=Y,O[V]=F,B=V):(O[B]=j,O[P]=F,B=P);else if(Vd(Y,F))O[B]=Y,O[V]=F,B=V;else break e}}return D}function d(O,D){var F=O.sortIndex-D.sortIndex;return F!==0?F:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var p=Date,m=p.now();e.unstable_now=function(){return p.now()-m}}var c=[],f=[],s=1,i=null,l=3,u=!1,a=!1,h=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var D=n(f);D!==null;){if(D.callback===null)r(f);else if(D.startTime<=O)r(f),D.sortIndex=D.expirationTime,t(c,D);else break;D=n(f)}}function S(O){if(h=!1,b(O),!a)if(n(c)!==null)a=!0,R(C);else{var D=n(f);D!==null&&I(S,D.startTime-O)}}function C(O,D){a=!1,h&&(h=!1,v(A),A=-1),u=!0;var F=l;try{for(b(D),i=n(c);i!==null&&(!(i.expirationTime>D)||O&&!E());){var B=i.callback;if(typeof B=="function"){i.callback=null,l=i.priorityLevel;var U=B(i.expirationTime<=D);D=e.unstable_now(),typeof U=="function"?i.callback=U:i===n(c)&&r(c),b(D)}else r(c);i=n(c)}if(i!==null)var H=!0;else{var P=n(f);P!==null&&I(S,P.startTime-D),H=!1}return H}finally{i=null,l=F,u=!1}}var w=!1,k=null,A=-1,x=5,_=-1;function E(){return!(e.unstable_now()-_O||125B?(O.sortIndex=F,t(f,O),n(c)===null&&O===n(f)&&(h?(v(A),A=-1):h=!0,I(S,F-B))):(O.sortIndex=U,t(c,O),a||u||(a=!0,R(C))),O},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(O){var D=l;return function(){var F=l;l=D;try{return O.apply(this,arguments)}finally{l=F}}}})(Vh);Uh.exports=Vh;var im=Uh.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gh=J,mt=im;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_a=Object.prototype.hasOwnProperty,om=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ec={},tc={};function sm(e){return _a.call(tc,e)?!0:_a.call(ec,e)?!1:om.test(e)?tc[e]=!0:(ec[e]=!0,!1)}function am(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lm(e,t,n,r){if(t===null||typeof t>"u"||am(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,n,r,d,o,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=d,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=p}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rl=/[\-:]([a-z])/g;function Ml(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Rl,Ml);Xe[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rl,Ml);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rl,Ml);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ol(e,t,n,r){var d=Xe.hasOwnProperty(t)?Xe[t]:null;(d!==null?d.type!==0:r||!(2m||d[p]!==o[m]){var c=` -`+d[p].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=p&&0<=m);break}}}finally{Gs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ii(e):""}function um(e){switch(e.tag){case 5:return ii(e.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 2:case 15:return e=Ks(e.type,!1),e;case 11:return e=Ks(e.type.render,!1),e;case 1:return e=Ks(e.type,!0),e;default:return""}}function La(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case lr:return"Fragment";case ar:return"Portal";case Aa:return"Profiler";case Il:return"StrictMode";case ka:return"Suspense";case xa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yh:return(e.displayName||"Context")+".Consumer";case Qh:return(e._context.displayName||"Context")+".Provider";case Dl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nl:return t=e.displayName||null,t!==null?t:La(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return La(e(t))}catch{}}return null}function cm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return La(t);case 8:return t===Il?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hm(e){var t=Jh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var d=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(p){r=""+p,o.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){e._valueTracker||(e._valueTracker=hm(e))}function Zh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Do(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ta(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qh(e,t){t=t.checked,t!=null&&Ol(e,"checked",t,!1)}function Ra(e,t){qh(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ma(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ma(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ic(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ma(e,t,n){(t!=="number"||Do(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function wr(e,t,n,r){if(e=e.options,t){t={};for(var d=0;d"+t.valueOf().toString()+"",t=ro.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var li={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dm=["Webkit","ms","Moz","O"];Object.keys(li).forEach(function(e){dm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),li[t]=li[e]})});function rd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||li.hasOwnProperty(e)&&li[e]?(""+t).trim():t+"px"}function id(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,d=rd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,d):e[n]=d}}var fm=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Da(e,t){if(t){if(fm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Na(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fa=null;function Fl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pa=null,Sr=null,Cr=null;function ac(e){if(e=Hi(e)){if(typeof Pa!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=ms(t),Pa(e.stateNode,e.type,t))}}function od(e){Sr?Cr?Cr.push(e):Cr=[e]:Sr=e}function sd(){if(Sr){var e=Sr,t=Cr;if(Cr=Sr=null,ac(e),t)for(e=0;e>>=0,e===0?32:31-(Em(e)/_m|0)|0}var io=64,oo=4194304;function si(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,d=e.suspendedLanes,o=e.pingedLanes,p=n&268435455;if(p!==0){var m=p&~d;m!==0?r=si(m):(o&=p,o!==0&&(r=si(o)))}else p=n&~d,p!==0?r=si(p):o!==0&&(r=si(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&d)&&(d=r&-r,o=t&-t,d>=o||d===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Lm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ci),mc=String.fromCharCode(32),vc=!1;function Ad(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ur=!1;function ov(e,t){switch(e){case"compositionend":return kd(t);case"keypress":return t.which!==32?null:(vc=!0,mc);case"textInput":return e=t.data,e===mc&&vc?null:e;default:return null}}function sv(e,t){if(ur)return e==="compositionend"||!Vl&&Ad(e,t)?(e=Ed(),bo=zl=vn=null,ur=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cc(n)}}function Rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Md(){for(var e=window,t=Do();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Do(e.document)}return t}function Gl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gv(e){var t=Md(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rd(n.ownerDocument.documentElement,n)){if(r!==null&&Gl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var d=n.textContent.length,o=Math.min(r.start,d);r=r.end===void 0?o:Math.min(r.end,d),!e.extend&&o>r&&(d=r,r=o,o=d),d=bc(n,o);var p=bc(n,r);d&&p&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(d.node,d.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,cr=null,Ua=null,di=null,Va=!1;function $c(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Va||cr==null||cr!==Do(r)||(r=cr,"selectionStart"in r&&Gl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&Ei(di,r)||(di=r,r=zo(Ua,"onSelect"),0fr||(e.current=Ja[fr],Ja[fr]=null,fr--)}function Se(e,t){fr++,Ja[fr]=e.current,e.current=t}var Tn={},tt=Mn(Tn),ut=Mn(!1),Kn=Tn;function Ar(e,t){var n=e.type.contextTypes;if(!n)return Tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var d={},o;for(o in n)d[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=d),d}function ct(e){return e=e.childContextTypes,e!=null}function Uo(){Ee(ut),Ee(tt)}function Tc(e,t,n){if(tt.current!==Tn)throw Error(Z(168));Se(tt,t),Se(ut,n)}function Wd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var d in r)if(!(d in t))throw Error(Z(108,cm(e)||"Unknown",d));return Re({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,Kn=tt.current,Se(tt,e),Se(ut,ut.current),!0}function Rc(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=Wd(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,Ee(ut),Ee(tt),Se(tt,e)):Ee(ut),Se(ut,n)}var Xt=null,vs=!1,aa=!1;function zd(e){Xt===null?Xt=[e]:Xt.push(e)}function kv(e){vs=!0,zd(e)}function On(){if(!aa&&Xt!==null){aa=!0;var e=0,t=ve;try{var n=Xt;for(ve=1;e>=p,d-=p,Jt=1<<32-It(t)+d|n<A?(x=k,k=null):x=k.sibling;var _=l(v,k,b[A],S);if(_===null){k===null&&(k=x);break}e&&k&&_.alternate===null&&t(v,k),y=o(_,y,A),w===null?C=_:w.sibling=_,w=_,k=x}if(A===b.length)return n(v,k),Ae&&Bn(v,A),C;if(k===null){for(;AA?(x=k,k=null):x=k.sibling;var E=l(v,k,_.value,S);if(E===null){k===null&&(k=x);break}e&&k&&E.alternate===null&&t(v,k),y=o(E,y,A),w===null?C=E:w.sibling=E,w=E,k=x}if(_.done)return n(v,k),Ae&&Bn(v,A),C;if(k===null){for(;!_.done;A++,_=b.next())_=i(v,_.value,S),_!==null&&(y=o(_,y,A),w===null?C=_:w.sibling=_,w=_);return Ae&&Bn(v,A),C}for(k=r(v,k);!_.done;A++,_=b.next())_=u(k,v,A,_.value,S),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?A:_.key),y=o(_,y,A),w===null?C=_:w.sibling=_,w=_);return e&&k.forEach(function(M){return t(v,M)}),Ae&&Bn(v,A),C}function g(v,y,b,S){if(typeof b=="object"&&b!==null&&b.type===lr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case to:e:{for(var C=b.key,w=y;w!==null;){if(w.key===C){if(C=b.type,C===lr){if(w.tag===7){n(v,w.sibling),y=d(w,b.props.children),y.return=v,v=y;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===fn&&Pc(C)===w.type){n(v,w.sibling),y=d(w,b.props),y.ref=ei(v,w,b),y.return=v,v=y;break e}n(v,w);break}else t(v,w);w=w.sibling}b.type===lr?(y=Gn(b.props.children,v.mode,S,b.key),y.return=v,v=y):(S=To(b.type,b.key,b.props,null,v.mode,S),S.ref=ei(v,y,b),S.return=v,v=S)}return p(v);case ar:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),y=d(y,b.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=ga(b,v.mode,S),y.return=v,v=y}return p(v);case fn:return w=b._init,g(v,y,w(b._payload),S)}if(oi(b))return a(v,y,b,S);if(Yr(b))return h(v,y,b,S);fo(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),y=d(y,b),y.return=v,v=y):(n(v,y),y=pa(b,v.mode,S),y.return=v,v=y),p(v)):n(v,y)}return g}var xr=Xd(!0),Jd=Xd(!1),Wi={},zt=Mn(Wi),xi=Mn(Wi),Li=Mn(Wi);function Un(e){if(e===Wi)throw Error(Z(174));return e}function tu(e,t){switch(Se(Li,t),Se(xi,e),Se(zt,Wi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ia(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ia(t,e)}Ee(zt),Se(zt,t)}function Lr(){Ee(zt),Ee(xi),Ee(Li)}function Zd(e){Un(Li.current);var t=Un(zt.current),n=Ia(t,e.type);t!==n&&(Se(xi,e),Se(zt,n))}function nu(e){xi.current===e&&(Ee(zt),Ee(xi))}var Le=Mn(0);function Jo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=[];function ru(){for(var e=0;en?n:4,e(!0);var r=ua.transition;ua.transition={};try{e(!1),t()}finally{ve=n,ua.transition=r}}function gf(){return kt().memoizedState}function Rv(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mf(e))vf(t,n);else if(n=Gd(e,t,n,r),n!==null){var d=it();Dt(n,e,r,d),yf(n,t,r)}}function Mv(e,t,n){var r=An(e),d={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mf(e))vf(t,d);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var p=t.lastRenderedState,m=o(p,n);if(d.hasEagerState=!0,d.eagerState=m,Nt(m,p)){var c=t.interleaved;c===null?(d.next=d,ql(t)):(d.next=c.next,c.next=d),t.interleaved=d;return}}catch{}finally{}n=Gd(e,t,d,r),n!==null&&(d=it(),Dt(n,e,r,d),yf(n,t,r))}}function mf(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function vf(e,t){fi=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bl(e,n)}}var qo={readContext:At,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Ov={readContext:At,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Hc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ao(4194308,4,cf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ao(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rv.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Bc,useDebugValue:lu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Bc(!1),t=e[0];return e=Tv.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,d=Pt();if(Ae){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),Ue===null)throw Error(Z(349));Yn&30||tf(r,t,n)}d.memoizedState=n;var o={value:n,getSnapshot:t};return d.queue=o,Hc(rf.bind(null,r,o,e),[e]),r.flags|=2048,Mi(9,nf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Ue.identifierPrefix;if(Ae){var n=Zt,r=Jt;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ti++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=p.createElement(n,{is:r.is}):(e=p.createElement(n),n==="select"&&(p=e,r.multiple?p.multiple=!0:r.size&&(p.size=r.size))):e=p.createElementNS(e,n),e[Bt]=t,e[ki]=r,kf(e,t,!1,!1),t.stateNode=e;e:{switch(p=Na(n,r),n){case"dialog":$e("cancel",e),$e("close",e),d=r;break;case"iframe":case"object":case"embed":$e("load",e),d=r;break;case"video":case"audio":for(d=0;dRr&&(t.flags|=128,r=!0,ti(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jo(p),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!Ae)return qe(t),null}else 2*De()-o.renderingStartTime>Rr&&n!==1073741824&&(t.flags|=128,r=!0,ti(o,!1),t.lanes=4194304);o.isBackwards?(p.sibling=t.child,t.child=p):(n=o.last,n!==null?n.sibling=p:t.child=p,o.last=p)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=Le.current,Se(Le,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ft&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function Wv(e,t){switch(Ql(t),t.tag){case 1:return ct(t.type)&&Uo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lr(),Ee(ut),Ee(tt),ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nu(t),null;case 13:if(Ee(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Le),null;case 4:return Lr(),null;case 10:return Zl(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var go=!1,et=!1,zv=typeof WeakSet=="function"?WeakSet:Set,te=null;function vr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function ul(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var Yc=!1;function jv(e,t){if(Ga=Ho,e=Md(),Gl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var d=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var p=0,m=-1,c=-1,f=0,s=0,i=e,l=null;t:for(;;){for(var u;i!==n||d!==0&&i.nodeType!==3||(m=p+d),i!==o||r!==0&&i.nodeType!==3||(c=p+r),i.nodeType===3&&(p+=i.nodeValue.length),(u=i.firstChild)!==null;)l=i,i=u;for(;;){if(i===e)break t;if(l===n&&++f===d&&(m=p),l===o&&++s===r&&(c=p),(u=i.nextSibling)!==null)break;i=l,l=i.parentNode}i=u}n=m===-1||c===-1?null:{start:m,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ka={focusedElem:e,selectionRange:n},Ho=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var a=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(a!==null){var h=a.memoizedProps,g=a.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Tt(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){Oe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return a=Yc,Yc=!1,a}function pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var d=r=r.next;do{if((d.tag&e)===e){var o=d.destroy;d.destroy=void 0,o!==void 0&&ul(t,n,o)}d=d.next}while(d!==r)}}function Ss(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Tf(e){var t=e.alternate;t!==null&&(e.alternate=null,Tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[ki],delete t[Xa],delete t[_v],delete t[Av])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rf(e){return e.tag===5||e.tag===3||e.tag===4}function Xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jo));else if(r!==4&&(e=e.child,e!==null))for(hl(e,t,n),e=e.sibling;e!==null;)hl(e,t,n),e=e.sibling}function dl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}var Qe=null,Rt=!1;function hn(e,t,n){for(n=n.child;n!==null;)Mf(e,t,n),n=n.sibling}function Mf(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(ds,n)}catch{}switch(n.tag){case 5:et||vr(n,t);case 6:var r=Qe,d=Rt;Qe=null,hn(e,t,n),Qe=r,Rt=d,Qe!==null&&(Rt?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(Rt?(e=Qe,n=n.stateNode,e.nodeType===8?sa(e.parentNode,n):e.nodeType===1&&sa(e,n),bi(e)):sa(Qe,n.stateNode));break;case 4:r=Qe,d=Rt,Qe=n.stateNode.containerInfo,Rt=!0,hn(e,t,n),Qe=r,Rt=d;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){d=r=r.next;do{var o=d,p=o.destroy;o=o.tag,p!==void 0&&(o&2||o&4)&&ul(n,t,p),d=d.next}while(d!==r)}hn(e,t,n);break;case 1:if(!et&&(vr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(m){Oe(n,t,m)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,hn(e,t,n),et=r):hn(e,t,n);break;default:hn(e,t,n)}}function Jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zv),t.forEach(function(r){var d=Zv.bind(null,e,r);n.has(r)||(n.add(r),r.then(d,d))})}}function Lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rd&&(d=p),r&=~o}if(r=d,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vv(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,ns=0,pe&6)throw Error(Z(331));var d=pe;for(pe|=4,te=e.current;te!==null;){var o=te,p=o.child;if(te.flags&16){var m=o.deletions;if(m!==null){for(var c=0;cDe()-du?Vn(e,0):hu|=n),ht(e,t)}function Hf(e,t){t===0&&(e.mode&1?(t=oo,oo<<=1,!(oo&130023424)&&(oo=4194304)):t=1);var n=it();e=rn(e,t),e!==null&&(Pi(e,t,n),ht(e,n))}function Jv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hf(e,n)}function Zv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,d=e.memoizedState;d!==null&&(n=d.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),Hf(e,n)}var Wf;Wf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,Bv(e,t,n);lt=!!(e.flags&131072)}else lt=!1,Ae&&t.flags&1048576&&jd(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ko(e,t),e=t.pendingProps;var d=Ar(t,tt.current);$r(t,n),d=ou(null,t,r,e,d,n);var o=su();return t.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ct(r)?(o=!0,Vo(t)):o=!1,t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,eu(t),d.updater=ys,t.stateNode=d,d._reactInternals=t,nl(t,r,e,n),t=ol(null,t,r,!0,o,n)):(t.tag=0,Ae&&o&&Kl(t),rt(null,t,d,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ko(e,t),e=t.pendingProps,d=r._init,r=d(r._payload),t.type=r,d=t.tag=ey(r),e=Tt(r,e),d){case 0:t=il(null,t,r,e,n);break e;case 1:t=Gc(null,t,r,e,n);break e;case 11:t=Uc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,Tt(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,d=t.pendingProps,d=t.elementType===r?d:Tt(r,d),il(e,t,r,d,n);case 1:return r=t.type,d=t.pendingProps,d=t.elementType===r?d:Tt(r,d),Gc(e,t,r,d,n);case 3:e:{if(Ef(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,d=o.element,Kd(e,t),Xo(t,r,null,n);var p=t.memoizedState;if(r=p.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){d=Tr(Error(Z(423)),t),t=Kc(e,t,r,n,d);break e}else if(r!==d){d=Tr(Error(Z(424)),t),t=Kc(e,t,r,n,d);break e}else for(pt=$n(t.stateNode.containerInfo.firstChild),gt=t,Ae=!0,Mt=null,n=Jd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kr(),r===d){t=on(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return Zd(t),e===null&&qa(t),r=t.type,d=t.pendingProps,o=e!==null?e.memoizedProps:null,p=d.children,Qa(r,d)?p=null:o!==null&&Qa(r,o)&&(t.flags|=32),$f(e,t),rt(e,t,p,n),t.child;case 6:return e===null&&qa(t),null;case 13:return _f(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xr(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,d=t.pendingProps,d=t.elementType===r?d:Tt(r,d),Uc(e,t,r,d,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,d=t.pendingProps,o=t.memoizedProps,p=d.value,Se(Qo,r._currentValue),r._currentValue=p,o!==null)if(Nt(o.value,p)){if(o.children===d.children&&!ut.current){t=on(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var m=o.dependencies;if(m!==null){p=o.child;for(var c=m.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=qt(-1,n&-n),c.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var s=f.pending;s===null?c.next=c:(c.next=s.next,s.next=c),f.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),el(o.return,n,t),m.lanes|=n;break}c=c.next}}else if(o.tag===10)p=o.type===t.type?null:o.child;else if(o.tag===18){if(p=o.return,p===null)throw Error(Z(341));p.lanes|=n,m=p.alternate,m!==null&&(m.lanes|=n),el(p,n,t),p=o.sibling}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===t){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}rt(e,t,d.children,n),t=t.child}return t;case 9:return d=t.type,r=t.pendingProps.children,$r(t,n),d=At(d),r=r(d),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,d=Tt(r,t.pendingProps),d=Tt(r.type,d),Vc(e,t,r,d,n);case 15:return Cf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,d=t.pendingProps,d=t.elementType===r?d:Tt(r,d),ko(e,t),t.tag=1,ct(r)?(e=!0,Vo(t)):e=!1,$r(t,n),Yd(t,r,d),nl(t,r,d,n),ol(null,t,r,!0,e,n);case 19:return Af(e,t,n);case 22:return bf(e,t,n)}throw Error(Z(156,t.tag))};function zf(e,t){return fd(e,t)}function qv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $t(e,t,n,r){return new qv(e,t,n,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ey(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dl)return 11;if(e===Nl)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=$t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function To(e,t,n,r,d,o){var p=2;if(r=e,typeof e=="function")mu(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case lr:return Gn(n.children,d,o,t);case Il:p=8,d|=8;break;case Aa:return e=$t(12,n,t,d|2),e.elementType=Aa,e.lanes=o,e;case ka:return e=$t(13,n,t,d),e.elementType=ka,e.lanes=o,e;case xa:return e=$t(19,n,t,d),e.elementType=xa,e.lanes=o,e;case Xh:return bs(n,d,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qh:p=10;break e;case Yh:p=9;break e;case Dl:p=11;break e;case Nl:p=14;break e;case fn:p=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=$t(p,n,t,d),t.elementType=e,t.type=r,t.lanes=o,t}function Gn(e,t,n,r){return e=$t(7,e,r,t),e.lanes=n,e}function bs(e,t,n,r){return e=$t(22,e,r,t),e.elementType=Xh,e.lanes=n,e.stateNode={isHidden:!1},e}function pa(e,t,n){return e=$t(6,e,null,t),e.lanes=n,e}function ga(e,t,n){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ty(e,t,n,r,d){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ys(0),this.expirationTimes=Ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ys(0),this.identifierPrefix=r,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function vu(e,t,n,r,d,o,p,m,c){return e=new ty(e,t,n,m,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=$t(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eu(o),e}function ny(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gf)}catch(e){console.error(e)}}Gf(),jh.exports=vt;var ay=jh.exports,oh=ay;Ea.createRoot=oh.createRoot,Ea.hydrateRoot=oh.hydrateRoot;/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uy(){return Math.random().toString(36).substr(2,8)}function ah(e,t){return{usr:e.state,key:e.key,idx:t}}function vl(e,t,n,r){return n===void 0&&(n=null),Ii({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pr(t):t,{state:n,key:t&&t.key||r||uy()})}function os(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Pr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function cy(e,t,n,r){r===void 0&&(r={});let{window:d=document.defaultView,v5Compat:o=!1}=r,p=d.history,m=wn.Pop,c=null,f=s();f==null&&(f=0,p.replaceState(Ii({},p.state,{idx:f}),""));function s(){return(p.state||{idx:null}).idx}function i(){m=wn.Pop;let g=s(),v=g==null?null:g-f;f=g,c&&c({action:m,location:h.location,delta:v})}function l(g,v){m=wn.Push;let y=vl(h.location,g,v);n&&n(y,g),f=s()+1;let b=ah(y,f),S=h.createHref(y);try{p.pushState(b,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;d.location.assign(S)}o&&c&&c({action:m,location:h.location,delta:1})}function u(g,v){m=wn.Replace;let y=vl(h.location,g,v);n&&n(y,g),f=s();let b=ah(y,f),S=h.createHref(y);p.replaceState(b,"",S),o&&c&&c({action:m,location:h.location,delta:0})}function a(g){let v=d.location.origin!=="null"?d.location.origin:d.location.href,y=typeof g=="string"?g:os(g);return Pe(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let h={get action(){return m},get location(){return e(d,p)},listen(g){if(c)throw new Error("A history only accepts one active listener");return d.addEventListener(sh,i),c=g,()=>{d.removeEventListener(sh,i),c=null}},createHref(g){return t(d,g)},createURL:a,encodeLocation(g){let v=a(g);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:l,replace:u,go(g){return p.go(g)}};return h}var lh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lh||(lh={}));function hy(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Pr(t):t,d=bu(r.pathname||"/",n);if(d==null)return null;let o=Kf(e);dy(o);let p=null;for(let m=0;p==null&&m{let c={relativePath:m===void 0?o.path||"":m,caseSensitive:o.caseSensitive===!0,childrenIndex:p,route:o};c.relativePath.startsWith("/")&&(Pe(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=xn([r,c.relativePath]),s=n.concat(c);o.children&&o.children.length>0&&(Pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Kf(o.children,t,s,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:wy(f,o.index),routesMeta:s})};return e.forEach((o,p)=>{var m;if(o.path===""||!((m=o.path)!=null&&m.includes("?")))d(o,p);else for(let c of Qf(o.path))d(o,p,c)}),t}function Qf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,d=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return d?[o,""]:[o];let p=Qf(r.join("/")),m=[];return m.push(...p.map(c=>c===""?o:[o,c].join("/"))),d&&m.push(...p),m.map(c=>e.startsWith("/")&&c===""?"/":c)}function dy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Sy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fy=/^:\w+$/,py=3,gy=2,my=1,vy=10,yy=-2,uh=e=>e==="*";function wy(e,t){let n=e.split("/"),r=n.length;return n.some(uh)&&(r+=yy),t&&(r+=gy),n.filter(d=>!uh(d)).reduce((d,o)=>d+(fy.test(o)?py:o===""?my:vy),r)}function Sy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,d)=>r===t[d])?e[e.length-1]-t[t.length-1]:0}function Cy(e,t){let{routesMeta:n}=e,r={},d="/",o=[];for(let p=0;p{if(s==="*"){let l=m[i]||"";p=o.slice(0,o.length-l.length).replace(/(.)\/+$/,"$1")}return f[s]=_y(m[i]||"",s),f},{}),pathname:o,pathnameBase:p,pattern:e}}function $y(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],d="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(p,m)=>(r.push(m),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),d+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?d+="\\/*$":e!==""&&e!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,t?void 0:"i"),r]}function Ey(e){try{return decodeURI(e)}catch(t){return Cu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _y(e,t){try{return decodeURIComponent(e)}catch(n){return Cu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function bu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ay(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:d=""}=typeof e=="string"?Pr(e):e;return{pathname:n?n.startsWith("/")?n:ky(n,t):t,search:Ly(r),hash:Ty(d)}}function ky(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(d=>{d===".."?n.length>1&&n.pop():d!=="."&&n.push(d)}),n.length>1?n.join("/"):"/"}function ma(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Yf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xf(e,t,n,r){r===void 0&&(r=!1);let d;typeof e=="string"?d=Pr(e):(d=Ii({},e),Pe(!d.pathname||!d.pathname.includes("?"),ma("?","pathname","search",d)),Pe(!d.pathname||!d.pathname.includes("#"),ma("#","pathname","hash",d)),Pe(!d.search||!d.search.includes("#"),ma("#","search","hash",d)));let o=e===""||d.pathname==="",p=o?"/":d.pathname,m;if(r||p==null)m=n;else{let i=t.length-1;if(p.startsWith("..")){let l=p.split("/");for(;l[0]==="..";)l.shift(),i-=1;d.pathname=l.join("/")}m=i>=0?t[i]:"/"}let c=Ay(d,m),f=p&&p!=="/"&&p.endsWith("/"),s=(o||p===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||s)&&(c.pathname+="/"),c}const xn=e=>e.join("/").replace(/\/\/+/g,"/"),xy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ly=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ty=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ry(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Jf=["post","put","patch","delete"];new Set(Jf);const My=["get",...Jf];new Set(My);/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ss(){return ss=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.pathnameBase)),p=J.useRef(!1);return qf(()=>{p.current=!0}),J.useCallback(function(c,f){if(f===void 0&&(f={}),!p.current)return;if(typeof c=="number"){n.go(c);return}let s=Xf(c,JSON.parse(o),d,f.relative==="path");e==null&&t!=="/"&&(s.pathname=s.pathname==="/"?t:xn([t,s.pathname])),(f.replace?n.replace:n.push)(s,f.state,f)},[t,n,o,d,e])}function ep(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=J.useContext(tr),{pathname:d}=ji(),o=JSON.stringify(Yf(r).map(p=>p.pathnameBase));return J.useMemo(()=>Xf(e,JSON.parse(o),d,n==="path"),[e,o,d,n])}function Fy(e,t){return Py(e,t)}function Py(e,t,n){zi()||Pe(!1);let{navigator:r}=J.useContext(Br),{matches:d}=J.useContext(tr),o=d[d.length-1],p=o?o.params:{};o&&o.pathname;let m=o?o.pathnameBase:"/";o&&o.route;let c=ji(),f;if(t){var s;let h=typeof t=="string"?Pr(t):t;m==="/"||(s=h.pathname)!=null&&s.startsWith(m)||Pe(!1),f=h}else f=c;let i=f.pathname||"/",l=m==="/"?i:i.slice(m.length)||"/",u=hy(e,{pathname:l}),a=jy(u&&u.map(h=>Object.assign({},h,{params:Object.assign({},p,h.params),pathname:xn([m,r.encodeLocation?r.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?m:xn([m,r.encodeLocation?r.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),d,n);return t&&a?J.createElement(ks.Provider,{value:{location:ss({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:wn.Pop}},a):a}function By(){let e=Ky(),t=Ry(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},t),n?J.createElement("pre",{style:d},n):null,o)}const Hy=J.createElement(By,null);class Wy extends J.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?J.createElement(tr.Provider,{value:this.props.routeContext},J.createElement(Zf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zy(e){let{routeContext:t,match:n,children:r}=e,d=J.useContext($u);return d&&d.static&&d.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=n.route.id),J.createElement(tr.Provider,{value:t},r)}function jy(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var d;if((d=n)!=null&&d.errors)e=n.matches;else return null}let o=e,p=(r=n)==null?void 0:r.errors;if(p!=null){let m=o.findIndex(c=>c.route.id&&(p==null?void 0:p[c.route.id]));m>=0||Pe(!1),o=o.slice(0,Math.min(o.length,m+1))}return o.reduceRight((m,c,f)=>{let s=c.route.id?p==null?void 0:p[c.route.id]:null,i=null;n&&(i=c.route.errorElement||Hy);let l=t.concat(o.slice(0,f+1)),u=()=>{let a;return s?a=i:c.route.Component?a=J.createElement(c.route.Component,null):c.route.element?a=c.route.element:a=m,J.createElement(zy,{match:c,routeContext:{outlet:m,matches:l,isDataRoute:n!=null},children:a})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?J.createElement(Wy,{location:n.location,revalidation:n.revalidation,component:i,error:s,children:u(),routeContext:{outlet:null,matches:l,isDataRoute:!0}}):u()},null)}var tp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tp||{}),as=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(as||{});function Uy(e){let t=J.useContext($u);return t||Pe(!1),t}function Vy(e){let t=J.useContext(Oy);return t||Pe(!1),t}function Gy(e){let t=J.useContext(tr);return t||Pe(!1),t}function np(e){let t=Gy(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function Ky(){var e;let t=J.useContext(Zf),n=Vy(as.UseRouteError),r=np(as.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Qy(){let{router:e}=Uy(tp.UseNavigateStable),t=np(as.UseNavigateStable),n=J.useRef(!1);return qf(()=>{n.current=!0}),J.useCallback(function(d,o){o===void 0&&(o={}),n.current&&(typeof d=="number"?e.navigate(d):e.navigate(d,ss({fromRouteId:t},o)))},[e,t])}function Ro(e){Pe(!1)}function Yy(e){let{basename:t="/",children:n=null,location:r,navigationType:d=wn.Pop,navigator:o,static:p=!1}=e;zi()&&Pe(!1);let m=t.replace(/^\/*/,"/"),c=J.useMemo(()=>({basename:m,navigator:o,static:p}),[m,o,p]);typeof r=="string"&&(r=Pr(r));let{pathname:f="/",search:s="",hash:i="",state:l=null,key:u="default"}=r,a=J.useMemo(()=>{let h=bu(f,m);return h==null?null:{location:{pathname:h,search:s,hash:i,state:l,key:u},navigationType:d}},[m,f,s,i,l,u,d]);return a==null?null:J.createElement(Br.Provider,{value:c},J.createElement(ks.Provider,{children:n,value:a}))}function Xy(e){let{children:t,location:n}=e;return Fy(yl(t),n)}new Promise(()=>{});function yl(e,t){t===void 0&&(t=[]);let n=[];return J.Children.forEach(e,(r,d)=>{if(!J.isValidElement(r))return;let o=[...t,d];if(r.type===J.Fragment){n.push.apply(n,yl(r.props.children,o));return}r.type!==Ro&&Pe(!1),!r.props.index||!r.props.children||Pe(!1);let p={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=yl(r.props.children,o)),n.push(p)}),n}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[d]=e[d]);return n}function Zy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qy(e,t){return e.button===0&&(!t||t==="_self")&&!Zy(e)}const ew=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],tw="startTransition",ch=Jg[tw];function nw(e){let{basename:t,children:n,future:r,window:d}=e,o=J.useRef();o.current==null&&(o.current=ly({window:d,v5Compat:!0}));let p=o.current,[m,c]=J.useState({action:p.action,location:p.location}),{v7_startTransition:f}=r||{},s=J.useCallback(i=>{f&&ch?ch(()=>c(i)):c(i)},[c,f]);return J.useLayoutEffect(()=>p.listen(s),[p,s]),J.createElement(Yy,{basename:t,children:n,location:m.location,navigationType:m.action,navigator:p})}const rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ow=J.forwardRef(function(t,n){let{onClick:r,relative:d,reloadDocument:o,replace:p,state:m,target:c,to:f,preventScrollReset:s}=t,i=Jy(t,ew),{basename:l}=J.useContext(Br),u,a=!1;if(typeof f=="string"&&iw.test(f)&&(u=f,rw))try{let y=new URL(window.location.href),b=f.startsWith("//")?new URL(y.protocol+f):new URL(f),S=bu(b.pathname,l);b.origin===y.origin&&S!=null?f=S+b.search+b.hash:a=!0}catch{}let h=Iy(f,{relative:d}),g=sw(f,{replace:p,state:m,target:c,preventScrollReset:s,relative:d});function v(y){r&&r(y),y.defaultPrevented||g(y)}return J.createElement("a",wl({},i,{href:u||h,onClick:a||o?r:v,ref:n,target:c}))});var hh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(hh||(hh={}));var dh;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dh||(dh={}));function sw(e,t){let{target:n,replace:r,state:d,preventScrollReset:o,relative:p}=t===void 0?{}:t,m=Dy(),c=ji(),f=ep(e,{relative:p});return J.useCallback(s=>{if(qy(s,n)){s.preventDefault();let i=r!==void 0?r:os(c)===os(f);m(e,{replace:i,state:d,preventScrollReset:o,relative:p})}},[c,m,f,r,d,n,e,o,p])}var Mr={},Eu={},rp={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var d=function(s,i,l){if(typeof s!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(l=i),d.modules[s]||(d.payloads[s]=l,d.modules[s]=null)};d.modules={},d.payloads={};var o=function(s,i,l){if(typeof i=="string"){var u=c(s,i);if(u!=null)return l&&l(),u}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var a=[],h=0,g=i.length;hc.length)&&(m=c.length),m-=p.length;var f=c.indexOf(p,m);return f!==-1&&f===m}),String.prototype.repeat||o(String.prototype,"repeat",function(p){for(var m="",c=this;p>0;)p&1&&(m+=c),(p>>=1)&&(c+=c);return m}),String.prototype.includes||o(String.prototype,"includes",function(p,m){return this.indexOf(p,m)!=-1}),Object.assign||(Object.assign=function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(p),c=1;c>>0,f=arguments[1],s=f>>0,i=s<0?Math.max(c+s,0):Math.min(s,c),l=arguments[2],u=l===void 0?c:l>>0,a=u<0?Math.max(c+u,0):Math.min(u,c);i0;)c&1&&(f+=m),(c>>=1)&&(m+=m);return f};var o=/^\s\s*/,p=/\s\s*$/;r.stringTrimLeft=function(m){return m.replace(o,"")},r.stringTrimRight=function(m){return m.replace(p,"")},r.copyObject=function(m){var c={};for(var f in m)c[f]=m[f];return c},r.copyArray=function(m){for(var c=[],f=0,s=m.length;f=0?parseFloat((m.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((m.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=m.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(m.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(m.split(" Chrome/")[1])||void 0,r.isEdge=parseFloat(m.split(" Edge/")[1])||void 0,r.isAIR=m.indexOf("AdobeAIR")>=0,r.isAndroid=m.indexOf("Android")>=0,r.isChromeOS=m.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(m)&&!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(n,r,d){var o=n("./useragent"),p="http://www.w3.org/1999/xhtml";r.buildDom=function l(u,a,h){if(typeof u=="string"&&u){var g=document.createTextNode(u);return a&&a.appendChild(g),g}if(!Array.isArray(u))return u&&u.appendChild&&a&&a.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var v=[],y=0;y"u")){if(c){if(a)f();else if(a===!1)return c.push([l,u])}if(!m){var h=a;!a||!a.getRootNode?h=document:(h=a.getRootNode(),(!h||h==a)&&(h=document));var g=h.ownerDocument||h;if(u&&r.hasCssString(u,h))return null;u&&(l+=` -/*# sourceURL=ace/css/`+u+" */");var v=r.createElement("style");v.appendChild(g.createTextNode(l)),u&&(v.id=u),h==g&&(h=r.getDocumentHead(g)),h.insertBefore(v,h.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(l,u){r.buildDom(["link",{rel:"stylesheet",href:l}],r.getDocumentHead(u))},r.scrollbarWidth=function(l){var u=r.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var a=r.createElement("ace_outer"),h=a.style;h.position="absolute",h.left="-10000px",h.overflow="hidden",h.width="200px",h.minWidth="0px",h.height="150px",h.display="block",a.appendChild(u);var g=l&&l.documentElement||document&&document.documentElement;if(!g)return 0;g.appendChild(a);var v=u.offsetWidth;h.overflow="scroll";var y=u.offsetWidth;return v===y&&(y=a.clientWidth),g.removeChild(a),v-y},r.computedStyle=function(l,u){return window.getComputedStyle(l,"")||{}},r.setStyle=function(l,u,a){l[u]!==a&&(l[u]=a)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=o.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,o.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");r.HI_DPI&&i.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!o.isEdge&&typeof i.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),i=null}r.HAS_CSS_TRANSFORMS?r.translate=function(l,u,a){l.style.transform="translate("+Math.round(u)+"px, "+Math.round(a)+"px)"}:r.translate=function(l,u,a){l.style.top=Math.round(a)+"px",l.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,d){/* -* based on code from: -* -* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. -* Available via the MIT or new BSD license. -* see: http://github.com/jrburke/requirejs for details -*/var o=n("./dom");r.get=function(p,m){var c=new XMLHttpRequest;c.open("GET",p,!0),c.onreadystatechange=function(){c.readyState===4&&m(c.responseText)},c.send(null)},r.loadScript=function(p,m){var c=o.getDocumentHead(),f=document.createElement("script");f.src=p,c.appendChild(f),f.onload=f.onreadystatechange=function(s,i){(i||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,i||m())}},r.qualifyURL=function(p){var m=document.createElement("a");return m.href=p,m.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,d){r.inherits=function(o,p){o.super_=p,o.prototype=Object.create(p.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(o,p){for(var m in p)o[m]=p[m];return o},r.implement=function(o,p){r.mixin(o,p)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,d){var o={},p=function(){this.propagationStopped=!0},m=function(){this.defaultPrevented=!0};o._emit=o._dispatchEvent=function(c,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[c]||[],i=this._defaultHandlers[c];if(!(!s.length&&!i)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=c),f.stopPropagation||(f.stopPropagation=p),f.preventDefault||(f.preventDefault=m),s=s.slice();for(var l=0;l1&&(v=h[h.length-2]);var b=f[a+"Path"];return b==null?b=f.basePath:g=="/"&&(a=g=""),b&&b.slice(-1)!="/"&&(b+="/"),b+a+g+v+this.get("suffix")},r.setModuleUrl=function(u,a){return f.$moduleUrls[u]=a};var s=function(u,a){if(u==="ace/theme/textmate"||u==="./theme/textmate")return a(null,n("./theme/textmate"));if(i)return i(u,a);console.error("loader is not configured")},i;r.setLoader=function(u){i=u},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(u,a){var h,g;Array.isArray(u)&&(g=u[0],u=u[1]);var v=function(y){if(y&&!r.$loading[u])return a&&a(y);if(r.$loading[u]||(r.$loading[u]=[]),r.$loading[u].push(a),!(r.$loading[u].length>1)){var b=function(){s(u,function(S,C){C&&(r.$loaded[u]=C),r._emit("load.module",{name:u,module:C});var w=r.$loading[u];r.$loading[u]=null,w.forEach(function(k){k&&k(C)})})};if(!r.get("packaged"))return b();p.loadScript(r.moduleUrl(u,g),b),l()}};if(r.dynamicModules[u])r.dynamicModules[u]().then(function(y){y.default?v(y.default):v(y)});else{try{h=this.$require(u)}catch{}v(h||r.$loaded[u])}},r.$require=function(u){if(typeof d.require=="function"){var a="require";return d[a](u)}},r.setModuleLoader=function(u,a){r.dynamicModules[u]=a};var l=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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"),l=function(){})};r.version="1.28.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,d){n("./lib/fixoldbrowsers");var o=n("./config");o.setLoader(function(f,s){n([f],function(i){s(null,i)})});var p=function(){return this||typeof window<"u"&&window}();d.exports=function(f){o.init=m,o.$require=n,f.require=n},m(!0);function m(f){if(!(!p||!p.document)){o.set("packaged",f||n.packaged||d.packaged||p.define&&(void 0).packaged);var s={},i="",l=document.currentScript||document._currentScript,u=l&&l.ownerDocument||document;l&&l.src&&(i=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=u.getElementsByTagName("script"),h=0;h ["+this.end.row+"/"+this.end.column+"]"},m.prototype.contains=function(c,f){return this.compare(c,f)==0},m.prototype.compareRange=function(c){var f,s=c.end,i=c.start;return f=this.compare(s.row,s.column),f==1?(f=this.compare(i.row,i.column),f==1?2:f==0?1:0):f==-1?-2:(f=this.compare(i.row,i.column),f==-1?-1:f==1?42:0)},m.prototype.comparePoint=function(c){return this.compare(c.row,c.column)},m.prototype.containsRange=function(c){return this.comparePoint(c.start)==0&&this.comparePoint(c.end)==0},m.prototype.intersects=function(c){var f=this.compareRange(c);return f==-1||f==0||f==1},m.prototype.isEnd=function(c,f){return this.end.row==c&&this.end.column==f},m.prototype.isStart=function(c,f){return this.start.row==c&&this.start.column==f},m.prototype.setStart=function(c,f){typeof c=="object"?(this.start.column=c.column,this.start.row=c.row):(this.start.row=c,this.start.column=f)},m.prototype.setEnd=function(c,f){typeof c=="object"?(this.end.column=c.column,this.end.row=c.row):(this.end.row=c,this.end.column=f)},m.prototype.inside=function(c,f){return this.compare(c,f)==0?!(this.isEnd(c,f)||this.isStart(c,f)):!1},m.prototype.insideStart=function(c,f){return this.compare(c,f)==0?!this.isEnd(c,f):!1},m.prototype.insideEnd=function(c,f){return this.compare(c,f)==0?!this.isStart(c,f):!1},m.prototype.compare=function(c,f){return!this.isMultiLine()&&c===this.start.row?fthis.end.column?1:0:cthis.end.row?1:this.start.row===c?f>=this.start.column?0:-1:this.end.row===c?f<=this.end.column?0:1:0},m.prototype.compareStart=function(c,f){return this.start.row==c&&this.start.column==f?-1:this.compare(c,f)},m.prototype.compareEnd=function(c,f){return this.end.row==c&&this.end.column==f?1:this.compare(c,f)},m.prototype.compareInside=function(c,f){return this.end.row==c&&this.end.column==f?1:this.start.row==c&&this.start.column==f?-1:this.compare(c,f)},m.prototype.clipRows=function(c,f){if(this.end.row>f)var s={row:f+1,column:0};else if(this.end.rowf)var i={row:f+1,column:0};else if(this.start.row1?(A++,A>4&&(A=1)):A=1,p.isIE){var T=Math.abs($.clientX-x)>5||Math.abs($.clientY-_)>5;(!E||T)&&(A=1),E&&clearTimeout(E),E=setTimeout(function(){E=null},S[A-1]||600),A==1&&(x=$.clientX,_=$.clientY)}if($._clicks=A,C[w]("mousedown",$),A>4)A=0;else if(A>1)return C[w](M[A],$)}Array.isArray(b)||(b=[b]),b.forEach(function($){u($,"mousedown",L,k)})};var h=function(b){return 0|(b.ctrlKey?1:0)|(b.altKey?2:0)|(b.shiftKey?4:0)|(b.metaKey?8:0)};r.getModifierString=function(b){return o.KEY_MODS[h(b)]};function g(b,S,C){var w=h(S);if(!p.isMac&&m){if(S.getModifierState&&(S.getModifierState("OS")||S.getModifierState("Win"))&&(w|=8),m.altGr)if((3&w)!=3)m.altGr=0;else return;if(C===18||C===17){var k="location"in S?S.location:S.keyLocation;if(C===17&&k===1)m[C]==1&&(c=S.timeStamp);else if(C===18&&w===3&&k===2){var A=S.timeStamp-c;A<50&&(m.altGr=!0)}}}if(C in o.MODIFIER_KEYS&&(C=-1),!w&&C===13){var k="location"in S?S.location:S.keyLocation;if(k===3&&(b(S,w,-C),S.defaultPrevented))return}if(p.isChromeOS&&w&8){if(b(S,w,C),S.defaultPrevented)return;w&=-9}return!w&&!(C in o.FUNCTION_KEYS)&&!(C in o.PRINTABLE_KEYS)?!1:b(S,w,C)}r.addCommandKeyListener=function(b,S,C){if(p.isOldGecko||p.isOpera&&!("KeyboardEvent"in window)){var w=null;u(b,"keydown",function(A){w=A.keyCode},C),u(b,"keypress",function(A){return g(S,A,w)},C)}else{var k=null;u(b,"keydown",function(A){m[A.keyCode]=(m[A.keyCode]||0)+1;var x=g(S,A,A.keyCode);return k=A.defaultPrevented,x},C),u(b,"keypress",function(A){k&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(r.stopEvent(A),k=null)},C),u(b,"keyup",function(A){m[A.keyCode]=null},C),m||(v(),u(window,"focus",v))}};function v(){m=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!p.isOldIE){var y=1;r.nextTick=function(b,S){S=S||window;var C="zero-timeout-message-"+y++,w=function(k){k.data==C&&(r.stopPropagation(k),a(S,"message",w),b())};u(S,"message",w),S.postMessage(C,"*")}}r.$idleBlocked=!1,r.onIdle=function(b,S){return setTimeout(function C(){r.$idleBlocked?setTimeout(C,100):b()},S)},r.$idleBlockId=null,r.blockIdle=function(b){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},b||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(b){setTimeout(b,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,d){var o;d.exports={lineMode:!1,pasteCancelled:function(){return o&&o>Date.now()-50?!0:o=!1},cancel:function(){o=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(n,r,d){var o=n("../lib/event"),p=n("../config").nls,m=n("../lib/useragent"),c=n("../lib/dom"),f=n("../lib/lang"),s=n("../clipboard"),i=m.isChrome<18,l=m.isIE,u=m.isChrome>63,a=400,h=n("../lib/keys"),g=h.KEY_MODS,v=m.isIOS,y=v?/\s/:/\n/,b=m.isMobile,S=function(C,w){var k=c.createElement("textarea");k.className="ace_text-input",k.setAttribute("wrap","off"),k.setAttribute("autocorrect","off"),k.setAttribute("autocapitalize","off"),k.setAttribute("spellcheck",!1),k.style.opacity="0",C.insertBefore(k,C.firstChild);var A=!1,x=!1,_=!1,E=!1,M="";b||(k.style.fontSize="1px");var L=!1,$=!1,T="",R=0,I=0,O=0,D=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,B=0;try{var U=document.activeElement===k}catch{}this.setNumberOfExtraLines=function(K){if(D=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,K<0){B=0;return}B=K},this.setAriaOptions=function(K){if(K.activeDescendant?(k.setAttribute("aria-haspopup","true"),k.setAttribute("aria-autocomplete",K.inline?"both":"list"),k.setAttribute("aria-activedescendant",K.activeDescendant)):(k.setAttribute("aria-haspopup","false"),k.setAttribute("aria-autocomplete","both"),k.removeAttribute("aria-activedescendant")),K.role&&k.setAttribute("role",K.role),K.setLabel&&(k.setAttribute("aria-roledescription",p("editor")),w.session)){var ne=w.session.selection.cursor.row;k.setAttribute("aria-label",p("Cursor at row $0",[ne+1]))}},this.setAriaOptions({role:"textbox"}),o.addListener(k,"blur",function(K){$||(w.onBlur(K),U=!1)},w),o.addListener(k,"focus",function(K){if(!$){if(U=!0,m.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(K),m.isEdge?setTimeout(P):P()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),M||u||this.$focusScroll=="browser")return k.focus({preventScroll:!0});var K=k.style.top;k.style.position="fixed",k.style.top="0px";try{var ne=k.getBoundingClientRect().top!=0}catch{return}var ie=[];if(ne)for(var ce=k.parentElement;ce&&ce.nodeType==1;)ie.push(ce),ce.setAttribute("ace_nocontext",!0),!ce.parentElement&&ce.getRootNode?ce=ce.getRootNode().host:ce=ce.parentElement;k.focus({preventScroll:!0}),ne&&ie.forEach(function(ue){ue.removeAttribute("ace_nocontext")}),setTimeout(function(){k.style.position="",k.style.top=="0px"&&(k.style.top=K)},0)},this.blur=function(){k.blur()},this.isFocused=function(){return U},w.on("beforeEndOperation",function(){var K=w.curOp,ne=K&&K.command&&K.command.name;if(ne!="insertstring"){var ie=ne&&(K.docChanged||K.selectionChanged);_&&ie&&(T=k.value="",Vt()),P()}});var H=function(K,ne){for(var ie=ne,ce=1;ce<=K-D&&ce<2*B+1;ce++)ie+=w.session.getLine(K-ce).length+1;return ie},P=v?function(K){if(!(!U||A&&!K||E)){K||(K="");var ne=` - ab`+K+`cde fg -`;ne!=k.value&&(k.value=T=ne);var ie=4,ce=4+(K.length||(w.selection.isEmpty()?0:1));(R!=ie||I!=ce)&&k.setSelectionRange(ie,ce),R=ie,I=ce}}:function(){if(!(_||E)&&!(!U&&!X)){_=!0;var K=0,ne=0,ie="";if(w.session){var ce=w.selection,ue=ce.getRange(),Ce=ce.cursor.row;Ce===F+1?(D=F+1,F=D+2*B):Ce===D-1?(F=D-1,D=F-2*B):(CeF+1)&&(D=Ce>B?Ce-B:0,F=Ce>B?Ce+B:2*B);for(var ke=[],_e=D;_e<=F;_e++)ke.push(w.session.getLine(_e));if(ie=ke.join(` -`),K=H(ue.start.row,ue.start.column),ne=H(ue.end.row,ue.end.column),ue.start.rowF){var de=w.session.getLine(F+1);ne=ue.end.row>F+1?de.length:ue.end.column,ne+=ie.length+1,ie=ie+` -`+de}else b&&Ce>0&&(ie=` -`+ie,ne+=1,K+=1);ie.length>a&&(K=T.length&&K.value===T&&T&&K.selectionEnd!==I},V=function(K){_||(A?A=!1:j(k)?(w.selectAll(),P()):b&&k.selectionStart!=R&&P())},Y=null;this.setInputHandler=function(K){Y=K},this.getInputHandler=function(){return Y};var X=!1,q=function(K,ne){if(X&&(X=!1),x)return P(),K&&w.onPaste(K),x=!1,"";for(var ie=k.selectionStart,ce=k.selectionEnd,ue=R,Ce=T.length-I,ke=K,_e=K.length-ie,ye=K.length-ce,de=0;ue>0&&T[de]==K[de];)de++,ue--;for(ke=ke.slice(de),de=1;Ce>0&&T.length-de>R-1&&T[T.length-de]==K[K.length-de];)de++,Ce--;_e-=de-1,ye-=de-1;var Ge=ke.length-de+1;if(Ge<0&&(ue=-Ge,Ge=0),ke=ke.slice(0,Ge),!ne&&!ke&&!_e&&!ue&&!Ce&&!ye)return"";E=!0;var an=!1;return m.isAndroid&&ke==". "&&(ke=" ",an=!0),ke&&!ue&&!Ce&&!_e&&!ye||L?w.onTextInput(ke):w.onTextInput(ke,{extendLeft:ue,extendRight:Ce,restoreStart:_e,restoreEnd:ye}),E=!1,T=K,R=ie,I=ce,O=ye,an?` -`:ke},re=function(K){if(_)return Ut();if(K&&K.inputType){if(K.inputType=="historyUndo")return w.execCommand("undo");if(K.inputType=="historyRedo")return w.execCommand("redo")}var ne=k.value,ie=q(ne,!0);(ne.length>a+100||y.test(ie)||b&&R<1&&R==I)&&P()},ae=function(K,ne,ie){var ce=K.clipboardData||window.clipboardData;if(!(!ce||i)){var ue=l||ie?"Text":"text/plain";try{return ne?ce.setData(ue,ne)!==!1:ce.getData(ue)}catch(Ce){if(!ie)return ae(Ce,ne,!0)}}},ge=function(K,ne){var ie=w.getCopyText();if(!ie)return o.preventDefault(K);ae(K,ie)?(v&&(P(ie),A=ie,setTimeout(function(){A=!1},10)),ne?w.onCut():w.onCopy(),o.preventDefault(K)):(A=!0,k.value=ie,k.select(),setTimeout(function(){A=!1,P(),ne?w.onCut():w.onCopy()}))},Ve=function(K){ge(K,!0)},Ie=function(K){ge(K,!1)},we=function(K){var ne=ae(K);s.pasteCancelled()||(typeof ne=="string"?(ne&&w.onPaste(ne,K),m.isIE&&setTimeout(P),o.preventDefault(K)):(k.value="",x=!0))};o.addCommandKeyListener(k,w.onCommandKey.bind(w),w),o.addListener(k,"select",V,w),o.addListener(k,"input",re,w),o.addListener(k,"cut",Ve,w),o.addListener(k,"copy",Ie,w),o.addListener(k,"paste",we,w),(!("oncut"in k)||!("oncopy"in k)||!("onpaste"in k))&&o.addListener(C,"keydown",function(K){if(!(m.isMac&&!K.metaKey||!K.ctrlKey))switch(K.keyCode){case 67:Ie(K);break;case 86:we(K);break;case 88:Ve(K);break}},w);var nt=function(K){if(!(_||!w.onCompositionStart||w.$readOnly)&&(_={},!L)){K.data&&(_.useTextareaForIME=!1),setTimeout(Ut,0),w._signal("compositionStart"),w.on("mousedown",zr);var ne=w.getSelectionRange();ne.end.row=ne.start.row,ne.end.column=ne.start.column,_.markerRange=ne,_.selectionStart=R,w.onCompositionStart(_),_.useTextareaForIME?(T=k.value="",R=0,I=0):(k.msGetInputContext&&(_.context=k.msGetInputContext()),k.getInputContext&&(_.context=k.getInputContext()))}},Ut=function(){if(!(!_||!w.onCompositionUpdate||w.$readOnly)){if(L)return zr();if(_.useTextareaForIME)w.onCompositionUpdate(k.value);else{var K=k.value;q(K),_.markerRange&&(_.context&&(_.markerRange.start.column=_.selectionStart=_.context.compositionStartOffset),_.markerRange.end.column=_.markerRange.start.column+I-_.selectionStart+O)}}},Vt=function(K){!w.onCompositionEnd||w.$readOnly||(_=!1,w.onCompositionEnd(),w.off("mousedown",zr),K&&re())};function zr(){$=!0,k.blur(),k.focus(),$=!1}var Gi=f.delayedCall(Ut,50).schedule.bind(null,null);function Ns(K){K.keyCode==27&&k.value.lengthI&&T[ye]==` -`?de=h.end:_eI&&T.slice(0,ye).split(` -`).length>2?de=h.down:ye>I&&T[ye-1]==" "?(de=h.right,Ge=g.option):(ye>I||ye==I&&I!=R&&_e==ye)&&(de=h.right),_e!==ye&&(Ge|=g.shift),de){var an=ne.onCommandKey({},Ge,de);if(!an&&ne.commands){de=h.keyCodeToString(de);var Ki=ne.commands.findKeyCommand(Ge,de);Ki&&ne.execCommand(Ki)}R=_e,I=ye,P("")}}};document.addEventListener("selectionchange",Ce),ne.on("destroy",function(){document.removeEventListener("selectionchange",Ce)})}this.destroy=function(){k.parentElement&&k.parentElement.removeChild(k)}};r.TextInput=S,r.$setUserAgentForTests=function(C,w){b=C,v=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,d){var o=n("../lib/useragent"),p=0,m=550,c=function(){function i(l){l.$clickSelection=null;var u=l.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(h){l[h]=this[h]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return i.prototype.onMouseDown=function(l){var u=l.inSelection(),a=l.getDocumentPosition();this.mousedownEvent=l;var h=this.editor,g=l.getButton();if(g!==0){var v=h.getSelectionRange(),y=v.isEmpty();(y||g==1)&&h.selection.moveToPosition(a),g==2&&(h.textInput.onContextMenu(l.domEvent),o.isMozilla||l.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!h.isFocused()&&(h.focus(),this.$focusTimeout&&!this.$clickSelection&&!h.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(l);return}return this.captureMouse(l),this.startSelect(a,l.domEvent._clicks>1),l.preventDefault()},i.prototype.startSelect=function(l,u){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(l):u||a.selection.moveToPosition(l),u||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var l,u=this.editor,a=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var h=this.$clickSelection.comparePoint(a);if(h==-1)l=this.$clickSelection.end;else if(h==1)l=this.$clickSelection.start;else{var g=s(this.$clickSelection,a);a=g.cursor,l=g.anchor}u.selection.setSelectionAnchor(l.row,l.column)}u.selection.selectToPosition(a),u.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(l){var u,a=this.editor,h=a.renderer.screenToTextCoordinates(this.x,this.y),g=a.selection[l](h.row,h.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(g.start),y=this.$clickSelection.comparePoint(g.end);if(v==-1&&y<=0)u=this.$clickSelection.end,(g.end.row!=h.row||g.end.column!=h.column)&&(h=g.start);else if(y==1&&v>=0)u=this.$clickSelection.start,(g.start.row!=h.row||g.start.column!=h.column)&&(h=g.end);else if(v==-1&&y==1)h=g.end,u=g.start;else{var b=s(this.$clickSelection,h);h=b.cursor,u=b.anchor}a.selection.setSelectionAnchor(u.row,u.column)}a.selection.selectToPosition(h),a.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var l=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(l>p||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(l){var u=l.getDocumentPosition(),a=this.editor,h=a.session,g=h.getBracketRange(u);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=a.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},i.prototype.onTripleClick=function(l){var u=l.getDocumentPosition(),a=this.editor;this.setState("selectByLines");var h=a.getSelectionRange();h.isMultiLine()&&h.contains(u.row,u.column)?(this.$clickSelection=a.selection.getLineRange(h.start.row),this.$clickSelection.end=a.selection.getLineRange(h.end.row).end):this.$clickSelection=a.selection.getLineRange(u.row),this.select()},i.prototype.onQuadClick=function(l){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(l){if(!l.getAccelKey()){l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var a=this.$lastScroll,h=l.domEvent.timeStamp,g=h-a.t,v=g?l.wheelX/g:a.vx,y=g?l.wheelY/g:a.vy;g=1&&u.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(S=!0),b<=1&&u.renderer.isScrollableBy(0,l.wheelY*l.speed)&&(S=!0),S)a.allowed=h;else if(h-a.allowed=a.length&&(a=void 0),{value:a&&a[v++],done:!a}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},m=n("./lib/dom"),c=n("./range").Range,f="ace_tooltip",s=function(){function a(h){this.isOpen=!1,this.$element=null,this.$parentNode=h}return a.prototype.$init=function(){return this.$element=m.createElement("div"),this.$element.className=f,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(h){this.getElement().textContent=h},a.prototype.setHtml=function(h){this.getElement().innerHTML=h},a.prototype.setPosition=function(h,g){this.getElement().style.left=h+"px",this.getElement().style.top=g+"px"},a.prototype.setClassName=function(h){m.addCssClass(this.getElement(),h)},a.prototype.setTheme=function(h){this.$element.className=f+" "+(h.isDark?"ace_dark ":"")+(h.cssClass||"")},a.prototype.show=function(h,g,v){h!=null&&this.setText(h),g!=null&&v!=null&&this.setPosition(g,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=f,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),i=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(h){this.popups.push(h),this.updatePopups()},a.prototype.removePopup=function(h){var g=this.popups.indexOf(h);g!==-1&&(this.popups.splice(g,1),this.updatePopups())},a.prototype.updatePopups=function(){var h,g,v,y;this.popups.sort(function(E,M){return M.priority-E.priority});var b=[];try{for(var S=p(this.popups),C=S.next();!C.done;C=S.next()){var w=C.value,k=!0;try{for(var A=(v=void 0,p(b)),x=A.next();!x.done;x=A.next()){var _=x.value;if(this.doPopupsOverlap(_,w)){k=!1;break}}}catch(E){v={error:E}}finally{try{x&&!x.done&&(y=A.return)&&y.call(A)}finally{if(v)throw v.error}}k?b.push(w):w.hide()}}catch(E){h={error:E}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(h)throw h.error}}},a.prototype.doPopupsOverlap=function(h,g){var v=h.getElement().getBoundingClientRect(),y=g.getElement().getBoundingClientRect();return v.lefty.left&&v.topy.top},a}(),l=new i;r.popupManager=l,r.Tooltip=s;var u=function(a){o(h,a);function h(g){g===void 0&&(g=document.body);var v=a.call(this,g)||this;v.timeout=void 0,v.lastT=0,v.idleTime=350,v.lastEvent=void 0,v.onMouseOut=v.onMouseOut.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.waitForHover=v.waitForHover.bind(v),v.hide=v.hide.bind(v);var y=v.getElement();return y.style.whiteSpace="pre-wrap",y.style.pointerEvents="auto",y.addEventListener("mouseout",v.onMouseOut),y.tabIndex=-1,y.addEventListener("blur",(function(){y.contains(document.activeElement)||this.hide()}).bind(v)),v}return h.prototype.addToEditor=function(g){g.on("mousemove",this.onMouseMove),g.on("mousedown",this.hide),g.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},h.prototype.removeFromEditor=function(g){g.off("mousemove",this.onMouseMove),g.off("mousedown",this.hide),g.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},h.prototype.onMouseMove=function(g,v){this.lastEvent=g,this.lastT=Date.now();var y=v.$mouseHandler.isMousePressed;if(this.isOpen){var b=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(b.row,b.column)||y||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||y||(this.lastEvent=g,this.timeout=setTimeout(this.waitForHover,this.idleTime))},h.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var g=Date.now()-this.lastT;if(this.idleTime-g>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-g);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},h.prototype.isOutsideOfText=function(g){var v=g.editor,y=g.getDocumentPosition(),b=v.session.getLine(y.row);if(y.column==b.length){var S=v.renderer.pixelToScreenCoordinates(g.clientX,g.clientY),C=v.session.documentToScreenPosition(y.row,y.column);if(C.column!=S.column||C.row!=S.row)return!0}return!1},h.prototype.setDataProvider=function(g){this.$gatherData=g},h.prototype.showForRange=function(g,v,y,b){if(!(b&&b!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var S=g.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(S.theme)),this.isOpen=!0,this.addMarker(v,g.session),this.range=c.fromPoints(v.start,v.end);var C=this.getElement();C.innerHTML="",C.appendChild(y),C.style.display="block";var w=S.textToScreenCoordinates(v.start.row,v.start.column),k=C.clientHeight,A=S.scroller.getBoundingClientRect(),x=!0;w.pageY-k<0&&(x=!1),x?w.pageY-=k:w.pageY+=S.lineHeight,C.style.maxWidth=A.width-(w.pageX-A.left)+"px",this.setPosition(w.pageX,w.pageY)}},h.prototype.addMarker=function(g,v){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=v,this.marker=v&&v.addMarker(g,"ace_highlight-marker","text")},h.prototype.hide=function(g){!g&&document.activeElement==this.getElement()||g&&g.target&&(g.type!="keydown"||g.ctrlKey||g.metaKey)&&this.$element.contains(g.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)))},h.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},h.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},h.prototype.onMouseOut=function(g){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!g.relatedTarget||g.relatedTarget==this.getElement()||g&&g.currentTarget.contains(g.relatedTarget)||g.relatedTarget.classList.contains("ace_content")||this.hide())},h}(s);r.HoverTooltip=u}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,d){var o=this&&this.__extends||function(){var u=function(a,h){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(g[y]=v[y])},u(a,h)};return function(a,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");u(a,h);function g(){this.constructor=a}a.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),p=this&&this.__values||function(u){var a=typeof Symbol=="function"&&Symbol.iterator,h=a&&u[a],g=0;if(h)return h.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&g>=u.length&&(u=void 0),{value:u&&u[g++],done:!u}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},m=n("../lib/dom"),c=n("../lib/event"),f=n("../tooltip").Tooltip,s=n("../config").nls;function i(u){var a=u.editor,h=a.renderer.$gutterLayer,g=new l(a);u.editor.setDefaultHandler("guttermousedown",function(w){if(!(!a.isFocused()||w.getButton()!=0)){var k=h.getRegion(w);if(k!="foldWidgets"){var A=w.getDocumentPosition().row,x=a.session.selection;if(w.getShiftKey())x.selectTo(A,0);else{if(w.domEvent.detail==2)return a.selectAll(),w.preventDefault();u.$clickSelection=a.selection.getLineRange(A)}return u.setState("selectByLines"),u.captureMouse(w),w.preventDefault()}}});var v,y;function b(){var w=y.getDocumentPosition().row,k=a.session.getLength();if(w==k){var A=a.renderer.pixelToScreenCoordinates(0,y.y).row,x=y.$pos;if(A>a.session.documentToScreenRow(x.row,x.column))return S()}if(g.showTooltip(w),!!g.isOpen)if(a.on("mousewheel",S),u.$tooltipFollowsMouse)C(y);else{var _=y.getGutterRow(),E=h.$lines.get(_);if(E){var M=E.element.querySelector(".ace_gutter_annotation"),L=M.getBoundingClientRect(),$=g.getElement().style;$.left=L.right+"px",$.top=L.bottom+"px"}else C(y)}}function S(){v&&(v=clearTimeout(v)),g.isOpen&&(g.hideTooltip(),a.off("mousewheel",S))}function C(w){g.setPosition(w.x,w.y)}u.editor.setDefaultHandler("guttermousemove",function(w){var k=w.domEvent.target||w.domEvent.srcElement;if(m.hasCssClass(k,"ace_fold-widget"))return S();g.isOpen&&u.$tooltipFollowsMouse&&C(w),y=w,!v&&(v=setTimeout(function(){v=null,y&&!u.isMousePressed?b():S()},50))}),c.addListener(a.renderer.$gutter,"mouseout",function(w){y=null,!(!g.isOpen||v)&&(v=setTimeout(function(){v=null,S()},50))},a),a.on("changeSession",S),a.on("input",S)}r.GutterHandler=i;var l=function(u){o(a,u);function a(h){var g=u.call(this,h.container)||this;return g.editor=h,g}return a.prototype.setPosition=function(h,g){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,b=this.getWidth(),S=this.getHeight();h+=15,g+=15,h+b>v&&(h-=h+b-v),g+S>y&&(g-=20+S),f.prototype.setPosition.call(this,h,g)},Object.defineProperty(a,"annotationLabels",{get:function(){return{error:{singular:s("error"),plural:s("errors")},warning:{singular:s("warning"),plural:s("warnings")},info:{singular:s("information message"),plural:s("information messages")}}},enumerable:!1,configurable:!0}),a.prototype.showTooltip=function(h){var g=this.editor.renderer.$gutterLayer,v=g.$annotations[h],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var b=g.session.getFoldLine(h);if(b&&g.$showFoldedAnnotations){for(var S={error:[],warning:[],info:[]},C,w=h+1;w<=b.end.row;w++)if(g.$annotations[w])for(var k=0;k ").concat(y.text[w]);_[y.type[w].replace("_fold","")].push(M)}var L=[].concat(_.error,_.warning,_.info).join("
");this.setHtml(L),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},a.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},a.annotationsToSummaryString=function(h){var g,v,y=[],b=["error","warning","info"];try{for(var S=p(b),C=S.next();!C.done;C=S.next()){var w=C.value;if(h[w].length){var k=h[w].length===1?a.annotationLabels[w].singular:a.annotationLabels[w].plural;y.push("".concat(h[w].length," ").concat(k))}}}catch(A){g={error:A}}finally{try{C&&!C.done&&(v=S.return)&&v.call(S)}finally{if(g)throw g.error}}return y.join(", ")},a}(f);r.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,d){var o=n("../lib/event"),p=n("../lib/useragent"),m=function(){function c(f,s){this.domEvent=f,this.editor=s,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return c.prototype.stopPropagation=function(){o.stopPropagation(this.domEvent),this.propagationStopped=!0},c.prototype.preventDefault=function(){o.preventDefault(this.domEvent),this.defaultPrevented=!0},c.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},c.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},c.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(f,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-i},c.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var f=this.editor,s=f.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=s.contains(i.row,i.column)}return this.$inSelection},c.prototype.getButton=function(){return o.getButton(this.domEvent)},c.prototype.getShiftKey=function(){return this.domEvent.shiftKey},c.prototype.getAccelKey=function(){return p.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},c}();r.MouseEvent=m}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,d){var o=n("../lib/dom"),p=n("../lib/event"),m=n("../lib/useragent"),c=200,f=200,s=5;function i(u){var a=u.editor,h=o.createElement("div");h.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",h.textContent=" ";var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(H){u[H]=this[H]},this),a.on("mousedown",this.onMouseDown.bind(u));var v=a.container,y,b,S,C,w,k,A=0,x,_,E,M,L;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var P=this;return setTimeout(function(){P.startSelect(),P.captureMouse(H)},0),H.preventDefault()}w=a.getSelectionRange();var j=H.dataTransfer;j.effectAllowed=a.getReadOnly()?"copy":"copyMove",a.container.appendChild(h),j.setDragImage&&j.setDragImage(h,0,0),setTimeout(function(){a.container.removeChild(h)}),j.clearData(),j.setData("Text",a.session.getTextRange()),_=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,_=!1,this.setState(null),!a.getReadOnly()){var P=H.dataTransfer.dropEffect;!x&&P=="move"&&a.session.remove(a.getSelectionRange()),a.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(a.getReadOnly()||!B(H.dataTransfer)))return b=H.clientX,S=H.clientY,y||I(),A++,H.dataTransfer.dropEffect=x=U(H),p.preventDefault(H)},this.onDragOver=function(H){if(!(a.getReadOnly()||!B(H.dataTransfer)))return b=H.clientX,S=H.clientY,y||(I(),A++),D!==null&&(D=null),H.dataTransfer.dropEffect=x=U(H),p.preventDefault(H)},this.onDragLeave=function(H){if(A--,A<=0&&y)return O(),x=null,p.preventDefault(H)},this.onDrop=function(H){if(k){var P=H.dataTransfer;if(_)switch(x){case"move":w.contains(k.row,k.column)?w={start:k,end:k}:w=a.moveText(w,k);break;case"copy":w=a.moveText(w,k,!0);break}else{var j=P.getData("Text");w={start:k,end:a.session.insert(k,j)},a.focus(),x=null}return O(),p.preventDefault(H)}},p.addListener(v,"dragstart",this.onDragStart.bind(u),a),p.addListener(v,"dragend",this.onDragEnd.bind(u),a),p.addListener(v,"dragenter",this.onDragEnter.bind(u),a),p.addListener(v,"dragover",this.onDragOver.bind(u),a),p.addListener(v,"dragleave",this.onDragLeave.bind(u),a),p.addListener(v,"drop",this.onDrop.bind(u),a);function $(H,P){var j=Date.now(),V=!P||H.row!=P.row,Y=!P||H.column!=P.column;if(!M||V||Y)a.moveCursorToPosition(H),M=j,L={x:b,y:S};else{var X=l(L.x,L.y,b,S);X>s?M=null:j-M>=f&&(a.renderer.scrollCursorIntoView(),M=null)}}function T(H,P){var j=Date.now(),V=a.renderer.layerConfig.lineHeight,Y=a.renderer.layerConfig.characterWidth,X=a.renderer.scroller.getBoundingClientRect(),q={x:{left:b-X.left,right:X.right-b},y:{top:S-X.top,bottom:X.bottom-S}},re=Math.min(q.x.left,q.x.right),ae=Math.min(q.y.top,q.y.bottom),ge={row:H.row,column:H.column};re/Y<=2&&(ge.column+=q.x.left=c&&a.renderer.scrollCursorIntoView(ge):E=j:E=null}function R(){var H=k;k=a.renderer.screenToTextCoordinates(b,S),$(k,H),T(k,H)}function I(){w=a.selection.toOrientedRange(),y=a.session.addMarker(w,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),R(),C=setInterval(R,20),A=0,p.addListener(document,"mousemove",F)}function O(){clearInterval(C),a.session.removeMarker(y),y=null,a.selection.fromOrientedRange(w),a.isFocused()&&!_&&a.$resetCursorStyle(),w=null,k=null,A=0,E=null,M=null,p.removeListener(document,"mousemove",F)}var D=null;function F(){D==null&&(D=setTimeout(function(){D!=null&&y&&O()},20))}function B(H){var P=H.types;return!P||Array.prototype.some.call(P,function(j){return j=="text/plain"||j=="Text"})}function U(H){var P=["copy","copymove","all","uninitialized"],j=["move","copymove","linkmove","all","uninitialized"],V=m.isMac?H.altKey:H.ctrlKey,Y="uninitialized";try{Y=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return V&&P.indexOf(Y)>=0?X="copy":j.indexOf(Y)>=0?X="move":P.indexOf(Y)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,a=u.container;a.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var h=m.isWin?"default":"move";u.renderer.setCursorStyle(h),this.setState("dragReady")},this.onMouseDrag=function(u){var a=this.editor.container;if(m.isIE&&this.state=="dragReady"){var h=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);h>3&&a.dragDrop()}if(this.state==="dragWait"){var h=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);h>0&&(a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var a=this.editor,h=u.inSelection(),g=u.getButton(),v=u.domEvent.detail||1;if(v===1&&g===0&&h){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),a.getDragDelay()){if(m.isWebKit){this.cancelDrag=!0;var b=a.container;b.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(i.prototype);function l(u,a,h,g){return Math.sqrt(Math.pow(h-u,2)+Math.pow(g-a,2))}r.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,d){var o=n("./mouse_event").MouseEvent,p=n("../lib/event"),m=n("../lib/dom");r.addTouchListeners=function(c,f){var s="scroll",i,l,u,a,h,g,v=0,y,b=0,S=0,C=0,w,k;function A(){var $=window.navigator&&window.navigator.clipboard,T=!1,R=function(){var O=f.getCopyText(),D=f.session.getUndoManager().hasUndo();k.replaceChild(m.buildDom(T?["span",!O&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],O&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],O&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],D&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),k.firstChild)},I=function(O){var D=O.target.getAttribute("action");if(D=="more"||!T)return T=!T,R();D=="paste"?$.readText().then(function(F){f.execCommand(D,F)}):D&&((D=="cut"||D=="copy")&&($?$.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(D)),k.firstChild.style.display="none",T=!1,D!="openCommandPallete"&&f.focus()};k=m.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(O){s="menu",O.stopPropagation(),O.preventDefault(),f.textInput.focus()},ontouchend:function(O){O.stopPropagation(),O.preventDefault(),I(O)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function x(){k||A();var $=f.selection.cursor,T=f.renderer.textToScreenCoordinates($.row,$.column),R=f.renderer.textToScreenCoordinates(0,0).pageX,I=f.renderer.scrollLeft,O=f.container.getBoundingClientRect();k.style.top=T.pageY-O.top-3+"px",T.pageX-O.left=2?f.selection.getLineRange(y.row):f.session.getBracketRange(y);$&&!$.isEmpty()?f.selection.setRange($):f.selection.selectWord(),s="wait"}p.addListener(c,"contextmenu",function($){if(w){var T=f.textInput.getElement();T.focus()}},f),p.addListener(c,"touchstart",function($){var T=$.touches;if(h||T.length>1){clearTimeout(h),h=null,u=-1,s="zoom";return}w=f.$mouseHandler.isMousePressed=!0;var R=f.renderer.layerConfig.lineHeight,I=f.renderer.layerConfig.lineHeight,O=$.timeStamp;a=O;var D=T[0],F=D.clientX,B=D.clientY;Math.abs(i-F)+Math.abs(l-B)>R&&(u=-1),i=$.clientX=F,l=$.clientY=B,S=C=0;var U=new o($,f);if(y=U.getDocumentPosition(),O-u<500&&T.length==1&&!v)b++,$.preventDefault(),$.button=0,M();else{b=0;var H=f.selection.cursor,P=f.selection.isEmpty()?H:f.selection.anchor,j=f.renderer.$cursorLayer.getPixelPosition(H,!0),V=f.renderer.$cursorLayer.getPixelPosition(P,!0),Y=f.renderer.scroller.getBoundingClientRect(),X=f.renderer.layerConfig.offset,q=f.renderer.scrollLeft,re=function(Ve,Ie){return Ve=Ve/I,Ie=Ie/R-.75,Ve*Ve+Ie*Ie};if($.clientXge?"cursor":"anchor"),ge<3.5?s="anchor":ae<3.5?s="cursor":s="scroll",h=setTimeout(E,450)}u=O},f),p.addListener(c,"touchend",function($){w=f.$mouseHandler.isMousePressed=!1,g&&clearInterval(g),s=="zoom"?(s="",v=0):h?(f.selection.moveToPosition(y),v=0,x()):s=="scroll"?(L(),_()):x(),clearTimeout(h),h=null},f),p.addListener(c,"touchmove",function($){h&&(clearTimeout(h),h=null);var T=$.touches;if(!(T.length>1||s=="zoom")){var R=T[0],I=i-R.clientX,O=l-R.clientY;if(s=="wait")if(I*I+O*O>4)s="cursor";else return $.preventDefault();i=R.clientX,l=R.clientY,$.clientX=R.clientX,$.clientY=R.clientY;var D=$.timeStamp,F=D-a;if(a=D,s=="scroll"){var B=new o($,f);B.speed=1,B.wheelX=I,B.wheelY=O,10*Math.abs(I)0)if(ge==16){for(we=Ie;we-1){for(we=Ie;we=0&&V[Vt]==w;Vt--)P[Vt]=o}}}function F(H,P,j){if(!(p=H){for(X=Y+1;X=H;)X++;for(q=Y,re=X-1;q=P.length||(X=j[V-1])!=g&&X!=v||(q=P[V+1])!=g&&q!=v?y:(m&&(q=v),q==X?q:y);case A:return X=V>0?j[V-1]:b,X==g&&V+10&&j[V-1]==g)return g;if(m)return y;for(ae=V+1,re=P.length;ae=1425&&ge<=2303||ge==64286;if(X=P[ae],Ve&&(X==h||X==C))return h}return V<1||(X=P[V-1])==b?y:j[V-1];case b:return m=!1,c=!0,o;case S:return f=!0,y;case E:case M:case $:case T:case L:m=!1;case R:return y}}function U(H){var P=H.charCodeAt(0),j=P>>8;return j==0?P>191?a:I[P]:j==5?/[\u0591-\u05f4]/.test(H)?h:a:j==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?_:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:P==1642?x:/[\u06f0-\u06f9]/.test(H)?g:C:j==32&&P<=8287?O[P&255]:j==254&&P>=65136?C:y}r.L=a,r.R=h,r.EN=g,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(H,P,j){if(H.length<2)return{};var V=H.split(""),Y=new Array(V.length),X=new Array(V.length),q=[];o=j?u:l,D(V,q,V.length,P);for(var re=0;reC&&P[re]0&&V[re-1]==="Ù„"&&/\u0622|\u0623|\u0625|\u0627/.test(V[re])&&(q[re-1]=q[re]=r.R_H,re++);V[V.length-1]===r.DOT&&(q[V.length-1]=r.B),V[0]==="‫"&&(q[0]=r.RLE);for(var re=0;re=0&&(s=this.session.$docRowCache[l])}return s},f.prototype.getSplitIndex=function(){var s=0,i=this.session.$screenRowCache;if(i.length)for(var l,u=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-s>0&&(l=this.session.$getRowCacheIndex(i,this.currentRow-s-1),l===u);)u=l,s++;else s=this.currentRow;return s},f.prototype.updateRowLine=function(s,i){s===void 0&&(s=this.getDocumentRow());var l=s===this.session.getLength()-1,u=l?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 a=this.session.$wrapData[s];a&&(i===void 0&&(i=this.getSplitIndex()),i>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=ii?this.session.getOverwrite()?s:s-1:i,u=o.getVisualFromLogicalIdx(l,this.bidiMap),a=this.bidiMap.bidiLevels,h=0;!this.session.getOverwrite()&&s<=i&&a[u]%2!==0&&u++;for(var g=0;gi&&a[u]%2===0&&(h+=this.charWidths[a[u]]),this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(h+=this.rtlLineOffset),h},f.prototype.getSelections=function(s,i){var l=this.bidiMap,u=l.bidiLevels,a,h=[],g=0,v=Math.min(s,i)-this.wrapIndent,y=Math.max(s,i)-this.wrapIndent,b=!1,S=!1,C=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,k=0;k=v&&wu+g/2;){if(u+=g,a===h.length-1){g=0;break}g=this.charWidths[h[++a]]}return a>0&&h[a-1]%2!==0&&h[a]%2===0?(l0&&h[a-1]%2===0&&h[a]%2!==0?i=1+(l>u?this.bidiMap.logicalFromVisual[a]:this.bidiMap.logicalFromVisual[a-1]):this.isRtlDir&&a===h.length-1&&g===0&&h[a-1]%2===0||!this.isRtlDir&&a===0&&h[a]%2!==0?i=1+this.bidiMap.logicalFromVisual[a]:(a>0&&h[a-1]%2!==0&&g!==0&&a--,i=this.bidiMap.logicalFromVisual[a]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},f}();r.BidiHandler=c}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,d){var o=n("./lib/oop"),p=n("./lib/lang"),m=n("./lib/event_emitter").EventEmitter,c=n("./range").Range,f=function(){function s(i){this.session=i,this.doc=i.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var l=this;this.cursor.on("change",function(u){l.$cursorChanged=!0,l.$silent||l._emit("changeCursor"),!l.$isEmpty&&!l.$silent&&l._emit("changeSelection"),!l.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(l.$desiredColumn=null)}),this.anchor.on("change",function(){l.$anchorChanged=!0,!l.$isEmpty&&!l.$silent&&l._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(i,l){this.$isEmpty=!1,this.anchor.setPosition(i,l)},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 i=this.anchor,l=this.lead;return i.row>l.row||i.row==l.row&&i.column>l.column},s.prototype.getRange=function(){var i=this.anchor,l=this.lead;return this.$isEmpty?c.fromPoints(l,l):this.isBackwards()?c.fromPoints(l,i):c.fromPoints(i,l)},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(i,l){var u=l?i.end:i.start,a=l?i.start:i.end;this.$setSelection(u.row,u.column,a.row,a.column)},s.prototype.$setSelection=function(i,l,u,a){if(!this.$silent){var h=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(i,l),this.cursor.setPosition(u,a),this.$isEmpty=!c.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||h!=this.$isEmpty||g)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(i){var l=this.lead;this.$isEmpty&&this.setSelectionAnchor(l.row,l.column),i.call(this)},s.prototype.selectTo=function(i,l){this.$moveSelection(function(){this.moveCursorTo(i,l)})},s.prototype.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},s.prototype.moveTo=function(i,l){this.clearSelection(),this.moveCursorTo(i,l)},s.prototype.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},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(i,l){if(typeof l>"u"){var u=i||this.lead;i=u.row,l=u.column}return this.session.getWordRange(i,l)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var i=this.getCursor(),l=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(l)},s.prototype.getLineRange=function(i,l){var u=typeof i=="number"?i:this.lead.row,a,h=this.session.getFoldLine(u);return h?(u=h.start.row,a=h.end.row):a=u,l===!0?new c(u,0,a,this.session.getLine(a).length):new c(u,0,a+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(i,l,u){var a=i.column,h=i.column+l;return u<0&&(a=i.column-l,h=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(a,h).split(" ").length-1==l},s.prototype.moveCursorLeft=function(){var i=this.lead.getPosition(),l;if(l=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(l.start.row,l.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var i=this.lead.getPosition(),l;if(l=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(l.end.row,l.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(l.column=a)}}this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,l=this.doc.getLine(i).length;this.moveCursorTo(i,l)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var i=this.lead.row,l=this.lead.column,u=this.doc.getLine(i),a=u.substring(l);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var h=this.session.getFoldAt(i,l,1);if(h){this.moveCursorTo(h.end.row,h.end.column);return}if(this.session.nonTokenRe.exec(a)&&(l+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,a=u.substring(l)),l>=u.length){this.moveCursorTo(i,u.length),this.moveCursorRight(),i0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(h)&&(l-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,l)},s.prototype.$shortWordEndIndex=function(i){var l=0,u,a=/\s/,h=this.session.tokenRe;if(h.lastIndex=0,this.session.tokenRe.exec(i))l=this.session.tokenRe.lastIndex;else{for(;(u=i[l])&&a.test(u);)l++;if(l<1){for(h.lastIndex=0;(u=i[l])&&!h.test(u);)if(h.lastIndex=0,l++,a.test(u))if(l>2){l--;break}else{for(;(u=i[l])&&a.test(u);)l++;if(l>2)break}}}return h.lastIndex=0,l},s.prototype.moveCursorShortWordRight=function(){var i=this.lead.row,l=this.lead.column,u=this.doc.getLine(i),a=u.substring(l),h=this.session.getFoldAt(i,l,1);if(h)return this.moveCursorTo(h.end.row,h.end.column);if(l==u.length){var g=this.doc.getLength();do i++,a=this.doc.getLine(i);while(i0&&/^\s*$/.test(a));l=a.length,/\s+$/.test(a)||(a="")}var h=p.stringReverse(a),g=this.$shortWordEndIndex(h);return this.moveCursorTo(i,l-g)},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(i,l){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),a;if(l===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(a=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(a/this.session.$bidiHandler.charWidths[0])):a=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),i!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var h=this.session.lineWidgets[this.lead.row];i<0?i-=h.rowsAbove||0:i>0&&(i+=h.rowCount-(h.rowsAbove||0))}var g=this.session.screenToDocumentPosition(u.row+i,u.column,a);i!==0&&l===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+l,l===0)},s.prototype.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},s.prototype.moveCursorTo=function(i,l,u){var a=this.session.getFoldAt(i,l,1);a&&(i=a.start.row,l=a.start.column),this.$keepDesiredColumnOnChange=!0;var h=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(h.charAt(l))&&h.charAt(l-1)&&(this.lead.row==i&&this.lead.column==l+1?l=l-1:l=l+1),this.lead.setPosition(i,l),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(i,l,u){var a=this.session.screenToDocumentPosition(i,l);this.moveCursorTo(a.row,a.column,u)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(i){var l=this.getRange();return i?(i.start.column=l.start.column,i.start.row=l.start.row,i.end.column=l.end.column,i.end.row=l.end.row):i=l,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},s.prototype.getRangeOfMovements=function(i){var l=this.getCursor();try{i(this);var u=this.getCursor();return c.fromPoints(l,u)}catch{return c.fromPoints(l,l)}finally{this.moveCursorToPosition(l)}},s.prototype.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(l){var u=l.clone();return u.isBackwards=l.cursor==l.start,u});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},s.prototype.fromJSON=function(i){if(i.start==null)if(this.rangeList&&i.length>1){this.toSingleRange(i[0]);for(var l=i.length;l--;){var u=c.fromPoints(i[l].start,i[l].end);i[l].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},s.prototype.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var l=this.ranges.length;l--;)if(!this.ranges[l].isEqual(i[l]))return!1;return!0},s}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,o.implement(f.prototype,m),r.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,d){var o=n("./lib/report_error").reportError,p=2e3,m=function(){function c(f){this.states=f,this.regExps={},this.matchMappings={};for(var s in this.states){for(var i=this.states[s],l=[],u=0,a=this.matchMappings[s]={defaultToken:"text"},h="g",g=[],v=0;v1?y.onMatch=this.$applyToken:y.onMatch=y.token),S>1&&(/\\\d/.test(y.regex)?b=y.regex.replace(/\\([0-9]+)/g,function(C,w){return"\\"+(parseInt(w,10)+u+1)}):(S=1,b=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&g.push(y)),a[u]=v,u+=S,l.push(b),y.onMatch||(y.onMatch=null)}}l.length||(a[0]=0,l.push("$")),g.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,h)},this),this.regExps[s]=new RegExp("("+l.join(")|(")+")|($)",h)}}return c.prototype.$setMaxTokenCount=function(f){p=f|0},c.prototype.$applyToken=function(f){var s=this.splitRegex.exec(f).slice(1),i=this.token.apply(this,s);if(typeof i=="string")return[{type:i,value:f}];for(var l=[],u=0,a=i.length;uy){var x=f.substring(y,A-k.length);S.type==C?S.value+=x:(S.type&&v.push(S),S={type:C,value:x})}for(var _=0;_p){for(b>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:f});y1&&i[0]!==l&&i.unshift("#tmp",l),{tokens:v,state:i.length?i:l}},c}();m.prototype.reportError=o,r.Tokenizer=m}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,d){var o=n("../lib/deep_copy").deepCopy,p=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(f,s){if(!s){for(var i in f)this.$rules[i]=f[i];return}for(var i in f){for(var l=f[i],u=0;u=this.$rowTokens.length;){if(this.$row+=1,c||(c=this.$session.getLength()),this.$row>=c)return this.$row=c-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},m.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},m.prototype.getCurrentTokenRow=function(){return this.$row},m.prototype.getCurrentTokenColumn=function(){var c=this.$rowTokens,f=this.$tokenIndex,s=c[f].start;if(s!==void 0)return s;for(s=0;f>0;)f-=1,s+=c[f].value.length;return s},m.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},m.prototype.getCurrentTokenRange=function(){var c=this.$rowTokens[this.$tokenIndex],f=this.getCurrentTokenColumn();return new o(this.$row,f,this.$row,f+c.value.length)},m}();r.TokenIterator=p}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,d){var o=n("../../lib/oop"),p=n("../behaviour").Behaviour,m=n("../../token_iterator").TokenIterator,c=n("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,l={},u={'"':'"',"'":"'"},a=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,l.rangeCount!=v.multiSelect.rangeCount&&(l={rangeCount:v.multiSelect.rangeCount})),l[y])return i=l[y];i=l[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(v,y,b,S){var C=v.end.row-v.start.row;return{text:b+y+S,selection:[0,v.start.column+1,C,v.end.column+(C?0:1)]}},g=function(v){v=v||{},this.add("braces","insertion",function(y,b,S,C,w){var k=S.getCursorPosition(),A=C.doc.getLine(k.row);if(w=="{"){a(S);var x=S.getSelectionRange(),_=C.doc.getTextRange(x);if(_!==""&&_!=="{"&&S.getWrapBehavioursEnabled())return h(x,_,"{","}");if(g.isSaneInsertion(S,C))return/[\]\}\)]/.test(A[k.column])||S.inMultiSelectMode||v.braces?(g.recordAutoInsert(S,C,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(S,C,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){a(S);var E=A.substring(k.column,k.column+1);if(E=="}"){var M=C.$findOpeningBracket("}",{column:k.column+1,row:k.row});if(M!==null&&g.isAutoInsertedClosing(k,A,w))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==` -`||w==`\r -`){a(S);var L="";g.isMaybeInsertedClosing(k,A)&&(L=c.stringRepeat("}",i.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var E=A.substring(k.column,k.column+1);if(E==="}"){var $=C.findMatchingBracket({row:k.row,column:k.column+1},"}");if(!$)return null;var T=this.$getIndent(C.getLine($.row))}else if(L)var T=this.$getIndent(A);else{g.clearMaybeInsertedClosing();return}var R=T+C.getTabString();return{text:` -`+R+` -`+T+L,selection:[1,R.length,1,R.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,b,S,C,w){var k=C.doc.getTextRange(w);if(!w.isMultiLine()&&k=="{"){a(S);var A=C.doc.getLine(w.start.row),x=A.substring(w.end.column,w.end.column+1);if(x=="}")return w.end.column++,w;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,b,S,C,w){if(w=="("){a(S);var k=S.getSelectionRange(),A=C.doc.getTextRange(k);if(A!==""&&S.getWrapBehavioursEnabled())return h(k,A,"(",")");if(g.isSaneInsertion(S,C))return g.recordAutoInsert(S,C,")"),{text:"()",selection:[1,1]}}else if(w==")"){a(S);var x=S.getCursorPosition(),_=C.doc.getLine(x.row),E=_.substring(x.column,x.column+1);if(E==")"){var M=C.$findOpeningBracket(")",{column:x.column+1,row:x.row});if(M!==null&&g.isAutoInsertedClosing(x,_,w))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,b,S,C,w){var k=C.doc.getTextRange(w);if(!w.isMultiLine()&&k=="("){a(S);var A=C.doc.getLine(w.start.row),x=A.substring(w.start.column+1,w.start.column+2);if(x==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,b,S,C,w){if(w=="["){a(S);var k=S.getSelectionRange(),A=C.doc.getTextRange(k);if(A!==""&&S.getWrapBehavioursEnabled())return h(k,A,"[","]");if(g.isSaneInsertion(S,C))return g.recordAutoInsert(S,C,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){a(S);var x=S.getCursorPosition(),_=C.doc.getLine(x.row),E=_.substring(x.column,x.column+1);if(E=="]"){var M=C.$findOpeningBracket("]",{column:x.column+1,row:x.row});if(M!==null&&g.isAutoInsertedClosing(x,_,w))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,b,S,C,w){var k=C.doc.getTextRange(w);if(!w.isMultiLine()&&k=="["){a(S);var A=C.doc.getLine(w.start.row),x=A.substring(w.start.column+1,w.start.column+2);if(x=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,b,S,C,w){var k=C.$mode.$quotes||u;if(w.length==1&&k[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;a(S);var A=w,x=S.getSelectionRange(),_=C.doc.getTextRange(x);if(_!==""&&(_.length!=1||!k[_])&&S.getWrapBehavioursEnabled())return h(x,_,A,A);if(!_){var E=S.getCursorPosition(),M=C.doc.getLine(E.row),L=M.substring(E.column-1,E.column),$=M.substring(E.column,E.column+1),T=C.getTokenAt(E.row,E.column),R=C.getTokenAt(E.row,E.column+1);if(L=="\\"&&T&&/escape/.test(T.type))return null;var I=T&&/string|escape/.test(T.type),O=!R||/string|escape/.test(R.type),D;if($==A)D=I!==O,D&&/string\.end/.test(R.type)&&(D=!1);else{if(I&&!O||I&&O)return null;var F=C.$mode.tokenRe;F.lastIndex=0;var B=F.test(L);F.lastIndex=0;var U=F.test($),H=C.$mode.$pairQuotesAfter,P=H&&H[A]&&H[A].test(L);if(!P&&B||U||$&&!/[\s;,.})\]\\]/.test($))return null;var j=M[E.column-2];if(L==A&&(j==A||F.test(j)))return null;D=!0}return{text:D?A+A:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,b,S,C,w){var k=C.$mode.$quotes||u,A=C.doc.getTextRange(w);if(!w.isMultiLine()&&k.hasOwnProperty(A)){a(S);var x=C.doc.getLine(w.start.row),_=x.substring(w.start.column+1,w.start.column+2);if(_==A)return w.end.column++,w}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,b,S,C,w){if(y==="doc-start"&&(w===` -`||w===`\r -`)&&S.selection.isEmpty()){var k=S.getCursorPosition(),A=C.doc.getLine(k.row),x=C.doc.getLine(k.row+1),_=this.$getIndent(A);if(/\s*\*/.test(x))return/^\s*\*/.test(A)?{text:w+_+"* ",selection:[1,3+_.length,1,3+_.length]}:{text:w+_+" * ",selection:[1,3+_.length,1,3+_.length]};if(/\/\*\*/.test(A.substring(0,k.column)))return{text:w+_+" * "+w+" "+_+"*/",selection:[1,4+_.length,1,4+_.length]}}})};g.isSaneInsertion=function(v,y){var b=v.getCursorPosition(),S=new m(y,b.row,b.column);if(!this.$matchTokenType(S.getCurrentToken()||"text",f)){if(/[)}\]]/.test(v.session.getLine(b.row)[b.column]))return!0;var C=new m(y,b.row,b.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",f))return!1}return S.stepForward(),S.getCurrentTokenRow()!==b.row||this.$matchTokenType(S.getCurrentToken()||"text",s)},g.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},g.recordAutoInsert=function(v,y,b){var S=v.getCursorPosition(),C=y.doc.getLine(S.row);this.isAutoInsertedClosing(S,C,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=S.row,i.autoInsertedLineEnd=b+C.substr(S.column),i.autoInsertedBrackets++},g.recordMaybeInsert=function(v,y,b){var S=v.getCursorPosition(),C=y.doc.getLine(S.row);this.isMaybeInsertedClosing(S,C)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=S.row,i.maybeInsertedLineStart=C.substr(0,S.column)+b,i.maybeInsertedLineEnd=C.substr(S.column),i.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(v,y,b){return i.autoInsertedBrackets>0&&v.row===i.autoInsertedRow&&b===i.autoInsertedLineEnd[0]&&y.substr(v.column)===i.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(v,y){return i.maybeInsertedBrackets>0&&v.row===i.maybeInsertedRow&&y.substr(v.column)===i.maybeInsertedLineEnd&&y.substr(0,v.column)==i.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},o.inherits(g,p),r.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(n,r,d){for(var o=[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],p=0,m=[],c=0;c2?j%w!=w-1:j%w==0}}else{if(!this.blockComment)return!1;var A=this.blockComment.start,x=this.blockComment.end,_=new RegExp("^(\\s*)(?:"+s.escapeRegExp(A)+")"),E=new RegExp("(?:"+s.escapeRegExp(x)+")\\s*$"),M=function(D,F){$(D,F)||(!b||/\S/.test(D))&&(y.insertInLine({row:F,column:D.length},x),y.insertInLine({row:F,column:C},A))},L=function(D,F){var B;(B=D.match(E))&&y.removeInLine(F,D.length-B[0].length,D.length),(B=D.match(_))&&y.removeInLine(F,B[1].length,B[0].length)},$=function(D,F){if(_.test(D))return!0;for(var B=h.getTokens(F),U=0;UD.length&&(O=D.length)}),C==1/0&&(C=O,b=!1,S=!1),k&&C%w!=0&&(C=Math.floor(C/w)*w),I(S?L:M)},this.toggleBlockComment=function(a,h,g,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var b=new i(h,v.row,v.column),S=b.getCurrentToken();h.selection;var C=h.selection.toOrientedRange(),w,k;if(S&&/comment/.test(S.type)){for(var A,x;S&&/comment/.test(S.type);){var _=S.value.indexOf(y.start);if(_!=-1){var E=b.getCurrentTokenRow(),M=b.getCurrentTokenColumn()+_;A=new l(E,M,E,M+y.start.length);break}S=b.stepBackward()}for(var b=new i(h,v.row,v.column),S=b.getCurrentToken();S&&/comment/.test(S.type);){var _=S.value.indexOf(y.end);if(_!=-1){var E=b.getCurrentTokenRow(),M=b.getCurrentTokenColumn()+_;x=new l(E,M,E,M+y.end.length);break}S=b.stepForward()}x&&h.remove(x),A&&(h.remove(A),w=A.start.row,k=-y.start.length)}else k=y.start.length,w=g.start.row,h.insert(g.end,y.end),h.insert(g.start,y.start);C.start.row==w&&(C.start.column+=k),C.end.row==w&&(C.end.column+=k),h.selection.fromOrientedRange(C)}},this.getNextLineIndent=function(a,h,g){return this.$getIndent(h)},this.checkOutdent=function(a,h,g){return!1},this.autoOutdent=function(a,h,g){},this.$getIndent=function(a){return a.match(/^\s*/)[0]},this.createWorker=function(a){return null},this.createModeDelegates=function(a){this.$embeds=[],this.$modes={};for(var h in a)if(a[h]){var g=a[h],v=g.prototype.$id,y=o.$modes[v];y||(o.$modes[v]=y=new g),o.$modes[h]||(o.$modes[h]=y),this.$embeds.push(h),this.$modes[h]=y}for(var b=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],h=0;h"u"?this.setPosition(l.row,l.column):this.setPosition(l,u)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var l=f(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(l.row,l.column,!0)}},s.prototype.setPosition=function(i,l,u){var a;if(u?a={row:i,column:l}:a=this.$clipPositionToDocument(i,l),!(this.row==a.row&&this.column==a.column)){var h={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:h,value:a})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(i,l){var u={};return i>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):i<0?(u.row=0,u.column=0):(u.row=i,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,l))),l<0&&(u.column=0),u},s}();m.prototype.$insertRight=!1,o.implement(m.prototype,p);function c(s,i,l){var u=l?s.column<=i.column:s.column=a&&(l=a-1,u=void 0);var h=this.getLine(l);return u==null&&(u=h.length),u=Math.min(Math.max(u,0),h.length),{row:l,column:u}},i.prototype.clonePos=function(l){return{row:l.row,column:l.column}},i.prototype.pos=function(l,u){return{row:l,column:u}},i.prototype.$clipPosition=function(l){var u=this.getLength();return l.row>=u?(l.row=Math.max(0,u-1),l.column=this.getLine(u-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},i.prototype.insertFullLines=function(l,u){l=Math.min(Math.max(l,0),this.getLength());var a=0;l0,h=u=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(l,u){if(l instanceof c||(l=c.fromPoints(l.start,l.end)),u.length===0&&l.isEmpty())return l.start;if(u==this.getTextRange(l))return l.end;this.remove(l);var a;return u?a=this.insert(l.start,u):a=l.start,a},i.prototype.applyDeltas=function(l){for(var u=0;u=0;u--)this.revertDelta(l[u])},i.prototype.applyDelta=function(l,u){var a=l.action=="insert";(a?l.lines.length<=1&&!l.lines[0]:!c.comparePoints(l.start,l.end))||(a&&l.lines.length>2e4?this.$splitAndapplyLargeDelta(l,2e4):(p(this.$lines,l,u),this._signal("change",l)))},i.prototype.$safeApplyDelta=function(l){var u=this.$lines.length;(l.action=="remove"&&l.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=u,a==-1&&(a=u),g<=a&&i.fireUpdateEvent(g,a)}}}return c.prototype.setTokenizer=function(f){this.tokenizer=f,this.lines=[],this.states=[],this.start(0)},c.prototype.setDocument=function(f){this.doc=f,this.lines=[],this.states=[],this.stop()},c.prototype.fireUpdateEvent=function(f,s){var i={first:f,last:s};this._signal("update",{data:i})},c.prototype.start=function(f){this.currentLine=Math.min(f||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)},c.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},c.prototype.$updateOnChange=function(f){var s=f.start.row,i=f.end.row-s;if(i===0)this.lines[s]=null;else if(f.action=="remove")this.lines.splice(s,i+1,null),this.states.splice(s,i+1,null);else{var l=Array(i+1);l.unshift(s,1),this.lines.splice.apply(this.lines,l),this.states.splice.apply(this.states,l)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},c.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},c.prototype.getTokens=function(f){return this.lines[f]||this.$tokenizeRow(f)},c.prototype.getState=function(f){return this.currentLine==f&&this.$tokenizeRow(f),this.states[f]||"start"},c.prototype.$tokenizeRow=function(f){var s=this.doc.getLine(f),i=this.states[f-1],l=this.tokenizer.getLineTokens(s,i,f);return this.states[f]+""!=l.state+""?(this.states[f]=l.state,this.lines[f+1]=null,this.currentLine>f+1&&(this.currentLine=f+1)):this.currentLine==f&&(this.currentLine=f+1),this.lines[f]=l.tokens},c.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},c}();o.implement(m.prototype,p),r.BackgroundTokenizer=m}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,d){var o=n("./lib/lang"),p=n("./range").Range,m=function(){function c(f,s,i){i===void 0&&(i="text"),this.setRegexp(f),this.clazz=s,this.type=i}return c.prototype.setRegexp=function(f){this.regExp+""!=f+""&&(this.regExp=f,this.cache=[])},c.prototype.update=function(f,s,i,l){if(this.regExp)for(var u=l.firstRow,a=l.lastRow,h={},g=u;g<=a;g++){var v=this.cache[g];v==null&&(v=o.getMatchOffsets(i.getLine(g),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(C){return new p(g,C.offset,g,C.offset+C.length)}),this.cache[g]=v.length?v:"");for(var y=v.length;y--;){var b=v[y].toScreenRange(i),S=b.toString();h[S]||(h[S]=!0,s.drawSingleLineMarker(f,b,this.clazz,l))}}},c}();m.prototype.MAX_RANGES=500,r.SearchHighlight=m}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,d){var o=n("../range").Range,p=function(){function m(c,f){this.foldData=c,Array.isArray(f)?this.folds=f:f=this.folds=[f];var s=f[f.length-1];this.range=new o(f[0].start.row,f[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}return m.prototype.shiftRow=function(c){this.start.row+=c,this.end.row+=c,this.folds.forEach(function(f){f.start.row+=c,f.end.row+=c})},m.prototype.addFold=function(c){if(c.sameRow){if(c.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(c),this.folds.sort(function(f,s){return-f.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(c.start.row,c.start.column)>0?(this.end.row=c.end.row,this.end.column=c.end.column):this.range.compareStart(c.end.row,c.end.column)<0&&(this.start.row=c.start.row,this.start.column=c.start.column)}else if(c.start.row==this.end.row)this.folds.push(c),this.end.row=c.end.row,this.end.column=c.end.column;else if(c.end.row==this.start.row)this.folds.unshift(c),this.start.row=c.start.row,this.start.column=c.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");c.foldLine=this},m.prototype.containsRow=function(c){return c>=this.start.row&&c<=this.end.row},m.prototype.walk=function(c,f,s){var i=0,l=this.folds,u,a,h,g=!0;f==null&&(f=this.end.row,s=this.end.column);for(var v=0;v0)){var g=p(f,a.start);return h===0?s&&g!==0?-u-2:u:g>0||g===0&&!s?u:-u-1}}return-u-1},c.prototype.add=function(f){var s=!f.isEmpty(),i=this.pointIndex(f.start,s);i<0&&(i=-i-1);var l=this.pointIndex(f.end,s,i);return l<0?l=-l-1:l++,this.ranges.splice(i,l-i,f)},c.prototype.addList=function(f){for(var s=[],i=f.length;i--;)s.push.apply(s,this.add(f[i]));return s},c.prototype.substractPoint=function(f){var s=this.pointIndex(f);if(s>=0)return this.ranges.splice(s,1)},c.prototype.merge=function(){var f=[],s=this.ranges;s=s.sort(function(h,g){return p(h.start,g.start)});for(var i=s[0],l,u=1;u=0},c.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},c.prototype.rangeAtPoint=function(f){var s=this.pointIndex(f);if(s>=0)return this.ranges[s]},c.prototype.clipRows=function(f,s){var i=this.ranges;if(i[0].start.row>s||i[i.length-1].start.row=l)break}if(f.action=="insert")for(var y=u-l,b=-s.column+i.column;hl)break;if(v.start.row==l&&v.start.column>=s.column&&(v.start.column==s.column&&this.$bias<=0||(v.start.column+=b,v.start.row+=y)),v.end.row==l&&v.end.column>=s.column){if(v.end.column==s.column&&this.$bias<0)continue;v.end.column==s.column&&b>0&&hv.start.column&&v.end.column==a[h+1].start.column&&(v.end.column-=b),v.end.column+=b,v.end.row+=y}}else for(var y=l-u,b=s.column-i.column;hu)break;v.end.rows.column)&&(v.end.column=s.column,v.end.row=s.row):(v.end.column+=b,v.end.row+=y):v.end.row>u&&(v.end.row+=y),v.start.rows.column)&&(v.start.column=s.column,v.start.row=s.row):(v.start.column+=b,v.start.row+=y):v.start.row>u&&(v.start.row+=y)}if(y!=0&&h=i)return h;if(h.end.row>i)return null}return null},this.getNextFoldLine=function(i,l){var u=this.$foldData,a=0;for(l&&(a=u.indexOf(l)),a==-1&&(a=0),a;a=i)return h}return null},this.getFoldedRowCount=function(i,l){for(var u=this.$foldData,a=l-i+1,h=0;h=l){y=i?a-=l-y:a=0);break}else v>=i&&(y>=i?a-=v-y:a-=v-i+1)}return a},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(l,u){return l.start.row-u.start.row}),i},this.addFold=function(i,l){var u=this.$foldData,a=!1,h;i instanceof m?h=i:(h=new m(l,i),h.collapseChildren=l.collapseChildren),this.$clipRangeToDocument(h.range);var g=h.start.row,v=h.start.column,y=h.end.row,b=h.end.column,S=this.getFoldAt(g,v,1),C=this.getFoldAt(y,b,-1);if(S&&C==S)return S.addSubFold(h);S&&!S.range.isStart(g,v)&&this.removeFold(S),C&&!C.range.isEnd(y,b)&&this.removeFold(C);var w=this.getFoldsInRange(h.range);w.length>0&&(this.removeFolds(w),h.collapseChildren||w.forEach(function(_){h.addSubFold(_)}));for(var k=0;k0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(l){this.expandFold(l)},this)},this.unfold=function(i,l){var u,a;if(i==null)u=new o(0,0,this.getLength(),0),l==null&&(l=!0);else if(typeof i=="number")u=new o(i,0,i,this.getLine(i).length);else if("row"in i)u=o.fromPoints(i,i);else{if(Array.isArray(i))return a=[],i.forEach(function(g){a=a.concat(this.unfold(g))},this),a;u=i}a=this.getFoldsInRangeList(u);for(var h=a;a.length==1&&o.comparePoints(a[0].start,u.start)<0&&o.comparePoints(a[0].end,u.end)>0;)this.expandFolds(a),a=this.getFoldsInRangeList(u);if(l!=!1?this.removeFolds(a):this.expandFolds(a),h.length)return h},this.isRowFolded=function(i,l){return!!this.getFoldLine(i,l)},this.getRowFoldEnd=function(i,l){var u=this.getFoldLine(i,l);return u?u.end.row:i},this.getRowFoldStart=function(i,l){var u=this.getFoldLine(i,l);return u?u.start.row:i},this.getFoldDisplayLine=function(i,l,u,a,h){a==null&&(a=i.start.row),h==null&&(h=0),l==null&&(l=i.end.row),u==null&&(u=this.getLine(l).length);var g=this.doc,v="";return i.walk(function(y,b,S,C){if(!(bb)break;while(h&&v.test(h.type)&&!/^comment.start/.test(h.type));h=a.stepBackward()}else h=a.getCurrentToken();return y.end.row=a.getCurrentTokenRow(),y.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(h.type)||(y.end.column+=h.value.length-2),y}},this.foldAll=function(i,l,u,a){u==null&&(u=1e5);var h=this.foldWidgets;if(h){l=l||this.getLength(),i=i||0;for(var g=i;g=i&&(g=v.end.row,v.collapseChildren=u,this.addFold("...",v))}}},this.foldToLevel=function(i){for(this.foldAll();i-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var i=this;this.foldAll(null,null,null,function(l){for(var u=i.getTokens(l),a=0;a=0;){var g=u[a];if(g==null&&(g=u[a]=this.getFoldWidget(a)),g=="start"){var v=this.getFoldWidgetRange(a);if(h||(h=v),v&&v.end.row>=i)break}a--}return{range:a!==-1&&v,firstRange:h}},this.onFoldWidgetClick=function(i,l){l instanceof f&&(l=l.domEvent);var u={children:l.shiftKey,all:l.ctrlKey||l.metaKey,siblings:l.altKey},a=this.$toggleFoldWidget(i,u);if(!a){var h=l.target||l.srcElement;h&&/ace_fold-widget/.test(h.className)&&(h.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,l){if(this.getFoldWidget){var u=this.getFoldWidget(i),a=this.getLine(i),h=u==="end"?-1:1,g=this.getFoldAt(i,h===-1?0:a.length,h);if(g)return l.children||l.all?this.removeFold(g):this.expandFold(g),g;var v=this.getFoldWidgetRange(i,!0);if(v&&!v.isMultiLine()&&(g=this.getFoldAt(v.start.row,v.start.column,1),g&&v.isEqual(g.range)))return this.removeFold(g),g;if(l.siblings){var y=this.getParentFoldRangeData(i);if(y.range)var b=y.range.start.row+1,S=y.range.end.row;this.foldAll(b,S,l.all?1e4:0)}else l.children?(S=v?v.end.row:this.getLength(),this.foldAll(i+1,S,l.all?1e4:0)):v&&(l.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(i){var l=this.selection.getCursor().row;l=this.getRowFoldStart(l);var u=this.$toggleFoldWidget(l,{});if(!u){var a=this.getParentFoldRangeData(l,!0);if(u=a.range||a.firstRange,u){l=u.start.row;var h=this.getFoldAt(l,this.getLine(l).length,1);h?this.removeFold(h):this.addFold("...",u)}}},this.updateFoldWidgets=function(i){var l=i.start.row,u=i.end.row-l;if(u===0)this.foldWidgets[l]=null;else if(i.action=="remove")this.foldWidgets.splice(l,u+1,null);else{var a=Array(u+1);a.unshift(l,1),this.foldWidgets.splice.apply(this.foldWidgets,a)}},this.tokenizerUpdateFoldWidgets=function(i){var l=i.data;l.first!=l.last&&this.foldWidgets.length>l.first&&this.foldWidgets.splice(l.first,this.foldWidgets.length)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,d){var o=n("../token_iterator").TokenIterator,p=n("../range").Range;function m(){this.findMatchingBracket=function(c,f){if(c.column==0)return null;var s=f||this.getLine(c.row).charAt(c.column-1);if(s=="")return null;var i=s.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],c):this.$findOpeningBracket(i[2],c):null},this.getBracketRange=function(c){var f=this.getLine(c.row),s=!0,i,l=f.charAt(c.column-1),u=l&&l.match(/([\(\[\{])|([\)\]\}])/);if(u||(l=f.charAt(c.column),c={row:c.row,column:c.column+1},u=l&&l.match(/([\(\[\{])|([\)\]\}])/),s=!1),!u)return null;if(u[1]){var a=this.$findClosingBracket(u[1],c);if(!a)return null;i=p.fromPoints(c,a),s||(i.end.column++,i.start.column--),i.cursor=i.end}else{var a=this.$findOpeningBracket(u[2],c);if(!a)return null;i=p.fromPoints(a,c),s||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(c,f){var s=this.getLine(c.row),i=/([\(\[\{])|([\)\]\}])/,l=!f&&s.charAt(c.column-1),u=l&&l.match(i);if(u||(l=(f===void 0||f)&&s.charAt(c.column),c={row:c.row,column:c.column+1},u=l&&l.match(i)),!u)return null;var a=new p(c.row,c.column-1,c.row,c.column),h=u[1]?this.$findClosingBracket(u[1],c):this.$findOpeningBracket(u[2],c);if(!h)return[a];var g=new p(h.row,h.column,h.row,h.column+1);return[a,g]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(c,f,s){var i=this.$brackets[c],l=1,u=new o(this,f.row,f.column),a=u.getCurrentToken();if(a||(a=u.stepForward()),!!a){s||(s=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var h=f.column-u.getCurrentTokenColumn()-2,g=a.value;;){for(;h>=0;){var v=g.charAt(h);if(v==i){if(l-=1,l==0)return{row:u.getCurrentTokenRow(),column:h+u.getCurrentTokenColumn()}}else v==c&&(l+=1);h-=1}do a=u.stepBackward();while(a&&!s.test(a.type));if(a==null)break;g=a.value,h=g.length-1}return null}},this.$findClosingBracket=function(c,f,s){var i=this.$brackets[c],l=1,u=new o(this,f.row,f.column),a=u.getCurrentToken();if(a||(a=u.stepForward()),!!a){s||(s=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var h=f.column-u.getCurrentTokenColumn();;){for(var g=a.value,v=g.length;h"?i=!0:f.type.indexOf("tag-name")!==-1&&(s=!0));while(f&&!s);return f},this.$findClosingTag=function(c,f){var s,i=f.value,l=f.value,u=0,a=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);f=c.stepForward();var h=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+f.value.length),g=!1;do if(s=f,f=c.stepForward(),f){if(f.value===">"&&!g){var v=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);g=!0}if(f.type.indexOf("tag-name")!==-1){if(i=f.value,l===i){if(s.value==="<")u++;else if(s.value==="")var S=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);else return}}}else if(l===i&&f.value==="/>"&&(u--,u<0))var y=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+2),b=y,S=b,v=new p(h.end.row,h.end.column,h.end.row,h.end.column+1)}while(f&&u>=0);if(a&&v&&y&&S&&h&&b)return{openTag:new p(a.start.row,a.start.column,v.end.row,v.end.column),closeTag:new p(y.start.row,y.start.column,S.end.row,S.end.column),openTagName:h,closeTagName:b}},this.$findOpeningTag=function(c,f){var s=c.getCurrentToken(),i=f.value,l=0,u=c.getCurrentTokenRow(),a=c.getCurrentTokenColumn(),h=a+2,g=new p(u,a,u,h);c.stepForward();var v=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+f.value.length);if(f=c.stepForward(),!(!f||f.value!==">")){var y=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);c.stepBackward(),c.stepBackward();do if(f=s,u=c.getCurrentTokenRow(),a=c.getCurrentTokenColumn(),h=a+f.value.length,s=c.stepBackward(),f){if(f.type.indexOf("tag-name")!==-1){if(i===f.value)if(s.value==="<"){if(l++,l>0){var b=new p(u,a,u,h),S=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);do f=c.stepForward();while(f&&f.value!==">");var C=new p(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1)}}else s.value===""){for(var w=0,k=s;k;){if(k.type.indexOf("tag-name")!==-1&&k.value===i){l--;break}else if(k.value==="<")break;k=c.stepBackward(),w++}for(var A=0;AL&&(this.$docRowCache.splice(L,M),this.$screenRowCache.splice(L,M))},_.prototype.$getRowCacheIndex=function(E,M){for(var L=0,$=E.length-1;L<=$;){var T=L+$>>1,R=E[T];if(M>R)L=T+1;else if(M=M));R++);return $=L[R],$?($.index=R,$.start=T-$.value.length,$):null},_.prototype.setUndoManager=function(E){if(this.$undoManager=E,this.$informUndoManager&&this.$informUndoManager.cancel(),E){var M=this;E.addSession(this),this.$syncInformUndoManager=function(){M.$informUndoManager.cancel(),M.mergeUndoDeltas=!1},this.$informUndoManager=p.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()?p.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(E){this.setOption("useSoftTabs",E)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(E){this.setOption("tabSize",E)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(E){return this.$useSoftTabs&&E.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(E){this.setOption("navigateWithinSoftTabs",E)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(E){this.setOption("overwrite",E)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(E,M){this.$decorations[E]||(this.$decorations[E]=""),this.$decorations[E]+=" "+M,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(E,M){this.$decorations[E]=(this.$decorations[E]||"").replace(" "+M,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(E){this.$breakpoints=[];for(var M=0;M0&&($=!!L.charAt(M-1).match(this.tokenRe)),$||($=!!L.charAt(M).match(this.tokenRe)),$)var T=this.tokenRe;else if(/^\s+$/.test(L.slice(M-1,M+1)))var T=/\s/;else var T=this.nonTokenRe;var R=M;if(R>0){do R--;while(R>=0&&L.charAt(R).match(T));R++}for(var I=M;IE&&(E=M.screenWidth)}),this.lineWidgetWidth=E},_.prototype.$computeWidth=function(E){if(this.$modified||E){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var M=this.doc.getAllLines(),L=this.$rowLengthCache,$=0,T=0,R=this.$foldData[T],I=R?R.start.row:1/0,O=M.length,D=0;DI){if(D=R.end.row+1,D>=O)break;R=this.$foldData[T++],I=R?R.start.row:1/0}L[D]==null&&(L[D]=this.$getStringScreenWidth(M[D])[0]),L[D]>$&&($=L[D])}this.screenWidth=$}},_.prototype.getLine=function(E){return this.doc.getLine(E)},_.prototype.getLines=function(E,M){return this.doc.getLines(E,M)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(E){return this.doc.getTextRange(E||this.selection.getRange())},_.prototype.insert=function(E,M){return this.doc.insert(E,M)},_.prototype.remove=function(E){return this.doc.remove(E)},_.prototype.removeFullLines=function(E,M){return this.doc.removeFullLines(E,M)},_.prototype.undoChanges=function(E,M){if(E.length){this.$fromUndo=!0;for(var L=E.length-1;L!=-1;L--){var $=E[L];$.action=="insert"||$.action=="remove"?this.doc.revertDelta($):$.folds&&this.addFolds($.folds)}!M&&this.$undoSelect&&(E.selectionBefore?this.selection.fromJSON(E.selectionBefore):this.selection.setRange(this.$getUndoSelection(E,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(E,M){if(E.length){this.$fromUndo=!0;for(var L=0;LE.end.column&&(R.start.column+=O),R.end.row==E.end.row&&R.end.column>E.end.column&&(R.end.column+=O)),I&&R.start.row>=E.end.row&&(R.start.row+=I,R.end.row+=I)}if(R.end=this.insert(R.start,$),T.length){var D=E.start,F=R.start,I=F.row-D.row,O=F.column-D.column;this.addFolds(T.map(function(H){return H=H.clone(),H.start.row==D.row&&(H.start.column+=O),H.end.row==D.row&&(H.end.column+=O),H.start.row+=I,H.end.row+=I,H}))}return R},_.prototype.indentRows=function(E,M,L){L=L.replace(/\t/g,this.getTabString());for(var $=E;$<=M;$++)this.doc.insertInLine({row:$,column:0},L)},_.prototype.outdentRows=function(E){for(var M=E.collapseRows(),L=new l(0,0,0,0),$=this.getTabSize(),T=M.start.row;T<=M.end.row;++T){var R=this.getLine(T);L.start.row=T,L.end.row=T;for(var I=0;I<$&&R.charAt(I)==" ";++I);I<$&&R.charAt(I)==" "?(L.start.column=I,L.end.column=I+1):(L.start.column=0,L.end.column=I),this.remove(L)}},_.prototype.$moveLines=function(E,M,L){if(E=this.getRowFoldStart(E),M=this.getRowFoldEnd(M),L<0){var $=this.getRowFoldStart(E+L);if($<0)return 0;var T=$-E}else if(L>0){var $=this.getRowFoldEnd(M+L);if($>this.doc.getLength()-1)return 0;var T=$-M}else{E=this.$clipRowToDocument(E),M=this.$clipRowToDocument(M);var T=M-E+1}var R=new l(E,0,M,Number.MAX_VALUE),I=this.getFoldsInRange(R).map(function(D){return D=D.clone(),D.start.row+=T,D.end.row+=T,D}),O=L==0?this.doc.getLines(E,M):this.doc.removeFullLines(E,M);return this.doc.insertFullLines(E+T,O),I.length&&this.addFolds(I),T},_.prototype.moveLinesUp=function(E,M){return this.$moveLines(E,M,-1)},_.prototype.moveLinesDown=function(E,M){return this.$moveLines(E,M,1)},_.prototype.duplicateLines=function(E,M){return this.$moveLines(E,M,0)},_.prototype.$clipRowToDocument=function(E){return Math.max(0,Math.min(E,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(E,M){return M<0?0:Math.min(this.doc.getLine(E).length,M)},_.prototype.$clipPositionToDocument=function(E,M){if(M=Math.max(0,M),E<0)E=0,M=0;else{var L=this.doc.getLength();E>=L?(E=L-1,M=this.doc.getLine(L-1).length):M=Math.min(this.doc.getLine(E).length,M)}return{row:E,column:M}},_.prototype.$clipRangeToDocument=function(E){E.start.row<0?(E.start.row=0,E.start.column=0):E.start.column=this.$clipColumnToRow(E.start.row,E.start.column);var M=this.doc.getLength()-1;return E.end.row>M?(E.end.row=M,E.end.column=this.doc.getLine(M).length):E.end.column=this.$clipColumnToRow(E.end.row,E.end.column),E},_.prototype.setUseWrapMode=function(E){if(E!=this.$useWrapMode){if(this.$useWrapMode=E,this.$modified=!0,this.$resetRowCache(0),E){var M=this.getLength();this.$wrapData=Array(M),this.$updateWrapData(0,M-1)}this._signal("changeWrapMode")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.prototype.setWrapLimitRange=function(E,M){(this.$wrapLimitRange.min!==E||this.$wrapLimitRange.max!==M)&&(this.$wrapLimitRange={min:E,max:M},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},_.prototype.adjustWrapLimit=function(E,M){var L=this.$wrapLimitRange;L.max<0&&(L={min:M,max:M});var $=this.$constrainWrapLimit(E,L.min,L.max);return $!=this.$wrapLimit&&$>1?(this.$wrapLimit=$,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},_.prototype.$constrainWrapLimit=function(E,M,L){return M&&(E=Math.max(M,E)),L&&(E=Math.min(L,E)),E},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(E){this.setWrapLimitRange(E,E)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(E){var M=this.$useWrapMode,L=E.action,$=E.start,T=E.end,R=$.row,I=T.row,O=I-R,D=null;if(this.$updating=!0,O!=0)if(L==="remove"){this[M?"$wrapData":"$rowLengthCache"].splice(R,O);var F=this.$foldData;D=this.getFoldsInRange(E),this.removeFolds(D);var B=this.getFoldLine(T.row),U=0;if(B){B.addRemoveChars(T.row,T.column,$.column-T.column),B.shiftRow(-O);var H=this.getFoldLine(R);H&&H!==B&&(H.merge(B),B=H),U=F.indexOf(B)+1}for(U;U=T.row&&B.shiftRow(-O)}I=R}else{var P=Array(O);P.unshift(R,0);var j=M?this.$wrapData:this.$rowLengthCache;j.splice.apply(j,P);var F=this.$foldData,B=this.getFoldLine(R),U=0;if(B){var V=B.range.compareInside($.row,$.column);V==0?(B=B.split($.row,$.column),B&&(B.shiftRow(O),B.addRemoveChars(I,0,T.column-$.column))):V==-1&&(B.addRemoveChars(R,0,T.column-$.column),B.shiftRow(O)),U=F.indexOf(B)+1}for(U;U=R&&B.shiftRow(O)}}else{O=Math.abs(E.start.column-E.end.column),L==="remove"&&(D=this.getFoldsInRange(E),this.removeFolds(D),O=-O);var B=this.getFoldLine(R);B&&B.addRemoveChars(R,$.column,O)}return M&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,M?this.$updateWrapData(R,I):this.$updateRowLengthCache(R,I),D},_.prototype.$updateRowLengthCache=function(E,M,L){this.$rowLengthCache[E]=null,this.$rowLengthCache[M]=null},_.prototype.$updateWrapData=function(E,M){var L=this.doc.getAllLines(),$=this.getTabSize(),T=this.$wrapData,R=this.$wrapLimit,I,O,D=E;for(M=Math.min(M,L.length-1);D<=M;)O=this.getFoldLine(D,O),O?(I=[],O.walk((function(F,B,U,H){var P;if(F!=null){P=this.$getDisplayTokens(F,I.length),P[0]=b;for(var j=1;jM-H;){var P=R+M-H;if(E[P-1]>=w&&E[P]>=w){U(P);continue}if(E[P]==b||E[P]==S){for(P;P!=R-1&&E[P]!=b;P--);if(P>R){U(P);continue}for(P=R+M,P;P>2)),R-1);P>j&&E[P]j&&E[P]j&&E[P]==C;)P--}else for(;P>j&&E[P]j){U(++P);continue}P=R+M,E[P]==y&&P--,U(P-H)}return $},_.prototype.$getDisplayTokens=function(E,M){var L=[],$;M=M||0;for(var T=0;T39&&R<48||R>57&&R<64?L.push(C):R>=4352&&x(R)?L.push(v,y):L.push(v)}return L},_.prototype.$getStringScreenWidth=function(E,M,L){if(M==0)return[0,0];M==null&&(M=1/0),L=L||0;var $,T;for(T=0;T=4352&&x($)?L+=2:L+=1,!(L>M));T++);return[L,T]},_.prototype.getRowLength=function(E){var M=1;return this.lineWidgets&&(M+=this.lineWidgets[E]&&this.lineWidgets[E].rowCount||0),!this.$useWrapMode||!this.$wrapData[E]?M:this.$wrapData[E].length+M},_.prototype.getRowLineCount=function(E){return!this.$useWrapMode||!this.$wrapData[E]?1:this.$wrapData[E].length+1},_.prototype.getRowWrapIndent=function(E){if(this.$useWrapMode){var M=this.screenToDocumentPosition(E,Number.MAX_VALUE),L=this.$wrapData[M.row];return L.length&&L[0]=0)var O=F[B],T=this.$docRowCache[B],H=E>F[U-1];else var H=!U;for(var P=this.getLength()-1,j=this.getNextFoldLine(T),V=j?j.start.row:1/0;O<=E&&(D=this.getRowLength(T),!(O+D>E||T>=P));)O+=D,T++,T>V&&(T=j.end.row+1,j=this.getNextFoldLine(T,j),V=j?j.start.row:1/0),H&&(this.$docRowCache.push(T),this.$screenRowCache.push(O));if(j&&j.start.row<=T)$=this.getFoldDisplayLine(j),T=j.start.row;else{if(O+D<=E||T>P)return{row:P,column:this.getLine(P).length};$=this.getLine(T),j=null}var Y=0,X=Math.floor(E-O);if(this.$useWrapMode){var q=this.$wrapData[T];q&&(I=q[X],X>0&&q.length&&(Y=q.indent,R=q[X-1]||q[q.length-1],$=$.substring(R)))}return L!==void 0&&this.$bidiHandler.isBidiRow(O+X,T,X)&&(M=this.$bidiHandler.offsetToCol(L)),R+=this.$getStringScreenWidth($,M-Y)[1],this.$useWrapMode&&R>=I&&(R=I-1),j?j.idxToPosition(R):{row:T,column:R}},_.prototype.documentToScreenPosition=function(E,M){if(typeof M>"u")var L=this.$clipPositionToDocument(E.row,E.column);else L=this.$clipPositionToDocument(E,M);E=L.row,M=L.column;var $=0,T=null,R=null;R=this.getFoldAt(E,M,1),R&&(E=R.start.row,M=R.start.column);var I,O=0,D=this.$docRowCache,F=this.$getRowCacheIndex(D,E),B=D.length;if(B&&F>=0)var O=D[F],$=this.$screenRowCache[F],U=E>D[B-1];else var U=!B;for(var H=this.getNextFoldLine(O),P=H?H.start.row:1/0;O=P){if(I=H.end.row+1,I>E)break;H=this.getNextFoldLine(I,H),P=H?H.start.row:1/0}else I=O+1;$+=this.getRowLength(O),O=I,U&&(this.$docRowCache.push(O),this.$screenRowCache.push($))}var j="";H&&O>=P?(j=this.getFoldDisplayLine(H,E,M),T=H.start.row):(j=this.getLine(E).substring(0,M),T=E);var V=0;if(this.$useWrapMode){var Y=this.$wrapData[T];if(Y){for(var X=0;j.length>=Y[X];)$++,X++;j=j.substring(Y[X-1]||0,j.length),V=X>0?Y.indent:0}}return this.lineWidgets&&this.lineWidgets[O]&&this.lineWidgets[O].rowsAbove&&($+=this.lineWidgets[O].rowsAbove),{row:$,column:V+this.$getStringScreenWidth(j)[0]}},_.prototype.documentToScreenColumn=function(E,M){return this.documentToScreenPosition(E,M).column},_.prototype.documentToScreenRow=function(E,M){return this.documentToScreenPosition(E,M).row},_.prototype.getScreenLength=function(){var E=0,M=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,R=0,$=0,M=this.$foldData[$++],I=M?M.start.row:1/0;RI&&(R=M.end.row+1,M=this.$foldData[$++],I=M?M.start.row:1/0)}else{E=this.getLength();for(var L=this.$foldData,$=0;$L));R++);return[$,R]})},_.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},_}();g.$uid=0,g.prototype.$modes=c.$modes,g.prototype.getValue=g.prototype.toString,g.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},g.prototype.$overwrite=!1,g.prototype.$mode=null,g.prototype.$modeId=null,g.prototype.$scrollTop=0,g.prototype.$scrollLeft=0,g.prototype.$wrapLimit=80,g.prototype.$useWrapMode=!1,g.prototype.$wrapLimitRange={min:null,max:null},g.prototype.lineWidgets=null,g.prototype.isFullWidth=x,o.implement(g.prototype,f);var v=1,y=2,b=3,S=4,C=9,w=10,k=11,A=12;function x(_){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}n("./edit_session/folding").Folding.call(g.prototype),n("./edit_session/bracket_match").BracketMatch.call(g.prototype),c.defineOptions(g.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 E=typeof _=="number"?_:null;this.setWrapLimitRange(E,E),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=g}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,d){var o=n("./lib/lang"),p=n("./lib/oop"),m=n("./range").Range,c=function(){function s(){this.$options={}}return s.prototype.set=function(i){return p.mixin(this.$options,i),this},s.prototype.getOptions=function(){return o.copyObject(this.$options)},s.prototype.setOptions=function(i){this.$options=i},s.prototype.find=function(i){var l=this.$options,u=this.$matchIterator(i,l);if(!u)return!1;var a=null;return u.forEach(function(h,g,v,y){return a=new m(h,g,v,y),g==y&&l.start&&l.start.start&&l.skipCurrent!=!1&&a.isEqual(l.start)?(a=null,!1):!0}),a},s.prototype.findAll=function(i){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var u=l.range,a=u?i.getLines(u.start.row,u.end.row):i.doc.getAllLines(),h=[],g=l.re;if(l.$isMultiLine){var v=g.length,y=a.length-v,b;e:for(var S=g.offset||0;S<=y;S++){for(var C=0;CA||(h.push(b=new m(S,A,S+v-1,x)),v>2&&(S=S+v-2))}}else for(var _=0;_$&&h[C].end.row==T;)C--;for(h=h.slice(_,C+1),_=0,C=h.length;_=y;A--)if(w(A,Number.MAX_VALUE,k))return;if(l.wrap!=!1){for(A=b,y=v.row;A>=y;A--)if(w(A,Number.MAX_VALUE,k))return}}};else var S=function(A){var x=v.row;if(!w(x,v.column,A)){for(x=x+1;x<=b;x++)if(w(x,0,A))return;if(l.wrap!=!1){for(x=y,b=v.row;x<=b;x++)if(w(x,0,A))return}}};if(l.$isMultiLine)var C=u.length,w=function(k,A,x){var _=a?k-C+1:k;if(!(_<0||_+C>i.getLength())){var E=i.getLine(_),M=E.search(u[0]);if(!(!a&&MA)&&x(_,M,_+C-1,$))return!0}}};else if(a)var w=function(A,x,_){var E=i.getLine(A),M=[],L,$=0;for(u.lastIndex=0;L=u.exec(E);){var T=L[0].length;if($=L.index,!T){if($>=E.length)break;u.lastIndex=$+=1}if(L.index+T>x)break;M.push(L.index,T)}for(var R=M.length-1;R>=0;R-=2){var I=M[R-1],T=M[R];if(_(A,I,A,I+T))return!0}};else var w=function(A,x,_){var E=i.getLine(A),M,L;for(u.lastIndex=x;L=u.exec(E);){var $=L[0].length;if(M=L.index,_(A,M,A,M+$))return!0;if(!$&&(u.lastIndex=M+=1,M>=E.length))return!1}};return{forEach:S}},s}();function f(s,i){var l=o.supportsLookbehind();function u(v,y){y===void 0&&(y=!0);var b=l&&i.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return b.test(v)||i.regExp?l&&i.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var a=Array.from(s),h=a[0],g=a[a.length-1];return u(h)+s+u(g,!1)}r.Search=c}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,d){var o=this&&this.__extends||function(){var l=function(u,a){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(h[v]=g[v])},l(u,a)};return function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(u,a);function h(){this.constructor=u}u.prototype=a===null?Object.create(a):(h.prototype=a.prototype,new h)}}(),p=n("../lib/keys"),m=n("../lib/useragent"),c=p.KEY_MODS,f=function(){function l(u,a){this.$init(u,a,!1)}return l.prototype.$init=function(u,a,h){this.platform=a||(m.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=h},l.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},l.prototype.removeCommand=function(u,a){var h=u&&(typeof u=="string"?u:u.name);u=this.commands[h],a||delete this.commands[h];var g=this.commandKeyBinding;for(var v in g){var y=g[v];if(y==u)delete g[v];else if(Array.isArray(y)){var b=y.indexOf(u);b!=-1&&(y.splice(b,1),y.length==1&&(g[v]=y[0]))}}},l.prototype.bindKey=function(u,a,h){if(typeof u=="object"&&u&&(h==null&&(h=u.position),u=u[this.platform]),!!u){if(typeof a=="function")return this.addCommand({exec:a,bindKey:u,name:a.name||u});u.split("|").forEach(function(g){var v="";if(g.indexOf(" ")!=-1){var y=g.split(/\s+/);g=y.pop(),y.forEach(function(C){var w=this.parseKeys(C),k=c[w.hashId]+w.key;v+=(v?" ":"")+k,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var b=this.parseKeys(g),S=c[b.hashId]+b.key;this._addCommandToBinding(v+S,a,h)},this)}},l.prototype._addCommandToBinding=function(u,a,h){var g=this.commandKeyBinding,v;if(!a)delete g[u];else if(!g[u]||this.$singleCommand)g[u]=a;else{Array.isArray(g[u])?(v=g[u].indexOf(a))!=-1&&g[u].splice(v,1):g[u]=[g[u]],typeof h!="number"&&(h=s(a));var y=g[u];for(v=0;vh)break}y.splice(v,0,a)}},l.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(a){var h=u[a];if(h){if(typeof h=="string")return this.bindKey(h,a);typeof h=="function"&&(h={exec:h}),typeof h=="object"&&(h.name||(h.name=a),this.addCommand(h))}},this)},l.prototype.removeCommands=function(u){Object.keys(u).forEach(function(a){this.removeCommand(u[a])},this)},l.prototype.bindKeys=function(u){Object.keys(u).forEach(function(a){this.bindKey(a,u[a])},this)},l.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},l.prototype.parseKeys=function(u){var a=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(S){return S}),h=a.pop(),g=p[h];if(p.FUNCTION_KEYS[g])h=p.FUNCTION_KEYS[g].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")return{key:h.toUpperCase(),hashId:-1}}else return{key:h,hashId:-1};for(var v=0,y=a.length;y--;){var b=p.KEY_MODS[a[y]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+a[y]+" in "+u),!1;v|=b}return{key:h,hashId:v}},l.prototype.findKeyCommand=function(u,a){var h=c[u]+a;return this.commandKeyBinding[h]},l.prototype.handleKeyboard=function(u,a,h,g){if(!(g<0)){var v=c[a]+h,y=this.commandKeyBinding[v];return u.$keyChain&&(u.$keyChain+=" "+v,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||v,{command:"null"}):(u.$keyChain&&((!a||a==4)&&h.length==1?u.$keyChain=u.$keyChain.slice(0,-v.length-1):(a==-1||g>0)&&(u.$keyChain="")),{command:y})}},l.prototype.getStatusText=function(u,a){return a.$keyChain||""},l}();function s(l){return typeof l=="object"&&l.bindKey&&l.bindKey.position||(l.isDefault?-100:0)}var i=function(l){o(u,l);function u(a,h){var g=l.call(this,a,h)||this;return g.$singleCommand=!0,g}return u}(f);i.call=function(l,u,a){f.prototype.$init.call(l,u,a,!0)},f.call=function(l,u,a){f.prototype.$init.call(l,u,a,!1)},r.HashHandler=i,r.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,d){var o=this&&this.__extends||function(){var s=function(i,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&(u[h]=a[h])},s(i,l)};return function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");s(i,l);function u(){this.constructor=i}i.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}}(),p=n("../lib/oop"),m=n("../keyboard/hash_handler").MultiHashHandler,c=n("../lib/event_emitter").EventEmitter,f=function(s){o(i,s);function i(l,u){var a=s.call(this,u,l)||this;return a.byName=a.commands,a.setDefaultHandler("exec",function(h){return h.args?h.command.exec(h.editor,h.args,h.event,!1):h.command.exec(h.editor,{},h.event,!0)}),a}return i.prototype.exec=function(l,u,a){if(Array.isArray(l)){for(var h=l.length;h--;)if(this.exec(l[h],u,a))return!0;return!1}if(typeof l=="string"&&(l=this.commands[l]),!l||u&&u.$readOnly&&!l.readOnly||this.$checkCommandState!=!1&&l.isAvailable&&!l.isAvailable(u))return!1;var g={editor:u,command:l,args:a};return g.returnValue=this._emit("exec",g),this._signal("afterExec",g),g.returnValue!==!1},i.prototype.toggleRecording=function(l){if(!this.$inReplay)return l&&l._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(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},i.prototype.replay=function(l){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(l);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,l):this.exec(u[0],l,u[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(l){return l.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},i}(m);p.implement(f.prototype,c),r.CommandManager=f}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,d){var o=n("../lib/lang"),p=n("../config"),m=n("../range").Range;function c(s,i){return{win:s,mac:i}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:c("Ctrl-,","Command-,"),exec:function(s){p.loadModule("ace/ext/settings_menu",function(i){i.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:c("Alt-E","F4"),exec:function(s){p.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:c("Alt-Shift-E","Shift-F4"),exec:function(s){p.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:c("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:c(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:c("Ctrl-L","Command-L"),exec:function(s,i){typeof i=="number"&&!isNaN(i)&&s.gotoLine(i),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:c("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:c("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:c("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:c("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:c(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:c(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:c("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:c("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:c("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:c("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:c("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:c("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:c("Ctrl-F","Command-F"),exec:function(s){p.loadModule("ace/ext/searchbox",function(i){i.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:c("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:c("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:c("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:c("Up","Up|Ctrl-P"),exec:function(s,i){s.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:c("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:c("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:c("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:c("Down","Down|Ctrl-N"),exec:function(s,i){s.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:c("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:c("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:c("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:c("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:c("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:c("Left","Left|Ctrl-B"),exec:function(s,i){s.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:c("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:c("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:c("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:c("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:c("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:c("Right","Right|Ctrl-F"),exec:function(s,i){s.navigateRight(i.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:c(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:c("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:c(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:c("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:c("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:c("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:c("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:c("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:c("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:c("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:c(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 i=s.$copyWithEmptySelection&&s.selection.isEmpty(),l=i?s.selection.getLineRange():s.selection.getRange();s._emit("cut",l),l.isEmpty()||s.session.remove(l),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,i){s.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:c("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:c("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:c("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:c("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:c("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:c("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:c("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:c("Ctrl-H","Command-Option-F"),exec:function(s){p.loadModule("ace/ext/searchbox",function(i){i.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:c("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:c("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:c("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:c("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:c("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:c("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:c("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:c("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:c("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:c("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:c("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:c("Ctrl-Shift-Backspace",null),exec:function(s){var i=s.selection.getRange();i.start.column=0,s.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:c("Ctrl-Shift-Delete",null),exec:function(s){var i=s.selection.getRange();i.end.column=Number.MAX_VALUE,s.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:c("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:c("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:c("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:c("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:c("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:c("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,i){s.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,i){s.insert(o.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:c(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:c("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:c("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:c("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:c(null,null),exec:function(s){s.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:c("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var i=s.selection.getRange();i.start.column=i.end.column=0,i.end.row++,s.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:c("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:c(null,null),exec:function(s){for(var i=s.selection.isBackwards(),l=i?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),u=i?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),a=s.session.doc.getLine(l.row).length,h=s.session.doc.getTextRange(s.selection.getRange()),g=h.replace(/\n\s*/," ").length,v=s.session.doc.getLine(l.row),y=l.row+1;y<=u.row+1;y++){var b=o.stringTrimLeft(o.stringTrimRight(s.session.doc.getLine(y)));b.length!==0&&(b=" "+b),v+=b}u.row+10?(s.selection.moveCursorTo(l.row,l.column),s.selection.selectTo(l.row,l.column+g)):(a=s.session.doc.getLine(l.row).length>a?a+1:a,s.selection.moveCursorTo(l.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:c(null,null),exec:function(s){var i=s.session.doc.getLength()-1,l=s.session.doc.getLine(i).length,u=s.selection.rangeList.ranges,a=[];u.length<1&&(u=[s.selection.getRange()]);for(var h=0;hf[s].column&&s++,u.unshift(s,0),f.splice.apply(f,u),this.$updateRows()}}},m.prototype.$updateRows=function(){var c=this.session.lineWidgets;if(c){var f=!0;c.forEach(function(s,i){if(s)for(f=!1,s.row=i;s.$oldWidget;)s.$oldWidget.row=i,s=s.$oldWidget}),f&&(this.session.lineWidgets=null)}},m.prototype.$registerLineWidget=function(c){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[c.row];return f&&(c.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._inDocument=!1)),this.session.lineWidgets[c.row]=c,c},m.prototype.addLineWidget=function(c){if(this.$registerLineWidget(c),c.session=this.session,!this.editor)return c;var f=this.editor.renderer;c.html&&!c.el&&(c.el=o.createElement("div"),c.el.innerHTML=c.html),c.text&&!c.el&&(c.el=o.createElement("div"),c.el.textContent=c.text),c.el&&(o.addCssClass(c.el,"ace_lineWidgetContainer"),c.className&&o.addCssClass(c.el,c.className),c.el.style.position="absolute",c.el.style.zIndex=5,f.container.appendChild(c.el),c._inDocument=!0,c.coverGutter||(c.el.style.zIndex=3),c.pixelHeight==null&&(c.pixelHeight=c.el.offsetHeight)),c.rowCount==null&&(c.rowCount=c.pixelHeight/f.layerConfig.lineHeight);var s=this.session.getFoldAt(c.row,0);if(c.$fold=s,s){var i=this.session.lineWidgets;c.row==s.end.row&&!i[s.start.row]?i[s.start.row]=c:c.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:c.row}}}),this.$updateRows(),this.renderWidgets(null,f),this.onWidgetChanged(c),c},m.prototype.removeLineWidget=function(c){if(c._inDocument=!1,c.session=null,c.el&&c.el.parentNode&&c.el.parentNode.removeChild(c.el),c.editor&&c.editor.destroy)try{c.editor.destroy()}catch{}if(this.session.lineWidgets){var f=this.session.lineWidgets[c.row];if(f==c)this.session.lineWidgets[c.row]=c.$oldWidget,c.$oldWidget&&this.onWidgetChanged(c.$oldWidget);else for(;f;){if(f.$oldWidget==c){f.$oldWidget=c.$oldWidget;break}f=f.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:c.row}}}),this.$updateRows()},m.prototype.getWidgetsAtRow=function(c){for(var f=this.session.lineWidgets,s=f&&f[c],i=[];s;)i.push(s),s=s.$oldWidget;return i},m.prototype.onWidgetChanged=function(c){this.session._changedWidgets.push(c),this.editor&&this.editor.renderer.updateFull()},m.prototype.measureWidgets=function(c,f){var s=this.session._changedWidgets,i=f.layerConfig;if(!(!s||!s.length)){for(var l=1/0,u=0;u0&&!i[l];)l--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,f.$cursorLayer.config=s;for(var a=l;a<=u;a++){var h=i[a];if(!(!h||!h.el)){if(h.hidden){h.el.style.top=-100-(h.pixelHeight||0)+"px";continue}h._inDocument||(h._inDocument=!0,f.container.appendChild(h.el));var g=f.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;h.coverLine||(g+=s.lineHeight*this.session.getRowLineCount(h.row)),h.el.style.top=g-s.offset+"px";var v=h.coverGutter?0:f.gutterWidth;h.fixedWidth||(v-=f.scrollLeft),h.el.style.left=v+"px",h.fullWidth&&h.screenWidth&&(h.el.style.minWidth=s.width+2*s.padding+"px"),h.fixedWidth?h.el.style.right=f.scrollBar.getWidth()+"px":h.el.style.right=""}}}},m}();r.LineWidgets=p}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,d){var o=n("../lib/keys"),p=n("../mouse/default_gutter_handler").GutterTooltip,m=function(){function f(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 p(this.editor)}return f.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))},f.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))},f.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===o.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=o.enter)return;s.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldWidget(l),a=this.$findNearestAnnotation(l);if(!(u===null&&a===null)){if(u===null&&a!==null){this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(u!==null&&a===null){this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(a-l)0||s+i=0&&this.$isFoldWidgetVisible(s-i))return s-i;if(s+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+i))return s+i}return null},f.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var i=0;s-i>0||s+i=0&&this.$isAnnotationVisible(s-i))return s-i;if(s+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+i))return s+i}return null},f.prototype.$focusFoldWidget=function(s){if(s!=null){var i=this.$getFoldWidget(s);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},f.prototype.$focusAnnotation=function(s){if(s!=null){var i=this.$getAnnotation(s);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},f.prototype.$blurFoldWidget=function(s){var i=this.$getFoldWidget(s);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},f.prototype.$blurAnnotation=function(s){var i=this.$getAnnotation(s);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},f.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}},f.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},f.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s=L.length&&(L=void 0),{value:L&&L[R++],done:!L}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},p=n("./lib/oop"),m=n("./lib/dom"),c=n("./lib/lang"),f=n("./lib/useragent"),s=n("./keyboard/textinput").TextInput,i=n("./mouse/mouse_handler").MouseHandler,l=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,a=n("./edit_session").EditSession,h=n("./search").Search,g=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,b=n("./commands/default_commands").commands,S=n("./config"),C=n("./token_iterator").TokenIterator,w=n("./line_widgets").LineWidgets,k=n("./keyboard/gutter_handler").GutterKeyboardHandler,A=n("./config").nls,x=n("./clipboard"),_=n("./lib/keys"),E=function(){function L($,T,R){this.$toDestroy=[];var I=$.getContainerElement();this.container=I,this.renderer=$,this.id="editor"+ ++L.$uid,this.commands=new y(f.isMac?"mac":"win",b),typeof document=="object"&&(this.textInput=new s($.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new l(this)),this.keyBinding=new u(this),this.$search=new h().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=c.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(O,D){D._$emitInputEvent.schedule(31)}),this.setSession(T||R&&R.session||new a("")),S.resetOptions(this),R&&this.setOptions(R),S._signal("editor",this)}return L.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=c.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},L.prototype.startOperation=function($){if(this.curOp){if(!$||this.curOp.command)return;this.prevOp=this.curOp}$||(this.previousCommand=null,$={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:$.command||{},args:$.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},L.prototype.endOperation=function($){if(this.curOp&&this.session){if($&&$.returnValue===!1||!this.session)return this.curOp=null;if($==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var T=this.curOp.command,R=T&&T.scrollIntoView;if(R){switch(R){case"center-animate":R="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var I=this.selection.getRange(),O=this.renderer.layerConfig;(I.start.row>=O.lastRow||I.end.row<=O.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}R=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var D=this.selection.toJSON();this.curOp.selectionAfter=D,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(D),this.prevOp=this.curOp,this.curOp=null}},L.prototype.$historyTracker=function($){if(this.$mergeUndoDeltas){var T=this.prevOp,R=this.$mergeableCommands,I=T.command&&$.command.name==T.command.name;if($.command.name=="insertstring"){var O=$.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),I=I&&this.mergeNextCommand&&(!/\s/.test(O)||/\s/.test(T.args)),this.mergeNextCommand=!0}else I=I&&R.indexOf($.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(I=!1),I?this.session.mergeUndoDeltas=!0:R.indexOf($.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},L.prototype.setKeyboardHandler=function($,T){if($&&typeof $=="string"&&$!="ace"){this.$keybindingId=$;var R=this;S.loadModule(["keybinding",$],function(I){R.$keybindingId==$&&R.keyBinding.setKeyboardHandler(I&&I.handler),T&&T()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler($),T&&T()},L.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},L.prototype.setSession=function($){if(this.session!=$){this.curOp&&this.endOperation(),this.curOp={};var T=this.session;if(T){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);var R=this.session.getSelection();R.off("changeCursor",this.$onCursorChange),R.off("changeSelection",this.$onSelectionChange)}this.session=$,$?(this.$onDocumentChange=this.onDocumentChange.bind(this),$.on("change",this.$onDocumentChange),this.renderer.setSession($),this.$onChangeMode=this.onChangeMode.bind(this),$.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),$.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),$.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),$.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),$.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),$.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=$.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession($)),this._signal("changeSession",{session:$,oldSession:T}),this.curOp=null,T&&T._signal("changeEditor",{oldEditor:this}),$&&$._signal("changeEditor",{editor:this}),$&&!$.destroyed&&$.bgTokenizer.scheduleStart()}},L.prototype.getSession=function(){return this.session},L.prototype.setValue=function($,T){return this.session.doc.setValue($),T?T==1?this.navigateFileEnd():T==-1&&this.navigateFileStart():this.selectAll(),$},L.prototype.getValue=function(){return this.session.getValue()},L.prototype.getSelection=function(){return this.selection},L.prototype.resize=function($){this.renderer.onResize($)},L.prototype.setTheme=function($,T){this.renderer.setTheme($,T)},L.prototype.getTheme=function(){return this.renderer.getTheme()},L.prototype.setStyle=function($){this.renderer.setStyle($)},L.prototype.unsetStyle=function($){this.renderer.unsetStyle($)},L.prototype.getFontSize=function(){return this.getOption("fontSize")||m.computedStyle(this.container).fontSize},L.prototype.setFontSize=function($){this.setOption("fontSize",$)},L.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var $=this;this.$highlightPending=!0,setTimeout(function(){$.$highlightPending=!1;var T=$.session;if(!(!T||T.destroyed)){T.$bracketHighlight&&(T.$bracketHighlight.markerIds.forEach(function(P){T.removeMarker(P)}),T.$bracketHighlight=null);var R=$.getCursorPosition(),I=$.getKeyboardHandler(),O=I&&I.$getDirectionForHighlight&&I.$getDirectionForHighlight($),D=T.getMatchingBracketRanges(R,O);if(!D){var F=new C(T,R.row,R.column),B=F.getCurrentToken();if(B&&/\b(?:tag-open|tag-name)/.test(B.type)){var U=T.getMatchingTags(R);U&&(D=[U.openTagName,U.closeTagName])}}if(!D&&T.$mode.getMatching&&(D=T.$mode.getMatching($.session)),!D){$.getHighlightIndentGuides()&&$.renderer.$textLayer.$highlightIndentGuide();return}var H="ace_bracket";Array.isArray(D)?D.length==1&&(H="ace_error_bracket"):D=[D],D.length==2&&(g.comparePoints(D[0].end,D[1].start)==0?D=[g.fromPoints(D[0].start,D[1].end)]:g.comparePoints(D[0].start,D[1].end)==0&&(D=[g.fromPoints(D[1].start,D[0].end)])),T.$bracketHighlight={ranges:D,markerIds:D.map(function(P){return T.addMarker(P,H,"text")})},$.getHighlightIndentGuides()&&$.renderer.$textLayer.$highlightIndentGuide()}},50)}},L.prototype.focus=function(){this.textInput.focus()},L.prototype.isFocused=function(){return this.textInput.isFocused()},L.prototype.blur=function(){this.textInput.blur()},L.prototype.onFocus=function($){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",$))},L.prototype.onBlur=function($){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",$))},L.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},L.prototype.onDocumentChange=function($){var T=this.session.$useWrapMode,R=$.start.row==$.end.row?$.end.row:1/0;this.renderer.updateLines($.start.row,R,T),this._signal("change",$),this.$cursorChange()},L.prototype.onTokenizerUpdate=function($){var T=$.data;this.renderer.updateLines(T.first,T.last)},L.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},L.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},L.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},L.prototype.$updateHighlightActiveLine=function(){var $=this.getSession(),T;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(T=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(T=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(T=!1)),$.$highlightLineMarker&&!T)$.removeMarker($.$highlightLineMarker.id),$.$highlightLineMarker=null;else if(!$.$highlightLineMarker&&T){var R=new g(T.row,T.column,T.row,1/0);R.id=$.addMarker(R,"ace_active-line","screenLine"),$.$highlightLineMarker=R}else T&&($.$highlightLineMarker.start.row=T.row,$.$highlightLineMarker.end.row=T.row,$.$highlightLineMarker.start.column=T.column,$._signal("changeBackMarker"))},L.prototype.onSelectionChange=function($){var T=this.session;if(T.$selectionMarker&&T.removeMarker(T.$selectionMarker),T.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var R=this.selection.getRange(),I=this.getSelectionStyle();T.$selectionMarker=T.addMarker(R,"ace_selection",I)}var O=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(O),this._signal("changeSelection")},L.prototype.$getSelectionHighLightRegexp=function(){var $=this.session,T=this.getSelectionRange();if(!(T.isEmpty()||T.isMultiLine())){var R=T.start.column,I=T.end.column,O=$.getLine(T.start.row),D=O.substring(R,I);if(!(D.length>5e3||!/[\w\d]/.test(D))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:D}),B=O.substring(R-1,I+1);if(F.test(B))return F}}},L.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},L.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},L.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},L.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},L.prototype.onChangeMode=function($){this.renderer.updateText(),this._emit("changeMode",$)},L.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},L.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},L.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},L.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},L.prototype.getCopyText=function(){var $=this.getSelectedText(),T=this.session.doc.getNewLineCharacter(),R=!1;if(!$&&this.$copyWithEmptySelection){R=!0;for(var I=this.selection.getAllRanges(),O=0;OP.search(/\S|$/)){var B=P.substr(O.column).search(/\S|$/);R.doc.removeInLine(O.row,O.column,O.column+B)}}this.clearSelection();var U=O.column,H=R.getState(O.row),P=R.getLine(O.row),j=I.checkOutdent(H,P,$);if(R.insert(O,$),D&&D.selection&&(D.selection.length==2?this.selection.setSelectionRange(new g(O.row,U+D.selection[0],O.row,U+D.selection[1])):this.selection.setSelectionRange(new g(O.row+D.selection[0],D.selection[1],O.row+D.selection[2],D.selection[3]))),this.$enableAutoIndent){if(R.getDocument().isNewLine($)){var V=I.getNextLineIndent(H,P.slice(0,O.column),R.getTabString());R.insert({row:O.row+1,column:0},V)}j&&I.autoOutdent(H,R,O.row)}},L.prototype.autoIndent=function(){var $=this.session,T=$.getMode(),R,I;if(this.selection.isEmpty())R=0,I=$.doc.getLength()-1;else{var O=this.getSelectionRange();R=O.start.row,I=O.end.row}for(var D="",F="",B="",U,H,P,j=$.getTabString(),V=R;V<=I;V++)V>0&&(D=$.getState(V-1),F=$.getLine(V-1),B=T.getNextLineIndent(D,F,j)),U=$.getLine(V),H=T.$getIndent(U),B!==H&&(H.length>0&&(P=new g(V,0,V,H.length),$.remove(P)),B.length>0&&$.insert({row:V,column:0},B)),T.autoOutdent(D,$,V)},L.prototype.onTextInput=function($,T){if(!T)return this.keyBinding.onTextInput($);this.startOperation({command:{name:"insertstring"}});var R=this.applyComposition.bind(this,$,T);this.selection.rangeCount?this.forEachSelection(R):R(),this.endOperation()},L.prototype.applyComposition=function($,T){if(T.extendLeft||T.extendRight){var R=this.selection.getRange();R.start.column-=T.extendLeft,R.end.column+=T.extendRight,R.start.column<0&&(R.start.row--,R.start.column+=this.session.getLine(R.start.row).length+1),this.selection.setRange(R),!$&&!R.isEmpty()&&this.remove()}if(($||!this.selection.isEmpty())&&this.insert($,!0),T.restoreStart||T.restoreEnd){var R=this.selection.getRange();R.start.column-=T.restoreStart,R.end.column-=T.restoreEnd,this.selection.setRange(R)}},L.prototype.onCommandKey=function($,T,R){return this.keyBinding.onCommandKey($,T,R)},L.prototype.setOverwrite=function($){this.session.setOverwrite($)},L.prototype.getOverwrite=function(){return this.session.getOverwrite()},L.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},L.prototype.setScrollSpeed=function($){this.setOption("scrollSpeed",$)},L.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},L.prototype.setDragDelay=function($){this.setOption("dragDelay",$)},L.prototype.getDragDelay=function(){return this.getOption("dragDelay")},L.prototype.setSelectionStyle=function($){this.setOption("selectionStyle",$)},L.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},L.prototype.setHighlightActiveLine=function($){this.setOption("highlightActiveLine",$)},L.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},L.prototype.setHighlightGutterLine=function($){this.setOption("highlightGutterLine",$)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.setHighlightSelectedWord=function($){this.setOption("highlightSelectedWord",$)},L.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},L.prototype.setAnimatedScroll=function($){this.renderer.setAnimatedScroll($)},L.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},L.prototype.setShowInvisibles=function($){this.renderer.setShowInvisibles($)},L.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},L.prototype.setDisplayIndentGuides=function($){this.renderer.setDisplayIndentGuides($)},L.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},L.prototype.setHighlightIndentGuides=function($){this.renderer.setHighlightIndentGuides($)},L.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},L.prototype.setShowPrintMargin=function($){this.renderer.setShowPrintMargin($)},L.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},L.prototype.setPrintMarginColumn=function($){this.renderer.setPrintMarginColumn($)},L.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},L.prototype.setReadOnly=function($){this.setOption("readOnly",$)},L.prototype.getReadOnly=function(){return this.getOption("readOnly")},L.prototype.setBehavioursEnabled=function($){this.setOption("behavioursEnabled",$)},L.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},L.prototype.setWrapBehavioursEnabled=function($){this.setOption("wrapBehavioursEnabled",$)},L.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},L.prototype.setShowFoldWidgets=function($){this.setOption("showFoldWidgets",$)},L.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},L.prototype.setFadeFoldWidgets=function($){this.setOption("fadeFoldWidgets",$)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.remove=function($){this.selection.isEmpty()&&($=="left"?this.selection.selectLeft():this.selection.selectRight());var T=this.getSelectionRange();if(this.getBehavioursEnabled()){var R=this.session,I=R.getState(T.start.row),O=R.getMode().transformAction(I,"deletion",this,R,T);if(T.end.column===0){var D=R.getTextRange(T);if(D[D.length-1]==` -`){var F=R.getLine(T.end.row);/^\s+$/.test(F)&&(T.end.column=F.length)}}O&&(T=O)}this.session.remove(T),this.clearSelection()},L.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},L.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},L.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},L.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var $=this.getSelectionRange();$.start.column==$.end.column&&$.start.row==$.end.row&&($.end.column=0,$.end.row++),this.session.remove($),this.clearSelection()},L.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var $=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition($)},L.prototype.setGhostText=function($,T){this.session.widgetManager||(this.session.widgetManager=new w(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText($,T)},L.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},L.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var $=this.getCursorPosition(),T=$.column;if(T!==0){var R=this.session.getLine($.row),I,O;TB.toLowerCase()?1:0});for(var O=new g(0,0,0,0),I=$.first;I<=$.last;I++){var D=T.getLine(I);O.start.row=I,O.end.row=I,O.end.column=D.length,T.replace(O,R[I-$.first])}},L.prototype.toggleCommentLines=function(){var $=this.session.getState(this.getCursorPosition().row),T=this.$getSelectedRows();this.session.getMode().toggleCommentLines($,this.session,T.first,T.last)},L.prototype.toggleBlockComment=function(){var $=this.getCursorPosition(),T=this.session.getState($.row),R=this.getSelectionRange();this.session.getMode().toggleBlockComment(T,this.session,R,$)},L.prototype.getNumberAt=function($,T){var R=/[\-]?[0-9]+(?:\.[0-9]+)?/g;R.lastIndex=0;for(var I=this.session.getLine($);R.lastIndex=T){var D={value:O[0],start:O.index,end:O.index+O[0].length};return D}}return null},L.prototype.modifyNumber=function($){var T=this.selection.getCursor().row,R=this.selection.getCursor().column,I=new g(T,R-1,T,R),O=this.session.getTextRange(I);if(!isNaN(parseFloat(O))&&isFinite(O)){var D=this.getNumberAt(T,R);if(D){var F=D.value.indexOf(".")>=0?D.start+D.value.indexOf(".")+1:D.end,B=D.start+D.value.length-F,U=parseFloat(D.value);U*=Math.pow(10,B),F!==D.end&&R=F&&D<=B&&(R=ae,U.selection.clearSelection(),U.moveCursorTo($,F+I),U.selection.selectTo($,B+I)),F=B});for(var H=this.$toggleWordPairs,P,j=0;j=B&&F<=U&&V.match(/((?:https?|ftp):\/\/[\S]+)/)){H=V.replace(/[\s:.,'";}\]]+$/,"");break}B=U}}catch(Y){R={error:Y}}finally{try{j&&!j.done&&(I=P.return)&&I.call(P)}finally{if(R)throw R.error}}return H},L.prototype.openLink=function(){var $=this.selection.getCursor(),T=this.findLinkAt($.row,$.column);return T&&window.open(T,"_blank"),T!=null},L.prototype.removeLines=function(){var $=this.$getSelectedRows();this.session.removeFullLines($.first,$.last),this.clearSelection()},L.prototype.duplicateSelection=function(){var $=this.selection,T=this.session,R=$.getRange(),I=$.isBackwards();if(R.isEmpty()){var O=R.start.row;T.duplicateLines(O,O)}else{var D=I?R.start:R.end,F=T.insert(D,T.getTextRange(R),!1);R.start=D,R.end=F,$.setSelectionRange(R,I)}},L.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},L.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},L.prototype.moveText=function($,T,R){return this.session.moveText($,T,R)},L.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},L.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},L.prototype.$moveLines=function($,T){var R,I,O=this.selection;if(!O.inMultiSelectMode||this.inVirtualSelectionMode){var D=O.toOrientedRange();R=this.$getSelectedRows(D),I=this.session.$moveLines(R.first,R.last,T?0:$),T&&$==-1&&(I=0),D.moveBy(I,0),O.fromOrientedRange(D)}else{var F=O.rangeList.ranges;O.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var B=0,U=0,H=F.length,P=0;PY+1)break;Y=X.last}for(P--,B=this.session.$moveLines(V,Y,T?0:$),T&&$==-1&&(j=P+1);j<=P;)F[j].moveBy(B,0),j++;T||(B=0),U+=B}O.fromOrientedRange(O.ranges[0]),O.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},L.prototype.$getSelectedRows=function($){return $=($||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart($.start.row),last:this.session.getRowFoldEnd($.end.row)}},L.prototype.onCompositionStart=function($){this.renderer.showComposition($)},L.prototype.onCompositionUpdate=function($){this.renderer.setCompositionText($)},L.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},L.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},L.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},L.prototype.isRowVisible=function($){return $>=this.getFirstVisibleRow()&&$<=this.getLastVisibleRow()},L.prototype.isRowFullyVisible=function($){return $>=this.renderer.getFirstFullyVisibleRow()&&$<=this.renderer.getLastFullyVisibleRow()},L.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},L.prototype.$moveByPage=function($,T){var R=this.renderer,I=this.renderer.layerConfig,O=$*Math.floor(I.height/I.lineHeight);T===!0?this.selection.$moveSelection(function(){this.moveCursorBy(O,0)}):T===!1&&(this.selection.moveCursorBy(O,0),this.selection.clearSelection());var D=R.scrollTop;R.scrollBy(0,O*I.lineHeight),T!=null&&R.scrollCursorIntoView(null,.5),R.animateScrolling(D)},L.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},L.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},L.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},L.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},L.prototype.scrollPageDown=function(){this.$moveByPage(1)},L.prototype.scrollPageUp=function(){this.$moveByPage(-1)},L.prototype.scrollToRow=function($){this.renderer.scrollToRow($)},L.prototype.scrollToLine=function($,T,R,I){this.renderer.scrollToLine($,T,R,I)},L.prototype.centerSelection=function(){var $=this.getSelectionRange(),T={row:Math.floor($.start.row+($.end.row-$.start.row)/2),column:Math.floor($.start.column+($.end.column-$.start.column)/2)};this.renderer.alignCursor(T,.5)},L.prototype.getCursorPosition=function(){return this.selection.getCursor()},L.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},L.prototype.getSelectionRange=function(){return this.selection.getRange()},L.prototype.selectAll=function(){this.selection.selectAll()},L.prototype.clearSelection=function(){this.selection.clearSelection()},L.prototype.moveCursorTo=function($,T){this.selection.moveCursorTo($,T)},L.prototype.moveCursorToPosition=function($){this.selection.moveCursorToPosition($)},L.prototype.jumpToMatching=function($,T){var R=this.getCursorPosition(),I=new C(this.session,R.row,R.column),O=I.getCurrentToken(),D=0;O&&O.type.indexOf("tag-name")!==-1&&(O=I.stepBackward());var F=O||I.stepForward();if(F){var B,U=!1,H={},P=R.column-F.start,j,V={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;P1?H[F.value]++:O.value==="=0;--D)this.$tryReplace(R[D],$)&&I++;return this.selection.setSelectionRange(O),I},L.prototype.$tryReplace=function($,T){var R=this.session.getTextRange($);return T=this.$search.replace(R,T),T!==null?($.end=this.session.replace($,T),$):null},L.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},L.prototype.find=function($,T,R){T||(T={}),typeof $=="string"||$ instanceof RegExp?T.needle=$:typeof $=="object"&&p.mixin(T,$);var I=this.selection.getRange();T.needle==null&&($=this.session.getTextRange(I)||this.$search.$options.needle,$||(I=this.session.getWordRange(I.start.row,I.start.column),$=this.session.getTextRange(I)),this.$search.set({needle:$})),this.$search.set(T),T.start||this.$search.set({start:I});var O=this.$search.find(this.session);if(T.preventScroll)return O;if(O)return this.revealRange(O,R),O;T.backwards?I.start=I.end:I.end=I.start,this.selection.setRange(I)},L.prototype.findNext=function($,T){this.find({skipCurrent:!0,backwards:!1},$,T)},L.prototype.findPrevious=function($,T){this.find($,{skipCurrent:!0,backwards:!0},T)},L.prototype.revealRange=function($,T){this.session.unfold($),this.selection.setSelectionRange($);var R=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView($.start,$.end,.5),T!==!1&&this.renderer.animateScrolling(R)},L.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},L.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},L.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function($){$.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},L.prototype.setAutoScrollEditorIntoView=function($){if($){var T,R=this,I=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var O=this.$scrollAnchor;O.style.cssText="position:absolute",this.container.insertBefore(O,this.container.firstChild);var D=this.on("changeSelection",function(){I=!0}),F=this.renderer.on("beforeRender",function(){I&&(T=R.renderer.container.getBoundingClientRect())}),B=this.renderer.on("afterRender",function(){if(I&&T&&(R.isFocused()||R.searchBox&&R.searchBox.isFocused())){var U=R.renderer,H=U.$cursorLayer.$pixelPos,P=U.layerConfig,j=H.top-P.offset;H.top>=0&&j+T.top<0?I=!0:H.topwindow.innerHeight?I=!1:I=null,I!=null&&(O.style.top=j+"px",O.style.left=H.left+"px",O.style.height=P.lineHeight+"px",O.scrollIntoView(I)),I=T=null}});this.setAutoScrollEditorIntoView=function(U){U||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",D),this.renderer.off("afterRender",B),this.renderer.off("beforeRender",F))}}},L.prototype.$resetCursorStyle=function(){var $=this.$cursorStyle||"ace",T=this.renderer.$cursorLayer;T&&(T.setSmoothBlinking(/smooth/.test($)),T.isBlinking=!this.$readOnly&&$!="wide",m.setCssClass(T.element,"ace_slim-cursors",/slim/.test($)))},L.prototype.prompt=function($,T,R){var I=this;S.loadModule("ace/ext/prompt",function(O){O.prompt(I,$,T,R)})},L}();E.$uid=0,E.prototype.curOp=null,E.prototype.prevOp={},E.prototype.$mergeableCommands=["backspace","del","insertstring"],E.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],p.implement(E.prototype,v),S.defineOptions(E.prototype,"editor",{selectionStyle:{set:function(L){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:L})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(L){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(L){this.textInput.setReadOnly(L),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(L){this.textInput.setCopyWithEmptySelection(L)},initialValue:!1},cursorStyle:{set:function(L){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(L){this.setAutoScrollEditorIntoView(L)}},keyboardHandler:{set:function(L){this.setKeyboardHandler(L)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(L){this.session.setValue(L)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(L){this.setSession(L)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(L){this.renderer.$gutterLayer.setShowLineNumbers(L),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),L&&this.$relativeLineNumbers?M.attach(this):M.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(L){this.$showLineNumbers&&L?M.attach(this):M.detach(this)}},placeholder:{set:function(L){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var $=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if($&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),m.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!$&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),m.addCssClass(this.container,"ace_hasPlaceholder");var T=m.createElement("div");T.className="ace_placeholder",T.textContent=this.$placeholder||"",this.renderer.placeholderNode=T,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!$&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(L){var $={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(I){I.blur(),I.renderer.scroller.focus()},readOnly:!0},T=function(I){if(I.target==this.renderer.scroller&&I.keyCode===_.enter){I.preventDefault();var O=this.getCursorPosition().row;this.isRowVisible(O)||this.scrollToLine(O,!0,!0),this.focus()}},R;L?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(f.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",A("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",A("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",T.bind(this)),this.commands.addCommand($),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",A("editor")),this.renderer.$gutter.setAttribute("aria-label",A("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),R||(R=new k(this)),R.addListener()):(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",T.bind(this)),this.commands.removeCommand($),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),R&&R.removeListener())},initialValue:!1},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 M={getText:function(L,$){return(Math.abs(L.selection.lead.row-$)||$+1+($<9?"·":""))+""},getWidth:function(L,$,T){return Math.max($.toString().length,(T.lastRow+1).toString().length,2)*T.characterWidth},update:function(L,$){$.renderer.$loop.schedule($.renderer.CHANGE_GUTTER)},attach:function(L){L.renderer.$gutterLayer.$renderer=this,L.on("changeSelection",this.update),this.update(null,L)},detach:function(L){L.renderer.$gutterLayer.$renderer==this&&(L.renderer.$gutterLayer.$renderer=null),L.off("changeSelection",this.update),this.update(null,L)}};r.Editor=E}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,d){var o=function(){function C(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function(w){this.$session=w},C.prototype.add=function(w,k,A){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),k===!1||!this.lastDeltas){this.lastDeltas=[];var x=this.$undoStack.length;x>this.$undoDepth-1&&this.$undoStack.splice(0,x-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},C.prototype.addSelection=function(w,k){this.selections.push({value:w,rev:k||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function(w,k){k==null&&(k=this.$rev+1);for(var A=this.$undoStack,x=A.length;x--;){var _=A[x][0];if(_.id<=w)break;_.id0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){},C.prototype.fromJSON=function(){},C.prototype.$prettyPrint=function(w){return w?i(w):i(this.$undoStack)+` ---- -`+i(this.$redoStack)},C}();o.prototype.hasUndo=o.prototype.canUndo,o.prototype.hasRedo=o.prototype.canRedo,o.prototype.isClean=o.prototype.isAtBookmark,o.prototype.markClean=o.prototype.bookmark;function p(C,w){for(var k=w;k--;){var A=C[k];if(A&&!A[0].ignore){for(;k"+C.end.row+":"+C.end.column}function u(C,w){var k=C.action=="insert",A=w.action=="insert";if(k&&A)if(c(w.start,C.end)>=0)g(w,C,-1);else if(c(w.start,C.start)<=0)g(C,w,1);else return null;else if(k&&!A)if(c(w.start,C.end)>=0)g(w,C,-1);else if(c(w.end,C.start)<=0)g(C,w,-1);else return null;else if(!k&&A)if(c(w.start,C.start)>=0)g(w,C,1);else if(c(w.start,C.start)<=0)g(C,w,1);else return null;else if(!k&&!A)if(c(w.start,C.start)>=0)g(w,C,1);else if(c(w.end,C.start)<=0)g(C,w,-1);else return null;return[w,C]}function a(C,w){for(var k=C.length;k--;)for(var A=0;A=0?g(C,w,-1):(c(C.start,w.start)<=0||g(C,m.fromPoints(w.start,C.start),-1),g(w,C,1));else if(!k&&A)c(w.start,C.end)>=0?g(w,C,-1):(c(w.start,C.start)<=0||g(w,m.fromPoints(C.start,w.start),-1),g(C,w,1));else if(!k&&!A)if(c(w.start,C.end)>=0)g(w,C,-1);else if(c(w.end,C.start)<=0)g(C,w,-1);else{var x,_;return c(C.start,w.start)<0&&(x=C,C=y(C,w.start)),c(C.end,w.end)>0&&(_=y(C,w.end)),v(w.end,C.start,C.end,-1),_&&!x&&(C.lines=_.lines,C.start=_.start,C.end=_.end,_=C),[w,x,_].filter(Boolean)}return[w,C]}function g(C,w,k){v(C.start,w.start,w.end,k),v(C.end,w.start,w.end,k)}function v(C,w,k,A){C.row==(A==1?w:k).row&&(C.column+=A*(k.column-w.column)),C.row+=A*(k.row-w.row)}function y(C,w){var k=C.lines,A=C.end;C.end=f(w);var x=C.end.row-C.start.row,_=k.splice(x,k.length),E=x?w.column:w.column-C.start.column;k.push(_[0].substring(0,E)),_[0]=_[0].substr(E);var M={start:f(w),end:A,lines:_,action:C.action};return M}function b(C,w){w=s(w);for(var k=C.length;k--;){for(var A=C[k],x=0;xb&&(w=y.end.row+1,y=h.getNextFoldLine(w,y),b=y?y.start.row:1/0),w>v){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}S=this.$lines.get(++C),S?S.row=w:(S=this.$lines.createCell(w,a,this.session,l),this.$lines.push(S)),this.$renderCell(S,a,y,w),w++}this._signal("afterRender"),this.$updateGutterWidth(a)},u.prototype.$updateGutterWidth=function(a){var h=this.session,g=h.gutterRenderer||this.$renderer,v=h.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||h.$useWrapMode)&&(y=h.getLength()+v-1);var b=g?g.getWidth(h,y,a):y.toString().length*a.characterWidth,S=this.$padding||this.$computePadding();b+=S.left+S.right,b!==this.gutterWidth&&!isNaN(b)&&(this.gutterWidth=b,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",b))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var a=this.session.selection.getCursor();this.$cursorRow!==a.row&&(this.$cursorRow=a.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var a=this.session.selection.cursor.row;if(this.$cursorRow=a,!(this.$cursorCell&&this.$cursorCell.row==a)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var h=this.$lines.cells;this.$cursorCell=null;for(var g=0;g=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(g>0&&y&&y.start.row==h[g-1].row)v=h[g-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},u.prototype.scrollLines=function(a){var h=this.config;if(this.config=a,this.$updateCursorRow(),this.$lines.pageChanged(h,a))return this.update(a);this.$lines.moveContainer(a);var g=Math.min(a.lastRow+a.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=g,!h||v0;y--)this.$lines.shift();if(v>g)for(var y=this.session.getFoldedRowCount(g+1,v);y>0;y--)this.$lines.pop();a.firstRowv&&this.$lines.push(this.$renderLines(a,v+1,g)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(a)},u.prototype.$renderLines=function(a,h,g){for(var v=[],y=h,b=this.session.getNextFoldLine(y),S=b?b.start.row:1/0;y>S&&(y=b.end.row+1,b=this.session.getNextFoldLine(y,b),S=b?b.start.row:1/0),!(y>g);){var C=this.$lines.createCell(y,a,this.session,l);this.$renderCell(C,a,b,y),v.push(C),y++}return v},u.prototype.$renderCell=function(a,h,g,v){var y=a.element,b=this.session,S=y.childNodes[0],C=y.childNodes[1],w=y.childNodes[2],k=w.firstChild,A=b.$firstLineNumber,x=b.$breakpoints,_=b.$decorations,E=b.gutterRenderer||this.$renderer,M=this.$showFoldWidgets&&b.foldWidgets,L=g?g.start.row:Number.MAX_VALUE,$=h.lineHeight+"px",T=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",R=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=(E?E.getText(b,v):v+A).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||g&&v=L&&this.$cursorRow<=g.end.row)&&(T+="ace_gutter-active-line ",this.$cursorCell!=a&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=a)),x[v]&&(T+=x[v]),_[v]&&(T+=_[v]),this.$annotations[v]&&v!==L&&(T+=this.$annotations[v].className),M){var O=M[v];O==null&&(O=M[v]=b.getFoldWidget(v))}if(O){var D="ace_fold-widget ace_"+O,F=O=="start"&&v==L&&vg.right-h.right)return"foldWidgets"},u}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,p.implement(i.prototype,c);function l(u){var a=document.createTextNode("");u.appendChild(a);var h=o.createElement("span");u.appendChild(h);var g=o.createElement("span");u.appendChild(g);var v=o.createElement("span");return g.appendChild(v),u}r.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,d){var o=n("../range").Range,p=n("../lib/dom"),m=function(){function f(s){this.element=p.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return f.prototype.setPadding=function(s){this.$padding=s},f.prototype.setSession=function(s){this.session=s},f.prototype.setMarkers=function(s){this.markers=s},f.prototype.elt=function(s,i){var l=this.i!=-1&&this.element.childNodes[this.i];l?this.i++:(l=document.createElement("div"),this.element.appendChild(l),this.i=-1),l.style.cssText=i,l.className=s},f.prototype.update=function(s){if(s){this.config=s,this.i=0;var i;for(var l in this.markers){var u=this.markers[l];if(!u.range){u.update(i,this,this.session,s);continue}var a=u.range.clipRows(s.firstRow,s.lastRow);if(!a.isEmpty())if(a=a.toScreenRange(this.session),u.renderer){var h=this.$getTop(a.start.row,s),g=this.$padding+a.start.column*s.characterWidth;u.renderer(i,a,g,h,s)}else u.type=="fullLine"?this.drawFullLineMarker(i,a,u.clazz,s):u.type=="screenLine"?this.drawScreenLineMarker(i,a,u.clazz,s):a.isMultiLine()?u.type=="text"?this.drawTextMarker(i,a,u.clazz,s):this.drawMultiLineMarker(i,a,u.clazz,s):this.drawSingleLineMarker(i,a,u.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.iC,y==v),u,y==v?0:1,a)},f.prototype.drawMultiLineMarker=function(s,i,l,u,a){var h=this.$padding,g=u.lineHeight,v=this.$getTop(i.start.row,u),y=h+i.start.column*u.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var b=i.clone();b.end.row=b.start.row,b.end.column=this.session.getLine(b.start.row).length,this.drawBidiSingleLineMarker(s,b,l+" ace_br1 ace_start",u,null,a)}else this.elt(l+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+v+"px;left:"+y+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var b=i.clone();b.start.row=b.end.row,b.start.column=0,this.drawBidiSingleLineMarker(s,b,l+" ace_br12",u,null,a)}else{v=this.$getTop(i.end.row,u);var S=i.end.column*u.characterWidth;this.elt(l+" ace_br12","height:"+g+"px;width:"+S+"px;top:"+v+"px;left:"+h+"px;"+(a||""))}if(g=(i.end.row-i.start.row-1)*u.lineHeight,!(g<=0)){v=this.$getTop(i.start.row+1,u);var C=(i.start.column?1:0)|(i.end.column?0:8);this.elt(l+(C?" ace_br"+C:""),"height:"+g+"px;right:0;top:"+v+"px;left:"+h+"px;"+(a||""))}},f.prototype.drawSingleLineMarker=function(s,i,l,u,a,h){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(s,i,l,u,a,h);var g=u.lineHeight,v=(i.end.column+(a||0)-i.start.column)*u.characterWidth,y=this.$getTop(i.start.row,u),b=this.$padding+i.start.column*u.characterWidth;this.elt(l,"height:"+g+"px;width:"+v+"px;top:"+y+"px;left:"+b+"px;"+(h||""))},f.prototype.drawBidiSingleLineMarker=function(s,i,l,u,a,h){var g=u.lineHeight,v=this.$getTop(i.start.row,u),y=this.$padding,b=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);b.forEach(function(S){this.elt(l,"height:"+g+"px;width:"+(S.width+(a||0))+"px;top:"+v+"px;left:"+(y+S.left)+"px;"+(h||""))},this)},f.prototype.drawFullLineMarker=function(s,i,l,u,a){var h=this.$getTop(i.start.row,u),g=u.lineHeight;i.start.row!=i.end.row&&(g+=this.$getTop(i.end.row,u)-h),this.elt(l,"height:"+g+"px;top:"+h+"px;left:0;right:0;"+(a||""))},f.prototype.drawScreenLineMarker=function(s,i,l,u,a){var h=this.$getTop(i.start.row,u),g=u.lineHeight;this.elt(l,"height:"+g+"px;top:"+h+"px;left:0;right:0;"+(a||""))},f}();m.prototype.$padding=0;function c(f,s,i,l){return(f?1:0)|(s?2:0)|(i?4:0)|(l?8:0)}r.Marker=m}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,d){var o=new Set(["text","rparen","lparen"]);r.isTextToken=function(p){return o.has(p)}}),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(n,r,d){var o=n("../lib/oop"),p=n("../lib/dom"),m=n("../lib/lang"),c=n("./lines").Lines,f=n("../lib/event_emitter").EventEmitter,s=n("../config").nls,i=n("./text_util").isTextToken,l=function(){function u(a){this.dom=p,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",a.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new c(this.element)}return u.prototype.$updateEolChar=function(){var a=this.session.doc,h=a.getNewLineCharacter()==` -`&&a.getNewLineMode()!="windows",g=h?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=g)return this.EOL_CHAR=g,!0},u.prototype.setPadding=function(a){this.$padding=a,this.element.style.margin="0 "+a+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(a){this.$fontMetrics=a,this.$fontMetrics.on("changeCharacterSize",(function(h){this._signal("changeCharacterSize",h)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(a){this.session=a,a&&this.$computeTabString()},u.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},u.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var h=this.$tabStrings=[0],g=1;gA&&(w=k.end.row+1,k=this.session.getNextFoldLine(w,k),A=k?k.start.row:1/0),!(w>y);){var x=b[S++];if(x){this.dom.removeChildren(x),this.$renderLine(x,w,w==A?k:!1),C&&(x.style.top=this.$lines.computeLineTop(w,a,this.session)+"px");var _=a.lineHeight*this.session.getRowLength(w)+"px";x.style.height!=_&&(C=!0,x.style.height=_)}w++}if(C)for(;S0;y--)this.$lines.shift();if(h.lastRow>a.lastRow)for(var y=this.session.getFoldedRowCount(a.lastRow+1,h.lastRow);y>0;y--)this.$lines.pop();a.firstRowh.lastRow&&this.$lines.push(this.$renderLinesFragment(a,h.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(a,h,g){for(var v=[],y=h,b=this.session.getNextFoldLine(y),S=b?b.start.row:1/0;y>S&&(y=b.end.row+1,b=this.session.getNextFoldLine(y,b),S=b?b.start.row:1/0),!(y>g);){var C=this.$lines.createCell(y,a,this.session),w=C.element;this.dom.removeChildren(w),p.setStyle(w.style,"height",this.$lines.computeLineHeight(y,a,this.session)+"px"),p.setStyle(w.style,"top",this.$lines.computeLineTop(y,a,this.session)+"px"),this.$renderLine(w,y,y==S?b:!1),this.$useLineGroups()?w.className="ace_line_group":w.className="ace_line",v.push(C),y++}return v},u.prototype.update=function(a){this.$lines.moveContainer(a),this.config=a;for(var h=a.firstRow,g=a.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(a,h,g))},u.prototype.$renderToken=function(a,h,g,v){for(var y=this,b=/(\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]+)|(\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,S=this.dom.createFragment(this.element),C,w=0;C=b.exec(v);){var k=C[1],A=C[2],x=C[3],_=C[4],E=C[5];if(!(!y.showSpaces&&A)){var M=w!=C.index?v.slice(w,C.index):"";if(w=C.index+C[0].length,M&&S.appendChild(this.dom.createTextNode(M,this.element)),k){var L=y.session.getScreenTabSize(h+C.index);S.appendChild(y.$tabStrings[L].cloneNode(!0)),h+=L-1}else if(A)if(y.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=m.stringRepeat(y.SPACE_CHAR,A.length),S.appendChild($)}else S.appendChild(this.dom.createTextNode(A,this.element));else if(x){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=m.stringRepeat(y.SPACE_CHAR,x.length),S.appendChild($)}else if(_){h+=1;var $=this.dom.createElement("span");$.style.width=y.config.characterWidth*2+"px",$.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=y.showSpaces?y.SPACE_CHAR:_,S.appendChild($)}else if(E){h+=1;var $=this.dom.createElement("span");$.style.width=y.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=E,S.appendChild($)}}}if(S.appendChild(this.dom.createTextNode(w?v.slice(w):v,this.element)),i(g.type))a.appendChild(S);else{var T="ace_"+g.type.replace(/\./g," ace_"),$=this.dom.createElement("span");g.type=="fold"&&($.style.width=g.value.length*this.config.characterWidth+"px",$.setAttribute("title",s("Unfold code"))),$.className=T,$.appendChild(S),a.appendChild($)}return h+v.length},u.prototype.renderIndentGuide=function(a,h,g){var v=h.search(this.$indentGuideRe);if(v<=0||v>=g)return h;if(h[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,b=0;bb[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&a[h.row]!==""&&h.column===a[h.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=h.row+1;S0){for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,h)}}else for(var g=a.length-1;g>=0;g--){var v=a[g];if(this.$highlightIndentGuideMarker.end&&v.row=b;)S=this.$renderToken(C,S,k,A.substring(0,b-v)),A=A.substring(b-v),v=b,C=this.$createLineElement(),a.appendChild(C),C.appendChild(this.dom.createTextNode(m.stringRepeat(" ",g.indent),this.element)),y++,S=0,b=g[y]||Number.MAX_VALUE;A.length!=0&&(v+=A.length,S=this.$renderToken(C,S,k,A))}}g[g.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,S,null,"",!0)},u.prototype.$renderSimpleLine=function(a,h){for(var g=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,g,y,b);g=this.$renderToken(a,g,y,b)}}},u.prototype.$renderOverflowMessage=function(a,h,g,v,y){g&&this.$renderToken(a,h,g,v.slice(0,this.MAX_LINE_LENGTH-h));var b=this.dom.createElement("span");b.className="ace_inline_button ace_keyword ace_toggle_wrap",b.textContent=y?"":"",a.appendChild(b)},u.prototype.$renderLine=function(a,h,g){if(!g&&g!=!1&&(g=this.session.getFoldLine(h)),g)var v=this.$getFoldLineTokens(h,g);else var v=this.session.getTokens(h);var y=a;if(v.length){var b=this.session.getRowSplitData(h);if(b&&b.length){this.$renderWrappedLine(a,v,b);var y=a.lastChild}else{var y=a;this.$useLineGroups()&&(y=this.$createLineElement(),a.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),a.appendChild(y));if(this.showEOL&&y){g&&(h=g.end.row);var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_eol",S.textContent=h==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(S)}},u.prototype.$getFoldLineTokens=function(a,h){var g=this.session,v=[];function y(S,C,w){for(var k=0,A=0;A+S[k].value.lengthw-C&&(x=x.substring(0,w-C)),v.push({type:S[k].type,value:x}),A=C+x.length,k+=1}for(;Aw?v.push({type:S[k].type,value:x.substring(0,w-A)}):v.push(S[k]),A+=x.length,k+=1}}var b=g.getTokens(a);return h.walk(function(S,C,w,k,A){S!=null?v.push({type:"fold",value:S}):(A&&(b=g.getTokens(C)),b.length&&y(b,k,w))},h.end.row,this.session.getLine(h.end.row).length),v},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();l.prototype.EOF_CHAR="¶",l.prototype.EOL_CHAR_LF="¬",l.prototype.EOL_CHAR_CRLF="¤",l.prototype.EOL_CHAR=l.prototype.EOL_CHAR_LF,l.prototype.TAB_CHAR="—",l.prototype.SPACE_CHAR="·",l.prototype.$padding=0,l.prototype.MAX_LINE_LENGTH=1e4,l.prototype.showInvisibles=!1,l.prototype.showSpaces=!1,l.prototype.showTabs=!1,l.prototype.showEOL=!1,l.prototype.displayIndentGuides=!0,l.prototype.$highlightIndentGuides=!0,l.prototype.$tabStrings=[],l.prototype.destroy={},l.prototype.onChangeTabSize=l.prototype.$computeTabString,o.implement(l.prototype,f),r.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,d){var o=n("../lib/dom"),p=function(){function m(c){this.element=o.createElement("div"),this.element.className="ace_layer ace_cursor-layer",c.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),o.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return m.prototype.$updateOpacity=function(c){for(var f=this.cursors,s=f.length;s--;)o.setStyle(f[s].style,"opacity",c?"":"0")},m.prototype.$startCssAnimation=function(){for(var c=this.cursors,f=c.length;f--;)c[f].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&o.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},m.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,o.removeCssClass(this.element,"ace_animate-blinking")},m.prototype.setPadding=function(c){this.$padding=c},m.prototype.setSession=function(c){this.session=c},m.prototype.setBlinking=function(c){c!=this.isBlinking&&(this.isBlinking=c,this.restartTimer())},m.prototype.setBlinkInterval=function(c){c!=this.blinkInterval&&(this.blinkInterval=c,this.restartTimer())},m.prototype.setSmoothBlinking=function(c){c!=this.smoothBlinking&&(this.smoothBlinking=c,o.setCssClass(this.element,"ace_smooth-blinking",c),this.$updateCursors(!0),this.restartTimer())},m.prototype.addCursor=function(){var c=o.createElement("div");return c.className="ace_cursor",this.element.appendChild(c),this.cursors.push(c),c},m.prototype.removeCursor=function(){if(this.cursors.length>1){var c=this.cursors.pop();return c.parentNode.removeChild(c),c}},m.prototype.hideCursor=function(){this.isVisible=!1,o.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},m.prototype.showCursor=function(){this.isVisible=!0,o.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},m.prototype.restartTimer=function(){var c=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,o.removeCssClass(this.element,"ace_smooth-blinking")),c(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&o.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),o.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var f=(function(){this.timeoutId=setTimeout(function(){c(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){c(!0),f()},this.blinkInterval),f()}},m.prototype.getPixelPosition=function(c,f){if(!this.config||!this.session)return{left:0,top:0};c||(c=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(c),i=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,c.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),l=(s.row-(f?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:l}},m.prototype.isCursorInView=function(c,f){return c.top>=0&&c.topc.height+c.offset||u.top<0)&&s>1)){var a=this.cursors[i++]||this.addCursor(),h=a.style;this.drawCursor?this.drawCursor(a,u,c,f[s],this.session):this.isCursorInView(u,c)?(o.setStyle(h,"display","block"),o.translate(a,u.left,u.top),o.setStyle(h,"width",Math.round(c.characterWidth)+"px"),o.setStyle(h,"height",c.lineHeight+"px")):o.setStyle(h,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=u,this.restartTimer()},m.prototype.$setOverwrite=function(c){c!=this.overwrite&&(this.overwrite=c,c?o.addCssClass(this.element,"ace_overwrite-cursors"):o.removeCssClass(this.element,"ace_overwrite-cursors"))},m.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},m}();p.prototype.$padding=0,p.prototype.drawCursor=null,r.Cursor=p}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,d){var o=this&&this.__extends||function(){var a=function(h,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])},a(h,g)};return function(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");a(h,g);function v(){this.constructor=h}h.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),p=n("./lib/oop"),m=n("./lib/dom"),c=n("./lib/event"),f=n("./lib/event_emitter").EventEmitter,s=32768,i=function(){function a(h,g){this.element=m.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+g,this.inner=m.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)}return a.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},a}();p.implement(i.prototype,f);var l=function(a){o(h,a);function h(g,v){var y=a.call(this,g,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=m.scrollbarWidth(g.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return h.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var g=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-g)/(this.coeff-g)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(g){this.element.style.height=g+"px"},h.prototype.setScrollHeight=function(g){this.scrollHeight=g,g>s?(this.coeff=s/g,g=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=g+"px"},h.prototype.setScrollTop=function(g){this.scrollTop!=g&&(this.skipEvent=!0,this.scrollTop=g,this.element.scrollTop=g*this.coeff)},h}(i);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var u=function(a){o(h,a);function h(g,v){var y=a.call(this,g,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return h.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.setWidth=function(g){this.element.style.width=g+"px"},h.prototype.setInnerWidth=function(g){this.inner.style.width=g+"px"},h.prototype.setScrollWidth=function(g){this.inner.style.width=g+"px"},h.prototype.setScrollLeft=function(g){this.scrollLeft!=g&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=g)},h}(i);r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=u,r.VScrollBar=l,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,d){var o=this&&this.__extends||function(){var u=function(a,h){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(g[y]=v[y])},u(a,h)};return function(a,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");u(a,h);function g(){this.constructor=a}a.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),p=n("./lib/oop"),m=n("./lib/dom"),c=n("./lib/event"),f=n("./lib/event_emitter").EventEmitter;m.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ - position: absolute; - background: rgba(128, 128, 128, 0.6); - -moz-box-sizing: border-box; - box-sizing: border-box; - border: 1px solid #bbb; - border-radius: 2px; - z-index: 8; -} -.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { - position: absolute; - z-index: 6; - background: none; - overflow: hidden!important; -} -.ace_editor>.ace_sb-v { - z-index: 6; - right: 0; - top: 0; - width: 12px; -} -.ace_editor>.ace_sb-v div { - z-index: 8; - right: 0; - width: 100%; -} -.ace_editor>.ace_sb-h { - bottom: 0; - left: 0; - height: 12px; -} -.ace_editor>.ace_sb-h div { - bottom: 0; - height: 100%; -} -.ace_editor>.ace_sb_grabbed { - z-index: 8; - background: #000; -}`,"ace_scrollbar.css",!1);var s=function(){function u(a,h){this.element=m.createElement("div"),this.element.className="ace_sb"+h,this.inner=m.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},u}();p.implement(s.prototype,f);var i=function(u){o(a,u);function a(h,g){var v=u.call(this,h,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=h,v.width=v.VScrollWidth,v.renderer=g,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return a.prototype.onMouseDown=function(h,g){if(h==="mousedown"&&!(c.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var v=this,y=g.clientY,b=function(_){y=_.clientY},S=function(){clearInterval(A)},C=g.clientY,w=this.thumbTop,k=function(){if(y!==void 0){var _=v.scrollTopFromThumbTop(w+y-C);_!==v.scrollTop&&v._emit("scroll",{data:_})}};c.capture(this.inner,b,S);var A=setInterval(k,20);return c.preventDefault(g)}var x=g.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(x)}),c.preventDefault(g)}},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(h){var g=h*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return g=g>>0,g<0?g=0:g>this.pageHeight-this.viewHeight&&(g=this.pageHeight-this.viewHeight),g},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(h){this.height=Math.max(0,h),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(h,g){this.pageHeight===h&&!g||(this.pageHeight=h,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})))},a.prototype.setScrollTop=function(h){this.scrollTop=h,h<0&&(h=0),this.thumbTop=h*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},a}(s);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var l=function(u){o(a,u);function a(h,g){var v=u.call(this,h,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=g,v}return a.prototype.onMouseDown=function(h,g){if(h==="mousedown"&&!(c.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var v=this,y=g.clientX,b=function(_){y=_.clientX},S=function(){clearInterval(A)},C=g.clientX,w=this.thumbLeft,k=function(){if(y!==void 0){var _=v.scrollLeftFromThumbLeft(w+y-C);_!==v.scrollLeft&&v._emit("scroll",{data:_})}};c.capture(this.inner,b,S);var A=setInterval(k,20);return c.preventDefault(g)}var x=g.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(x)}),c.preventDefault(g)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.prototype.scrollLeftFromThumbLeft=function(h){var g=h*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return g=g>>0,g<0?g=0:g>this.pageWidth-this.viewWidth&&(g=this.pageWidth-this.viewWidth),g},a.prototype.setWidth=function(h){this.width=Math.max(0,h),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},a.prototype.setScrollWidth=function(h,g){this.pageWidth===h&&!g||(this.pageWidth=h,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})))},a.prototype.setScrollLeft=function(h){this.scrollLeft=h,h<0&&(h=0),this.thumbLeft=h*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},a}(s);l.prototype.setInnerWidth=l.prototype.setScrollWidth,r.ScrollBar=i,r.ScrollBarV=i,r.ScrollBarH=l,r.VScrollBar=i,r.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,d){var o=n("./lib/event"),p=function(){function m(c,f){this.onRender=c,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=f||window;var s=this;this._flush=function(i){s.pending=!1;var l=s.changes;if(l&&(o.blockIdle(100),s.changes=0,s.onRender(l)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return m.prototype.schedule=function(c){this.changes=this.changes|c,this.changes&&!this.pending&&(o.nextFrame(this._flush),this.pending=!0)},m.prototype.clear=function(c){var f=this.changes;return this.changes=0,f},m}();r.RenderLoop=p}),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(n,r,d){var o=n("../lib/oop"),p=n("../lib/dom"),m=n("../lib/lang"),c=n("../lib/event"),f=n("../lib/useragent"),s=n("../lib/event_emitter").EventEmitter,i=512,l=typeof ResizeObserver=="function",u=200,a=function(){function h(g){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=m.stringRepeat("X",i),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()}return h.prototype.$setMeasureNodeStyles=function(g,v){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",f.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=v?"hidden":"visible"},h.prototype.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===g.width&&v.height===g.height,this._emit("changeCharacterSize",{data:g})}},h.prototype.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(v){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},h.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=c.onIdle(function v(){g.checkForSizeChanges(),c.onIdle(v,500)},500)},h.prototype.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},h.prototype.$measureSizes=function(g){var v={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/i};return v.width===0||v.height===0?null:v},h.prototype.$measureCharWidth=function(g){this.$main.textContent=m.stringRepeat(g,i);var v=this.$main.getBoundingClientRect();return v.width/i},h.prototype.getCharacterWidth=function(g){var v=this.charSizes[g];return v===void 0&&(v=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),v},h.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},h.prototype.$getZoom=function(g){return!g||!g.parentElement?1:(window.getComputedStyle(g).zoom||1)*this.$getZoom(g.parentElement)},h.prototype.$initTransformMeasureNodes=function(){var g=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=p.buildDom([g(0,0),g(u,0),g(0,u),g(u,u)],this.el)},h.prototype.transformCoordinates=function(g,v){if(g){var y=this.$getZoom(this.el);g=w(1/y,g)}function b(F,B,U){var H=F[1]*B[0]-F[0]*B[1];return[(-B[1]*U[0]+B[0]*U[1])/H,(+F[1]*U[0]-F[0]*U[1])/H]}function S(F,B){return[F[0]-B[0],F[1]-B[1]]}function C(F,B){return[F[0]+B[0],F[1]+B[1]]}function w(F,B){return[F*B[0],F*B[1]]}this.els||this.$initTransformMeasureNodes();function k(F){var B=F.getBoundingClientRect();return[B.left,B.top]}var A=k(this.els[0]),x=k(this.els[1]),_=k(this.els[2]),E=k(this.els[3]),M=b(S(E,x),S(E,_),S(C(x,_),C(E,A))),L=w(1+M[0],S(x,A)),$=w(1+M[1],S(_,A));if(v){var T=v,R=M[0]*T[0]/u+M[1]*T[1]/u+1,I=C(w(T[0],L),w(T[1],$));return C(w(1/R/u,I),A)}var O=S(g,A),D=b(S(L,w(M[0],O)),S($,w(M[1],O)),O);return w(u,D)},h}();a.prototype.$characterSize={width:0,height:0},o.implement(a.prototype,s),r.FontMetrics=a}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,d){d.exports=` -.ace_br1 {border-top-left-radius : 3px;} -.ace_br2 {border-top-right-radius : 3px;} -.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} -.ace_br4 {border-bottom-right-radius: 3px;} -.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} -.ace_br8 {border-bottom-left-radius : 3px;} -.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} - - -.ace_editor { - position: relative; - overflow: hidden; - padding: 0; - font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; - direction: ltr; - text-align: left; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -.ace_scroller { - position: absolute; - overflow: hidden; - top: 0; - bottom: 0; - background-color: inherit; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - cursor: text; -} - -.ace_content { - position: absolute; - box-sizing: border-box; - min-width: 100%; - contain: style size layout; - font-variant-ligatures: no-common-ligatures; -} - -.ace_keyboard-focus:focus { - box-shadow: inset 0 0 0 2px #5E9ED6; - outline: none; -} - -.ace_dragging .ace_scroller:before{ - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - content: ''; - background: rgba(250, 250, 250, 0.01); - z-index: 1000; -} -.ace_dragging.ace_dark .ace_scroller:before{ - background: rgba(0, 0, 0, 0.01); -} - -.ace_gutter { - position: absolute; - overflow : hidden; - width: auto; - top: 0; - bottom: 0; - left: 0; - cursor: default; - z-index: 4; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - contain: style size layout; -} - -.ace_gutter-active-line { - position: absolute; - left: 0; - right: 0; -} - -.ace_scroller.ace_scroll-left:after { - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; - pointer-events: none; -} - -.ace_gutter-cell, .ace_gutter-cell_svg-icons { - position: absolute; - top: 0; - left: 0; - right: 0; - padding-left: 19px; - padding-right: 6px; - background-repeat: no-repeat; -} - -.ace_gutter-cell_svg-icons .ace_gutter_annotation { - margin-left: -14px; - float: left; -} - -.ace_gutter-cell .ace_gutter_annotation { - margin-left: -19px; - float: left; -} - -.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold { - 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=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { - 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=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_info, .ace_icon.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); - background-repeat: no-repeat; - background-position: 2px center; -} -.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); -} - -.ace_icon_svg.ace_error { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); - background-color: crimson; -} -.ace_icon_svg.ace_warning { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); - background-color: darkorange; -} -.ace_icon_svg.ace_info { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); - background-color: royalblue; -} - -.ace_icon_svg.ace_error_fold { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); - background-color: crimson; -} -.ace_icon_svg.ace_warning_fold { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); - background-color: darkorange; -} - -.ace_scrollbar { - contain: strict; - position: absolute; - right: 0; - bottom: 0; - z-index: 6; -} - -.ace_scrollbar-inner { - position: absolute; - cursor: text; - left: 0; - top: 0; -} - -.ace_scrollbar-v{ - overflow-x: hidden; - overflow-y: scroll; - top: 0; -} - -.ace_scrollbar-h { - overflow-x: scroll; - overflow-y: hidden; - left: 0; -} - -.ace_print-margin { - position: absolute; - height: 100%; -} - -.ace_text-input { - position: absolute; - z-index: 0; - width: 0.5em; - height: 1em; - opacity: 0; - background: transparent; - -moz-appearance: none; - appearance: none; - border: none; - resize: none; - outline: none; - overflow: hidden; - font: inherit; - padding: 0 1px; - margin: 0 -1px; - contain: strict; - -ms-user-select: text; - -moz-user-select: text; - -webkit-user-select: text; - user-select: text; - /*with \`pre-line\` chrome inserts   instead of space*/ - white-space: pre!important; -} -.ace_text-input.ace_composition { - background: transparent; - color: inherit; - z-index: 1000; - opacity: 1; -} -.ace_composition_placeholder { color: transparent } -.ace_composition_marker { - border-bottom: 1px solid; - position: absolute; - border-radius: 0; - margin-top: 1px; -} - -[ace_nocontext=true] { - transform: none!important; - filter: none!important; - clip-path: none!important; - mask : none!important; - contain: none!important; - perspective: none!important; - mix-blend-mode: initial!important; - z-index: auto; -} - -.ace_layer { - z-index: 1; - position: absolute; - overflow: hidden; - /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ - word-wrap: normal; - white-space: pre; - height: 100%; - width: 100%; - box-sizing: border-box; - /* setting pointer-events: auto; on node under the mouse, which changes - during scroll, will break mouse wheel scrolling in Safari */ - pointer-events: none; -} - -.ace_gutter-layer { - position: relative; - width: auto; - text-align: right; - pointer-events: auto; - height: 1000000px; - contain: style size layout; -} - -.ace_text-layer { - font: inherit !important; - position: absolute; - height: 1000000px; - width: 1000000px; - contain: style size layout; -} - -.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { - contain: style size layout; - position: absolute; - top: 0; - left: 0; - right: 0; -} - -.ace_hidpi .ace_text-layer, -.ace_hidpi .ace_gutter-layer, -.ace_hidpi .ace_content, -.ace_hidpi .ace_gutter { - contain: strict; -} -.ace_hidpi .ace_text-layer > .ace_line, -.ace_hidpi .ace_text-layer > .ace_line_group { - contain: strict; -} - -.ace_cjk { - display: inline-block; - text-align: center; -} - -.ace_cursor-layer { - z-index: 4; -} - -.ace_cursor { - z-index: 4; - position: absolute; - box-sizing: border-box; - border-left: 2px solid; - /* workaround for smooth cursor repaintng whole screen in chrome */ - transform: translatez(0); -} - -.ace_multiselect .ace_cursor { - border-left-width: 1px; -} - -.ace_slim-cursors .ace_cursor { - border-left-width: 1px; -} - -.ace_overwrite-cursors .ace_cursor { - border-left-width: 0; - border-bottom: 1px solid; -} - -.ace_hidden-cursors .ace_cursor { - opacity: 0.2; -} - -.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { - opacity: 0; -} - -.ace_smooth-blinking .ace_cursor { - transition: opacity 0.18s; -} - -.ace_animate-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: step-end; - animation-name: blink-ace-animate; - animation-iteration-count: infinite; -} - -.ace_animate-blinking.ace_smooth-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: ease-in-out; - animation-name: blink-ace-animate-smooth; -} - -@keyframes blink-ace-animate { - from, to { opacity: 1; } - 60% { opacity: 0; } -} - -@keyframes blink-ace-animate-smooth { - from, to { opacity: 1; } - 45% { opacity: 1; } - 60% { opacity: 0; } - 85% { opacity: 0; } -} - -.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { - position: absolute; - z-index: 3; -} - -.ace_marker-layer .ace_selection { - position: absolute; - z-index: 5; -} - -.ace_marker-layer .ace_bracket { - position: absolute; - z-index: 6; -} - -.ace_marker-layer .ace_error_bracket { - position: absolute; - border-bottom: 1px solid #DE5555; - border-radius: 0; -} - -.ace_marker-layer .ace_active-line { - position: absolute; - z-index: 2; -} - -.ace_marker-layer .ace_selected-word { - position: absolute; - z-index: 4; - box-sizing: border-box; -} - -.ace_line .ace_fold { - box-sizing: border-box; - - display: inline-block; - height: 11px; - margin-top: -2px; - vertical-align: middle; - - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); - background-repeat: no-repeat, repeat-x; - background-position: center center, top left; - color: transparent; - - border: 1px solid black; - border-radius: 2px; - - cursor: pointer; - pointer-events: auto; -} - -.ace_dark .ace_fold { -} - -.ace_fold:hover{ - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); -} - -.ace_tooltip { - background-color: #f5f5f5; - border: 1px solid gray; - border-radius: 1px; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); - color: black; - max-width: 100%; - padding: 3px 4px; - position: fixed; - z-index: 999999; - box-sizing: border-box; - cursor: default; - white-space: pre; - word-wrap: break-word; - line-height: normal; - font-style: normal; - font-weight: normal; - letter-spacing: normal; - pointer-events: none; -} - -.ace_tooltip.ace_dark { - background-color: #636363; - color: #fff; -} - -.ace_tooltip:focus { - outline: 1px solid #5E9ED6; -} - -.ace_icon { - display: inline-block; - width: 18px; - vertical-align: top; -} - -.ace_icon_svg { - display: inline-block; - width: 12px; - vertical-align: top; - -webkit-mask-repeat: no-repeat; - -webkit-mask-size: 12px; - -webkit-mask-position: center; -} - -.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { - padding-right: 13px; -} - -.ace_fold-widget { - box-sizing: border-box; - - margin: 0 -12px 0 1px; - display: none; - width: 11px; - vertical-align: top; - - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: center; - - border-radius: 3px; - - border: 1px solid transparent; - cursor: pointer; -} - -.ace_folding-enabled .ace_fold-widget { - display: inline-block; -} - -.ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); -} - -.ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); -} - -.ace_fold-widget:hover { - border: 1px solid rgba(0, 0, 0, 0.3); - background-color: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); -} - -.ace_fold-widget:active { - border: 1px solid rgba(0, 0, 0, 0.4); - background-color: rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); -} -/** - * Dark version for fold widgets - */ -.ace_dark .ace_fold-widget { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); -} -.ace_dark .ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget:hover { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); - background-color: rgba(255, 255, 255, 0.1); -} -.ace_dark .ace_fold-widget:active { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); -} - -.ace_inline_button { - border: 1px solid lightgray; - display: inline-block; - margin: -1px 8px; - padding: 0 5px; - pointer-events: auto; - cursor: pointer; -} -.ace_inline_button:hover { - border-color: gray; - background: rgba(200,200,200,0.2); - display: inline-block; - pointer-events: auto; -} - -.ace_fold-widget.ace_invalid { - background-color: #FFB4B4; - border-color: #DE5555; -} - -.ace_fade-fold-widgets .ace_fold-widget { - transition: opacity 0.4s ease 0.05s; - opacity: 0; -} - -.ace_fade-fold-widgets:hover .ace_fold-widget { - transition: opacity 0.05s ease 0.05s; - opacity:1; -} - -.ace_underline { - text-decoration: underline; -} - -.ace_bold { - font-weight: bold; -} - -.ace_nobold .ace_bold { - font-weight: normal; -} - -.ace_italic { - font-style: italic; -} - - -.ace_error-marker { - background-color: rgba(255, 0, 0,0.2); - position: absolute; - z-index: 9; -} - -.ace_highlight-marker { - background-color: rgba(255, 255, 0,0.2); - position: absolute; - z-index: 8; -} - -.ace_mobile-menu { - position: absolute; - line-height: 1.5; - border-radius: 4px; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - background: white; - box-shadow: 1px 3px 2px grey; - border: 1px solid #dcdcdc; - color: black; -} -.ace_dark > .ace_mobile-menu { - background: #333; - color: #ccc; - box-shadow: 1px 3px 2px grey; - border: 1px solid #444; - -} -.ace_mobile-button { - padding: 2px; - cursor: pointer; - overflow: hidden; -} -.ace_mobile-button:hover { - background-color: #eee; - opacity:1; -} -.ace_mobile-button:active { - background-color: #ddd; -} - -.ace_placeholder { - font-family: arial; - transform: scale(0.9); - transform-origin: left; - white-space: pre; - opacity: 0.7; - margin: 0 10px; -} - -.ace_ghost_text { - opacity: 0.5; - font-style: italic; - white-space: pre; -}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,d){var o=n("../lib/dom"),p=n("../lib/oop"),m=n("../lib/event_emitter").EventEmitter,c=function(){function f(s,i){this.canvas=o.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.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 f.prototype.$updateDecorators=function(s){var i=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 l=(s.lastRow+1)*this.lineHeight;lM.priority?1:0}var h=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),h){var g={info:1,warning:2,error:3};h.forEach(function(E){E.priority=g[E.type]||null}),h=h.sort(a);for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(x=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(x-this.halfMinDecorationHeight),k=Math.round(x+this.halfMinDecorationHeight)}u.fillStyle=i[h[y].type]||null,u.fillRect(0,C,this.canvasWidth,k-w)}}var _=this.renderer.session.selection.getCursor();if(_){var S=this.compensateFoldRows(_.row,v),C=Math.round((_.row-S)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,C,this.canvasWidth,2)}},f.prototype.compensateFoldRows=function(s,i){var l=0;if(i&&i.length>0)for(var u=0;ui[u].start.row&&s=i[u].end.row&&(l+=i[u].end.row-i[u].start.row);return l},f}();p.implement(c.prototype,m),r.Decorator=c}),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"],function(n,r,d){var o=n("./lib/oop"),p=n("./lib/dom"),m=n("./lib/lang"),c=n("./config"),f=n("./layer/gutter").Gutter,s=n("./layer/marker").Marker,i=n("./layer/text").Text,l=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,a=n("./scrollbar").VScrollBar,h=n("./scrollbar_custom").HScrollBar,g=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,b=n("./lib/event_emitter").EventEmitter,S=n("./css/editor-css"),C=n("./layer/decorators").Decorator,w=n("./lib/useragent");p.importCssString(S,"ace_editor.css",!1);var k=function(){function A(x,_){var E=this;this.container=x||p.createElement("div"),p.addCssClass(this.container,"ace_editor"),p.HI_DPI&&p.addCssClass(this.container,"ace_hidpi"),this.setTheme(_),c.get("useStrictCSP")==null&&c.set("useStrictCSP",!1),this.$gutter=p.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=p.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=p.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new f(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var M=this.$textLayer=new i(this.content);this.canvas=M.element,this.$markerFront=new s(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new a(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(L){E.$scrollAnimation||E.session.setScrollTop(L.data-E.scrollMargin.top)}),this.scrollBarH.on("scroll",function(L){E.$scrollAnimation||E.session.setScrollLeft(L.data-E.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(L){E.updateCharacterSize(),E.onResize(!0,E.gutterWidth,E.$size.width,E.$size.height),E._signal("changeCharacterSize",L)}),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=!w.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),c.resetOptions(this),c._signal("renderer",this)}return A.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(),p.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},A.prototype.setSession=function(x){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=x,x&&this.scrollMargin.top&&x.getScrollTop()<=0&&x.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(x),this.$markerBack.setSession(x),this.$markerFront.setSession(x),this.$gutterLayer.setSession(x),this.$textLayer.setSession(x),x&&(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))},A.prototype.updateLines=function(x,_,E){if(_===void 0&&(_=1/0),this.$changedLines?(this.$changedLines.firstRow>x&&(this.$changedLines.firstRow=x),this.$changedLines.lastRow<_&&(this.$changedLines.lastRow=_)):this.$changedLines={firstRow:x,lastRow:_},this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},A.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},A.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},A.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},A.prototype.updateFull=function(x){x?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},A.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},A.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},A.prototype.onResize=function(x,_,E,M){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=x?1:0;var L=this.container;M||(M=L.clientHeight||L.scrollHeight),E||(E=L.clientWidth||L.scrollWidth);var $=this.$updateCachedSize(x,_,E,M);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!E&&!M)return this.resizing=0;x&&(this.$gutterLayer.$padding=null),x?this.$renderChanges($|this.$changes,!0):this.$loop.schedule($|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},A.prototype.$updateCachedSize=function(x,_,E,M){M-=this.$extraHeight||0;var L=0,$=this.$size,T={width:$.width,height:$.height,scrollerHeight:$.scrollerHeight,scrollerWidth:$.scrollerWidth};if(M&&(x||$.height!=M)&&($.height=M,L|=this.CHANGE_SIZE,$.scrollerHeight=$.height,this.$horizScroll&&($.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight($.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",L=L|this.CHANGE_SCROLL),E&&(x||$.width!=E)){L|=this.CHANGE_SIZE,$.width=E,_==null&&(_=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=_,p.setStyle(this.scrollBarH.element.style,"left",_+"px"),p.setStyle(this.scroller.style,"left",_+this.margin.left+"px"),$.scrollerWidth=Math.max(0,E-_-this.scrollBarV.getWidth()-this.margin.h),p.setStyle(this.$gutter.style,"left",this.margin.left+"px");var R=this.scrollBarV.getWidth()+"px";p.setStyle(this.scrollBarH.element.style,"right",R),p.setStyle(this.scroller.style,"right",R),p.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth($.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||x)&&(L|=this.CHANGE_FULL)}return $.$dirty=!E||!M,L&&this._signal("resize",T),L},A.prototype.onGutterResize=function(x){var _=this.$showGutter?x:0;_!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,_,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()},A.prototype.adjustWrapLimit=function(){var x=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(x/this.characterWidth);return this.session.adjustWrapLimit(_,this.$showPrintMargin&&this.$printMarginColumn)},A.prototype.setAnimatedScroll=function(x){this.setOption("animatedScroll",x)},A.prototype.getAnimatedScroll=function(){return this.$animatedScroll},A.prototype.setShowInvisibles=function(x){this.setOption("showInvisibles",x),this.session.$bidiHandler.setShowInvisibles(x)},A.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},A.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},A.prototype.setDisplayIndentGuides=function(x){this.setOption("displayIndentGuides",x)},A.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},A.prototype.setHighlightIndentGuides=function(x){this.setOption("highlightIndentGuides",x)},A.prototype.setShowPrintMargin=function(x){this.setOption("showPrintMargin",x)},A.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},A.prototype.setPrintMarginColumn=function(x){this.setOption("printMarginColumn",x)},A.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},A.prototype.getShowGutter=function(){return this.getOption("showGutter")},A.prototype.setShowGutter=function(x){return this.setOption("showGutter",x)},A.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},A.prototype.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},A.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},A.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},A.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var x=p.createElement("div");x.className="ace_layer ace_print-margin-layer",this.$printMarginEl=p.createElement("div"),this.$printMarginEl.className="ace_print-margin",x.appendChild(this.$printMarginEl),this.content.insertBefore(x,this.content.firstChild)}var _=this.$printMarginEl.style;_.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",_.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},A.prototype.getContainerElement=function(){return this.container},A.prototype.getMouseEventTarget=function(){return this.scroller},A.prototype.getTextAreaContainer=function(){return this.container},A.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var x=this.textarea.style,_=this.$composition;if(!this.$keepTextAreaAtCursor&&!_){p.translate(this.textarea,-100,0);return}var E=this.$cursorLayer.$pixelPos;if(E){_&&_.markerRange&&(E=this.$cursorLayer.getPixelPosition(_.markerRange.start,!0));var M=this.layerConfig,L=E.top,$=E.left;L-=M.offset;var T=_&&_.useTextareaForIME||w.isMobile?this.lineHeight:1;if(L<0||L>M.height-T){p.translate(this.textarea,0,0);return}var R=1,I=this.$size.height-T;if(!_)L+=this.lineHeight;else if(_.useTextareaForIME){var O=this.textarea.value;R=this.characterWidth*this.session.$getStringScreenWidth(O)[0]}else L+=this.lineHeight+2;$-=this.scrollLeft,$>this.$size.scrollerWidth-R&&($=this.$size.scrollerWidth-R),$+=this.gutterWidth+this.margin.left,p.setStyle(x,"height",T+"px"),p.setStyle(x,"width",R+"px"),p.translate(this.textarea,Math.min($,this.$size.scrollerWidth-R),Math.min(L,I))}}},A.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},A.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},A.prototype.getLastFullyVisibleRow=function(){var x=this.layerConfig,_=x.lastRow,E=this.session.documentToScreenRow(_,0)*x.lineHeight;return E-this.session.getScrollTop()>x.height-x.lineHeight?_-1:_},A.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},A.prototype.setPadding=function(x){this.$padding=x,this.$textLayer.setPadding(x),this.$cursorLayer.setPadding(x),this.$markerFront.setPadding(x),this.$markerBack.setPadding(x),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},A.prototype.setScrollMargin=function(x,_,E,M){var L=this.scrollMargin;L.top=x|0,L.bottom=_|0,L.right=M|0,L.left=E|0,L.v=L.top+L.bottom,L.h=L.left+L.right,L.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-L.top),this.updateFull()},A.prototype.setMargin=function(x,_,E,M){var L=this.margin;L.top=x|0,L.bottom=_|0,L.right=M|0,L.left=E|0,L.v=L.top+L.bottom,L.h=L.left+L.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},A.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},A.prototype.setHScrollBarAlwaysVisible=function(x){this.setOption("hScrollBarAlwaysVisible",x)},A.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},A.prototype.setVScrollBarAlwaysVisible=function(x){this.setOption("vScrollBarAlwaysVisible",x)},A.prototype.$updateScrollBarV=function(){var x=this.layerConfig.maxHeight,_=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(x-=(_-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>x-_&&(x=this.scrollTop+_,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(x+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},A.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},A.prototype.freeze=function(){this.$frozen=!0},A.prototype.unfreeze=function(){this.$frozen=!1},A.prototype.$renderChanges=function(x,_){if(this.$changes&&(x|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!x&&!_){this.$changes|=x;return}if(this.$size.$dirty)return this.$changes|=x,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",x),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var E=this.layerConfig;if(x&this.CHANGE_FULL||x&this.CHANGE_SIZE||x&this.CHANGE_TEXT||x&this.CHANGE_LINES||x&this.CHANGE_SCROLL||x&this.CHANGE_H_SCROLL){if(x|=this.$computeLayerConfig()|this.$loop.clear(),E.firstRow!=this.layerConfig.firstRow&&E.firstRowScreen==this.layerConfig.firstRowScreen){var M=this.scrollTop+(E.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;M>0&&(this.scrollTop=M,x=x|this.CHANGE_SCROLL,x|=this.$computeLayerConfig()|this.$loop.clear())}E=this.layerConfig,this.$updateScrollBarV(),x&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),p.translate(this.content,-this.scrollLeft,-E.offset);var L=E.width+2*this.$padding+"px",$=E.minHeight+"px";p.setStyle(this.content.style,"width",L),p.setStyle(this.content.style,"height",$)}if(x&this.CHANGE_H_SCROLL&&(p.translate(this.content,-this.scrollLeft,-E.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),x&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(E),this.$showGutter&&this.$gutterLayer.update(E),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(E),this.$markerBack.update(E),this.$markerFront.update(E),this.$cursorLayer.update(E),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}if(x&this.CHANGE_SCROLL){this.$changedLines=null,x&this.CHANGE_TEXT||x&this.CHANGE_LINES?this.$textLayer.update(E):this.$textLayer.scrollLines(E),this.$showGutter&&(x&this.CHANGE_GUTTER||x&this.CHANGE_LINES?this.$gutterLayer.update(E):this.$gutterLayer.scrollLines(E)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(E),this.$markerBack.update(E),this.$markerFront.update(E),this.$cursorLayer.update(E),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}x&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(E),this.$showGutter&&this.$gutterLayer.update(E),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(E)):x&this.CHANGE_LINES?((this.$updateLines()||x&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(E),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(E)):x&this.CHANGE_TEXT||x&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(E),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(E)):x&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(E),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(E)),x&this.CHANGE_CURSOR&&(this.$cursorLayer.update(E),this.$moveTextAreaToCursor()),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(E),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(E),this._signal("afterRender",x)},A.prototype.$autosize=function(){var x=this.session.getScreenLength()*this.lineHeight,_=this.$maxLines*this.lineHeight,E=Math.min(_,Math.max((this.$minLines||1)*this.lineHeight,x))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(E+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&E>this.$maxPixelHeight&&(E=this.$maxPixelHeight);var M=E<=2*this.lineHeight,L=!M&&x>_;if(E!=this.desiredHeight||this.$size.height!=this.desiredHeight||L!=this.$vScroll){L!=this.$vScroll&&(this.$vScroll=L,this.scrollBarV.setVisible(L));var $=this.container.clientWidth;this.container.style.height=E+"px",this.$updateCachedSize(!0,this.$gutterWidth,$,E),this.desiredHeight=E,this._signal("autosize")}},A.prototype.$computeLayerConfig=function(){var x=this.session,_=this.$size,E=_.height<=2*this.lineHeight,M=this.session.getScreenLength(),L=M*this.lineHeight,$=this.$getLongestLine(),T=!E&&(this.$hScrollBarAlwaysVisible||_.scrollerWidth-$-2*this.$padding<0),R=this.$horizScroll!==T;R&&(this.$horizScroll=T,this.scrollBarH.setVisible(T));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var O=_.scrollerHeight+this.lineHeight,D=!this.$maxLines&&this.$scrollPastEnd?(_.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;L+=D;var F=this.scrollMargin;this.session.setScrollTop(Math.max(-F.top,Math.min(this.scrollTop,L-_.scrollerHeight+F.bottom))),this.session.setScrollLeft(Math.max(-F.left,Math.min(this.scrollLeft,$+2*this.$padding-_.scrollerWidth+F.right)));var B=!E&&(this.$vScrollBarAlwaysVisible||_.scrollerHeight-L+D<0||this.scrollTop>F.top),U=I!==B;U&&(this.$vScroll=B,this.scrollBarV.setVisible(B));var H=this.scrollTop%this.lineHeight,P=Math.ceil(O/this.lineHeight)-1,j=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),V=j+P,Y,X,q=this.lineHeight;j=x.screenToDocumentRow(j,0);var re=x.getFoldLine(j);re&&(j=re.start.row),Y=x.documentToScreenRow(j,0),X=x.getRowLength(j)*q,V=Math.min(x.screenToDocumentRow(V,0),x.getLength()-1),O=_.scrollerHeight+x.getRowLength(V)*q+X,H=this.scrollTop-Y*q;var ae=0;return(this.layerConfig.width!=$||R)&&(ae=this.CHANGE_H_SCROLL),(R||U)&&(ae|=this.$updateCachedSize(!0,this.gutterWidth,_.width,_.height),this._signal("scrollbarVisibilityChanged"),U&&($=this.$getLongestLine())),this.layerConfig={width:$,padding:this.$padding,firstRow:j,firstRowScreen:Y,lastRow:V,lineHeight:q,characterWidth:this.characterWidth,minHeight:O,maxHeight:L,offset:H,gutterOffset:q?Math.max(0,Math.ceil((H+_.height-_.scrollerHeight)/q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth($-this.$padding),ae},A.prototype.$updateLines=function(){if(this.$changedLines){var x=this.$changedLines.firstRow,_=this.$changedLines.lastRow;this.$changedLines=null;var E=this.layerConfig;if(!(x>E.lastRow+1)&&!(_this.$textLayer.MAX_LINE_LENGTH&&(x=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(x*this.characterWidth))},A.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},A.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},A.prototype.addGutterDecoration=function(x,_){this.$gutterLayer.addGutterDecoration(x,_)},A.prototype.removeGutterDecoration=function(x,_){this.$gutterLayer.removeGutterDecoration(x,_)},A.prototype.updateBreakpoints=function(x){this.$loop.schedule(this.CHANGE_GUTTER)},A.prototype.setAnnotations=function(x){this.$gutterLayer.setAnnotations(x),this.$loop.schedule(this.CHANGE_GUTTER)},A.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},A.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},A.prototype.showCursor=function(){this.$cursorLayer.showCursor()},A.prototype.scrollSelectionIntoView=function(x,_,E){this.scrollCursorIntoView(x,E),this.scrollCursorIntoView(_,E)},A.prototype.scrollCursorIntoView=function(x,_,E){if(this.$size.scrollerHeight!==0){var M=this.$cursorLayer.getPixelPosition(x),L=M.left,$=M.top,T=E&&E.top||0,R=E&&E.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+T>$?(_&&I+T>$+this.lineHeight&&($-=_*this.$size.scrollerHeight),$===0&&($=-this.scrollMargin.top),this.session.setScrollTop($)):I+this.$size.scrollerHeight-R<$+this.lineHeight&&(_&&I+this.$size.scrollerHeight-R<$-this.lineHeight&&($+=_*this.$size.scrollerHeight),this.session.setScrollTop($+this.lineHeight+R-this.$size.scrollerHeight));var O=this.scrollLeft,D=2*this.layerConfig.characterWidth;L-D=1-this.scrollMargin.top||_>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||x<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||x>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},A.prototype.pixelToScreenCoordinates=function(x,_){var E;if(this.$hasCssTransforms){E={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([x,_]);x=M[1]-this.gutterWidth-this.margin.left,_=M[0]}else E=this.scroller.getBoundingClientRect();var L=x+this.scrollLeft-E.left-this.$padding,$=L/this.characterWidth,T=Math.floor((_+this.scrollTop-E.top)/this.lineHeight),R=this.$blockCursor?Math.floor($):Math.round($);return{row:T,column:R,side:$-R>0?1:-1,offsetX:L}},A.prototype.screenToTextCoordinates=function(x,_){var E;if(this.$hasCssTransforms){E={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([x,_]);x=M[1]-this.gutterWidth-this.margin.left,_=M[0]}else E=this.scroller.getBoundingClientRect();var L=x+this.scrollLeft-E.left-this.$padding,$=L/this.characterWidth,T=this.$blockCursor?Math.floor($):Math.round($),R=Math.floor((_+this.scrollTop-E.top)/this.lineHeight);return this.session.screenToDocumentPosition(R,Math.max(T,0),L)},A.prototype.textToScreenCoordinates=function(x,_){var E=this.scroller.getBoundingClientRect(),M=this.session.documentToScreenPosition(x,_),L=this.$padding+(this.session.$bidiHandler.isBidiRow(M.row,x)?this.session.$bidiHandler.getPosLeft(M.column):Math.round(M.column*this.characterWidth)),$=M.row*this.lineHeight;return{pageX:E.left+L-this.scrollLeft,pageY:E.top+$-this.scrollTop}},A.prototype.visualizeFocus=function(){p.addCssClass(this.container,"ace_focus")},A.prototype.visualizeBlur=function(){p.removeCssClass(this.container,"ace_focus")},A.prototype.showComposition=function(x){this.$composition=x,x.cssText||(x.cssText=this.textarea.style.cssText),x.useTextareaForIME==null&&(x.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(p.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):x.markerId=this.session.addMarker(x.markerRange,"ace_composition_marker","text")},A.prototype.setCompositionText=function(x){var _=this.session.selection.cursor;this.addToken(x,"composition_placeholder",_.row,_.column),this.$moveTextAreaToCursor()},A.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),p.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var x=this.session.selection.cursor;this.removeExtraToken(x.row,x.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},A.prototype.setGhostText=function(x,_){var E=this.session.selection.cursor,M=_||{row:E.row,column:E.column};this.removeGhostText();var L=x.split(` -`);this.addToken(L[0],"ghost_text",M.row,M.column),this.$ghostText={text:x,position:{row:M.row,column:M.column}},L.length>1&&(this.$ghostTextWidget={text:L.slice(1).join(` -`),row:M.row,column:M.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},A.prototype.removeGhostText=function(){if(this.$ghostText){var x=this.$ghostText.position;this.removeExtraToken(x.row,x.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},A.prototype.addToken=function(x,_,E,M){var L=this.session;L.bgTokenizer.lines[E]=null;var $={type:_,value:x},T=L.getTokens(E);if(M==null||!T.length)T.push($);else for(var R=0,I=0;I1||Math.abs(x.$size.height-M)>1?x.$resizeTimer.delay():x.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},A}();k.prototype.CHANGE_CURSOR=1,k.prototype.CHANGE_MARKER=2,k.prototype.CHANGE_GUTTER=4,k.prototype.CHANGE_SCROLL=8,k.prototype.CHANGE_LINES=16,k.prototype.CHANGE_TEXT=32,k.prototype.CHANGE_SIZE=64,k.prototype.CHANGE_MARKER_BACK=128,k.prototype.CHANGE_MARKER_FRONT=256,k.prototype.CHANGE_FULL=512,k.prototype.CHANGE_H_SCROLL=1024,k.prototype.$changes=0,k.prototype.$padding=null,k.prototype.$frozen=!1,k.prototype.STEPS=8,o.implement(k.prototype,b),c.defineOptions(k.prototype,"renderer",{useResizeObserver:{set:function(A){!A&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):A&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(A){this.$textLayer.setShowInvisibles(A)&&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(A){typeof A=="number"&&(this.$printMarginColumn=A),this.$showPrintMargin=!!A,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(A){this.$gutter.style.display=A?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(A){this.$gutterLayer.$useSvgGutterIcons=A},initialValue:!1},showFoldedAnnotations:{set:function(A){this.$gutterLayer.$showFoldedAnnotations=A},initialValue:!1},fadeFoldWidgets:{set:function(A){p.setCssClass(this.$gutter,"ace_fade-fold-widgets",A)},initialValue:!1},showFoldWidgets:{set:function(A){this.$gutterLayer.setShowFoldWidgets(A),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(A){this.$textLayer.setDisplayIndentGuides(A)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(A){this.$textLayer.setHighlightIndentGuides(A)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(A){this.$gutterLayer.setHighlightGutterLine(A),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(A){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(A){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(A){typeof A=="number"&&(A=A+"px"),this.container.style.fontSize=A,this.updateFontSize()},initialValue:12},fontFamily:{set:function(A){this.container.style.fontFamily=A,this.updateFontSize()}},maxLines:{set:function(A){this.updateFull()}},minLines:{set:function(A){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(A){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(A){A=+A||0,this.$scrollPastEnd!=A&&(this.$scrollPastEnd=A,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(A){this.$gutterLayer.$fixedWidth=!!A,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(A){this.$updateCustomScrollbar(A)},initialValue:!1},theme:{set:function(A){this.setTheme(A)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),r.VirtualRenderer=k}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,d){var o=n("../lib/oop"),p=n("../lib/net"),m=n("../lib/event_emitter").EventEmitter,c=n("../config");function f(u){var a="importScripts('"+p.qualifyURL(u)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var h=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,g=new h;return g.append(a),g.getBlob("application/javascript")}}function s(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(c.get("loadWorkerFromBlob")){var a=f(u),h=window.URL||window.webkitURL,g=h.createObjectURL(a);return new Worker(g)}return new Worker(u)}var i=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,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(){o.implement(this,m),this.$createWorkerFromOldConfig=function(u,a,h,g,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),c.get("packaged")||!n.toUrl)g=g||c.moduleUrl(a,"worker");else{var y=this.$normalizePath;g=g||y(n.toUrl("ace/worker/worker.js",null,"_"));var b={};u.forEach(function(S){b[S]=y(n.toUrl(S,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(g),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:b,module:a,classname:h}),this.$worker},this.onMessage=function(u){var a=u.data;switch(a.type){case"event":this._signal(a.name,{data:a.data});break;case"call":var h=this.callbacks[a.id];h&&(h(a.data),delete this.callbacks[a.id]);break;case"error":this.reportError(a.data);break;case"log":window.console&&console.log&&console.log.apply(console,a.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return p.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,a){this.$worker.postMessage({command:u,args:a})},this.call=function(u,a,h){if(h){var g=this.callbackId++;this.callbacks[g]=h,a.push(g)}this.send(u,a)},this.emit=function(u,a){try{a.data&&a.data.err&&(a.data.err={message:a.data.err.message,stack:a.data.err.stack,code:a.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:a.data}})}catch(h){console.error(h.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(i.prototype);var l=function(u,a,h){var g=null,v=!1,y=Object.create(m),b=[],S=new i({messageBuffer:b,terminate:function(){},postMessage:function(w){b.push(w),g&&(v?setTimeout(C):C())}});S.setEmitSync=function(w){v=w};var C=function(){var w=b.shift();w.command?g[w.command].apply(g,w.args):w.event&&y._signal(w.event,w.data)};return y.postMessage=function(w){S.onMessage({data:w})},y.callback=function(w,k){this.postMessage({type:"call",id:k,data:w})},y.emit=function(w,k){this.postMessage({type:"event",name:w,data:k})},c.loadModule(["worker",a],function(w){for(g=new w[h](y);b.length;)C()}),S};r.UIWorkerClient=l,r.WorkerClient=i,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,d){var o=n("./range").Range,p=n("./lib/event_emitter").EventEmitter,m=n("./lib/oop"),c=function(){function f(s,i,l,u,a,h){var g=this;this.length=i,this.session=s,this.doc=s.getDocument(),this.mainClass=a,this.othersClass=h,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=l;var v=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return f.prototype.setup=function(){var s=this,i=this.doc,l=this.session;this.selectionBefore=l.selection.toJSON(),l.selection.inMultiSelectMode&&l.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=l.addMarker(new o(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(a){var h=i.createAnchor(a.row,a.column);h.$insertRight=!0,h.detach(),s.others.push(h)}),l.setUndoSelect(!1)},f.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,i=this;this.othersActive=!0,this.others.forEach(function(l){l.markerId=s.addMarker(new o(l.row,l.column,l.row,l.column+i.length),i.othersClass,null,!1)})}},f.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s=this.pos.column&&i.start.column<=this.pos.column+this.length+1,a=i.start.column-this.pos.column;if(this.updateAnchors(s),u&&(this.length+=l),u&&!this.session.$fromUndo){if(s.action==="insert")for(var h=this.others.length-1;h>=0;h--){var g=this.others[h],v={row:g.row,column:g.column+a};this.doc.insertMergedLines(v,s.lines)}else if(s.action==="remove")for(var h=this.others.length-1;h>=0;h--){var g=this.others[h],v={row:g.row,column:g.column+a};this.doc.remove(new o(v.row,v.column,v.row,v.column-l))}}this.$updating=!1,this.updateMarkers()}},f.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var i=this.others.length;i--;)this.others[i].onChange(s);this.updateMarkers()},f.prototype.updateMarkers=function(){if(!this.$updating){var s=this,i=this.session,l=function(a,h){i.removeMarker(a.markerId),a.markerId=i.addMarker(new o(a.row,a.column,a.row,a.column+s.length),h,null,!1)};l(this.pos,this.mainClass);for(var u=this.others.length;u--;)l(this.others[u],this.othersClass)}},f.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var i=this.session.selection.getCursor();i.row===this.pos.row&&i.column>=this.pos.column&&i.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},f.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},f.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),i=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,l=0;l1?p.multiSelect.joinSelections():p.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(p){p.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(p){p.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(p){p.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(p){p.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(p){return p&&p.inMultiSelectMode}}];var o=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new o(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(n,r,d){var o=n("./range_list").RangeList,p=n("./range").Range,m=n("./selection").Selection,c=n("./mouse/multi_select_handler").onMouseDown,f=n("./lib/event"),s=n("./lib/lang"),i=n("./commands/multi_select_commands");r.commands=i.defaultCommands.concat(i.multiSelectCommands);var l=n("./search").Search,u=new l;function a(S,C,w){return u.$options.wrap=!0,u.$options.needle=C,u.$options.backwards=w==-1,u.find(S)}var h=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(S,C){if(S){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(S),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),C||this.fromOrientedRange(S);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}S.cursor||(S.cursor=S.end);var k=this.rangeList.add(S);return this.$onAddRange(S),k.length&&this.$onRemoveRange(k),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),C||this.fromOrientedRange(S)}},this.toSingleRange=function(S){S=S||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),S&&this.fromOrientedRange(S)},this.substractPoint=function(S){var C=this.rangeList.substractPoint(S);if(C)return this.$onRemoveRange(C),C[0]},this.mergeOverlappingRanges=function(){var S=this.rangeList.merge();S.length&&this.$onRemoveRange(S)},this.$onAddRange=function(S){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(S),this._signal("addRange",{range:S})},this.$onRemoveRange=function(S){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var C=this.rangeList.ranges.pop();S.push(C),this.rangeCount=0}for(var w=S.length;w--;){var k=this.ranges.indexOf(S[w]);this.ranges.splice(k,1)}this._signal("removeRange",{ranges:S}),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 o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var S=this.ranges.length?this.ranges:[this.getRange()],C=[],w=0;w1){var S=this.rangeList.ranges,C=S[S.length-1],w=p.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange(w,C.cursor==C.start)}else{var k=this.session.documentToScreenPosition(this.cursor),A=this.session.documentToScreenPosition(this.anchor),x=this.rectangularRangeBlock(k,A);x.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(S,C,w){var k=[],A=S.column0;)D--;if(D>0)for(var F=0;k[F].isEmpty();)F++;for(var B=D;B>=F;B--)k[B].isEmpty()&&k.splice(B,1)}return k}}).call(m.prototype);var g=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(S){S.cursor||(S.cursor=S.end);var C=this.getSelectionStyle();return S.marker=this.session.addMarker(S,"ace_selection",C),this.session.$selectionMarkers.push(S),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,S},this.removeSelectionMarker=function(S){if(S.marker){this.session.removeMarker(S.marker);var C=this.session.$selectionMarkers.indexOf(S);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(S){for(var C=this.session.$selectionMarkers,w=S.length;w--;){var k=S[w];if(k.marker){this.session.removeMarker(k.marker);var A=C.indexOf(k);A!=-1&&C.splice(A,1)}}this.session.selectionMarkerCount=C.length},this.$onAddRange=function(S){this.addSelectionMarker(S.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(S){this.removeSelectionMarkers(S.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(S){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(i.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(S){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(i.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(S){var C=S.command,w=S.editor;if(w.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?k=w.forEachSelection(C,S.args):C.multiSelectAction=="forEachLine"?k=w.forEachSelection(C,S.args,!0):C.multiSelectAction=="single"?(w.exitMultiSelectMode(),k=C.exec(w,S.args||{})):k=C.multiSelectAction(w,S.args||{});else{var k=C.exec(w,S.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return k}},this.forEachSelection=function(S,C,w){if(!this.inVirtualSelectionMode){var k=w&&w.keepOrder,A=w==!0||w&&w.$byLines,x=this.session,_=this.selection,E=_.rangeList,M=(k?_:E).ranges,L;if(!M.length)return S.exec?S.exec(this,C||{}):S(this,C||{});var $=_._eventRegistry;_._eventRegistry={};var T=new m(x);this.inVirtualSelectionMode=!0;for(var R=M.length;R--;){if(A)for(;R>0&&M[R].start.row==M[R-1].end.row;)R--;T.fromOrientedRange(M[R]),T.index=R,this.selection=x.selection=T;var I=S.exec?S.exec(this,C||{}):S(this,C||{});!L&&I!==void 0&&(L=I),T.toOrientedRange(M[R])}T.detach(),this.selection=x.selection=_,this.inVirtualSelectionMode=!1,_._eventRegistry=$,_.mergeOverlappingRanges(),_.ranges[0]&&_.fromOrientedRange(_.ranges[0]);var O=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),O&&O.from==O.to&&this.renderer.animateScrolling(O.from),L}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var S="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,w=[],k=0;k0);_<0&&(_=0),E>=L&&(E=L-1)}var T=this.session.removeFullLines(_,E);T=this.$reAlignText(T,M),this.session.insert({row:_,column:0},T.join(` -`)+` -`),M||(x.start.column=0,x.end.column=T[T.length-1].length),this.selection.setRange(x)}else{A.forEach(function(D){C.substractPoint(D.cursor)});var R=0,I=1/0,O=w.map(function(D){var F=D.cursor,B=S.getLine(F.row),U=B.substr(F.column).search(/\S/g);return U==-1&&(U=0),F.column>R&&(R=F.column),UH?S.insert(B,s.stringRepeat(" ",U-H)):S.remove(new p(B.row,B.column,B.row,B.column-U+H)),D.start.column=D.end.column=R,D.start.row=D.end.row=B.row,D.cursor=D.end}),C.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(S,C){var w=!0,k=!0,A,x,_;return S.map(function(T){var R=T.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?A==null?(A=R[1].length,x=R[2].length,_=R[3].length,R):(A+x+_!=R[1].length+R[2].length+R[3].length&&(k=!1),A!=R[1].length&&(w=!1),A>R[1].length&&(A=R[1].length),xR[3].length&&(_=R[3].length),R):[T]}).map(C?M:w?k?L:M:$);function E(T){return s.stringRepeat(" ",T)}function M(T){return T[2]?E(A)+T[2]+E(x-T[2].length+_)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function L(T){return T[2]?E(A+x-T[2].length)+T[2]+E(_)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function $(T){return T[2]?E(A)+T[2]+E(_)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}}}).call(g.prototype);function v(S,C){return S.row==C.row&&S.column==C.column}r.onSessionChange=function(S){var C=S.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.multiSelect;var w=S.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.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 y(S){S.$multiselectOnSessionChange||(S.$onAddRange=S.$onAddRange.bind(S),S.$onRemoveRange=S.$onRemoveRange.bind(S),S.$onMultiSelect=S.$onMultiSelect.bind(S),S.$onSingleSelect=S.$onSingleSelect.bind(S),S.$multiselectOnSessionChange=r.onSessionChange.bind(S),S.$checkMultiselectChange=S.$checkMultiselectChange.bind(S),S.$multiselectOnSessionChange(S),S.on("changeSession",S.$multiselectOnSessionChange),S.on("mousedown",c),S.commands.addCommands(i.defaultCommands),b(S))}function b(S){if(!S.textInput)return;var C=S.textInput.getElement(),w=!1;f.addListener(C,"keydown",function(A){var x=A.keyCode==18&&!(A.ctrlKey||A.shiftKey||A.metaKey);S.$blockSelectEnabled&&x?w||(S.renderer.setMouseCursor("crosshair"),w=!0):w&&k()},S),f.addListener(C,"keyup",k,S),f.addListener(C,"blur",k,S);function k(A){w&&(S.renderer.setMouseCursor(""),w=!1)}}r.MultiSelect=y,n("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(S){y(this),S?this.on("mousedown",c):this.off("mousedown",c)},value:!0},enableBlockSelect:{set:function(S){this.$blockSelectEnabled=S},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,d){var o=n("../../range").Range,p=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(m,c,f){var s=m.getLine(f);return this.foldingStartMarker.test(s)?"start":c=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(m,c,f){return null},this.indentationBlock=function(m,c,f){var s=/\S/,i=m.getLine(c),l=i.search(s);if(l!=-1){for(var u=f||i.length,a=m.getLength(),h=c,g=c;++ch){var b=m.getLine(g).length;return new o(h,u,g,b)}}},this.openingBracketBlock=function(m,c,f,s,i){var l={row:f,column:s+1},u=m.$findClosingBracket(c,l,i);if(u){var a=m.foldWidgets[u.row];return a==null&&(a=m.getFoldWidget(u.row)),a=="start"&&u.row>l.row&&(u.row--,u.column=m.getLine(u.row).length),o.fromPoints(l,u)}},this.closingBracketBlock=function(m,c,f,s,i){var l={row:f,column:s},u=m.$findOpeningBracket(c,l);if(u)return u.column++,l.column--,o.fromPoints(u,l)}}).call(p.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,d){var o=n("../line_widgets").LineWidgets,p=n("../lib/dom"),m=n("../range").Range,c=n("../config").nls;function f(i,l,u){for(var a=0,h=i.length-1;a<=h;){var g=a+h>>1,v=u(l,i[g]);if(v>0)a=g+1;else if(v<0)h=g-1;else return g}return-(a+1)}function s(i,l,u){var a=i.getAnnotations().sort(m.comparePoints);if(a.length){var h=f(a,{row:l,column:-1},m.comparePoints);h<0&&(h=-h-1),h>=a.length?h=u>0?0:a.length-1:h===0&&u<0&&(h=a.length-1);var g=a[h];if(!(!g||!u)){if(g.row===l){do g=a[h+=u];while(g&&g.row===l);if(!g)return a.slice()}var v=[];l=g.row;do v[u<0?"unshift":"push"](g),g=a[h+=u];while(g&&g.row==l);return v.length&&v}}}r.showErrorMarker=function(i,l){var u=i.session;u.widgetManager||(u.widgetManager=new o(u),u.widgetManager.attach(i));var a=i.getCursorPosition(),h=a.row,g=u.widgetManager.getWidgetsAtRow(h).filter(function(x){return x.type=="errorMarker"})[0];g?g.destroy():h-=l;var v=s(u,h,l),y;if(v){var b=v[0];a.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,a.row=b.row,y=i.renderer.$gutterLayer.$annotations[a.row]}else{if(g)return;y={text:[c("Looks good!")],className:"ace_ok"}}i.session.unfold(a.row),i.selection.moveToPosition(a);var S={row:a.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div"),type:"errorMarker"},C=S.el.appendChild(p.createElement("div")),w=S.el.appendChild(p.createElement("div"));w.className="error_widget_arrow "+y.className;var k=i.renderer.$cursorLayer.getPixelPosition(a).left;w.style.left=k+i.renderer.gutterWidth-5+"px",S.el.className="error_widget_wrapper",C.className="error_widget "+y.className,C.innerHTML=y.text.join("
"),C.appendChild(p.createElement("div"));var A=function(x,_,E){if(_===0&&(E==="esc"||E==="return"))return S.destroy(),{command:"null"}};S.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(A),u.widgetManager.removeLineWidget(S),i.off("changeSelection",S.destroy),i.off("changeSession",S.destroy),i.off("mouseup",S.destroy),i.off("change",S.destroy))},i.keyBinding.addKeyboardHandler(A),i.on("changeSelection",S.destroy),i.on("changeSession",S.destroy),i.on("mouseup",S.destroy),i.on("change",S.destroy),i.session.widgetManager.addLineWidget(S),S.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:S.el.offsetHeight})},p.importCssString(` - .error_widget_wrapper { - background: inherit; - color: inherit; - border:none - } - .error_widget { - border-top: solid 2px; - border-bottom: solid 2px; - margin: 5px 0; - padding: 10px 40px; - white-space: pre-wrap; - } - .error_widget.ace_error, .error_widget_arrow.ace_error{ - border-color: #ff5a5a - } - .error_widget.ace_warning, .error_widget_arrow.ace_warning{ - border-color: #F1D817 - } - .error_widget.ace_info, .error_widget_arrow.ace_info{ - border-color: #5a5a5a - } - .error_widget.ace_ok, .error_widget_arrow.ace_ok{ - border-color: #5aaa5a - } - .error_widget_arrow { - position: absolute; - border: solid 5px; - border-top-color: transparent!important; - border-right-color: transparent!important; - border-left-color: transparent!important; - top: -5px; - } -`,"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(n,r,d){n("./loader_build")(r);var o=n("./lib/dom"),p=n("./range").Range,m=n("./editor").Editor,c=n("./edit_session").EditSession,f=n("./undomanager").UndoManager,s=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(i,l){if(typeof i=="string"){var u=i;if(i=document.getElementById(u),!i)throw new Error("ace.edit can't find div #"+u)}if(i&&i.env&&i.env.editor instanceof m)return i.env.editor;var a="";if(i&&/input|textarea/i.test(i.tagName)){var h=i;a=h.value,i=o.createElement("pre"),h.parentNode.replaceChild(i,h)}else i&&(a=i.textContent,i.innerHTML="");var g=r.createEditSession(a),v=new m(new s(i),g,l),y={document:g,editor:v,onResize:v.resize.bind(v,null)};return h&&(y.textarea=h),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},r.createEditSession=function(i,l){var u=new c(i,l);return u.setUndoManager(new f),u},r.Range=p,r.Editor=m,r.EditSession=c,r.UndoManager=f,r.VirtualRenderer=s,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var d in n)n.hasOwnProperty(d)&&(r.ace[d]=n[d]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(rp);var ls=rp.exports,ip={exports:{}},aw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lw=aw,uw=lw;function op(){}function sp(){}sp.resetWarningCache=op;var cw=function(){function e(r,d,o,p,m,c){if(c!==uw){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:sp,resetWarningCache:op};return n.PropTypes=n,n};ip.exports=cw();var _u=ip.exports,us={exports:{}};us.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",d=1,o=2,p=9007199254740991,m="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",s="[object Boolean]",i="[object Date]",l="[object Error]",u="[object Function]",a="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",S="[object Proxy]",C="[object RegExp]",w="[object Set]",k="[object String]",A="[object Symbol]",x="[object Undefined]",_="[object WeakMap]",E="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",$="[object Float64Array]",T="[object Int8Array]",R="[object Int16Array]",I="[object Int32Array]",O="[object Uint8Array]",D="[object Uint8ClampedArray]",F="[object Uint16Array]",B="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,j={};j[L]=j[$]=j[T]=j[R]=j[I]=j[O]=j[D]=j[F]=j[B]=!0,j[m]=j[c]=j[E]=j[s]=j[M]=j[i]=j[l]=j[u]=j[h]=j[g]=j[y]=j[C]=j[w]=j[k]=j[_]=!1;var V=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,Y=typeof self=="object"&&self&&self.Object===Object&&self,X=V||Y||Function("return this")(),q=t&&!t.nodeType&&t,re=q&&!0&&e&&!e.nodeType&&e,ae=re&&re.exports===q,ge=ae&&V.process,Ve=function(){try{return ge&&ge.binding&&ge.binding("util")}catch{}}(),Ie=Ve&&Ve.isTypedArray;function we(N,z){for(var Q=-1,ee=N==null?0:N.length,be=0,le=[];++Q-1}function eg(N,z){var Q=this.__data__,ee=Yi(Q,N);return ee<0?(++this.size,Q.push([N,z])):Q[ee][1]=z,this}Gt.prototype.clear=Xp,Gt.prototype.delete=Jp,Gt.prototype.get=Zp,Gt.prototype.has=qp,Gt.prototype.set=eg;function Nn(N){var z=-1,Q=N==null?0:N.length;for(this.clear();++zze))return!1;var xe=le.get(N);if(xe&&le.get(z))return xe==z;var dt=-1,xt=!0,Je=Q&o?new Qi:void 0;for(le.set(N,z),le.set(z,N);++dt-1&&N%1==0&&N-1&&N%1==0&&N<=p}function Qu(N){var z=typeof N;return N!=null&&(z=="object"||z=="function")}function Qr(N){return N!=null&&typeof N=="object"}var Yu=Ie?zr(Ie):vg;function Rg(N){return Lg(N)?fg(N):yg(N)}function Mg(){return[]}function Og(){return!1}e.exports=Tg})(us,us.exports);var ap=us.exports,Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.getAceInstance=Ot.debounce=Ot.editorEvents=Ot.editorOptions=void 0;var hw=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Ot.editorOptions=hw;var dw=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Ot.editorEvents=dw;var fw=function(){var e;return typeof window>"u"?(Fe.window={},e=ls,delete Fe.window):window.ace?(e=window.ace,e.acequire=window.ace.require||window.ace.acequire):e=ls,e};Ot.getAceInstance=fw;var pw=function(e,t){var n=null;return function(){var r=this,d=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,d)},t)}};Ot.debounce=pw;var gw=Fe&&Fe.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,d){r.__proto__=d}||function(r,d){for(var o in d)Object.prototype.hasOwnProperty.call(d,o)&&(r[o]=d[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sl=Fe&&Fe.__assign||function(){return Sl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&this.handleMarkers(w);var _=this.editor.$options;sr.editorOptions.forEach(function(E){_.hasOwnProperty(E)?n.editor.setOption(E,n.props[E]):n.props[E]&&console.warn("ReactAce: editor option ".concat(E," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(S)&&S.forEach(function(E){typeof E.exec=="string"?n.editor.commands.bindKey(E.bindKey,E.exec):n.editor.commands.addCommand(E)}),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),d&&(this.refEditor.className+=" "+d),b&&b(this.editor),this.editor.resize(),c&&this.editor.focus()},t.prototype.componentDidUpdate=function(n){for(var r=n,d=this.props,o=0;o 0!";if(i!=this.$splits){if(i>this.$splits){for(;this.$splitsi;)l=this.$editors[this.$splits-1],this.$container.removeChild(l.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(i){return this.$editors[i]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(i){this.$editors.forEach(function(l){l.setTheme(i)})},this.setKeyboardHandler=function(i){this.$editors.forEach(function(l){l.setKeyboardHandler(i)})},this.forEach=function(i,l){this.$editors.forEach(i,l)},this.$fontSize="",this.setFontSize=function(i){this.$fontSize=i,this.forEach(function(l){l.setFontSize(i)})},this.$cloneSession=function(i){var l=new f(i.getDocument(),i.getMode()),u=i.getUndoManager();return l.setUndoManager(u),l.setTabSize(i.getTabSize()),l.setUseSoftTabs(i.getUseSoftTabs()),l.setOverwrite(i.getOverwrite()),l.setBreakpoints(i.getBreakpoints()),l.setUseWrapMode(i.getUseWrapMode()),l.setUseWorker(i.getUseWorker()),l.setWrapLimitRange(i.$wrapLimitRange.min,i.$wrapLimitRange.max),l.$foldData=i.$cloneFoldData(),l},this.setSession=function(i,l){var u;l==null?u=this.$cEditor:u=this.$editors[l];var a=this.$editors.some(function(h){return h.session===i});return a&&(i=this.$cloneSession(i)),u.setSession(i),i},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(i){this.$orientation!=i&&(this.$orientation=i,this.resize())},this.resize=function(){var i=this.$container.clientWidth,l=this.$container.clientHeight,u;if(this.$orientation==this.BESIDE)for(var a=i/this.$splits,h=0;h-1}function Qw(e,t){var n=this.__data__,r=Ls(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Hr.prototype.clear=Uw;Hr.prototype.delete=Vw;Hr.prototype.get=Gw;Hr.prototype.has=Kw;Hr.prototype.set=Qw;function nr(e){var t=-1,n=e?e.length:0;for(this.clear();++t0&&n.handleMarkers(O,M);for(var $=0;$"u"&&(this.Diff_Timeout<=0?c=Number.MAX_VALUE:c=new Date().getTime()+this.Diff_Timeout*1e3);var f=c;if(o==null||p==null)throw new Error("Null input. (diff_main)");if(o==p)return o?[new t.Diff(d,o)]:[];typeof m>"u"&&(m=!0);var s=m,i=this.diff_commonPrefix(o,p),l=o.substring(0,i);o=o.substring(i),p=p.substring(i),i=this.diff_commonSuffix(o,p);var u=o.substring(o.length-i);o=o.substring(0,o.length-i),p=p.substring(0,p.length-i);var a=this.diff_compute_(o,p,s,f);return l&&a.unshift(new t.Diff(d,l)),u&&a.push(new t.Diff(d,u)),this.diff_cleanupMerge(a),a},t.prototype.diff_compute_=function(o,p,m,c){var f;if(!o)return[new t.Diff(r,p)];if(!p)return[new t.Diff(n,o)];var s=o.length>p.length?o:p,i=o.length>p.length?p:o,l=s.indexOf(i);if(l!=-1)return f=[new t.Diff(r,s.substring(0,l)),new t.Diff(d,i),new t.Diff(r,s.substring(l+i.length))],o.length>p.length&&(f[0][0]=f[2][0]=n),f;if(i.length==1)return[new t.Diff(n,o),new t.Diff(r,p)];var u=this.diff_halfMatch_(o,p);if(u){var a=u[0],h=u[1],g=u[2],v=u[3],y=u[4],b=this.diff_main(a,g,m,c),S=this.diff_main(h,v,m,c);return b.concat([new t.Diff(d,y)],S)}return m&&o.length>100&&p.length>100?this.diff_lineMode_(o,p,c):this.diff_bisect_(o,p,c)},t.prototype.diff_lineMode_=function(o,p,m){var c=this.diff_linesToChars_(o,p);o=c.chars1,p=c.chars2;var f=c.lineArray,s=this.diff_main(o,p,!1,m);this.diff_charsToLines_(s,f),this.diff_cleanupSemantic(s),s.push(new t.Diff(d,""));for(var i=0,l=0,u=0,a="",h="";i=1&&u>=1){s.splice(i-l-u,l+u),i=i-l-u;for(var g=this.diff_main(a,h,!1,m),v=g.length-1;v>=0;v--)s.splice(i,0,g[v]);i=i+g.length}u=0,l=0,a="",h="";break}i++}return s.pop(),s},t.prototype.diff_bisect_=function(o,p,m){for(var c=o.length,f=p.length,s=Math.ceil((c+f)/2),i=s,l=2*s,u=new Array(l),a=new Array(l),h=0;hm);w++){for(var k=-w+y;k<=w-b;k+=2){var A=i+k,x;k==-w||k!=w&&u[A-1]c)b+=2;else if(_>f)y+=2;else if(v){var E=i+g-k;if(E>=0&&E=M)return this.diff_bisectSplit_(o,p,x,_,m)}}}for(var L=-w+S;L<=w-C;L+=2){var E=i+L,M;L==-w||L!=w&&a[E-1]c)C+=2;else if($>f)S+=2;else if(!v){var A=i+g-L;if(A>=0&&A=M)return this.diff_bisectSplit_(o,p,x,_,m)}}}}return[new t.Diff(n,o),new t.Diff(r,p)]},t.prototype.diff_bisectSplit_=function(o,p,m,c,f){var s=o.substring(0,m),i=p.substring(0,c),l=o.substring(m),u=p.substring(c),a=this.diff_main(s,i,!1,f),h=this.diff_main(l,u,!1,f);return a.concat(h)},t.prototype.diff_linesToChars_=function(o,p){var m=[],c={};m[0]="";function f(u){for(var a="",h=0,g=-1,v=m.length;gc?o=o.substring(m-c):mp.length?o:p,c=o.length>p.length?p:o;if(m.length<4||c.length*2=b.length?[x,_,E,M,A]:null}var i=s(m,c,Math.ceil(m.length/4)),l=s(m,c,Math.ceil(m.length/2)),u;if(!i&&!l)return null;l?i?u=i[4].length>l[4].length?i:l:u=l:u=i;var a,h,g,v;o.length>p.length?(a=u[0],h=u[1],g=u[2],v=u[3]):(g=u[0],v=u[1],a=u[2],h=u[3]);var y=u[4];return[a,h,g,v,y]},t.prototype.diff_cleanupSemantic=function(o){for(var p=!1,m=[],c=0,f=null,s=0,i=0,l=0,u=0,a=0;s0?m[c-1]:-1,i=0,l=0,u=0,a=0,f=null,p=!0)),s++;for(p&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),s=1;s=y?(v>=h.length/2||v>=g.length/2)&&(o.splice(s,0,new t.Diff(d,g.substring(0,v))),o[s-1][1]=h.substring(0,h.length-v),o[s+1][1]=g.substring(v),s++):(y>=h.length/2||y>=g.length/2)&&(o.splice(s,0,new t.Diff(d,h.substring(0,y))),o[s-1][0]=r,o[s-1][1]=g.substring(0,g.length-y),o[s+1][0]=n,o[s+1][1]=h.substring(y),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(o){function p(y,b){if(!y||!b)return 6;var S=y.charAt(y.length-1),C=b.charAt(0),w=S.match(t.nonAlphaNumericRegex_),k=C.match(t.nonAlphaNumericRegex_),A=w&&S.match(t.whitespaceRegex_),x=k&&C.match(t.whitespaceRegex_),_=A&&S.match(t.linebreakRegex_),E=x&&C.match(t.linebreakRegex_),M=_&&y.match(t.blanklineEndRegex_),L=E&&b.match(t.blanklineStartRegex_);return M||L?5:_||E?4:w&&!A&&x?3:A||x?2:w||k?1:0}for(var m=1;m=g&&(g=v,u=c,a=f,h=s)}o[m-1][1]!=u&&(u?o[m-1][1]=u:(o.splice(m-1,1),m--),o[m][1]=a,h?o[m+1][1]=h:(o.splice(m+1,1),m--))}m++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var p=!1,m=[],c=0,f=null,s=0,i=!1,l=!1,u=!1,a=!1;s0?m[c-1]:-1,u=a=!1),p=!0)),s++;p&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(d,""));for(var p=0,m=0,c=0,f="",s="",i;p1?(m!==0&&c!==0&&(i=this.diff_commonPrefix(s,f),i!==0&&(p-m-c>0&&o[p-m-c-1][0]==d?o[p-m-c-1][1]+=s.substring(0,i):(o.splice(0,0,new t.Diff(d,s.substring(0,i))),p++),s=s.substring(i),f=f.substring(i)),i=this.diff_commonSuffix(s,f),i!==0&&(o[p][1]=s.substring(s.length-i)+o[p][1],s=s.substring(0,s.length-i),f=f.substring(0,f.length-i))),p-=m+c,o.splice(p,m+c),f.length&&(o.splice(p,0,new t.Diff(n,f)),p++),s.length&&(o.splice(p,0,new t.Diff(r,s)),p++),p++):p!==0&&o[p-1][0]==d?(o[p-1][1]+=o[p][1],o.splice(p,1)):p++,c=0,m=0,f="",s="";break}o[o.length-1][1]===""&&o.pop();var l=!1;for(p=1;pp));i++)f=m,s=c;return o.length!=i&&o[i][0]===n?s:s+(p-f)},t.prototype.diff_prettyHtml=function(o){for(var p=[],m=/&/g,c=//g,s=/\n/g,i=0;i");switch(l){case r:p[i]=''+a+"";break;case n:p[i]=''+a+"";break;case d:p[i]=""+a+"";break}}return p.join("")},t.prototype.diff_text1=function(o){for(var p=[],m=0;mthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var c=this.match_alphabet_(p),f=this;function s(x,_){var E=x/p.length,M=Math.abs(m-_);return f.Match_Distance?E+M/f.Match_Distance:M?1:E}var i=this.Match_Threshold,l=o.indexOf(p,m);l!=-1&&(i=Math.min(s(0,l),i),l=o.lastIndexOf(p,m+p.length),l!=-1&&(i=Math.min(s(0,l),i)));var u=1<=b;w--){var k=c[o.charAt(w-1)];if(y===0?C[w]=(C[w+1]<<1|1)&k:C[w]=(C[w+1]<<1|1)&k|((v[w+1]|v[w])<<1|1)|v[w+1],C[w]&u){var A=s(y,w-1);if(A<=i)if(i=A,l=w-1,l>m)b=Math.max(1,2*m-l);else break}}if(s(y+1,m)>i)break;v=C}return l},t.prototype.match_alphabet_=function(o){for(var p={},m=0;m"u")c=o,f=this.diff_main(c,p,!0),f.length>2&&(this.diff_cleanupSemantic(f),this.diff_cleanupEfficiency(f));else if(o&&typeof o=="object"&&typeof p>"u"&&typeof m>"u")f=o,c=this.diff_text1(f);else if(typeof o=="string"&&p&&typeof p=="object"&&typeof m>"u")c=o,f=p;else if(typeof o=="string"&&typeof p=="string"&&m&&typeof m=="object")c=o,f=m;else throw new Error("Unknown call format to patch_make.");if(f.length===0)return[];for(var s=[],i=new t.patch_obj,l=0,u=0,a=0,h=c,g=c,v=0;v=2*this.Patch_Margin&&l&&(this.patch_addContext_(i,h),s.push(i),i=new t.patch_obj,l=0,h=g,u=a);break}y!==r&&(u+=b.length),y!==n&&(a+=b.length)}return l&&(this.patch_addContext_(i,h),s.push(i)),s},t.prototype.patch_deepCopy=function(o){for(var p=[],m=0;mthis.Match_MaxBits?(u=this.match_main(p,l.substring(0,this.Match_MaxBits),i),u!=-1&&(a=this.match_main(p,l.substring(l.length-this.Match_MaxBits),i+l.length-this.Match_MaxBits),(a==-1||u>=a)&&(u=-1))):u=this.match_main(p,l,i),u==-1)f[s]=!1,c-=o[s].length2-o[s].length1;else{f[s]=!0,c=u-i;var h;if(a==-1?h=p.substring(u,u+l.length):h=p.substring(u,a+this.Match_MaxBits),l==h)p=p.substring(0,u)+this.diff_text2(o[s].diffs)+p.substring(u+l.length);else{var g=this.diff_main(l,h,!1);if(l.length>this.Match_MaxBits&&this.diff_levenshtein(g)/l.length>this.Patch_DeleteThreshold)f[s]=!1;else{this.diff_cleanupSemanticLossless(g);for(var v=0,y,b=0;bs[0][1].length){var i=p-s[0][1].length;s[0][1]=m.substring(s[0][1].length)+s[0][1],f.start1-=i,f.start2-=i,f.length1+=i,f.length2+=i}if(f=o[o.length-1],s=f.diffs,s.length==0||s[s.length-1][0]!=d)s.push(new t.Diff(d,m)),f.length1+=p,f.length2+=p;else if(p>s[s.length-1][1].length){var i=p-s[s.length-1][1].length;s[s.length-1][1]+=m.substring(0,i),f.length1+=i,f.length2+=i}return m},t.prototype.patch_splitMax=function(o){for(var p=this.Match_MaxBits,m=0;m2*p?(l.length1+=h.length,f+=h.length,u=!1,l.diffs.push(new t.Diff(a,h)),c.diffs.shift()):(h=h.substring(0,p-l.length1-this.Patch_Margin),l.length1+=h.length,f+=h.length,a===d?(l.length2+=h.length,s+=h.length):u=!1,l.diffs.push(new t.Diff(a,h)),h==c.diffs[0][1]?c.diffs.shift():c.diffs[0][1]=c.diffs[0][1].substring(h.length))}i=this.diff_text2(l.diffs),i=i.substring(i.length-this.Patch_Margin);var g=this.diff_text1(c.diffs).substring(0,this.Patch_Margin);g!==""&&(l.length1+=g.length,l.length2+=g.length,l.diffs.length!==0&&l.diffs[l.diffs.length-1][0]===d?l.diffs[l.diffs.length-1][1]+=g:l.diffs.push(new t.Diff(d,g))),u||o.splice(++m,0,l)}}},t.prototype.patch_toText=function(o){for(var p=[],m=0;m|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};r.inherits(o,d),t.SqlHighlightRules=o});ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),d=e("./text").Mode,o=e("./sql_highlight_rules").SqlHighlightRules,p=function(){this.HighlightRules=o,this.$behaviour=this.$defaultBehaviour};r.inherits(p,d),(function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}).call(p.prototype),t.Mode=p});ace.define("ace/theme/sqlserver",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-sqlserver",t.cssText='.ace-sqlserver .ace_gutter {background: #ebebeb;color: #333;overflow: hidden;}.ace-sqlserver .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-sqlserver {background-color: #FFFFFF;color: black;}.ace-sqlserver .ace_identifier {color: black;}.ace-sqlserver .ace_keyword {color: #0000FF;}.ace-sqlserver .ace_numeric {color: black;}.ace-sqlserver .ace_storage {color: #11B7BE;}.ace-sqlserver .ace_keyword.ace_operator,.ace-sqlserver .ace_lparen,.ace-sqlserver .ace_rparen,.ace-sqlserver .ace_punctuation {color: #808080;}.ace-sqlserver .ace_set.ace_statement {color: #0000FF;text-decoration: underline;}.ace-sqlserver .ace_cursor {color: black;}.ace-sqlserver .ace_invisible {color: rgb(191, 191, 191);}.ace-sqlserver .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-sqlserver .ace_constant.ace_language {color: #979797;}.ace-sqlserver .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-sqlserver .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-sqlserver .ace_support.ace_function {color: #FF00FF;}.ace-sqlserver .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-sqlserver .ace_class {color: #008080;}.ace-sqlserver .ace_support.ace_other {color: #6D79DE;}.ace-sqlserver .ace_variable.ace_parameter {font-style: italic;color: #FD971F;}.ace-sqlserver .ace_comment {color: #008000;}.ace-sqlserver .ace_constant.ace_numeric {color: black;}.ace-sqlserver .ace_variable {color: rgb(49, 132, 149);}.ace-sqlserver .ace_xml-pe {color: rgb(104, 104, 91);}.ace-sqlserver .ace_support.ace_storedprocedure {color: #800000;}.ace-sqlserver .ace_heading {color: rgb(12, 7, 255);}.ace-sqlserver .ace_list {color: rgb(185, 6, 144);}.ace-sqlserver .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-sqlserver .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-sqlserver .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-sqlserver .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-sqlserver .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-sqlserver .ace_gutter-active-line {background-color: #dcdcdc;}.ace-sqlserver .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-sqlserver .ace_meta.ace_tag {color: #0000FF;}.ace-sqlserver .ace_string.ace_regex {color: #FF0000;}.ace-sqlserver .ace_string {color: #FF0000;}.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-sqlserver .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)});const Ru=({onExecuteQuery:e,selectedQuery:t})=>{const[n,r]=J.useState("");J.useEffect(()=>{t!==n&&r(t)},[t]);const d=()=>{e(n)};return W.jsxs("div",{className:"flex flex-c",children:[W.jsx(x0,{mode:"sql",theme:"sqlserver",width:"100%",height:"300px",value:n,onChange:r,readOnly:!1}),W.jsxs("button",{className:"continue-application",onClick:d,children:[W.jsxs("div",{children:[W.jsx("div",{className:"pencil"}),W.jsxs("div",{className:"folder",children:[W.jsx("div",{className:"top",children:W.jsx("svg",{viewBox:"0 0 24 27",children:W.jsx("path",{d:"M1,0 L23,0 C23.5522847,-1.01453063e-16 24,0.44771525 24,1 L24,8.17157288 C24,8.70200585 23.7892863,9.21071368 23.4142136,9.58578644 L20.5857864,12.4142136 C20.2107137,12.7892863 20,13.2979941 20,13.8284271 L20,26 C20,26.5522847 19.5522847,27 19,27 L1,27 C0.44771525,27 6.76353751e-17,26.5522847 0,26 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 Z"})})}),W.jsx("div",{className:"paper"})]})]}),"Execute Query"]})]})},Or="https://dbms.noorularfeen.com";function yp(e,t){return function(){return e.apply(t,arguments)}}const{toString:L0}=Object.prototype,{getPrototypeOf:Mu}=Object,Rs=(e=>t=>{const n=L0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>Rs(t)===e),Ms=e=>t=>typeof t===e,{isArray:Wr}=Array,Ni=Ms("undefined");function T0(e){return e!==null&&!Ni(e)&&e.constructor!==null&&!Ni(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wp=jt("ArrayBuffer");function R0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wp(e.buffer),t}const M0=Ms("string"),_t=Ms("function"),Sp=Ms("number"),Os=e=>e!==null&&typeof e=="object",O0=e=>e===!0||e===!1,Mo=e=>{if(Rs(e)!=="object")return!1;const t=Mu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I0=jt("Date"),D0=jt("File"),N0=jt("Blob"),F0=jt("FileList"),P0=e=>Os(e)&&_t(e.pipe),B0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=Rs(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},H0=jt("URLSearchParams"),W0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ui(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,d;if(typeof e!="object"&&(e=[e]),Wr(e))for(r=0,d=e.length;r0;)if(d=n[r],t===d.toLowerCase())return d;return null}const bp=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$p=e=>!Ni(e)&&e!==bp;function bl(){const{caseless:e}=$p(this)&&this||{},t={},n=(r,d)=>{const o=e&&Cp(t,d)||d;Mo(t[o])&&Mo(r)?t[o]=bl(t[o],r):Mo(r)?t[o]=bl({},r):Wr(r)?t[o]=r.slice():t[o]=r};for(let r=0,d=arguments.length;r(Ui(t,(d,o)=>{n&&_t(d)?e[o]=yp(d,n):e[o]=d},{allOwnKeys:r}),e),j0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),U0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},V0=(e,t,n,r)=>{let d,o,p;const m={};if(t=t||{},e==null)return t;do{for(d=Object.getOwnPropertyNames(e),o=d.length;o-- >0;)p=d[o],(!r||r(p,e,t))&&!m[p]&&(t[p]=e[p],m[p]=!0);e=n!==!1&&Mu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},K0=e=>{if(!e)return null;if(Wr(e))return e;let t=e.length;if(!Sp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Q0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mu(Uint8Array)),Y0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const o=d.value;t.call(e,o[0],o[1])}},X0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},J0=jt("HTMLFormElement"),Z0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,d){return r.toUpperCase()+d}),Ch=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q0=jt("RegExp"),Ep=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ui(n,(d,o)=>{let p;(p=t(d,o,e))!==!1&&(r[o]=p||d)}),Object.defineProperties(e,r)},e1=e=>{Ep(e,(t,n)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_t(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},t1=(e,t)=>{const n={},r=d=>{d.forEach(o=>{n[o]=!0})};return Wr(e)?r(e):r(String(e).split(t)),n},n1=()=>{},r1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Sa="abcdefghijklmnopqrstuvwxyz",bh="0123456789",_p={DIGIT:bh,ALPHA:Sa,ALPHA_DIGIT:Sa+Sa.toUpperCase()+bh},i1=(e=16,t=_p.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function o1(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const s1=e=>{const t=new Array(10),n=(r,d)=>{if(Os(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[d]=r;const o=Wr(r)?[]:{};return Ui(r,(p,m)=>{const c=n(p,d+1);!Ni(c)&&(o[m]=c)}),t[d]=void 0,o}}return r};return n(e,0)},a1=jt("AsyncFunction"),l1=e=>e&&(Os(e)||_t(e))&&_t(e.then)&&_t(e.catch),G={isArray:Wr,isArrayBuffer:wp,isBuffer:T0,isFormData:B0,isArrayBufferView:R0,isString:M0,isNumber:Sp,isBoolean:O0,isObject:Os,isPlainObject:Mo,isUndefined:Ni,isDate:I0,isFile:D0,isBlob:N0,isRegExp:q0,isFunction:_t,isStream:P0,isURLSearchParams:H0,isTypedArray:Q0,isFileList:F0,forEach:Ui,merge:bl,extend:z0,trim:W0,stripBOM:j0,inherits:U0,toFlatObject:V0,kindOf:Rs,kindOfTest:jt,endsWith:G0,toArray:K0,forEachEntry:Y0,matchAll:X0,isHTMLForm:J0,hasOwnProperty:Ch,hasOwnProp:Ch,reduceDescriptors:Ep,freezeMethods:e1,toObjectSet:t1,toCamelCase:Z0,noop:n1,toFiniteNumber:r1,findKey:Cp,global:bp,isContextDefined:$p,ALPHABET:_p,generateString:i1,isSpecCompliantForm:o1,toJSONObject:s1,isAsyncFn:a1,isThenable:l1};function fe(e,t,n,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),d&&(this.response=d)}G.inherits(fe,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:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ap=fe.prototype,kp={};["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(e=>{kp[e]={value:e}});Object.defineProperties(fe,kp);Object.defineProperty(Ap,"isAxiosError",{value:!0});fe.from=(e,t,n,r,d,o)=>{const p=Object.create(Ap);return G.toFlatObject(e,p,function(c){return c!==Error.prototype},m=>m!=="isAxiosError"),fe.call(p,e.message,t,n,r,d),p.cause=e,p.name=e.name,o&&Object.assign(p,o),p};const u1=null;function $l(e){return G.isPlainObject(e)||G.isArray(e)}function xp(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function $h(e,t,n){return e?e.concat(t).map(function(d,o){return d=xp(d),!n&&o?"["+d+"]":d}).join(n?".":""):t}function c1(e){return G.isArray(e)&&!e.some($l)}const h1=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Is(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!G.isUndefined(g[h])});const r=n.metaTokens,d=n.visitor||s,o=n.dots,p=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(d))throw new TypeError("visitor must be a function");function f(a){if(a===null)return"";if(G.isDate(a))return a.toISOString();if(!c&&G.isBlob(a))throw new fe("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(a)||G.isTypedArray(a)?c&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function s(a,h,g){let v=a;if(a&&!g&&typeof a=="object"){if(G.endsWith(h,"{}"))h=r?h:h.slice(0,-2),a=JSON.stringify(a);else if(G.isArray(a)&&c1(a)||(G.isFileList(a)||G.endsWith(h,"[]"))&&(v=G.toArray(a)))return h=xp(h),v.forEach(function(b,S){!(G.isUndefined(b)||b===null)&&t.append(p===!0?$h([h],S,o):p===null?h:h+"[]",f(b))}),!1}return $l(a)?!0:(t.append($h(g,h,o),f(a)),!1)}const i=[],l=Object.assign(h1,{defaultVisitor:s,convertValue:f,isVisitable:$l});function u(a,h){if(!G.isUndefined(a)){if(i.indexOf(a)!==-1)throw Error("Circular reference detected in "+h.join("."));i.push(a),G.forEach(a,function(v,y){(!(G.isUndefined(v)||v===null)&&d.call(t,v,G.isString(y)?y.trim():y,h,l))===!0&&u(v,h?h.concat(y):[y])}),i.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return u(e),t}function Eh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ou(e,t){this._pairs=[],e&&Is(e,this,t)}const Lp=Ou.prototype;Lp.append=function(t,n){this._pairs.push([t,n])};Lp.toString=function(t){const n=t?function(r){return t.call(this,r,Eh)}:Eh;return this._pairs.map(function(d){return n(d[0])+"="+n(d[1])},"").join("&")};function d1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tp(e,t,n){if(!t)return e;const r=n&&n.encode||d1,d=n&&n.serialize;let o;if(d?o=d(t,n):o=G.isURLSearchParams(t)?t.toString():new Ou(t,n).toString(r),o){const p=e.indexOf("#");p!==-1&&(e=e.slice(0,p)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class f1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,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){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _h=f1,Rp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p1=typeof URLSearchParams<"u"?URLSearchParams:Ou,g1=typeof FormData<"u"?FormData:null,m1=typeof Blob<"u"?Blob:null,v1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),y1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ht={isBrowser:!0,classes:{URLSearchParams:p1,FormData:g1,Blob:m1},isStandardBrowserEnv:v1,isStandardBrowserWebWorkerEnv:y1,protocols:["http","https","file","blob","url","data"]};function w1(e,t){return Is(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(n,r,d,o){return Ht.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function S1(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function C1(e){const t={},n=Object.keys(e);let r;const d=n.length;let o;for(r=0;r=n.length;return p=!p&&G.isArray(d)?d.length:p,c?(G.hasOwnProp(d,p)?d[p]=[d[p],r]:d[p]=r,!m):((!d[p]||!G.isObject(d[p]))&&(d[p]=[]),t(n,r,d[p],o)&&G.isArray(d[p])&&(d[p]=C1(d[p])),!m)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,d)=>{t(S1(r),d,n,0)}),n}return null}function b1(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Iu={transitional:Rp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",d=r.indexOf("application/json")>-1,o=G.isObject(t);if(o&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return d&&d?JSON.stringify(Mp(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let m;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return w1(t,this.formSerializer).toString();if((m=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Is(m?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||d?(n.setContentType("application/json",!1),b1(t)):t}],transformResponse:[function(t){const n=this.transitional||Iu.transitional,r=n&&n.forcedJSONParsing,d=this.responseType==="json";if(t&&G.isString(t)&&(r&&!this.responseType||d)){const p=!(n&&n.silentJSONParsing)&&d;try{return JSON.parse(t)}catch(m){if(p)throw m.name==="SyntaxError"?fe.from(m,fe.ERR_BAD_RESPONSE,this,null,this.response):m}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Iu.headers[e]={}});const Du=Iu,$1=G.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"]),E1=e=>{const t={};let n,r,d;return e&&e.split(` -`).forEach(function(p){d=p.indexOf(":"),n=p.substring(0,d).trim().toLowerCase(),r=p.substring(d+1).trim(),!(!n||t[n]&&$1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ah=Symbol("internals");function ri(e){return e&&String(e).trim().toLowerCase()}function Oo(e){return e===!1||e==null?e:G.isArray(e)?e.map(Oo):String(e)}function _1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const A1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ca(e,t,n,r,d){if(G.isFunction(r))return r.call(this,t,n);if(d&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function k1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function x1(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(d,o,p){return this[r].call(this,t,d,o,p)},configurable:!0})})}class Ds{constructor(t){t&&this.set(t)}set(t,n,r){const d=this;function o(m,c,f){const s=ri(c);if(!s)throw new Error("header name must be a non-empty string");const i=G.findKey(d,s);(!i||d[i]===void 0||f===!0||f===void 0&&d[i]!==!1)&&(d[i||c]=Oo(m))}const p=(m,c)=>G.forEach(m,(f,s)=>o(f,s,c));return G.isPlainObject(t)||t instanceof this.constructor?p(t,n):G.isString(t)&&(t=t.trim())&&!A1(t)?p(E1(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=ri(t),t){const r=G.findKey(this,t);if(r){const d=this[r];if(!n)return d;if(n===!0)return _1(d);if(G.isFunction(n))return n.call(this,d,r);if(G.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ri(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ca(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let d=!1;function o(p){if(p=ri(p),p){const m=G.findKey(r,p);m&&(!n||Ca(r,r[m],m,n))&&(delete r[m],d=!0)}}return G.isArray(t)?t.forEach(o):o(t),d}clear(t){const n=Object.keys(this);let r=n.length,d=!1;for(;r--;){const o=n[r];(!t||Ca(this,this[o],o,t,!0))&&(delete this[o],d=!0)}return d}normalize(t){const n=this,r={};return G.forEach(this,(d,o)=>{const p=G.findKey(r,o);if(p){n[p]=Oo(d),delete n[o];return}const m=t?k1(o):String(o).trim();m!==o&&delete n[o],n[m]=Oo(d),r[m]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,d)=>{r!=null&&r!==!1&&(n[d]=t&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(d=>r.set(d)),r}static accessor(t){const r=(this[Ah]=this[Ah]={accessors:{}}).accessors,d=this.prototype;function o(p){const m=ri(p);r[m]||(x1(d,p),r[m]=!0)}return G.isArray(t)?t.forEach(o):o(t),this}}Ds.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(Ds.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(Ds);const en=Ds;function ba(e,t){const n=this||Du,r=t||n,d=en.from(r.headers);let o=r.data;return G.forEach(e,function(m){o=m.call(n,o,d.normalize(),t?t.status:void 0)}),d.normalize(),o}function Op(e){return!!(e&&e.__CANCEL__)}function Vi(e,t,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Vi,fe,{__CANCEL__:!0});function L1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const T1=Ht.isStandardBrowserEnv?function(){return{write:function(n,r,d,o,p,m){const c=[];c.push(n+"="+encodeURIComponent(r)),G.isNumber(d)&&c.push("expires="+new Date(d).toGMTString()),G.isString(o)&&c.push("path="+o),G.isString(p)&&c.push("domain="+p),m===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function R1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function M1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ip(e,t){return e&&!R1(t)?M1(e,t):t}const O1=Ht.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function d(o){let p=o;return t&&(n.setAttribute("href",p),p=n.href),n.setAttribute("href",p),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=d(window.location.href),function(p){const m=G.isString(p)?d(p):p;return m.protocol===r.protocol&&m.host===r.host}}():function(){return function(){return!0}}();function I1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function D1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let d=0,o=0,p;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),s=r[o];p||(p=f),n[d]=c,r[d]=f;let i=o,l=0;for(;i!==d;)l+=n[i++],i=i%e;if(d=(d+1)%e,d===o&&(o=(o+1)%e),f-p{const o=d.loaded,p=d.lengthComputable?d.total:void 0,m=o-n,c=r(m),f=o<=p;n=o;const s={loaded:o,total:p,progress:p?o/p:void 0,bytes:m,rate:c||void 0,estimated:c&&p&&f?(p-o)/c:void 0,event:d};s[t?"download":"upload"]=!0,e(s)}}const N1=typeof XMLHttpRequest<"u",F1=N1&&function(e){return new Promise(function(n,r){let d=e.data;const o=en.from(e.headers).normalize(),p=e.responseType;let m;function c(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}let f;G.isFormData(d)&&(Ht.isStandardBrowserEnv||Ht.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?G.isString(f=o.getContentType())&&o.setContentType(f.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let s=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(a+":"+h))}const i=Ip(e.baseURL,e.url);s.open(e.method.toUpperCase(),Tp(i,e.params,e.paramsSerializer),!0),s.timeout=e.timeout;function l(){if(!s)return;const a=en.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),g={data:!p||p==="text"||p==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:a,config:e,request:s};L1(function(y){n(y),c()},function(y){r(y),c()},g),s=null}if("onloadend"in s?s.onloadend=l:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(l)},s.onabort=function(){s&&(r(new fe("Request aborted",fe.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Rp;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new fe(h,g.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,s)),s=null},Ht.isStandardBrowserEnv){const a=(e.withCredentials||O1(i))&&e.xsrfCookieName&&T1.read(e.xsrfCookieName);a&&o.set(e.xsrfHeaderName,a)}d===void 0&&o.setContentType(null),"setRequestHeader"in s&&G.forEach(o.toJSON(),function(h,g){s.setRequestHeader(g,h)}),G.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),p&&p!=="json"&&(s.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&s.addEventListener("progress",kh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",kh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(m=a=>{s&&(r(!a||a.type?new Vi(null,e,s):a),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m)));const u=I1(i);if(u&&Ht.protocols.indexOf(u)===-1){r(new fe("Unsupported protocol "+u+":",fe.ERR_BAD_REQUEST,e));return}s.send(d||null)})},El={http:u1,xhr:F1};G.forEach(El,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xh=e=>`- ${e}`,P1=e=>G.isFunction(e)||e===null||e===!1,Dp={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const d={};for(let o=0;o`adapter ${m} `+(c===!1?"is not supported by the environment":"is not available in the build"));let p=t?o.length>1?`since : -`+o.map(xh).join(` -`):" "+xh(o[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:El};function $a(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vi(null,e)}function Lh(e){return $a(e),e.headers=en.from(e.headers),e.data=ba.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dp.getAdapter(e.adapter||Du.adapter)(e).then(function(r){return $a(e),r.data=ba.call(e,e.transformResponse,r),r.headers=en.from(r.headers),r},function(r){return Op(r)||($a(e),r&&r.response&&(r.response.data=ba.call(e,e.transformResponse,r.response),r.response.headers=en.from(r.response.headers))),Promise.reject(r)})}const Th=e=>e instanceof en?e.toJSON():e;function Ir(e,t){t=t||{};const n={};function r(f,s,i){return G.isPlainObject(f)&&G.isPlainObject(s)?G.merge.call({caseless:i},f,s):G.isPlainObject(s)?G.merge({},s):G.isArray(s)?s.slice():s}function d(f,s,i){if(G.isUndefined(s)){if(!G.isUndefined(f))return r(void 0,f,i)}else return r(f,s,i)}function o(f,s){if(!G.isUndefined(s))return r(void 0,s)}function p(f,s){if(G.isUndefined(s)){if(!G.isUndefined(f))return r(void 0,f)}else return r(void 0,s)}function m(f,s,i){if(i in t)return r(f,s);if(i in e)return r(void 0,f)}const c={url:o,method:o,data:o,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:m,headers:(f,s)=>d(Th(f),Th(s),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(s){const i=c[s]||d,l=i(e[s],t[s],s);G.isUndefined(l)&&i!==m||(n[s]=l)}),n}const Np="1.5.1",Nu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Rh={};Nu.transitional=function(t,n,r){function d(o,p){return"[Axios v"+Np+"] Transitional option '"+o+"'"+p+(r?". "+r:"")}return(o,p,m)=>{if(t===!1)throw new fe(d(p," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!Rh[p]&&(Rh[p]=!0,console.warn(d(p," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,p,m):!0}};function B1(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let d=r.length;for(;d-- >0;){const o=r[d],p=t[o];if(p){const m=e[o],c=m===void 0||p(m,o,e);if(c!==!0)throw new fe("option "+o+" must be "+c,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}const _l={assertOptions:B1,validators:Nu},dn=_l.validators;class cs{constructor(t){this.defaults=t,this.interceptors={request:new _h,response:new _h}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ir(this.defaults,n);const{transitional:r,paramsSerializer:d,headers:o}=n;r!==void 0&&_l.assertOptions(r,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),d!=null&&(G.isFunction(d)?n.paramsSerializer={serialize:d}:_l.assertOptions(d,{encode:dn.function,serialize:dn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let p=o&&G.merge(o.common,o[n.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=en.concat(p,o);const m=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,m.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let s,i=0,l;if(!c){const a=[Lh.bind(this),void 0];for(a.unshift.apply(a,m),a.push.apply(a,f),l=a.length,s=Promise.resolve(n);i{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](d);r._listeners=null}),this.promise.then=d=>{let o;const p=new Promise(m=>{r.subscribe(m),o=m}).then(d);return p.cancel=function(){r.unsubscribe(o)},p},t(function(o,p,m){r.reason||(r.reason=new Vi(o,p,m),n(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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Fu(function(d){t=d}),cancel:t}}}const H1=Fu;function W1(e){return function(n){return e.apply(null,n)}}function z1(e){return G.isObject(e)&&e.isAxiosError===!0}const Al={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(Al).forEach(([e,t])=>{Al[t]=e});const j1=Al;function Fp(e){const t=new Io(e),n=yp(Io.prototype.request,t);return G.extend(n,Io.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(d){return Fp(Ir(e,d))},n}const Be=Fp(Du);Be.Axios=Io;Be.CanceledError=Vi;Be.CancelToken=H1;Be.isCancel=Op;Be.VERSION=Np;Be.toFormData=Is;Be.AxiosError=fe;Be.Cancel=Be.CanceledError;Be.all=function(t){return Promise.all(t)};Be.spread=W1;Be.isAxiosError=z1;Be.mergeConfig=Ir;Be.AxiosHeaders=en;Be.formToJSON=e=>Mp(G.isHTMLForm(e)?new FormData(e):e);Be.getAdapter=Dp.getAdapter;Be.HttpStatusCode=j1;Be.default=Be;const Pu=Be,U1=()=>{const[e,t]=J.useState(null),[n,r]=J.useState(""),[d,o]=J.useState(""),[p,m]=J.useState([]),[c,f]=J.useState([]),s=localStorage.getItem("queryHistoryDML"),i=s?JSON.parse(s):[],[l,u]=J.useState(i);J.useEffect(()=>{s&&u(JSON.parse(s))},[]),J.useEffect(()=>{localStorage.setItem("queryHistoryDML",JSON.stringify(l))},[l]);const a={INSERT:"INSERT INTO your_table (column1, column2) VALUES (value1, value2);",UPDATE:"UPDATE your_table SET column1 = value1 WHERE condition;",DELETE:"DELETE FROM your_table WHERE condition;",TRUNCATE:"TRUNCATE TABLE your_table;",COMMIT:"COMMIT;",ROLLBACK:"ROLLBACK;"},h=async b=>{try{const S=await Pu.post(`${Or}/api/dml`,{query:b}),C=S.data;if(t(C.data),!S.status===200)throw new Error("Query execution failed.");u(w=>[...w,{query:b,result:C.data}]),localStorage.setItem("queryHistoryDML",JSON.stringify(l)),g()}catch(S){console.log(S),S instanceof SyntaxError?o("Invalid JSON response from the server. Check your query."):S.message==="Query execution failed."?o("Query execution failed. Check your query for errors."):o(S.response.data.error)}},g=async()=>{try{const b=await fetch(`${Or}/api/tables`);if(!b.ok)throw new Error("Failed to fetch table names.");const S=await b.json();console.log(S),m(S.data),f(S.tableName)}catch(b){console.error("Error fetching table names:",b)}};J.useEffect(()=>{g()},[]);const v=()=>{if(!p||p.length===0)return W.jsx("p",{children:"No tables found."});const b=Object.keys(p[0]);return W.jsxs("div",{className:"table-container",children:[W.jsxs("h3",{style:{textAlign:"center",marginBottom:"1rem"},children:["Table Name: ",c]}),W.jsxs("table",{className:"table_blur",children:[W.jsx("thead",{children:W.jsx("tr",{children:b.map(S=>W.jsx("th",{children:S},S))})}),W.jsx("tbody",{children:p.map((S,C)=>W.jsx("tr",{children:b.map(w=>W.jsx("td",{children:S[w]},w))},C))})]})]})},y=b=>{const S=a[b];r(S)};return W.jsxs("div",{className:"flex flex-c mt1 g1 mw-90",children:[W.jsx("h3",{className:"query-heading",children:"Enter your DML Commands Below to get the results: "}),W.jsx("ul",{className:"query-selection-list",children:Object.keys(a).map(b=>W.jsx("li",{onClick:()=>y(b),children:b},b))}),W.jsx(Ru,{onExecuteQuery:h,selectedQuery:n}),d&&W.jsx("p",{style:{color:"red"},children:d}),l?l.map((b,S)=>W.jsxs("div",{className:"border",children:[W.jsxs("h2",{style:{textTransform:"uppercase",marginBottom:"1rem"},children:["Executed Query #",S+1,":"]}),W.jsxs("p",{children:[W.jsx("strong",{children:"Query:"})," ",b.query]}),b.result&&b.result.map((C,w)=>W.jsx("div",{children:Object.keys(C).map(k=>W.jsxs("p",{children:[W.jsxs("strong",{children:[k,":"]})," ",C[k]]},k))},w))]},S)):e===null?W.jsx("p",{children:"No results found"}):W.jsx("p",{children:"Loading or Error..."}),p&&v()]})},V1=()=>{const[e,t]=J.useState([]),[n,r]=J.useState(""),[d,o]=J.useState([]),[p,m]=J.useState([]),c=localStorage.getItem("queryHistoryDDL"),f=c?JSON.parse(c):[],[s,i]=J.useState(""),[l,u]=J.useState(f);J.useEffect(()=>{c&&u(JSON.parse(c))},[]),J.useEffect(()=>{localStorage.setItem("queryHistoryDDL",JSON.stringify(l))},[l]);const a={CreateTable:"CREATE TABLE your_table_name (column1 datatype, column2 datatype, ...);",AlterTable:"ALTER TABLE your_table_name ADD column_name datatype;",CreateIndex:"CREATE INDEX index_name ON your_table_name (column1, column2);",UniqueNotNull:"CREATE TABLE your_table_name (column1 INT NOT NULL, column2 VARCHAR(255) NOT NULL UNIQUE, column3 INT, column4 INT, -- Add other columns here );",CheckTableLevel:` - CREATE TABLE your_table_name ( - column1 datatype, - column2 datatype, - CONSTRAINT table_constraint_name CHECK (column1 > 0) - ); -`,CheckColumnLevel:` - CREATE TABLE your_table_name ( - column1 datatype CHECK (column1 > 0), - column2 datatype - ); -`,AlterPrimaryKeyConstraint:"ALTER TABLE your_table_name ADD PRIMARY KEY (column1);",AlterUniqueConstraint:"ALTER TABLE your_table_name ADD CONSTRAINT constraint_name UNIQUE (column1);",AlterForeignKeyConstraint:"ALTER TABLE your_table_name ADD CONSTRAINT constraint_name FOREIGN KEY (column1) REFERENCES other_table (other_column);",AlterCheckConstraint:"ALTER TABLE your_table_name ADD CONSTRAINT constraint_name CHECK (column1 > 0);"},h=async()=>{try{const b=await fetch(`${Or}/api/tables`);if(!b.ok)throw new Error("Failed to fetch table names.");const S=await b.json();console.log(b,"hello"),o(S.data),m(S.tableName)}catch(b){console.log(b),console.error("Error fetching table names:",b)}};J.useEffect(()=>{h()},[]);const g=async b=>{try{const S=await Pu.post(`${Or}/api/ddl`,{query:b}),C=S.data;if(t(C.data),!S.status===200)throw new Error("Query execution failed.");u(w=>[...w,{query:b,result:C.data}]),localStorage.setItem("queryHistoryDDL",JSON.stringify(l))}catch(S){S instanceof SyntaxError?i("Invalid JSON response from the server. Check your query."):S.message==="Query execution failed."?i("Query execution failed. Check your query for errors."):i(S.response.data.error)}},v=()=>{if(!d||d.length===0)return W.jsx("p",{children:"No tables found."});const b=Object.keys(d[0]);return W.jsxs("div",{className:"table-container",children:[W.jsx("h2",{style:{textAlign:"center"},children:"Already Created Tables"}),W.jsxs("h3",{style:{textAlign:"center",marginBottom:"1rem"},children:["Table Name: ",p]}),W.jsxs("table",{className:"table_blur",children:[W.jsx("thead",{children:W.jsx("tr",{children:b.map(S=>W.jsx("th",{children:S},S))})}),W.jsx("tbody",{children:d.map((S,C)=>W.jsx("tr",{children:b.map(w=>W.jsx("td",{children:S[w]},w))},C))})]})]})},y=b=>{const S=a[b];r(S)};return W.jsxs("div",{className:"flex flex-c mt1 g1 mw-90",children:[W.jsxs("h3",{className:"query-heading",children:["Enter your DDL Commands Below to get the results:"," "]}),W.jsx("ul",{className:"query-selection-list",children:Object.keys(a).map(b=>W.jsx("li",{onClick:()=>y(b),children:b},b))}),W.jsx(Ru,{onExecuteQuery:g,selectedQuery:n}),s&&W.jsx("p",{style:{color:"red"},children:s}),l?l.map((b,S)=>W.jsxs("div",{className:"border",children:[W.jsxs("h2",{style:{textTransform:"uppercase",marginBottom:"1rem"},children:["Executed Query #",S+1,":"]}),W.jsxs("p",{children:[W.jsx("strong",{children:"Query:"})," ",b.query]}),b.result&&b.result.map((C,w)=>W.jsx("div",{children:Object.keys(C).map(k=>W.jsxs("p",{children:[W.jsxs("strong",{children:[k,":"]})," ",C[k]]},k))},w))]},S)):e===null?W.jsx("p",{children:"No results found"}):W.jsx("p",{children:"Loading or Error..."}),d&&v()]})},G1=()=>{const[e,t]=J.useState([]),[n,r]=J.useState(""),[d,o]=J.useState([]),[p,m]=J.useState([]),c=localStorage.getItem("queryHistoryDRL"),f=c?JSON.parse(c):[],[s,i]=J.useState(""),[l,u]=J.useState(f);J.useEffect(()=>{c&&u(JSON.parse(c))},[]),J.useEffect(()=>{localStorage.setItem("queryHistoryDRL",JSON.stringify(l))},[l]);const a={BasicSelect:`SELECT * FROM ${p||"table_name"};`,Sum:"SELECT SUM(column_name) FROM your_table WHERE condition;",Avg:"SELECT AVG(column_name) FROM your_table WHERE condition;",Count:"SELECT COUNT(column_name) FROM your_table WHERE condition;",Max:"SELECT MAX(column_name) FROM your_table WHERE condition;",Min:"SELECT MIN(column_name) FROM your_table WHERE condition;",Abs:"SELECT ABS(column_name) FROM your_table WHERE condition;",Round:"SELECT ROUND(column_name, decimal_places) FROM your_table WHERE condition;",Ceiling:"SELECT CEILING(column_name) FROM your_table WHERE condition;",Floor:"SELECT FLOOR(column_name) FROM your_table WHERE condition;",Power:"SELECT POWER(column_name, exponent) FROM your_table WHERE condition;",Concat:"SELECT CONCAT(string1, string2) FROM your_table WHERE condition;",Substring:"SELECT SUBSTRING(string_column, start_index, length) FROM your_table WHERE condition;",Upper:"SELECT UPPER(string_column) FROM your_table WHERE condition;",Lower:"SELECT LOWER(string_column) FROM your_table WHERE condition;",Replace:"SELECT REPLACE(string_column, search_string, replace_string) FROM your_table WHERE condition;",CurrentDate:"SELECT CURRENT_DATE();",CurrentTime:"SELECT CURRENT_TIME();",CurrentTimestamp:"SELECT CURRENT_TIMESTAMP();",DateAdd:"SELECT DATE_ADD(date_column, INTERVAL value unit) FROM your_table WHERE condition;",DateSub:"SELECT DATE_SUB(date_column, INTERVAL value unit) FROM your_table WHERE condition;"},h=async()=>{try{const b=await fetch(`${Or}/api/tables`);if(!b.ok)throw new Error("Failed to fetch table names.");const S=await b.json();console.log(S),o(S.data),m(S.tableName)}catch(b){console.error("Error fetching table names:",b)}};J.useEffect(()=>{h()},[]);const g=async b=>{try{const S=await Pu.post(`${Or}/api/drl`,{query:b}),C=S.data;if(t(C.data),!S.status===200)throw new Error("Query execution failed.");u(w=>[...w,{query:b,result:C.data}]),localStorage.setItem("queryHistoryDRL",JSON.stringify(l))}catch(S){S instanceof SyntaxError?i("Invalid JSON response from the server. Check your query."):S.message==="Query execution failed."?i("Query execution failed. Check your query for errors."):i(S.response.data.error)}},v=()=>{if(!d||d.length===0)return W.jsx("p",{children:"No tables found."});const b=Object.keys(d[0]);return W.jsxs("div",{className:"table-container",children:[W.jsx("h2",{style:{textAlign:"center"},children:"Already Created Tables"}),W.jsxs("h3",{style:{textAlign:"center",marginBottom:"1rem"},children:["Table Name: ",p]}),W.jsxs("table",{className:"table_blur",children:[W.jsx("thead",{children:W.jsx("tr",{children:b.map(S=>W.jsx("th",{children:S},S))})}),W.jsx("tbody",{children:d.map((S,C)=>W.jsx("tr",{children:b.map(w=>W.jsx("td",{children:S[w]},w))},C))})]})]})},y=b=>{const S=a[b];r(S)};return W.jsxs("div",{className:"flex flex-c mt1 g1 mw-90",children:[W.jsxs("h3",{className:"query-heading",children:["Enter your DRL Commands Below to get the results:"," "]}),W.jsx("ul",{className:"query-selection-list",children:Object.keys(a).map(b=>W.jsx("li",{onClick:()=>y(b),children:b},b))}),W.jsx(Ru,{onExecuteQuery:g,selectedQuery:n}),s&&W.jsx("p",{style:{color:"red"},children:s}),l?l.map((b,S)=>W.jsxs("div",{className:"border",children:[W.jsxs("h2",{style:{textTransform:"uppercase",marginBottom:"1rem"},children:["Executed Query #",S+1,":"]}),W.jsxs("p",{children:[W.jsx("strong",{children:"Query:"})," ",b.query]}),b.result.map((C,w)=>W.jsx("div",{children:Object.keys(C).map(k=>W.jsxs("p",{children:[W.jsxs("strong",{children:[k,":"]})," ",C[k]]},k))},w))]},S)):e===null?W.jsx("p",{children:"No results found"}):W.jsx("p",{children:"Loading or Error..."}),d&&v()]})},K1=()=>{const e=ji(),[t,n]=J.useState(!0),r=[{path:"/dbmspractice/",text:"(DATA RETRIVAL LANGUAGE) DRL",icon:"fa-search"},{path:"/dbmspractice/ddl",text:"(DATA DEFINITION LANGUAGE) DDL",icon:"fa-file"},{path:"/dbmspractice/dml",text:"(DATA MANIPULATION LANGUAGE) DML",icon:"fa-pencil"}],d=r.findIndex(p=>p.path===e.pathname),o=()=>{document.getElementById("root").classList.toggle("menu-closed"),n(!t)};return W.jsx("div",{className:`container ${t?"menu-open":"menu-closed"}`,children:W.jsxs("nav",{className:`side-nav ${t?"open":"closed"}`,children:[W.jsx("button",{className:`menu-toggle ${t?"open":"close"} `,onClick:o,children:W.jsx("i",{className:`fas ${t?"fa-times":"fa-bars"}`})}),W.jsx("ul",{className:"nav-menu",children:r.map((p,m)=>W.jsx("li",{className:`nav-item ${m===d?"active":""}`,children:W.jsxs(ow,{to:p.path,children:[W.jsx("i",{className:`fas ${p.icon}`}),W.jsx("span",{className:"menu-text",children:p.text})]})},m))})]})})},Q1=()=>W.jsxs("div",{className:"flex flex-c g1 sidebar",children:[W.jsx("h3",{className:"query-heading",children:"Some Important Notices "}),W.jsxs("ol",{className:"flex-c flex sidebarlist",children:[W.jsx("li",{children:"ANSI sql is a general language which is used in every databases "}),W.jsx("li",{children:"Standard sql is a more specific language used in some databases"}),W.jsx("li",{children:"Data Control Language(DCL) is used for granting or revoking priviledges"}),W.jsx("li",{children:"Transaction Control Language(TCL) commands cannot be rolled back with the rollback command"}),W.jsx("li",{children:"DML commands can be rolled back with the rollback command"}),W.jsx("li",{children:'Object owned by users are known as "SCHEMA"'}),W.jsx("li",{children:"scott is the predefined username in oracle"}),W.jsx("li",{children:"scott/tiger@bahria where scott = username , tiger = default password , @ if there are more than one databases and bahria is the name of the db we want to use"}),W.jsx("li",{children:"columns are also known as attributes(ex: name,age,job,id etc)"}),W.jsx("li",{children:"rows are also known as records or entites"}),W.jsx("li",{children:"DBMS is a tool for managing databases"}),W.jsx("li",{children:"show user is a command to show users"}),W.jsx("li",{children:"select * from table_name here * means all the attributes in a row or record"}),W.jsx("li",{children:"cl scr command clears the screen in sql plus"}),W.jsx("li",{children:"select * from cat query is used to display all the available tables in the database"}),W.jsx("li",{children:"desc table_name is used only in oracle(standard sql command)"}),W.jsx("li",{children:"database is the collection of tables"}),W.jsx("li",{children:"table is the collection of records"}),W.jsx("li",{children:"records are the collections of attributes"}),W.jsx("li",{children:"attributes are the collection of the entities "}),W.jsx("li",{children:'"!=" is used as not equal'}),W.jsx("li",{children:"varchar(255) where 255 is the limit of the characters to be used by the user"}),W.jsx("li",{children:"varchar has 1 MB limit while varchar2 has 2 MB limit"}),W.jsx("li",{children:"varchar dont occupy empty space in its memory but char occupies every bit even if it doesn't have any"}),W.jsx("li",{children:"drop command deletes the table records and its structure"}),W.jsx("li",{children:"truncate command only deletes the table records"}),W.jsx("li",{children:"delete command is just like truncate but delete command makes a backup of the deleted data which can be rolled back with the rollback command"}),W.jsx("li",{children:"with delete command we can also use where clause to delete a particular record "}),W.jsx("li",{children:"but delete command can be a little time taking as it makes the copy of the deleted data"}),W.jsx("li",{children:"truncate command does not have where clause and it does not make any backup , rollback command can not be used , but it is faster than delete command"}),W.jsx("li",{children:"aggregate functions are those functions which return a single value (ex: COUNT, SUM ,MAX ,MIN etc)"}),W.jsx("li",{children:"diff bw count and sum is that The COUNT() function is used to count the number of rows for a given condition,The COUNT() function works on numeric as well as non-numeric values while The SUM() function is used to calculate the total sum of all values in the specified numeric column"}),W.jsx("li",{children:"In sequential access data is accessed by starting at one location and then going through successive locations until the data is found"}),W.jsx("li",{children:"Direct access is the process of reading and writing data by going directly to where the data is physically located on by its address(this type of access method is not ideal)"}),W.jsx("li",{children:"ISAM (Indexed sequential access method) is an advanced sequential file organization method. In this case, records are stored in the file with the help of the primary key. For each primary key, an index value is created and mapped to the record.s"}),W.jsx("li",{children:"indexes are not physically visible on the table or record"}),W.jsx("li",{children:"indexing always sort the attribute in ascending order first"}),W.jsx("li",{children:"Data indexing is good for big gbs but not for small ones"}),W.jsx("li",{children:"indexes are stored in the form of metadata on the hard disk"}),W.jsx("li",{children:"Data dictionary is also known as meta data which is data about the data"}),W.jsx("li",{children:"In databases records could be more but attributes should be less"}),W.jsx("li",{children:"if insertion and updation is frequently occur in a table then it would not be a good option to do indexing because at every insert and update(dml operation) the index will also be moved with the record but if the table remains static then indexing can be helpful in terms of searching "}),W.jsx("li",{children:"indexing helps in faster searching result with O(logn) complexity"}),W.jsx("li",{children:"every record has a predefined attribute which is not visible which is known as row_id"}),W.jsx("li",{children:"there are four types of users in dbms: dba(database admin), normal user(who have advanced skills in dbms),application programmers(backend developers),guest users(who can only read)"}),W.jsx("li",{children:"sys is the powerful user in oracle"}),W.jsx("li",{children:"if username is typed in as: sys as sysdba and the password then it logs in to the powerful user"}),W.jsx("li",{children:"excel and access is a flat file database "}),W.jsx("li",{children:"access db is not relational db"}),W.jsx("li",{children:"advantages of a db includes 1) centralized database(to display the same data to every user) "}),W.jsx("li",{children:"2) users are able to respond quickly"}),W.jsx("li",{children:"3) improved data security"}),W.jsx("li",{children:"4) better integration"}),W.jsx("li",{children:"5) minimized data consistency"}),W.jsx("li",{children:"6) improved data access"}),W.jsx("li",{children:"7) improved decision making (ex: for checking literacy rate,population etc)"}),W.jsx("li",{children:'Ad hoc query is the query which is used as per the requirement(runtime queries) (ex: select ename,sal,(sal*12) as "ANY NAME HERE FOR THE YEARLY SALARY" from table_name'}),W.jsx("li",{children:"ms access is single user database"}),W.jsx("li",{children:"oracle is multi user database"}),W.jsx("li",{children:"centralized dbs(only one)"}),W.jsx("li",{children:"distrubed dbs(different in different regions,areas etc)"}),W.jsx("li",{children:"operational/transactional db is designed primarily to perform day to day operations"}),W.jsx("li",{children:"some db store the previous data before inserting or updating the old one"}),W.jsx("li",{children:"unstructered db is in raw form/docs"}),W.jsx("li",{children:"xml db is used mostly in websites"}),W.jsx("li",{children:"structered db is oracle,mysql etc"}),W.jsx("li",{children:"semi-structered is the mixture of unstructered and structered db"}),W.jsx("li",{children:"db related roles includes dba and db design users"}),W.jsx("li",{children:"db design users consists of logical designer and physical designer"}),W.jsx("li",{children:"logical designer provides the blueprint or model of the database(of any database) he speaks mostly related to general dbs not some specific and defines which datatypes to use etc "}),W.jsx("li",{children:"physical designer speaks in a more specific database and provides the additional info to the dba to perform the specified tasks"})]})]});function Y1(){return W.jsxs(nw,{children:[W.jsx(K1,{}),W.jsxs(Xy,{children:[W.jsx(Ro,{path:"/dbmspractice/dml",element:W.jsx(U1,{})}),W.jsx(Ro,{path:"/dbmspractice/ddl",element:W.jsx(V1,{})}),W.jsx(Ro,{path:"/dbmspractice/",element:W.jsx(G1,{})})]}),W.jsx(Q1,{})]})}Ea.createRoot(document.getElementById("root")).render(W.jsx(Wh.StrictMode,{children:W.jsx(Y1,{})}));