diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..dc3bc09 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,4 @@ +> 1% +last 2 versions +not dead +not ie 11 diff --git a/.commitlintrc.cjs b/.commitlintrc.cjs new file mode 100644 index 0000000..151ead3 --- /dev/null +++ b/.commitlintrc.cjs @@ -0,0 +1,107 @@ +const fs = require('fs'); +const path = require('path'); +const { execSync } = require('child_process'); + +const scopes = fs + .readdirSync(path.resolve(__dirname, 'src'), { withFileTypes: true }) + .filter((dirent) => dirent.isDirectory()) + .map((dirent) => dirent.name.replace(/s$/, '')); + +// precomputed scope +const scopeComplete = execSync('git status --porcelain || true') + .toString() + .trim() + .split('\n') + .find((r) => ~r.indexOf('M src')) + ?.replace(/(\/)/g, '%%') + ?.match(/src%%((\w|-)*)/)?.[1] + ?.replace(/s$/, ''); + +/** @type {import('cz-git').UserConfig} */ +module.exports = { + ignores: [(commit) => commit.includes('init')], + extends: ['@commitlint/config-conventional'], + rules: { + 'body-leading-blank': [2, 'always'], + 'footer-leading-blank': [1, 'always'], + 'header-max-length': [2, 'always', 108], + 'subject-empty': [2, 'never'], + 'type-empty': [2, 'never'], + 'subject-case': [0], + 'type-enum': [ + 2, + 'always', + [ + 'feat', + 'fix', + 'perf', + 'style', + 'docs', + 'test', + 'refactor', + 'build', + 'ci', + 'chore', + 'revert', + 'wip', + 'workflow', + 'types', + 'release', + ], + ], + }, + prompt: { + /** @use `yarn commit :f` */ + alias: { + f: 'docs: fix typos', + r: 'docs: update README', + s: 'style: update code format', + b: 'build: bump dependencies', + c: 'chore: update config', + }, + customScopesAlign: !scopeComplete ? 'top' : 'bottom', + defaultScope: scopeComplete, + scopes: [...scopes, 'mock'], + allowEmptyIssuePrefixs: false, + allowCustomIssuePrefixs: false, + + // English + typesAppend: [ + { value: 'wip', name: 'wip: work in process' }, + { value: 'workflow', name: 'workflow: workflow improvements' }, + { value: 'types', name: 'types: type definition file changes' }, + ], + + // 中英文对照版 + // messages: { + // type: '选择你要提交的类型 :', + // scope: '选择一个提交范围 (可选):', + // customScope: '请输入自定义的提交范围 :', + // subject: '填写简短精炼的变更描述 :\n', + // body: '填写更加详细的变更描述 (可选)。使用 "|" 换行 :\n', + // breaking: '列举非兼容性重大的变更 (可选)。使用 "|" 换行 :\n', + // footerPrefixsSelect: '选择关联issue前缀 (可选):', + // customFooterPrefixs: '输入自定义issue前缀 :', + // footer: '列举关联issue (可选) 例如: #31, #I3244 :\n', + // confirmCommit: '是否提交或修改commit ?', + // }, + // types: [ + // { value: 'feat', name: 'feat: 新增功能' }, + // { value: 'fix', name: 'fix: 修复缺陷' }, + // { value: 'docs', name: 'docs: 文档变更' }, + // { value: 'style', name: 'style: 代码格式' }, + // { value: 'refactor', name: 'refactor: 代码重构' }, + // { value: 'perf', name: 'perf: 性能优化' }, + // { value: 'test', name: 'test: 添加疏漏测试或已有测试改动' }, + // { value: 'build', name: 'build: 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)' }, + // { value: 'ci', name: 'ci: 修改 CI 配置、脚本' }, + // { value: 'revert', name: 'revert: 回滚 commit' }, + // { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改 (不影响源文件、测试用例)' }, + // { value: 'wip', name: 'wip: 正在开发中' }, + // { value: 'workflow', name: 'workflow: 工作流程改进' }, + // { value: 'types', name: 'types: 类型定义文件修改' }, + // ], + // emptyScopesAlias: 'empty: 不填写', + // customScopesAlias: 'custom: 自定义', + }, +}; diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8617652 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +.vscode/ diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..dccf841 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] +charset=utf-8 +end_of_line=lf +insert_final_newline=true +indent_style=space +indent_size=2 +max_line_length = 100 + +[*.{yml,yaml,json}] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab diff --git a/.env.nongjingquan b/.env.nongjingquan new file mode 100644 index 0000000..9452a52 --- /dev/null +++ b/.env.nongjingquan @@ -0,0 +1,45 @@ +# Whether to open mock +VITE_USE_MOCK = true + +# public path +VITE_PUBLIC_PATH = / + +# Whether to enable gzip or brotli compression +# Optional: gzip | brotli | none +# If you need multiple forms, you can use `,` to separate +VITE_BUILD_COMPRESS = 'none' + + +# Basic interface address SPA +# 农经权档案查询 +VITE_GLOB_API_URL=http://192.168.10.106:9640 + +VITE_GLOB_INFO_IMAGE_URL=http://120.222.154.48:6050 + +VITE_GLOB_INFO_IMAGE_URL=http://120.222.154.48:6050 + +# File upload address, optional +# It can be forwarded by nginx or write the actual address directly +VITE_GLOB_UPLOAD_URL=http://120.222.154.7:6050 + +# Interface prefix + +VITE_GLOB_API_URL_PREFIX= + +VITE_GLOB_APP_TITLE = 农经权档案查询 + +VITE_GLOB_APP_EN_TITLE = Basic Framework + +VITE_GLOB_APP_LOGO = /logo.png + +# VITE_GLOB_APP_MANAGEMENT_UNIT = 管理单位:临沂市自然资源和规划局 + +VITE_GLOB_APP_TECHINICAL_SUPPORT = 技术⽀持:山东慧创信息科技有限公司 + +VITE_GLOB_APP_VERSIONS = 系统版本:V1.0 + +VITE_GLOB_YINGXIANG_SERVER = http://192.168.31.205:8080/geoserver/ne/wms?service=WMS&version=1.1.0&request=GetMap&layers=ne:linyitif&styles=&bbox={bbox-epsg-3857}&width=256&height=256&srs=EPSG:3857&format=image/png&TRANSPARENT=TRUE + +VITE_GLOB_FILE_PREVIEW = http://120.222.154.7:6081 + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..67ac532 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,16 @@ + +*.sh +node_modules +*.md +*.woff +*.ttf +.vscode +.idea +dist +/public +/docs +.husky +.local +/bin +Dockerfile +package.json diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..98fc3ef --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,7 @@ +module.exports = { + root: true, + extends: ['@vben'], + rules: { + 'no-undef': 'off', + }, +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d4e5bd3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings + +# Automatically normalize line endings (to LF) for all text-based files. +* text=auto eol=lf + +# Declare files that will always have CRLF line endings on checkout. +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf + +# Denote all files that are truly binary and should not be modified. +*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..090afeb --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +node_modules +.DS_Store +dist +dist.zip +.cache +.turbo + +tests/server/static +tests/server/static/upload + +.local +# local env files +.env.local +.env.*.local +.eslintcache +.env +.env.analyze +.env.development +.env.dikongganzhi +.env.production +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +. +# Editor directories and files +.idea +# .vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +package-lock.json +pnpm-lock.yaml + +.history diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..866381f --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,6 @@ +ports: + - port: 3344 + onOpen: open-preview +tasks: + - init: pnpm install + command: pnpm run dev diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..29f68cf --- /dev/null +++ b/.npmrc @@ -0,0 +1,7 @@ +public-hoist-pattern[]=husky +public-hoist-pattern[]=*eslint* +public-hoist-pattern[]=*prettier* +public-hoist-pattern[]=lint-staged +public-hoist-pattern[]=*stylelint* +public-hoist-pattern[]=@commitlint/cli +public-hoist-pattern[]=@vben/eslint-config diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..24531e6 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,12 @@ +dist +.local +.output.js +node_modules + +**/*.svg +**/*.sh + +public +.npmrc + +*-lock.yaml diff --git a/.prettierrc.cjs b/.prettierrc.cjs new file mode 100644 index 0000000..4a24e88 --- /dev/null +++ b/.prettierrc.cjs @@ -0,0 +1,19 @@ +module.exports = { + printWidth: 100, + semi: true, + vueIndentScriptAndStyle: true, + singleQuote: true, + trailingComma: 'all', + proseWrap: 'never', + htmlWhitespaceSensitivity: 'strict', + endOfLine: 'auto', + plugins: ['prettier-plugin-packagejson'], + overrides: [ + { + files: '.*rc', + options: { + parser: 'json', + }, + }, + ], +}; diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 0000000..6cd69e0 --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,2 @@ +dist +public diff --git a/.stylelintrc.cjs b/.stylelintrc.cjs new file mode 100644 index 0000000..65320e7 --- /dev/null +++ b/.stylelintrc.cjs @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['@vben/stylelint-config'], +}; diff --git a/hc/hc.css b/hc/hc.css new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html new file mode 100644 index 0000000..01fe8d9 --- /dev/null +++ b/index.html @@ -0,0 +1,177 @@ + + +
+ + + + +r.length)&&(u=r.length),u-=a.length;var f=r.indexOf(a,u);return f!==-1&&f===u}),String.prototype.repeat||g(String.prototype,"repeat",function(a){for(var u="",r=this;a>0;)a&1&&(u+=r),(a>>=1)&&(r+=r);return u}),String.prototype.includes||g(String.prototype,"includes",function(a,u){return this.indexOf(a,u)!=-1}),Object.assign||(Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(a),r=1;r 0&&/^\s*$/.test(s));i=s.length,/\s+$/.test(s)||(s="")}var c=a.stringReverse(s),p=this.$shortWordEndIndex(c);return this.moveCursorTo(n,i-p)},l.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},l.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},l.prototype.moveCursorBy=function(n,i){var o=this.session.documentToScreenPosition(this.lead.row,this.lead.column),s;if(i===0&&(n!==0&&(this.session.$bidiHandler.isBidiRow(o.row,this.lead.row)?(s=this.session.$bidiHandler.getPosLeft(o.column),o.column=Math.round(s/this.session.$bidiHandler.charWidths[0])):s=o.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?o.column=this.$desiredColumn:this.$desiredColumn=o.column),n!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var c=this.session.lineWidgets[this.lead.row];n<0?n-=c.rowsAbove||0:n>0&&(n+=c.rowCount-(c.rowsAbove||0))}var p=this.session.screenToDocumentPosition(o.row+n,o.column,s);n!==0&&i===0&&p.row===this.lead.row&&p.column===this.lead.column,this.moveCursorTo(p.row,p.column+i,i===0)},l.prototype.moveCursorToPosition=function(n){this.moveCursorTo(n.row,n.column)},l.prototype.moveCursorTo=function(n,i,o){var s=this.session.getFoldAt(n,i,1);s&&(n=s.start.row,i=s.start.column),this.$keepDesiredColumnOnChange=!0;var c=this.session.getLine(n);/[\uDC00-\uDFFF]/.test(c.charAt(i))&&c.charAt(i-1)&&(this.lead.row==n&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(n,i),this.$keepDesiredColumnOnChange=!1,o||(this.$desiredColumn=null)},l.prototype.moveCursorToScreen=function(n,i,o){var s=this.session.screenToDocumentPosition(n,i);this.moveCursorTo(s.row,s.column,o)},l.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},l.prototype.fromOrientedRange=function(n){this.setSelectionRange(n,n.cursor==n.start),this.$desiredColumn=n.desiredColumn||this.$desiredColumn},l.prototype.toOrientedRange=function(n){var i=this.getRange();return n?(n.start.column=i.start.column,n.start.row=i.start.row,n.end.column=i.end.column,n.end.row=i.end.row):n=i,n.cursor=this.isBackwards()?n.start:n.end,n.desiredColumn=this.$desiredColumn,n},l.prototype.getRangeOfMovements=function(n){var i=this.getCursor();try{n(this);var o=this.getCursor();return r.fromPoints(i,o)}catch{return r.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},l.prototype.toJSON=function(){if(this.rangeCount)var n=this.ranges.map(function(i){var o=i.clone();return o.isBackwards=i.cursor==i.start,o});else{var n=this.getRange();n.isBackwards=this.isBackwards()}return n},l.prototype.fromJSON=function(n){if(n.start==null)if(this.rangeList&&n.length>1){this.toSingleRange(n[0]);for(var i=n.length;i--;){var o=r.fromPoints(n[i].start,n[i].end);n[i].isBackwards&&(o.cursor=o.start),this.addRange(o,!0)}return}else n=n[0];this.rangeList&&this.toSingleRange(n),this.setSelectionRange(n,n.isBackwards)},l.prototype.isEqual=function(n){if((n.length||this.rangeCount)&&n.length!=this.rangeCount)return!1;if(!n.length||!this.ranges)return this.getRange().isEqual(n);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(n[i]))return!1;return!0},l}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,g.implement(f.prototype,u),h.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,h,m){var g=e("./lib/report_error").reportError,a=2e3,u=function(){function r(f){this.splitRegex,this.states=f,this.regExps={},this.matchMappings={};for(var l in this.states){for(var n=this.states[l],i=[],o=0,s=this.matchMappings[l]={defaultToken:"text"},c="g",p=[],$=0;$ i)break;if($.start.row==i&&$.start.column>=l.column&&($.start.column==l.column&&this.$bias<=0||($.start.column+=C,$.start.row+=v)),$.end.row==i&&$.end.column>=l.column){if($.end.column==l.column&&this.$bias<0)continue;$.end.column==l.column&&C>0&&c o)break;$.end.row =n)return c;if(c.end.row>n)return null}return null},this.getNextFoldLine=function(n,i){var o=this.$foldData,s=0;for(i&&(s=o.indexOf(i)),s==-1&&(s=0),s;s $)break;var v=this.getFoldWidgetRange(f,"all",l);if(v){if(v.start.row<=o)break;if(v.isMultiLine())l=v.end.row;else if(i==$)break}c=l}}return new a(o,s,c,f.getLine(c).length)},this.getCommentRegionBlock=function(f,l,n){for(var i=l.search(/\s*$/),o=f.getLength(),s=n,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++n $)break;var v=this.getFoldWidgetRange(f,"all",l);if(v){if(v.start.row<=o)break;if(v.isMultiLine())l=v.end.row;else if(i==$)break}c=l}}return new a(o,s,c,f.getLine(c).length)},this.getCommentRegionBlock=function(f,l,n){for(var i=l.search(/\s*$/),o=f.getLength(),s=n,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++n $)break;var v=this.getFoldWidgetRange(f,"all",l);if(v){if(v.start.row<=o)break;if(v.isMultiLine())l=v.end.row;else if(i==$)break}c=l}}return new a(o,s,c,f.getLine(c).length)},this.getCommentRegionBlock=function(f,l,n){for(var i=l.search(/\s*$/),o=f.getLength(),s=n,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++n0;)r&1&&(f+=u),(r>>=1)&&(u+=u);return f};var g=/^\s\s*/,a=/\s\s*$/;h.stringTrimLeft=function(u){return u.replace(g,"")},h.stringTrimRight=function(u){return u.replace(a,"")},h.copyObject=function(u){var r={};for(var f in u)r[f]=u[f];return r},h.copyArray=function(u){for(var r=[],f=0,l=u.length;f=L.length&&X.value===L&&L&&X.selectionEnd!==A},D=function(X){M||(x?x=!1:j(E)?(b.selectAll(),P()):C&&E.selectionStart!=q&&P())},W=null;this.setInputHandler=function(X){W=X},this.getInputHandler=function(){return W};var H=!1,z=function(X,ae){if(H&&(H=!1),O)return P(),X&&b.onPaste(X),O=!1,"";for(var oe=E.selectionStart,G=E.selectionEnd,U=q,Y=L.length-A,ee=X,re=X.length-oe,de=X.length-G,ce=0;U>0&&L[ce]==X[ce];)ce++,U--;for(ee=ee.slice(ce),ce=1;Y>0&&L.length-ce>q-1&&L[L.length-ce]==X[X.length-ce];)ce++,Y--;re-=ce-1,de-=ce-1;var ve=ee.length-ce+1;if(ve<0&&(U=-ve,ve=0),ee=ee.slice(0,ve),!ae&&!ee&&!re&&!U&&!Y&&!de)return"";k=!0;var xe=!1;return u.isAndroid&&ee==". "&&(ee=" ",xe=!0),ee&&!U&&!Y&&!re&&!de||S?b.onTextInput(ee):b.onTextInput(ee,{extendLeft:U,extendRight:Y,restoreStart:re,restoreEnd:de}),k=!1,L=X,q=oe,A=G,I=de,xe?`
+`:ee},K=function(X){if(M)return _e();if(X&&X.inputType){if(X.inputType=="historyUndo")return b.execCommand("undo");if(X.inputType=="historyRedo")return b.execCommand("redo")}var ae=E.value,oe=z(ae,!0);(ae.length>s+100||v.test(oe)||C&&q<1&&q==A)&&P()},Z=function(X,ae,oe){var G=X.clipboardData||window.clipboardData;if(!(!G||n)){var U=i||oe?"Text":"text/plain";try{return ae?G.setData(U,ae)!==!1:G.getData(U)}catch(Y){if(!oe)return Z(Y,ae,!0)}}},ie=function(X,ae){var oe=b.getCopyText();if(!oe)return g.preventDefault(X);Z(X,oe)?($&&(P(oe),x=oe,setTimeout(function(){x=!1},10)),ae?b.onCut():b.onCopy(),g.preventDefault(X)):(x=!0,E.value=oe,E.select(),setTimeout(function(){x=!1,P(),ae?b.onCut():b.onCopy()}))},se=function(X){ie(X,!0)},ue=function(X){ie(X,!1)},fe=function(X){var ae=Z(X);l.pasteCancelled()||(typeof ae=="string"?(ae&&b.onPaste(ae,X),u.isIE&&setTimeout(P),g.preventDefault(X)):(E.value="",O=!0))};g.addCommandKeyListener(E,function(X,ae,oe){if(!M)return b.onCommandKey(X,ae,oe)},b),g.addListener(E,"select",D,b),g.addListener(E,"input",K,b),g.addListener(E,"cut",se,b),g.addListener(E,"copy",ue,b),g.addListener(E,"paste",fe,b),(!("oncut"in E)||!("oncopy"in E)||!("onpaste"in E))&&g.addListener(_,"keydown",function(X){if(!(u.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:ue(X);break;case 86:fe(X);break;case 88:se(X);break}},b);var ye=function(X){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!S)){X.data&&(M.useTextareaForIME=!1),setTimeout(_e,0),b._signal("compositionStart"),b.on("mousedown",Q);var ae=b.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,M.markerRange=ae,M.selectionStart=q,b.onCompositionStart(M),M.useTextareaForIME?(L=E.value="",q=0,A=0):(E.msGetInputContext&&(M.context=E.msGetInputContext()),E.getInputContext&&(M.context=E.getInputContext()))}},_e=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(S)return Q();if(M.useTextareaForIME)b.onCompositionUpdate(E.value);else{var X=E.value;z(X),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+A-M.selectionStart+I)}}},J=function(X){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",Q),X&&K())};function Q(){w=!0,E.blur(),E.focus(),w=!1}var ne=f.delayedCall(_e,50).schedule.bind(null,null);function le(X){X.keyCode==27&&E.value.lengthA&&L.slice(0,de).split(`
+`).length>2?ce=c.down:de>A&&L[de-1]==" "?(ce=c.right,ve=p.option):(de>A||de==A&&A!=q&&re==de)&&(ce=c.right),re!==de&&(ve|=p.shift),ce){var xe=ae.onCommandKey({},ve,ce);if(!xe&&ae.commands){ce=c.keyCodeToString(ce);var ge=ae.commands.findKeyCommand(ve,ce);ge&&ae.execCommand(ge)}q=re,A=de,P("")}}};document.addEventListener("selectionchange",Y),ae.on("destroy",function(){document.removeEventListener("selectionchange",Y)})}this.destroy=function(){E.parentElement&&E.parentElement.removeChild(E)}},h.TextInput=y,h.$setUserAgentForTests=function(_,b){C=_,$=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,h,m){var g=e("../lib/useragent"),a=0,u=550,r=function(){function n(i){i.$clickSelection=null;var o=i.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(i)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(i)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(i)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(i)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(i));var s=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];s.forEach(function(c){i[c]=this[c]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}return n.prototype.onMouseDown=function(i){var o=i.inSelection(),s=i.getDocumentPosition();this.mousedownEvent=i;var c=this.editor,p=i.getButton();if(p!==0){var $=c.getSelectionRange(),v=$.isEmpty();(v||p==1)&&c.selection.moveToPosition(s),p==2&&(c.textInput.onContextMenu(i.domEvent),g.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),o&&!c.isFocused()&&(c.focus(),this.$focusTimeout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(s,i.domEvent._clicks>1),i.preventDefault()},n.prototype.startSelect=function(i,o){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var s=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?s.selection.selectToPosition(i):o||s.selection.moveToPosition(i),o||this.select(),s.setStyle("ace_selecting"),this.setState("select"))},n.prototype.select=function(){var i,o=this.editor,s=o.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(s);if(c==-1)i=this.$clickSelection.end;else if(c==1)i=this.$clickSelection.start;else{var p=l(this.$clickSelection,s);s=p.cursor,i=p.anchor}o.selection.setSelectionAnchor(i.row,i.column)}o.selection.selectToPosition(s),o.renderer.scrollCursorIntoView()},n.prototype.extendSelectionBy=function(i){var o,s=this.editor,c=s.renderer.screenToTextCoordinates(this.x,this.y),p=s.selection[i](c.row,c.column);if(this.$clickSelection){var $=this.$clickSelection.comparePoint(p.start),v=this.$clickSelection.comparePoint(p.end);if($==-1&&v<=0)o=this.$clickSelection.end,(p.end.row!=c.row||p.end.column!=c.column)&&(c=p.start);else if(v==1&&$>=0)o=this.$clickSelection.start,(p.start.row!=c.row||p.start.column!=c.column)&&(c=p.end);else if($==-1&&v==1)c=p.end,o=p.start;else{var C=l(this.$clickSelection,c);c=C.cursor,o=C.anchor}s.selection.setSelectionAnchor(o.row,o.column)}s.selection.selectToPosition(c),s.renderer.scrollCursorIntoView()},n.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},n.prototype.focusWait=function(){var i=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(i>a||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},n.prototype.onDoubleClick=function(i){var o=i.getDocumentPosition(),s=this.editor,c=s.session,p=c.getBracketRange(o);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=s.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},n.prototype.onTripleClick=function(i){var o=i.getDocumentPosition(),s=this.editor;this.setState("selectByLines");var c=s.getSelectionRange();c.isMultiLine()&&c.contains(o.row,o.column)?(this.$clickSelection=s.selection.getLineRange(c.start.row),this.$clickSelection.end=s.selection.getLineRange(c.end.row).end):this.$clickSelection=s.selection.getLineRange(o.row),this.select()},n.prototype.onQuadClick=function(i){var o=this.editor;o.selectAll(),this.$clickSelection=o.getSelectionRange(),this.setState("selectAll")},n.prototype.onMouseWheel=function(i){if(!i.getAccelKey()){i.getShiftKey()&&i.wheelY&&!i.wheelX&&(i.wheelX=i.wheelY,i.wheelY=0);var o=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var s=this.$lastScroll,c=i.domEvent.timeStamp,p=c-s.t,$=p?i.wheelX/p:s.vx,v=p?i.wheelY/p:s.vy;p=1&&o.renderer.isScrollableBy(i.wheelX*i.speed,0)&&(y=!0),C<=1&&o.renderer.isScrollableBy(0,i.wheelY*i.speed)&&(y=!0),y)s.allowed=c;else if(c-s.allowedu.clientHeight;r||a.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,h,m){var g=this&&this.__extends||function(){var c=function(p,$){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,C){v.__proto__=C}||function(v,C){for(var y in C)Object.prototype.hasOwnProperty.call(C,y)&&(v[y]=C[y])},c(p,$)};return function(p,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");c(p,$);function v(){this.constructor=p}p.prototype=$===null?Object.create($):(v.prototype=$.prototype,new v)}}(),a=this&&this.__values||function(c){var p=typeof Symbol=="function"&&Symbol.iterator,$=p&&c[p],v=0;if($)return $.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&v>=c.length&&(c=void 0),{value:c&&c[v++],done:!c}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},u=e("./lib/dom");e("./lib/event");var r=e("./range").Range,f=e("./lib/scroll").preventParentScroll,l="ace_tooltip",n=function(){function c(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return c.prototype.$init=function(){return this.$element=u.createElement("div"),this.$element.className=l,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},c.prototype.getElement=function(){return this.$element||this.$init()},c.prototype.setText=function(p){this.getElement().textContent=p},c.prototype.setHtml=function(p){this.getElement().innerHTML=p},c.prototype.setPosition=function(p,$){this.getElement().style.left=p+"px",this.getElement().style.top=$+"px"},c.prototype.setClassName=function(p){u.addCssClass(this.getElement(),p)},c.prototype.setTheme=function(p){this.$element.className=l+" "+(p.isDark?"ace_dark ":"")+(p.cssClass||"")},c.prototype.show=function(p,$,v){p!=null&&this.setText(p),$!=null&&v!=null&&this.setPosition($,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},c.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=l,this.isOpen=!1)},c.prototype.getHeight=function(){return this.getElement().offsetHeight},c.prototype.getWidth=function(){return this.getElement().offsetWidth},c.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},c}(),i=function(){function c(){this.popups=[]}return c.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},c.prototype.removePopup=function(p){var $=this.popups.indexOf(p);$!==-1&&(this.popups.splice($,1),this.updatePopups())},c.prototype.updatePopups=function(){var p,$,v,C;this.popups.sort(function(T,S){return S.priority-T.priority});var y=[];try{for(var _=a(this.popups),b=_.next();!b.done;b=_.next()){var E=b.value,x=!0;try{for(var O=(v=void 0,a(y)),M=O.next();!M.done;M=O.next()){var k=M.value;if(this.doPopupsOverlap(k,E)){x=!1;break}}}catch(T){v={error:T}}finally{try{M&&!M.done&&(C=O.return)&&C.call(O)}finally{if(v)throw v.error}}x?y.push(E):E.hide()}}catch(T){p={error:T}}finally{try{b&&!b.done&&($=_.return)&&$.call(_)}finally{if(p)throw p.error}}},c.prototype.doPopupsOverlap=function(p,$){var v=p.getElement().getBoundingClientRect(),C=$.getElement().getBoundingClientRect();return v.left
");this.setHtml(S),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)},s.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},s.annotationsToSummaryString=function(c){var p,$,v=[],C=["error","warning","info"];try{for(var y=a(C),_=y.next();!_.done;_=y.next()){var b=_.value;if(!!c[b].length){var E=c[b].length===1?s.annotationLabels[b].singular:s.annotationLabels[b].plural;v.push("".concat(c[b].length," ").concat(E))}}}catch(x){p={error:x}}finally{try{_&&!_.done&&($=y.return)&&$.call(y)}finally{if(p)throw p.error}}return v.join(", ")},s}(f);h.GutterTooltip=i}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,h,m){var g=e("../lib/event"),a=e("../lib/useragent"),u=function(){function r(f,l){this.speed,this.wheelX,this.wheelY,this.domEvent=f,this.editor=l,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 r.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},r.prototype.preventDefault=function(){g.preventDefault(this.domEvent),this.defaultPrevented=!0},r.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},r.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},r.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,l=this.editor.session.documentToScreenRow(f,0),n=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return l-n},r.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var f=this.editor,l=f.getSelectionRange();if(l.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=l.contains(n.row,n.column)}return this.$inSelection},r.prototype.getButton=function(){return g.getButton(this.domEvent)},r.prototype.getShiftKey=function(){return this.domEvent.shiftKey},r.prototype.getAccelKey=function(){return a.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},r}();h.MouseEvent=u}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,h,m){var g=e("../lib/dom"),a=e("../lib/event"),u=e("../lib/useragent"),r=200,f=200,l=5;function n(o){var s=o.editor,c=g.createElement("div");c.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",c.textContent="\xA0";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(N){o[N]=this[N]},this),s.on("mousedown",this.onMouseDown.bind(o));var $=s.container,v,C,y,_,b,E,x=0,O,M,k,T,S;this.onDragStart=function(N){if(this.cancelDrag||!$.draggable){var P=this;return setTimeout(function(){P.startSelect(),P.captureMouse(N)},0),N.preventDefault()}b=s.getSelectionRange();var j=N.dataTransfer;j.effectAllowed=s.getReadOnly()?"copy":"copyMove",s.container.appendChild(c),j.setDragImage&&j.setDragImage(c,0,0),setTimeout(function(){s.container.removeChild(c)}),j.clearData(),j.setData("Text",s.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(N){if($.draggable=!1,M=!1,this.setState(null),!s.getReadOnly()){var P=N.dataTransfer.dropEffect;!O&&P=="move"&&s.session.remove(s.getSelectionRange()),s.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(N){if(!(s.getReadOnly()||!R(N.dataTransfer)))return C=N.clientX,y=N.clientY,v||A(),x++,N.dataTransfer.dropEffect=O=B(N),a.preventDefault(N)},this.onDragOver=function(N){if(!(s.getReadOnly()||!R(N.dataTransfer)))return C=N.clientX,y=N.clientY,v||(A(),x++),F!==null&&(F=null),N.dataTransfer.dropEffect=O=B(N),a.preventDefault(N)},this.onDragLeave=function(N){if(x--,x<=0&&v)return I(),O=null,a.preventDefault(N)},this.onDrop=function(N){if(!!E){var P=N.dataTransfer;if(M)switch(O){case"move":b.contains(E.row,E.column)?b={start:E,end:E}:b=s.moveText(b,E);break;case"copy":b=s.moveText(b,E,!0);break}else{var j=P.getData("Text");b={start:E,end:s.session.insert(E,j)},s.focus(),O=null}return I(),a.preventDefault(N)}},a.addListener($,"dragstart",this.onDragStart.bind(o),s),a.addListener($,"dragend",this.onDragEnd.bind(o),s),a.addListener($,"dragenter",this.onDragEnter.bind(o),s),a.addListener($,"dragover",this.onDragOver.bind(o),s),a.addListener($,"dragleave",this.onDragLeave.bind(o),s),a.addListener($,"drop",this.onDrop.bind(o),s);function w(N,P){var j=Date.now(),D=!P||N.row!=P.row,W=!P||N.column!=P.column;if(!T||D||W)s.moveCursorToPosition(N),T=j,S={x:C,y};else{var H=i(S.x,S.y,C,y);H>l?T=null:j-T>=f&&(s.renderer.scrollCursorIntoView(),T=null)}}function L(N,P){var j=Date.now(),D=s.renderer.layerConfig.lineHeight,W=s.renderer.layerConfig.characterWidth,H=s.renderer.scroller.getBoundingClientRect(),z={x:{left:C-H.left,right:H.right-C},y:{top:y-H.top,bottom:H.bottom-y}},K=Math.min(z.x.left,z.x.right),Z=Math.min(z.y.top,z.y.bottom),ie={row:N.row,column:N.column};K/W<=2&&(ie.column+=z.x.leftv){var O=f.substring(v,x-E.length);y.type==_?y.value+=O:(y.type&&$.push(y),y={type:_,value:O})}for(var M=0;MC)break;while(c&&$.test(c.type)&&!/^comment.start/.test(c.type));c=s.stepBackward()}else c=s.getCurrentToken();return v.end.row=s.getCurrentTokenRow(),v.end.column=s.getCurrentTokenColumn(),/^comment.end/.test(c.type)||(v.end.column+=c.value.length-2),v}},this.foldAll=function(n,i,o,s){o==null&&(o=1e5);var c=this.foldWidgets;if(!!c){i=i||this.getLength(),n=n||0;for(var p=n;p=n&&(p=$.end.row,$.collapseChildren=o,this.addFold("...",$))}}},this.foldToLevel=function(n){for(this.foldAll();n-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var n=this;this.foldAll(null,null,null,function(i){for(var o=n.getTokens(i),s=0;sI&&(A=S.end.row+1,S=this.$foldData[L++],I=S?S.start.row:1/0)}else{T=this.getLength();for(var w=this.$foldData,L=0;L
x&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),x=E?E.start.row:1/0),!(b>v);){var O=C[y++];if(O){this.dom.removeChildren(O),this.$renderLine(O,b,b==x?E:!1),_&&(O.style.top=this.$lines.computeLineTop(b,s,this.session)+"px");var M=s.lineHeight*this.session.getRowLength(b)+"px";O.style.height!=M&&(_=!0,O.style.height=M)}b++}if(_)for(;y0);M<0&&(M=0),k>=S&&(k=S-1)}var L=this.session.removeFullLines(M,k);L=this.$reAlignText(L,T),this.session.insert({row:M,column:0},L.join(`
+`)+`
+`),T||(O.start.column=0,O.end.column=L[L.length-1].length),this.selection.setRange(O)}else{x.forEach(function(F){_.substractPoint(F.cursor)});var q=0,A=1/0,I=b.map(function(F){var V=F.cursor,R=y.getLine(V.row),B=R.substr(V.column).search(/\S/g);return B==-1&&(B=0),V.column>q&&(q=V.column),BN?y.insert(R,l.stringRepeat(" ",B-N)):y.remove(new a(R.row,R.column,R.row,R.column-B+N)),F.start.column=F.end.column=q,F.start.row=F.end.row=R.row,F.cursor=F.end}),_.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(y,_){var b=!0,E=!0,x,O,M;return y.map(function(L){var q=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return q?x==null?(x=q[1].length,O=q[2].length,M=q[3].length,q):(x+O+M!=q[1].length+q[2].length+q[3].length&&(E=!1),x!=q[1].length&&(b=!1),x>q[1].length&&(x=q[1].length),Oq[3].length&&(M=q[3].length),q):[L]}).map(_?T:b?E?S:T:w);function k(L){return l.stringRepeat(" ",L)}function T(L){return L[2]?k(x)+L[2]+k(O-L[2].length+M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function S(L){return L[2]?k(x+O-L[2].length)+L[2]+k(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function w(L){return L[2]?k(x)+L[2]+k(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(p.prototype);function $(y,_){return y.row==_.row&&y.column==_.column}h.onSessionChange=function(y){var _=y.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var b=y.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function v(y){y.$multiselectOnSessionChange||(y.$onAddRange=y.$onAddRange.bind(y),y.$onRemoveRange=y.$onRemoveRange.bind(y),y.$onMultiSelect=y.$onMultiSelect.bind(y),y.$onSingleSelect=y.$onSingleSelect.bind(y),y.$multiselectOnSessionChange=h.onSessionChange.bind(y),y.$checkMultiselectChange=y.$checkMultiselectChange.bind(y),y.$multiselectOnSessionChange(y),y.on("changeSession",y.$multiselectOnSessionChange),y.on("mousedown",r),y.commands.addCommands(n.defaultCommands),C(y))}function C(y){if(!y.textInput)return;var _=y.textInput.getElement(),b=!1;f.addListener(_,"keydown",function(x){var O=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);y.$blockSelectEnabled&&O?b||(y.renderer.setMouseCursor("crosshair"),b=!0):b&&E()},y),f.addListener(_,"keyup",E,y),f.addListener(_,"blur",E,y);function E(x){b&&(y.renderer.setMouseCursor(""),b=!1)}}h.MultiSelect=v,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(y){v(this),y?this.on("mousedown",r):this.off("mousedown",r)},value:!0},enableBlockSelect:{set:function(y){this.$blockSelectEnabled=y},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,h,m){var g=e("../../range").Range,a=h.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(u,r,f){var l=u.getLine(f);return this.foldingStartMarker.test(l)?"start":r=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(l)?"end":""},this.getFoldWidgetRange=function(u,r,f){return null},this.indentationBlock=function(u,r,f){var l=/\S/,n=u.getLine(r),i=n.search(l);if(i!=-1){for(var o=f||n.length,s=u.getLength(),c=r,p=r;++r
c){var C=u.getLine(p).length;return new g(c,o,p,C)}}},this.openingBracketBlock=function(u,r,f,l,n){var i={row:f,column:l+1},o=u.$findClosingBracket(r,i,n);if(!!o){var s=u.foldWidgets[o.row];return s==null&&(s=u.getFoldWidget(o.row)),s=="start"&&o.row>i.row&&(o.row--,o.column=u.getLine(o.row).length),g.fromPoints(i,o)}},this.closingBracketBlock=function(u,r,f,l,n){var i={row:f,column:l},o=u.$findOpeningBracket(r,i);if(!!o)return o.column++,i.column--,g.fromPoints(o,i)}}).call(a.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(e,h,m){var g=e("../line_widgets").LineWidgets,a=e("../lib/dom"),u=e("../range").Range,r=e("../config").nls;function f(n,i,o){for(var s=0,c=n.length-1;s<=c;){var p=s+c>>1,$=o(i,n[p]);if($>0)s=p+1;else if($<0)c=p-1;else return p}return-(s+1)}function l(n,i,o){var s=n.getAnnotations().sort(u.comparePoints);if(!!s.length){var c=f(s,{row:i,column:-1},u.comparePoints);c<0&&(c=-c-1),c>=s.length?c=o>0?0:s.length-1:c===0&&o<0&&(c=s.length-1);var p=s[c];if(!(!p||!o)){if(p.row===i){do p=s[c+=o];while(p&&p.row===i);if(!p)return s.slice()}var $=[];i=p.row;do $[o<0?"unshift":"push"](p),p=s[c+=o];while(p&&p.row==i);return $.length&&$}}}h.showErrorMarker=function(n,i){var o=n.session;o.widgetManager||(o.widgetManager=new g(o),o.widgetManager.attach(n));var s=n.getCursorPosition(),c=s.row,p=o.widgetManager.getWidgetsAtRow(c).filter(function(O){return O.type=="errorMarker"})[0];p?p.destroy():c-=i;var $=l(o,c,i),v;if($){var C=$[0];s.column=(C.pos&&typeof C.column!="number"?C.pos.sc:C.column)||0,s.row=C.row,v=n.renderer.$gutterLayer.$annotations[s.row]}else{if(p)return;v={text:[r("Looks good!")],className:"ace_ok"}}n.session.unfold(s.row),n.selection.moveToPosition(s);var y={row:s.row,fixedWidth:!0,coverGutter:!0,el:a.createElement("div"),type:"errorMarker"},_=y.el.appendChild(a.createElement("div")),b=y.el.appendChild(a.createElement("div"));b.className="error_widget_arrow "+v.className;var E=n.renderer.$cursorLayer.getPixelPosition(s).left;b.style.left=E+n.renderer.gutterWidth-5+"px",y.el.className="error_widget_wrapper",_.className="error_widget "+v.className,_.innerHTML=v.text.join("
"),_.appendChild(a.createElement("div"));var x=function(O,M,k){if(M===0&&(k==="esc"||k==="return"))return y.destroy(),{command:"null"}};y.destroy=function(){n.$mouseHandler.isMousePressed||(n.keyBinding.removeKeyboardHandler(x),o.widgetManager.removeLineWidget(y),n.off("changeSelection",y.destroy),n.off("changeSession",y.destroy),n.off("mouseup",y.destroy),n.off("change",y.destroy))},n.keyBinding.addKeyboardHandler(x),n.on("changeSelection",y.destroy),n.on("changeSession",y.destroy),n.on("mouseup",y.destroy),n.on("change",y.destroy),n.session.widgetManager.addLineWidget(y),y.el.onmousedown=n.focus.bind(n),n.renderer.scrollCursorIntoView(null,.5,{bottom:y.el.offsetHeight})},a.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(e,h,m){e("./loader_build")(h);var g=e("./lib/dom"),a=e("./range").Range,u=e("./editor").Editor,r=e("./edit_session").EditSession,f=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),h.config=e("./config"),h.edit=function(n,i){if(typeof n=="string"){var o=n;if(n=document.getElementById(o),!n)throw new Error("ace.edit can't find div #"+o)}if(n&&n.env&&n.env.editor instanceof u)return n.env.editor;var s="";if(n&&/input|textarea/i.test(n.tagName)){var c=n;s=c.value,n=g.createElement("pre"),c.parentNode.replaceChild(n,c)}else n&&(s=n.textContent,n.innerHTML="");var p=h.createEditSession(s),$=new u(new l(n),p,i),v={document:p,editor:$,onResize:$.resize.bind($,null)};return c&&(v.textarea=c),$.on("destroy",function(){v.editor.container.env=null}),$.container.env=$.env=v,$},h.createEditSession=function(n,i){var o=new r(n,i);return o.setUndoManager(new f),o},h.Range=a,h.Editor=u,h.EditSession=r,h.UndoManager=f,h.VirtualRenderer=l,h.version=h.config.version}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var h=function(){return this}();!h&&typeof window!="undefined"&&(h=window),!h&&typeof self!="undefined"&&(h=self),h.ace||(h.ace=e);for(var m in e)e.hasOwnProperty(m)&&(h.ace[m]=e[m]);h.ace.default=h.ace,t&&(t.exports=h.ace)})}()})(ace$2);var ace$1=ace$2.exports,themeSqlserver={exports:{}};(function(t,d){ace.define("ace/theme/sqlserver-css",["require","exports","module"],function(e,h,m){m.exports=`.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;
+}
+
+.ace-sqlserver .ace_indent-guide-active {
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
+}
+`}),ace.define("ace/theme/sqlserver",["require","exports","module","ace/theme/sqlserver-css","ace/lib/dom"],function(e,h,m){h.isDark=!1,h.cssClass="ace-sqlserver",h.cssText=e("./sqlserver-css");var g=e("../lib/dom");g.importCssString(h.cssText,h.cssClass,!1)}),function(){ace.require(["ace/theme/sqlserver"],function(e){t&&(t.exports=e)})}()})(themeSqlserver);var modeJavascript={exports:{}};(function(t,d){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,h,m){var g=e("../lib/oop"),a=e("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},u.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};g.inherits(u,a),u.getTagRule=function(r){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},u.getStartRule=function(r){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:r}},u.getEndRule=function(r){return{token:"comment.doc",regex:"\\*\\/",next:r}},h.JsDocCommentHighlightRules=u}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,h,m){function g(){var i=l.replace("\\d","\\d\\-"),o={onMatch:function(c,p,$){var v=c.charAt(1)=="/"?2:1;return v==1?(p!=this.nextState?$.unshift(this.next,this.nextState,0):$.unshift(this.next),$[2]++):v==2&&p==this.nextState&&($[1]--,(!$[1]||$[1]<0)&&($.shift(),$.shift())),[{type:"meta.tag.punctuation."+(v==1?"":"end-")+"tag-open.xml",value:c.slice(0,v)},{type:"meta.tag.tag-name.xml",value:c.substr(v)}]},regex:"?"+i+"",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(o);var s={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[s,o,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(c,p,$){return p==$[0]&&$.shift(),c.length==2&&($[0]==this.nextState&&$[1]--,(!$[1]||$[1]<0)&&$.splice(0,2)),this.next=$[0]||"start",[{type:this.token,value:c}]},nextState:"jsx"},s,a("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:i},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},o],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:[0-9]+;)|(?:[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function a(i){return[{token:"comment",regex:/\/\*/,next:[r.getTagRule(),{token:"comment",regex:"\\*\\/",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[r.getTagRule(),{token:"comment",regex:"$|^",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var u=e("../lib/oop"),r=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,f=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",n=function(i){var o=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),s="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",c="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[r.getStartRule("doc-start"),a("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+s+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[r.getStartRule("doc-start"),a("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[a("function_arguments"),{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:c},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:c},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!i||!i.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(p,$,v){if(this.next=p=="{"?this.nextState:"",p=="{"&&v.length)v.unshift("start",$);else if(p=="}"&&v.length&&(v.shift(),this.next=v.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return p=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:c},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+l+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!i||i.jsx!=0)&&g.call(this)),this.embedRules(r,"doc-",[r.getEndRule("no_regex")]),this.normalizeRules()};u.inherits(n,f),h.JavaScriptHighlightRules=n}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,h,m){var g=e("../range").Range,a=function(){};(function(){this.checkOutdent=function(u,r){return/^\s+$/.test(u)?/^\s*\}/.test(r):!1},this.autoOutdent=function(u,r){var f=u.getLine(r),l=f.match(/^(\s*\})/);if(!l)return 0;var n=l[1].length,i=u.findMatchingBracket({row:r,column:n});if(!i||i.row==r)return 0;var o=this.$getIndent(u.getLine(i.row));u.replace(new g(r,0,r,n-1),o)},this.$getIndent=function(u){return u.match(/^\s*/)[0]}}).call(a.prototype),h.MatchingBraceOutdent=a}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,h,m){var g=e("../../lib/oop"),a=e("../../range").Range,u=e("./fold_mode").FoldMode,r=h.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};g.inherits(r,u),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,l,n){var i=f.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(f,l,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(f,l,n,i){var o=f.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(f,o,n);var s=o.match(this.foldingStartMarker);if(s){var c=s.index;if(s[1])return this.openingBracketBlock(f,s[1],n,c);var p=f.getCommentFoldRange(n,c+s[0].length,1);return p&&!p.isMultiLine()&&(i?p=this.getSectionRange(f,n):l!="all"&&(p=null)),p}if(l!=="markbegin"){var s=o.match(this.foldingStopMarker);if(s){var c=s.index+s[0].length;return s[1]?this.closingBracketBlock(f,s[1],n,c):f.getCommentFoldRange(n,c,-1)}}},this.getSectionRange=function(f,l){var n=f.getLine(l),i=n.search(/\S/),o=l,s=n.length;l+=1;for(var c=l,p=f.getLength();++l
",r.escapeHTML(i(x.snippet))].join(""))},id:"snippetCompleter"},s=[o,l,n];h.setCompleters=function(x){s.length=0,x&&s.push.apply(s,x)},h.addCompleter=function(x){s.push(x)},h.textCompleter=l,h.keyWordCompleter=n,h.snippetCompleter=o;var c={name:"expandSnippet",exec:function(x){return g.expandWithTab(x)},bindKey:"Tab"},p=function(x,O){$(O.session.$mode)},$=function(x){typeof x=="string"&&(x=u.$modes[x]),!!x&&(g.files||(g.files={}),v(x.$id,x.snippetFileId),x.modes&&x.modes.forEach($))},v=function(x,O){!O||!x||g.files[x]||(g.files[x]={},u.loadModule(O,function(M){!M||(g.files[x]=M,!M.snippets&&M.snippetText&&(M.snippets=g.parseSnippetFile(M.snippetText)),g.register(M.snippets||[],M.scope),M.includeScopes&&(g.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(k){$("ace/mode/"+k)})))}))},C=function(x){var O=x.editor,M=O.completer&&O.completer.activated;if(x.command.name==="backspace")M&&!f.getCompletionPrefix(O)&&O.completer.detach();else if(x.command.name==="insertstring"&&!M){y=x;var k=x.editor.$liveAutocompletionDelay;k?_.delay(k):b(x)}},y,_=r.delayedCall(function(){b(y)},0),b=function(x){var O=x.editor,M=f.getCompletionPrefix(O),k=f.triggerAutocomplete(O);if(M&&M.length>=O.$liveAutocompletionThreshold||k){var T=a.for(O);T.autoShown=!0,T.showPopup(O)}},E=e("../editor").Editor;e("../config").defineOptions(E.prototype,"editor",{enableBasicAutocompletion:{set:function(x){x?(this.completers||(this.completers=Array.isArray(x)?x:s),this.commands.addCommand(a.startCommand)):this.commands.removeCommand(a.startCommand)},value:!1},enableLiveAutocompletion:{set:function(x){x?(this.completers||(this.completers=Array.isArray(x)?x:s),this.commands.on("afterExec",C)):this.commands.off("afterExec",C)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(x){x?(this.commands.addCommand(c),this.on("changeMode",p),p(null,this)):(this.commands.removeCommand(c),this.off("changeMode",p))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){t&&(t.exports=e)})}()})(extLanguage_tools);const VARIANT_FORM_VERSION="3.0.10",MOCK_CASE_URL="https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/",ACE_BASE_PATH="https://ks3-cn-beijing.ksyun.com/vform2021/ace-mini",BEAUTIFIER_PATH="https://ks3-cn-beijing.ksyun.com/vform2021/js-beautify/1.14.0/beautifier.min.js";var index_vue_vue_type_style_index_0_scoped_true_lang$4="";const _sfc_main$2B={name:"CodeEditor",props:{modelValue:{type:String},readonly:{type:Boolean,default:!1},mode:{type:String,default:"javascript"},userWorker:{type:Boolean,default:!0}},emits:["update:modelValue"],mounted(){ace$1.config.set("basePath",ACE_BASE_PATH),this.addAutoCompletion(ace$1),this.aceEditor=ace$1.edit(this.$refs.ace,{maxLines:20,minLines:5,fontSize:12,theme:this.themePath,mode:this.modePath,tabSize:2,readOnly:this.readonly,highlightActiveLine:!0,value:this.codeValue}),this.aceEditor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0}),this.mode==="json"?this.setJsonMode():this.mode==="css"&&this.setCssMode(),this.userWorker||this.aceEditor.getSession().setUseWorker(!1),this.aceEditor.getSession().on("change",t=>{this.$emit("update:modelValue",this.aceEditor.getValue())})},data(){return{aceEditor:null,themePath:"ace/theme/sqlserver",modePath:"ace/mode/javascript",codeValue:this.modelValue}},watch:{},methods:{addAutoCompletion(t){let d=[{meta:"VForm API",caption:"getWidgetRef",value:"getWidgetRef()",score:1},{meta:"VForm API",caption:"getFormRef",value:"getFormRef()",score:1}];t.require("ace/ext/language_tools").addCompleter({getCompletions:function(h,m,g,a,u){return a.length===0?u(null,[]):u(null,d)}})},setJsonMode(){this.aceEditor.getSession().setMode("ace/mode/json")},setCssMode(){this.aceEditor.getSession().setMode("ace/mode/css")},getEditorAnnotations(){return this.aceEditor.getSession().getAnnotations()},setValue(t){this.aceEditor.getSession().setValue(t)}}},_hoisted_1$s={class:"ace-container"},_hoisted_2$k={class:"ace-editor",ref:"ace"};function _sfc_render$2B(t,d,e,h,m,g){return require$$0$1.openBlock(),require$$0$1.createElementBlock("div",_hoisted_1$s,[require$$0$1.createElementVNode("div",_hoisted_2$k,null,512)])}var CodeEditor=_export_sfc$1(_sfc_main$2B,[["render",_sfc_render$2B],["__scopeId","data-v-335e1214"]]);const generateCode=function(t,d="vue"){let e=JSON.stringify(t);return d==="html"?`
+
+
+
+
+
客户端文本框需设置name='files'
+ Post_Upload = '/api/Files/Upload',
+}
+
+const { apiUrl } = useGlobSetting();
+
+// 加载附件列表
+export function fun_Load(params) {
+ return defHttp.get
客户端文本框需设置name='files'
+export function fun_Upload(
+ params: UploadFileParams,
+ onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
+) {
+ return defHttp.uploadFile