import{_ as Pt,o as je,c as rt,h as Oe,bB as Ht,e as Ot,f as ft,dR as Zt,$ as kt,a as we,w as $e,i as it,j as _e,k as Rt,b as gt,bv as ot,cU as wt,F as $t,l as Lt,d as Gt,m as pt,dS as Dt,cn as Kt,co as jt,du as zt,dT as Xt,y as Yt,z as Jt,cP as Ut,s as Qt,v as qt,x as en,N as tn,B as nn,bE as on,bF as rn}from"./index.0b7ff98e.js";import{g as sn}from"./_commonjsHelpers.b273fa3f.js";import{_ as ct}from"./Input.c4292283.js";import{a as an,_ as ln}from"./RadioGroup.ef853a30.js";import{_ as cn}from"./Scrollbar.caaf1afc.js";import{_ as hn}from"./DataTable.ea387090.js";import"./Suffix.f7c5b709.js";import"./Checkbox.82eb48fc.js";import"./FocusDetector.88c440c5.js";import"./Select.a7688af1.js";import"./Forward.e0f1e491.js";var Ft={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.4 * @date 2023-11-08 */(function(ze,Qe){(function(De,st){ze.exports=st()})(self,function(){return st={897:function(ae,m,D){D.d(m,{x:function(){return Y}});var U=D(2602),x=D(9791),W=D(7907);function j(P){return(j=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 z(P,N){for(var A=0;Al.top&&(C=!1),v?0:d.top-h.top);C?(v=f.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=o+v+"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,x.getSelection)(),this.anchor=f,setTimeout(function(){n.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(f){var R,v=this,C=f===this.expandedItem,d=this.expandedItem;d&&(d.ul.style.height="0",d.ul.style.padding="",setTimeout(function(){v.expandedItem!==d&&(d.ul.style.display="",x.removeClassName)(d.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),C||((R=f.ul).style.display="block",R.clientHeight,setTimeout(function(){if(v.expandedItem===f){for(var h=0,l=0;l/gi,` `))),l.appendChild(n),h.appendChild(l)),h.onclick=function(){R.onFocusLine(d)},A.appendChild(h)}),this.dom.validationErrors=v,this.dom.validationErrorsContainer.appendChild(v),this.dom.additionalErrorsIndication.title=P.length+" errors total",this.dom.validationErrorsContainer.clientHeightU[0].length)||(U=x,W=Y,this.options.flex));Y++);return U?((j=U[0].match(/\n.*/g))&&(this.yylineno+=j.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:j?j[j.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],j=this.performAction.call(this,this.yy,this,z[W],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j||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,x,W,j){switch(W){case 0:break;case 1:return 6;case 2:return x.yytext=x.yytext.substr(1,x.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;m.parser=D,m.parse=D.parse.bind(D)},3879:function(ae){function m(){}m.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,t){t.idx=o,n.appendChild(j.call(this,t,n)),o++},this)):(r.idx=o,j.call(this,r),o++)},this),this.config.data&&Array.isArray(this.config.data)&&(d=!(this.data=[]),n=!1,o=0,D.each(this.config.data,function(a,r){U(r,"children")?(d=D.createElement("optgroup",{label:r.text}),n=D.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+r.text+"
  • "}),D.each(r.children,function(e,t){(h=new Option(t.text,t.value,!1,t.hasOwnProperty("selected")&&t.selected===!0)).disabled=U(t,"disabled"),this.options.push(h),d.appendChild(h),h.idx=o,n.appendChild(j.call(this,h,t)),this.data[o]=t,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,j.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+(f.top+f.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&z.call(this)):this.navIndex===0?this.tree.scrollTop=0:f.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(f.top-this.optsRect.top)),v&&D.removeClass(v,"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(f){f.changedTouches[0].target===A.el&&A.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(f){f.target===A.el&&A.toggle()}),this.el.addEventListener("change",function(f){f.__selfTriggered||(A.el.multiple?(f=A.getSelectedProperties("idx"),f=function(R,v){for(var C,d=[],h=R.slice(0),l=0;lf?(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,f=0,R=this.options.length;fthis.limit&&1x.EX?((0,C.addClassName)((i=this).frame,"busy"),i.dom.busyContent.innerText=o,setTimeout(function(){n(),(0,C.removeClassName)(i.frame,"busy"),i.dom.busyContent.innerText=""},100)):n()},h.validate=d.validate,h._renderErrors=d._renderErrors,[{mode:"preview",mixin:h,data:"json"}])},6210:function(ae,U,D){D.r(U),D.d(U,{showSortModal:function(){return z}});var U=D(483),x=D.n(U),W=D(7907),j=D(9791);function z(Y,C,N,A){var f=Array.isArray(C)?(0,j.getChildPaths)(C):[""],R=A&&A.path&&(0,j.contains)(f,A.path)?A.path:f[0],v=A&&A.direction||"asc",C='
    '+(0,W.Iu)("sort")+"
    "+(0,W.Iu)("sortFieldLabel")+'
    '+(0,W.Iu)("sortDirectionLabel")+'
    ';x()({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"),n=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}f.forEach(function(a){var r,e=document.createElement("option");e.text=(r=a)===""?"@":r[0]==="."?r.slice(1):r,e.value=a,n.appendChild(e)}),n.value=R||f[0],i(v||"asc"),o.onclick=function(a){i(a.target.getAttribute("data-value"))},l.onclick=function(a){a.preventDefault(),a.stopPropagation(),d.close(),N({path:n.value,direction:o.value})},h&&(h.onsubmit=l.onclick)}).afterClose(function(d){d.destroy()}).show()}},2558:function(ae,x,D){D.r(x),D.d(x,{showTransformModal:function(){return R}});var x=D(483),U=D.n(x),x=D(3879),W=D.n(x),j=D(7907);function z(v){return(z=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})(v)}function Y(v,C,d,h){if(typeof v=="boolean"||v instanceof Boolean||v===null||typeof v=="number"||v instanceof Number||typeof v=="string"||v instanceof String||v instanceof Date)return JSON.stringify(v);if(Array.isArray(v)){for(var l=v,n=C,o=d,i=h,a=n?o+n:void 0,r=n?`[ `:"[",e=0;ei)return r+"..."}return r+=n?` `+o+"]":"]"}if(v&&z(v)==="object"){var s,c=v,p=C,o=d,g=h,b=p?o+p:void 0,w=!0,_=p?`{ `:"{";if(typeof c.toJSON=="function")return Y(c.toJSON(),p,o,g);for(s in c)if(function(O,E){return Object.prototype.hasOwnProperty.call(O,E)}(c,s)){var M=c[s];if(w?w=!1:_+=p?`, `:",",(_=(_+=p?b+'"'+s+'": ':'"'+s+'":')+Y(M,p,b,g)).length>g)return _+"..."}return _+=p?` `+o+"}":"}"}}function P(v,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?f:h,l=a.createQuery,n=a.executeQuery,o=a.onTransform,i=d,a='