import{_ as Gt,o as je,c as ot,h as Oe,bB as Wt,e as Ot,f as ft,dT as Vt,$ as kt,a as ve,w as _e,bl as nt,b as gt,bt as it,cZ as wt,F as Rt,i as $t,d as Ht,j as tt,k as pt,dU as Zt,d2 as Dt,cY as Kt,dv as jt,dV as zt,t as Xt,v as Yt,cE as Jt,p as Ut,q as Qt,s as qt,N as en,x as tn,bC as nn,bD as on}from"./index.b1722cfb.js";import{g as rn}from"./_commonjsHelpers.b273fa3f.js";import{_ as ct}from"./Input.b749fd07.js";import{a as sn,_ as an}from"./RadioGroup.404d9f06.js";import{_ as ln}from"./Scrollbar.6892e5a9.js";import{_ as cn}from"./DataTable.c75c42fc.js";import"./Suffix.691291e3.js";import"./Checkbox.e7f81254.js";import"./FocusDetector.079f1fec.js";import"./Select.442bb238.js";import"./Forward.2e136622.js";var Pt={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,Ue){(function(Ze,st){Je.exports=st()})(self,function(){return st={897:function(le,m,Z){Z.d(m,{x:function(){return Y}});var U=Z(2602),S=Z(9791),H=Z(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,S.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 T,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="",S.removeClassName)(d.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),C||((T=f.ul).style.display="block",T.clientHeight,setTimeout(function(){if(v.expandedItem===f){for(var h=0,l=0;l/gi,` `))),l.appendChild(n),h.appendChild(l)),h.onclick=function(){T.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=S,H=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[H],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,S,H,j){switch(H){case 0:break;case 1:return 6;case 2:return S.yytext=S.yytext.substr(1,S.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 Z;m.parser=Z,m.parse=Z.parse.bind(Z)},3879:function(le){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+""}),Z.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,Z.each(this.config.data,function(a,r){U(r,"children")?(d=Z.createElement("optgroup",{label:r.text}),n=Z.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+r.text+"
  • "}),Z.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&&Z.removeClass(v,"active"),Z.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(T,v){for(var C,d=[],h=T.slice(0),l=0;lf?(Z.addClass(this.container,"inverted"),this.isInverted=!0):(Z.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=Z.rect(this.tree)},P.prototype.getOptionByIndex=function(N){return this.options[N]},P.prototype.getOptionByValue=function(N){for(var A=!1,f=0,T=this.options.length;fthis.limit&&1S.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(le,U,Z){Z.r(U),Z.d(U,{showSortModal:function(){return z}});var U=Z(483),S=Z.n(U),H=Z(7907),j=Z(9791);function z(Y,C,N,A){var f=Array.isArray(C)?(0,j.getChildPaths)(C):[""],T=A&&A.path&&(0,j.contains)(f,A.path)?A.path:f[0],v=A&&A.direction||"asc",C='
    '+(0,H.Iu)("sort")+"
    "+(0,H.Iu)("sortFieldLabel")+'
    '+(0,H.Iu)("sortDirectionLabel")+'
    ';S()({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=T||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(le,S,Z){Z.r(S),Z.d(S,{showTransformModal:function(){return T}});var S=Z(483),U=Z.n(S),S=Z(3879),H=Z.n(S),j=Z(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(V,E){return Object.prototype.hasOwnProperty.call(V,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 T(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='