ENGINE: Fixed Missing web-interface folder

This commit is contained in:
2025-11-01 04:03:42 -06:00
parent da37098d91
commit 0e13358c7e
55705 changed files with 936334 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import{c as p}from"./@icons-BDZNmjFP.js";import{r as H}from"./react-CcTm0Ooe.js";var U={},q=p&&p.__extends||function(){var r=function(a,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])},r(a,e)};return function(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(a,e);function t(){this.constructor=a}a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),f=p&&p.__assign||function(){return f=Object.assign||function(r){for(var a,e=1,t=arguments.length;e<t;e++){a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])}return r},f.apply(this,arguments)},V=p&&p.__createBinding||(Object.create?function(r,a,e,t){t===void 0&&(t=e);var n=Object.getOwnPropertyDescriptor(a,e);(!n||("get"in n?!a.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return a[e]}}),Object.defineProperty(r,t,n)}:function(r,a,e,t){t===void 0&&(t=e),r[t]=a[e]}),G=p&&p.__setModuleDefault||(Object.create?function(r,a){Object.defineProperty(r,"default",{enumerable:!0,value:a})}:function(r,a){r.default=a}),Q=p&&p.__importStar||function(r){if(r&&r.__esModule)return r;var a={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&V(a,r,e);return G(a,r),a},Z=p&&p.__rest||function(r,a){var e={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&a.indexOf(t)<0&&(e[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(e[t[n]]=r[t[n]]);return e};Object.defineProperty(U,"__esModule",{value:!0});var x=Q(H),$=13,J=9,X=8,tt=89,T=90,et=77,F=57,N=219,A=222,W=192,nt=27,R=100,rt=3e3,at=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),M=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),I="npm__react-simple-code-editor__textarea",it=`
/**
* Reset the text fill color so that placeholder is visible
*/
.`.concat(I,`:empty {
-webkit-text-fill-color: inherit !important;
}
/**
* Hack to apply on some CSS on IE10 and IE11
*/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/**
* IE doesn't support '-webkit-text-fill-color'
* So we use 'color: transparent' to make the text transparent on IE
* Unlike other browsers, it doesn't affect caret color in IE
*/
.`).concat(I,` {
color: transparent !important;
}
.`).concat(I,`::selection {
background-color: #accef7 !important;
color: transparent !important;
}
}
`),ot=function(r){q(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.state={capture:!0},e._recordCurrentState=function(){var t=e._input;if(t){var n=t.value,s=t.selectionStart,i=t.selectionEnd;e._recordChange({value:n,selectionStart:s,selectionEnd:i})}},e._getLines=function(t,n){return t.substring(0,n).split(`
`)},e._recordChange=function(t,n){var s,i,g;n===void 0&&(n=!1);var b=e._history,v=b.stack,l=b.offset;if(v.length&&l>-1){e._history.stack=v.slice(0,l+1);var o=e._history.stack.length;if(o>R){var u=o-R;e._history.stack=v.slice(u,o),e._history.offset=Math.max(e._history.offset-u,0)}}var c=Date.now();if(n){var d=e._history.stack[e._history.offset];if(d&&c-d.timestamp<rt){var C=/[^a-z0-9]([a-z0-9]+)$/i,m=(s=e._getLines(d.value,d.selectionStart).pop())===null||s===void 0?void 0:s.match(C),_=(i=e._getLines(t.value,t.selectionStart).pop())===null||i===void 0?void 0:i.match(C);if(m!=null&&m[1]&&(!((g=_==null?void 0:_[1])===null||g===void 0)&&g.startsWith(m[1]))){e._history.stack[e._history.offset]=f(f({},t),{timestamp:c});return}}}e._history.stack.push(f(f({},t),{timestamp:c})),e._history.offset++},e._updateInput=function(t){var n=e._input;n&&(n.value=t.value,n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd,e.props.onValueChange(t.value))},e._applyEdits=function(t){var n=e._input,s=e._history.stack[e._history.offset];s&&n&&(e._history.stack[e._history.offset]=f(f({},s),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),e._recordChange(t),e._updateInput(t)},e._undoEdit=function(){var t=e._history,n=t.stack,s=t.offset,i=n[s-1];i&&(e._updateInput(i),e._history.offset=Math.max(s-1,0))},e._redoEdit=function(){var t=e._history,n=t.stack,s=t.offset,i=n[s+1];i&&(e._updateInput(i),e._history.offset=Math.min(s+1,n.length-1))},e._handleKeyDown=function(t){var n=e.props,s=n.tabSize,i=n.insertSpaces,g=n.ignoreTabKey,b=n.onKeyDown;if(!(b&&(b(t),t.defaultPrevented))){t.keyCode===nt&&t.currentTarget.blur();var v=t.currentTarget,l=v.value,o=v.selectionStart,u=v.selectionEnd,c=(i?" ":" ").repeat(s);if(t.keyCode===J&&!g&&e.state.capture)if(t.preventDefault(),t.shiftKey){var d=e._getLines(l,o),C=d.length-1,m=e._getLines(l,u).length-1,_=l.split(`
`).map(function(w,z){return z>=C&&z<=m&&w.startsWith(c)?w.substring(c.length):w}).join(`
`);if(l!==_){var E=d[C];e._applyEdits({value:_,selectionStart:E!=null&&E.startsWith(c)?o-c.length:o,selectionEnd:u-(l.length-_.length)})}}else if(o!==u){var d=e._getLines(l,o),O=d.length-1,j=e._getLines(l,u).length-1,E=d[O];e._applyEdits({value:l.split(`
`).map(function(Y,B){return B>=O&&B<=j?c+Y:Y}).join(`
`),selectionStart:E&&/\S/.test(E)?o+c.length:o,selectionEnd:u+c.length*(j-O+1)})}else{var y=o+c.length;e._applyEdits({value:l.substring(0,o)+c+l.substring(u),selectionStart:y,selectionEnd:y})}else if(t.keyCode===X){var P=o!==u,L=l.substring(0,o);if(L.endsWith(c)&&!P){t.preventDefault();var y=o-c.length;e._applyEdits({value:l.substring(0,o-c.length)+l.substring(u),selectionStart:y,selectionEnd:y})}}else if(t.keyCode===$){if(o===u){var k=e._getLines(l,o).pop(),S=k==null?void 0:k.match(/^\s+/);if(S!=null&&S[0]){t.preventDefault();var K=`
`+S[0],y=o+K.length;e._applyEdits({value:l.substring(0,o)+K+l.substring(u),selectionStart:y,selectionEnd:y})}}}else if(t.keyCode===F||t.keyCode===N||t.keyCode===A||t.keyCode===W){var h=void 0;t.keyCode===F&&t.shiftKey?h=["(",")"]:t.keyCode===N?t.shiftKey?h=["{","}"]:h=["[","]"]:t.keyCode===A?t.shiftKey?h=['"','"']:h=["'","'"]:t.keyCode===W&&!t.shiftKey&&(h=["`","`"]),o!==u&&h&&(t.preventDefault(),e._applyEdits({value:l.substring(0,o)+h[0]+l.substring(o,u)+h[1]+l.substring(u),selectionStart:o,selectionEnd:u+2}))}else(M?t.metaKey&&t.keyCode===T:t.ctrlKey&&t.keyCode===T)&&!t.shiftKey&&!t.altKey?(t.preventDefault(),e._undoEdit()):(M?t.metaKey&&t.keyCode===T&&t.shiftKey:at?t.ctrlKey&&t.keyCode===tt:t.ctrlKey&&t.keyCode===T&&t.shiftKey)&&!t.altKey?(t.preventDefault(),e._redoEdit()):t.keyCode===et&&t.ctrlKey&&(!M||t.shiftKey)&&(t.preventDefault(),e.setState(function(w){return{capture:!w.capture}}))}},e._handleChange=function(t){var n=t.currentTarget,s=n.value,i=n.selectionStart,g=n.selectionEnd;e._recordChange({value:s,selectionStart:i,selectionEnd:g},!0),e.props.onValueChange(s)},e._history={stack:[],offset:-1},e._input=null,e}return a.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(a.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),a.prototype.render=function(){var e=this,t=this.props,n=t.value,s=t.style,i=t.padding,g=t.highlight,b=t.textareaId,v=t.textareaClassName,l=t.autoFocus,o=t.disabled,u=t.form,c=t.maxLength,d=t.minLength,C=t.name,m=t.placeholder,_=t.readOnly,E=t.required,O=t.onClick,j=t.onFocus,y=t.onBlur,P=t.onKeyUp;t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey;var L=t.preClassName,k=Z(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),S={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},K=g(n);return x.createElement("div",f({},k,{style:f(f({},D.container),s)}),x.createElement("pre",f({className:L,"aria-hidden":"true",style:f(f(f({},D.editor),D.highlight),S)},typeof K=="string"?{dangerouslySetInnerHTML:{__html:K+"<br />"}}:{children:K})),x.createElement("textarea",{ref:function(h){return e._input=h},style:f(f(f({},D.editor),D.textarea),S),className:I+(v?" ".concat(v):""),id:b,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:O,onKeyUp:P,onFocus:j,onBlur:y,disabled:o,form:u,maxLength:c,minLength:d,name:C,placeholder:m,readOnly:_,required:E,autoFocus:l,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),x.createElement("style",{dangerouslySetInnerHTML:{__html:it}}))},a.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},a}(x.Component),ut=U.default=ot,D={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};export{ut as _};