b4.test(e)?`?.[${e}]`:JD.test(e)?`?.${e}`:`?.[${JSON.stringify(e)}]`).join("")}const JD=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,b4=/^\d+$/;function KD(){return Ld(n=>n,Bi)}function Of(n,e){const t=new Set(e),i=n.replace(/ \(copy( \d+)?\)$/,"");let r=n,s=1;for(;t.has(r);){const o="copy"+(s>1?" "+s:"");r=`${i} (${o})`,s++}return r}function js(n,e){const t="...",i=e-t.length;return n.length>e?n.substring(0,i)+t:n}function GD(n){if(n==="")return"";const e=n.toLowerCase();if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;if(e==="undefined")return;const t=Number(n),i=parseFloat(n);return!isNaN(t)&&!isNaN(i)?t:n}const QD=`
+
+ Enter a JavaScript function to filter, sort, or transform the data.
+
+`,YD={id:"javascript",name:"JavaScript",description:QD,createQuery:XD,executeQuery:ZD};function XD(n,e){const{filter:t,sort:i,projection:r}=e,s=[` return data
+`];if(t&&t.path&&t.relation&&t.value){const o=`item => item${Ko(t.path)}`,l=GD(t.value),a=typeof l=="string"?`'${t.value}'`:X7(t.value)&&!Number.isSafeInteger(l)?`${t.value}n`:t.value;s.push(` .filter(${o} ${t.relation} ${a})
+`)}if(i&&i.path&&i.direction&&(i.direction==="desc"?s.push(` .slice()
+ .sort((a, b) => {
+ // sort descending
+ const valueA = a${Ko(i.path)}
+ const valueB = b${Ko(i.path)}
+ return valueA > valueB ? -1 : valueA < valueB ? 1 : 0
+ })
+`):s.push(` .slice()
+ .sort((a, b) => {
+ // sort ascending
+ const valueA = a${Ko(i.path)}
+ const valueB = b${Ko(i.path)}
+ return valueA > valueB ? 1 : valueA < valueB ? -1 : 0
+ })
+`)),r&&r.paths)if(r.paths.length>1){const o=r.paths.map(l=>{const a=l[l.length-1]||"item",c=`item${Ko(l)}`;return` ${JSON.stringify(a)}: ${c}`});s.push(` .map(item => ({
+${o.join(`,
+`)}})
+ )
+`)}else{const o=`item${Ko(r.paths[0])}`;s.push(` .map(item => ${o})
+`)}return`function query (data) {
+${s.join("")}}`}function ZD(n,e){const i=new Function(`"use strict";
+
+`+e+`
+
+if (typeof query !== "function") {
+ throw new Error("Cannot execute query: expecting a function named 'query' but is undefined")
+}
+
+return query;
+`)()(n);return i!==void 0?i:null}var $D={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9C311.6 228.3 320 203.2 320 176c0-70.7-57.3-128-128-128S64 105.3 64 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H109c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176C16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H226.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM192 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H272v16c0 44.2-35.8 80-80 80z"]},ej={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 80c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Xc=ej,Zc={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"]},tj={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function nj(n){let e;return{c(){e=Ir("g")},m(t,i){I(t,e,i),e.innerHTML=n[0]},p(t,[i]){i&1&&(e.innerHTML=t[0])},i:le,o:le,d(t){t&&P(e)}}}function ij(n,e,t){let i=870711;function r(){return i+=1,`fa-${i.toString(16)}`}let s="",{data:o}=e;function l(a){if(!a||!a.raw)return"";let c=a.raw;const f={};return c=c.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,(u,h)=>{const d=r();return f[h]=d,` id="${d}"`}),c=c.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,(u,h,d,m)=>{const p=h||m;return!p||!f[p]?u:`#${f[p]}`}),c}return n.$$set=a=>{"data"in a&&t(1,o=a.data)},n.$$.update=()=>{n.$$.dirty&2&&t(0,s=l(o))},[s,o]}class rj extends be{constructor(e){super(),ge(this,e,ij,nj,Fe,{data:1})}}function sj(n){let e,t,i,r;const s=n[12].default,o=Ke(s,n,n[11],null);let l=[{version:"1.1"},{class:t="fa-icon "+n[0]},{width:n[1]},{height:n[2]},{"aria-label":n[9]},{role:i=n[9]?"img":"presentation"},{viewBox:n[3]},{style:n[8]},n[10]],a={};for(let c=0;c{e=ct(ct({},e),Oi(g)),t(10,r=Ta(e,i)),"class"in g&&t(0,l=g.class),"width"in g&&t(1,a=g.width),"height"in g&&t(2,c=g.height),"box"in g&&t(3,f=g.box),"spin"in g&&t(4,u=g.spin),"inverse"in g&&t(5,h=g.inverse),"pulse"in g&&t(6,d=g.pulse),"flip"in g&&t(7,m=g.flip),"style"in g&&t(8,p=g.style),"label"in g&&t(9,b=g.label),"$$scope"in g&&t(11,o=g.$$scope)},[l,a,c,f,u,h,d,m,p,b,r,o,s]}class lj extends be{constructor(e){super(),ge(this,e,oj,sj,Fe,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,style:8,label:9})}}function yy(n,e,t){const i=n.slice();return i[24]=e[t],i}function _y(n,e,t){const i=n.slice();return i[27]=e[t],i}function vy(n){let e,t=[n[27]],i={};for(let r=0;rjn(e,"data",r)),{c(){Y(e.$$.fragment)},m(o,l){G(e,o,l),i=!0},p(o,l){const a={};!t&&l&64&&(t=!0,a.data=o[6],Dn(()=>t=!1)),e.$set(a)},i(o){i||(_(e.$$.fragment,o),i=!0)},o(o){w(e.$$.fragment,o),i=!1},d(o){Q(e,o)}}}function aj(n){var f,u,h;let e,t,i,r,s=((f=n[6])==null?void 0:f.paths)||[],o=[];for(let d=0;d{c=null}),se())},i(d){r||(_(c),r=!0)},o(d){w(c),r=!1},d(d){Pt(o,d),d&&P(e),Pt(a,d),d&&P(t),c&&c.d(d),d&&P(i)}}}function cj(n){let e;const t=n[15].default,i=Ke(t,n,n[17],null),r=i||aj(n);return{c(){r&&r.c()},m(s,o){r&&r.m(s,o),e=!0},p(s,o){i?i.p&&(!e||o&131072)&&Qe(i,t,s,s[17],e?Ge(t,s[17],o,null):Ye(s[17]),null):r&&r.p&&(!e||o&64)&&r.p(s,e?o:-1)},i(s){e||(_(r,s),e=!0)},o(s){w(r,s),e=!1},d(s){r&&r.d(s)}}}function fj(n){let e,t;const i=[{label:n[5]},{width:n[7]},{height:n[8]},{box:n[10]},{style:n[9]},{spin:n[1]},{flip:n[4]},{inverse:n[2]},{pulse:n[3]},{class:n[0]},n[11]];let r={$$slots:{default:[cj]},$$scope:{ctx:n}};for(let s=0;s({d:l}))}}else e=Object.keys(n)[0],t=n[e];else return;return t}function hj(n,e,t){const i=["class","data","scale","spin","inverse","pulse","flip","label","style"];let r=Ta(e,i),{$$slots:s={},$$scope:o}=e,{class:l=""}=e,{data:a}=e,c,{scale:f=1}=e,{spin:u=!1}=e,{inverse:h=!1}=e,{pulse:d=!1}=e,{flip:m=void 0}=e,{label:p=""}=e,{style:b=""}=e,g=10,v=10,C,R;function k(){let F=1;return typeof f<"u"&&(F=Number(f)),isNaN(F)||F<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),Sy):F*Sy}function O(){return c?`0 0 ${c.width} ${c.height}`:`0 0 ${g} ${v}`}function E(){return c?Math.max(c.width,c.height)/16:1}function L(){return c?c.width/E()*k():0}function N(){return c?c.height/E()*k():0}function B(){let F="";b!==null&&(F+=b);let H=k();return H===1?F.length===0?"":F:(F!==""&&!F.endsWith(";")&&(F+="; "),`${F}font-size: ${H}em`)}function M(F){c=F,t(6,c),t(12,a),t(14,b),t(13,f)}return n.$$set=F=>{e=ct(ct({},e),Oi(F)),t(11,r=Ta(e,i)),"class"in F&&t(0,l=F.class),"data"in F&&t(12,a=F.data),"scale"in F&&t(13,f=F.scale),"spin"in F&&t(1,u=F.spin),"inverse"in F&&t(2,h=F.inverse),"pulse"in F&&t(3,d=F.pulse),"flip"in F&&t(4,m=F.flip),"label"in F&&t(5,p=F.label),"style"in F&&t(14,b=F.style),"$$scope"in F&&t(17,o=F.$$scope)},n.$$.update=()=>{n.$$.dirty&28672&&(t(6,c=uj(a)),t(7,g=L()),t(8,v=N()),t(9,C=B()),t(10,R=O()))},[l,u,h,d,m,p,c,g,v,C,R,r,a,f,b,s,M,o]}class bt extends be{constructor(e){super(),ge(this,e,hj,fj,Fe,{class:0,data:12,scale:13,spin:1,inverse:2,pulse:3,flip:4,label:5,style:14})}}function dj(n){let e,t,i,r,s,o,l;return t=new bt({props:{data:n[0]===!0?Xc:Zc}}),{c(){e=A("div"),Y(t.$$.fragment),y(e,"role","checkbox"),y(e,"tabindex","-1"),y(e,"aria-checked",i=n[0]===!0),y(e,"class","jse-boolean-toggle svelte-68vtq4"),y(e,"title",r=n[1]?`Boolean value ${n[0]}`:"Click to toggle this boolean value"),$(e,"jse-readonly",n[1])},m(a,c){I(a,e,c),G(t,e,null),s=!0,o||(l=ne(e,"mousedown",n[2]),o=!0)},p(a,[c]){const f={};c&1&&(f.data=a[0]===!0?Xc:Zc),t.$set(f),(!s||c&1&&i!==(i=a[0]===!0))&&y(e,"aria-checked",i),(!s||c&3&&r!==(r=a[1]?`Boolean value ${a[0]}`:"Click to toggle this boolean value"))&&y(e,"title",r),(!s||c&2)&&$(e,"jse-readonly",a[1])},i(a){s||(_(t.$$.fragment,a),s=!0)},o(a){w(t.$$.fragment,a),s=!1},d(a){a&&P(e),Q(t),o=!1,l()}}}function mj(n,e,t){let{path:i}=e,{value:r}=e,{readOnly:s}=e,{onPatch:o}=e,{focus:l}=e;function a(c){c.stopPropagation(),!s&&(o([{op:"replace",path:Oe(i),value:!r}]),l())}return n.$$set=c=>{"path"in c&&t(3,i=c.path),"value"in c&&t(0,r=c.value),"readOnly"in c&&t(1,s=c.readOnly),"onPatch"in c&&t(4,o=c.onPatch),"focus"in c&&t(5,l=c.focus)},[r,s,a,i,o,l]}class pj extends be{constructor(e){super(),ge(this,e,mj,dj,rt,{path:3,value:0,readOnly:1,onPatch:4,focus:5})}}const gj=pj;function bj(n){let e;return{c(){e=A("div"),y(e,"class","jse-color-picker-popup svelte-1mgcg2f")},m(t,i){I(t,e,i),n[4](e)},p:le,i:le,o:le,d(t){t&&P(e),n[4](null)}}}function yj(n,e,t){let{color:i}=e,{onChange:r}=e,{showOnTop:s}=e,o,l=()=>{};gn(async()=>{var u;const c=(u=await kS(()=>import("./vanilla-picker-2033e4d0.js"),[]))==null?void 0:u.default,f=new c({parent:o,color:i,popup:s?"top":"bottom",onDone(h){const m=h.rgba[3]===1?h.hex.substring(0,7):h.hex;r(m)}});f.show(),l=()=>{f.destroy()}}),Ki(()=>{l()});function a(c){Ue[c?"unshift":"push"](()=>{o=c,t(0,o)})}return n.$$set=c=>{"color"in c&&t(1,i=c.color),"onChange"in c&&t(2,r=c.onChange),"showOnTop"in c&&t(3,s=c.showOnTop)},[o,i,r,s,a]}class _j extends be{constructor(e){super(),ge(this,e,yj,bj,Fe,{color:1,onChange:2,showOnTop:3})}}const vj=_j;function wj(n){let e,t,i,r;return{c(){e=A("button"),y(e,"type","button"),y(e,"class","jse-color-picker-button svelte-1zzxwe"),hi(e,"background",n[2]),y(e,"title",t=n[1]?`Color ${n[0]}`:"Click to open a color picker"),$(e,"jse-readonly",n[1])},m(s,o){I(s,e,o),i||(r=ne(e,"click",n[3]),i=!0)},p(s,[o]){o&4&&hi(e,"background",s[2]),o&3&&t!==(t=s[1]?`Color ${s[0]}`:"Click to open a color picker")&&y(e,"title",t),o&2&&$(e,"jse-readonly",s[1])},i:le,o:le,d(s){s&&P(e),i=!1,r()}}}function kj(n,e,t){let i;const{openAbsolutePopup:r}=bn("absolute-popup");let{path:s}=e,{value:o}=e,{readOnly:l}=e,{onPatch:a}=e,{focus:c}=e;function f(d){a([{op:"replace",path:Oe(s),value:d}]),u()}function u(){c()}function h(d){var R;if(l)return;const m=300,p=d.target,b=p.getBoundingClientRect().top,v=(((R=$a(p))==null?void 0:R.innerHeight)??0)-bm;r(vj,{color:o,onChange:f,showOnTop:v},{anchor:p,closeOnOuterClick:!0,onClose:u,offsetTop:18,offsetLeft:-8,height:m})}return n.$$set=d=>{"path"in d&&t(4,s=d.path),"value"in d&&t(0,o=d.value),"readOnly"in d&&t(1,l=d.readOnly),"onPatch"in d&&t(5,a=d.onPatch),"focus"in d&&t(6,c=d.focus)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=kC(o))},[o,l,i,h,s,a,c]}class Sj extends be{constructor(e){super(),ge(this,e,kj,wj,rt,{path:4,value:0,readOnly:1,onPatch:5,focus:6})}}const Cj=Sj;function Aj(n,e){const t={start:n,end:Math.min(ng(n),e)},i=Math.max(Ah((n+e)/2),n),r={start:i,end:Math.min(ng(i),e)},s=Ah(e),o=s===e?s-qc:s,l={start:Math.max(o,n),end:e},a=[t],c=r.start>=t.end&&r.end<=l.start;return c&&a.push(r),l.start>=(c?r.end:t.end)&&a.push(l),a}function y4(n){const e=oD(n,i=>i.start),t=[e[0]];for(let i=0;ie>=t.start&&e{n4(i,Math.min(n.length,r),t)})}function ig(n,e,t){const i={...e.expandedMap},r={...e.visibleSectionsMap};for(let s=0;s0){const u=Ud(e,f);n0(a,u,h=>{o[c]=String(h),s(a[h])}),o.pop()}}}else if(zt(a)&&i(o)){r[Oe(o)]=!0;const f=Object.keys(a);if(f.length>0){for(const u of f)o[c]=u,s(a[u]);o.pop()}}}const o=t.slice(),l=n!==void 0?je(n,t):n;return l!==void 0&&s(l),{...e,expandedMap:r}}function Tj(n,e){return{...n,expandedMap:{...n.expandedMap,[Oe(e)]:!0}}}function _4(n,e){const t=pa(n.expandedMap,e),i=pa(n.enforceStringMap,e),r=pa(n.visibleSectionsMap,e);return{...n,expandedMap:t,enforceStringMap:i,visibleSectionsMap:r}}function v4(n,e,t){if(t){const i={...n.enforceStringMap};return i[e]=t,{...n,enforceStringMap:i}}else if(typeof n.enforceStringMap[e]=="boolean"){const i={...n.enforceStringMap};return delete i[e],{...n,enforceStringMap:i}}else return n}function Oj(n,e,t,i){return{...e,visibleSectionsMap:{...e.visibleSectionsMap,[t]:y4(Ud(e,t).concat(i))}}}function w4(n,e,t){const i=Pr(n,t),r=t.reduce((s,o)=>oC(o)?k4(i,s,o):lC(o)?S4(i,s,o):D1(o)?Ej(i,s,o):Hp(o)||Pa(o)?Rj(i,s,o):s,e);return{json:i,documentState:r}}function k4(n,e,t){const i=rs(n,t.path),r=mt(i),s=Oe(r),o=je(n,r);if(Vt(o)){const l=ri(ht(i)),a=ga(e.expandedMap,r,l,1),c=ga(e.enforceStringMap,r,l,1);let f=ga(e.visibleSectionsMap,r,l,1);return f=C4(f,s,u=>A4(u,l,1)),{...e,expandedMap:a,enforceStringMap:c,visibleSectionsMap:f}}return e}function S4(n,e,t){const i=rs(n,t.path),r=mt(i),s=Oe(r),o=je(n,r);let{expandedMap:l,enforceStringMap:a,visibleSectionsMap:c}=e;if(l=pa(l,i),a=pa(a,i),c=pa(c,i),Vt(o)){const f=ri(ht(i));l=ga(l,r,f,-1),a=ga(a,r,f,-1),c=ga(c,r,f,-1),c=C4(c,s,u=>A4(u,f,-1))}return{...e,expandedMap:l,enforceStringMap:a,visibleSectionsMap:c}}function Ej(n,e,t){const i=t.path,r=Jm(n,e.expandedMap),s=Jm(n,e.enforceStringMap),o=Jm(n,e.visibleSectionsMap);return!an(t.value)&&!Vt(t.value)&&delete r[i],Vt(t.value)||delete o[i],(an(t.value)||Vt(t.value))&&delete s[i],{...e,expandedMap:r,enforceStringMap:s,visibleSectionsMap:o}}function Rj(n,e,t){if(Pa(t)&&t.from===t.path)return e;const i=u=>t.path+u.substring(t.from.length),r=qm(Um(e.expandedMap,t.from),i),s=qm(Um(e.enforceStringMap,t.from),i),o=qm(Um(e.visibleSectionsMap,t.from),i);let l=e;Pa(t)&&(l=S4(n,l,{op:"remove",path:t.from})),l=k4(n,l,{op:"add",path:t.path,value:null});const a=Wm(l.expandedMap,r),c=Wm(l.enforceStringMap,s),f=Wm(l.visibleSectionsMap,o);return{...e,expandedMap:a,enforceStringMap:c,visibleSectionsMap:f}}function pa(n,e){const t={},i=Oe(e);return Object.keys(n).forEach(r=>{Md(r,i)||(t[r]=n[r])}),t}function Um(n,e){const t={};return Object.keys(n).forEach(i=>{Md(i,e)&&(t[i]=n[i])}),t}function Wm(n,e){return{...n,...e}}function qm(n,e){const t={};return Object.keys(n).forEach(i=>{const r=e(i);t[r]=n[i]}),t}function ga(n,e,t,i){const r=e.length,s=Oe(e),o=[];for(const a of Object.keys(n))if(Md(a,s)){const c=Br(a),f=ri(c[r]);f>=t&&(c[r]=String(f+i),o.push({oldPointer:a,newPointer:Oe(c),value:n[a]}))}if(o.length===0)return n;const l={...n};return o.forEach(a=>{delete l[a.oldPointer]}),o.forEach(a=>{l[a.newPointer]=a.value}),l}function Jm(n,e){const t={};return Object.keys(e).filter(i=>ar(n,rs(n,i))).forEach(i=>{t[i]=e[i]}),t}function C4(n,e,t){const i=n[e];if(e in n){const r=t(i);if(!dt(i,r)){const s={...n};return r===void 0?delete s[e]:s[e]=r,s}}return n}function A4(n,e,t){const i=n.map(r=>({start:r.start>e?r.start+t:r.start,end:r.end>e?r.end+t:r.end}));return Pj(i)}function Pj(n){const e=n.slice(0);let t=1;for(;t{i(r[a],s.concat(String(a)))})}an(r)&&Object.keys(r).forEach(l=>{i(r[l],s.concat(l))})}}return i(n,[]),t}function M4(n,e,t=!0){const i=[];function r(s,o){i.push({path:o,type:Mr.value});const l=Oe(o);if(s&&e.expandedMap[l]===!0){if(t&&i.push({path:o,type:Mr.inside}),Vt(s)){const a=Ud(e,l);n0(s,a,c=>{const f=o.concat(String(c));r(s[c],f),t&&i.push({path:f,type:Mr.after})})}an(s)&&Object.keys(s).forEach(c=>{const f=o.concat(c);i.push({path:f,type:Mr.key}),r(s[c],f),t&&i.push({path:f,type:Mr.after})})}}return r(n,[]),i}function Ij(n,e,t){const i=i0(n,e),r=i.map(Oe),s=Oe(t),o=r.indexOf(s);return o!==-1&&o>0?i[o-1]:null}function rg(n,e,t){const i=i0(n,e),s=i.map(Oe).indexOf(Oe(t));return s!==-1&&s{t.push(i)}),t}function Bj(n,e,t){if(!e)return;const i=pl(e),r=He(e);if(dt(i,r))return t(i);{if(n===void 0)return;const s=E4(i,r);if(i.length===s.length||r.length===s.length)return t(s);const o=mi(i,r),l=xs(n,o),a=Lo(n,o),c=Ns(n,o,l),f=Ns(n,o,a);if(c===-1||f===-1)return;const u=je(n,s);if(an(u)){const h=Object.keys(u);for(let d=c;d<=f;d++){const m=t(s.concat(h[d]));if(m!==void 0)return m}return}if(Vt(u)){for(let h=c;h<=f;h++){const d=t(s.concat(String(h)));if(d!==void 0)return d}return}}throw new Error("Failed to create selection")}function T4(n){return kn(n)?n.path:mt(He(n))}function xs(n,e){if(!It(e))return e.path;const t=Ns(n,e,e.anchorPath);return Ns(n,e,e.focusPath)t?e.focusPath:e.anchorPath}function Dj(n,e){return Mo(He(n),e)&&(He(n).length>e.length||kn(n))}function Ay(n,e,t=!1){const i=e.selection;if(!i)return null;const r=t?He(i):xs(n,i),s=Ij(n,e,r);if(t)return kn(i)||Pi(i)?s!==null?mi(r,r):null:s!==null?mi(pl(i),s):null;if(Pi(i)||kn(i))return at(r,!1);if(pn(i)){if(s==null||s.length===0)return null;const o=mt(s),l=je(n,o);return Array.isArray(l)||St(s)?at(s,!1):cr(s,!1)}return _t(i),s!==null?at(s,!1):null}function jj(n,e,t=!1){const i=e.selection;if(!i)return null;const r=t?He(i):Lo(n,i),s=on(je(n,r))?_4(e,r):e,o=rg(n,e,r),l=rg(n,s,r);if(t)return kn(i)?o!==null?mi(o,o):null:Pi(i)?l!==null?mi(l,l):null:l!==null?mi(pl(i),l):null;if(Pi(i))return l!==null?at(l,!1):null;if(kn(i)||_t(i))return o!==null?at(o,!1):null;if(pn(i)){if(o===null||o.length===0)return null;const a=mt(o),c=je(n,a);return Array.isArray(c)?at(o,!1):cr(o,!1)}return It(i)?l!==null?at(l,!1):o!==null?at(o,!1):null:null}function Lj(n,e,t){const i=mt(t),r=[ht(t)],s=je(n,i),o=s?rg(s,e,r):void 0;return o?at(i.concat(o),!1):zs(t)}function O4(n,e,t){const i=e.selection;if(!i)return{caret:null,previous:null,next:null};const r=M4(n,e,t),s=r.findIndex(o=>dt(o.path,He(i))&&String(o.type)===String(i.type));return{caret:s!==-1?r[s]:null,previous:s!==-1&&s>0?r[s-1]:null,next:s!==-1&&st[i].length;)i++;const r=t[i];return r===void 0||r.length===0||Array.isArray(je(n,mt(r)))?at(r,!1):cr(r,!1)}function xa(n,e){if(e.length===1){const i=Is(e);if(i.op==="replace"){const r=rs(n,i.path);return at(r,!1)}}if(!St(e)&&e.every(i=>i.op==="move")){const i=Is(e),r=e.slice(1);if((Hp(i)||Pa(i))&&i.from!==i.path&&r.every(s=>(Hp(s)||Pa(s))&&s.from===s.path)){const s=rs(n,i.path);return cr(s,!1)}}const t=e.filter(i=>i.op!=="test"&&i.op!=="remove"&&(i.op!=="move"||i.from!==i.path)&&typeof i.path=="string").map(i=>rs(n,i.path));return St(t)?null:{type:Ft.multi,anchorPath:Is(t),focusPath:ht(t)}}function E4(n,e){let t=0;for(;tt.length&&e.length>t.length;return{type:Ft.multi,anchorPath:i?t.concat(n[t.length]):t,focusPath:i?t.concat(e[t.length]):t}}function R4(n,e,t,i){if(pn(e))return String(ht(e.path));if(_t(e)){const r=je(n,e.path);return typeof r=="string"?r:i.stringify(r,null,t)??null}if(It(e)){if(St(e.focusPath))return i.stringify(n,null,t)??null;const r=T4(e),s=je(n,r);if(Array.isArray(s))if(Wd(e)){const o=je(n,e.focusPath);return i.stringify(o,null,t)??null}else return Ao(n,e).map(o=>{const l=je(n,o);return`${i.stringify(l,null,t)},`}).join(`
+`);else return Ao(n,e).map(o=>{const l=ht(o),a=je(n,o);return`${i.stringify(l)}: ${i.stringify(a,null,t)},`}).join(`
+`)}return null}function bi(n){return(pn(n)||_t(n))&&n.edit===!0}function zj(n,e,t=!0){return!e&&!t?n:{...n,selection:e}}function Vj(){return at([],!1)}function ec(n){return pn(n)||_t(n)||It(n)}function Ju(n){return pn(n)||_t(n)||Wd(n)}function s0(n){switch(n.type){case Mr.key:return cr(n.path,!1);case Mr.value:return at(n.path,!1);case Mr.after:return zs(n.path);case Mr.inside:return Fs(n.path)}}function Ty(n,e,t){switch(e){case Ft.key:return cr(t,!1);case Ft.value:return at(t,!1);case Ft.after:return zs(t);case Ft.inside:return Fs(t);case Ft.multi:case Ft.text:return mi(t,t)}}function Oy(n,e,t){if(!e)return null;if(ef(n,e,t))return e;const i=It(e)?mt(e.focusPath):e.path;return Mo(i,t)?e:null}function ef(n,e,t){if(n===void 0||!e)return!1;if(pn(e)||kn(e)||Pi(e))return dt(e.path,t);if(_t(e))return Mo(t,e.path);if(It(e)){const i=xs(n,e),r=Lo(n,e),s=mt(e.focusPath);if(!Mo(t,s)||t.length<=s.length)return!1;const o=Ns(n,e,i),l=Ns(n,e,r),a=Ns(n,e,t);return a!==-1&&a>=o&&a<=l}return!1}function Ns(n,e,t){const i=mt(e.focusPath);if(!Mo(t,i)||t.length<=i.length)return-1;const r=t[i.length],s=je(n,i);if(an(s))return Object.keys(s).indexOf(r);if(Vt(s)){const o=ri(r);if(o""}=e,u,h,d=!1;gn(()=>{i("onMount",{value:r}),p(r),u&&(h4(u),t(1,u.refresh=b,u),t(1,u.cancel=g,u))}),Ki(()=>{const O=m();i("onDestroy",{closed:d,value:r,newValue:O}),!d&&O!==r&&o(O,_o.no)});function m(){return u?RD(u.innerText):""}function p(O){u&&t(1,u.innerText=ml(O),u)}function b(){const O=m();O===""&&p(""),t(2,h=f(O))}function g(){d=!0,l()}function v(O){O.stopPropagation();const E=jo(O);if(E==="Escape"&&g(),E==="Enter"||E==="Tab"){d=!0;const L=m();o(L,_o.nextInside)}E==="Ctrl+F"&&(O.preventDefault(),a(!1)),E==="Ctrl+H"&&(O.preventDefault(),a(!0))}function C(O){if(O.stopPropagation(),!c||!O.clipboardData)return;const E=O.clipboardData.getData("text/plain");c(E)}function R(){const O=document.hasFocus(),E=m();i("handleBlur",{hasFocus:O,closed:d,value:r,newValue:E}),document.hasFocus()&&!d&&(d=!0,E!==r&&o(E,_o.self))}function k(O){Ue[O?"unshift":"push"](()=>{u=O,t(1,u)})}return n.$$set=O=>{"value"in O&&t(7,r=O.value),"shortText"in O&&t(0,s=O.shortText),"onChange"in O&&t(8,o=O.onChange),"onCancel"in O&&t(9,l=O.onCancel),"onFind"in O&&t(10,a=O.onFind),"onPaste"in O&&t(11,c=O.onPaste),"onValueClass"in O&&t(12,f=O.onValueClass)},n.$$.update=()=>{n.$$.dirty&4224&&t(2,h=f(r))},[s,u,h,b,v,C,R,r,o,l,a,c,f,k]}class Wj extends be{constructor(e){super(),ge(this,e,Uj,Hj,rt,{value:7,shortText:0,onChange:8,onCancel:9,onFind:10,onPaste:11,onValueClass:12})}}const P4=Wj;function qj(n){let e,t;return e=new P4({props:{value:n[1].escapeValue(n[0]),onChange:n[3],onCancel:n[4],onPaste:n[5],onFind:n[2],onValueClass:n[6]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,[r]){const s={};r&3&&(s.value=i[1].escapeValue(i[0])),r&4&&(s.onFind=i[2]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function Jj(n,e,t){let{path:i}=e,{value:r}=e,{parser:s}=e,{normalization:o}=e,{enforceString:l}=e,{onPatch:a}=e,{onPasteJson:c}=e,{onSelect:f}=e,{onFind:u}=e,{focus:h}=e,{findNextInside:d}=e;function m(C){return l?C:Qa(C,s)}function p(C,R){a([{op:"replace",path:Oe(i),value:m(o.unescapeValue(C))}],(k,O)=>{if(O.selection&&!dt(i,He(O.selection)))return;const E=R===_o.nextInside?d(i):at(i,!1);return{state:{...O,selection:E}}}),h()}function b(){f(at(i,!1)),h()}function g(C){try{const R=s.parse(C);on(R)&&c({path:i,contents:R})}catch{}}function v(C){return sg(m(o.unescapeValue(C)),s)}return n.$$set=C=>{"path"in C&&t(7,i=C.path),"value"in C&&t(0,r=C.value),"parser"in C&&t(8,s=C.parser),"normalization"in C&&t(1,o=C.normalization),"enforceString"in C&&t(9,l=C.enforceString),"onPatch"in C&&t(10,a=C.onPatch),"onPasteJson"in C&&t(11,c=C.onPasteJson),"onSelect"in C&&t(12,f=C.onSelect),"onFind"in C&&t(2,u=C.onFind),"focus"in C&&t(13,h=C.focus),"findNextInside"in C&&t(14,d=C.findNextInside)},[r,o,u,p,b,g,v,i,s,l,a,c,f,h,d]}class Kj extends be{constructor(e){super(),ge(this,e,Jj,qj,rt,{path:7,value:0,parser:8,normalization:1,enforceString:9,onPatch:10,onPasteJson:11,onSelect:12,onFind:2,focus:13,findNextInside:14})}}const Gj=Kj;function sa(n,e,t){const i=mt(e),r=je(n,i);if(Vt(r)){const s=ri(ht(e));return t.map((o,l)=>({op:"add",path:Oe(i.concat(String(s+l))),value:o.value}))}else if(an(r)){const s=ht(e),o=Object.keys(r),l=s!==void 0?Ef(o,s,!0):[];return[...t.map(a=>{const c=Of(a.key,o);return{op:"add",path:Oe(i.concat(c)),value:a.value}}),...l.map(a=>gl(i,a))]}else throw new Error("Cannot create insert operations: parent must be an Object or Array")}function og(n,e,t){const i=je(n,e);if(Array.isArray(i)){const r=i.length;return t.map((s,o)=>({op:"add",path:Oe(e.concat(String(r+o))),value:s.value}))}else return t.map(r=>{const s=Of(r.key,Object.keys(i));return{op:"add",path:Oe(e.concat(s)),value:r.value}})}function Rf(n,e,t,i){const r=e.filter(l=>l!==t),s=Of(i,r),o=Ef(e,t,!1);return[{op:"move",from:Oe(n.concat(t)),path:Oe(n.concat(s))},...o.map(l=>gl(n,l))]}function Qj(n,e,t){const i=Is(e),r=mt(i),s=je(n,r);if(Vt(s)){const o=Is(e),l=o?ri(ht(o)):0;return[...Oh(e),...t.map((a,c)=>({op:"add",path:Oe(r.concat(String(c+l))),value:a.value}))]}else if(an(s)){const o=ht(e),l=mt(o),a=ht(o),c=Object.keys(s),f=a!==void 0?Ef(c,a,!1):[],u=new Set(e.map(d=>ht(d))),h=c.filter(d=>!u.has(d));return[...Oh(e),...t.map(d=>{const m=Of(d.key,h);return{op:"add",path:Oe(l.concat(m)),value:d.value}}),...f.map(d=>gl(l,d))]}else throw new Error("Cannot create replace operations: parent must be an Object or Array")}function I4(n,e){const t=ht(e);if(St(t))throw new Error("Cannot duplicate root object");const i=mt(t),r=ht(t),s=je(n,i);if(Vt(s)){const o=ht(e),l=o?ri(ht(o))+1:0;return[...e.map((a,c)=>({op:"copy",from:Oe(a),path:Oe(i.concat(String(c+l)))}))]}else if(an(s)){const o=Object.keys(s),l=r!==void 0?Ef(o,r,!1):[];return[...e.map(a=>{const c=ht(a),f=Of(c,o);return{op:"copy",from:Oe(a),path:Oe(i.concat(f))}}),...l.map(a=>gl(i,a))]}else throw new Error("Cannot create duplicate operations: parent must be an Object or Array")}function Yj(n,e){if(_t(e))return[{op:"move",from:Oe(e.path),path:""}];if(It(e)){const t=mt(e.focusPath),i=je(n,t);if(Vt(i))return[{op:"replace",path:"",value:Ao(n,e).map(s=>{const o=ri(ht(s));return i[o]})}];if(an(i)){const r={};return Ao(n,e).forEach(s=>{const o=String(ht(s));r[o]=i[o]}),[{op:"replace",path:"",value:r}]}}else throw new Error("Cannot create extract operations: parent must be an Object or Array");throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(e))}function N4(n,e,t,i){if(pn(e)){const r=i4(t,i),s=mt(e.path),o=je(n,s),l=Object.keys(o),a=ht(e.path);return Rf(s,l,a,typeof r=="string"?r:t)}if(_t(e)||It(e)&&St(e.focusPath))try{return[{op:"replace",path:Oe(He(e)),value:Hd(t,r=>Mf(r,i))}]}catch{return[{op:"replace",path:Oe(He(e)),value:t}]}if(It(e)){const r=Km(t,i);return Qj(n,Ao(n,e),r)}if(Pi(e)){const r=Km(t,i),s=e.path,o=mt(s),l=je(n,o);if(Vt(l)){const a=ri(ht(s)),c=o.concat(String(a+1));return sa(n,c,r)}else if(an(l)){const a=String(ht(s)),c=Object.keys(l);if(St(c)||ht(c)===a)return og(n,o,r);{const f=c.indexOf(a),u=c[f+1],h=o.concat(u);return sa(n,h,r)}}else throw new Error("Cannot create insert operations: parent must be an Object or Array")}if(kn(e)){const r=Km(t,i),s=e.path,o=je(n,s);if(Vt(o)){const l=s.concat("0");return sa(n,l,r)}else if(an(o)){const l=Object.keys(o);if(St(l))return og(n,s,r);{const a=Is(l),c=s.concat(a);return sa(n,c,r)}}else throw new Error("Cannot create insert operations: parent must be an Object or Array")}throw new Error("Cannot insert: unsupported type of selection "+JSON.stringify(e))}function Xj(n,e,t){if(!e)return[];const i="beforePath"in t?t.beforePath:void 0,r="append"in t?t.append:void 0,s=mt(He(e)),o=je(n,s);if(!r&&!(i&&Mo(i,s)&&i.length>s.length))return[];const l=xs(n,e),a=Lo(n,e),c=ht(l),f=ht(a),u=i?i[s.length]:void 0;if(an(o)){const h=Object.keys(o),d=h.indexOf(c),m=h.indexOf(f),p=r?h.length:u!==void 0?h.indexOf(u):-1;if(d!==-1&&m!==-1&&p!==-1)return p>d?[...h.slice(d,m+1),...h.slice(p,h.length)].map(b=>gl(s,b)):[...h.slice(p,d),...h.slice(m+1,h.length)].map(b=>gl(s,b))}else if(Vt(o)){const h=ri(c),d=ri(f),m=u!==void 0?ri(u):o.length,p=d-h+1;return m({op:"move",from:Oe(s.concat(String(h+b))),path:Oe(s.concat(String(m+b)))})):ly(p,()=>({op:"move",from:Oe(s.concat(String(h))),path:Oe(s.concat(String(m)))}))}else throw new Error("Cannot create move operations: parent must be an Object or Array");return[]}function Zj(n,e,t){if(t==="object")return{};if(t==="array")return[];if(t==="structure"&&n!==void 0){const i=e?T4(e):[],r=je(n,i);if(Array.isArray(r)&&!St(r)){const s=Is(r);return on(s)?EN(s,o=>Array.isArray(o)?[]:zt(o)?void 0:""):""}}return""}function Oh(n){return n.map(e=>({op:"remove",path:Oe(e)})).reverse()}function gl(n,e){return{op:"move",from:Oe(n.concat(e)),path:Oe(n.concat(e))}}function Km(n,e){const t=/^\s*{/.test(n),i=/^\s*\[/.test(n),r=i4(n,e),s=r!==void 0?r:Hd(n,o=>Mf(o,e));return t&&zt(s)||i&&Array.isArray(s)?[{key:"New item",value:s}]:Array.isArray(s)?s.map((o,l)=>({key:"New item "+l,value:o})):zt(s)?Object.keys(s).map(o=>({key:o,value:s[o]})):[{key:"New item",value:s}]}function B4(n,e){if(pn(e)){const t=mt(e.path),i=je(n,t),r=Object.keys(i),s=ht(e.path),l=Rf(t,r,s,""),a=xa(n,l);return{operations:l,newSelection:a}}if(_t(e))return{operations:[{op:"replace",path:Oe(e.path),value:""}],newSelection:e};if(It(e)){const t=Ao(n,e),i=Oh(t),r=ht(t);if(St(r)){const l=[{op:"replace",path:"",value:""}],a=at([],!1);return{operations:l,newSelection:a}}const s=mt(r),o=je(n,s);if(Vt(o)){const l=Is(t),a=ri(ht(l)),c=a===0?Fs(s):zs(s.concat(String(a-1)));return{operations:i,newSelection:c}}else if(an(o)){const l=Object.keys(o),a=Is(t),c=ht(a),f=l.indexOf(c),u=l[f-1],h=f===0?Fs(s):zs(s.concat(u));return{operations:i,newSelection:h}}else throw new Error("Cannot create remove operations: parent must be an Object or Array")}throw new Error("Cannot remove: unsupported type of selection "+JSON.stringify(e))}function D4(n,e){return hC(n,e,{before:(t,i,r)=>{if(lC(i)){const s=Br(i.path);return{revertOperations:[...r,...Ey(t,s)]}}if(Pa(i)){const s=Br(i.from);return{revertOperations:[...r,...Ey(t,s)]}}return{document:t}}})}function Ey(n,e){const t=mt(e),i=ht(e),r=je(n,t);if(an(r)){const s=Object.keys(r);return Ef(s,i,!1).map(l=>gl(t,l))}return[]}function $j(n,e){return n.flatMap(t=>{if(D1(t)){const i=Br(t.path);if(i.length>0){const r=[t];let s=mt(i);for(;s.length>0&&!ar(e,s);)r.unshift({op:"add",path:Oe(s),value:{}}),s=mt(s);return r}}return t})}function eL(n,e,t){const i=t!=null&&t.activeItem?Iy(t.activeItem):void 0,r=e.findIndex(a=>dt(i,Iy(a))),s=r!==-1?r:(t==null?void 0:t.activeIndex)!==void 0&&(t==null?void 0:t.activeIndex)0?0:-1,o=e.map((a,c)=>({...a,active:c===s})),l=o[s];return{items:o,itemsMap:Vd(o,a=>Oe(a.path)),activeItem:l,activeIndex:s}}function tL(n){const e=n.activeIndex0?0:-1,t=n.items[e],i=n.items.map((r,s)=>({...r,active:s===e}));return{...n,items:i,itemsMap:Vd(i,r=>Oe(r.path)),activeItem:t,activeIndex:e}}function nL(n){const e=n.activeIndex>0?n.activeIndex-1:n.items.length-1,t=n.items[e],i=n.items.map((r,s)=>({...r,active:s===e}));return{...n,items:i,itemsMap:Vd(i,r=>Oe(r.path)),activeItem:t,activeIndex:e}}function j4(n,e,t=1/0){const i=[],r=[];function s(l){i.length=t)return;r.pop()}else if(an(a)){const c=Object.keys(a),f=r.length;r.push("");for(const u of c)if(r[f]=u,Ry(u,l,r,Rr.key,s),o(l,a[u]),i.length>=t)return;r.pop()}else Ry(String(a),l,r,Rr.value,s)}if(typeof n=="string"&&n!==""){const l=n.toLowerCase();o(l,e)}return i}function Ry(n,e,t,i,r){const s=n.toLowerCase();let o=0,l=-1,a=-1;do a=s.indexOf(e,l),a!==-1&&(l=a+e.length,r({path:t.slice(0),field:i,fieldIndex:o,start:a,end:l}),o++);while(a!==-1)}function lg(n,e,t,i){return n.substring(0,t)+e+n.substring(i)}function Py(n,e,t){let i=n;return DB(t,r=>{i=lg(i,e,r.start,r.end)}),i}function iL(n,e,t,i,r){const{field:s,path:o,start:l,end:a}=i;if(s===Rr.key){const c=mt(o),f=je(n,c),u=ht(o),h=Object.keys(f),d=lg(u,t,l,a),m=Rf(c,h,u,d);return{newSelection:xa(n,m),operations:m}}else if(s===Rr.value){const c=je(n,o);if(c===void 0)throw new Error(`Cannot replace: path not found ${Oe(o)}`);const f=typeof c=="string"?c:String(c),u=Oe(o),h=Ls(c,e.enforceStringMap,u,r),d=lg(f,t,l,a),m=[{op:"replace",path:Oe(o),value:h?d:Qa(d,r)}];return{newSelection:xa(n,m),operations:m}}else throw new Error(`Cannot replace: unknown type of search result field ${s}`)}function rL(n,e,t,i,r){const s=j4(t,n,1/0),o=[];for(let c=0;cc.field!==f.field?c.field===Rr.key?1:-1:f.path.length-c.path.length);let l=[],a=null;return o.forEach(c=>{const{field:f,path:u,items:h}=c;if(f===Rr.key){const d=mt(u),m=je(n,d),p=ht(u),b=Object.keys(m),g=Py(p,i,h),v=Rf(d,b,p,g);l=l.concat(v),a=xa(n,v)}else if(f===Rr.value){const d=je(n,u);if(d===void 0)throw new Error(`Cannot replace: path not found ${Oe(u)}`);const m=typeof d=="string"?d:String(d),p=Oe(u),b=Ls(d,e.enforceStringMap,p,r),g=Py(m,i,h),v=[{op:"replace",path:Oe(u),value:b?g:Qa(g,r)}];l=l.concat(v),a=xa(n,v)}else throw new Error(`Cannot replace: unknown type of search result field ${f}`)}),{operations:l,newSelection:a}}function sL(n,e){const t=[];let i=0;for(const s of e){const o=n.slice(i,s.start);o!==""&&t.push({type:"normal",text:o,active:!1});const l=n.slice(s.start,s.end);t.push({type:"highlight",text:l,active:s.active}),i=s.end}const r=ht(e);return r&&r.endr.field===Rr.key);if(!(!t||t.length===0))return t}function Ny(n,e){var i;const t=(i=n==null?void 0:n[e])==null?void 0:i.filter(r=>r.field===Rr.value);if(!(!t||t.length===0))return t}function By(n,e,t){const i=n.slice();return i[3]=e[t],i}function lL(n){let e,t=ml(n[3].text)+"",i;return{c(){e=A("span"),i=me(t),y(e,"class","jse-highlight svelte-1c35ovg"),$(e,"jse-active",n[3].active)},m(r,s){I(r,e,s),S(e,i)},p(r,s){s&1&&t!==(t=ml(r[3].text)+"")&&Te(i,t),s&1&&$(e,"jse-active",r[3].active)},d(r){r&&P(e)}}}function aL(n){let e=n[3].text+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&1&&e!==(e=i[3].text+"")&&Te(t,e)},d(i){i&&P(t)}}}function Dy(n){let e;function t(s,o){return s[3].type==="normal"?aL:lL}let i=t(n),r=i(n);return{c(){r.c(),e=Pe()},m(s,o){r.m(s,o),I(s,e,o)},p(s,o){i===(i=t(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&P(e)}}}function cL(n){let e,t=n[0],i=[];for(let r=0;r{"text"in o&&t(1,r=o.text),"searchResultItems"in o&&t(2,s=o.searchResultItems)},n.$$.update=()=>{n.$$.dirty&6&&t(0,i=sL(String(r),s))},[i,r,s]}class uL extends be{constructor(e){super(),ge(this,e,fL,cL,Fe,{text:1,searchResultItems:2})}}const L4=uL;function hL(n){let e=ml(n[1].escapeValue(n[0]))+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&3&&e!==(e=ml(i[1].escapeValue(i[0]))+"")&&Te(t,e)},i:le,o:le,d(i){i&&P(t)}}}function dL(n){let e,t;return e=new L4({props:{text:n[1].escapeValue(n[0]),searchResultItems:n[3]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&3&&(s.text=i[1].escapeValue(i[0])),r&8&&(s.searchResultItems=i[3]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function mL(n){let e,t,i,r,s,o,l,a;const c=[dL,hL],f=[];function u(h,d){return h[3]?0:1}return t=u(n),i=f[t]=c[t](n),{c(){e=A("div"),i.c(),y(e,"role","button"),y(e,"tabindex","-1"),y(e,"data-type","selectable-value"),y(e,"class",r=en(sg(n[0],n[2]))+" svelte-1ypq969"),y(e,"title",s=n[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null)},m(h,d){I(h,e,d),f[t].m(e,null),o=!0,l||(a=[ne(e,"click",n[5]),ne(e,"dblclick",n[6])],l=!0)},p(h,[d]){let m=t;t=u(h),t===m?f[t].p(h,d):(re(),w(f[m],1,1,()=>{f[m]=null}),se(),i=f[t],i?i.p(h,d):(i=f[t]=c[t](h),i.c()),_(i,1),i.m(e,null)),(!o||d&5&&r!==(r=en(sg(h[0],h[2]))+" svelte-1ypq969"))&&y(e,"class",r),(!o||d&16&&s!==(s=h[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null))&&y(e,"title",s)},i(h){o||(_(i),o=!0)},o(h){w(i),o=!1},d(h){h&&P(e),f[t].d(),l=!1,ft(a)}}}function pL(n,e,t){let i,{path:r}=e,{value:s}=e,{readOnly:o}=e,{normalization:l}=e,{parser:a}=e,{onSelect:c}=e,{searchResultItems:f}=e;function u(d){typeof s=="string"&&i&&d.ctrlKey&&(d.preventDefault(),d.stopPropagation(),window.open(s,"_blank"))}function h(d){o||(d.preventDefault(),c(at(r,!0)))}return n.$$set=d=>{"path"in d&&t(7,r=d.path),"value"in d&&t(0,s=d.value),"readOnly"in d&&t(8,o=d.readOnly),"normalization"in d&&t(1,l=d.normalization),"parser"in d&&t(2,a=d.parser),"onSelect"in d&&t(9,c=d.onSelect),"searchResultItems"in d&&t(3,f=d.searchResultItems)},n.$$.update=()=>{n.$$.dirty&1&&t(4,i=Od(s))},[s,l,a,f,i,u,h,r,o,c]}class gL extends be{constructor(e){super(),ge(this,e,pL,mL,rt,{path:7,value:0,readOnly:8,normalization:1,parser:2,onSelect:9,searchResultItems:3})}}const bL=gL;function yL(n){let e,t;return{c(){e=A("div"),t=me(n[0]),y(e,"class","jse-tooltip svelte-1sftg37")},m(i,r){I(i,e,r),S(e,t)},p(i,[r]){r&1&&Te(t,i[0])},i:le,o:le,d(i){i&&P(e)}}}function _L(n,e,t){let{text:i}=e;return n.$$set=r=>{"text"in r&&t(0,i=r.text)},[i]}class vL extends be{constructor(e){super(),ge(this,e,_L,yL,Fe,{text:0})}}const wL=vL;function o0(n,{text:e,openAbsolutePopup:t,closeAbsolutePopup:i}){let r;function s(){r=t(wL,{text:e},{position:"top",width:10*e.length,offsetTop:3,anchor:n,closeOnOuterClick:!0})}function o(){i(r)}return n.addEventListener("mouseenter",s),n.addEventListener("mouseleave",o),{destroy(){n.removeEventListener("mouseenter",s),n.removeEventListener("mouseleave",o)}}}function kL(n){let e,t,i,r,s,o;return t=new bt({props:{data:tj}}),{c(){e=A("div"),Y(t.$$.fragment),y(e,"class","jse-timestamp svelte-1sqrs1u")},m(l,a){I(l,e,a),G(t,e,null),r=!0,s||(o=Sn(i=o0.call(null,e,{text:n[0],...n[1]})),s=!0)},p(l,[a]){i&&wn(i.update)&&a&1&&i.update.call(null,{text:l[0],...l[1]})},i(l){r||(_(t.$$.fragment,l),r=!0)},o(l){w(t.$$.fragment,l),r=!1},d(l){l&&P(e),Q(t),s=!1,o()}}}function SL(n,e,t){let i;const r=bn("absolute-popup");let{value:s}=e;return n.$$set=o=>{"value"in o&&t(2,s=o.value)},n.$$.update=()=>{n.$$.dirty&4&&t(0,i=`Time: ${new Date(s).toString()}`)},[i,r,s]}class CL extends be{constructor(e){super(),ge(this,e,SL,kL,rt,{value:2})}}const AL=CL;function ML({path:n,value:e,readOnly:t,enforceString:i,searchResultItems:r,isEditing:s,parser:o,normalization:l,onPatch:a,onPasteJson:c,onSelect:f,onFind:u,findNextInside:h,focus:d}){const m=[];return!s&&K7(e)&&m.push({component:gj,props:{path:n,value:e,readOnly:t,onPatch:a,focus:d}}),!s&&G7(e)&&m.push({component:Cj,props:{path:n,value:e,readOnly:t,onPatch:a,focus:d}}),s&&m.push({component:Gj,props:{path:n,value:e,enforceString:i,parser:o,normalization:l,onPatch:a,onPasteJson:c,onSelect:f,onFind:u,findNextInside:h,focus:d}}),s||m.push({component:bL,props:{path:n,value:e,readOnly:t,parser:o,normalization:l,searchResultItems:r,onSelect:f}}),!s&&Jp(e)&&m.push({component:AL,props:{value:e}}),m}var ag={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},uo={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},x4={prefix:"fas",iconName:"paste",icon:[512,512,["file-clipboard"],"f0ea","M160 0c-23.7 0-44.4 12.9-55.4 32H48C21.5 32 0 53.5 0 80V400c0 26.5 21.5 48 48 48H192V176c0-44.2 35.8-80 80-80h48V80c0-26.5-21.5-48-48-48H215.4C204.4 12.9 183.7 0 160 0zM272 128c-26.5 0-48 21.5-48 48V448v16c0 26.5 21.5 48 48 48H464c26.5 0 48-21.5 48-48V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H320 272zM160 40a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},TL={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},OL={prefix:"fas",iconName:"scissors",icon:[512,512,[9984,9986,9988,"cut"],"f0c4","M256 192l-39.5-39.5c4.9-12.6 7.5-26.2 7.5-40.5C224 50.1 173.9 0 112 0S0 50.1 0 112s50.1 112 112 112c14.3 0 27.9-2.7 40.5-7.5L192 256l-39.5 39.5c-12.6-4.9-26.2-7.5-40.5-7.5C50.1 288 0 338.1 0 400s50.1 112 112 112s112-50.1 112-112c0-14.3-2.7-27.9-7.5-40.5L499.2 76.8c7.1-7.1 7.1-18.5 0-25.6c-28.3-28.3-74.1-28.3-102.4 0L256 192zm22.6 150.6L396.8 460.8c28.3 28.3 74.1 28.3 102.4 0c7.1-7.1 7.1-18.5 0-25.6L342.6 278.6l-64 64zM64 112a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm48 240a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},ba=OL,EL={prefix:"fas",iconName:"square-caret-down",icon:[448,512,["caret-square-down"],"f150","M384 480c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0zM224 352c-6.7 0-13-2.8-17.6-7.7l-104-112c-6.5-7-8.2-17.2-4.4-25.9s12.5-14.4 22-14.4l208 0c9.5 0 18.2 5.7 22 14.4s2.1 18.9-4.4 25.9l-104 112c-4.5 4.9-10.9 7.7-17.6 7.7z"]},RL=EL,PL={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},IL={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},jy=IL,NL={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},F4={prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},BL={prefix:"fas",iconName:"square-caret-up",icon:[448,512,["caret-square-up"],"f151","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM224 160c6.7 0 13 2.8 17.6 7.7l104 112c6.5 7 8.2 17.2 4.4 25.9s-12.5 14.4-22 14.4H120c-9.5 0-18.2-5.7-22-14.4s-2.1-18.9 4.4-25.9l104-112c4.5-4.9 10.9-7.7 17.6-7.7z"]},DL=BL,Ly={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},qd={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},To={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},Jd={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},jL={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},ya={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},LL={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H464c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L386.3 160z"]},l0=LL,xL={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},a0=xL,FL={prefix:"fas",iconName:"crop-simple",icon:[512,512,["crop-alt"],"f565","M128 32c0-17.7-14.3-32-32-32S64 14.3 64 32V64H32C14.3 64 0 78.3 0 96s14.3 32 32 32H64V384c0 35.3 28.7 64 64 64H352V384H128V32zM384 480c0 17.7 14.3 32 32 32s32-14.3 32-32V448h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H448l0-256c0-35.3-28.7-64-64-64L160 64v64l224 0 0 352z"]},zL=FL,VL={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},HL=VL,sr={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},UL={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},z4=UL,lu={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},WL={prefix:"fas",iconName:"arrow-down-short-wide",icon:[576,512,["sort-amount-desc","sort-amount-down-alt"],"f884","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Kd=WL,qL={prefix:"fas",iconName:"angle-down",icon:[448,512,[8964],"f107","M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},JL={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},KL={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},c0=KL,GL={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},vo={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},oa={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},V4={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},xy=V4,Fa=V4,QL={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},H4={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M288 448H64V224h64V160H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64zm-64-96H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64z"]},tf={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},YL={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Ol=YL;const pc={},au={showWizard:!0,showOriginal:!0},Eh=Math.min,ol=Math.max,Rh=Math.round,cu=Math.floor,Oo=n=>({x:n,y:n}),XL={left:"right",right:"left",bottom:"top",top:"bottom"},ZL={start:"end",end:"start"};function Fy(n,e,t){return ol(n,Eh(e,t))}function Gd(n,e){return typeof n=="function"?n(e):n}function bl(n){return n.split("-")[0]}function Qd(n){return n.split("-")[1]}function U4(n){return n==="x"?"y":"x"}function W4(n){return n==="y"?"height":"width"}function Yd(n){return["top","bottom"].includes(bl(n))?"y":"x"}function q4(n){return U4(Yd(n))}function $L(n,e,t){t===void 0&&(t=!1);const i=Qd(n),r=q4(n),s=W4(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Ph(o)),[o,Ph(o)]}function ex(n){const e=Ph(n);return[cg(n),e,cg(e)]}function cg(n){return n.replace(/start|end/g,e=>ZL[e])}function tx(n,e,t){const i=["left","right"],r=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return t?e?r:i:e?i:r;case"left":case"right":return e?s:o;default:return[]}}function nx(n,e,t,i){const r=Qd(n);let s=tx(bl(n),t==="start",i);return r&&(s=s.map(o=>o+"-"+r),e&&(s=s.concat(s.map(cg)))),s}function Ph(n){return n.replace(/left|right|bottom|top/g,e=>XL[e])}function ix(n){return{top:0,right:0,bottom:0,left:0,...n}}function rx(n){return typeof n!="number"?ix(n):{top:n,right:n,bottom:n,left:n}}function Ih(n){const{x:e,y:t,width:i,height:r}=n;return{width:i,height:r,top:t,left:e,right:e+i,bottom:t+r,x:e,y:t}}function zy(n,e,t){let{reference:i,floating:r}=n;const s=Yd(e),o=q4(e),l=W4(o),a=bl(e),c=s==="y",f=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,h=i[l]/2-r[l]/2;let d;switch(a){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:u};break;case"left":d={x:i.x-r.width,y:u};break;default:d={x:i.x,y:i.y}}switch(Qd(e)){case"start":d[o]-=h*(t&&c?-1:1);break;case"end":d[o]+=h*(t&&c?-1:1);break}return d}const sx=async(n,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=t,l=s.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:n,floating:e,strategy:r}),{x:f,y:u}=zy(c,i,a),h=i,d={},m=0;for(let p=0;pF<=0)){var N,B;const F=(((N=s.flip)==null?void 0:N.index)||0)+1,H=k[F];if(H)return{data:{index:F,overflows:L},reset:{placement:H}};let T=(B=L.filter(j=>j.overflows[0]<=0).sort((j,te)=>j.overflows[1]-te.overflows[1])[0])==null?void 0:B.placement;if(!T)switch(d){case"bestFit":{var M;const j=(M=L.map(te=>[te.placement,te.overflows.filter(ee=>ee>0).reduce((ee,X)=>ee+X,0)]).sort((te,ee)=>te[1]-ee[1])[0])==null?void 0:M[0];j&&(T=j);break}case"initialPlacement":T=l;break}if(r!==T)return{reset:{placement:T}}}return{}}}};async function lx(n,e){const{placement:t,platform:i,elements:r}=n,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=bl(t),l=Qd(t),a=Yd(t)==="y",c=["left","top"].includes(o)?-1:1,f=s&&a?-1:1,u=Gd(e,n);let{mainAxis:h,crossAxis:d,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof m=="number"&&(d=l==="end"?m*-1:m),a?{x:d*f,y:h*c}:{x:h*c,y:d*f}}const ax=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,i;const{x:r,y:s,placement:o,middlewareData:l}=e,a=await lx(e,n);return o===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:o}}}}},cx=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:g,y:v}=b;return{x:g,y:v}}},...a}=Gd(n,e),c={x:t,y:i},f=await J4(e,a),u=Yd(bl(r)),h=U4(u);let d=c[h],m=c[u];if(s){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=d+f[b],C=d-f[g];d=Fy(v,d,C)}if(o){const b=u==="y"?"top":"left",g=u==="y"?"bottom":"right",v=m+f[b],C=m-f[g];m=Fy(v,m,C)}const p=l.fn({...e,[h]:d,[u]:m});return{...p,data:{x:p.x-t,y:p.y-i}}}}};function Eo(n){return K4(n)?(n.nodeName||"").toLowerCase():"#document"}function Gi(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Qs(n){var e;return(e=(K4(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function K4(n){return n instanceof Node||n instanceof Gi(n).Node}function Vs(n){return n instanceof Element||n instanceof Gi(n).Element}function us(n){return n instanceof HTMLElement||n instanceof Gi(n).HTMLElement}function Vy(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Gi(n).ShadowRoot}function Pf(n){const{overflow:e,overflowX:t,overflowY:i,display:r}=dr(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function fx(n){return["table","td","th"].includes(Eo(n))}function f0(n){const e=u0(),t=dr(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function ux(n){let e=za(n);for(;us(e)&&!Xd(e);){if(f0(e))return e;e=za(e)}return null}function u0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xd(n){return["html","body","#document"].includes(Eo(n))}function dr(n){return Gi(n).getComputedStyle(n)}function Zd(n){return Vs(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function za(n){if(Eo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Vy(n)&&n.host||Qs(n);return Vy(e)?e.host:e}function G4(n){const e=za(n);return Xd(e)?n.ownerDocument?n.ownerDocument.body:n.body:us(e)&&Pf(e)?e:G4(e)}function nf(n,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=G4(n),s=r===((i=n.ownerDocument)==null?void 0:i.body),o=Gi(r);return s?e.concat(o,o.visualViewport||[],Pf(r)?r:[],o.frameElement&&t?nf(o.frameElement):[]):e.concat(r,nf(r,[],t))}function Q4(n){const e=dr(n);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=us(n),s=r?n.offsetWidth:t,o=r?n.offsetHeight:i,l=Rh(t)!==s||Rh(i)!==o;return l&&(t=s,i=o),{width:t,height:i,$:l}}function h0(n){return Vs(n)?n:n.contextElement}function _a(n){const e=h0(n);if(!us(e))return Oo(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:s}=Q4(e);let o=(s?Rh(t.width):t.width)/i,l=(s?Rh(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const hx=Oo(0);function Y4(n){const e=Gi(n);return!u0()||!e.visualViewport?hx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dx(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Gi(n)?!1:e}function yl(n,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),s=h0(n);let o=Oo(1);e&&(i?Vs(i)&&(o=_a(i)):o=_a(n));const l=dx(s,t,i)?Y4(s):Oo(0);let a=(r.left+l.x)/o.x,c=(r.top+l.y)/o.y,f=r.width/o.x,u=r.height/o.y;if(s){const h=Gi(s),d=i&&Vs(i)?Gi(i):i;let m=h,p=m.frameElement;for(;p&&i&&d!==m;){const b=_a(p),g=p.getBoundingClientRect(),v=dr(p),C=g.left+(p.clientLeft+parseFloat(v.paddingLeft))*b.x,R=g.top+(p.clientTop+parseFloat(v.paddingTop))*b.y;a*=b.x,c*=b.y,f*=b.x,u*=b.y,a+=C,c+=R,m=Gi(p),p=m.frameElement}}return Ih({width:f,height:u,x:a,y:c})}const mx=[":popover-open",":modal"];function X4(n){return mx.some(e=>{try{return n.matches(e)}catch{return!1}})}function px(n){let{elements:e,rect:t,offsetParent:i,strategy:r}=n;const s=r==="fixed",o=Qs(i),l=e?X4(e.floating):!1;if(i===o||l&&s)return t;let a={scrollLeft:0,scrollTop:0},c=Oo(1);const f=Oo(0),u=us(i);if((u||!u&&!s)&&((Eo(i)!=="body"||Pf(o))&&(a=Zd(i)),us(i))){const h=yl(i);c=_a(i),f.x=h.x+i.clientLeft,f.y=h.y+i.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-a.scrollLeft*c.x+f.x,y:t.y*c.y-a.scrollTop*c.y+f.y}}function gx(n){return Array.from(n.getClientRects())}function Z4(n){return yl(Qs(n)).left+Zd(n).scrollLeft}function bx(n){const e=Qs(n),t=Zd(n),i=n.ownerDocument.body,r=ol(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=ol(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+Z4(n);const l=-t.scrollTop;return dr(i).direction==="rtl"&&(o+=ol(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:l}}function yx(n,e){const t=Gi(n),i=Qs(n),r=t.visualViewport;let s=i.clientWidth,o=i.clientHeight,l=0,a=0;if(r){s=r.width,o=r.height;const c=u0();(!c||c&&e==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}return{width:s,height:o,x:l,y:a}}function _x(n,e){const t=yl(n,!0,e==="fixed"),i=t.top+n.clientTop,r=t.left+n.clientLeft,s=us(n)?_a(n):Oo(1),o=n.clientWidth*s.x,l=n.clientHeight*s.y,a=r*s.x,c=i*s.y;return{width:o,height:l,x:a,y:c}}function Hy(n,e,t){let i;if(e==="viewport")i=yx(n,t);else if(e==="document")i=bx(Qs(n));else if(Vs(e))i=_x(e,t);else{const r=Y4(n);i={...e,x:e.x-r.x,y:e.y-r.y}}return Ih(i)}function $4(n,e){const t=za(n);return t===e||!Vs(t)||Xd(t)?!1:dr(t).position==="fixed"||$4(t,e)}function vx(n,e){const t=e.get(n);if(t)return t;let i=nf(n,[],!1).filter(l=>Vs(l)&&Eo(l)!=="body"),r=null;const s=dr(n).position==="fixed";let o=s?za(n):n;for(;Vs(o)&&!Xd(o);){const l=dr(o),a=f0(o);!a&&l.position==="fixed"&&(r=null),(s?!a&&!r:!a&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Pf(o)&&!a&&$4(n,o))?i=i.filter(f=>f!==o):r=l,o=za(o)}return e.set(n,i),i}function wx(n){let{element:e,boundary:t,rootBoundary:i,strategy:r}=n;const o=[...t==="clippingAncestors"?vx(e,this._c):[].concat(t),i],l=o[0],a=o.reduce((c,f)=>{const u=Hy(e,f,r);return c.top=ol(u.top,c.top),c.right=Eh(u.right,c.right),c.bottom=Eh(u.bottom,c.bottom),c.left=ol(u.left,c.left),c},Hy(e,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function kx(n){const{width:e,height:t}=Q4(n);return{width:e,height:t}}function Sx(n,e,t){const i=us(e),r=Qs(e),s=t==="fixed",o=yl(n,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=Oo(0);if(i||!i&&!s)if((Eo(e)!=="body"||Pf(r))&&(l=Zd(e)),i){const u=yl(e,!0,s,e);a.x=u.x+e.clientLeft,a.y=u.y+e.clientTop}else r&&(a.x=Z4(r));const c=o.left+l.scrollLeft-a.x,f=o.top+l.scrollTop-a.y;return{x:c,y:f,width:o.width,height:o.height}}function Uy(n,e){return!us(n)||dr(n).position==="fixed"?null:e?e(n):n.offsetParent}function e8(n,e){const t=Gi(n);if(!us(n)||X4(n))return t;let i=Uy(n,e);for(;i&&fx(i)&&dr(i).position==="static";)i=Uy(i,e);return i&&(Eo(i)==="html"||Eo(i)==="body"&&dr(i).position==="static"&&!f0(i))?t:i||ux(n)||t}const Cx=async function(n){const e=this.getOffsetParent||e8,t=this.getDimensions,i=await t(n.floating);return{reference:Sx(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Ax(n){return dr(n).direction==="rtl"}const Mx={convertOffsetParentRelativeRectToViewportRelativeRect:px,getDocumentElement:Qs,getClippingRect:wx,getOffsetParent:e8,getElementRects:Cx,getClientRects:gx,getDimensions:kx,getScale:_a,isElement:Vs,isRTL:Ax};function Tx(n,e){let t=null,i;const r=Qs(n);function s(){var l;clearTimeout(i),(l=t)==null||l.disconnect(),t=null}function o(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:c,top:f,width:u,height:h}=n.getBoundingClientRect();if(l||e(),!u||!h)return;const d=cu(f),m=cu(r.clientWidth-(c+u)),p=cu(r.clientHeight-(f+h)),b=cu(c),v={rootMargin:-d+"px "+-m+"px "+-p+"px "+-b+"px",threshold:ol(0,Eh(1,a))||1};let C=!0;function R(k){const O=k[0].intersectionRatio;if(O!==a){if(!C)return o();O?o(!1,O):i=setTimeout(()=>{o(!1,1e-7)},1e3)}C=!1}try{t=new IntersectionObserver(R,{...v,root:r.ownerDocument})}catch{t=new IntersectionObserver(R,v)}t.observe(n)}return o(!0),s}function Ox(n,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=h0(n),f=r||s?[...c?nf(c):[],...nf(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",t,{passive:!0}),s&&g.addEventListener("resize",t)});const u=c&&l?Tx(c,t):null;let h=-1,d=null;o&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===c&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=d)==null||C.observe(e)})),t()}),c&&!a&&d.observe(c),d.observe(e));let m,p=a?yl(n):null;a&&b();function b(){const g=yl(n);p&&(g.x!==p.x||g.y!==p.y||g.width!==p.width||g.height!==p.height)&&t(),p=g,m=requestAnimationFrame(b)}return t(),()=>{var g;f.forEach(v=>{r&&v.removeEventListener("scroll",t),s&&v.removeEventListener("resize",t)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,a&&cancelAnimationFrame(m)}}const Ex=ax,Rx=cx,Px=ox,Ix=(n,e,t)=>{const i=new Map,r={platform:Mx,...t},s={...r.platform,_c:i};return sx(n,e,{...r,platform:s})};function Nx(n){let e,t;const i={autoUpdate:!0};let r=n;const s=f=>({...i,...n||{},...f||{}}),o=f=>{e&&t&&(r=s(f),Ix(e,t,r).then(u=>{Object.assign(t.style,{position:u.strategy,left:`${u.x}px`,top:`${u.y}px`}),r!=null&&r.onComputed&&r.onComputed(u)}))},l=f=>{if("subscribe"in f)return c(f),{};e=f,o()},a=(f,u)=>{let h;t=f,r=s(u),setTimeout(()=>o(u),0),o(u);const d=()=>{h&&(h(),h=void 0)},m=({autoUpdate:p}=r||{})=>{d(),p!==!1&&Kt().then(()=>Ox(e,t,()=>o(r),p===!0?{}:p))};return h=m(),{update(p){o(p),h=m(p)},destroy(){d()}}},c=f=>{const u=f.subscribe(h=>{e===void 0?(e=h,o()):(Object.assign(e,h),o())});Ki(u)};return[l,a,o]}function Bx({loadOptions:n,filterText:e,items:t,multiple:i,value:r,itemId:s,groupBy:o,filterSelectedItems:l,itemFilter:a,convertStringItemsToObjects:c,filterGroupedItems:f,label:u}){if(t&&n)return t;if(!t)return[];t&&t.length>0&&typeof t[0]!="object"&&(t=c(t));let h=t.filter(d=>{let m=a(d[u],e,d);return m&&i&&(r!=null&&r.length)&&(m=!r.some(p=>l?p[s]===d[s]:!1)),m});return o&&(h=f(h)),h}async function Dx({dispatch:n,loadOptions:e,convertStringItemsToObjects:t,filterText:i}){let r=await e(i).catch(s=>{console.warn("svelte-select loadOptions error :>> ",s),n("error",{type:"loadOptions",details:s})});if(r&&!r.cancelled)return r?(r&&r.length>0&&typeof r[0]!="object"&&(r=t(r)),n("loaded",{items:r})):r=[],{filteredItems:r,loading:!1,focused:!0,listOpen:!0}}function jx(n){let e,t;return{c(){e=Ir("svg"),t=Ir("path"),y(t,"fill","currentColor"),y(t,"d",`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747
+ 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0
+ 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502
+ 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0
+ 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),y(e,"width","100%"),y(e,"height","100%"),y(e,"viewBox","0 0 20 20"),y(e,"focusable","false"),y(e,"aria-hidden","true"),y(e,"class","svelte-qbd276")},m(i,r){I(i,e,r),S(e,t)},p:le,i:le,o:le,d(i){i&&P(e)}}}class Lx extends be{constructor(e){super(),ge(this,e,null,jx,Fe,{})}}function xx(n){let e,t;return{c(){e=Ir("svg"),t=Ir("path"),y(t,"fill","currentColor"),y(t,"d",`M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124
+ l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z`),y(e,"width","100%"),y(e,"height","100%"),y(e,"viewBox","-2 -2 50 50"),y(e,"focusable","false"),y(e,"aria-hidden","true"),y(e,"role","presentation"),y(e,"class","svelte-whdbu1")},m(i,r){I(i,e,r),S(e,t)},p:le,i:le,o:le,d(i){i&&P(e)}}}class Nh extends be{constructor(e){super(),ge(this,e,null,xx,Fe,{})}}function Fx(n){let e,t;return{c(){e=Ir("svg"),t=Ir("circle"),y(t,"class","circle_path svelte-1p3nqvd"),y(t,"cx","50"),y(t,"cy","50"),y(t,"r","20"),y(t,"fill","none"),y(t,"stroke","currentColor"),y(t,"stroke-width","5"),y(t,"stroke-miterlimit","10"),y(e,"class","loading svelte-1p3nqvd"),y(e,"viewBox","25 25 50 50")},m(i,r){I(i,e,r),S(e,t)},p:le,i:le,o:le,d(i){i&&P(e)}}}class zx extends be{constructor(e){super(),ge(this,e,null,Fx,Fe,{})}}const Vx=n=>({value:n[0]&8}),Wy=n=>({value:n[3]}),Hx=n=>({value:n[0]&8}),qy=n=>({value:n[3]}),Ux=n=>({listOpen:n[0]&64}),Jy=n=>({listOpen:n[6]}),Wx=n=>({}),Ky=n=>({}),qx=n=>({}),Gy=n=>({}),Jx=n=>({selection:n[0]&8}),Qy=n=>({selection:n[3]});function Yy(n,e,t){const i=n.slice();return i[126]=e[t],i[128]=t,i}const Kx=n=>({}),Xy=n=>({}),Gx=n=>({selection:n[0]&8}),Zy=n=>({selection:n[126],index:n[128]}),Qx=n=>({}),$y=n=>({}),Yx=n=>({}),e_=n=>({}),Xx=n=>({}),t_=n=>({});function n_(n,e,t){const i=n.slice();return i[126]=e[t],i[128]=t,i}const Zx=n=>({item:n[0]&16777216}),i_=n=>({item:n[126],index:n[128]}),$x=n=>({filteredItems:n[0]&16777216}),r_=n=>({filteredItems:n[24]}),eF=n=>({}),s_=n=>({});function o_(n){let e,t,i,r,s,o,l,a,c=n[50]["list-prepend"]&&l_(n);const f=[iF,nF,tF],u=[];function h(m,p){return m[50].list?0:m[24].length>0?1:m[19]?-1:2}~(i=h(n))&&(r=u[i]=f[i](n));let d=n[50]["list-append"]&&c_(n);return{c(){e=A("div"),c&&c.c(),t=q(),r&&r.c(),s=q(),d&&d.c(),y(e,"class","svelte-select-list svelte-82qwg8"),y(e,"role","none"),$(e,"prefloat",n[28])},m(m,p){I(m,e,p),c&&c.m(e,null),S(e,t),~i&&u[i].m(e,null),S(e,s),d&&d.m(e,null),n[91](e),o=!0,l||(a=[Sn(n[49].call(null,e)),ne(e,"scroll",n[41]),ne(e,"pointerup",Nr(as(n[85]))),ne(e,"mousedown",Nr(as(n[86])))],l=!0)},p(m,p){m[50]["list-prepend"]?c?(c.p(m,p),p[1]&524288&&_(c,1)):(c=l_(m),c.c(),_(c,1),c.m(e,t)):c&&(re(),w(c,1,1,()=>{c=null}),se());let b=i;i=h(m),i===b?~i&&u[i].p(m,p):(r&&(re(),w(u[b],1,1,()=>{u[b]=null}),se()),~i?(r=u[i],r?r.p(m,p):(r=u[i]=f[i](m),r.c()),_(r,1),r.m(e,s)):r=null),m[50]["list-append"]?d?(d.p(m,p),p[1]&524288&&_(d,1)):(d=c_(m),d.c(),_(d,1),d.m(e,null)):d&&(re(),w(d,1,1,()=>{d=null}),se()),(!o||p[0]&268435456)&&$(e,"prefloat",m[28])},i(m){o||(_(c),_(r),_(d),o=!0)},o(m){w(c),w(r),w(d),o=!1},d(m){m&&P(e),c&&c.d(),~i&&u[i].d(),d&&d.d(),n[91](null),l=!1,ft(a)}}}function l_(n){let e;const t=n[83]["list-prepend"],i=Ke(t,n,n[82],s_);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s[2]&1048576)&&Qe(i,t,r,r[82],e?Ge(t,r[82],s,eF):Ye(r[82]),s_)},i(r){e||(_(i,r),e=!0)},o(r){w(i,r),e=!1},d(r){i&&i.d(r)}}}function tF(n){let e;const t=n[83].empty,i=Ke(t,n,n[82],t_),r=i||rF();return{c(){r&&r.c()},m(s,o){r&&r.m(s,o),e=!0},p(s,o){i&&i.p&&(!e||o[2]&1048576)&&Qe(i,t,s,s[82],e?Ge(t,s[82],o,Xx):Ye(s[82]),t_)},i(s){e||(_(r,s),e=!0)},o(s){w(r,s),e=!1},d(s){r&&r.d(s)}}}function nF(n){let e,t,i=n[24],r=[];for(let o=0;ow(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;o{o[f]=null}),se(),t=o[e],t?t.p(a,c):(t=o[e]=s[e](a),t.c()),_(t,1),t.m(i.parentNode,i))},i(a){r||(_(t),r=!0)},o(a){w(t),r=!1},d(a){o[e].d(a),a&&P(i)}}}function oF(n){let e,t;const i=n[83].selection,r=Ke(i,n,n[82],Qy),s=r||aF(n);return{c(){e=A("div"),s&&s.c(),y(e,"class","selected-item svelte-82qwg8"),$(e,"hide-selected-item",n[35])},m(o,l){I(o,e,l),s&&s.m(e,null),t=!0},p(o,l){r?r.p&&(!t||l[0]&8|l[2]&1048576)&&Qe(r,i,o,o[82],t?Ge(i,o[82],l,Jx):Ye(o[82]),Qy):s&&s.p&&(!t||l[0]&4104)&&s.p(o,t?l:[-1,-1,-1,-1,-1]),(!t||l[1]&16)&&$(e,"hide-selected-item",o[35])},i(o){t||(_(s,o),t=!0)},o(o){w(s,o),t=!1},d(o){o&&P(e),s&&s.d(o)}}}function lF(n){let e,t,i=n[3],r=[];for(let o=0;ow(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;o{u=null}),se()),(!s||m[0]&67108864)&&$(e,"active",n[26]===n[128]),(!s||m[0]&2048)&&$(e,"disabled",n[11])},i(d){s||(_(f,d),_(u),s=!0)},o(d){w(f,d),w(u),s=!1},d(d){d&&P(e),f&&f.d(d),u&&u.d(),o=!1,ft(l)}}}function m_(n){let e,t;const i=n[83]["loading-icon"],r=Ke(i,n,n[82],Gy),s=r||uF();return{c(){e=A("div"),s&&s.c(),y(e,"class","icon loading svelte-82qwg8"),y(e,"aria-hidden","true")},m(o,l){I(o,e,l),s&&s.m(e,null),t=!0},p(o,l){r&&r.p&&(!t||l[2]&1048576)&&Qe(r,i,o,o[82],t?Ge(i,o[82],l,qx):Ye(o[82]),Gy)},i(o){t||(_(s,o),t=!0)},o(o){w(s,o),t=!1},d(o){o&&P(e),s&&s.d(o)}}}function uF(n){let e,t;return e=new zx({}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function p_(n){let e,t,i,r;const s=n[83]["clear-icon"],o=Ke(s,n,n[82],Ky),l=o||hF();return{c(){e=A("button"),l&&l.c(),y(e,"type","button"),y(e,"class","icon clear-select svelte-82qwg8")},m(a,c){I(a,e,c),l&&l.m(e,null),t=!0,i||(r=ne(e,"click",n[22]),i=!0)},p(a,c){o&&o.p&&(!t||c[2]&1048576)&&Qe(o,s,a,a[82],t?Ge(s,a[82],c,Wx):Ye(a[82]),Ky)},i(a){t||(_(l,a),t=!0)},o(a){w(l,a),t=!1},d(a){a&&P(e),l&&l.d(a),i=!1,r()}}}function hF(n){let e,t;return e=new Nh({}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function g_(n){let e,t;const i=n[83]["chevron-icon"],r=Ke(i,n,n[82],Jy),s=r||dF();return{c(){e=A("div"),s&&s.c(),y(e,"class","icon chevron svelte-82qwg8"),y(e,"aria-hidden","true")},m(o,l){I(o,e,l),s&&s.m(e,null),t=!0},p(o,l){r&&r.p&&(!t||l[0]&64|l[2]&1048576)&&Qe(r,i,o,o[82],t?Ge(i,o[82],l,Ux):Ye(o[82]),Jy)},i(o){t||(_(s,o),t=!0)},o(o){w(s,o),t=!1},d(o){o&&P(e),s&&s.d(o)}}}function dF(n){let e,t;return e=new Lx({}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function mF(n){let e,t;return{c(){e=A("input"),y(e,"name",n[8]),y(e,"type","hidden"),e.value=t=n[3]?JSON.stringify(n[3]):null,y(e,"class","svelte-82qwg8")},m(i,r){I(i,e,r)},p(i,r){r[0]&256&&y(e,"name",i[8]),r[0]&8&&t!==(t=i[3]?JSON.stringify(i[3]):null)&&(e.value=t)},d(i){i&&P(e)}}}function b_(n){let e;const t=n[83].required,i=Ke(t,n,n[82],Wy),r=i||pF();return{c(){r&&r.c()},m(s,o){r&&r.m(s,o),e=!0},p(s,o){i&&i.p&&(!e||o[0]&8|o[2]&1048576)&&Qe(i,t,s,s[82],e?Ge(t,s[82],o,Vx):Ye(s[82]),Wy)},i(s){e||(_(r,s),e=!0)},o(s){w(r,s),e=!1},d(s){r&&r.d(s)}}}function pF(n){let e;return{c(){e=A("select"),y(e,"class","required svelte-82qwg8"),e.required=!0,y(e,"tabindex","-1"),y(e,"aria-hidden","true")},m(t,i){I(t,e,i)},p:le,d(t){t&&P(e)}}}function gF(n){let e,t,i,r,s,o,l,a,c,f,u,h,d,m,p,b,g,v,C,R,k=n[6]&&o_(n),O=n[2]&&f_(n);const E=n[83].prepend,L=Ke(E,n,n[82],$y);let N=n[25]&&u_(n),B=[{readOnly:f=!n[17]},n[27],{placeholder:n[33]},{style:n[18]},{disabled:n[11]}],M={};for(let D=0;D{k=null}),se()),D[2]?O?O.p(D,x):(O=f_(D),O.c(),O.m(i,null)):O&&(O.d(1),O=null),L&&L.p&&(!v||x[2]&1048576)&&Qe(L,E,D,D[82],v?Ge(E,D[82],x,Qx):Ye(D[82]),$y),D[25]?N?(N.p(D,x),x[0]&33554432&&_(N,1)):(N=u_(D),N.c(),_(N,1),N.m(l,a)):N&&(re(),w(N,1,1,()=>{N=null}),se()),Ni(c,M=cn(B,[(!v||x[0]&131072&&f!==(f=!D[17]))&&{readOnly:f},x[0]&134217728&&D[27],(!v||x[1]&4)&&{placeholder:D[33]},(!v||x[0]&262144)&&{style:D[18]},(!v||x[0]&2048)&&{disabled:D[11]}])),x[0]&16&&c.value!==D[4]&&cs(c,D[4]),$(c,"svelte-82qwg8",!0),D[5]?F?(F.p(D,x),x[0]&32&&_(F,1)):(F=m_(D),F.c(),_(F,1),F.m(h,d)):F&&(re(),w(F,1,1,()=>{F=null}),se()),D[34]?H?(H.p(D,x),x[1]&8&&_(H,1)):(H=p_(D),H.c(),_(H,1),H.m(h,m)):H&&(re(),w(H,1,1,()=>{H=null}),se()),D[20]?T?(T.p(D,x),x[0]&1048576&&_(T,1)):(T=g_(D),T.c(),_(T,1),T.m(h,null)):T&&(re(),w(T,1,1,()=>{T=null}),se()),te?te.p&&(!v||x[0]&8|x[2]&1048576)&&Qe(te,j,D,D[82],v?Ge(j,D[82],x,Hx):Ye(D[82]),qy):ee&&ee.p&&(!v||x[0]&264)&&ee.p(D,v?x:[-1,-1,-1,-1,-1]),D[16]&&(!D[3]||D[3].length===0)?X?(X.p(D,x),x[0]&65544&&_(X,1)):(X=b_(D),X.c(),_(X,1),X.m(e,null)):X&&(re(),w(X,1,1,()=>{X=null}),se()),(!v||x[0]&2097152&&g!==(g="svelte-select "+D[21]+" svelte-82qwg8"))&&y(e,"class",g),(!v||x[0]&16384)&&y(e,"style",D[14]),(!v||x[0]&2097664)&&$(e,"multi",D[9]),(!v||x[0]&2099200)&&$(e,"disabled",D[11]),(!v||x[0]&2097156)&&$(e,"focused",D[2]),(!v||x[0]&2097216)&&$(e,"list-open",D[6]),(!v||x[0]&3145728)&&$(e,"show-chevron",D[20]),(!v||x[0]&2129920)&&$(e,"error",D[15])},i(D){v||(_(k),_(L,D),_(N),_(F),_(H),_(T),_(ee,D),_(X),v=!0)},o(D){w(k),w(L,D),w(N),w(F),w(H),w(T),w(ee,D),w(X),v=!1},d(D){D&&P(e),k&&k.d(),O&&O.d(),L&&L.d(D),N&&N.d(),n[94](null),F&&F.d(),H&&H.d(),T&&T.d(),ee&&ee.d(D),X&&X.d(),n[96](null),C=!1,ft(R)}}}function y_(n){return n.map((e,t)=>({index:t,value:e,label:`${e}`}))}function bF(n){return n===0}function yF(n){return n.groupHeader&&n.selectable||n.selectable||!n.hasOwnProperty("selectable")}function _F(n,e,t){let i,r,s,o,l,a,c,f,u,{$$slots:h={},$$scope:d}=e;const m=JA(h),p=Ws();let{justValue:b=null}=e,{filter:g=Bx}=e,{getItems:v=Dx}=e,{id:C=null}=e,{name:R=null}=e,{container:k=void 0}=e,{input:O=void 0}=e,{multiple:E=!1}=e,{multiFullItemClearable:L=!1}=e,{disabled:N=!1}=e,{focused:B=!1}=e,{value:M=null}=e,{filterText:F=""}=e,{placeholder:H="Please select"}=e,{placeholderAlwaysShow:T=!1}=e,{items:j=null}=e,{label:te="label"}=e,{itemFilter:ee=(V,we,nt)=>`${V}`.toLowerCase().includes(we.toLowerCase())}=e,{groupBy:X=void 0}=e,{groupFilter:D=V=>V}=e,{groupHeaderSelectable:x=!1}=e,{itemId:K="value"}=e,{loadOptions:ae=void 0}=e,{containerStyles:oe=""}=e,{hasError:ue=!1}=e,{filterSelectedItems:Ne=!0}=e,{required:fe=!1}=e,{closeListOnChange:J=!0}=e,{clearFilterTextOnBlur:Ce=!0}=e,{createGroupHeaderItem:et=(V,we)=>({value:V,[te]:V})}=e;const Z=()=>c;let{searchable:De=!0}=e,{inputStyles:U=""}=e,{clearable:Se=!0}=e,{loading:Ee=!1}=e,{listOpen:Re=!1}=e,Ve,{debounce:pt=(V,we=1)=>{clearTimeout(Ve),Ve=setTimeout(V,we)}}=e,{debounceWait:ie=300}=e,{hideEmptyState:qe=!1}=e,{inputAttributes:wt={}}=e,{listAutoWidth:_e=!0}=e,{showChevron:ot=!1}=e,{listOffset:tn=5}=e,{hoverItemIndex:Xe=0}=e,{floatingConfig:At={}}=e,{class:Ot=""}=e,ut,Rn,Cn,zn;function si(){if(typeof M=="string"){let V=(j||[]).find(we=>we[K]===M);t(3,M=V||{[K]:M,label:M})}else E&&Array.isArray(M)&&M.length>0&&t(3,M=M.map(V=>typeof V=="string"?{value:V,label:V}:V))}let de;function Ze(){t(27,de=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},wt)),C&&t(27,de.id=C,de),De||t(27,de.readonly=!0,de)}function Gt(V){const we=[],nt={};V.forEach(Qt=>{const yt=X(Qt);we.includes(yt)||(we.push(yt),nt[yt]=[],yt&&nt[yt].push(Object.assign(et(yt,Qt),{id:yt,groupHeader:!0,selectable:x}))),nt[yt].push(Object.assign({groupItem:!!yt},Qt))});const jt=[];return D(we).forEach(Qt=>{nt[Qt]&&jt.push(...nt[Qt])}),jt}function Vn(){if(E){JSON.stringify(M)!==JSON.stringify(Rn)&&Xs()&&p("input",M);return}(!Rn||JSON.stringify(M[K])!==JSON.stringify(Rn[K]))&&p("input",M)}function Nt(){M&&(Array.isArray(M)?t(3,M=[...M]):t(3,M=[M]))}function pe(){M&&t(3,M=null)}function oi(){const V=c.findIndex(we=>we[K]===M[K]);dn(V,!0)}function Hn(V){p("hoverItem",V)}function dn(V=0,we){t(7,Xe=V<0?0:V),!we&&X&&c[Xe]&&!c[Xe].selectable&&qt(1)}function Bt(){!ae&&F.length===0||(ae?pt(async function(){t(5,Ee=!0);let V=await v({dispatch:p,loadOptions:ae,convertStringItemsToObjects:y_,filterText:F});V?(t(5,Ee=V.loading),t(6,Re=Re?V.listOpen:F.length>0),t(2,B=Re&&V.focused),t(51,j=X?Gt(V.filteredItems):V.filteredItems)):(t(5,Ee=!1),t(2,B=!0),t(6,Re=!0))},ie):(t(6,Re=!0),E&&t(26,ut=void 0)))}function ps(V){Re&&p("filter",V)}tM(async()=>{t(78,Rn=M),t(79,Cn=F),t(80,zn=E)});function Ho(){return E?M?M.map(V=>V[K]):null:M&&M[K]}function Xs(){let V=!0;if(M){const we=[],nt=[];M.forEach(jt=>{we.includes(jt[K])?V=!1:(we.push(jt[K]),nt.push(jt))}),V||t(3,M=nt)}return V}function ji(V){let we=V?V[K]:M[K];return j.find(nt=>nt[K]===we)}function Qi(V){!V||V.length===0||V.some(we=>typeof we!="object")||!M||(E?M.some(we=>!we||!we[K]):!M[K])||(Array.isArray(M)?t(3,M=M.map(we=>ji(we)||we)):t(3,M=ji()||M))}async function Un(V){const we=M[V];M.length===1?t(3,M=void 0):t(3,M=M.filter(nt=>nt!==we)),p("clear",we)}function Zs(V){if(B)switch(V.stopPropagation(),V.key){case"Escape":V.preventDefault(),An();break;case"Enter":if(V.preventDefault(),Re){if(c.length===0)break;const we=c[Xe];if(M&&!E&&M[K]===we[K]){An();break}else tt(c[Xe])}break;case"ArrowDown":V.preventDefault(),Re?qt(1):(t(6,Re=!0),t(26,ut=void 0));break;case"ArrowUp":V.preventDefault(),Re?qt(-1):(t(6,Re=!0),t(26,ut=void 0));break;case"Tab":if(Re&&B){if(c.length===0||M&&M[K]===c[Xe][K])return An();V.preventDefault(),tt(c[Xe]),An()}break;case"Backspace":if(!E||F.length>0)return;if(E&&M&&M.length>0){if(Un(ut!==void 0?ut:M.length-1),ut===0||ut===void 0)break;t(26,ut=M.length>ut?ut-1:void 0)}break;case"ArrowLeft":if(!M||!E||F.length>0)return;ut===void 0?t(26,ut=M.length-1):M.length>ut&&ut!==0&&t(26,ut-=1);break;case"ArrowRight":if(!M||!E||F.length>0||ut===void 0)return;ut===M.length-1?t(26,ut=void 0):ut0)return t(6,Re=!0);t(6,Re=!Re)}}function Yi(){p("clear",M),t(3,M=void 0),An(),Li()}gn(()=>{Re&&t(2,B=!0),B&&O&&O.focus()});function _r(V){if(V){t(4,F="");const we=Object.assign({},V);if(we.groupHeader&&!we.selectable)return;t(3,M=E?M?M.concat([we]):[we]:t(3,M=we)),setTimeout(()=>{J&&An(),t(26,ut=void 0),p("change",M),p("select",V)})}}function An(){Ce&&t(4,F=""),t(6,Re=!1)}let{ariaValues:Gn=V=>`Option ${V}, selected.`}=e,{ariaListOpen:gs=(V,we)=>`You are currently focused on option ${V}. There are ${we} results available.`}=e,{ariaFocused:vr=()=>"Select is focused, type to refine list, press down to open the menu."}=e;function Uo(V){let we;return V&&M.length>0?we=M.map(nt=>nt[te]).join(", "):we=M[te],Gn(we)}function bs(){if(!c||c.length===0)return"";let V=c[Xe];if(Re&&V){let we=c?c.length:0;return gs(V[te],we)}else return vr()}let _n=null,$s;function Xi(){clearTimeout($s),$s=setTimeout(()=>{ce=!1},100)}function ys(V){!Re&&!B&&k&&!k.contains(V.target)&&!(_n!=null&&_n.contains(V.target))&&xi()}Ki(()=>{_n==null||_n.remove()});let ce=!1;function tt(V){!V||V.selectable===!1||_r(V)}function Ct(V){ce||t(7,Xe=V)}function Dt(V){const{item:we,i:nt}=V;if((we==null?void 0:we.selectable)!==!1){if(M&&!E&&M[K]===we[K])return An();yF(we)&&(t(7,Xe=nt),tt(we))}}function qt(V){if(c.filter(jt=>!Object.hasOwn(jt,"selectable")||jt.selectable===!0).length===0)return t(7,Xe=0);V>0&&Xe===c.length-1?t(7,Xe=0):V<0&&Xe===0?t(7,Xe=c.length-1):t(7,Xe=Xe+V);const nt=c[Xe];if(nt&&nt.selectable===!1){(V===1||V===-1)&&qt(V);return}}function mn(V,we,nt){if(!E)return we&&we[nt]===V[nt]}const vi=vs,_s=vs;function vs(V){return{update(we){we.scroll&&(Xi(),V.scrollIntoView({behavior:"auto",block:"nearest"}))}}}function Vr(){const{width:V}=k.getBoundingClientRect();t(23,_n.style.width=_e?V+"px":"auto",_n)}let ws={strategy:"absolute",placement:"bottom-start",middleware:[Ex(tn),Px(),Rx()],autoUpdate:!1};const[rc,Nl,Fi]=Nx(ws);let Hr=!0;function eo(V,we){if(!V||!we)return t(28,Hr=!0);setTimeout(()=>{t(28,Hr=!1)},0)}function wr(V){rr.call(this,n,V)}function On(V){rr.call(this,n,V)}function to(V){rr.call(this,n,V)}function sc(V){rr.call(this,n,V)}const ks=V=>Ct(V),oc=V=>Ct(V),lc=(V,we)=>Dt({item:V,i:we});function Wo(V){Ue[V?"unshift":"push"](()=>{_n=V,t(23,_n)})}const ac=V=>Un(V),cc=V=>L?Un(V):{};function W(V){Ue[V?"unshift":"push"](()=>{O=V,t(1,O)})}function ve(){F=this.value,t(4,F)}function Ie(V){Ue[V?"unshift":"push"](()=>{k=V,t(0,k)})}return n.$$set=V=>{"justValue"in V&&t(52,b=V.justValue),"filter"in V&&t(53,g=V.filter),"getItems"in V&&t(54,v=V.getItems),"id"in V&&t(55,C=V.id),"name"in V&&t(8,R=V.name),"container"in V&&t(0,k=V.container),"input"in V&&t(1,O=V.input),"multiple"in V&&t(9,E=V.multiple),"multiFullItemClearable"in V&&t(10,L=V.multiFullItemClearable),"disabled"in V&&t(11,N=V.disabled),"focused"in V&&t(2,B=V.focused),"value"in V&&t(3,M=V.value),"filterText"in V&&t(4,F=V.filterText),"placeholder"in V&&t(56,H=V.placeholder),"placeholderAlwaysShow"in V&&t(57,T=V.placeholderAlwaysShow),"items"in V&&t(51,j=V.items),"label"in V&&t(12,te=V.label),"itemFilter"in V&&t(58,ee=V.itemFilter),"groupBy"in V&&t(59,X=V.groupBy),"groupFilter"in V&&t(60,D=V.groupFilter),"groupHeaderSelectable"in V&&t(61,x=V.groupHeaderSelectable),"itemId"in V&&t(13,K=V.itemId),"loadOptions"in V&&t(62,ae=V.loadOptions),"containerStyles"in V&&t(14,oe=V.containerStyles),"hasError"in V&&t(15,ue=V.hasError),"filterSelectedItems"in V&&t(63,Ne=V.filterSelectedItems),"required"in V&&t(16,fe=V.required),"closeListOnChange"in V&&t(64,J=V.closeListOnChange),"clearFilterTextOnBlur"in V&&t(65,Ce=V.clearFilterTextOnBlur),"createGroupHeaderItem"in V&&t(66,et=V.createGroupHeaderItem),"searchable"in V&&t(17,De=V.searchable),"inputStyles"in V&&t(18,U=V.inputStyles),"clearable"in V&&t(68,Se=V.clearable),"loading"in V&&t(5,Ee=V.loading),"listOpen"in V&&t(6,Re=V.listOpen),"debounce"in V&&t(69,pt=V.debounce),"debounceWait"in V&&t(70,ie=V.debounceWait),"hideEmptyState"in V&&t(19,qe=V.hideEmptyState),"inputAttributes"in V&&t(71,wt=V.inputAttributes),"listAutoWidth"in V&&t(72,_e=V.listAutoWidth),"showChevron"in V&&t(20,ot=V.showChevron),"listOffset"in V&&t(73,tn=V.listOffset),"hoverItemIndex"in V&&t(7,Xe=V.hoverItemIndex),"floatingConfig"in V&&t(74,At=V.floatingConfig),"class"in V&&t(21,Ot=V.class),"ariaValues"in V&&t(75,Gn=V.ariaValues),"ariaListOpen"in V&&t(76,gs=V.ariaListOpen),"ariaFocused"in V&&t(77,vr=V.ariaFocused),"$$scope"in V&&t(82,d=V.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&8|n.$$.dirty[1]&1048576&&M&&si(),n.$$.dirty[0]&131072|n.$$.dirty[2]&512&&(wt||!De)&&Ze(),n.$$.dirty[0]&512&&E&&Nt(),n.$$.dirty[0]&512|n.$$.dirty[2]&262144&&zn&&!E&&pe(),n.$$.dirty[0]&520&&E&&M&&M.length>1&&Xs(),n.$$.dirty[0]&8&&M&&Vn(),n.$$.dirty[0]&520|n.$$.dirty[2]&65536&&!M&&E&&Rn&&p("input",M),n.$$.dirty[0]&6&&!B&&O&&An(),n.$$.dirty[0]&16|n.$$.dirty[2]&131072&&F!==Cn&&Bt(),n.$$.dirty[0]&12824|n.$$.dirty[1]&407896064|n.$$.dirty[2]&3&&t(24,c=g({loadOptions:ae,filterText:F,items:j,multiple:E,value:M,itemId:K,groupBy:X,label:te,filterSelectedItems:Ne,itemFilter:ee,convertStringItemsToObjects:y_,filterGroupedItems:Gt})),n.$$.dirty[0]&16777800&&!E&&Re&&M&&c&&oi(),n.$$.dirty[0]&576&&Re&&E&&t(7,Xe=0),n.$$.dirty[0]&16&&F&&t(7,Xe=0),n.$$.dirty[0]&128&&Hn(Xe),n.$$.dirty[0]&520&&t(25,i=E?M&&M.length>0:M),n.$$.dirty[0]&33554448&&t(35,r=i&&F.length>0),n.$$.dirty[0]&33556512|n.$$.dirty[2]&64&&t(34,s=i&&Se&&!N&&!Ee),n.$$.dirty[0]&520|n.$$.dirty[1]&100663296&&t(33,o=T&&E||E&&(M==null?void 0:M.length)===0?H:M?"":H),n.$$.dirty[0]&520&&t(32,l=M?Uo(E):""),n.$$.dirty[0]&16777412&&t(31,a=bs()),n.$$.dirty[1]&1048576&&Qi(j),n.$$.dirty[0]&8712&&t(52,b=Ho()),n.$$.dirty[0]&520|n.$$.dirty[2]&65536&&!E&&Rn&&!M&&p("input",M),n.$$.dirty[0]&16777800&&Re&&c&&!E&&!M&&dn(),n.$$.dirty[0]&16777216&&ps(c),n.$$.dirty[0]&1|n.$$.dirty[2]&4096&&k&&(At==null?void 0:At.autoUpdate)===void 0&&t(81,ws.autoUpdate=!0,ws),n.$$.dirty[0]&1|n.$$.dirty[2]&528384&&k&&At&&Fi(Object.assign(ws,At)),n.$$.dirty[0]&8388608&&t(30,f=!!_n),n.$$.dirty[0]&8388672&&eo(_n,Re),n.$$.dirty[0]&8388673&&Re&&k&&_n&&Vr(),n.$$.dirty[0]&128&&t(29,u=Xe),n.$$.dirty[0]&70&&O&&Re&&!B&&Li()},[k,O,B,M,F,Ee,Re,Xe,R,E,L,N,te,K,oe,ue,fe,De,U,qe,ot,Ot,Yi,_n,c,i,ut,de,Hr,u,f,a,l,o,s,r,Un,Zs,Li,xi,yr,Xi,ys,Ct,Dt,mn,vi,_s,rc,Nl,m,j,b,g,v,C,H,T,ee,X,D,x,ae,Ne,J,Ce,et,Z,Se,pt,ie,wt,_e,tn,At,Gn,gs,vr,Rn,Cn,zn,ws,d,h,wr,On,to,sc,ks,oc,lc,Wo,ac,cc,W,ve,Ie]}class Zo extends be{constructor(e){super(),ge(this,e,_F,gF,Fe,{justValue:52,filter:53,getItems:54,id:55,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:56,placeholderAlwaysShow:57,items:51,label:12,itemFilter:58,groupBy:59,groupFilter:60,groupHeaderSelectable:61,itemId:13,loadOptions:62,containerStyles:14,hasError:15,filterSelectedItems:63,required:16,closeListOnChange:64,clearFilterTextOnBlur:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},null,[-1,-1,-1,-1,-1])}get getFilteredItems(){return this.$$.ctx[67]}get handleClear(){return this.$$.ctx[22]}}function vF(n){let e,t,i,r,s,o,l,a,c,f,u,h,d,m,p,b,g,v,C,R,k,O,E,L,N,B,M,F,H,T,j,te,ee,X,D;function x(Z){n[16](Z)}let K={class:"jse-filter-path",showChevron:!0,items:n[7]};n[0]!==void 0&&(K.value=n[0]),l=new Zo({props:K}),Ue.push(()=>jn(l,"value",x));function ae(Z){n[17](Z)}let oe={class:"jse-filter-relation",showChevron:!0,items:n[8]};n[1]!==void 0&&(oe.value=n[1]),f=new Zo({props:oe}),Ue.push(()=>jn(f,"value",ae));function ue(Z){n[19](Z)}let Ne={class:"jse-sort-path",showChevron:!0,items:n[7]};n[3]!==void 0&&(Ne.value=n[3]),R=new Zo({props:Ne}),Ue.push(()=>jn(R,"value",ue));function fe(Z){n[20](Z)}let J={class:"jse-sort-direction",showChevron:!0,items:n[9]};n[4]!==void 0&&(J.value=n[4]),E=new Zo({props:J}),Ue.push(()=>jn(E,"value",fe));function Ce(Z){n[21](Z)}let et={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:n[6]};return n[5]!==void 0&&(et.value=n[5]),j=new Zo({props:et}),Ue.push(()=>jn(j,"value",Ce)),{c(){e=A("table"),t=A("tr"),i=A("th"),i.textContent="Filter",r=q(),s=A("td"),o=A("div"),Y(l.$$.fragment),c=q(),Y(f.$$.fragment),h=q(),d=A("input"),m=q(),p=A("tr"),b=A("th"),b.textContent="Sort",g=q(),v=A("td"),C=A("div"),Y(R.$$.fragment),O=q(),Y(E.$$.fragment),N=q(),B=A("tr"),M=A("th"),M.textContent="Pick",F=q(),H=A("td"),T=A("div"),Y(j.$$.fragment),y(i,"class","svelte-o6raqd"),y(d,"class","jse-filter-value svelte-o6raqd"),y(o,"class","jse-horizontal svelte-o6raqd"),y(b,"class","svelte-o6raqd"),y(C,"class","jse-horizontal svelte-o6raqd"),y(M,"class","svelte-o6raqd"),y(T,"class","jse-horizontal svelte-o6raqd"),y(e,"class","jse-transform-wizard svelte-o6raqd")},m(Z,De){I(Z,e,De),S(e,t),S(t,i),S(t,r),S(t,s),S(s,o),G(l,o,null),S(o,c),G(f,o,null),S(o,h),S(o,d),cs(d,n[2]),S(e,m),S(e,p),S(p,b),S(p,g),S(p,v),S(v,C),G(R,C,null),S(C,O),G(E,C,null),S(e,N),S(e,B),S(B,M),S(B,F),S(B,H),S(H,T),G(j,T,null),ee=!0,X||(D=ne(d,"input",n[18]),X=!0)},p(Z,[De]){const U={};De&128&&(U.items=Z[7]),!a&&De&1&&(a=!0,U.value=Z[0],Dn(()=>a=!1)),l.$set(U);const Se={};!u&&De&2&&(u=!0,Se.value=Z[1],Dn(()=>u=!1)),f.$set(Se),De&4&&d.value!==Z[2]&&cs(d,Z[2]);const Ee={};De&128&&(Ee.items=Z[7]),!k&&De&8&&(k=!0,Ee.value=Z[3],Dn(()=>k=!1)),R.$set(Ee);const Re={};!L&&De&16&&(L=!0,Re.value=Z[4],Dn(()=>L=!1)),E.$set(Re);const Ve={};De&64&&(Ve.items=Z[6]),!te&&De&32&&(te=!0,Ve.value=Z[5],Dn(()=>te=!1)),j.$set(Ve)},i(Z){ee||(_(l.$$.fragment,Z),_(f.$$.fragment,Z),_(R.$$.fragment,Z),_(E.$$.fragment,Z),_(j.$$.fragment,Z),ee=!0)},o(Z){w(l.$$.fragment,Z),w(f.$$.fragment,Z),w(R.$$.fragment,Z),w(E.$$.fragment,Z),w(j.$$.fragment,Z),ee=!1},d(Z){Z&&P(e),Q(l),Q(f),Q(R),Q(E),Q(j),X=!1,D()}}}function wF(n,e,t){var te,ee,X,D,x;let i,r,s,o,l,a;const c=Kn("jsoneditor:TransformWizard");let{json:f}=e,{queryOptions:u={}}=e,{onChange:h}=e;const d=["==","!=","<","<=",">",">="].map(K=>({value:K,label:K})),m=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}];let p=(te=u==null?void 0:u.filter)!=null&&te.path?Sc(u.filter.path):null,b=(ee=u==null?void 0:u.filter)!=null&&ee.relation?d.find(K=>{var ae;return K.value===((ae=u.filter)==null?void 0:ae.relation)}):null,g=((X=u==null?void 0:u.filter)==null?void 0:X.value)||"",v=(D=u==null?void 0:u.sort)!=null&&D.path?Sc(u.sort.path):null,C=(x=u==null?void 0:u.sort)!=null&&x.direction?m.find(K=>{var ae;return K.value===((ae=u.sort)==null?void 0:ae.direction)}):null;function R(K){var ae;dt((ae=u==null?void 0:u.filter)==null?void 0:ae.path,K)||(c("changeFilterPath",K),t(10,u=Sr(u,["filter","path"],K,!0)),h(u))}function k(K){var ae;dt((ae=u==null?void 0:u.filter)==null?void 0:ae.relation,K)||(c("changeFilterRelation",K),t(10,u=Sr(u,["filter","relation"],K,!0)),h(u))}function O(K){var ae;dt((ae=u==null?void 0:u.filter)==null?void 0:ae.value,K)||(c("changeFilterValue",K),t(10,u=Sr(u,["filter","value"],K,!0)),h(u))}function E(K){var ae;dt((ae=u==null?void 0:u.sort)==null?void 0:ae.path,K)||(c("changeSortPath",K),t(10,u=Sr(u,["sort","path"],K,!0)),h(u))}function L(K){var ae;dt((ae=u==null?void 0:u.sort)==null?void 0:ae.direction,K)||(c("changeSortDirection",K),t(10,u=Sr(u,["sort","direction"],K,!0)),h(u))}function N(K){var ae;dt((ae=u==null?void 0:u.projection)==null?void 0:ae.paths,K)||(c("changeProjectionPaths",K),t(10,u=Sr(u,["projection","paths"],K,!0)),h(u))}function B(K){p=K,t(0,p)}function M(K){b=K,t(1,b)}function F(){g=this.value,t(2,g)}function H(K){v=K,t(3,v)}function T(K){C=K,t(4,C)}function j(K){a=K,t(5,a),t(10,u),t(6,l),t(13,s),t(15,i),t(11,f)}return n.$$set=K=>{"json"in K&&t(11,f=K.json),"queryOptions"in K&&t(10,u=K.queryOptions),"onChange"in K&&t(12,h=K.onChange)},n.$$.update=()=>{var K;n.$$.dirty&2048&&t(15,i=Array.isArray(f)),n.$$.dirty&34816&&t(14,r=i?eg(f):[]),n.$$.dirty&34816&&t(13,s=i?eg(f,!0):[]),n.$$.dirty&16384&&t(7,o=r.map(Sc)),n.$$.dirty&8192&&t(6,l=s?s.map(Sc):[]),n.$$.dirty&1088&&t(5,a=(K=u==null?void 0:u.projection)!=null&&K.paths&&l?u.projection.paths.map(ae=>l.find(oe=>dt(oe.value,ae))).filter(ae=>!!ae):null),n.$$.dirty&1&&R(p==null?void 0:p.value),n.$$.dirty&2&&k(b==null?void 0:b.value),n.$$.dirty&4&&O(g),n.$$.dirty&8&&E(v==null?void 0:v.value),n.$$.dirty&16&&L(C==null?void 0:C.value),n.$$.dirty&32&&N(a?a.map(ae=>ae.value):void 0)},[p,b,g,v,C,a,l,o,d,m,u,f,h,s,r,i,B,M,F,H,T,j]}class kF extends be{constructor(e){super(),ge(this,e,wF,vF,rt,{json:11,queryOptions:10,onChange:12})}}const SF=kF;function __(n,e,t){const i=n.slice();return i[5]=e[t],i}function CF(n){let e,t;return e=new bt({props:{data:Zc}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p:le,i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function AF(n){let e,t;return e=new bt({props:{data:Xc}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p:le,i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function v_(n){let e,t,i,r,s=n[5].name+"",o,l,a,c,f,u;const h=[AF,CF],d=[];function m(b,g){return b[5].id===b[0]?0:1}t=m(n),i=d[t]=h[t](n);function p(){return n[4](n[5])}return{c(){e=A("button"),i.c(),r=q(),o=me(s),l=q(),y(e,"type","button"),y(e,"class","jse-query-language svelte-ui6yg4"),y(e,"title",a=`Select ${n[5].name} as query language`),$(e,"selected",n[5].id===n[0])},m(b,g){I(b,e,g),d[t].m(e,null),S(e,r),S(e,o),S(e,l),c=!0,f||(u=ne(e,"click",p),f=!0)},p(b,g){n=b;let v=t;t=m(n),t===v?d[t].p(n,g):(re(),w(d[v],1,1,()=>{d[v]=null}),se(),i=d[t],i?i.p(n,g):(i=d[t]=h[t](n),i.c()),_(i,1),i.m(e,r)),(!c||g&2)&&s!==(s=n[5].name+"")&&Te(o,s),(!c||g&2&&a!==(a=`Select ${n[5].name} as query language`))&&y(e,"title",a),(!c||g&3)&&$(e,"selected",n[5].id===n[0])},i(b){c||(_(i),c=!0)},o(b){w(i),c=!1},d(b){b&&P(e),d[t].d(),f=!1,u()}}}function MF(n){let e,t,i,r=n[1],s=[];for(let l=0;lw(s[l],1,1,()=>{s[l]=null});return{c(){e=A("div"),t=A("div");for(let l=0;lo(a.id);return n.$$set=a=>{"queryLanguages"in a&&t(1,i=a.queryLanguages),"queryLanguageId"in a&&t(0,r=a.queryLanguageId),"onChangeQueryLanguage"in a&&t(3,s=a.onChangeQueryLanguage)},[r,i,o,s,l]}class OF extends be{constructor(e){super(),ge(this,e,TF,MF,Fe,{queryLanguages:1,queryLanguageId:0,onChangeQueryLanguage:3})}}const EF=OF;function w_(n){let e,t,i,r,s;return t=new bt({props:{data:HL}}),{c(){e=A("button"),Y(t.$$.fragment),y(e,"type","button"),y(e,"class","jse-config svelte-17t8gc5"),y(e,"title","Select a query language")},m(o,l){I(o,e,l),G(t,e,null),n[6](e),i=!0,r||(s=ne(e,"click",n[3]),r=!0)},p:le,i(o){i||(_(t.$$.fragment,o),i=!0)},o(o){w(t.$$.fragment,o),i=!1},d(o){o&&P(e),Q(t),n[6](null),r=!1,s()}}}function RF(n){let e,t,i,r,s,o,l,a,c,f=n[0].length>1&&w_(n);return o=new bt({props:{data:Fa}}),{c(){e=A("div"),t=A("div"),t.textContent="Transform",i=q(),f&&f.c(),r=q(),s=A("button"),Y(o.$$.fragment),y(t,"class","jse-title svelte-17t8gc5"),y(s,"type","button"),y(s,"class","jse-close svelte-17t8gc5"),y(e,"class","jse-header svelte-17t8gc5")},m(u,h){I(u,e,h),S(e,t),S(e,i),f&&f.m(e,null),S(e,r),S(e,s),G(o,s,null),l=!0,a||(c=ne(s,"click",n[7]),a=!0)},p(u,[h]){u[0].length>1?f?(f.p(u,h),h&1&&_(f,1)):(f=w_(u),f.c(),_(f,1),f.m(e,r)):f&&(re(),w(f,1,1,()=>{f=null}),se())},i(u){l||(_(f),_(o.$$.fragment,u),l=!0)},o(u){w(f),w(o.$$.fragment,u),l=!1},d(u){u&&P(e),f&&f.d(),Q(o),a=!1,c()}}}function PF(n,e,t){let{queryLanguages:i}=e,{queryLanguageId:r}=e,{onChangeQueryLanguage:s}=e,o,l;const{close:a}=bn("simple-modal"),{openAbsolutePopup:c,closeAbsolutePopup:f}=bn("absolute-popup");function u(){l=c(EF,{queryLanguages:i,queryLanguageId:r,onChangeQueryLanguage:p=>{f(l),s(p)}},{offsetTop:-2,offsetLeft:0,anchor:o,closeOnOuterClick:!0})}function h(m){Ue[m?"unshift":"push"](()=>{o=m,t(1,o)})}const d=()=>a();return n.$$set=m=>{"queryLanguages"in m&&t(0,i=m.queryLanguages),"queryLanguageId"in m&&t(4,r=m.queryLanguageId),"onChangeQueryLanguage"in m&&t(5,s=m.onChangeQueryLanguage)},[i,o,a,u,r,s,h,d]}class IF extends be{constructor(e){super(),ge(this,e,PF,RF,rt,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5})}}const NF=IF,Gm=Kn("jsoneditor:AutoScrollHandler");function BF(n){Gm("createAutoScrollHandler",n);let e,t;function i(c){return c<20?TE:c<50?OE:EE}function r(){if(n){const c=(e||0)*(g2/1e3);n.scrollTop+=c}}function s(c){(!t||c!==e)&&(o(),Gm("startAutoScroll",c),e=c,t=setInterval(r,g2))}function o(){t&&(Gm("stopAutoScroll"),clearInterval(t),t=void 0,e=void 0)}function l(c){if(n){const f=c.clientY,{top:u,bottom:h}=n.getBoundingClientRect();if(fh){const d=i(f-h);s(d)}else o()}}function a(){o()}return{onDrag:l,onDragEnd:a}}const DF=(n,e,t,i)=>(n/=i/2,n<1?t/2*n*n+e:(n--,-t/2*(n*(n-2)-1)+e)),t8=()=>{let n,e,t,i,r,s,o,l,a,c,f,u,h,d;function m(){return n.scrollTop}function p(R){const k=R.getBoundingClientRect().top,O=n.getBoundingClientRect?n.getBoundingClientRect().top:0;return k-O+t}function b(R){n.scrollTo?n.scrollTo(n.scrollLeft,R):n.scrollTop=R}function g(R){c||(c=R),f=R-c,u=s(f,t,l,a),b(u),d=!0,f0}function o(){return{canUndo:r(),canRedo:s(),length:t.length}}function l(){n.onChange&&n.onChange(o())}function a(h){fu("add",h),t=[h].concat(t.slice(i)).slice(0,e),i=0,l()}function c(){fu("clear"),t=[],i=0,l()}function f(){if(r()){const h=t[i];return i+=1,fu("undo",h),l(),h}}function u(){if(s())return i-=1,fu("redo",t[i]),l(),t[i]}return{add:a,clear:c,getState:o,undo:f,redo:u}}function la(n,e){const t=Date.now(),i=n(),r=Date.now();return e(r-t),i}const Zl=Kn("validation");function LF(n){const e={};return n.forEach(t=>{e[Oe(t.path)]=t}),n.forEach(t=>{let i=t.path;for(;i.length>0;){i=mt(i);const r=Oe(i);r in e||(e[r]={isChildError:!0,path:i,message:"Contains invalid data",severity:Bs.warning})}}),e}function i8(n,e,t,i){if(Zl("validateJSON"),!e)return[];if(t!==i){const r=t.stringify(n),s=r!==void 0?i.parse(r):void 0;return e(s)}else return e(n)}function xF(n,e,t,i){if(Zl("validateText"),n.length>RE)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Bs.info}]};if(n.length===0)return null;try{const r=la(()=>t.parse(n),l=>Zl(`validate: parsed json in ${l} ms`));if(!e)return null;const s=t===i?r:la(()=>i.parse(n),l=>Zl(`validate: parsed json with the validationParser in ${l} ms`)),o=la(()=>e(s),l=>Zl(`validate: validated json in ${l} ms`));return St(o)?null:{validationErrors:o}}catch(r){const s=la(()=>FF(n,t),l=>Zl(`validate: checked whether repairable in ${l} ms`));return{parseError:Da(n,r.message||r.toString()),isRepairable:s}}}function FF(n,e){if(n.length>PE)return!1;try{return e.parse(ss(n)),!0}catch{return!1}}const uu=Kn("jsoneditor:FocusTracker");function d0({onMount:n,onDestroy:e,getWindow:t,hasFocus:i,onFocus:r,onBlur:s}){let o,l=!1;function a(){const f=i();f&&(clearTimeout(o),l||(uu("focus"),r(),l=f))}function c(){l&&(clearTimeout(o),o=setTimeout(()=>{i()||(uu("blur"),l=!1,s())}))}n(()=>{uu("mount FocusTracker");const f=t();f&&(f.addEventListener("focusin",a,!0),f.addEventListener("focusout",c,!0))}),e(()=>{uu("destroy FocusTracker");const f=t();f&&(f.removeEventListener("focusin",a,!0),f.removeEventListener("focusout",c,!0))})}function k_(n,e,t){const i=n.slice();return i[9]=e[t],i}function S_(n){let e,t;return e=new bt({props:{data:n[1]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&2&&(s.data=i[1]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function C_(n){let e,t;return e=new bt({props:{data:n[9].icon}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&8&&(s.data=i[9].icon),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function A_(n){let e,t,i=n[9].text+"",r,s,o,l,a,c,f,u=n[9].icon&&C_(n);function h(){return n[7](n[9])}function d(){return n[8](n[9])}return{c(){e=A("button"),u&&u.c(),t=q(),r=me(i),s=q(),y(e,"type","button"),y(e,"class","jse-button jse-action jse-primary svelte-5juebx"),y(e,"title",o=n[9].title),e.disabled=l=n[9].disabled},m(m,p){I(m,e,p),u&&u.m(e,null),S(e,t),S(e,r),S(e,s),a=!0,c||(f=[ne(e,"click",h),ne(e,"mousedown",d)],c=!0)},p(m,p){n=m,n[9].icon?u?(u.p(n,p),p&8&&_(u,1)):(u=C_(n),u.c(),_(u,1),u.m(e,t)):u&&(re(),w(u,1,1,()=>{u=null}),se()),(!a||p&8)&&i!==(i=n[9].text+"")&&Te(r,i),(!a||p&8&&o!==(o=n[9].title))&&y(e,"title",o),(!a||p&8&&l!==(l=n[9].disabled))&&(e.disabled=l)},i(m){a||(_(u),a=!0)},o(m){w(u),a=!1},d(m){m&&P(e),u&&u.d(),c=!1,ft(f)}}}function zF(n){let e,t,i,r,s,o,l,a,c,f,u,h=n[1]&&S_(n),d=n[3],m=[];for(let b=0;bw(m[b],1,1,()=>{m[b]=null});return{c(){e=A("div"),t=A("div"),i=A("div"),h&&h.c(),r=q(),s=me(n[2]),o=q(),l=A("div");for(let b=0;b{h=null}),se()),(!c||g&4)&&Te(s,b[2]),(!c||g&16)&&$(t,"jse-clickable",!!b[4]),g&8){d=b[3];let v;for(v=0;v{h.onClick&&h.onClick()},u=h=>{h.onMouseDown&&h.onMouseDown()};return n.$$set=h=>{"type"in h&&t(0,i=h.type),"icon"in h&&t(1,r=h.icon),"message"in h&&t(2,s=h.message),"actions"in h&&t(3,o=h.actions),"onClick"in h&&t(4,l=h.onClick),"onClose"in h&&t(6,a=h.onClose)},[i,r,s,o,l,c,a,f,u]}class HF extends be{constructor(e){super(),ge(this,e,VF,zF,rt,{type:0,icon:1,message:2,actions:3,onClick:4,onClose:6})}}const Fr=HF;function M_(n,e,t){const i=n.slice();return i[7]=e[t],i[9]=t,i}function T_(n){let e,t,i,r;const s=[WF,UF],o=[];function l(a,c){return a[2]||a[3]===1?0:1}return t=l(n),i=o[t]=s[t](n),{c(){e=A("div"),i.c(),y(e,"class","jse-validation-errors-overview svelte-zpbhfa")},m(a,c){I(a,e,c),o[t].m(e,null),r=!0},p(a,c){let f=t;t=l(a),t===f?o[t].p(a,c):(re(),w(o[f],1,1,()=>{o[f]=null}),se(),i=o[t],i?i.p(a,c):(i=o[t]=s[t](a),i.c()),_(i,1),i.m(e,null))},i(a){r||(_(i),r=!0)},o(a){w(i),r=!1},d(a){a&&P(e),o[t].d()}}}function UF(n){let e,t,i,r,s,o,l,a,c,f,u,h,d,m;return s=new bt({props:{data:Ol}}),u=new bt({props:{data:F4}}),{c(){e=A("table"),t=A("tbody"),i=A("tr"),r=A("td"),Y(s.$$.fragment),o=q(),l=A("td"),a=me(n[3]),c=me(` validation errors
+ `),f=A("div"),Y(u.$$.fragment),y(r,"class","jse-validation-error-icon svelte-zpbhfa"),y(f,"class","jse-validation-errors-expand svelte-zpbhfa"),y(l,"class","jse-validation-error-count svelte-zpbhfa"),y(i,"class","jse-validation-error svelte-zpbhfa"),y(e,"class","jse-validation-errors-overview-collapsed svelte-zpbhfa")},m(p,b){I(p,e,b),S(e,t),S(t,i),S(i,r),G(s,r,null),S(i,o),S(i,l),S(l,a),S(l,c),S(l,f),G(u,f,null),h=!0,d||(m=ne(i,"click",n[5]),d=!0)},p(p,b){(!h||b&8)&&Te(a,p[3])},i(p){h||(_(s.$$.fragment,p),_(u.$$.fragment,p),h=!0)},o(p){w(s.$$.fragment,p),w(u.$$.fragment,p),h=!1},d(p){p&&P(e),Q(s),Q(u),d=!1,m()}}}function WF(n){let e,t,i,r,s=Sh(n[0],ia),o=[];for(let c=0;cw(o[c],1,1,()=>{o[c]=null});let a=n[3]>ia&&R_(n);return{c(){e=A("table"),t=A("tbody");for(let c=0;cia?a?a.p(c,f):(a=R_(c),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},i(c){if(!r){for(let f=0;f1&&O_(n);function v(){return n[6](n[7])}return{c(){e=A("tr"),t=A("td"),Y(i.$$.fragment),r=q(),s=A("td"),l=me(o),a=q(),c=A("td"),u=me(f),h=q(),d=A("td"),g&&g.c(),y(t,"class","jse-validation-error-icon svelte-zpbhfa"),y(s,"class","jse-validation-error-path svelte-zpbhfa"),y(c,"class","jse-validation-error-message svelte-zpbhfa"),y(d,"class","jse-validation-error-action svelte-zpbhfa"),y(e,"class","jse-validation-error svelte-zpbhfa")},m(C,R){I(C,e,R),S(e,t),G(i,t,null),S(e,r),S(e,s),S(s,l),S(e,a),S(e,c),S(c,u),S(e,h),S(e,d),g&&g.m(d,null),m=!0,p||(b=ne(e,"click",v),p=!0)},p(C,R){n=C,(!m||R&1)&&o!==(o=Bi(n[7].path)+"")&&Te(l,o),(!m||R&1)&&f!==(f=n[7].message+"")&&Te(u,f),n[9]===0&&n[0].length>1?g?(g.p(n,R),R&1&&_(g,1)):(g=O_(n),g.c(),_(g,1),g.m(d,null)):g&&(re(),w(g,1,1,()=>{g=null}),se())},i(C){m||(_(i.$$.fragment,C),_(g),m=!0)},o(C){w(i.$$.fragment,C),w(g),m=!1},d(C){C&&P(e),Q(i),g&&g.d(),p=!1,b()}}}function R_(n){let e,t,i,r,s,o,l,a=n[3]-ia+"",c,f,u,h;return{c(){e=A("tr"),t=A("td"),i=q(),r=A("td"),s=q(),o=A("td"),l=me("(and "),c=me(a),f=me(" more errors)"),u=q(),h=A("td"),y(t,"class","svelte-zpbhfa"),y(r,"class","svelte-zpbhfa"),y(o,"class","svelte-zpbhfa"),y(h,"class","svelte-zpbhfa"),y(e,"class","jse-validation-error svelte-zpbhfa")},m(d,m){I(d,e,m),S(e,t),S(e,i),S(e,r),S(e,s),S(e,o),S(o,l),S(o,c),S(o,f),S(e,u),S(e,h)},p(d,m){m&8&&a!==(a=d[3]-ia+"")&&Te(c,a)},d(d){d&&P(e)}}}function qF(n){let e=!St(n[0]),t,i,r=e&&T_(n);return{c(){r&&r.c(),t=Pe()},m(s,o){r&&r.m(s,o),I(s,t,o),i=!0},p(s,[o]){o&1&&(e=!St(s[0])),e?r?(r.p(s,o),o&1&&_(r,1)):(r=T_(s),r.c(),_(r,1),r.m(t.parentNode,t)):r&&(re(),w(r,1,1,()=>{r=null}),se())},i(s){i||(_(r),i=!0)},o(s){w(r),i=!1},d(s){r&&r.d(s),s&&P(t)}}}function JF(n,e,t){let i,{validationErrors:r}=e,{selectError:s}=e,o=!0;function l(){t(2,o=!1)}function a(){t(2,o=!0)}const c=f=>{setTimeout(()=>s(f))};return n.$$set=f=>{"validationErrors"in f&&t(0,r=f.validationErrors),"selectError"in f&&t(1,s=f.selectError)},n.$$.update=()=>{n.$$.dirty&1&&t(3,i=r.length)},[r,s,o,i,l,a,c]}class KF extends be{constructor(e){super(),ge(this,e,JF,qF,rt,{validationErrors:0,selectError:1})}}const m0=KF,GF=typeof navigator<"u"?navigator.platform.toUpperCase().indexOf("MAC")>=0:!1;function QF(n){let e,t,i,r,s,o,l,a,c;return o=new bt({props:{data:Fa}}),{c(){e=A("div"),t=A("div"),i=me(n[0]),r=q(),s=A("button"),Y(o.$$.fragment),y(t,"class","jse-title svelte-17t8gc5"),y(s,"type","button"),y(s,"class","jse-close svelte-17t8gc5"),y(e,"class","jse-header svelte-17t8gc5")},m(f,u){I(f,e,u),S(e,t),S(t,i),S(e,r),S(e,s),G(o,s,null),l=!0,a||(c=ne(s,"click",n[3]),a=!0)},p(f,[u]){(!l||u&1)&&Te(i,f[0])},i(f){l||(_(o.$$.fragment,f),l=!0)},o(f){w(o.$$.fragment,f),l=!1},d(f){f&&P(e),Q(o),a=!1,c()}}}function YF(n,e,t){let{title:i="Modal"}=e,{onClose:r=void 0}=e;const{close:s}=bn("simple-modal"),o=()=>{r?r():s()};return n.$$set=l=>{"title"in l&&t(0,i=l.title),"onClose"in l&&t(1,r=l.onClose)},[i,r,s,o]}class XF extends be{constructor(e){super(),ge(this,e,YF,QF,rt,{title:0,onClose:1})}}const p0=XF;function ZF(n){let e,t,i,r,s,o,l,a,c,f,u,h,d,m,p,b,g,v,C,R,k,O,E,L;return t=new p0({props:{title:"Copying and pasting"}}),{c(){e=A("div"),Y(t.$$.fragment),i=q(),r=A("div"),s=A("div"),s.textContent="These actions are unavailable via the menu. Please use:",o=q(),l=A("div"),a=A("div"),c=A("div"),c.textContent=`${n[1]}+C`,f=me(`
+ for copy`),u=q(),h=A("div"),d=A("div"),d.textContent=`${n[1]}+X`,m=me(`
+ for cut`),p=q(),b=A("div"),g=A("div"),g.textContent=`${n[1]}+V`,v=me(`
+ for paste`),C=q(),R=A("div"),k=A("button"),k.textContent="Close",y(c,"class","jse-key svelte-19rmccg"),y(a,"class","jse-shortcut"),y(d,"class","jse-key svelte-19rmccg"),y(h,"class","jse-shortcut"),y(g,"class","jse-key svelte-19rmccg"),y(b,"class","jse-shortcut"),y(l,"class","jse-shortcuts svelte-19rmccg"),y(k,"type","button"),y(k,"class","jse-primary svelte-19rmccg"),y(R,"class","jse-actions svelte-19rmccg"),y(r,"class","jse-modal-contents svelte-19rmccg"),y(e,"class","jse-modal jse-copy-paste svelte-19rmccg")},m(N,B){I(N,e,B),G(t,e,null),S(e,i),S(e,r),S(r,s),S(r,o),S(r,l),S(l,a),S(a,c),S(a,f),S(l,u),S(l,h),S(h,d),S(h,m),S(l,p),S(l,b),S(b,g),S(b,v),S(r,C),S(r,R),S(R,k),O=!0,E||(L=ne(k,"click",n[2]),E=!0)},p:le,i(N){O||(_(t.$$.fragment,N),O=!0)},o(N){w(t.$$.fragment,N),O=!1},d(N){N&&P(e),Q(t),E=!1,L()}}}function $F(n){const{close:e}=bn("simple-modal");return[e,GF?"⌘":"Ctrl",()=>e()]}class ez extends be{constructor(e){super(),ge(this,e,$F,ZF,rt,{})}}const r8=ez;function s8(n){return n?n.type==="space"||n.space===!0:!1}function $d(n){return n?n.type==="separator"||n.separator===!0:!1}function tz(n){return n?n.type==="label"&&typeof n.text=="string":!1}function If(n){return n?typeof n.onClick=="function":!1}function g0(n){return n?n.type==="dropdown-button"&&If(n.main)&&Array.isArray(n.items):!1}function nz(n){return n?n.type==="row"&&Array.isArray(n.items):!1}function iz(n){return n?n.type==="column"&&Array.isArray(n.items):!1}function P_(n){return zt(n)&&zt(n.parseError)}function rz(n){return zt(n)&&Array.isArray(n.validationErrors)}function sz(n){return zt(n)&&Array.isArray(n.path)&&typeof n.message=="string"&&"severity"in n}function oz(n){return zt(n)&&sz(n)&&typeof n.isChildError=="boolean"}function o8(n){return zt(n)&&typeof n.action=="function"&&zt(n.props)}const lz=n=>({}),I_=n=>({});function N_(n,e,t){const i=n.slice();return i[3]=e[t],i}const az=n=>({}),B_=n=>({});function cz(n){let e=x_(n[3])+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&1&&e!==(e=x_(i[3])+"")&&Te(t,e)},i:le,o:le,d(i){i&&P(t)}}}function fz(n){let e,t,i,r,s,o,l,a,c=n[3].icon&&D_(n),f=n[3].text&&j_(n);return{c(){e=A("button"),c&&c.c(),t=q(),f&&f.c(),y(e,"type","button"),y(e,"class",i="jse-button "+n[3].className+" svelte-7pi0n9"),y(e,"title",r=n[3].title),e.disabled=s=n[3].disabled||!1},m(u,h){I(u,e,h),c&&c.m(e,null),S(e,t),f&&f.m(e,null),o=!0,l||(a=ne(e,"click",function(){wn(n[3].onClick)&&n[3].onClick.apply(this,arguments)}),l=!0)},p(u,h){n=u,n[3].icon?c?(c.p(n,h),h&1&&_(c,1)):(c=D_(n),c.c(),_(c,1),c.m(e,t)):c&&(re(),w(c,1,1,()=>{c=null}),se()),n[3].text?f?f.p(n,h):(f=j_(n),f.c(),f.m(e,null)):f&&(f.d(1),f=null),(!o||h&1&&i!==(i="jse-button "+n[3].className+" svelte-7pi0n9"))&&y(e,"class",i),(!o||h&1&&r!==(r=n[3].title))&&y(e,"title",r),(!o||h&1&&s!==(s=n[3].disabled||!1))&&(e.disabled=s)},i(u){o||(_(c),o=!0)},o(u){w(c),o=!1},d(u){u&&P(e),c&&c.d(),f&&f.d(),l=!1,a()}}}function uz(n){let e;return{c(){e=A("div"),y(e,"class","jse-space svelte-7pi0n9")},m(t,i){I(t,e,i)},p:le,i:le,o:le,d(t){t&&P(e)}}}function hz(n){let e;return{c(){e=A("div"),y(e,"class","jse-separator svelte-7pi0n9")},m(t,i){I(t,e,i)},p:le,i:le,o:le,d(t){t&&P(e)}}}function D_(n){let e,t;return e=new bt({props:{data:n[3].icon}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&1&&(s.data=i[3].icon),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function j_(n){let e=n[3].text+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&1&&e!==(e=i[3].text+"")&&Te(t,e)},d(i){i&&P(t)}}}function L_(n){let e,t,i,r,s,o,l;const a=[hz,uz,fz,cz],c=[];function f(u,h){return h&1&&(e=null),h&1&&(t=null),h&1&&(i=null),e==null&&(e=!!$d(u[3])),e?0:(t==null&&(t=!!s8(u[3])),t?1:(i==null&&(i=!!If(u[3])),i?2:3))}return r=f(n,-1),s=c[r]=a[r](n),{c(){s.c(),o=Pe()},m(u,h){c[r].m(u,h),I(u,o,h),l=!0},p(u,h){let d=r;r=f(u,h),r===d?c[r].p(u,h):(re(),w(c[d],1,1,()=>{c[d]=null}),se(),s=c[r],s?s.p(u,h):(s=c[r]=a[r](u),s.c()),_(s,1),s.m(o.parentNode,o))},i(u){l||(_(s),l=!0)},o(u){w(s),l=!1},d(u){c[r].d(u),u&&P(o)}}}function dz(n){let e,t,i,r;const s=n[2].left,o=Ke(s,n,n[1],B_);let l=n[0],a=[];for(let h=0;hw(a[h],1,1,()=>{a[h]=null}),f=n[2].right,u=Ke(f,n,n[1],I_);return{c(){e=A("div"),o&&o.c(),t=q();for(let h=0;h{"items"in o&&t(0,s=o.items),"$$scope"in o&&t(1,r=o.$$scope)},[s,r,i]}class pz extends be{constructor(e){super(),ge(this,e,mz,dz,rt,{items:0})}}const em=pz;function gz(n){let e;return{c(){e=A("div"),e.textContent="Repair invalid JSON, then click apply",y(e,"slot","left"),y(e,"class","jse-info svelte-ca0j4i")},m(t,i){I(t,e,i)},p:le,d(t){t&&P(e)}}}function bz(n){let e,t;return e=new Fr({props:{type:"success",message:"JSON is valid now and can be parsed.",actions:n[5]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&32&&(s.actions=i[5]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function yz(n){let e,t;return e=new Fr({props:{type:"error",icon:Ol,message:`Cannot parse JSON: ${n[2].message}`,actions:n[6]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&4&&(s.message=`Cannot parse JSON: ${i[2].message}`),r&64&&(s.actions=i[6]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function _z(n){let e,t,i,r,s,o,l,a,c,f;t=new em({props:{items:n[4],$$slots:{left:[gz]},$$scope:{ctx:n}}});const u=[yz,bz],h=[];function d(m,p){return m[2]?0:1}return r=d(n),s=h[r]=u[r](n),{c(){e=A("div"),Y(t.$$.fragment),i=q(),s.c(),o=q(),l=A("textarea"),l.readOnly=n[1],y(l,"class","jse-json-text svelte-ca0j4i"),y(l,"autocomplete","off"),y(l,"autocapitalize","off"),y(l,"spellcheck","false"),l.value=n[0],y(e,"class","jse-json-repair-component svelte-ca0j4i")},m(m,p){I(m,e,p),G(t,e,null),S(e,i),h[r].m(e,null),S(e,o),S(e,l),n[16](l),a=!0,c||(f=ne(l,"input",n[7]),c=!0)},p(m,[p]){const b={};p&16&&(b.items=m[4]),p&8388608&&(b.$$scope={dirty:p,ctx:m}),t.$set(b);let g=r;r=d(m),r===g?h[r].p(m,p):(re(),w(h[g],1,1,()=>{h[g]=null}),se(),s=h[r],s?s.p(m,p):(s=h[r]=u[r](m),s.c()),_(s,1),s.m(e,o)),(!a||p&2)&&(l.readOnly=m[1]),(!a||p&1)&&(l.value=m[0])},i(m){a||(_(t.$$.fragment,m),_(s),a=!0)},o(m){w(t.$$.fragment,m),w(s),a=!1},d(m){m&&P(e),Q(t),h[r].d(),n[16](null),c=!1,f()}}}function vz(n,e,t){let i,r,s,o,l,a,{text:c=""}=e,{readOnly:f=!1}=e,{onParse:u}=e,{onRepair:h}=e,{onChange:d=null}=e,{onApply:m}=e,{onCancel:p}=e;const b=Kn("jsoneditor:JSONRepair");let g;function v(B){try{return u(B),null}catch(M){return Da(B,M.message)}}function C(B){try{return h(B),!0}catch{return!1}}function R(){if(g&&i){const B=i.position!=null?i.position:0;g.setSelectionRange(B,B),g.focus()}}function k(B){b("handleChange");const M=B.target.value;c!==M&&(t(0,c=M),d&&d(c))}function O(){m(c)}function E(){try{t(0,c=h(c)),d&&d(c)}catch{}}let L;function N(B){Ue[B?"unshift":"push"](()=>{g=B,t(3,g)})}return n.$$set=B=>{"text"in B&&t(0,c=B.text),"readOnly"in B&&t(1,f=B.readOnly),"onParse"in B&&t(8,u=B.onParse),"onRepair"in B&&t(9,h=B.onRepair),"onChange"in B&&t(10,d=B.onChange),"onApply"in B&&t(11,m=B.onApply),"onCancel"in B&&t(12,p=B.onCancel)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=v(c)),n.$$.dirty&1&&t(15,r=C(c)),n.$$.dirty&4&&b("error",i),n.$$.dirty&4096&&t(4,L=[{type:"space"},{type:"button",icon:Fa,title:"Cancel repair",className:"jse-cancel",onClick:p}]),n.$$.dirty&57344&&t(6,l=r?[s,o]:[s]),n.$$.dirty&2&&t(5,a=[{icon:tf,text:"Apply",title:"Apply fixed JSON",disabled:f,onClick:O}])},t(13,s={icon:JL,text:"Show me",title:"Scroll to the error location",onClick:R}),t(14,o={icon:Jd,text:"Auto repair",title:"Automatically repair JSON",onClick:E}),[c,f,i,g,L,a,l,k,u,h,d,m,p,s,o,r,N]}class wz extends be{constructor(e){super(),ge(this,e,vz,_z,rt,{text:0,readOnly:1,onParse:8,onRepair:9,onChange:10,onApply:11,onCancel:12})}}const kz=wz;let $l=[];function F_(n){if(n.key==="Escape"){const e=ht($l);e&&e()}}function tm(n,e){return St($l)&&window.addEventListener("keydown",F_),$l.push(e),{destroy:()=>{$l=$l.filter(t=>t!==e),St($l)&&window.removeEventListener("keydown",F_)}}}function Sz(n){let e,t,i,r,s,o;function l(c){n[7](c)}let a={onParse:n[1],onRepair:n[2],onApply:n[4],onCancel:n[5]};return n[0]!==void 0&&(a.text=n[0]),t=new kz({props:a}),Ue.push(()=>jn(t,"text",l)),{c(){e=A("div"),Y(t.$$.fragment),y(e,"class","jse-modal jse-repair svelte-rn18r0")},m(c,f){I(c,e,f),G(t,e,null),r=!0,s||(o=Sn(tm.call(null,e,n[3])),s=!0)},p(c,[f]){const u={};f&2&&(u.onParse=c[1]),f&4&&(u.onRepair=c[2]),!i&&f&1&&(i=!0,u.text=c[0],Dn(()=>i=!1)),t.$set(u)},i(c){r||(_(t.$$.fragment,c),r=!0)},o(c){w(t.$$.fragment,c),r=!1},d(c){c&&P(e),Q(t),s=!1,o()}}}function Cz(n,e,t){let{text:i}=e,{onParse:r}=e,{onRepair:s}=e,{onApply:o}=e;const{close:l}=bn("simple-modal");function a(u){l(),o(u)}function c(){l()}function f(u){i=u,t(0,i)}return n.$$set=u=>{"text"in u&&t(0,i=u.text),"onParse"in u&&t(1,r=u.onParse),"onRepair"in u&&t(2,s=u.onRepair),"onApply"in u&&t(6,o=u.onApply)},[i,r,s,l,a,c,o,f]}class Az extends be{constructor(e){super(),ge(this,e,Cz,Sz,rt,{text:0,onParse:1,onRepair:2,onApply:6})}}const l8=Az;function z_(n){let e,t;return e=new bt({props:{data:n[0].icon}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&1&&(s.data=i[0].icon),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function V_(n){let e=n[0].text+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&1&&e!==(e=i[0].text+"")&&Te(t,e)},d(i){i&&P(t)}}}function Mz(n){let e,t,i,r,s,o,l,a,c=n[0].icon&&z_(n),f=n[0].text&&V_(n);return{c(){e=A("button"),c&&c.c(),t=q(),f&&f.c(),y(e,"type","button"),y(e,"class",i=en(fs("jse-context-menu-button",n[1],n[0].className))+" svelte-9lvnxh"),y(e,"title",r=n[0].title),e.disabled=s=n[0].disabled||!1},m(u,h){I(u,e,h),c&&c.m(e,null),S(e,t),f&&f.m(e,null),o=!0,l||(a=ne(e,"click",n[3]),l=!0)},p(u,[h]){u[0].icon?c?(c.p(u,h),h&1&&_(c,1)):(c=z_(u),c.c(),_(c,1),c.m(e,t)):c&&(re(),w(c,1,1,()=>{c=null}),se()),u[0].text?f?f.p(u,h):(f=V_(u),f.c(),f.m(e,null)):f&&(f.d(1),f=null),(!o||h&3&&i!==(i=en(fs("jse-context-menu-button",u[1],u[0].className))+" svelte-9lvnxh"))&&y(e,"class",i),(!o||h&1&&r!==(r=u[0].title))&&y(e,"title",r),(!o||h&1&&s!==(s=u[0].disabled||!1))&&(e.disabled=s)},i(u){o||(_(c),o=!0)},o(u){w(c),o=!1},d(u){u&&P(e),c&&c.d(),f&&f.d(),l=!1,a()}}}function Tz(n,e,t){let{item:i}=e,{className:r=void 0}=e,{onCloseContextMenu:s}=e;const o=l=>{s(),i.onClick(l)};return n.$$set=l=>{"item"in l&&t(0,i=l.item),"className"in l&&t(1,r=l.className),"onCloseContextMenu"in l&&t(2,s=l.onCloseContextMenu)},[i,r,s,o]}class Oz extends be{constructor(e){super(),ge(this,e,Tz,Mz,Fe,{item:0,className:1,onCloseContextMenu:2})}}const b0=Oz;function H_(n,e,t){const i=n.slice();return i[11]=e[t],i}const Ez=n=>({}),U_=n=>({});function W_(n){let e,t;return e=new bt({props:{data:n[11].icon}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&1&&(s.data=i[11].icon),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function q_(n){let e,t,i,r=n[11].text+"",s,o,l,a,c,f,u,h,d=n[11].icon&&W_(n);function m(...p){return n[9](n[11],...p)}return{c(){e=A("li"),t=A("button"),d&&d.c(),i=q(),s=me(r),c=q(),y(t,"type","button"),y(t,"title",o=n[11].title),t.disabled=l=n[11].disabled,y(t,"class",a=en(n[11].className)+" svelte-124kopg"),y(e,"class","svelte-124kopg")},m(p,b){I(p,e,b),S(e,t),d&&d.m(t,null),S(t,i),S(t,s),S(e,c),f=!0,u||(h=ne(t,"click",m),u=!0)},p(p,b){n=p,n[11].icon?d?(d.p(n,b),b&1&&_(d,1)):(d=W_(n),d.c(),_(d,1),d.m(t,i)):d&&(re(),w(d,1,1,()=>{d=null}),se()),(!f||b&1)&&r!==(r=n[11].text+"")&&Te(s,r),(!f||b&1&&o!==(o=n[11].title))&&y(t,"title",o),(!f||b&1&&l!==(l=n[11].disabled))&&(t.disabled=l),(!f||b&1&&a!==(a=en(n[11].className)+" svelte-124kopg"))&&y(t,"class",a)},i(p){f||(_(d),f=!0)},o(p){w(d),f=!1},d(p){p&&P(e),d&&d.d(),u=!1,h()}}}function Rz(n){let e,t,i,r,s,o,l,a,c,f;const u=n[8].defaultItem,h=Ke(u,n,n[7],U_);r=new bt({props:{data:sr}});let d=n[0],m=[];for(let b=0;bw(m[b],1,1,()=>{m[b]=null});return{c(){e=A("div"),h&&h.c(),t=q(),i=A("button"),Y(r.$$.fragment),s=q(),o=A("div"),l=A("ul");for(let b=0;bt(3,c=!m))}function u(){t(3,c=!1)}function h(m){jo(m)==="Escape"&&(m.preventDefault(),t(3,c=!1))}gn(()=>{document.addEventListener("click",u),document.addEventListener("keydown",h)}),Ki(()=>{document.removeEventListener("click",u),document.removeEventListener("keydown",h)});const d=(m,p)=>m.onClick(p);return n.$$set=m=>{"items"in m&&t(0,o=m.items),"title"in m&&t(1,l=m.title),"width"in m&&t(2,a=m.width),"$$scope"in m&&t(7,s=m.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(4,i=o.every(m=>m.disabled===!0))},[o,l,a,c,i,f,u,s,r,d]}class Iz extends be{constructor(e){super(),ge(this,e,Pz,Rz,rt,{items:0,title:1,width:2})}}const Nz=Iz;function J_(n){let e,t;return e=new bt({props:{data:n[0].main.icon}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&1&&(s.data=i[0].main.icon),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function Bz(n){let e,t,i=n[0].main.text+"",r,s,o,l,a,c,f,u=n[0].main.icon&&J_(n);return{c(){e=A("button"),u&&u.c(),t=q(),r=me(i),y(e,"class",s=en(fs("jse-context-menu-button",n[1],n[0].main.className))+" svelte-9lvnxh"),y(e,"type","button"),y(e,"slot","defaultItem"),y(e,"title",o=n[0].main.title),e.disabled=l=n[0].main.disabled||!1},m(h,d){I(h,e,d),u&&u.m(e,null),S(e,t),S(e,r),a=!0,c||(f=ne(e,"click",n[3]),c=!0)},p(h,d){h[0].main.icon?u?(u.p(h,d),d&1&&_(u,1)):(u=J_(h),u.c(),_(u,1),u.m(e,t)):u&&(re(),w(u,1,1,()=>{u=null}),se()),(!a||d&1)&&i!==(i=h[0].main.text+"")&&Te(r,i),(!a||d&3&&s!==(s=en(fs("jse-context-menu-button",h[1],h[0].main.className))+" svelte-9lvnxh"))&&y(e,"class",s),(!a||d&1&&o!==(o=h[0].main.title))&&y(e,"title",o),(!a||d&1&&l!==(l=h[0].main.disabled||!1))&&(e.disabled=l)},i(h){a||(_(u),a=!0)},o(h){w(u),a=!1},d(h){h&&P(e),u&&u.d(),c=!1,f()}}}function Dz(n){let e,t;return e=new Nz({props:{width:n[0].width,items:n[0].items,$$slots:{defaultItem:[Bz]},$$scope:{ctx:n}}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,[r]){const s={};r&1&&(s.width=i[0].width),r&1&&(s.items=i[0].items),r&23&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function jz(n,e,t){let{item:i}=e,{className:r=void 0}=e,{onCloseContextMenu:s}=e;const o=l=>{s(),i.main.onClick(l)};return n.$$set=l=>{"item"in l&&t(0,i=l.item),"className"in l&&t(1,r=l.className),"onCloseContextMenu"in l&&t(2,s=l.onCloseContextMenu)},[i,r,s,o]}class Lz extends be{constructor(e){super(),ge(this,e,jz,Dz,Fe,{item:0,className:1,onCloseContextMenu:2})}}const y0=Lz;function K_(n,e,t){const i=n.slice();return i[7]=e[t],i}function G_(n,e,t){const i=n.slice();return i[10]=e[t],i}function Q_(n,e,t){const i=n.slice();return i[13]=e[t],i}function xz(n){let e=Va(n[7])+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&1&&e!==(e=Va(i[7])+"")&&Te(t,e)},i:le,o:le,d(i){i&&P(t)}}}function Fz(n){let e;return{c(){e=A("div"),y(e,"class","jse-separator svelte-1i2edl3")},m(t,i){I(t,e,i)},p:le,i:le,o:le,d(t){t&&P(e)}}}function zz(n){let e,t,i=n[7].items,r=[];for(let o=0;ow(r[o],1,1,()=>{r[o]=null});return{c(){e=A("div");for(let o=0;ow(r[o],1,1,()=>{r[o]=null});return{c(){e=A("div");for(let o=0;o{f[m]=null}),se(),o=f[s],o?o.p(h,d):(o=f[s]=c[s](h),o.c()),_(o,1),o.m(l.parentNode,l))},i(h){a||(_(o),a=!0)},o(h){w(o),a=!1},d(h){f[s].d(h),h&&P(l)}}}function X_(n){let e,t,i,r,s,o,l,a;const c=[Kz,Jz,qz,Wz,Uz],f=[];function u(h,d){return d&1&&(e=null),d&1&&(t=null),d&1&&(i=null),d&1&&(r=null),e==null&&(e=!!If(h[10])),e?0:(t==null&&(t=!!g0(h[10])),t?1:(i==null&&(i=!!iz(h[10])),i?2:(r==null&&(r=!!$d(h[10])),r?3:4)))}return s=u(n,-1),o=f[s]=c[s](n),{c(){o.c(),l=Pe()},m(h,d){f[s].m(h,d),I(h,l,d),a=!0},p(h,d){let m=s;s=u(h,d),s===m?f[s].p(h,d):(re(),w(f[m],1,1,()=>{f[m]=null}),se(),o=f[s],o?o.p(h,d):(o=f[s]=c[s](h),o.c()),_(o,1),o.m(l.parentNode,l))},i(h){a||(_(o),a=!0)},o(h){w(o),a=!1},d(h){f[s].d(h),h&&P(l)}}}function Z_(n){let e,t,i,r,s,o,l,a;const c=[Hz,Vz,zz,Fz,xz],f=[];function u(h,d){return d&1&&(e=null),d&1&&(t=null),d&1&&(i=null),d&1&&(r=null),e==null&&(e=!!If(h[7])),e?0:(t==null&&(t=!!g0(h[7])),t?1:(i==null&&(i=!!nz(h[7])),i?2:(r==null&&(r=!!$d(h[7])),r?3:4)))}return s=u(n,-1),o=f[s]=c[s](n),{c(){o.c(),l=Pe()},m(h,d){f[s].m(h,d),I(h,l,d),a=!0},p(h,d){let m=s;s=u(h,d),s===m?f[s].p(h,d):(re(),w(f[m],1,1,()=>{f[m]=null}),se(),o=f[s],o?o.p(h,d):(o=f[s]=c[s](h),o.c()),_(o,1),o.m(l.parentNode,l))},i(h){a||(_(o),a=!0)},o(h){w(o),a=!1},d(h){f[s].d(h),h&&P(l)}}}function $_(n){let e,t,i,r,s,o,l,a;return r=new bt({props:{data:$D}}),{c(){e=A("div"),t=A("div"),i=A("div"),Y(r.$$.fragment),s=q(),o=A("div"),l=me(n[2]),y(i,"class","jse-tip-icon svelte-1i2edl3"),y(o,"class","jse-tip-text"),y(t,"class","jse-tip svelte-1i2edl3"),y(e,"class","jse-row svelte-1i2edl3")},m(c,f){I(c,e,f),S(e,t),S(t,i),G(r,i,null),S(t,s),S(t,o),S(o,l),a=!0},p(c,f){(!a||f&4)&&Te(l,c[2])},i(c){a||(_(r.$$.fragment,c),a=!0)},o(c){w(r.$$.fragment,c),a=!1},d(c){c&&P(e),Q(r)}}}function $z(n){let e,t,i,r,s,o=n[0],l=[];for(let f=0;fw(l[f],1,1,()=>{l[f]=null});let c=n[2]&&$_(n);return{c(){e=A("div");for(let f=0;f{c=null}),se())},i(f){if(!i){for(let u=0;u{const f=Array.from(o.querySelectorAll("button")).find(u=>!u.disabled);f&&f.focus()});const l={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"};function a(f){const u=jo(f),h=l[u];if(h&&f.target){f.preventDefault();const d=Array.from(o.querySelectorAll("button:not([disabled])")),m=BD({allElements:d,currentElement:f.target,direction:h,hasPrio:p=>p.getAttribute("data-type")!=="jse-open-dropdown"});m&&m.focus()}}function c(f){Ue[f?"unshift":"push"](()=>{o=f,t(3,o)})}return n.$$set=f=>{"items"in f&&t(0,i=f.items),"onCloseContextMenu"in f&&t(1,r=f.onCloseContextMenu),"tip"in f&&t(2,s=f.tip)},[i,r,s,o,a,c]}class tV extends be{constructor(e){super(),ge(this,e,eV,$z,rt,{items:0,onCloseContextMenu:1,tip:2})}}const a8=tV;function nV(n){let e,t;return e=new a8({props:{items:n[2],onCloseContextMenu:n[1],tip:n[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r[0]&4&&(s.items=i[2]),r[0]&2&&(s.onCloseContextMenu=i[1]),r[0]&1&&(s.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function iV(n,e,t){let i,r,s,o,l,a,c,f,u,h,d,m,p,b,g,v,C,R,k,O,{json:E}=e,{documentState:L}=e,{parser:N}=e,{showTip:B}=e,{onCloseContextMenu:M}=e,{onRenderContextMenu:F}=e,{onEditKey:H}=e,{onEditValue:T}=e,{onToggleEnforceString:j}=e,{onCut:te}=e,{onCopy:ee}=e,{onPaste:X}=e,{onRemove:D}=e,{onDuplicate:x}=e,{onExtract:K}=e,{onInsertBefore:ae}=e,{onInsert:oe}=e,{onConvert:ue}=e,{onInsertAfter:Ne}=e,{onSort:fe}=e,{onTransform:J}=e;function Ce(Z){c?ue(Z):oe(Z)}let et;return n.$$set=Z=>{"json"in Z&&t(3,E=Z.json),"documentState"in Z&&t(4,L=Z.documentState),"parser"in Z&&t(5,N=Z.parser),"showTip"in Z&&t(0,B=Z.showTip),"onCloseContextMenu"in Z&&t(1,M=Z.onCloseContextMenu),"onRenderContextMenu"in Z&&t(6,F=Z.onRenderContextMenu),"onEditKey"in Z&&t(7,H=Z.onEditKey),"onEditValue"in Z&&t(8,T=Z.onEditValue),"onToggleEnforceString"in Z&&t(9,j=Z.onToggleEnforceString),"onCut"in Z&&t(10,te=Z.onCut),"onCopy"in Z&&t(11,ee=Z.onCopy),"onPaste"in Z&&t(12,X=Z.onPaste),"onRemove"in Z&&t(13,D=Z.onRemove),"onDuplicate"in Z&&t(14,x=Z.onDuplicate),"onExtract"in Z&&t(15,K=Z.onExtract),"onInsertBefore"in Z&&t(16,ae=Z.onInsertBefore),"onInsert"in Z&&t(17,oe=Z.onInsert),"onConvert"in Z&&t(18,ue=Z.onConvert),"onInsertAfter"in Z&&t(19,Ne=Z.onInsertAfter),"onSort"in Z&&t(20,fe=Z.onSort),"onTransform"in Z&&t(21,J=Z.onTransform)},n.$$.update=()=>{n.$$.dirty[0]&16&&t(39,i=L.selection),n.$$.dirty[0]&8&&t(41,r=E!==void 0),n.$$.dirty[1]&256&&t(33,s=!!i),n.$$.dirty[1]&256&&t(23,o=i?St(He(i)):!1),n.$$.dirty[0]&8|n.$$.dirty[1]&256&&t(40,l=i?je(E,He(i)):void 0),n.$$.dirty[1]&512&&t(37,a=Array.isArray(l)?"Edit array":zt(l)?"Edit object":"Edit value"),n.$$.dirty[1]&1280&&t(24,c=r&&(It(i)||pn(i)||_t(i))),n.$$.dirty[0]&25165824|n.$$.dirty[1]&1024&&t(32,f=r&&c&&!o),n.$$.dirty[0]&8388608|n.$$.dirty[1]&1280&&t(31,u=r&&i!=null&&(It(i)||_t(i))&&!o),n.$$.dirty[0]&8388616|n.$$.dirty[1]&1280&&t(38,h=r&&i!=null&&Th(i)&&!o&&!Array.isArray(je(E,mt(He(i))))),n.$$.dirty[1]&1280&&t(36,d=r&&i!=null&&Th(i)),n.$$.dirty[1]&544&&t(34,m=d&&!on(l)),n.$$.dirty[0]&16777216&&t(27,p=c),n.$$.dirty[0]&134217728&&t(26,b=p?"Convert to:":"Insert:"),n.$$.dirty[0]&134217728|n.$$.dirty[1]&4&&t(30,g=p?!1:s),n.$$.dirty[0]&134217728|n.$$.dirty[1]&772&&t(29,v=p?Ju(i)&&!zt(l):s),n.$$.dirty[0]&134217728|n.$$.dirty[1]&772&&t(28,C=p?Ju(i)&&!Array.isArray(l):s),n.$$.dirty[0]&134217728|n.$$.dirty[1]&772&&t(25,R=p?Ju(i)&&on(l):s),n.$$.dirty[0]&48|n.$$.dirty[1]&768&&t(35,k=i!=null&&l?Ls(l,L.enforceStringMap,Oe(He(i)),N):!1),n.$$.dirty[0]&2142896e3|n.$$.dirty[1]&255&&t(22,et=[{type:"row",items:[{type:"button",onClick:()=>H(),icon:ya,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:()=>T(),icon:ya,text:a,title:"Edit the value (Double-click on the value)",disabled:!d},width:"11em",items:[{type:"button",icon:ya,text:a,title:"Edit the value (Double-click on the value)",onClick:()=>T(),disabled:!d},{type:"button",icon:k?Xc:Zc,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:()=>j(),disabled:!m}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:()=>te(!0),icon:ba,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:ba,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:()=>te(!0),disabled:!c},{type:"button",icon:ba,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:()=>te(!1),disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:()=>ee(!0),icon:vo,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:vo,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:()=>ee(!0),disabled:!c},{type:"button",icon:vo,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:()=>ee(!1),disabled:!c}]},{type:"button",onClick:()=>X(),icon:x4,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!s}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:()=>x(),icon:H4,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!f},{type:"button",onClick:()=>K(),icon:zL,text:"Extract",title:"Extract selected contents",disabled:!u},{type:"button",onClick:()=>fe(),icon:Kd,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:()=>J(),icon:qd,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:()=>D(),icon:ag,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:b},{type:"button",onClick:()=>Ce("structure"),icon:p?lu:oa,text:"Structure",title:b+" structure",disabled:!g},{type:"button",onClick:()=>Ce("object"),icon:p?lu:oa,text:"Object",title:b+" structure",disabled:!v},{type:"button",onClick:()=>Ce("array"),icon:p?lu:oa,text:"Array",title:b+" array",disabled:!C},{type:"button",onClick:()=>Ce("value"),icon:p?lu:oa,text:"Value",title:b+" value",disabled:!R}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:()=>ae(),icon:DL,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||o},{type:"button",onClick:()=>Ne(),icon:RL,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||o}]}]),n.$$.dirty[0]&4194368&&t(2,O=F(et))},[B,M,O,E,L,N,F,H,T,j,te,ee,X,D,x,K,ae,oe,ue,Ne,fe,J,et,o,c,R,b,p,C,v,g,u,f,s,m,k,d,a,h,i,l,r]}class rV extends be{constructor(e){super(),ge(this,e,iV,nV,rt,{json:3,documentState:4,parser:5,showTip:0,onCloseContextMenu:1,onRenderContextMenu:6,onEditKey:7,onEditValue:8,onToggleEnforceString:9,onCut:10,onCopy:11,onPaste:12,onRemove:13,onDuplicate:14,onExtract:15,onInsertBefore:16,onInsert:17,onConvert:18,onInsertAfter:19,onSort:20,onTransform:21},null,[-1,-1])}}const sV=rV;function ev(n,e,t){const i=n.slice();return i[13]=e[t],i}function tv(n){let e,t,i=n[13].start+"",r,s,o=n[13].end+"",l,a,c,f;function u(){return n[12](n[13])}return{c(){e=A("button"),t=me("show "),r=me(i),s=me("-"),l=me(o),a=q(),y(e,"type","button"),y(e,"class","jse-expand-items svelte-gr6i82")},m(h,d){I(h,e,d),S(e,t),S(e,r),S(e,s),S(e,l),S(e,a),c||(f=ne(e,"click",u),c=!0)},p(h,d){n=h,d&16&&i!==(i=n[13].start+"")&&Te(r,i),d&16&&o!==(o=n[13].end+"")&&Te(l,o)},d(h){h&&P(e),c=!1,f()}}}function oV(n){let e,t,i,r,s,o,l,a,c,f,u=n[4],h=[];for(let d=0;dd(u,b);return n.$$set=b=>{"visibleSections"in b&&t(6,a=b.visibleSections),"sectionIndex"in b&&t(7,c=b.sectionIndex),"total"in b&&t(8,f=b.total),"path"in b&&t(0,u=b.path),"selection"in b&&t(9,h=b.selection),"onExpandSection"in b&&t(1,d=b.onExpandSection),"context"in b&&t(10,m=b.context)},n.$$.update=()=>{n.$$.dirty&192&&t(11,i=a[c]),n.$$.dirty&2048&&t(3,r=i.end),n.$$.dirty&448&&t(2,s=a[c+1]?a[c+1].start:f),n.$$.dirty&1545&&t(5,o=ef(m.getJson(),h,u.concat(String(r)))),n.$$.dirty&12&&t(4,l=Aj(r,s))},[u,d,s,r,l,o,a,c,f,h,m,i,p]}class cV extends be{constructor(e){super(),ge(this,e,aV,oV,rt,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10})}}const fV=cV;function uV(n){let e,t,i,r,s;return t=new bt({props:{data:sr}}),{c(){e=A("button"),Y(t.$$.fragment),y(e,"type","button"),y(e,"class","jse-context-menu-pointer svelte-11pcr4t"),y(e,"title",B1),$(e,"jse-selected",n[0])},m(o,l){I(o,e,l),G(t,e,null),i=!0,r||(s=ne(e,"click",n[1]),r=!0)},p(o,[l]){(!i||l&1)&&$(e,"jse-selected",o[0])},i(o){i||(_(t.$$.fragment,o),i=!0)},o(o){w(t.$$.fragment,o),i=!1},d(o){o&&P(e),Q(t),r=!1,s()}}}function hV(n,e,t){let{selected:i}=e,{onContextMenu:r}=e;function s(o){let l=o.target;for(;l&&l.nodeName!=="BUTTON";)l=l.parentNode;l&&r({anchor:l,left:0,top:0,width:Rs,height:Es,offsetTop:2,offsetLeft:0,showTip:!0})}return n.$$set=o=>{"selected"in o&&t(0,i=o.selected),"onContextMenu"in o&&t(2,r=o.onContextMenu)},[i,s,r]}class dV extends be{constructor(e){super(),ge(this,e,hV,uV,rt,{selected:0,onContextMenu:2})}}const xo=dV;function mV(n){let e,t,i,r,s,o,l;const a=[bV,gV],c=[];function f(u,h){return u[1]?0:1}return t=f(n),i=c[t]=a[t](n),{c(){e=A("div"),i.c(),y(e,"role","none"),y(e,"data-type","selectable-key"),y(e,"class",r=en(n[6](n[0]))+" svelte-1y4e50b")},m(u,h){I(u,e,h),c[t].m(e,null),s=!0,o||(l=ne(e,"dblclick",n[5]),o=!0)},p(u,h){let d=t;t=f(u),t===d?c[t].p(u,h):(re(),w(c[d],1,1,()=>{c[d]=null}),se(),i=c[t],i?i.p(u,h):(i=c[t]=a[t](u),i.c()),_(i,1),i.m(e,null)),(!s||h&1&&r!==(r=en(u[6](u[0]))+" svelte-1y4e50b"))&&y(e,"class",r)},i(u){s||(_(i),s=!0)},o(u){w(i),s=!1},d(u){u&&P(e),c[t].d(),o=!1,l()}}}function pV(n){let e,t;return e=new P4({props:{value:n[2].normalization.escapeValue(n[0]),shortText:!0,onChange:n[7],onCancel:n[8],onFind:n[2].onFind}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&5&&(s.value=i[2].normalization.escapeValue(i[0])),r&4&&(s.onFind=i[2].onFind),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function gV(n){let e=ml(n[2].normalization.escapeValue(n[0]))+"",t;return{c(){t=me(e)},m(i,r){I(i,t,r)},p(i,r){r&5&&e!==(e=ml(i[2].normalization.escapeValue(i[0]))+"")&&Te(t,e)},i:le,o:le,d(i){i&&P(t)}}}function bV(n){let e,t;return e=new L4({props:{text:n[2].normalization.escapeValue(n[0]),searchResultItems:n[1]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&5&&(s.text=i[2].normalization.escapeValue(i[0])),r&2&&(s.searchResultItems=i[1]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function nv(n){let e,t;return e=new xo({props:{selected:!0,onContextMenu:n[2].onContextMenu}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r&4&&(s.onContextMenu=i[2].onContextMenu),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function yV(n){let e,t,i,r,s;const o=[pV,mV],l=[];function a(f,u){return!f[2].readOnly&&f[4]?0:1}e=a(n),t=l[e]=o[e](n);let c=!n[2].readOnly&&n[3]&&!n[4]&&nv(n);return{c(){t.c(),i=q(),c&&c.c(),r=Pe()},m(f,u){l[e].m(f,u),I(f,i,u),c&&c.m(f,u),I(f,r,u),s=!0},p(f,[u]){let h=e;e=a(f),e===h?l[e].p(f,u):(re(),w(l[h],1,1,()=>{l[h]=null}),se(),t=l[e],t?t.p(f,u):(t=l[e]=o[e](f),t.c()),_(t,1),t.m(i.parentNode,i)),!f[2].readOnly&&f[3]&&!f[4]?c?(c.p(f,u),u&28&&_(c,1)):(c=nv(f),c.c(),_(c,1),c.m(r.parentNode,r)):c&&(re(),w(c,1,1,()=>{c=null}),se())},i(f){s||(_(t),_(c),s=!0)},o(f){w(t),w(c),s=!1},d(f){l[e].d(f),f&&P(i),c&&c.d(f),f&&P(r)}}}function _V(n,e,t){let i,r,{path:s}=e,{key:o}=e,{selection:l}=e,{searchResultItems:a}=e,{onUpdateKey:c}=e,{context:f}=e;function u(p){!r&&!f.readOnly&&(p.preventDefault(),f.onSelect(cr(s,!0)))}function h(p){return fs("jse-key",{"jse-empty":p===""})}function d(p,b){const g=c(o,f.normalization.unescapeValue(p)),v=mt(s).concat(g);f.onSelect(b===_o.nextInside?at(v,!1):cr(v,!1)),b!==_o.self&&f.focus()}function m(){f.onSelect(cr(s,!1)),f.focus()}return n.$$set=p=>{"path"in p&&t(9,s=p.path),"key"in p&&t(0,o=p.key),"selection"in p&&t(10,l=p.selection),"searchResultItems"in p&&t(1,a=p.searchResultItems),"onUpdateKey"in p&&t(11,c=p.onUpdateKey),"context"in p&&t(2,f=p.context)},n.$$.update=()=>{n.$$.dirty&1536&&t(3,i=l?pn(l)&&dt(l.path,s):!1),n.$$.dirty&1032&&t(4,r=i&&bi(l))},[o,a,f,i,r,u,h,d,m,s,l,c]}class vV extends be{constructor(e){super(),ge(this,e,_V,yV,rt,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2})}}const wV=vV;function iv(n,e,t){const i=n.slice();return i[8]=e[t],i}function kV(n){const e=n.slice(),t=e[8].action;return e[11]=t,e}function SV(n){let e=n[8].component,t,i,r=rv(n);return{c(){r.c(),t=Pe()},m(s,o){r.m(s,o),I(s,t,o),i=!0},p(s,o){o&1&&rt(e,e=s[8].component)?(re(),w(r,1,1,le),se(),r=rv(s),r.c(),_(r,1),r.m(t.parentNode,t)):r.p(s,o)},i(s){i||(_(r),i=!0)},o(s){w(r),i=!1},d(s){s&&P(t),r.d(s)}}}function CV(n){let e=n[8].action,t,i=sv(n);return{c(){i.c(),t=Pe()},m(r,s){i.m(r,s),I(r,t,s)},p(r,s){s&1&&rt(e,e=r[8].action)?(i.d(1),i=sv(r),i.c(),i.m(t.parentNode,t)):i.p(r,s)},i:le,o:le,d(r){r&&P(t),i.d(r)}}}function rv(n){let e,t,i;const r=[n[8].props];var s=n[8].component;function o(l){let a={};for(let c=0;c{Q(f,1)}),se()}s?(e=Tt(s,o()),Y(e.$$.fragment),_(e.$$.fragment,1),G(e,t.parentNode,t)):e=null}else s&&e.$set(c)},i(l){i||(e&&_(e.$$.fragment,l),i=!0)},o(l){e&&w(e.$$.fragment,l),i=!1},d(l){l&&P(t),e&&Q(e,l)}}}function sv(n){let e,t,i,r;return{c(){e=A("div"),y(e,"role","button"),y(e,"tabindex","-1"),y(e,"class","jse-value jse-readonly-password"),y(e,"data-type","selectable-value")},m(s,o){I(s,e,o),i||(r=Sn(t=n[11].call(null,e,n[8].props)),i=!0)},p(s,o){n=s,t&&wn(t.update)&&o&1&&t.update.call(null,n[8].props)},d(s){s&&P(e),i=!1,r()}}}function ov(n){let e,t,i,r,s;const o=[CV,SV],l=[];function a(f,u){return u&1&&(e=null),e==null&&(e=!!o8(f[8])),e?0:1}function c(f,u){return u===0?kV(f):f}return t=a(n,-1),i=l[t]=o[t](c(n,t)),{c(){i.c(),r=Pe()},m(f,u){l[t].m(f,u),I(f,r,u),s=!0},p(f,u){let h=t;t=a(f,u),t===h?l[t].p(c(f,t),u):(re(),w(l[h],1,1,()=>{l[h]=null}),se(),i=l[t],i?i.p(c(f,t),u):(i=l[t]=o[t](c(f,t)),i.c()),_(i,1),i.m(r.parentNode,r))},i(f){s||(_(i),s=!0)},o(f){w(i),s=!1},d(f){l[t].d(f),f&&P(r)}}}function AV(n){let e,t,i=n[0],r=[];for(let o=0;ow(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;o{"path"in u&&t(1,s=u.path),"value"in u&&t(2,o=u.value),"context"in u&&t(3,l=u.context),"enforceString"in u&&t(4,a=u.enforceString),"selection"in u&&t(5,c=u.selection),"searchResultItems"in u&&t(6,f=u.searchResultItems)},n.$$.update=()=>{n.$$.dirty&32&&t(7,i=_t(c)&&bi(c)),n.$$.dirty&254&&t(0,r=l.onRenderValue({path:s,value:o,readOnly:l.readOnly,enforceString:a,isEditing:i,parser:l.parser,normalization:l.normalization,selection:c,searchResultItems:f,onPatch:l.onPatch,onPasteJson:l.onPasteJson,onSelect:l.onSelect,onFind:l.onFind,findNextInside:l.findNextInside,focus:l.focus}))},[r,s,o,l,a,c,f,i]}let TV=class extends be{constructor(e){super(),ge(this,e,MV,AV,rt,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6})}};const OV=TV,Pn={selecting:!1,selectionAnchor:null,selectionAnchorType:null,selectionFocus:null,dragging:!1};function Qm({json:n,documentState:e,deltaY:t,items:i}){if(!e.selection)return{operations:void 0,updatedSelection:null,offset:0};const r=e.selection,s=t<0?EV({json:n,selection:r,deltaY:t,items:i}):RV({json:n,selection:r,deltaY:t,items:i});if(!s||s.offset===0)return{operations:void 0,updatedSelection:null,offset:0};const o=Xj(n,r,s),l=mt(xs(n,r)),a=je(n,l);if(Array.isArray(a)){const c=PV({items:i,json:n,selection:r,offset:s.offset});return{operations:o,updatedSelection:c,offset:s.offset}}else return{operations:o,updatedSelection:null,offset:s.offset}}function EV({json:n,items:e,selection:t,deltaY:i}){const r=xs(n,t),s=e.findIndex(u=>dt(u.path,r)),o=()=>{var u;return(u=e[l-1])==null?void 0:u.height};let l=s,a=0;for(;o()!==void 0&&Math.abs(i)>a+o()/2;)a+=o(),l-=1;const c=e[l].path,f=l-s;return l!==s&&e[l]!==void 0?{beforePath:c,offset:f}:void 0}function RV({json:n,items:e,selection:t,deltaY:i}){var p;const r=Lo(n,t),s=e.findIndex(b=>dt(b.path,r));let o=0,l=s;const a=()=>{var b;return(b=e[l+1])==null?void 0:b.height};for(;a()!==void 0&&Math.abs(i)>o+a()/2;)o+=a(),l+=1;const c=mt(r),f=je(n,c),h=Array.isArray(f)?l:l+1,d=(p=e[h])==null?void 0:p.path,m=l-s;return d?{beforePath:d,offset:m}:{append:!0,offset:m}}function PV({items:n,json:e,selection:t,offset:i}){var f,u;const r=xs(e,t),s=Lo(e,t),o=n.findIndex(h=>dt(h.path,r)),l=n.findIndex(h=>dt(h.path,s)),a=(f=n[o+i])==null?void 0:f.path,c=(u=n[l+i])==null?void 0:u.path;return mi(a,c)}function IV(n,e){if(!n)return;const t={};for(const i of Object.keys(n))e(i,n[i])&&(t[i]=n[i]);return Object.keys(t).length>0?t:void 0}function qr(n,e){return IV(n,t=>Md(t,e))}function NV(n){let e,t,i,r,s,o;return t=new bt({props:{data:Ol}}),{c(){e=A("button"),Y(t.$$.fragment),y(e,"type","button"),y(e,"class","jse-validation-error svelte-g0bfge")},m(l,a){I(l,e,a),G(t,e,null),r=!0,s||(o=[ne(e,"click",function(){wn(n[0])&&n[0].apply(this,arguments)}),Sn(i=o0.call(null,e,{text:n[1],...n[2]}))],s=!0)},p(l,[a]){n=l,i&&wn(i.update)&&a&2&&i.update.call(null,{text:n[1],...n[2]})},i(l){r||(_(t.$$.fragment,l),r=!0)},o(l){w(t.$$.fragment,l),r=!1},d(l){l&&P(e),Q(t),s=!1,ft(o)}}}function BV(n,e,t){let i;const r=bn("absolute-popup");let{validationError:s}=e,{onExpand:o}=e;return n.$$set=l=>{"validationError"in l&&t(3,s=l.validationError),"onExpand"in l&&t(0,o=l.onExpand)},n.$$.update=()=>{n.$$.dirty&8&&t(1,i=oz(s)&&s.isChildError?"Contains invalid data":s.message)},[o,i,r,s]}class DV extends be{constructor(e){super(),ge(this,e,BV,NV,Fe,{validationError:3,onExpand:0})}}const tc=DV,jV=n=>({}),lv=n=>({});function av(n,e,t){const i=n.slice();return i[52]=e[t],i}const LV=n=>({}),cv=n=>({});function fv(n,e,t){const i=n.slice();return i[46]=e[t],i[48]=t,i}function uv(n,e,t){const i=n.slice();return i[49]=e[t],i}const xV=n=>({}),hv=n=>({});function FV(n){let e,t,i,r,s,o,l=!n[8].readOnly&&n[16]&&n[7]&&(_t(n[7])||It(n[7]))&&!bi(n[7])&&dt(He(n[7]),n[1]),a,c,f;const u=n[33].identifier,h=Ke(u,n,n[34],lv);let d=!n[17]&&dv();s=new OV({props:{path:n[1],value:n[0],enforceString:n[13]||!1,selection:n[16]?n[7]:null,searchResultItems:Ny(n[6],n[9]),context:n[8]}});let m=l&&mv(n),p=n[15]&&pv(n),b=!n[17]&&gv(n);return{c(){e=A("div"),t=A("div"),h&&h.c(),i=q(),d&&d.c(),r=q(),Y(s.$$.fragment),o=q(),m&&m.c(),a=q(),p&&p.c(),c=q(),b&&b.c(),y(t,"class","jse-contents svelte-yxg7gq"),y(e,"class","jse-contents-outer svelte-yxg7gq")},m(g,v){I(g,e,v),S(e,t),h&&h.m(t,null),S(t,i),d&&d.m(t,null),S(t,r),G(s,t,null),S(t,o),m&&m.m(t,null),S(e,a),p&&p.m(e,null),S(e,c),b&&b.m(e,null),f=!0},p(g,v){h&&h.p&&(!f||v[1]&8)&&Qe(h,u,g,g[34],f?Ge(u,g[34],v,jV):Ye(g[34]),lv),g[17]?d&&(d.d(1),d=null):d||(d=dv(),d.c(),d.m(t,r));const C={};v[0]&2&&(C.path=g[1]),v[0]&1&&(C.value=g[0]),v[0]&8192&&(C.enforceString=g[13]||!1),v[0]&65664&&(C.selection=g[16]?g[7]:null),v[0]&576&&(C.searchResultItems=Ny(g[6],g[9])),v[0]&256&&(C.context=g[8]),s.$set(C),v[0]&65922&&(l=!g[8].readOnly&&g[16]&&g[7]&&(_t(g[7])||It(g[7]))&&!bi(g[7])&&dt(He(g[7]),g[1])),l?m?(m.p(g,v),v[0]&65922&&_(m,1)):(m=mv(g),m.c(),_(m,1),m.m(t,null)):m&&(re(),w(m,1,1,()=>{m=null}),se()),g[15]?p?(p.p(g,v),v[0]&32768&&_(p,1)):(p=pv(g),p.c(),_(p,1),p.m(e,c)):p&&(re(),w(p,1,1,()=>{p=null}),se()),g[17]?b&&(b.d(1),b=null):b?b.p(g,v):(b=gv(g),b.c(),b.m(e,null))},i(g){f||(_(h,g),_(s.$$.fragment,g),_(m),_(p),f=!0)},o(g){w(h,g),w(s.$$.fragment,g),w(m),w(p),f=!1},d(g){g&&P(e),h&&h.d(g),d&&d.d(),Q(s),m&&m.d(),p&&p.d(),b&&b.d()}}}function zV(n){let e,t,i,r,s,o,l,a,c,f,u,h=!n[8].readOnly&&n[16]&&n[7]&&(_t(n[7])||It(n[7]))&&!bi(n[7])&&dt(He(n[7]),n[1]),d,m,p,b,g,v,C;const R=[UV,HV],k=[];function O(D,x){return D[12]?0:1}r=O(n),s=k[r]=R[r](n);const E=n[33].identifier,L=Ke(E,n,n[34],cv);let N=!n[17]&&bv();function B(D,x){return D[12]?qV:WV}let M=B(n),F=M(n),H=h&&yv(n),T=n[15]&&(!n[12]||!n[15].isChildError)&&_v(n);function j(D,x){if(D[12])return KV;if(!D[17])return JV}let te=j(n),ee=te&&te(n),X=n[12]&&vv(n);return{c(){e=A("div"),t=A("div"),i=A("button"),s.c(),o=q(),L&&L.c(),l=q(),N&&N.c(),a=q(),c=A("div"),f=A("div"),F.c(),u=q(),H&&H.c(),d=q(),T&&T.c(),m=q(),ee&&ee.c(),p=q(),X&&X.c(),b=Pe(),y(i,"type","button"),y(i,"class","jse-expand svelte-yxg7gq"),y(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),y(f,"class","jse-meta-inner svelte-yxg7gq"),y(c,"class","jse-meta svelte-yxg7gq"),y(c,"data-type","selectable-value"),y(t,"class","jse-header svelte-yxg7gq"),y(e,"class","jse-header-outer svelte-yxg7gq")},m(D,x){I(D,e,x),S(e,t),S(t,i),k[r].m(i,null),S(t,o),L&&L.m(t,null),S(t,l),N&&N.m(t,null),S(t,a),S(t,c),S(c,f),F.m(f,null),S(t,u),H&&H.m(t,null),S(e,d),T&&T.m(e,null),S(e,m),ee&&ee.m(e,null),I(D,p,x),X&&X.m(D,x),I(D,b,x),g=!0,v||(C=ne(i,"click",n[20]),v=!0)},p(D,x){let K=r;r=O(D),r===K?k[r].p(D,x):(re(),w(k[K],1,1,()=>{k[K]=null}),se(),s=k[r],s?s.p(D,x):(s=k[r]=R[r](D),s.c()),_(s,1),s.m(i,null)),L&&L.p&&(!g||x[1]&8)&&Qe(L,E,D,D[34],g?Ge(E,D[34],x,LV):Ye(D[34]),cv),D[17]?N&&(N.d(1),N=null):N||(N=bv(),N.c(),N.m(t,a)),M===(M=B(D))&&F?F.p(D,x):(F.d(1),F=M(D),F&&(F.c(),F.m(f,null))),x[0]&65922&&(h=!D[8].readOnly&&D[16]&&D[7]&&(_t(D[7])||It(D[7]))&&!bi(D[7])&&dt(He(D[7]),D[1])),h?H?(H.p(D,x),x[0]&65922&&_(H,1)):(H=yv(D),H.c(),_(H,1),H.m(t,null)):H&&(re(),w(H,1,1,()=>{H=null}),se()),D[15]&&(!D[12]||!D[15].isChildError)?T?(T.p(D,x),x[0]&36864&&_(T,1)):(T=_v(D),T.c(),_(T,1),T.m(e,m)):T&&(re(),w(T,1,1,()=>{T=null}),se()),te===(te=j(D))&&ee?ee.p(D,x):(ee&&ee.d(1),ee=te&&te(D),ee&&(ee.c(),ee.m(e,null))),D[12]?X?(X.p(D,x),x[0]&4096&&_(X,1)):(X=vv(D),X.c(),_(X,1),X.m(b.parentNode,b)):X&&(re(),w(X,1,1,()=>{X=null}),se())},i(D){g||(_(s),_(L,D),_(H),_(T),_(X),g=!0)},o(D){w(s),w(L,D),w(H),w(T),w(X),g=!1},d(D){D&&P(e),k[r].d(),L&&L.d(D),N&&N.d(),F.d(),H&&H.d(),T&&T.d(),ee&&ee.d(),D&&P(p),X&&X.d(D),D&&P(b),v=!1,C()}}}function VV(n){let e,t,i,r,s,o,l,a,c,f,u,h=!n[8].readOnly&&n[16]&&n[7]&&(_t(n[7])||It(n[7]))&&!bi(n[7])&&dt(He(n[7]),n[1]),d,m,p,b,g,v,C;const R=[YV,QV],k=[];function O(D,x){return D[12]?0:1}r=O(n),s=k[r]=R[r](n);const E=n[33].identifier,L=Ke(E,n,n[34],hv);let N=!n[17]&&Cv();function B(D,x){return D[12]?ZV:XV}let M=B(n),F=M(n),H=h&&Av(n),T=n[15]&&(!n[12]||!n[15].isChildError)&&Mv(n);function j(D,x){return D[12]?eH:$V}let te=j(n),ee=te(n),X=n[12]&&Tv(n);return{c(){e=A("div"),t=A("div"),i=A("button"),s.c(),o=q(),L&&L.c(),l=q(),N&&N.c(),a=q(),c=A("div"),f=A("div"),F.c(),u=q(),H&&H.c(),d=q(),T&&T.c(),m=q(),ee.c(),p=q(),X&&X.c(),b=Pe(),y(i,"type","button"),y(i,"class","jse-expand svelte-yxg7gq"),y(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),y(f,"class","jse-meta-inner svelte-yxg7gq"),y(f,"data-type","selectable-value"),y(c,"class","jse-meta svelte-yxg7gq"),y(t,"class","jse-header svelte-yxg7gq"),y(e,"class","jse-header-outer svelte-yxg7gq")},m(D,x){I(D,e,x),S(e,t),S(t,i),k[r].m(i,null),S(t,o),L&&L.m(t,null),S(t,l),N&&N.m(t,null),S(t,a),S(t,c),S(c,f),F.m(f,null),S(t,u),H&&H.m(t,null),S(e,d),T&&T.m(e,null),S(e,m),ee.m(e,null),I(D,p,x),X&&X.m(D,x),I(D,b,x),g=!0,v||(C=ne(i,"click",n[20]),v=!0)},p(D,x){let K=r;r=O(D),r===K?k[r].p(D,x):(re(),w(k[K],1,1,()=>{k[K]=null}),se(),s=k[r],s?s.p(D,x):(s=k[r]=R[r](D),s.c()),_(s,1),s.m(i,null)),L&&L.p&&(!g||x[1]&8)&&Qe(L,E,D,D[34],g?Ge(E,D[34],x,xV):Ye(D[34]),hv),D[17]?N&&(N.d(1),N=null):N||(N=Cv(),N.c(),N.m(t,a)),M===(M=B(D))&&F?F.p(D,x):(F.d(1),F=M(D),F&&(F.c(),F.m(f,null))),x[0]&65922&&(h=!D[8].readOnly&&D[16]&&D[7]&&(_t(D[7])||It(D[7]))&&!bi(D[7])&&dt(He(D[7]),D[1])),h?H?(H.p(D,x),x[0]&65922&&_(H,1)):(H=Av(D),H.c(),_(H,1),H.m(t,null)):H&&(re(),w(H,1,1,()=>{H=null}),se()),D[15]&&(!D[12]||!D[15].isChildError)?T?(T.p(D,x),x[0]&36864&&_(T,1)):(T=Mv(D),T.c(),_(T,1),T.m(e,m)):T&&(re(),w(T,1,1,()=>{T=null}),se()),te===(te=j(D))&&ee?ee.p(D,x):(ee.d(1),ee=te(D),ee&&(ee.c(),ee.m(e,null))),D[12]?X?(X.p(D,x),x[0]&4096&&_(X,1)):(X=Tv(D),X.c(),_(X,1),X.m(b.parentNode,b)):X&&(re(),w(X,1,1,()=>{X=null}),se())},i(D){g||(_(s),_(L,D),_(H),_(T),_(X),g=!0)},o(D){w(s),w(L,D),w(H),w(T),w(X),g=!1},d(D){D&&P(e),k[r].d(),L&&L.d(D),N&&N.d(),F.d(),H&&H.d(),T&&T.d(),ee.d(),D&&P(p),X&&X.d(D),D&&P(b),v=!1,C()}}}function dv(n){let e;return{c(){e=A("div"),e.textContent=":",y(e,"class","jse-separator svelte-yxg7gq")},m(t,i){I(t,e,i)},d(t){t&&P(e)}}}function mv(n){let e,t,i;return t=new xo({props:{selected:!0,onContextMenu:n[8].onContextMenu}}),{c(){e=A("div"),Y(t.$$.fragment),y(e,"class","jse-context-menu-pointer-anchor svelte-yxg7gq")},m(r,s){I(r,e,s),G(t,e,null),i=!0},p(r,s){const o={};s[0]&256&&(o.onContextMenu=r[8].onContextMenu),t.$set(o)},i(r){i||(_(t.$$.fragment,r),i=!0)},o(r){w(t.$$.fragment,r),i=!1},d(r){r&&P(e),Q(t)}}}function pv(n){let e,t;return e=new tc({props:{validationError:n[15],onExpand:n[21]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r[0]&32768&&(s.validationError=i[15]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function gv(n){let e,t,i;return{c(){e=A("div"),y(e,"role","none"),y(e,"class","jse-insert-selection-area jse-after svelte-yxg7gq"),y(e,"data-type","insert-selection-area-after")},m(r,s){I(r,e,s),t||(i=ne(e,"click",n[29]),t=!0)},p:le,d(r){r&&P(e),t=!1,i()}}}function HV(n){let e,t;return e=new bt({props:{data:uo}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p:le,i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function UV(n){let e,t;return e=new bt({props:{data:sr}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p:le,i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function bv(n){let e;return{c(){e=A("div"),e.textContent=":",y(e,"class","jse-separator svelte-yxg7gq")},m(t,i){I(t,e,i)},d(t){t&&P(e)}}}function WV(n){let e,t,i,r=Object.keys(n[0]).length+"",s,o,l=Object.keys(n[0]).length===1?"prop":"props",a,c,f,u,h;return{c(){e=A("div"),e.textContent="{",t=q(),i=A("button"),s=me(r),o=q(),a=me(l),c=q(),f=A("div"),f.textContent="}",y(e,"class","jse-bracket svelte-yxg7gq"),y(i,"type","button"),y(i,"class","jse-tag svelte-yxg7gq"),y(f,"class","jse-bracket svelte-yxg7gq")},m(d,m){I(d,e,m),I(d,t,m),I(d,i,m),S(i,s),S(i,o),S(i,a),I(d,c,m),I(d,f,m),u||(h=ne(i,"click",n[21]),u=!0)},p(d,m){m[0]&1&&r!==(r=Object.keys(d[0]).length+"")&&Te(s,r),m[0]&1&&l!==(l=Object.keys(d[0]).length===1?"prop":"props")&&Te(a,l)},d(d){d&&P(e),d&&P(t),d&&P(i),d&&P(c),d&&P(f),u=!1,h()}}}function qV(n){let e;return{c(){e=A("div"),e.textContent="{",y(e,"class","jse-bracket jse-expanded svelte-yxg7gq")},m(t,i){I(t,e,i)},p:le,d(t){t&&P(e)}}}function yv(n){let e,t,i;return t=new xo({props:{selected:!0,onContextMenu:n[8].onContextMenu}}),{c(){e=A("div"),Y(t.$$.fragment),y(e,"class","jse-context-menu-pointer-anchor svelte-yxg7gq")},m(r,s){I(r,e,s),G(t,e,null),i=!0},p(r,s){const o={};s[0]&256&&(o.onContextMenu=r[8].onContextMenu),t.$set(o)},i(r){i||(_(t.$$.fragment,r),i=!0)},o(r){w(t.$$.fragment,r),i=!1},d(r){r&&P(e),Q(t)}}}function _v(n){let e,t;return e=new tc({props:{validationError:n[15],onExpand:n[21]}}),{c(){Y(e.$$.fragment)},m(i,r){G(e,i,r),t=!0},p(i,r){const s={};r[0]&32768&&(s.validationError=i[15]),e.$set(s)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){w(e.$$.fragment,i),t=!1},d(i){Q(e,i)}}}function JV(n){let e,t,i;return{c(){e=A("div"),y(e,"role","none"),y(e,"class","jse-insert-selection-area jse-after svelte-yxg7gq"),y(e,"data-type","insert-selection-area-after")},m(r,s){I(r,e,s),t||(i=ne(e,"click",n[29]),t=!0)},p:le,d(r){r&&P(e),t=!1,i()}}}function KV(n){let e,t,i;return{c(){e=A("div"),y(e,"role","none"),y(e,"class","jse-insert-selection-area jse-inside svelte-yxg7gq"),y(e,"data-type","insert-selection-area-inside")},m(r,s){I(r,e,s),t||(i=ne(e,"click",n[28]),t=!0)},p:le,d(r){r&&P(e),t=!1,i()}}}function vv(n){let e,t=!n[8].readOnly&&(n[10]===Ds||n[16]&&kn(n[7])),i,r,s,o,l,a,c=t&&wv(n),f=n[18](n[1],n[0],n[2],n[3],n[4],n[5],n[6],n[7],n[11]),u=[];for(let m=0;mw(u[m],1,1,()=>{u[m]=null});let d=!n[17]&&Sv(n);return{c(){e=A("div"),c&&c.c(),i=q();for(let m=0;m}