import{ab as At}from"./index.lP_uh0LI.js";import{_ as wt}from"./_plugin-vue_export-helper.DlAUqK2U.js";import{e as St,f as xt,s as vt,t as It}from"./vue.BxlDVA1H.js";var bt={exports:{}};/*! * jsoneditor.js * * @brief * JSONEditor is a web-based tool to view, edit, format, and validate JSON. * It has various modes such as a tree editor, a code editor, and a plain text * editor. * * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ * * @license * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. * * Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org * * @author Jos de Jong, * @version 9.10.5 * @date 2023-12-21 */(function(je,Je){(function(Ye,rt){je.exports=rt()})(self,function(){return rt={897:function(le,f,D){D.d(f,{x:function(){return Y}});var U=D(2602),k=D(9791),H=D(7907);function z(P){return(z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(P)}function j(P,N){for(var A=0;Al.top&&(C=!1),y?0:d.top-h.top);C?(y=m.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=o+y+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(h=C?l.bottom-d.bottom-10:d.top-l.top-10,this.dom.list.style.maxHeight=h+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,k.getSelection)(),this.anchor=m,setTimeout(function(){t.dom.focusButton.focus()},0),P.visibleMenu&&P.visibleMenu.hide(),P.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose)&&this.onClose(),P.visibleMenu===this&&(P.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(m){var R,y=this,C=m===this.expandedItem,d=this.expandedItem;d&&(d.ul.style.height="0",d.ul.style.padding="",setTimeout(function(){y.expandedItem!==d&&(d.ul.style.display="",k.removeClassName)(d.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),C||((R=m.ul).style.display="block",R.clientHeight,setTimeout(function(){if(y.expandedItem===m){for(var h=0,l=0;l/gi,` `))),l.appendChild(t),h.appendChild(l)),h.onclick=function(){R.onFocusLine(d)},A.appendChild(h)}),this.dom.validationErrors=y,this.dom.validationErrorsContainer.appendChild(y),this.dom.additionalErrorsIndication.title=P.length+" errors total",this.dom.validationErrorsContainer.clientHeight"u"&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),h.modes={},h.prototype.DEBOUNCE_INTERVAL=150,h.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onExpand","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription","allowSchemaSuggestions","showErrorTable"],h.prototype._create=function(l,t,o){this.container=l,this.options=t||{},this.json=o||{},l=this.options.mode||this.options.modes&&this.options.modes[0]||"tree",this.setMode(l)},h.prototype.destroy=function(){},h.prototype.set=function(l){this.json=l},h.prototype.get=function(){return this.json},h.prototype.setText=function(l){this.json=m(l)},h.prototype.getText=function(){return JSON.stringify(this.json)},h.prototype.setName=function(l){this.options||(this.options={}),this.options.name=l},h.prototype.getName=function(){return this.options&&this.options.name},h.prototype.setMode=function(l){if(l!==this.options.mode||!this.create){var t=this.container,o=P({},this.options),i=o.mode,a=(o.mode=l,h.modes[l]);if(!a)throw new Error('Unknown mode "'+o.mode+'"');var r=a.data==="text",e=this.getName(),n=this[r?"getText":"get"]();if(this.destroy(),Y(this),P(this,a.mixin),this.create(t,o),this.setName(e),this[r?"setText":"set"](n),typeof a.load=="function")try{a.load.call(this)}catch(s){console.error(s)}if(typeof o.onModeChange=="function"&&l!==i)try{o.onModeChange(l,i)}catch(s){console.error(s)}}},h.prototype.getMode=function(){return this.options.mode},h.prototype._onError=function(l){this.options&&typeof this.options.onError=="function"?this.options.onError(l):window.alert(l.toString())},h.prototype.setSchema=function(l,t){if(l){var o;try{this.options.ajv?o=this.options.ajv:((o=d({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(D(7171)),o.addMetaSchema(D(6273)))}catch{console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if(o){if(t){for(var i in t)o.removeSchema(i),t[i]&&o.addSchema(t[i],i);this.options.schemaRefs=t}this.validateSchema=o.compile(l),this.options.schema=l,this.options.schemaRefs=t,this.validate()}}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate();this.refresh(),typeof this._onSchemaChange=="function"&&this._onSchemaChange(l,t)},h.prototype.validate=function(){},h.prototype.refresh=function(){},(h.registerMode=function(l){var t;if(Array.isArray(l))for(a=0;aU[0].length)||(U=k,H=Y,this.options.flex));Y++);return U?((z=U[0].match(/\n.*/g))&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-1:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],z=this.performAction.call(this,this.yy,this,j[H],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var U=this.next();return U!==void 0?U:this.lex()},begin:function(U){this.conditionStack.push(U)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(U){this.begin(U)},options:{},performAction:function(U,k,H,z){switch(H){case 0:break;case 1:return 6;case 2:return k.yytext=k.yytext.substr(1,k.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var D;f.parser=D,f.parse=D.parse.bind(D)},3879:function(le){function f(){}f.prototype={on:function(N,A){this._events=this._events||{},this._events[N]=this._events[N]||[],this._events[N].push(A)},off:function(N,A){this._events=this._events||{},N in this._events&&this._events[N].splice(this._events[N].indexOf(A),1)},emit:function(N){if(this._events=this._events||{},N in this._events)for(var A=0;A"+r.label+""}),D.each(r.children,function(e,n){n.idx=o,t.appendChild(z.call(this,n,t)),o++},this)):(r.idx=o,z.call(this,r),o++)},this),this.config.data&&Array.isArray(this.config.data)&&(d=!(this.data=[]),t=!1,o=0,D.each(this.config.data,function(a,r){U(r,"children")?(d=D.createElement("optgroup",{label:r.text}),t=D.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+r.text+"
  • "}),D.each(r.children,function(e,n){(h=new Option(n.text,n.value,!1,n.hasOwnProperty("selected")&&n.selected===!0)).disabled=U(n,"disabled"),this.options.push(h),d.appendChild(h),h.idx=o,t.appendChild(z.call(this,h,n)),this.data[o]=n,o++},this),this.el.appendChild(d)):((h=new Option(r.text,r.value,!1,r.hasOwnProperty("selected")&&r.selected===!0)).disabled=U(r,"disabled"),this.options.push(h),h.idx=o,z.call(this,h,r),this.data[o]=r,o++)},this)),this.setSelected(!0);for(var i=this.navIndex=0;ithis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(m.top+m.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&j.call(this)):this.navIndex===0?this.tree.scrollTop=0:m.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(m.top-this.optsRect.top)),y&&D.removeClass(y,"active"),D.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}).bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(m){m.changedTouches[0].target===A.el&&A.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(m){m.target===A.el&&A.toggle()}),this.el.addEventListener("change",function(m){m.__selfTriggered||(A.el.multiple?(m=A.getSelectedProperties("idx"),m=function(R,y){for(var C,d=[],h=R.slice(0),l=0;lm?(D.addClass(this.container,"inverted"),this.isInverted=!0):(D.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=D.rect(this.tree)},P.prototype.getOptionByIndex=function(N){return this.options[N]},P.prototype.getOptionByValue=function(N){for(var A=!1,m=0,R=this.options.length;mthis.limit&&1k.EX?((0,C.addClassName)((i=this).frame,"busy"),i.dom.busyContent.innerText=o,setTimeout(function(){t(),(0,C.removeClassName)(i.frame,"busy"),i.dom.busyContent.innerText=""},100)):t()},h.validate=d.validate,h._renderErrors=d._renderErrors,[{mode:"preview",mixin:h,data:"json"}])},6210:function(le,U,D){D.r(U),D.d(U,{showSortModal:function(){return j}});var U=D(483),k=D.n(U),H=D(7907),z=D(9791);function j(Y,C,N,A){var m=Array.isArray(C)?(0,z.getChildPaths)(C):[""],R=A&&A.path&&(0,z.contains)(m,A.path)?A.path:m[0],y=A&&A.direction||"asc",C='
    '+(0,H.Iu)("sort")+"
    "+(0,H.Iu)("sortFieldLabel")+'
    '+(0,H.Iu)("sortDirectionLabel")+'
    ';k()({parent:Y,content:C,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(d){var h=d.modalElem().querySelector("form"),l=d.modalElem().querySelector("#ok"),t=d.modalElem().querySelector("#field"),o=d.modalElem().querySelector("#direction");function i(a){o.value=a,o.className="jsoneditor-button-group jsoneditor-button-group-value-"+o.value}m.forEach(function(a){var r,e=document.createElement("option");e.text=(r=a)===""?"@":r[0]==="."?r.slice(1):r,e.value=a,t.appendChild(e)}),t.value=R||m[0],i(y),o.onclick=function(a){i(a.target.getAttribute("data-value"))},l.onclick=function(a){a.preventDefault(),a.stopPropagation(),d.close(),N({path:t.value,direction:o.value})},h&&(h.onsubmit=l.onclick)}).afterClose(function(d){d.destroy()}).show()}},2558:function(le,k,D){D.r(k),D.d(k,{showTransformModal:function(){return R}});var k=D(483),U=D.n(k),k=D(3879),H=D.n(k),z=D(7907);function j(y){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(y)}function Y(y,C,d,h){if(typeof y=="boolean"||y instanceof Boolean||y===null||typeof y=="number"||y instanceof Number||typeof y=="string"||y instanceof String||y instanceof Date)return JSON.stringify(y);if(Array.isArray(y)){for(var l=y,t=C,o=d,i=h,a=t?o+t:void 0,r=t?`[ `:"[",e=0;ei)return r+"..."}return r+=t?` `+o+"]":"]"}if(y&&j(y)==="object"){var s,c=y,p=C,o=d,g=h,b=p?o+p:void 0,w=!0,E=p?`{ `:"{";if(typeof c.toJSON=="function")return Y(c.toJSON(),p,o,g);for(s in c)if(function(O,x){return Object.prototype.hasOwnProperty.call(O,x)}(c,s)){var M=c[s];if(w?w=!1:E+=p?`, `:",",(E=(E+=p?b+'"'+s+'": ':'"'+s+'":')+Y(M,p,b,g)).length>g)return E+"..."}return E+=p?` `+o+"}":"}"}}function P(y,C){for(var d="";0JMESPath query to filter, sort, or transform the JSON data.
    To learn JMESPath, go to the interactive tutorial.';function R(a){var C=a.container,d=a.json,h=a.queryDescription,h=h===void 0?m:h,l=a.createQuery,t=a.executeQuery,o=a.onTransform,i=d,a='