nuxt-og-image 2.0.28 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/client/200.html +5 -5
  2. package/dist/client/404.html +5 -5
  3. package/dist/client/_nuxt/{IconCSS.d3e12840.js → IconCSS.cacabbab.js} +1 -1
  4. package/dist/client/_nuxt/{ImageLoader.ad92439f.js → ImageLoader.d1e647a8.js} +1 -1
  5. package/dist/client/_nuxt/entry.4bb8901d.js +135 -0
  6. package/dist/client/_nuxt/entry.53a0fc2f.css +1 -0
  7. package/dist/client/_nuxt/{error-404.95b4b668.js → error-404.d3cf3af1.js} +1 -1
  8. package/dist/client/_nuxt/{error-500.d22f8b54.js → error-500.6d5569a5.js} +1 -1
  9. package/dist/client/_nuxt/{index.f2702f88.js → index.ddad1278.js} +1 -1
  10. package/dist/client/_nuxt/{options.ddf310be.js → options.fab4cd78.js} +1 -1
  11. package/dist/client/_nuxt/{png.51e9bf00.js → png.8b9dc853.js} +1 -1
  12. package/dist/client/_nuxt/{shiki.721a43ba.js → shiki.704b4c6f.js} +1 -1
  13. package/dist/client/_nuxt/{svg.f31a00cf.js → svg.3f7376fc.js} +1 -1
  14. package/dist/client/_nuxt/{vnodes.89b4b57e.js → vnodes.17fcf779.js} +1 -1
  15. package/dist/client/index.html +5 -5
  16. package/dist/client/options/index.html +5 -5
  17. package/dist/client/png/index.html +5 -5
  18. package/dist/client/svg/index.html +5 -5
  19. package/dist/client/vnodes/index.html +5 -5
  20. package/dist/module.d.mts +1 -1
  21. package/dist/module.d.ts +1 -1
  22. package/dist/module.json +1 -1
  23. package/dist/module.mjs +14 -10
  24. package/dist/runtime/components/OgImageTemplate/Fallback.vue +6 -0
  25. package/dist/runtime/nitro/routes/html.mjs +6 -2
  26. package/dist/runtime/nitro/utils-pure.mjs +1 -1
  27. package/package.json +23 -23
  28. package/dist/client/_nuxt/entry.00dd4948.js +0 -136
  29. package/dist/client/_nuxt/entry.0b89ffd3.css +0 -1
  30. /package/dist/runtime/nitro/providers/css-inline/{node.d.ts → css-inline.d.ts} +0 -0
  31. /package/dist/runtime/nitro/providers/css-inline/{node.mjs → css-inline.mjs} +0 -0
@@ -0,0 +1,135 @@
1
+ function ik(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const wr={},Vl=[],ba=()=>{},AV=()=>!1,PV=/^on[^a-z]/,dp=e=>PV.test(e),ak=e=>e.startsWith("onUpdate:"),Xr=Object.assign,sk=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},TV=Object.prototype.hasOwnProperty,An=(e,t)=>TV.call(e,t),Pe=Array.isArray,Ul=e=>Bf(e)==="[object Map]",Lf=e=>Bf(e)==="[object Set]",G_=e=>Bf(e)==="[object Date]",RV=e=>Bf(e)==="[object RegExp]",Ge=e=>typeof e=="function",Fr=e=>typeof e=="string",bh=e=>typeof e=="symbol",ir=e=>e!==null&&typeof e=="object",ck=e=>ir(e)&&Ge(e.then)&&Ge(e.catch),s7=Object.prototype.toString,Bf=e=>s7.call(e),IV=e=>Bf(e).slice(8,-1),c7=e=>Bf(e)==="[object Object]",uk=e=>Fr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wd=ik(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),u0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},NV=/-(\w)/g,is=u0(e=>e.replace(NV,(t,n)=>n?n.toUpperCase():"")),DV=/\B([A-Z])/g,Ff=u0(e=>e.replace(DV,"-$1").toLowerCase()),l0=u0(e=>e.charAt(0).toUpperCase()+e.slice(1)),j1=u0(e=>e?`on${l0(e)}`:""),wh=(e,t)=>!Object.is(e,t),Wl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Fm=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},u7=e=>{const t=Fr(e)?Number(e):NaN;return isNaN(t)?e:t};let Q_;const vb=()=>Q_||(Q_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zc(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Fr(r)?FV(r):zc(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(Fr(e))return e;if(ir(e))return e}}const zV=/;(?![^(]*\))/g,LV=/:([^]+)/,BV=/\/\*[^]*?\*\//g;function FV(e){const t={};return e.replace(BV,"").split(zV).forEach(n=>{if(n){const r=n.split(LV);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Gr(e){let t="";if(Fr(e))t=e;else if(Pe(e))for(let n=0;n<e.length;n++){const r=Gr(e[n]);r&&(t+=r+" ")}else if(ir(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function l7(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Fr(t)&&(e.class=Gr(t)),n&&(e.style=zc(n)),e}const qV="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",HV=ik(qV);function f7(e){return!!e||e===""}function VV(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Uu(e[r],t[r]);return n}function Uu(e,t){if(e===t)return!0;let n=G_(e),r=G_(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=bh(e),r=bh(t),n||r)return e===t;if(n=Pe(e),r=Pe(t),n||r)return n&&r?VV(e,t):!1;if(n=ir(e),r=ir(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const s=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(s&&!c||!s&&c||!Uu(e[a],t[a]))return!1}}return String(e)===String(t)}function lk(e,t){return e.findIndex(n=>Uu(n,t))}const fm=e=>Fr(e)?e:e==null?"":Pe(e)||ir(e)&&(e.toString===s7||!Ge(e.toString))?JSON.stringify(e,d7,2):String(e),d7=(e,t)=>t&&t.__v_isRef?d7(e,t.value):Ul(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Lf(t)?{[`Set(${t.size})`]:[...t.values()]}:ir(t)&&!Pe(t)&&!c7(t)?String(t):t;let ia;class UV{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ia,!t&&ia&&(this.index=(ia.scopes||(ia.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ia;try{return ia=this,t()}finally{ia=n}}}on(){ia=this}off(){ia=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function WV(e,t=ia){t&&t.active&&t.effects.push(e)}function KV(){return ia}const fk=e=>{const t=new Set(e);return t.w=0,t.n=0,t},h7=e=>(e.w&Lc)>0,p7=e=>(e.n&Lc)>0,JV=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Lc},GV=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];h7(o)&&!p7(o)?o.delete(e):t[n++]=o,o.w&=~Lc,o.n&=~Lc}t.length=n}},Hm=new WeakMap;let Td=0,Lc=1;const mb=30;let ua;const zu=Symbol(""),gb=Symbol("");class dk{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,WV(this,r)}run(){if(!this.active)return this.fn();let t=ua,n=Cc;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ua,ua=this,Cc=!0,Lc=1<<++Td,Td<=mb?JV(this):Y_(this),this.fn()}finally{Td<=mb&&GV(this),Lc=1<<--Td,ua=this.parent,Cc=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ua===this?this.deferStop=!0:this.active&&(Y_(this),this.onStop&&this.onStop(),this.active=!1)}}function Y_(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Cc=!0;const v7=[];function qf(){v7.push(Cc),Cc=!1}function Hf(){const e=v7.pop();Cc=e===void 0?!0:e}function ri(e,t,n){if(Cc&&ua){let r=Hm.get(e);r||Hm.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=fk()),m7(o)}}function m7(e,t){let n=!1;Td<=mb?p7(e)||(e.n|=Lc,n=!h7(e)):n=!e.has(ua),n&&(e.add(ua),ua.deps.push(e))}function Fs(e,t,n,r,o,i){const a=Hm.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&Pe(e)){const c=Number(r);a.forEach((u,l)=>{(l==="length"||l>=c)&&s.push(u)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":Pe(e)?uk(n)&&s.push(a.get("length")):(s.push(a.get(zu)),Ul(e)&&s.push(a.get(gb)));break;case"delete":Pe(e)||(s.push(a.get(zu)),Ul(e)&&s.push(a.get(gb)));break;case"set":Ul(e)&&s.push(a.get(zu));break}if(s.length===1)s[0]&&yb(s[0]);else{const c=[];for(const u of s)u&&c.push(...u);yb(fk(c))}}function yb(e,t){const n=Pe(e)?e:[...e];for(const r of n)r.computed&&X_(r);for(const r of n)r.computed||X_(r)}function X_(e,t){(e!==ua||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function QV(e,t){var n;return(n=Hm.get(e))==null?void 0:n.get(t)}const YV=ik("__proto__,__v_isRef,__isVue"),g7=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(bh)),XV=hk(),ZV=hk(!1,!0),tU=hk(!0),Z_=eU();function eU(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Pn(this);for(let i=0,a=this.length;i<a;i++)ri(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Pn)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){qf();const r=Pn(this)[t].apply(this,n);return Hf(),r}}),e}function nU(e){const t=Pn(this);return ri(t,"has",e),t.hasOwnProperty(e)}function hk(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?yU:k7:t?x7:w7).get(r))return r;const a=Pe(r);if(!e){if(a&&An(Z_,o))return Reflect.get(Z_,o,i);if(o==="hasOwnProperty")return nU}const s=Reflect.get(r,o,i);return(bh(o)?g7.has(o):YV(o))||(e||ri(r,"get",o),t)?s:Yr(s)?a&&uk(o)?s:s.value:ir(s)?e?j7(s):as(s):s}}const rU=y7(),oU=y7(!0);function y7(e=!1){return function(n,r,o,i){let a=n[r];if(Wu(a)&&Yr(a)&&!Yr(o))return!1;if(!e&&(!Vm(o)&&!Wu(o)&&(a=Pn(a),o=Pn(o)),!Pe(n)&&Yr(a)&&!Yr(o)))return a.value=o,!0;const s=Pe(n)&&uk(r)?Number(r)<n.length:An(n,r),c=Reflect.set(n,r,o,i);return n===Pn(i)&&(s?wh(o,a)&&Fs(n,"set",r,o):Fs(n,"add",r,o)),c}}function iU(e,t){const n=An(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Fs(e,"delete",t,void 0),r}function aU(e,t){const n=Reflect.has(e,t);return(!bh(t)||!g7.has(t))&&ri(e,"has",t),n}function sU(e){return ri(e,"iterate",Pe(e)?"length":zu),Reflect.ownKeys(e)}const b7={get:XV,set:rU,deleteProperty:iU,has:aU,ownKeys:sU},cU={get:tU,set(e,t){return!0},deleteProperty(e,t){return!0}},uU=Xr({},b7,{get:ZV,set:oU}),pk=e=>e,f0=e=>Reflect.getPrototypeOf(e);function Vp(e,t,n=!1,r=!1){e=e.__v_raw;const o=Pn(e),i=Pn(t);n||(t!==i&&ri(o,"get",t),ri(o,"get",i));const{has:a}=f0(o),s=r?pk:n?gk:xh;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function Up(e,t=!1){const n=this.__v_raw,r=Pn(n),o=Pn(e);return t||(e!==o&&ri(r,"has",e),ri(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Wp(e,t=!1){return e=e.__v_raw,!t&&ri(Pn(e),"iterate",zu),Reflect.get(e,"size",e)}function tS(e){e=Pn(e);const t=Pn(this);return f0(t).has.call(t,e)||(t.add(e),Fs(t,"add",e,e)),this}function eS(e,t){t=Pn(t);const n=Pn(this),{has:r,get:o}=f0(n);let i=r.call(n,e);i||(e=Pn(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?wh(t,a)&&Fs(n,"set",e,t):Fs(n,"add",e,t),this}function nS(e){const t=Pn(this),{has:n,get:r}=f0(t);let o=n.call(t,e);o||(e=Pn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Fs(t,"delete",e,void 0),i}function rS(){const e=Pn(this),t=e.size!==0,n=e.clear();return t&&Fs(e,"clear",void 0,void 0),n}function Kp(e,t){return function(r,o){const i=this,a=i.__v_raw,s=Pn(a),c=t?pk:e?gk:xh;return!e&&ri(s,"iterate",zu),a.forEach((u,l)=>r.call(o,c(u),c(l),i))}}function Jp(e,t,n){return function(...r){const o=this.__v_raw,i=Pn(o),a=Ul(i),s=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=o[e](...r),l=n?pk:t?gk:xh;return!t&&ri(i,"iterate",c?gb:zu),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[l(f[0]),l(f[1])]:l(f),done:d}},[Symbol.iterator](){return this}}}}function ic(e){return function(...t){return e==="delete"?!1:this}}function lU(){const e={get(i){return Vp(this,i)},get size(){return Wp(this)},has:Up,add:tS,set:eS,delete:nS,clear:rS,forEach:Kp(!1,!1)},t={get(i){return Vp(this,i,!1,!0)},get size(){return Wp(this)},has:Up,add:tS,set:eS,delete:nS,clear:rS,forEach:Kp(!1,!0)},n={get(i){return Vp(this,i,!0)},get size(){return Wp(this,!0)},has(i){return Up.call(this,i,!0)},add:ic("add"),set:ic("set"),delete:ic("delete"),clear:ic("clear"),forEach:Kp(!0,!1)},r={get(i){return Vp(this,i,!0,!0)},get size(){return Wp(this,!0)},has(i){return Up.call(this,i,!0)},add:ic("add"),set:ic("set"),delete:ic("delete"),clear:ic("clear"),forEach:Kp(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Jp(i,!1,!1),n[i]=Jp(i,!0,!1),t[i]=Jp(i,!1,!0),r[i]=Jp(i,!0,!0)}),[e,n,t,r]}const[fU,dU,hU,pU]=lU();function vk(e,t){const n=t?e?pU:hU:e?dU:fU;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(An(n,o)&&o in r?n:r,o,i)}const vU={get:vk(!1,!1)},mU={get:vk(!1,!0)},gU={get:vk(!0,!1)},w7=new WeakMap,x7=new WeakMap,k7=new WeakMap,yU=new WeakMap;function bU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wU(e){return e.__v_skip||!Object.isExtensible(e)?0:bU(IV(e))}function as(e){return Wu(e)?e:mk(e,!1,b7,vU,w7)}function hp(e){return mk(e,!1,uU,mU,x7)}function j7(e){return mk(e,!0,cU,gU,k7)}function mk(e,t,n,r,o){if(!ir(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=wU(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function Kl(e){return Wu(e)?Kl(e.__v_raw):!!(e&&e.__v_isReactive)}function Wu(e){return!!(e&&e.__v_isReadonly)}function Vm(e){return!!(e&&e.__v_isShallow)}function _7(e){return Kl(e)||Wu(e)}function Pn(e){const t=e&&e.__v_raw;return t?Pn(t):e}function S7(e){return Fm(e,"__v_skip",!0),e}const xh=e=>ir(e)?as(e):e,gk=e=>ir(e)?j7(e):e;function $7(e){Cc&&ua&&(e=Pn(e),m7(e.dep||(e.dep=fk())))}function yk(e,t){e=Pn(e);const n=e.dep;n&&yb(n)}function Yr(e){return!!(e&&e.__v_isRef===!0)}function Tn(e){return C7(e,!1)}function pf(e){return C7(e,!0)}function C7(e,t){return Yr(e)?e:new xU(e,t)}class xU{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Pn(t),this._value=n?t:xh(t)}get value(){return $7(this),this._value}set value(t){const n=this.__v_isShallow||Vm(t)||Wu(t);t=n?t:Pn(t),wh(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xh(t),yk(this))}}function kU(e){yk(e)}function Re(e){return Yr(e)?e.value:e}const jU={get:(e,t,n)=>Re(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Yr(o)&&!Yr(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function E7(e){return Kl(e)?e:new Proxy(e,jU)}class _U{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QV(Pn(this._object),this._key)}}class SU{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function bk(e,t,n){return Yr(e)?e:Ge(e)?new SU(e):ir(e)&&arguments.length>1?$U(e,t,n):Tn(e)}function $U(e,t,n){const r=e[t];return Yr(r)?r:new _U(e,t,n)}class CU{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new dk(t,()=>{this._dirty||(this._dirty=!0,yk(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Pn(this);return $7(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function EU(e,t,n=!1){let r,o;const i=Ge(e);return i?(r=e,o=ba):(r=e.get,o=e.set),new CU(r,o,i||!o,n)}function Ec(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vf(i,t,n)}return o}function Di(e,t,n,r){if(Ge(e)){const i=Ec(e,t,n,r);return i&&ck(i)&&i.catch(a=>{Vf(a,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(Di(e[i],t,n,r));return o}function Vf(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let l=0;l<u.length;l++)if(u[l](e,a,s)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){Ec(c,null,10,[e,a,s]);return}}OU(e,n,o,r)}function OU(e,t,n,r=!0){console.error(e)}let kh=!1,bb=!1;const Ao=[];let Ka=0;const Jl=[];let $s=null,ju=0;const O7=Promise.resolve();let wk=null;function tu(e){const t=wk||O7;return e?t.then(this?e.bind(this):e):t}function MU(e){let t=Ka+1,n=Ao.length;for(;t<n;){const r=t+n>>>1;jh(Ao[r])<e?t=r+1:n=r}return t}function d0(e){(!Ao.length||!Ao.includes(e,kh&&e.allowRecurse?Ka+1:Ka))&&(e.id==null?Ao.push(e):Ao.splice(MU(e.id),0,e),M7())}function M7(){!kh&&!bb&&(bb=!0,wk=O7.then(P7))}function AU(e){const t=Ao.indexOf(e);t>Ka&&Ao.splice(t,1)}function A7(e){Pe(e)?Jl.push(...e):(!$s||!$s.includes(e,e.allowRecurse?ju+1:ju))&&Jl.push(e),M7()}function oS(e,t=kh?Ka+1:0){for(;t<Ao.length;t++){const n=Ao[t];n&&n.pre&&(Ao.splice(t,1),t--,n())}}function Um(e){if(Jl.length){const t=[...new Set(Jl)];if(Jl.length=0,$s){$s.push(...t);return}for($s=t,$s.sort((n,r)=>jh(n)-jh(r)),ju=0;ju<$s.length;ju++)$s[ju]();$s=null,ju=0}}const jh=e=>e.id==null?1/0:e.id,PU=(e,t)=>{const n=jh(e)-jh(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P7(e){bb=!1,kh=!0,Ao.sort(PU);const t=ba;try{for(Ka=0;Ka<Ao.length;Ka++){const n=Ao[Ka];n&&n.active!==!1&&Ec(n,null,14)}}finally{Ka=0,Ao.length=0,Um(),kh=!1,wk=null,(Ao.length||Jl.length)&&P7()}}function TU(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||wr;let o=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){const l=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:d}=r[l]||wr;d&&(o=n.map(h=>Fr(h)?h.trim():h)),f&&(o=n.map(qm))}let s,c=r[s=j1(t)]||r[s=j1(is(t))];!c&&i&&(c=r[s=j1(Ff(t))]),c&&Di(c,e,6,o);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Di(u,e,6,o)}}function T7(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Ge(e)){const c=u=>{const l=T7(u,t,!0);l&&(s=!0,Xr(a,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!s?(ir(e)&&r.set(e,null),null):(Pe(i)?i.forEach(c=>a[c]=null):Xr(a,i),ir(e)&&r.set(e,a),a)}function h0(e,t){return!e||!dp(t)?!1:(t=t.slice(2).replace(/Once$/,""),An(e,t[0].toLowerCase()+t.slice(1))||An(e,Ff(t))||An(e,t))}let ao=null,p0=null;function Wm(e){const t=ao;return ao=e,p0=e&&e.type.__scopeId||null,t}function a4t(e){p0=e}function s4t(){p0=null}function oo(e,t=ao,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&gS(-1);const i=Wm(t);let a;try{a=e(...o)}finally{Wm(i),r._d&&gS(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function _1(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:c,emit:u,render:l,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let m,g;const y=Wm(e);try{if(n.shapeFlag&4){const w=o||r;m=Ei(l.call(w,w,f,i,h,d,p)),g=c}else{const w=t;m=Ei(w.length>1?w(i,{attrs:c,slots:s,emit:u}):w(i,null)),g=t.props?c:IU(c)}}catch(w){Gd.length=0,Vf(w,e,1),m=nn(qo)}let b=m;if(g&&v!==!1){const w=Object.keys(g),{shapeFlag:x}=b;w.length&&x&7&&(a&&w.some(ak)&&(g=NU(g,a)),b=qs(b,g))}return n.dirs&&(b=qs(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,Wm(y),m}function RU(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(yf(r)){if(r.type!==qo||r.children==="v-if"){if(t)return;t=r}}else return}return t}const IU=e=>{let t;for(const n in e)(n==="class"||n==="style"||dp(n))&&((t||(t={}))[n]=e[n]);return t},NU=(e,t)=>{const n={};for(const r in e)(!ak(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function DU(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?iS(r,a,u):!!a;if(c&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const d=l[f];if(a[d]!==r[d]&&!h0(u,d))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?iS(r,a,u):!0:!!a;return!1}function iS(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!h0(n,i))return!0}return!1}function xk({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const R7=e=>e.__isSuspense,zU={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,c,u){e==null?LU(t,n,r,o,i,a,s,c,u):BU(e,t,n,r,o,a,s,c,u)},hydrate:FU,create:kk,normalize:qU},I7=zU;function _h(e,t){const n=e.props&&e.props[t];Ge(n)&&n()}function LU(e,t,n,r,o,i,a,s,c){const{p:u,o:{createElement:l}}=c,f=l("div"),d=e.suspense=kk(e,o,r,t,f,n,i,a,s,c);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(_h(e,"onPending"),_h(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,a),Gl(d,e.ssFallback)):d.resolve(!1,!0)}function BU(e,t,n,r,o,i,a,s,{p:c,um:u,o:{createElement:l}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=f;if(v)f.pendingBranch=d,la(d,v)?(c(v,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():m&&(c(p,h,n,r,o,null,i,a,s),Gl(f,h))):(f.pendingId++,g?(f.isHydrating=!1,f.activeBranch=v):u(v,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=l("div"),m?(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(c(p,h,n,r,o,null,i,a,s),Gl(f,h))):p&&la(d,p)?(c(p,d,n,r,o,f,i,a,s),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&la(d,p))c(p,d,n,r,o,f,i,a,s),Gl(f,d);else if(_h(t,"onPending"),f.pendingBranch=d,f.pendingId++,c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:b}=f;y>0?setTimeout(()=>{f.pendingId===b&&f.fallback(h)},y):y===0&&f.fallback(h)}}function kk(e,t,n,r,o,i,a,s,c,u,l=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:m}}=u;let g;const y=HU(e);y&&t!=null&&t.pendingBranch&&(g=t.pendingId,t.deps++);const b=e.props?u7(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:l,isUnmounted:!1,effects:[],resolve(x=!1,k=!1){const{vnode:j,activeBranch:S,pendingBranch:N,pendingId:C,effects:$,parentComponent:B,container:K}=w;if(w.isHydrating)w.isHydrating=!1;else if(!x){const F=S&&N.transition&&N.transition.mode==="out-in";F&&(S.transition.afterLeave=()=>{C===w.pendingId&&d(N,K,O,0)});let{anchor:O}=w;S&&(O=p(S),h(S,B,w,!0)),F||d(N,K,O,0)}Gl(w,N),w.pendingBranch=null,w.isInFallback=!1;let R=w.parent,q=!1;for(;R;){if(R.pendingBranch){R.effects.push(...$),q=!0;break}R=R.parent}q||A7($),w.effects=[],y&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!k&&t.resolve()),_h(j,"onResolve")},fallback(x){if(!w.pendingBranch)return;const{vnode:k,activeBranch:j,parentComponent:S,container:N,isSVG:C}=w;_h(k,"onFallback");const $=p(j),B=()=>{w.isInFallback&&(f(null,x,N,$,S,null,C,s,c),Gl(w,x))},K=x.transition&&x.transition.mode==="out-in";K&&(j.transition.afterLeave=B),w.isInFallback=!0,h(j,S,null,!0),K||B()},move(x,k,j){w.activeBranch&&d(w.activeBranch,x,k,j),w.container=x},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(x,k){const j=!!w.pendingBranch;j&&w.deps++;const S=x.vnode.el;x.asyncDep.catch(N=>{Vf(N,x,0)}).then(N=>{if(x.isUnmounted||w.isUnmounted||w.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:C}=x;$b(x,N,!1),S&&(C.el=S);const $=!S&&x.subTree.el;k(x,C,v(S||x.subTree.el),S?null:p(x.subTree),w,a,c),$&&m($),xk(x,C.el),j&&--w.deps===0&&w.resolve()})},unmount(x,k){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,x,k),w.pendingBranch&&h(w.pendingBranch,n,x,k)}};return w}function FU(e,t,n,r,o,i,a,s,c){const u=t.suspense=kk(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),l=c(e,u.pendingBranch=t.ssContent,n,u,i,a);return u.deps===0&&u.resolve(!1,!0),l}function qU(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=aS(r?n.default:n),e.ssFallback=r?aS(n.fallback):nn(qo)}function aS(e){let t;if(Ge(e)){const n=gf&&e._c;n&&(e._d=!1,Vn()),e=e(),n&&(e._d=!0,t=Ti,aI())}return Pe(e)&&(e=RU(e)),e=Ei(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N7(e,t){t&&t.pendingBranch?Pe(e)?t.effects.push(...e):t.effects.push(e):A7(e)}function Gl(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,xk(r,o))}function HU(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function VU(e,t){return v0(e,null,t)}function UU(e,t){return v0(e,null,{flush:"post"})}const Gp={};function so(e,t,n){return v0(e,t,n)}function v0(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=wr){var s;const c=KV()===((s=Qr)==null?void 0:s.scope)?Qr:null;let u,l=!1,f=!1;if(Yr(e)?(u=()=>e.value,l=Vm(e)):Kl(e)?(u=()=>e,r=!0):Pe(e)?(f=!0,l=e.some(w=>Kl(w)||Vm(w)),u=()=>e.map(w=>{if(Yr(w))return w.value;if(Kl(w))return Mu(w);if(Ge(w))return Ec(w,c,2)})):Ge(e)?t?u=()=>Ec(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return d&&d(),Di(e,c,3,[h])}:u=ba,t&&r){const w=u;u=()=>Mu(w())}let d,h=w=>{d=y.onStop=()=>{Ec(w,c,4)}},p;if(bf)if(h=ba,t?n&&Di(t,c,3,[u(),f?[]:void 0,h]):u(),o==="sync"){const w=TW();p=w.__watcherHandles||(w.__watcherHandles=[])}else return ba;let v=f?new Array(e.length).fill(Gp):Gp;const m=()=>{if(y.active)if(t){const w=y.run();(r||l||(f?w.some((x,k)=>wh(x,v[k])):wh(w,v)))&&(d&&d(),Di(t,c,3,[w,v===Gp?void 0:f&&v[0]===Gp?[]:v,h]),v=w)}else y.run()};m.allowRecurse=!!t;let g;o==="sync"?g=m:o==="post"?g=()=>mo(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),g=()=>d0(m));const y=new dk(u,g);t?n?m():v=y.run():o==="post"?mo(y.run.bind(y),c&&c.suspense):y.run();const b=()=>{y.stop(),c&&c.scope&&sk(c.scope.effects,y)};return p&&p.push(b),b}function WU(e,t,n){const r=this.proxy,o=Fr(e)?e.includes(".")?D7(r,e):()=>r[e]:e.bind(r,r);let i;Ge(t)?i=t:(i=t.handler,n=t);const a=Qr;Bc(this);const s=v0(o,i.bind(r),n);return a?Bc(a):Oc(),s}function D7(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Mu(e,t){if(!ir(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Yr(e))Mu(e.value,t);else if(Pe(e))for(let n=0;n<e.length;n++)Mu(e[n],t);else if(Lf(e)||Ul(e))e.forEach(n=>{Mu(n,t)});else if(c7(e))for(const n in e)Mu(e[n],t);return e}function KU(e,t){const n=ao;if(n===null)return e;const r=y0(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,c,u=wr]=t[i];a&&(Ge(a)&&(a={mounted:a,updated:a}),a.deep&&Mu(s),o.push({dir:a,instance:r,value:s,oldValue:void 0,arg:c,modifiers:u}))}return e}function Ua(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let c=s.dir[r];c&&(qf(),Di(c,n,8,[e.el,s,e,t]),Hf())}}function JU(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cl(()=>{e.isMounted=!0}),vp(()=>{e.isUnmounting=!0}),e}const $i=[Function,Array],z7={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$i,onEnter:$i,onAfterEnter:$i,onEnterCancelled:$i,onBeforeLeave:$i,onLeave:$i,onAfterLeave:$i,onLeaveCancelled:$i,onBeforeAppear:$i,onAppear:$i,onAfterAppear:$i,onAppearCancelled:$i},GU={name:"BaseTransition",props:z7,setup(e,{slots:t}){const n=Qs(),r=JU();let o;return()=>{const i=t.default&&B7(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const v of i)if(v.type!==qo){a=v;break}}const s=Pn(e),{mode:c}=s;if(r.isLeaving)return S1(a);const u=sS(a);if(!u)return S1(a);const l=wb(u,s,r,n);Km(u,l);const f=n.subTree,d=f&&sS(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();o===void 0?o=v:v!==o&&(o=v,h=!0)}if(d&&d.type!==qo&&(!la(u,d)||h)){const v=wb(d,s,r,n);if(Km(d,v),c==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},S1(a);c==="in-out"&&u.type!==qo&&(v.delayLeave=(m,g,y)=>{const b=L7(r,d);b[String(d.key)]=d,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=y})}return a}}},QU=GU;function L7(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function wb(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:l,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,b=String(e.key),w=L7(n,e),x=(S,N)=>{S&&Di(S,r,9,N)},k=(S,N)=>{const C=N[1];x(S,N),Pe(S)?S.every($=>$.length<=1)&&C():S.length<=1&&C()},j={mode:i,persisted:a,beforeEnter(S){let N=s;if(!n.isMounted)if(o)N=v||s;else return;S._leaveCb&&S._leaveCb(!0);const C=w[b];C&&la(e,C)&&C.el._leaveCb&&C.el._leaveCb(),x(N,[S])},enter(S){let N=c,C=u,$=l;if(!n.isMounted)if(o)N=m||c,C=g||u,$=y||l;else return;let B=!1;const K=S._enterCb=R=>{B||(B=!0,R?x($,[S]):x(C,[S]),j.delayedLeave&&j.delayedLeave(),S._enterCb=void 0)};N?k(N,[S,K]):K()},leave(S,N){const C=String(e.key);if(S._enterCb&&S._enterCb(!0),n.isUnmounting)return N();x(f,[S]);let $=!1;const B=S._leaveCb=K=>{$||($=!0,N(),K?x(p,[S]):x(h,[S]),S._leaveCb=void 0,w[C]===e&&delete w[C])};w[C]=e,d?k(d,[S,B]):B()},clone(S){return wb(S,t,n,r)}};return j}function S1(e){if(pp(e))return e=qs(e),e.children=null,e}function sS(e){return pp(e)?e.children?e.children[0]:void 0:e}function Km(e,t){e.shapeFlag&6&&e.component?Km(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function B7(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Bo?(a.patchFlag&128&&o++,r=r.concat(B7(a.children,t,s))):(t||a.type!==qo)&&r.push(s!=null?qs(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Jo(e,t){return Ge(e)?(()=>Xr({name:e.name},t,{setup:e}))():e}const Lu=e=>!!e.type.__asyncLoader;function Jm(e){Ge(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let c=null,u,l=0;const f=()=>(l++,c=null,d()),d=()=>{let h;return c||(h=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(f()),()=>m(p),l+1)});throw p}).then(p=>h!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Jo({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=Qr;if(u)return()=>$1(u,h);const p=y=>{c=null,Vf(y,h,13,!r)};if(a&&h.suspense||bf)return d().then(y=>()=>$1(y,h)).catch(y=>(p(y),()=>r?nn(r,{error:y}):null));const v=Tn(!1),m=Tn(),g=Tn(!!o);return o&&setTimeout(()=>{g.value=!1},o),i!=null&&setTimeout(()=>{if(!v.value&&!m.value){const y=new Error(`Async component timed out after ${i}ms.`);p(y),m.value=y}},i),d().then(()=>{v.value=!0,h.parent&&pp(h.parent.vnode)&&d0(h.parent.update)}).catch(y=>{p(y),m.value=y}),()=>{if(v.value&&u)return $1(u,h);if(m.value&&r)return nn(r,{error:m.value});if(n&&!g.value)return nn(n)}}})}function $1(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=nn(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const pp=e=>e.type.__isKeepAlive,YU={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Qs(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const o=new Map,i=new Set;let a=null;const s=n.suspense,{renderer:{p:c,m:u,um:l,o:{createElement:f}}}=r,d=f("div");r.activate=(y,b,w,x,k)=>{const j=y.component;u(y,b,w,0,s),c(j.vnode,y,b,w,j,s,x,y.slotScopeIds,k),mo(()=>{j.isDeactivated=!1,j.a&&Wl(j.a);const S=y.props&&y.props.onVnodeMounted;S&&Yo(S,j.parent,y)},s)},r.deactivate=y=>{const b=y.component;u(y,d,null,1,s),mo(()=>{b.da&&Wl(b.da);const w=y.props&&y.props.onVnodeUnmounted;w&&Yo(w,b.parent,y),b.isDeactivated=!0},s)};function h(y){C1(y),l(y,n,s,!0)}function p(y){o.forEach((b,w)=>{const x=Cb(b.type);x&&(!y||!y(x))&&v(w)})}function v(y){const b=o.get(y);!a||!la(b,a)?h(b):a&&C1(a),o.delete(y),i.delete(y)}so(()=>[e.include,e.exclude],([y,b])=>{y&&p(w=>Rd(y,w)),b&&p(w=>!Rd(b,w))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&o.set(m,E1(n.subTree))};return cl(g),U7(g),vp(()=>{o.forEach(y=>{const{subTree:b,suspense:w}=n,x=E1(b);if(y.type===x.type&&y.key===x.key){C1(x);const k=x.component.da;k&&mo(k,w);return}h(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),b=y[0];if(y.length>1)return a=null,y;if(!yf(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return a=null,b;let w=E1(b);const x=w.type,k=Cb(Lu(w)?w.type.__asyncResolved||{}:x),{include:j,exclude:S,max:N}=e;if(j&&(!k||!Rd(j,k))||S&&k&&Rd(S,k))return a=w,b;const C=w.key==null?x:w.key,$=o.get(C);return w.el&&(w=qs(w),b.shapeFlag&128&&(b.ssContent=w)),m=C,$?(w.el=$.el,w.component=$.component,w.transition&&Km(w,w.transition),w.shapeFlag|=512,i.delete(C),i.add(C)):(i.add(C),N&&i.size>parseInt(N,10)&&v(i.values().next().value)),w.shapeFlag|=256,a=w,R7(b.type)?b:w}}},XU=YU;function Rd(e,t){return Pe(e)?e.some(n=>Rd(n,t)):Fr(e)?e.split(",").includes(t):RV(e)?e.test(t):!1}function F7(e,t){H7(e,"a",t)}function q7(e,t){H7(e,"da",t)}function H7(e,t,n=Qr){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(m0(t,r,n),n){let o=n.parent;for(;o&&o.parent;)pp(o.parent.vnode)&&ZU(r,t,n,o),o=o.parent}}function ZU(e,t,n,r){const o=m0(t,e,r,!0);vf(()=>{sk(r[t],o)},n)}function C1(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function E1(e){return e.shapeFlag&128?e.ssContent:e}function m0(e,t,n=Qr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;qf(),Bc(n);const s=Di(t,n,e,a);return Oc(),Hf(),s});return r?o.unshift(i):o.push(i),i}}const Gs=e=>(t,n=Qr)=>(!bf||e==="sp")&&m0(e,(...r)=>t(...r),n),V7=Gs("bm"),cl=Gs("m"),tW=Gs("bu"),U7=Gs("u"),vp=Gs("bum"),vf=Gs("um"),eW=Gs("sp"),nW=Gs("rtg"),rW=Gs("rtc");function W7(e,t=Qr){m0("ec",e,t)}const jk="components";function oW(e,t){return J7(jk,e,!0,t)||e}const K7=Symbol.for("v-ndc");function _k(e){return Fr(e)?J7(jk,e,!1)||e:e||K7}function J7(e,t,n=!0,r=!1){const o=ao||Qr;if(o){const i=o.type;if(e===jk){const s=Cb(i,!1);if(s&&(s===t||s===is(t)||s===l0(is(t))))return i}const a=cS(o[e]||i[e],t)||cS(o.appContext[e],t);return!a&&r?i:a}}function cS(e,t){return e&&(e[t]||e[is(t)]||e[l0(is(t))])}function Ku(e,t,n={},r,o){if(ao.isCE||ao.parent&&Lu(ao.parent)&&ao.parent.isCE)return t!=="default"&&(n.name=t),nn("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Vn();const a=i&&G7(i(n)),s=xo(Bo,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function G7(e){return e.some(t=>yf(t)?!(t.type===qo||t.type===Bo&&!G7(t.children)):!0)?e:null}const xb=e=>e?uI(e)?y0(e)||e.proxy:xb(e.parent):null,Kd=Xr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xb(e.parent),$root:e=>xb(e.root),$emit:e=>e.emit,$options:e=>Sk(e),$forceUpdate:e=>e.f||(e.f=()=>d0(e.update)),$nextTick:e=>e.n||(e.n=tu.bind(e.proxy)),$watch:e=>WU.bind(e)}),O1=(e,t)=>e!==wr&&!e.__isScriptSetup&&An(e,t),iW={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:c}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(O1(r,t))return a[t]=1,r[t];if(o!==wr&&An(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&An(u,t))return a[t]=3,i[t];if(n!==wr&&An(n,t))return a[t]=4,n[t];jb&&(a[t]=0)}}const l=Kd[t];let f,d;if(l)return t==="$attrs"&&ri(e,"get",t),l(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==wr&&An(n,t))return a[t]=4,n[t];if(d=c.config.globalProperties,An(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return O1(o,t)?(o[t]=n,!0):r!==wr&&An(r,t)?(r[t]=n,!0):An(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==wr&&An(e,a)||O1(t,a)||(s=i[0])&&An(s,a)||An(r,a)||An(Kd,a)||An(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:An(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function uS(e){return Pe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function kb(e){const t=Qs();let n=e();return Oc(),ck(n)&&(n=n.catch(r=>{throw Bc(t),r})),[n,()=>Bc(t)]}let jb=!0;function aW(e){const t=Sk(e),n=e.proxy,r=e.ctx;jb=!1,t.beforeCreate&&lS(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:c,inject:u,created:l,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:b,unmounted:w,render:x,renderTracked:k,renderTriggered:j,errorCaptured:S,serverPrefetch:N,expose:C,inheritAttrs:$,components:B,directives:K,filters:R}=t;if(u&&sW(u,r,null),a)for(const O in a){const A=a[O];Ge(A)&&(r[O]=A.bind(n))}if(o){const O=o.call(n,n);ir(O)&&(e.data=as(O))}if(jb=!0,i)for(const O in i){const A=i[O],_=Ge(A)?A.bind(n,n):Ge(A.get)?A.get.bind(n,n):ba,M=!Ge(A)&&Ge(A.set)?A.set.bind(n):ba,P=hr({get:_,set:M});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>P.value,set:D=>P.value=D})}if(s)for(const O in s)Q7(s[O],r,n,O);if(c){const O=Ge(c)?c.call(n):c;Reflect.ownKeys(O).forEach(A=>{Ql(A,O[A])})}l&&lS(l,e,"c");function F(O,A){Pe(A)?A.forEach(_=>O(_.bind(n))):A&&O(A.bind(n))}if(F(V7,f),F(cl,d),F(tW,h),F(U7,p),F(F7,v),F(q7,m),F(W7,S),F(rW,k),F(nW,j),F(vp,y),F(vf,w),F(eW,N),Pe(C))if(C.length){const O=e.exposed||(e.exposed={});C.forEach(A=>{Object.defineProperty(O,A,{get:()=>n[A],set:_=>n[A]=_})})}else e.exposed||(e.exposed={});x&&e.render===ba&&(e.render=x),$!=null&&(e.inheritAttrs=$),B&&(e.components=B),K&&(e.directives=K)}function sW(e,t,n=ba){Pe(e)&&(e=_b(e));for(const r in e){const o=e[r];let i;ir(o)?"default"in o?i=gi(o.from||r,o.default,!0):i=gi(o.from||r):i=gi(o),Yr(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function lS(e,t,n){Di(Pe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Q7(e,t,n,r){const o=r.includes(".")?D7(n,r):()=>n[r];if(Fr(e)){const i=t[e];Ge(i)&&so(o,i)}else if(Ge(e))so(o,e.bind(n));else if(ir(e))if(Pe(e))e.forEach(i=>Q7(i,t,n,r));else{const i=Ge(e.handler)?e.handler.bind(n):t[e.handler];Ge(i)&&so(o,i,e)}}function Sk(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let c;return s?c=s:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(u=>Gm(c,u,a,!0)),Gm(c,t,a)),ir(t)&&i.set(t,c),c}function Gm(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Gm(e,i,n,!0),o&&o.forEach(a=>Gm(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=cW[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const cW={data:fS,props:dS,emits:dS,methods:Id,computed:Id,beforeCreate:zo,created:zo,beforeMount:zo,mounted:zo,beforeUpdate:zo,updated:zo,beforeDestroy:zo,beforeUnmount:zo,destroyed:zo,unmounted:zo,activated:zo,deactivated:zo,errorCaptured:zo,serverPrefetch:zo,components:Id,directives:Id,watch:lW,provide:fS,inject:uW};function fS(e,t){return t?e?function(){return Xr(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function uW(e,t){return Id(_b(e),_b(t))}function _b(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function zo(e,t){return e?[...new Set([].concat(e,t))]:t}function Id(e,t){return e?Xr(Object.create(null),e,t):t}function dS(e,t){return e?Pe(e)&&Pe(t)?[...new Set([...e,...t])]:Xr(Object.create(null),uS(e),uS(t??{})):t}function lW(e,t){if(!e)return t;if(!t)return e;const n=Xr(Object.create(null),e);for(const r in t)n[r]=zo(e[r],t[r]);return n}function Y7(){return{app:null,config:{isNativeTag:AV,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fW=0;function dW(e,t){return function(r,o=null){Ge(r)||(r=Xr({},r)),o!=null&&!ir(o)&&(o=null);const i=Y7(),a=new Set;let s=!1;const c=i.app={_uid:fW++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:fI,get config(){return i.config},set config(u){},use(u,...l){return a.has(u)||(u&&Ge(u.install)?(a.add(u),u.install(c,...l)):Ge(u)&&(a.add(u),u(c,...l))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,l){return l?(i.components[u]=l,c):i.components[u]},directive(u,l){return l?(i.directives[u]=l,c):i.directives[u]},mount(u,l,f){if(!s){const d=nn(r,o);return d.appContext=i,l&&t?t(d,u):e(d,u,f),s=!0,c._container=u,u.__vue_app__=c,y0(d.component)||d.component.proxy}},unmount(){s&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,l){return i.provides[u]=l,c},runWithContext(u){Sh=c;try{return u()}finally{Sh=null}}};return c}}let Sh=null;function Ql(e,t){if(Qr){let n=Qr.provides;const r=Qr.parent&&Qr.parent.provides;r===n&&(n=Qr.provides=Object.create(r)),n[e]=t}}function gi(e,t,n=!1){const r=Qr||ao;if(r||Sh){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Sh._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ge(t)?t.call(r&&r.proxy):t}}function X7(){return!!(Qr||ao||Sh)}function hW(e,t,n,r=!1){const o={},i={};Fm(i,g0,1),e.propsDefaults=Object.create(null),Z7(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:hp(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function pW(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=Pn(o),[c]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let d=l[f];if(h0(e.emitsOptions,d))continue;const h=t[d];if(c)if(An(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const p=is(d);o[p]=Sb(c,s,p,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{Z7(e,t,o,i)&&(u=!0);let l;for(const f in s)(!t||!An(t,f)&&((l=Ff(f))===f||!An(t,l)))&&(c?n&&(n[f]!==void 0||n[l]!==void 0)&&(o[f]=Sb(c,s,f,void 0,e,!0)):delete o[f]);if(i!==s)for(const f in i)(!t||!An(t,f))&&(delete i[f],u=!0)}u&&Fs(e,"set","$attrs")}function Z7(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let c in t){if(Wd(c))continue;const u=t[c];let l;o&&An(o,l=is(c))?!i||!i.includes(l)?n[l]=u:(s||(s={}))[l]=u:h0(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,a=!0)}if(i){const c=Pn(n),u=s||wr;for(let l=0;l<i.length;l++){const f=i[l];n[f]=Sb(o,c,f,u[f],e,!An(u,f))}}return a}function Sb(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=An(a,"default");if(s&&r===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Ge(c)){const{propsDefaults:u}=o;n in u?r=u[n]:(Bc(o),r=u[n]=c.call(null,t),Oc())}else r=c}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===Ff(n))&&(r=!0))}return r}function tI(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let c=!1;if(!Ge(e)){const l=f=>{c=!0;const[d,h]=tI(f,t,!0);Xr(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return ir(e)&&r.set(e,Vl),Vl;if(Pe(i))for(let l=0;l<i.length;l++){const f=is(i[l]);hS(f)&&(a[f]=wr)}else if(i)for(const l in i){const f=is(l);if(hS(f)){const d=i[l],h=a[f]=Pe(d)||Ge(d)?{type:d}:Xr({},d);if(h){const p=mS(Boolean,h.type),v=mS(String,h.type);h[0]=p>-1,h[1]=v<0||p<v,(p>-1||An(h,"default"))&&s.push(f)}}}const u=[a,s];return ir(e)&&r.set(e,u),u}function hS(e){return e[0]!=="$"}function pS(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function vS(e,t){return pS(e)===pS(t)}function mS(e,t){return Pe(t)?t.findIndex(n=>vS(n,e)):Ge(t)&&vS(t,e)?0:-1}const eI=e=>e[0]==="_"||e==="$stable",$k=e=>Pe(e)?e.map(Ei):[Ei(e)],vW=(e,t,n)=>{if(t._n)return t;const r=oo((...o)=>$k(t(...o)),n);return r._c=!1,r},nI=(e,t,n)=>{const r=e._ctx;for(const o in e){if(eI(o))continue;const i=e[o];if(Ge(i))t[o]=vW(o,i,r);else if(i!=null){const a=$k(i);t[o]=()=>a}}},rI=(e,t)=>{const n=$k(t);e.slots.default=()=>n},mW=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Pn(t),Fm(t,"_",n)):nI(t,e.slots={})}else e.slots={},t&&rI(e,t);Fm(e.slots,g0,1)},gW=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=wr;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Xr(o,t),!n&&s===1&&delete o._):(i=!t.$stable,nI(t,o)),a=t}else t&&(rI(e,t),a={default:1});if(i)for(const s in o)!eI(s)&&!(s in a)&&delete o[s]};function Qm(e,t,n,r,o=!1){if(Pe(e)){e.forEach((d,h)=>Qm(d,t&&(Pe(t)?t[h]:t),n,r,o));return}if(Lu(r)&&!o)return;const i=r.shapeFlag&4?y0(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:c}=e,u=t&&t.r,l=s.refs===wr?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==c&&(Fr(u)?(l[u]=null,An(f,u)&&(f[u]=null)):Yr(u)&&(u.value=null)),Ge(c))Ec(c,s,12,[a,l]);else{const d=Fr(c),h=Yr(c);if(d||h){const p=()=>{if(e.f){const v=d?An(f,c)?f[c]:l[c]:c.value;o?Pe(v)&&sk(v,i):Pe(v)?v.includes(i)||v.push(i):d?(l[c]=[i],An(f,c)&&(f[c]=l[c])):(c.value=[i],e.k&&(l[e.k]=c.value))}else d?(l[c]=a,An(f,c)&&(f[c]=a)):h&&(c.value=a,e.k&&(l[e.k]=a))};a?(p.id=-1,mo(p,n)):p()}}}let ac=!1;const Qp=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Yp=e=>e.nodeType===8;function yW(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:s,insert:c,createComment:u}}=e,l=(g,y)=>{if(!y.hasChildNodes()){n(null,g,y),Um(),y._vnode=g;return}ac=!1,f(y.firstChild,g,null,null,null),Um(),y._vnode=g,ac&&console.error("Hydration completed but contains mismatches.")},f=(g,y,b,w,x,k=!1)=>{const j=Yp(g)&&g.data==="[",S=()=>v(g,y,b,w,x,j),{type:N,ref:C,shapeFlag:$,patchFlag:B}=y;let K=g.nodeType;y.el=g,B===-2&&(k=!1,y.dynamicChildren=null);let R=null;switch(N){case mf:K!==3?y.children===""?(c(y.el=o(""),a(g),g),R=g):R=S():(g.data!==y.children&&(ac=!0,g.data=y.children),R=i(g));break;case qo:K!==8||j?R=S():R=i(g);break;case Jd:if(j&&(g=i(g),K=g.nodeType),K===1||K===3){R=g;const q=!y.children.length;for(let F=0;F<y.staticCount;F++)q&&(y.children+=R.nodeType===1?R.outerHTML:R.data),F===y.staticCount-1&&(y.anchor=R),R=i(R);return j?i(R):R}else S();break;case Bo:j?R=p(g,y,b,w,x,k):R=S();break;default:if($&1)K!==1||y.type.toLowerCase()!==g.tagName.toLowerCase()?R=S():R=d(g,y,b,w,x,k);else if($&6){y.slotScopeIds=x;const q=a(g);if(t(y,q,null,b,w,Qp(q),k),R=j?m(g):i(g),R&&Yp(R)&&R.data==="teleport end"&&(R=i(R)),Lu(y)){let F;j?(F=nn(Bo),F.anchor=R?R.previousSibling:q.lastChild):F=g.nodeType===3?Au(""):nn("div"),F.el=g,y.component.subTree=F}}else $&64?K!==8?R=S():R=y.type.hydrate(g,y,b,w,x,k,e,h):$&128&&(R=y.type.hydrate(g,y,b,w,Qp(a(g)),x,k,e,f))}return C!=null&&Qm(C,null,w,y),R},d=(g,y,b,w,x,k)=>{k=k||!!y.dynamicChildren;const{type:j,props:S,patchFlag:N,shapeFlag:C,dirs:$}=y,B=j==="input"&&$||j==="option";if(B||N!==-1){if($&&Ua(y,null,b,"created"),S)if(B||!k||N&48)for(const R in S)(B&&R.endsWith("value")||dp(R)&&!Wd(R))&&r(g,R,null,S[R],!1,void 0,b);else S.onClick&&r(g,"onClick",null,S.onClick,!1,void 0,b);let K;if((K=S&&S.onVnodeBeforeMount)&&Yo(K,b,y),$&&Ua(y,null,b,"beforeMount"),((K=S&&S.onVnodeMounted)||$)&&N7(()=>{K&&Yo(K,b,y),$&&Ua(y,null,b,"mounted")},w),C&16&&!(S&&(S.innerHTML||S.textContent))){let R=h(g.firstChild,y,g,b,w,x,k);for(;R;){ac=!0;const q=R;R=R.nextSibling,s(q)}}else C&8&&g.textContent!==y.children&&(ac=!0,g.textContent=y.children)}return g.nextSibling},h=(g,y,b,w,x,k,j)=>{j=j||!!y.dynamicChildren;const S=y.children,N=S.length;for(let C=0;C<N;C++){const $=j?S[C]:S[C]=Ei(S[C]);if(g)g=f(g,$,w,x,k,j);else{if($.type===mf&&!$.children)continue;ac=!0,n(null,$,b,null,w,x,Qp(b),k)}}return g},p=(g,y,b,w,x,k)=>{const{slotScopeIds:j}=y;j&&(x=x?x.concat(j):j);const S=a(g),N=h(i(g),y,S,b,w,x,k);return N&&Yp(N)&&N.data==="]"?i(y.anchor=N):(ac=!0,c(y.anchor=u("]"),S,N),N)},v=(g,y,b,w,x,k)=>{if(ac=!0,y.el=null,k){const N=m(g);for(;;){const C=i(g);if(C&&C!==N)s(C);else break}}const j=i(g),S=a(g);return s(g),n(null,y,S,j,b,w,Qp(S),x),j},m=g=>{let y=0;for(;g;)if(g=i(g),g&&Yp(g)&&(g.data==="["&&y++,g.data==="]")){if(y===0)return i(g);y--}return g};return[l,f]}const mo=N7;function bW(e){return oI(e)}function wW(e){return oI(e,yW)}function oI(e,t){const n=vb();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:c,setText:u,setElementText:l,parentNode:f,nextSibling:d,setScopeId:h=ba,insertStaticContent:p}=e,v=(Y,J,it,X=null,_t=null,z=null,W=!1,G=null,pt=!!J.dynamicChildren)=>{if(Y===J)return;Y&&!la(Y,J)&&(X=tt(Y),D(Y,_t,z,!0),Y=null),J.patchFlag===-2&&(pt=!1,J.dynamicChildren=null);const{type:mt,ref:Ot,shapeFlag:Ct}=J;switch(mt){case mf:m(Y,J,it,X);break;case qo:g(Y,J,it,X);break;case Jd:Y==null&&y(J,it,X,W);break;case Bo:B(Y,J,it,X,_t,z,W,G,pt);break;default:Ct&1?x(Y,J,it,X,_t,z,W,G,pt):Ct&6?K(Y,J,it,X,_t,z,W,G,pt):(Ct&64||Ct&128)&&mt.process(Y,J,it,X,_t,z,W,G,pt,bt)}Ot!=null&&_t&&Qm(Ot,Y&&Y.ref,z,J||Y,!J)},m=(Y,J,it,X)=>{if(Y==null)r(J.el=s(J.children),it,X);else{const _t=J.el=Y.el;J.children!==Y.children&&u(_t,J.children)}},g=(Y,J,it,X)=>{Y==null?r(J.el=c(J.children||""),it,X):J.el=Y.el},y=(Y,J,it,X)=>{[Y.el,Y.anchor]=p(Y.children,J,it,X,Y.el,Y.anchor)},b=({el:Y,anchor:J},it,X)=>{let _t;for(;Y&&Y!==J;)_t=d(Y),r(Y,it,X),Y=_t;r(J,it,X)},w=({el:Y,anchor:J})=>{let it;for(;Y&&Y!==J;)it=d(Y),o(Y),Y=it;o(J)},x=(Y,J,it,X,_t,z,W,G,pt)=>{W=W||J.type==="svg",Y==null?k(J,it,X,_t,z,W,G,pt):N(Y,J,_t,z,W,G,pt)},k=(Y,J,it,X,_t,z,W,G)=>{let pt,mt;const{type:Ot,props:Ct,shapeFlag:Vt,transition:Qt,dirs:ee}=Y;if(pt=Y.el=a(Y.type,z,Ct&&Ct.is,Ct),Vt&8?l(pt,Y.children):Vt&16&&S(Y.children,pt,null,X,_t,z&&Ot!=="foreignObject",W,G),ee&&Ua(Y,null,X,"created"),j(pt,Y,Y.scopeId,W,X),Ct){for(const ue in Ct)ue!=="value"&&!Wd(ue)&&i(pt,ue,null,Ct[ue],z,Y.children,X,_t,ft);"value"in Ct&&i(pt,"value",null,Ct.value),(mt=Ct.onVnodeBeforeMount)&&Yo(mt,X,Y)}ee&&Ua(Y,null,X,"beforeMount");const Kt=(!_t||_t&&!_t.pendingBranch)&&Qt&&!Qt.persisted;Kt&&Qt.beforeEnter(pt),r(pt,J,it),((mt=Ct&&Ct.onVnodeMounted)||Kt||ee)&&mo(()=>{mt&&Yo(mt,X,Y),Kt&&Qt.enter(pt),ee&&Ua(Y,null,X,"mounted")},_t)},j=(Y,J,it,X,_t)=>{if(it&&h(Y,it),X)for(let z=0;z<X.length;z++)h(Y,X[z]);if(_t){let z=_t.subTree;if(J===z){const W=_t.vnode;j(Y,W,W.scopeId,W.slotScopeIds,_t.parent)}}},S=(Y,J,it,X,_t,z,W,G,pt=0)=>{for(let mt=pt;mt<Y.length;mt++){const Ot=Y[mt]=G?hc(Y[mt]):Ei(Y[mt]);v(null,Ot,J,it,X,_t,z,W,G)}},N=(Y,J,it,X,_t,z,W)=>{const G=J.el=Y.el;let{patchFlag:pt,dynamicChildren:mt,dirs:Ot}=J;pt|=Y.patchFlag&16;const Ct=Y.props||wr,Vt=J.props||wr;let Qt;it&&uu(it,!1),(Qt=Vt.onVnodeBeforeUpdate)&&Yo(Qt,it,J,Y),Ot&&Ua(J,Y,it,"beforeUpdate"),it&&uu(it,!0);const ee=_t&&J.type!=="foreignObject";if(mt?C(Y.dynamicChildren,mt,G,it,X,ee,z):W||A(Y,J,G,null,it,X,ee,z,!1),pt>0){if(pt&16)$(G,J,Ct,Vt,it,X,_t);else if(pt&2&&Ct.class!==Vt.class&&i(G,"class",null,Vt.class,_t),pt&4&&i(G,"style",Ct.style,Vt.style,_t),pt&8){const Kt=J.dynamicProps;for(let ue=0;ue<Kt.length;ue++){const Me=Kt[ue],tn=Ct[Me],le=Vt[Me];(le!==tn||Me==="value")&&i(G,Me,tn,le,_t,Y.children,it,X,ft)}}pt&1&&Y.children!==J.children&&l(G,J.children)}else!W&&mt==null&&$(G,J,Ct,Vt,it,X,_t);((Qt=Vt.onVnodeUpdated)||Ot)&&mo(()=>{Qt&&Yo(Qt,it,J,Y),Ot&&Ua(J,Y,it,"updated")},X)},C=(Y,J,it,X,_t,z,W)=>{for(let G=0;G<J.length;G++){const pt=Y[G],mt=J[G],Ot=pt.el&&(pt.type===Bo||!la(pt,mt)||pt.shapeFlag&70)?f(pt.el):it;v(pt,mt,Ot,null,X,_t,z,W,!0)}},$=(Y,J,it,X,_t,z,W)=>{if(it!==X){if(it!==wr)for(const G in it)!Wd(G)&&!(G in X)&&i(Y,G,it[G],null,W,J.children,_t,z,ft);for(const G in X){if(Wd(G))continue;const pt=X[G],mt=it[G];pt!==mt&&G!=="value"&&i(Y,G,mt,pt,W,J.children,_t,z,ft)}"value"in X&&i(Y,"value",it.value,X.value)}},B=(Y,J,it,X,_t,z,W,G,pt)=>{const mt=J.el=Y?Y.el:s(""),Ot=J.anchor=Y?Y.anchor:s("");let{patchFlag:Ct,dynamicChildren:Vt,slotScopeIds:Qt}=J;Qt&&(G=G?G.concat(Qt):Qt),Y==null?(r(mt,it,X),r(Ot,it,X),S(J.children,it,Ot,_t,z,W,G,pt)):Ct>0&&Ct&64&&Vt&&Y.dynamicChildren?(C(Y.dynamicChildren,Vt,it,_t,z,W,G),(J.key!=null||_t&&J===_t.subTree)&&iI(Y,J,!0)):A(Y,J,it,Ot,_t,z,W,G,pt)},K=(Y,J,it,X,_t,z,W,G,pt)=>{J.slotScopeIds=G,Y==null?J.shapeFlag&512?_t.ctx.activate(J,it,X,W,pt):R(J,it,X,_t,z,W,pt):q(Y,J,pt)},R=(Y,J,it,X,_t,z,W)=>{const G=Y.component=$W(Y,X,_t);if(pp(Y)&&(G.ctx.renderer=bt),CW(G),G.asyncDep){if(_t&&_t.registerDep(G,F),!Y.el){const pt=G.subTree=nn(qo);g(null,pt,J,it)}return}F(G,Y,J,it,_t,z,W)},q=(Y,J,it)=>{const X=J.component=Y.component;if(DU(Y,J,it))if(X.asyncDep&&!X.asyncResolved){O(X,J,it);return}else X.next=J,AU(X.update),X.update();else J.el=Y.el,X.vnode=J},F=(Y,J,it,X,_t,z,W)=>{const G=()=>{if(Y.isMounted){let{next:Ot,bu:Ct,u:Vt,parent:Qt,vnode:ee}=Y,Kt=Ot,ue;uu(Y,!1),Ot?(Ot.el=ee.el,O(Y,Ot,W)):Ot=ee,Ct&&Wl(Ct),(ue=Ot.props&&Ot.props.onVnodeBeforeUpdate)&&Yo(ue,Qt,Ot,ee),uu(Y,!0);const Me=_1(Y),tn=Y.subTree;Y.subTree=Me,v(tn,Me,f(tn.el),tt(tn),Y,_t,z),Ot.el=Me.el,Kt===null&&xk(Y,Me.el),Vt&&mo(Vt,_t),(ue=Ot.props&&Ot.props.onVnodeUpdated)&&mo(()=>Yo(ue,Qt,Ot,ee),_t)}else{let Ot;const{el:Ct,props:Vt}=J,{bm:Qt,m:ee,parent:Kt}=Y,ue=Lu(J);if(uu(Y,!1),Qt&&Wl(Qt),!ue&&(Ot=Vt&&Vt.onVnodeBeforeMount)&&Yo(Ot,Kt,J),uu(Y,!0),Ct&&gt){const Me=()=>{Y.subTree=_1(Y),gt(Ct,Y.subTree,Y,_t,null)};ue?J.type.__asyncLoader().then(()=>!Y.isUnmounted&&Me()):Me()}else{const Me=Y.subTree=_1(Y);v(null,Me,it,X,Y,_t,z),J.el=Me.el}if(ee&&mo(ee,_t),!ue&&(Ot=Vt&&Vt.onVnodeMounted)){const Me=J;mo(()=>Yo(Ot,Kt,Me),_t)}(J.shapeFlag&256||Kt&&Lu(Kt.vnode)&&Kt.vnode.shapeFlag&256)&&Y.a&&mo(Y.a,_t),Y.isMounted=!0,J=it=X=null}},pt=Y.effect=new dk(G,()=>d0(mt),Y.scope),mt=Y.update=()=>pt.run();mt.id=Y.uid,uu(Y,!0),mt()},O=(Y,J,it)=>{J.component=Y;const X=Y.vnode.props;Y.vnode=J,Y.next=null,pW(Y,J.props,X,it),gW(Y,J.children,it),qf(),oS(),Hf()},A=(Y,J,it,X,_t,z,W,G,pt=!1)=>{const mt=Y&&Y.children,Ot=Y?Y.shapeFlag:0,Ct=J.children,{patchFlag:Vt,shapeFlag:Qt}=J;if(Vt>0){if(Vt&128){M(mt,Ct,it,X,_t,z,W,G,pt);return}else if(Vt&256){_(mt,Ct,it,X,_t,z,W,G,pt);return}}Qt&8?(Ot&16&&ft(mt,_t,z),Ct!==mt&&l(it,Ct)):Ot&16?Qt&16?M(mt,Ct,it,X,_t,z,W,G,pt):ft(mt,_t,z,!0):(Ot&8&&l(it,""),Qt&16&&S(Ct,it,X,_t,z,W,G,pt))},_=(Y,J,it,X,_t,z,W,G,pt)=>{Y=Y||Vl,J=J||Vl;const mt=Y.length,Ot=J.length,Ct=Math.min(mt,Ot);let Vt;for(Vt=0;Vt<Ct;Vt++){const Qt=J[Vt]=pt?hc(J[Vt]):Ei(J[Vt]);v(Y[Vt],Qt,it,null,_t,z,W,G,pt)}mt>Ot?ft(Y,_t,z,!0,!1,Ct):S(J,it,X,_t,z,W,G,pt,Ct)},M=(Y,J,it,X,_t,z,W,G,pt)=>{let mt=0;const Ot=J.length;let Ct=Y.length-1,Vt=Ot-1;for(;mt<=Ct&&mt<=Vt;){const Qt=Y[mt],ee=J[mt]=pt?hc(J[mt]):Ei(J[mt]);if(la(Qt,ee))v(Qt,ee,it,null,_t,z,W,G,pt);else break;mt++}for(;mt<=Ct&&mt<=Vt;){const Qt=Y[Ct],ee=J[Vt]=pt?hc(J[Vt]):Ei(J[Vt]);if(la(Qt,ee))v(Qt,ee,it,null,_t,z,W,G,pt);else break;Ct--,Vt--}if(mt>Ct){if(mt<=Vt){const Qt=Vt+1,ee=Qt<Ot?J[Qt].el:X;for(;mt<=Vt;)v(null,J[mt]=pt?hc(J[mt]):Ei(J[mt]),it,ee,_t,z,W,G,pt),mt++}}else if(mt>Vt)for(;mt<=Ct;)D(Y[mt],_t,z,!0),mt++;else{const Qt=mt,ee=mt,Kt=new Map;for(mt=ee;mt<=Vt;mt++){const Ye=J[mt]=pt?hc(J[mt]):Ei(J[mt]);Ye.key!=null&&Kt.set(Ye.key,mt)}let ue,Me=0;const tn=Vt-ee+1;let le=!1,wn=0;const Ne=new Array(tn);for(mt=0;mt<tn;mt++)Ne[mt]=0;for(mt=Qt;mt<=Ct;mt++){const Ye=Y[mt];if(Me>=tn){D(Ye,_t,z,!0);continue}let Ke;if(Ye.key!=null)Ke=Kt.get(Ye.key);else for(ue=ee;ue<=Vt;ue++)if(Ne[ue-ee]===0&&la(Ye,J[ue])){Ke=ue;break}Ke===void 0?D(Ye,_t,z,!0):(Ne[Ke-ee]=mt+1,Ke>=wn?wn=Ke:le=!0,v(Ye,J[Ke],it,null,_t,z,W,G,pt),Me++)}const mn=le?xW(Ne):Vl;for(ue=mn.length-1,mt=tn-1;mt>=0;mt--){const Ye=ee+mt,Ke=J[Ye],qn=Ye+1<Ot?J[Ye+1].el:X;Ne[mt]===0?v(null,Ke,it,qn,_t,z,W,G,pt):le&&(ue<0||mt!==mn[ue]?P(Ke,it,qn,2):ue--)}}},P=(Y,J,it,X,_t=null)=>{const{el:z,type:W,transition:G,children:pt,shapeFlag:mt}=Y;if(mt&6){P(Y.component.subTree,J,it,X);return}if(mt&128){Y.suspense.move(J,it,X);return}if(mt&64){W.move(Y,J,it,bt);return}if(W===Bo){r(z,J,it);for(let Ct=0;Ct<pt.length;Ct++)P(pt[Ct],J,it,X);r(Y.anchor,J,it);return}if(W===Jd){b(Y,J,it);return}if(X!==2&&mt&1&&G)if(X===0)G.beforeEnter(z),r(z,J,it),mo(()=>G.enter(z),_t);else{const{leave:Ct,delayLeave:Vt,afterLeave:Qt}=G,ee=()=>r(z,J,it),Kt=()=>{Ct(z,()=>{ee(),Qt&&Qt()})};Vt?Vt(z,ee,Kt):Kt()}else r(z,J,it)},D=(Y,J,it,X=!1,_t=!1)=>{const{type:z,props:W,ref:G,children:pt,dynamicChildren:mt,shapeFlag:Ot,patchFlag:Ct,dirs:Vt}=Y;if(G!=null&&Qm(G,null,it,Y,!0),Ot&256){J.ctx.deactivate(Y);return}const Qt=Ot&1&&Vt,ee=!Lu(Y);let Kt;if(ee&&(Kt=W&&W.onVnodeBeforeUnmount)&&Yo(Kt,J,Y),Ot&6)I(Y.component,it,X);else{if(Ot&128){Y.suspense.unmount(it,X);return}Qt&&Ua(Y,null,J,"beforeUnmount"),Ot&64?Y.type.remove(Y,J,it,_t,bt,X):mt&&(z!==Bo||Ct>0&&Ct&64)?ft(mt,J,it,!1,!0):(z===Bo&&Ct&384||!_t&&Ot&16)&&ft(pt,J,it),X&&T(Y)}(ee&&(Kt=W&&W.onVnodeUnmounted)||Qt)&&mo(()=>{Kt&&Yo(Kt,J,Y),Qt&&Ua(Y,null,J,"unmounted")},it)},T=Y=>{const{type:J,el:it,anchor:X,transition:_t}=Y;if(J===Bo){H(it,X);return}if(J===Jd){w(Y);return}const z=()=>{o(it),_t&&!_t.persisted&&_t.afterLeave&&_t.afterLeave()};if(Y.shapeFlag&1&&_t&&!_t.persisted){const{leave:W,delayLeave:G}=_t,pt=()=>W(it,z);G?G(Y.el,z,pt):pt()}else z()},H=(Y,J)=>{let it;for(;Y!==J;)it=d(Y),o(Y),Y=it;o(J)},I=(Y,J,it)=>{const{bum:X,scope:_t,update:z,subTree:W,um:G}=Y;X&&Wl(X),_t.stop(),z&&(z.active=!1,D(W,Y,J,it)),G&&mo(G,J),mo(()=>{Y.isUnmounted=!0},J),J&&J.pendingBranch&&!J.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===J.pendingId&&(J.deps--,J.deps===0&&J.resolve())},ft=(Y,J,it,X=!1,_t=!1,z=0)=>{for(let W=z;W<Y.length;W++)D(Y[W],J,it,X,_t)},tt=Y=>Y.shapeFlag&6?tt(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():d(Y.anchor||Y.el),yt=(Y,J,it)=>{Y==null?J._vnode&&D(J._vnode,null,null,!0):v(J._vnode||null,Y,J,null,null,null,it),oS(),Um(),J._vnode=Y},bt={p:v,um:D,m:P,r:T,mt:R,mc:S,pc:A,pbc:C,n:tt,o:e};let jt,gt;return t&&([jt,gt]=t(bt)),{render:yt,hydrate:jt,createApp:dW(yt,jt)}}function uu({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function iI(e,t,n=!1){const r=e.children,o=t.children;if(Pe(r)&&Pe(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=hc(o[i]),s.el=a.el),n||iI(a,s)),s.type===mf&&(s.el=a.el)}}function xW(e){const t=e.slice(),n=[0];let r,o,i,a,s;const c=e.length;for(r=0;r<c;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const kW=e=>e.__isTeleport,Bo=Symbol.for("v-fgt"),mf=Symbol.for("v-txt"),qo=Symbol.for("v-cmt"),Jd=Symbol.for("v-stc"),Gd=[];let Ti=null;function Vn(e=!1){Gd.push(Ti=e?null:[])}function aI(){Gd.pop(),Ti=Gd[Gd.length-1]||null}let gf=1;function gS(e){gf+=e}function sI(e){return e.dynamicChildren=gf>0?Ti||Vl:null,aI(),gf>0&&Ti&&Ti.push(e),e}function li(e,t,n,r,o,i){return sI(nr(e,t,n,r,o,i,!0))}function xo(e,t,n,r,o){return sI(nn(e,t,n,r,o,!0))}function yf(e){return e?e.__v_isVNode===!0:!1}function la(e,t){return e.type===t.type&&e.key===t.key}const g0="__vInternal",cI=({key:e})=>e??null,dm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Fr(e)||Yr(e)||Ge(e)?{i:ao,r:e,k:t,f:!!n}:e:null);function nr(e,t=null,n=null,r=0,o=null,i=e===Bo?0:1,a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cI(t),ref:t&&dm(t),scopeId:p0,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ao};return s?(Ek(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=Fr(n)?8:16),gf>0&&!a&&Ti&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ti.push(c),c}const nn=jW;function jW(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===K7)&&(e=qo),yf(e)){const s=qs(e,t,!0);return n&&Ek(s,n),gf>0&&!i&&Ti&&(s.shapeFlag&6?Ti[Ti.indexOf(e)]=s:Ti.push(s)),s.patchFlag|=-2,s}if(AW(e)&&(e=e.__vccOpts),t){t=Ck(t);let{class:s,style:c}=t;s&&!Fr(s)&&(t.class=Gr(s)),ir(c)&&(_7(c)&&!Pe(c)&&(c=Xr({},c)),t.style=zc(c))}const a=Fr(e)?1:R7(e)?128:kW(e)?64:ir(e)?4:Ge(e)?2:0;return nr(e,t,n,r,o,a,i,!0)}function Ck(e){return e?_7(e)||g0 in e?Xr({},e):e:null}function qs(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?Ok(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&cI(s),ref:t&&t.ref?n&&o?Pe(o)?o.concat(dm(t)):[o,dm(t)]:dm(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Bo?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qs(e.ssContent),ssFallback:e.ssFallback&&qs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Au(e=" ",t=0){return nn(mf,null,e,t)}function qa(e="",t=!1){return t?(Vn(),xo(qo,null,e)):nn(qo,null,e)}function Ei(e){return e==null||typeof e=="boolean"?nn(qo):Pe(e)?nn(Bo,null,e.slice()):typeof e=="object"?hc(e):nn(mf,null,String(e))}function hc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qs(e)}function Ek(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Pe(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Ek(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(g0 in t)?t._ctx=ao:o===3&&ao&&(ao.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:ao},n=32):(t=String(t),r&64?(n=16,t=[Au(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ok(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Gr([t.class,r.class]));else if(o==="style")t.style=zc([t.style,r.style]);else if(dp(o)){const i=t[o],a=r[o];a&&i!==a&&!(Pe(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function Yo(e,t,n,r=null){Di(e,t,7,[n,r])}const _W=Y7();let SW=0;function $W(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||_W,i={uid:SW++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new UV(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tI(r,o),emitsOptions:T7(r,o),emit:null,emitted:null,propsDefaults:wr,inheritAttrs:r.inheritAttrs,ctx:wr,data:wr,props:wr,attrs:wr,slots:wr,refs:wr,setupState:wr,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=TU.bind(null,i),e.ce&&e.ce(i),i}let Qr=null;const Qs=()=>Qr||ao;let Mk,yl,yS="__VUE_INSTANCE_SETTERS__";(yl=vb()[yS])||(yl=vb()[yS]=[]),yl.push(e=>Qr=e),Mk=e=>{yl.length>1?yl.forEach(t=>t(e)):yl[0](e)};const Bc=e=>{Mk(e),e.scope.on()},Oc=()=>{Qr&&Qr.scope.off(),Mk(null)};function uI(e){return e.vnode.shapeFlag&4}let bf=!1;function CW(e,t=!1){bf=t;const{props:n,children:r}=e.vnode,o=uI(e);hW(e,n,o,t),mW(e,r);const i=o?EW(e,t):void 0;return bf=!1,i}function EW(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=S7(new Proxy(e.ctx,iW));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?MW(e):null;Bc(e),qf();const i=Ec(r,e,0,[e.props,o]);if(Hf(),Oc(),ck(i)){if(i.then(Oc,Oc),t)return i.then(a=>{$b(e,a,t)}).catch(a=>{Vf(a,e,0)});e.asyncDep=i}else $b(e,i,t)}else lI(e,t)}function $b(e,t,n){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ir(t)&&(e.setupState=E7(t)),lI(e,n)}let bS;function lI(e,t,n){const r=e.type;if(!e.render){if(!t&&bS&&!r.render){const o=r.template||Sk(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:c}=r,u=Xr(Xr({isCustomElement:i,delimiters:s},a),c);r.render=bS(o,u)}}e.render=r.render||ba}Bc(e),qf(),aW(e),Hf(),Oc()}function OW(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ri(e,"get","$attrs"),t[n]}}))}function MW(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return OW(e)},slots:e.slots,emit:e.emit,expose:t}}function y0(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(E7(S7(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kd)return Kd[n](e)},has(t,n){return n in t||n in Kd}}))}function Cb(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function AW(e){return Ge(e)&&"__vccOpts"in e}const hr=(e,t)=>EU(e,t,bf);function Ho(e,t,n){const r=arguments.length;return r===2?ir(t)&&!Pe(t)?yf(t)?nn(e,null,[t]):nn(e,t):nn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yf(n)&&(n=[n]),nn(e,t,n))}const PW=Symbol.for("v-scx"),TW=()=>gi(PW),fI="3.3.4",RW="http://www.w3.org/2000/svg",_u=typeof document<"u"?document:null,wS=_u&&_u.createElement("template"),IW={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?_u.createElementNS(RW,e):_u.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>_u.createTextNode(e),createComment:e=>_u.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_u.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{wS.innerHTML=r?`<svg>${e}</svg>`:e;const s=wS.content;if(r){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function NW(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function DW(e,t,n){const r=e.style,o=Fr(n);if(n&&!o){if(t&&!Fr(t))for(const i in t)n[i]==null&&Eb(r,i,"");for(const i in n)Eb(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const xS=/\s*!important$/;function Eb(e,t,n){if(Pe(n))n.forEach(r=>Eb(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=zW(e,t);xS.test(n)?e.setProperty(Ff(r),n.replace(xS,""),"important"):e[r]=n}}const kS=["Webkit","Moz","ms"],M1={};function zW(e,t){const n=M1[t];if(n)return n;let r=is(t);if(r!=="filter"&&r in e)return M1[t]=r;r=l0(r);for(let o=0;o<kS.length;o++){const i=kS[o]+r;if(i in e)return M1[t]=i}return t}const jS="http://www.w3.org/1999/xlink";function LW(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(jS,t.slice(6,t.length)):e.setAttributeNS(jS,t,n);else{const i=HV(t);n==null||i&&!f7(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function BW(e,t,n,r,o,i,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,o,i),e[t]=n??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=n;const u=s==="OPTION"?e.getAttribute("value"):e.value,l=n??"";u!==l&&(e.value=l),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=f7(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}function Es(e,t,n,r){e.addEventListener(t,n,r)}function FW(e,t,n,r){e.removeEventListener(t,n,r)}function qW(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[s,c]=HW(t);if(r){const u=i[t]=WW(r,o);Es(e,s,u,c)}else a&&(FW(e,s,a,c),i[t]=void 0)}}const _S=/(?:Once|Passive|Capture)$/;function HW(e){let t;if(_S.test(e)){t={};let r;for(;r=e.match(_S);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ff(e.slice(2)),t]}let A1=0;const VW=Promise.resolve(),UW=()=>A1||(VW.then(()=>A1=0),A1=Date.now());function WW(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Di(KW(r,n.value),t,5,[r])};return n.value=e,n.attached=UW(),n}function KW(e,t){if(Pe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const SS=/^on[a-z]/,JW=(e,t,n,r,o=!1,i,a,s,c)=>{t==="class"?NW(e,r,o):t==="style"?DW(e,n,r):dp(t)?ak(t)||qW(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):GW(e,t,r,o))?BW(e,t,r,i,a,s,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),LW(e,t,r,o))};function GW(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&SS.test(t)&&Ge(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||SS.test(t)&&Fr(n)?!1:t in e}function c4t(e){const t=Qs();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Mb(i,o))},r=()=>{const o=e(t.proxy);Ob(t.subTree,o),n(o)};UU(r),cl(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),vf(()=>o.disconnect())})}function Ob(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ob(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Mb(e.el,t);else if(e.type===Bo)e.children.forEach(n=>Ob(n,t));else if(e.type===Jd){let{el:n,anchor:r}=e;for(;n&&(Mb(n,t),n!==r);)n=n.nextSibling}}function Mb(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const sc="transition",fd="animation",Ak=(e,{slots:t})=>Ho(QU,QW(e),t);Ak.displayName="Transition";const dI={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ak.props=Xr({},z7,dI);const lu=(e,t=[])=>{Pe(e)?e.forEach(n=>n(...t)):e&&e(...t)},$S=e=>e?Pe(e)?e.some(t=>t.length>1):e.length>1:!1;function QW(e){const t={};for(const B in e)B in dI||(t[B]=e[B]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=a,appearToClass:l=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=YW(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:x,onBeforeAppear:k=g,onAppear:j=y,onAppearCancelled:S=b}=t,N=(B,K,R)=>{fu(B,K?l:s),fu(B,K?u:a),R&&R()},C=(B,K)=>{B._isLeaving=!1,fu(B,f),fu(B,h),fu(B,d),K&&K()},$=B=>(K,R)=>{const q=B?j:y,F=()=>N(K,B,R);lu(q,[K,F]),CS(()=>{fu(K,B?c:i),cc(K,B?l:s),$S(q)||ES(K,r,v,F)})};return Xr(t,{onBeforeEnter(B){lu(g,[B]),cc(B,i),cc(B,a)},onBeforeAppear(B){lu(k,[B]),cc(B,c),cc(B,u)},onEnter:$(!1),onAppear:$(!0),onLeave(B,K){B._isLeaving=!0;const R=()=>C(B,K);cc(B,f),tK(),cc(B,d),CS(()=>{B._isLeaving&&(fu(B,f),cc(B,h),$S(w)||ES(B,r,m,R))}),lu(w,[B,R])},onEnterCancelled(B){N(B,!1),lu(b,[B])},onAppearCancelled(B){N(B,!0),lu(S,[B])},onLeaveCancelled(B){C(B),lu(x,[B])}})}function YW(e){if(e==null)return null;if(ir(e))return[P1(e.enter),P1(e.leave)];{const t=P1(e);return[t,t]}}function P1(e){return u7(e)}function cc(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function fu(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function CS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let XW=0;function ES(e,t,n,r){const o=e._endId=++XW,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:c}=ZW(e,t);if(!a)return r();const u=a+"end";let l=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++l>=c&&f()};setTimeout(()=>{l<c&&f()},s+1),e.addEventListener(u,d)}function ZW(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),o=r(`${sc}Delay`),i=r(`${sc}Duration`),a=OS(o,i),s=r(`${fd}Delay`),c=r(`${fd}Duration`),u=OS(s,c);let l=null,f=0,d=0;t===sc?a>0&&(l=sc,f=a,d=i.length):t===fd?u>0&&(l=fd,f=u,d=c.length):(f=Math.max(a,u),l=f>0?a>u?sc:fd:null,d=l?l===sc?i.length:c.length:0);const h=l===sc&&/\b(transform|all)(,|$)/.test(r(`${sc}Property`).toString());return{type:l,timeout:f,propCount:d,hasTransform:h}}function OS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>MS(n)+MS(e[r])))}function MS(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function tK(){return document.body.offsetHeight}const Fc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Pe(t)?n=>Wl(t,n):t};function eK(e){e.target.composing=!0}function AS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const PS={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Fc(o);const i=r||o.props&&o.props.type==="number";Es(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=qm(s)),e._assign(s)}),n&&Es(e,"change",()=>{e.value=e.value.trim()}),t||(Es(e,"compositionstart",eK),Es(e,"compositionend",AS),Es(e,"change",AS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Fc(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&qm(e.value)===t))return;const a=t??"";e.value!==a&&(e.value=a)}},nK={deep:!0,created(e,t,n){e._assign=Fc(n),Es(e,"change",()=>{const r=e._modelValue,o=wf(e),i=e.checked,a=e._assign;if(Pe(r)){const s=lk(r,o),c=s!==-1;if(i&&!c)a(r.concat(o));else if(!i&&c){const u=[...r];u.splice(s,1),a(u)}}else if(Lf(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(hI(e,i))})},mounted:TS,beforeUpdate(e,t,n){e._assign=Fc(n),TS(e,t,n)}};function TS(e,{value:t,oldValue:n},r){e._modelValue=t,Pe(t)?e.checked=lk(t,r.props.value)>-1:Lf(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Uu(t,hI(e,!0)))}const rK={created(e,{value:t},n){e.checked=Uu(t,n.props.value),e._assign=Fc(n),Es(e,"change",()=>{e._assign(wf(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Fc(r),t!==n&&(e.checked=Uu(t,r.props.value))}},oK={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Lf(t);Es(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?qm(wf(a)):wf(a));e._assign(e.multiple?o?new Set(i):i:i[0])}),e._assign=Fc(r)},mounted(e,{value:t}){RS(e,t)},beforeUpdate(e,t,n){e._assign=Fc(n)},updated(e,{value:t}){RS(e,t)}};function RS(e,t){const n=e.multiple;if(!(n&&!Pe(t)&&!Lf(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=wf(i);if(n)Pe(t)?i.selected=lk(t,a)>-1:i.selected=t.has(a);else if(Uu(wf(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wf(e){return"_value"in e?e._value:e.value}function hI(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iK={created(e,t,n){Xp(e,t,n,null,"created")},mounted(e,t,n){Xp(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Xp(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Xp(e,t,n,r,"updated")}};function aK(e,t){switch(e){case"SELECT":return oK;case"TEXTAREA":return PS;default:switch(t){case"checkbox":return nK;case"radio":return rK;default:return PS}}}function Xp(e,t,n,r,o){const a=aK(e.tagName,n.props&&n.props.type)[o];a&&a(e,t,n,r)}const pI=Xr({patchProp:JW},IW);let Qd,IS=!1;function sK(){return Qd||(Qd=bW(pI))}function cK(){return Qd=IS?Qd:wW(pI),IS=!0,Qd}const uK=(...e)=>{const t=sK().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=vI(r);if(!o)return;const i=t._component;!Ge(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},lK=(...e)=>{const t=cK().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=vI(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function vI(e){return Fr(e)?document.querySelector(e):e}const fK=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,dK=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,hK=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function pK(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){vK(e);return}return t}function vK(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ym(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e[e.length-1]==='"')return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!hK.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(fK.test(e)||dK.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,pK)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const mK=/#/g,gK=/&/g,yK=/=/g,Pk=/\+/g,bK=/%5e/gi,wK=/%60/gi,xK=/%7c/gi,kK=/%20/gi;function jK(e){return encodeURI(""+e).replace(xK,"|")}function Ab(e){return jK(typeof e=="string"?e:JSON.stringify(e)).replace(Pk,"%2B").replace(kK,"+").replace(mK,"%23").replace(gK,"%26").replace(wK,"`").replace(bK,"^")}function T1(e){return Ab(e).replace(yK,"%3D")}function Xm(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function _K(e){return Xm(e.replace(Pk," "))}function SK(e){return Xm(e.replace(Pk," "))}function mI(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=_K(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=SK(r[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function $K(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${T1(e)}=${Ab(n)}`).join("&"):`${T1(e)}=${Ab(t)}`:T1(e)}function CK(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>$K(t,e[t])).filter(Boolean).join("&")}const EK=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,OK=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,MK=/^([/\\]\s*){2,}[^/\\]/;function Uf(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?EK.test(e):OK.test(e)||(t.acceptRelative?MK.test(e):!1)}const AK=/^[\s\0]*(blob|data|javascript|vbscript):$/i;function PK(e){return!!e&&AK.test(e)}const TK=/\/$|\/\?/;function Pb(e="",t=!1){return t?TK.test(e):e.endsWith("/")}function Tk(e="",t=!1){if(!t)return(Pb(e)?e.slice(0,-1):e)||"/";if(!Pb(e,!0))return e||"/";const[n,...r]=e.split("?");return(n.slice(0,-1)||"/")+(r.length>0?`?${r.join("?")}`:"")}function Zm(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Pb(e,!0))return e||"/";const[n,...r]=e.split("?");return n+"/"+(r.length>0?`?${r.join("?")}`:"")}function RK(e=""){return e.startsWith("/")}function NS(e=""){return RK(e)?e:"/"+e}function gI(e,t){if(bI(t)||Uf(e))return e;const n=Tk(t);return e.startsWith(n)?e:mp(n,e)}function DS(e,t){if(bI(t))return e;const n=Tk(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function yI(e,t){const n=gp(e),r={...mI(n.search),...t};return n.search=CK(r),zK(n)}function bI(e){return!e||e==="/"}function IK(e){return e&&e!=="/"}const NK=/^\.?\//;function mp(e,...t){let n=e||"";for(const r of t.filter(o=>IK(o)))if(n){const o=r.replace(NK,"");n=Zm(n)+o}else n=r;return n}function DK(e,t,n={}){return n.trailingSlash||(e=Zm(e),t=Zm(t)),n.leadingSlash||(e=NS(e),t=NS(t)),n.encoding||(e=Xm(e),t=Xm(t)),e===t}function gp(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(n){const[,f,d=""]=n;return{protocol:f,pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Uf(e,{acceptRelative:!0}))return t?gp(t+e):zS(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",s=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:l}=zS(s.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r,auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:a,pathname:c,search:u,hash:l}}function zS(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function zK(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol?e.protocol+"//":"")+o+i+t+n+r}class LK extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function BK(e){var c,u,l,f,d;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",n=((l=e.request)==null?void 0:l.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=`${o}: ${i}${t?` ${t}`:""}`,s=new LK(a,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(s,h,{get(){return e[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,h,{get(){return e.response&&e.response[p]}});return s}const FK=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function LS(e="GET"){return FK.has(e.toUpperCase())}function qK(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const HK=new Set(["image/svg","application/xml","application/xhtml","application/html"]),VK=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function UK(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return VK.test(t)?"json":HK.has(t)||t.startsWith("text/")?"text":"blob"}function WK(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,i)}return r}const KK=new Set([408,409,425,429,500,502,503,504]),JK=new Set([101,204,205,304]);function wI(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(s){const c=s.error&&s.error.name==="AbortError"&&!s.options.timeout||!1;if(s.options.retry!==!1&&!c){let l;typeof s.options.retry=="number"?l=s.options.retry:l=LS(s.options.method)?0:1;const f=s.response&&s.response.status||500;if(l>0&&(Array.isArray(s.options.retryStatusCodes)?s.options.retryStatusCodes.includes(f):KK.has(f))){const d=s.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),i(s.request,{...s.options,retry:l-1,timeout:s.options.timeout})}}const u=BK(s);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var d;const l={request:c,options:WK(u,e.defaults,n),response:void 0,error:void 0};if(l.options.method=(d=l.options.method)==null?void 0:d.toUpperCase(),l.options.onRequest&&await l.options.onRequest(l),typeof l.request=="string"&&(l.options.baseURL&&(l.request=gI(l.request,l.options.baseURL)),(l.options.query||l.options.params)&&(l.request=yI(l.request,{...l.options.params,...l.options.query}))),l.options.body&&LS(l.options.method)&&(qK(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new n(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half"))),!l.options.signal&&l.options.timeout){const h=new r;setTimeout(()=>h.abort(),l.options.timeout),l.options.signal=h.signal}try{l.response=await t(l.request,l.options)}catch(h){return l.error=h,l.options.onRequestError&&await l.options.onRequestError(l),await o(l)}if(l.response.body&&!JK.has(l.response.status)&&l.options.method!=="HEAD"){const h=(l.options.parseResponse?"json":l.options.responseType)||UK(l.response.headers.get("content-type")||"");switch(h){case"json":{const p=await l.response.text(),v=l.options.parseResponse||Ym;l.response._data=v(p);break}case"stream":{l.response._data=l.response.body;break}default:l.response._data=await l.response[h]()}}return l.options.onResponse&&await l.options.onResponse(l),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await l.options.onResponseError(l),await o(l)):l.response},a=async function(c,u){return(await i(c,u))._data};return a.raw=i,a.native=(...s)=>t(...s),a.create=(s={})=>wI({...e,defaults:{...e.defaults,...s}}),a}const Rk=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),GK=Rk.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),QK=Rk.Headers,YK=Rk.AbortController,XK=wI({fetch:GK,Headers:QK,AbortController:YK}),ZK=XK,tJ=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},tg=tJ().app,eJ=()=>tg.baseURL,nJ=()=>tg.buildAssetsDir,rJ=(...e)=>mp(xI(),nJ(),...e),xI=(...e)=>{const t=tg.cdnURL||tg.baseURL;return e.length?mp(t,...e):t};globalThis.__buildAssetsURL=rJ,globalThis.__publicAssetsURL=xI;function Tb(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Tb(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const oJ={run:e=>e()},iJ=()=>oJ,kI=typeof console.createTask<"u"?console.createTask:iJ;function aJ(e,t){const n=t.shift(),r=kI(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function sJ(e,t){const n=t.shift(),r=kI(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function R1(e,t){for(const n of[...e])n(t)}class cJ{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let a=i.message;a||(a=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Tb(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Tb(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(aJ,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(sJ,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&R1(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&R1(this._after,o)}):(this._after&&o&&R1(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function jI(){return new cJ}function uJ(e={}){let t,n=!1;const r=a=>{if(t&&t!==a)throw new Error("Context conflict")};let o;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?o=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(o&&t===void 0){const a=o.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=i();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>i(),set:(a,s)=>{s||r(a),t=a,n=!0},unset:()=>{t=void 0,n=!1},call:(a,s)=>{r(a),t=a;try{return o?o.run(a,s):s()}finally{n||(t=void 0)}},async callAsync(a,s){t=a;const c=()=>{t=a},u=()=>t===a?c:void 0;Rb.add(u);try{const l=o?o.run(a,s):s();return n||(t=void 0),await l}finally{Rb.delete(u)}}}}function lJ(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=uJ({...e,...r})),t[n],t[n]}}}const eg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},BS="__unctx__",fJ=eg[BS]||(eg[BS]=lJ()),dJ=(e,t={})=>fJ.get(e,t),FS="__unctx_async_handlers__",Rb=eg[FS]||(eg[FS]=new Set);function ng(e){const t=[];for(const o of Rb){const i=o();i&&t.push(i)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const _I=dJ("nuxt-app",{asyncContext:!1}),hJ="__nuxt_plugin";function pJ(e){let t=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.7.4"},get vue(){return n.vueApp.version}},payload:as({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>gJ(n,o),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=jI(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;Zp(n,a,i),Zp(n.vueApp.config.globalProperties,a,i)},Zp(n.vueApp,"$nuxt",n),Zp(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||ar;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=as(n.payload.config);return n.provide("config",r),n}async function vJ(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function mJ(e,t){const n=[],r=[];for(const o of t){const i=vJ(e,o);o.parallel?n.push(i.catch(a=>r.push(a))):await i}if(await Promise.all(n),r.length)throw r[0]}/*! @__NO_SIDE_EFFECTS__ */function Ys(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[hJ]:!0}))}function gJ(e,t,n){const r=()=>n?t(...n):t();return _I.set(e),e.vueApp.runWithContext(r)}/*! @__NO_SIDE_EFFECTS__ */function ar(){var t;let e;if(X7()&&(e=(t=Qs())==null?void 0:t.appContext.app.$nuxt),e=e||_I.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function Ik(){return ar().$config}function Zp(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const yJ="modulepreload",bJ=function(e,t){return e[0]==="."?new URL(e,t).href:e},qS={},wJ=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=bJ(i,r),i in qS)return;qS[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let l=o.length-1;l>=0;l--){const f=o[l];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":yJ,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((l,f)=>{u.addEventListener("load",l),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Os=(...e)=>wJ(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),xJ=-1,kJ=-2,jJ=-3,_J=-4,SJ=-5,$J=-6;function CJ(e,t){return EJ(JSON.parse(e),t)}function EJ(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(i,a=!1){if(i===xJ)return;if(i===jJ)return NaN;if(i===_J)return 1/0;if(i===SJ)return-1/0;if(i===$J)return-0;if(a)throw new Error("Invalid input");if(i in r)return r[i];const s=n[i];if(!s||typeof s!="object")r[i]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],u=t==null?void 0:t[c];if(u)return r[i]=u(o(s[1]));switch(c){case"Date":r[i]=new Date(s[1]);break;case"Set":const l=new Set;r[i]=l;for(let h=1;h<s.length;h+=1)l.add(o(s[h]));break;case"Map":const f=new Map;r[i]=f;for(let h=1;h<s.length;h+=2)f.set(o(s[h]),o(s[h+1]));break;case"RegExp":r[i]=new RegExp(s[1],s[2]);break;case"Object":r[i]=Object(s[1]);break;case"BigInt":r[i]=BigInt(s[1]);break;case"null":const d=Object.create(null);r[i]=d;for(let h=1;h<s.length;h+=2)d[s[h]]=o(s[h+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);r[i]=c;for(let u=0;u<s.length;u+=1){const l=s[u];l!==kJ&&(c[u]=o(l))}}else{const c={};r[i]=c;for(const u in s){const l=s[u];c[u]=o(l)}}return r[i]}return o(0)}function OJ(e){return Array.isArray(e)?e:[e]}const MJ=["title","titleTemplate","script","style","noscript"],hm=["base","meta","link","style","script","noscript"],AJ=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],PJ=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],SI=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],TJ=typeof window<"u";function $I(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function HS(e){return e._h||$I(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function CI(e,t){const{props:n,tag:r}=e;if(PJ.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const i of o)if(typeof n[i]<"u"){const a=String(n[i]);return t&&!t(a)?!1:`${r}:${i}:${a}`}return!1}function VS(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function RJ(e,t,n){const r={tag:e,props:await EI(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return SI.forEach(o=>{const i=typeof r.props[o]<"u"?r.props[o]:n[o];typeof i<"u"&&((!["innerHTML","textContent"].includes(o)||MJ.includes(r.tag))&&(r[o]=i),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.props.children&&(r.innerHTML=r.props.children,delete r.props.children),r.tag==="script"&&(typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),r.innerHTML&&["application/ld+json","application/json"].includes(r.props.type)&&(r.innerHTML=r.innerHTML.replace(/</g,"\\u003C"))),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function IJ(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function EI(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=IJ(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!SI.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const NJ=10;async function DJ(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&AJ.includes(n)).forEach(([n,r])=>{const o=OJ(r);t.push(...o.map(i=>RJ(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<NJ)+r,n))}const US={base:-10,title:10},WS={critical:-80,high:-10,low:20};function rg(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in US&&(t=US[e.tag]),typeof n=="string"&&n in WS?t+WS[n]:t)}const zJ=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],uc="%separator";function yu(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(a){let s;return["s","pageTitle"].includes(a)?s=t.pageTitle:a.includes(".")?s=a.split(".").reduce((c,u)=>c&&c[u]||void 0,t):s=t[a],typeof s<"u"?(s||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(a=>{const s=r(a.slice(1));typeof s=="string"&&(e=e.replace(new RegExp(`\\${a}(\\W|$)`,"g"),(c,u)=>`${s}${u}`).trim())}),e.includes(uc)&&(e.endsWith(uc)&&(e=e.slice(0,-uc.length).trim()),e.startsWith(uc)&&(e=e.slice(uc.length).trim()),e=e.replace(new RegExp(`\\${uc}\\s*\\${uc}`,"g"),uc),e=yu(e,{separator:n},n)),e}async function LJ(e){const t={tag:e.tagName.toLowerCase(),props:await EI(e.getAttributeNames().reduce((n,r)=>({...n,[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML};return t._d=CI(t),t}async function OI(e,t={}){var l;const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:hm.includes(f.tag)?HS(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(l=n==null?void 0:n[f])==null?void 0:l.children;for(const h of[...d].filter(p=>hm.includes(p.tagName.toLowerCase())))i.elMap[h.getAttribute("data-hid")||HS(await LJ(h))]=h}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function a(f,d,h){const p=`${f}:${d}`;i.sideEffects[p]=h,delete i.pendingSideEffects[p]}function s({id:f,$el:d,tag:h}){const p=h.tag.endsWith("Attrs");i.elMap[f]=d,p||(["textContent","innerHTML"].forEach(v=>{h[v]&&h[v]!==d[v]&&(d[v]=h[v])}),a(f,"el",()=>{i.elMap[f].remove(),delete i.elMap[f]})),Object.entries(h.props).forEach(([v,m])=>{const g=`attr:${v}`;if(v==="class")for(const y of(m||"").split(" ").filter(Boolean))p&&a(f,`${g}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else d.getAttribute(v)!==m&&d.setAttribute(v,m===!0?"":String(m)),p&&a(f,g,()=>d.removeAttribute(v))})}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:p}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||i.elMap[p],f.$el?s(f):hm.includes(d.tag)&&c.push(f)}}for(const f of c){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),s(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,a);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function BJ(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await OI(e,t),delete e._domUpdatePromise,r()}))}function FJ(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){BJ(i,e)}}}}}const qJ=["templateParams","htmlAttrs","bodyAttrs"],HJ={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=CI(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[o];if(i){let s=r==null?void 0:r.tagDuplicateStrategy;if(!s&&qJ.includes(r.tag)&&(s="merge"),s==="merge"){const c=i.props;["class","style"].forEach(u=>{r.props[u]&&c[u]&&(u==="style"&&!c[u].endsWith(";")&&(c[u]+=";"),r.props[u]=`${c[u]} ${r.props[u]}`)}),t[o].props={...c,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(rg(r)>rg(i))return}const a=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(hm.includes(r.tag)&&a===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},VJ={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},KS=["script","link","bodyAttrs"];function JS(e){const t={},n={};return Object.entries(e.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"?n[r]=o:t[r]=o}),{props:t,eventHandlers:n}}const UJ={hooks:{"ssr:render":function(e){e.tags=e.tags.map(t=>(!KS.includes(t.tag)||!Object.entries(t.props).find(([n,r])=>n.startsWith("on")&&typeof r=="function")||(t.props=JS(t).props),t))},"tags:resolve":function(e){e.tags=e.tags.map(t=>{if(!KS.includes(t.tag))return t;const{props:n,eventHandlers:r}=JS(t);return Object.keys(r).length&&(t.props=n,t._eventHandlers=r),t})},"dom:renderTag":function(e,t,n){if(!e.tag._eventHandlers)return;const r=e.tag.tag==="bodyAttrs"?t.defaultView:e.$el;Object.entries(e.tag._eventHandlers).forEach(([o,i])=>{const a=`${e.tag._d||e.tag._p}:${o}`,s=o.slice(2).toLowerCase(),c=`data-h-${s}`;if(n(e.id,a,()=>{}),e.$el.hasAttribute(c))return;const u=i;e.$el.setAttribute(c,""),r.addEventListener(s,u),e.entry&&n(e.id,a,()=>{r.removeEventListener(s,u),e.$el.removeAttribute(c)})})}}},WJ=["link","style","script","noscript"],KJ={hooks:{"tag:normalise":({tag:e})=>{e.key&&WJ.includes(e.tag)&&(e.props["data-hid"]=e._h=$I(e.key))}}},JJ={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of zJ)for(const o of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(o.tagPriority.replace(n,""));typeof i<"u"&&(o._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>rg(n)-rg(r))}}},GJ={hooks:{"tags:resolve":e=>{var a;const{tags:t}=e,n=(a=t.find(s=>s.tag==="title"))==null?void 0:a.textContent,r=t.findIndex(s=>s.tag==="templateParams"),o=r!==-1?t[r].props:{},i=o.separator||"|";delete o.separator,o.pageTitle=yu(o.pageTitle||n||"",o,i);for(const s of t)s.processTemplateParams!==!1&&(["titleTemplate","title"].includes(s.tag)&&typeof s.textContent=="string"?s.textContent=yu(s.textContent,o,i):s.tag==="meta"&&typeof s.props.content=="string"?s.props.content=yu(s.props.content,o,i):s.tag==="link"&&typeof s.props.href=="string"?s.props.href=yu(s.props.href,o,i):s.processTemplateParams===!0&&(s.innerHTML?s.innerHTML=yu(s.innerHTML,o,i):s.textContent&&(s.textContent=yu(s.textContent,o,i))));e.tags=t.filter(s=>s.tag!=="templateParams")}}},QJ={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=VS(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=VS(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}};let MI;function YJ(e={}){const t=XJ(e);return t.use(FJ()),MI=t}function GS(e,t){return!e||e==="server"&&t||e==="client"&&!t}function XJ(e={}){const t=jI();t.addHooks(e.hooks||{}),e.document=e.document||(TJ?document:void 0);const n=!e.document;e.plugins=[HJ,VJ,UJ,KJ,JJ,GJ,QJ,...(e==null?void 0:e.plugins)||[]];const r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,i=[];const a={dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(s){const c=typeof s=="function"?s(a):s;GS(c.mode,n)&&t.addHooks(c.hooks||{})},push(s,c){c==null||delete c.head;const u={_i:o++,input:s,...c};return GS(u.mode,n)&&(i.push(u),r()),{dispose(){i=i.filter(l=>l._i!==u._i),t.callHook("entries:updated",a),r()},patch(l){i=i.map(f=>(f._i===u._i&&(f.input=u.input=l),f)),r()}}},async resolveTags(){const s={tags:[],entries:[...i]};await t.callHook("entries:resolve",s);for(const c of s.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const l of await DJ(c)){const f={tag:l,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),s.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",s),await t.callHook("tags:resolve",s),s.tags},ssr:n};return e.plugins.forEach(s=>a.use(s)),a.hooks.callHook("init",a),a}function ZJ(){return MI}const tG=fI.startsWith("3");function eG(e){return typeof e=="function"?e():Re(e)}function og(e,t=""){if(e instanceof Promise)return e;const n=eG(e);return!e||!n?n:Array.isArray(n)?n.map(r=>og(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,Re(o)]:[r,og(o,r)])):n}const nG={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=og(t.input)}}},AI="usehead";function rG(e){return{install(n){tG&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(AI,e))}}.install}function oG(e={}){e.domDelayFn=e.domDelayFn||(n=>tu(()=>setTimeout(()=>n(),0)));const t=YJ(e);return t.use(nG),t.install=rG(t),t}const Ib=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nb="__unhead_injection_handler__";function iG(e){Ib[Nb]=e}function aG(){if(Nb in Ib)return Ib[Nb]();const e=gi(AI);return e||ZJ()}function sG(e,t={}){const n=t.head||aG();if(n)return n.ssr?n.push(e,t):cG(n,e,t)}function cG(e,t,n={}){const r=Tn(!1),o=Tn({});VU(()=>{o.value=r.value?{}:og(t)});const i=e.push(o.value,n);return so(o,s=>{i.patch(s)}),Qs()&&(vp(()=>{i.dispose()}),q7(()=>{r.value=!0}),F7(()=>{r.value=!1})),i}function I1(e){return e!==null&&typeof e=="object"}function Db(e,t,n=".",r){if(!I1(t))return Db(e,{},n,r);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(r&&r(o,i,a,n)||(Array.isArray(a)&&Array.isArray(o[i])?o[i]=[...a,...o[i]]:I1(a)&&I1(o[i])?o[i]=Db(a,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=a))}return o}function PI(e){return(...t)=>t.reduce((n,r)=>Db(n,r,"",e),{})}const uG=PI(),lG=PI((e,t,n)=>{if(typeof e[t]<"u"&&typeof n=="function")return e[t]=n(e[t]),!0});function fG(e,t){try{return t in e}catch{return!1}}var dG=Object.defineProperty,hG=(e,t,n)=>t in e?dG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=(e,t,n)=>(hG(e,typeof t!="symbol"?t+"":t,n),n);class zb extends Error{constructor(t,n={}){super(t,n),bu(this,"statusCode",500),bu(this,"fatal",!1),bu(this,"unhandled",!1),bu(this,"statusMessage"),bu(this,"data"),bu(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Bb(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=TI(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}bu(zb,"__h3_error__",!0);function Lb(e){if(typeof e=="string")return new zb(e);if(pG(e))return e;const t=new zb(e.message??e.statusMessage??"",{cause:e.cause||e});if(fG(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Bb(e.statusCode,t.statusCode):e.status&&(t.statusCode=Bb(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;TI(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function pG(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const vG=/[^\u0009\u0020-\u007E]/g;function TI(e=""){return e.replace(vG,"")}function Bb(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const mG=Symbol("layout-meta"),b0=Symbol("route"),vs=()=>{var e;return(e=ar())==null?void 0:e.$router},Il=()=>X7()?gi(b0,ar()._route):ar()._route;/*! @__NO_SIDE_EFFECTS__ */const gG=()=>{try{if(ar()._processingMiddleware)return!0}catch{return!0}return!1},yG=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:yI(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:s="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([l,f])=>f!==void 0).map(([l,f])=>`${l.toLowerCase()}=${f}`).join(", ");open(n,s,u)}return Promise.resolve()}const r=(t==null?void 0:t.external)||Uf(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const s=gp(n).protocol;if(s&&PK(s))throw new Error(`Cannot navigate to a URL with '${s}' protocol.`)}const o=gG();if(!r&&o)return e;const i=vs(),a=ar();return r?(t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},w0=()=>bk(ar().payload,"error"),Nl=e=>{const t=x0(e);try{const n=ar(),r=w0();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},bG=async(e={})=>{const t=ar(),n=w0();t.callHook("app:error:cleared",e),e.redirect&&await vs().replace(e.redirect),n.value=null},wG=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),x0=e=>{const t=Lb(e);return t.__nuxt_error=!0,t},Fb=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),xG=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),RI=e=>{const t=ar();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Fb(e)}):Fb(e)},kG=()=>null;function Nk(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");o.server=o.server??!0,o.default=o.default??kG,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0;const i=ar(),a=()=>i.isHydrating?i.payload.data[n]:i.static.data[n],s=()=>a()!==void 0;(!i._asyncData[n]||!o.immediate)&&(i._asyncData[n]={data:Tn(a()??o.default()),pending:Tn(!s()),error:bk(i.payload._errors,n),status:Tn("idle")});const c={...i._asyncData[n]};c.refresh=c.execute=(d={})=>{if(i._asyncDataPromises[n]){if(d.dedupe===!1)return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((d._initial||i.isHydrating&&d._initial!==!1)&&s())return a();c.pending.value=!0,c.status.value="pending";const h=new Promise((p,v)=>{try{p(r(i))}catch(m){v(m)}}).then(p=>{if(h.cancelled)return i._asyncDataPromises[n];let v=p;o.transform&&(v=o.transform(p)),o.pick&&(v=jG(v,o.pick)),c.data.value=v,c.error.value=null,c.status.value="success"}).catch(p=>{if(h.cancelled)return i._asyncDataPromises[n];c.error.value=p,c.data.value=Re(o.default()),c.status.value="error"}).finally(()=>{h.cancelled||(c.pending.value=!1,i.payload.data[n]=c.data.value,c.error.value&&(i.payload._errors[n]=x0(c.error.value)),delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=h,i._asyncDataPromises[n]};const u=()=>c.refresh({_initial:!0}),l=o.server!==!1&&i.payload.serverRendered;{const d=Qs();if(d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const p=d._nuxtOnBeforeMountCbs;d&&(V7(()=>{p.forEach(v=>{v()}),p.splice(0,p.length)}),vf(()=>p.splice(0,p.length)))}l&&i.isHydrating&&s()?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):d&&(i.payload.serverRendered&&i.isHydrating||o.lazy)&&o.immediate?d._nuxtOnBeforeMountCbs.push(u):o.immediate&&u(),o.watch&&so(o.watch,()=>c.refresh());const h=i.hook("app:data:refresh",p=>{if(!p||p.includes(n))return c.refresh()});d&&vf(h)}const f=Promise.resolve(i._asyncDataPromises[n]).then(()=>c);return Object.assign(f,c),f}function jG(e,t){const n={};for(const r of t)n[r]=e[r];return n}const _G="$s";function Dk(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=_G+n,i=ar(),a=bk(i.payload.state,o);if(a.value===void 0&&r){const s=r();if(Yr(s))return i.payload.state[o]=s,s;a.value=s}return a}async function II(e,t=vs()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>II(e,t));t._routePreloaded.add(n);const i=r.map(a=>{var s;return(s=a.components)==null?void 0:s.default}).filter(a=>typeof a=="function");for(const a of i){const s=Promise.resolve(a()).catch(()=>{}).finally(()=>o.splice(o.indexOf(s)));o.push(s)}await Promise.all(o)}function SG(e={}){const t=e.path||window.location.pathname;let n={};try{n=Ym(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ar().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const $G=(...e)=>e.find(t=>t!==void 0),CG="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function EG(e){const t=e.componentName||"NuxtLink",n=(r,o)=>{if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;const i=e.trailingSlash==="append"?Zm:Tk;if(typeof r=="string")return i(r,!0);const a="path"in r?r.path:o(r).path;return{...r,name:void 0,path:i(a,!0)}};return Jo({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(r,{slots:o}){const i=vs(),a=hr(()=>{const f=r.to||r.href||"";return n(f,i.resolve)}),s=hr(()=>r.external||r.target&&r.target!=="_self"?!0:typeof a.value=="object"?!1:a.value===""||Uf(a.value,{acceptRelative:!0})),c=Tn(!1),u=Tn(null),l=f=>{var d;u.value=r.custom?(d=f==null?void 0:f.$el)==null?void 0:d.nextElementSibling:f==null?void 0:f.$el};if(r.prefetch!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!MG()){const d=ar();let h,p=null;cl(()=>{const v=OG();RI(()=>{h=Fb(()=>{var m;(m=u==null?void 0:u.value)!=null&&m.tagName&&(p=v.observe(u.value,async()=>{p==null||p(),p=null;const g=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",g).catch(()=>{}),!s.value&&II(a.value,i).catch(()=>{})]),c.value=!0}))})})}),vp(()=>{h&&xG(h),p==null||p(),p=null})}return()=>{var v,m;if(!s.value){const g={ref:l,to:a.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(c.value&&(g.class=r.prefetchedClass||e.prefetchedClass),g.rel=r.rel),Ho(oW("RouterLink"),g,o.default)}const f=typeof a.value=="object"?((v=i.resolve(a.value))==null?void 0:v.href)??null:a.value||null,d=r.target||null,h=r.noRel?null:$G(r.rel,e.externalRelAttribute,f?CG:"")||null,p=()=>yG(f,{replace:r.replace});return r.custom?o.default?o.default({href:f,navigate:p,get route(){if(!f)return;const g=gp(f);return{path:g.pathname,fullPath:g.pathname,get query(){return mI(g.search)},hash:g.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f}},rel:h,target:d,isExternal:s.value,isActive:!1,isExactActive:!1}):null:Ho("a",{ref:u,href:f,rel:h,target:d},(m=o.default)==null?void 0:m.call(o))}}})}const NI=EG({componentName:"NuxtLink"});function OG(){const e=ar();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,a)=>(t||(t=new IntersectionObserver(s=>{for(const c of s){const u=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&u&&u()}})),n.set(i,a),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function MG(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const AG={nuxt:{}},PG=lG(AG);function TG(){const e=ar();return e._appConfig||(e._appConfig=as(PG)),e._appConfig}const qb=!1,RG=!1,IG="#__nuxt";function QS(e,t={}){const n=NG(e,t),r=ar(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=DG().then(i=>i?DI(n).then(a=>a||(delete o[n],null)):(o[n]=null,null))),o[n]}const YS="json";function NG(e,t={}){const n=new URL(e,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+e);if(n.host!=="localhost"||Uf(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():"");return mp(Ik().app.baseURL,n.pathname,r?`_payload.${r}.${YS}`:`_payload.${YS}`)}async function DI(e){const t=fetch(e).then(n=>n.text().then(zI));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function DG(e=Il().path){return!!ar().payload.prerenderedAt}let tv=null;async function zG(){if(tv)return tv;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=zI(e.textContent||""),n=e.dataset.src?await DI(e.dataset.src):void 0;return tv={...t,...n,...window.__NUXT__},tv}function zI(e){return CJ(e,ar()._payloadRevivers)}function LG(e,t){ar()._payloadRevivers[e]=t}const XS={NuxtError:e=>x0(e),EmptyShallowRef:e=>pf(e==="_"?void 0:e==="0n"?BigInt(0):Ym(e)),EmptyRef:e=>Tn(e==="_"?void 0:e==="0n"?BigInt(0):Ym(e)),ShallowRef:e=>pf(e),ShallowReactive:e=>hp(e),Ref:e=>Tn(e),Reactive:e=>as(e)},BG=Ys({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in XS)LG(r,XS[r]);Object.assign(e.payload,([t,n]=ng(()=>e.runWithContext(zG)),t=await t,n(),t)),window.__NUXT__=e.payload}}),FG=[],qG=Ys({name:"nuxt:head",enforce:"pre",setup(e){const t=oG({plugins:FG});iG(()=>ar().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await OI(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*!
2
+ * vue-router v4.2.5
3
+ * (c) 2023 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const Sl=typeof window<"u";function HG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Qn=Object.assign;function N1(e,t){const n={};for(const r in t){const o=t[r];n[r]=$a(o)?o.map(e):e(o)}return n}const Yd=()=>{},$a=Array.isArray,VG=/\/$/,UG=e=>e.replace(VG,"");function D1(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=GG(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function WG(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ZS(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KG(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xf(t.matched[r],n.matched[o])&&LI(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function LI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!JG(e[n],t[n]))return!1;return!0}function JG(e,t){return $a(e)?t$(e,t):$a(t)?t$(t,e):e===t}function t$(e,t){return $a(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function GG(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var $h;(function(e){e.pop="pop",e.push="push"})($h||($h={}));var Xd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xd||(Xd={}));function QG(e){if(!e)if(Sl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UG(e)}const YG=/^[^#]+#/;function XG(e,t){return e.replace(YG,"#")+t}function ZG(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const k0=()=>({left:window.pageXOffset,top:window.pageYOffset});function tQ(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ZG(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function e$(e,t){return(history.state?history.state.position-t:-1)+e}const Hb=new Map;function eQ(e,t){Hb.set(e,t)}function nQ(e){const t=Hb.get(e);return Hb.delete(e),t}let rQ=()=>location.protocol+"//"+location.host;function BI(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(s);return c[0]!=="/"&&(c="/"+c),ZS(c,"")}return ZS(n,e)+r+o}function oQ(e,t,n,r){let o=[],i=[],a=null;const s=({state:d})=>{const h=BI(e,location),p=n.value,v=t.value;let m=0;if(d){if(n.value=h,t.value=d,a&&a===p){a=null;return}m=v?d.position-v.position:0}else r(h);o.forEach(g=>{g(n.value,p,{delta:m,type:$h.pop,direction:m?m>0?Xd.forward:Xd.back:Xd.unknown})})};function c(){a=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(Qn({},d.state,{scroll:k0()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function n$(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?k0():null}}function iQ(e){const{history:t,location:n}=window,r={value:BI(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:rQ()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function a(c,u){const l=Qn({},t.state,n$(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,l,!0),r.value=c}function s(c,u){const l=Qn({},o.value,t.state,{forward:c,scroll:k0()});i(l.current,l,!0);const f=Qn({},n$(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:s,replace:a}}function FI(e){e=QG(e);const t=iQ(e),n=oQ(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Qn({location:"",base:e,go:r,createHref:XG.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function aQ(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),FI(e)}function sQ(e){return typeof e=="string"||e&&typeof e=="object"}function qI(e){return typeof e=="string"||typeof e=="symbol"}const Ha={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HI=Symbol("");var r$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(r$||(r$={}));function kf(e,t){return Qn(new Error,{type:e,[HI]:!0},t)}function xs(e,t){return e instanceof Error&&HI in e&&(t==null||!!(e.type&t))}const o$="[^/]+?",cQ={sensitive:!1,strict:!1,start:!0,end:!0},uQ=/[.+*?^${}()[\]/\\]/g;function lQ(e,t){const n=Qn({},cQ,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(uQ,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=d;i.push({name:p,repeatable:v,optional:m});const y=g||o$;if(y!==o$){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+w.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),o+=b,h+=20,m&&(h+=-8),v&&(h+=-20),y===".*"&&(h+=-50)}l.push(h)}r.push(l)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const l=u.match(a),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(u){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===0)l+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:m}=h,g=p in u?u[p]:"";if($a(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=$a(g)?g.join("/"):g;if(!y)if(m)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:a,score:r,keys:i,parse:s,stringify:c}}function fQ(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function dQ(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=fQ(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(i$(r))return 1;if(i$(o))return-1}return o.length-r.length}function i$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const hQ={type:0,value:""},pQ=/[a-zA-Z0-9_]/;function vQ(e){if(!e)return[[]];if(e==="/")return[[hQ]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:pQ.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=3:l+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function mQ(e,t,n){const r=lQ(vQ(e.path),n),o=Qn(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gQ(e,t){const n=[],r=new Map;t=c$({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function i(l,f,d){const h=!d,p=yQ(l);p.aliasOf=d&&d.record;const v=c$(t,l),m=[p];if("alias"in l){const b=typeof l.alias=="string"?[l.alias]:l.alias;for(const w of b)m.push(Qn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let g,y;for(const b of m){const{path:w}=b;if(f&&w[0]!=="/"){const x=f.record.path,k=x[x.length-1]==="/"?"":"/";b.path=f.record.path+(w&&k+w)}if(g=mQ(b,f,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),h&&l.name&&!s$(g)&&a(l.name)),p.children){const x=p.children;for(let k=0;k<x.length;k++)i(x[k],g,d&&d.children[k])}d=d||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return y?()=>{a(y)}:Yd}function a(l){if(qI(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(a),l.alias.forEach(a))}}function s(){return n}function c(l){let f=0;for(;f<n.length&&dQ(l,n[f])>=0&&(l.record.path!==n[f].record.path||!VI(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!s$(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},p,v;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw kf(1,{location:l});v=d.record.name,h=Qn(a$(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),l.params&&a$(l.params,d.keys.map(y=>y.name))),p=d.stringify(h)}else if("path"in l)p=l.path,d=n.find(y=>y.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw kf(1,{location:l,currentLocation:f});v=d.record.name,h=Qn({},f.params,l.params),p=d.stringify(h)}const m=[];let g=d;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:wQ(m)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function a$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yQ(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bQ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function bQ(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function s$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wQ(e){return e.reduce((t,n)=>Qn(t,n.meta),{})}function c$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VI(e,t){return t.children.some(n=>n===e||VI(e,n))}const UI=/#/g,xQ=/&/g,kQ=/\//g,jQ=/=/g,_Q=/\?/g,WI=/\+/g,SQ=/%5B/g,$Q=/%5D/g,KI=/%5E/g,CQ=/%60/g,JI=/%7B/g,EQ=/%7C/g,GI=/%7D/g,OQ=/%20/g;function zk(e){return encodeURI(""+e).replace(EQ,"|").replace(SQ,"[").replace($Q,"]")}function MQ(e){return zk(e).replace(JI,"{").replace(GI,"}").replace(KI,"^")}function Vb(e){return zk(e).replace(WI,"%2B").replace(OQ,"+").replace(UI,"%23").replace(xQ,"%26").replace(CQ,"`").replace(JI,"{").replace(GI,"}").replace(KI,"^")}function AQ(e){return Vb(e).replace(jQ,"%3D")}function PQ(e){return zk(e).replace(UI,"%23").replace(_Q,"%3F")}function TQ(e){return e==null?"":PQ(e).replace(kQ,"%2F")}function ig(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function RQ(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(WI," "),a=i.indexOf("="),s=ig(a<0?i:i.slice(0,a)),c=a<0?null:ig(i.slice(a+1));if(s in t){let u=t[s];$a(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function u$(e){let t="";for(let n in e){const r=e[n];if(n=AQ(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}($a(r)?r.map(i=>i&&Vb(i)):[r&&Vb(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function IQ(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$a(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const NQ=Symbol(""),l$=Symbol(""),Lk=Symbol(""),QI=Symbol(""),Ub=Symbol("");function dd(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function pc(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(kf(4,{from:n,to:t})):f instanceof Error?s(f):sQ(f)?s(kf(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,c);let l=Promise.resolve(u);e.length<3&&(l=l.then(c)),l.catch(f=>s(f))})}function z1(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(DQ(s)){const u=(s.__vccOpts||s)[t];u&&o.push(pc(u,n,r,i,a))}else{let c=s();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const l=HG(u)?u.default:u;i.components[a]=l;const d=(l.__vccOpts||l)[t];return d&&pc(d,n,r,i,a)()}))}}return o}function DQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function f$(e){const t=gi(Lk),n=gi(QI),r=hr(()=>t.resolve(Re(e.to))),o=hr(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(xf.bind(null,l));if(d>-1)return d;const h=d$(c[u-2]);return u>1&&d$(l)===h&&f[f.length-1].path!==h?f.findIndex(xf.bind(null,c[u-2])):d}),i=hr(()=>o.value>-1&&FQ(n.params,r.value.params)),a=hr(()=>o.value>-1&&o.value===n.matched.length-1&&LI(n.params,r.value.params));function s(c={}){return BQ(c)?t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(Yd):Promise.resolve()}return{route:r,href:hr(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}const zQ=Jo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:f$,setup(e,{slots:t}){const n=as(f$(e)),{options:r}=gi(Lk),o=hr(()=>({[h$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[h$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ho("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),LQ=zQ;function BQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function FQ(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$a(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function d$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const h$=(e,t,n)=>e??t??n,qQ=Jo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=gi(Ub),o=hr(()=>e.route||r.value),i=gi(l$,0),a=hr(()=>{let u=Re(i);const{matched:l}=o.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),s=hr(()=>o.value.matched[a.value]);Ql(l$,hr(()=>a.value+1)),Ql(NQ,s),Ql(Ub,o);const c=Tn();return so(()=>[c.value,s.value,e.name],([u,l,f],[d,h,p])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!xf(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,l=e.name,f=s.value,d=f&&f.components[l];if(!d)return p$(n.default,{Component:d,route:u});const h=f.props[l],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Ho(d,Qn({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return p$(n.default,{Component:m,route:u})||m}}});function p$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const YI=qQ;function HQ(e){const t=gQ(e.routes,e),n=e.parseQuery||RQ,r=e.stringifyQuery||u$,o=e.history,i=dd(),a=dd(),s=dd(),c=pf(Ha);let u=Ha;Sl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=N1.bind(null,tt=>""+tt),f=N1.bind(null,TQ),d=N1.bind(null,ig);function h(tt,yt){let bt,jt;return qI(tt)?(bt=t.getRecordMatcher(tt),jt=yt):jt=tt,t.addRoute(jt,bt)}function p(tt){const yt=t.getRecordMatcher(tt);yt&&t.removeRoute(yt)}function v(){return t.getRoutes().map(tt=>tt.record)}function m(tt){return!!t.getRecordMatcher(tt)}function g(tt,yt){if(yt=Qn({},yt||c.value),typeof tt=="string"){const it=D1(n,tt,yt.path),X=t.resolve({path:it.path},yt),_t=o.createHref(it.fullPath);return Qn(it,X,{params:d(X.params),hash:ig(it.hash),redirectedFrom:void 0,href:_t})}let bt;if("path"in tt)bt=Qn({},tt,{path:D1(n,tt.path,yt.path).path});else{const it=Qn({},tt.params);for(const X in it)it[X]==null&&delete it[X];bt=Qn({},tt,{params:f(it)}),yt.params=f(yt.params)}const jt=t.resolve(bt,yt),gt=tt.hash||"";jt.params=l(d(jt.params));const Y=WG(r,Qn({},tt,{hash:MQ(gt),path:jt.path})),J=o.createHref(Y);return Qn({fullPath:Y,hash:gt,query:r===u$?IQ(tt.query):tt.query||{}},jt,{redirectedFrom:void 0,href:J})}function y(tt){return typeof tt=="string"?D1(n,tt,c.value.path):Qn({},tt)}function b(tt,yt){if(u!==tt)return kf(8,{from:yt,to:tt})}function w(tt){return j(tt)}function x(tt){return w(Qn(y(tt),{replace:!0}))}function k(tt){const yt=tt.matched[tt.matched.length-1];if(yt&&yt.redirect){const{redirect:bt}=yt;let jt=typeof bt=="function"?bt(tt):bt;return typeof jt=="string"&&(jt=jt.includes("?")||jt.includes("#")?jt=y(jt):{path:jt},jt.params={}),Qn({query:tt.query,hash:tt.hash,params:"path"in jt?{}:tt.params},jt)}}function j(tt,yt){const bt=u=g(tt),jt=c.value,gt=tt.state,Y=tt.force,J=tt.replace===!0,it=k(bt);if(it)return j(Qn(y(it),{state:typeof it=="object"?Qn({},gt,it.state):gt,force:Y,replace:J}),yt||bt);const X=bt;X.redirectedFrom=yt;let _t;return!Y&&KG(r,jt,bt)&&(_t=kf(16,{to:X,from:jt}),P(jt,jt,!0,!1)),(_t?Promise.resolve(_t):C(X,jt)).catch(z=>xs(z)?xs(z,2)?z:M(z):A(z,X,jt)).then(z=>{if(z){if(xs(z,2))return j(Qn({replace:J},y(z.to),{state:typeof z.to=="object"?Qn({},gt,z.to.state):gt,force:Y}),yt||X)}else z=B(X,jt,!0,J,gt);return $(X,jt,z),z})}function S(tt,yt){const bt=b(tt,yt);return bt?Promise.reject(bt):Promise.resolve()}function N(tt){const yt=H.values().next().value;return yt&&typeof yt.runWithContext=="function"?yt.runWithContext(tt):tt()}function C(tt,yt){let bt;const[jt,gt,Y]=VQ(tt,yt);bt=z1(jt.reverse(),"beforeRouteLeave",tt,yt);for(const it of jt)it.leaveGuards.forEach(X=>{bt.push(pc(X,tt,yt))});const J=S.bind(null,tt,yt);return bt.push(J),ft(bt).then(()=>{bt=[];for(const it of i.list())bt.push(pc(it,tt,yt));return bt.push(J),ft(bt)}).then(()=>{bt=z1(gt,"beforeRouteUpdate",tt,yt);for(const it of gt)it.updateGuards.forEach(X=>{bt.push(pc(X,tt,yt))});return bt.push(J),ft(bt)}).then(()=>{bt=[];for(const it of Y)if(it.beforeEnter)if($a(it.beforeEnter))for(const X of it.beforeEnter)bt.push(pc(X,tt,yt));else bt.push(pc(it.beforeEnter,tt,yt));return bt.push(J),ft(bt)}).then(()=>(tt.matched.forEach(it=>it.enterCallbacks={}),bt=z1(Y,"beforeRouteEnter",tt,yt),bt.push(J),ft(bt))).then(()=>{bt=[];for(const it of a.list())bt.push(pc(it,tt,yt));return bt.push(J),ft(bt)}).catch(it=>xs(it,8)?it:Promise.reject(it))}function $(tt,yt,bt){s.list().forEach(jt=>N(()=>jt(tt,yt,bt)))}function B(tt,yt,bt,jt,gt){const Y=b(tt,yt);if(Y)return Y;const J=yt===Ha,it=Sl?history.state:{};bt&&(jt||J?o.replace(tt.fullPath,Qn({scroll:J&&it&&it.scroll},gt)):o.push(tt.fullPath,gt)),c.value=tt,P(tt,yt,bt,J),M()}let K;function R(){K||(K=o.listen((tt,yt,bt)=>{if(!I.listening)return;const jt=g(tt),gt=k(jt);if(gt){j(Qn(gt,{replace:!0}),jt).catch(Yd);return}u=jt;const Y=c.value;Sl&&eQ(e$(Y.fullPath,bt.delta),k0()),C(jt,Y).catch(J=>xs(J,12)?J:xs(J,2)?(j(J.to,jt).then(it=>{xs(it,20)&&!bt.delta&&bt.type===$h.pop&&o.go(-1,!1)}).catch(Yd),Promise.reject()):(bt.delta&&o.go(-bt.delta,!1),A(J,jt,Y))).then(J=>{J=J||B(jt,Y,!1),J&&(bt.delta&&!xs(J,8)?o.go(-bt.delta,!1):bt.type===$h.pop&&xs(J,20)&&o.go(-1,!1)),$(jt,Y,J)}).catch(Yd)}))}let q=dd(),F=dd(),O;function A(tt,yt,bt){M(tt);const jt=F.list();return jt.length?jt.forEach(gt=>gt(tt,yt,bt)):console.error(tt),Promise.reject(tt)}function _(){return O&&c.value!==Ha?Promise.resolve():new Promise((tt,yt)=>{q.add([tt,yt])})}function M(tt){return O||(O=!tt,R(),q.list().forEach(([yt,bt])=>tt?bt(tt):yt()),q.reset()),tt}function P(tt,yt,bt,jt){const{scrollBehavior:gt}=e;if(!Sl||!gt)return Promise.resolve();const Y=!bt&&nQ(e$(tt.fullPath,0))||(jt||!bt)&&history.state&&history.state.scroll||null;return tu().then(()=>gt(tt,yt,Y)).then(J=>J&&tQ(J)).catch(J=>A(J,tt,yt))}const D=tt=>o.go(tt);let T;const H=new Set,I={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:e,push:w,replace:x,go:D,back:()=>D(-1),forward:()=>D(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:F.add,isReady:_,install(tt){const yt=this;tt.component("RouterLink",LQ),tt.component("RouterView",YI),tt.config.globalProperties.$router=yt,Object.defineProperty(tt.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(c)}),Sl&&!T&&c.value===Ha&&(T=!0,w(o.location).catch(gt=>{}));const bt={};for(const gt in Ha)Object.defineProperty(bt,gt,{get:()=>c.value[gt],enumerable:!0});tt.provide(Lk,yt),tt.provide(QI,hp(bt)),tt.provide(Ub,c);const jt=tt.unmount;H.add(tt),tt.unmount=function(){H.delete(tt),H.size<1&&(u=Ha,K&&K(),K=null,c.value=Ha,T=!1,O=!1),jt()}}};function ft(tt){return tt.reduce((yt,bt)=>yt.then(()=>N(bt)),Promise.resolve())}return I}function VQ(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>xf(u,s))?r.push(s):n.push(s));const c=e.matched[a];c&&(t.matched.find(u=>xf(u,c))||o.push(c))}return[n,r,o]}const v$=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./index.ddad1278.js"),["./index.ddad1278.js","./index.ffbea0a9.css"],import.meta.url).then(e=>e.default||e)},{name:"options",path:"/options",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./options.fab4cd78.js"),["./options.fab4cd78.js","./shiki.704b4c6f.js"],import.meta.url).then(e=>e.default||e)},{name:"png",path:"/png",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./png.8b9dc853.js"),["./png.8b9dc853.js","./ImageLoader.d1e647a8.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"svg",path:"/svg",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./svg.3f7376fc.js"),["./svg.3f7376fc.js","./ImageLoader.d1e647a8.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"vnodes",path:"/vnodes",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./vnodes.17fcf779.js"),["./vnodes.17fcf779.js","./shiki.704b4c6f.js"],import.meta.url).then(e=>e.default||e)}],UQ={scrollBehavior(e,t,n){var u;const r=ar(),o=((u=vs().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const a=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&a!==!1&&WQ(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:m$(e.hash),behavior:o}}const s=l=>!!(l.meta.pageTransition??qb),c=s(t)&&s(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(c,async()=>{await tu(),e.hash&&(i={el:e.hash,top:m$(e.hash),behavior:o}),l(i)})})}};function m$(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function WQ(e,t){return t.path!==e.path||JSON.stringify(e.params)!==JSON.stringify(t.params)}const KQ={},Qo={...KQ,...UQ},JQ=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=ar(),o=vs();if(([t,n]=ng(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=x0({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),s=o.beforeResolve(u=>{if(s(),u===e){const l=o.afterEach(async()=>{l(),await r.runWithContext(()=>Nl(a)),window.history.pushState({},"",e.fullPath)});return!1}})},GQ=[JQ],Zd={};function QQ(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const u=i.includes(e.slice(a))?e.slice(a).length:1;let l=i.slice(u);return l[0]!=="/"&&(l="/"+l),DS(l,"")}const s=DS(r,e),c=!n||DK(s,n,{trailingSlash:!0})?s:n;return c+(c.includes("?")?"":o)+i}const YQ=Ys({name:"nuxt:router",enforce:"pre",async setup(e){var v,m;let t,n,r=Ik().app.baseURL;Qo.hashMode&&!r.includes("#")&&(r+="#");const o=((v=Qo.history)==null?void 0:v.call(Qo,r))??(Qo.hashMode?aQ(r):FI(r)),i=((m=Qo.routes)==null?void 0:m.call(Qo,v$))??v$;let a;const s=QQ(r,window.location,e.payload.path),c=HQ({...Qo,scrollBehavior:(g,y,b)=>{var w;if(y===Ha){a=b;return}return c.options.scrollBehavior=Qo.scrollBehavior,(w=Qo.scrollBehavior)==null?void 0:w.call(Qo,g,Ha,a||b)},history:o,routes:i});e.vueApp.use(c);const u=pf(c.currentRoute.value);c.afterEach((g,y)=>{u.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const l=pf(c.resolve(s)),f=()=>{l.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((g,y)=>{var b,w,x,k;((w=(b=g.matched[0])==null?void 0:b.components)==null?void 0:w.default)===((k=(x=y.matched[0])==null?void 0:x.components)==null?void 0:k.default)&&f()});const d={};for(const g in l.value)Object.defineProperty(d,g,{get:()=>l.value[g]});e._route=hp(d),e._middleware=e._middleware||{global:[],named:{}};const h=w0();try{[t,n]=ng(()=>c.isReady()),await t,n()}catch(g){[t,n]=ng(()=>e.runWithContext(()=>Nl(g))),await t,n()}const p=e.payload.state._layout;return c.beforeEach(async(g,y)=>{var b;g.meta=as(g.meta),e.isHydrating&&p&&!Wu(g.meta.layout)&&(g.meta.layout=p),e._processingMiddleware=!0;{const w=new Set([...GQ,...e._middleware.global]);for(const x of g.matched){const k=x.meta.middleware;if(k)if(Array.isArray(k))for(const j of k)w.add(j);else w.add(k)}for(const x of w){const k=typeof x=="string"?e._middleware.named[x]||await((b=Zd[x])==null?void 0:b.call(Zd).then(S=>S.default||S)):x;if(!k)throw new Error(`Unknown route middleware: '${x}'.`);const j=await e.runWithContext(()=>k(g,y));if(!e.payload.serverRendered&&e.isHydrating&&(j===!1||j instanceof Error)){const S=j||Lb({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await e.runWithContext(()=>Nl(S)),!1}if(j!==!0&&(j||j===!1))return j}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(g,y,b)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(bG),g.matched.length===0&&await e.runWithContext(()=>Nl(Lb({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(s),name:void 0,force:!0}),c.options.scrollBehavior=Qo.scrollBehavior}catch(g){await e.runWithContext(()=>Nl(g))}}),{provide:{router:c}}}}),XQ=Ys({name:"nuxt:payload",setup(e){vs().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await QS(t.path);r&&Object.assign(e.static.data,r.data)}),RI(()=>{e.hooks.hook("link:prefetch",async t=>{gp(t).protocol||await QS(t)})})}}),ZQ=Jm(()=>Os(()=>Promise.resolve().then(()=>jX),void 0,import.meta.url).then(e=>e.default)),tY=Jm(()=>Os(()=>import("./IconCSS.cacabbab.js"),["./IconCSS.cacabbab.js","./IconCSS.28ef6808.css"],import.meta.url).then(e=>e.default)),eY=[["Icon",ZQ],["IconCSS",tY]],nY=Ys({name:"nuxt:global-components",setup(e){for(const[t,n]of eY)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),ev={},rY=Ys({name:"nuxt:prefetch",setup(e){const t=vs();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof ev[r]=="function"&&await ev[r]()})}),e.hooks.hook("link:prefetch",n=>{var a,s,c,u;if(Uf(n))return;const r=t.resolve(n);if(!r)return;const o=(a=r==null?void 0:r.meta)==null?void 0:a.layout;let i=Array.isArray((s=r==null?void 0:r.meta)==null?void 0:s.middleware)?(c=r==null?void 0:r.meta)==null?void 0:c.middleware:[(u=r==null?void 0:r.meta)==null?void 0:u.middleware];i=i.filter(l=>typeof l=="string");for(const l of i)typeof Zd[l]=="function"&&Zd[l]();o&&typeof ev[o]=="function"&&ev[o]()})}}),oY="__NUXT_COLOR_MODE__",iY="ColorScheme",aY="nuxt-color-mode",ks=window[oY],sY=Ys(e=>{const t=Dk("color-mode",()=>as({preference:ks.preference,value:ks.value,unknown:!1,forced:!1})).value;vs().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ks.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ks.getColorScheme())}))}so(()=>t.preference,o=>{var i;t.forced||(o==="system"?(t.value=ks.getColorScheme(),r()):t.value=o,(i=window.localStorage)==null||i.setItem(aY,o))},{immediate:!0}),so(()=>t.value,(o,i)=>{ks.removeColorScheme(i),ks.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ks.preference,t.value=ks.value,t.unknown=!1)}),e.provide("colorMode",t)});const cY=Ys(()=>{}),uY=Ys({name:"nuxt:chunk-reload",setup(e){const t=vs(),n=Ik(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const s="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:mp(n.app.baseURL,i.fullPath);SG({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,a)=>{r.has(i)&&o(a)})}}),lY=[BG,qG,YQ,XQ,nY,rY,sY,cY,uY],Bk=Jo({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Vn(),li("div",{class:Gr(["n-icon",t.icon])},null,2))}}),fY=Jo({__name:"NButton",props:{to:{},icon:{}},setup(e){return(t,n)=>{const r=Bk;return Vn(),xo(_k(t.to?Re(NI):"button"),Ok({to:t.to},t.$attrs,{class:"n-button n-button-base active:n-button-active focus-visible:n-focus-base n-transition hover:n-button-hover n-disabled:n-disabled"}),{default:oo(()=>[Ku(t.$slots,"icon",{},()=>[t.icon?(Vn(),xo(r,{key:0,icon:t.icon,class:"n-button-icon"},null,8,["icon"])):qa("",!0)]),Ku(t.$slots,"default")]),_:3},16,["to"])}}}),dY=Jo({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Tn(!1);return cl(()=>{r.value=!0}),o=>{var c;if(r.value)return(c=t.default)==null?void 0:c.call(t);const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",s=o.fallbackTag||o.placeholderTag||"span";return li(s,n,a)}}}),XI=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},hY={name:iY,props:{placeholder:String,tag:{type:String,default:"span"}}};function pY(e,t,n,r,o,i){const a=dY;return Vn(),xo(a,{placeholder:n.placeholder,"placeholder-tag":n.tag},{default:oo(()=>[Ku(e.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const vY=XI(hY,[["render",pY]]),ZI=()=>Dk("color-mode").value,mY=Jo({__name:"NDarkToggle",setup(e){const t=ZI(),n=hr({get(){return t.value==="dark"},set(){t.preference=n.value?"light":"dark"}}),r=typeof document<"u"&&document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(a){if(!r||!a){n.value=!n.value;return}const s=a.clientX,c=a.clientY,u=Math.hypot(Math.max(s,innerWidth-s),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{n.value=!n.value,await tu()}).ready.then(()=>{const f=[`circle(0px at ${s}px ${c}px)`,`circle(${u}px at ${s}px ${c}px)`];document.documentElement.animate({clipPath:n.value?[...f].reverse():f},{duration:400,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const i={mode:t,isDark:n,toggle:o};return(a,s)=>{const c=vY;return Vn(),xo(c,{tag:"span"},{default:oo(()=>[Ku(a.$slots,"default",l7(Ck(i)))]),_:3})}}}),tN=Object.freeze({left:0,top:0,width:16,height:16}),eN=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Fk=Object.freeze({...tN,...eN});Object.freeze({...Fk,body:"",hidden:!1});({...tN});const nN=Object.freeze({width:null,height:null}),rN=Object.freeze({...nN,...eN});function gY(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in nN?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const yY=/[\s,]+/;function bY(e,t){t.split(yY).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function wY(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const xY=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kY=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g$(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(xY);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=kY.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const jY=e=>e==="unset"||e==="undefined"||e==="none";function _Y(e,t){const n={...Fk,...e},r={...rN,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const v=[],m=p.hFlip,g=p.vFlip;let y=p.rotate;m?g?y+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):g&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,v.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,v.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),v.length&&(i='<g transform="'+v.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let l,f;a===null?(f=s===null?"1em":s==="auto"?u:s,l=g$(f,c/u)):(l=a==="auto"?c:a,f=s===null?g$(l,u/c):s==="auto"?u:s);const d={},h=(p,v)=>{jY(v)||(d[p]=v.toString())};return h("width",l),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:d,body:i}}const SY=/\sid="(\S+)"/g,$Y="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let CY=0;function EY(e,t=$Y){const n=[];let r;for(;r=SY.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(CY++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function OY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function MY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function AY(e){return"data:image/svg+xml,"+MY(e)}function PY(e){return'url("'+AY(e)+'")'}const y$={...rN,inline:!1},TY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},RY={display:"inline-block"},Wb={backgroundColor:"currentColor"},oN={backgroundColor:"transparent"},b$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},w$={webkitMask:Wb,mask:Wb,background:oN};for(const e in w$){const t=w$[e];for(const n in b$)t[e+n]=b$[n]}const pm={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";pm[e+"-flip"]=t,pm[e.slice(0,1)+"-flip"]=t,pm[e+"Flip"]=t});function x$(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const IY=(e,t)=>{const n=gY(y$,t),r={...TY},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const m=t[v];if(m!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&bY(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[v]=wY(m):typeof m=="number"&&(n[v]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete r["aria-hidden"];break;default:{const g=pm[v];g?(m===!0||m==="true"||m===1)&&(n[g]=!0):y$[v]===void 0&&(r[v]=m)}}}const c=_Y(e,n),u=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),r.innerHTML=EY(c.body,m?()=>m+"ID"+v++:"iconifyVue"),Ho("svg",r)}const{body:l,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=OY(l,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":PY(p),width:x$(u.width),height:x$(u.height),...RY,...h?Wb:oN,...s},Ho("span",r)},NY=Object.create(null),DY=Jo({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?NY[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:IY({...Fk,...n},e)}}),th=/^[a-z0-9]+(-[a-z0-9]+)*$/,j0=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return t&&!vm(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!vm(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!vm(s,n)?null:s}return null},vm=(e,t)=>e?!!((e.provider===""||e.provider.match(th))&&(t&&e.prefix===""||e.prefix.match(th))&&e.name.match(th)):!1,iN=Object.freeze({left:0,top:0,width:16,height:16}),ag=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),qk=Object.freeze({...iN,...ag}),Kb=Object.freeze({...qk,body:"",hidden:!1});function zY(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function k$(e,t){const n=zY(e,t);for(const r in Kb)r in ag?r in e&&!(r in n)&&(n[r]=ag[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function LY(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function BY(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=k$(r[s]||o[s],i)}return a(t),n.forEach(a),k$(e,i)}function aN(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=LY(e);for(const o in r){const i=r[o];i&&(t(o,BY(e,o,i)),n.push(o))}return n}const FY={provider:"",aliases:{},not_found:{},...iN};function L1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sN(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!L1(e,FY))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(th)||typeof i.body!="string"||!L1(i,Kb))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(th)||typeof a!="string"||!n[a]&&!r[a]||!L1(i,Kb))return null}return t}const j$=Object.create(null);function qY(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ju(e,t){const n=j$[e]||(j$[e]=Object.create(null));return n[t]||(n[t]=qY(e,t))}function Hk(e,t){return sN(t)?aN(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function HY(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ch=!1;function cN(e){return typeof e=="boolean"&&(Ch=e),Ch}function VY(e){const t=typeof e=="string"?j0(e,!0,Ch):e;if(t){const n=Ju(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function UY(e,t){const n=j0(e,!0,Ch);if(!n)return!1;const r=Ju(n.provider,n.prefix);return HY(r,n.name,t)}function WY(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ch&&!t&&!e.prefix){let o=!1;return sN(e)&&(e.prefix="",aN(e,(i,a)=>{a&&UY(i,a)&&(o=!0)})),o}const n=e.prefix;if(!vm({provider:t,prefix:n,name:"a"}))return!1;const r=Ju(t,n);return!!Hk(r,e)}const KY=Object.freeze({width:null,height:null}),JY=Object.freeze({...KY,...ag});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Jb=Object.create(null);function GY(e,t){Jb[e]=t}function Gb(e){return Jb[e]||Jb[""]}function Vk(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Uk=Object.create(null),hd=["https://api.simplesvg.com","https://api.unisvg.com"],mm=[];for(;hd.length>0;)hd.length===1||Math.random()>.5?mm.push(hd.shift()):mm.push(hd.pop());Uk[""]=Vk({resources:["https://api.iconify.design"].concat(mm)});function QY(e,t){const n=Vk(t);return n===null?!1:(Uk[e]=n,!0)}function Wk(e){return Uk[e]}const YY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let _$=YY();function XY(e,t){const n=Wk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function ZY(e){return e===404}const tX=(e,t,n)=>{const r=[],o=XY(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function eX(e){if(typeof e=="string"){const t=Wk(e);if(t)return t.path}return"/"}const nX=(e,t,n)=>{if(!_$){n("abort",424);return}let r=eX(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;_$(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(ZY(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},rX={prepare:tX,send:nX};function oX(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=Ju(i,a));let l;s in u.icons?l=t.loaded:a===""||u.missing.has(s)?l=t.missing:l=t.pending;const f={provider:i,prefix:a,name:s};l.push(f)}),t}function uN(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function iX(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||uN([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let aX=0;function sX(e,t,n){const r=aX++,o=uN.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function cX(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?j0(o,t,n):o;i&&r.push(i)}),r}var uX={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lX(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let k=e.resources.slice(0);for(a=[];k.length>1;){const j=Math.floor(Math.random()*k.length);a.push(k[j]),k=k.slice(0,j).concat(k.slice(j+1))}a=a.concat(k)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,l,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){c==="pending"&&(c="aborted"),p(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function m(k,j){j&&(h=[]),typeof k=="function"&&h.push(k)}function g(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:v}}function y(){c="failed",h.forEach(k=>{k(void 0,l)})}function b(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function w(k,j,S){const N=j!=="success";switch(d=d.filter(C=>C!==k),c){case"pending":break;case"failed":if(N||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){l=S,y();return}if(N){l=S,d.length||(a.length?x():y());return}if(p(),b(),!e.random){const C=e.resources.indexOf(k.resource);C!==-1&&C!==e.index&&(e.index=C)}c="completed",h.forEach(C=>{C(S)})}function x(){if(c!=="pending")return;p();const k=a.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{p(),c==="pending"&&(b(),y())},e.timeout);return}y();return}const j={status:"pending",resource:k,callback:(S,N)=>{w(j,S,N)}};d.push(j),u++,f=setTimeout(x,e.rotate),n(k,t,j.callback)}return setTimeout(x),g}function lN(e){const t={...uX,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function o(s,c,u){const l=lX(t,s,c,(f,d)=>{r(),u&&u(f,d)});return n.push(l),l}function i(s){return n.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function S$(){}const B1=Object.create(null);function fX(e){if(!B1[e]){const t=Wk(e);if(!t)return;const n=lN(t),r={config:t,redundancy:n};B1[e]=r}return B1[e]}function dX(e,t,n){let r,o;if(typeof e=="string"){const i=Gb(e);if(!i)return n(void 0,424),S$;o=i.send;const a=fX(e);a&&(r=a.redundancy)}else{const i=Vk(e);if(i){r=lN(i);const a=e.resources?e.resources[0]:"",s=Gb(a);s&&(o=s.send)}}return!r||!o?(n(void 0,424),S$):r.query(t,o,n)().abort}const $$="iconify2",Eh="iconify",fN=Eh+"-count",C$=Eh+"-version",dN=36e5,hX=168;function Qb(e,t){try{return e.getItem(t)}catch{}}function Kk(e,t,n){try{return e.setItem(t,n),!0}catch{}}function E$(e,t){try{e.removeItem(t)}catch{}}function Yb(e,t){return Kk(e,fN,t.toString())}function Xb(e){return parseInt(Qb(e,fN))||0}const _0={local:!0,session:!0},hN={local:new Set,session:new Set};let Jk=!1;function pX(e){Jk=e}let nv=typeof window>"u"?{}:window;function pN(e){const t=e+"Storage";try{if(nv&&nv[t]&&typeof nv[t].length=="number")return nv[t]}catch{}_0[e]=!1}function vN(e,t){const n=pN(e);if(!n)return;const r=Qb(n,C$);if(r!==$$){if(r){const s=Xb(n);for(let c=0;c<s;c++)E$(n,Eh+c.toString())}Kk(n,C$,$$),Yb(n,0);return}const o=Math.floor(Date.now()/dN)-hX,i=s=>{const c=Eh+s.toString(),u=Qb(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&t(l,s))return!0}catch{}E$(n,c)}};let a=Xb(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Yb(n,a)):hN[e].add(s))}function mN(){if(!Jk){pX(!0);for(const e in _0)vN(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=Ju(r,o);if(!Hk(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function vX(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in _0)vN(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mX(e,t){Jk||mN();function n(r){let o;if(!_0[r]||!(o=pN(r)))return;const i=hN[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Xb(o),!Yb(o,a+1))return;const s={cached:Math.floor(Date.now()/dN),provider:e.provider,data:t};return Kk(o,Eh+a.toString(),JSON.stringify(s))}t.lastModified&&!vX(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function O$(){}function gX(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,iX(e)}))}function yX(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Gb(n)))return;i.prepare(n,r,o).forEach(s=>{dX(n,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Hk(e,c);if(!u.length)return;const l=e.pendingIcons;l&&u.forEach(f=>{l.delete(f)}),mX(e,c)}catch(u){console.error(u)}gX(e)})})}))}const bX=(e,t)=>{const n=cX(e,!0,cN()),r=oX(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,O$)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===s&&u===a)return;a=u,s=l,i.push(Ju(u,l));const f=o[u]||(o[u]=Object.create(null));f[l]||(f[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:f}=c,d=Ju(u,l),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][l].push(f))}),i.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&yX(c,o[u][l])}),t?sX(t,r,i):O$},wX=e=>new Promise((t,n)=>{const r=typeof e=="string"?j0(e,!0):e;if(!r){n(e);return}bX([r||e],o=>{if(o.length&&r){const i=VY(r);if(i){t({...qk,...i});return}}n(e)})});({...JY});const M$={backgroundColor:"currentColor"},xX={backgroundColor:"transparent"},A$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},P$={webkitMask:M$,mask:M$,background:xX};for(const e in P$){const t=P$[e];for(const n in A$)t[e+n]=A$[n]}const F1={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";F1[e+"-flip"]=t,F1[e.slice(0,1)+"-flip"]=t,F1[e+"Flip"]=t});cN(!0);GY("",rX);if(typeof document<"u"&&typeof window<"u"){mN();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!WY(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;QY(n,o)||console.error(r)}catch{console.error(r)}}}}({...qk});const kX=Jo({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=e,o=ar(),i=TG(),a=Dk("icons",()=>({})),s=Tn(!1),c=hr(()=>{var p;return((((p=i.nuxtIcon)==null?void 0:p.aliases)||{})[r.name]||r.name).replace(/^i-/,"")}),u=hr(()=>{var p;return(p=a.value)==null?void 0:p[c.value]}),l=hr(()=>o.vueApp.component(c.value)),f=hr(()=>{var v,m,g;if(!r.size&&typeof((v=i.nuxtIcon)==null?void 0:v.size)=="boolean"&&!((m=i.nuxtIcon)!=null&&m.size))return;const p=r.size||((g=i.nuxtIcon)==null?void 0:g.size)||"1em";return String(Number(p))===p?`${p}px`:p}),d=hr(()=>{var p;return((p=i==null?void 0:i.nuxtIcon)==null?void 0:p.class)??"icon"});async function h(){var p;l.value||(p=a.value)!=null&&p[c.value]||(s.value=!0,a.value[c.value]=await wX(c.value).catch(()=>{}),s.value=!1)}return so(()=>c.value,h),!l.value&&([t,n]=kb(()=>h()),t=await t,n()),(p,v)=>s.value?(Vn(),li("span",{key:0,class:Gr(d.value),style:zc({width:f.value,height:f.value})},null,6)):u.value?(Vn(),xo(Re(DY),{key:1,icon:u.value,class:Gr(d.value),width:f.value,height:f.value},null,8,["icon","class","width","height"])):l.value?(Vn(),xo(_k(l.value),{key:2,class:Gr(d.value),width:f.value,height:f.value},null,8,["class","width","height"])):(Vn(),li("span",{key:3,class:Gr(d.value),style:zc({fontSize:f.value,lineHeight:f.value,width:f.value,height:f.value})},[Ku(p.$slots,"default",{},()=>[Au(fm(e.name),1)],!0)],6))}});const gN=XI(kX,[["__scopeId","data-v-6f6643fb"]]),jX=Object.freeze(Object.defineProperty({__proto__:null,default:gN},Symbol.toStringTag,{value:"Module"}));function T$(e){return typeof e=="function"?e():Re(e)}const _X=e=>typeof e<"u",R$=()=>{};function SX(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function $X(e,t={}){let n,r,o=R$;const i=s=>{clearTimeout(s),o(),o=R$};return s=>{const c=T$(e),u=T$(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((l,f)=>{o=t.rejectOnCancel?f:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(s())},c)})}}function Gk(e,t=200,n={}){return SX($X(t,n),e)}function CX(e){return JSON.parse(JSON.stringify(e))}function EX(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:c=!1,eventName:u,deep:l=!1,defaultValue:f,shouldEmit:d}=r,h=Qs(),p=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=b=>s?typeof s=="function"?s(b):CX(b):b,g=()=>_X(e[t])?m(e[t]):f,y=b=>{d?d(b)&&p(v,b):p(v,b)};if(c){const b=g(),w=Tn(b);let x=!1;return so(()=>e[t],k=>{x||(x=!0,w.value=m(k),tu(()=>x=!1))}),so(w,k=>{!x&&(k!==e[t]||l)&&y(k)},{deep:l}),w}else return hr({get(){return g()},set(b){y(b)}})}const OX={class:"n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base"},MX=Jo({__name:"NTextInput",props:{modelValue:{default:""},icon:{},placeholder:{},disabled:{type:Boolean},autofocus:{type:Boolean},type:{default:"text"}},setup(e,{emit:t}){const r=EX(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=Bk;return Vn(),li("div",OX,[Ku(o.$slots,"icon",{},()=>[o.icon?(Vn(),xo(a,{key:0,icon:o.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):qa("",!0)]),KU(nr("input",Ok({"onUpdate:modelValue":i[0]||(i[0]=s=>Yr(r)?r.value=s:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[iK,Re(r)]])])}}}),AX=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Zb=(e,t)=>{const n=e.route.matched.find(o=>{var i;return((i=o.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&AX(e.route,n));return typeof r=="function"?r(e.route):r},PX=(e,t)=>({default:()=>e?Ho(XU,e===!0?{}:e,t):t}),TX=Jo({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Ql(b0,hp(r)),()=>Ho(e.vnode,{ref:e.vnodeRef})}}),RX=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ho(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),IX=Jo({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ar(),o=Tn(),i=gi(b0,null);n({pageRef:o});const a=gi(mG,null);let s;const c=r.deferHydration();return()=>Ho(YI,{name:e.name,route:e.route,...t},{default:u=>{const l=zX(i,u.route,u.Component),f=i&&i.matched.length===u.route.matched.length;if(!u.Component)return s&&!f?s:void 0;if(s&&a&&!a.isCurrent(u.route))return s;if(l&&i&&(!a||a!=null&&a.isCurrent(i)))return f?s:null;const d=Zb(u,e.pageKey),h=!!(e.transition??u.route.meta.pageTransition??qb),p=h&&DX([e.transition,u.route.meta.pageTransition,qb,{onAfterLeave:()=>{r.callHook("page:transition:finish",u.Component)}}].filter(Boolean));return s=RX(Ak,h&&p,PX(e.keepalive??u.route.meta.keepalive??RG,Ho(I7,{suspensible:!0,onPending:()=>r.callHook("page:start",u.Component),onResolve:()=>{tu(()=>r.callHook("page:finish",u.Component).finally(c))}},{default:()=>Ho(TX,{key:d,vnode:u.Component,route:u.route,renderKey:d,trackRootNodes:h,vnodeRef:o})}))).default(),s}})}});function NX(e){return Array.isArray(e)?e:e?[e]:[]}function DX(e){const t=e.map(n=>({...n,onAfterLeave:NX(n.onAfterLeave)}));return uG(...t)}function zX(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var i;return((i=o.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,i)=>{var a,s,c;return((a=o.components)==null?void 0:a.default)!==((c=(s=e.matched[i])==null?void 0:s.components)==null?void 0:c.default)})||n&&Zb({route:t,Component:n})!==Zb({route:e,Component:n})}const LX=6e4;function yN(e){return e}const BX=yN,{clearTimeout:FX,setTimeout:qX}=globalThis,HX=Math.random.bind(Math);function VX(e,t){const{post:n,on:r,eventNames:o=[],serialize:i=yN,deserialize:a=BX,resolver:s,timeout:c=LX}=t,u=new Map;let l;const f=new Proxy({},{get(d,h){if(h==="$functions")return e;const p=(...m)=>{n(i({m:h,a:m,t:"q"}))};if(o.includes(h))return p.asEvent=p,p;const v=async(...m)=>(await l,new Promise((g,y)=>{var x,k;const b=WX();let w;c>=0&&(w=(k=(x=qX(()=>{y(new Error(`[birpc] timeout on calling "${h}"`)),u.delete(b)},c)).unref)==null?void 0:k.call(x)),u.set(b,{resolve:g,reject:y,timeoutId:w}),n(i({m:h,a:m,i:b,t:"q"}))}));return v.asEvent=p,v}});return l=r(async(d,...h)=>{const p=a(d);if(p.t==="q"){const{m:v,a:m}=p;let g,y;const b=s?s(v,e[v]):e[v];if(!b)y=new Error(`[birpc] function "${v}" not found`);else try{g=await b.apply(f,m)}catch(w){y=w}p.i&&(y&&t.onError&&t.onError(y,v,m),n(i({t:"s",i:p.i,r:g,e:y}),...h))}else{const{i:v,r:m,e:g}=p,y=u.get(v);y&&(FX(y.timeoutId),g?y.reject(g):y.resolve(m)),u.delete(v)}}),f}const UX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function WX(e=21){let t="",n=e;for(;n--;)t+=UX[HX()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:KX,stringify:JX}=JSON,{keys:GX}=Object,Oh=String,bN="string",I$={},sg="object",wN=(e,t)=>t,QX=e=>e instanceof Oh?Oh(e):e,YX=(e,t)=>typeof t===bN?new Oh(t):t,xN=(e,t,n,r)=>{const o=[];for(let i=GX(n),{length:a}=i,s=0;s<a;s++){const c=i[s],u=n[c];if(u instanceof Oh){const l=e[u];typeof l===sg&&!t.has(l)?(t.add(l),n[c]=I$,o.push({k:c,a:[e,t,l,r]})):n[c]=r.call(n,c,l)}else n[c]!==I$&&(n[c]=r.call(n,c,u))}for(let{length:i}=o,a=0;a<i;a++){const{k:s,a:c}=o[a];n[s]=r.call(n,s,xN.apply(null,c))}return n},N$=(e,t,n)=>{const r=Oh(t.push(n)-1);return e.set(n,r),r},XX=(e,t)=>{const n=KX(e,YX).map(QX),r=n[0],o=t||wN,i=typeof r===sg&&r?xN(n,new Set,r,o):r;return o.call({"":i},"",i)},ZX=(e,t,n)=>{const r=t&&typeof t===sg?(l,f)=>l===""||-1<t.indexOf(l)?f:void 0:t||wN,o=new Map,i=[],a=[];let s=+N$(o,i,r.call({"":e},"",e)),c=!s;for(;s<i.length;)c=!0,a[s]=JX(i[s++],u,n);return"["+a.join(",")+"]";function u(l,f){if(c)return c=!c,f;const d=r.call(this,l,f);switch(typeof d){case sg:if(d===null)return d;case bN:return o.get(d)||N$(o,i,d)}return d}},tZ=2e3;let kN=()=>{};const D$=Tn(!0),z$=Tn(),jN=Tn(null);function eZ(e){const t=VX(e,{post:n=>jN.value.send(n),on:n=>{kN=n},serialize:ZX,deserialize:XX});return{useServerConfig:async function(){return(await Nk("server-config",()=>t.getConfig())).data}}}async function _N(e){const t=new WebSocket(`ws://${e}/__nuxt_og_image__/entry`);return t.addEventListener("message",n=>kN(String(n.data))),t.addEventListener("error",n=>{z$.value=n}),t.addEventListener("close",()=>{console.log("[nuxt-og-image] WebSocket closed, reconnecting..."),setTimeout(async()=>{jN.value=await _N(e)},tZ)}),D$.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(n=>t.addEventListener("open",n)),console.log("[nuxt-og-image] WebSocket connected."),D$.value=!1,z$.value=null,t}const S0=Tn(Date.now()),L$=Tn(null),SN=window.location.host,Ga=Tn("/"),$N=Tn("/"),rv=Tn({}),Nd=Tn({}),wu=Tn(!1),q1=Tn({}),Dd=Gk(()=>{S0.value=Date.now()},200),nZ=Gk(()=>{S0.value=Date.now()},1e3),rZ={refresh(){wu.value=!1,Nd.value={},Dd()}};eZ(rZ);const bl=Tn(null),Qk=hr(()=>gI($N.value,`${window.location.protocol}//${SN}`)),u4t=hr(()=>`${Qk.value}${Ga.value==="/"?"":Ga.value}`);async function B$(){const{data:e}=await Nk(()=>$fetch("/api/og-image-options",{baseURL:Qk.value,query:{path:Ga.value}}),{watch:[Ga,S0]},"$XVR8o8RMBy");return e}async function l4t(){const{data:e}=await Nk(()=>$fetch("/api/og-image-vnode",{query:{path:Ga.value},baseURL:Qk.value}),{watch:[Ga,S0]},"$cHgKigQ0kS");return e}var H1,F$,q$,H$,V$,U$,W$,K$,J$,G$,Q$,Y$,X$,Z$,tC,eC,nC,rC,oC,iC,aC,sC,cC,uC,lC,fC,dC,hC,pC,vC,mC,gC,yC,bC,wC,xC,kC,jC,_C,SC,$C,CC,EC,OC,MC,AC,PC,TC,RC,IC,NC,DC,zC,LC,BC,FC,qC,HC,VC,UC,WC,KC,JC,GC,QC,YC,XC,ZC,t3,e3,n3,r3,o3,i3,a3,s3,c3,u3,l3,f3,d3,h3,p3,v3,m3,g3,y3,b3,w3,x3,k3,j3,_3,S3,$3,C3,E3,O3,M3,A3,P3,T3,R3,I3,N3,D3,z3,L3,B3,F3,q3,H3,V3,U3,W3,K3,J3,G3,Q3,Y3,X3,Z3,t4,e4,n4,r4,o4,i4,a4,s4,c4,u4,l4,f4,d4,h4,p4,v4,m4,g4,y4,b4,w4,x4,k4,j4,_4,S4,$4,C4,E4,O4,M4,A4,P4,T4,R4,I4,N4,D4,z4,L4,B4,F4,q4,H4,V4,U4,W4,K4,J4,G4,Q4,Y4,X4,Z4,t8,e8,n8,r8,o8,i8,a8,s8,c8,u8,l8,f8,d8,h8,p8,v8,m8,g8,y8,b8,w8,x8,k8,j8,_8,S8,$8,C8,E8,O8,M8,A8,P8,T8,R8,I8,N8,D8,z8,L8,B8,F8,q8,H8,V8,U8,W8,K8,J8,G8,Q8,Y8,X8,Z8,t5,e5,n5,r5,o5,i5,a5,s5,c5,u5,l5,f5,d5,h5,p5,v5,m5,g5,y5,b5,w5,x5,k5,j5,_5,S5,$5,C5,E5,O5,M5,A5,P5,T5,R5,I5,N5,D5,z5,L5,B5,F5,q5,H5,V5,U5,W5,K5,J5,G5,Q5,Y5,X5,oZ=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],iZ=["mainAxis","crossAxis","limiter"];function st(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kn(){return kn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=ln(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},kn.apply(this,arguments)}function CN(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var c,u,l={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],s.indexOf(c)>=0||(l[c]=a[c]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ht(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(F,O,A){F[O]=A.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(F,O,A){return Object.defineProperty(F,O,{value:A,enumerable:!0,configurable:!0,writable:!0}),F[O]}try{u({},"")}catch{u=function(O,A,_){return O[A]=_}}function l(F,O,A,_){var M=O&&O.prototype instanceof g?O:g,P=Object.create(M.prototype),D=new R(_||[]);return o(P,"_invoke",{value:C(F,A,D)}),P}function f(F,O,A){try{return{type:"normal",arg:F.call(O,A)}}catch(_){return{type:"throw",arg:_}}}t.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",v="completed",m={};function g(){}function y(){}function b(){}var w={};u(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(q([])));k&&k!==n&&r.call(k,a)&&(w=k);var j=b.prototype=g.prototype=Object.create(w);function S(F){["next","throw","return"].forEach(function(O){u(F,O,function(A){return this._invoke(O,A)})})}function N(F,O){function A(M,P,D,T){var H=f(F[M],F,P);if(H.type!=="throw"){var I=H.arg,ft=I.value;return ft&&ce(ft)=="object"&&r.call(ft,"__await")?O.resolve(ft.__await).then(function(tt){A("next",tt,D,T)},function(tt){A("throw",tt,D,T)}):O.resolve(ft).then(function(tt){I.value=tt,D(I)},function(tt){return A("throw",tt,D,T)})}T(H.arg)}var _;o(this,"_invoke",{value:function(M,P){function D(){return new O(function(T,H){A(M,P,T,H)})}return _=_?_.then(D,D):D()}})}function C(F,O,A){var _=d;return function(M,P){if(_===p)throw new Error("Generator is already running");if(_===v){if(M==="throw")throw P;return{value:e,done:!0}}for(A.method=M,A.arg=P;;){var D=A.delegate;if(D){var T=$(D,A);if(T){if(T===m)continue;return T}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(_===d)throw _=v,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);_=p;var H=f(F,O,A);if(H.type==="normal"){if(_=A.done?v:h,H.arg===m)continue;return{value:H.arg,done:A.done}}H.type==="throw"&&(_=v,A.method="throw",A.arg=H.arg)}}}function $(F,O){var A=O.method,_=F.iterator[A];if(_===e)return O.delegate=null,A==="throw"&&F.iterator.return&&(O.method="return",O.arg=e,$(F,O),O.method==="throw")||A!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+A+"' method")),m;var M=f(_,F.iterator,O.arg);if(M.type==="throw")return O.method="throw",O.arg=M.arg,O.delegate=null,m;var P=M.arg;return P?P.done?(O[F.resultName]=P.value,O.next=F.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,m):P:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,m)}function B(F){var O={tryLoc:F[0]};1 in F&&(O.catchLoc=F[1]),2 in F&&(O.finallyLoc=F[2],O.afterLoc=F[3]),this.tryEntries.push(O)}function K(F){var O=F.completion||{};O.type="normal",delete O.arg,F.completion=O}function R(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(B,this),this.reset(!0)}function q(F){if(F||F===""){var O=F[a];if(O)return O.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var A=-1,_=function M(){for(;++A<F.length;)if(r.call(F,A))return M.value=F[A],M.done=!1,M;return M.value=e,M.done=!0,M};return _.next=_}}throw new TypeError(ce(F)+" is not iterable")}return y.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(F){var O=typeof F=="function"&&F.constructor;return!!O&&(O===y||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,b):(F.__proto__=b,u(F,c,"GeneratorFunction")),F.prototype=Object.create(j),F},t.awrap=function(F){return{__await:F}},S(N.prototype),u(N.prototype,s,function(){return this}),t.AsyncIterator=N,t.async=function(F,O,A,_,M){M===void 0&&(M=Promise);var P=new N(l(F,O,A,_),M);return t.isGeneratorFunction(O)?P:P.next().then(function(D){return D.done?D.value:P.next()})},S(j),u(j,c,"Generator"),u(j,a,function(){return this}),u(j,"toString",function(){return"[object Generator]"}),t.keys=function(F){var O=Object(F),A=[];for(var _ in O)A.push(_);return A.reverse(),function M(){for(;A.length;){var P=A.pop();if(P in O)return M.value=P,M.done=!1,M}return M.done=!0,M}},t.values=q,R.prototype={constructor:R,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(K),!F)for(var O in this)O.charAt(0)==="t"&&r.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var O=this;function A(H,I){return P.type="throw",P.arg=F,O.next=H,I&&(O.method="next",O.arg=e),!!I}for(var _=this.tryEntries.length-1;_>=0;--_){var M=this.tryEntries[_],P=M.completion;if(M.tryLoc==="root")return A("end");if(M.tryLoc<=this.prev){var D=r.call(M,"catchLoc"),T=r.call(M,"finallyLoc");if(D&&T){if(this.prev<M.catchLoc)return A(M.catchLoc,!0);if(this.prev<M.finallyLoc)return A(M.finallyLoc)}else if(D){if(this.prev<M.catchLoc)return A(M.catchLoc,!0)}else{if(!T)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return A(M.finallyLoc)}}}},abrupt:function(F,O){for(var A=this.tryEntries.length-1;A>=0;--A){var _=this.tryEntries[A];if(_.tryLoc<=this.prev&&r.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var M=_;break}}M&&(F==="break"||F==="continue")&&M.tryLoc<=O&&O<=M.finallyLoc&&(M=null);var P=M?M.completion:{};return P.type=F,P.arg=O,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(P)},complete:function(F,O){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&O&&(this.next=O),m},finish:function(F){for(var O=this.tryEntries.length-1;O>=0;--O){var A=this.tryEntries[O];if(A.finallyLoc===F)return this.complete(A.completion,A.afterLoc),K(A),m}},catch:function(F){for(var O=this.tryEntries.length-1;O>=0;--O){var A=this.tryEntries[O];if(A.tryLoc===F){var _=A.completion;if(_.type==="throw"){var M=_.arg;K(A)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(F,O,A){return this.delegate={iterator:q(F),resultName:O,nextLoc:A},this.method==="next"&&(this.arg=e),m}},t}function Z5(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){Z5(i,r,o,a,s,"next",c)}function s(c){Z5(i,r,o,a,s,"throw",c)}a(void 0)})}}function $e(e,t){return ON(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,a,s,c,u=[],l=!0,f=!1;try{if(s=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(i=s.call(o)).done)&&(u.push(i.value),u.length!==r);l=!0);}catch(d){f=!0,a=d}finally{try{if(!l&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||$0(e,t)||EN()}function EN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ON(e){if(Array.isArray(e))return e}function jf(e){var t=typeof Map=="function"?new Map:void 0;return jf=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return tw(n,arguments,ln(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Mh(o,n)},jf(e)}function tw(e,t,n){return tw=MN()?Reflect.construct.bind():function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&Mh(s,i.prototype),s},tw.apply(null,arguments)}function Tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mh(e,t)}function Rt(e){var t=MN();return function(){var n,r=ln(e);if(t){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(ce(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(i)}(this,n)}}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ln(e)}function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tE(Object(n),!0).forEach(function(r){Vo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AN(r.key),r)}}function ot(e,t,n){return t&&eE(e.prototype,t),n&&eE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vo(e,t,n){return(t=AN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e){var t=function(n,r){if(ce(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(ce(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return ce(t)==="symbol"?t:String(t)}function Se(e){return function(t){if(Array.isArray(t))return ew(t)}(e)||PN(e)||$0(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $0(e,t){if(e){if(typeof e=="string")return ew(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ew(e,t):void 0}}function PN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(e)}function Ht(){}var TN=function(e){return e};function oi(e,t){for(var n in t)e[n]=t[n];return e}function RN(e){return e()}function nE(){return Object.create(null)}function Fn(e){e.forEach(RN)}function co(e){return typeof e=="function"}function to(e,t){return e!=e?t==t:e!==t||e&&ce(e)==="object"||typeof e=="function"}function qe(e,t){return e!=e?t==t:e!==t}function Cr(e,t,n,r){if(e){var o=IN(e,t,n,r);return e[0](o)}}function IN(e,t,n,r){return e[1]&&r?oi(n.ctx.slice(),e[1](r(t))):n.ctx}function Er(e,t,n,r){if(e[2]&&r){var o=e[2](r(n));if(t.dirty===void 0)return o;if(ce(o)==="object"){for(var i=[],a=Math.max(t.dirty.length,o.length),s=0;s<a;s+=1)i[s]=t.dirty[s]|o[s];return i}return t.dirty|o}return t.dirty}function Or(e,t,n,r,o,i){if(o){var a=IN(t,n,r,i);e.p(a,o)}}function Mr(e){if(e.ctx.length>32){for(var t=[],n=e.ctx.length/32,r=0;r<n;r++)t[r]=-1;return t}return-1}function NN(e){var t={};for(var n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function cg(e,t){var n={};for(var r in t=new Set(t),e)t.has(r)||r[0]==="$"||(n[r]=e[r]);return n}function dr(e){return e??""}function lo(e){return e&&co(e.destroy)?e.destroy:Ht}var DN=typeof window<"u",aZ=DN?function(){return window.performance.now()}:function(){return Date.now()},Yk=DN?function(e){return requestAnimationFrame(e)}:Ht,eh=new Set;function zN(e){eh.forEach(function(t){t.c(e)||(eh.delete(t),t.f())}),eh.size!==0&&Yk(zN)}var Xk=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function V(e,t){e.appendChild(t)}function ze(e,t,n){var r=Zk(e);if(!r.getElementById(t)){var o=et("style");o.id=t,o.textContent=n,LN(r,o)}}function Zk(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function sZ(e){var t=et("style");return t.textContent="/* empty */",LN(Zk(e),t),t.sheet}function LN(e,t){return V(e.head||e,t),t.sheet}function dt(e,t,n){e.insertBefore(t,n||null)}function lt(e){e.parentNode&&e.parentNode.removeChild(e)}function Ir(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function et(e){return document.createElement(e)}function ss(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Gt(e){return document.createTextNode(e)}function kt(){return Gt(" ")}function _n(){return Gt("")}function Lt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Gu(e){return function(t){return t.preventDefault(),e.call(this,t)}}function cs(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function E(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var cZ=["width","height"];function rE(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&cZ.indexOf(r)===-1?e[r]=t[r]:E(e,r,t[r])}function _f(e,t){for(var n in t)E(e,n,t[n])}function we(e,t){t=""+t,e.data!==t&&(e.data=t)}function us(e,t){e.value=t??""}function xc(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function oE(e,t,n){for(var r=0;r<e.options.length;r+=1){var o=e.options[r];if(o.__value===t)return void(o.selected=!0)}n&&t===void 0||(e.selectedIndex=-1)}function Dt(e,t,n){e.classList.toggle(t,!!n)}function BN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.bubbles,o=r!==void 0&&r,i=n.cancelable;return new CustomEvent(e,{detail:t,bubbles:o,cancelable:i!==void 0&&i})}function ls(e,t){return new e(t)}var Ah,ug=new Map,nw=0;function iE(e,t,n,r,o,i,a){for(var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,c=16.666/r,u=`{
9
+ `,l=0;l<=1;l+=c){var f=t+(n-t)*i(l);u+=100*l+"%{".concat(a(f,1-f),`}
10
+ `)}var d=u+"100% {".concat(a(n,1-n),`}
11
+ }`),h="__svelte_".concat(function(b){for(var w=5381,x=b.length;x--;)w=(w<<5)-w^b.charCodeAt(x);return w>>>0}(d),"_").concat(s),p=Zk(e),v=ug.get(p)||function(b,w){var x={stylesheet:sZ(w),rules:{}};return ug.set(b,x),x}(p,e),m=v.stylesheet,g=v.rules;g[h]||(g[h]=!0,m.insertRule("@keyframes ".concat(h," ").concat(d),m.cssRules.length));var y=e.style.animation||"";return e.style.animation="".concat(y?"".concat(y,", "):"").concat(h," ").concat(r,"ms linear ").concat(o,"ms 1 both"),nw+=1,h}function uZ(e,t){var n=(e.style.animation||"").split(", "),r=n.filter(t?function(i){return i.indexOf(t)<0}:function(i){return i.indexOf("__svelte")===-1}),o=n.length-r.length;o&&(e.style.animation=r.join(", "),(nw-=o)||Yk(function(){nw||(ug.forEach(function(i){var a=i.stylesheet.ownerNode;a&&lt(a)}),ug.clear())}))}function nh(e){Ah=e}function Wf(){if(!Ah)throw new Error("Function called outside component initialization");return Ah}function Ui(e){Wf().$$.on_mount.push(e)}function yi(e){Wf().$$.on_destroy.push(e)}function FN(){var e=Wf();return function(t,n){var r=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).cancelable,o=r!==void 0&&r,i=e.$$.callbacks[t];if(i){var a=BN(t,n,{cancelable:o});return i.slice().forEach(function(s){s.call(e,a)}),!a.defaultPrevented}return!0}}function qN(e,t){return Wf().$$.context.set(e,t),t}function fo(e){return Wf().$$.context.get(e)}function ov(e,t){var n=this,r=e.$$.callbacks[t.type];r&&r.slice().forEach(function(o){return o.call(n,t)})}var $l=[],rn=[],Yl=[],rw=[],HN=Promise.resolve(),ow=!1;function VN(){ow||(ow=!0,HN.then(UN))}function br(){return VN(),HN}function Qu(e){Yl.push(e)}function fa(e){rw.push(e)}var iv,V1=new Set,wl=0;function UN(){if(wl===0){var e=Ah;do{try{for(;wl<$l.length;){var t=$l[wl];wl++,nh(t),lZ(t.$$)}}catch(o){throw $l.length=0,wl=0,o}for(nh(null),$l.length=0,wl=0;rn.length;)rn.pop()();for(var n=0;n<Yl.length;n+=1){var r=Yl[n];V1.has(r)||(V1.add(r),r())}Yl.length=0}while($l.length);for(;rw.length;)rw.pop()();ow=!1,V1.clear(),nh(e)}}function lZ(e){if(e.fragment!==null){e.update(),Fn(e.before_update);var t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Qu)}}function U1(e,t,n){e.dispatchEvent(BN("".concat(t?"intro":"outro").concat(n)))}var Ps,gm=new Set;function Bt(){Ps={r:0,c:[],p:Ps}}function Ft(){Ps.r||Fn(Ps.c),Ps=Ps.p}function L(e,t){e&&e.i&&(gm.delete(e),e.i(t))}function U(e,t,n,r){if(e&&e.o){if(gm.has(e))return;gm.add(e),Ps.c.push(function(){gm.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}var fZ={duration:0};function av(e,t,n,r){var o,i=t(e,n,{direction:"both"}),a=r?0:1,s=null,c=null,u=null;function l(){u&&uZ(e,u)}function f(h,p){var v=h.b-a;return p*=Math.abs(v),{a,b:h.b,d:v,duration:p,start:h.start,end:h.start+p,group:h.group}}function d(h){var p,v=i||fZ,m=v.delay,g=m===void 0?0:m,y=v.duration,b=y===void 0?300:y,w=v.easing,x=w===void 0?TN:w,k=v.tick,j=k===void 0?Ht:k,S=v.css,N={start:aZ()+g,b:h};h||(N.group=Ps,Ps.r+=1),"inert"in e&&(h?o!==void 0&&(e.inert=o):(o=e.inert,e.inert=!0)),s||c?c=N:(S&&(l(),u=iE(e,a,h,b,g,x,S)),h&&j(0,1),s=f(N,b),Qu(function(){return U1(e,h,"start")}),p=function(C){if(c&&C>c.start&&(s=f(c,b),c=null,U1(e,s.b,"start"),S&&(l(),u=iE(e,a,s.b,s.duration,0,x,i.css))),s){if(C>=s.end)j(a=s.b,1-a),U1(e,s.b,"end"),c||(s.b?l():--s.group.r||Fn(s.group.c)),s=null;else if(C>=s.start){var $=C-s.start;a=s.a+s.d*x($/s.duration),j(a,1-a)}}return!(!s&&!c)},eh.size===0&&Yk(zN),new Promise(function(C){eh.add({c:p,f:C})}))}return{run:function(h){co(i)?(iv||(iv=Promise.resolve()).then(function(){iv=null}),iv).then(function(){i=i({direction:h?"in":"out"}),d(h)}):d(h)},end:function(){l(),s=c=null}}}function De(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function dZ(e,t){e.d(1),t.delete(e.key)}function t2(e,t){U(e,1,1,function(){t.delete(e.key)})}function C0(e,t,n,r,o,i,a,s,c,u,l,f){for(var d=e.length,h=i.length,p=d,v={};p--;)v[e[p].key]=p;var m=[],g=new Map,y=new Map,b=[];p=h;for(var w=function(){var K=f(o,i,p),R=n(K),q=a.get(R);q?r&&b.push(function(){return q.p(K,t)}):(q=u(R,K)).c(),g.set(R,m[p]=q),R in v&&y.set(R,Math.abs(p-v[R]))};p--;)w();var x=new Set,k=new Set;function j(K){L(K,1),K.m(s,l),a.set(K.key,K),l=K.first,h--}for(;d&&h;){var S=m[h-1],N=e[d-1],C=S.key,$=N.key;S===N?(l=S.first,d--,h--):g.has($)?!a.has(C)||x.has(C)?j(S):k.has($)?d--:y.get(C)>y.get($)?(k.add(C),j(S)):(x.add($),d--):(c(N,a),d--)}for(;d--;){var B=e[d];g.has(B.key)||c(B,a)}for(;h;)j(m[h-1]);return Fn(b),m}function Wi(e,t){for(var n={},r={},o={$$scope:1},i=e.length;i--;){var a=e[i],s=t[i];if(s){for(var c in a)c in s||(r[c]=1);for(var u in s)o[u]||(n[u]=s[u],o[u]=1);e[i]=s}else for(var l in a)o[l]=1}for(var f in r)f in n||(n[f]=void 0);return n}function Yu(e){return ce(e)==="object"&&e!==null?e:{}}function da(e,t,n){var r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function Pt(e){e&&e.c()}function Mt(e,t,n){var r=e.$$,o=r.fragment,i=r.after_update;o&&o.m(t,n),Qu(function(){var a,s=e.$$.on_mount.map(RN).filter(co);e.$$.on_destroy?(a=e.$$.on_destroy).push.apply(a,Se(s)):Fn(s),e.$$.on_mount=[]}),i.forEach(Qu)}function At(e,t){var n,r,o,i=e.$$;i.fragment!==null&&(n=i.after_update,r=[],o=[],Yl.forEach(function(a){return n.indexOf(a)===-1?r.push(a):o.push(a)}),o.forEach(function(a){return a()}),Yl=r,Fn(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function ve(e,t,n,r,o,i){var a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[-1],c=Ah;nh(e);var u=e.$$={fragment:null,ctx:[],props:i,update:Ht,not_equal:o,bound:nE(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:nE(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(u.root);var l=!1;if(u.ctx=n?n(e,t.props||{},function(d,h){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:h;return u.ctx&&o(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),l&&function(v,m){v.$$.dirty[0]===-1&&($l.push(v),VN(),v.$$.dirty.fill(0)),v.$$.dirty[m/31|0]|=1<<m%31}(e,d)),h}):[],u.update(),l=!0,Fn(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){var f=function(d){return Array.from(d.childNodes)}(t.target);u.fragment&&u.fragment.l(f),f.forEach(lt)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),Mt(e,t.target,t.anchor),UN()}nh(c)}var me=function(){function e(){rt(this,e),Vo(this,"$$",void 0),Vo(this,"$$set",void 0)}return ot(e,[{key:"$destroy",value:function(){At(this,1),this.$destroy=Ht}},{key:"$on",value:function(t,n){if(!co(n))return Ht;var r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),function(){var o=r.indexOf(n);o!==-1&&r.splice(o,1)}}},{key:"$set",value:function(t){var n;this.$$set&&(n=t,Object.keys(n).length!==0)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),e}();function ho(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(r){var o=function(i){try{if(typeof window<"u"&&window.localStorage!==void 0)return window.localStorage[i]}catch{}}("debug");return o!=null&&o.endsWith("*")?r.startsWith(o.slice(0,-1)):r===o}(e);if(!t)return hZ;var n=function(r){for(var o=0,i=0;i<r.length;i++)o=(o<<5)-o+r.charCodeAt(i),o|=0;return aE[Math.abs(o)%aE.length]}(e);return function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=console).log.apply(r,["%c".concat(e),"color:".concat(n)].concat(i))}}function hZ(){}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var aE=["#0000CC","#0099FF","#009400","#8dd200","#CCCC00","#CC9933","#ae04e7","#ff35d7","#FF3333","#FF6600","#FF9933","#FFCC33"];function pZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.delay,r=n===void 0?0:n,o=t.duration,i=o===void 0?400:o,a=t.easing,s=a===void 0?TN:a,c=+getComputedStyle(e).opacity;return{delay:r,duration:i,easing:s,css:function(u){return"opacity: ".concat(u*c)}}}var vZ=Xk.window;function mZ(e){ze(e,"svelte-n7cvum",`.svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
12
+ background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
13
+ background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}`)}function sE(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=e[1].closeButton&&cE(e),w=e[2];return w&&(a=ls(w,{})),{c:function(){t=et("div"),n=et("div"),r=et("div"),b&&b.c(),o=kt(),i=et("div"),a&&Pt(a.$$.fragment),E(i,"class",s=dr(e[1].classContent)+" svelte-n7cvum"),E(i,"style",e[9]),Dt(i,"content",!e[0]),E(r,"class",c=dr(e[1].classWindow)+" svelte-n7cvum"),E(r,"role","dialog"),E(r,"aria-modal","true"),E(r,"aria-label",u=e[1].ariaLabelledBy?null:e[1].ariaLabel||null),E(r,"aria-labelledby",l=e[1].ariaLabelledBy||null),E(r,"style",e[8]),Dt(r,"window",!e[0]),E(n,"class",d=dr(e[1].classWindowWrap)+" svelte-n7cvum"),E(n,"style",e[7]),Dt(n,"wrap",!e[0]),E(t,"aria-hidden","true"),E(t,"id",h=e[1].id),E(t,"class",p=dr(e[1].classBg)+" svelte-n7cvum"),E(t,"style",e[6]),Dt(t,"bg",!e[0])},m:function(x,k){dt(x,t,k),V(t,n),V(n,r),b&&b.m(r,null),V(r,o),V(r,i),a&&Mt(a,i,null),e[50](r),e[51](n),e[52](t),m=!0,g||(y=[Lt(r,"introstart",function(){co(e[13])&&e[13].apply(this,arguments)}),Lt(r,"outrostart",function(){co(e[14])&&e[14].apply(this,arguments)}),Lt(r,"introend",function(){co(e[15])&&e[15].apply(this,arguments)}),Lt(r,"outroend",function(){co(e[16])&&e[16].apply(this,arguments)}),Lt(t,"mousedown",e[20]),Lt(t,"mouseup",e[21])],g=!0)},p:function(x,k){if((e=x)[1].closeButton?b?(b.p(e,k),2&k[0]&&L(b,1)):((b=cE(e)).c(),L(b,1),b.m(r,o)):b&&(Bt(),U(b,1,1,function(){b=null}),Ft()),4&k[0]&&w!==(w=e[2])){if(a){Bt();var j=a;U(j.$$.fragment,1,0,function(){At(j,1)}),Ft()}w?(Pt((a=ls(w,{})).$$.fragment),L(a.$$.fragment,1),Mt(a,i,null)):a=null}(!m||2&k[0]&&s!==(s=dr(e[1].classContent)+" svelte-n7cvum"))&&E(i,"class",s),(!m||512&k[0])&&E(i,"style",e[9]),(!m||3&k[0])&&Dt(i,"content",!e[0]),(!m||2&k[0]&&c!==(c=dr(e[1].classWindow)+" svelte-n7cvum"))&&E(r,"class",c),(!m||2&k[0]&&u!==(u=e[1].ariaLabelledBy?null:e[1].ariaLabel||null))&&E(r,"aria-label",u),(!m||2&k[0]&&l!==(l=e[1].ariaLabelledBy||null))&&E(r,"aria-labelledby",l),(!m||256&k[0])&&E(r,"style",e[8]),(!m||3&k[0])&&Dt(r,"window",!e[0]),(!m||2&k[0]&&d!==(d=dr(e[1].classWindowWrap)+" svelte-n7cvum"))&&E(n,"class",d),(!m||128&k[0])&&E(n,"style",e[7]),(!m||3&k[0])&&Dt(n,"wrap",!e[0]),(!m||2&k[0]&&h!==(h=e[1].id))&&E(t,"id",h),(!m||2&k[0]&&p!==(p=dr(e[1].classBg)+" svelte-n7cvum"))&&E(t,"class",p),(!m||64&k[0])&&E(t,"style",e[6]),(!m||3&k[0])&&Dt(t,"bg",!e[0])},i:function(x){m||(L(b),a&&L(a.$$.fragment,x),x&&Qu(function(){m&&(f||(f=av(r,e[12],e[1].transitionWindowProps,!0)),f.run(1))}),x&&Qu(function(){m&&(v||(v=av(t,e[11],e[1].transitionBgProps,!0)),v.run(1))}),m=!0)},o:function(x){U(b),a&&U(a.$$.fragment,x),x&&(f||(f=av(r,e[12],e[1].transitionWindowProps,!1)),f.run(0)),x&&(v||(v=av(t,e[11],e[1].transitionBgProps,!1)),v.run(0)),m=!1},d:function(x){x&&lt(t),b&&b.d(),a&&At(a),e[50](null),x&&f&&f.end(),e[51](null),e[52](null),x&&v&&v.end(),g=!1,Fn(y)}}}function cE(e){var t,n,r,o,i,a=[yZ,gZ],s=[];function c(u,l){return 2&l[0]&&(t=null),t==null&&(t=!!u[17](u[1].closeButton)),t?0:1}return n=c(e,[-1,-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=_n()},m:function(u,l){s[n].m(u,l),dt(u,o,l),i=!0},p:function(u,l){var f=n;(n=c(u,l))===f?s[n].p(u,l):(Bt(),U(s[f],1,1,function(){s[f]=null}),Ft(),(r=s[n])?r.p(u,l):(r=s[n]=a[n](u)).c(),L(r,1),r.m(o.parentNode,o))},i:function(u){i||(L(r),i=!0)},o:function(u){U(r),i=!1},d:function(u){u&&lt(o),s[n].d(u)}}}function gZ(e){var t,n,r,o;return{c:function(){E(t=et("button"),"class",n=dr(e[1].classCloseButton)+" svelte-n7cvum"),E(t,"aria-label","Close modal"),E(t,"style",e[10]),E(t,"type","button"),Dt(t,"close",!e[0])},m:function(i,a){dt(i,t,a),r||(o=Lt(t,"click",e[18]),r=!0)},p:function(i,a){2&a[0]&&n!==(n=dr(i[1].classCloseButton)+" svelte-n7cvum")&&E(t,"class",n),1024&a[0]&&E(t,"style",i[10]),3&a[0]&&Dt(t,"close",!i[0])},i:Ht,o:Ht,d:function(i){i&&lt(t),r=!1,o()}}}function yZ(e){var t,n,r,o=e[1].closeButton;function i(a,s){return{props:{onClose:a[18]}}}return o&&(t=ls(o,i(e))),{c:function(){t&&Pt(t.$$.fragment),n=_n()},m:function(a,s){t&&Mt(t,a,s),dt(a,n,s),r=!0},p:function(a,s){if(2&s[0]&&o!==(o=a[1].closeButton)){if(t){Bt();var c=t;U(c.$$.fragment,1,0,function(){At(c,1)}),Ft()}o?(Pt((t=ls(o,i(a))).$$.fragment),L(t.$$.fragment,1),Mt(t,n.parentNode,n)):t=null}},i:function(a){r||(t&&L(t.$$.fragment,a),r=!0)},o:function(a){t&&U(t.$$.fragment,a),r=!1},d:function(a){a&&lt(n),t&&At(t,a)}}}function bZ(e){var t,n,r,o,i=e[2]&&sE(e),a=e[49].default,s=Cr(a,e,e[48],null);return{c:function(){i&&i.c(),t=kt(),s&&s.c()},m:function(c,u){i&&i.m(c,u),dt(c,t,u),s&&s.m(c,u),n=!0,r||(o=Lt(vZ,"keydown",e[19]),r=!0)},p:function(c,u){c[2]?i?(i.p(c,u),4&u[0]&&L(i,1)):((i=sE(c)).c(),L(i,1),i.m(t.parentNode,t)):i&&(Bt(),U(i,1,1,function(){i=null}),Ft()),s&&s.p&&(!n||131072&u[1])&&Or(s,a,c,c[48],n?Er(a,c[48],u,null):Mr(c[48]),null)},i:function(c){n||(L(i),L(s,c),n=!0)},o:function(c){U(i),U(s,c),n=!1},d:function(c){c&&lt(t),i&&i.d(c),s&&s.d(c),r=!1,o()}}}function WN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){return new e(xt(xt({},n),{},{props:xt(xt({},t),n.props)}))}}function wZ(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y=t.$$slots,b=y===void 0?{}:y,w=t.$$scope,x=FN(),k=qN,j=t.isTabbable,S=j===void 0?function(ut){return ut.tabIndex>=0&&!ut.hidden&&!ut.disabled&&ut.style.display!=="none"&&ut.type!=="hidden"&&!!(ut.offsetWidth||ut.offsetHeight||ut.getClientRects().length)}:j,N=t.show,C=N===void 0?null:N,$=t.id,B=$===void 0?null:$,K=t.key,R=K===void 0?"simple-modal":K,q=t.ariaLabel,F=q===void 0?null:q,O=t.ariaLabelledBy,A=O===void 0?null:O,_=t.closeButton,M=_===void 0||_,P=t.closeOnEsc,D=P===void 0||P,T=t.closeOnOuterClick,H=T===void 0||T,I=t.styleBg,ft=I===void 0?{}:I,tt=t.styleWindowWrap,yt=tt===void 0?{}:tt,bt=t.styleWindow,jt=bt===void 0?{}:bt,gt=t.styleContent,Y=gt===void 0?{}:gt,J=t.styleCloseButton,it=J===void 0?{}:J,X=t.classBg,_t=X===void 0?null:X,z=t.classWindowWrap,W=z===void 0?null:z,G=t.classWindow,pt=G===void 0?null:G,mt=t.classContent,Ot=mt===void 0?null:mt,Ct=t.classCloseButton,Vt=Ct===void 0?null:Ct,Qt=t.unstyled,ee=Qt!==void 0&&Qt,Kt=t.setContext,ue=Kt===void 0?k:Kt,Me=t.transitionBg,tn=Me===void 0?pZ:Me,le=t.transitionBgProps,wn=le===void 0?{duration:250}:le,Ne=t.transitionWindow,mn=Ne===void 0?tn:Ne,Ye=t.transitionWindowProps,Ke=Ye===void 0?wn:Ye,qn=t.disableFocusTrap,In=qn!==void 0&&qn,Zn={id:B,ariaLabel:F,ariaLabelledBy:A,closeButton:M,closeOnEsc:D,closeOnOuterClick:H,styleBg:ft,styleWindowWrap:yt,styleWindow:jt,styleContent:Y,styleCloseButton:it,classBg:_t,classWindowWrap:W,classWindow:pt,classContent:Ot,classCloseButton:Vt,transitionBg:tn,transitionBgProps:wn,transitionWindow:mn,transitionWindowProps:Ke,disableFocusTrap:In,isTabbable:S,unstyled:ee},Sn=xt({},Zn),En=null,Nn=function(ut){return ut?Object.keys(ut).reduce(function(It,ne){return"".concat(It,"; ").concat(function(pe){return pe.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}(ne),": ").concat(ut[ne])},""):""},sr=function(ut){return!!(ut&&ut.constructor&&ut.call&&ut.apply)},Pr=function(){},Et=Pr,ie=Pr,Be=Pr,en=Pr,$t=function(ut){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};n(2,En=WN(ut,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})),n(1,Sn=xt(xt({},Zn),It)),n(6,s=Nn(Object.assign({},{width:window.innerWidth,height:window.innerHeight},Sn.styleBg))),n(7,c=Nn(Sn.styleWindowWrap)),n(8,u=Nn(Sn.styleWindow)),n(9,l=Nn(Sn.styleContent)),n(10,f=Nn(Sn.styleCloseButton)),n(11,d=Sn.transitionBg),n(12,h=Sn.transitionWindow),Q(),n(13,Et=function(pe){ne.onOpen&&ne.onOpen(pe),x("open"),x("opening")}),n(14,ie=function(pe){ne.onClose&&ne.onClose(pe),x("close"),x("closing")}),n(15,Be=function(pe){ne.onOpened&&ne.onOpened(pe),x("opened")}),n(16,en=function(pe){ne.onClosed&&ne.onClosed(pe),x("closed")})},Xt=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};En&&(n(14,ie=ut.onClose||ie),n(16,en=ut.onClosed||en),n(2,En=null),at())},Q=function(){a=window.scrollY,p=document.body.style.position,v=document.body.style.overflow,m=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(a,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},at=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=v||"",document.body.style.width=m||"",window.scrollTo({top:a,left:0,behavior:"instant"})};ue(R,{open:$t,close:Xt});var vt=!1;return yi(function(){vt&&Xt()}),Ui(function(){n(47,vt=!0)}),e.$$set=function(ut){"isTabbable"in ut&&n(22,S=ut.isTabbable),"show"in ut&&n(23,C=ut.show),"id"in ut&&n(24,B=ut.id),"key"in ut&&n(25,R=ut.key),"ariaLabel"in ut&&n(26,F=ut.ariaLabel),"ariaLabelledBy"in ut&&n(27,A=ut.ariaLabelledBy),"closeButton"in ut&&n(28,M=ut.closeButton),"closeOnEsc"in ut&&n(29,D=ut.closeOnEsc),"closeOnOuterClick"in ut&&n(30,H=ut.closeOnOuterClick),"styleBg"in ut&&n(31,ft=ut.styleBg),"styleWindowWrap"in ut&&n(32,yt=ut.styleWindowWrap),"styleWindow"in ut&&n(33,jt=ut.styleWindow),"styleContent"in ut&&n(34,Y=ut.styleContent),"styleCloseButton"in ut&&n(35,it=ut.styleCloseButton),"classBg"in ut&&n(36,_t=ut.classBg),"classWindowWrap"in ut&&n(37,W=ut.classWindowWrap),"classWindow"in ut&&n(38,pt=ut.classWindow),"classContent"in ut&&n(39,Ot=ut.classContent),"classCloseButton"in ut&&n(40,Vt=ut.classCloseButton),"unstyled"in ut&&n(0,ee=ut.unstyled),"setContext"in ut&&n(41,ue=ut.setContext),"transitionBg"in ut&&n(42,tn=ut.transitionBg),"transitionBgProps"in ut&&n(43,wn=ut.transitionBgProps),"transitionWindow"in ut&&n(44,mn=ut.transitionWindow),"transitionWindowProps"in ut&&n(45,Ke=ut.transitionWindowProps),"disableFocusTrap"in ut&&n(46,In=ut.disableFocusTrap),"$$scope"in ut&&n(48,w=ut.$$scope)},e.$$.update=function(){8388608&e.$$.dirty[0]|65536&e.$$.dirty[1]&&vt&&(sr(C)?$t(C):Xt())},[ee,Sn,En,r,o,i,s,c,u,l,f,d,h,Et,ie,Be,en,sr,Xt,function(ut){if(Sn.closeOnEsc&&En&&ut.key==="Escape"&&(ut.preventDefault(),Xt()),En&&ut.key==="Tab"&&!Sn.disableFocusTrap){var It=i.querySelectorAll("*"),ne=Array.from(It).filter(Sn.isTabbable).sort(function(Xe,Fe){return Xe.tabIndex-Fe.tabIndex}),pe=ne.indexOf(document.activeElement);pe===-1&&ut.shiftKey&&(pe=0),pe+=ne.length+(ut.shiftKey?-1:1),ne[pe%=ne.length].focus(),ut.preventDefault()}},function(ut){!Sn.closeOnOuterClick||ut.target!==r&&ut.target!==o||(g=ut.target)},function(ut){Sn.closeOnOuterClick&&ut.target===g&&(ut.preventDefault(),Xt())},S,C,B,R,F,A,M,D,H,ft,yt,jt,Y,it,_t,W,pt,Ot,Vt,ue,tn,wn,mn,Ke,In,vt,w,b,function(ut){rn[ut?"unshift":"push"](function(){n(5,i=ut)})},function(ut){rn[ut?"unshift":"push"](function(){n(4,o=ut)})},function(ut){rn[ut?"unshift":"push"](function(){n(3,r=ut)})}]}var bo,Bn,ha,Hs,wa,zi,KN=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,wZ,bZ,to,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},mZ,[-1,-1,-1]),o}return ot(n)}();(function(e){e.text="text",e.tree="tree",e.table="table"})(bo||(bo={})),function(e){e.after="after",e.inside="inside",e.key="key",e.value="value",e.multi="multi",e.text="text"}(Bn||(Bn={})),function(e){e.after="after",e.key="key",e.value="value",e.inside="inside"}(ha||(ha={})),function(e){e.info="info",e.warning="warning",e.error="error"}(Hs||(Hs={})),function(e){e.key="key",e.value="value"}(wa||(wa={})),function(e){e.asc="asc",e.desc="desc"}(zi||(zi={}));var uE=50,xZ=200,kZ=400,jZ=1200,JN=1e3,Ph=100,Dl=100,iw=2e4,Xu=[{start:0,end:Ph}],_Z=104857600,SZ=1048576,aw=10485760,GN=10240,Zu={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-container"},$Z=xt(xt({},Zu),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),CZ=xt(xt({},Zu),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),EZ=xt(xt({},Zu),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),e2="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",n2="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",Vs="hover-insert-inside",Th="hover-insert-after",sw="hover-collection",W1="valid",lE="repairable",Ts=336,Rs=260,OZ="NO",r2="SELF",o2="NEXT_INSIDE",MZ=(Vo(H1={},zi.asc,"ascending"),Vo(H1,zi.desc,"descending"),H1),AZ=0;function rh(){return++AZ}function qc(e){return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function Un(e){return Array.isArray(e)}function kr(e){return e!==null&&qc(e)==="object"&&e.constructor===Object}function QN(e){return!(!e||qc(e)!=="object")&&e.op==="add"}function YN(e){return!(!e||qc(e)!=="object")&&e.op==="remove"}function i2(e){return!(!e||qc(e)!=="object")&&e.op==="replace"}function cw(e){return!(!e||qc(e)!=="object")&&e.op==="copy"}function Xl(e){return!(!e||qc(e)!=="object")&&e.op==="move"}function uw(e){return uw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uw(e)}function PZ(e,t){return e===t}function XN(e){return e.slice(0,e.length-1)}function ZN(e){return uw(e)==="object"&&e!==null}function oh(e){return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(e)}function fE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TZ(e,t,n){return(t=function(r){var o=function(i,a){if(oh(i)!=="object"||i===null)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var c=s.call(i,a||"default");if(oh(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}(r,"string");return oh(o)==="symbol"?o:String(o)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a2(e){if(Un(e)){var t=e.slice();return Object.getOwnPropertySymbols(e).forEach(function(r){t[r]=e[r]}),t}if(kr(e)){var n=function(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?fE(Object(i),!0).forEach(function(a){TZ(r,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):fE(Object(i)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(i,a))})}return r}({},e);return Object.getOwnPropertySymbols(e).forEach(function(r){n[r]=e[r]}),n}return e}function s2(e,t,n){if(e[t]===n)return e;var r=a2(e);return r[t]=n,r}function fe(e,t){for(var n=e,r=0;r<t.length;)n=kr(n)?n[t[r]]:Un(n)?n[parseInt(t[r])]:void 0,r++;return n}function aa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(t.length===0)return n;var o=t[0],i=aa(e?e[o]:void 0,t.slice(1),n,r);if(kr(e)||Un(e))return s2(e,o,i);if(r){var a=RZ.test(o)?[]:{};return a[o]=i,a}throw new Error("Path does not exist")}var RZ=/^\d+$/;function tD(e,t,n){if(t.length===0)return n(e);if(!ZN(e))throw new Error("Path doesn't exist");var r=t[0];return s2(e,r,tD(e[r],t.slice(1),n))}function c2(e,t){if(t.length===0)return e;if(!ZN(e))throw new Error("Path does not exist");if(t.length===1){var n=t[0];if(n in e){var r=a2(e);return Un(r)&&r.splice(parseInt(n),1),kr(r)&&delete r[n],r}return e}var o=t[0];return s2(e,o,c2(e[o],t.slice(1)))}function u2(e,t,n){var r=t.slice(0,t.length-1),o=t[t.length-1];return tD(e,r,function(i){if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(r));var a=a2(i);return a.splice(parseInt(o),0,n),a})}function Li(e,t){return e!==void 0&&(t.length===0||e!==null&&Li(e[t[0]],t.slice(1)))}function Ca(e){var t=e.split("/");return t.shift(),t.map(function(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")})}function oe(e){return e.map(eD).join("")}function eD(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function dE(e,t){return e+eD(t)}function E0(e,t){return e.startsWith(t)&&(e.length===t.length||e[t.length]==="/")}function xa(e,t,n){for(var r=e,o=0;o<t.length;o++){FZ(t[o]);var i=t[o];if(n&&n.before){var a=n.before(r,i);if(a!==void 0){if(a.document!==void 0&&(r=a.document),a.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');a.operation!==void 0&&(i=a.operation)}}var s=r,c=Ya(r,i.path);if(i.op==="add")r=DZ(r,c,i.value);else if(i.op==="remove")r=NZ(r,c);else if(i.op==="replace")r=IZ(r,c,i.value);else if(i.op==="copy")r=zZ(r,c,lw(i.from));else if(i.op==="move")r=LZ(r,c,lw(i.from));else{if(i.op!=="test")throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));BZ(r,c,i.value)}if(n&&n.after){var u=n.after(r,i,s);u!==void 0&&(r=u)}}return r}function IZ(e,t,n){return aa(e,t,n)}function NZ(e,t){return c2(e,t)}function DZ(e,t,n){return yp(e,t)?u2(e,t,n):aa(e,t,n)}function zZ(e,t,n){var r=fe(e,n);return yp(e,t)?u2(e,t,r):aa(e,t,fe(e,n))}function LZ(e,t,n){var r=fe(e,n),o=c2(e,n);return yp(o,t)?u2(o,t,r):aa(o,t,r)}function BZ(e,t,n){if(n===void 0)throw new Error('Test failed: no value provided (path: "'.concat(oe(t),'")'));if(!Li(e,t))throw new Error('Test failed: path not found (path: "'.concat(oe(t),'")'));if(!function(r,o){return JSON.stringify(r)===JSON.stringify(o)}(fe(e,t),n))throw new Error('Test failed, value differs (path: "'.concat(oe(t),'")'))}function yp(e,t){if(t.length===0)return!1;var n=fe(e,XN(t));return Array.isArray(n)}function FZ(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function Ya(e,t){return function(n,r){if(function(a){return a[a.length-1]}(r)!=="-")return r;var o=XN(r),i=fe(n,o);return o.concat(i.length)}(e,Ca(t))}function lw(e){return Ca(e)}function qZ(e){return function(t){if(Array.isArray(t))return K1(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return K1(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K1(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function K1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nD(e,t,n){var r=[];return xa(e,t,{before:function(o,i){var a,s,c=Ya(o,i.path);if(i.op==="add")a=pE(o,c);else if(i.op==="remove")a=hE(o,c);else if(i.op==="replace")a=rD(o,c);else if(i.op==="copy")a=function(l,f){return pE(l,f)}(o,c);else if(i.op==="move")a=function(l,f,d){if(f.length<d.length&&function(p,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:PZ;if(p.length<v.length)return!1;for(var g=0;g<v.length;g++)if(!m(p[g],v[g]))return!1;return!0}(d,f))return[{op:"replace",path:oe(f),value:l}];var h={op:"move",from:oe(f),path:oe(d)};return!yp(l,f)&&Li(l,f)?[h].concat(qZ(hE(l,f))):[h]}(o,c,lw(i.from));else{if(i.op!=="test")throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));a=[]}if(n&&n.before){var u=n.before(o,i,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(s=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),s!==void 0)return{document:s}}}),r}function rD(e,t){return[{op:"replace",path:oe(t),value:fe(e,t)}]}function hE(e,t){return[{op:"add",path:oe(t),value:fe(e,t)}]}function pE(e,t){return yp(e,t)||!Li(e,t)?[{op:"remove",path:oe(t)}]:rD(e,t)}function l2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lg={},vE={b:"\b",f:"\f",n:`
15
+ `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},HZ="a".charCodeAt();lg.parse=function(e,t,n){var r={},o=0,i=0,a=0,s=n&&n.bigint&&typeof BigInt<"u";return{data:c("",!0),pointers:r};function c(k,j){var S;u(),m(k,"value");var N=d();switch(N){case"t":f("rue"),S=!0;break;case"f":f("alse"),S=!1;break;case"n":f("ull"),S=null;break;case'"':S=l();break;case"[":S=function(C){u();var $=[],B=0;if(d()=="]")return $;for(h();;){var K=C+"/"+B;$.push(c(K)),u();var R=d();if(R=="]")break;R!=","&&w(),u(),B++}return $}(k);break;case"{":S=function(C){u();var $={};if(d()=="}")return $;for(h();;){var B=y();d()!='"'&&w();var K=l(),R=C+"/"+J1(K);g(R,"key",B),m(R,"keyEnd"),u(),d()!=":"&&w(),u(),$[K]=c(R),u();var q=d();if(q=="}")break;q!=","&&w(),u()}return $}(k);break;default:h(),"-0123456789".indexOf(N)>=0?S=function(){var C="",$=!0;e[a]=="-"&&(C+=d()),C+=e[a]=="0"?d():v(),e[a]=="."&&(C+=d()+v(),$=!1),e[a]!="e"&&e[a]!="E"||(C+=d(),e[a]!="+"&&e[a]!="-"||(C+=d()),C+=v(),$=!1);var B=+C;return s&&$&&(B>Number.MAX_SAFE_INTEGER||B<Number.MIN_SAFE_INTEGER)?BigInt(C):B}():b()}return m(k,"valueEnd"),u(),j&&a<e.length&&b(),S}function u(){t:for(;a<e.length;){switch(e[a]){case" ":i++;break;case" ":i+=4;break;case"\r":i=0;break;case`
16
+ `:i=0,o++;break;default:break t}a++}}function l(){for(var k,j="";(k=d())!='"';)k=="\\"?(k=d())in vE?j+=vE[k]:k=="u"?j+=p():w():j+=k;return j}function f(k){for(var j=0;j<k.length;j++)d()!==k[j]&&w()}function d(){x();var k=e[a];return a++,i++,k}function h(){a--,i--}function p(){for(var k=4,j=0;k--;){j<<=4;var S=d().toLowerCase();S>="a"&&S<="f"?j+=S.charCodeAt()-HZ+10:S>="0"&&S<="9"?j+=+S:w()}return String.fromCharCode(j)}function v(){for(var k="";e[a]>="0"&&e[a]<="9";)k+=d();if(k.length)return k;x(),b()}function m(k,j){g(k,j,y())}function g(k,j,S){r[k]=r[k]||{},r[k][j]=S}function y(){return{line:o,column:i,pos:a}}function b(){throw new SyntaxError("Unexpected token "+e[a]+" in JSON at position "+a)}function w(){h(),b()}function x(){if(a>=e.length)throw new SyntaxError("Unexpected end of JSON input")}},lg.stringify=function(e,t,n){if(sv(e)){var r,o,i=0,a=ce(n)=="object"?n.space:n;switch(ce(a)){case"number":var s=a>10?10:a<0?0:Math.floor(a);a=s&&y(s," "),r=s,o=s;break;case"string":a=a.slice(0,10),r=0,o=0;for(var c=0;c<a.length;c++){switch(a[c]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
17
+ `:o=0,i++;break;default:throw new Error("whitespace characters not allowed in JSON")}r++}break;default:a=void 0}var u="",l={},f=0,d=0,h=0,p=n&&n.es6&&typeof Map=="function";return function b(w,x,k){switch(g(k,"value"),ce(w)){case"number":case"bigint":case"boolean":v(""+w);break;case"string":v(cv(w));break;case"object":w===null?v("null"):typeof w.toJSON=="function"?v(cv(w.toJSON())):Array.isArray(w)?j():p?w.constructor.BYTES_PER_ELEMENT?j():w instanceof Map?N():w instanceof Set?N(!0):S():S()}function j(){if(w.length){v("[");for(var C=x+1,$=0;$<w.length;$++){$&&v(","),m(C);var B=sv(w[$])?w[$]:null;b(B,C,k+"/"+$)}m(x),v("]")}else v("[]")}function S(){var C=Object.keys(w);if(C.length){v("{");for(var $=x+1,B=0;B<C.length;B++){var K=C[B],R=w[K];if(sv(R)){B&&v(",");var q=k+"/"+J1(K);m($),g(q,"key"),v(cv(K)),g(q,"keyEnd"),v(":"),a&&v(" "),b(R,$,q)}}m(x),v("}")}else v("{}")}function N(C){if(w.size){v("{");for(var $=x+1,B=!0,K=w.entries(),R=K.next();!R.done;){var q=R.value,F=q[0],O=!!C||q[1];if(sv(O)){B||v(","),B=!1;var A=k+"/"+J1(F);m($),g(A,"key"),v(cv(F)),g(A,"keyEnd"),v(":"),a&&v(" "),b(O,$,A)}R=K.next()}m(x),v("}")}else v("{}")}g(k,"valueEnd")}(e,0,""),{json:u,pointers:l}}function v(b){d+=b.length,h+=b.length,u+=b}function m(b){if(a){for(u+=`
18
+ `+y(b,a),f++,d=0;b--;)i?(f+=i,d=o):d+=o,h+=r;h+=1}}function g(b,w){l[b]=l[b]||{},l[b][w]={line:f,column:d,pos:h}}function y(b,w){return Array(b+1).join(w)}};var VZ=["number","bigint","boolean","string","object"];function sv(e){return VZ.indexOf(ce(e))>=0}var UZ=/"|\\/g,WZ=/[\b]/g,KZ=/\f/g,JZ=/\n/g,GZ=/\r/g,QZ=/\t/g;function cv(e){return'"'+(e=e.replace(UZ,"\\$&").replace(KZ,"\\f").replace(WZ,"\\b").replace(JZ,"\\n").replace(GZ,"\\r").replace(QZ,"\\t"))+'"'}var YZ=/~/g,XZ=/\//g;function J1(e){return e.replace(YZ,"~0").replace(XZ,"~1")}var du=function(e){Tt(n,jf(Error));var t=Rt(n);function n(r,o){var i;return rt(this,n),(i=t.call(this,r+" at position "+o)).position=o,i}return ot(n)}(),uv=92,G1=47,ZZ=42,mE=123,Q1=125,gE=91,Y1=93,ttt=40,ett=41,ntt=32,fg=10,oD=9,iD=13,rtt=8,ott=12,dg=34,yE=43,bE=45,aD=39,sD=48,cD=57,lv=44,itt=46,att=58,stt=59,ctt=65,utt=97,ltt=69,ftt=101,dtt=70,htt=102,ptt=160,vtt=8192,mtt=8202,gtt=8239,ytt=8287,btt=12288,wtt=8220,xtt=8221,ktt=8216,jtt=8217,_tt=96,Stt=180;function fv(e){return e>=sD&&e<=cD||e>=ctt&&e<=dtt||e>=utt&&e<=htt}function dv(e){return e>=sD&&e<=cD}function $tt(e){return e>=32&&e<=1114111}var Ctt=/^[,:[\]{}()\n]$/;function wE(e){return Ett.test(e)||e&&ym(e.charCodeAt(0))}var Ett=/^[[{\w-]$/;function Ott(e){return e===fg||e===iD||e===oD||e===rtt||e===ott}function ih(e){return e===ntt||e===fg||e===oD||e===iD}function Mtt(e){return e===ptt||e>=vtt&&e<=mtt||e===gtt||e===ytt||e===btt}function ym(e){return uD(e)||fw(e)}function uD(e){return e===dg||e===wtt||e===xtt}function xE(e){return e===dg}function fw(e){return e===aD||e===ktt||e===jtt||e===_tt||e===Stt}function kE(e){return e===aD}function pd(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.lastIndexOf(t);return r!==-1?e.substring(0,r)+(n?"":e.substring(r+1)):e}function hu(e,t){var n=e.length;if(!ih(e.charCodeAt(n-1)))return e+t;for(;ih(e.charCodeAt(n-1));)n--;return e.substring(0,n)+t+e.substring(n)}function Att(e,t,n){return e.substring(0,t)+e.substring(t+n)}var Ptt={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Ttt={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
19
+ `,r:"\r",t:" "};function Xa(e){var t=0,n="";o()||function(){throw new du("Unexpected end of json string",e.length)}();var r=c(lv);if(r&&i(),wE(e[t])&&function(b){return/[,\n][ \t\r]*$/.test(b)}(n)?(r||(n=hu(n,",")),function(){for(var b=!0,w=!0;w;)b?b=!1:c(lv)||(n=hu(n,",")),w=o();w||(n=pd(n,",")),n=`[
20
+ `.concat(n,`
21
+ ]`)}()):r&&(n=pd(n,",")),t>=e.length)return n;function o(){i();var b=function(){if(e.charCodeAt(t)===mE){n+="{",t++,i();for(var w=!0;t<e.length&&e.charCodeAt(t)!==Q1;){if(w?w=!1:(c(lv)||(n=hu(n,",")),i()),!(l()||d())){e.charCodeAt(t)===Q1||e.charCodeAt(t)===mE||e.charCodeAt(t)===Y1||e.charCodeAt(t)===gE||e[t]===void 0?n=pd(n,","):m();break}i();var x=c(att);x||(wE(e[t])?n=hu(n,":"):g()),o()||(x?n+="null":g())}return e.charCodeAt(t)===Q1?(n+="}",t++):n=hu(n,"}"),!0}return!1}()||function(){if(e.charCodeAt(t)===gE){n+="[",t++,i();for(var w=!0;t<e.length&&e.charCodeAt(t)!==Y1;)if(w?w=!1:c(lv)||(n=hu(n,",")),!o()){n=pd(n,",");break}return e.charCodeAt(t)===Y1?(n+="]",t++):n=hu(n,"]"),!0}return!1}()||l()||function(){var w=t;if(e.charCodeAt(t)===bE&&(t++,p(w)))return!0;for(;dv(e.charCodeAt(t));)t++;if(e.charCodeAt(t)===itt){if(t++,p(w))return!0;for(;dv(e.charCodeAt(t));)t++}if(e.charCodeAt(t)===ftt||e.charCodeAt(t)===ltt){if(t++,e.charCodeAt(t)!==bE&&e.charCodeAt(t)!==yE||t++,p(w))return!0;for(;dv(e.charCodeAt(t));)t++}if(t>w){var x=e.slice(w,t),k=/^0\d/.test(x);return n+=k?'"'.concat(x,'"'):x,!0}return!1}()||f("true","true")||f("false","false")||f("null","null")||f("True","true")||f("False","false")||f("None","null")||d();return i(),b}function i(){var b=t,w=a();do(w=s())&&(w=a());while(w);return t>b}function a(){for(var b,w="";(b=ih(e.charCodeAt(t)))||Mtt(e.charCodeAt(t));)w+=b?e[t]:" ",t++;return w.length>0&&(n+=w,!0)}function s(){if(e.charCodeAt(t)===G1&&e.charCodeAt(t+1)===ZZ){for(;t<e.length&&!Rtt(e,t);)t++;return t+=2,!0}if(e.charCodeAt(t)===G1&&e.charCodeAt(t+1)===G1){for(;t<e.length&&e.charCodeAt(t)!==fg;)t++;return!0}return!1}function c(b){return e.charCodeAt(t)===b&&(n+=e[t],t++,!0)}function u(){return function(b){return e.charCodeAt(t)===b&&(t++,!0)}(uv)}function l(){var b=e.charCodeAt(t)===uv;if(b&&(t++,b=!0),ym(e.charCodeAt(t))){var w=xE(e.charCodeAt(t))?xE:kE(e.charCodeAt(t))?kE:fw(e.charCodeAt(t))?fw:uD;for(n+='"',t++;t<e.length&&!w(e.charCodeAt(t))&&e.charCodeAt(t)!==fg;){if(e.charCodeAt(t)===uv){var x=e[t+1];Ttt[x]!==void 0?(n+=e.slice(t,t+2),t+=2):x==="u"?fv(e.charCodeAt(t+2))&&fv(e.charCodeAt(t+3))&&fv(e.charCodeAt(t+4))&&fv(e.charCodeAt(t+5))?(n+=e.slice(t,t+6),t+=6):y(t):(n+=x,t+=2)}else{var k=e[t],j=e.charCodeAt(t);j===dg&&e.charCodeAt(t-1)!==uv?(n+="\\"+k,t++):Ott(j)?(n+=Ptt[k],t++):($tt(j)||v(k),n+=k,t++)}b&&u()}if(ym(e.charCodeAt(t)))e.charCodeAt(t),n+='"',t++;else{for(var S=0;t>0&&ih(e.charCodeAt(t-1));)t--,S++;t>0&&",:]}".includes(e[t-1])&&(t--,S++),n=n.substring(0,n.length-S)+'"'}return function(){for(i();e.charCodeAt(t)===yE;){t++,i();var N=(n=pd(n,'"',!0)).length;l(),n=Att(n,N,1)}}(),!0}return!1}function f(b,w){return e.slice(t,t+b.length)===b&&(n+=w,t+=b.length,!0)}function d(){for(var b,w=t;t<e.length&&(b=e[t],!(Ctt.test(b)||b&&ym(b.charCodeAt(0))));)t++;if(t>w){if(e.charCodeAt(t)===ttt)return t++,o(),e.charCodeAt(t)===ett&&(t++,e.charCodeAt(t)===stt&&t++),!0;for(;ih(e.charCodeAt(t-1))&&t>0;)t--;var x=e.slice(w,t);return n+=x==="undefined"?"null":JSON.stringify(x),e.charCodeAt(t)===dg&&t++,!0}}function h(b){if(!dv(e.charCodeAt(t))){var w=e.slice(b,t);throw new du("Invalid number '".concat(w,"', expecting a digit ").concat(e[t]?"but got '".concat(e[t],"'"):"but reached end of input"),t)}}function p(b){return t>=e.length?(n+=e.slice(b,t)+"0",!0):(h(b),!1)}function v(b){throw new du("Invalid character "+JSON.stringify(b),t)}function m(){throw new du("Object key expected",t)}function g(){throw new du("Colon expected",t)}function y(b){for(var w=b+2;/\w/.test(e[w]);)w++;var x=e.slice(b,w);throw new du('Invalid unicode character "'.concat(x,'"'),t)}(function(){throw new du("Unexpected character "+JSON.stringify(e[t]),t)})()}function Rtt(e,t){return e[t]==="*"&&e[t+1]==="/"}function jo(e){return parseInt(e,10)}function f2(e){return Itt.test(e)}var Itt=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function pr(e){return ce(e)==="object"&&e!==null&&e.constructor===Object}function xr(e){return ce(e)==="object"&&e!==null&&(e.constructor===Object||e.constructor===Array)}function dw(e){if(typeof e=="number")return e>9466848e5&&isFinite(e)&&Math.floor(e)===e&&!isNaN(new Date(e).valueOf());if(typeof e=="bigint")return dw(Number(e));try{var t=e&&e.valueOf();if(t!==e)return dw(t)}catch{return!1}return!1}function lD(e){var t=window.document.createElement("div");t.style.color=e;var n=t.style.color;return n!==""?n.replace(/\s+/g,"").toLowerCase():null}function d2(e,t){if(typeof e=="number"||typeof e=="string"||typeof e=="boolean"||e===void 0)return ce(e);if(typeof e=="bigint")return"number";if(e===null)return"null";if(Array.isArray(e))return"array";if(pr(e))return"object";var n=t.stringify(e);return n&&f2(n)?"number":n==="true"||n==="false"?"boolean":n==="null"?"null":"unknown"}var Ntt=/^https?:\/\/\S+$/;function O0(e){return typeof e=="string"&&Ntt.test(e)}function Kf(e,t){if(e==="")return"";var n=e.trim();return n==="null"?null:n==="true"||n!=="false"&&(f2(n)?t.parse(n):e)}function Dtt(e){return ztt.test(e)}var ztt=/^-?[0-9]+$/,fD=(typeof global>"u"?"undefined":ce(global))=="object"&&global&&global.Object===Object&&global,Ltt=(typeof self>"u"?"undefined":ce(self))=="object"&&self&&self.Object===Object&&self,uo=fD||Ltt||Function("return this")(),Ro=uo.Symbol,dD=Object.prototype,Btt=dD.hasOwnProperty,Ftt=dD.toString,vd=Ro?Ro.toStringTag:void 0,qtt=Object.prototype.toString,Htt="[object Null]",Vtt="[object Undefined]",jE=Ro?Ro.toStringTag:void 0;function Go(e){return e==null?e===void 0?Vtt:Htt:jE&&jE in Object(e)?function(t){var n=Btt.call(t,vd),r=t[vd];try{t[vd]=void 0;var o=!0}catch{}var i=Ftt.call(t);return o&&(n?t[vd]=r:delete t[vd]),i}(e):function(t){return qtt.call(t)}(e)}function qr(e){return e!=null&&ce(e)=="object"}var Utt="[object Symbol]";function bi(e){return ce(e)=="symbol"||qr(e)&&Go(e)==Utt}var Wtt=NaN;function _E(e){return typeof e=="number"?e:bi(e)?Wtt:+e}function $r(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Ze=Array.isArray,Ktt=1/0,SE=Ro?Ro.prototype:void 0,$E=SE?SE.toString:void 0;function wi(e){if(typeof e=="string")return e;if(Ze(e))return $r(e,wi)+"";if(bi(e))return $E?$E.call(e):"";var t=e+"";return t=="0"&&1/e==-Ktt?"-0":t}function M0(e,t){return function(n,r){var o;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(o=n),r!==void 0){if(o===void 0)return r;typeof n=="string"||typeof r=="string"?(n=wi(n),r=wi(r)):(n=_E(n),r=_E(r)),o=e(n,r)}return o}}var Jtt=M0(function(e,t){return e+t},0),Gtt=/\s/;function hD(e){for(var t=e.length;t--&&Gtt.test(e.charAt(t)););return t}var Qtt=/^\s+/;function pD(e){return e&&e.slice(0,hD(e)+1).replace(Qtt,"")}function Ar(e){var t=ce(e);return e!=null&&(t=="object"||t=="function")}var CE=NaN,Ytt=/^[-+]0x[0-9a-f]+$/i,Xtt=/^0b[01]+$/i,Ztt=/^0o[0-7]+$/i,tet=parseInt;function Bi(e){if(typeof e=="number")return e;if(bi(e))return CE;if(Ar(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ar(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pD(e);var n=Xtt.test(e);return n||Ztt.test(e)?tet(e.slice(2),n?2:8):Ytt.test(e)?CE:+e}var EE=1/0,eet=17976931348623157e292;function zs(e){return e?(e=Bi(e))===EE||e===-EE?(e<0?-1:1)*eet:e==e?e:0:e===0?e:0}function sn(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function net(e,t){if(typeof t!="function")throw new TypeError("Expected a function");return e=sn(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wo(e){return e}var ret="[object AsyncFunction]",oet="[object Function]",iet="[object GeneratorFunction]",aet="[object Proxy]";function Xs(e){if(!Ar(e))return!1;var t=Go(e);return t==oet||t==iet||t==ret||t==aet}var OE,bm=uo["__core-js_shared__"],ME=(OE=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||""))?"Symbol(src)_1."+OE:"",set=Function.prototype.toString;function ul(e){if(e!=null){try{return set.call(e)}catch{}try{return e+""}catch{}}return""}var cet=/^\[object .+?Constructor\]$/,uet=Function.prototype,fet=Object.prototype,det=uet.toString,het=fet.hasOwnProperty,pet=RegExp("^"+det.call(het).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vD(e){return!(!Ar(e)||function(t){return!!ME&&ME in t}(e))&&(Xs(e)?pet:cet).test(ul(e))}function ll(e,t){var n=function(r,o){return r==null?void 0:r[o]}(e,t);return vD(n)?n:void 0}var Rh=ll(uo,"WeakMap"),hg=Rh&&new Rh,vet=hg?function(e,t){return hg.set(e,t),e}:Wo,mD=vet,AE=Object.create,met=function(){function e(){}return function(t){if(!Ar(t))return{};if(AE)return AE(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Jf=met;function ah(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Jf(e.prototype),r=e.apply(n,t);return Ar(r)?r:n}}var get=1;function xi(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var yet=Math.max;function gD(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,c=t.length,u=yet(i-a,0),l=Array(c+u),f=!r;++s<c;)l[s]=t[s];for(;++o<a;)(f||o<i)&&(l[n[o]]=e[o]);for(;u--;)l[s++]=e[o++];return l}var bet=Math.max;function yD(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,c=-1,u=t.length,l=bet(i-s,0),f=Array(l+u),d=!r;++o<l;)f[o]=e[o];for(var h=o;++c<u;)f[h+c]=t[c];for(;++a<s;)(d||o<i)&&(f[h+n[a]]=e[o++]);return f}function A0(){}var wet=4294967295;function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wet,this.__views__=[]}function Yn(){}$n.prototype=Jf(A0.prototype),$n.prototype.constructor=$n;var xet=hg?function(e){return hg.get(e)}:Yn,h2=xet,zl={},ket=Object.prototype.hasOwnProperty;function wm(e){for(var t=e.name+"",n=zl[t],r=ket.call(zl,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Fi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function ni(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bD(e){if(e instanceof $n)return e.clone();var t=new Fi(e.__wrapped__,e.__chain__);return t.__actions__=ni(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Fi.prototype=Jf(A0.prototype),Fi.prototype.constructor=Fi;var jet=Object.prototype.hasOwnProperty;function Z(e){if(qr(e)&&!Ze(e)&&!(e instanceof $n)){if(e instanceof Fi)return e;if(jet.call(e,"__wrapped__"))return bD(e)}return new Fi(e)}function hw(e){var t=wm(e),n=Z[t];if(typeof n!="function"||!(t in $n.prototype))return!1;if(e===n)return!0;var r=h2(n);return!!r&&e===r[0]}Z.prototype=A0.prototype,Z.prototype.constructor=Z;var _et=Date.now;function wD(e){var t=0,n=0;return function(){var r=_et(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xD=wD(mD),$et=/\{\n\/\* \[wrapped with (.+)\] \*/,Cet=/,? & /,Eet=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function p2(e){return function(){return e}}var Oet=function(){try{var e=ll(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pg=Oet,Met=pg?function(e,t){return pg(e,"toString",{configurable:!0,enumerable:!1,value:p2(t),writable:!0})}:Wo,v2=wD(Met);function Oi(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function P0(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function kD(e){return e!=e}function Gf(e,t,n){return t==t?function(r,o,i){for(var a=i-1,s=r.length;++a<s;)if(r[a]===o)return a;return-1}(e,t,n):P0(e,kD,n)}function T0(e,t){return!!(e!=null&&e.length)&&Gf(e,t,0)>-1}var Aet=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function jD(e,t,n){var r=t+"";return v2(e,function(o,i){var a=i.length;if(!a)return o;var s=a-1;return i[s]=(a>1?"& ":"")+i[s],i=i.join(a>2?", ":" "),o.replace(Eet,`{
22
+ /* [wrapped with `+i+`] */
23
+ `)}(r,function(o,i){return Oi(Aet,function(a){var s="_."+a[0];i&a[1]&&!T0(o,s)&&o.push(s)}),o.sort()}(function(o){var i=o.match($et);return i?i[1].split(Cet):[]}(r),n)))}var Pet=1,Tet=2,Ret=4,Iet=8,PE=32,TE=64;function _D(e,t,n,r,o,i,a,s,c,u){var l=t&Iet;t|=l?PE:TE,(t&=~(l?TE:PE))&Ret||(t&=~(Pet|Tet));var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,s,c,u],d=n.apply(void 0,f);return hw(e)&&xD(d,f),d.placeholder=r,jD(d,e,t)}function Qf(e){return e.placeholder}var Net=9007199254740991,Det=/^(?:0|[1-9]\d*)$/;function Zs(e,t){var n=ce(e);return!!(t=t??Net)&&(n=="number"||n!="symbol"&&Det.test(e))&&e>-1&&e%1==0&&e<t}var zet=Math.min,RE="__lodash_placeholder__";function Mc(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==RE||(e[n]=RE,i[o++]=n)}return i}var Let=1,Bet=2,Fet=8,qet=16,Het=128,Vet=512;function vg(e,t,n,r,o,i,a,s,c,u){var l=t&Het,f=t&Let,d=t&Bet,h=t&(Fet|qet),p=t&Vet,v=d?void 0:ah(e);return function m(){for(var g=arguments.length,y=Array(g),b=g;b--;)y[b]=arguments[b];if(h)var w=Qf(m),x=function(N,C){for(var $=N.length,B=0;$--;)N[$]===C&&++B;return B}(y,w);if(r&&(y=gD(y,r,o,h)),i&&(y=yD(y,i,a,h)),g-=x,h&&g<u){var k=Mc(y,w);return _D(e,t,vg,m.placeholder,n,y,k,s,c,u-g)}var j=f?n:this,S=d?j[e]:e;return g=y.length,s?y=function(N,C){for(var $=N.length,B=zet(C.length,$),K=ni(N);B--;){var R=C[B];N[B]=Zs(R,$)?K[R]:void 0}return N}(y,s):p&&g>1&&y.reverse(),l&&c<g&&(y.length=c),this&&this!==uo&&this instanceof m&&(S=v||ah(S)),S.apply(j,y)}}var Uet=1,IE="__lodash_placeholder__",X1=1,Wet=2,Ket=4,NE=8,md=128,DE=256,Jet=Math.min,Get="Expected a function",zE=1,Qet=2,Z1=8,ty=16,ey=32,LE=64,BE=Math.max;function tc(e,t,n,r,o,i,a,s){var c=t&Qet;if(!c&&typeof e!="function")throw new TypeError(Get);var u=r?r.length:0;if(u||(t&=~(ey|LE),r=o=void 0),a=a===void 0?a:BE(sn(a),0),s=s===void 0?s:sn(s),u-=o?o.length:0,t&LE){var l=r,f=o;r=o=void 0}var d=c?void 0:h2(e),h=[e,t,n,r,o,l,f,i,a,s];if(d&&function(v,m){var g=v[1],y=m[1],b=g|y,w=b<(X1|Wet|md),x=y==md&&g==NE||y==md&&g==DE&&v[7].length<=m[8]||y==(md|DE)&&m[7].length<=m[8]&&g==NE;if(!w&&!x)return v;y&X1&&(v[2]=m[2],b|=g&X1?0:Ket);var k=m[3];if(k){var j=v[3];v[3]=j?gD(j,k,m[4]):k,v[4]=j?Mc(v[3],IE):m[4]}(k=m[5])&&(j=v[5],v[5]=j?yD(j,k,m[6]):k,v[6]=j?Mc(v[5],IE):m[6]),(k=m[7])&&(v[7]=k),y&md&&(v[8]=v[8]==null?m[8]:Jet(v[8],m[8])),v[9]==null&&(v[9]=m[9]),v[0]=m[0],v[1]=b}(h,d),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],!(s=h[9]=h[9]===void 0?c?0:e.length:BE(h[9]-u,0))&&t&(Z1|ty)&&(t&=~(Z1|ty)),t&&t!=zE)p=t==Z1||t==ty?function(v,m,g){var y=ah(v);return function b(){for(var w=arguments.length,x=Array(w),k=w,j=Qf(b);k--;)x[k]=arguments[k];var S=w<3&&x[0]!==j&&x[w-1]!==j?[]:Mc(x,j);return(w-=S.length)<g?_D(v,m,vg,b.placeholder,void 0,x,S,void 0,void 0,g-w):xi(this&&this!==uo&&this instanceof b?y:v,this,x)}}(e,t,s):t!=ey&&t!=(zE|ey)||o.length?vg.apply(void 0,h):function(v,m,g,y){var b=m&Uet,w=ah(v);return function x(){for(var k=-1,j=arguments.length,S=-1,N=y.length,C=Array(N+j),$=this&&this!==uo&&this instanceof x?w:v;++S<N;)C[S]=y[S];for(;j--;)C[S++]=arguments[++k];return xi($,b?g:this,C)}}(e,t,n,r);else var p=function(v,m,g){var y=m&get,b=ah(v);return function w(){return(this&&this!==uo&&this instanceof w?b:v).apply(y?g:this,arguments)}}(e,t,n);return jD((d?mD:xD)(p,h),e,t)}var Yet=128;function SD(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,tc(e,Yet,void 0,void 0,void 0,void 0,t)}function ec(e,t,n){t=="__proto__"&&pg?pg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ma(e,t){return e===t||e!=e&&t!=t}var Xet=Object.prototype.hasOwnProperty;function bp(e,t,n){var r=e[t];Xet.call(e,t)&&Ma(r,n)&&(n!==void 0||t in e)||ec(e,t,n)}function Za(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?ec(n,s,c):bp(n,s,c)}return n}var FE=Math.max;function $D(e,t,n){return t=FE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=FE(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),xi(e,this,s)}}function vn(e,t){return v2($D(e,t,Wo),e+"")}var Zet=9007199254740991;function R0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zet}function si(e){return e!=null&&R0(e.length)&&!Xs(e)}function Ko(e,t,n){if(!Ar(n))return!1;var r=ce(t);return!!(r=="number"?si(n)&&Zs(t,n.length):r=="string"&&t in n)&&Ma(n[t],e)}function Yf(e){return vn(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Ko(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var tnt=Object.prototype;function wp(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||tnt)}function m2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function qE(e){return qr(e)&&Go(e)=="[object Arguments]"}var CD=Object.prototype,ent=CD.hasOwnProperty,nnt=CD.propertyIsEnumerable,tl=qE(function(){return arguments}())?qE:function(e){return qr(e)&&ent.call(e,"callee")&&!nnt.call(e,"callee")};function g2(){return!1}var ED=(typeof exports>"u"?"undefined":ce(exports))=="object"&&exports&&!exports.nodeType&&exports,HE=ED&&(typeof module>"u"?"undefined":ce(module))=="object"&&module&&!module.nodeType&&module,VE=HE&&HE.exports===ED?uo.Buffer:void 0,Hc=(VE?VE.isBuffer:void 0)||g2,mr={};function ki(e){return function(t){return e(t)}}mr["[object Float32Array]"]=mr["[object Float64Array]"]=mr["[object Int8Array]"]=mr["[object Int16Array]"]=mr["[object Int32Array]"]=mr["[object Uint8Array]"]=mr["[object Uint8ClampedArray]"]=mr["[object Uint16Array]"]=mr["[object Uint32Array]"]=!0,mr["[object Arguments]"]=mr["[object Array]"]=mr["[object ArrayBuffer]"]=mr["[object Boolean]"]=mr["[object DataView]"]=mr["[object Date]"]=mr["[object Error]"]=mr["[object Function]"]=mr["[object Map]"]=mr["[object Number]"]=mr["[object Object]"]=mr["[object RegExp]"]=mr["[object Set]"]=mr["[object String]"]=mr["[object WeakMap]"]=!1;var OD=(typeof exports>"u"?"undefined":ce(exports))=="object"&&exports&&!exports.nodeType&&exports,sh=OD&&(typeof module>"u"?"undefined":ce(module))=="object"&&module&&!module.nodeType&&module,ny=sh&&sh.exports===OD&&fD.process,rnt=function(){try{var e=sh&&sh.require&&sh.require("util").types;return e||ny&&ny.binding&&ny.binding("util")}catch{}}(),Ki=rnt,UE=Ki&&Ki.isTypedArray,Xf=UE?ki(UE):function(e){return qr(e)&&R0(e.length)&&!!mr[Go(e)]},ont=Object.prototype.hasOwnProperty;function MD(e,t){var n=Ze(e),r=!n&&tl(e),o=!n&&!r&&Hc(e),i=!n&&!r&&!o&&Xf(e),a=n||r||o||i,s=a?m2(e.length,String):[],c=s.length;for(var u in e)!t&&!ont.call(e,u)||a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Zs(u,c))||s.push(u);return s}function AD(e,t){return function(n){return e(t(n))}}var int=AD(Object.keys,Object),ant=Object.prototype.hasOwnProperty;function y2(e){if(!wp(e))return int(e);var t=[];for(var n in Object(e))ant.call(e,n)&&n!="constructor"&&t.push(n);return t}function ro(e){return si(e)?MD(e):y2(e)}var snt=Object.prototype.hasOwnProperty,cnt=Yf(function(e,t){if(wp(t)||si(t))Za(t,ro(t),e);else for(var n in t)snt.call(t,n)&&bp(e,n,t[n])}),unt=cnt,lnt=Object.prototype.hasOwnProperty;function fnt(e){if(!Ar(e))return function(o){var i=[];if(o!=null)for(var a in Object(o))i.push(a);return i}(e);var t=wp(e),n=[];for(var r in e)(r!="constructor"||!t&&lnt.call(e,r))&&n.push(r);return n}function ii(e){return si(e)?MD(e,!0):fnt(e)}var dnt=Yf(function(e,t){Za(t,ii(t),e)}),WE=dnt,hnt=Yf(function(e,t,n,r){Za(t,ii(t),e,r)}),mg=hnt,pnt=Yf(function(e,t,n,r){Za(t,ro(t),e,r)}),vnt=pnt,mnt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gnt=/^\w*$/;function b2(e,t){if(Ze(e))return!1;var n=ce(e);return!(n!="number"&&n!="symbol"&&n!="boolean"&&e!=null&&!bi(e))||gnt.test(e)||!mnt.test(e)||t!=null&&e in Object(t)}var gd=ll(Object,"create"),ynt=Object.prototype.hasOwnProperty,bnt=Object.prototype.hasOwnProperty;function Su(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function hv(e,t){for(var n=e.length;n--;)if(Ma(e[n][0],t))return n;return-1}Su.prototype.clear=function(){this.__data__=gd?gd(null):{},this.size=0},Su.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Su.prototype.get=function(e){var t=this.__data__;if(gd){var n=t[e];return n==="__lodash_hash_undefined__"?void 0:n}return ynt.call(t,e)?t[e]:void 0},Su.prototype.has=function(e){var t=this.__data__;return gd?t[e]!==void 0:bnt.call(t,e)},Su.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gd&&t===void 0?"__lodash_hash_undefined__":t,this};var wnt=Array.prototype.splice;function Ms(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ms.prototype.clear=function(){this.__data__=[],this.size=0},Ms.prototype.delete=function(e){var t=this.__data__,n=hv(t,e);return!(n<0)&&(n==t.length-1?t.pop():wnt.call(t,n,1),--this.size,!0)},Ms.prototype.get=function(e){var t=this.__data__,n=hv(t,e);return n<0?void 0:t[n][1]},Ms.prototype.has=function(e){return hv(this.__data__,e)>-1},Ms.prototype.set=function(e,t){var n=this.__data__,r=hv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Ih=ll(uo,"Map");function pv(e,t){var n=e.__data__;return function(r){var o=ce(r);return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}(t)?n[typeof t=="string"?"string":"hash"]:n.map}function As(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}As.prototype.clear=function(){this.size=0,this.__data__={hash:new Su,map:new(Ih||Ms),string:new Su}},As.prototype.delete=function(e){var t=pv(this,e).delete(e);return this.size-=t?1:0,t},As.prototype.get=function(e){return pv(this,e).get(e)},As.prototype.has=function(e){return pv(this,e).has(e)},As.prototype.set=function(e,t){var n=pv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var xnt="Expected a function";function xp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xnt);var n=function r(){var o=arguments,i=t?t.apply(this,o):o[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,o);return r.cache=a.set(i,s)||a,s};return n.cache=new(xp.Cache||As),n}xp.Cache=As;var knt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jnt=/\\(\\)?/g,_nt=function(e){var t=xp(e,function(r){return n.size===500&&n.clear(),r}),n=t.cache;return t}(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(knt,function(n,r,o,i){t.push(o?i.replace(jnt,"$1"):r||n)}),t}),PD=_nt;function Wn(e){return e==null?"":wi(e)}function eu(e,t){return Ze(e)?e:b2(e,t)?[e]:PD(Wn(e))}var Snt=1/0;function ms(e){if(typeof e=="string"||bi(e))return e;var t=e+"";return t=="0"&&1/e==-Snt?"-0":t}function fl(e,t){for(var n=0,r=(t=eu(t,e)).length;e!=null&&n<r;)e=e[ms(t[n++])];return n&&n==r?e:void 0}function w2(e,t,n){var r=e==null?void 0:fl(e,t);return r===void 0?n:r}function x2(e,t){for(var n=-1,r=t.length,o=Array(r),i=e==null;++n<r;)o[n]=i?void 0:w2(e,t[n]);return o}function nu(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var KE=Ro?Ro.isConcatSpreadable:void 0;function $nt(e){return Ze(e)||tl(e)||!!(KE&&e&&e[KE])}function So(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=$nt),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?So(s,t-1,n,r,o):nu(o,s):r||(o[o.length]=s)}return o}function TD(e){return e!=null&&e.length?So(e,1):[]}function nc(e){return v2($D(e,void 0,TD),e+"")}var Cnt=nc(x2),I0=AD(Object.getPrototypeOf,Object),Ent="[object Object]",Ont=Function.prototype,Mnt=Object.prototype,RD=Ont.toString,Ant=Mnt.hasOwnProperty,Pnt=RD.call(Object);function kp(e){if(!qr(e)||Go(e)!=Ent)return!1;var t=I0(e);if(t===null)return!0;var n=Ant.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&RD.call(n)==Pnt}var Tnt="[object DOMException]",Rnt="[object Error]";function k2(e){if(!qr(e))return!1;var t=Go(e);return t==Rnt||t==Tnt||typeof e.message=="string"&&typeof e.name=="string"&&!kp(e)}var Int=vn(function(e,t){try{return xi(e,void 0,t)}catch(n){return k2(n)?n:new Error(n)}}),ID=Int,Nnt="Expected a function";function ND(e,t){var n;if(typeof t!="function")throw new TypeError(Nnt);return e=sn(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var j2=vn(function(e,t,n){var r=1;if(n.length){var o=Mc(n,Qf(j2));r|=32}return tc(e,r,t,n,o)});j2.placeholder={};var DD=j2,Dnt=nc(function(e,t){return Oi(t,function(n){n=ms(n),ec(e,n,DD(e[n],e))}),e}),znt=Dnt,_2=vn(function(e,t,n){var r=3;if(n.length){var o=Mc(n,Qf(_2));r|=32}return tc(t,r,e,n,o)});_2.placeholder={};var Lnt=_2;function Ji(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function ru(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ji(e,t,n)}var Bnt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Zf(e){return Bnt.test(e)}var zD="\\ud800-\\udfff",Fnt="["+zD+"]",pw="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vw="\\ud83c[\\udffb-\\udfff]",LD="[^"+zD+"]",BD="(?:\\ud83c[\\udde6-\\uddff]){2}",FD="[\\ud800-\\udbff][\\udc00-\\udfff]",JE="(?:"+pw+"|"+vw+")?",GE="[\\ufe0e\\ufe0f]?",qnt=GE+JE+("(?:\\u200d(?:"+[LD,BD,FD].join("|")+")"+GE+JE+")*"),Hnt="(?:"+[LD+pw+"?",pw,BD,FD,Fnt].join("|")+")",Vnt=RegExp(vw+"(?="+vw+")|"+Hnt+qnt,"g");function Ea(e){return Zf(e)?function(t){return t.match(Vnt)||[]}(e):function(t){return t.split("")}(e)}function qD(e){return function(t){var n=Zf(t=Wn(t))?Ea(t):void 0,r=n?n[0]:t.charAt(0),o=n?ru(n,1).join(""):t.slice(1);return r[e]()+o}}var S2=qD("toUpperCase");function HD(e){return S2(Wn(e).toLowerCase())}function $2(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function C2(e){return function(t){return e==null?void 0:e[t]}}var Unt=C2({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Wnt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Knt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function VD(e){return(e=Wn(e))&&e.replace(Wnt,Unt).replace(Knt,"")}var Jnt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gnt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UD="\\ud800-\\udfff",WD="\\u2700-\\u27bf",KD="a-z\\xdf-\\xf6\\xf8-\\xff",JD="A-Z\\xc0-\\xd6\\xd8-\\xde",GD="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",QE="["+GD+"]",QD="\\d+",Qnt="["+WD+"]",YD="["+KD+"]",XD="[^"+UD+GD+QD+WD+KD+JD+"]",ZD="(?:\\ud83c[\\udde6-\\uddff]){2}",tz="[\\ud800-\\udbff][\\udc00-\\udfff]",Cl="["+JD+"]",YE="(?:"+YD+"|"+XD+")",Ynt="(?:"+Cl+"|"+XD+")",XE="(?:['’](?:d|ll|m|re|s|t|ve))?",ZE="(?:['’](?:D|LL|M|RE|S|T|VE))?",tO="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",eO="[\\ufe0e\\ufe0f]?",Xnt=eO+tO+("(?:\\u200d(?:"+["[^"+UD+"]",ZD,tz].join("|")+")"+eO+tO+")*"),Znt="(?:"+[Qnt,ZD,tz].join("|")+")"+Xnt,trt=RegExp([Cl+"?"+YD+"+"+XE+"(?="+[QE,Cl,"$"].join("|")+")",Ynt+"+"+ZE+"(?="+[QE,Cl+YE,"$"].join("|")+")",Cl+"?"+YE+"+"+XE,Cl+"+"+ZE,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",QD,Znt].join("|"),"g");function ez(e,t,n){return e=Wn(e),(t=n?void 0:t)===void 0?function(r){return Gnt.test(r)}(e)?function(r){return r.match(trt)||[]}(e):function(r){return r.match(Jnt)||[]}(e):e.match(t)||[]}var ert=RegExp("['’]","g");function td(e){return function(t){return $2(ez(VD(t).replace(ert,"")),e,"")}}var nrt=td(function(e,t,n){return t=t.toLowerCase(),e+(n?HD(t):t)}),rrt=nrt;function ort(){if(!arguments.length)return[];var e=arguments[0];return Ze(e)?e:[e]}var irt=uo.isFinite,art=Math.min;function E2(e){var t=Math[e];return function(n,r){if(n=Bi(n),(r=r==null?0:art(sn(r),292))&&irt(n)){var o=(Wn(n)+"e").split("e");return+((o=(Wn(t(o[0]+"e"+(+o[1]+r)))+"e").split("e"))[0]+"e"+(+o[1]-r))}return t(n)}}var srt=E2("ceil");function nz(e){var t=Z(e);return t.__chain__=!0,t}var crt=Math.ceil,urt=Math.max;function lrt(e,t,n){t=(n?Ko(e,t,n):t===void 0)?1:urt(sn(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(crt(r/t));o<r;)a[i++]=Ji(e,o,o+=t);return a}function dl(e,t,n){return e==e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function frt(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=(n=Bi(n))==n?n:0),t!==void 0&&(t=(t=Bi(t))==t?t:0),dl(Bi(e),t,n)}function pa(e){var t=this.__data__=new Ms(e);this.size=t.size}function rz(e,t){return e&&Za(t,ro(t),e)}pa.prototype.clear=function(){this.__data__=new Ms,this.size=0},pa.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pa.prototype.get=function(e){return this.__data__.get(e)},pa.prototype.has=function(e){return this.__data__.has(e)},pa.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ms){var r=n.__data__;if(!Ih||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new As(r)}return n.set(e,t),this.size=n.size,this};var oz=(typeof exports>"u"?"undefined":ce(exports))=="object"&&exports&&!exports.nodeType&&exports,nO=oz&&(typeof module>"u"?"undefined":ce(module))=="object"&&module&&!module.nodeType&&module,rO=nO&&nO.exports===oz?uo.Buffer:void 0,oO=rO?rO.allocUnsafe:void 0;function iz(e,t){if(t)return e.slice();var n=e.length,r=oO?oO(n):new e.constructor(n);return e.copy(r),r}function ou(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function O2(){return[]}var drt=Object.prototype.propertyIsEnumerable,iO=Object.getOwnPropertySymbols,hrt=iO?function(e){return e==null?[]:(e=Object(e),ou(iO(e),function(t){return drt.call(e,t)}))}:O2,M2=hrt,prt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)nu(t,M2(e)),e=I0(e);return t}:O2,az=prt;function sz(e,t,n){var r=t(e);return Ze(e)?r:nu(r,n(e))}function mw(e){return sz(e,ro,M2)}function A2(e){return sz(e,ii,az)}var gw=ll(uo,"DataView"),yw=ll(uo,"Promise"),Zl=ll(uo,"Set"),aO="[object Map]",sO="[object Promise]",cO="[object Set]",uO="[object WeakMap]",lO="[object DataView]",vrt=ul(gw),mrt=ul(Ih),grt=ul(yw),yrt=ul(Zl),brt=ul(Rh),xu=Go;(gw&&xu(new gw(new ArrayBuffer(1)))!=lO||Ih&&xu(new Ih)!=aO||yw&&xu(yw.resolve())!=sO||Zl&&xu(new Zl)!=cO||Rh&&xu(new Rh)!=uO)&&(xu=function(e){var t=Go(e),n=t=="[object Object]"?e.constructor:void 0,r=n?ul(n):"";if(r)switch(r){case vrt:return lO;case mrt:return aO;case grt:return sO;case yrt:return cO;case brt:return uO}return t});var fs=xu,wrt=Object.prototype.hasOwnProperty,gg=uo.Uint8Array;function bw(e){var t=new e.constructor(e.byteLength);return new gg(t).set(new gg(e)),t}var xrt=/\w*$/,fO=Ro?Ro.prototype:void 0,dO=fO?fO.valueOf:void 0;function cz(e,t){var n=t?bw(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var krt="[object Boolean]",jrt="[object Date]",_rt="[object Map]",Srt="[object Number]",$rt="[object RegExp]",Crt="[object Set]",Ert="[object String]",Ort="[object Symbol]",Mrt="[object ArrayBuffer]",Art="[object DataView]",Prt="[object Float32Array]",Trt="[object Float64Array]",Rrt="[object Int8Array]",Irt="[object Int16Array]",Nrt="[object Int32Array]",Drt="[object Uint8Array]",zrt="[object Uint8ClampedArray]",Lrt="[object Uint16Array]",Brt="[object Uint32Array]";function Frt(e,t,n){var r,o=e.constructor;switch(t){case Mrt:return bw(e);case krt:case jrt:return new o(+e);case Art:return function(i,a){var s=a?bw(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}(e,n);case Prt:case Trt:case Rrt:case Irt:case Nrt:case Drt:case zrt:case Lrt:case Brt:return cz(e,n);case _rt:return new o;case Srt:case Ert:return new o(e);case $rt:return function(i){var a=new i.constructor(i.source,xrt.exec(i));return a.lastIndex=i.lastIndex,a}(e);case Crt:return new o;case Ort:return r=e,dO?Object(dO.call(r)):{}}}function uz(e){return typeof e.constructor!="function"||wp(e)?{}:Jf(I0(e))}var hO=Ki&&Ki.isMap,lz=hO?ki(hO):function(e){return qr(e)&&fs(e)=="[object Map]"},pO=Ki&&Ki.isSet,fz=pO?ki(pO):function(e){return qr(e)&&fs(e)=="[object Set]"},qrt=1,Hrt=2,Vrt=4,dz="[object Arguments]",hz="[object Function]",Urt="[object GeneratorFunction]",pz="[object Object]",cr={};function qi(e,t,n,r,o,i){var a,s=t&qrt,c=t&Hrt,u=t&Vrt;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Ar(e))return e;var l=Ze(e);if(l){if(a=function(v){var m=v.length,g=new v.constructor(m);return m&&typeof v[0]=="string"&&wrt.call(v,"index")&&(g.index=v.index,g.input=v.input),g}(e),!s)return ni(e,a)}else{var f=fs(e),d=f==hz||f==Urt;if(Hc(e))return iz(e,s);if(f==pz||f==dz||d&&!o){if(a=c||d?{}:uz(e),!s)return c?function(v,m){return Za(v,az(v),m)}(e,function(v,m){return v&&Za(m,ii(m),v)}(a,e)):function(v,m){return Za(v,M2(v),m)}(e,rz(a,e))}else{if(!cr[f])return o?e:{};a=Frt(e,f,s)}}i||(i=new pa);var h=i.get(e);if(h)return h;i.set(e,a),fz(e)?e.forEach(function(v){a.add(qi(v,t,n,v,e,i))}):lz(e)&&e.forEach(function(v,m){a.set(m,qi(v,t,n,m,e,i))});var p=l?void 0:(u?c?A2:mw:c?ii:ro)(e);return Oi(p||e,function(v,m){p&&(v=e[m=v]),bp(a,m,qi(v,t,n,m,e,i))}),a}cr[dz]=cr["[object Array]"]=cr["[object ArrayBuffer]"]=cr["[object DataView]"]=cr["[object Boolean]"]=cr["[object Date]"]=cr["[object Float32Array]"]=cr["[object Float64Array]"]=cr["[object Int8Array]"]=cr["[object Int16Array]"]=cr["[object Int32Array]"]=cr["[object Map]"]=cr["[object Number]"]=cr[pz]=cr["[object RegExp]"]=cr["[object Set]"]=cr["[object String]"]=cr["[object Symbol]"]=cr["[object Uint8Array]"]=cr["[object Uint8ClampedArray]"]=cr["[object Uint16Array]"]=cr["[object Uint32Array]"]=!0,cr["[object Error]"]=cr[hz]=cr["[object WeakMap]"]=!1;function Wrt(e){return qi(e,4)}function Krt(e){return qi(e,5)}var Jrt=1,Grt=4;function vz(e,t){return qi(e,Jrt|Grt,t=typeof t=="function"?t:void 0)}function Qrt(e,t){return qi(e,4,t=typeof t=="function"?t:void 0)}function Yrt(){return new Fi(this.value(),this.__chain__)}function Xrt(e){for(var t=-1,n=e==null?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function Zrt(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return nu(Ze(n)?ni(n):[n],So(t,1))}function Bu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new As;++t<n;)this.add(e[t])}function P2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Nh(e,t){return e.has(t)}Bu.prototype.add=Bu.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Bu.prototype.has=function(e){return this.__data__.has(e)};var tot=1,eot=2;function vO(e,t,n,r,o,i){var a=n&tot,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&eot?new Bu:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!P2(t,function(g,y){if(!Nh(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(p!==v&&!o(p,v,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function T2(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function N0(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var not=1,rot=2,oot="[object Boolean]",iot="[object Date]",aot="[object Error]",sot="[object Map]",cot="[object Number]",uot="[object RegExp]",lot="[object Set]",fot="[object String]",dot="[object Symbol]",hot="[object ArrayBuffer]",pot="[object DataView]",mO=Ro?Ro.prototype:void 0,ry=mO?mO.valueOf:void 0,vot=1,mot=Object.prototype.hasOwnProperty,got=1,gO="[object Arguments]",yO="[object Array]",vv="[object Object]",bO=Object.prototype.hasOwnProperty;function yot(e,t,n,r,o,i){var a=Ze(e),s=Ze(t),c=a?yO:fs(e),u=s?yO:fs(t),l=(c=c==gO?vv:c)==vv,f=(u=u==gO?vv:u)==vv,d=c==u;if(d&&Hc(e)){if(!Hc(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new pa),a||Xf(e)?vO(e,t,n,r,o,i):function(g,y,b,w,x,k,j){switch(b){case pot:if(g.byteLength!=y.byteLength||g.byteOffset!=y.byteOffset)return!1;g=g.buffer,y=y.buffer;case hot:return!(g.byteLength!=y.byteLength||!k(new gg(g),new gg(y)));case oot:case iot:case cot:return Ma(+g,+y);case aot:return g.name==y.name&&g.message==y.message;case uot:case fot:return g==y+"";case sot:var S=T2;case lot:var N=w&not;if(S||(S=N0),g.size!=y.size&&!N)return!1;var C=j.get(g);if(C)return C==y;w|=rot,j.set(g,y);var $=vO(S(g),S(y),w,x,k,j);return j.delete(g),$;case dot:if(ry)return ry.call(g)==ry.call(y)}return!1}(e,t,c,n,r,o,i);if(!(n&got)){var h=l&&bO.call(e,"__wrapped__"),p=f&&bO.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new pa),o(v,m,n,r,i)}}return!!d&&(i||(i=new pa),function(g,y,b,w,x,k){var j=b&vot,S=mw(g),N=S.length;if(N!=mw(y).length&&!j)return!1;for(var C=N;C--;){var $=S[C];if(!(j?$ in y:mot.call(y,$)))return!1}var B=k.get(g),K=k.get(y);if(B&&K)return B==y&&K==g;var R=!0;k.set(g,y),k.set(y,g);for(var q=j;++C<N;){var F=g[$=S[C]],O=y[$];if(w)var A=j?w(O,F,$,y,g,k):w(F,O,$,g,y,k);if(!(A===void 0?F===O||x(F,O,b,w,k):A)){R=!1;break}q||(q=$=="constructor")}if(R&&!q){var _=g.constructor,M=y.constructor;_==M||!("constructor"in g)||!("constructor"in y)||typeof _=="function"&&_ instanceof _&&typeof M=="function"&&M instanceof M||(R=!1)}return k.delete(g),k.delete(y),R}(e,t,n,r,o,i))}function jp(e,t,n,r,o){return e===t||(e==null||t==null||!qr(e)&&!qr(t)?e!=e&&t!=t:yot(e,t,n,r,jp,o))}var bot=1,wot=2;function R2(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=n[o])[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new pa;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?jp(l,u,bot|wot,r,f):d))return!1}}return!0}function mz(e){return e==e&&!Ar(e)}function I2(e){for(var t=ro(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,mz(o)]}return t}function gz(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function yz(e){var t=I2(e);return t.length==1&&t[0][2]?gz(t[0][0],t[0][1]):function(n){return n===e||R2(n,e,t)}}function xot(e,t){return e!=null&&t in Object(e)}function bz(e,t,n){for(var r=-1,o=(t=eu(t,e)).length,i=!1;++r<o;){var a=ms(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=e==null?0:e.length)&&R0(o)&&Zs(a,o)&&(Ze(e)||tl(e))}function N2(e,t){return e!=null&&bz(e,t,xot)}var kot=1,jot=2;function wz(e,t){return b2(e)&&mz(t)?gz(ms(e),t):function(n){var r=w2(n,e);return r===void 0&&r===t?N2(n,e):jp(t,r,kot|jot)}}function D2(e){return function(t){return t==null?void 0:t[e]}}function xz(e){return b2(e)?D2(ms(e)):function(t){return function(n){return fl(n,t)}}(e)}function Qe(e){return typeof e=="function"?e:e==null?Wo:ce(e)=="object"?Ze(e)?wz(e[0],e[1]):yz(e):xz(e)}function _ot(e){var t=e==null?0:e.length,n=Qe;return e=t?$r(e,function(r){if(typeof r[1]!="function")throw new TypeError("Expected a function");return[n(r[0]),r[1]]}):[],vn(function(r){for(var o=-1;++o<t;){var i=e[o];if(xi(i[0],this,r))return xi(i[1],this,r)}})}function kz(e,t,n){var r=n.length;if(e==null)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===void 0&&!(o in e)||!i(a))return!1}return!0}function Sot(e){return function(t){var n=ro(t);return function(r){return kz(r,t,n)}}(qi(e,1))}function $ot(e,t){return t==null||kz(e,t,ro(t))}function Cot(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function jz(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var z2=jz();function ts(e,t){return e&&z2(e,t,ro)}function _z(e,t){return function(n,r){if(n==null)return n;if(!si(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var iu=_z(ts);function Eot(e,t,n,r){return iu(e,function(o,i,a){t(r,o,n(o),a)}),r}function D0(e,t){return function(n,r){var o=Ze(n)?Cot:Eot,i=t?t():{};return o(n,e,Qe(r),i)}}var Oot=Object.prototype.hasOwnProperty,Mot=D0(function(e,t,n){Oot.call(e,n)?++e[n]:ec(e,n,1)}),Aot=Mot;function Pot(e,t){var n=Jf(e);return t==null?n:rz(n,t)}function L2(e,t,n){var r=tc(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=L2.placeholder,r}L2.placeholder={};function B2(e,t,n){var r=tc(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=B2.placeholder,r}B2.placeholder={};var xm=function(){return uo.Date.now()},Tot="Expected a function",Rot=Math.max,Iot=Math.min;function _p(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Tot);function h(y){var b=r,w=o;return r=o=void 0,u=y,a=e.apply(w,b)}function p(y){var b=y-c;return c===void 0||b>=t||b<0||f&&y-u>=i}function v(){var y=xm();if(p(y))return m(y);s=setTimeout(v,function(b){var w=t-(b-c);return f?Iot(w,i-(b-u)):w}(y))}function m(y){return s=void 0,d&&r?h(y):(r=o=void 0,a)}function g(){var y=xm(),b=p(y);if(r=arguments,o=this,c=y,b){if(s===void 0)return function(w){return u=w,s=setTimeout(v,t),l?h(w):a}(c);if(f)return clearTimeout(s),s=setTimeout(v,t),h(c)}return s===void 0&&(s=setTimeout(v,t)),a}return t=Bi(t)||0,Ar(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Rot(Bi(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0},g.flush=function(){return s===void 0?a:m(xm())},g}function Not(e,t){return e==null||e!=e?t:e}var Sz=Object.prototype,Dot=Sz.hasOwnProperty,zot=vn(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Ko(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ii(i),s=-1,c=a.length;++s<c;){var u=a[s],l=e[u];(l===void 0||Ma(l,Sz[u])&&!Dot.call(e,u))&&(e[u]=i[u])}return e}),Lot=zot;function oy(e,t,n){(n!==void 0&&!Ma(e[t],n)||n===void 0&&!(t in e))&&ec(e,t,n)}function Ur(e){return qr(e)&&si(e)}function iy(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]}function $z(e){return Za(e,ii(e))}function z0(e,t,n,r,o){e!==t&&z2(t,function(i,a){if(o||(o=new pa),Ar(i))(function(c,u,l,f,d,h,p){var v=iy(c,l),m=iy(u,l),g=p.get(m);if(g)oy(c,l,g);else{var y=h?h(v,m,l+"",c,u,p):void 0,b=y===void 0;if(b){var w=Ze(m),x=!w&&Hc(m),k=!w&&!x&&Xf(m);y=m,w||x||k?Ze(v)?y=v:Ur(v)?y=ni(v):x?(b=!1,y=iz(m,!0)):k?(b=!1,y=cz(m,!0)):y=[]:kp(m)||tl(m)?(y=v,tl(v)?y=$z(v):Ar(v)&&!Xs(v)||(y=uz(m))):b=!1}b&&(p.set(m,y),d(y,m,f,h,p),p.delete(m)),oy(c,l,y)}})(e,t,a,n,z0,r,o);else{var s=r?r(iy(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),oy(e,a,s)}},ii)}function Cz(e,t,n,r,o,i){return Ar(e)&&Ar(t)&&(i.set(t,e),z0(e,t,void 0,Cz,i),i.delete(t)),e}var Bot=Yf(function(e,t,n,r){z0(e,t,n,r)}),Ez=Bot,Fot=vn(function(e){return e.push(void 0,Cz),xi(Ez,void 0,e)});function Oz(e,t,n){if(typeof e!="function")throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var qot=vn(function(e,t){return Oz(e,1,t)}),Hot=qot,Vot=vn(function(e,t,n){return Oz(e,Bi(t)||0,n)}),Uot=Vot;function F2(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var Wot=200;function Sp(e,t,n,r){var o=-1,i=T0,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=$r(t,ki(n))),r?(i=F2,a=!1):t.length>=Wot&&(i=Nh,a=!1,t=new Bu(t));t:for(;++o<s;){var l=e[o],f=n==null?l:n(l);if(l=r||l!==0?l:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue t;c.push(l)}else i(t,f,r)||c.push(l)}return c}var Kot=vn(function(e,t){return Ur(e)?Sp(e,So(t,1,Ur,!0)):[]}),Jot=Kot;function Ie(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Got=vn(function(e,t){var n=Ie(t);return Ur(n)&&(n=void 0),Ur(e)?Sp(e,So(t,1,Ur,!0),Qe(n)):[]}),Qot=Got,Yot=vn(function(e,t){var n=Ie(t);return Ur(n)&&(n=void 0),Ur(e)?Sp(e,So(t,1,Ur,!0),void 0,n):[]}),Xot=Yot,Zot=M0(function(e,t){return e/t},1);function tit(e,t,n){var r=e==null?0:e.length;return r?Ji(e,(t=n||t===void 0?1:sn(t))<0?0:t,r):[]}function eit(e,t,n){var r=e==null?0:e.length;return r?Ji(e,0,(t=r-(t=n||t===void 0?1:sn(t)))<0?0:t):[]}function L0(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Ji(e,r?0:i,r?i+1:o):Ji(e,r?i+1:0,r?o:i)}function nit(e,t){return e&&e.length?L0(e,Qe(t),!0,!0):[]}function rit(e,t){return e&&e.length?L0(e,Qe(t),!0):[]}function gs(e){return typeof e=="function"?e:Wo}function wO(e,t){return(Ze(e)?Oi:iu)(e,gs(t))}function oit(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var Mz=jz(!0);function q2(e,t){return e&&Mz(e,t,ro)}var Az=_z(q2,!0);function ww(e,t){return(Ze(e)?oit:Az)(e,gs(t))}function iit(e,t,n){e=Wn(e),t=wi(t);var r=e.length,o=n=n===void 0?r:dl(sn(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function Pz(e){return function(t){var n=fs(t);return n=="[object Map]"?T2(t):n=="[object Set]"?function(r){var o=-1,i=Array(r.size);return r.forEach(function(a){i[++o]=[a,a]}),i}(t):function(r,o){return $r(o,function(i){return[i,r[i]]})}(t,e(t))}}var xO=Pz(ro),kO=Pz(ii),ait=C2({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Tz=/[&<>"']/g,sit=RegExp(Tz.source);function Rz(e){return(e=Wn(e))&&sit.test(e)?e.replace(Tz,ait):e}var Iz=/[\\^$.*+?()[\]{}|]/g,cit=RegExp(Iz.source);function uit(e){return(e=Wn(e))&&cit.test(e)?e.replace(Iz,"\\$&"):e}function Nz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function lit(e,t){var n=!0;return iu(e,function(r,o,i){return n=!!t(r,o,i)}),n}function fit(e,t,n){var r=Ze(e)?Nz:lit;return n&&Ko(e,t,n)&&(t=void 0),r(e,Qe(t))}var dit=4294967295;function Dz(e){return e?dl(sn(e),0,dit):0}function hit(e,t,n,r){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Ko(e,t,n)&&(n=0,r=o),function(i,a,s,c){var u=i.length;for((s=sn(s))<0&&(s=-s>u?0:u+s),(c=c===void 0||c>u?u:sn(c))<0&&(c+=u),c=s>c?0:Dz(c);s<c;)i[s++]=a;return i}(e,t,n,r)):[]}function zz(e,t){var n=[];return iu(e,function(r,o,i){t(r,o,i)&&n.push(r)}),n}function pit(e,t){return(Ze(e)?ou:zz)(e,Qe(t))}function Lz(e){return function(t,n,r){var o=Object(t);if(!si(t)){var i=Qe(n);t=ro(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var vit=Math.max;function Bz(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:sn(n);return o<0&&(o=vit(r+o,0)),P0(e,Qe(t),o)}var mit=Lz(Bz);function Fz(e,t,n){var r;return n(e,function(o,i,a){if(t(o,i,a))return r=i,!1}),r}function git(e,t){return Fz(e,Qe(t),ts)}var yit=Math.max,bit=Math.min;function qz(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=sn(n),o=n<0?yit(r+o,0):bit(o,r-1)),P0(e,Qe(t),o,!0)}var wit=Lz(qz);function xit(e,t){return Fz(e,Qe(t),q2)}function ka(e){return e&&e.length?e[0]:void 0}function Hz(e,t){var n=-1,r=si(e)?Array(e.length):[];return iu(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function $p(e,t){return(Ze(e)?$r:Hz)(e,Qe(t))}function kit(e,t){return So($p(e,t),1)}function jit(e,t){return So($p(e,t),1/0)}function _it(e,t,n){return n=n===void 0?1:sn(n),So($p(e,t),n)}function Sit(e){return e!=null&&e.length?So(e,1/0):[]}function $it(e,t){return e!=null&&e.length?So(e,t=t===void 0?1:sn(t)):[]}function Cit(e){return tc(e,512)}var Eit=E2("floor");function Vz(e){return nc(function(t){var n=t.length,r=n,o=Fi.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if(typeof i!="function")throw new TypeError("Expected a function");if(o&&!a&&wm(i)=="wrapper")var a=new Fi([],!0)}for(r=a?r:n;++r<n;){var s=wm(i=t[r]),c=s=="wrapper"?h2(i):void 0;a=c&&hw(c[0])&&c[1]==424&&!c[4].length&&c[9]==1?a[wm(c[0])].apply(a,c[3]):i.length==1&&hw(i)?a[s]():a.thru(i)}return function(){var u=arguments,l=u[0];if(a&&u.length==1&&Ze(l))return a.plant(l).value();for(var f=0,d=n?t[f].apply(this,u):l;++f<n;)d=t[f].call(this,d);return d}})}var Oit=Vz(),Mit=Vz(!0);function Ait(e,t){return e==null?e:z2(e,gs(t),ii)}function Pit(e,t){return e==null?e:Mz(e,gs(t),ii)}function Tit(e,t){return e&&ts(e,gs(t))}function Rit(e,t){return e&&q2(e,gs(t))}function Iit(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function B0(e,t){return ou(t,function(n){return Xs(e[n])})}function Nit(e){return e==null?[]:B0(e,ro(e))}function Dit(e){return e==null?[]:B0(e,ii(e))}var zit=Object.prototype.hasOwnProperty,Lit=D0(function(e,t,n){zit.call(e,n)?e[n].push(t):ec(e,n,[t])}),Cp=Lit;function H2(e,t){return e>t}function F0(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Bi(t),n=Bi(n)),e(t,n)}}var Bit=F0(H2),Fit=F0(function(e,t){return e>=t}),qit=Object.prototype.hasOwnProperty;function Hit(e,t){return e!=null&&qit.call(e,t)}function Vit(e,t){return e!=null&&bz(e,t,Hit)}var Uit=Math.max,Wit=Math.min;function Kit(e,t,n){return t=zs(t),n===void 0?(n=t,t=0):n=zs(n),function(r,o,i){return r>=Wit(o,i)&&r<Uit(o,i)}(e=Bi(e),t,n)}var Jit="[object String]";function q0(e){return typeof e=="string"||!Ze(e)&&qr(e)&&Go(e)==Jit}function V2(e,t){return $r(t,function(n){return e[n]})}function ed(e){return e==null?[]:V2(e,ro(e))}var Git=Math.max;function Qit(e,t,n,r){e=si(e)?e:ed(e),n=n&&!r?sn(n):0;var o=e.length;return n<0&&(n=Git(o+n,0)),q0(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Gf(e,t,n)>-1}var Yit=Math.max;function Xit(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:sn(n);return o<0&&(o=Yit(r+o,0)),Gf(e,t,o)}function on(e){return e!=null&&e.length?Ji(e,0,-1):[]}var Zit=Math.min;function U2(e,t,n){for(var r=n?F2:T0,o=e[0].length,i=e.length,a=i,s=Array(i),c=1/0,u=[];a--;){var l=e[a];a&&t&&(l=$r(l,ki(t))),c=Zit(l.length,c),s[a]=!n&&(t||o>=120&&l.length>=120)?new Bu(a&&l):void 0}l=e[0];var f=-1,d=s[0];t:for(;++f<o&&u.length<c;){var h=l[f],p=t?t(h):h;if(h=n||h!==0?h:0,!(d?Nh(d,p):r(u,p,n))){for(a=i;--a;){var v=s[a];if(!(v?Nh(v,p):r(e[a],p,n)))continue t}d&&d.push(p),u.push(h)}}return u}function W2(e){return Ur(e)?e:[]}var tat=vn(function(e){var t=$r(e,W2);return t.length&&t[0]===e[0]?U2(t):[]}),eat=vn(function(e){var t=Ie(e),n=$r(e,W2);return t===Ie(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?U2(n,Qe(t)):[]}),nat=eat,rat=vn(function(e){var t=Ie(e),n=$r(e,W2);return(t=typeof t=="function"?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?U2(n,void 0,t):[]});function Uz(e,t){return function(n,r){return function(o,i,a,s){return ts(o,function(c,u,l){i(s,a(c),u,l)}),s}(n,e,t(r),{})}}var oat=Object.prototype.toString,iat=Uz(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=oat.call(t)),e[t]=n},p2(Wo)),aat=iat,Wz=Object.prototype,sat=Wz.hasOwnProperty,cat=Wz.toString,uat=Uz(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=cat.call(t)),sat.call(e,t)?e[t].push(n):e[t]=[n]},Qe),lat=uat;function Kz(e,t){return t.length<2?e:fl(e,Ji(t,0,-1))}function Ep(e,t,n){var r=(e=Kz(e,t=eu(t,e)))==null?e:e[ms(Ie(t))];return r==null?void 0:xi(r,e,n)}var fat=vn(Ep),dat=vn(function(e,t,n){var r=-1,o=typeof t=="function",i=si(e)?Array(e.length):[];return iu(e,function(a){i[++r]=o?xi(t,a,n):Ep(a,t,n)}),i}),hat=dat,jO=Ki&&Ki.isArrayBuffer,pat=jO?ki(jO):function(e){return qr(e)&&Go(e)=="[object ArrayBuffer]"};function vat(e){return e===!0||e===!1||qr(e)&&Go(e)=="[object Boolean]"}var _O=Ki&&Ki.isDate,mat=_O?ki(_O):function(e){return qr(e)&&Go(e)=="[object Date]"};function gat(e){return qr(e)&&e.nodeType===1&&!kp(e)}var yat="[object Map]",bat="[object Set]",wat=Object.prototype.hasOwnProperty;function cn(e){if(e==null)return!0;if(si(e)&&(Ze(e)||typeof e=="string"||typeof e.splice=="function"||Hc(e)||Xf(e)||tl(e)))return!e.length;var t=fs(e);if(t==yat||t==bat)return!e.size;if(wp(e))return!y2(e).length;for(var n in e)if(wat.call(e,n))return!1;return!0}function an(e,t){return jp(e,t)}function xat(e,t,n){var r=(n=typeof n=="function"?n:void 0)?n(e,t):void 0;return r===void 0?jp(e,t,void 0,n):!!r}var kat=uo.isFinite;function jat(e){return typeof e=="number"&&kat(e)}function Jz(e){return typeof e=="number"&&e==sn(e)}function _at(e,t){return e===t||R2(e,t,I2(t))}function Sat(e,t,n){return n=typeof n=="function"?n:void 0,R2(e,t,I2(t),n)}var $at="[object Number]";function Gz(e){return typeof e=="number"||qr(e)&&Go(e)==$at}function Cat(e){return Gz(e)&&e!=+e}var Eat=bm?Xs:g2;function Oat(e){if(Eat(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vD(e)}function Mat(e){return e==null}function Aat(e){return e===null}var SO=Ki&&Ki.isRegExp,K2=SO?ki(SO):function(e){return qr(e)&&Go(e)=="[object RegExp]"},Pat=9007199254740991;function Tat(e){return Jz(e)&&e>=-9007199254740991&&e<=Pat}function Rat(e){return e===void 0}function Iat(e){return qr(e)&&fs(e)=="[object WeakMap]"}function Nat(e){return qr(e)&&Go(e)=="[object WeakSet]"}function Dat(e){return Qe(typeof e=="function"?e:qi(e,1))}var zat=Array.prototype.join;function Lat(e,t){return e==null?"":zat.call(e,t)}var Bat=td(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Fat=Bat,qat=D0(function(e,t,n){ec(e,n,t)}),Hat=qat,Vat=Math.max,Uat=Math.min;function Wat(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r;return n!==void 0&&(o=(o=sn(n))<0?Vat(r+o,0):Uat(o,r-1)),t==t?function(i,a,s){for(var c=s+1;c--;)if(i[c]===a)return c;return c}(e,t,o):P0(e,kD,o,!0)}var Kat=td(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Jat=Kat,Gat=qD("toLowerCase");function J2(e,t){return e<t}var Qat=F0(J2),Yat=F0(function(e,t){return e<=t});function Xat(e,t){var n={};return t=Qe(t),ts(e,function(r,o,i){ec(n,t(r,o,i),r)}),n}function Qz(e,t){var n={};return t=Qe(t),ts(e,function(r,o,i){ec(n,o,t(r,o,i))}),n}function Zat(e){return yz(qi(e,1))}function tst(e,t){return wz(e,qi(t,1))}function H0(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a==a&&!bi(a):n(a,s)))var s=a,c=i}return c}function est(e){return e&&e.length?H0(e,Wo,H2):void 0}function nst(e,t){return e&&e.length?H0(e,Qe(t),H2):void 0}function G2(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==void 0&&(n=n===void 0?i:n+i)}return n}var rst=NaN;function Yz(e,t){var n=e==null?0:e.length;return n?G2(e,t)/n:rst}function ost(e){return Yz(e,Wo)}function ist(e,t){return Yz(e,Qe(t))}var ast=Yf(function(e,t,n){z0(e,t,n)}),sst=ast,cst=vn(function(e,t){return function(n){return Ep(n,e,t)}}),ust=cst,lst=vn(function(e,t){return function(n){return Ep(e,n,t)}}),fst=lst;function dst(e){return e&&e.length?H0(e,Wo,J2):void 0}function zd(e,t){return e&&e.length?H0(e,Qe(t),J2):void 0}function Xz(e,t,n){var r=ro(t),o=B0(t,r),i=!(Ar(n)&&"chain"in n&&!n.chain),a=Xs(e);return Oi(o,function(s){var c=t[s];e[s]=c,a&&(e.prototype[s]=function(){var u=this.__chain__;if(i||u){var l=e(this.__wrapped__);return(l.__actions__=ni(this.__actions__)).push({func:c,args:arguments,thisArg:e}),l.__chain__=u,l}return c.apply(e,nu([this.value()],arguments))})}),e}var hst=M0(function(e,t){return e*t},1),pst="Expected a function";function Dh(e){if(typeof e!="function")throw new TypeError(pst);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var vst="[object Map]",mst="[object Set]",ay=Ro?Ro.iterator:void 0;function Zz(e){if(!e)return[];if(si(e))return q0(e)?Ea(e):ni(e);if(ay&&e[ay])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(e[ay]());var t=fs(e);return(t==vst?T2:t==mst?N0:ed)(e)}function gst(){this.__values__===void 0&&(this.__values__=Zz(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function tL(e,t){var n=e.length;if(n)return Zs(t+=t<0?n:0,n)?e[t]:void 0}function yst(e,t){return e&&e.length?tL(e,sn(t)):void 0}function bst(e){return e=sn(e),vn(function(t){return tL(t,e)})}function Q2(e,t){return(e=Kz(e,t=eu(t,e)))==null||delete e[ms(Ie(t))]}function wst(e){return kp(e)?void 0:e}var xst=nc(function(e,t){var n={};if(e==null)return n;var r=!1;t=$r(t,function(i){return i=eu(i,e),r||(r=i.length>1),i}),Za(e,A2(e),n),r&&(n=qi(n,7,wst));for(var o=t.length;o--;)Q2(n,t[o]);return n}),kst=xst;function Op(e,t,n,r){if(!Ar(e))return e;for(var o=-1,i=(t=eu(t,e)).length,a=i-1,s=e;s!=null&&++o<i;){var c=ms(t[o]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var l=s[c];(u=r?r(l,c,s):void 0)===void 0&&(u=Ar(l)?l:Zs(t[o+1])?[]:{})}bp(s,c,u),s=s[c]}return e}function eL(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=fl(e,a);n(s,a)&&Op(i,eu(a,e),s)}return i}function nL(e,t){if(e==null)return{};var n=$r(A2(e),function(r){return[r]});return t=Qe(t),eL(e,n,function(r,o){return t(r,o[0])})}function jst(e,t){return nL(e,Dh(Qe(t)))}function _st(e){return ND(2,e)}function rL(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e==e,i=bi(e),a=t!==void 0,s=t===null,c=t==t,u=bi(t);if(!s&&!u&&!i&&e>t||i&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0}function oL(e,t,n){t=t.length?$r(t,function(i){return Ze(i)?function(a){return fl(a,i.length===1?i[0]:i)}:i}):[Wo];var r=-1;t=$r(t,ki(Qe));var o=Hz(e,function(i,a,s){var c=$r(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return function(i,a){var s=i.length;for(i.sort(a);s--;)i[s]=i[s].value;return i}(o,function(i,a){return function(s,c,u){for(var l=-1,f=s.criteria,d=c.criteria,h=f.length,p=u.length;++l<h;){var v=rL(f[l],d[l]);if(v)return l>=p?v:v*(u[l]=="desc"?-1:1)}return s.index-c.index}(i,a,n)})}function Sst(e,t,n,r){return e==null?[]:(Ze(t)||(t=t==null?[]:[t]),Ze(n=r?void 0:n)||(n=n==null?[]:[n]),oL(e,t,n))}function Y2(e){return nc(function(t){return t=$r(t,ki(Qe)),vn(function(n){var r=this;return e(t,function(o){return xi(o,r,n)})})})}var $st=Y2($r),Cst=vn,Est=Math.min,Ost=Cst(function(e,t){var n=(t=t.length==1&&Ze(t[0])?$r(t[0],ki(Qe)):$r(So(t,1),ki(Qe))).length;return vn(function(r){for(var o=-1,i=Est(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return xi(e,this,r)})}),Mst=Ost,Ast=Y2(Nz),Pst=Y2(P2),Tst=9007199254740991,Rst=Math.floor;function xw(e,t){var n="";if(!e||t<1||t>Tst)return n;do t%2&&(n+=e),(t=Rst(t/2))&&(e+=e);while(t);return n}var Ist=D2("length"),iL="\\ud800-\\udfff",Nst="["+iL+"]",kw="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jw="\\ud83c[\\udffb-\\udfff]",aL="[^"+iL+"]",sL="(?:\\ud83c[\\udde6-\\uddff]){2}",cL="[\\ud800-\\udbff][\\udc00-\\udfff]",$O="(?:"+kw+"|"+jw+")?",CO="[\\ufe0e\\ufe0f]?",Dst=CO+$O+("(?:\\u200d(?:"+[aL,sL,cL].join("|")+")"+CO+$O+")*"),zst="(?:"+[aL+kw+"?",kw,sL,cL,Nst].join("|")+")",EO=RegExp(jw+"(?="+jw+")|"+zst+Dst,"g");function nd(e){return Zf(e)?function(t){for(var n=EO.lastIndex=0;EO.test(t);)++n;return n}(e):Ist(e)}var Lst=Math.ceil;function yg(e,t){var n=(t=t===void 0?" ":wi(t)).length;if(n<2)return n?xw(t,e):t;var r=xw(t,Lst(e/nd(t)));return Zf(t)?ru(Ea(r),0,e).join(""):r.slice(0,e)}var Bst=Math.ceil,Fst=Math.floor;function qst(e,t,n){e=Wn(e);var r=(t=sn(t))?nd(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yg(Fst(o),n)+e+yg(Bst(o),n)}function Hst(e,t,n){e=Wn(e);var r=(t=sn(t))?nd(e):0;return t&&r<t?e+yg(t-r,n):e}function Vst(e,t,n){e=Wn(e);var r=(t=sn(t))?nd(e):0;return t&&r<t?yg(t-r,n)+e:e}var Ust=/^\s+/,Wst=uo.parseInt;function Kst(e,t,n){return n||t==null?t=0:t&&(t=+t),Wst(Wn(e).replace(Ust,""),t||0)}var X2=vn(function(e,t){return tc(e,32,void 0,t,Mc(t,Qf(X2)))});X2.placeholder={};var uL=X2,Z2=vn(function(e,t){return tc(e,64,void 0,t,Mc(t,Qf(Z2)))});Z2.placeholder={};var Jst=Z2,Gst=D0(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),lL=Gst,Qst=nc(function(e,t){return e==null?{}:function(n,r){return eL(n,r,function(o,i){return N2(n,i)})}(e,t)}),Yst=Qst;function Xst(e){for(var t,n=this;n instanceof A0;){var r=bD(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function Zst(e){return function(t){return e==null?void 0:fl(e,t)}}function tct(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var OO=Array.prototype.splice;function tj(e,t,n,r){var o=r?tct:Gf,i=-1,a=t.length,s=e;for(e===t&&(t=ni(t)),n&&(s=$r(e,ki(n)));++i<a;)for(var c=0,u=t[i],l=n?n(u):u;(c=o(s,l,c,r))>-1;)s!==e&&OO.call(s,c,1),OO.call(e,c,1);return e}function fL(e,t){return e&&e.length&&t&&t.length?tj(e,t):e}var ect=vn(fL);function nct(e,t,n){return e&&e.length&&t&&t.length?tj(e,t,Qe(n)):e}function rct(e,t,n){return e&&e.length&&t&&t.length?tj(e,t,void 0,n):e}var oct=Array.prototype.splice;function dL(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Zs(o)?oct.call(e,o,1):Q2(e,o)}}return e}var ict=nc(function(e,t){var n=e==null?0:e.length,r=x2(e,t);return dL(e,$r(t,function(o){return Zs(o,n)?+o:o}).sort(rL)),r}),act=ict,sct=Math.floor,cct=Math.random;function ej(e,t){return e+sct(cct()*(t-e+1))}var uct=parseFloat,lct=Math.min,fct=Math.random;function dct(e,t,n){if(n&&typeof n!="boolean"&&Ko(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=zs(e),t===void 0?(t=e,e=0):t=zs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fct();return lct(e+o*(t-e+uct("1e-"+((o+"").length-1))),t)}return ej(e,t)}var hct=Math.ceil,pct=Math.max;function hL(e){return function(t,n,r){return r&&typeof r!="number"&&Ko(t,n,r)&&(n=r=void 0),t=zs(t),n===void 0?(n=t,t=0):n=zs(n),function(o,i,a,s){for(var c=-1,u=pct(hct((i-o)/(a||1)),0),l=Array(u);u--;)l[s?u:++c]=o,o+=a;return l}(t,n,r=r===void 0?t<n?1:-1:zs(r),e)}}var pL=hL(),vct=hL(!0),mct=nc(function(e,t){return tc(e,256,void 0,void 0,void 0,t)}),gct=mct;function vL(e,t,n,r,o){return o(e,function(i,a,s){n=r?(r=!1,i):t(n,i,a,s)}),n}function yct(e,t,n){var r=Ze(e)?$2:vL,o=arguments.length<3;return r(e,Qe(t),n,o,iu)}function bct(e,t,n,r){var o=e==null?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function wct(e,t,n){var r=Ze(e)?bct:vL,o=arguments.length<3;return r(e,Qe(t),n,o,Az)}function xct(e,t){return(Ze(e)?ou:zz)(e,Dh(Qe(t)))}function kct(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Qe(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return dL(e,o),n}function jct(e,t,n){return t=(n?Ko(e,t,n):t===void 0)?1:sn(t),xw(Wn(e),t)}function _ct(){var e=arguments,t=Wn(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Sct(e,t){if(typeof e!="function")throw new TypeError("Expected a function");return vn(e,t=t===void 0?t:sn(t))}function $ct(e,t,n){var r=-1,o=(t=eu(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=e==null?void 0:e[ms(t[r])];i===void 0&&(r=o,i=n),e=Xs(i)?i.call(e):i}return e}var Cct=Array.prototype.reverse;function _w(e){return e==null?e:Cct.call(e)}var Ect=E2("round");function mL(e){var t=e.length;return t?e[ej(0,t-1)]:void 0}function Oct(e){return mL(ed(e))}function Mct(e){return(Ze(e)?mL:Oct)(e)}function V0(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=ej(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function Act(e,t){return V0(ni(e),dl(t,0,e.length))}function Pct(e,t){var n=ed(e);return V0(n,dl(t,0,n.length))}function Tct(e,t,n){return t=(n?Ko(e,t,n):t===void 0)?1:sn(t),(Ze(e)?Act:Pct)(e,t)}function Rct(e,t,n){return e==null?e:Op(e,t,n)}function Ict(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Op(e,t,n,r)}function Nct(e){return V0(ni(e))}function Dct(e){return V0(ed(e))}function zct(e){return(Ze(e)?Nct:Dct)(e)}function Lct(e){if(e==null)return 0;if(si(e))return q0(e)?nd(e):e.length;var t=fs(e);return t=="[object Map]"||t=="[object Set]"?e.size:y2(e).length}function Bct(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&Ko(e,t,n)?(t=0,n=r):(t=t==null?0:sn(t),n=n===void 0?r:sn(n)),Ji(e,t,n)):[]}var Fct=td(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qct=Fct;function Hct(e,t){var n;return iu(e,function(r,o,i){return!(n=t(r,o,i))}),!!n}function Vct(e,t,n){var r=Ze(e)?P2:Hct;return n&&Ko(e,t,n)&&(t=void 0),r(e,Qe(t))}var Uct=vn(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ko(e,t[0],t[1])?t=[]:n>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),oL(e,So(t,1),[])}),gL=Uct,Wct=4294967294,Kct=Math.floor,Jct=Math.min;function nj(e,t,n,r){var o=0,i=e==null?0:e.length;if(i===0)return 0;for(var a=(t=n(t))!=t,s=t===null,c=bi(t),u=t===void 0;o<i;){var l=Kct((o+i)/2),f=n(e[l]),d=f!==void 0,h=f===null,p=f==f,v=bi(f);if(a)var m=r||p;else m=u?p&&(r||d):s?p&&d&&(r||!h):c?p&&d&&!h&&(r||!v):!h&&!v&&(r?f<=t:f<t);m?o=l+1:i=l}return Jct(i,Wct)}var Gct=2147483647;function U0(e,t,n){var r=0,o=e==null?r:e.length;if(typeof t=="number"&&t==t&&o<=Gct){for(;r<o;){var i=r+o>>>1,a=e[i];a!==null&&!bi(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return nj(e,t,Wo,n)}function Qct(e,t){return U0(e,t)}function Yct(e,t,n){return nj(e,t,Qe(n))}function Xct(e,t){var n=e==null?0:e.length;if(n){var r=U0(e,t);if(r<n&&Ma(e[r],t))return r}return-1}function Zct(e,t){return U0(e,t,!0)}function tut(e,t,n){return nj(e,t,Qe(n),!0)}function eut(e,t){if(e!=null&&e.length){var n=U0(e,t,!0)-1;if(Ma(e[n],t))return n}return-1}function yL(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ma(s,c)){var c=s;i[o++]=a===0?0:a}}return i}function nut(e){return e&&e.length?yL(e):[]}function rut(e,t){return e&&e.length?yL(e,Qe(t)):[]}function out(e,t,n){return n&&typeof n!="number"&&Ko(e,t,n)&&(t=n=void 0),(n=n===void 0?4294967295:n>>>0)?(e=Wn(e))&&(typeof t=="string"||t!=null&&!K2(t))&&!(t=wi(t))&&Zf(e)?ru(Ea(e),0,n):e.split(t,n):[]}var iut=Math.max;function aut(e,t){if(typeof e!="function")throw new TypeError("Expected a function");return t=t==null?0:iut(sn(t),0),vn(function(n){var r=n[t],o=ru(n,0,t);return r&&nu(o,r),xi(e,this,o)})}var sut=td(function(e,t,n){return e+(n?" ":"")+S2(t)}),cut=sut;function uut(e,t,n){return e=Wn(e),n=n==null?0:dl(sn(n),0,e.length),t=wi(t),e.slice(n,n+t.length)==t}function lut(){return{}}function fut(){return""}function dut(){return!0}var hut=M0(function(e,t){return e-t},0);function put(e){return e&&e.length?G2(e,Wo):0}function vut(e,t){return e&&e.length?G2(e,Qe(t)):0}function mut(e){var t=e==null?0:e.length;return t?Ji(e,1,t):[]}function gut(e,t,n){return e&&e.length?Ji(e,0,(t=n||t===void 0?1:sn(t))<0?0:t):[]}function yut(e,t,n){var r=e==null?0:e.length;return r?Ji(e,(t=r-(t=n||t===void 0?1:sn(t)))<0?0:t,r):[]}function but(e,t){return e&&e.length?L0(e,Qe(t),!1,!0):[]}function wut(e,t){return e&&e.length?L0(e,Qe(t)):[]}function xut(e,t){return t(e),e}var bL=Object.prototype,kut=bL.hasOwnProperty;function MO(e,t,n,r){return e===void 0||Ma(e,bL[n])&&!kut.call(r,n)?t:e}var jut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function _ut(e){return"\\"+jut[e]}var wL=/<%=([\s\S]+?)%>/g,Sw={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:wL,variable:"",imports:{_:{escape:Rz}}},Sut=/\b__p \+= '';/g,$ut=/\b(__p \+=) '' \+/g,Cut=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Eut=/[()=,{}\[\]\/\s]/,Out=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mv=/($^)/,Mut=/['\n\r\u2028\u2029\\]/g,AO=Object.prototype.hasOwnProperty;function Aut(e,t,n){var r=Sw.imports._.templateSettings||Sw;n&&Ko(e,t,n)&&(t=void 0),e=Wn(e),t=mg({},t,r,MO);var o,i,a=mg({},t.imports,r.imports,MO),s=ro(a),c=V2(a,s),u=0,l=t.interpolate||mv,f="__p += '",d=RegExp((t.escape||mv).source+"|"+l.source+"|"+(l===wL?Out:mv).source+"|"+(t.evaluate||mv).source+"|$","g"),h=AO.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
24
+ `:"";e.replace(d,function(m,g,y,b,w,x){return y||(y=b),f+=e.slice(u,x).replace(Mut,_ut),g&&(o=!0,f+=`' +
25
+ __e(`+g+`) +
26
+ '`),w&&(i=!0,f+=`';
27
+ `+w+`;
28
+ __p += '`),y&&(f+=`' +
29
+ ((__t = (`+y+`)) == null ? '' : __t) +
30
+ '`),u=x+m.length,m}),f+=`';
31
+ `;var p=AO.call(t,"variable")&&t.variable;if(p){if(Eut.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else f=`with (obj) {
32
+ `+f+`
33
+ }
34
+ `;f=(i?f.replace(Sut,""):f).replace($ut,"$1").replace(Cut,"$1;"),f="function("+(p||"obj")+`) {
35
+ `+(p?"":`obj || (obj = {});
36
+ `)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?`, __j = Array.prototype.join;
37
+ function print() { __p += __j.call(arguments, '') }
38
+ `:`;
39
+ `)+f+`return __p
40
+ }`;var v=ID(function(){return Function(s,h+"return "+f).apply(void 0,c)});if(v.source=f,k2(v))throw v;return v}var Put="Expected a function";function xL(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Put);return Ar(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_p(e,t,{leading:r,maxWait:t,trailing:o})}function zh(e,t){return t(e)}var Tut=9007199254740991,sy=4294967295,Rut=Math.min;function kL(e,t){if((e=sn(e))<1||e>Tut)return[];var n=sy,r=Rut(e,sy);t=gs(t),e-=sy;for(var o=m2(r,t);++n<e;)t(n);return o}function Iut(){return this}function jL(e,t){var n=e;return n instanceof $n&&(n=n.value()),$2(t,function(r,o){return o.func.apply(o.thisArg,nu([r],o.args))},n)}function cy(){return jL(this.__wrapped__,this.__actions__)}function Nut(e){return Wn(e).toLowerCase()}function Dut(e){return Ze(e)?$r(e,ms):bi(e)?[e]:ni(PD(Wn(e)))}var zut=9007199254740991;function Lut(e){return e?dl(sn(e),-9007199254740991,zut):e===0?e:0}function But(e){return Wn(e).toUpperCase()}function Fut(e,t,n){var r=Ze(e),o=r||Hc(e)||Xf(e);if(t=Qe(t),n==null){var i=e&&e.constructor;n=o?r?new i:[]:Ar(e)&&Xs(i)?Jf(I0(e)):{}}return(o?Oi:ts)(e,function(a,s,c){return t(n,a,s,c)}),n}function _L(e,t){for(var n=e.length;n--&&Gf(t,e[n],0)>-1;);return n}function SL(e,t){for(var n=-1,r=e.length;++n<r&&Gf(t,e[n],0)>-1;);return n}function qut(e,t,n){if((e=Wn(e))&&(n||t===void 0))return pD(e);if(!e||!(t=wi(t)))return e;var r=Ea(e),o=Ea(t);return ru(r,SL(r,o),_L(r,o)+1).join("")}function Hut(e,t,n){if((e=Wn(e))&&(n||t===void 0))return e.slice(0,hD(e)+1);if(!e||!(t=wi(t)))return e;var r=Ea(e);return ru(r,0,_L(r,Ea(t))+1).join("")}var Vut=/^\s+/;function Uut(e,t,n){if((e=Wn(e))&&(n||t===void 0))return e.replace(Vut,"");if(!e||!(t=wi(t)))return e;var r=Ea(e);return ru(r,SL(r,Ea(t))).join("")}var Wut=/\w*$/;function Kut(e,t){var n=30,r="...";if(Ar(t)){var o="separator"in t?t.separator:o;n="length"in t?sn(t.length):n,r="omission"in t?wi(t.omission):r}var i=(e=Wn(e)).length;if(Zf(e)){var a=Ea(e);i=a.length}if(n>=i)return e;var s=n-nd(r);if(s<1)return r;var c=a?ru(a,0,s).join(""):e.slice(0,s);if(o===void 0)return c+r;if(a&&(s+=c.length-s),K2(o)){if(e.slice(s).search(o)){var u,l=c;for(o.global||(o=RegExp(o.source,Wn(Wut.exec(o))+"g")),o.lastIndex=0;u=o.exec(l);)var f=u.index;c=c.slice(0,f===void 0?s:f)}}else if(e.indexOf(wi(o),s)!=s){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r}function Jut(e){return SD(e,1)}var Gut=C2({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),$L=/&(?:amp|lt|gt|quot|#39);/g,Qut=RegExp($L.source);function Yut(e){return(e=Wn(e))&&Qut.test(e)?e.replace($L,Gut):e}var Xut=Zl&&1/N0(new Zl([,-0]))[1]==1/0?function(e){return new Zl(e)}:Yn,Zut=Xut,tlt=200;function Vc(e,t,n){var r=-1,o=T0,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=F2;else if(i>=tlt){var u=t?null:Zut(e);if(u)return N0(u);a=!1,o=Nh,c=new Bu}else c=t?[]:s;t:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||l!==0?l:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue t;t&&c.push(f),s.push(l)}else o(c,f,n)||(c!==s&&c.push(f),s.push(l))}return s}var elt=vn(function(e){return Vc(So(e,1,Ur,!0))}),nlt=vn(function(e){var t=Ie(e);return Ur(t)&&(t=void 0),Vc(So(e,1,Ur,!0),Qe(t))}),rlt=nlt,olt=vn(function(e){var t=Ie(e);return t=typeof t=="function"?t:void 0,Vc(So(e,1,Ur,!0),void 0,t)});function ilt(e){return e&&e.length?Vc(e):[]}function alt(e,t){return e&&e.length?Vc(e,Qe(t)):[]}function slt(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?Vc(e,void 0,t):[]}var clt=0;function el(e){var t=++clt;return Wn(e)+t}function ult(e,t){return e==null||Q2(e,t)}var llt=Math.max;function rj(e){if(!e||!e.length)return[];var t=0;return e=ou(e,function(n){if(Ur(n))return t=llt(n.length,t),!0}),m2(t,function(n){return $r(e,D2(n))})}function CL(e,t){if(!e||!e.length)return[];var n=rj(e);return t==null?n:$r(n,function(r){return xi(t,void 0,r)})}function EL(e,t,n,r){return Op(e,t,n(fl(e,t)),r)}function flt(e,t,n){return e==null?e:EL(e,t,gs(n))}function dlt(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:EL(e,t,gs(n),r)}var hlt=td(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),plt=hlt;function vlt(e){return e==null?[]:V2(e,ii(e))}var mlt=vn(function(e,t){return Ur(e)?Sp(e,t):[]}),glt=mlt;function ylt(e,t){return uL(gs(t),e)}var blt=nc(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(i){return x2(i,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&Zs(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:zh,args:[o],thisArg:void 0}),new Fi(r,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i})):this.thru(o)}),wlt=blt;function xlt(){return nz(this)}function klt(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:zh,args:[_w],thisArg:void 0}),new Fi(t,this.__chain__)}return this.thru(_w)}function oj(e,t,n){var r=e.length;if(r<2)return r?Vc(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=Sp(i[o]||a,e[s],t,n));return Vc(So(i,1),t,n)}var jlt=vn(function(e){return oj(ou(e,Ur))}),_lt=vn(function(e){var t=Ie(e);return Ur(t)&&(t=void 0),oj(ou(e,Ur),Qe(t))}),Slt=_lt,$lt=vn(function(e){var t=Ie(e);return t=typeof t=="function"?t:void 0,oj(ou(e,Ur),void 0,t)}),Clt=vn(rj);function OL(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function Elt(e,t){return OL(e||[],t||[],bp)}function Olt(e,t){return OL(e||[],t||[],Op)}var Mlt=vn(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,CL(e,n)}),Alt=Mlt,be={chunk:lrt,compact:Xrt,concat:Zrt,difference:Jot,differenceBy:Qot,differenceWith:Xot,drop:tit,dropRight:eit,dropRightWhile:nit,dropWhile:rit,fill:hit,findIndex:Bz,findLastIndex:qz,first:ka,flatten:TD,flattenDeep:Sit,flattenDepth:$it,fromPairs:Iit,head:ka,indexOf:Xit,initial:on,intersection:tat,intersectionBy:nat,intersectionWith:rat,join:Lat,last:Ie,lastIndexOf:Wat,nth:yst,pull:ect,pullAll:fL,pullAllBy:nct,pullAllWith:rct,pullAt:act,remove:kct,reverse:_w,slice:Bct,sortedIndex:Qct,sortedIndexBy:Yct,sortedIndexOf:Xct,sortedLastIndex:Zct,sortedLastIndexBy:tut,sortedLastIndexOf:eut,sortedUniq:nut,sortedUniqBy:rut,tail:mut,take:gut,takeRight:yut,takeRightWhile:but,takeWhile:wut,union:elt,unionBy:rlt,unionWith:olt,uniq:ilt,uniqBy:alt,uniqWith:slt,unzip:rj,unzipWith:CL,without:glt,xor:jlt,xorBy:Slt,xorWith:$lt,zip:Clt,zipObject:Elt,zipObjectDeep:Olt,zipWith:Alt},er={countBy:Aot,each:wO,eachRight:ww,every:fit,filter:pit,find:mit,findLast:wit,flatMap:kit,flatMapDeep:jit,flatMapDepth:_it,forEach:wO,forEachRight:ww,groupBy:Cp,includes:Qit,invokeMap:hat,keyBy:Hat,map:$p,orderBy:Sst,partition:lL,reduce:yct,reduceRight:wct,reject:xct,sample:Mct,sampleSize:Tct,shuffle:zct,size:Lct,some:Vct,sortBy:gL},Plt={now:xm},zr={after:net,ary:SD,before:ND,bind:DD,bindKey:Lnt,curry:L2,curryRight:B2,debounce:_p,defer:Hot,delay:Uot,flip:Cit,memoize:xp,negate:Dh,once:_st,overArgs:Mst,partial:uL,partialRight:Jst,rearg:gct,rest:Sct,spread:aut,throttle:xL,unary:Jut,wrap:ylt},Le={castArray:ort,clone:Wrt,cloneDeep:Krt,cloneDeepWith:vz,cloneWith:Qrt,conformsTo:$ot,eq:Ma,gt:Bit,gte:Fit,isArguments:tl,isArray:Ze,isArrayBuffer:pat,isArrayLike:si,isArrayLikeObject:Ur,isBoolean:vat,isBuffer:Hc,isDate:mat,isElement:gat,isEmpty:cn,isEqual:an,isEqualWith:xat,isError:k2,isFinite:jat,isFunction:Xs,isInteger:Jz,isLength:R0,isMap:lz,isMatch:_at,isMatchWith:Sat,isNaN:Cat,isNative:Oat,isNil:Mat,isNull:Aat,isNumber:Gz,isObject:Ar,isObjectLike:qr,isPlainObject:kp,isRegExp:K2,isSafeInteger:Tat,isSet:fz,isString:q0,isSymbol:bi,isTypedArray:Xf,isUndefined:Rat,isWeakMap:Iat,isWeakSet:Nat,lt:Qat,lte:Yat,toArray:Zz,toFinite:zs,toInteger:sn,toLength:Dz,toNumber:Bi,toPlainObject:$z,toSafeInteger:Lut,toString:Wn},Do={add:Jtt,ceil:srt,divide:Zot,floor:Eit,max:est,maxBy:nst,mean:ost,meanBy:ist,min:dst,minBy:zd,multiply:hst,round:Ect,subtract:hut,sum:put,sumBy:vut},Tlt=frt,Rlt=Kit,Ilt=dct,Je={assign:unt,assignIn:WE,assignInWith:mg,assignWith:vnt,at:Cnt,create:Pot,defaults:Lot,defaultsDeep:Fot,entries:xO,entriesIn:kO,extend:WE,extendWith:mg,findKey:git,findLastKey:xit,forIn:Ait,forInRight:Pit,forOwn:Tit,forOwnRight:Rit,functions:Nit,functionsIn:Dit,get:w2,has:Vit,hasIn:N2,invert:aat,invertBy:lat,invoke:fat,keys:ro,keysIn:ii,mapKeys:Xat,mapValues:Qz,merge:sst,mergeWith:Ez,omit:kst,omitBy:jst,pick:Yst,pickBy:nL,result:$ct,set:Rct,setWith:Ict,toPairs:xO,toPairsIn:kO,transform:Fut,unset:ult,update:flt,updateWith:dlt,values:ed,valuesIn:vlt},Ia={at:wlt,chain:nz,commit:Yrt,lodash:Z,next:gst,plant:Xst,reverse:klt,tap:xut,thru:zh,toIterator:Iut,toJSON:cy,value:cy,valueOf:cy,wrapperChain:xlt},zn={camelCase:rrt,capitalize:HD,deburr:VD,endsWith:iit,escape:Rz,escapeRegExp:uit,kebabCase:Fat,lowerCase:Jat,lowerFirst:Gat,pad:qst,padEnd:Hst,padStart:Vst,parseInt:Kst,repeat:jct,replace:_ct,snakeCase:qct,split:out,startCase:cut,startsWith:uut,template:Aut,templateSettings:Sw,toLower:Nut,toUpper:But,trim:qut,trimEnd:Hut,trimStart:Uut,truncate:Kut,unescape:Yut,upperCase:plt,upperFirst:S2,words:ez},Hn={attempt:ID,bindAll:znt,cond:_ot,conforms:Sot,constant:p2,defaultTo:Not,flow:Oit,flowRight:Mit,identity:Wo,iteratee:Dat,matches:Zat,matchesProperty:tst,method:ust,methodOf:fst,mixin:Xz,noop:Yn,nthArg:bst,over:$st,overEvery:Ast,overSome:Pst,property:xz,propertyOf:Zst,range:pL,rangeRight:vct,stubArray:O2,stubFalse:g2,stubObject:lut,stubString:fut,stubTrue:dut,times:kL,toPath:Dut,uniqueId:el},Nlt=Math.max,Dlt=Math.min,zlt=Math.min;/**
41
+ * @license
42
+ * Lodash (Custom Build) <https://lodash.com/>
43
+ * Build: `lodash modularize exports="es" -o ./`
44
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
45
+ * Released under MIT license <https://lodash.com/license>
46
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
47
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
48
+ */var uy,PO=4294967295,Llt=Array.prototype,TO=Object.prototype.hasOwnProperty,RO=Ro?Ro.iterator:void 0,Blt=Math.max,IO=Math.min,ly=function(e){return function(t,n,r){if(r==null){var o=Ar(n),i=o&&ro(n),a=i&&i.length&&B0(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Xz);Z.after=zr.after,Z.ary=zr.ary,Z.assign=Je.assign,Z.assignIn=Je.assignIn,Z.assignInWith=Je.assignInWith,Z.assignWith=Je.assignWith,Z.at=Je.at,Z.before=zr.before,Z.bind=zr.bind,Z.bindAll=Hn.bindAll,Z.bindKey=zr.bindKey,Z.castArray=Le.castArray,Z.chain=Ia.chain,Z.chunk=be.chunk,Z.compact=be.compact,Z.concat=be.concat,Z.cond=Hn.cond,Z.conforms=Hn.conforms,Z.constant=Hn.constant,Z.countBy=er.countBy,Z.create=Je.create,Z.curry=zr.curry,Z.curryRight=zr.curryRight,Z.debounce=zr.debounce,Z.defaults=Je.defaults,Z.defaultsDeep=Je.defaultsDeep,Z.defer=zr.defer,Z.delay=zr.delay,Z.difference=be.difference,Z.differenceBy=be.differenceBy,Z.differenceWith=be.differenceWith,Z.drop=be.drop,Z.dropRight=be.dropRight,Z.dropRightWhile=be.dropRightWhile,Z.dropWhile=be.dropWhile,Z.fill=be.fill,Z.filter=er.filter,Z.flatMap=er.flatMap,Z.flatMapDeep=er.flatMapDeep,Z.flatMapDepth=er.flatMapDepth,Z.flatten=be.flatten,Z.flattenDeep=be.flattenDeep,Z.flattenDepth=be.flattenDepth,Z.flip=zr.flip,Z.flow=Hn.flow,Z.flowRight=Hn.flowRight,Z.fromPairs=be.fromPairs,Z.functions=Je.functions,Z.functionsIn=Je.functionsIn,Z.groupBy=er.groupBy,Z.initial=be.initial,Z.intersection=be.intersection,Z.intersectionBy=be.intersectionBy,Z.intersectionWith=be.intersectionWith,Z.invert=Je.invert,Z.invertBy=Je.invertBy,Z.invokeMap=er.invokeMap,Z.iteratee=Hn.iteratee,Z.keyBy=er.keyBy,Z.keys=ro,Z.keysIn=Je.keysIn,Z.map=er.map,Z.mapKeys=Je.mapKeys,Z.mapValues=Je.mapValues,Z.matches=Hn.matches,Z.matchesProperty=Hn.matchesProperty,Z.memoize=zr.memoize,Z.merge=Je.merge,Z.mergeWith=Je.mergeWith,Z.method=Hn.method,Z.methodOf=Hn.methodOf,Z.mixin=ly,Z.negate=Dh,Z.nthArg=Hn.nthArg,Z.omit=Je.omit,Z.omitBy=Je.omitBy,Z.once=zr.once,Z.orderBy=er.orderBy,Z.over=Hn.over,Z.overArgs=zr.overArgs,Z.overEvery=Hn.overEvery,Z.overSome=Hn.overSome,Z.partial=zr.partial,Z.partialRight=zr.partialRight,Z.partition=er.partition,Z.pick=Je.pick,Z.pickBy=Je.pickBy,Z.property=Hn.property,Z.propertyOf=Hn.propertyOf,Z.pull=be.pull,Z.pullAll=be.pullAll,Z.pullAllBy=be.pullAllBy,Z.pullAllWith=be.pullAllWith,Z.pullAt=be.pullAt,Z.range=Hn.range,Z.rangeRight=Hn.rangeRight,Z.rearg=zr.rearg,Z.reject=er.reject,Z.remove=be.remove,Z.rest=zr.rest,Z.reverse=be.reverse,Z.sampleSize=er.sampleSize,Z.set=Je.set,Z.setWith=Je.setWith,Z.shuffle=er.shuffle,Z.slice=be.slice,Z.sortBy=er.sortBy,Z.sortedUniq=be.sortedUniq,Z.sortedUniqBy=be.sortedUniqBy,Z.split=zn.split,Z.spread=zr.spread,Z.tail=be.tail,Z.take=be.take,Z.takeRight=be.takeRight,Z.takeRightWhile=be.takeRightWhile,Z.takeWhile=be.takeWhile,Z.tap=Ia.tap,Z.throttle=zr.throttle,Z.thru=zh,Z.toArray=Le.toArray,Z.toPairs=Je.toPairs,Z.toPairsIn=Je.toPairsIn,Z.toPath=Hn.toPath,Z.toPlainObject=Le.toPlainObject,Z.transform=Je.transform,Z.unary=zr.unary,Z.union=be.union,Z.unionBy=be.unionBy,Z.unionWith=be.unionWith,Z.uniq=be.uniq,Z.uniqBy=be.uniqBy,Z.uniqWith=be.uniqWith,Z.unset=Je.unset,Z.unzip=be.unzip,Z.unzipWith=be.unzipWith,Z.update=Je.update,Z.updateWith=Je.updateWith,Z.values=Je.values,Z.valuesIn=Je.valuesIn,Z.without=be.without,Z.words=zn.words,Z.wrap=zr.wrap,Z.xor=be.xor,Z.xorBy=be.xorBy,Z.xorWith=be.xorWith,Z.zip=be.zip,Z.zipObject=be.zipObject,Z.zipObjectDeep=be.zipObjectDeep,Z.zipWith=be.zipWith,Z.entries=Je.toPairs,Z.entriesIn=Je.toPairsIn,Z.extend=Je.assignIn,Z.extendWith=Je.assignInWith,ly(Z,Z),Z.add=Do.add,Z.attempt=Hn.attempt,Z.camelCase=zn.camelCase,Z.capitalize=zn.capitalize,Z.ceil=Do.ceil,Z.clamp=Tlt,Z.clone=Le.clone,Z.cloneDeep=Le.cloneDeep,Z.cloneDeepWith=Le.cloneDeepWith,Z.cloneWith=Le.cloneWith,Z.conformsTo=Le.conformsTo,Z.deburr=zn.deburr,Z.defaultTo=Hn.defaultTo,Z.divide=Do.divide,Z.endsWith=zn.endsWith,Z.eq=Le.eq,Z.escape=zn.escape,Z.escapeRegExp=zn.escapeRegExp,Z.every=er.every,Z.find=er.find,Z.findIndex=be.findIndex,Z.findKey=Je.findKey,Z.findLast=er.findLast,Z.findLastIndex=be.findLastIndex,Z.findLastKey=Je.findLastKey,Z.floor=Do.floor,Z.forEach=er.forEach,Z.forEachRight=er.forEachRight,Z.forIn=Je.forIn,Z.forInRight=Je.forInRight,Z.forOwn=Je.forOwn,Z.forOwnRight=Je.forOwnRight,Z.get=Je.get,Z.gt=Le.gt,Z.gte=Le.gte,Z.has=Je.has,Z.hasIn=Je.hasIn,Z.head=be.head,Z.identity=Wo,Z.includes=er.includes,Z.indexOf=be.indexOf,Z.inRange=Rlt,Z.invoke=Je.invoke,Z.isArguments=Le.isArguments,Z.isArray=Ze,Z.isArrayBuffer=Le.isArrayBuffer,Z.isArrayLike=Le.isArrayLike,Z.isArrayLikeObject=Le.isArrayLikeObject,Z.isBoolean=Le.isBoolean,Z.isBuffer=Le.isBuffer,Z.isDate=Le.isDate,Z.isElement=Le.isElement,Z.isEmpty=Le.isEmpty,Z.isEqual=Le.isEqual,Z.isEqualWith=Le.isEqualWith,Z.isError=Le.isError,Z.isFinite=Le.isFinite,Z.isFunction=Le.isFunction,Z.isInteger=Le.isInteger,Z.isLength=Le.isLength,Z.isMap=Le.isMap,Z.isMatch=Le.isMatch,Z.isMatchWith=Le.isMatchWith,Z.isNaN=Le.isNaN,Z.isNative=Le.isNative,Z.isNil=Le.isNil,Z.isNull=Le.isNull,Z.isNumber=Le.isNumber,Z.isObject=Ar,Z.isObjectLike=Le.isObjectLike,Z.isPlainObject=Le.isPlainObject,Z.isRegExp=Le.isRegExp,Z.isSafeInteger=Le.isSafeInteger,Z.isSet=Le.isSet,Z.isString=Le.isString,Z.isSymbol=Le.isSymbol,Z.isTypedArray=Le.isTypedArray,Z.isUndefined=Le.isUndefined,Z.isWeakMap=Le.isWeakMap,Z.isWeakSet=Le.isWeakSet,Z.join=be.join,Z.kebabCase=zn.kebabCase,Z.last=Ie,Z.lastIndexOf=be.lastIndexOf,Z.lowerCase=zn.lowerCase,Z.lowerFirst=zn.lowerFirst,Z.lt=Le.lt,Z.lte=Le.lte,Z.max=Do.max,Z.maxBy=Do.maxBy,Z.mean=Do.mean,Z.meanBy=Do.meanBy,Z.min=Do.min,Z.minBy=Do.minBy,Z.stubArray=Hn.stubArray,Z.stubFalse=Hn.stubFalse,Z.stubObject=Hn.stubObject,Z.stubString=Hn.stubString,Z.stubTrue=Hn.stubTrue,Z.multiply=Do.multiply,Z.nth=be.nth,Z.noop=Hn.noop,Z.now=Plt.now,Z.pad=zn.pad,Z.padEnd=zn.padEnd,Z.padStart=zn.padStart,Z.parseInt=zn.parseInt,Z.random=Ilt,Z.reduce=er.reduce,Z.reduceRight=er.reduceRight,Z.repeat=zn.repeat,Z.replace=zn.replace,Z.result=Je.result,Z.round=Do.round,Z.sample=er.sample,Z.size=er.size,Z.snakeCase=zn.snakeCase,Z.some=er.some,Z.sortedIndex=be.sortedIndex,Z.sortedIndexBy=be.sortedIndexBy,Z.sortedIndexOf=be.sortedIndexOf,Z.sortedLastIndex=be.sortedLastIndex,Z.sortedLastIndexBy=be.sortedLastIndexBy,Z.sortedLastIndexOf=be.sortedLastIndexOf,Z.startCase=zn.startCase,Z.startsWith=zn.startsWith,Z.subtract=Do.subtract,Z.sum=Do.sum,Z.sumBy=Do.sumBy,Z.template=zn.template,Z.times=Hn.times,Z.toFinite=Le.toFinite,Z.toInteger=sn,Z.toLength=Le.toLength,Z.toLower=zn.toLower,Z.toNumber=Le.toNumber,Z.toSafeInteger=Le.toSafeInteger,Z.toString=Le.toString,Z.toUpper=zn.toUpper,Z.trim=zn.trim,Z.trimEnd=zn.trimEnd,Z.trimStart=zn.trimStart,Z.truncate=zn.truncate,Z.unescape=zn.unescape,Z.uniqueId=Hn.uniqueId,Z.upperCase=zn.upperCase,Z.upperFirst=zn.upperFirst,Z.each=er.forEach,Z.eachRight=er.forEachRight,Z.first=be.head,ly(Z,(uy={},ts(Z,function(e,t){TO.call(Z.prototype,t)||(uy[t]=e)}),uy),{chain:!1}),Z.VERSION="4.17.21",(Z.templateSettings=zn.templateSettings).imports._=Z,Oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Z[e].placeholder=Z}),Oi(["drop","take"],function(e,t){$n.prototype[e]=function(n){n=n===void 0?1:Blt(sn(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=IO(n,r.__takeCount__):r.__views__.push({size:IO(n,PO),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Oi(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==1||n==3;$n.prototype[e]=function(o){var i=this.clone();return i.__iteratees__.push({iteratee:Qe(o),type:n}),i.__filtered__=i.__filtered__||r,i}}),Oi(["head","last"],function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}}),Oi(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}}),$n.prototype.compact=function(){return this.filter(Wo)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=vn(function(e,t){return typeof e=="function"?new $n(this):this.map(function(n){return Ep(n,e,t)})}),$n.prototype.reject=function(e){return this.filter(Dh(Qe(e)))},$n.prototype.slice=function(e,t){e=sn(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(n=(t=sn(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(PO)},ts($n.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Z[r?"take"+(t=="last"?"Right":""):t],i=r||/^find/.test(t);o&&(Z.prototype[t]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof $n,u=s[0],l=c||Ze(a),f=function(g){var y=o.apply(Z,nu([g],s));return r&&d?y[0]:y};l&&n&&typeof u=="function"&&u.length!=1&&(c=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=i&&!d,v=c&&!h;if(!i&&l){a=v?a:new $n(this);var m=e.apply(a,s);return m.__actions__.push({func:zh,args:[f],thisArg:void 0}),new Fi(m,d)}return p&&v?e.apply(this,s):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})}),Oi(["pop","push","shift","sort","splice","unshift"],function(e){var t=Llt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Z.prototype[e]=function(){var o=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ze(i)?i:[],o)}return this[n](function(a){return t.apply(Ze(a)?a:[],o)})}}),ts($n.prototype,function(e,t){var n=Z[t];if(n){var r=n.name+"";TO.call(zl,r)||(zl[r]=[]),zl[r].push({name:t,func:n})}}),zl[vg(void 0,2).name]=[{name:"wrapper",func:void 0}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ze(e),r=t<0,o=n?e.length:0,i=function(x,k,j){for(var S=-1,N=j.length;++S<N;){var C=j[S],$=C.size;switch(C.type){case"drop":x+=$;break;case"dropRight":k-=$;break;case"take":k=Dlt(k,x+$);break;case"takeRight":x=Nlt(x,k-$)}}return{start:x,end:k}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,f=l.length,d=0,h=zlt(c,this.__takeCount__);if(!n||!r&&o==c&&h==c)return jL(e,this.__actions__);var p=[];t:for(;c--&&d<h;){for(var v=-1,m=e[u+=t];++v<f;){var g=l[v],y=g.iteratee,b=g.type,w=y(m);if(b==2)m=w;else if(!w){if(b==1)continue t;break t}}p[d++]=m}return p},Z.prototype.at=Ia.at,Z.prototype.chain=Ia.wrapperChain,Z.prototype.commit=Ia.commit,Z.prototype.next=Ia.next,Z.prototype.plant=Ia.plant,Z.prototype.reverse=Ia.reverse,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=Ia.value,Z.prototype.first=Z.prototype.head,RO&&(Z.prototype[RO]=Ia.toIterator);var Flt=1e4,qlt=[];function $w(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n={};if(!Array.isArray(e))throw new TypeError("Array expected");function r(a,s){(!Array.isArray(a)&&!pr(a)||t&&s.length>0)&&(n[oe(s)]=!0),pr(a)&&Object.keys(a).forEach(function(c){r(a[c],s.concat(c))})}for(var o=Math.min(e.length,Flt),i=0;i<o;i++)r(e[i],qlt);return Object.keys(n).sort().map(Ca)}function ML(e,t,n){if(!(t<=e))for(var r=e;r<t;r++)n(r)}function bg(e,t){return e.length>t?e.slice(0,t):e}function NO(e){return xt({},e)}function DO(e){return Object.values(e)}function zO(e,t,n,r){var o=e.slice(0),i=o.splice(t,n);return o.splice.apply(o,[t+r,0].concat(Se(i))),o}function Mp(e,t){try{return t.parse(e)}catch{return t.parse(Xa(e))}}function AL(e,t){try{return Mp(e,t)}catch{return}}function W0(e,t){e=e.replace(TL,"");try{return t(e)}catch{}try{return t("["+e+"]")}catch{}try{return t("{"+e+"}")}catch{}throw new Error("Failed to parse partial JSON")}function PL(e){e=e.replace(TL,"");try{return Xa(e)}catch{}try{var t=Xa("["+e+"]");return t.substring(1,t.length-1)}catch{}try{var n=Xa("{"+e+"}");return n.substring(1,n.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var TL=/,\s*$/;function Sf(e,t){var n=BO.exec(t);if(n){var r=jo(n[2]),o=function(h,p){for(var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h.length,g=0,y=v;y<m;y++)h.charAt(y)===p&&g++;return g}(e,`
49
+ `,0,r),i=r-e.lastIndexOf(`
50
+ `,r)-1;return{position:r,line:o,column:i,message:t.replace(BO,function(){return"line ".concat(o+1," column ").concat(i+1)})}}var a=Ult.exec(t),s=a?jo(a[1]):null,c=s!==null?s-1:null,u=Wlt.exec(t),l=u?jo(u[1]):null,f=l!==null?l-1:null,d=c!==null&&f!==null?function(h,p,v){for(var m=h.indexOf(`
51
+ `),g=1;g<p&&m!==-1;)m=h.indexOf(`
52
+ `,m+1),g++;return m!==-1?m+v+1:null}(e,c,f):null;return{position:d,line:c,column:f,message:t.replace(/^JSON.parse: /,"").replace(/ of the JSON data$/,"")}}function fy(e){return pr(e)?e.json!==void 0?e.text!==void 0?'Content must contain either a property "json" or a property "text" but not both':null:e.text===void 0?'Content must contain either a property "json" or a property "text"':typeof e.text!="string"?'Content "text" property must be a string containing a JSON document. Did you mean to use the "json" property instead?':null:"Content must be an object"}function $f(e){return pr(e)&&typeof e.text=="string"}function ij(e){return pr(e)&&e.json!==void 0&&!$f(e)}function Hlt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:JSON;return $f(e)?e:{text:n.stringify(e.json,null,t)}}function LO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:JSON;return ij(e)?e:{json:t.parse(e.text)}}function Cw(e,t,n){return Hlt(e,t,n).text}function RL(e,t){return Vlt(e,t)>t}function Vlt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0;if($f(e))return e.text.length;var n=e.json,r=0;return function o(i){if(Array.isArray(i)){if((r+=i.length-1+2)>t)return r;for(var a=0;a<i.length;a++)if(o(i[a]),r>t)return r}else if(pr(i)){var s=Object.keys(i);r+=2+s.length+(s.length-1);for(var c=0;c<s.length;c++){var u=s[c],l=i[u];r+=u.length+2,o(l)}}else r+=typeof i=="string"?i.length+2:String(i).length}(n),r}var BO=/(position|char) (\d+)/,Ult=/line (\d+)/,Wlt=/column (\d+)/;function Klt(e,t){return e.parse===t.parse&&e.stringify===t.stringify}function FO(e){return Jlt.test(e)&&e.length>2}var Jlt=/^[[{]\S/;function aj(e){var t=e.escapeControlCharacters,n=e.escapeUnicodeCharacters;return t?n?Glt:Qlt:n?Ylt:Xlt}var Glt={escapeValue:function(e){return IL(zL(String(e)))},unescapeValue:function(e){return LL(NL(e))}},Qlt={escapeValue:function(e){return zL(String(e))},unescapeValue:function(e){return LL(e)}},Ylt={escapeValue:function(e){return IL(String(e))},unescapeValue:function(e){return NL(e)}},Xlt={escapeValue:function(e){return String(e)},unescapeValue:function(e){return e}};function IL(e){return e.replace(/[^\x20-\x7F]/g,function(t){var n;return t==="\b"||t==="\f"||t===`
53
+ `||t==="\r"||t===" "?t:"\\u"+("000"+((n=t.codePointAt(0))===null||n===void 0?void 0:n.toString(16))).slice(-4)})}function NL(e){return e.replace(/\\u[a-fA-F0-9]{4}/g,function(t){try{var n=JSON.parse('"'+t+'"');return DL[n]||n}catch{return t}})}var DL={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Zlt={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
54
+ `,"\\r":"\r","\\t":" "};function zL(e){return e.replace(/["\b\f\n\r\t\\]/g,function(t){return DL[t]||t})}function LL(e){return e.replace(/\\["bfnrt\\]/g,function(t){return Zlt[t]||t})}function nl(e){return typeof e!="string"?String(e):e.endsWith(`
55
+ `)?e+`
56
+ `:e}function sj(e,t){return Ap(e,function(n){return n.nodeName.toUpperCase()===t.toUpperCase()})}function Pu(e,t,n){return Ap(e,function(r){return function(o,i,a){return typeof o.getAttribute=="function"&&o.getAttribute(i)===a}(r,t,n)})}function Ap(e,t){return!!cj(e,t)}function cj(e,t){for(var n=e;n&&!t(n);)n=n.parentNode;return n||void 0}function BL(e){if(e.firstChild!=null){var t=document.createRange(),n=window.getSelection();t.setStart(e,1),t.collapse(!0),n==null||n.removeAllRanges(),n==null||n.addRange(t)}else e.focus()}function wg(e,t,n,r){var o=rd(e);if(o){var i=o.document.activeElement?o.document.activeElement:null;i&&i.isContentEditable&&(i.textContent=n?t:i.textContent+t,console.log("UPDATED TEXT",n?t:i.textContent+t),BL(i),r&&r(i))}}function rd(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:null}function xg(e){var t=rd(e),n=t==null?void 0:t.document.activeElement;return!!n&&Ap(n,function(r){return r===e})}function FL(e,t){return cj(e,function(n){return n.nodeName===t})}function dy(e){return Pu(e,"data-type","selectable-key")?Bn.key:Pu(e,"data-type","selectable-value")?Bn.value:Pu(e,"data-type","insert-selection-area-inside")?Bn.inside:Pu(e,"data-type","insert-selection-area-after")?Bn.after:Bn.multi}function Cf(e){return encodeURIComponent(oe(e))}function qL(e){var t=cj(e,function(r){return!(r==null||!r.hasAttribute)&&r.hasAttribute("data-path")}),n=t==null?void 0:t.getAttribute("data-path");return n?Ca(decodeURIComponent(n)):null}function tft(e){var t=e.allElements,n=e.currentElement,r=e.direction,o=e.hasPrio,i=o===void 0?function(){return!0}:o,a=e.margin,s=a===void 0?10:a,c=$p(t.filter(function(y){var b=y.getBoundingClientRect();return b.width>0&&b.height>0}),l),u=l(n);function l(y){var b=y.getBoundingClientRect();return{x:b.left+b.width/2,y:b.top+b.height/2,rect:b,element:y}}function f(y,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=y.x-b.x,k=(y.y-b.y)*w;return Math.sqrt(x*x+k*k)}var d=function(y){return f(y,u)};if(r==="Left"||r==="Right"){var h=r==="Left"?c.filter(function(y){return function(b,w){return b.rect.left+s<w.rect.left}(y,u)}):c.filter(function(y){return function(b,w){return b.rect.right>w.rect.right+s}(y,u)}),p=h.filter(function(y){return function(b,w){return Math.abs(b.y-w.y)<s}(y,u)}),v=zd(p,d)||zd(h,function(y){return f(y,u,10)});return v==null?void 0:v.element}if(r==="Up"||r==="Down"){var m=r==="Up"?c.filter(function(y){return function(b,w){return b.y+s<w.y}(y,u)}):c.filter(function(y){return function(b,w){return b.y>w.y+s}(y,u)}),g=zd(m.filter(function(y){return i(y.element)}),d)||zd(m,d);return g==null?void 0:g.element}}function au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"+",n=[];e.ctrlKey&&n.push("Ctrl"),e.metaKey&&n.push("Ctrl"),e.altKey&&n.push("Alt"),e.shiftKey&&n.push("Shift");var r=e.key.length===1?e.key.toUpperCase():e.key;return r in eft||n.push(r),n.join(t)}var eft={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},hy=Xk.window;function nft(e){ze(e,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function qO(e){var t,n,r,o,i,a,s=[e[0].props],c=e[0].component;function u(l,f){var d={};if(f!==void 0&&1&f)d=Wi(s,[Yu(l[0].props)]);else for(var h=0;h<s.length;h+=1)d=oi(d,s[h]);return{props:d}}return c&&(o=ls(c,u(e))),{c:function(){t=et("div"),n=et("input"),r=kt(),o&&Pt(o.$$.fragment),E(n,"type","text"),n.readOnly=!0,E(n,"tabindex","-1"),E(n,"class","jse-hidden-input svelte-1r8q3m8"),E(t,"class","jse-absolute-popup-content svelte-1r8q3m8"),E(t,"style",i=HO(e[1],e[0].options))},m:function(l,f){dt(l,t,f),V(t,n),e[7](n),V(t,r),o&&Mt(o,t,null),a=!0},p:function(l,f){if(1&f&&c!==(c=l[0].component)){if(o){Bt();var d=o;U(d.$$.fragment,1,0,function(){At(d,1)}),Ft()}c?(Pt((o=ls(c,u(l,f))).$$.fragment),L(o.$$.fragment,1),Mt(o,t,null)):o=null}else if(c){var h=1&f?Wi(s,[Yu(l[0].props)]):{};o.$set(h)}(!a||3&f&&i!==(i=HO(l[1],l[0].options)))&&E(t,"style",i)},i:function(l){a||(o&&L(o.$$.fragment,l),a=!0)},o:function(l){o&&U(o.$$.fragment,l),a=!1},d:function(l){l&&lt(t),e[7](null),o&&At(o)}}}function rft(e){var t,n,r,o,i=e[1]&&qO(e);return{c:function(){t=et("div"),i&&i.c(),E(t,"role","none"),E(t,"class","jse-absolute-popup svelte-1r8q3m8")},m:function(a,s){dt(a,t,s),i&&i.m(t,null),e[8](t),n=!0,r||(o=[Lt(hy,"mousedown",e[3],!0),Lt(hy,"keydown",e[4],!0),Lt(hy,"wheel",e[5],!0),Lt(t,"mousedown",oft),Lt(t,"keydown",e[4])],r=!0)},p:function(a,s){var c=$e(s,1)[0];a[1]?i?(i.p(a,c),2&c&&L(i,1)):((i=qO(a)).c(),L(i,1),i.m(t,null)):i&&(Bt(),U(i,1,1,function(){i=null}),Ft())},i:function(a){n||(L(i),n=!0)},o:function(a){U(i),n=!1},d:function(a){a&&lt(t),i&&i.d(),e[8](null),r=!1,Fn(o)}}}function oft(e){e.stopPropagation()}function HO(e,t){var n=e.getBoundingClientRect(),r=function(){if(t.anchor){var c=t.anchor,u=t.width,l=u===void 0?0:u,f=t.height,d=f===void 0?0:f,h=t.offsetTop,p=h===void 0?0:h,v=t.offsetLeft,m=v===void 0?0:v,g=t.position,y=c.getBoundingClientRect(),b=y.left,w=y.top,x=y.bottom,k=y.right,j=g==="top"||w+d>window.innerHeight&&w>d,S=g==="left"||b+l>window.innerWidth&&b>l;return{left:S?k-m:b+m,top:j?w-p:x+p,positionAbove:j,positionLeft:S}}if(typeof t.left=="number"&&typeof t.top=="number"){var N=t.left,C=t.top,$=t.width,B=$===void 0?0:$,K=t.height,R=K===void 0?0:K;return{left:N,top:C,positionAbove:C+R>window.innerHeight&&C>R,positionLeft:N+B>window.innerWidth&&N>B}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),o=r.left,i=r.top,a=r.positionAbove,s=r.positionLeft;return(a?"bottom: ".concat(n.top-i,"px;"):"top: ".concat(i-n.top,"px;"))+(s?"right: ".concat(n.left-o,"px;"):"left: ".concat(o-n.left,"px;"))}function ift(e,t,n){var r,o,i=t.popup,a=t.closeAbsolutePopup;function s(c){i.options&&i.options.closeOnOuterClick&&!Ap(c.target,function(u){return u===r})&&a(i.id)}return Ui(function(){o&&o.focus()}),e.$$set=function(c){"popup"in c&&n(0,i=c.popup),"closeAbsolutePopup"in c&&n(6,a=c.closeAbsolutePopup)},[i,r,o,function(c){s(c)},function(c){au(c)==="Escape"&&a(i.id)},function(c){s(c)},a,function(c){rn[c?"unshift":"push"](function(){n(2,o=c)})},function(c){rn[c?"unshift":"push"](function(){n(1,r=c)})}]}var aft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,ift,rft,to,{popup:0,closeAbsolutePopup:6},nft),o}return ot(n)}();function VO(e,t,n){var r=e.slice();return r[6]=t[n],r}function UO(e){var t,n;return t=new aft({props:{popup:e[6],closeAbsolutePopup:e[1]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.popup=r[6]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function sft(e){for(var t,n,r=De(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=UO(VO(e,r,i));var a=function(u){return U(o[u],1,1,function(){o[u]=null})},s=e[3].default,c=Cr(s,e,e[2],null);return{c:function(){for(var u=0;u<o.length;u+=1)o[u].c();t=kt(),c&&c.c()},m:function(u,l){for(var f=0;f<o.length;f+=1)o[f]&&o[f].m(u,l);dt(u,t,l),c&&c.m(u,l),n=!0},p:function(u,l){var f=$e(l,1)[0];if(3&f){var d;for(r=De(u[0]),d=0;d<r.length;d+=1){var h=VO(u,r,d);o[d]?(o[d].p(h,f),L(o[d],1)):(o[d]=UO(h),o[d].c(),L(o[d],1),o[d].m(t.parentNode,t))}for(Bt(),d=r.length;d<o.length;d+=1)a(d);Ft()}c&&c.p&&(!n||4&f)&&Or(c,s,u,u[2],n?Er(s,u[2],f,null):Mr(u[2]),null)},i:function(u){if(!n){for(var l=0;l<r.length;l+=1)L(o[l]);L(c,u),n=!0}},o:function(u){o=o.filter(Boolean);for(var l=0;l<o.length;l+=1)U(o[l]);U(c,u),n=!1},d:function(u){u&&lt(t),Ir(o,u),c&&c.d(u)}}}function cft(e,t,n){var r=t.$$slots,o=r===void 0?{}:r,i=t.$$scope,a=ho("jsoneditor:AbsolutePopup"),s=[];function c(u){var l=s.findIndex(function(d){return d.id===u});if(l!==-1){var f=s[l];f.options.onClose&&f.options.onClose(),n(0,s=s.filter(function(d){return d.id!==u}))}}return qN("absolute-popup",{openAbsolutePopup:function(u,l,f){a("open...",l,f);var d={id:rh(),component:u,props:l||{},options:f||{}};return n(0,s=[].concat(Se(s),[d])),d.id},closeAbsolutePopup:c}),e.$$set=function(u){"$$scope"in u&&n(2,i=u.$$scope)},e.$$.update=function(){1&e.$$.dirty&&a("popups",s)},[s,c,i,o]}var HL=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,cft,sft,qe,{}),o}return ot(n)}();function ai(e){return e.map(function(t,n){return VL.test(t)?"["+t+"]":/[.[\]]/.test(t)||t===""?'["'+(t.replace(/"/g,'\\"')+'"]'):(n>0?".":"")+t}).join("")}function uft(e){for(var t=[],n=0;n<e.length;)e[n]==="."&&n++,e[n]==="["?(n++,e[n]==='"'?(n++,t.push(r(function(i){return i==='"'},!0)),o('"')):t.push(r(function(i){return i==="]"})),o("]")):t.push(r(function(i){return i==="."||i==="["}));function r(i){for(var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s="";n<e.length&&!i(e[n]);)a&&e[n]==="\\"&&e[n+1]==='"'?(s+='"',n+=2):(s+=e[n],n++);return s}function o(i){if(e[n]!==i)throw new SyntaxError("Invalid JSON path: ".concat(i," expected at position ").concat(n));n++}return t}function Ld(e){return{value:e,label:cn(e)?"(whole item)":ai(e)}}function pu(e){return e.map(function(t){return VL.test(t)?"?.[".concat(t,"]"):lft.test(t)?"?.".concat(t):"?.[".concat(JSON.stringify(t),"]")}).join("")}var lft=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,VL=/^\d+$/;function Pp(e,t){for(var n=new Set(t),r=e.replace(/ \(copy( \d+)?\)$/,""),o=e,i=1;n.has(o);){var a="copy"+(i>1?" "+i:"");o="".concat(r," (").concat(a,")"),i++}return o}function Us(e,t){var n=t-3;return e.length>t?e.substring(0,n)+"...":e}function fft(e){if(e==="")return"";var t=e.toLowerCase();if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t!=="undefined"){var n=Number(e),r=parseFloat(e);return isNaN(n)||isNaN(r)?e:n}}var dft={id:"javascript",name:"JavaScript",description:`
57
+ <p>
58
+ Enter a JavaScript function to filter, sort, or transform the data.
59
+ </p>
60
+ `,createQuery:function(e,t){var n=t.filter,r=t.sort,o=t.projection,i=[` return data
61
+ `];if(n&&n.path&&n.relation&&n.value){var a="item => item".concat(pu(n.path)),s=fft(n.value),c=typeof s=="string"?"'".concat(n.value,"'"):Dtt(n.value)&&!Number.isSafeInteger(s)?"".concat(n.value,"n"):n.value;i.push(" .filter(".concat(a," ").concat(n.relation," ").concat(c,`)
62
+ `))}if(r&&r.path&&r.direction&&(r.direction==="desc"?i.push(` .slice()
63
+ .sort((a, b) => {
64
+ // sort descending
65
+ `+" const valueA = a".concat(pu(r.path),`
66
+ `)+" const valueB = b".concat(pu(r.path),`
67
+ `)+` return valueA > valueB ? -1 : valueA < valueB ? 1 : 0
68
+ })
69
+ `):i.push(` .slice()
70
+ .sort((a, b) => {
71
+ // sort ascending
72
+ `+" const valueA = a".concat(pu(r.path),`
73
+ `)+" const valueB = b".concat(pu(r.path),`
74
+ `)+` return valueA > valueB ? 1 : valueA < valueB ? -1 : 0
75
+ })
76
+ `)),o&&o.paths)if(o.paths.length>1){var u=o.paths.map(function(f){var d=f[f.length-1]||"item",h="item".concat(pu(f));return" ".concat(JSON.stringify(d),": ").concat(h)});i.push(` .map(item => ({
77
+ `.concat(u.join(`,
78
+ `),`})
79
+ )
80
+ `))}else{var l="item".concat(pu(o.paths[0]));i.push(" .map(item => ".concat(l,`)
81
+ `))}return`function query (data) {
82
+ `.concat(i.join(""),"}")},executeQuery:function(e,t){var n=new Function(`"use strict";
83
+
84
+ `+t+`
85
+
86
+ if (typeof query !== "function") {
87
+ throw new Error("Cannot execute query: expecting a function named 'query' but is undefined")
88
+ }
89
+
90
+ return query;
91
+ `)()(e);return n!==void 0?n:null}},hft={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"]},Lh={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"]},Bh={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"]},pft={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 vft(e){var t;return{c:function(){t=ss("g")},m:function(n,r){dt(n,t,r),t.innerHTML=e[0]},p:function(n,r){1&$e(r,1)[0]&&(t.innerHTML=n[0])},i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function mft(e,t,n){var r=870711,o="",i=t.data;function a(s){if(!s||!s.raw)return"";var c=s.raw,u={};return c=c.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,function(l,f){var d="fa-".concat((r+=1).toString(16));return u[f]=d,' id="'.concat(d,'"')}),c=c.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,function(l,f,d,h){var p=f||h;return p&&u[p]?"#".concat(u[p]):l}),c}return e.$$set=function(s){"data"in s&&n(1,i=s.data)},e.$$.update=function(){2&e.$$.dirty&&n(0,o=a(i))},[o,i]}var gft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,mft,vft,to,{data:1}),o}return ot(n)}();function yft(e){ze(e,"svelte-1mc5hvj",".fa-icon.svelte-1mc5hvj{display:inline-block;fill:currentColor}.fa-flip-horizontal.svelte-1mc5hvj{transform:scale(-1, 1)}.fa-flip-vertical.svelte-1mc5hvj{transform:scale(1, -1)}.fa-spin.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s 0s infinite linear}.fa-inverse.svelte-1mc5hvj{color:#fff}.fa-pulse.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s infinite steps(8)}@keyframes svelte-1mc5hvj-fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function bft(e){for(var t,n,r,o,i=e[12].default,a=Cr(i,e,e[11],null),s=[{version:"1.1"},{class:n="fa-icon "+e[0]},{width:e[1]},{height:e[2]},{"aria-label":e[9]},{role:r=e[9]?"img":"presentation"},{viewBox:e[3]},{style:e[8]},e[10]],c={},u=0;u<s.length;u+=1)c=oi(c,s[u]);return{c:function(){t=ss("svg"),a&&a.c(),_f(t,c),Dt(t,"fa-spin",e[4]),Dt(t,"fa-pulse",e[6]),Dt(t,"fa-inverse",e[5]),Dt(t,"fa-flip-horizontal",e[7]==="horizontal"),Dt(t,"fa-flip-vertical",e[7]==="vertical"),Dt(t,"svelte-1mc5hvj",!0)},m:function(l,f){dt(l,t,f),a&&a.m(t,null),o=!0},p:function(l,f){var d=$e(f,1)[0];a&&a.p&&(!o||2048&d)&&Or(a,i,l,l[11],o?Er(i,l[11],d,null):Mr(l[11]),null),_f(t,c=Wi(s,[{version:"1.1"},(!o||1&d&&n!==(n="fa-icon "+l[0]))&&{class:n},(!o||2&d)&&{width:l[1]},(!o||4&d)&&{height:l[2]},(!o||512&d)&&{"aria-label":l[9]},(!o||512&d&&r!==(r=l[9]?"img":"presentation"))&&{role:r},(!o||8&d)&&{viewBox:l[3]},(!o||256&d)&&{style:l[8]},1024&d&&l[10]])),Dt(t,"fa-spin",l[4]),Dt(t,"fa-pulse",l[6]),Dt(t,"fa-inverse",l[5]),Dt(t,"fa-flip-horizontal",l[7]==="horizontal"),Dt(t,"fa-flip-vertical",l[7]==="vertical"),Dt(t,"svelte-1mc5hvj",!0)},i:function(l){o||(L(a,l),o=!0)},o:function(l){U(a,l),o=!1},d:function(l){l&&lt(t),a&&a.d(l)}}}function wft(e,t,n){var r=["class","width","height","box","spin","inverse","pulse","flip","style","label"],o=cg(t,r),i=t,a=i.$$slots,s=a===void 0?{}:a,c=i.$$scope,u=t.class,l=u===void 0?"":u,f=t.width,d=t.height,h=t.box,p=h===void 0?"0 0 0 0":h,v=t.spin,m=v!==void 0&&v,g=t.inverse,y=g!==void 0&&g,b=t.pulse,w=b!==void 0&&b,x=t.flip,k=x===void 0?"none":x,j=t.style,S=j===void 0?"":j,N=t.label,C=N===void 0?"":N;return e.$$set=function($){t=oi(oi({},t),NN($)),n(10,o=cg(t,r)),"class"in $&&n(0,l=$.class),"width"in $&&n(1,f=$.width),"height"in $&&n(2,d=$.height),"box"in $&&n(3,p=$.box),"spin"in $&&n(4,m=$.spin),"inverse"in $&&n(5,y=$.inverse),"pulse"in $&&n(6,w=$.pulse),"flip"in $&&n(7,k=$.flip),"style"in $&&n(8,S=$.style),"label"in $&&n(9,C=$.label),"$$scope"in $&&n(11,c=$.$$scope)},[l,f,d,p,m,y,w,k,S,C,o,c,s]}var xft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,wft,bft,to,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,style:8,label:9},yft),o}return ot(n)}();function WO(e,t,n){var r=e.slice();return r[24]=t[n],r}function KO(e,t,n){var r=e.slice();return r[27]=t[n],r}function JO(e){var t,n,r,o,i=e[6].paths&&GO(e),a=e[6].polygons&&YO(e),s=e[6].raw&&ZO(e);return{c:function(){i&&i.c(),t=kt(),a&&a.c(),n=kt(),s&&s.c(),r=_n()},m:function(c,u){i&&i.m(c,u),dt(c,t,u),a&&a.m(c,u),dt(c,n,u),s&&s.m(c,u),dt(c,r,u),o=!0},p:function(c,u){c[6].paths?i?i.p(c,u):((i=GO(c)).c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),c[6].polygons?a?a.p(c,u):((a=YO(c)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null),c[6].raw?s?(s.p(c,u),64&u&&L(s,1)):((s=ZO(c)).c(),L(s,1),s.m(r.parentNode,r)):s&&(Bt(),U(s,1,1,function(){s=null}),Ft())},i:function(c){o||(L(s),o=!0)},o:function(c){U(s),o=!1},d:function(c){c&&(lt(t),lt(n),lt(r)),i&&i.d(c),a&&a.d(c),s&&s.d(c)}}}function GO(e){for(var t,n=De(e[6].paths),r=[],o=0;o<n.length;o+=1)r[o]=QO(KO(e,n,o));return{c:function(){for(var i=0;i<r.length;i+=1)r[i].c();t=_n()},m:function(i,a){for(var s=0;s<r.length;s+=1)r[s]&&r[s].m(i,a);dt(i,t,a)},p:function(i,a){if(64&a){var s;for(n=De(i[6].paths),s=0;s<n.length;s+=1){var c=KO(i,n,s);r[s]?r[s].p(c,a):(r[s]=QO(c),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d:function(i){i&&lt(t),Ir(r,i)}}}function QO(e){for(var t,n=[e[27]],r={},o=0;o<n.length;o+=1)r=oi(r,n[o]);return{c:function(){_f(t=ss("path"),r)},m:function(i,a){dt(i,t,a)},p:function(i,a){_f(t,r=Wi(n,[64&a&&i[27]]))},d:function(i){i&&lt(t)}}}function YO(e){for(var t,n=De(e[6].polygons),r=[],o=0;o<n.length;o+=1)r[o]=XO(WO(e,n,o));return{c:function(){for(var i=0;i<r.length;i+=1)r[i].c();t=_n()},m:function(i,a){for(var s=0;s<r.length;s+=1)r[s]&&r[s].m(i,a);dt(i,t,a)},p:function(i,a){if(64&a){var s;for(n=De(i[6].polygons),s=0;s<n.length;s+=1){var c=WO(i,n,s);r[s]?r[s].p(c,a):(r[s]=XO(c),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d:function(i){i&&lt(t),Ir(r,i)}}}function XO(e){for(var t,n=[e[24]],r={},o=0;o<n.length;o+=1)r=oi(r,n[o]);return{c:function(){_f(t=ss("polygon"),r)},m:function(i,a){dt(i,t,a)},p:function(i,a){_f(t,r=Wi(n,[64&a&&i[24]]))},d:function(i){i&&lt(t)}}}function ZO(e){var t,n,r;function o(a){e[16](a)}var i={};return e[6]!==void 0&&(i.data=e[6]),t=new gft({props:i}),rn.push(function(){return da(t,"data",o)}),{c:function(){Pt(t.$$.fragment)},m:function(a,s){Mt(t,a,s),r=!0},p:function(a,s){var c={};!n&&64&s&&(n=!0,c.data=a[6],fa(function(){return n=!1})),t.$set(c)},i:function(a){r||(L(t.$$.fragment,a),r=!0)},o:function(a){U(t.$$.fragment,a),r=!1},d:function(a){At(t,a)}}}function kft(e){var t,n=e[15].default,r=Cr(n,e,e[17],null),o=r||function(i){var a,s,c=i[6]&&JO(i);return{c:function(){c&&c.c(),a=_n()},m:function(u,l){c&&c.m(u,l),dt(u,a,l),s=!0},p:function(u,l){u[6]?c?(c.p(u,l),64&l&&L(c,1)):((c=JO(u)).c(),L(c,1),c.m(a.parentNode,a)):c&&(Bt(),U(c,1,1,function(){c=null}),Ft())},i:function(u){s||(L(c),s=!0)},o:function(u){U(c),s=!1},d:function(u){u&&lt(a),c&&c.d(u)}}}(e);return{c:function(){o&&o.c()},m:function(i,a){o&&o.m(i,a),t=!0},p:function(i,a){r?r.p&&(!t||131072&a)&&Or(r,n,i,i[17],t?Er(n,i[17],a,null):Mr(i[17]),null):o&&o.p&&(!t||64&a)&&o.p(i,t?a:-1)},i:function(i){t||(L(o,i),t=!0)},o:function(i){U(o,i),t=!1},d:function(i){o&&o.d(i)}}}function jft(e){for(var t,n,r=[{label:e[5]},{width:e[7]},{height:e[8]},{box:e[10]},{style:e[9]},{spin:e[1]},{flip:e[4]},{inverse:e[2]},{pulse:e[3]},{class:e[0]},e[11]],o={$$slots:{default:[kft]},$$scope:{ctx:e}},i=0;i<r.length;i+=1)o=oi(o,r[i]);return t=new xft({props:o}),{c:function(){Pt(t.$$.fragment)},m:function(a,s){Mt(t,a,s),n=!0},p:function(a,s){var c=$e(s,1)[0],u=4031&c?Wi(r,[32&c&&{label:a[5]},128&c&&{width:a[7]},256&c&&{height:a[8]},1024&c&&{box:a[10]},512&c&&{style:a[9]},2&c&&{spin:a[1]},16&c&&{flip:a[4]},4&c&&{inverse:a[2]},8&c&&{pulse:a[3]},1&c&&{class:a[0]},2048&c&&Yu(a[11])]):{};131136&c&&(u.$$scope={dirty:c,ctx:a}),t.$set(u)},i:function(a){n||(L(t.$$.fragment,a),n=!0)},o:function(a){U(t.$$.fragment,a),n=!1},d:function(a){At(t,a)}}}function _ft(e,t,n){var r,o,i,a=["class","data","scale","spin","inverse","pulse","flip","label","style"],s=cg(t,a),c=t,u=c.$$slots,l=u===void 0?{}:u,f=c.$$scope,d=t.class,h=d===void 0?"":d,p=t.data,v=t.scale,m=v===void 0?1:v,g=t.spin,y=g!==void 0&&g,b=t.inverse,w=b!==void 0&&b,x=t.pulse,k=x!==void 0&&x,j=t.flip,S=j===void 0?void 0:j,N=t.label,C=N===void 0?"":N,$=t.style,B=$===void 0?"":$,K=10,R=10;function q(){var O=1;return m!==void 0&&(O=Number(m)),isNaN(O)||O<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*O}function F(){return r?Math.max(r.width,r.height)/16:1}return e.$$set=function(O){t=oi(oi({},t),NN(O)),n(11,s=cg(t,a)),"class"in O&&n(0,h=O.class),"data"in O&&n(12,p=O.data),"scale"in O&&n(13,m=O.scale),"spin"in O&&n(1,y=O.spin),"inverse"in O&&n(2,w=O.inverse),"pulse"in O&&n(3,k=O.pulse),"flip"in O&&n(4,S=O.flip),"label"in O&&n(5,C=O.label),"style"in O&&n(14,B=O.style),"$$scope"in O&&n(17,f=O.$$scope)},e.$$.update=function(){28672&e.$$.dirty&&(n(6,r=function(O){var A;if(O){if(!("definition"in O)){if("iconName"in O&&"icon"in O){O.iconName;var _=$e(O.icon,5),M=_[0],P=_[1],D=_[4];A={width:M,height:P,paths:(Array.isArray(D)?D:[D]).map(function(T){return{d:T}})}}else A=O[Object.keys(O)[0]];return A}console.error("`import faIconName from '@fortawesome/package-name/faIconName` not supported - Please use `import { faIconName } from '@fortawesome/package-name/faIconName'` instead")}}(p)),n(7,K=r?r.width/F()*q():0),n(8,R=r?r.height/F()*q():0),n(9,o=function(){var O="";B!==null&&(O+=B);var A=q();return A===1?O.length===0?"":O:(O===""||O.endsWith(";")||(O+="; "),"".concat(O,"font-size: ").concat(A,"em"))}()),n(10,i=r?"0 0 ".concat(r.width," ").concat(r.height):"0 0 ".concat(K," ").concat(R)))},[h,y,w,k,S,C,r,K,R,o,i,s,p,m,B,l,function(O){n(6,r=O),n(12,p),n(14,B),n(13,m)},f]}var hn=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,_ft,jft,to,{class:0,data:12,scale:13,spin:1,inverse:2,pulse:3,flip:4,label:5,style:14}),o}return ot(n)}();function Sft(e){ze(e,"svelte-1vj58yv",".jse-boolean-toggle.svelte-1vj58yv{padding:0;margin:1px 0 0;vertical-align:top;display:inline-flex;color:var(--jse-value-color-boolean)}.jse-boolean-toggle.svelte-1vj58yv:not(.jse-readonly){cursor:pointer}")}function $ft(e){var t,n,r,o,i,a,s;return n=new hn({props:{data:e[0]===!0?Lh:Bh}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"role","checkbox"),E(t,"tabindex","-1"),E(t,"aria-checked",r=e[0]===!0),E(t,"class","jse-boolean-toggle svelte-1vj58yv"),E(t,"title",o=e[1]?"Boolean value ".concat(e[0]):"Click to toggle this boolean value"),Dt(t,"jse-readonly",e[1])},m:function(c,u){dt(c,t,u),Mt(n,t,null),i=!0,a||(s=Lt(t,"mousedown",e[2]),a=!0)},p:function(c,u){var l=$e(u,1)[0],f={};1&l&&(f.data=c[0]===!0?Lh:Bh),n.$set(f),(!i||1&l&&r!==(r=c[0]===!0))&&E(t,"aria-checked",r),(!i||3&l&&o!==(o=c[1]?"Boolean value ".concat(c[0]):"Click to toggle this boolean value"))&&E(t,"title",o),(!i||2&l)&&Dt(t,"jse-readonly",c[1])},i:function(c){i||(L(n.$$.fragment,c),i=!0)},o:function(c){U(n.$$.fragment,c),i=!1},d:function(c){c&&lt(t),At(n),a=!1,s()}}}function Cft(e,t,n){var r=t.path,o=t.value,i=t.readOnly,a=t.onPatch,s=t.focus;return e.$$set=function(c){"path"in c&&n(3,r=c.path),"value"in c&&n(0,o=c.value),"readOnly"in c&&n(1,i=c.readOnly),"onPatch"in c&&n(4,a=c.onPatch),"focus"in c&&n(5,s=c.focus)},[o,i,function(c){c.stopPropagation(),i||(a([{op:"replace",path:oe(r),value:!o}]),setTimeout(s))},r,a,s]}var Eft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Cft,$ft,qe,{path:3,value:0,readOnly:1,onPatch:4,focus:5},Sft),o}return ot(n)}();function Oft(e){ze(e,"svelte-1gn8yt9",".jse-color-picker-popup.svelte-1gn8yt9 .picker_wrapper.popup,.jse-color-picker-popup.svelte-1gn8yt9 .picker_wrapper.popup .picker_arrow::before,.jse-color-picker-popup.svelte-1gn8yt9 .picker_wrapper.popup .picker_arrow::after{background:var(--jse-color-picker-background);line-height:normal}.jse-color-picker-popup.svelte-1gn8yt9 .picker_slider,.jse-color-picker-popup.svelte-1gn8yt9 .picker_sl,.jse-color-picker-popup.svelte-1gn8yt9 .picker_editor input,.jse-color-picker-popup.svelte-1gn8yt9 .picker_sample,.jse-color-picker-popup.svelte-1gn8yt9 .picker_done button{box-shadow:var(--jse-color-picker-border-box-shadow)}.jse-color-picker-popup.svelte-1gn8yt9 .picker_editor input{background:var(--jse-background-color);color:var(--jse-text-color)}.jse-color-picker-popup.svelte-1gn8yt9 .picker_done button{background:var(--jse-button-background);color:var(--jse-button-color)}.jse-color-picker-popup.svelte-1gn8yt9 .picker_done button:hover{background:var(--jse-button-background-highlight)}")}function Mft(e){var t;return{c:function(){E(t=et("div"),"class","jse-color-picker-popup svelte-1gn8yt9")},m:function(n,r){dt(n,t,r),e[4](t)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t),e[4](null)}}}function Aft(e,t,n){var r,o=t.color,i=t.onChange,a=t.showOnTop,s=function(){};return Ui(Ae(qt().mark(function c(){var u,l,f;return qt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Promise.resolve().then(function(){return c2t});case 2:if(d.t1=u=d.sent,d.t0=d.t1===null,d.t0){d.next=6;break}d.t0=u===void 0;case 6:if(!d.t0){d.next=10;break}d.t2=void 0,d.next=11;break;case 10:d.t2=u.default;case 11:l=d.t2,f=new l({parent:r,color:o,popup:a?"top":"bottom",onDone:function(h){var p=h.rgba[3]===1?h.hex.substring(0,7):h.hex;i(p)}}),f.show(),s=function(){f.destroy()};case 15:case"end":return d.stop()}},c)}))),yi(function(){s()}),e.$$set=function(c){"color"in c&&n(1,o=c.color),"onChange"in c&&n(2,i=c.onChange),"showOnTop"in c&&n(3,a=c.showOnTop)},[r,o,i,a,function(c){rn[c?"unshift":"push"](function(){n(0,r=c)})}]}var Pft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Aft,Mft,to,{color:1,onChange:2,showOnTop:3},Oft),o}return ot(n)}();function Tft(e){ze(e,"svelte-1nv0s05",".jse-color-picker-button.svelte-1nv0s05{font-size:var(--jse-font-size-mono);width:var(--jse-color-picker-button-size);height:var(--jse-color-picker-button-size);box-sizing:border-box;padding:0;margin:2px 0 0;display:inline-flex;vertical-align:top;border:1px solid var(--jse-text-color);border-radius:2px;background:inherit;outline:none}.jse-color-picker-button.svelte-1nv0s05:not(.jse-readonly){cursor:pointer}")}function Rft(e){var t,n,r,o;return{c:function(){E(t=et("button"),"type","button"),E(t,"class","jse-color-picker-button svelte-1nv0s05"),xc(t,"background",e[2]),E(t,"title",n=e[1]?"Color ".concat(e[0]):"Click to open a color picker"),Dt(t,"jse-readonly",e[1])},m:function(i,a){dt(i,t,a),r||(o=Lt(t,"click",e[3]),r=!0)},p:function(i,a){var s=$e(a,1)[0];4&s&&xc(t,"background",i[2]),3&s&&n!==(n=i[1]?"Color ".concat(i[0]):"Click to open a color picker")&&E(t,"title",n),2&s&&Dt(t,"jse-readonly",i[1])},i:Ht,o:Ht,d:function(i){i&&lt(t),r=!1,o()}}}function Ift(e,t,n){var r,o=fo("absolute-popup").openAbsolutePopup,i=t.path,a=t.value,s=t.readOnly,c=t.onPatch,u=t.focus;function l(d){c([{op:"replace",path:oe(i),value:d}]),f()}function f(){u()}return e.$$set=function(d){"path"in d&&n(4,i=d.path),"value"in d&&n(0,a=d.value),"readOnly"in d&&n(1,s=d.readOnly),"onPatch"in d&&n(5,c=d.onPatch),"focus"in d&&n(6,u=d.focus)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=lD(a))},[a,s,r,function(d){if(!s){var h=d.target.getBoundingClientRect().top,p=rd(d.target).innerHeight;o(Pft,{color:a,onChange:l,showOnTop:p-h<300&&h>300},{anchor:d.target,closeOnOuterClick:!0,onClose:f,offsetTop:18,offsetLeft:-8,height:300})}},i,c,u]}var Nft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ift,Rft,qe,{path:4,value:0,readOnly:1,onPatch:5,focus:6},Tft),o}return ot(n)}();function UL(e){for(var t=gL(e,function(s){return s.start}),n=[t[0]],r=0;r<t.length;r++){var o=n.length-1,i=n[o],a=t[r];a.start<=i.end?n[o]={start:Math.min(i.start,a.start),end:Math.max(i.end,a.end)}:n.push(a)}return n}function Dft(e,t){return e.some(function(n){return t>=n.start&&t<n.end})}function Ew(e){return kg(e)+Ph}function kg(e){return Math.floor(e/Ph)*Ph}function jg(e){var t={expandedMap:{},enforceStringMap:{},visibleSectionsMap:{},selection:{type:Bn.value,path:[],edit:!1},sortedColumn:null};return e!=null&&e.select&&e.json!==void 0&&(t=xt(xt({},t),{},{selection:e.select(e.json,t)})),e!=null&&e.expand&&(t=Mi(e.json,t,[],e.expand)),t}function K0(e,t){return e.visibleSectionsMap[t]||Xu}function uj(e,t,n){t.forEach(function(r){var o=r.start,i=r.end;ML(o,Math.min(e.length,i),n)})}function Ow(e,t,n){for(var r=xt({},t.expandedMap),o=xt({},t.visibleSectionsMap),i=0;i<n.length;i++){var a=n.slice(0,i),s=oe(a),c=fe(e,a);if(xr(c)&&(r[s]=!0),Array.isArray(c)&&i<n.length){var u=o[s]||Xu,l=jo(n[i]);if(!Dft(u,l)){var f=kg(l),d={start:f,end:Ew(f)};o[s]=UL(u.concat(d))}}}return xt(xt({},t),{},{expandedMap:r,visibleSectionsMap:o})}function Mi(e,t,n,r){var o=xt({},t.expandedMap),i=n.slice(),a=e!==void 0?fe(e,n):e;return a!==void 0&&function s(c){var u=i.length;if(Array.isArray(c)){if(r(i)){var l=oe(i);if(o[l]=!0,c.length>0){var f=K0(t,l);uj(c,f,function(m){i[u]=String(m),s(c[m])}),i.pop()}}}else if(pr(c)&&r(i)){o[oe(i)]=!0;var d=Object.keys(c);if(d.length>0){var h,p=ht(d);try{for(p.s();!(h=p.n()).done;){var v=h.value;i[u]=v,s(c[v])}}catch(m){p.e(m)}finally{p.f()}i.pop()}}}(a),xt(xt({},t),{},{expandedMap:o})}function t6(e,t){var n=tf(e.expandedMap,t),r=tf(e.enforceStringMap,t),o=tf(e.visibleSectionsMap,t);return xt(xt({},e),{},{expandedMap:n,enforceStringMap:r,visibleSectionsMap:o})}function WL(e,t,n){if(n){var r=xt({},e.enforceStringMap);return r[t]=n,xt(xt({},e),{},{enforceStringMap:r})}if(typeof e.enforceStringMap[t]=="boolean"){var o=xt({},e.enforceStringMap);return delete o[t],xt(xt({},e),{},{enforceStringMap:o})}return e}function KL(e,t,n){var r=xa(e,n),o=n.reduce(function(i,a){return QN(a)?e6(r,i,a):YN(a)?n6(r,i,a):i2(a)?function(s,c,u){var l=u.path,f=gy(s,c.expandedMap),d=gy(s,c.enforceStringMap),h=gy(s,c.visibleSectionsMap);return kr(u.value)||Un(u.value)||delete f[l],Un(u.value)||delete h[l],(kr(u.value)||Un(u.value))&&delete d[l],xt(xt({},c),{},{expandedMap:f,enforceStringMap:d,visibleSectionsMap:h})}(r,i,a):cw(a)||Xl(a)?function(s,c,u){if(Xl(u)&&u.from===u.path)return c;var l=function(y){return u.path+y.substring(u.from.length)},f=my(py(c.expandedMap,u.from),l),d=my(py(c.enforceStringMap,u.from),l),h=my(py(c.visibleSectionsMap,u.from),l),p=c;Xl(u)&&(p=n6(s,p,{op:"remove",path:u.from})),p=e6(s,p,{op:"add",path:u.path,value:null});var v=vy(p.expandedMap,f),m=vy(p.enforceStringMap,d),g=vy(p.visibleSectionsMap,h);return xt(xt({},c),{},{expandedMap:v,enforceStringMap:m,visibleSectionsMap:g})}(r,i,a):i},t);return{json:r,documentState:o}}function e6(e,t,n){var r=Ya(e,n.path),o=on(r),i=oe(o);if(Un(fe(e,o))){var a=jo(Ie(r)),s=ef(t.expandedMap,o,a,1),c=ef(t.enforceStringMap,o,a,1),u=ef(t.visibleSectionsMap,o,a,1);return u=JL(u,i,function(l){return GL(l,a,1)}),xt(xt({},t),{},{expandedMap:s,enforceStringMap:c,visibleSectionsMap:u})}return t}function n6(e,t,n){var r=Ya(e,n.path),o=on(r),i=oe(o),a=fe(e,o),s=t.expandedMap,c=t.enforceStringMap,u=t.visibleSectionsMap;if(s=tf(s,r),c=tf(c,r),u=tf(u,r),Un(a)){var l=jo(Ie(r));s=ef(s,o,l,-1),c=ef(c,o,l,-1),u=JL(u=ef(u,o,l,-1),i,function(f){return GL(f,l,-1)})}return xt(xt({},t),{},{expandedMap:s,enforceStringMap:c,visibleSectionsMap:u})}function tf(e,t){var n={},r=oe(t);return Object.keys(e).forEach(function(o){E0(o,r)||(n[o]=e[o])}),n}function py(e,t){var n={};return Object.keys(e).forEach(function(r){E0(r,t)&&(n[r]=e[r])}),n}function vy(e,t){return xt(xt({},e),t)}function my(e,t){var n={};return Object.keys(e).forEach(function(r){var o=t(r);n[o]=e[r]}),n}function ef(e,t,n,r){for(var o=t.length,i=oe(t),a=[],s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];if(E0(u,i)){var l=Ca(u),f=jo(l[o]);f>=n&&(l[o]=String(f+r),a.push({oldPointer:u,newPointer:oe(l),value:e[u]}))}}if(a.length===0)return e;var d=xt({},e);return a.forEach(function(h){delete d[h.oldPointer]}),a.forEach(function(h){d[h.newPointer]=h.value}),d}function gy(e,t){var n={};return Object.keys(t).filter(function(r){return Li(e,Ya(e,r))}).forEach(function(r){n[r]=t[r]}),n}function JL(e,t,n){var r=e[t];if(t in e){var o=n(r);if(!an(r,o)){var i=xt({},e);return o===void 0?delete i[t]:i[t]=o,i}}return e}function GL(e,t,n){return function(r){for(var o=r.slice(0),i=1;i<o.length;)o[i-1].end===o[i].start&&(o[i-1]={start:o[i-1].start,end:o[i].end},o.splice(i)),i++;return o}(e.map(function(r){return{start:r.start>t?r.start+n:r.start,end:r.end>t?r.end+n:r.end}}))}function Ws(e,t,n,r){var o=t?t[n]:void 0;return typeof o=="boolean"?o:function(i,a){return typeof i=="string"&&typeof Kf(i,a)!="string"}(e,r)}function Tp(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.indexOf(t);return r!==-1?n?e.slice(r):e.slice(r+1):[]}function lj(e,t){var n=[];return function r(o,i){n.push(i);var a=oe(i);if(o&&t.expandedMap[a]===!0){if(Un(o)){var s=K0(t,a);uj(o,s,function(c){r(o[c],i.concat(String(c)))})}kr(o)&&Object.keys(o).forEach(function(c){r(o[c],i.concat(c))})}}(e,[]),n}function QL(e,t){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=[];return function o(i,a){r.push({path:a,type:ha.value});var s=oe(a);if(i&&t.expandedMap[s]===!0){if(n&&r.push({path:a,type:ha.inside}),Un(i)){var c=K0(t,s);uj(i,c,function(u){var l=a.concat(String(u));o(i[u],l),n&&r.push({path:l,type:ha.after})})}kr(i)&&Object.keys(i).forEach(function(u){var l=a.concat(u);r.push({path:l,type:ha.key}),o(i[u],l),n&&r.push({path:l,type:ha.after})})}}(e,[]),r}function yy(e,t,n){var r=lj(e,t),o=r.map(oe).indexOf(oe(n));return o!==-1&&o<r.length-1?r[o+1]:null}function yc(e,t,n){var r=fe(e,n);return r===void 0?t:Mi(e,t,n,RL({json:r},GN)?Ja:ch)}function Ja(e){return e.length===0||e.length===1&&e[0]==="0"}function ch(){return!0}function pi(e){return e&&e.type===Bn.after||!1}function Vr(e){return e&&e.type===Bn.inside||!1}function Br(e){return e&&e.type===Bn.key||!1}function dn(e){return e&&e.type===Bn.value||!1}function Ln(e){return e&&e.type===Bn.multi||!1}function J0(e){return Ln(e)&&an(e.focusPath,e.anchorPath)}function Mw(e){return e&&e.type===Bn.text||!1}function Ac(e,t){var n=[];return function(r,o,i){if(o){var a=Fu(o),s=ge(o);if(an(a,s))return i(a);if(r!==void 0){var c=XL(a,s);if(a.length===c.length||s.length===c.length)return i(c);var u=Mo(a,s),l=Is(r,u),f=Pc(r,u),d=Bs(r,u,l),h=Bs(r,u,f);if(!(d===-1||h===-1)){var p=fe(r,c);if(kr(p)){for(var v=Object.keys(p),m=d;m<=h;m++){var g=i(c.concat(v[m]));if(g!==void 0)return g}return}if(Un(p)){for(var y=d;y<=h;y++){var b=i(c.concat(String(y)));if(b!==void 0)return b}return}throw new Error("Failed to create selection")}}}}(e,t,function(r){n.push(r)}),n}function YL(e){return Vr(e)?e.path:on(ge(e))}function Is(e,t){if(!Ln(t))return t.path;var n=Bs(e,t,t.anchorPath);return Bs(e,t,t.focusPath)<n?t.focusPath:t.anchorPath}function Pc(e,t){if(!Ln(t))return t.path;var n=Bs(e,t,t.anchorPath);return Bs(e,t,t.focusPath)>n?t.focusPath:t.anchorPath}function r6(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=t.selection;if(!r)return null;var o=n?ge(r):Is(e,r),i=function(s,c,u){var l=lj(s,c),f=l.map(oe),d=oe(u),h=f.indexOf(d);return h!==-1&&h>0?l[h-1]:null}(e,t,o);if(n)return Vr(r)||pi(r)?i!==null?Mo(o,o):null:i!==null?Mo(Fu(r),i):null;if(pi(r)||Vr(r))return Ue(o,!1);if(Br(r)){if(i==null||i.length===0)return null;var a=fe(e,on(i));return Array.isArray(a)||cn(i)?Ue(i,!1):Hi(i,!1)}return dn(r),i!==null?Ue(i,!1):null}function o6(e,t,n){var r=t.selection;if(!r)return{caret:null,previous:null,next:null};var o=QL(e,t,n),i=o.findIndex(function(a){return an(a.path,ge(r))&&String(a.type)===String(r.type)});return{caret:i!==-1?o[i]:null,previous:i!==-1&&i>0?o[i-1]:null,next:i!==-1&&i<o.length-1?o[i+1]:null}}function xl(e,t){for(var n=lj(e,t),r=0;r<n.length-1&&n[r+1].length>n[r].length;)r++;var o=n[r];return o===void 0||o.length===0||Array.isArray(fe(e,on(o)))?Ue(o,!1):Hi(o,!1)}function Ef(e,t){if(t.length===1){var n=ka(t);if(n.op==="replace")return Ue(Ya(e,n.path),!1)}if(!cn(t)&&t.every(function(a){return a.op==="move"})){var r=ka(t),o=t.slice(1);if((cw(r)||Xl(r))&&r.from!==r.path&&o.every(function(a){return(cw(a)||Xl(a))&&a.from===a.path}))return Hi(Ya(e,r.path),!1)}var i=t.filter(function(a){return a.op!=="test"&&a.op!=="remove"&&(a.op!=="move"||a.from!==a.path)&&typeof a.path=="string"}).map(function(a){return Ya(e,a.path)});return cn(i)?null:{type:Bn.multi,anchorPath:ka(i),focusPath:Ie(i)}}function XL(e,t){for(var n=0;n<e.length&&n<t.length&&e[n]===t[n];)n++;return e.slice(0,n)}function _g(e){return Br(e)||dn(e)||J0(e)}function i6(e,t){return _g(t)&&xr(fe(e,ge(t)))?ge(t):on(ge(t))}function Uc(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Co(e){var t=e.selection;return(Br(t)||dn(t))&&t.edit?xt(xt({},e),{},{selection:xt(xt({},t),{},{edit:!1})}):e}function Hi(e,t){return{type:Bn.key,path:e,edit:t}}function Ue(e,t){return{type:Bn.value,path:e,edit:t}}function Ks(e){return{type:Bn.inside,path:e}}function Ls(e){return{type:Bn.after,path:e}}function Mo(e,t){var n=XL(e,t),r=e.length>n.length&&t.length>n.length;return{type:Bn.multi,anchorPath:r?n.concat(e[n.length]):n,focusPath:r?n.concat(t[n.length]):n}}function ZL(e,t,n,r){if(Br(t))return String(Ie(t.path));if(dn(t)){var o=fe(e,t.path);return typeof o=="string"?o:r.stringify(o,null,n)}if(Ln(t)){if(cn(t.focusPath))return r.stringify(e,null,n);var i=YL(t),a=fe(e,i);if(Array.isArray(a)){if(J0(t)){var s=fe(e,t.focusPath);return r.stringify(s,null,n)}return Ac(e,t).map(function(c){var u=fe(e,c);return"".concat(r.stringify(u,null,n),",")}).join(`
92
+ `)}return Ac(e,t).map(function(c){var u=Ie(c),l=fe(e,c);return"".concat(r.stringify(u),": ").concat(r.stringify(l,null,n),",")}).join(`
93
+ `)}return null}function Gi(e){return(Br(e)||dn(e))&&e.edit===!0}function od(e){return Br(e)||dn(e)||Ln(e)}function km(e){return Br(e)||dn(e)||J0(e)}function Aw(e){switch(e.type){case ha.key:return Hi(e.path,!1);case ha.value:return Ue(e.path,!1);case ha.after:return Ls(e.path);case ha.inside:return Ks(e.path)}}function a6(e,t,n){switch(t){case Bn.key:return Hi(n,!1);case Bn.value:return Ue(n,!1);case Bn.after:return Ls(n);case Bn.inside:return Ks(n);case Bn.multi:case Bn.text:return Mo(n,n)}}function s6(e,t,n){return t&&(Fh(e,t,n)||Uc(Ln(t)?on(t.focusPath):t.path,n))?t:null}function Fh(e,t,n){if(e===void 0||!t)return!1;if(Br(t)||Vr(t)||pi(t))return an(t.path,n);if(dn(t))return Uc(n,t.path);if(Ln(t)){var r=Is(e,t),o=Pc(e,t),i=on(t.focusPath);if(!Uc(n,i)||n.length<=i.length)return!1;var a=Bs(e,t,r),s=Bs(e,t,o),c=Bs(e,t,n);return c!==-1&&c>=a&&c<=s}return!1}function Bs(e,t,n){var r=on(t.focusPath);if(!Uc(n,r)||n.length<=r.length)return-1;var o=n[r.length],i=fe(e,r);if(kr(i))return Object.keys(i).indexOf(o);if(Un(i)){var a=jo(o);if(a<i.length)return a}return-1}function ge(e){return Ln(e)?e.focusPath:e.path}function Fu(e){return Ln(e)?e.anchorPath:e.path}function ds(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(typeof a=="string"&&e.push(a),a&&ce(a)==="object")for(var s in a)Object.hasOwnProperty.call(a,s)&&a[s]&&e.push(s)}return e.join(" ")}function qh(e,t){return ds("jse-value","jse-"+d2(e,t),{"jse-url":O0(e),"jse-empty":typeof e=="string"&&e.length===0})}function zft(e){ze(e,"svelte-1iltvlj",".jse-value.jse-string.svelte-1iltvlj{color:var(--jse-value-color-string)}.jse-value.jse-object.svelte-1iltvlj,.jse-value.jse-array.svelte-1iltvlj{min-width:16px;color:var(--jse-delimiter-color)}.jse-value.jse-number.svelte-1iltvlj{color:var(--jse-value-color-number)}.jse-value.jse-boolean.svelte-1iltvlj{color:var(--jse-value-color-boolean)}.jse-value.jse-null.svelte-1iltvlj{color:var(--jse-value-color-null)}.jse-value.jse-invalid.svelte-1iltvlj{color:var(--jse-text-color)}.jse-value.jse-url.svelte-1iltvlj{color:var(--jse-value-color-url);text-decoration:underline}div.jse-editable-div.svelte-1iltvlj{min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;cursor:text !important;word-break:normal;white-space:pre-wrap;overflow-wrap:anywhere}div.jse-editable-div.jse-short-text.svelte-1iltvlj{overflow-wrap:normal}div.jse-editable-div[contenteditable=true].svelte-1iltvlj{outline:var(--jse-edit-outline);background:inherit !important;position:relative;border-radius:0;z-index:3}div.jse-editable-div.jse-empty.svelte-1iltvlj:not(:focus){outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}div.jse-editable-div.jse-empty.svelte-1iltvlj::after{pointer-events:none;color:var(--jse-tag-background)}")}function Lft(e){var t,n,r,o;return{c:function(){E(t=et("div"),"role","textbox"),E(t,"tabindex","0"),E(t,"class",n=dr(ds("jse-editable-div",e[2],{"jse-short-text":e[0]}))+" svelte-1iltvlj"),E(t,"contenteditable","true"),E(t,"spellcheck","false")},m:function(i,a){dt(i,t,a),e[13](t),r||(o=[Lt(t,"input",e[3]),Lt(t,"keydown",e[4]),Lt(t,"paste",e[5]),Lt(t,"blur",e[6])],r=!0)},p:function(i,a){5&$e(a,1)[0]&&n!==(n=dr(ds("jse-editable-div",i[2],{"jse-short-text":i[0]}))+" svelte-1iltvlj")&&E(t,"class",n)},i:Ht,o:Ht,d:function(i){i&&lt(t),e[13](null),r=!1,Fn(o)}}}function Bft(e,t,n){var r,o,i=ho("jsoneditor:EditableDiv"),a=t.value,s=t.shortText,c=s!==void 0&&s,u=t.onChange,l=t.onCancel,f=t.onFind,d=t.onPaste,h=d===void 0?Yn:d,p=t.onValueClass,v=p===void 0?function(){return""}:p,m=!1;function g(){return r?function(w){return w.replace(/\n$/,"")}(r.innerText):""}function y(w){r&&n(1,r.innerText=nl(w),r)}function b(){var w=g();w===""&&y(""),n(2,o=v(w))}return Ui(function(){i("onMount",{value:a}),y(a),setTimeout(function(){r&&(BL(r),n(1,r.refresh=b,r))})}),yi(function(){var w=g();i("onDestroy",{closed:m,value:a,newValue:w}),m||w===a||u(w,OZ)}),e.$$set=function(w){"value"in w&&n(7,a=w.value),"shortText"in w&&n(0,c=w.shortText),"onChange"in w&&n(8,u=w.onChange),"onCancel"in w&&n(9,l=w.onCancel),"onFind"in w&&n(10,f=w.onFind),"onPaste"in w&&n(11,h=w.onPaste),"onValueClass"in w&&n(12,v=w.onValueClass)},e.$$.update=function(){4224&e.$$.dirty&&n(2,o=v(a))},[c,r,o,b,function(w){w.stopPropagation();var x=au(w);if(x==="Escape"&&(m=!0,l()),x==="Enter"||x==="Tab"){m=!0;var k=g();u(k,o2)}x==="Ctrl+F"&&(w.preventDefault(),f(!1)),x==="Ctrl+H"&&(w.preventDefault(),f(!0))},function(w){if(w.stopPropagation(),h&&w.clipboardData){var x=w.clipboardData.getData("text/plain");h(x)}},function(){var w=document.hasFocus(),x=g();i("handleBlur",{hasFocus:w,closed:m,value:a,newValue:x}),document.hasFocus()&&!m&&(m=!0,x!==a?u(x,r2):l())},a,u,l,f,h,v,function(w){rn[w?"unshift":"push"](function(){n(1,r=w)})}]}var tB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Bft,Lft,qe,{value:7,shortText:0,onChange:8,onCancel:9,onFind:10,onPaste:11,onValueClass:12},zft),o}return ot(n)}();function Fft(e){var t,n;return t=new tB({props:{value:e[1].escapeValue(e[0]),onChange:e[3],onCancel:e[4],onPaste:e[5],onFind:e[2],onValueClass:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i=$e(o,1)[0],a={};3&i&&(a.value=r[1].escapeValue(r[0])),4&i&&(a.onFind=r[2]),t.$set(a)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function qft(e,t,n){var r=t.path,o=t.value,i=t.parser,a=t.normalization,s=t.enforceString,c=t.onPatch,u=t.onPasteJson,l=t.onSelect,f=t.onFind,d=t.focus,h=t.findNextInside;function p(v){return s?v:Kf(v,i)}return e.$$set=function(v){"path"in v&&n(7,r=v.path),"value"in v&&n(0,o=v.value),"parser"in v&&n(8,i=v.parser),"normalization"in v&&n(1,a=v.normalization),"enforceString"in v&&n(9,s=v.enforceString),"onPatch"in v&&n(10,c=v.onPatch),"onPasteJson"in v&&n(11,u=v.onPasteJson),"onSelect"in v&&n(12,l=v.onSelect),"onFind"in v&&n(2,f=v.onFind),"focus"in v&&n(13,d=v.focus),"findNextInside"in v&&n(14,h=v.findNextInside)},[o,a,f,function(v,m){c([{op:"replace",path:oe(r),value:p(a.unescapeValue(v))}],function(g,y){if(!y.selection||an(r,ge(y.selection))){var b=m===o2?h(r):Ue(r,!1);return{state:xt(xt({},y),{},{selection:b})}}}),m!==r2&&d()},function(){l(Ue(r,!1)),d()},function(v){try{var m=i.parse(v);xr(m)&&u({path:r,contents:m})}catch{}},function(v){return qh(p(a.unescapeValue(v)),i)},r,i,s,c,u,l,d,h]}var Hft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,qft,Fft,qe,{path:7,value:0,parser:8,normalization:1,enforceString:9,onPatch:10,onPasteJson:11,onSelect:12,onFind:2,focus:13,findNextInside:14}),o}return ot(n)}();function Ll(e,t,n){var r=on(t),o=fe(e,r);if(Un(o)){var i=jo(Ie(t));return n.map(function(u,l){return{op:"add",path:oe(r.concat(String(i+l))),value:u.value}})}if(kr(o)){var a=Ie(t),s=Object.keys(o),c=a!==void 0?Tp(s,a,!0):[];return[].concat(Se(n.map(function(u){var l=Pp(u.key,s);return{op:"add",path:oe(r.concat(l)),value:u.value}})),Se(c.map(function(u){return rl(r,u)})))}throw new Error("Cannot create insert operations: parent must be an Object or Array")}function Pw(e,t,n){var r=fe(e,t);if(Array.isArray(r)){var o=r.length;return n.map(function(i,a){return{op:"add",path:oe(t.concat(String(o+a))),value:i.value}})}return n.map(function(i){var a=Pp(i.key,Object.keys(r));return{op:"add",path:oe(t.concat(a)),value:i.value}})}function Rp(e,t,n,r){var o=Pp(r,t.filter(function(a){return a!==n})),i=Tp(t,n,!1);return[{op:"move",from:oe(e.concat(n)),path:oe(e.concat(o))}].concat(Se(i.map(function(a){return rl(e,a)})))}function eB(e,t){var n=Ie(t);if(cn(n))throw new Error("Cannot duplicate root object");var r=on(n),o=Ie(n),i=fe(e,r);if(Un(i)){var a=Ie(t),s=a?jo(Ie(a))+1:0;return Se(t.map(function(l,f){return{op:"copy",from:oe(l),path:oe(r.concat(String(f+s)))}}))}if(kr(i)){var c=Object.keys(i),u=o!==void 0?Tp(c,o,!1):[];return[].concat(Se(t.map(function(l){var f=Pp(Ie(l),c);return{op:"copy",from:oe(l),path:oe(r.concat(f))}})),Se(u.map(function(l){return rl(r,l)})))}throw new Error("Cannot create duplicate operations: parent must be an Object or Array")}function nB(e,t,n,r){if(Br(t)){var o=AL(n,r),i=on(t.path),a=fe(e,i);return Rp(i,Object.keys(a),Ie(t.path),typeof o=="string"?o:n)}if(dn(t)||Ln(t)&&cn(t.focusPath))try{return[{op:"replace",path:oe(ge(t)),value:W0(n,function(k){return Mp(k,r)})}]}catch{return[{op:"replace",path:oe(ge(t)),value:n}]}if(Ln(t)){var s=by(n,r);return function(k,j,S){var N=on(ka(j)),C=fe(k,N);if(Un(C)){var $=ka(j),B=$?jo(Ie($)):0;return[].concat(Se(Sg(j)),Se(S.map(function(M,P){return{op:"add",path:oe(N.concat(String(P+B))),value:M.value}})))}if(kr(C)){var K=Ie(j),R=on(K),q=Ie(K),F=Object.keys(C),O=q!==void 0?Tp(F,q,!1):[],A=new Set(j.map(function(M){return Ie(M)})),_=F.filter(function(M){return!A.has(M)});return[].concat(Se(Sg(j)),Se(S.map(function(M){var P=Pp(M.key,_);return{op:"add",path:oe(R.concat(P)),value:M.value}})),Se(O.map(function(M){return rl(R,M)})))}throw new Error("Cannot create replace operations: parent must be an Object or Array")}(e,Ac(e,t),s)}if(pi(t)){var c=by(n,r),u=t.path,l=on(u),f=fe(e,l);if(Un(f)){var d=jo(Ie(u));return Ll(e,l.concat(String(d+1)),c)}if(kr(f)){var h=String(Ie(u)),p=Object.keys(f);if(cn(p)||Ie(p)===h)return Pw(e,l,c);var v=p.indexOf(h),m=p[v+1];return Ll(e,l.concat(m),c)}throw new Error("Cannot create insert operations: parent must be an Object or Array")}if(Vr(t)){var g=by(n,r),y=t.path,b=fe(e,y);if(Un(b))return Ll(e,y.concat("0"),g);if(kr(b)){var w=Object.keys(b);if(cn(w))return Pw(e,y,g);var x=ka(w);return Ll(e,y.concat(x),g)}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(t))}function Sg(e){return e.map(function(t){return{op:"remove",path:oe(t)}}).reverse()}function rl(e,t){return{op:"move",from:oe(e.concat(t)),path:oe(e.concat(t))}}function by(e,t){var n=/^\s*{/.test(e),r=/^\s*\[/.test(e),o=AL(e,t),i=o!==void 0?o:W0(e,function(a){return Mp(a,t)});return n&&pr(i)||r&&Array.isArray(i)?[{key:"New item",value:i}]:Array.isArray(i)?i.map(function(a,s){return{key:"New item "+s,value:a}}):pr(i)?Object.keys(i).map(function(a){return{key:a,value:i[a]}}):[{key:"New item",value:i}]}function rB(e,t){if(Br(t)){var n=on(t.path),r=fe(e,n),o=Rp(n,Object.keys(r),Ie(t.path),"");return{operations:o,newSelection:Ef(e,o)}}if(dn(t))return{operations:[{op:"replace",path:oe(t.path),value:""}],newSelection:t};if(Ln(t)){var i=Ac(e,t),a=Sg(i),s=Ie(i);if(cn(s))return{operations:[{op:"replace",path:"",value:""}],newSelection:Ue([],!1)};var c=on(s),u=fe(e,c);if(Un(u)){var l=jo(Ie(ka(i)));return{operations:a,newSelection:l===0?Ks(c):Ls(c.concat(String(l-1)))}}if(kr(u)){var f=Object.keys(u),d=Ie(ka(i)),h=f.indexOf(d),p=f[h-1];return{operations:a,newSelection:h===0?Ks(c):Ls(c.concat(p))}}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(t))}function oB(e,t){return nD(e,t,{before:function(n,r,o){if(YN(r)){var i=Ca(r.path);return{revertOperations:[].concat(Se(o),Se(c6(n,i)))}}if(Xl(r)){var a=Ca(r.from);return{revertOperations:[].concat(Se(o),Se(c6(n,a)))}}return{revertOperations:o}}})}function c6(e,t){var n=on(t),r=Ie(t),o=fe(e,n);return kr(o)?Tp(Object.keys(o),r,!1).map(function(i){return rl(n,i)}):[]}function Vft(e){var t=e.activeIndex<e.items.length-1?e.activeIndex+1:e.items.length>0?0:-1,n=e.items[t],r=e.items.map(function(o,i){return xt(xt({},o),{},{active:i===t})});return xt(xt({},e),{},{items:r,itemsMap:Cp(r,function(o){return oe(o.path)}),activeItem:n,activeIndex:t})}function Uft(e){var t=e.activeIndex>0?e.activeIndex-1:e.items.length-1,n=e.items[t],r=e.items.map(function(o,i){return xt(xt({},o),{},{active:i===t})});return xt(xt({},e),{},{items:r,itemsMap:Cp(r,function(o){return oe(o.path)}),activeItem:n,activeIndex:t})}function iB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0,r=[],o=[];function i(a){r.length<n&&r.push(a)}return typeof e=="string"&&e!==""&&function a(s,c){if(Un(c)){var u=o.length;o.push("0");for(var l=0;l<c.length;l++)if(o[u]=String(l),a(s,c[l]),r.length>=n)return;o.pop()}else if(kr(c)){var f=Object.keys(c),d=o.length;o.push("");for(var h=0,p=f;h<p.length;h++){var v=p[h];if(o[d]=v,u6(v,s,o,wa.key,i),a(s,c[v]),r.length>=n)return}o.pop()}else u6(String(c),s,o,wa.value,i)}(e.toLowerCase(),t),r}function u6(e,t,n,r,o){var i=e.toLowerCase(),a=0,s=-1,c=-1;do(c=i.indexOf(t,s))!==-1&&(s=c+t.length,o({path:n.slice(0),field:r,fieldIndex:a,start:c,end:s}),a++);while(c!==-1)}function Tw(e,t,n,r){return e.substring(0,n)+t+e.substring(r)}function l6(e,t,n){var r=e;return ww(n,function(o){r=Tw(r,t,o.start,o.end)}),r}function Wft(e,t,n,r,o){var i=r.field,a=r.path,s=r.start,c=r.end;if(i===wa.key){var u=on(a),l=fe(e,u),f=Ie(a),d=Rp(u,Object.keys(l),f,Tw(f,n,s,c));return{newSelection:Ef(e,d),operations:d}}if(i===wa.value){var h=fe(e,a);if(h===void 0)throw new Error("Cannot replace: path not found ".concat(oe(a)));var p=typeof h=="string"?h:String(h),v=oe(a),m=Ws(h,t.enforceStringMap,v,o),g=Tw(p,n,s,c),y=[{op:"replace",path:oe(a),value:m?g:Kf(g,o)}];return{newSelection:Ef(e,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(i))}function Kft(e,t,n,r,o){for(var i=iB(n,e,1/0),a=[],s=0;s<i.length;s++){var c=i[s-1],u=i[s];s!==0&&u.field===c.field&&an(u.path,c.path)?Ie(a).items.push(u):a.push({path:u.path,field:u.field,items:[u]})}a.sort(function(d,h){return d.field!==h.field?d.field===wa.key?1:-1:h.path.length-d.path.length});var l=[],f=null;return a.forEach(function(d){var h=d.field,p=d.path,v=d.items;if(h===wa.key){var m=on(p),g=fe(e,m),y=Ie(p),b=Rp(m,Object.keys(g),y,l6(y,r,v));l=l.concat(b),f=Ef(e,b)}else{if(h!==wa.value)throw new Error("Cannot replace: unknown type of search result field ".concat(h));var w=fe(e,p);if(w===void 0)throw new Error("Cannot replace: path not found ".concat(oe(p)));var x=typeof w=="string"?w:String(w),k=oe(p),j=Ws(w,t.enforceStringMap,k,o),S=l6(x,r,v),N=[{op:"replace",path:oe(p),value:j?S:Kf(S,o)}];l=l.concat(N),f=Ef(e,N)}}),{operations:l,newSelection:f}}function f6(e){return e.path.concat(e.field,String(e.fieldIndex))}function Jft(e,t){var n,r=e==null||(n=e[t])===null||n===void 0?void 0:n.filter(function(o){return o.field===wa.key});if(r&&r.length!==0)return r}function d6(e,t){var n,r=e==null||(n=e[t])===null||n===void 0?void 0:n.filter(function(o){return o.field===wa.value});if(r&&r.length!==0)return r}function Gft(e){ze(e,"svelte-s6kbew",".jse-highlight.svelte-s6kbew{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-highlight.jse-active.svelte-s6kbew{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}")}function h6(e,t,n){var r=e.slice();return r[3]=t[n],r}function Qft(e){var t,n,r=nl(e[3].text)+"";return{c:function(){t=et("span"),n=Gt(r),E(t,"class","jse-highlight svelte-s6kbew"),Dt(t,"jse-active",e[3].active)},m:function(o,i){dt(o,t,i),V(t,n)},p:function(o,i){1&i&&r!==(r=nl(o[3].text)+"")&&we(n,r),1&i&&Dt(t,"jse-active",o[3].active)},d:function(o){o&&lt(t)}}}function Yft(e){var t,n=e[3].text+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=r[3].text+"")&&we(t,n)},d:function(r){r&&lt(t)}}}function p6(e){var t;function n(i,a){return i[3].type==="normal"?Yft:Qft}var r=n(e),o=r(e);return{c:function(){o.c(),t=_n()},m:function(i,a){o.m(i,a),dt(i,t,a)},p:function(i,a){r===(r=n(i))&&o?o.p(i,a):(o.d(1),(o=r(i))&&(o.c(),o.m(t.parentNode,t)))},d:function(i){i&&lt(t),o.d(i)}}}function Xft(e){for(var t,n=De(e[0]),r=[],o=0;o<n.length;o+=1)r[o]=p6(h6(e,n,o));return{c:function(){for(var i=0;i<r.length;i+=1)r[i].c();t=_n()},m:function(i,a){for(var s=0;s<r.length;s+=1)r[s]&&r[s].m(i,a);dt(i,t,a)},p:function(i,a){var s=$e(a,1)[0];if(1&s){var c;for(n=De(i[0]),c=0;c<n.length;c+=1){var u=h6(i,n,c);r[c]?r[c].p(u,s):(r[c]=p6(u),r[c].c(),r[c].m(t.parentNode,t))}for(;c<r.length;c+=1)r[c].d(1);r.length=n.length}},i:Ht,o:Ht,d:function(i){i&&lt(t),Ir(r,i)}}}function Zft(e,t,n){var r,o=t.text,i=t.searchResultItems;return e.$$set=function(a){"text"in a&&n(1,o=a.text),"searchResultItems"in a&&n(2,i=a.searchResultItems)},e.$$.update=function(){6&e.$$.dirty&&n(0,r=function(a,s){var c,u=[],l=0,f=ht(s);try{for(f.s();!(c=f.n()).done;){var d=c.value,h=a.slice(l,d.start);h!==""&&u.push({type:"normal",text:h,active:!1});var p=a.slice(d.start,d.end);u.push({type:"highlight",text:p,active:d.active}),l=d.end}}catch(m){f.e(m)}finally{f.f()}var v=Ie(s);return v&&v.end<a.length&&u.push({type:"normal",text:a.slice(v.end),active:!1}),u}(String(o),i))},[r,o,i]}var aB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Zft,Xft,to,{text:1,searchResultItems:2},Gft),o}return ot(n)}();function tdt(e){ze(e,"svelte-4unvg2",'.jse-value.jse-string.svelte-4unvg2{color:var(--jse-value-color-string)}.jse-value.jse-object.svelte-4unvg2,.jse-value.jse-array.svelte-4unvg2{min-width:16px;color:var(--jse-delimiter-color)}.jse-value.jse-number.svelte-4unvg2{color:var(--jse-value-color-number)}.jse-value.jse-boolean.svelte-4unvg2{color:var(--jse-value-color-boolean)}.jse-value.jse-null.svelte-4unvg2{color:var(--jse-value-color-null)}.jse-value.jse-invalid.svelte-4unvg2{color:var(--jse-text-color)}.jse-value.jse-url.svelte-4unvg2{color:var(--jse-value-color-url);text-decoration:underline}.jse-value.svelte-4unvg2{min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:anywhere;white-space:pre-wrap}.jse-value.svelte-4unvg2:hover{background:var(--jse-hover-background-color)}.jse-value.jse-empty.svelte-4unvg2{min-width:4em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-value.jse-empty.svelte-4unvg2::after{pointer-events:none;color:var(--jse-tag-background);content:"value"}')}function edt(e){var t,n=nl(e[1].escapeValue(e[0]))+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){3&o&&n!==(n=nl(r[1].escapeValue(r[0]))+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function ndt(e){var t,n;return t=new aB({props:{text:e[1].escapeValue(e[0]),searchResultItems:e[3]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};3&o&&(i.text=r[1].escapeValue(r[0])),8&o&&(i.searchResultItems=r[3]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function rdt(e){var t,n,r,o,i,a,s,c,u=[ndt,edt],l=[];function f(d,h){return d[3]?0:1}return n=f(e),r=l[n]=u[n](e),{c:function(){t=et("div"),r.c(),E(t,"role","button"),E(t,"tabindex","-1"),E(t,"data-type","selectable-value"),E(t,"class",o=dr(qh(e[0],e[2]))+" svelte-4unvg2"),E(t,"title",i=e[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null)},m:function(d,h){dt(d,t,h),l[n].m(t,null),a=!0,s||(c=[Lt(t,"click",e[5]),Lt(t,"dblclick",e[6])],s=!0)},p:function(d,h){var p=$e(h,1)[0],v=n;(n=f(d))===v?l[n].p(d,p):(Bt(),U(l[v],1,1,function(){l[v]=null}),Ft(),(r=l[n])?r.p(d,p):(r=l[n]=u[n](d)).c(),L(r,1),r.m(t,null)),(!a||5&p&&o!==(o=dr(qh(d[0],d[2]))+" svelte-4unvg2"))&&E(t,"class",o),(!a||16&p&&i!==(i=d[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null))&&E(t,"title",i)},i:function(d){a||(L(r),a=!0)},o:function(d){U(r),a=!1},d:function(d){d&&lt(t),l[n].d(),s=!1,Fn(c)}}}function odt(e,t,n){var r,o=t.path,i=t.value,a=t.readOnly,s=t.normalization,c=t.parser,u=t.onSelect,l=t.searchResultItems;return e.$$set=function(f){"path"in f&&n(7,o=f.path),"value"in f&&n(0,i=f.value),"readOnly"in f&&n(8,a=f.readOnly),"normalization"in f&&n(1,s=f.normalization),"parser"in f&&n(2,c=f.parser),"onSelect"in f&&n(9,u=f.onSelect),"searchResultItems"in f&&n(3,l=f.searchResultItems)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=O0(i))},[i,s,c,l,r,function(f){typeof i=="string"&&r&&f.ctrlKey&&(f.preventDefault(),f.stopPropagation(),window.open(i,"_blank"))},function(f){a||(f.preventDefault(),u(Ue(o,!0)))},o,a,u]}var idt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,odt,rdt,qe,{path:7,value:0,readOnly:8,normalization:1,parser:2,onSelect:9,searchResultItems:3},tdt),o}return ot(n)}();function adt(e){ze(e,"svelte-r4omvg",".jse-tooltip.svelte-r4omvg{font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);border-radius:3px;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);white-space:nowrap;box-shadow:var(--jse-controls-box-shadow)}")}function sdt(e){var t,n;return{c:function(){t=et("div"),n=Gt(e[0]),E(t,"class","jse-tooltip svelte-r4omvg")},m:function(r,o){dt(r,t,o),V(t,n)},p:function(r,o){1&$e(o,1)[0]&&we(n,r[0])},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function cdt(e,t,n){var r=t.text;return e.$$set=function(o){"text"in o&&n(0,r=o.text)},[r]}var udt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,cdt,sdt,to,{text:0},adt),o}return ot(n)}();function fj(e,t){var n,r=t.text,o=t.openAbsolutePopup,i=t.closeAbsolutePopup;function a(){n=o(udt,{text:r},{position:"top",width:10*r.length,offsetTop:3,anchor:e,closeOnOuterClick:!0})}function s(){i(n)}return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",s),{destroy:function(){e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",s)}}}function ldt(e){ze(e,"svelte-1w5pf7",".jse-timestamp.svelte-1w5pf7{padding:0;margin:0;vertical-align:middle;display:inline-flex;color:var(--jse-value-color-number)}")}function fdt(e){var t,n,r,o,i,a;return n=new hn({props:{data:pft}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-timestamp svelte-1w5pf7")},m:function(s,c){dt(s,t,c),Mt(n,t,null),o=!0,i||(a=lo(r=fj.call(null,t,xt({text:e[0]},e[1]))),i=!0)},p:function(s,c){var u=$e(c,1)[0];r&&co(r.update)&&1&u&&r.update.call(null,xt({text:s[0]},s[1]))},i:function(s){o||(L(n.$$.fragment,s),o=!0)},o:function(s){U(n.$$.fragment,s),o=!1},d:function(s){s&&lt(t),At(n),i=!1,a()}}}function ddt(e,t,n){var r,o=fo("absolute-popup"),i=t.value;return e.$$set=function(a){"value"in a&&n(2,i=a.value)},e.$$.update=function(){4&e.$$.dirty&&n(0,r="Time: ".concat(new Date(i).toString()))},[r,o,i]}var hdt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,ddt,fdt,qe,{value:2},ldt),o}return ot(n)}();function pdt(e){var t=e.path,n=e.value,r=e.readOnly,o=e.enforceString,i=e.searchResultItems,a=e.isEditing,s=e.parser,c=e.normalization,u=e.onPatch,l=e.onPasteJson,f=e.onSelect,d=e.onFind,h=e.findNextInside,p=e.focus,v=[];return!a&&function(m){return m===!0||m===!1}(n)&&v.push({component:Eft,props:{path:t,value:n,readOnly:r,onPatch:u,focus:p}}),!a&&function(m){return typeof m=="string"&&!!lD(m)}(n)&&v.push({component:Nft,props:{path:t,value:n,readOnly:r,onPatch:u,focus:p}}),a&&v.push({component:Hft,props:{path:t,value:n,enforceString:o,parser:s,normalization:c,onPatch:u,onPasteJson:l,onSelect:f,onFind:d,findNextInside:h,focus:p}}),a||v.push({component:idt,props:{path:t,value:n,readOnly:r,parser:s,normalization:c,searchResultItems:i,onSelect:f}}),!a&&dw(n)&&v.push({component:hdt,props:{value:n}}),v}var Rw={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"]},kc={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"]},sB={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-48V256H416c-17.7 0-32-14.3-32-32V128H320 272zM160 40a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm256 88v96h96l-96-96z"]},vdt={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"]},nf={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"]},mdt={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"]},gdt={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"]},v6={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"]},ydt={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"]},cB={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"]},bdt={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"]},m6={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"]},G0={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"]},Wc={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"]},Q0={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"]},wdt={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"]},rf={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"]},dj={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"]},hj={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"]},xdt={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"]},kdt={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"]},Ri={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"]},uB={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"]},gv={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"]},Y0={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"]},jdt={prefix:"fas",iconName:"angle-down",icon:[448,512,[8964],"f107","M201.4 342.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 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},_dt={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"]},pj={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"]},Sdt={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"]},Tc={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"]},Bl={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"]},lB={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"]},g6=lB,Of=lB,$dt={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"]},fB={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"]},Hh={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"]},hl={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"]},ta={};function X0(e){return e.split("-")[1]}function dB(e){return e==="y"?"height":"width"}function qu(e){return e.split("-")[0]}function Z0(e){return["top","bottom"].includes(qu(e))?"x":"y"}function y6(e,t,n){var r,o=e.reference,i=e.floating,a=o.x+o.width/2-i.width/2,s=o.y+o.height/2-i.height/2,c=Z0(t),u=dB(c),l=o[u]/2-i[u]/2,f=c==="x";switch(qu(t)){case"top":r={x:a,y:o.y-i.height};break;case"bottom":r={x:a,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:s};break;case"left":r={x:o.x-i.width,y:s};break;default:r={x:o.x,y:o.y}}switch(X0(t)){case"start":r[c]-=l*(n&&f?-1:1);break;case"end":r[c]+=l*(n&&f?-1:1)}return r}var Cdt=function(){var e=Ae(qt().mark(function t(n,r,o){var i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K,R;return qt().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return i=o.placement,a=i===void 0?"bottom":i,s=o.strategy,c=s===void 0?"absolute":s,u=o.middleware,l=u===void 0?[]:u,f=o.platform,d=l.filter(Boolean),q.next=10,f.isRTL==null?void 0:f.isRTL(r);case 10:return h=q.sent,q.next=13,f.getElementRects({reference:n,floating:r,strategy:c});case 13:p=q.sent,v=y6(p,a,h),m=v.x,g=v.y,y=a,b={},w=0,x=0;case 21:if(!(x<d.length)){q.next=56;break}return j=d[x],S=j.name,N=j.fn,q.next=27,N({x:m,y:g,initialPlacement:a,placement:y,strategy:c,middlewareData:b,rects:p,platform:f,elements:{reference:n,floating:r}});case 27:if(C=q.sent,$=C.x,B=C.y,K=C.data,R=C.reset,m=$??m,g=B??g,b=xt(xt({},b),{},Vo({},S,xt(xt({},b[S]),K))),q.t0=R&&w<=50,!q.t0){q.next=53;break}if(w++,q.t1=ce(R)=="object",!q.t1){q.next=52;break}if(R.placement&&(y=R.placement),q.t2=R.rects,!q.t2){q.next=51;break}if(R.rects!==!0){q.next=49;break}return q.next=46,f.getElementRects({reference:n,floating:r,strategy:c});case 46:q.t3=q.sent,q.next=50;break;case 49:q.t3=R.rects;case 50:p=q.t3;case 51:k=y6(p,y,h),m=k.x,g=k.y;case 52:x=-1;case 53:x++,q.next=21;break;case 56:return q.abrupt("return",{x:m,y:g,placement:y,strategy:c,middlewareData:b});case 57:case"end":return q.stop()}},t)}));return function(t,n,r){return e.apply(this,arguments)}}();function Edt(e){return typeof e!="number"?function(t){return xt({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function Iw(e){return xt(xt({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function hB(e,t){return Nw.apply(this,arguments)}function Nw(){return Nw=Ae(qt().mark(function e(t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C;return qt().wrap(function($){for(;;)switch($.prev=$.next){case 0:return n===void 0&&(n={}),o=t.x,i=t.y,a=t.platform,s=t.rects,c=t.elements,u=t.strategy,f=(l=n).boundary,d=f===void 0?"clippingAncestors":f,h=l.rootBoundary,p=h===void 0?"viewport":h,v=l.elementContext,m=v===void 0?"floating":v,g=l.altBoundary,y=g!==void 0&&g,b=l.padding,w=Edt(b===void 0?0:b),x=c[y?m==="floating"?"reference":"floating":m],$.t0=Iw,$.t1=a,$.next=24,a.isElement==null?void 0:a.isElement(x);case 24:if($.t3=r=$.sent,$.t2=$.t3==null,$.t2){$.next=28;break}$.t2=r;case 28:if(!$.t2){$.next=32;break}$.t4=x,$.next=38;break;case 32:if($.t5=x.contextElement,$.t5){$.next=37;break}return $.next=36,a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating);case 36:$.t5=$.sent;case 37:$.t4=$.t5;case 38:return $.t6=$.t4,$.t7=d,$.t8=p,$.t9=u,$.t10={element:$.t6,boundary:$.t7,rootBoundary:$.t8,strategy:$.t9},$.next=45,$.t1.getClippingRect.call($.t1,$.t10);case 45:return $.t11=$.sent,k=(0,$.t0)($.t11),j=m==="floating"?xt(xt({},s.floating),{},{x:o,y:i}):s.reference,$.next=50,a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating);case 50:return S=$.sent,$.next=53,a.isElement==null?void 0:a.isElement(S);case 53:if($.t13=$.sent,!$.t13){$.next=58;break}return $.next=57,a.getScale==null?void 0:a.getScale(S);case 57:$.t13=$.sent;case 58:if($.t12=$.t13,$.t12){$.next=61;break}$.t12={x:1,y:1};case 61:if(N=$.t12,$.t14=Iw,!a.convertOffsetParentRelativeRectToViewportRelativeRect){$.next=69;break}return $.next=66,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:S,strategy:u});case 66:$.t15=$.sent,$.next=70;break;case 69:$.t15=j;case 70:return $.t16=$.t15,C=(0,$.t14)($.t16),$.abrupt("return",{top:(k.top-C.top+w.top)/N.y,bottom:(C.bottom-k.bottom+w.bottom)/N.y,left:(k.left-C.left+w.left)/N.x,right:(C.right-k.right+w.right)/N.x});case 73:case"end":return $.stop()}},e)})),Nw.apply(this,arguments)}var Odt=Math.min,Mdt=Math.max;function b6(e,t,n){return Mdt(e,Odt(t,n))}["top","right","bottom","left"].reduce(function(e,t){return e.concat(t,t+"-start",t+"-end")},[]);var Adt={left:"right",right:"left",bottom:"top",top:"bottom"};function $g(e){return e.replace(/left|right|bottom|top/g,function(t){return Adt[t]})}function Pdt(e,t,n){n===void 0&&(n=!1);var r=X0(e),o=Z0(e),i=dB(o),a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$g(a)),{main:a,cross:$g(a)}}var Tdt={start:"end",end:"start"};function wy(e){return e.replace(/start|end/g,function(t){return Tdt[t]})}var Rdt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn:function(t){return Ae(qt().mark(function n(){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K,R,q,F,O,A,_,M,P,D,T,H;return qt().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return o=t.placement,i=t.middlewareData,a=t.rects,s=t.initialPlacement,c=t.platform,u=t.elements,f=(l=e).mainAxis,d=f===void 0||f,h=l.crossAxis,p=h===void 0||h,v=l.fallbackPlacements,m=l.fallbackStrategy,g=m===void 0?"bestFit":m,y=l.fallbackAxisSideDirection,b=y===void 0?"none":y,w=l.flipAlignment,x=w===void 0||w,k=CN(l,oZ),j=qu(o),S=qu(s)===s,I.next=23,c.isRTL==null?void 0:c.isRTL(u.floating);case 23:return N=I.sent,C=v||(S||!x?[$g(s)]:function(ft){var tt=$g(ft);return[wy(ft),tt,wy(tt)]}(s)),v||b==="none"||C.push.apply(C,Se(function(ft,tt,yt,bt){var jt=X0(ft),gt=function(Y,J,it){var X=["left","right"],_t=["right","left"];switch(Y){case"top":case"bottom":return it?J?_t:X:J?X:_t;case"left":case"right":return J?["top","bottom"]:["bottom","top"];default:return[]}}(qu(ft),yt==="start",bt);return jt&&(gt=gt.map(function(Y){return Y+"-"+jt}),tt&&(gt=gt.concat(gt.map(wy)))),gt}(s,x,b,N))),$=[s].concat(Se(C)),I.next=29,hB(t,k);case 29:if(B=I.sent,K=[],R=((r=i.flip)==null?void 0:r.overflows)||[],d&&K.push(B[j]),p&&(q=Pdt(o,a,N),F=q.main,O=q.cross,K.push(B[F],B[O])),R=[].concat(Se(R),[{placement:o,overflows:K}]),K.every(function(ft){return ft<=0})){I.next=48;break}if(M=(((A=i.flip)==null?void 0:A.index)||0)+1,!(P=$[M])){I.next=37;break}return I.abrupt("return",{data:{index:M,overflows:R},reset:{placement:P}});case 37:if(D=(_=R.filter(function(ft){return ft.overflows[0]<=0}).sort(function(ft,tt){return ft.overflows[1]-tt.overflows[1]})[0])==null?void 0:_.placement,D){I.next=46;break}I.t0=g,I.next=I.t0==="bestFit"?42:I.t0==="initialPlacement"?45:46;break;case 42:return H=(T=R.map(function(ft){return[ft.placement,ft.overflows.filter(function(tt){return tt>0}).reduce(function(tt,yt){return tt+yt},0)]}).sort(function(ft,tt){return ft[1]-tt[1]})[0])==null?void 0:T[0],H&&(D=H),I.abrupt("break",46);case 45:D=s;case 46:if(o===D){I.next=48;break}return I.abrupt("return",{reset:{placement:D}});case 48:return I.abrupt("return",{});case 49:case"end":return I.stop()}},n)}))()}}},Idt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn:function(t){return Ae(qt().mark(function n(){var r,o,i;return qt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=t.x,o=t.y,a.next=4,function(){var s=Ae(qt().mark(function c(u,l){var f,d,h,p,v,m,g,y,b,w,x,k,j,S;return qt().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return f=u.placement,d=u.platform,h=u.elements,N.next=5,d.isRTL==null?void 0:d.isRTL(h.floating);case 5:return p=N.sent,v=qu(f),m=X0(f),g=Z0(f)==="x",y=["left","top"].includes(v)?-1:1,b=p&&g?-1:1,w=typeof l=="function"?l(u):l,x=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:xt({mainAxis:0,crossAxis:0,alignmentAxis:null},w),k=x.mainAxis,j=x.crossAxis,S=x.alignmentAxis,N.abrupt("return",(m&&typeof S=="number"&&(j=m==="end"?-1*S:S),g?{x:j*b,y:k*y}:{x:k*y,y:j*b}));case 14:case"end":return N.stop()}},c)}));return function(c,u){return s.apply(this,arguments)}}()(t,e);case 4:return i=a.sent,a.abrupt("return",{x:r+i.x,y:o+i.y,data:i});case 6:case"end":return a.stop()}},n)}))()}}};function Ndt(e){return e==="x"?"y":"x"}var Ddt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn:function(t){return Ae(qt().mark(function n(){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j;return qt().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return o=t.x,i=t.y,a=t.placement,c=(s=e).mainAxis,u=c===void 0||c,l=s.crossAxis,f=l!==void 0&&l,d=s.limiter,h=d===void 0?{fn:function(N){return{x:N.x,y:N.y}}}:d,p=CN(s,iZ),v={x:o,y:i},S.next=14,hB(t,p);case 14:return m=S.sent,g=Z0(qu(a)),y=Ndt(g),b=v[g],w=v[y],u&&(x=g==="y"?"bottom":"right",b=b6(b+m[g==="y"?"top":"left"],b,b-m[x])),f&&(k=y==="y"?"bottom":"right",w=b6(w+m[y==="y"?"top":"left"],w,w-m[k])),j=h.fn(xt(xt({},t),{},(Vo(r={},g,b),Vo(r,y,w),r))),S.abrupt("return",xt(xt({},j),{},{data:{x:j.x-o,y:j.y-i}}));case 22:case"end":return S.stop()}},n)}))()}}};function vi(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function es(e){return vi(e).getComputedStyle(e)}var xy,w6=Math.min,uh=Math.max,Cg=Math.round;function pB(e){var t=es(e),n=parseFloat(t.width),r=parseFloat(t.height),o=e.offsetWidth,i=e.offsetHeight,a=Cg(n)!==o||Cg(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function Kc(e){return mB(e)?(e.nodeName||"").toLowerCase():""}function vB(){if(xy)return xy;var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?xy=e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ns(e){return e instanceof vi(e).HTMLElement}function ja(e){return e instanceof vi(e).Element}function mB(e){return e instanceof vi(e).Node}function x6(e){return typeof ShadowRoot<"u"&&(e instanceof vi(e).ShadowRoot||e instanceof ShadowRoot)}function t1(e){var t=es(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(i)}function zdt(e){return["table","td","th"].includes(Kc(e))}function Dw(e){var t=/firefox/i.test(vB()),n=es(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(function(o){return n.willChange.includes(o)})||["paint","layout","strict","content"].some(function(o){var i=n.contain;return i!=null&&i.includes(o)})}function zw(){return/^((?!chrome|android).)*safari/i.test(vB())}function vj(e){return["html","body","#document"].includes(Kc(e))}function gB(e){return ja(e)?e:e.contextElement}var yB={x:1,y:1};function of(e){var t=gB(e);if(!ns(t))return yB;var n=t.getBoundingClientRect(),r=pB(t),o=r.width,i=r.height,a=r.fallback,s=(a?Cg(n.width):n.width)/o,c=(a?Cg(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}function ol(e,t,n,r){var o,i;t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=gB(e),c=yB;t&&(r?ja(r)&&(c=of(r)):c=of(e));var u=s?vi(s):window,l=zw()&&n,f=(a.left+(l&&((o=u.visualViewport)==null?void 0:o.offsetLeft)||0))/c.x,d=(a.top+(l&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/c.y,h=a.width/c.x,p=a.height/c.y;if(s)for(var v=vi(s),m=r&&ja(r)?vi(r):r,g=v.frameElement;g&&r&&m!==v;){var y=of(g),b=g.getBoundingClientRect(),w=getComputedStyle(g);b.x+=(g.clientLeft+parseFloat(w.paddingLeft))*y.x,b.y+=(g.clientTop+parseFloat(w.paddingTop))*y.y,f*=y.x,d*=y.y,h*=y.x,p*=y.y,f+=b.x,d+=b.y,g=vi(g).frameElement}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function Rc(e){return((mB(e)?e.ownerDocument:e.document)||window.document).documentElement}function e1(e){return ja(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bB(e){return ol(Rc(e)).left+e1(e).scrollLeft}function Vh(e){if(Kc(e)==="html")return e;var t=e.assignedSlot||e.parentNode||x6(e)&&e.host||Rc(e);return x6(t)?t.host:t}function wB(e){var t=Vh(e);return vj(t)?t.ownerDocument.body:ns(t)&&t1(t)?t:wB(t)}function lh(e,t){var n;t===void 0&&(t=[]);var r=wB(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=vi(r);return o?t.concat(i,i.visualViewport||[],t1(r)?r:[]):t.concat(r,lh(r))}function k6(e,t,n){var r;if(t==="viewport")r=function(c,u){var l=vi(c),f=Rc(c),d=l.visualViewport,h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;var g=zw();(!g||g&&u==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,n);else if(t==="document")r=function(c){var u=Rc(c),l=e1(c),f=c.ownerDocument.body,d=uh(u.scrollWidth,u.clientWidth,f.scrollWidth,f.clientWidth),h=uh(u.scrollHeight,u.clientHeight,f.scrollHeight,f.clientHeight),p=-l.scrollLeft+bB(c),v=-l.scrollTop;return es(f).direction==="rtl"&&(p+=uh(u.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Rc(e));else if(ja(t))r=function(c,u){var l=ol(c,!0,u==="fixed"),f=l.top+c.clientTop,d=l.left+c.clientLeft,h=ns(c)?of(c):{x:1,y:1};return{width:c.clientWidth*h.x,height:c.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,n);else{var o=xt({},t);if(zw()){var i,a,s=vi(e);o.x-=((i=s.visualViewport)==null?void 0:i.offsetLeft)||0,o.y-=((a=s.visualViewport)==null?void 0:a.offsetTop)||0}r=o}return Iw(r)}function j6(e,t){return ns(e)&&es(e).position!=="fixed"?t?t(e):e.offsetParent:null}function _6(e,t){for(var n=vi(e),r=j6(e,t);r&&zdt(r)&&es(r).position==="static";)r=j6(r,t);return r&&(Kc(r)==="html"||Kc(r)==="body"&&es(r).position==="static"&&!Dw(r))?n:r||function(o){for(var i=Vh(o);ns(i)&&!vj(i);){if(Dw(i))return i;i=Vh(i)}return null}(e)||n}function Ldt(e,t,n){var r=ns(t),o=Rc(t),i=ol(e,!0,n==="fixed",t),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!=="fixed")if((Kc(t)!=="body"||t1(o))&&(a=e1(t)),ns(t)){var c=ol(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=bB(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}var Bdt={getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,i=n==="clippingAncestors"?function(u,l){var f=l.get(u);if(f)return f;for(var d=lh(u).filter(function(y){return ja(y)&&Kc(y)!=="body"}),h=null,p=es(u).position==="fixed",v=p?Vh(u):u;ja(v)&&!vj(v);){var m=es(v),g=Dw(v);m.position==="fixed"?h=null:(p?g||h:g||m.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=m:d=d.filter(function(y){return y!==v}),v=Vh(v)}return l.set(u,d),d}(t,this._c):[].concat(n),a=[].concat(Se(i),[r]),s=a[0],c=a.reduce(function(u,l){var f=k6(t,l,o);return u.top=uh(f.top,u.top),u.right=w6(f.right,u.right),u.bottom=w6(f.bottom,u.bottom),u.left=uh(f.left,u.left),u},k6(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,o=ns(n),i=Rc(n);if(n===i)return t;var a={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((o||!o&&r!=="fixed")&&((Kc(n)!=="body"||t1(i))&&(a=e1(n)),ns(n))){var u=ol(n);s=of(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}},isElement:ja,getDimensions:function(e){return ns(e)?pB(e):e.getBoundingClientRect()},getOffsetParent:_6,getDocumentElement:Rc,getScale:of,getElementRects:function(e){var t=this;return Ae(qt().mark(function n(){var r,o,i,a,s;return qt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.reference,o=e.floating,i=e.strategy,a=t.getOffsetParent||_6,s=t.getDimensions,c.t0=Ldt,c.t1=r,c.next=6,a(o);case 6:return c.t2=c.sent,c.t3=i,c.t4=(0,c.t0)(c.t1,c.t2,c.t3),c.t5=xt,c.t6={x:0,y:0},c.next=13,s(o);case 13:return c.t7=c.sent,c.t8=(0,c.t5)(c.t6,c.t7),c.abrupt("return",{reference:c.t4,floating:c.t8});case 16:case"end":return c.stop()}},n)}))()},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return es(e).direction==="rtl"}},Fdt=function(e,t,n){var r=new Map,o=xt({platform:Bdt},n),i=xt(xt({},o.platform),{},{_c:r});return Cdt(e,t,xt(xt({},o),{},{platform:i}))};function qdt(e){var t,n,r={autoUpdate:!0},o=e,i=function(c){return xt(xt(xt({},r),e||{}),c||{})},a=function(c){t&&n&&(o=i(c),Fdt(t,n,o).then(function(u){var l;Object.assign(n.style,{position:u.strategy,left:"".concat(u.x,"px"),top:"".concat(u.y,"px")}),!((l=o)===null||l===void 0)&&l.onComputed&&o.onComputed(u)}))},s=function(c){yi(c.subscribe(function(u){t===void 0?(t=u,a()):(Object.assign(t,u),a())}))};return[function(c){if("subscribe"in c)return s(c),{};t=c,a()},function(c,u){var l;n=c,o=i(u),setTimeout(function(){return a(u)},0),a(u);var f=function(){l&&(l(),l=void 0)},d=function(){var h=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:o||{}).autoUpdate;if(f(),h!==!1)return function(p,v,m,g){g===void 0&&(g={});var y=g,b=y.ancestorScroll,w=b===void 0||b,x=y.ancestorResize,k=x===void 0||x,j=y.elementResize,S=j===void 0||j,N=y.animationFrame,C=N!==void 0&&N,$=w&&!C,B=$||k?[].concat(Se(ja(p)?lh(p):p.contextElement?lh(p.contextElement):[]),Se(lh(v))):[];B.forEach(function(O){$&&O.addEventListener("scroll",m,{passive:!0}),k&&O.addEventListener("resize",m)});var K,R=null;if(S){var q=!0;R=new ResizeObserver(function(){q||m(),q=!1}),ja(p)&&!C&&R.observe(p),ja(p)||!p.contextElement||C||R.observe(p.contextElement),R.observe(v)}var F=C?ol(p):null;return C&&function O(){var A=ol(p);!F||A.x===F.x&&A.y===F.y&&A.width===F.width&&A.height===F.height||m(),F=A,K=requestAnimationFrame(O)}(),m(),function(){var O;B.forEach(function(A){$&&A.removeEventListener("scroll",m),k&&A.removeEventListener("resize",m)}),(O=R)==null||O.disconnect(),R=null,C&&cancelAnimationFrame(K)}}(t,n,function(){return a(o)},h===!0?{}:h)};return l=d(),{update:function(h){a(h),l=d(h)},destroy:function(){f()}}},a]}function Hdt(e){var t=e.loadOptions,n=e.filterText,r=e.items,o=e.multiple,i=e.value,a=e.itemId,s=e.groupBy,c=e.filterSelectedItems,u=e.itemFilter,l=e.convertStringItemsToObjects,f=e.filterGroupedItems,d=e.label;if(r&&t)return r;if(!r)return[];r&&r.length>0&&ce(r[0])!=="object"&&(r=l(r));var h=r.filter(function(p){var v=u(p[d],n,p);return v&&o&&i!=null&&i.length&&(v=!i.some(function(m){return!!c&&m[a]===p[a]})),v});return s&&(h=f(h)),h}function Vdt(e){return Lw.apply(this,arguments)}function Lw(){return Lw=Ae(qt().mark(function e(t){var n,r,o,i,a;return qt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.dispatch,r=t.loadOptions,o=t.convertStringItemsToObjects,i=t.filterText,s.next=3,r(i).catch(function(c){console.warn("svelte-select loadOptions error :>> ",c),n("error",{type:"loadOptions",details:c})});case 3:if(!(a=s.sent)||a.cancelled){s.next=7;break}return a?(a&&a.length>0&&ce(a[0])!=="object"&&(a=o(a)),n("loaded",{items:a})):a=[],s.abrupt("return",{filteredItems:a,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return s.stop()}},e)})),Lw.apply(this,arguments)}function Udt(e){ze(e,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function Wdt(e){var t,n;return{c:function(){t=ss("svg"),E(n=ss("path"),"fill","currentColor"),E(n,"d",`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747
94
+ 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0
95
+ 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502
96
+ 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0
97
+ 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),E(t,"width","100%"),E(t,"height","100%"),E(t,"viewBox","0 0 20 20"),E(t,"focusable","false"),E(t,"aria-hidden","true"),E(t,"class","svelte-qbd276")},m:function(r,o){dt(r,t,o),V(t,n)},p:Ht,i:Ht,o:Ht,d:function(r){r&&lt(t)}}}var Kdt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,null,Wdt,to,{},Udt),o}return ot(n)}();function Jdt(e){ze(e,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function Gdt(e){var t,n;return{c:function(){t=ss("svg"),E(n=ss("path"),"fill","currentColor"),E(n,"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
98
+ l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z`),E(t,"width","100%"),E(t,"height","100%"),E(t,"viewBox","-2 -2 50 50"),E(t,"focusable","false"),E(t,"aria-hidden","true"),E(t,"role","presentation"),E(t,"class","svelte-whdbu1")},m:function(r,o){dt(r,t,o),V(t,n)},p:Ht,i:Ht,o:Ht,d:function(r){r&&lt(t)}}}var Eg=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,null,Gdt,to,{},Jdt),o}return ot(n)}();function Qdt(e){ze(e,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function Ydt(e){var t,n;return{c:function(){t=ss("svg"),E(n=ss("circle"),"class","circle_path svelte-1p3nqvd"),E(n,"cx","50"),E(n,"cy","50"),E(n,"r","20"),E(n,"fill","none"),E(n,"stroke","currentColor"),E(n,"stroke-width","5"),E(n,"stroke-miterlimit","10"),E(t,"class","loading svelte-1p3nqvd"),E(t,"viewBox","25 25 50 50")},m:function(r,o){dt(r,t,o),V(t,n)},p:Ht,i:Ht,o:Ht,d:function(r){r&&lt(t)}}}var Xdt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,null,Ydt,to,{},Qdt),o}return ot(n)}();function Zdt(e){ze(e,"svelte-82qwg8",".svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--groupTitleBorderColor:var(--group-title-border-color);--groupTitleBorderWidth:var(--group-title-border-width);--groupTitleBorderStyle:var(--group-title-border-style);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px);max-height:var(--max-height)}.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:var(--value-container-padding, 5px 0);position:relative;overflow:var(--value-container-overflow, hidden);align-self:stretch}.prepend.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex-shrink:0;align-items:center}.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:var(--indicators-position);top:var(--indicators-top);right:var(--indicators-right);bottom:var(--indicators-bottom)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-82qwg8:not(.multi)>.value-container.svelte-82qwg8>input.svelte-82qwg8{width:100%;height:100%}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.svelte-select.focused.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-82qwg8 .selected-item.svelte-82qwg8.svelte-82qwg8{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.hide-selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0}.icon.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;pointer-events:none}.list-group-title.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase);border-width:var(--group-title-border-width, medium);border-style:var(--group-title-border-style, none);border-color:var(--group-title-border-color, color)}.empty.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.hover.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.active.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var tht=function(e){return{value:8&e[0]}},S6=function(e){return{value:e[3]}},eht=function(e){return{value:8&e[0]}},$6=function(e){return{value:e[3]}},nht=function(e){return{listOpen:64&e[0]}},C6=function(e){return{listOpen:e[6]}},rht=function(e){return{}},E6=function(e){return{}},oht=function(e){return{}},O6=function(e){return{}},iht=function(e){return{selection:8&e[0]}},M6=function(e){return{selection:e[3]}};function A6(e,t,n){var r=e.slice();return r[125]=t[n],r[127]=n,r}var aht=function(e){return{}},P6=function(e){return{}},sht=function(e){return{selection:8&e[0]}},T6=function(e){return{selection:e[125],index:e[127]}},cht=function(e){return{}},R6=function(e){return{}},uht=function(e){return{}},I6=function(e){return{}},lht=function(e){return{}},N6=function(e){return{}};function D6(e,t,n){var r=e.slice();return r[125]=t[n],r[127]=n,r}var fht=function(e){return{item:16777216&e[0]}},z6=function(e){return{item:e[125],index:e[127]}},dht=function(e){return{filteredItems:16777216&e[0]}},L6=function(e){return{filteredItems:e[24]}},hht=function(e){return{}},B6=function(e){return{}};function F6(e){var t,n,r,o,i,a,s,c,u=e[50]["list-prepend"]&&q6(e),l=[mht,vht,pht],f=[];function d(p,v){return p[50].list?0:p[24].length>0?1:p[19]?-1:2}~(r=d(e))&&(o=f[r]=l[r](e));var h=e[50]["list-append"]&&V6(e);return{c:function(){t=et("div"),u&&u.c(),n=kt(),o&&o.c(),i=kt(),h&&h.c(),E(t,"class","svelte-select-list svelte-82qwg8"),Dt(t,"prefloat",e[28])},m:function(p,v){dt(p,t,v),u&&u.m(t,null),V(t,n),~r&&f[r].m(t,null),V(t,i),h&&h.m(t,null),e[90](t),a=!0,s||(c=[lo(e[49].call(null,t)),Lt(t,"scroll",e[41]),Lt(t,"pointerup",cs(Gu(e[85])))],s=!0)},p:function(p,v){p[50]["list-prepend"]?u?(u.p(p,v),524288&v[1]&&L(u,1)):((u=q6(p)).c(),L(u,1),u.m(t,n)):u&&(Bt(),U(u,1,1,function(){u=null}),Ft());var m=r;(r=d(p))===m?~r&&f[r].p(p,v):(o&&(Bt(),U(f[m],1,1,function(){f[m]=null}),Ft()),~r?((o=f[r])?o.p(p,v):(o=f[r]=l[r](p)).c(),L(o,1),o.m(t,i)):o=null),p[50]["list-append"]?h?(h.p(p,v),524288&v[1]&&L(h,1)):((h=V6(p)).c(),L(h,1),h.m(t,null)):h&&(Bt(),U(h,1,1,function(){h=null}),Ft()),(!a||268435456&v[0])&&Dt(t,"prefloat",p[28])},i:function(p){a||(L(u),L(o),L(h),a=!0)},o:function(p){U(u),U(o),U(h),a=!1},d:function(p){p&&lt(t),u&&u.d(),~r&&f[r].d(),h&&h.d(),e[90](null),s=!1,Fn(c)}}}function q6(e){var t,n=e[82]["list-prepend"],r=Cr(n,e,e[81],B6);return{c:function(){r&&r.c()},m:function(o,i){r&&r.m(o,i),t=!0},p:function(o,i){r&&r.p&&(!t||524288&i[2])&&Or(r,n,o,o[81],t?Er(n,o[81],i,hht):Mr(o[81]),B6)},i:function(o){t||(L(r,o),t=!0)},o:function(o){U(r,o),t=!1},d:function(o){r&&r.d(o)}}}function pht(e){var t,n,r=e[82].empty,o=Cr(r,e,e[81],N6),i=o||{c:function(){(n=et("div")).textContent="No options",E(n,"class","empty svelte-82qwg8")},m:function(a,s){dt(a,n,s)},p:Ht,d:function(a){a&&lt(n)}};return{c:function(){i&&i.c()},m:function(a,s){i&&i.m(a,s),t=!0},p:function(a,s){o&&o.p&&(!t||524288&s[2])&&Or(o,r,a,a[81],t?Er(r,a[81],s,lht):Mr(a[81]),N6)},i:function(a){t||(L(i,a),t=!0)},o:function(a){U(i,a),t=!1},d:function(a){i&&i.d(a)}}}function vht(e){for(var t,n,r=De(e[24]),o=[],i=0;i<r.length;i+=1)o[i]=H6(D6(e,r,i));var a=function(s){return U(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=_n()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);dt(s,t,c),n=!0},p:function(s,c){if(1627402376&c[0]|28672&c[1]|524288&c[2]){var u;for(r=De(s[24]),u=0;u<r.length;u+=1){var l=D6(s,r,u);o[u]?(o[u].p(l,c),L(o[u],1)):(o[u]=H6(l),o[u].c(),L(o[u],1),o[u].m(t.parentNode,t))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)L(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)U(o[c]);n=!1},d:function(s){s&&lt(t),Ir(o,s)}}}function mht(e){var t,n=e[82].list,r=Cr(n,e,e[81],L6);return{c:function(){r&&r.c()},m:function(o,i){r&&r.m(o,i),t=!0},p:function(o,i){r&&r.p&&(!t||16777216&i[0]|524288&i[2])&&Or(r,n,o,o[81],t?Er(n,o[81],i,dht):Mr(o[81]),L6)},i:function(o){t||(L(r,o),t=!0)},o:function(o){U(r,o),t=!1},d:function(o){r&&r.d(o)}}}function H6(e){var t,n,r,o,i,a,s,c,u=e[82].item,l=Cr(u,e,e[81],z6),f=l||function(v){var m,g,y=((m=v[125])===null||m===void 0?void 0:m[v[12]])+"";return{c:function(){g=Gt(y)},m:function(b,w){dt(b,g,w)},p:function(b,w){var x;16781312&w[0]&&y!==(y=((x=b[125])===null||x===void 0?void 0:x[b[12]])+"")&&we(g,y)},d:function(b){b&&lt(g)}}}(e);function d(){return e[87](e[127])}function h(){return e[88](e[127])}function p(){return e[89](e[125],e[127])}return{c:function(){var v;t=et("div"),n=et("div"),f&&f.c(),i=kt(),E(n,"class","item svelte-82qwg8"),Dt(n,"list-group-title",e[125].groupHeader),Dt(n,"active",e[45](e[125],e[3],e[13])),Dt(n,"first",e[127]===0),Dt(n,"hover",e[7]===e[127]),Dt(n,"group-item",e[125].groupItem),Dt(n,"not-selectable",((v=e[125])===null||v===void 0?void 0:v.selectable)===!1),E(t,"class","list-item svelte-82qwg8"),E(t,"tabindex","-1"),E(t,"role","none")},m:function(v,m){dt(v,t,m),V(t,n),f&&f.m(n,null),V(t,i),a=!0,s||(c=[lo(r=e[46].call(null,n,{scroll:e[45](e[125],e[3],e[13]),listDom:e[30]})),lo(o=e[47].call(null,n,{scroll:e[29]===e[127],listDom:e[30]})),Lt(t,"mouseover",d),Lt(t,"focus",h),Lt(t,"click",cs(p)),Lt(t,"keydown",cs(Gu(e[86])))],s=!0)},p:function(v,m){var g;e=v,l?l.p&&(!a||16777216&m[0]|524288&m[2])&&Or(l,u,e,e[81],a?Er(u,e[81],m,fht):Mr(e[81]),z6):f&&f.p&&(!a||16781312&m[0])&&f.p(e,a?m:[-1,-1,-1,-1,-1]),r&&co(r.update)&&1090527240&m[0]&&r.update.call(null,{scroll:e[45](e[125],e[3],e[13]),listDom:e[30]}),o&&co(o.update)&&1610612736&m[0]&&o.update.call(null,{scroll:e[29]===e[127],listDom:e[30]}),(!a||16777216&m[0])&&Dt(n,"list-group-title",e[125].groupHeader),(!a||16785416&m[0]|16384&m[1])&&Dt(n,"active",e[45](e[125],e[3],e[13])),(!a||128&m[0])&&Dt(n,"hover",e[7]===e[127]),(!a||16777216&m[0])&&Dt(n,"group-item",e[125].groupItem),(!a||16777216&m[0])&&Dt(n,"not-selectable",((g=e[125])===null||g===void 0?void 0:g.selectable)===!1)},i:function(v){a||(L(f,v),a=!0)},o:function(v){U(f,v),a=!1},d:function(v){v&&lt(t),f&&f.d(v),s=!1,Fn(c)}}}function V6(e){var t,n=e[82]["list-append"],r=Cr(n,e,e[81],I6);return{c:function(){r&&r.c()},m:function(o,i){r&&r.m(o,i),t=!0},p:function(o,i){r&&r.p&&(!t||524288&i[2])&&Or(r,n,o,o[81],t?Er(n,o[81],i,uht):Mr(o[81]),I6)},i:function(o){t||(L(r,o),t=!0)},o:function(o){U(r,o),t=!1},d:function(o){r&&r.d(o)}}}function U6(e){var t,n,r,o,i;return{c:function(){t=et("span"),n=Gt(e[32]),r=kt(),o=et("span"),i=Gt(e[31]),E(t,"id","aria-selection"),E(t,"class","svelte-82qwg8"),E(o,"id","aria-context"),E(o,"class","svelte-82qwg8")},m:function(a,s){dt(a,t,s),V(t,n),dt(a,r,s),dt(a,o,s),V(o,i)},p:function(a,s){2&s[1]&&we(n,a[32]),1&s[1]&&we(i,a[31])},d:function(a){a&&(lt(t),lt(r),lt(o))}}}function W6(e){var t,n,r,o,i=[yht,ght],a=[];function s(c,u){return c[9]?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=_n()},m:function(c,u){a[t].m(c,u),dt(c,r,u),o=!0},p:function(c,u){var l=t;(t=s(c))===l?a[t].p(c,u):(Bt(),U(a[l],1,1,function(){a[l]=null}),Ft(),(n=a[t])?n.p(c,u):(n=a[t]=i[t](c)).c(),L(n,1),n.m(r.parentNode,r))},i:function(c){o||(L(n),o=!0)},o:function(c){U(n),o=!1},d:function(c){c&&lt(r),a[t].d(c)}}}function ght(e){var t,n,r=e[82].selection,o=Cr(r,e,e[81],M6),i=o||function(a){var s,c=a[3][a[12]]+"";return{c:function(){s=Gt(c)},m:function(u,l){dt(u,s,l)},p:function(u,l){4104&l[0]&&c!==(c=u[3][u[12]]+"")&&we(s,c)},d:function(u){u&&lt(s)}}}(e);return{c:function(){t=et("div"),i&&i.c(),E(t,"class","selected-item svelte-82qwg8"),Dt(t,"hide-selected-item",e[35])},m:function(a,s){dt(a,t,s),i&&i.m(t,null),n=!0},p:function(a,s){o?o.p&&(!n||8&s[0]|524288&s[2])&&Or(o,r,a,a[81],n?Er(r,a[81],s,iht):Mr(a[81]),M6):i&&i.p&&(!n||4104&s[0])&&i.p(a,n?s:[-1,-1,-1,-1,-1]),(!n||16&s[1])&&Dt(t,"hide-selected-item",a[35])},i:function(a){n||(L(i,a),n=!0)},o:function(a){U(i,a),n=!1},d:function(a){a&&lt(t),i&&i.d(a)}}}function yht(e){for(var t,n,r=De(e[3]),o=[],i=0;i<r.length;i+=1)o[i]=J6(A6(e,r,i));var a=function(s){return U(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=_n()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);dt(s,t,c),n=!0},p:function(s,c){if(67116040&c[0]|32&c[1]|524288&c[2]){var u;for(r=De(s[3]),u=0;u<r.length;u+=1){var l=A6(s,r,u);o[u]?(o[u].p(l,c),L(o[u],1)):(o[u]=J6(l),o[u].c(),L(o[u],1),o[u].m(t.parentNode,t))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)L(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)U(o[c]);n=!1},d:function(s){s&&lt(t),Ir(o,s)}}}function K6(e){var t,n,r,o,i=e[82]["multi-clear-icon"],a=Cr(i,e,e[81],P6),s=a||function(u){var l,f;return l=new Eg({}),{c:function(){Pt(l.$$.fragment)},m:function(d,h){Mt(l,d,h),f=!0},i:function(d){f||(L(l.$$.fragment,d),f=!0)},o:function(d){U(l.$$.fragment,d),f=!1},d:function(d){At(l,d)}}}();function c(){return e[91](e[127])}return{c:function(){t=et("div"),s&&s.c(),E(t,"class","multi-item-clear svelte-82qwg8")},m:function(u,l){dt(u,t,l),s&&s.m(t,null),n=!0,r||(o=Lt(t,"pointerup",cs(Gu(c))),r=!0)},p:function(u,l){e=u,a&&a.p&&(!n||524288&l[2])&&Or(a,i,e,e[81],n?Er(i,e[81],l,aht):Mr(e[81]),P6)},i:function(u){n||(L(s,u),n=!0)},o:function(u){U(s,u),n=!1},d:function(u){u&&lt(t),s&&s.d(u),r=!1,o()}}}function J6(e){var t,n,r,o,i,a,s,c=e[82].selection,u=Cr(c,e,e[81],T6),l=u||function(h){var p,v=h[125][h[12]]+"";return{c:function(){p=Gt(v)},m:function(m,g){dt(m,p,g)},p:function(m,g){4104&g[0]&&v!==(v=m[125][m[12]]+"")&&we(p,v)},d:function(m){m&&lt(p)}}}(e),f=!e[11]&&!e[10]&&Eg&&K6(e);function d(){return e[92](e[127])}return{c:function(){t=et("div"),n=et("span"),l&&l.c(),r=kt(),f&&f.c(),o=kt(),E(n,"class","multi-item-text svelte-82qwg8"),E(t,"class","multi-item svelte-82qwg8"),E(t,"role","none"),Dt(t,"active",e[26]===e[127]),Dt(t,"disabled",e[11])},m:function(h,p){dt(h,t,p),V(t,n),l&&l.m(n,null),V(t,r),f&&f.m(t,null),V(t,o),i=!0,a||(s=[Lt(t,"click",Gu(d)),Lt(t,"keydown",cs(Gu(e[84])))],a=!0)},p:function(h,p){e=h,u?u.p&&(!i||8&p[0]|524288&p[2])&&Or(u,c,e,e[81],i?Er(c,e[81],p,sht):Mr(e[81]),T6):l&&l.p&&(!i||4104&p[0])&&l.p(e,i?p:[-1,-1,-1,-1,-1]),e[11]||e[10]||!Eg?f&&(Bt(),U(f,1,1,function(){f=null}),Ft()):f?(f.p(e,p),3072&p[0]&&L(f,1)):((f=K6(e)).c(),L(f,1),f.m(t,o)),(!i||67108864&p[0])&&Dt(t,"active",e[26]===e[127]),(!i||2048&p[0])&&Dt(t,"disabled",e[11])},i:function(h){i||(L(l,h),L(f),i=!0)},o:function(h){U(l,h),U(f),i=!1},d:function(h){h&&lt(t),l&&l.d(h),f&&f.d(),a=!1,Fn(s)}}}function G6(e){var t,n,r=e[82]["loading-icon"],o=Cr(r,e,e[81],O6),i=o||function(a){var s,c;return s=new Xdt({}),{c:function(){Pt(s.$$.fragment)},m:function(u,l){Mt(s,u,l),c=!0},i:function(u){c||(L(s.$$.fragment,u),c=!0)},o:function(u){U(s.$$.fragment,u),c=!1},d:function(u){At(s,u)}}}();return{c:function(){t=et("div"),i&&i.c(),E(t,"class","icon loading svelte-82qwg8"),E(t,"aria-hidden","true")},m:function(a,s){dt(a,t,s),i&&i.m(t,null),n=!0},p:function(a,s){o&&o.p&&(!n||524288&s[2])&&Or(o,r,a,a[81],n?Er(r,a[81],s,oht):Mr(a[81]),O6)},i:function(a){n||(L(i,a),n=!0)},o:function(a){U(i,a),n=!1},d:function(a){a&&lt(t),i&&i.d(a)}}}function Q6(e){var t,n,r,o,i=e[82]["clear-icon"],a=Cr(i,e,e[81],E6),s=a||function(c){var u,l;return u=new Eg({}),{c:function(){Pt(u.$$.fragment)},m:function(f,d){Mt(u,f,d),l=!0},i:function(f){l||(L(u.$$.fragment,f),l=!0)},o:function(f){U(u.$$.fragment,f),l=!1},d:function(f){At(u,f)}}}();return{c:function(){t=et("button"),s&&s.c(),E(t,"type","button"),E(t,"class","icon clear-select svelte-82qwg8")},m:function(c,u){dt(c,t,u),s&&s.m(t,null),n=!0,r||(o=Lt(t,"click",e[22]),r=!0)},p:function(c,u){a&&a.p&&(!n||524288&u[2])&&Or(a,i,c,c[81],n?Er(i,c[81],u,rht):Mr(c[81]),E6)},i:function(c){n||(L(s,c),n=!0)},o:function(c){U(s,c),n=!1},d:function(c){c&&lt(t),s&&s.d(c),r=!1,o()}}}function Y6(e){var t,n,r=e[82]["chevron-icon"],o=Cr(r,e,e[81],C6),i=o||function(a){var s,c;return s=new Kdt({}),{c:function(){Pt(s.$$.fragment)},m:function(u,l){Mt(s,u,l),c=!0},i:function(u){c||(L(s.$$.fragment,u),c=!0)},o:function(u){U(s.$$.fragment,u),c=!1},d:function(u){At(s,u)}}}();return{c:function(){t=et("div"),i&&i.c(),E(t,"class","icon chevron svelte-82qwg8"),E(t,"aria-hidden","true")},m:function(a,s){dt(a,t,s),i&&i.m(t,null),n=!0},p:function(a,s){o&&o.p&&(!n||64&s[0]|524288&s[2])&&Or(o,r,a,a[81],n?Er(r,a[81],s,nht):Mr(a[81]),C6)},i:function(a){n||(L(i,a),n=!0)},o:function(a){U(i,a),n=!1},d:function(a){a&&lt(t),i&&i.d(a)}}}function X6(e){var t,n,r=e[82].required,o=Cr(r,e,e[81],S6),i=o||{c:function(){E(n=et("select"),"class","required svelte-82qwg8"),n.required=!0,E(n,"tabindex","-1"),E(n,"aria-hidden","true")},m:function(a,s){dt(a,n,s)},p:Ht,d:function(a){a&&lt(n)}};return{c:function(){i&&i.c()},m:function(a,s){i&&i.m(a,s),t=!0},p:function(a,s){o&&o.p&&(!t||8&s[0]|524288&s[2])&&Or(o,r,a,a[81],t?Er(r,a[81],s,tht):Mr(a[81]),S6)},i:function(a){t||(L(i,a),t=!0)},o:function(a){U(i,a),t=!1},d:function(a){i&&i.d(a)}}}function bht(e){for(var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x=e[6]&&F6(e),k=e[2]&&U6(e),j=e[82].prepend,S=Cr(j,e,e[81],R6),N=e[25]&&W6(e),C=[{readOnly:l=!e[17]},e[27],{placeholder:e[33]},{style:e[18]},{disabled:e[11]}],$={},B=0;B<C.length;B+=1)$=oi($,C[B]);var K=e[5]&&G6(e),R=e[34]&&Q6(e),q=e[20]&&Y6(e),F=e[82]["input-hidden"],O=Cr(F,e,e[81],$6),A=O||function(M){var P,D;return{c:function(){E(P=et("input"),"name",M[8]),E(P,"type","hidden"),P.value=D=M[3]?JSON.stringify(M[3]):null,E(P,"class","svelte-82qwg8")},m:function(T,H){dt(T,P,H)},p:function(T,H){256&H[0]&&E(P,"name",T[8]),8&H[0]&&D!==(D=T[3]?JSON.stringify(T[3]):null)&&(P.value=D)},d:function(T){T&&lt(P)}}}(e),_=e[16]&&(!e[3]||e[3].length===0)&&X6(e);return{c:function(){t=et("div"),x&&x.c(),n=kt(),r=et("span"),k&&k.c(),o=kt(),i=et("div"),S&&S.c(),a=kt(),s=et("div"),N&&N.c(),c=kt(),u=et("input"),f=kt(),d=et("div"),K&&K.c(),h=kt(),R&&R.c(),p=kt(),q&&q.c(),v=kt(),A&&A.c(),m=kt(),_&&_.c(),E(r,"aria-live","polite"),E(r,"aria-atomic","false"),E(r,"aria-relevant","additions text"),E(r,"class","a11y-text svelte-82qwg8"),E(i,"class","prepend svelte-82qwg8"),rE(u,$),Dt(u,"svelte-82qwg8",!0),E(s,"class","value-container svelte-82qwg8"),E(d,"class","indicators svelte-82qwg8"),E(t,"class",g="svelte-select "+e[21]+" svelte-82qwg8"),E(t,"style",e[14]),E(t,"role","none"),Dt(t,"multi",e[9]),Dt(t,"disabled",e[11]),Dt(t,"focused",e[2]),Dt(t,"list-open",e[6]),Dt(t,"show-chevron",e[20]),Dt(t,"error",e[15])},m:function(M,P){dt(M,t,P),x&&x.m(t,null),V(t,n),V(t,r),k&&k.m(r,null),V(t,o),V(t,i),S&&S.m(i,null),V(t,a),V(t,s),N&&N.m(s,null),V(s,c),V(s,u),u.autofocus&&u.focus(),e[93](u),us(u,e[4]),V(t,f),V(t,d),K&&K.m(d,null),V(d,h),R&&R.m(d,null),V(d,p),q&&q.m(d,null),V(t,v),A&&A.m(t,null),V(t,m),_&&_.m(t,null),e[95](t),y=!0,b||(w=[Lt(window,"click",e[42]),Lt(window,"keydown",e[37]),Lt(u,"keydown",e[37]),Lt(u,"blur",e[39]),Lt(u,"focus",e[38]),Lt(u,"input",e[94]),Lt(t,"pointerup",Gu(e[40])),Lt(t,"mousedown",Gu(e[83])),lo(e[48].call(null,t))],b=!0)},p:function(M,P){M[6]?x?(x.p(M,P),64&P[0]&&L(x,1)):((x=F6(M)).c(),L(x,1),x.m(t,n)):x&&(Bt(),U(x,1,1,function(){x=null}),Ft()),M[2]?k?k.p(M,P):((k=U6(M)).c(),k.m(r,null)):k&&(k.d(1),k=null),S&&S.p&&(!y||524288&P[2])&&Or(S,j,M,M[81],y?Er(j,M[81],P,cht):Mr(M[81]),R6),M[25]?N?(N.p(M,P),33554432&P[0]&&L(N,1)):((N=W6(M)).c(),L(N,1),N.m(s,c)):N&&(Bt(),U(N,1,1,function(){N=null}),Ft()),rE(u,$=Wi(C,[(!y||131072&P[0]&&l!==(l=!M[17]))&&{readOnly:l},134217728&P[0]&&M[27],(!y||4&P[1])&&{placeholder:M[33]},(!y||262144&P[0])&&{style:M[18]},(!y||2048&P[0])&&{disabled:M[11]}])),16&P[0]&&u.value!==M[4]&&us(u,M[4]),Dt(u,"svelte-82qwg8",!0),M[5]?K?(K.p(M,P),32&P[0]&&L(K,1)):((K=G6(M)).c(),L(K,1),K.m(d,h)):K&&(Bt(),U(K,1,1,function(){K=null}),Ft()),M[34]?R?(R.p(M,P),8&P[1]&&L(R,1)):((R=Q6(M)).c(),L(R,1),R.m(d,p)):R&&(Bt(),U(R,1,1,function(){R=null}),Ft()),M[20]?q?(q.p(M,P),1048576&P[0]&&L(q,1)):((q=Y6(M)).c(),L(q,1),q.m(d,null)):q&&(Bt(),U(q,1,1,function(){q=null}),Ft()),O?O.p&&(!y||8&P[0]|524288&P[2])&&Or(O,F,M,M[81],y?Er(F,M[81],P,eht):Mr(M[81]),$6):A&&A.p&&(!y||264&P[0])&&A.p(M,y?P:[-1,-1,-1,-1,-1]),!M[16]||M[3]&&M[3].length!==0?_&&(Bt(),U(_,1,1,function(){_=null}),Ft()):_?(_.p(M,P),65544&P[0]&&L(_,1)):((_=X6(M)).c(),L(_,1),_.m(t,null)),(!y||2097152&P[0]&&g!==(g="svelte-select "+M[21]+" svelte-82qwg8"))&&E(t,"class",g),(!y||16384&P[0])&&E(t,"style",M[14]),(!y||2097664&P[0])&&Dt(t,"multi",M[9]),(!y||2099200&P[0])&&Dt(t,"disabled",M[11]),(!y||2097156&P[0])&&Dt(t,"focused",M[2]),(!y||2097216&P[0])&&Dt(t,"list-open",M[6]),(!y||3145728&P[0])&&Dt(t,"show-chevron",M[20]),(!y||2129920&P[0])&&Dt(t,"error",M[15])},i:function(M){y||(L(x),L(S,M),L(N),L(K),L(R),L(q),L(A,M),L(_),y=!0)},o:function(M){U(x),U(S,M),U(N),U(K),U(R),U(q),U(A,M),U(_),y=!1},d:function(M){M&&lt(t),x&&x.d(),k&&k.d(),S&&S.d(M),N&&N.d(),e[93](null),K&&K.d(),R&&R.d(),q&&q.d(),A&&A.d(M),_&&_.d(),e[95](null),b=!1,Fn(w)}}}function Z6(e){return e.map(function(t,n){return{index:n,value:t,label:"".concat(t)}})}function wht(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=t.$$slots,w=b===void 0?{}:b,x=t.$$scope,k=function(wt){var je={};for(var un in wt)je[un]=!0;return je}(w),j=FN(),S=t.justValue,N=S===void 0?null:S,C=t.filter,$=C===void 0?Hdt:C,B=t.getItems,K=B===void 0?Vdt:B,R=t.id,q=R===void 0?null:R,F=t.name,O=F===void 0?null:F,A=t.container,_=A===void 0?void 0:A,M=t.input,P=M===void 0?void 0:M,D=t.multiple,T=D!==void 0&&D,H=t.multiFullItemClearable,I=H!==void 0&&H,ft=t.disabled,tt=ft!==void 0&&ft,yt=t.focused,bt=yt!==void 0&&yt,jt=t.value,gt=jt===void 0?null:jt,Y=t.filterText,J=Y===void 0?"":Y,it=t.placeholder,X=it===void 0?"Please select":it,_t=t.placeholderAlwaysShow,z=_t!==void 0&&_t,W=t.items,G=W===void 0?null:W,pt=t.label,mt=pt===void 0?"label":pt,Ot=t.itemFilter,Ct=Ot===void 0?function(wt,je,un){return"".concat(wt).toLowerCase().includes(je.toLowerCase())}:Ot,Vt=t.groupBy,Qt=Vt===void 0?void 0:Vt,ee=t.groupFilter,Kt=ee===void 0?function(wt){return wt}:ee,ue=t.groupHeaderSelectable,Me=ue!==void 0&&ue,tn=t.itemId,le=tn===void 0?"value":tn,wn=t.loadOptions,Ne=wn===void 0?void 0:wn,mn=t.containerStyles,Ye=mn===void 0?"":mn,Ke=t.hasError,qn=Ke!==void 0&&Ke,In=t.filterSelectedItems,Zn=In===void 0||In,Sn=t.required,En=Sn!==void 0&&Sn,Nn=t.closeListOnChange,sr=Nn===void 0||Nn,Pr=t.createGroupHeaderItem,Et=Pr===void 0?function(wt,je){return Vo({value:wt},mt,wt)}:Pr,ie=t.searchable,Be=ie===void 0||ie,en=t.inputStyles,$t=en===void 0?"":en,Xt=t.clearable,Q=Xt===void 0||Xt,at=t.loading,vt=at!==void 0&&at,ut=t.listOpen,It=ut!==void 0&&ut,ne=t.debounce,pe=ne===void 0?function(wt){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;clearTimeout(d),d=setTimeout(wt,je)}:ne,Xe=t.debounceWait,Fe=Xe===void 0?300:Xe,xn=t.hideEmptyState,On=xn!==void 0&&xn,ke=t.inputAttributes,gn=ke===void 0?{}:ke,pn=t.listAutoWidth,tr=pn===void 0||pn,yn=t.showChevron,ct=yn!==void 0&&yn,Nt=t.listOffset,Zt=Nt===void 0?5:Nt,ae=t.hoverItemIndex,Yt=ae===void 0?0:ae,Te=t.floatingConfig,He=Te===void 0?{}:Te,Ve=t.class,de=Ve===void 0?"":Ve;function fn(wt){var je=[],un={};wt.forEach(function(Zi){var Mn=Qt(Zi);je.includes(Mn)||(je.push(Mn),un[Mn]=[],Mn&&un[Mn].push(Object.assign(Et(Mn,Zi),{id:Mn,groupHeader:!0,selectable:Me}))),un[Mn].push(Object.assign({groupItem:!!Mn},Zi))});var Kr=[];return Kt(je).forEach(function(Zi){un[Zi]&&Kr.push.apply(Kr,Se(un[Zi]))}),Kr}function Kn(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,je=arguments.length>1?arguments[1]:void 0;n(7,Yt=wt<0?0:wt),!je&&Qt&&u[Yt]&&!u[Yt].selectable&&Tr(1)}function Dn(){var wt=!0;if(gt){var je=[],un=[];gt.forEach(function(Kr){je.includes(Kr[le])?wt=!1:(je.push(Kr[le]),un.push(Kr))}),wt||n(3,gt=un)}return wt}function Nr(wt){var je=wt?wt[le]:gt[le];return G.find(function(un){return un[le]===je})}function ci(wt){return Ta.apply(this,arguments)}function Ta(){return Ta=Ae(qt().mark(function wt(je){var un;return qt().wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:un=gt[je],gt.length===1?n(3,gt=void 0):n(3,gt=gt.filter(function(Zi){return Zi!==un})),j("clear",un);case 3:case"end":return Kr.stop()}},wt)})),Ta.apply(this,arguments)}function ji(wt){var je;bt&&P===((je=document)===null||je===void 0?void 0:je.activeElement)||(wt&&j("focus",wt),P.focus(),n(2,bt=!0))}function Ra(wt){return _i.apply(this,arguments)}function _i(){return _i=Ae(qt().mark(function wt(je){return qt().wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(!_e){un.next=2;break}return un.abrupt("return");case 2:(It||bt)&&(j("blur",je),Jn(),n(2,bt=!1),n(26,h=void 0),P.blur());case 3:case"end":return un.stop()}},wt)})),_i.apply(this,arguments)}function Jn(){n(4,J=""),n(6,It=!1)}y=Ae(qt().mark(function wt(){return qt().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:n(77,p=gt),n(78,v=J),n(79,m=T);case 3:case"end":return je.stop()}},wt)})),Wf().$$.before_update.push(y),Ui(function(){It&&n(2,bt=!0),bt&&P&&P.focus()});var qp=t.ariaValues,ld=qp===void 0?function(wt){return"Option ".concat(wt,", selected.")}:qp,Hp=t.ariaListOpen,nt=Hp===void 0?function(wt,je){return"You are currently focused on option ".concat(wt,". There are ").concat(je," results available.")}:Hp,St=t.ariaFocused,zt=St===void 0?function(){return"Select is focused, type to refine list, press down to open the menu."}:St,Wt,Ut=null;function te(){clearTimeout(Wt),Wt=setTimeout(function(){_e=!1},100)}yi(function(){var wt;(wt=Ut)===null||wt===void 0||wt.remove()});var _e=!1;function Ee(wt){wt&&wt.selectable!==!1&&function(je){if(je){n(4,J="");var un=Object.assign({},je);if(un.groupHeader&&!un.selectable)return;n(3,gt=T?gt?gt.concat([un]):[un]:n(3,gt=un)),setTimeout(function(){sr&&Jn(),n(26,h=void 0),j("change",gt),j("select",je)})}}(wt)}function Oe(wt){_e||n(7,Yt=wt)}function rr(wt){var je=wt.item,un=wt.i;if((je==null?void 0:je.selectable)!==!1)return gt&&!T&&gt[le]===je[le]?Jn():void(function(Kr){return Kr.groupHeader&&Kr.selectable||Kr.selectable||!Kr.hasOwnProperty("selectable")}(je)&&(n(7,Yt=un),Ee(je)))}function Tr(wt){if(u.filter(function(un){return!Object.hasOwn(un,"selectable")||un.selectable===!0}).length===0)return n(7,Yt=0);wt>0&&Yt===u.length-1?n(7,Yt=0):n(7,wt<0&&Yt===0?Yt=u.length-1:Yt+=wt);var je=u[Yt];je&&je.selectable===!1&&(wt!==1&&wt!==-1||Tr(wt))}var jr=$o,po=$o;function $o(wt){return{update:function(je){je.scroll&&(te(),wt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var No={strategy:"absolute",placement:"bottom-start",middleware:[Idt(Zt),Rdt(),Ddt()],autoUpdate:!1},Dr=$e(qdt(No),3),_r=Dr[0],ws=Dr[1],Wr=Dr[2],eo=!0;return e.$$set=function(wt){"justValue"in wt&&n(52,N=wt.justValue),"filter"in wt&&n(53,$=wt.filter),"getItems"in wt&&n(54,K=wt.getItems),"id"in wt&&n(55,q=wt.id),"name"in wt&&n(8,O=wt.name),"container"in wt&&n(0,_=wt.container),"input"in wt&&n(1,P=wt.input),"multiple"in wt&&n(9,T=wt.multiple),"multiFullItemClearable"in wt&&n(10,I=wt.multiFullItemClearable),"disabled"in wt&&n(11,tt=wt.disabled),"focused"in wt&&n(2,bt=wt.focused),"value"in wt&&n(3,gt=wt.value),"filterText"in wt&&n(4,J=wt.filterText),"placeholder"in wt&&n(56,X=wt.placeholder),"placeholderAlwaysShow"in wt&&n(57,z=wt.placeholderAlwaysShow),"items"in wt&&n(51,G=wt.items),"label"in wt&&n(12,mt=wt.label),"itemFilter"in wt&&n(58,Ct=wt.itemFilter),"groupBy"in wt&&n(59,Qt=wt.groupBy),"groupFilter"in wt&&n(60,Kt=wt.groupFilter),"groupHeaderSelectable"in wt&&n(61,Me=wt.groupHeaderSelectable),"itemId"in wt&&n(13,le=wt.itemId),"loadOptions"in wt&&n(62,Ne=wt.loadOptions),"containerStyles"in wt&&n(14,Ye=wt.containerStyles),"hasError"in wt&&n(15,qn=wt.hasError),"filterSelectedItems"in wt&&n(63,Zn=wt.filterSelectedItems),"required"in wt&&n(16,En=wt.required),"closeListOnChange"in wt&&n(64,sr=wt.closeListOnChange),"createGroupHeaderItem"in wt&&n(65,Et=wt.createGroupHeaderItem),"searchable"in wt&&n(17,Be=wt.searchable),"inputStyles"in wt&&n(18,$t=wt.inputStyles),"clearable"in wt&&n(67,Q=wt.clearable),"loading"in wt&&n(5,vt=wt.loading),"listOpen"in wt&&n(6,It=wt.listOpen),"debounce"in wt&&n(68,pe=wt.debounce),"debounceWait"in wt&&n(69,Fe=wt.debounceWait),"hideEmptyState"in wt&&n(19,On=wt.hideEmptyState),"inputAttributes"in wt&&n(70,gn=wt.inputAttributes),"listAutoWidth"in wt&&n(71,tr=wt.listAutoWidth),"showChevron"in wt&&n(20,ct=wt.showChevron),"listOffset"in wt&&n(72,Zt=wt.listOffset),"hoverItemIndex"in wt&&n(7,Yt=wt.hoverItemIndex),"floatingConfig"in wt&&n(73,He=wt.floatingConfig),"class"in wt&&n(21,de=wt.class),"ariaValues"in wt&&n(74,ld=wt.ariaValues),"ariaListOpen"in wt&&n(75,nt=wt.ariaListOpen),"ariaFocused"in wt&&n(76,zt=wt.ariaFocused),"$$scope"in wt&&n(81,x=wt.$$scope)},e.$$.update=function(){var wt,je,un,Kr,Zi;8&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&gt&&function(){if(typeof gt=="string"){var Mn,Jr=(G||[]).find(function(Si){return Si[le]===gt});n(3,gt=Jr||(Vo(Mn={},le,gt),Vo(Mn,"label",gt),Mn))}else T&&Array.isArray(gt)&&gt.length>0&&n(3,gt=gt.map(function(Si){return typeof Si=="string"?{value:Si,label:Si}:Si}))}(),131072&e.$$.dirty[0]|256&e.$$.dirty[2]&&(!gn&&Be||(n(27,g=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},gn)),q&&n(27,g.id=q,g),Be||n(27,g.readonly=!0,g))),512&e.$$.dirty[0]&&T&&gt&&(Array.isArray(gt)?n(3,gt=Se(gt)):n(3,gt=[gt])),512&e.$$.dirty[0]|131072&e.$$.dirty[2]&&m&&!T&&gt&&n(3,gt=null),520&e.$$.dirty[0]&&T&&gt&&gt.length>1&&Dn(),8&e.$$.dirty[0]&&gt&&(T?JSON.stringify(gt)!==JSON.stringify(p)&&Dn()&&j("input",gt):p&&JSON.stringify(gt[le])===JSON.stringify(p[le])||j("input",gt)),520&e.$$.dirty[0]|32768&e.$$.dirty[2]&&!gt&&T&&p&&j("input",gt),6&e.$$.dirty[0]&&!bt&&P&&Jn(),16&e.$$.dirty[0]|65536&e.$$.dirty[2]&&J!==v&&(Ne||J.length!==0)&&(Ne?pe(Ae(qt().mark(function Mn(){var Jr;return qt().wrap(function(Si){for(;;)switch(Si.prev=Si.next){case 0:return n(5,vt=!0),Si.next=3,K({dispatch:j,loadOptions:Ne,convertStringItemsToObjects:Z6,filterText:J});case 3:(Jr=Si.sent)?(n(5,vt=Jr.loading),n(6,It=It?Jr.listOpen:J.length>0),n(2,bt=It&&Jr.focused),n(51,G=Qt?fn(Jr.filteredItems):Jr.filteredItems)):(n(5,vt=!1),n(2,bt=!0),n(6,It=!0));case 5:case"end":return Si.stop()}},Mn)})),Fe):(n(6,It=!0),T&&n(26,h=void 0))),12824&e.$$.dirty[0]|407896064&e.$$.dirty[1]|3&e.$$.dirty[2]&&n(24,u=$({loadOptions:Ne,filterText:J,items:G,multiple:T,value:gt,itemId:le,groupBy:Qt,label:mt,filterSelectedItems:Zn,itemFilter:Ct,convertStringItemsToObjects:Z6,filterGroupedItems:fn})),16777800&e.$$.dirty[0]&&!T&&It&&gt&&u&&(wt=u.findIndex(function(Mn){return Mn[le]===gt[le]}),Kn(wt,!0)),576&e.$$.dirty[0]&&It&&T&&n(7,Yt=0),16&e.$$.dirty[0]&&J&&n(7,Yt=0),128&e.$$.dirty[0]&&function(Mn){j("hoverItem",Mn)}(Yt),520&e.$$.dirty[0]&&n(25,r=T?gt&&gt.length>0:gt),33554448&e.$$.dirty[0]&&n(35,o=r&&J.length>0),33556512&e.$$.dirty[0]|32&e.$$.dirty[2]&&n(34,i=r&&Q&&!tt&&!vt),520&e.$$.dirty[0]|100663296&e.$$.dirty[1]&&n(33,a=z&&T||T&&((je=gt)===null||je===void 0?void 0:je.length)===0?X:gt?"":X),520&e.$$.dirty[0]&&n(32,s=gt?(un=void 0,un=T&&gt.length>0?gt.map(function(Mn){return Mn[mt]}).join(", "):gt[mt],ld(un)):""),16777412&e.$$.dirty[0]&&n(31,c=function(){if(!u||u.length===0)return"";var Mn=u[Yt];if(It&&Mn){var Jr=u?u.length:0;return nt(Mn[mt],Jr)}return zt()}()),1048576&e.$$.dirty[1]&&function(Mn){Mn&&Mn.length!==0&&!Mn.some(function(Jr){return ce(Jr)!=="object"})&&gt&&(T?!gt.some(function(Jr){return!Jr||!Jr[le]}):gt[le])&&(Array.isArray(gt)?n(3,gt=gt.map(function(Jr){return Nr(Jr)||Jr})):n(3,gt=Nr()||gt))}(G),8712&e.$$.dirty[0]&&n(52,N=T?gt?gt.map(function(Mn){return Mn[le]}):null:gt&&gt[le]),520&e.$$.dirty[0]|32768&e.$$.dirty[2]&&(T||!p||gt||j("input",gt)),16777800&e.$$.dirty[0]&&It&&u&&!T&&!gt&&Kn(),16777216&e.$$.dirty[0]&&function(Mn){It&&j("filter",Mn)}(u),1&e.$$.dirty[0]|2048&e.$$.dirty[2]&&_&&((Kr=He)===null||Kr===void 0?void 0:Kr.autoUpdate)===void 0&&n(80,No.autoUpdate=!0,No),1&e.$$.dirty[0]|264192&e.$$.dirty[2]&&_&&He&&Wr(Object.assign(No,He)),8388608&e.$$.dirty[0]&&n(30,l=!!Ut),8388672&e.$$.dirty[0]&&function(Mn,Jr){if(!Mn||!Jr)return n(28,eo=!0);setTimeout(function(){n(28,eo=!1)},0)}(Ut,It),8388673&e.$$.dirty[0]&&It&&_&&Ut&&(Zi=_.getBoundingClientRect().width,n(23,Ut.style.width=tr?Zi+"px":"auto",Ut)),128&e.$$.dirty[0]&&n(29,f=Yt),70&e.$$.dirty[0]&&P&&It&&!bt&&ji()},[_,P,bt,gt,J,vt,It,Yt,O,T,I,tt,mt,le,Ye,qn,En,Be,$t,On,ct,de,function(){j("clear",gt),n(3,gt=void 0),Jn(),ji()},Ut,u,r,h,g,eo,f,l,c,s,a,i,o,ci,function(wt){if(bt)switch(wt.stopPropagation(),wt.key){case"Escape":wt.preventDefault(),Jn();break;case"Enter":if(wt.preventDefault(),It){if(u.length===0)break;var je=u[Yt];if(gt&&!T&&gt[le]===je[le]){Jn();break}Ee(u[Yt])}break;case"ArrowDown":wt.preventDefault(),It?Tr(1):(n(6,It=!0),n(26,h=void 0));break;case"ArrowUp":wt.preventDefault(),It?Tr(-1):(n(6,It=!0),n(26,h=void 0));break;case"Tab":if(It&&bt){if(u.length===0||gt&&gt[le]===u[Yt][le])return Jn();wt.preventDefault(),Ee(u[Yt]),Jn()}break;case"Backspace":if(!T||J.length>0)return;if(T&&gt&&gt.length>0){if(ci(h!==void 0?h:gt.length-1),h===0||h===void 0)break;n(26,h=gt.length>h?h-1:void 0)}break;case"ArrowLeft":if(!gt||!T||J.length>0)return;h===void 0?n(26,h=gt.length-1):gt.length>h&&h!==0&&n(26,h-=1);break;case"ArrowRight":if(!gt||!T||J.length>0||h===void 0)return;h===gt.length-1?n(26,h=void 0):h<gt.length-1&&n(26,h+=1)}},ji,Ra,function(){tt||n(6,It=!It)},te,function(wt){var je;It||bt||!_||_.contains(wt.target)||(je=Ut)!==null&&je!==void 0&&je.contains(wt.target)||Ra()},Oe,rr,function(wt,je,un){if(!T)return je&&je[un]===wt[un]},jr,po,_r,ws,k,G,N,$,K,q,X,z,Ct,Qt,Kt,Me,Ne,Zn,sr,Et,function(){return u},Q,pe,Fe,gn,tr,Zt,He,ld,nt,zt,p,v,m,No,x,w,function(wt){ov.call(this,e,wt)},function(wt){ov.call(this,e,wt)},function(wt){ov.call(this,e,wt)},function(wt){ov.call(this,e,wt)},function(wt){return Oe(wt)},function(wt){return Oe(wt)},function(wt,je){return rr({item:wt,i:je})},function(wt){rn[wt?"unshift":"push"](function(){n(23,Ut=wt)})},function(wt){return ci(wt)},function(wt){return I?ci(wt):{}},function(wt){rn[wt?"unshift":"push"](function(){n(1,P=wt)})},function(){J=this.value,n(4,J)},function(wt){rn[wt?"unshift":"push"](function(){n(0,_=wt)})}]}var $u=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,wht,bht,to,{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,createGroupHeaderItem:65,getFilteredItems:66,searchable:17,inputStyles:18,clearable:67,loading:5,listOpen:6,debounce:68,debounceWait:69,hideEmptyState:19,inputAttributes:70,listAutoWidth:71,showChevron:20,listOffset:72,hoverItemIndex:7,floatingConfig:73,class:21,handleClear:22,ariaValues:74,ariaListOpen:75,ariaFocused:76},Zdt,[-1,-1,-1,-1,-1]),o}return ot(n,[{key:"getFilteredItems",get:function(){return this.$$.ctx[66]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),n}();function xht(e){ze(e,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function kht(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K,R,q,F,O,A,_;function M(jt){e[16](jt)}var P={class:"jse-filter-path",showChevron:!0,items:e[7]};function D(jt){e[17](jt)}e[0]!==void 0&&(P.value=e[0]),s=new $u({props:P}),rn.push(function(){return da(s,"value",M)});var T={class:"jse-filter-relation",showChevron:!0,items:e[8]};function H(jt){e[19](jt)}e[1]!==void 0&&(T.value=e[1]),l=new $u({props:T}),rn.push(function(){return da(l,"value",D)});var I={class:"jse-sort-path",showChevron:!0,items:e[7]};function ft(jt){e[20](jt)}e[3]!==void 0&&(I.value=e[3]),w=new $u({props:I}),rn.push(function(){return da(w,"value",H)});var tt={class:"jse-sort-direction",showChevron:!0,items:e[9]};function yt(jt){e[21](jt)}e[4]!==void 0&&(tt.value=e[4]),j=new $u({props:tt}),rn.push(function(){return da(j,"value",ft)});var bt={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:e[6]};return e[5]!==void 0&&(bt.value=e[5]),q=new $u({props:bt}),rn.push(function(){return da(q,"value",yt)}),{c:function(){t=et("table"),n=et("tr"),(r=et("th")).textContent="Filter",o=kt(),i=et("td"),a=et("div"),Pt(s.$$.fragment),u=kt(),Pt(l.$$.fragment),d=kt(),h=et("input"),p=kt(),v=et("tr"),(m=et("th")).textContent="Sort",g=kt(),y=et("td"),b=et("div"),Pt(w.$$.fragment),k=kt(),Pt(j.$$.fragment),N=kt(),C=et("tr"),($=et("th")).textContent="Pick",B=kt(),K=et("td"),R=et("div"),Pt(q.$$.fragment),E(r,"class","svelte-1kiph99"),E(h,"class","jse-filter-value svelte-1kiph99"),E(a,"class","jse-horizontal svelte-1kiph99"),E(m,"class","svelte-1kiph99"),E(b,"class","jse-horizontal svelte-1kiph99"),E($,"class","svelte-1kiph99"),E(R,"class","jse-horizontal svelte-1kiph99"),E(t,"class","jse-transform-wizard svelte-1kiph99")},m:function(jt,gt){dt(jt,t,gt),V(t,n),V(n,r),V(n,o),V(n,i),V(i,a),Mt(s,a,null),V(a,u),Mt(l,a,null),V(a,d),V(a,h),us(h,e[2]),V(t,p),V(t,v),V(v,m),V(v,g),V(v,y),V(y,b),Mt(w,b,null),V(b,k),Mt(j,b,null),V(t,N),V(t,C),V(C,$),V(C,B),V(C,K),V(K,R),Mt(q,R,null),O=!0,A||(_=Lt(h,"input",e[18]),A=!0)},p:function(jt,gt){var Y=$e(gt,1)[0],J={};128&Y&&(J.items=jt[7]),!c&&1&Y&&(c=!0,J.value=jt[0],fa(function(){return c=!1})),s.$set(J);var it={};!f&&2&Y&&(f=!0,it.value=jt[1],fa(function(){return f=!1})),l.$set(it),4&Y&&h.value!==jt[2]&&us(h,jt[2]);var X={};128&Y&&(X.items=jt[7]),!x&&8&Y&&(x=!0,X.value=jt[3],fa(function(){return x=!1})),w.$set(X);var _t={};!S&&16&Y&&(S=!0,_t.value=jt[4],fa(function(){return S=!1})),j.$set(_t);var z={};64&Y&&(z.items=jt[6]),!F&&32&Y&&(F=!0,z.value=jt[5],fa(function(){return F=!1})),q.$set(z)},i:function(jt){O||(L(s.$$.fragment,jt),L(l.$$.fragment,jt),L(w.$$.fragment,jt),L(j.$$.fragment,jt),L(q.$$.fragment,jt),O=!0)},o:function(jt){U(s.$$.fragment,jt),U(l.$$.fragment,jt),U(w.$$.fragment,jt),U(j.$$.fragment,jt),U(q.$$.fragment,jt),O=!1},d:function(jt){jt&&lt(t),At(s),At(l),At(w),At(j),At(q),A=!1,_()}}}function jht(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p=ho("jsoneditor:TransformWizard"),v=t.json,m=t.queryOptions,g=m===void 0?{}:m,y=t.onChange,b=["==","!=","<","<=",">",">="].map(function(C){return{value:C,label:C}}),w=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],x=(r=g)!==null&&r!==void 0&&(r=r.filter)!==null&&r!==void 0&&r.path?Ld(g.filter.path):null,k=(o=g)!==null&&o!==void 0&&(o=o.filter)!==null&&o!==void 0&&o.relation?b.find(function(C){var $;return C.value===(($=g.filter)===null||$===void 0?void 0:$.relation)}):null,j=((i=g)===null||i===void 0||(i=i.filter)===null||i===void 0?void 0:i.value)||"",S=(a=g)!==null&&a!==void 0&&(a=a.sort)!==null&&a!==void 0&&a.path?Ld(g.sort.path):null,N=(s=g)!==null&&s!==void 0&&(s=s.sort)!==null&&s!==void 0&&s.direction?w.find(function(C){var $;return C.value===(($=g.sort)===null||$===void 0?void 0:$.direction)}):null;return e.$$set=function(C){"json"in C&&n(11,v=C.json),"queryOptions"in C&&n(10,g=C.queryOptions),"onChange"in C&&n(12,y=C.onChange)},e.$$.update=function(){var C,$,B,K,R,q,F,O,A,_,M,P,D;2048&e.$$.dirty&&n(15,c=Array.isArray(v)),34816&e.$$.dirty&&n(14,u=c?$w(v):[]),34816&e.$$.dirty&&n(13,l=c?$w(v,!0):[]),16384&e.$$.dirty&&n(7,f=u.map(Ld)),8192&e.$$.dirty&&n(6,d=l?l.map(Ld):[]),1088&e.$$.dirty&&n(5,h=(C=g)!==null&&C!==void 0&&(C=C.projection)!==null&&C!==void 0&&C.paths&&d?g.projection.paths.map(function(T){return d.find(function(H){return an(H.value,T)})}).filter(function(T){return!!T}):null),1&e.$$.dirty&&(B=(($=x)===null||$===void 0?void 0:$.value)||null,an((K=g)===null||K===void 0||(K=K.filter)===null||K===void 0?void 0:K.path,B)||(p("changeFilterPath",B),n(10,g=aa(g,["filter","path"],B,!0)),y(g))),2&e.$$.dirty&&(q=((R=k)===null||R===void 0?void 0:R.value)||null,an((F=g)===null||F===void 0||(F=F.filter)===null||F===void 0?void 0:F.relation,q)||(p("changeFilterRelation",q),n(10,g=aa(g,["filter","relation"],q,!0)),y(g))),4&e.$$.dirty&&(O=j||null,an((A=g)===null||A===void 0||(A=A.filter)===null||A===void 0?void 0:A.value,O)||(p("changeFilterValue",O),n(10,g=aa(g,["filter","value"],O,!0)),y(g))),8&e.$$.dirty&&function(T){var H;an((H=g)===null||H===void 0||(H=H.sort)===null||H===void 0?void 0:H.path,T)||(p("changeSortPath",T),n(10,g=aa(g,["sort","path"],T,!0)),y(g))}(((_=S)===null||_===void 0?void 0:_.value)||null),16&e.$$.dirty&&(P=((M=N)===null||M===void 0?void 0:M.value)||null,an((D=g)===null||D===void 0||(D=D.sort)===null||D===void 0?void 0:D.direction,P)||(p("changeSortDirection",P),n(10,g=aa(g,["sort","direction"],P,!0)),y(g))),32&e.$$.dirty&&function(T){var H;an((H=g)===null||H===void 0||(H=H.projection)===null||H===void 0?void 0:H.paths,T)||(p("changeProjectionPaths",T),n(10,g=aa(g,["projection","paths"],T,!0)),y(g))}(h?h.map(function(T){return T.value}):null)},[x,k,j,S,N,h,d,f,b,w,g,v,y,l,u,c,function(C){n(0,x=C)},function(C){n(1,k=C)},function(){j=this.value,n(2,j)},function(C){n(3,S=C)},function(C){n(4,N=C)},function(C){n(5,h=C),n(10,g),n(6,d),n(13,l),n(15,c),n(11,v)}]}var _ht=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,jht,kht,qe,{json:11,queryOptions:10,onChange:12},xht),o}return ot(n)}();function Sht(e){ze(e,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function tM(e,t,n){var r=e.slice();return r[5]=t[n],r}function $ht(e){var t,n;return t=new hn({props:{data:Bh}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Cht(e){var t,n;return t=new hn({props:{data:Lh}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function eM(e){var t,n,r,o,i,a,s,c,u,l,f=e[5].name+"",d=[Cht,$ht],h=[];function p(m,g){return m[5].id===m[0]?0:1}function v(){return e[4](e[5])}return n=p(e),r=h[n]=d[n](e),{c:function(){t=et("button"),r.c(),o=kt(),i=Gt(f),a=kt(),E(t,"type","button"),E(t,"class","jse-query-language svelte-19cxesy"),E(t,"title",s="Select ".concat(e[5].name," as query language")),Dt(t,"selected",e[5].id===e[0])},m:function(m,g){dt(m,t,g),h[n].m(t,null),V(t,o),V(t,i),V(t,a),c=!0,u||(l=Lt(t,"click",v),u=!0)},p:function(m,g){var y=n;(n=p(e=m))!==y&&(Bt(),U(h[y],1,1,function(){h[y]=null}),Ft(),(r=h[n])||(r=h[n]=d[n](e)).c(),L(r,1),r.m(t,o)),(!c||2&g)&&f!==(f=e[5].name+"")&&we(i,f),(!c||2&g&&s!==(s="Select ".concat(e[5].name," as query language")))&&E(t,"title",s),(!c||3&g)&&Dt(t,"selected",e[5].id===e[0])},i:function(m){c||(L(r),c=!0)},o:function(m){U(r),c=!1},d:function(m){m&&lt(t),h[n].d(),u=!1,l()}}}function Eht(e){for(var t,n,r,o=De(e[1]),i=[],a=0;a<o.length;a+=1)i[a]=eM(tM(e,o,a));var s=function(c){return U(i[c],1,1,function(){i[c]=null})};return{c:function(){t=et("div"),n=et("div");for(var c=0;c<i.length;c+=1)i[c].c();E(n,"class","jse-select-query-language-container svelte-19cxesy"),E(t,"class","jse-select-query-language svelte-19cxesy")},m:function(c,u){dt(c,t,u),V(t,n);for(var l=0;l<i.length;l+=1)i[l]&&i[l].m(n,null);r=!0},p:function(c,u){var l=$e(u,1)[0];if(7&l){var f;for(o=De(c[1]),f=0;f<o.length;f+=1){var d=tM(c,o,f);i[f]?(i[f].p(d,l),L(i[f],1)):(i[f]=eM(d),i[f].c(),L(i[f],1),i[f].m(n,null))}for(Bt(),f=o.length;f<i.length;f+=1)s(f);Ft()}},i:function(c){if(!r){for(var u=0;u<o.length;u+=1)L(i[u]);r=!0}},o:function(c){i=i.filter(Boolean);for(var u=0;u<i.length;u+=1)U(i[u]);r=!1},d:function(c){c&&lt(t),Ir(i,c)}}}function Oht(e,t,n){var r=t.queryLanguages,o=t.queryLanguageId,i=t.onChangeQueryLanguage;function a(s){n(0,o=s),i(s)}return e.$$set=function(s){"queryLanguages"in s&&n(1,r=s.queryLanguages),"queryLanguageId"in s&&n(0,o=s.queryLanguageId),"onChangeQueryLanguage"in s&&n(3,i=s.onChangeQueryLanguage)},[o,r,a,i,function(s){return a(s.id)}]}var Mht=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Oht,Eht,to,{queryLanguages:1,queryLanguageId:0,onChangeQueryLanguage:3},Sht),o}return ot(n)}();function Aht(e){ze(e,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function nM(e){var t,n,r,o,i;return n=new hn({props:{data:kdt}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-config svelte-d01h2s"),E(t,"title","Select a query language")},m:function(a,s){dt(a,t,s),Mt(n,t,null),e[6](t),r=!0,o||(i=Lt(t,"click",e[3]),o=!0)},p:Ht,i:function(a){r||(L(n.$$.fragment,a),r=!0)},o:function(a){U(n.$$.fragment,a),r=!1},d:function(a){a&&lt(t),At(n),e[6](null),o=!1,i()}}}function Pht(e){var t,n,r,o,i,a,s,c,u,l=e[0].length>1&&nM(e);return a=new hn({props:{data:Of}}),{c:function(){t=et("div"),(n=et("div")).textContent="Transform",r=kt(),l&&l.c(),o=kt(),i=et("button"),Pt(a.$$.fragment),E(n,"class","jse-title svelte-d01h2s"),E(i,"type","button"),E(i,"class","jse-close svelte-d01h2s"),E(t,"class","jse-header svelte-d01h2s")},m:function(f,d){dt(f,t,d),V(t,n),V(t,r),l&&l.m(t,null),V(t,o),V(t,i),Mt(a,i,null),s=!0,c||(u=Lt(i,"click",e[7]),c=!0)},p:function(f,d){var h=$e(d,1)[0];f[0].length>1?l?(l.p(f,h),1&h&&L(l,1)):((l=nM(f)).c(),L(l,1),l.m(t,o)):l&&(Bt(),U(l,1,1,function(){l=null}),Ft())},i:function(f){s||(L(l),L(a.$$.fragment,f),s=!0)},o:function(f){U(l),U(a.$$.fragment,f),s=!1},d:function(f){f&&lt(t),l&&l.d(),At(a),c=!1,u()}}}function Tht(e,t,n){var r,o,i=t.queryLanguages,a=t.queryLanguageId,s=t.onChangeQueryLanguage,c=fo("simple-modal").close,u=fo("absolute-popup"),l=u.openAbsolutePopup,f=u.closeAbsolutePopup;return e.$$set=function(d){"queryLanguages"in d&&n(0,i=d.queryLanguages),"queryLanguageId"in d&&n(4,a=d.queryLanguageId),"onChangeQueryLanguage"in d&&n(5,s=d.onChangeQueryLanguage)},[i,r,c,function(){o=l(Mht,{queryLanguages:i,queryLanguageId:a,onChangeQueryLanguage:function(d){f(o),s(d)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:r,closeOnOuterClick:!0})},a,s,function(d){rn[d?"unshift":"push"](function(){n(1,r=d)})},function(){return c()}]}var Rht=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Tht,Pht,qe,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Aht),o}return ot(n)}(),ky=ho("jsoneditor:AutoScrollHandler"),Iht=function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},xB=function(){var e,t,n,r,o,i,a,s,c,u,l,f,d;function h(m){return m.getBoundingClientRect().top-(e.getBoundingClientRect?e.getBoundingClientRect().top:0)+n}function p(m){e.scrollTo?e.scrollTo(e.scrollLeft,m):e.scrollTop=m}function v(m){u||(u=m),p(i(l=m-u,n,s,c)),d=!0,l<c?requestAnimationFrame(v):function(){p(n+s),t&&a&&(t.setAttribute("tabindex","-1"),t.focus()),typeof f=="function"&&f(),u=0,d=!1}()}return function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(c=1e3,o=g.offset||0,f=g.callback,i=g.easing||Iht,a=g.a11y||!1,ce(g.container)){case"object":e=g.container;break;case"string":e=document.querySelector(g.container);break;default:e=window.document.documentElement}switch(n=e.scrollTop,ce(m)){case"number":t=void 0,a=!1,r=n+m;break;case"object":r=h(t=m);break;case"string":t=document.querySelector(m),r=h(t)}switch(s=r-n+o,ce(g.duration)){case"number":c=g.duration;break;case"function":c=g.duration(s)}d?u=0:requestAnimationFrame(v)}},Nht=1e3,yv=ho("jsoneditor:History");function kB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.maxItems||Nht,n=[],r=0;function o(){return r<n.length}function i(){return r>0}function a(){return{canUndo:o(),canRedo:i(),length:n.length}}function s(){e.onChange&&e.onChange(a())}return{add:function(c){yv("add",c),n=[c].concat(n.slice(r)).slice(0,t),r=0,s()},clear:function(){yv("clear"),n=[],r=0,s()},getState:a,undo:function(){if(o()){var c=n[r];return r+=1,yv("undo",c),s(),c}},redo:function(){if(i())return yv("redo",n[r-=1]),s(),n[r]}}}function Fl(e,t){var n=Date.now(),r=e();return t(Date.now()-n),r}var El=ho("validation");function jB(e,t,n,r){return El("validateJSON"),t?t(n!==r?r.parse(n.stringify(e)):e):[]}function Dht(e,t,n,r){if(El("validateText"),e.length>_Z)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Hs.info}]};if(e.length===0)return null;try{var o=Fl(function(){return n.parse(e)},function(c){return El("validate: parsed json in ".concat(c," ms"))});if(!t)return null;var i=n===r?o:Fl(function(){return r.parse(e)},function(c){return El("validate: parsed json with the validationParser in ".concat(c," ms"))}),a=Fl(function(){return t(i)},function(c){return El("validate: validated json in ".concat(c," ms"))});return cn(a)?null:{validationErrors:a}}catch(c){var s=Fl(function(){return function(u,l){if(u.length>SZ)return!1;try{return l.parse(Xa(u)),!0}catch{return!1}}(e,n)},function(u){return El("validate: checked whether repairable in ".concat(u," ms"))});return{parseError:Sf(e,c.message||c.toString()),isRepairable:s}}}var bv=ho("jsoneditor:FocusTracker");function mj(e){var t,n=e.onMount,r=e.onDestroy,o=e.getWindow,i=e.hasFocus,a=e.onFocus,s=e.onBlur,c=!1;function u(){var f=i();f&&(clearTimeout(t),c||(bv("focus"),a(),c=f))}function l(){c&&(clearTimeout(t),t=setTimeout(function(){bv("blur"),c=!1,s()}))}n(function(){bv("mount FocusTracker");var f=o();f&&(f.addEventListener("focusin",u,!0),f.addEventListener("focusout",l,!0))}),r(function(){bv("destroy FocusTracker");var f=o();f&&(f.removeEventListener("focusin",u,!0),f.removeEventListener("focusout",l,!0))})}function zht(e){ze(e,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function rM(e,t,n){var r=e.slice();return r[9]=t[n],r}function oM(e){var t,n;return t=new hn({props:{data:e[1]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o&&(i.data=r[1]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function iM(e){var t,n;return t=new hn({props:{data:e[9].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.data=r[9].icon),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function aM(e){var t,n,r,o,i,a,s,c,u,l=e[9].text+"",f=e[9].icon&&iM(e);function d(){return e[7](e[9])}function h(){return e[8](e[9])}return{c:function(){t=et("button"),f&&f.c(),n=kt(),r=Gt(l),o=kt(),E(t,"type","button"),E(t,"class","jse-button jse-action jse-primary svelte-fqu1ku"),E(t,"title",i=e[9].title),t.disabled=a=e[9].disabled},m:function(p,v){dt(p,t,v),f&&f.m(t,null),V(t,n),V(t,r),V(t,o),s=!0,c||(u=[Lt(t,"click",d),Lt(t,"mousedown",h)],c=!0)},p:function(p,v){(e=p)[9].icon?f?(f.p(e,v),8&v&&L(f,1)):((f=iM(e)).c(),L(f,1),f.m(t,n)):f&&(Bt(),U(f,1,1,function(){f=null}),Ft()),(!s||8&v)&&l!==(l=e[9].text+"")&&we(r,l),(!s||8&v&&i!==(i=e[9].title))&&E(t,"title",i),(!s||8&v&&a!==(a=e[9].disabled))&&(t.disabled=a)},i:function(p){s||(L(f),s=!0)},o:function(p){U(f),s=!1},d:function(p){p&&lt(t),f&&f.d(),c=!1,Fn(u)}}}function Lht(e){for(var t,n,r,o,i,a,s,c,u,l,f,d=e[1]&&oM(e),h=De(e[3]),p=[],v=0;v<h.length;v+=1)p[v]=aM(rM(e,h,v));var m=function(g){return U(p[g],1,1,function(){p[g]=null})};return{c:function(){t=et("div"),n=et("div"),r=et("div"),d&&d.c(),o=kt(),i=Gt(e[2]),a=kt(),s=et("div");for(var g=0;g<p.length;g+=1)p[g].c();E(r,"class","jse-text-centered"),E(n,"role","button"),E(n,"tabindex","-1"),E(n,"class","jse-text svelte-fqu1ku"),Dt(n,"jse-clickable",!!e[4]),E(s,"class","jse-actions svelte-fqu1ku"),E(t,"class",c="jse-message jse-"+e[0]+" svelte-fqu1ku")},m:function(g,y){dt(g,t,y),V(t,n),V(n,r),d&&d.m(r,null),V(r,o),V(r,i),V(t,a),V(t,s);for(var b=0;b<p.length;b+=1)p[b]&&p[b].m(s,null);u=!0,l||(f=Lt(n,"click",e[5]),l=!0)},p:function(g,y){var b=$e(y,1)[0];if(g[1]?d?(d.p(g,b),2&b&&L(d,1)):((d=oM(g)).c(),L(d,1),d.m(r,o)):d&&(Bt(),U(d,1,1,function(){d=null}),Ft()),(!u||4&b)&&we(i,g[2]),(!u||16&b)&&Dt(n,"jse-clickable",!!g[4]),8&b){var w;for(h=De(g[3]),w=0;w<h.length;w+=1){var x=rM(g,h,w);p[w]?(p[w].p(x,b),L(p[w],1)):(p[w]=aM(x),p[w].c(),L(p[w],1),p[w].m(s,null))}for(Bt(),w=h.length;w<p.length;w+=1)m(w);Ft()}(!u||1&b&&c!==(c="jse-message jse-"+g[0]+" svelte-fqu1ku"))&&E(t,"class",c)},i:function(g){if(!u){L(d);for(var y=0;y<h.length;y+=1)L(p[y]);u=!0}},o:function(g){U(d),p=p.filter(Boolean);for(var y=0;y<p.length;y+=1)U(p[y]);u=!1},d:function(g){g&&lt(t),d&&d.d(),Ir(p,g),l=!1,f()}}}function Bht(e,t,n){var r=t.type,o=r===void 0?"success":r,i=t.icon,a=i===void 0?void 0:i,s=t.message,c=s===void 0?void 0:s,u=t.actions,l=u===void 0?[]:u,f=t.onClick,d=f===void 0?void 0:f,h=t.onClose,p=h===void 0?void 0:h;return p&&yi(p),e.$$set=function(v){"type"in v&&n(0,o=v.type),"icon"in v&&n(1,a=v.icon),"message"in v&&n(2,c=v.message),"actions"in v&&n(3,l=v.actions),"onClick"in v&&n(4,d=v.onClick),"onClose"in v&&n(6,p=v.onClose)},[o,a,c,l,d,function(){d&&d()},p,function(v){v.onClick&&v.onClick()},function(v){v.onMouseDown&&v.onMouseDown()}]}var Aa=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Bht,Lht,qe,{type:0,icon:1,message:2,actions:3,onClick:4,onClose:6},zht),o}return ot(n)}();function Fht(e){ze(e,"svelte-1oe8e8r",".jse-validation-errors-overview.svelte-1oe8e8r.svelte-1oe8e8r{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-message-warning-background);color:var(--jse-message-warning-color);overflow:auto;max-height:25%}.jse-validation-errors-overview.svelte-1oe8e8r table.svelte-1oe8e8r{border-collapse:collapse;width:100%}.jse-validation-errors-overview.svelte-1oe8e8r table tr.svelte-1oe8e8r{cursor:pointer}.jse-validation-errors-overview.svelte-1oe8e8r table tr.svelte-1oe8e8r:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.svelte-1oe8e8r{padding:4px var(--jse-padding);vertical-align:middle}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-icon.svelte-1oe8e8r{width:36px;box-sizing:border-box}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-action.svelte-1oe8e8r{width:36px;box-sizing:border-box;padding:0}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-action button.jse-validation-errors-collapse.svelte-1oe8e8r{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:36px;height:26px;cursor:pointer}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-action button.jse-validation-errors-collapse.svelte-1oe8e8r:hover{background-color:rgba(255, 255, 255, 0.2)}.jse-validation-errors-overview.svelte-1oe8e8r table tr td div.jse-validation-errors-expand.svelte-1oe8e8r{display:inline-block;position:relative;top:3px}")}function sM(e,t,n){var r=e.slice();return r[7]=t[n],r[9]=n,r}function cM(e){var t,n,r,o,i=[Hht,qht],a=[];function s(c,u){return c[2]||c[3]===1?0:1}return n=s(e),r=a[n]=i[n](e),{c:function(){t=et("div"),r.c(),E(t,"class","jse-validation-errors-overview svelte-1oe8e8r")},m:function(c,u){dt(c,t,u),a[n].m(t,null),o=!0},p:function(c,u){var l=n;(n=s(c))===l?a[n].p(c,u):(Bt(),U(a[l],1,1,function(){a[l]=null}),Ft(),(r=a[n])?r.p(c,u):(r=a[n]=i[n](c)).c(),L(r,1),r.m(t,null))},i:function(c){o||(L(r),o=!0)},o:function(c){U(r),o=!1},d:function(c){c&&lt(t),a[n].d()}}}function qht(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p;return i=new hn({props:{data:hl}}),f=new hn({props:{data:cB}}),{c:function(){t=et("table"),n=et("tbody"),r=et("tr"),o=et("td"),Pt(i.$$.fragment),a=kt(),s=et("td"),c=Gt(e[3]),u=Gt(` validation errors
99
+ `),l=et("div"),Pt(f.$$.fragment),E(o,"class","jse-validation-error-icon svelte-1oe8e8r"),E(l,"class","jse-validation-errors-expand svelte-1oe8e8r"),E(s,"class","svelte-1oe8e8r"),E(r,"class","jse-validation-error svelte-1oe8e8r"),E(t,"class","svelte-1oe8e8r")},m:function(v,m){dt(v,t,m),V(t,n),V(n,r),V(r,o),Mt(i,o,null),V(r,a),V(r,s),V(s,c),V(s,u),V(s,l),Mt(f,l,null),d=!0,h||(p=Lt(r,"click",e[5]),h=!0)},p:function(v,m){(!d||8&m)&&we(c,v[3])},i:function(v){d||(L(i.$$.fragment,v),L(f.$$.fragment,v),d=!0)},o:function(v){U(i.$$.fragment,v),U(f.$$.fragment,v),d=!1},d:function(v){v&&lt(t),At(i),At(f),h=!1,p()}}}function Hht(e){for(var t,n,r,o,i=De(bg(e[0],Dl)),a=[],s=0;s<i.length;s+=1)a[s]=lM(sM(e,i,s));var c=function(l){return U(a[l],1,1,function(){a[l]=null})},u=e[3]>Dl&&fM(e);return{c:function(){t=et("table"),n=et("tbody");for(var l=0;l<a.length;l+=1)a[l].c();r=kt(),u&&u.c(),E(t,"class","svelte-1oe8e8r")},m:function(l,f){dt(l,t,f),V(t,n);for(var d=0;d<a.length;d+=1)a[d]&&a[d].m(n,null);V(n,r),u&&u.m(n,null),o=!0},p:function(l,f){if(19&f){var d;for(i=De(bg(l[0],Dl)),d=0;d<i.length;d+=1){var h=sM(l,i,d);a[d]?(a[d].p(h,f),L(a[d],1)):(a[d]=lM(h),a[d].c(),L(a[d],1),a[d].m(n,r))}for(Bt(),d=i.length;d<a.length;d+=1)c(d);Ft()}l[3]>Dl?u?u.p(l,f):((u=fM(l)).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:function(l){if(!o){for(var f=0;f<i.length;f+=1)L(a[f]);o=!0}},o:function(l){a=a.filter(Boolean);for(var f=0;f<a.length;f+=1)U(a[f]);o=!1},d:function(l){l&&lt(t),Ir(a,l),u&&u.d()}}}function uM(e){var t,n,r,o,i;return n=new hn({props:{data:jdt}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-validation-errors-collapse svelte-1oe8e8r"),E(t,"title","Collapse validation errors")},m:function(a,s){dt(a,t,s),Mt(n,t,null),r=!0,o||(i=Lt(t,"click",cs(e[4])),o=!0)},p:Ht,i:function(a){r||(L(n.$$.fragment,a),r=!0)},o:function(a){U(n.$$.fragment,a),r=!1},d:function(a){a&&lt(t),At(n),o=!1,i()}}}function lM(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v=ai(e[7].path)+"",m=e[7].message+"";r=new hn({props:{data:hl}});var g=e[9]===0&&e[0].length>1&&uM(e);function y(){return e[6](e[7])}return{c:function(){t=et("tr"),n=et("td"),Pt(r.$$.fragment),o=kt(),i=et("td"),a=Gt(v),s=kt(),c=et("td"),u=Gt(m),l=kt(),f=et("td"),g&&g.c(),E(n,"class","jse-validation-error-icon svelte-1oe8e8r"),E(i,"class","svelte-1oe8e8r"),E(c,"class","svelte-1oe8e8r"),E(f,"class","jse-validation-error-action svelte-1oe8e8r"),E(t,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,w){dt(b,t,w),V(t,n),Mt(r,n,null),V(t,o),V(t,i),V(i,a),V(t,s),V(t,c),V(c,u),V(t,l),V(t,f),g&&g.m(f,null),d=!0,h||(p=Lt(t,"click",y),h=!0)},p:function(b,w){e=b,(!d||1&w)&&v!==(v=ai(e[7].path)+"")&&we(a,v),(!d||1&w)&&m!==(m=e[7].message+"")&&we(u,m),e[9]===0&&e[0].length>1?g?(g.p(e,w),1&w&&L(g,1)):((g=uM(e)).c(),L(g,1),g.m(f,null)):g&&(Bt(),U(g,1,1,function(){g=null}),Ft())},i:function(b){d||(L(r.$$.fragment,b),L(g),d=!0)},o:function(b){U(r.$$.fragment,b),U(g),d=!1},d:function(b){b&&lt(t),At(r),g&&g.d(),h=!1,p()}}}function fM(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[3]-Dl+"";return{c:function(){t=et("tr"),n=et("td"),r=kt(),o=et("td"),i=kt(),a=et("td"),s=Gt("(and "),c=Gt(d),u=Gt(" more errors)"),l=kt(),f=et("td"),E(n,"class","svelte-1oe8e8r"),E(o,"class","svelte-1oe8e8r"),E(a,"class","svelte-1oe8e8r"),E(f,"class","svelte-1oe8e8r"),E(t,"class","jse-validation-error svelte-1oe8e8r")},m:function(h,p){dt(h,t,p),V(t,n),V(t,r),V(t,o),V(t,i),V(t,a),V(a,s),V(a,c),V(a,u),V(t,l),V(t,f)},p:function(h,p){8&p&&d!==(d=h[3]-Dl+"")&&we(c,d)},d:function(h){h&&lt(t)}}}function Vht(e){var t,n,r=!cn(e[0]),o=r&&cM(e);return{c:function(){o&&o.c(),t=_n()},m:function(i,a){o&&o.m(i,a),dt(i,t,a),n=!0},p:function(i,a){var s=$e(a,1)[0];1&s&&(r=!cn(i[0])),r?o?(o.p(i,s),1&s&&L(o,1)):((o=cM(i)).c(),L(o,1),o.m(t.parentNode,t)):o&&(Bt(),U(o,1,1,function(){o=null}),Ft())},i:function(i){n||(L(o),n=!0)},o:function(i){U(o),n=!1},d:function(i){i&&lt(t),o&&o.d(i)}}}function Uht(e,t,n){var r,o=t.validationErrors,i=t.selectError,a=!0;return e.$$set=function(s){"validationErrors"in s&&n(0,o=s.validationErrors),"selectError"in s&&n(1,i=s.selectError)},e.$$.update=function(){1&e.$$.dirty&&n(3,r=o.length)},[o,i,a,r,function(){n(2,a=!1)},function(){n(2,a=!0)},function(s){setTimeout(function(){return i(s)})}]}var gj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Uht,Vht,qe,{validationErrors:0,selectError:1},Fht),o}return ot(n)}(),Wht=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Kht(e){ze(e,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Jht(e){var t,n,r,o,i,a,s,c,u;return a=new hn({props:{data:Of}}),{c:function(){t=et("div"),n=et("div"),r=Gt(e[0]),o=kt(),i=et("button"),Pt(a.$$.fragment),E(n,"class","jse-title svelte-d01h2s"),E(i,"type","button"),E(i,"class","jse-close svelte-d01h2s"),E(t,"class","jse-header svelte-d01h2s")},m:function(l,f){dt(l,t,f),V(t,n),V(n,r),V(t,o),V(t,i),Mt(a,i,null),s=!0,c||(u=Lt(i,"click",e[3]),c=!0)},p:function(l,f){var d=$e(f,1)[0];(!s||1&d)&&we(r,l[0])},i:function(l){s||(L(a.$$.fragment,l),s=!0)},o:function(l){U(a.$$.fragment,l),s=!1},d:function(l){l&&lt(t),At(a),c=!1,u()}}}function Ght(e,t,n){var r=t.title,o=r===void 0?"Modal":r,i=t.onClose,a=i===void 0?void 0:i,s=fo("simple-modal").close;return e.$$set=function(c){"title"in c&&n(0,o=c.title),"onClose"in c&&n(1,a=c.onClose)},[o,a,s,function(){a?a():s()}]}var yj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ght,Jht,qe,{title:0,onClose:1},Kht),o}return ot(n)}();function Qht(e){ze(e,"svelte-1wk5pvq",".jse-modal.svelte-1wk5pvq.svelte-1wk5pvq{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1wk5pvq .jse-modal-contents.svelte-1wk5pvq{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions.svelte-1wk5pvq{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions button.jse-primary.svelte-1wk5pvq{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions button.jse-primary.svelte-1wk5pvq:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions button.jse-primary.svelte-1wk5pvq:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-copy-paste.svelte-1wk5pvq .jse-shortcuts.svelte-1wk5pvq{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1wk5pvq .jse-shortcuts .jse-shortcut .jse-key.svelte-1wk5pvq{font-size:200%;color:var(--jse-theme-color)}")}function Yht(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S;return n=new yj({props:{title:"Copying and pasting"}}),{c:function(){t=et("div"),Pt(n.$$.fragment),r=kt(),o=et("div"),(i=et("div")).textContent="These actions are unavailable via the menu. Please use:",a=kt(),s=et("div"),c=et("div"),(u=et("div")).textContent="".concat(e[1],"+C"),l=Gt(`
100
+ for copy`),f=kt(),d=et("div"),(h=et("div")).textContent="".concat(e[1],"+X"),p=Gt(`
101
+ for cut`),v=kt(),m=et("div"),(g=et("div")).textContent="".concat(e[1],"+V"),y=Gt(`
102
+ for paste`),b=kt(),w=et("div"),(x=et("button")).textContent="Close",E(u,"class","jse-key svelte-1wk5pvq"),E(c,"class","jse-shortcut"),E(h,"class","jse-key svelte-1wk5pvq"),E(d,"class","jse-shortcut"),E(g,"class","jse-key svelte-1wk5pvq"),E(m,"class","jse-shortcut"),E(s,"class","jse-shortcuts svelte-1wk5pvq"),E(x,"type","button"),E(x,"class","jse-primary svelte-1wk5pvq"),E(w,"class","jse-actions svelte-1wk5pvq"),E(o,"class","jse-modal-contents svelte-1wk5pvq"),E(t,"class","jse-modal jse-copy-paste svelte-1wk5pvq")},m:function(N,C){dt(N,t,C),Mt(n,t,null),V(t,r),V(t,o),V(o,i),V(o,a),V(o,s),V(s,c),V(c,u),V(c,l),V(s,f),V(s,d),V(d,h),V(d,p),V(s,v),V(s,m),V(m,g),V(m,y),V(o,b),V(o,w),V(w,x),k=!0,j||(S=Lt(x,"click",e[0]),j=!0)},p:Ht,i:function(N){k||(L(n.$$.fragment,N),k=!0)},o:function(N){U(n.$$.fragment,N),k=!1},d:function(N){N&&lt(t),At(n),j=!1,S()}}}function Xht(e){return[fo("simple-modal").close,Wht?"⌘":"Ctrl"]}var _B=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Xht,Yht,qe,{},Qht),o}return ot(n)}();function SB(e){return!!e&&(e.type==="space"||e.space===!0)}function n1(e){return!!e&&(e.type==="separator"||e.separator===!0)}function Zht(e){return!!e&&e.type==="label"&&typeof e.text=="string"}function Ip(e){return!!e&&typeof e.onClick=="function"}function bj(e){return!!e&&e.type==="dropdown-button"&&Ip(e.main)&&Array.isArray(e.items)}function tpt(e){return!!e&&e.type==="row"&&Array.isArray(e.items)}function ept(e){return!!e&&e.type==="column"&&Array.isArray(e.items)}function dM(e){return pr(e)&&pr(e.parseError)}function npt(e){return pr(e)&&Array.isArray(e.validationErrors)}function rpt(e){ze(e,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var opt=function(e){return{}},hM=function(e){return{}};function pM(e,t,n){var r=e.slice();return r[3]=t[n],r}var ipt=function(e){return{}},vM=function(e){return{}};function apt(e){var t,n=bM(e[3])+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=bM(r[3])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function spt(e){var t,n,r,o,i,a,s,c,u=e[3].icon&&mM(e),l=e[3].text&&gM(e);return{c:function(){t=et("button"),u&&u.c(),n=kt(),l&&l.c(),E(t,"type","button"),E(t,"class",r="jse-button "+e[3].className+" svelte-497ud4"),E(t,"title",o=e[3].title),t.disabled=i=e[3].disabled||!1},m:function(f,d){dt(f,t,d),u&&u.m(t,null),V(t,n),l&&l.m(t,null),a=!0,s||(c=Lt(t,"click",function(){co(e[3].onClick)&&e[3].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){(e=f)[3].icon?u?(u.p(e,d),1&d&&L(u,1)):((u=mM(e)).c(),L(u,1),u.m(t,n)):u&&(Bt(),U(u,1,1,function(){u=null}),Ft()),e[3].text?l?l.p(e,d):((l=gM(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||1&d&&r!==(r="jse-button "+e[3].className+" svelte-497ud4"))&&E(t,"class",r),(!a||1&d&&o!==(o=e[3].title))&&E(t,"title",o),(!a||1&d&&i!==(i=e[3].disabled||!1))&&(t.disabled=i)},i:function(f){a||(L(u),a=!0)},o:function(f){U(u),a=!1},d:function(f){f&&lt(t),u&&u.d(),l&&l.d(),s=!1,c()}}}function cpt(e){var t;return{c:function(){E(t=et("div"),"class","jse-space svelte-497ud4")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function upt(e){var t;return{c:function(){E(t=et("div"),"class","jse-separator svelte-497ud4")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function mM(e){var t,n;return t=new hn({props:{data:e[3].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[3].icon),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function gM(e){var t,n=e[3].text+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=r[3].text+"")&&we(t,n)},d:function(r){r&&lt(t)}}}function yM(e){var t,n,r,o,i,a,s,c=[upt,cpt,spt,apt],u=[];function l(f,d){return 1&d&&(t=null),1&d&&(n=null),1&d&&(r=null),t==null&&(t=!!n1(f[3])),t?0:(n==null&&(n=!!SB(f[3])),n?1:(r==null&&(r=!!Ip(f[3])),r?2:3))}return o=l(e,-1),i=u[o]=c[o](e),{c:function(){i.c(),a=_n()},m:function(f,d){u[o].m(f,d),dt(f,a,d),s=!0},p:function(f,d){var h=o;(o=l(f,d))===h?u[o].p(f,d):(Bt(),U(u[h],1,1,function(){u[h]=null}),Ft(),(i=u[o])?i.p(f,d):(i=u[o]=c[o](f)).c(),L(i,1),i.m(a.parentNode,a))},i:function(f){s||(L(i),s=!0)},o:function(f){U(i),s=!1},d:function(f){f&&lt(a),u[o].d(f)}}}function lpt(e){for(var t,n,r,o,i=e[2].left,a=Cr(i,e,e[1],vM),s=De(e[0]),c=[],u=0;u<s.length;u+=1)c[u]=yM(pM(e,s,u));var l=function(h){return U(c[h],1,1,function(){c[h]=null})},f=e[2].right,d=Cr(f,e,e[1],hM);return{c:function(){t=et("div"),a&&a.c(),n=kt();for(var h=0;h<c.length;h+=1)c[h].c();r=kt(),d&&d.c(),E(t,"class","jse-menu svelte-497ud4")},m:function(h,p){dt(h,t,p),a&&a.m(t,null),V(t,n);for(var v=0;v<c.length;v+=1)c[v]&&c[v].m(t,null);V(t,r),d&&d.m(t,null),o=!0},p:function(h,p){var v=$e(p,1)[0];if(a&&a.p&&(!o||2&v)&&Or(a,i,h,h[1],o?Er(i,h[1],v,ipt):Mr(h[1]),vM),1&v){var m;for(s=De(h[0]),m=0;m<s.length;m+=1){var g=pM(h,s,m);c[m]?(c[m].p(g,v),L(c[m],1)):(c[m]=yM(g),c[m].c(),L(c[m],1),c[m].m(t,r))}for(Bt(),m=s.length;m<c.length;m+=1)l(m);Ft()}d&&d.p&&(!o||2&v)&&Or(d,f,h,h[1],o?Er(f,h[1],v,opt):Mr(h[1]),hM)},i:function(h){if(!o){L(a,h);for(var p=0;p<s.length;p+=1)L(c[p]);L(d,h),o=!0}},o:function(h){U(a,h),c=c.filter(Boolean);for(var p=0;p<c.length;p+=1)U(c[p]);U(d,h),o=!1},d:function(h){h&&lt(t),a&&a.d(h),Ir(c,h),d&&d.d(h)}}}function bM(e){return console.error("Unknown type of menu item",e),"???"}function fpt(e,t,n){var r=t.$$slots,o=r===void 0?{}:r,i=t.$$scope,a=t.items,s=a===void 0?[]:a;return e.$$set=function(c){"items"in c&&n(0,s=c.items),"$$scope"in c&&n(1,i=c.$$scope)},[s,i,o]}var r1=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,fpt,lpt,qe,{items:0},rpt),o}return ot(n)}();function dpt(e){ze(e,"svelte-gz09vf",".jse-json-repair-component.svelte-gz09vf.svelte-gz09vf{flex:1;display:flex;flex-direction:column;background:var(--jse-background-color);color:var(--jse-text-color)}.jse-json-repair-component.svelte-gz09vf .jse-menu .jse-info.svelte-gz09vf{padding:0 var(--jse-padding)}.jse-json-repair-component.svelte-gz09vf .jse-json-text.svelte-gz09vf{flex:1;border:none;padding:2px;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-background-color);color:var(--jse-text-color);resize:none;outline:none}")}function hpt(e){var t;return{c:function(){(t=et("div")).textContent="Repair invalid JSON, then click apply",E(t,"slot","left"),E(t,"class","jse-info svelte-gz09vf")},m:function(n,r){dt(n,t,r)},p:Ht,d:function(n){n&&lt(t)}}}function ppt(e){var t,n;return t=new Aa({props:{type:"success",message:"JSON is valid now and can be parsed.",actions:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32&o&&(i.actions=r[5]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function vpt(e){var t,n;return t=new Aa({props:{type:"error",icon:hl,message:"Cannot parse JSON: ".concat(e[2].message),actions:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.message="Cannot parse JSON: ".concat(r[2].message)),64&o&&(i.actions=r[6]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function mpt(e){var t,n,r,o,i,a,s,c,u,l;n=new r1({props:{items:e[4],$$slots:{left:[hpt]},$$scope:{ctx:e}}});var f=[vpt,ppt],d=[];function h(p,v){return p[2]?0:1}return o=h(e),i=d[o]=f[o](e),{c:function(){t=et("div"),Pt(n.$$.fragment),r=kt(),i.c(),a=kt(),(s=et("textarea")).readOnly=e[1],E(s,"class","jse-json-text svelte-gz09vf"),E(s,"autocomplete","off"),E(s,"autocapitalize","off"),E(s,"spellcheck","false"),s.value=e[0],E(t,"class","jse-json-repair-component svelte-gz09vf")},m:function(p,v){dt(p,t,v),Mt(n,t,null),V(t,r),d[o].m(t,null),V(t,a),V(t,s),e[16](s),c=!0,u||(l=Lt(s,"input",e[7]),u=!0)},p:function(p,v){var m=$e(v,1)[0],g={};16&m&&(g.items=p[4]),8388608&m&&(g.$$scope={dirty:m,ctx:p}),n.$set(g);var y=o;(o=h(p))===y?d[o].p(p,m):(Bt(),U(d[y],1,1,function(){d[y]=null}),Ft(),(i=d[o])?i.p(p,m):(i=d[o]=f[o](p)).c(),L(i,1),i.m(t,a)),(!c||2&m)&&(s.readOnly=p[1]),(!c||1&m)&&(s.value=p[0])},i:function(p){c||(L(n.$$.fragment,p),L(i),c=!0)},o:function(p){U(n.$$.fragment,p),U(i),c=!1},d:function(p){p&&lt(t),At(n),d[o].d(),e[16](null),u=!1,l()}}}function gpt(e,t,n){var r,o,i,a,s,c,u,l,f=t.text,d=f===void 0?"":f,h=t.readOnly,p=h!==void 0&&h,v=t.onParse,m=t.onRepair,g=t.onChange,y=g===void 0?null:g,b=t.onApply,w=t.onCancel,x=ho("jsoneditor:JSONRepair");function k(){b(d)}return e.$$set=function(j){"text"in j&&n(0,d=j.text),"readOnly"in j&&n(1,p=j.readOnly),"onParse"in j&&n(8,v=j.onParse),"onRepair"in j&&n(9,m=j.onRepair),"onChange"in j&&n(10,y=j.onChange),"onApply"in j&&n(11,b=j.onApply),"onCancel"in j&&n(12,w=j.onCancel)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=function(j){try{return v(j),null}catch(S){return Sf(j,S.message)}}(d)),1&e.$$.dirty&&n(15,o=function(j){try{return m(j),!0}catch{return!1}}(d)),4&e.$$.dirty&&x("error",r),4096&e.$$.dirty&&n(4,l=[{type:"space"},{type:"button",icon:Of,title:"Cancel repair",className:"jse-cancel",onClick:w}]),57344&e.$$.dirty&&n(6,s=o?[i,a]:[i]),2&e.$$.dirty&&n(5,c=[{icon:Hh,text:"Apply",title:"Apply fixed JSON",disabled:p,onClick:k}])},n(13,i={icon:_dt,text:"Show me",title:"Scroll to the error location",onClick:function(){if(u&&r){var j=r.position!=null?r.position:0;u.setSelectionRange(j,j),setTimeout(function(){u.focus()})}}}),n(14,a={icon:Q0,text:"Auto repair",title:"Automatically repair JSON",onClick:function(){try{n(0,d=m(d)),y&&y(d)}catch{}}}),[d,p,r,u,l,c,s,function(j){x("handleChange");var S=j.target.value;d!==S&&(n(0,d=S),y&&y(d))},v,m,y,b,w,i,a,o,function(j){rn[j?"unshift":"push"](function(){n(3,u=j)})}]}var ypt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,gpt,mpt,qe,{text:0,readOnly:1,onParse:8,onRepair:9,onChange:10,onApply:11,onCancel:12},dpt),o}return ot(n)}(),Ol=[];function wM(e){if(e.key==="Escape"){var t=Ie(Ol);t&&t()}}function o1(e,t){return cn(Ol)&&window.addEventListener("keydown",wM),Ol.push(t),{destroy:function(){Ol=Ol.filter(function(n){return n!==t}),cn(Ol)&&window.removeEventListener("keydown",wM)}}}function bpt(e){ze(e,"svelte-h7flev",".jse-modal.svelte-h7flev{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}")}function wpt(e){var t,n,r,o,i,a;function s(u){e[7](u)}var c={onParse:e[1],onRepair:e[2],onApply:e[4],onCancel:e[5]};return e[0]!==void 0&&(c.text=e[0]),n=new ypt({props:c}),rn.push(function(){return da(n,"text",s)}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-modal jse-repair svelte-h7flev")},m:function(u,l){dt(u,t,l),Mt(n,t,null),o=!0,i||(a=lo(o1.call(null,t,e[3])),i=!0)},p:function(u,l){var f=$e(l,1)[0],d={};2&f&&(d.onParse=u[1]),4&f&&(d.onRepair=u[2]),!r&&1&f&&(r=!0,d.text=u[0],fa(function(){return r=!1})),n.$set(d)},i:function(u){o||(L(n.$$.fragment,u),o=!0)},o:function(u){U(n.$$.fragment,u),o=!1},d:function(u){u&&lt(t),At(n),i=!1,a()}}}function xpt(e,t,n){var r=t.text,o=t.onParse,i=t.onRepair,a=t.onApply,s=fo("simple-modal").close;return e.$$set=function(c){"text"in c&&n(0,r=c.text),"onParse"in c&&n(1,o=c.onParse),"onRepair"in c&&n(2,i=c.onRepair),"onApply"in c&&n(6,a=c.onApply)},[r,o,i,s,function(c){s(),a(c)},function(){s()},a,function(c){n(0,r=c)}]}var $B=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,xpt,wpt,qe,{text:0,onParse:1,onRepair:2,onApply:6},bpt),o}return ot(n)}();function kpt(e){ze(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function xM(e){var t,n;return t=new hn({props:{data:e[0].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].icon),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function kM(e){var t,n=e[0].text+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=r[0].text+"")&&we(t,n)},d:function(r){r&&lt(t)}}}function jpt(e){var t,n,r,o,i,a,s,c,u=e[0].icon&&xM(e),l=e[0].text&&kM(e);return{c:function(){t=et("button"),u&&u.c(),n=kt(),l&&l.c(),E(t,"type","button"),E(t,"class",r=dr(ds("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"),E(t,"title",o=e[0].title),t.disabled=i=e[0].disabled||!1},m:function(f,d){dt(f,t,d),u&&u.m(t,null),V(t,n),l&&l.m(t,null),a=!0,s||(c=Lt(t,"click",function(){co(e[0].onClick)&&e[0].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){var h=$e(d,1)[0];(e=f)[0].icon?u?(u.p(e,h),1&h&&L(u,1)):((u=xM(e)).c(),L(u,1),u.m(t,n)):u&&(Bt(),U(u,1,1,function(){u=null}),Ft()),e[0].text?l?l.p(e,h):((l=kM(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||3&h&&r!==(r=dr(ds("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"))&&E(t,"class",r),(!a||1&h&&o!==(o=e[0].title))&&E(t,"title",o),(!a||1&h&&i!==(i=e[0].disabled||!1))&&(t.disabled=i)},i:function(f){a||(L(u),a=!0)},o:function(f){U(u),a=!1},d:function(f){f&&lt(t),u&&u.d(),l&&l.d(),s=!1,c()}}}function _pt(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var wj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,_pt,jpt,to,{item:0,className:1},kpt),o}return ot(n)}();function Spt(e){ze(e,"svelte-12ophpi",".jse-dropdown-button.svelte-12ophpi.svelte-12ophpi{flex:1;line-height:normal;border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;position:relative;padding:0;display:flex}.jse-dropdown-button.svelte-12ophpi ul.svelte-12ophpi{margin:0;padding:0}.jse-dropdown-button.svelte-12ophpi ul li.svelte-12ophpi{margin:0;padding:0;list-style-type:none}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:2em;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);border-radius:0}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.jse-visible.svelte-12ophpi{background:var(--jse-context-menu-background)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:focus{z-index:1}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.svelte-12ophpi{display:none;position:absolute;top:100%;left:0;z-index:1;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);box-shadow:var(--jse-controls-box-shadow)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.jse-visible.svelte-12ophpi{display:block}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:100%;text-align:left;padding:var(--jse-padding);margin:0}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}")}function jM(e,t,n){var r=e.slice();return r[11]=t[n],r}var $pt=function(e){return{}},_M=function(e){return{}};function SM(e){var t,n;return t=new hn({props:{data:e[11].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[11].icon),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function $M(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[11].text+"",h=e[11].icon&&SM(e);function p(){return e[9](e[11])}return{c:function(){t=et("li"),n=et("button"),h&&h.c(),r=kt(),o=Gt(d),c=kt(),E(n,"type","button"),E(n,"title",i=e[11].title),n.disabled=a=e[11].disabled,E(n,"class",s=dr(e[11].className)+" svelte-12ophpi"),E(t,"class","svelte-12ophpi")},m:function(v,m){dt(v,t,m),V(t,n),h&&h.m(n,null),V(n,r),V(n,o),V(t,c),u=!0,l||(f=Lt(n,"click",p),l=!0)},p:function(v,m){(e=v)[11].icon?h?(h.p(e,m),1&m&&L(h,1)):((h=SM(e)).c(),L(h,1),h.m(n,r)):h&&(Bt(),U(h,1,1,function(){h=null}),Ft()),(!u||1&m)&&d!==(d=e[11].text+"")&&we(o,d),(!u||1&m&&i!==(i=e[11].title))&&E(n,"title",i),(!u||1&m&&a!==(a=e[11].disabled))&&(n.disabled=a),(!u||1&m&&s!==(s=dr(e[11].className)+" svelte-12ophpi"))&&E(n,"class",s)},i:function(v){u||(L(h),u=!0)},o:function(v){U(h),u=!1},d:function(v){v&&lt(t),h&&h.d(),l=!1,f()}}}function Cpt(e){var t,n,r,o,i,a,s,c,u,l,f=e[8].defaultItem,d=Cr(f,e,e[7],_M);o=new hn({props:{data:Ri}});for(var h=De(e[0]),p=[],v=0;v<h.length;v+=1)p[v]=$M(jM(e,h,v));var m=function(g){return U(p[g],1,1,function(){p[g]=null})};return{c:function(){t=et("div"),d&&d.c(),n=kt(),r=et("button"),Pt(o.$$.fragment),i=kt(),a=et("div"),s=et("ul");for(var g=0;g<p.length;g+=1)p[g].c();E(r,"type","button"),E(r,"class","jse-open-dropdown svelte-12ophpi"),E(r,"data-type","jse-open-dropdown"),r.disabled=e[4],Dt(r,"jse-visible",e[3]),E(s,"class","svelte-12ophpi"),E(a,"class","jse-dropdown-items svelte-12ophpi"),xc(a,"width",e[2]),Dt(a,"jse-visible",e[3]),E(t,"role","button"),E(t,"tabindex","0"),E(t,"class","jse-dropdown-button svelte-12ophpi"),E(t,"title",e[1])},m:function(g,y){dt(g,t,y),d&&d.m(t,null),V(t,n),V(t,r),Mt(o,r,null),V(t,i),V(t,a),V(a,s);for(var b=0;b<p.length;b+=1)p[b]&&p[b].m(s,null);c=!0,u||(l=[Lt(r,"click",e[5]),Lt(t,"click",e[6])],u=!0)},p:function(g,y){var b=$e(y,1)[0];if(d&&d.p&&(!c||128&b)&&Or(d,f,g,g[7],c?Er(f,g[7],b,$pt):Mr(g[7]),_M),(!c||16&b)&&(r.disabled=g[4]),(!c||8&b)&&Dt(r,"jse-visible",g[3]),1&b){var w;for(h=De(g[0]),w=0;w<h.length;w+=1){var x=jM(g,h,w);p[w]?(p[w].p(x,b),L(p[w],1)):(p[w]=$M(x),p[w].c(),L(p[w],1),p[w].m(s,null))}for(Bt(),w=h.length;w<p.length;w+=1)m(w);Ft()}(!c||4&b)&&xc(a,"width",g[2]),(!c||8&b)&&Dt(a,"jse-visible",g[3]),(!c||2&b)&&E(t,"title",g[1])},i:function(g){if(!c){L(d,g),L(o.$$.fragment,g);for(var y=0;y<h.length;y+=1)L(p[y]);c=!0}},o:function(g){U(d,g),U(o.$$.fragment,g),p=p.filter(Boolean);for(var y=0;y<p.length;y+=1)U(p[y]);c=!1},d:function(g){g&&lt(t),d&&d.d(g),At(o),Ir(p,g),u=!1,Fn(l)}}}function Ept(e,t,n){var r,o=t.$$slots,i=o===void 0?{}:o,a=t.$$scope,s=t.items,c=s===void 0?[]:s,u=t.title,l=u===void 0?void 0:u,f=t.width,d=f===void 0?"120px":f,h=!1;function p(){n(3,h=!1)}function v(m){au(m)==="Escape"&&(m.preventDefault(),n(3,h=!1))}return Ui(function(){document.addEventListener("click",p),document.addEventListener("keydown",v)}),yi(function(){document.removeEventListener("click",p),document.removeEventListener("keydown",v)}),e.$$set=function(m){"items"in m&&n(0,c=m.items),"title"in m&&n(1,l=m.title),"width"in m&&n(2,d=m.width),"$$scope"in m&&n(7,a=m.$$scope)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=c.every(function(m){return m.disabled===!0}))},[c,l,d,h,r,function(){var m=h;setTimeout(function(){return n(3,h=!m)})},p,a,i,function(m){return m.onClick()}]}var Opt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ept,Cpt,qe,{items:0,title:1,width:2},Spt),o}return ot(n)}();function Mpt(e){ze(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function CM(e){var t,n;return t=new hn({props:{data:e[0].main.icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].main.icon),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Apt(e){var t,n,r,o,i,a,s,c,u,l=e[0].main.text+"",f=e[0].main.icon&&CM(e);return{c:function(){t=et("button"),f&&f.c(),n=kt(),r=Gt(l),E(t,"class",o=dr(ds("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"),E(t,"type","button"),E(t,"slot","defaultItem"),E(t,"title",i=e[0].main.title),t.disabled=a=e[0].main.disabled||!1},m:function(d,h){dt(d,t,h),f&&f.m(t,null),V(t,n),V(t,r),s=!0,c||(u=Lt(t,"click",function(){co(e[0].main.onClick)&&e[0].main.onClick.apply(this,arguments)}),c=!0)},p:function(d,h){(e=d)[0].main.icon?f?(f.p(e,h),1&h&&L(f,1)):((f=CM(e)).c(),L(f,1),f.m(t,n)):f&&(Bt(),U(f,1,1,function(){f=null}),Ft()),(!s||1&h)&&l!==(l=e[0].main.text+"")&&we(r,l),(!s||3&h&&o!==(o=dr(ds("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"))&&E(t,"class",o),(!s||1&h&&i!==(i=e[0].main.title))&&E(t,"title",i),(!s||1&h&&a!==(a=e[0].main.disabled||!1))&&(t.disabled=a)},i:function(d){s||(L(f),s=!0)},o:function(d){U(f),s=!1},d:function(d){d&&lt(t),f&&f.d(),c=!1,u()}}}function Ppt(e){var t,n;return t=new Opt({props:{width:e[0].width,items:e[0].items,$$slots:{defaultItem:[Apt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i=$e(o,1)[0],a={};1&i&&(a.width=r[0].width),1&i&&(a.items=r[0].items),7&i&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Tpt(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var xj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Tpt,Ppt,to,{item:0,className:1},Mpt),o}return ot(n)}();function Rpt(e){ze(e,"svelte-1nininf",".jse-contextmenu.svelte-1nininf.svelte-1nininf{box-shadow:var(--jse-controls-box-shadow);font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-context-menu-background);color:var(--jse-context-menu-color)}.jse-contextmenu.svelte-1nininf .jse-row.svelte-1nininf{display:flex;flex-direction:row;align-items:flex-start;justify-content:stretch}.jse-contextmenu.svelte-1nininf .jse-row div.jse-label.svelte-1nininf{flex:1;white-space:nowrap;padding:var(--jse-padding);color:var(--jse-context-menu-color-disabled);line-height:normal}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip.svelte-1nininf{flex:1;background:var(--jse-context-menu-tip-background);color:var(--jse-context-menu-tip-color);margin:calc(0.5 * var(--jse-padding));padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);font-size:80%;line-height:1.3em;display:flex;flex-direction:row;align-items:start;gap:var(--jse-padding);border-radius:3px}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip div.jse-tip-icon.svelte-1nininf{padding-top:calc(0.5 * var(--jse-padding))}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf{flex:1;display:flex;flex-direction:column;align-items:stretch}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf:not(:last-child){border-right:1px solid var(--jse-context-menu-separator-color)}.jse-contextmenu.svelte-1nininf .jse-separator.svelte-1nininf{width:100%;height:1px;background:var(--jse-context-menu-separator-color)}")}function EM(e,t,n){var r=e.slice();return r[6]=t[n],r}function OM(e,t,n){var r=e.slice();return r[9]=t[n],r}function MM(e,t,n){var r=e.slice();return r[12]=t[n],r}function Ipt(e){var t,n=Mf(e[6])+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=Mf(r[6])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function Npt(e){var t;return{c:function(){E(t=et("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function Dpt(e){for(var t,n,r=De(e[6].items),o=[],i=0;i<r.length;i+=1)o[i]=PM(OM(e,r,i));var a=function(s){return U(o[s],1,1,function(){o[s]=null})};return{c:function(){t=et("div");for(var s=0;s<o.length;s+=1)o[s].c();E(t,"class","jse-row svelte-1nininf")},m:function(s,c){dt(s,t,c);for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(t,null);n=!0},p:function(s,c){if(1&c){var u;for(r=De(s[6].items),u=0;u<r.length;u+=1){var l=OM(s,r,u);o[u]?(o[u].p(l,c),L(o[u],1)):(o[u]=PM(l),o[u].c(),L(o[u],1),o[u].m(t,null))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)L(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)U(o[c]);n=!1},d:function(s){s&&lt(t),Ir(o,s)}}}function zpt(e){var t,n;return t=new xj({props:{item:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Lpt(e){var t,n;return t=new wj({props:{item:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Bpt(e){var t,n=Mf(e[9])+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=Mf(r[9])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function Fpt(e){var t;return{c:function(){E(t=et("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function qpt(e){for(var t,n,r=De(e[9].items),o=[],i=0;i<r.length;i+=1)o[i]=AM(MM(e,r,i));var a=function(s){return U(o[s],1,1,function(){o[s]=null})};return{c:function(){t=et("div");for(var s=0;s<o.length;s+=1)o[s].c();E(t,"class","jse-column svelte-1nininf")},m:function(s,c){dt(s,t,c);for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(t,null);n=!0},p:function(s,c){if(1&c){var u;for(r=De(s[9].items),u=0;u<r.length;u+=1){var l=MM(s,r,u);o[u]?(o[u].p(l,c),L(o[u],1)):(o[u]=AM(l),o[u].c(),L(o[u],1),o[u].m(t,null))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)L(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)U(o[c]);n=!1},d:function(s){s&&lt(t),Ir(o,s)}}}function Hpt(e){var t,n;return t=new xj({props:{item:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Vpt(e){var t,n;return t=new wj({props:{item:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Upt(e){var t,n=Mf(e[12])+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){1&o&&n!==(n=Mf(r[12])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function Wpt(e){var t,n,r=e[12].text+"";return{c:function(){t=et("div"),n=Gt(r),E(t,"class","jse-label svelte-1nininf")},m:function(o,i){dt(o,t,i),V(t,n)},p:function(o,i){1&i&&r!==(r=o[12].text+"")&&we(n,r)},i:Ht,o:Ht,d:function(o){o&&lt(t)}}}function Kpt(e){var t;return{c:function(){E(t=et("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function Jpt(e){var t,n;return t=new xj({props:{className:"left",item:e[12]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Gpt(e){var t,n;return t=new wj({props:{className:"left",item:e[12]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function AM(e){var t,n,r,o,i,a,s,c,u=[Gpt,Jpt,Kpt,Wpt,Upt],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Ip(d[12])),t?0:(n==null&&(n=!!bj(d[12])),n?1:(r==null&&(r=!!n1(d[12])),r?2:(o==null&&(o=!!Zht(d[12])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=_n()},m:function(d,h){l[i].m(d,h),dt(d,s,h),c=!0},p:function(d,h){var p=i;(i=f(d,h))===p?l[i].p(d,h):(Bt(),U(l[p],1,1,function(){l[p]=null}),Ft(),(a=l[i])?a.p(d,h):(a=l[i]=u[i](d)).c(),L(a,1),a.m(s.parentNode,s))},i:function(d){c||(L(a),c=!0)},o:function(d){U(a),c=!1},d:function(d){d&&lt(s),l[i].d(d)}}}function PM(e){var t,n,r,o,i,a,s,c,u=[Vpt,Hpt,qpt,Fpt,Bpt],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Ip(d[9])),t?0:(n==null&&(n=!!bj(d[9])),n?1:(r==null&&(r=!!ept(d[9])),r?2:(o==null&&(o=!!n1(d[9])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=_n()},m:function(d,h){l[i].m(d,h),dt(d,s,h),c=!0},p:function(d,h){var p=i;(i=f(d,h))===p?l[i].p(d,h):(Bt(),U(l[p],1,1,function(){l[p]=null}),Ft(),(a=l[i])?a.p(d,h):(a=l[i]=u[i](d)).c(),L(a,1),a.m(s.parentNode,s))},i:function(d){c||(L(a),c=!0)},o:function(d){U(a),c=!1},d:function(d){d&&lt(s),l[i].d(d)}}}function TM(e){var t,n,r,o,i,a,s,c,u=[Lpt,zpt,Dpt,Npt,Ipt],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Ip(d[6])),t?0:(n==null&&(n=!!bj(d[6])),n?1:(r==null&&(r=!!tpt(d[6])),r?2:(o==null&&(o=!!n1(d[6])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=_n()},m:function(d,h){l[i].m(d,h),dt(d,s,h),c=!0},p:function(d,h){var p=i;(i=f(d,h))===p?l[i].p(d,h):(Bt(),U(l[p],1,1,function(){l[p]=null}),Ft(),(a=l[i])?a.p(d,h):(a=l[i]=u[i](d)).c(),L(a,1),a.m(s.parentNode,s))},i:function(d){c||(L(a),c=!0)},o:function(d){U(a),c=!1},d:function(d){d&&lt(s),l[i].d(d)}}}function RM(e){var t,n,r,o,i,a,s,c;return o=new hn({props:{data:hft}}),{c:function(){t=et("div"),n=et("div"),r=et("div"),Pt(o.$$.fragment),i=kt(),a=et("div"),s=Gt(e[1]),E(r,"class","jse-tip-icon svelte-1nininf"),E(a,"class","jse-tip-text"),E(n,"class","jse-tip svelte-1nininf"),E(t,"class","jse-row svelte-1nininf")},m:function(u,l){dt(u,t,l),V(t,n),V(n,r),Mt(o,r,null),V(n,i),V(n,a),V(a,s),c=!0},p:function(u,l){(!c||2&l)&&we(s,u[1])},i:function(u){c||(L(o.$$.fragment,u),c=!0)},o:function(u){U(o.$$.fragment,u),c=!1},d:function(u){u&&lt(t),At(o)}}}function Qpt(e){for(var t,n,r,o,i,a=De(e[0]),s=[],c=0;c<a.length;c+=1)s[c]=TM(EM(e,a,c));var u=function(f){return U(s[f],1,1,function(){s[f]=null})},l=e[1]&&RM(e);return{c:function(){t=et("div");for(var f=0;f<s.length;f+=1)s[f].c();n=kt(),l&&l.c(),E(t,"role","menu"),E(t,"tabindex","-1"),E(t,"class","jse-contextmenu svelte-1nininf")},m:function(f,d){dt(f,t,d);for(var h=0;h<s.length;h+=1)s[h]&&s[h].m(t,null);V(t,n),l&&l.m(t,null),e[4](t),r=!0,o||(i=Lt(t,"keydown",e[3]),o=!0)},p:function(f,d){var h=$e(d,1)[0];if(1&h){var p;for(a=De(f[0]),p=0;p<a.length;p+=1){var v=EM(f,a,p);s[p]?(s[p].p(v,h),L(s[p],1)):(s[p]=TM(v),s[p].c(),L(s[p],1),s[p].m(t,n))}for(Bt(),p=a.length;p<s.length;p+=1)u(p);Ft()}f[1]?l?(l.p(f,h),2&h&&L(l,1)):((l=RM(f)).c(),L(l,1),l.m(t,null)):l&&(Bt(),U(l,1,1,function(){l=null}),Ft())},i:function(f){if(!r){for(var d=0;d<a.length;d+=1)L(s[d]);L(l),r=!0}},o:function(f){s=s.filter(Boolean);for(var d=0;d<s.length;d+=1)U(s[d]);U(l),r=!1},d:function(f){f&&lt(t),Ir(s,f),l&&l.d(),e[4](null),o=!1,i()}}}function Mf(e){return console.error("Unknown type of context menu item",e),"???"}function Ypt(e,t,n){var r,o=t.items,i=t.tip;Ui(function(){setTimeout(function(){var s=Se(r.querySelectorAll("button")).find(function(c){return!c.disabled});s&&s.focus()})});var a={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"};return e.$$set=function(s){"items"in s&&n(0,o=s.items),"tip"in s&&n(1,i=s.tip)},[o,i,r,function(s){var c=au(s),u=a[c];if(typeof u=="string"){s.preventDefault();var l=tft({allElements:Array.from(r.querySelectorAll("button:not([disabled])")),currentElement:s.target,direction:u,hasPrio:function(f){return f.getAttribute("data-type")!=="jse-open-dropdown"}});l&&l.focus()}},function(s){rn[s?"unshift":"push"](function(){n(2,r=s)})}]}var CB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ypt,Qpt,qe,{items:0,tip:1},Rpt),o}return ot(n)}();function Xpt(e){var t,n;return t=new CB({props:{items:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.items=r[1]),1&o[0]&&(i.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Zpt(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j=t.json,S=t.documentState,N=t.parser,C=t.showTip,$=t.onCloseContextMenu,B=t.onEditKey,K=t.onEditValue,R=t.onToggleEnforceString,q=t.onCut,F=t.onCopy,O=t.onPaste,A=t.onRemove,_=t.onDuplicate,M=t.onExtract,P=t.onInsertBefore,D=t.onInsert,T=t.onConvert,H=t.onInsertAfter,I=t.onSort,ft=t.onTransform;function tt(){$(),B()}function yt(){$(),K()}function bt(){$(),R()}function jt(){$(),q(!0)}function gt(){$(),q(!1)}function Y(){$(),F(!0)}function J(){$(),F(!1)}function it(){$(),O()}function X(){$(),A()}function _t(){$(),_()}function z(){$(),M()}function W(Ct){$(),u?T(Ct):D(Ct)}function G(){$(),I()}function pt(){$(),ft()}function mt(){$(),P()}function Ot(){$(),H()}return e.$$set=function(Ct){"json"in Ct&&n(2,j=Ct.json),"documentState"in Ct&&n(3,S=Ct.documentState),"parser"in Ct&&n(4,N=Ct.parser),"showTip"in Ct&&n(0,C=Ct.showTip),"onCloseContextMenu"in Ct&&n(5,$=Ct.onCloseContextMenu),"onEditKey"in Ct&&n(6,B=Ct.onEditKey),"onEditValue"in Ct&&n(7,K=Ct.onEditValue),"onToggleEnforceString"in Ct&&n(8,R=Ct.onToggleEnforceString),"onCut"in Ct&&n(9,q=Ct.onCut),"onCopy"in Ct&&n(10,F=Ct.onCopy),"onPaste"in Ct&&n(11,O=Ct.onPaste),"onRemove"in Ct&&n(12,A=Ct.onRemove),"onDuplicate"in Ct&&n(13,_=Ct.onDuplicate),"onExtract"in Ct&&n(14,M=Ct.onExtract),"onInsertBefore"in Ct&&n(15,P=Ct.onInsertBefore),"onInsert"in Ct&&n(16,D=Ct.onInsert),"onConvert"in Ct&&n(17,T=Ct.onConvert),"onInsertAfter"in Ct&&n(18,H=Ct.onInsertAfter),"onSort"in Ct&&n(19,I=Ct.onSort),"onTransform"in Ct&&n(20,ft=Ct.onTransform)},e.$$.update=function(){8&e.$$.dirty[0]&&n(37,r=S.selection),4&e.$$.dirty[0]&&n(39,o=j!==void 0),64&e.$$.dirty[1]&&n(31,i=!!r),64&e.$$.dirty[1]&&n(21,a=r&&cn(ge(r))),4&e.$$.dirty[0]|64&e.$$.dirty[1]&&n(38,s=r?fe(j,ge(r)):void 0),128&e.$$.dirty[1]&&n(35,c=Array.isArray(s)?"Edit array":pr(s)?"Edit object":"Edit value"),320&e.$$.dirty[1]&&n(22,u=o&&(Ln(r)||Br(r)||dn(r))),6291456&e.$$.dirty[0]|256&e.$$.dirty[1]&&n(30,l=o&&u&&!a),2097152&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(29,f=o&&r!=null&&(Ln(r)||dn(r))&&!a),2097156&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(36,d=o&&r!=null&&_g(r)&&!a&&!Array.isArray(fe(j,on(ge(r))))),320&e.$$.dirty[1]&&n(34,h=o&&r!=null&&_g(r)),136&e.$$.dirty[1]&&n(32,p=h&&!xr(s)),4194304&e.$$.dirty[0]&&n(25,v=u),33554432&e.$$.dirty[0]&&n(24,m=v?"Convert to:":"Insert:"),33554432&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(28,g=!v&&i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(27,y=v?km(r)&&!pr(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(26,b=v?km(r)&&!Array.isArray(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(23,w=v?km(r)&&xr(s):i),24&e.$$.dirty[0]|192&e.$$.dirty[1]&&n(33,x=r!=null&&Ws(s,S.enforceStringMap,oe(ge(r)),N)),2145386496&e.$$.dirty[0]|63&e.$$.dirty[1]&&n(1,k=[{type:"row",items:[{type:"button",onClick:tt,icon:rf,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!d},{type:"dropdown-button",main:{type:"button",onClick:yt,icon:rf,text:c,title:"Edit the value (Double-click on the value)",disabled:!h},width:"11em",items:[{type:"button",icon:rf,text:c,title:"Edit the value (Double-click on the value)",onClick:yt,disabled:!h},{type:"button",icon:x?Lh:Bh,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:bt,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:jt,icon:nf,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!u},width:"10em",items:[{type:"button",icon:nf,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:jt,disabled:!u},{type:"button",icon:nf,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:gt,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:Y,icon:Tc,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!u},width:"12em",items:[{type:"button",icon:Tc,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:Y,disabled:!u},{type:"button",icon:Tc,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:J,disabled:!u}]},{type:"button",onClick:it,icon:sB,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!i}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:_t,icon:fB,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!l},{type:"button",onClick:z,icon:xdt,text:"Extract",title:"Extract selected contents",disabled:!f},{type:"button",onClick:G,icon:Y0,text:"Sort",title:"Sort array or object contents",disabled:!u},{type:"button",onClick:pt,icon:G0,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!u},{type:"button",onClick:X,icon:Rw,text:"Remove",title:"Remove selected contents (Delete)",disabled:!u}]},{type:"column",items:[{type:"label",text:m},{type:"button",onClick:function(){return W("structure")},icon:v?gv:Bl,text:"Structure",title:m+" structure",disabled:!g},{type:"button",onClick:function(){return W("object")},icon:v?gv:Bl,text:"Object",title:m+" structure",disabled:!y},{type:"button",onClick:function(){return W("array")},icon:v?gv:Bl,text:"Array",title:m+" array",disabled:!b},{type:"button",onClick:function(){return W("value")},icon:v?gv:Bl,text:"Value",title:m+" value",disabled:!w}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:mt,icon:bdt,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!u||a},{type:"button",onClick:Ot,icon:mdt,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!u||a}]}])},[C,k,j,S,N,$,B,K,R,q,F,O,A,_,M,P,D,T,H,I,ft,a,u,w,m,v,b,y,g,f,l,i,p,x,h,c,d,r,s,o]}var tvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Zpt,Xpt,qe,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),o}return ot(n)}();function evt(e){ze(e,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function IM(e,t,n){var r=e.slice();return r[13]=t[n],r}function NM(e){var t,n,r,o,i,a,s,c,u=e[13].start+"",l=e[13].end+"";function f(){return e[12](e[13])}return{c:function(){t=et("button"),n=Gt("show "),r=Gt(u),o=Gt("-"),i=Gt(l),a=kt(),E(t,"type","button"),E(t,"class","jse-expand-items svelte-1kai5ns")},m:function(d,h){dt(d,t,h),V(t,n),V(t,r),V(t,o),V(t,i),V(t,a),s||(c=Lt(t,"click",f),s=!0)},p:function(d,h){e=d,16&h&&u!==(u=e[13].start+"")&&we(r,u),16&h&&l!==(l=e[13].end+"")&&we(i,l)},d:function(d){d&&lt(t),s=!1,c()}}}function nvt(e){for(var t,n,r,o,i,a,s,c,u,l,f,d=De(e[4]),h=[],p=0;p<d.length;p+=1)h[p]=NM(IM(e,d,p));return{c:function(){t=et("div"),n=et("div"),r=et("div"),o=Gt("Items "),i=Gt(e[3]),a=Gt("-"),s=Gt(e[2]),c=kt();for(var v=0;v<h.length;v+=1)h[v].c();E(r,"class","jse-text svelte-1kai5ns"),E(t,"role","none"),E(t,"class","jse-collapsed-items svelte-1kai5ns"),E(t,"style",u=DM(e[0].length+2)),Dt(t,"jse-selected",e[5])},m:function(v,m){dt(v,t,m),V(t,n),V(n,r),V(r,o),V(r,i),V(r,a),V(r,s),V(n,c);for(var g=0;g<h.length;g+=1)h[g]&&h[g].m(n,null);l||(f=Lt(t,"mousemove",rvt),l=!0)},p:function(v,m){var g=$e(m,1)[0];if(8&g&&we(i,v[3]),4&g&&we(s,v[2]),19&g){var y;for(d=De(v[4]),y=0;y<d.length;y+=1){var b=IM(v,d,y);h[y]?h[y].p(b,g):(h[y]=NM(b),h[y].c(),h[y].m(n,null))}for(;y<h.length;y+=1)h[y].d(1);h.length=d.length}1&g&&u!==(u=DM(v[0].length+2))&&E(t,"style",u),32&g&&Dt(t,"jse-selected",v[5])},i:Ht,o:Ht,d:function(v){v&&lt(t),Ir(h,v),l=!1,f()}}}function DM(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function rvt(e){e.stopPropagation()}function ovt(e,t,n){var r,o,i,a,s,c=t.visibleSections,u=t.sectionIndex,l=t.total,f=t.path,d=t.selection,h=t.onExpandSection,p=t.context;return e.$$set=function(v){"visibleSections"in v&&n(6,c=v.visibleSections),"sectionIndex"in v&&n(7,u=v.sectionIndex),"total"in v&&n(8,l=v.total),"path"in v&&n(0,f=v.path),"selection"in v&&n(9,d=v.selection),"onExpandSection"in v&&n(1,h=v.onExpandSection),"context"in v&&n(10,p=v.context)},e.$$.update=function(){192&e.$$.dirty&&n(11,r=c[u]),2048&e.$$.dirty&&n(3,o=r.end),448&e.$$.dirty&&n(2,i=c[u+1]?c[u+1].start:l),1545&e.$$.dirty&&n(5,a=Fh(p.getJson(),d,f.concat(String(o)))),12&e.$$.dirty&&n(4,s=function(v,m){var g={start:v,end:Math.min(Ew(v),m)},y=Math.max(kg((v+m)/2),v),b={start:y,end:Math.min(Ew(y),m)},w=kg(m),x=w===m?w-Ph:w,k={start:Math.max(x,v),end:m},j=[g],S=b.start>=g.end&&b.end<=k.start;return S&&j.push(b),k.start>=(S?b.end:g.end)&&j.push(k),j}(o,i))},[f,h,i,o,s,a,c,u,l,d,p,r,function(v){return h(f,v)}]}var ivt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,ovt,nvt,qe,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},evt),o}return ot(n)}();function avt(e){ze(e,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function svt(e){var t,n,r,o,i;return n=new hn({props:{data:Ri}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-context-menu-pointer svelte-1yzl4st"),E(t,"title",n2),Dt(t,"jse-selected",e[0])},m:function(a,s){dt(a,t,s),Mt(n,t,null),r=!0,o||(i=Lt(t,"click",e[1]),o=!0)},p:function(a,s){var c=$e(s,1)[0];(!r||1&c)&&Dt(t,"jse-selected",a[0])},i:function(a){r||(L(n.$$.fragment,a),r=!0)},o:function(a){U(n.$$.fragment,a),r=!1},d:function(a){a&&lt(t),At(n),o=!1,i()}}}function cvt(e,t,n){var r=t.selected,o=t.onContextMenu;return e.$$set=function(i){"selected"in i&&n(0,r=i.selected),"onContextMenu"in i&&n(2,o=i.onContextMenu)},[r,function(i){for(var a=i.target;a&&a.nodeName!=="BUTTON";)a=a.parentNode;a&&o({anchor:a,left:0,top:0,width:Rs,height:Ts,offsetTop:2,offsetLeft:0,showTip:!0})},o]}var su=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,cvt,svt,qe,{selected:0,onContextMenu:2},avt),o}return ot(n)}();function uvt(e){ze(e,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function lvt(e){var t,n,r,o,i,a,s,c=[hvt,dvt],u=[];function l(f,d){return f[1]?0:1}return n=l(e),r=u[n]=c[n](e),{c:function(){t=et("div"),r.c(),E(t,"role","none"),E(t,"data-type","selectable-key"),E(t,"class",o=dr(e[6](e[0]))+" svelte-24a1b2")},m:function(f,d){dt(f,t,d),u[n].m(t,null),i=!0,a||(s=Lt(t,"dblclick",e[5]),a=!0)},p:function(f,d){var h=n;(n=l(f))===h?u[n].p(f,d):(Bt(),U(u[h],1,1,function(){u[h]=null}),Ft(),(r=u[n])?r.p(f,d):(r=u[n]=c[n](f)).c(),L(r,1),r.m(t,null)),(!i||1&d&&o!==(o=dr(f[6](f[0]))+" svelte-24a1b2"))&&E(t,"class",o)},i:function(f){i||(L(r),i=!0)},o:function(f){U(r),i=!1},d:function(f){f&&lt(t),u[n].d(),a=!1,s()}}}function fvt(e){var t,n;return t=new tB({props:{value:e[2].normalization.escapeValue(e[0]),shortText:!0,onChange:e[7],onCancel:e[8],onFind:e[2].onFind}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.value=r[2].normalization.escapeValue(r[0])),4&o&&(i.onFind=r[2].onFind),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function dvt(e){var t,n=nl(e[2].normalization.escapeValue(e[0]))+"";return{c:function(){t=Gt(n)},m:function(r,o){dt(r,t,o)},p:function(r,o){5&o&&n!==(n=nl(r[2].normalization.escapeValue(r[0]))+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function hvt(e){var t,n;return t=new aB({props:{text:e[2].normalization.escapeValue(e[0]),searchResultItems:e[1]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.text=r[2].normalization.escapeValue(r[0])),2&o&&(i.searchResultItems=r[1]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function zM(e){var t,n;return t=new su({props:{selected:!0,onContextMenu:e[2].onContextMenu}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.onContextMenu=r[2].onContextMenu),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function pvt(e){var t,n,r,o,i,a=[fvt,lvt],s=[];function c(l,f){return l[4]?0:1}t=c(e),n=s[t]=a[t](e);var u=!e[2].readOnly&&e[3]&&!e[4]&&zM(e);return{c:function(){n.c(),r=kt(),u&&u.c(),o=_n()},m:function(l,f){s[t].m(l,f),dt(l,r,f),u&&u.m(l,f),dt(l,o,f),i=!0},p:function(l,f){var d=$e(f,1)[0],h=t;(t=c(l))===h?s[t].p(l,d):(Bt(),U(s[h],1,1,function(){s[h]=null}),Ft(),(n=s[t])?n.p(l,d):(n=s[t]=a[t](l)).c(),L(n,1),n.m(r.parentNode,r)),l[2].readOnly||!l[3]||l[4]?u&&(Bt(),U(u,1,1,function(){u=null}),Ft()):u?(u.p(l,d),28&d&&L(u,1)):((u=zM(l)).c(),L(u,1),u.m(o.parentNode,o))},i:function(l){i||(L(n),L(u),i=!0)},o:function(l){U(n),U(u),i=!1},d:function(l){l&&(lt(r),lt(o)),s[t].d(l),u&&u.d(l)}}}function vvt(e,t,n){var r,o,i=t.path,a=t.key,s=t.selection,c=t.searchResultItems,u=t.onUpdateKey,l=t.context;return e.$$set=function(f){"path"in f&&n(9,i=f.path),"key"in f&&n(0,a=f.key),"selection"in f&&n(10,s=f.selection),"searchResultItems"in f&&n(1,c=f.searchResultItems),"onUpdateKey"in f&&n(11,u=f.onUpdateKey),"context"in f&&n(2,l=f.context)},e.$$.update=function(){1536&e.$$.dirty&&n(3,r=!!s&&Br(s)&&an(s.path,i)),1032&e.$$.dirty&&n(4,o=r&&Gi(s))},[a,c,l,r,o,function(f){o||l.readOnly||(f.preventDefault(),l.onSelect(Hi(i,!0)))},function(f){return ds("jse-key",{"jse-empty":f===""})},function(f,d){var h=u(a,l.normalization.unescapeValue(f)),p=on(i).concat(h);l.onSelect(d===o2?Ue(p,!1):Hi(p,!1)),d!==r2&&l.focus()},function(){l.onSelect(Hi(i,!1)),l.focus()},i,s,u]}var mvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,vvt,pvt,qe,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},uvt),o}return ot(n)}();function LM(e,t,n){var r=e.slice();return r[8]=t[n],r}function BM(e){var t,n,r,o=[e[8].props],i=e[8].component;function a(s,c){var u={};if(c!==void 0&&1&c)u=Wi(o,[Yu(s[8].props)]);else for(var l=0;l<o.length;l+=1)u=oi(u,o[l]);return{props:u}}return i&&(t=ls(i,a(e))),{c:function(){t&&Pt(t.$$.fragment),n=_n()},m:function(s,c){t&&Mt(t,s,c),dt(s,n,c),r=!0},p:function(s,c){if(1&c&&i!==(i=s[8].component)){if(t){Bt();var u=t;U(u.$$.fragment,1,0,function(){At(u,1)}),Ft()}i?(Pt((t=ls(i,a(s,c))).$$.fragment),L(t.$$.fragment,1),Mt(t,n.parentNode,n)):t=null}else if(i){var l=1&c?Wi(o,[Yu(s[8].props)]):{};t.$set(l)}},i:function(s){r||(t&&L(t.$$.fragment,s),r=!0)},o:function(s){t&&U(t.$$.fragment,s),r=!1},d:function(s){s&&lt(n),t&&At(t,s)}}}function gvt(e){for(var t,n,r=De(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=BM(LM(e,r,i));var a=function(s){return U(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=_n()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);dt(s,t,c),n=!0},p:function(s,c){var u=$e(c,1)[0];if(1&u){var l;for(r=De(s[0]),l=0;l<r.length;l+=1){var f=LM(s,r,l);o[l]?(o[l].p(f,u),L(o[l],1)):(o[l]=BM(f),o[l].c(),L(o[l],1),o[l].m(t.parentNode,t))}for(Bt(),l=r.length;l<o.length;l+=1)a(l);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)L(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)U(o[c]);n=!1},d:function(s){s&&lt(t),Ir(o,s)}}}function yvt(e,t,n){var r,o,i=t.path,a=t.value,s=t.context,c=t.enforceString,u=t.selection,l=t.searchResultItems;return e.$$set=function(f){"path"in f&&n(1,i=f.path),"value"in f&&n(2,a=f.value),"context"in f&&n(3,s=f.context),"enforceString"in f&&n(4,c=f.enforceString),"selection"in f&&n(5,u=f.selection),"searchResultItems"in f&&n(6,l=f.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&dn(u)&&Gi(u)),254&e.$$.dirty&&n(0,o=s.onRenderValue({path:i,value:a,readOnly:s.readOnly,enforceString:c,isEditing:r,parser:s.parser,normalization:s.normalization,selection:u,searchResultItems:l,onPatch:s.onPatch,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[o,i,a,s,c,u,l,r]}var bvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,yvt,gvt,qe,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),o}return ot(n)}(),wvt=bvt,no={selecting:!1,selectionAnchor:null,selectionAnchorType:null,selectionFocus:null,dragging:!1};function jy(e){var t=e.json,n=e.documentState,r=e.deltaY,o=e.items;if(!n.selection)return{operations:void 0,updatedSelection:null,offset:0};var i=n.selection,a=r<0?function(l){for(var f=l.json,d=l.items,h=l.selection,p=l.deltaY,v=Is(f,h),m=d.findIndex(function(k){return an(k.path,v)}),g=function(){var k;return(k=d[y-1])===null||k===void 0?void 0:k.height},y=m,b=0;g()!==void 0&&Math.abs(p)>b+g()/2;)b+=g(),y-=1;var w=d[y].path,x=y-m;return y!==m&&d[y]!==void 0?{beforePath:w,offset:x}:void 0}({json:t,selection:i,deltaY:r,items:o}):function(l){for(var f,d=l.json,h=l.items,p=l.selection,v=l.deltaY,m=Pc(d,p),g=h.findIndex(function($){return an($.path,m)}),y=0,b=g,w=function(){var $;return($=h[b+1])===null||$===void 0?void 0:$.height};w()!==void 0&&Math.abs(v)>y+w()/2;)y+=w(),b+=1;var x=on(m),k=fe(d,x),j=Array.isArray(k),S=j?b:b+1,N=(f=h[S])===null||f===void 0?void 0:f.path,C=b-g;return N?{beforePath:N,offset:C}:{append:!0,offset:C}}({json:t,selection:i,deltaY:r,items:o});if(!a||a.offset===0)return{operations:void 0,updatedSelection:null,offset:0};var s=function(l,f,d){if(!f)return[];var h="beforePath"in d?d.beforePath:void 0,p="append"in d?d.append:void 0,v=on(ge(f)),m=fe(l,v);if(!(p||h&&Uc(h,v)&&h.length>v.length))return[];var g=Is(l,f),y=Pc(l,f),b=Ie(g),w=Ie(y),x=h?h[v.length]:void 0;if(!kr(m)){if(Un(m)){var k=jo(b),j=jo(w),S=x!==void 0?jo(x):m.length;return kL(j-k+1,S<k?function(K){return{op:"move",from:oe(v.concat(String(k+K))),path:oe(v.concat(String(S+K)))}}:function(){return{op:"move",from:oe(v.concat(String(k))),path:oe(v.concat(String(S)))}})}throw new Error("Cannot create move operations: parent must be an Object or Array")}var N=Object.keys(m),C=N.indexOf(b),$=N.indexOf(w),B=p?N.length:x!==void 0?N.indexOf(x):-1;return C!==-1&&$!==-1&&B!==-1?B>C?[].concat(Se(N.slice(C,$+1)),Se(N.slice(B,N.length))).map(function(K){return rl(v,K)}):[].concat(Se(N.slice(B,C)),Se(N.slice($+1,N.length))).map(function(K){return rl(v,K)}):[]}(t,i,a),c=fe(t,on(Is(t,i)));if(Array.isArray(c)){var u=function(l){var f,d,h=l.items,p=l.json,v=l.selection,m=l.offset,g=Is(p,v),y=Pc(p,v),b=h.findIndex(function(j){return an(j.path,g)}),w=h.findIndex(function(j){return an(j.path,y)}),x=(f=h[b+m])===null||f===void 0?void 0:f.path,k=(d=h[w+m])===null||d===void 0?void 0:d.path;return Mo(x,k)}({items:o,json:t,selection:i,offset:a.offset});return{operations:s,updatedSelection:u,offset:a.offset}}return{operations:s,updatedSelection:null,offset:a.offset}}function Na(e,t){return function(n,r){if(n){for(var o={},i=0,a=Object.keys(n);i<a.length;i++){var s=a[i];r(s,n[s])&&(o[s]=n[s])}return Object.keys(o).length>0?o:void 0}}(e,function(n){return E0(n,t)})}function xvt(e){ze(e,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function kvt(e){var t,n,r,o,i,a;return n=new hn({props:{data:hl}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-validation-error svelte-pz3g1j")},m:function(s,c){dt(s,t,c),Mt(n,t,null),o=!0,i||(a=[Lt(t,"click",function(){co(e[0])&&e[0].apply(this,arguments)}),lo(r=fj.call(null,t,xt({text:e[1]},e[2])))],i=!0)},p:function(s,c){var u=$e(c,1)[0];e=s,r&&co(r.update)&&2&u&&r.update.call(null,xt({text:e[1]},e[2]))},i:function(s){o||(L(n.$$.fragment,s),o=!0)},o:function(s){U(n.$$.fragment,s),o=!1},d:function(s){s&&lt(t),At(n),i=!1,Fn(a)}}}function jvt(e,t,n){var r,o=fo("absolute-popup"),i=t.validationError,a=t.onExpand;return e.$$set=function(s){"validationError"in s&&n(3,i=s.validationError),"onExpand"in s&&n(0,a=s.onExpand)},e.$$.update=function(){8&e.$$.dirty&&n(1,r=i.isChildError?"Contains invalid data":i.message)},[a,r,o,i]}var id=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,jvt,kvt,to,{validationError:3,onExpand:0},xvt),o}return ot(n)}();function _vt(e){ze(e,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var Svt=function(e){return{}},FM=function(e){return{}};function qM(e,t,n){var r=e.slice();return r[53]=t[n],r}var $vt=function(e){return{}},HM=function(e){return{}};function VM(e,t,n){var r=e.slice();return r[47]=t[n],r[49]=n,r}function UM(e,t,n){var r=e.slice();return r[50]=t[n],r}var Cvt=function(e){return{}},WM=function(e){return{}};function Evt(e){var t,n,r,o,i,a,s,c,u,l=!e[8].readOnly&&e[16]&&e[7]&&(dn(e[7])||Ln(e[7]))&&!Gi(e[7])&&an(ge(e[7]),e[1]),f=e[34].identifier,d=Cr(f,e,e[35],FM),h=!e[17]&&KM();i=new wvt({props:{path:e[1],value:e[0],enforceString:e[13],selection:e[16]?e[7]:null,searchResultItems:d6(e[6],e[9]),context:e[8]}});var p=l&&JM(e),v=e[15]&&GM(e),m=!e[17]&&QM(e);return{c:function(){t=et("div"),n=et("div"),d&&d.c(),r=kt(),h&&h.c(),o=kt(),Pt(i.$$.fragment),a=kt(),p&&p.c(),s=kt(),v&&v.c(),c=kt(),m&&m.c(),E(n,"class","jse-contents svelte-1wlxti1"),E(t,"class","jse-contents-outer svelte-1wlxti1"),E(t,"style",e[18])},m:function(g,y){dt(g,t,y),V(t,n),d&&d.m(n,null),V(n,r),h&&h.m(n,null),V(n,o),Mt(i,n,null),V(n,a),p&&p.m(n,null),V(t,s),v&&v.m(t,null),V(t,c),m&&m.m(t,null),u=!0},p:function(g,y){d&&d.p&&(!u||16&y[1])&&Or(d,f,g,g[35],u?Er(f,g[35],y,Svt):Mr(g[35]),FM),g[17]?h&&(h.d(1),h=null):h||((h=KM()).c(),h.m(n,o));var b={};2&y[0]&&(b.path=g[1]),1&y[0]&&(b.value=g[0]),8192&y[0]&&(b.enforceString=g[13]),65664&y[0]&&(b.selection=g[16]?g[7]:null),576&y[0]&&(b.searchResultItems=d6(g[6],g[9])),256&y[0]&&(b.context=g[8]),i.$set(b),65922&y[0]&&(l=!g[8].readOnly&&g[16]&&g[7]&&(dn(g[7])||Ln(g[7]))&&!Gi(g[7])&&an(ge(g[7]),g[1])),l?p?(p.p(g,y),65922&y[0]&&L(p,1)):((p=JM(g)).c(),L(p,1),p.m(n,null)):p&&(Bt(),U(p,1,1,function(){p=null}),Ft()),g[15]?v?(v.p(g,y),32768&y[0]&&L(v,1)):((v=GM(g)).c(),L(v,1),v.m(t,c)):v&&(Bt(),U(v,1,1,function(){v=null}),Ft()),g[17]?m&&(m.d(1),m=null):m?m.p(g,y):((m=QM(g)).c(),m.m(t,null)),(!u||262144&y[0])&&E(t,"style",g[18])},i:function(g){u||(L(d,g),L(i.$$.fragment,g),L(p),L(v),u=!0)},o:function(g){U(d,g),U(i.$$.fragment,g),U(p),U(v),u=!1},d:function(g){g&&lt(t),d&&d.d(g),h&&h.d(),At(i),p&&p.d(),v&&v.d(),m&&m.d()}}}function Ovt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(dn(e[7])||Ln(e[7]))&&!e[7].edit&&an(ge(e[7]),e[1]),w=[Pvt,Avt],x=[];function k(_,M){return _[12]?0:1}o=k(e),i=x[o]=w[o](e);var j=e[34].identifier,S=Cr(j,e,e[35],HM),N=!e[17]&&YM();function C(_,M){return _[12]?Rvt:Tvt}var $=C(e),B=$(e),K=b&&XM(e),R=e[15]&&(!e[12]||!e[15].isChildError)&&ZM(e);function q(_,M){return _[12]?Nvt:_[17]?void 0:Ivt}var F=q(e),O=F&&F(e),A=e[12]&&tA(e);return{c:function(){t=et("div"),n=et("div"),r=et("button"),i.c(),a=kt(),S&&S.c(),s=kt(),N&&N.c(),c=kt(),u=et("div"),l=et("div"),B.c(),f=kt(),K&&K.c(),d=kt(),R&&R.c(),h=kt(),O&&O.c(),p=kt(),A&&A.c(),v=_n(),E(r,"type","button"),E(r,"class","jse-expand svelte-1wlxti1"),E(r,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),E(l,"class","jse-meta-inner svelte-1wlxti1"),E(u,"class","jse-meta svelte-1wlxti1"),E(u,"data-type","selectable-value"),E(n,"class","jse-header svelte-1wlxti1"),E(t,"class","jse-header-outer svelte-1wlxti1"),E(t,"style",e[18])},m:function(_,M){dt(_,t,M),V(t,n),V(n,r),x[o].m(r,null),V(n,a),S&&S.m(n,null),V(n,s),N&&N.m(n,null),V(n,c),V(n,u),V(u,l),B.m(l,null),V(n,f),K&&K.m(n,null),V(t,d),R&&R.m(t,null),V(t,h),O&&O.m(t,null),dt(_,p,M),A&&A.m(_,M),dt(_,v,M),m=!0,g||(y=Lt(r,"click",e[21]),g=!0)},p:function(_,M){var P=o;(o=k(_))!==P&&(Bt(),U(x[P],1,1,function(){x[P]=null}),Ft(),(i=x[o])||(i=x[o]=w[o](_)).c(),L(i,1),i.m(r,null)),S&&S.p&&(!m||16&M[1])&&Or(S,j,_,_[35],m?Er(j,_[35],M,$vt):Mr(_[35]),HM),_[17]?N&&(N.d(1),N=null):N||((N=YM()).c(),N.m(n,c)),$===($=C(_))&&B?B.p(_,M):(B.d(1),(B=$(_))&&(B.c(),B.m(l,null))),65922&M[0]&&(b=!_[8].readOnly&&_[16]&&_[7]&&(dn(_[7])||Ln(_[7]))&&!_[7].edit&&an(ge(_[7]),_[1])),b?K?(K.p(_,M),65922&M[0]&&L(K,1)):((K=XM(_)).c(),L(K,1),K.m(n,null)):K&&(Bt(),U(K,1,1,function(){K=null}),Ft()),!_[15]||_[12]&&_[15].isChildError?R&&(Bt(),U(R,1,1,function(){R=null}),Ft()):R?(R.p(_,M),36864&M[0]&&L(R,1)):((R=ZM(_)).c(),L(R,1),R.m(t,h)),F===(F=q(_))&&O?O.p(_,M):(O&&O.d(1),(O=F&&F(_))&&(O.c(),O.m(t,null))),(!m||262144&M[0])&&E(t,"style",_[18]),_[12]?A?(A.p(_,M),4096&M[0]&&L(A,1)):((A=tA(_)).c(),L(A,1),A.m(v.parentNode,v)):A&&(Bt(),U(A,1,1,function(){A=null}),Ft())},i:function(_){m||(L(i),L(S,_),L(K),L(R),L(A),m=!0)},o:function(_){U(i),U(S,_),U(K),U(R),U(A),m=!1},d:function(_){_&&(lt(t),lt(p),lt(v)),x[o].d(),S&&S.d(_),N&&N.d(),B.d(),K&&K.d(),R&&R.d(),O&&O.d(),A&&A.d(_),g=!1,y()}}}function Mvt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(dn(e[7])||Ln(e[7]))&&!e[7].edit&&an(ge(e[7]),e[1]),w=[Lvt,zvt],x=[];function k(_,M){return _[12]?0:1}o=k(e),i=x[o]=w[o](e);var j=e[34].identifier,S=Cr(j,e,e[35],WM),N=!e[17]&&oA();function C(_,M){return _[12]?Fvt:Bvt}var $=C(e),B=$(e),K=b&&iA(e),R=e[15]&&(!e[12]||!e[15].isChildError)&&aA(e);function q(_,M){return _[12]?Hvt:qvt}var F=q(e),O=F(e),A=e[12]&&sA(e);return{c:function(){t=et("div"),n=et("div"),r=et("button"),i.c(),a=kt(),S&&S.c(),s=kt(),N&&N.c(),c=kt(),u=et("div"),l=et("div"),B.c(),f=kt(),K&&K.c(),d=kt(),R&&R.c(),h=kt(),O.c(),p=kt(),A&&A.c(),v=_n(),E(r,"type","button"),E(r,"class","jse-expand svelte-1wlxti1"),E(r,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),E(l,"class","jse-meta-inner svelte-1wlxti1"),E(l,"data-type","selectable-value"),E(u,"class","jse-meta svelte-1wlxti1"),E(n,"class","jse-header svelte-1wlxti1"),E(t,"class","jse-header-outer svelte-1wlxti1"),E(t,"style",e[18])},m:function(_,M){dt(_,t,M),V(t,n),V(n,r),x[o].m(r,null),V(n,a),S&&S.m(n,null),V(n,s),N&&N.m(n,null),V(n,c),V(n,u),V(u,l),B.m(l,null),V(n,f),K&&K.m(n,null),V(t,d),R&&R.m(t,null),V(t,h),O.m(t,null),dt(_,p,M),A&&A.m(_,M),dt(_,v,M),m=!0,g||(y=Lt(r,"click",e[21]),g=!0)},p:function(_,M){var P=o;(o=k(_))!==P&&(Bt(),U(x[P],1,1,function(){x[P]=null}),Ft(),(i=x[o])||(i=x[o]=w[o](_)).c(),L(i,1),i.m(r,null)),S&&S.p&&(!m||16&M[1])&&Or(S,j,_,_[35],m?Er(j,_[35],M,Cvt):Mr(_[35]),WM),_[17]?N&&(N.d(1),N=null):N||((N=oA()).c(),N.m(n,c)),$===($=C(_))&&B?B.p(_,M):(B.d(1),(B=$(_))&&(B.c(),B.m(l,null))),65922&M[0]&&(b=!_[8].readOnly&&_[16]&&_[7]&&(dn(_[7])||Ln(_[7]))&&!_[7].edit&&an(ge(_[7]),_[1])),b?K?(K.p(_,M),65922&M[0]&&L(K,1)):((K=iA(_)).c(),L(K,1),K.m(n,null)):K&&(Bt(),U(K,1,1,function(){K=null}),Ft()),!_[15]||_[12]&&_[15].isChildError?R&&(Bt(),U(R,1,1,function(){R=null}),Ft()):R?(R.p(_,M),36864&M[0]&&L(R,1)):((R=aA(_)).c(),L(R,1),R.m(t,h)),F===(F=q(_))&&O?O.p(_,M):(O.d(1),(O=F(_))&&(O.c(),O.m(t,null))),(!m||262144&M[0])&&E(t,"style",_[18]),_[12]?A?(A.p(_,M),4096&M[0]&&L(A,1)):((A=sA(_)).c(),L(A,1),A.m(v.parentNode,v)):A&&(Bt(),U(A,1,1,function(){A=null}),Ft())},i:function(_){m||(L(i),L(S,_),L(K),L(R),L(A),m=!0)},o:function(_){U(i),U(S,_),U(K),U(R),U(A),m=!1},d:function(_){_&&(lt(t),lt(p),lt(v)),x[o].d(),S&&S.d(_),N&&N.d(),B.d(),K&&K.d(),R&&R.d(),O.d(),A&&A.d(_),g=!1,y()}}}function KM(e){var t;return{c:function(){(t=et("div")).textContent=":",E(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){dt(n,t,r)},d:function(n){n&&lt(t)}}}function JM(e){var t,n,r;return n=new su({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){dt(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(L(n.$$.fragment,o),r=!0)},o:function(o){U(n.$$.fragment,o),r=!1},d:function(o){o&&lt(t),At(n)}}}function GM(e){var t,n;return t=new id({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function QM(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),E(t,"data-type","insert-selection-area-after")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function Avt(e){var t,n;return t=new hn({props:{data:kc}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Pvt(e){var t,n;return t=new hn({props:{data:Ri}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function YM(e){var t;return{c:function(){(t=et("div")).textContent=":",E(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){dt(n,t,r)},d:function(n){n&&lt(t)}}}function Tvt(e){var t,n,r,o,i,a,s,c,u,l,f=Object.keys(e[0]).length+"",d=Object.keys(e[0]).length===1?"prop":"props";return{c:function(){(t=et("div")).textContent="{",n=kt(),r=et("button"),o=Gt(f),i=kt(),a=Gt(d),s=kt(),(c=et("div")).textContent="}",E(t,"class","jse-bracket svelte-1wlxti1"),E(r,"type","button"),E(r,"class","jse-tag svelte-1wlxti1"),E(c,"class","jse-bracket svelte-1wlxti1")},m:function(h,p){dt(h,t,p),dt(h,n,p),dt(h,r,p),V(r,o),V(r,i),V(r,a),dt(h,s,p),dt(h,c,p),u||(l=Lt(r,"click",e[22]),u=!0)},p:function(h,p){1&p[0]&&f!==(f=Object.keys(h[0]).length+"")&&we(o,f),1&p[0]&&d!==(d=Object.keys(h[0]).length===1?"prop":"props")&&we(a,d)},d:function(h){h&&(lt(t),lt(n),lt(r),lt(s),lt(c)),u=!1,l()}}}function Rvt(e){var t;return{c:function(){(t=et("div")).textContent="{",E(t,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(n,r){dt(n,t,r)},p:Ht,d:function(n){n&&lt(t)}}}function XM(e){var t,n,r;return n=new su({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){dt(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(L(n.$$.fragment,o),r=!0)},o:function(o){U(n.$$.fragment,o),r=!1},d:function(o){o&&lt(t),At(n)}}}function ZM(e){var t,n;return t=new id({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Ivt(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),E(t,"data-type","insert-selection-area-after")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function Nvt(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),E(t,"data-type","insert-selection-area-inside")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[29]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function tA(e){for(var t,n,r,o,i,a,s,c=!e[8].readOnly&&(e[10]===Vs||e[16]&&Vr(e[7])),u=c&&eA(e),l=De(e[19](e[1],e[0],e[2],e[3],e[4],e[5],e[6],e[7],e[11])),f=[],d=0;d<l.length;d+=1)f[d]=nA(qM(e,l,d));var h=function(v){return U(f[v],1,1,function(){f[v]=null})},p=!e[17]&&rA(e);return{c:function(){t=et("div"),u&&u.c(),n=kt();for(var v=0;v<f.length;v+=1)f[v].c();r=kt(),o=et("div"),(i=et("div")).innerHTML='<div class="jse-bracket svelte-1wlxti1">}</div>',a=kt(),p&&p.c(),E(t,"class","jse-props svelte-1wlxti1"),E(i,"data-type","selectable-value"),E(i,"class","jse-footer svelte-1wlxti1"),E(o,"class","jse-footer-outer svelte-1wlxti1"),E(o,"style",e[18])},m:function(v,m){dt(v,t,m),u&&u.m(t,null),V(t,n);for(var g=0;g<f.length;g+=1)f[g]&&f[g].m(t,null);dt(v,r,m),dt(v,o,m),V(o,i),V(o,a),p&&p.m(o,null),s=!0},p:function(v,m){if(66944&m[0]&&(c=!v[8].readOnly&&(v[10]===Vs||v[16]&&Vr(v[7]))),c?u?(u.p(v,m),66944&m[0]&&L(u,1)):((u=eA(v)).c(),L(u,1),u.m(t,n)):u&&(Bt(),U(u,1,1,function(){u=null}),Ft()),76024319&m[0]){var g;for(l=De(v[19](v[1],v[0],v[2],v[3],v[4],v[5],v[6],v[7],v[11])),g=0;g<l.length;g+=1){var y=qM(v,l,g);f[g]?(f[g].p(y,m),L(f[g],1)):(f[g]=nA(y),f[g].c(),L(f[g],1),f[g].m(t,null))}for(Bt(),g=l.length;g<f.length;g+=1)h(g);Ft()}v[17]?p&&(p.d(1),p=null):p?p.p(v,m):((p=rA(v)).c(),p.m(o,null)),(!s||262144&m[0])&&E(o,"style",v[18])},i:function(v){if(!s){L(u);for(var m=0;m<l.length;m+=1)L(f[m]);s=!0}},o:function(v){U(u),f=f.filter(Boolean);for(var m=0;m<f.length;m+=1)U(f[m]);s=!1},d:function(v){v&&(lt(t),lt(r),lt(o)),u&&u.d(),Ir(f,v),p&&p.d()}}}function eA(e){var t,n,r,o;return n=new su({props:{selected:e[16]&&Vr(e[7]),onContextMenu:e[31]}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),E(t,"data-type","insert-selection-area-inside"),E(t,"style",r=Uh(e[1].length+1)),E(t,"title",e2),Dt(t,"jse-hovered",e[10]===Vs),Dt(t,"jse-selected",e[16]&&Vr(e[7]))},m:function(i,a){dt(i,t,a),Mt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Vr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=Uh(i[1].length+1)))&&E(t,"style",r),(!o||1024&a[0])&&Dt(t,"jse-hovered",i[10]===Vs),(!o||65664&a[0])&&Dt(t,"jse-selected",i[16]&&Vr(i[7]))},i:function(i){o||(L(n.$$.fragment,i),o=!0)},o:function(i){U(n.$$.fragment,i),o=!1},d:function(i){i&&lt(t),At(n)}}}function Dvt(e){var t,n,r,o;return n=new mvt({props:{path:e[53].path,key:e[53].key,selection:e[53].selection,searchResultItems:e[53].keySearchResultItemsMap,context:e[8],onUpdateKey:e[23]}}),{c:function(){t=et("div"),Pt(n.$$.fragment),r=kt(),E(t,"slot","identifier"),E(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){dt(i,t,a),Mt(n,t,null),V(t,r),o=!0},p:function(i,a){var s={};2303&a[0]&&(s.path=i[53].path),2303&a[0]&&(s.key=i[53].key),2303&a[0]&&(s.selection=i[53].selection),2303&a[0]&&(s.searchResultItems=i[53].keySearchResultItemsMap),256&a[0]&&(s.context=i[8]),n.$set(s)},i:function(i){o||(L(n.$$.fragment,i),o=!0)},o:function(i){U(n.$$.fragment,i),o=!1},d:function(i){i&&lt(t),At(n)}}}function nA(e){var t,n;return t=new kj({props:{value:e[53].value,path:e[53].path,expandedMap:e[53].expandedMap,enforceStringMap:e[53].enforceStringMap,visibleSectionsMap:e[53].visibleSectionsMap,validationErrorsMap:e[53].validationErrorsMap,searchResultItemsMap:e[53].valueSearchResultItemsMap,selection:e[53].selection,context:e[8],onDragSelectionStart:e[26],$$slots:{identifier:[Dvt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2303&o[0]&&(i.value=r[53].value),2303&o[0]&&(i.path=r[53].path),2303&o[0]&&(i.expandedMap=r[53].expandedMap),2303&o[0]&&(i.enforceStringMap=r[53].enforceStringMap),2303&o[0]&&(i.visibleSectionsMap=r[53].visibleSectionsMap),2303&o[0]&&(i.validationErrorsMap=r[53].validationErrorsMap),2303&o[0]&&(i.searchResultItemsMap=r[53].valueSearchResultItemsMap),2303&o[0]&&(i.selection=r[53].selection),256&o[0]&&(i.context=r[8]),2559&o[0]|16&o[1]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function rA(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),E(t,"data-type","insert-selection-area-after")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function zvt(e){var t,n;return t=new hn({props:{data:kc}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Lvt(e){var t,n;return t=new hn({props:{data:Ri}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function oA(e){var t;return{c:function(){(t=et("div")).textContent=":",E(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){dt(n,t,r)},d:function(n){n&&lt(t)}}}function Bvt(e){var t,n,r,o,i,a,s,c,u,l,f=e[0].length+"",d=e[0].length===1?"item":"items";return{c:function(){(t=et("div")).textContent="[",n=kt(),r=et("button"),o=Gt(f),i=kt(),a=Gt(d),s=kt(),(c=et("div")).textContent="]",E(t,"class","jse-bracket svelte-1wlxti1"),E(r,"type","button"),E(r,"class","jse-tag svelte-1wlxti1"),E(c,"class","jse-bracket svelte-1wlxti1")},m:function(h,p){dt(h,t,p),dt(h,n,p),dt(h,r,p),V(r,o),V(r,i),V(r,a),dt(h,s,p),dt(h,c,p),u||(l=Lt(r,"click",e[22]),u=!0)},p:function(h,p){1&p[0]&&f!==(f=h[0].length+"")&&we(o,f),1&p[0]&&d!==(d=h[0].length===1?"item":"items")&&we(a,d)},d:function(h){h&&(lt(t),lt(n),lt(r),lt(s),lt(c)),u=!1,l()}}}function Fvt(e){var t,n,r,o,i,a,s,c=e[0].length+"",u=e[0].length===1?"item":"items";return{c:function(){(t=et("div")).textContent="[",n=kt(),r=et("span"),o=Gt(c),i=kt(),a=Gt(u),s=Gt(`
103
+  `),E(t,"class","jse-bracket svelte-1wlxti1"),E(r,"class","jse-tag jse-expanded svelte-1wlxti1")},m:function(l,f){dt(l,t,f),dt(l,n,f),dt(l,r,f),V(r,o),V(r,i),V(r,a),dt(l,s,f)},p:function(l,f){1&f[0]&&c!==(c=l[0].length+"")&&we(o,c),1&f[0]&&u!==(u=l[0].length===1?"item":"items")&&we(a,u)},d:function(l){l&&(lt(t),lt(n),lt(r),lt(s))}}}function iA(e){var t,n,r;return n=new su({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){dt(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(L(n.$$.fragment,o),r=!0)},o:function(o){U(n.$$.fragment,o),r=!1},d:function(o){o&&lt(t),At(n)}}}function aA(e){var t,n;return t=new id({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function qvt(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),E(t,"data-type","insert-selection-area-after")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function Hvt(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),E(t,"data-type","insert-selection-area-inside")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[29]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function sA(e){for(var t,n,r,o,i,a,s,c=!e[8].readOnly&&(e[10]===Vs||e[16]&&Vr(e[7])),u=[],l=new Map,f=c&&cA(e),d=De(e[14]||Xu),h=function(y){return y[49]},p=0;p<d.length;p+=1){var v=VM(e,d,p),m=h(v);l.set(m,u[p]=fA(m,v))}var g=!e[17]&&dA(e);return{c:function(){t=et("div"),f&&f.c(),n=kt();for(var y=0;y<u.length;y+=1)u[y].c();r=kt(),o=et("div"),(i=et("div")).innerHTML='<span class="jse-bracket svelte-1wlxti1">]</span>',a=kt(),g&&g.c(),E(t,"class","jse-items svelte-1wlxti1"),E(i,"data-type","selectable-value"),E(i,"class","jse-footer svelte-1wlxti1"),E(o,"class","jse-footer-outer svelte-1wlxti1"),E(o,"style",e[18])},m:function(y,b){dt(y,t,b),f&&f.m(t,null),V(t,n);for(var w=0;w<u.length;w+=1)u[w]&&u[w].m(t,null);dt(y,r,b),dt(y,o,b),V(o,i),V(o,a),g&&g.m(o,null),s=!0},p:function(y,b){66944&b[0]&&(c=!y[8].readOnly&&(y[10]===Vs||y[16]&&Vr(y[7]))),c?f?(f.p(y,b),66944&b[0]&&L(f,1)):((f=cA(y)).c(),L(f,1),f.m(t,n)):f&&(Bt(),U(f,1,1,function(){f=null}),Ft()),68176383&b[0]&&(d=De(y[14]||Xu),Bt(),u=C0(u,b,h,1,y,d,l,t,t2,fA,null,VM),Ft()),y[17]?g&&(g.d(1),g=null):g?g.p(y,b):((g=dA(y)).c(),g.m(o,null)),(!s||262144&b[0])&&E(o,"style",y[18])},i:function(y){if(!s){L(f);for(var b=0;b<d.length;b+=1)L(u[b]);s=!0}},o:function(y){U(f);for(var b=0;b<u.length;b+=1)U(u[b]);s=!1},d:function(y){y&&(lt(t),lt(r),lt(o)),f&&f.d();for(var b=0;b<u.length;b+=1)u[b].d();g&&g.d()}}}function cA(e){var t,n,r,o;return n=new su({props:{selected:e[16]&&Vr(e[7]),onContextMenu:e[31]}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),E(t,"data-type","insert-selection-area-inside"),E(t,"style",r=Uh(e[1].length+1)),E(t,"title",e2),Dt(t,"jse-hovered",e[10]===Vs),Dt(t,"jse-selected",e[16]&&Vr(e[7]))},m:function(i,a){dt(i,t,a),Mt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Vr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=Uh(i[1].length+1)))&&E(t,"style",r),(!o||1024&a[0])&&Dt(t,"jse-hovered",i[10]===Vs),(!o||65664&a[0])&&Dt(t,"jse-selected",i[16]&&Vr(i[7]))},i:function(i){o||(L(n.$$.fragment,i),o=!0)},o:function(i){U(n.$$.fragment,i),o=!1},d:function(i){i&&lt(t),At(n)}}}function Vvt(e){var t,n,r,o=e[50].index+"";return{c:function(){t=et("div"),n=et("div"),r=Gt(o),E(n,"class","jse-index svelte-1wlxti1"),E(t,"slot","identifier"),E(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){dt(i,t,a),V(t,n),V(n,r)},p:function(i,a){18687&a[0]&&o!==(o=i[50].index+"")&&we(r,o)},d:function(i){i&&lt(t)}}}function uA(e,t){var n,r,o;return r=new kj({props:{value:t[50].value,path:t[50].path,expandedMap:t[50].expandedMap,enforceStringMap:t[50].enforceStringMap,visibleSectionsMap:t[50].visibleSectionsMap,validationErrorsMap:t[50].validationErrorsMap,searchResultItemsMap:t[50].searchResultItemsMap,selection:t[50].selection,context:t[8],onDragSelectionStart:t[26],$$slots:{identifier:[Vvt]},$$scope:{ctx:t}}}),{key:e,first:null,c:function(){n=_n(),Pt(r.$$.fragment),this.first=n},m:function(i,a){dt(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){t=i;var s={};18687&a[0]&&(s.value=t[50].value),18687&a[0]&&(s.path=t[50].path),18687&a[0]&&(s.expandedMap=t[50].expandedMap),18687&a[0]&&(s.enforceStringMap=t[50].enforceStringMap),18687&a[0]&&(s.visibleSectionsMap=t[50].visibleSectionsMap),18687&a[0]&&(s.validationErrorsMap=t[50].validationErrorsMap),18687&a[0]&&(s.searchResultItemsMap=t[50].searchResultItemsMap),18687&a[0]&&(s.selection=t[50].selection),256&a[0]&&(s.context=t[8]),18687&a[0]|16&a[1]&&(s.$$scope={dirty:a,ctx:t}),r.$set(s)},i:function(i){o||(L(r.$$.fragment,i),o=!0)},o:function(i){U(r.$$.fragment,i),o=!1},d:function(i){i&&lt(n),At(r,i)}}}function lA(e){var t,n;return t=new ivt({props:{visibleSections:e[14]||Xu,sectionIndex:e[49],total:e[0].length,path:e[1],onExpandSection:e[8].onExpandSection,selection:e[7],context:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};16384&o[0]&&(i.visibleSections=r[14]||Xu),16384&o[0]&&(i.sectionIndex=r[49]),1&o[0]&&(i.total=r[0].length),2&o[0]&&(i.path=r[1]),256&o[0]&&(i.onExpandSection=r[8].onExpandSection),128&o[0]&&(i.selection=r[7]),256&o[0]&&(i.context=r[8]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function fA(e,t){for(var n,r,o,i,a=[],s=new Map,c=De(t[20](t[1],t[0],t[47],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),u=function(p){return p[50].index},l=0;l<c.length;l+=1){var f=UM(t,c,l),d=u(f);s.set(d,a[l]=uA(d,f))}var h=t[47].end<t[0].length&&lA(t);return{key:e,first:null,c:function(){n=_n();for(var p=0;p<a.length;p+=1)a[p].c();r=kt(),h&&h.c(),o=_n(),this.first=n},m:function(p,v){dt(p,n,v);for(var m=0;m<a.length;m+=1)a[m]&&a[m].m(p,v);dt(p,r,v),h&&h.m(p,v),dt(p,o,v),i=!0},p:function(p,v){t=p,68176383&v[0]&&(c=De(t[20](t[1],t[0],t[47],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),Bt(),a=C0(a,v,u,1,t,c,s,r.parentNode,t2,uA,r,UM),Ft()),t[47].end<t[0].length?h?(h.p(t,v),16385&v[0]&&L(h,1)):((h=lA(t)).c(),L(h,1),h.m(o.parentNode,o)):h&&(Bt(),U(h,1,1,function(){h=null}),Ft())},i:function(p){if(!i){for(var v=0;v<c.length;v+=1)L(a[v]);L(h),i=!0}},o:function(p){for(var v=0;v<a.length;v+=1)U(a[v]);U(h),i=!1},d:function(p){p&&(lt(n),lt(r),lt(o));for(var v=0;v<a.length;v+=1)a[v].d(p);h&&h.d(p)}}}function dA(e){var t,n,r;return{c:function(){E(t=et("div"),"role","none"),E(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),E(t,"data-type","insert-selection-area-after")},m:function(o,i){dt(o,t,i),n||(r=Lt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,r()}}}function hA(e){var t,n,r;return n=new su({props:{selected:e[16]&&pi(e[7]),onContextMenu:e[32]}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-insert-area jse-after svelte-1wlxti1"),E(t,"data-type","insert-selection-area-after"),E(t,"style",e[18]),E(t,"title",e2),Dt(t,"jse-hovered",e[10]===Th),Dt(t,"jse-selected",e[16]&&pi(e[7]))},m:function(o,i){dt(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};65664&i[0]&&(a.selected=o[16]&&pi(o[7])),n.$set(a),(!r||262144&i[0])&&E(t,"style",o[18]),(!r||1024&i[0])&&Dt(t,"jse-hovered",o[10]===Th),(!r||65664&i[0])&&Dt(t,"jse-selected",o[16]&&pi(o[7]))},i:function(o){r||(L(n.$$.fragment,o),r=!0)},o:function(o){U(n.$$.fragment,o),r=!1},d:function(o){o&&lt(t),At(n)}}}function Uvt(e){var t,n,r,o,i,a,s,c,u,l,f,d=!e[8].readOnly&&(e[10]===Th||e[16]&&pi(e[7])),h=[Mvt,Ovt,Evt],p=[];function v(g,y){return 1&y[0]&&(n=null),1&y[0]&&(r=null),n==null&&(n=!!Array.isArray(g[0])),n?0:(r==null&&(r=!!pr(g[0])),r?1:2)}o=v(e,[-1,-1]),i=p[o]=h[o](e);var m=d&&hA(e);return{c:function(){t=et("div"),i.c(),a=kt(),m&&m.c(),E(t,"role","treeitem"),E(t,"tabindex","-1"),E(t,"class",s=dr(ds("jse-json-node",{"jse-expanded":e[12]},e[8].onClassName(e[1],e[0])))+" svelte-1wlxti1"),E(t,"data-path",c=Cf(e[1])),E(t,"aria-selected",e[16]),Dt(t,"jse-root",e[17]),Dt(t,"jse-selected",e[16]&&Ln(e[7])),Dt(t,"jse-selected-key",e[16]&&Br(e[7])),Dt(t,"jse-selected-value",e[16]&&dn(e[7])),Dt(t,"jse-readonly",e[8].readOnly),Dt(t,"jse-hovered",e[10]===sw)},m:function(g,y){dt(g,t,y),p[o].m(t,null),V(t,a),m&&m.m(t,null),u=!0,l||(f=[Lt(t,"mousedown",e[24]),Lt(t,"mousemove",e[25]),Lt(t,"mouseover",e[27]),Lt(t,"mouseout",e[28]),Lt(t,"focus",void 0),Lt(t,"blur",void 0)],l=!0)},p:function(g,y){var b=o;(o=v(g,y))===b?p[o].p(g,y):(Bt(),U(p[b],1,1,function(){p[b]=null}),Ft(),(i=p[o])?i.p(g,y):(i=p[o]=h[o](g)).c(),L(i,1),i.m(t,a)),66944&y[0]&&(d=!g[8].readOnly&&(g[10]===Th||g[16]&&pi(g[7]))),d?m?(m.p(g,y),66944&y[0]&&L(m,1)):((m=hA(g)).c(),L(m,1),m.m(t,null)):m&&(Bt(),U(m,1,1,function(){m=null}),Ft()),(!u||4355&y[0]&&s!==(s=dr(ds("jse-json-node",{"jse-expanded":g[12]},g[8].onClassName(g[1],g[0])))+" svelte-1wlxti1"))&&E(t,"class",s),(!u||2&y[0]&&c!==(c=Cf(g[1])))&&E(t,"data-path",c),(!u||65536&y[0])&&E(t,"aria-selected",g[16]),(!u||135427&y[0])&&Dt(t,"jse-root",g[17]),(!u||70019&y[0])&&Dt(t,"jse-selected",g[16]&&Ln(g[7])),(!u||70019&y[0])&&Dt(t,"jse-selected-key",g[16]&&Br(g[7])),(!u||70019&y[0])&&Dt(t,"jse-selected-value",g[16]&&dn(g[7])),(!u||4355&y[0])&&Dt(t,"jse-readonly",g[8].readOnly),(!u||5379&y[0])&&Dt(t,"jse-hovered",g[10]===sw)},i:function(g){u||(L(i),L(m),u=!0)},o:function(g){U(i),U(m),u=!1},d:function(g){g&&lt(t),p[o].d(),m&&m.d(),l=!1,Fn(f)}}}function Uh(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function Wvt(e,t,n){var r,o,i,a,s,c,u,l,f=t.$$slots,d=f===void 0?{}:f,h=t.$$scope,p=t.value,v=t.path,m=t.expandedMap,g=t.enforceStringMap,y=t.visibleSectionsMap,b=t.validationErrorsMap,w=t.searchResultItemsMap,x=t.selection,k=t.context,j=t.onDragSelectionStart,S=ho("jsoneditor:JSONNode"),N=void 0,C=void 0,$=void 0,B=xp(function(_){return _},ai);function K(_){k.onDrag(_)}function R(_){no.selecting&&(no.selecting=!1,_.stopPropagation()),k.onDragEnd(),document.removeEventListener("mousemove",K,!0),document.removeEventListener("mouseup",R)}function q(){var _;return((_=k.findElement([]))===null||_===void 0||(_=_.getBoundingClientRect())===null||_===void 0?void 0:_.top)||0}function F(_,M){var P=q()-_.initialContentTop;return M.clientY-_.initialClientY-P}function O(_){if($){var M=k.getJson(),P=k.getDocumentState(),D=F($,_),T=jy({json:M,documentState:P,deltaY:D,items:$.items}).offset;T!==$.offset&&(S("drag selection",T,D),n(11,$=xt(xt({},$),{},{offset:T,didMoveItems:!0})))}}function A(_){if($){var M=k.getJson(),P=jy({json:M,documentState:k.getDocumentState(),deltaY:F($,_),items:$.items}),D=P.operations,T=P.updatedSelection;if(D)k.onPatch(D,function(ft,tt){return{state:xt(xt({},tt),{},{selection:T||x})}});else if(_.target===$.initialTarget&&!$.didMoveItems){var H=dy(_.target),I=qL(_.target);I&&k.onSelect(a6(0,H,I))}n(11,$=void 0),no.dragging=!1,document.removeEventListener("mousemove",O,!0),document.removeEventListener("mouseup",A)}}return e.$$set=function(_){"value"in _&&n(0,p=_.value),"path"in _&&n(1,v=_.path),"expandedMap"in _&&n(2,m=_.expandedMap),"enforceStringMap"in _&&n(3,g=_.enforceStringMap),"visibleSectionsMap"in _&&n(4,y=_.visibleSectionsMap),"validationErrorsMap"in _&&n(5,b=_.validationErrorsMap),"searchResultItemsMap"in _&&n(6,w=_.searchResultItemsMap),"selection"in _&&n(7,x=_.selection),"context"in _&&n(8,k=_.context),"onDragSelectionStart"in _&&n(33,j=_.onDragSelectionStart),"$$scope"in _&&n(35,h=_.$$scope)},e.$$.update=function(){2&e.$$.dirty[0]&&n(9,i=oe(v)),516&e.$$.dirty[0]&&n(12,a=!!m&&m[i]===!0),777&e.$$.dirty[0]&&n(13,s=Ws(p,g,i,k.parser)),528&e.$$.dirty[0]&&n(14,c=y?y[i]:void 0),544&e.$$.dirty[0]&&n(15,u=b?b[i]:void 0),386&e.$$.dirty[0]&&n(16,l=Fh(k.getJson(),x,v)),2&e.$$.dirty[0]&&n(17,r=v.length===0),2&e.$$.dirty[0]&&n(18,o=Uh(v.length))},[p,v,m,g,y,b,w,x,k,i,N,$,a,s,c,u,l,r,o,function(_,M,P,D,T,H,I,ft,tt){var yt=Object.keys(M).map(function(bt){var jt=B(_.concat(bt)),gt=dE(i,bt);return{key:bt,value:M[bt],path:jt,expandedMap:Na(P,gt),enforceStringMap:Na(D,gt),visibleSectionsMap:Na(T,gt),validationErrorsMap:Na(H,gt),keySearchResultItemsMap:Jft(I,gt),valueSearchResultItemsMap:Na(I,gt),selection:s6(k.getJson(),ft,jt)}});return tt&&tt.offset!==0&&(yt=zO(yt,tt.selectionStartIndex,tt.selectionItemsCount,tt.offset)),yt},function(_,M,P,D,T,H,I,ft,tt,yt){for(var bt=P.start,jt=Math.min(P.end,M.length),gt=[],Y=bt;Y<jt;Y++){var J=B(_.concat(String(Y))),it=dE(i,Y);gt.push({index:Y,value:M[Y],path:J,expandedMap:Na(D,it),enforceStringMap:Na(T,it),visibleSectionsMap:Na(H,it),validationErrorsMap:Na(I,it),searchResultItemsMap:Na(ft,it),selection:s6(k.getJson(),tt,J)})}if(yt&&yt.offset!==0){var X=gt.map(function(z){return z.index});gt=zO(gt,yt.selectionStartIndex,yt.selectionItemsCount,yt.offset);for(var _t=0;_t<gt.length;_t++)gt[_t].index=X[_t]}return gt},function(_){_.stopPropagation();var M=_.ctrlKey;k.onExpand(v,!a,M)},function(_){_.stopPropagation(),k.onExpand(v,!0)},function(_,M){var P=Rp(v,Object.keys(p),_,M);return k.onPatch(P),Ie(Ca(P[0].path))},function(_){if(!(function(I){return I.nodeName==="DIV"&&I.contentEditable==="true"}(_.target)||_.which===1&&sj(_.target,"BUTTON"))){_.stopPropagation(),_.preventDefault(),k.focus(),document.addEventListener("mousemove",K,!0),document.addEventListener("mouseup",R);var M=dy(_.target),P=k.getJson(),D=k.getDocumentState();if(!x||M===Bn.after||M===Bn.inside||x.type!==M&&x.type!==Bn.multi||!Fh(P,x,v))if(no.selecting=!0,no.selectionAnchor=v,no.selectionAnchorType=M,no.selectionFocus=v,_.shiftKey){var T=k.getDocumentState().selection;T&&k.onSelect(Mo(Fu(T),v))}else if(M===Bn.multi)if(r&&_.target.hasAttribute("data-path")){var H=Ie(QL(p,D));k.onSelect(Aw(H))}else k.onSelect(Mo(v,v));else k.onSelect(a6(0,M,v));else _.button===0&&j(_)}},function(_){if(no.selecting){_.preventDefault(),_.stopPropagation(),no.selectionFocus==null&&window.getSelection&&window.getSelection().empty();var M=dy(_.target);an(v,no.selectionFocus)&&M===no.selectionAnchorType||(no.selectionFocus=v,no.selectionAnchorType=M,k.onSelect(Mo(no.selectionAnchor||no.selectionFocus,no.selectionFocus)))}},function(_){if(!k.readOnly&&x){var M=on(ge(x));if(an(v,M)){var P=function(ft,tt){var yt=[];function bt(z){var W=v.concat(z),G=k.findElement(W);G!=null&&yt.push({path:W,height:G.clientHeight})}if(Array.isArray(p)){var jt=Is(k.getJson(),ft),gt=Pc(k.getJson(),ft),Y=Ie(jt),J=Ie(gt),it=tt.find(function(z){return Y>=z.start&&J<=z.end});if(!it)return null;var X=it.start,_t=it.end;ML(X,Math.min(p.length,_t),function(z){return bt(String(z))})}else Object.keys(p).forEach(bt);return yt}(x,c||Xu);if(S("dragSelectionStart",{selection:x,items:P}),P){var D=k.getJson(),T=Is(D,x),H=P.findIndex(function(ft){return an(ft.path,T)}),I=jy({json:D,documentState:k.getDocumentState(),deltaY:0,items:P}).offset;n(11,$={initialTarget:_.target,initialClientY:_.clientY,initialContentTop:q(),selectionStartIndex:H,selectionItemsCount:Ac(D,x).length,items:P,offset:I,didMoveItems:!1}),no.dragging=!0,document.addEventListener("mousemove",O,!0),document.addEventListener("mouseup",A)}else S("Cannot drag the current selection (probably spread over multiple sections)")}else j(_)}},function(_){no.selecting||no.dragging||(_.stopPropagation(),Pu(_.target,"data-type","selectable-value")?n(10,N=sw):Pu(_.target,"data-type","insert-selection-area-inside")?n(10,N=Vs):Pu(_.target,"data-type","insert-selection-area-after")&&n(10,N=Th),clearTimeout(C))},function(_){_.stopPropagation(),C=setTimeout(function(){return n(10,N=void 0)})},function(_){_.shiftKey||(_.stopPropagation(),_.preventDefault(),k.onSelect(Ks(v)))},function(_){_.shiftKey||(_.stopPropagation(),_.preventDefault(),k.onSelect(Ls(v)))},function(_){k.onSelect(Ks(v)),k.onContextMenu(_)},function(_){k.onSelect(Ls(v)),k.onContextMenu(_)},j,d,h]}var kj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Wvt,Uvt,qe,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},_vt,[-1,-1]),o}return ot(n)}(),Kvt=kj,Jvt={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},Gvt={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},Bw={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},Qvt={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function Yvt(e){var t,n;return t=new r1({props:{items:e[0]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&$e(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Xvt(e,t,n){var r,o,i,a,s,c,u,l=t.json,f=t.selection,d=t.readOnly,h=t.showSearch,p=h!==void 0&&h,v=t.historyState,m=t.onExpandAll,g=t.onCollapseAll,y=t.onUndo,b=t.onRedo,w=t.onSort,x=t.onTransform,k=t.onContextMenu,j=t.onCopy,S=t.onRenderMenu;function N(){n(1,p=!p)}return e.$$set=function(C){"json"in C&&n(2,l=C.json),"selection"in C&&n(3,f=C.selection),"readOnly"in C&&n(4,d=C.readOnly),"showSearch"in C&&n(1,p=C.showSearch),"historyState"in C&&n(5,v=C.historyState),"onExpandAll"in C&&n(6,m=C.onExpandAll),"onCollapseAll"in C&&n(7,g=C.onCollapseAll),"onUndo"in C&&n(8,y=C.onUndo),"onRedo"in C&&n(9,b=C.onRedo),"onSort"in C&&n(10,w=C.onSort),"onTransform"in C&&n(11,x=C.onTransform),"onContextMenu"in C&&n(12,k=C.onContextMenu),"onCopy"in C&&n(13,j=C.onCopy),"onRenderMenu"in C&&n(14,S=C.onRenderMenu)},e.$$.update=function(){4&e.$$.dirty&&n(20,r=l!==void 0),1048584&e.$$.dirty&&n(19,o=r&&(Ln(f)||Br(f)||dn(f))),68&e.$$.dirty&&n(15,a={type:"button",icon:Jvt,title:"Expand all",className:"jse-expand-all",onClick:m,disabled:!xr(l)}),132&e.$$.dirty&&n(16,s={type:"button",icon:Gvt,title:"Collapse all",className:"jse-collapse-all",onClick:g,disabled:!xr(l)}),4&e.$$.dirty&&n(17,c={type:"button",icon:pj,title:"Search (Ctrl+F)",className:"jse-search",onClick:N,disabled:l===void 0}),769844&e.$$.dirty&&n(18,u=d?[a,s,{type:"separator"},{type:"button",icon:Tc,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:j,disabled:!o},{type:"separator"},c,{type:"space"}]:[a,s,{type:"separator"},{type:"button",icon:Y0,title:"Sort",className:"jse-sort",onClick:w,disabled:d||l===void 0},{type:"button",icon:G0,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:x,disabled:d||l===void 0},c,{type:"button",icon:uB,title:n2,className:"jse-contextmenu",onClick:k},{type:"separator"},{type:"button",icon:hj,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!v.canUndo},{type:"button",icon:dj,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!v.canRedo},{type:"space"}]),278528&e.$$.dirty&&n(0,i=S(u)||u)},[i,p,l,f,d,v,m,g,y,b,w,x,k,j,S,a,s,c,u,o,r]}var Zvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Xvt,Yvt,qe,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),o}return ot(n)}();function tmt(e){ze(e,"svelte-67oee7",".jse-welcome.svelte-67oee7.svelte-67oee7{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-67oee7.svelte-67oee7:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-67oee7 .jse-space.jse-before.svelte-67oee7{flex:1}.jse-welcome.svelte-67oee7 .jse-space.jse-after.svelte-67oee7{flex:2}.jse-welcome.svelte-67oee7 .jse-contents.svelte-67oee7{display:flex;flex-direction:column;max-width:300px;margin:2em var(--jse-padding) 0;gap:var(--jse-padding)}.jse-welcome.svelte-67oee7 .jse-contents .jse-welcome-info.svelte-67oee7{color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7:hover{background:var(--jse-button-primary-background-highlight)}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7:disabled{background:var(--jse-button-primary-background-disabled)}")}function pA(e){var t,n,r,o,i,a,s;return{c:function(){(t=et("div")).innerHTML="You can paste clipboard data using <b>Ctrl+V</b>, or use the following options:",n=kt(),(r=et("button")).textContent="Create object",o=kt(),(i=et("button")).textContent="Create array",E(t,"class","jse-welcome-info svelte-67oee7"),E(r,"title","Create an empty JSON object (press '{')"),E(r,"class","svelte-67oee7"),E(i,"title","Create an empty JSON array (press '[')"),E(i,"class","svelte-67oee7")},m:function(c,u){dt(c,t,u),dt(c,n,u),dt(c,r,u),dt(c,o,u),dt(c,i,u),a||(s=[Lt(r,"click",cs(e[4])),Lt(i,"click",cs(e[5]))],a=!0)},p:Ht,d:function(c){c&&(lt(t),lt(n),lt(r),lt(o),lt(i)),a=!1,Fn(s)}}}function emt(e){var t,n,r,o,i,a,s,c,u,l,f=!e[0]&&pA(e);return{c:function(){t=et("div"),n=et("div"),r=kt(),o=et("div"),(i=et("div")).textContent="Empty document",a=kt(),f&&f.c(),s=kt(),c=et("div"),E(n,"class","jse-space jse-before svelte-67oee7"),E(i,"class","jse-welcome-title"),E(o,"class","jse-contents svelte-67oee7"),E(c,"class","jse-space jse-after svelte-67oee7"),E(t,"class","jse-welcome svelte-67oee7"),E(t,"role","none")},m:function(d,h){dt(d,t,h),V(t,n),V(t,r),V(t,o),V(o,i),V(o,a),f&&f.m(o,null),V(t,s),V(t,c),u||(l=Lt(t,"click",e[6]),u=!0)},p:function(d,h){var p=$e(h,1)[0];d[0]?f&&(f.d(1),f=null):f?f.p(d,p):((f=pA(d)).c(),f.m(o,null))},i:Ht,o:Ht,d:function(d){d&&lt(t),f&&f.d(),u=!1,l()}}}function nmt(e,t,n){var r=t.readOnly,o=t.onCreateArray,i=t.onCreateObject,a=t.onClick;return e.$$set=function(s){"readOnly"in s&&n(0,r=s.readOnly),"onCreateArray"in s&&n(1,o=s.onCreateArray),"onCreateObject"in s&&n(2,i=s.onCreateObject),"onClick"in s&&n(3,a=s.onClick)},[r,o,i,a,function(){return i()},function(){return o()},function(){return a()}]}var rmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,nmt,emt,qe,{readOnly:0,onCreateArray:1,onCreateObject:2,onClick:3},tmt),o}return ot(n)}(),EB={exports:{}},vA=function(e,t){var n,r,o=1,i=0,a=0,s=String.alphabet;function c(u,l,f){if(f){for(n=l;(f=c(u,n))<76&&f>65;)++n;return+u.slice(l-1,n)}return(f=s&&s.indexOf(u.charAt(l)))>-1?f+76:(f=u.charCodeAt(l)||0)<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63}if((e+="")!=(t+="")){for(;o;)if(r=c(e,i++),o=c(t,a++),r<76&&o<76&&r>66&&o>66&&(r=c(e,i,i),o=c(t,a,i=n),a=n),r!=o)return r<o?-1:1}return 0};try{EB.exports=vA}catch{String.naturalCompare=vA}var omt=l2(EB.exports);function Fw(e,t){var n=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return omt(n,r)}function OB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(Un(fe(e,t))){if(n===void 0)throw new Error("Cannot sort: no property selected by which to sort the array");return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,c=function(l,f){return function(d,h){var p=fe(d,l),v=fe(h,l);return p===void 0?f:v===void 0?-f:typeof p!="string"&&typeof v!="string"?p>v?f:p<v?-f:0:f*Fw(p,v)}}(a,s),u=fe(o,i);return[{op:"replace",path:oe(i),value:u.slice(0).sort(c)}]}(e,t,n,r)}if(pr(e))return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=fe(o,i),c=Object.keys(s),u=c.slice();u.sort(function(p,v){return a*Fw(p,v)});for(var l=[],f=0;f<u.length;f++){var d=u[f],h=oe(i.concat(d));l.push({op:"move",from:h,path:h})}return l}(e,t,r);throw new Error("Cannot sort: no array or object")}function imt(e){ze(e,"svelte-6hb2gf",".jse-navigation-bar-dropdown.svelte-6hb2gf.svelte-6hb2gf{position:absolute;top:100%;left:0;z-index:3;background:var(--jse-navigation-bar-background);color:var(--jse-navigation-bar-dropdown-color);box-shadow:var(--jse-controls-box-shadow);display:flex;flex-direction:column;max-height:300px;overflow:auto;min-width:80px}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);border:none;background:transparent;color:inherit;cursor:pointer;outline:none;text-align:left;white-space:nowrap;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding)) 36px}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf:focus,.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf:hover{background:var(--jse-navigation-bar-background-highlight)}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.jse-selected.svelte-6hb2gf{background:var(--jse-navigation-bar-dropdown-color);color:var(--jse-navigation-bar-background)}")}function mA(e,t,n){var r=e.slice();return r[4]=t[n],r}function gA(e,t){var n,r,o,i,a,s=Us(t[4].toString(),bA)+"";function c(){return t[3](t[4])}return{key:e,first:null,c:function(){n=et("button"),r=Gt(s),E(n,"type","button"),E(n,"class","jse-navigation-bar-dropdown-item svelte-6hb2gf"),E(n,"title",o=t[4].toString()),Dt(n,"jse-selected",t[4]===t[1]),this.first=n},m:function(u,l){dt(u,n,l),V(n,r),i||(a=Lt(n,"click",cs(c)),i=!0)},p:function(u,l){t=u,1&l&&s!==(s=Us(t[4].toString(),bA)+"")&&we(r,s),1&l&&o!==(o=t[4].toString())&&E(n,"title",o),3&l&&Dt(n,"jse-selected",t[4]===t[1])},d:function(u){u&&lt(n),i=!1,a()}}}function yA(e){var t,n;return{c:function(){t=et("button"),n=Gt("..."),E(t,"type","button"),E(t,"class","jse-navigation-bar-dropdown-item svelte-6hb2gf"),E(t,"title","Limited to "+Bd+" items")},m:function(r,o){dt(r,t,o),V(t,n)},p:Ht,d:function(r){r&&lt(t)}}}function amt(e){for(var t,n,r=[],o=new Map,i=De(bg(e[0],Bd)),a=function(f){return f[4]},s=0;s<i.length;s+=1){var c=mA(e,i,s),u=a(c);o.set(u,r[s]=gA(u,c))}var l=e[0].length>Bd&&yA();return{c:function(){t=et("div");for(var f=0;f<r.length;f+=1)r[f].c();n=kt(),l&&l.c(),E(t,"class","jse-navigation-bar-dropdown svelte-6hb2gf")},m:function(f,d){dt(f,t,d);for(var h=0;h<r.length;h+=1)r[h]&&r[h].m(t,null);V(t,n),l&&l.m(t,null)},p:function(f,d){var h=$e(d,1)[0];7&h&&(i=De(bg(f[0],Bd)),r=C0(r,h,a,1,f,i,o,t,dZ,gA,n,mA)),f[0].length>Bd?l?l.p(f,h):((l=yA()).c(),l.m(t,null)):l&&(l.d(1),l=null)},i:Ht,o:Ht,d:function(f){f&&lt(t);for(var d=0;d<r.length;d+=1)r[d].d();l&&l.d()}}}var Bd=100,bA=30;function smt(e,t,n){var r=t.items,o=t.selectedItem,i=t.onSelect;return e.$$set=function(a){"items"in a&&n(0,r=a.items),"selectedItem"in a&&n(1,o=a.selectedItem),"onSelect"in a&&n(2,i=a.onSelect)},[r,o,i,function(a){return i(a)}]}var cmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,smt,amt,qe,{items:0,selectedItem:1,onSelect:2},imt),o}return ot(n)}();function umt(e){ze(e,"svelte-1r1k9th",".jse-navigation-bar-item.svelte-1r1k9th.svelte-1r1k9th{position:relative;display:flex}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th{font-family:inherit;font-size:inherit;padding:calc(0.5 * var(--jse-padding)) 2px;border:none;background:transparent;color:inherit;cursor:pointer;outline:none;min-width:2em;white-space:nowrap}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th:focus,.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th:hover{background:var(--jse-panel-button-background-highlight);color:var(--jse-panel-button-color-highlight)}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.jse-navigation-bar-arrow.svelte-1r1k9th{padding:2px var(--jse-padding) 0}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.jse-navigation-bar-arrow.jse-open.svelte-1r1k9th{background:var(--jse-navigation-bar-background);color:var(--jse-navigation-bar-dropdown-color)}.jse-navigation-bar-item.svelte-1r1k9th.svelte-1r1k9th:last-child{padding-right:var(--jse-padding)}")}function wA(e){var t,n,r,o;return{c:function(){t=et("button"),n=Gt(e[2]),E(t,"type","button"),E(t,"class","jse-navigation-bar-button svelte-1r1k9th")},m:function(i,a){dt(i,t,a),V(t,n),r||(o=Lt(t,"click",e[9]),r=!0)},p:function(i,a){4&a&&we(n,i[2])},d:function(i){i&&lt(t),r=!1,o()}}}function lmt(e){var t,n,r,o,i,a,s;r=new hn({props:{data:cB}});var c=e[2]!==void 0&&wA(e);return{c:function(){t=et("div"),n=et("button"),Pt(r.$$.fragment),o=kt(),c&&c.c(),E(n,"type","button"),E(n,"class","jse-navigation-bar-button jse-navigation-bar-arrow svelte-1r1k9th"),Dt(n,"jse-open",e[1]),E(t,"class","jse-navigation-bar-item svelte-1r1k9th")},m:function(u,l){dt(u,t,l),V(t,n),Mt(r,n,null),V(t,o),c&&c.m(t,null),e[10](t),i=!0,a||(s=Lt(n,"click",e[4]),a=!0)},p:function(u,l){var f=$e(l,1)[0];(!i||2&f)&&Dt(n,"jse-open",u[1]),u[2]!==void 0?c?c.p(u,f):((c=wA(u)).c(),c.m(t,null)):c&&(c.d(1),c=null)},i:function(u){i||(L(r.$$.fragment,u),i=!0)},o:function(u){U(r.$$.fragment,u),i=!1},d:function(u){u&&lt(t),At(r),c&&c.d(),e[10](null),a=!1,s()}}}function fmt(e,t,n){var r,o,i,a,s=fo("absolute-popup"),c=s.openAbsolutePopup,u=s.closeAbsolutePopup,l=t.path,f=t.index,d=t.onSelect,h=t.getItems,p=!1;function v(m){u(a),d(r.concat(m))}return e.$$set=function(m){"path"in m&&n(5,l=m.path),"index"in m&&n(6,f=m.index),"onSelect"in m&&n(7,d=m.onSelect),"getItems"in m&&n(8,h=m.getItems)},e.$$.update=function(){96&e.$$.dirty&&(r=l.slice(0,f)),96&e.$$.dirty&&n(2,o=l[f])},[i,p,o,v,function(){if(i){n(1,p=!0);var m={items:h(r),selectedItem:o,onSelect:v};a=c(cmt,m,{anchor:i,closeOnOuterClick:!0,onClose:function(){n(1,p=!1)}})}},l,f,d,h,function(){return v(o)},function(m){rn[m?"unshift":"push"](function(){n(0,i=m)})}]}var MB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,fmt,lmt,qe,{path:5,index:6,onSelect:7,getItems:8},umt),o}return ot(n)}();function jj(e){var t,n;if(navigator.clipboard)return navigator.clipboard.writeText(e);if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&t.call(n,"copy")){var r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select();try{document.execCommand("copy")}catch(o){console.error(o)}finally{document.body.removeChild(r)}}else console.error("Copy failed.")}function dmt(e){ze(e,"svelte-g0evpe",".jse-navigation-bar-path-editor.svelte-g0evpe.svelte-g0evpe{flex:1;display:flex;border:var(--jse-edit-outline);background:var(--jse-background-color)}.jse-navigation-bar-path-editor.svelte-g0evpe input.jse-navigation-bar-text.svelte-g0evpe{flex:1;font-family:inherit;font-size:inherit;padding:0 5px 1px;background:var(--jse-background-color);color:var(--jse-text-color);border:none;outline:none}.jse-navigation-bar-path-editor.svelte-g0evpe button.svelte-g0evpe{border:none;background:var(--jse-background-color);cursor:pointer;font-family:inherit;font-size:80%;color:inherit}.jse-navigation-bar-path-editor.svelte-g0evpe button.jse-navigation-bar-copy.copied.svelte-g0evpe{color:var(--jse-message-success-background)}.jse-navigation-bar-path-editor.svelte-g0evpe button.jse-navigation-bar-validation-error.svelte-g0evpe{color:var(--jse-error-color)}.jse-navigation-bar-path-editor.error.svelte-g0evpe.svelte-g0evpe{border-color:var(--jse-error-color)}.jse-navigation-bar-path-editor.error.svelte-g0evpe input.jse-navigation-bar-text.svelte-g0evpe{color:var(--jse-error-color)}.jse-navigation-bar-path-editor.svelte-g0evpe .jse-copied-text.svelte-g0evpe{background:var(--jse-message-success-background);color:var(--jse-message-success-color);position:relative;margin:2px;padding:0 5px;border-radius:3px}")}function xA(e){var t,n,r,o,i,a;return n=new hn({props:{data:hl}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-navigation-bar-validation-error svelte-g0evpe")},m:function(s,c){dt(s,t,c),Mt(n,t,null),o=!0,i||(a=lo(r=fj.call(null,t,xt({text:e[3]},e[4]))),i=!0)},p:function(s,c){r&&co(r.update)&&8&c&&r.update.call(null,xt({text:s[3]},s[4]))},i:function(s){o||(L(n.$$.fragment,s),o=!0)},o:function(s){U(n.$$.fragment,s),o=!1},d:function(s){s&&lt(t),At(n),i=!1,a()}}}function kA(e){var t;return{c:function(){(t=et("div")).textContent="Copied!",E(t,"class","jse-copied-text svelte-g0evpe")},m:function(n,r){dt(n,t,r)},d:function(n){n&&lt(t)}}}function hmt(e){var t,n,r,o,i,a,s,c,u,l,f=e[3]&&xA(e),d=e[2]&&kA();return s=new hn({props:{data:Tc}}),{c:function(){t=et("div"),n=et("input"),r=kt(),f&&f.c(),o=kt(),d&&d.c(),i=kt(),a=et("button"),Pt(s.$$.fragment),E(n,"type","text"),E(n,"class","jse-navigation-bar-text svelte-g0evpe"),n.value=e[0],E(a,"type","button"),E(a,"class","jse-navigation-bar-copy svelte-g0evpe"),E(a,"title","Copy selected path to the clipboard"),Dt(a,"copied",e[2]),E(t,"class","jse-navigation-bar-path-editor svelte-g0evpe"),Dt(t,"error",e[3])},m:function(h,p){dt(h,t,p),V(t,n),e[15](n),V(t,r),f&&f.m(t,null),V(t,o),d&&d.m(t,null),V(t,i),V(t,a),Mt(s,a,null),c=!0,u||(l=[Lt(n,"keydown",cs(e[6])),Lt(n,"input",e[5]),Lt(a,"click",e[7])],u=!0)},p:function(h,p){var v=$e(p,1)[0];(!c||1&v&&n.value!==h[0])&&(n.value=h[0]),h[3]?f?(f.p(h,v),8&v&&L(f,1)):((f=xA(h)).c(),L(f,1),f.m(t,o)):f&&(Bt(),U(f,1,1,function(){f=null}),Ft()),h[2]?d||((d=kA()).c(),d.m(t,i)):d&&(d.d(1),d=null),(!c||4&v)&&Dt(a,"copied",h[2]),(!c||8&v)&&Dt(t,"error",h[3])},i:function(h){c||(L(f),L(s.$$.fragment,h),c=!0)},o:function(h){U(f),U(s.$$.fragment,h),c=!1},d:function(h){h&&lt(t),e[15](null),f&&f.d(),d&&d.d(),At(s),u=!1,Fn(l)}}}function pmt(e,t,n){var r,o,i,a=fo("absolute-popup"),s=t.path,c=t.pathParser,u=t.onChange,l=t.onClose,f=t.onError,d=t.pathExists,h=!1,p=void 0,v=!1;function m(){o.focus()}function g(y){try{var b=c.parse(y);return function(w){if(!d(w))throw new Error("Path does not exist in current document")}(b),{path:b,error:void 0}}catch(w){return{path:void 0,error:w}}}return Ui(function(){m()}),yi(function(){clearTimeout(p)}),e.$$set=function(y){"path"in y&&n(8,s=y.path),"pathParser"in y&&n(9,c=y.pathParser),"onChange"in y&&n(10,u=y.onChange),"onClose"in y&&n(11,l=y.onClose),"onError"in y&&n(12,f=y.onError),"pathExists"in y&&n(13,d=y.pathExists)},e.$$.update=function(){768&e.$$.dirty&&n(0,i=c.stringify(s)),16385&e.$$.dirty&&n(3,r=h?g(i).error:void 0)},[i,o,v,r,a,function(y){n(0,i=y.currentTarget.value)},function(y){var b=au(y);if(b==="Escape"&&l(),b==="Enter"){n(14,h=!0);var w=g(i);w.path!==void 0?u(w.path):f(w.error)}},function(){jj(i),n(2,v=!0),p=setTimeout(function(){return n(2,v=!1)},1e3),m()},s,c,u,l,f,d,h,function(y){rn[y?"unshift":"push"](function(){n(1,o=y)})}]}var vmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,pmt,hmt,to,{path:8,pathParser:9,onChange:10,onClose:11,onError:12,pathExists:13},dmt),o}return ot(n)}();function mmt(e){ze(e,"svelte-15r3ahw",".jse-navigation-bar.svelte-15r3ahw.svelte-15r3ahw{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-panel-background);color:var(--jse-panel-button-color);padding:0;margin:0;display:flex;overflow:auto;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);color:var(--jse-panel-color-readonly);background:transparent;border:none;display:flex;cursor:pointer;outline:none;align-items:center}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.flex.svelte-15r3ahw{flex:1}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw:focus,.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw:hover,.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.editing.svelte-15r3ahw{background:var(--jse-panel-button-background-highlight);color:var(--jse-panel-button-color-highlight);transition:color 0.2s ease-in, background 0.2s ease-in}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit .jse-navigation-bar-space.svelte-15r3ahw{flex:1;text-align:left}")}function jA(e,t,n){var r=e.slice();return r[18]=t[n],r[20]=n,r}function gmt(e){var t,n;return t=new vmt({props:{path:e[3],onClose:e[11],onChange:e[12],onError:e[1],pathExists:e[8],pathParser:e[2]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.path=r[3]),2&o&&(i.onError=r[1]),4&o&&(i.pathParser=r[2]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ymt(e){for(var t,n,r,o=[],i=new Map,a=De(e[3]),s=function(d){return d[20]},c=0;c<a.length;c+=1){var u=jA(e,a,c),l=s(u);i.set(l,o[c]=_A(l,u))}var f=e[6]&&SA(e);return{c:function(){for(var d=0;d<o.length;d+=1)o[d].c();t=kt(),f&&f.c(),n=_n()},m:function(d,h){for(var p=0;p<o.length;p+=1)o[p]&&o[p].m(d,h);dt(d,t,h),f&&f.m(d,h),dt(d,n,h),r=!0},p:function(d,h){648&h&&(a=De(d[3]),Bt(),o=C0(o,h,s,1,d,a,i,t.parentNode,t2,_A,t,jA),Ft()),d[6]?f?(f.p(d,h),64&h&&L(f,1)):((f=SA(d)).c(),L(f,1),f.m(n.parentNode,n)):f&&(Bt(),U(f,1,1,function(){f=null}),Ft())},i:function(d){if(!r){for(var h=0;h<a.length;h+=1)L(o[h]);L(f),r=!0}},o:function(d){for(var h=0;h<o.length;h+=1)U(o[h]);U(f),r=!1},d:function(d){d&&(lt(t),lt(n));for(var h=0;h<o.length;h+=1)o[h].d(d);f&&f.d(d)}}}function _A(e,t){var n,r,o;return r=new MB({props:{getItems:t[7],path:t[3],index:t[20],onSelect:t[9]}}),{key:e,first:null,c:function(){n=_n(),Pt(r.$$.fragment),this.first=n},m:function(i,a){dt(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){t=i;var s={};8&a&&(s.path=t[3]),8&a&&(s.index=t[20]),r.$set(s)},i:function(i){o||(L(r.$$.fragment,i),o=!0)},o:function(i){U(r.$$.fragment,i),o=!1},d:function(i){i&&lt(n),At(r,i)}}}function SA(e){var t,n;return t=new MB({props:{getItems:e[7],path:e[3],index:e[3].length,onSelect:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.path=r[3]),8&o&&(i.index=r[3].length),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function bmt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p=xr(e[0])||e[5]?" ":"Navigation bar",v=[ymt,gmt],m=[];function g(y,b){return y[5]?1:0}return n=g(e),r=m[n]=v[n](e),u=new hn({props:{data:e[5]?g6:v6}}),{c:function(){t=et("div"),r.c(),o=kt(),i=et("button"),a=et("span"),s=Gt(p),c=kt(),Pt(u.$$.fragment),E(a,"class","jse-navigation-bar-space svelte-15r3ahw"),E(i,"type","button"),E(i,"class","jse-navigation-bar-edit svelte-15r3ahw"),E(i,"title",l=e[5]?"Cancel editing the selected path":"Edit the selected path"),Dt(i,"flex",!e[5]),Dt(i,"editing",e[5]),E(t,"class","jse-navigation-bar svelte-15r3ahw")},m:function(y,b){dt(y,t,b),m[n].m(t,null),V(t,o),V(t,i),V(i,a),V(a,s),V(i,c),Mt(u,i,null),e[15](t),f=!0,d||(h=Lt(i,"click",e[10]),d=!0)},p:function(y,b){var w=$e(b,1)[0],x=n;(n=g(y))===x?m[n].p(y,w):(Bt(),U(m[x],1,1,function(){m[x]=null}),Ft(),(r=m[n])?r.p(y,w):(r=m[n]=v[n](y)).c(),L(r,1),r.m(t,o)),(!f||33&w)&&p!==(p=xr(y[0])||y[5]?" ":"Navigation bar")&&we(s,p);var k={};32&w&&(k.data=y[5]?g6:v6),u.$set(k),(!f||32&w&&l!==(l=y[5]?"Cancel editing the selected path":"Edit the selected path"))&&E(i,"title",l),(!f||32&w)&&Dt(i,"flex",!y[5]),(!f||32&w)&&Dt(i,"editing",y[5])},i:function(y){f||(L(r),L(u.$$.fragment,y),f=!0)},o:function(y){U(r),U(u.$$.fragment,y),f=!1},d:function(y){y&&lt(t),m[n].d(),At(u),e[15](null),d=!1,h()}}}function wmt(e,t,n){var r,o,i,a=ho("jsoneditor:NavigationBar"),s=t.json,c=t.selection,u=t.onSelect,l=t.onError,f=t.pathParser,d=!1;function h(v){a("select path",JSON.stringify(v)),u(Mo(v,v))}function p(){n(5,d=!1)}return e.$$set=function(v){"json"in v&&n(0,s=v.json),"selection"in v&&n(13,c=v.selection),"onSelect"in v&&n(14,u=v.onSelect),"onError"in v&&n(1,l=v.onError),"pathParser"in v&&n(2,f=v.pathParser)},e.$$.update=function(){8192&e.$$.dirty&&n(3,r=c?ge(c):[]),9&e.$$.dirty&&n(6,o=xr(fe(s,r))),8&e.$$.dirty&&setTimeout(function(){if(i&&i.scrollTo){var v=i.scrollWidth-i.clientWidth;v>0&&(a("scrollTo ",v),i.scrollTo({left:v,behavior:"smooth"}))}})},[s,l,f,r,i,d,o,function(v){a("get items for path",v);var m=fe(s,v);if(Array.isArray(m))return pL(0,m.length).map(String);if(pr(m)){var g=Object.keys(m).slice(0);return g.sort(Fw),g}return[]},function(v){return Li(s,v)},h,function(){n(5,d=!d)},p,function(v){p(),h(v)},c,u,function(v){rn[v?"unshift":"push"](function(){n(4,i=v)})}]}var xmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,wmt,bmt,qe,{json:0,selection:13,onSelect:14,onError:1,pathParser:2},mmt),o}return ot(n)}();function kmt(e){ze(e,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function $A(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K=(e[3]!==-1?"".concat(e[3]+1,"/"):"")+"",R=!e[4]&&CA(e),q=[_mt,jmt],F=[];function O(_,M){return _[2]?0:1}s=O(e),c=F[s]=q[s](e),y=new hn({props:{data:Sdt}}),x=new hn({props:{data:ydt}}),S=new hn({props:{data:Of}});var A=e[0]&&!e[4]&&EA(e);return{c:function(){t=et("div"),n=et("form"),R&&R.c(),r=kt(),o=et("div"),i=et("div"),a=et("div"),c.c(),u=kt(),l=et("label"),f=et("input"),d=kt(),h=et("div"),p=Gt(K),v=Gt(e[10]),m=kt(),g=et("button"),Pt(y.$$.fragment),b=kt(),w=et("button"),Pt(x.$$.fragment),k=kt(),j=et("button"),Pt(S.$$.fragment),N=kt(),A&&A.c(),E(a,"class","jse-search-icon svelte-3lbrbf"),E(f,"class","jse-search-input svelte-3lbrbf"),E(f,"title","Enter text to search"),E(f,"type","text"),E(f,"placeholder","Find"),E(l,"class","jse-search-input-label svelte-3lbrbf"),E(l,"about","jse-search input"),E(h,"class","jse-search-count svelte-3lbrbf"),Dt(h,"jse-visible",e[8]!==""),E(g,"type","button"),E(g,"class","jse-search-next svelte-3lbrbf"),E(g,"title","Go to next search result (Enter)"),E(w,"type","button"),E(w,"class","jse-search-previous svelte-3lbrbf"),E(w,"title","Go to previous search result (Shift+Enter)"),E(j,"type","button"),E(j,"class","jse-search-clear svelte-3lbrbf"),E(j,"title","Close search box (Esc)"),E(i,"class","jse-search-section svelte-3lbrbf"),E(o,"class","jse-search-contents svelte-3lbrbf"),E(n,"class","jse-search-form svelte-3lbrbf"),E(t,"class","jse-search-box svelte-3lbrbf")},m:function(_,M){dt(_,t,M),V(t,n),R&&R.m(n,null),V(n,r),V(n,o),V(o,i),V(i,a),F[s].m(a,null),V(i,u),V(i,l),V(l,f),us(f,e[8]),V(i,d),V(i,h),V(h,p),V(h,v),V(i,m),V(i,g),Mt(y,g,null),V(i,b),V(i,w),Mt(x,w,null),V(i,k),V(i,j),Mt(S,j,null),V(o,N),A&&A.m(o,null),C=!0,$||(B=[Lt(f,"input",e[21]),lo($mt.call(null,f)),Lt(g,"click",e[22]),Lt(w,"click",e[23]),Lt(j,"click",e[24]),Lt(n,"submit",e[12]),Lt(n,"keydown",e[13])],$=!0)},p:function(_,M){_[4]?R&&(Bt(),U(R,1,1,function(){R=null}),Ft()):R?(R.p(_,M),16&M&&L(R,1)):((R=CA(_)).c(),L(R,1),R.m(n,r));var P=s;(s=O(_))!==P&&(Bt(),U(F[P],1,1,function(){F[P]=null}),Ft(),(c=F[s])||(c=F[s]=q[s](_)).c(),L(c,1),c.m(a,null)),256&M&&f.value!==_[8]&&us(f,_[8]),(!C||8&M)&&K!==(K=(_[3]!==-1?"".concat(_[3]+1,"/"):"")+"")&&we(p,K),(!C||1024&M)&&we(v,_[10]),(!C||256&M)&&Dt(h,"jse-visible",_[8]!==""),_[0]&&!_[4]?A?A.p(_,M):((A=EA(_)).c(),A.m(o,null)):A&&(A.d(1),A=null)},i:function(_){C||(L(R),L(c),L(y.$$.fragment,_),L(x.$$.fragment,_),L(S.$$.fragment,_),C=!0)},o:function(_){U(R),U(c),U(y.$$.fragment,_),U(x.$$.fragment,_),U(S.$$.fragment,_),C=!1},d:function(_){_&&lt(t),R&&R.d(),F[s].d(),At(y),At(x),At(S),A&&A.d(),$=!1,Fn(B)}}}function CA(e){var t,n,r,o,i;return n=new hn({props:{data:e[0]?Ri:kc}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-replace-toggle svelte-3lbrbf"),E(t,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(a,s){dt(a,t,s),Mt(n,t,null),r=!0,o||(i=Lt(t,"click",e[11]),o=!0)},p:function(a,s){var c={};1&s&&(c.data=a[0]?Ri:kc),n.$set(c)},i:function(a){r||(L(n.$$.fragment,a),r=!0)},o:function(a){U(n.$$.fragment,a),r=!1},d:function(a){a&&lt(t),At(n),o=!1,i()}}}function jmt(e){var t,n;return t=new hn({props:{data:pj}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function _mt(e){var t,n;return t=new hn({props:{data:vdt,spin:!0}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function EA(e){var t,n,r,o,i,a,s,c;return{c:function(){t=et("div"),n=et("input"),r=kt(),(o=et("button")).textContent="Replace",i=kt(),(a=et("button")).textContent="All",E(n,"class","jse-replace-input svelte-3lbrbf"),E(n,"title","Enter replacement text"),E(n,"type","text"),E(n,"placeholder","Replace"),E(o,"type","button"),E(o,"title","Replace current occurrence (Ctrl+Enter)"),E(o,"class","svelte-3lbrbf"),E(a,"type","button"),E(a,"title","Replace all occurrences"),E(a,"class","svelte-3lbrbf"),E(t,"class","jse-replace-section svelte-3lbrbf")},m:function(u,l){dt(u,t,l),V(t,n),us(n,e[9]),V(t,r),V(t,o),V(t,i),V(t,a),s||(c=[Lt(n,"input",e[25]),Lt(o,"click",e[14]),Lt(a,"click",e[15])],s=!0)},p:function(u,l){512&l&&n.value!==u[9]&&us(n,u[9])},d:function(u){u&&lt(t),s=!1,Fn(c)}}}function Smt(e){var t,n,r=e[1]&&$A(e);return{c:function(){r&&r.c(),t=_n()},m:function(o,i){r&&r.m(o,i),dt(o,t,i),n=!0},p:function(o,i){var a=$e(i,1)[0];o[1]?r?(r.p(o,a),2&a&&L(r,1)):((r=$A(o)).c(),L(r,1),r.m(t.parentNode,t)):r&&(Bt(),U(r,1,1,function(){r=null}),Ft())},i:function(o){n||(L(r),n=!0)},o:function(o){U(r),n=!1},d:function(o){o&&lt(t),r&&r.d(o)}}}function $mt(e){e.select()}function Cmt(e,t,n){var r,o,i=t.show,a=i!==void 0&&i,s=t.searching,c=t.resultCount,u=c===void 0?0:c,l=t.activeIndex,f=l===void 0?0:l,d=t.showReplace,h=d!==void 0&&d,p=t.readOnly,v=p!==void 0&&p,m=t.onChange,g=m===void 0?Yn:m,y=t.onPrevious,b=y===void 0?Yn:y,w=t.onNext,x=w===void 0?Yn:w,k=t.onReplace,j=k===void 0?Yn:k,S=t.onReplaceAll,N=S===void 0?Yn:S,C=t.onClose,$=C===void 0?Yn:C,B="",K="",R="";function q(){n(0,h=!h&&!v)}function F(){v||j(B,R)}return e.$$set=function(O){"show"in O&&n(1,a=O.show),"searching"in O&&n(2,s=O.searching),"resultCount"in O&&n(16,u=O.resultCount),"activeIndex"in O&&n(3,f=O.activeIndex),"showReplace"in O&&n(0,h=O.showReplace),"readOnly"in O&&n(4,v=O.readOnly),"onChange"in O&&n(17,g=O.onChange),"onPrevious"in O&&n(5,b=O.onPrevious),"onNext"in O&&n(6,x=O.onNext),"onReplace"in O&&n(18,j=O.onReplace),"onReplaceAll"in O&&n(19,N=O.onReplaceAll),"onClose"in O&&n(7,$=O.onClose)},e.$$.update=function(){65536&e.$$.dirty&&n(10,r=u>=JN?"".concat(999,"+"):String(u)),131072&e.$$.dirty&&n(20,o=_p(g,300)),1048832&e.$$.dirty&&o(B),2&e.$$.dirty&&a&&B!==""&&g(B)},[h,a,s,f,v,b,x,$,B,R,r,q,function(O){O.preventDefault(),B!==K?(K=B,o.cancel(),g(B)):x()},function(O){O.stopPropagation();var A=au(O);A==="Enter"&&(O.preventDefault(),x()),A==="Shift+Enter"&&(O.preventDefault(),b()),A==="Ctrl+Enter"&&(O.preventDefault(),h?F():x()),A==="Ctrl+H"&&(O.preventDefault(),q()),A==="Escape"&&(O.preventDefault(),$())},F,function(){v||N(B,R)},u,g,j,N,o,function(){B=this.value,n(8,B)},function(){return x()},function(){return b()},function(){return $()},function(){R=this.value,n(9,R)}]}var Emt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Cmt,Smt,qe,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},kmt),o}return ot(n)}(),OA=Number.isNaN||function(e){return typeof e=="number"&&e!=e};function Omt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||OA(r)&&OA(o)))return!1;var r,o;return!0}function Np(e,t){t===void 0&&(t=Omt);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}var Wh=Symbol("path");function Mmt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0,r={};Array.isArray(e)&&function(i,a,s){if(i.length<a)i.forEach(s);else for(var c=a>1?(i.length-1)/(a-1):i.length,u=0;u<a;u++){var l=Math.floor(u*c);s(i[l],l,i)}}(e,n,function(i){pr(i)?AB(i,r,t):r[Wh]=!0});var o=[];return Wh in r&&o.push([]),PB(r,[],o,t),o}function AB(e,t,n){for(var r in e){var o=e[r],i=t[r]||(t[r]={});pr(o)&&n?AB(o,i,n):i[Wh]===void 0&&(i[Wh]=!0)}}function PB(e,t,n,r){for(var o in e){var i=t.concat(o),a=e[o];a&&a[Wh]===!0&&n.push(i),kr(a)&&r&&PB(a,i,n,r)}}function Amt(e,t,n,r,o){for(var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:80,a=Un(n)?n.length:0,s=function(g,y){var b=Object.values(g);if(cn(b))return y;var w=function(k,j){return k+j},x=b.reduce(w);return x/b.length}(r,o),c=e-i,u=t+2*i,l=function(g){return r[g]||o},f=0,d=0;d<c&&f<a;)d+=l(f),f++;f>0&&(d-=l(--f));for(var h=f,p=0;p<u&&h<a;)p+=l(h),h++;for(var v=0,m=h;m<a;m++)v+=l(m);return{startIndex:f,endIndex:h,startHeight:d,endHeight:v,averageItemHeight:s,visibleHeight:p,visibleItems:Un(n)?n.slice(f,h):[]}}function _y(e,t,n,r){for(var o=Ai(e,t).rowIndex,i=0,a=0;a<o;a++)i+=n[a]||r;return i}function Ai(e,t){var n,r=ON(n=e)||PN(n)||$0(n)||EN(),o=r[0],i=r.slice(1),a=parseInt(o,10);return{rowIndex:isNaN(a)?-1:a,columnIndex:t.findIndex(function(s){return Uc(i,s)})}}function Tu(e,t){var n=e.rowIndex,r=e.columnIndex;return[String(n)].concat(Se(t[r]))}function Pmt(e,t){var n=$e(lL(e,function(a){return f2(a.path[0])}),2),r=n[0],o=n[1],i=Qz(Cp(r,Tmt),function(a){var s={row:[],columns:{}};return a.forEach(function(c){var u=function(l,f){var d=Ai(l.path,f);return d.columnIndex!==-1?d.columnIndex:-1}(c,t);u!==-1?(s.columns[u]===void 0&&(s.columns[u]=[]),s.columns[u].push(c)):s.row.push(c)}),s});return{root:o,rows:i}}function Af(e,t){if(t&&t.length!==0)return t.length===1?t[0]:{path:e,message:"Multiple validation issues: "+t.map(function(n){return ai(n.path)+" "+n.message}).join(", "),severity:Hs.warning}}function Tmt(e){return parseInt(e.path[0],10)}function Rmt(e,t,n){return t.some(function(r){return function(o,i,a){if(!o)return!1;if(i.op==="replace"){var s=Ai(Ca(i.path),a),c=s.rowIndex,u=s.columnIndex,l=a.findIndex(function(f){return an(f,o.path)});if(c!==-1&&u!==-1&&u!==l)return!1}return!0}(e.sortedColumn,r,n)})?xt(xt({},e),{},{sortedColumn:null}):e}var To=ho("jsoneditor:actions");function TB(e){return qw.apply(this,arguments)}function qw(){return qw=Ae(qt().mark(function e(t){var n,r,o,i,a,s,c,u,l,f;return qt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.readOnly,a=t.parser,s=t.onPatch,!i&&n!==void 0&&r.selection&&od(r.selection)){d.next=3;break}return d.abrupt("return");case 3:if((c=ZL(n,r.selection,o,a))!=null){d.next=6;break}return d.abrupt("return");case 6:return To("cut",{selection:r.selection,clipboard:c,indentation:o}),d.next=9,jj(c);case 9:u=rB(n,r.selection),l=u.operations,f=u.newSelection,s(l,function(h,p){return{state:xt(xt({},p),{},{selection:f})}});case 11:case"end":return d.stop()}},e)})),qw.apply(this,arguments)}function RB(e){return Hw.apply(this,arguments)}function Hw(){return Hw=Ae(qt().mark(function e(t){var n,r,o,i,a;return qt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.parser,(a=ZL(n,r.selection,o,i))!=null){s.next=4;break}return s.abrupt("return");case 4:return To("copy",{clipboard:a,indentation:o}),s.next=7,jj(a);case 7:case"end":return s.stop()}},e)})),Hw.apply(this,arguments)}function IB(e){var t=e.clipboardText,n=e.json,r=e.selection,o=e.readOnly,i=e.parser,a=e.onPatch,s=e.onChangeText,c=e.openRepairModal;if(!o)try{u(t)}catch{c(t,function(f){To("repaired pasted text: ",f),u(f)})}function u(l){if(n!==void 0){var f=r||Ue([],!1),d=nB(n,f,l,i);To("paste",{pastedText:l,operations:d,selectionNonNull:f}),a(d,function(h,p){var v=p;return d.filter(function(m){return(QN(m)||i2(m))&&xr(m.value)}).forEach(function(m){var g=Ya(n,m.path);v=yc(h,v,g)}),{state:v}})}else To("paste text",{pastedText:l}),s(t,function(h,p){if(h)return{state:yc(h,p,[])}})}}function NB(e){var t=e.json,n=e.text,r=e.documentState,o=e.keepSelection,i=e.readOnly,a=e.onChange,s=e.onPatch;if(!i&&r.selection){var c=t!==void 0&&(Br(r.selection)||dn(r.selection))?Mo(r.selection.path,r.selection.path):r.selection;if(cn(ge(r.selection)))To("remove root",{selection:r.selection}),a&&a({text:"",json:void 0},t!==void 0?{text:void 0,json:t}:{text:n||"",json:t},{contentErrors:null,patchResult:null});else if(t!==void 0){var u=rB(t,c),l=u.operations,f=u.newSelection;To("remove",{operations:l,selection:r.selection,newSelection:f}),s(l,function(d,h){return{state:xt(xt({},h),{},{selection:o?r.selection:f})}})}}}function Imt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&od(n.selection)){var a=Ai(ge(n.selection),r),s=a.rowIndex,c=a.columnIndex;To("duplicate row",{rowIndex:s});var u=[String(s)];i(eB(t,[u]),function(l,f){var d=Ue(Tu({rowIndex:s<t.length?s+1:s,columnIndex:c},r),!1);return{state:xt(xt({},f),{},{selection:d})}})}}function Nmt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&od(n.selection)){var a=Ai(ge(n.selection),r).rowIndex;To("insert before row",{rowIndex:a}),i(Ll(t,[String(a)],[{key:"",value:kr(t[0])?{}:""}]))}}function Dmt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&od(n.selection)){var a=Ai(ge(n.selection),r),s=a.rowIndex,c=a.columnIndex;To("insert after row",{rowIndex:s});var u=s+1,l=[String(u)],f=[{key:"",value:kr(t[0])?{}:""}];i(u<t.length?Ll(t,l,f):Pw(t,[],f),function(d,h){var p=Ue(Tu({rowIndex:u,columnIndex:c},r),!1);return{state:xt(xt({},h),{},{selection:p})}})}}function zmt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&od(n.selection)){var a=Ai(ge(n.selection),r),s=a.rowIndex,c=a.columnIndex;To("remove row",{rowIndex:s}),i(Sg([[String(s)]]),function(u,l){var f=s<u.length?s:s>0?s-1:void 0,d=f!==void 0?Ue(Tu({rowIndex:f,columnIndex:c},r),!1):null;return To("remove row new selection",{rowIndex:s,newRowIndex:f,newSelection:d}),{state:xt(xt({},l),{},{selection:d})}})}}function Og(e){var t=e.insertType,n=e.selectInside,r=e.refJsonEditor,o=e.json,i=e.selection,a=e.readOnly,s=e.parser,c=e.onPatch,u=e.onReplaceJson;if(!a){var l=function(v,m,g){if(g==="object")return{};if(g==="array")return[];if(g==="structure"&&v!==void 0){var y=fe(v,m?YL(m):[]);if(Array.isArray(y)&&!cn(y)){var b=ka(y);return xr(b)?vz(b,function(w){return Array.isArray(w)?[]:pr(w)?void 0:""}):""}}return""}(o,i,t);if(o!==void 0){var f=s.stringify(l),d=nB(o,i,f,s);To("onInsert",{insertType:t,operations:d,newValue:l,data:f});var h=Ie(d.filter(function(v){return v.op==="add"||v.op==="replace"}));c(d,function(v,m){if(h){var g=Ya(v,h.path);if(xr(l))return{state:xt(xt({},Mi(v,m,g,ch)),{},{selection:n?Ks(g):m.selection})};if(l===""){var y=cn(g)?null:fe(v,on(g));return{state:Ow(v,xt(xt({},m),{},{selection:pr(y)?Hi(g,!0):Ue(g,!0)}),g)}}}}),To("after patch"),h&&l===""&&Mg(function(){return wg(r,"",!0,Ag)})}else{To("onInsert",{insertType:t,newValue:l});var p=[];u(l,function(v,m){return{state:xt(xt({},yc(v,m,p)),{},{selection:xr(l)?Ks(p):Ue(p,!0)})}})}}}function DB(e){return Vw.apply(this,arguments)}function Vw(){return Vw=Ae(qt().mark(function e(t){var n,r,o,i,a,s,c,u,l,f,d,h;return qt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(n=t.char,r=t.selectInside,o=t.refJsonEditor,i=t.json,a=t.selection,s=t.readOnly,c=t.parser,u=t.onPatch,l=t.onReplaceJson,f=t.onSelect,!s){p.next=3;break}return p.abrupt("return");case 3:if(!Br(a)){p.next=8;break}return d=!a.edit,f(xt(xt({},a),{},{edit:!0})),Mg(function(){return wg(o,n,d,Ag)}),p.abrupt("return");case 8:if(n!=="{"){p.next=12;break}Og({insertType:"object",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l}),p.next=23;break;case 12:if(n!=="["){p.next=16;break}Og({insertType:"array",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l}),p.next=23;break;case 16:if(!dn(a)||i===void 0){p.next=20;break}xr(fe(i,a.path))||(h=!a.edit,f(xt(xt({},a),{},{edit:!0})),Mg(function(){return wg(o,n,h,Ag)})),p.next=23;break;case 20:return To("onInsertValueWithCharacter",{char:n}),p.next=23,Lmt({char:n,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l});case 23:case"end":return p.stop()}},e)})),Vw.apply(this,arguments)}function Lmt(e){return Uw.apply(this,arguments)}function Uw(){return Uw=Ae(qt().mark(function e(t){var n,r,o,i,a,s,c,u,l;return qt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(n=t.char,r=t.refJsonEditor,o=t.json,i=t.selection,a=t.readOnly,s=t.parser,c=t.onPatch,u=t.onReplaceJson,!a){f.next=3;break}return f.abrupt("return");case 3:Og({insertType:"value",selectInside:!1,refJsonEditor:r,json:o,selection:i,readOnly:a,parser:s,onPatch:c,onReplaceJson:u}),l=!Gi(i),Mg(function(){return wg(r,n,l,Ag)});case 6:case"end":return f.stop()}},e)})),Uw.apply(this,arguments)}function Mg(e){setTimeout(function(){return setTimeout(e)})}function Ag(e){e==null||e.refresh()}function Bmt(e){ze(e,"svelte-1ch6ow4",".jse-json-preview.svelte-1ch6ow4{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;padding:2px;border-left:var(--jse-main-border);border-right:var(--jse-main-border);border-bottom:var(--jse-main-border)}")}function Fmt(e){var t,n;return{c:function(){t=et("div"),n=Gt(e[0]),E(t,"class","jse-json-preview svelte-1ch6ow4")},m:function(r,o){dt(r,t,o),V(t,n)},p:function(r,o){1&$e(o,1)[0]&&we(n,r[0])},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function qmt(e,t,n){var r,o,i=t.text,a=t.json,s=t.indentation,c=t.parser;return e.$$set=function(u){"text"in u&&n(1,i=u.text),"json"in u&&n(2,a=u.json),"indentation"in u&&n(3,s=u.indentation),"parser"in u&&n(4,c=u.parser)},e.$$.update=function(){6&e.$$.dirty&&n(5,r=a!==void 0?{json:a}:{text:i||""}),56&e.$$.dirty&&n(0,o=Us(Cw(r,s,c),iw))},[o,i,a,s,c,r]}var zB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,qmt,Fmt,to,{text:1,json:2,indentation:3,parser:4},Bmt),o}return ot(n)}(),Hmt=Xk.window;function Vmt(e){ze(e,"svelte-1n5yill",".jse-tree-mode.svelte-1n5yill.svelte-1n5yill{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color);line-height:var(--jse-line-height)}.jse-tree-mode.svelte-1n5yill .jse-hidden-input-label .jse-hidden-input.svelte-1n5yill{position:fixed;top:-10px;left:-10px;width:1px;height:1px;padding:0;border:0;outline:none}.jse-tree-mode.svelte-1n5yill .jse-search-box-container.svelte-1n5yill{position:relative;height:0;top:var(--jse-padding);margin-right:calc(var(--jse-padding) + 20px);margin-left:var(--jse-padding);text-align:right;z-index:3}.jse-tree-mode.no-main-menu.svelte-1n5yill.svelte-1n5yill{border-top:var(--jse-main-border)}.jse-tree-mode.svelte-1n5yill .jse-contents.svelte-1n5yill{border-left:var(--jse-main-border);border-right:var(--jse-main-border);flex:1;overflow:auto;position:relative;padding:2px;display:flex;flex-direction:column}.jse-tree-mode.svelte-1n5yill .jse-contents.svelte-1n5yill:last-child{border-bottom:var(--jse-main-border)}.jse-tree-mode.svelte-1n5yill .jse-contents .jse-loading-space.svelte-1n5yill{flex:1}.jse-tree-mode.svelte-1n5yill .jse-contents .jse-loading.svelte-1n5yill{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function MA(e){var t,n,r;function o(a){e[78](a)}var i={json:e[11],selection:e[17].selection,readOnly:e[0],historyState:e[23],onExpandAll:e[41],onCollapseAll:e[42],onUndo:e[37],onRedo:e[38],onSort:e[39],onTransform:e[40],onContextMenu:e[46],onCopy:e[34],onRenderMenu:e[7]};return e[20]!==void 0&&(i.showSearch=e[20]),t=new Zvt({props:i}),rn.push(function(){return da(t,"showSearch",o)}),{c:function(){Pt(t.$$.fragment)},m:function(a,s){Mt(t,a,s),r=!0},p:function(a,s){var c={};2048&s[0]&&(c.json=a[11]),131072&s[0]&&(c.selection=a[17].selection),1&s[0]&&(c.readOnly=a[0]),8388608&s[0]&&(c.historyState=a[23]),128&s[0]&&(c.onRenderMenu=a[7]),!n&&1048576&s[0]&&(n=!0,c.showSearch=a[20],fa(function(){return n=!1})),t.$set(c)},i:function(a){r||(L(t.$$.fragment,a),r=!0)},o:function(a){U(t.$$.fragment,a),r=!1},d:function(a){At(t,a)}}}function AA(e){var t,n;return t=new xmt({props:{json:e[11],selection:e[17].selection,onSelect:e[50],onError:e[6],pathParser:e[4]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2048&o[0]&&(i.json=r[11]),131072&o[0]&&(i.selection=r[17].selection),64&o[0]&&(i.onError=r[6]),16&o[0]&&(i.pathParser=r[4]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Umt(e){var t;return{c:function(){(t=et("div")).innerHTML='<div class="jse-loading-space svelte-1n5yill"></div> <div class="jse-loading svelte-1n5yill">loading...</div>',E(t,"class","jse-contents svelte-1n5yill")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function Wmt(e){var t,n,r,o,i,a,s,c,u,l=[Jmt,Kmt],f=[];function d(h,p){return h[11]===void 0?0:1}return o=d(e),i=f[o]=l[o](e),{c:function(){t=et("label"),n=et("input"),r=kt(),i.c(),a=_n(),E(n,"type","text"),n.readOnly=!0,E(n,"tabindex","-1"),E(n,"class","jse-hidden-input svelte-1n5yill"),E(t,"class","jse-hidden-input-label")},m:function(h,p){dt(h,t,p),V(t,n),e[79](n),dt(h,r,p),f[o].m(h,p),dt(h,a,p),s=!0,c||(u=Lt(n,"paste",e[35]),c=!0)},p:function(h,p){var v=o;(o=d(h))===v?f[o].p(h,p):(Bt(),U(f[v],1,1,function(){f[v]=null}),Ft(),(i=f[o])?i.p(h,p):(i=f[o]=l[o](h)).c(),L(i,1),i.m(a.parentNode,a))},i:function(h){s||(L(i),s=!0)},o:function(h){U(i),s=!1},d:function(h){h&&(lt(t),lt(r),lt(a)),e[79](null),f[o].d(h),c=!1,u()}}}function Kmt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h;i=new Emt({props:{show:e[20],resultCount:((t=e[18])===null||t===void 0||(t=t.items)===null||t===void 0?void 0:t.length)||0,activeIndex:((n=e[18])===null||n===void 0?void 0:n.activeIndex)||0,showReplace:e[21],searching:e[22],readOnly:e[0],onChange:e[27],onNext:e[28],onPrevious:e[29],onReplace:e[30],onReplaceAll:e[31],onClose:e[32]}}),c=new Kvt({props:{value:e[11],path:[],expandedMap:e[17].expandedMap,enforceStringMap:e[17].enforceStringMap,visibleSectionsMap:e[17].visibleSectionsMap,validationErrorsMap:e[25],searchResultItemsMap:(r=e[18])===null||r===void 0?void 0:r.itemsMap,selection:e[17].selection,context:e[13],onDragSelectionStart:Yn}});var p=e[19]&&PA(e),v=e[24]&&TA(e);return d=new gj({props:{validationErrors:e[12],selectError:e[33]}}),{c:function(){o=et("div"),Pt(i.$$.fragment),a=kt(),s=et("div"),Pt(c.$$.fragment),u=kt(),p&&p.c(),l=kt(),v&&v.c(),f=kt(),Pt(d.$$.fragment),E(o,"class","jse-search-box-container svelte-1n5yill"),E(s,"class","jse-contents svelte-1n5yill"),E(s,"data-jsoneditor-scrollable-contents",!0)},m:function(m,g){dt(m,o,g),Mt(i,o,null),dt(m,a,g),dt(m,s,g),Mt(c,s,null),e[83](s),dt(m,u,g),p&&p.m(m,g),dt(m,l,g),v&&v.m(m,g),dt(m,f,g),Mt(d,m,g),h=!0},p:function(m,g){var y,b,w,x={};1048576&g[0]&&(x.show=m[20]),262144&g[0]&&(x.resultCount=((y=m[18])===null||y===void 0||(y=y.items)===null||y===void 0?void 0:y.length)||0),262144&g[0]&&(x.activeIndex=((b=m[18])===null||b===void 0?void 0:b.activeIndex)||0),2097152&g[0]&&(x.showReplace=m[21]),4194304&g[0]&&(x.searching=m[22]),1&g[0]&&(x.readOnly=m[0]),i.$set(x);var k={};2048&g[0]&&(k.value=m[11]),131072&g[0]&&(k.expandedMap=m[17].expandedMap),131072&g[0]&&(k.enforceStringMap=m[17].enforceStringMap),131072&g[0]&&(k.visibleSectionsMap=m[17].visibleSectionsMap),33554432&g[0]&&(k.validationErrorsMap=m[25]),262144&g[0]&&(k.searchResultItemsMap=(w=m[18])===null||w===void 0?void 0:w.itemsMap),131072&g[0]&&(k.selection=m[17].selection),8192&g[0]&&(k.context=m[13]),c.$set(k),m[19]?p?(p.p(m,g),524288&g[0]&&L(p,1)):((p=PA(m)).c(),L(p,1),p.m(l.parentNode,l)):p&&(Bt(),U(p,1,1,function(){p=null}),Ft()),m[24]?v?(v.p(m,g),16777216&g[0]&&L(v,1)):((v=TA(m)).c(),L(v,1),v.m(f.parentNode,f)):v&&(Bt(),U(v,1,1,function(){v=null}),Ft());var j={};4096&g[0]&&(j.validationErrors=m[12]),d.$set(j)},i:function(m){h||(L(i.$$.fragment,m),L(c.$$.fragment,m),L(p),L(v),L(d.$$.fragment,m),h=!0)},o:function(m){U(i.$$.fragment,m),U(c.$$.fragment,m),U(p),U(v),U(d.$$.fragment,m),h=!1},d:function(m){m&&(lt(o),lt(a),lt(s),lt(u),lt(l),lt(f)),At(i),At(c),e[83](null),p&&p.d(m),v&&v.d(m),At(d,m)}}}function Jmt(e){var t,n,r,o,i=[Qmt,Gmt],a=[];function s(c,u){return c[16]===""||c[16]===void 0?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=_n()},m:function(c,u){a[t].m(c,u),dt(c,r,u),o=!0},p:function(c,u){var l=t;(t=s(c))===l?a[t].p(c,u):(Bt(),U(a[l],1,1,function(){a[l]=null}),Ft(),(n=a[t])?n.p(c,u):(n=a[t]=i[t](c)).c(),L(n,1),n.m(r.parentNode,r))},i:function(c){o||(L(n),o=!0)},o:function(c){U(n),o=!1},d:function(c){c&&lt(r),a[t].d(c)}}}function PA(e){var t,n;return t=new Aa({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text"),actions:[{icon:Q0,text:"Paste as JSON instead",title:"Replace the value with the pasted JSON",onMouseDown:e[47]},{text:"Leave as is",title:"Keep the JSON embedded in the value",onClick:e[48]}],onClose:e[84]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};524288&o[0]&&(i.message="You pasted a JSON ".concat(Array.isArray(r[19].contents)?"array":"object"," as text")),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function TA(e){var t,n;return t=new Aa({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:Hh,text:"Ok",onClick:e[8]},{icon:Wc,text:"Repair manually instead",onClick:e[49]}],onClose:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=r[0]?[]:[{icon:Hh,text:"Ok",onClick:r[8]},{icon:Wc,text:"Repair manually instead",onClick:r[49]}]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Gmt(e){var t,n,r,o;return t=new Aa({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:Wc,text:"Repair manually",onClick:e[49]}]}}),r=new zB({props:{text:e[16],json:e[11],indentation:e[5],parser:e[3]}}),{c:function(){Pt(t.$$.fragment),n=kt(),Pt(r.$$.fragment)},m:function(i,a){Mt(t,i,a),dt(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){var s={};1&a[0]&&(s.actions=i[0]?[]:[{icon:Wc,text:"Repair manually",onClick:i[49]}]),t.$set(s);var c={};65536&a[0]&&(c.text=i[16]),2048&a[0]&&(c.json=i[11]),32&a[0]&&(c.indentation=i[5]),8&a[0]&&(c.parser=i[3]),r.$set(c)},i:function(i){o||(L(t.$$.fragment,i),L(r.$$.fragment,i),o=!0)},o:function(i){U(t.$$.fragment,i),U(r.$$.fragment,i),o=!1},d:function(i){i&&lt(n),At(t,i),At(r,i)}}}function Qmt(e){var t,n;return t=new rmt({props:{readOnly:e[0],onCreateObject:e[80],onCreateArray:e[81],onClick:e[82]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.readOnly=r[0]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Ymt(e){var t,n,r,o,i,a,s,c,u=e[1]&&MA(e),l=e[2]&&AA(e),f=[Wmt,Umt],d=[];return o=function(h,p){return h[26]?1:0}(e),i=d[o]=f[o](e),{c:function(){t=et("div"),u&&u.c(),n=kt(),l&&l.c(),r=kt(),i.c(),E(t,"role","tree"),E(t,"tabindex","-1"),E(t,"class","jse-tree-mode svelte-1n5yill"),Dt(t,"no-main-menu",!e[1])},m:function(h,p){dt(h,t,p),u&&u.m(t,null),V(t,n),l&&l.m(t,null),V(t,r),d[o].m(t,null),e[85](t),a=!0,s||(c=[Lt(Hmt,"mousedown",e[51]),Lt(t,"keydown",e[43]),Lt(t,"mousedown",e[44]),Lt(t,"contextmenu",e[45])],s=!0)},p:function(h,p){h[1]?u?(u.p(h,p),2&p[0]&&L(u,1)):((u=MA(h)).c(),L(u,1),u.m(t,n)):u&&(Bt(),U(u,1,1,function(){u=null}),Ft()),h[2]?l?(l.p(h,p),4&p[0]&&L(l,1)):((l=AA(h)).c(),L(l,1),l.m(t,r)):l&&(Bt(),U(l,1,1,function(){l=null}),Ft()),i.p(h,p),(!a||2&p[0])&&Dt(t,"no-main-menu",!h[1])},i:function(h){a||(L(u),L(l),L(i),a=!0)},o:function(h){U(u),U(l),U(i),a=!1},d:function(h){h&&lt(t),u&&u.d(),l&&l.d(),d[o].d(),e[85](null),s=!1,Fn(c)}}}function Xmt(e,t,n){var r,o=ho("jsoneditor:TreeMode"),i=typeof window>"u";o("isSSR:",i);var a,s,c,u,l,f=fo("simple-modal").open,d=el(),h=el(),p=fo("absolute-popup"),v=p.openAbsolutePopup,m=p.closeAbsolutePopup,g=!1,y=xB(),b=t.readOnly,w=t.externalContent,x=t.externalSelection,k=t.mainMenuBar,j=t.navigationBar,S=t.escapeControlCharacters,N=t.escapeUnicodeCharacters,C=t.parser,$=t.parseMemoizeOne,B=t.validator,K=t.validationParser,R=t.pathParser,q=t.indentation,F=t.onError,O=t.onChange,A=t.onChangeMode,_=t.onSelect,M=t.onRenderValue,P=t.onRenderMenu,D=t.onClassName,T=t.onFocus,H=t.onBlur,I=t.onSortModal,ft=t.onTransformModal,tt=t.onJSONEditorModal,yt=!1;mj({onMount:Ui,onDestroy:yi,getWindow:function(){return rd(c)},hasFocus:function(){return yt&&document.hasFocus()||xg(c)},onFocus:function(){g=!0,T&&T()},onBlur:function(){g=!1,H&&H()}});var bt=void 0;function jt(nt){o("updateSelection",nt);var St=typeof nt=="function"?nt(X.selection)||null:nt;an(St,X.selection)||(n(17,X=xt(xt({},X),{},{selection:St})),_(St))}var gt,Y,J,it=!1,X=jg(),_t=!1,z=!1,W=!1,G="";function pt(nt){return mt.apply(this,arguments)}function mt(){return mt=Ae(qt().mark(function nt(St){return qt().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return o("search text updated",St),n(77,G=St),zt.next=4,br();case 4:return zt.next=6,ee();case 6:case"end":return zt.stop()}},nt)})),mt.apply(this,arguments)}function Ot(){return(Ot=Ae(qt().mark(function nt(){return qt().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return n(18,gt=gt?Vft(gt):void 0),St.next=3,ee();case 3:case"end":return St.stop()}},nt)}))).apply(this,arguments)}function Ct(){return(Ct=Ae(qt().mark(function nt(){return qt().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return n(18,gt=gt?Uft(gt):void 0),St.next=3,ee();case 3:case"end":return St.stop()}},nt)}))).apply(this,arguments)}function Vt(){return(Vt=Ae(qt().mark(function nt(St,zt){var Wt,Ut,te,_e,Ee;return qt().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Ut=(Wt=gt)===null||Wt===void 0?void 0:Wt.activeItem,o("handleReplace",{replacementText:zt,activeItem:Ut}),Ut&&u!==void 0){Oe.next=4;break}return Oe.abrupt("return");case 4:return te=Wft(u,X,zt,Ut,C),_e=te.operations,Ee=te.newSelection,de(_e,function(rr,Tr){return{state:xt(xt({},Tr),{},{selection:Ee})}}),Oe.next=8,br();case 8:return Oe.next=10,ee();case 10:case"end":return Oe.stop()}},nt)}))).apply(this,arguments)}function Qt(){return Qt=Ae(qt().mark(function nt(St,zt){var Wt,Ut,te;return qt().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return o("handleReplaceAll",{text:St,replacementText:zt}),Wt=Kft(u,X,St,zt,C),Ut=Wt.operations,te=Wt.newSelection,de(Ut,function(Ee,Oe){return{state:xt(xt({},Oe),{},{selection:te})}}),_e.next=5,br();case 5:return _e.next=7,ee();case 7:case"end":return _e.stop()}},nt)})),Qt.apply(this,arguments)}function ee(){return Kt.apply(this,arguments)}function Kt(){return(Kt=Ae(qt().mark(function nt(){var St,zt,Wt;return qt().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(zt=(St=gt)===null||St===void 0?void 0:St.activeItem,o("focusActiveSearchResult",gt),!zt||u===void 0){Ut.next=9;break}return Wt=zt.path,n(17,X=xt(xt({},Ow(u,X,Wt)),{},{selection:null})),Ut.next=7,br();case 7:return Ut.next=9,ae(Wt);case 9:case"end":return Ut.stop()}},nt)}))).apply(this,arguments)}var ue=kB({onChange:function(nt){n(23,Me=nt)}}),Me=ue.getState(),tn,le,wn=xL(function(nt,St){if(nt==="")return o("clearing search result"),void(gt!==void 0&&n(18,gt=void 0));n(22,W=!0),setTimeout(function(){o("searching...",nt);var zt=iB(nt,St,JN);n(18,gt=function(Wt,Ut,te){var _e=te!=null&&te.activeItem?f6(te.activeItem):void 0,Ee=Ut.findIndex(function(jr){return an(_e,f6(jr))}),Oe=Ee!==-1?Ee:(te==null?void 0:te.activeIndex)!==void 0&&(te==null?void 0:te.activeIndex)<Ut.length?te==null?void 0:te.activeIndex:Ut.length>0?0:-1,rr=Ut.map(function(jr,po){return xt(xt({},jr),{},{active:po===Oe})}),Tr=rr[Oe];return{items:rr,itemsMap:Cp(rr,function(jr){return oe(jr.path)}),activeItem:Tr,activeIndex:Oe}}(0,zt,gt)),n(22,W=!1)})},300),Ne=!1,mn=[],Ye=Np(jB);function Ke(nt,St,zt,Wt){Fl(function(){var Ut;try{Ut=Ye(nt,St,zt,Wt)}catch(te){Ut=[{path:[],message:"Failed to validate: "+te.message,severity:Hs.warning}]}an(Ut,mn)||(o("validationErrors changed:",Ut),n(12,mn=Ut))},function(Ut){return o("validationErrors updated in ".concat(Ut," ms"))})}function qn(){return o("validate"),bt?{parseError:bt,isRepairable:!1}:(Ke(u,B,C,K),cn(mn)?null:{validationErrors:mn})}function In(){return u}function Zn(){return X}function Sn(nt){nt.json!==void 0&&function(St){if(St!==void 0){var zt=!an(u,St);if(o("update external json",{isChanged:zt,currentlyText:u===void 0}),!!zt){var Wt={json:u,text:l},Ut=X,te=u,_e=l,Ee=Ne;n(11,u=St),En(u),n(16,l=void 0),n(24,Ne=!1),bt=void 0,Nn(u),sr({previousJson:te,previousState:Ut,previousText:_e,previousTextIsRepaired:Ee}),Ve(Wt,null)}}}(nt.json),nt.text!==void 0&&function(St){if(!(St===void 0||w.json!==void 0)){var zt=St!==l;if(o("update external text",{isChanged:zt}),!!zt){var Wt={json:u,text:l},Ut=u,te=X,_e=l,Ee=Ne;try{n(11,u=$(St)),En(u),n(16,l=St),n(24,Ne=!1),bt=void 0}catch(Oe){try{n(11,u=$(Xa(St))),En(u),n(16,l=St),n(24,Ne=!0),bt=void 0,Nn(u)}catch{n(11,u=void 0),n(16,l=w.text),n(24,Ne=!1),bt=l!==void 0&&l!==""?Sf(l,Oe.message||String(Oe)):void 0}}Nn(u),sr({previousJson:Ut,previousState:te,previousText:_e,previousTextIsRepaired:Ee}),Ve(Wt,null)}}}(nt.text)}function En(nt){it||(it=!0,n(17,X=Mi(nt,X,[],function(St){return RL({json:St},GN)?Ja:ch}(nt))))}function Nn(nt){X.selection&&(Li(nt,Fu(X.selection))&&Li(nt,ge(X.selection))||(o("clearing selection: path does not exist anymore",X.selection),n(17,X=xt(xt({},X),{},{selection:xl(nt,X)}))))}function sr(nt){var St=nt.previousJson,zt=nt.previousState,Wt=nt.previousText,Ut=nt.previousTextIsRepaired;St===void 0&&Wt===void 0||(u!==void 0?St!==void 0?ue.add({undo:{patch:[{op:"replace",path:"",value:St}],state:Co(zt),json:void 0,text:Wt,textIsRepaired:Ut},redo:{patch:[{op:"replace",path:"",value:u}],state:Co(X),json:void 0,text:l,textIsRepaired:Ne}}):ue.add({undo:{patch:void 0,json:void 0,text:Wt,state:Co(zt),textIsRepaired:Ut},redo:{patch:void 0,json:u,state:Co(X),text:l,textIsRepaired:Ne}}):St!==void 0&&ue.add({undo:{patch:void 0,json:St,state:Co(zt),text:Wt,textIsRepaired:Ut},redo:{patch:void 0,json:void 0,text:l,textIsRepaired:Ne,state:Co(X)}}))}function Pr(nt,St){if(o("patch",nt,St),u===void 0)throw new Error("Cannot apply patch: no JSON");var zt={json:u,text:l},Wt=u,Ut=X,te=l,_e=Ne,Ee=oB(u,nt),Oe=KL(u,X,nt),rr=Ef(u,nt),Tr=function(No,Dr){return Dr||!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?xt(xt({},No),{},{selection:Dr}):No}(Oe.documentState,rr,!1);o("patch updatedSelection",rr);var jr=typeof St=="function"?St(Oe.json,Tr):void 0;n(11,u=jr&&jr.json!==void 0?jr.json:Oe.json);var po=jr&&jr.state!==void 0?jr.state:Tr;n(17,X=po),n(16,l=void 0),n(24,Ne=!1),n(19,J=void 0),bt=void 0,Nn(u),ue.add({undo:{patch:Ee,json:void 0,text:te,state:Co(Ut),textIsRepaired:_e},redo:{patch:nt,json:void 0,state:Co(po),text:l,textIsRepaired:Ne}});var $o={json:u,previousJson:Wt,undo:Ee,redo:nt};return Ve(zt,$o),$o}function Et(){!b&&X.selection&&jt(Hi(ge(X.selection),!0))}function ie(){if(!b&&X.selection){var nt=ge(X.selection),St=fe(u,nt);xr(St)?function(zt,Wt){o("openJSONEditorModal",{path:zt,value:Wt}),yt=!0,tt({content:{json:Wt},path:zt,onPatch:le.onPatch,onClose:function(){yt=!1,Jn()}})}(nt,St):jt(Ue(nt,!0))}}function Be(){if(!b&&dn(X.selection)){var nt=ge(X.selection),St=oe(nt),zt=fe(u,nt),Wt=!Ws(zt,X.enforceStringMap,St,C),Ut=Wt?String(zt):Kf(String(zt),C);o("handleToggleEnforceString",{enforceString:Wt,value:zt,updatedValue:Ut}),de([{op:"replace",path:St,value:Ut}],function(te,_e){return{state:WL(_e,St,Wt)}})}}function en(){return $t.apply(this,arguments)}function $t(){return $t=Ae(qt().mark(function nt(){var St,zt=arguments;return qt().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return St=!(zt.length>0&&zt[0]!==void 0)||zt[0],Wt.next=3,TB({json:u,documentState:X,indentation:St?q:void 0,readOnly:b,parser:C,onPatch:de});case 3:case"end":return Wt.stop()}},nt)})),$t.apply(this,arguments)}function Xt(){return Q.apply(this,arguments)}function Q(){return Q=Ae(qt().mark(function nt(){var St,zt=arguments;return qt().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(St=!(zt.length>0&&zt[0]!==void 0)||zt[0],u!==void 0){Wt.next=3;break}return Wt.abrupt("return");case 3:return Wt.next=5,RB({json:u,documentState:X,indentation:St?q:void 0,parser:C});case 5:case"end":return Wt.stop()}},nt)})),Q.apply(this,arguments)}function at(){f(_B,{},xt(xt({},Zu),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Jn()}})}function vt(nt,St){f($B,{text:nt,onParse:function(zt){return W0(zt,function(Wt){return Mp(Wt,C)})},onRepair:PL,onApply:St},xt(xt({},Zu),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Jn()}})}function ut(){NB({json:u,text:l,documentState:X,keepSelection:!1,readOnly:b,onChange:O,onPatch:de})}function It(){!b&&u!==void 0&&X.selection&&od(X.selection)&&!cn(ge(X.selection))&&(o("duplicate",{selection:X.selection}),de(eB(u,Ac(u,X.selection))))}function ne(){if(!b&&X.selection&&(Ln(X.selection)||dn(X.selection))&&!cn(ge(X.selection))){o("extract",{selection:X.selection});var nt=function(St,zt){if(dn(zt))return[{op:"move",from:oe(zt.path),path:""}];if(!Ln(zt))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Wt=fe(St,on(zt.focusPath));if(Un(Wt))return[{op:"replace",path:"",value:Ac(St,zt).map(function(te){var _e=jo(Ie(te));return Wt[_e]})}];if(kr(Wt)){var Ut={};return Ac(St,zt).forEach(function(te){var _e=String(Ie(te));Ut[_e]=Wt[_e]}),[{op:"replace",path:"",value:Ut}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(zt))}(u,X.selection);de(nt,function(St,zt){if(xr(St))return{state:yc(St,zt,[])}})}}function pe(nt){u!==void 0&&Og({insertType:nt,selectInside:!0,refJsonEditor:c,json:u,selection:X.selection,readOnly:b,parser:C,onPatch:de,onReplaceJson:fn})}function Xe(nt){Br(X.selection)&&jt(Ue(X.selection.path,!1)),X.selection||jt(xl(u,X)),pe(nt)}function Fe(nt){if(!b&&X.selection)if(km(X.selection))try{var St=Fu(X.selection),zt=fe(u,St),Wt=function(te,_e,Ee){if(_e==="array"){if(Array.isArray(te))return te;if(pr(te))return DO(te);if(typeof te=="string")try{var Oe=Ee.parse(te);if(Array.isArray(Oe))return Oe;if(pr(Oe))return DO(Oe)}catch{return[te]}return[te]}if(_e==="object"){if(Array.isArray(te))return NO(te);if(pr(te))return te;if(typeof te=="string")try{var rr=Ee.parse(te);if(pr(rr))return rr;if(Array.isArray(rr))return NO(rr)}catch{return{value:te}}return{value:te}}if(_e==="value")return xr(te)?Ee.stringify(te):te;throw new Error("Cannot convert ".concat(d2(te,Ee)," to ").concat(_e))}(zt,nt,C);if(Wt===zt)return;var Ut=[{op:"replace",path:oe(St),value:Wt}];o("handleConvert",{selection:X.selection,path:St,type:nt,operations:Ut}),de(Ut,function(te,_e){return{state:X.selection?yc(te,_e,ge(X.selection)):X}})}catch(te){F(te)}else F(new Error("Cannot convert current selection to ".concat(nt)))}function xn(){if(X.selection){var nt=r6(u,X,!1),St=on(ge(X.selection));nt&&!cn(ge(nt))&&an(St,on(ge(nt)))?jt(Ls(ge(nt))):jt(Ks(St)),o("insert before",{selection:X.selection,selectionBefore:nt,parentPath:St}),br().then(Ra)}}function On(){if(X.selection){var nt=Pc(u,X.selection);o("insert after",nt),jt(Ls(nt)),br().then(Ra)}}function ke(nt){return gn.apply(this,arguments)}function gn(){return(gn=Ae(qt().mark(function nt(St){return qt().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,DB({char:St,selectInside:!0,refJsonEditor:c,json:u,selection:X.selection,readOnly:b,parser:C,onPatch:de,onReplaceJson:fn,onSelect:jt});case 2:case"end":return zt.stop()}},nt)}))).apply(this,arguments)}function pn(){if(!b&&ue.getState().canUndo){var nt=ue.undo();if(nt){var St={json:u,text:l};n(11,u=nt.undo.patch?xa(u,nt.undo.patch):nt.undo.json),n(17,X=nt.undo.state),n(16,l=nt.undo.text),n(24,Ne=nt.undo.textIsRepaired),bt=void 0,o("undo",{item:nt,json:u,documentState:X}),Ve(St,{json:u,previousJson:St.json,redo:nt.undo.patch,undo:nt.redo.patch}),Jn(),X.selection&&ae(ge(X.selection),!1)}}}function tr(){if(!b&&ue.getState().canRedo){var nt=ue.redo();if(nt){var St={json:u,text:l};n(11,u=nt.redo.patch?xa(u,nt.redo.patch):nt.redo.json),n(17,X=nt.redo.state),n(16,l=nt.redo.text),n(24,Ne=nt.redo.textIsRepaired),bt=void 0,o("redo",{item:nt,json:u,documentState:X}),Ve(St,{json:u,previousJson:St.json,redo:nt.redo.patch,undo:nt.undo.patch}),Jn(),X.selection&&ae(ge(X.selection),!1)}}}function yn(nt){var St;b||u===void 0||(yt=!0,I({id:d,json:u,rootPath:nt,onSort:(St=Ae(qt().mark(function zt(Wt){var Ut;return qt().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:Ut=Wt.operations,o("onSort",nt,Ut),de(Ut,function(_e,Ee){return{state:xt(xt({},yc(_e,Ee,nt)),{},{selection:Ue(nt,!1)})}});case 3:case"end":return te.stop()}},zt)})),function(zt){return St.apply(this,arguments)}),onClose:function(){yt=!1,Jn()}}))}function ct(){X.selection&&yn(i6(u,X.selection))}function Nt(nt){if(u!==void 0){var St=nt.id,zt=nt.onTransform,Wt=nt.onClose,Ut=nt.rootPath||[];yt=!0,ft({id:St||h,json:u,rootPath:Ut,onTransform:function(te){zt?zt({operations:te,json:u,transformedJson:xa(u,te)}):(o("onTransform",Ut,te),de(te,function(_e,Ee){return{state:xt(xt({},yc(_e,Ee,Ut)),{},{selection:Ue(Ut,!1)})}}))},onClose:function(){yt=!1,Jn(),Wt&&Wt()}})}}function Zt(){X.selection&&Nt({rootPath:i6(u,X.selection)})}function ae(nt){return Yt.apply(this,arguments)}function Yt(){return Yt=Ae(qt().mark(function nt(St){var zt,Wt,Ut,te,_e,Ee=arguments;return qt().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return zt=!(Ee.length>1&&Ee[1]!==void 0)||Ee[1],n(17,X=Ow(u,X,St)),Oe.next=4,br();case 4:if(Wt=Te(St),o("scrollTo",{path:St,elem:Wt,refContents:a}),Wt&&a){Oe.next=8;break}return Oe.abrupt("return",Promise.resolve());case 8:if(Ut=a.getBoundingClientRect(),te=Wt.getBoundingClientRect(),zt){Oe.next=13;break}if(!(te.bottom>Ut.top&&te.top<Ut.bottom)){Oe.next=13;break}return Oe.abrupt("return",Promise.resolve());case 13:return _e=-Ut.height/4,Oe.abrupt("return",new Promise(function(rr){y(Wt,{container:a,offset:_e,duration:300,callback:function(){return rr()}})}));case 15:case"end":return Oe.stop()}},nt)})),Yt.apply(this,arguments)}function Te(nt){return a?a.querySelector('div[data-path="'.concat(Cf(nt),'"]')):null}function He(nt){var St=Te(nt);if(St&&a){var zt=a.getBoundingClientRect(),Wt=St.getBoundingClientRect(),Ut=xr(fe(u,nt))?20:Wt.height;Wt.top<zt.top+20?y(St,{container:a,offset:-20,duration:0}):Wt.top+Ut>zt.bottom-20&&y(St,{container:a,offset:-(zt.height-Ut-20),duration:0})}}function Ve(nt,St){(nt.json!==void 0||(nt==null?void 0:nt.text)!==void 0)&&(l!==void 0?O({text:l,json:void 0},nt,{contentErrors:qn(),patchResult:St}):u!==void 0&&O({text:void 0,json:u},nt,{contentErrors:qn(),patchResult:St}))}function de(nt,St){if(!b)return o("handlePatch",nt,St),Pr(nt,St)}function fn(nt,St){var zt=X,Wt=u,Ut=l,te={json:u,text:l},_e=Ne,Ee=Mi(u,X,[],Ja),Oe=typeof St=="function"?St(nt,Ee):void 0;n(11,u=Oe&&Oe.json!==void 0?Oe.json:nt),n(17,X=Oe&&Oe.state!==void 0?Oe.state:Ee),n(16,l=void 0),n(24,Ne=!1),bt=void 0,Nn(u),sr({previousJson:Wt,previousState:zt,previousText:Ut,previousTextIsRepaired:_e}),Ve(te,null)}function Kn(nt,St){o("handleChangeText");var zt=X,Wt=u,Ut=l,te={json:u,text:l},_e=Ne;try{n(11,u=$(nt)),n(17,X=Mi(u,X,[],Ja)),n(16,l=void 0),n(24,Ne=!1),bt=void 0}catch(Oe){try{n(11,u=$(Xa(nt))),n(17,X=Mi(u,X,[],Ja)),n(16,l=nt),n(24,Ne=!0),bt=void 0}catch{n(11,u=void 0),n(17,X=jg({json:u,expand:Ja})),n(16,l=nt),n(24,Ne=!1),bt=l!==""?Sf(l,Oe.message||String(Oe)):void 0}}if(typeof St=="function"){var Ee=St(u,X);n(11,u=Ee&&Ee.json?Ee.json:u),n(17,X=Ee&&Ee.state?Ee.state:X)}Nn(u),sr({previousJson:Wt,previousState:zt,previousText:Ut,previousTextIsRepaired:_e}),Ve(te,null)}function Dn(nt,St){var zt=arguments.length>2&&arguments[2]!==void 0&&arguments[2];o("expand",{path:nt,expanded:St,recursive:zt}),n(17,X=St?zt?Mi(u,X,nt,ch):function(Wt,Ut){return xt(xt({},Wt),{},{expandedMap:xt(xt({},Wt.expandedMap),{},Vo({},oe(Ut),!0))})}(X,nt):t6(X,nt)),X.selection&&!St&&function(Wt,Ut){return Uc(ge(Wt),Ut)&&(ge(Wt).length>Ut.length||Vr(Wt))}(X.selection,nt)&&jt(null),setTimeout(function(){xg(c)||Jn()})}function Nr(nt){o("openFind",{findAndReplace:nt}),n(20,_t=!1),n(21,z=!1),br().then(function(){n(20,_t=!0),n(21,z=nt)})}function ci(nt,St){o("handleExpandSection",nt,St);var zt=oe(nt);n(17,X=function(Wt,Ut,te,_e){return xt(xt({},Ut),{},{visibleSectionsMap:xt(xt({},Ut.visibleSectionsMap),{},Vo({},te,UL(K0(Ut,te).concat(_e))))})}(0,X,zt,St))}function Ta(nt){o("pasted json as text",nt),n(19,J=nt)}function ji(nt){var St=nt.anchor,zt=nt.left,Wt=nt.top,Ut=nt.width,te=nt.height,_e=nt.offsetTop,Ee=nt.offsetLeft,Oe=nt.showTip;yt=!0;var rr=v(tvt,{json:u,documentState:X,parser:C,showTip:Oe,onEditKey:Et,onEditValue:ie,onToggleEnforceString:Be,onCut:en,onCopy:Xt,onPaste:at,onRemove:ut,onDuplicate:It,onExtract:ne,onInsertBefore:xn,onInsert:Xe,onConvert:Fe,onInsertAfter:On,onSort:ct,onTransform:Zt,onCloseContextMenu:function(){m(rr),Jn()}},{left:zt,top:Wt,offsetTop:_e,offsetLeft:Ee,width:Ut,height:te,anchor:St,closeOnOuterClick:!0,onClose:function(){yt=!1,Jn()}})}function Ra(nt){if(!b&&!Gi(X.selection)){if(nt&&(nt.stopPropagation(),nt.preventDefault()),nt&&nt.type==="contextmenu"&&nt.target!==s)ji({left:nt.clientX,top:nt.clientY,width:Rs,height:Ts,showTip:!1});else{var St,zt=(St=a)===null||St===void 0?void 0:St.querySelector(".jse-context-menu-pointer.jse-selected");if(zt)ji({anchor:zt,offsetTop:2,width:Rs,height:Ts,showTip:!1});else{var Wt,Ut=(Wt=a)===null||Wt===void 0?void 0:Wt.getBoundingClientRect();Ut&&ji({top:Ut.top+2,left:Ut.left+2,width:Rs,height:Ts,showTip:!1})}}return!1}}function _i(){return(_i=Ae(qt().mark(function nt(){var St,zt,Wt;return qt().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(o("apply pasted json",J),J){Ut.next=3;break}return Ut.abrupt("return");case 3:return zt=(St=J).path,Wt=St.contents,jt(Ue(zt,!1)),Ut.next=7,br();case 7:de([{op:"replace",path:oe(zt),value:Wt}],function(te,_e){return{state:yc(te,_e,zt)}});case 9:case"end":return Ut.stop()}},nt)}))).apply(this,arguments)}function Jn(){o("focus"),s&&(s.focus(),s.select())}function qp(nt){return function(St,zt,Wt){var Ut=on(Wt),te=[Ie(Wt)],_e=fe(St,Ut),Ee=_e?yy(_e,zt,te):void 0;return Ee?Ue(Ut.concat(Ee),!1):Ls(Wt)}(u,X,nt)}function ld(nt){r&&r.onDrag(nt)}function Hp(){r&&r.onDragEnd()}return e.$$set=function(nt){"readOnly"in nt&&n(0,b=nt.readOnly),"externalContent"in nt&&n(52,w=nt.externalContent),"externalSelection"in nt&&n(53,x=nt.externalSelection),"mainMenuBar"in nt&&n(1,k=nt.mainMenuBar),"navigationBar"in nt&&n(2,j=nt.navigationBar),"escapeControlCharacters"in nt&&n(54,S=nt.escapeControlCharacters),"escapeUnicodeCharacters"in nt&&n(55,N=nt.escapeUnicodeCharacters),"parser"in nt&&n(3,C=nt.parser),"parseMemoizeOne"in nt&&n(56,$=nt.parseMemoizeOne),"validator"in nt&&n(57,B=nt.validator),"validationParser"in nt&&n(58,K=nt.validationParser),"pathParser"in nt&&n(4,R=nt.pathParser),"indentation"in nt&&n(5,q=nt.indentation),"onError"in nt&&n(6,F=nt.onError),"onChange"in nt&&n(59,O=nt.onChange),"onChangeMode"in nt&&n(60,A=nt.onChangeMode),"onSelect"in nt&&n(61,_=nt.onSelect),"onRenderValue"in nt&&n(62,M=nt.onRenderValue),"onRenderMenu"in nt&&n(7,P=nt.onRenderMenu),"onClassName"in nt&&n(63,D=nt.onClassName),"onFocus"in nt&&n(64,T=nt.onFocus),"onBlur"in nt&&n(65,H=nt.onBlur),"onSortModal"in nt&&n(66,I=nt.onSortModal),"onTransformModal"in nt&&n(67,ft=nt.onTransformModal),"onJSONEditorModal"in nt&&n(68,tt=nt.onJSONEditorModal)},e.$$.update=function(){25165824&e.$$.dirty[1]&&n(76,Y=aj({escapeControlCharacters:S,escapeUnicodeCharacters:N})),2097152&e.$$.dirty[1]&&Sn(w),4194304&e.$$.dirty[1]&&function(nt){if(!an(X.selection,nt)){if(o("applyExternalSelection",nt),Mw(nt))return;jt(nt)}}(x),2048&e.$$.dirty[0]|32768&e.$$.dirty[2]&&wn(G,u),2056&e.$$.dirty[0]|201326592&e.$$.dirty[1]&&Ke(u,B,C,K),4096&e.$$.dirty[0]&&n(25,tn=function(nt){var St={};return nt.forEach(function(zt){St[oe(zt.path)]=zt}),nt.forEach(function(zt){for(var Wt=zt.path;Wt.length>0;){var Ut=oe(Wt=on(Wt));Ut in St||(St[Ut]={isChildError:!0,path:Wt,message:"Contains invalid data",severity:Hs.warning})}}),St}(mn)),1024&e.$$.dirty[0]&&(r=a?function(nt){var St,zt;function Wt(Ee){return Ee<20?xZ:Ee<50?kZ:jZ}function Ut(){if(nt){var Ee=(St||0)*(uE/1e3);nt.scrollTop+=Ee}}function te(Ee){zt&&Ee===St||(_e(),ky("startAutoScroll",Ee),St=Ee,zt=setInterval(Ut,uE))}function _e(){zt&&(ky("stopAutoScroll"),clearInterval(zt),zt=void 0,St=void 0)}return ky("createAutoScrollHandler",nt),{onDrag:function(Ee){if(nt){var Oe=Ee.clientY,rr=nt.getBoundingClientRect(),Tr=rr.top,jr=rr.bottom;Oe<Tr?te(-Wt(Tr-Oe)):Oe>jr?te(Wt(Oe-jr)):_e()}},onDragEnd:function(){_e()}}}(a):void 0),9&e.$$.dirty[0]|16387&e.$$.dirty[2]&&n(13,le={readOnly:b,parser:C,normalization:Y,getJson:In,getDocumentState:Zn,findElement:Te,findNextInside:qp,focus:Jn,onPatch:de,onInsert:pe,onExpand:Dn,onSelect:jt,onFind:Nr,onExpandSection:ci,onPasteJson:Ta,onRenderValue:M,onContextMenu:ji,onClassName:D||function(){},onDrag:ld,onDragEnd:Hp}),8192&e.$$.dirty[0]&&o("context changed",le)},[b,k,j,C,R,q,F,P,function(){return Ne&&u!==void 0&&fn(u),{json:u,text:l}},Jn,a,u,mn,le,s,c,l,X,gt,J,_t,z,W,Me,Ne,tn,i,pt,function(){return Ot.apply(this,arguments)},function(){return Ct.apply(this,arguments)},function(nt,St){return Vt.apply(this,arguments)},function(nt,St){return Qt.apply(this,arguments)},function(){n(20,_t=!1),n(21,z=!1),pt(""),Jn()},function(nt){o("select validation error",nt),jt(Ue(nt.path,!1)),ae(nt.path)},Xt,function(nt){nt.preventDefault(),IB({clipboardText:nt.clipboardData.getData("text/plain"),json:u,selection:X.selection,readOnly:b,parser:C,onPatch:de,onChangeText:Kn,openRepairModal:vt})},ke,pn,tr,function(){yn([])},function(){Nt({rootPath:[]})},function(){Dn([],!0,!0)},function(){Dn([],!1,!0)},function(nt){var St=au(nt),zt=nt.shiftKey;if(o("keydown",{combo:St,key:nt.key}),St==="Ctrl+X"&&(nt.preventDefault(),en(!0)),St==="Ctrl+Shift+X"&&(nt.preventDefault(),en(!1)),St==="Ctrl+C"&&(nt.preventDefault(),Xt(!0)),St==="Ctrl+Shift+C"&&(nt.preventDefault(),Xt(!1)),St==="Ctrl+D"&&(nt.preventDefault(),It()),St!=="Delete"&&St!=="Backspace"||(nt.preventDefault(),ut()),St==="Insert"&&(nt.preventDefault(),pe("structure")),St==="Ctrl+A"&&(nt.preventDefault(),jt(Ue([],!1))),St==="Ctrl+Q"&&Ra(nt),St==="ArrowUp"||St==="Shift+ArrowUp"){nt.preventDefault();var Wt=X.selection?r6(u,X,zt)||X.selection:xl(u,X);jt(Wt),He(ge(Wt))}if(St==="ArrowDown"||St==="Shift+ArrowDown"){nt.preventDefault();var Ut=X.selection?function(po,$o){var No=arguments.length>2&&arguments[2]!==void 0&&arguments[2],Dr=$o.selection;if(!Dr)return null;var _r=No?ge(Dr):Pc(po,Dr),ws=xr(fe(po,_r))?t6($o,_r):$o,Wr=yy(po,$o,_r),eo=yy(po,ws,_r);if(No)return Vr(Dr)?Wr!==null?Mo(Wr,Wr):null:pi(Dr)?eo!==null?Mo(eo,eo):null:eo!==null?Mo(Fu(Dr),eo):null;if(pi(Dr))return eo!==null?Ue(eo,!1):null;if(Vr(Dr)||dn(Dr))return Wr!==null?Ue(Wr,!1):null;if(Br(Dr)){if(Wr===null||Wr.length===0)return null;var wt=fe(po,on(Wr));return Array.isArray(wt)?Ue(Wr,!1):Hi(Wr,!1)}return Ln(Dr)?eo!==null?Ue(eo,!1):Wr!==null?Ue(Wr,!1):null:null}(u,X,zt)||X.selection:xl(u,X);jt(Ut),He(ge(Ut))}if(St==="ArrowLeft"||St==="Shift+ArrowLeft"){nt.preventDefault();var te=X.selection?function(po,$o){var No=arguments.length>2&&arguments[2]!==void 0&&arguments[2],Dr=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],_r=$o.selection;if(!_r)return null;var ws=o6(po,$o,Dr),Wr=ws.caret,eo=ws.previous;if(No)return Ln(_r)?null:Mo(_r.path,_r.path);if(Wr&&eo)return Aw(eo);var wt=fe(po,on(ge(_r)));return dn(_r)&&Array.isArray(wt)?Mo(_r.path,_r.path):Ln(_r)&&!Array.isArray(wt)?Hi(_r.focusPath,!1):null}(u,X,zt,!b)||X.selection:xl(u,X);jt(te),He(ge(te))}if(St==="ArrowRight"||St==="Shift+ArrowRight"){nt.preventDefault();var _e=X.selection&&u!==void 0?function(po,$o){var No=arguments.length>2&&arguments[2]!==void 0&&arguments[2],Dr=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],_r=$o.selection;if(!_r)return null;var ws=o6(po,$o,Dr),Wr=ws.caret,eo=ws.next;return No?Ln(_r)?null:Mo(_r.path,_r.path):Wr&&eo?Aw(eo):Ln(_r)?Ue(_r.focusPath,!1):null}(u,X,zt,!b)||X.selection:xl(u,X);jt(_e),He(ge(_e))}if(St==="Enter"&&X.selection){if(!b&&J0(X.selection)){var Ee=X.selection.focusPath,Oe=fe(u,on(Ee));Array.isArray(Oe)&&jt(Ue(Ee,!1))}!b&&Br(X.selection)&&(nt.preventDefault(),jt(xt(xt({},X.selection),{},{edit:!0}))),dn(X.selection)&&(nt.preventDefault(),xr(fe(u,X.selection.path))?Dn(X.selection.path,!0):b||jt(xt(xt({},X.selection),{},{edit:!0})))}if(St.replace(/^Shift\+/,"").length===1&&X.selection)return nt.preventDefault(),void ke(nt.key);if(St==="Enter"&&(pi(X.selection)||Vr(X.selection)))return nt.preventDefault(),void ke("");if(St==="Ctrl+Enter"&&dn(X.selection)){var rr=fe(u,X.selection.path);O0(rr)&&window.open(String(rr),"_blank")}if(St==="Escape"&&X.selection&&(nt.preventDefault(),jt(null)),St==="Ctrl+F"&&(nt.preventDefault(),Nr(!1)),St==="Ctrl+H"&&(nt.preventDefault(),Nr(!0)),St==="Ctrl+Z"){nt.preventDefault();var Tr=document.activeElement;Tr&&Tr.blur&&Tr.select?(Tr.blur(),setTimeout(function(){pn(),setTimeout(function(){return Tr==null?void 0:Tr.select()})})):pn()}if(St==="Ctrl+Shift+Z"){nt.preventDefault();var jr=document.activeElement;jr&&jr.blur&&jr.select?(jr.blur(),setTimeout(function(){tr(),setTimeout(function(){return jr==null?void 0:jr.select()})})):tr()}},function(nt){o("handleMouseDown",nt),setTimeout(function(){setTimeout(function(){g||sj(nt.target,"BUTTON")||(Jn(),X.selection||u!==void 0||l!==""&&l!==void 0||(o("createDefaultSelection"),n(17,X=xt(xt({},X),{},{selection:Ue([],!1)}))))})})},Ra,function(nt){b||ji({anchor:FL(nt.target,"BUTTON"),offsetTop:0,width:Rs,height:Ts,showTip:!0})},function(){return _i.apply(this,arguments)},function(){o("clear pasted json"),n(19,J=void 0)},function(){A(bo.text)},function(nt){jt(nt),Jn(),ae(ge(nt))},function(nt){var St=!Ap(nt.target,function(zt){return zt===c});St&&Gi(X.selection)&&(o("click outside the editor, stop edit mode"),jt(function(zt){return Br(zt)||dn(zt)?xt(xt({},zt),{},{edit:!1}):zt}),g&&s&&(s.focus(),s.blur()),br().then(function(){setTimeout(function(){s&&s.blur()})}))},w,x,S,N,$,B,K,O,A,_,M,D,T,H,I,ft,tt,function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ch;o("expand");var St=xt(xt({},X),{},{expandedMap:{},visibleSectionsMap:{}});n(17,X=Mi(u,St,[],nt))},qn,In,Pr,Nt,ae,Te,Y,G,function(nt){n(20,_t=nt)},function(nt){rn[nt?"unshift":"push"](function(){n(14,s=nt)})},function(){Jn(),ke("{")},function(){Jn(),ke("[")},function(){Jn()},function(nt){rn[nt?"unshift":"push"](function(){n(10,a=nt)})},function(){setTimeout(Jn)},function(nt){rn[nt?"unshift":"push"](function(){n(15,c=nt)})}]}var _j=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Xmt,Ymt,qe,{readOnly:0,externalContent:52,externalSelection:53,mainMenuBar:1,navigationBar:2,escapeControlCharacters:54,escapeUnicodeCharacters:55,parser:3,parseMemoizeOne:56,validator:57,validationParser:58,pathParser:4,indentation:5,onError:6,onChange:59,onChangeMode:60,onSelect:61,onRenderValue:62,onRenderMenu:7,onClassName:63,onFocus:64,onBlur:65,onSortModal:66,onTransformModal:67,onJSONEditorModal:68,expand:69,validate:70,getJson:71,patch:72,acceptAutoRepair:8,openTransformModal:73,scrollTo:74,findElement:75,focus:9},Vmt,[-1,-1,-1,-1,-1]),o}return ot(n,[{key:"expand",get:function(){return this.$$.ctx[69]}},{key:"validate",get:function(){return this.$$.ctx[70]}},{key:"getJson",get:function(){return this.$$.ctx[71]}},{key:"patch",get:function(){return this.$$.ctx[72]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[73]}},{key:"scrollTo",get:function(){return this.$$.ctx[74]}},{key:"findElement",get:function(){return this.$$.ctx[75]}},{key:"focus",get:function(){return this.$$.ctx[9]}}]),n}();function Zmt(e){ze(e,"svelte-jizu3t",".jse-modal.svelte-jizu3t.svelte-jizu3t{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-jizu3t .jse-modal-contents.svelte-jizu3t{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions.svelte-jizu3t{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions button.jse-primary.svelte-jizu3t{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions button.jse-primary.svelte-jizu3t:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions button.jse-primary.svelte-jizu3t:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents.svelte-jizu3t{color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents.svelte-jizu3t{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-jizu3t{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-jizu3t{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-jizu3t{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-jizu3t{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-jizu3t{flex:none}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-jizu3t{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-jizu3t{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-actions.svelte-jizu3t{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents.svelte-jizu3t{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-jizu3t{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-jizu3t .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-jizu3t .jse-label.svelte-jizu3t{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-label .jse-label-inner.svelte-jizu3t{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-label .jse-label-inner button.svelte-jizu3t{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-jizu3t .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-jizu3t input.svelte-jizu3t,.jse-modal.jse-transform.svelte-jizu3t textarea.svelte-jizu3t{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-jizu3t input.svelte-jizu3t:focus,.jse-modal.jse-transform.svelte-jizu3t textarea.svelte-jizu3t:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-jizu3t input.svelte-jizu3t:read-only,.jse-modal.jse-transform.svelte-jizu3t textarea.svelte-jizu3t:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-jizu3t .jse-preview.jse-error.svelte-jizu3t{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-jizu3t a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-jizu3t a:hover{color:var(--jse-a-color-highlight)}")}function RA(e){var t,n,r,o,i,a=[egt,tgt],s=[];function c(u,l){return 16384&l[0]&&(t=null),t==null&&(t=!!Array.isArray(u[14])),t?0:1}return n=c(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=_n()},m:function(u,l){s[n].m(u,l),dt(u,o,l),i=!0},p:function(u,l){var f=n;(n=c(u,l))===f?s[n].p(u,l):(Bt(),U(s[f],1,1,function(){s[f]=null}),Ft(),(r=s[n])?r.p(u,l):(r=s[n]=a[n](u)).c(),L(r,1),r.m(o.parentNode,o))},i:function(u){i||(L(r),i=!0)},o:function(u){U(r),i=!1},d:function(u){u&&lt(o),s[n].d(u)}}}function tgt(e){var t;return{c:function(){t=Gt("(Only available for arrays, not for objects)")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function egt(e){var t,n;return t=new _ht({props:{queryOptions:e[12],json:e[14],onChange:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};4096&o[0]&&(i.queryOptions=r[12]),16384&o[0]&&(i.json=r[14]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function IA(e){var t,n;return t=new _j({props:{externalContent:e[19],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:e[2],escapeControlCharacters:e[3],escapeUnicodeCharacters:e[4],parser:e[5],parseMemoizeOne:e[6],onRenderValue:e[10],onRenderMenu:Yn,onError:console.error,onChange:Yn,onChangeMode:Yn,onSelect:Yn,onFocus:Yn,onBlur:Yn,onSortModal:Yn,onTransformModal:Yn,onJSONEditorModal:Yn,onClassName:e[11],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};524288&o[0]&&(i.externalContent=r[19]),4&o[0]&&(i.indentation=r[2]),8&o[0]&&(i.escapeControlCharacters=r[3]),16&o[0]&&(i.escapeUnicodeCharacters=r[4]),32&o[0]&&(i.parser=r[5]),64&o[0]&&(i.parseMemoizeOne=r[6]),1024&o[0]&&(i.onRenderValue=r[10]),2048&o[0]&&(i.onClassName=r[11]),128&o[0]&&(i.validationParser=r[7]),256&o[0]&&(i.pathParser=r[8]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ngt(e){var t,n;return{c:function(){t=et("div"),n=Gt(e[17]),E(t,"class","jse-preview jse-error svelte-jizu3t")},m:function(r,o){dt(r,t,o),V(t,n)},p:function(r,o){131072&o[0]&&we(n,r[17])},i:Ht,o:Ht,d:function(r){r&&lt(t)}}}function rgt(e){var t,n;return t=new _j({props:{externalContent:e[18],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:e[2],escapeControlCharacters:e[3],escapeUnicodeCharacters:e[4],parser:e[5],parseMemoizeOne:e[6],onRenderValue:e[10],onRenderMenu:Yn,onError:console.error,onChange:Yn,onChangeMode:Yn,onSelect:Yn,onFocus:Yn,onBlur:Yn,onSortModal:Yn,onTransformModal:Yn,onJSONEditorModal:Yn,onClassName:e[11],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};262144&o[0]&&(i.externalContent=r[18]),4&o[0]&&(i.indentation=r[2]),8&o[0]&&(i.escapeControlCharacters=r[3]),16&o[0]&&(i.escapeUnicodeCharacters=r[4]),32&o[0]&&(i.parser=r[5]),64&o[0]&&(i.parseMemoizeOne=r[6]),1024&o[0]&&(i.onRenderValue=r[10]),2048&o[0]&&(i.onClassName=r[11]),128&o[0]&&(i.validationParser=r[7]),256&o[0]&&(i.pathParser=r[8]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ogt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K,R,q,F,O,A,_,M,P,D,T,H,I,ft,tt,yt,bt,jt,gt,Y=e[21](e[0]).description+"";t=new Rht({props:{queryLanguages:e[9],queryLanguageId:e[0],onChangeQueryLanguage:e[27]}}),y=new hn({props:{data:e[15]?Ri:kc}});var J=e[15]&&RA(e);q=new hn({props:{data:e[16]?Ri:kc}});var it=e[16]&&IA(e),X=[rgt,ngt],_t=[];function z(W,G){return W[17]?1:0}return D=z(e),T=_t[D]=X[D](e),{c:function(){Pt(t.$$.fragment),n=kt(),r=et("div"),o=et("div"),i=et("div"),(a=et("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Language</div>',s=kt(),c=et("div"),u=kt(),(l=et("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Path</div>',f=kt(),d=et("input"),p=kt(),v=et("div"),m=et("div"),g=et("button"),Pt(y.$$.fragment),b=Gt(`
104
+ Wizard`),w=kt(),J&&J.c(),x=kt(),(k=et("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Query</div>',j=kt(),S=et("textarea"),N=kt(),C=et("div"),$=et("div"),B=et("div"),K=et("div"),R=et("button"),Pt(q.$$.fragment),F=Gt(`
105
+ Original`),O=kt(),it&&it.c(),A=kt(),_=et("div"),(M=et("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Preview</div>',P=kt(),T.c(),H=kt(),I=et("div"),ft=et("button"),tt=Gt("Transform"),E(a,"class","jse-label svelte-jizu3t"),E(c,"class","jse-description svelte-jizu3t"),E(l,"class","jse-label svelte-jizu3t"),E(d,"class","jse-path svelte-jizu3t"),E(d,"type","text"),d.readOnly=!0,E(d,"title","Selected path"),d.value=h=cn(e[1])?"(whole document)":ai(e[1]),E(g,"type","button"),E(g,"class","svelte-jizu3t"),E(m,"class","jse-label-inner svelte-jizu3t"),E(v,"class","jse-label svelte-jizu3t"),E(k,"class","jse-label svelte-jizu3t"),E(S,"class","jse-query svelte-jizu3t"),E(S,"spellcheck","false"),S.value=e[13],E(i,"class","jse-query-contents svelte-jizu3t"),E(R,"type","button"),E(R,"class","svelte-jizu3t"),E(K,"class","jse-label-inner svelte-jizu3t"),E(B,"class","jse-label svelte-jizu3t"),E($,"class","jse-original-data svelte-jizu3t"),Dt($,"jse-hide",!e[16]),E(M,"class","jse-label svelte-jizu3t"),E(_,"class","jse-preview-data svelte-jizu3t"),E(C,"class","jse-data-contents svelte-jizu3t"),Dt(C,"jse-hide-original-data",!e[16]),E(o,"class","jse-main-contents svelte-jizu3t"),E(ft,"type","button"),E(ft,"class","jse-primary svelte-jizu3t"),ft.disabled=yt=!!e[17],E(I,"class","jse-actions svelte-jizu3t"),E(r,"class","jse-modal-contents svelte-jizu3t")},m:function(W,G){Mt(t,W,G),dt(W,n,G),dt(W,r,G),V(r,o),V(o,i),V(i,a),V(i,s),V(i,c),c.innerHTML=Y,V(i,u),V(i,l),V(i,f),V(i,d),V(i,p),V(i,v),V(v,m),V(m,g),Mt(y,g,null),V(g,b),V(i,w),J&&J.m(i,null),V(i,x),V(i,k),V(i,j),V(i,S),V(o,N),V(o,C),V(C,$),V($,B),V(B,K),V(K,R),Mt(q,R,null),V(R,F),V($,O),it&&it.m($,null),V(C,A),V(C,_),V(_,M),V(_,P),_t[D].m(_,null),V(r,H),V(r,I),V(I,ft),V(ft,tt),bt=!0,jt||(gt=[Lt(g,"click",e[25]),Lt(S,"input",e[23]),Lt(R,"click",e[26]),Lt(ft,"click",e[24]),lo(agt.call(null,ft))],jt=!0)},p:function(W,G){var pt={};512&G[0]&&(pt.queryLanguages=W[9]),1&G[0]&&(pt.queryLanguageId=W[0]),t.$set(pt),(!bt||1&G[0])&&Y!==(Y=W[21](W[0]).description+"")&&(c.innerHTML=Y),(!bt||2&G[0]&&h!==(h=cn(W[1])?"(whole document)":ai(W[1]))&&d.value!==h)&&(d.value=h);var mt={};32768&G[0]&&(mt.data=W[15]?Ri:kc),y.$set(mt),W[15]?J?(J.p(W,G),32768&G[0]&&L(J,1)):((J=RA(W)).c(),L(J,1),J.m(i,x)):J&&(Bt(),U(J,1,1,function(){J=null}),Ft()),(!bt||8192&G[0])&&(S.value=W[13]);var Ot={};65536&G[0]&&(Ot.data=W[16]?Ri:kc),q.$set(Ot),W[16]?it?(it.p(W,G),65536&G[0]&&L(it,1)):((it=IA(W)).c(),L(it,1),it.m($,null)):it&&(Bt(),U(it,1,1,function(){it=null}),Ft()),(!bt||65536&G[0])&&Dt($,"jse-hide",!W[16]);var Ct=D;(D=z(W))===Ct?_t[D].p(W,G):(Bt(),U(_t[Ct],1,1,function(){_t[Ct]=null}),Ft(),(T=_t[D])?T.p(W,G):(T=_t[D]=X[D](W)).c(),L(T,1),T.m(_,null)),(!bt||65536&G[0])&&Dt(C,"jse-hide-original-data",!W[16]),(!bt||131072&G[0]&&yt!==(yt=!!W[17]))&&(ft.disabled=yt)},i:function(W){bt||(L(t.$$.fragment,W),L(y.$$.fragment,W),L(J),L(q.$$.fragment,W),L(it),L(T),bt=!0)},o:function(W){U(t.$$.fragment,W),U(y.$$.fragment,W),U(J),U(q.$$.fragment,W),U(it),U(T),bt=!1},d:function(W){W&&(lt(n),lt(r)),At(t,W),At(y),J&&J.d(),At(q),it&&it.d(),_t[D].d(),jt=!1,Fn(gt)}}}function igt(e){var t,n,r,o,i;return n=new HL({props:{$$slots:{default:[ogt]},$$scope:{ctx:e}}}),{c:function(){t=et("div"),Pt(n.$$.fragment),E(t,"class","jse-modal jse-transform svelte-jizu3t")},m:function(a,s){dt(a,t,s),Mt(n,t,null),r=!0,o||(i=lo(o1.call(null,t,e[20])),o=!0)},p:function(a,s){var c={};1048575&s[0]|256&s[1]&&(c.$$scope={dirty:s,ctx:a}),n.$set(c)},i:function(a){r||(L(n.$$.fragment,a),r=!0)},o:function(a){U(n.$$.fragment,a),r=!1},d:function(a){a&&lt(t),At(n),o=!1,i()}}}function agt(e){e.focus()}function sgt(e,t,n){var r,o,i=ho("jsoneditor:TransformModal"),a=t.id,s=a===void 0?"transform-modal-"+rh():a,c=t.json,u=t.rootPath,l=u===void 0?[]:u,f=t.indentation,d=t.escapeControlCharacters,h=t.escapeUnicodeCharacters,p=t.parser,v=t.parseMemoizeOne,m=t.validationParser,g=t.pathParser,y=t.queryLanguages,b=t.queryLanguageId,w=t.onChangeQueryLanguage,x=t.onRenderValue,k=t.onClassName,j=t.onTransform,S=fo("simple-modal").close,N="".concat(s,":").concat(oe(l)),C=ta[N]||{},$=ta.showWizard!==!1,B=ta.showOriginal!==!1,K=C.queryOptions||{},R=b===C.queryLanguageId&&C.query?C.query:A(b).createQuery(c,C.queryOptions||{}),q=C.isManual||!1,F=void 0,O={text:""};function A(M){return y.find(function(P){return P.id===M})||y[0]}var _=_p(function(M,P){try{i("previewTransform",{query:P});var D=A(b).executeQuery(M,P,p);n(18,O={json:D}),n(17,F=void 0)}catch(T){n(18,O={text:""}),n(17,F=String(T))}},300);return e.$$set=function(M){"id"in M&&n(28,s=M.id),"json"in M&&n(29,c=M.json),"rootPath"in M&&n(1,l=M.rootPath),"indentation"in M&&n(2,f=M.indentation),"escapeControlCharacters"in M&&n(3,d=M.escapeControlCharacters),"escapeUnicodeCharacters"in M&&n(4,h=M.escapeUnicodeCharacters),"parser"in M&&n(5,p=M.parser),"parseMemoizeOne"in M&&n(6,v=M.parseMemoizeOne),"validationParser"in M&&n(7,m=M.validationParser),"pathParser"in M&&n(8,g=M.pathParser),"queryLanguages"in M&&n(9,y=M.queryLanguages),"queryLanguageId"in M&&n(0,b=M.queryLanguageId),"onChangeQueryLanguage"in M&&n(30,w=M.onChangeQueryLanguage),"onRenderValue"in M&&n(10,x=M.onRenderValue),"onClassName"in M&&n(11,k=M.onClassName),"onTransform"in M&&n(31,j=M.onTransform)},e.$$.update=function(){536870914&e.$$.dirty[0]&&n(14,r=fe(c,l)),16384&e.$$.dirty[0]&&n(19,o={json:r}),24576&e.$$.dirty[0]&&_(r,R),12289&e.$$.dirty[0]|6&e.$$.dirty[1]&&(n(32,ta[N]={queryOptions:K,query:R,queryLanguageId:b,isManual:q},ta),i("store state in memory",N,ta[N]))},[b,l,f,d,h,p,v,m,g,y,x,k,K,R,r,$,B,F,O,o,S,A,function(M){n(12,K=M),n(13,R=A(b).createQuery(c,M)),n(33,q=!1),i("updateQueryByWizard",{queryOptions:K,query:R,isManual:q})},function(M){n(13,R=M.target.value),n(33,q=!0),i("handleChangeQuery",{query:R,isManual:q})},function(){try{i("handleTransform",{query:R});var M=A(b).executeQuery(r,R,p);j([{op:"replace",path:oe(l),value:M}]),S()}catch(P){console.error(P),n(18,O={text:""}),n(17,F=String(P))}},function(){n(15,$=!$),n(32,ta.showWizard=$,ta)},function(){n(16,B=!B),n(32,ta.showOriginal=B,ta)},function(M){i("handleChangeQueryLanguage",M),n(0,b=M),w(M);var P=A(b);n(13,R=P.createQuery(c,K)),n(33,q=!1)},s,c,w,j,ta,q]}var cgt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,sgt,igt,qe,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},Zmt,[-1,-1]),o}return ot(n)}(),lc={};function ugt(e){ze(e,"svelte-kctj9r",".jse-modal.svelte-kctj9r.svelte-kctj9r{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-kctj9r .jse-modal-contents.svelte-kctj9r{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions.svelte-kctj9r{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions button.jse-primary.svelte-kctj9r{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions button.jse-primary.svelte-kctj9r:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions button.jse-primary.svelte-kctj9r:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-sort.svelte-kctj9r table.svelte-kctj9r{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-kctj9r table th.svelte-kctj9r,.jse-modal.jse-sort.svelte-kctj9r table td.svelte-kctj9r{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-kctj9r table th input.jse-path.svelte-kctj9r,.jse-modal.jse-sort.svelte-kctj9r table td input.jse-path.svelte-kctj9r{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-kctj9r table th input.jse-path.svelte-kctj9r:read-only,.jse-modal.jse-sort.svelte-kctj9r table td input.jse-path.svelte-kctj9r:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-kctj9r table th.svelte-kctj9r .svelte-select input,.jse-modal.jse-sort.svelte-kctj9r table td.svelte-kctj9r .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-kctj9r .jse-space.svelte-kctj9r{height:200px}.jse-modal.jse-sort.svelte-kctj9r .jse-space .jse-error.svelte-kctj9r{color:var(--jse-error-color)}")}function NA(e){var t,n,r,o,i,a,s;function c(l){e[14](l)}var u={showChevron:!0,items:e[3]};return e[1]!==void 0&&(u.value=e[1]),i=new $u({props:u}),rn.push(function(){return da(i,"value",c)}),{c:function(){t=et("tr"),(n=et("th")).textContent="Property",r=kt(),o=et("td"),Pt(i.$$.fragment),E(n,"class","svelte-kctj9r"),E(o,"class","svelte-kctj9r")},m:function(l,f){dt(l,t,f),V(t,n),V(t,r),V(t,o),Mt(i,o,null),s=!0},p:function(l,f){var d={};8&f&&(d.items=l[3]),!a&&2&f&&(a=!0,d.value=l[1],fa(function(){return a=!1})),i.$set(d)},i:function(l){s||(L(i.$$.fragment,l),s=!0)},o:function(l){U(i.$$.fragment,l),s=!1},d:function(l){l&&lt(t),At(i)}}}function DA(e){var t,n;return{c:function(){t=et("div"),n=Gt(e[5]),E(t,"class","jse-error svelte-kctj9r")},m:function(r,o){dt(r,t,o),V(t,n)},p:function(r,o){32&o&&we(n,r[5])},d:function(r){r&&lt(t)}}}function lgt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K,R,q,F;n=new yj({props:{title:e[4]?"Sort array items":"Sort object keys"}});var O=e[4]&&(e[3].length>1||e[1]===void 0)&&NA(e);function A(P){e[15](P)}var _={showChevron:!0,clearable:!1,items:e[7]};e[2]!==void 0&&(_.value=e[2]),x=new $u({props:_}),rn.push(function(){return da(x,"value",A)});var M=e[5]&&DA(e);return{c:function(){t=et("div"),Pt(n.$$.fragment),r=kt(),o=et("div"),i=et("table"),(a=et("colgroup")).innerHTML='<col width="25%"/> <col width="75%"/>',s=kt(),c=et("tbody"),u=et("tr"),(l=et("th")).textContent="Path",f=kt(),d=et("td"),h=et("input"),v=kt(),O&&O.c(),m=kt(),g=et("tr"),(y=et("th")).textContent="Direction",b=kt(),w=et("td"),Pt(x.$$.fragment),j=kt(),S=et("div"),M&&M.c(),N=kt(),C=et("div"),$=et("button"),B=Gt("Sort"),E(l,"class","svelte-kctj9r"),E(h,"class","jse-path svelte-kctj9r"),E(h,"type","text"),h.readOnly=!0,E(h,"title","Selected path"),h.value=p=cn(e[0])?"(whole document)":ai(e[0]),E(d,"class","svelte-kctj9r"),E(y,"class","svelte-kctj9r"),E(w,"class","svelte-kctj9r"),E(i,"class","svelte-kctj9r"),E(S,"class","jse-space svelte-kctj9r"),E($,"type","button"),E($,"class","jse-primary svelte-kctj9r"),$.disabled=K=!!e[4]&&!e[1],E(C,"class","jse-actions svelte-kctj9r"),E(o,"class","jse-modal-contents svelte-kctj9r"),E(t,"class","jse-modal jse-sort svelte-kctj9r")},m:function(P,D){dt(P,t,D),Mt(n,t,null),V(t,r),V(t,o),V(o,i),V(i,a),V(i,s),V(i,c),V(c,u),V(u,l),V(u,f),V(u,d),V(d,h),V(c,v),O&&O.m(c,null),V(c,m),V(c,g),V(g,y),V(g,b),V(g,w),Mt(x,w,null),V(o,j),V(o,S),M&&M.m(S,null),V(o,N),V(o,C),V(C,$),V($,B),R=!0,q||(F=[Lt($,"click",e[8]),lo(fgt.call(null,$)),lo(o1.call(null,t,e[6]))],q=!0)},p:function(P,D){var T=$e(D,1)[0],H={};16&T&&(H.title=P[4]?"Sort array items":"Sort object keys"),n.$set(H),(!R||1&T&&p!==(p=cn(P[0])?"(whole document)":ai(P[0]))&&h.value!==p)&&(h.value=p),P[4]&&(P[3].length>1||P[1]===void 0)?O?(O.p(P,T),26&T&&L(O,1)):((O=NA(P)).c(),L(O,1),O.m(c,m)):O&&(Bt(),U(O,1,1,function(){O=null}),Ft());var I={};!k&&4&T&&(k=!0,I.value=P[2],fa(function(){return k=!1})),x.$set(I),P[5]?M?M.p(P,T):((M=DA(P)).c(),M.m(S,null)):M&&(M.d(1),M=null),(!R||18&T&&K!==(K=!!P[4]&&!P[1]))&&($.disabled=K)},i:function(P){R||(L(n.$$.fragment,P),L(O),L(x.$$.fragment,P),R=!0)},o:function(P){U(n.$$.fragment,P),U(O),U(x.$$.fragment,P),R=!1},d:function(P){P&&lt(t),At(n),O&&O.d(),At(x),M&&M.d(),q=!1,Fn(F)}}}function fgt(e){e.focus()}function dgt(e,t,n){var r,o,i,a=ho("jsoneditor:SortModal"),s=t.id,c=t.json,u=t.rootPath,l=t.onSort,f=fo("simple-modal").close,d="".concat(s,":").concat(oe(u)),h=fe(c,u),p={value:1,label:"ascending"},v=[p,{value:-1,label:"descending"}],m=lc[d]&&lc[d].selectedProperty||void 0,g=lc[d]&&lc[d].selectedDirection||p,y=void 0;return e.$$set=function(b){"id"in b&&n(9,s=b.id),"json"in b&&n(10,c=b.json),"rootPath"in b&&n(0,u=b.rootPath),"onSort"in b&&n(11,l=b.onSort)},e.$$.update=function(){16&e.$$.dirty&&n(13,o=r&&h!==void 0?$w(h):void 0),8192&e.$$.dirty&&n(3,i=o?o.map(Ld):void 0),10&e.$$.dirty&&m===void 0&&i&&i.length===1&&n(1,m=i[0]),4102&e.$$.dirty&&(n(12,lc[d]={selectedProperty:m,selectedDirection:g},lc),a("store state in memory",d,lc[d]))},n(4,r=Array.isArray(h)),[u,m,g,i,r,y,f,v,function(){try{var b,w;n(5,y=void 0);var x=(b=m)===null||b===void 0?void 0:b.value,k=(w=g)===null||w===void 0?void 0:w.value,j=OB(c,u,x,k);l({operations:j,rootPath:u,itemPath:x,direction:k}),f()}catch(S){n(5,y=S.toString())}},s,c,l,lc,o,function(b){n(1,m=b),n(3,i),n(13,o),n(4,r)},function(b){n(2,g=b)}]}var hgt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,dgt,lgt,qe,{id:9,json:10,rootPath:0,onSort:11},ugt),o}return ot(n)}();function sa(){}function wv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<.9*t)return e.toFixed()+" B";var n=e/t;if(n<.9*t)return n.toFixed(1)+" KB";var r=n/t;if(r<.9*t)return r.toFixed(1)+" MB";var o=r/t;return o<.9*t?o.toFixed(1)+" GB":(o/t).toFixed(1)+" TB"}function pgt(e){var t,n;return t=new r1({props:{items:e[0]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&$e(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function vgt(e,t,n){var r,o,i=t.readOnly,a=i!==void 0&&i,s=t.onFormat,c=t.onCompact,u=t.onSort,l=t.onTransform,f=t.onToggleSearch,d=t.onUndo,h=t.onRedo,p=t.canUndo,v=t.canRedo,m=t.canFormat,g=t.canCompact,y=t.canSort,b=t.canTransform,w=t.onRenderMenu,x={type:"button",icon:pj,title:"Search (Ctrl+F)",className:"jse-search",onClick:f};return e.$$set=function(k){"readOnly"in k&&n(1,a=k.readOnly),"onFormat"in k&&n(2,s=k.onFormat),"onCompact"in k&&n(3,c=k.onCompact),"onSort"in k&&n(4,u=k.onSort),"onTransform"in k&&n(5,l=k.onTransform),"onToggleSearch"in k&&n(6,f=k.onToggleSearch),"onUndo"in k&&n(7,d=k.onUndo),"onRedo"in k&&n(8,h=k.onRedo),"canUndo"in k&&n(9,p=k.canUndo),"canRedo"in k&&n(10,v=k.canRedo),"canFormat"in k&&n(11,m=k.canFormat),"canCompact"in k&&n(12,g=k.canCompact),"canSort"in k&&n(13,y=k.canSort),"canTransform"in k&&n(14,b=k.canTransform),"onRenderMenu"in k&&n(15,w=k.onRenderMenu)},e.$$.update=function(){32702&e.$$.dirty&&n(16,o=a?[x,{type:"space"}]:[{type:"button",icon:Bw,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:s,disabled:a||!m},{type:"button",icon:Qvt,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:c,disabled:a||!g},{type:"separator"},{type:"button",icon:Y0,title:"Sort",className:"jse-sort",onClick:u,disabled:a||!y},{type:"button",icon:G0,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:l,disabled:a||!b},x,{type:"separator"},{type:"button",icon:hj,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!p},{type:"button",icon:dj,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!v},{type:"space"}]),98304&e.$$.dirty&&n(0,r=w(o)||o)},[r,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,o]}var mgt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,vgt,pgt,qe,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),o}return ot(n)}(),Xn=function(){function e(){rt(this,e)}return ot(e,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,n,r){var o=[];return this.decompose(0,t,o,2),r.length&&r.decompose(0,r.length,o,3),this.decompose(n,this.length,o,1),jm.from(o,this.length-(n-t)+r.length)}},{key:"append",value:function(t){return this.replace(this.length,this.length,t)}},{key:"slice",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,r=[];return this.decompose(t,n,r,0),jm.from(r,n-t)}},{key:"eq",value:function(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;for(var n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),o=new fh(this),i=new fh(t),a=n,s=n;;){if(o.next(a),i.next(a),a=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(s+=o.value.length,o.done||s>=r)return!0}}},{key:"iter",value:function(){return new fh(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:1)}},{key:"iterRange",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length;return new LB(this,t,n)}},{key:"iterLines",value:function(t,n){var r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);var o=this.line(t).from;r=this.iterRange(o,Math.max(o,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new BB(r)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length!=1||t[0]?t.length<=32?new ma(t):jm.from(ma.split(t,[])):e.empty}}]),e}(),ma=function(e){Tt(n,Xn);var t=Rt(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(a){var s,c=-1,u=ht(a);try{for(u.s();!(s=u.n()).done;)c+=s.value.length+1}catch(l){u.e(l)}finally{u.f()}return c}(r);return rt(this,n),(o=t.call(this)).text=r,o.length=i,o}return ot(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(r,o,i,a){for(var s=0;;s++){var c=this.text[s],u=a+c.length;if((o?i:u)>=r)return new ggt(a,u,i,c);a=u+1,i++}}},{key:"decompose",value:function(r,o,i,a){var s=r<=0&&o>=this.length?this:new n(zA(this.text,r,o),Math.min(o,this.length)-Math.max(0,r));if(1&a){var c=i.pop(),u=_m(s.text,c.text.slice(),0,s.length);if(u.length<=32)i.push(new n(u,c.length+s.length));else{var l=u.length>>1;i.push(new n(u.slice(0,l)),new n(u.slice(l)))}}else i.push(s)}},{key:"replace",value:function(r,o,i){if(!(i instanceof n))return kn(ln(n.prototype),"replace",this).call(this,r,o,i);var a=_m(this.text,_m(i.text,zA(this.text,0,r)),o),s=this.length+i.length-(o-r);return a.length<=32?new n(a,s):jm.from(n.split(a,[]),s)}},{key:"sliceString",value:function(r){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`
106
+ `,a="",s=0,c=0;s<=o&&c<this.text.length;c++){var u=this.text[c],l=s+u.length;s>r&&c&&(a+=i),r<l&&o>s&&(a+=u.slice(Math.max(0,r-s),o-s)),s=l+1}return a}},{key:"flatten",value:function(r){var o,i=ht(this.text);try{for(i.s();!(o=i.n()).done;){var a=o.value;r.push(a)}}catch(s){i.e(s)}finally{i.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(r,o){var i,a=[],s=-1,c=ht(r);try{for(c.s();!(i=c.n()).done;){var u=i.value;a.push(u),s+=u.length+1,a.length==32&&(o.push(new n(a,s)),a=[],s=-1)}}catch(l){c.e(l)}finally{c.f()}return s>-1&&o.push(new n(a,s)),o}}]),n}(),jm=function(e){Tt(n,Xn);var t=Rt(n);function n(r,o){var i;rt(this,n),(i=t.call(this)).children=r,i.length=o,i.lines=0;var a,s=ht(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;i.lines+=c.lines}}catch(u){s.e(u)}finally{s.f()}return i}return ot(n,[{key:"lineInner",value:function(r,o,i,a){for(var s=0;;s++){var c=this.children[s],u=a+c.length,l=i+c.lines-1;if((o?l:u)>=r)return c.lineInner(r,o,i,a);a=u+1,i=l+1}}},{key:"decompose",value:function(r,o,i,a){for(var s=0,c=0;c<=o&&s<this.children.length;s++){var u=this.children[s],l=c+u.length;if(r<=l&&o>=c){var f=a&((c<=r?1:0)|(l>=o?2:0));c>=r&&l<=o&&!f?i.push(u):u.decompose(r-c,o-c,i,f)}c=l+1}}},{key:"replace",value:function(r,o,i){if(i.lines<this.lines)for(var a=0,s=0;a<this.children.length;a++){var c=this.children[a],u=s+c.length;if(r>=s&&o<=u){var l=c.replace(r-s,o-s,i),f=this.lines-c.lines+l.lines;if(l.lines<f>>4&&l.lines>f>>6){var d=this.children.slice();return d[a]=l,new n(d,this.length-(o-r)+i.length)}return kn(ln(n.prototype),"replace",this).call(this,s,u,l)}s=u+1}return kn(ln(n.prototype),"replace",this).call(this,r,o,i)}},{key:"sliceString",value:function(r){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`
107
+ `,a="",s=0,c=0;s<this.children.length&&c<=o;s++){var u=this.children[s],l=c+u.length;c>r&&s&&(a+=i),r<l&&o>c&&(a+=u.sliceString(r-c,o-c,i)),c=l+1}return a}},{key:"flatten",value:function(r){var o,i=ht(this.children);try{for(i.s();!(o=i.n()).done;)o.value.flatten(r)}catch(a){i.e(a)}finally{i.f()}}},{key:"scanIdentical",value:function(r,o){if(!(r instanceof n))return 0;for(var i=0,a=$e(o>0?[0,0,this.children.length,r.children.length]:[this.children.length-1,r.children.length-1,-1,-1],4),s=a[0],c=a[1],u=a[2],l=a[3];;s+=o,c+=o){if(s==u||c==l)return i;var f=this.children[s],d=r.children[c];if(f!=d)return i+f.scanIdentical(d,o);i+=f.length+1}}}],[{key:"from",value:function(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.reduce(function(k,j){return k+j.length+1},-1),a=0,s=ht(r);try{for(s.s();!(o=s.n()).done;)a+=o.value.lines}catch(k){s.e(k)}finally{s.f()}if(a<32){var c,u=[],l=ht(r);try{for(l.s();!(c=l.n()).done;)c.value.flatten(u)}catch(k){l.e(k)}finally{l.f()}return new ma(u,i)}var f=Math.max(32,a>>5),d=f<<1,h=f>>1,p=[],v=0,m=-1,g=[];function y(k){var j;if(k.lines>d&&k instanceof n){var S,N=ht(k.children);try{for(N.s();!(S=N.n()).done;)y(S.value)}catch(C){N.e(C)}finally{N.f()}}else k.lines>h&&(v>h||!v)?(b(),p.push(k)):k instanceof ma&&v&&(j=g[g.length-1])instanceof ma&&k.lines+j.lines<=32?(v+=k.lines,m+=k.length+1,g[g.length-1]=new ma(j.text.concat(k.text),j.length+1+k.length)):(v+k.lines>f&&b(),v+=k.lines,m+=k.length+1,g.push(k))}function b(){v!=0&&(p.push(g.length==1?g[0]:n.from(g,m)),m=-1,v=g.length=0)}var w,x=ht(r);try{for(x.s();!(w=x.n()).done;)y(w.value)}catch(k){x.e(k)}finally{x.f()}return b(),p.length==1?p[0]:new n(p,i)}}]),n}();function _m(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1e9,o=0,i=0,a=!0;i<e.length&&o<=r;i++){var s=e[i],c=o+s.length;c>=n&&(c>r&&(s=s.slice(0,r-o)),o<n&&(s=s.slice(n-o)),a?(t[t.length-1]+=s,a=!1):t.push(s)),o=c+1}return t}function zA(e,t,n){return _m(e,[""],t,n)}Xn.empty=new ma([""],0);var fh=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rt(this,e),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof ma?t.text.length:t.children.length)<<1]}return ot(e,[{key:"nextInner",value:function(t,n){for(this.done=this.lineBreak=!1;;){var r=this.nodes.length-1,o=this.nodes[r],i=this.offsets[r],a=i>>1,s=o instanceof ma?o.text.length:o.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
108
+ `,this;t--}else if(o instanceof ma){var c=o.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,c.length>Math.max(0,t))return this.value=t==0?c:n>0?c.slice(t):c.slice(0,c.length-t),this;t-=c.length}else{var u=o.children[a+(n<0?-1:0)];t>u.length?(t-=u.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(u),this.offsets.push(n>0?1:(u instanceof ma?u.text.length:u.children.length)<<1))}}}},{key:"next",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}]),e}(),LB=function(){function e(t,n,r){rt(this,e),this.value="",this.done=!1,this.cursor=new fh(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}return ot(e,[{key:"nextInner",value:function(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);var r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;var o=this.cursor.next(t).value;return this.pos+=(o.length+t)*n,this.value=o.length<=r?o:n<0?o.slice(o.length-r):o.slice(0,r),this.done=!this.value,this}},{key:"next",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&this.value!=""}}]),e}(),BB=function(){function e(t){rt(this,e),this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}return ot(e,[{key:"next",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.inner.next(t),r=n.done,o=n.lineBreak,i=n.value;return r?(this.done=!0,this.value=""):o?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),e}();typeof Symbol<"u"&&(Xn.prototype[Symbol.iterator]=function(){return this.iter()},fh.prototype[Symbol.iterator]=LB.prototype[Symbol.iterator]=BB.prototype[Symbol.iterator]=function(){return this});for(var ggt=function(){function e(t,n,r,o){rt(this,e),this.from=t,this.to=n,this.number=r,this.text=o}return ot(e,[{key:"length",get:function(){return this.to-this.from}}]),e}(),af="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(e){return e?parseInt(e,36):1}),xv=1;xv<af.length;xv++)af[xv]+=af[xv-1];function ygt(e){for(var t=1;t<af.length;t+=2)if(af[t]>e)return af[t-1]<=e;return!1}function LA(e){return e>=127462&&e<=127487}var BA=8205;function Po(e,t){return(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?FB:bgt)(e,t,!(arguments.length>3&&arguments[3]!==void 0)||arguments[3])}function FB(e,t,n){if(t==e.length)return t;t&&qB(e.charCodeAt(t))&&HB(e.charCodeAt(t-1))&&t--;var r=wo(e,t);for(t+=Pi(r);t<e.length;){var o=wo(e,t);if(r==BA||o==BA||n&&ygt(o))t+=Pi(o),r=o;else{if(!LA(o))break;for(var i=0,a=t-2;a>=0&&LA(wo(e,a));)i++,a-=2;if(i%2==0)break;t+=2}}return t}function bgt(e,t,n){for(;t>0;){var r=FB(e,t-2,n);if(r<t)return r;t--}return 0}function qB(e){return e>=56320&&e<57344}function HB(e){return e>=55296&&e<56320}function wo(e,t){var n=e.charCodeAt(t);if(!HB(n)||t+1==e.length)return n;var r=e.charCodeAt(t+1);return qB(r)?r-56320+(n-55296<<10)+65536:n}function Sj(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Pi(e){return e<65536?1:2}var Ww=/\r\n?|\n/,Fo=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Fo||(Fo={})),sf=function(){function e(t){rt(this,e),this.sections=t}return ot(e,[{key:"length",get:function(){for(var t=0,n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}},{key:"newLength",get:function(){for(var t=0,n=0;n<this.sections.length;n+=2){var r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}},{key:"empty",get:function(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}},{key:"iterGaps",value:function(t){for(var n=0,r=0,o=0;n<this.sections.length;){var i=this.sections[n++],a=this.sections[n++];a<0?(t(r,o,i),o+=i):o+=a,r+=i}}},{key:"iterChangedRanges",value:function(t){Kw(this,t,arguments.length>1&&arguments[1]!==void 0&&arguments[1])}},{key:"invertedDesc",get:function(){for(var t=[],n=0;n<this.sections.length;){var r=this.sections[n++],o=this.sections[n++];o<0?t.push(r,o):t.push(o,r)}return new e(t)}},{key:"composeDesc",value:function(t){return this.empty?t:t.empty?this:VB(this,t)}},{key:"mapDesc",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return t.empty?this:Jw(this,t,n)}},{key:"mapPos",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fo.Simple,o=0,i=0,a=0;a<this.sections.length;){var s=this.sections[a++],c=this.sections[a++],u=o+s;if(c<0){if(u>t)return i+(t-o);i+=s}else{if(r!=Fo.Simple&&u>=t&&(r==Fo.TrackDel&&o<t&&u>t||r==Fo.TrackBefore&&o<t||r==Fo.TrackAfter&&u>t))return null;if(u>t||u==t&&n<0&&!s)return t==o||n<0?i:i+c;i+=c}o=u}if(t>o)throw new RangeError("Position ".concat(t," is out of range for changeset of length ").concat(o));return i}},{key:"touchesRange",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=0,o=0;r<this.sections.length&&o<=n;){var i=o+this.sections[r++];if(this.sections[r++]>=0&&o<=n&&i>=t)return!(o<t&&i>n)||"cover";o=i}return!1}},{key:"toString",value:function(){for(var t="",n=0;n<this.sections.length;){var r=this.sections[n++],o=this.sections[n++];t+=(t?" ":"")+r+(o>=0?":"+o:"")}return t}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(t){if(!Array.isArray(t)||t.length%2||t.some(function(n){return typeof n!="number"}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new e(t)}},{key:"create",value:function(t){return new e(t)}}]),e}(),Oa=function(e){Tt(n,sf);var t=Rt(n);function n(r,o){var i;return rt(this,n),(i=t.call(this,r)).inserted=o,i}return ot(n,[{key:"apply",value:function(r){if(this.length!=r.length)throw new RangeError("Applying change set to a document with the wrong length");return Kw(this,function(o,i,a,s,c){return r=r.replace(a,a+(i-o),c)},!1),r}},{key:"mapDesc",value:function(r){return Jw(this,r,arguments.length>1&&arguments[1]!==void 0&&arguments[1],!0)}},{key:"invert",value:function(r){for(var o=this.sections.slice(),i=[],a=0,s=0;a<o.length;a+=2){var c=o[a],u=o[a+1];if(u>=0){o[a]=u,o[a+1]=c;for(var l=a>>1;i.length<l;)i.push(Xn.empty);i.push(c?r.slice(s,s+c):Xn.empty)}s+=c}return new n(o,i)}},{key:"compose",value:function(r){return this.empty?r:r.empty?this:VB(this,r,!0)}},{key:"map",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return r.empty?this:Jw(this,r,o,!0)}},{key:"iterChanges",value:function(r){Kw(this,r,arguments.length>1&&arguments[1]!==void 0&&arguments[1])}},{key:"desc",get:function(){return sf.create(this.sections)}},{key:"filter",value:function(r){var o=[],i=[],a=[],s=new Kh(this);t:for(var c=0,u=0;;){for(var l=c==r.length?1e9:r[c++];u<l||u==l&&s.len==0;){if(s.done)break t;var f=Math.min(s.len,l-u);Oo(a,f,-1);var d=s.ins==-1?-1:s.off==0?s.ins:0;Oo(o,f,d),d>0&&jc(i,o,s.text),s.forward(f),u+=f}for(var h=r[c++];u<h;){if(s.done)break t;var p=Math.min(s.len,h-u);Oo(o,p,-1),Oo(a,p,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(p),u+=p}}return{changes:new n(o,i),filtered:sf.create(a)}}},{key:"toJSON",value:function(){for(var r=[],o=0;o<this.sections.length;o+=2){var i=this.sections[o],a=this.sections[o+1];a<0?r.push(i):a==0?r.push([i]):r.push([i].concat(this.inserted[o>>1].toJSON()))}return r}}],[{key:"of",value:function(r,o,i){var a=[],s=[],c=0,u=null;function l(){if(arguments.length>0&&arguments[0]!==void 0&&arguments[0]||a.length){c<o&&Oo(a,o-c,-1);var f=new n(a,s);u=u?u.compose(f.map(u)):f,a=[],s=[],c=0}}return function f(d){if(Array.isArray(d)){var h,p=ht(d);try{for(p.s();!(h=p.n()).done;)f(h.value)}catch(x){p.e(x)}finally{p.f()}}else if(d instanceof n){if(d.length!=o)throw new RangeError("Mismatched change set length (got ".concat(d.length,", expected ").concat(o,")"));l(),u=u?u.compose(d.map(u)):d}else{var v=d.from,m=d.to,g=m===void 0?v:m,y=d.insert;if(v>g||v<0||g>o)throw new RangeError("Invalid change range ".concat(v," to ").concat(g," (in doc of length ").concat(o,")"));var b=y?typeof y=="string"?Xn.of(y.split(i||Ww)):y:Xn.empty,w=b.length;if(v==g&&w==0)return;v<c&&l(),v>c&&Oo(a,v-c,-1),Oo(a,g-v,w),jc(s,a,b),c=g}}(r),l(!u),u}},{key:"empty",value:function(r){return new n(r?[r,-1]:[],[])}},{key:"fromJSON",value:function(r){if(!Array.isArray(r))throw new RangeError("Invalid JSON representation of ChangeSet");for(var o=[],i=[],a=0;a<r.length;a++){var s=r[a];if(typeof s=="number")o.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some(function(c,u){return u&&typeof c!="string"}))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)o.push(s[0],0);else{for(;i.length<a;)i.push(Xn.empty);i[a]=Xn.of(s.slice(1)),o.push(s[0],i[a].length)}}}return new n(o,i)}},{key:"createSet",value:function(r,o){return new n(r,o)}}]),n}();function Oo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(t==0&&n<=0)){var o=e.length-2;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:t==0&&e[o]==0?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}}function jc(e,t,n){if(n.length!=0){var r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(Xn.empty);e.push(n)}}}function Kw(e,t,n){for(var r=e.inserted,o=0,i=0,a=0;a<e.sections.length;){var s=e.sections[a++],c=e.sections[a++];if(c<0)o+=s,i+=s;else{for(var u=o,l=i,f=Xn.empty;u+=s,l+=c,c&&r&&(f=f.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],c=e.sections[a++];t(o,u,i,l,f),o=u,i=l}}}function Jw(e,t,n){for(var r=[],o=arguments.length>3&&arguments[3]!==void 0&&arguments[3]?[]:null,i=new Kh(e),a=new Kh(t),s=-1;;)if(i.ins==-1&&a.ins==-1){var c=Math.min(i.len,a.len);Oo(r,c,-1),i.forward(c),a.forward(c)}else if(a.ins>=0&&(i.ins<0||s==i.i||i.off==0&&(a.len<i.len||a.len==i.len&&!n))){var u=a.len;for(Oo(r,a.ins,-1);u;){var l=Math.min(i.len,u);i.ins>=0&&s<i.i&&i.len<=l&&(Oo(r,0,i.ins),o&&jc(o,r,i.text),s=i.i),i.forward(l),u-=l}a.next()}else{if(!(i.ins>=0)){if(i.done&&a.done)return o?Oa.createSet(r,o):sf.create(r);throw new Error("Mismatched change set lengths")}for(var f=0,d=i.len;d;)if(a.ins==-1){var h=Math.min(d,a.len);f+=h,d-=h,a.forward(h)}else{if(!(a.ins==0&&a.len<d))break;d-=a.len,a.next()}Oo(r,f,s<i.i?i.ins:0),o&&s<i.i&&jc(o,r,i.text),s=i.i,i.forward(i.len-d)}}function VB(e,t){for(var n=[],r=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?[]:null,o=new Kh(e),i=new Kh(t),a=!1;;){if(o.done&&i.done)return r?Oa.createSet(n,r):sf.create(n);if(o.ins==0)Oo(n,o.len,0,a),o.next();else if(i.len!=0||i.done){if(o.done||i.done)throw new Error("Mismatched change set lengths");var s=Math.min(o.len2,i.len),c=n.length;if(o.ins==-1){var u=i.ins==-1?-1:i.off?0:i.ins;Oo(n,s,u,a),r&&u&&jc(r,n,i.text)}else i.ins==-1?(Oo(n,o.off?0:o.len,s,a),r&&jc(r,n,o.textBit(s))):(Oo(n,o.off?0:o.len,i.off?0:i.ins,a),r&&!i.off&&jc(r,n,i.text));a=(o.ins>s||i.ins>=0&&i.len>s)&&(a||n.length>c),o.forward2(s),i.forward(s)}else Oo(n,0,i.ins,a),r&&jc(r,n,i.text),i.next()}}var Kh=function(){function e(t){rt(this,e),this.set=t,this.i=0,this.next()}return ot(e,[{key:"next",value:function(){var t=this.set.sections;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}},{key:"done",get:function(){return this.ins==-2}},{key:"len2",get:function(){return this.ins<0?this.len:this.ins}},{key:"text",get:function(){var t=this.set.inserted,n=this.i-2>>1;return n>=t.length?Xn.empty:t[n]}},{key:"textBit",value:function(t){var n=this.set.inserted,r=this.i-2>>1;return r>=n.length&&!t?Xn.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}},{key:"forward",value:function(t){t==this.len?this.next():(this.len-=t,this.off+=t)}},{key:"forward2",value:function(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}]),e}(),kv=function(){function e(t,n,r){rt(this,e),this.from=t,this.to=n,this.flags=r}return ot(e,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var t=3&this.flags;return t==3?null:t}},{key:"goalColumn",get:function(){var t=this.flags>>5;return t==33554431?void 0:t}},{key:"map",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;return this.empty?n=r=t.mapPos(this.from,o):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new e(n,r,this.flags)}},{key:"extend",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;if(t<=this.anchor&&n>=this.anchor)return Jt.range(t,n);var r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Jt.range(this.anchor,r)}},{key:"eq",value:function(t){return this.anchor==t.anchor&&this.head==t.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Jt.range(t.anchor,t.head)}},{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}(),Jt=function(){function e(t,n){rt(this,e),this.ranges=t,this.mainIndex=n}return ot(e,[{key:"map",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;return t.empty?this:e.create(this.ranges.map(function(r){return r.map(t,n)}),this.mainIndex)}},{key:"eq",value:function(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n]))return!1;return!0}},{key:"main",get:function(){return this.ranges[this.mainIndex]}},{key:"asSingle",value:function(){return this.ranges.length==1?this:new e([this.main],0)}},{key:"addRange",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(t){return t.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new e(t.ranges.map(function(n){return kv.fromJSON(n)}),t.main)}},{key:"single",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return new e([e.range(t,n)],0)}},{key:"create",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(t.length==0)throw new RangeError("A selection needs at least one range");for(var r=0,o=0;o<t.length;o++){var i=t[o];if(i.empty?i.from<=r:i.from<r)return e.normalized(t.slice(),n);r=i.to}return new e(t,n)}},{key:"cursor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return kv.create(t,t,(n==0?0:n<0?4:8)|(r==null?3:Math.min(2,r))|(o??33554431)<<5)}},{key:"range",value:function(t,n,r,o){var i=(r??33554431)<<5|(o==null?3:Math.min(2,o));return n<t?kv.create(n,t,24|i):kv.create(t,n,(n>t?4:0)|i)}},{key:"normalized",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=t[n];t.sort(function(u,l){return u.from-l.from}),n=t.indexOf(r);for(var o=1;o<t.length;o++){var i=t[o],a=t[o-1];if(i.empty?i.from<=a.to:i.from<a.to){var s=a.from,c=Math.max(i.to,a.to);o<=n&&n--,t.splice(--o,2,i.anchor>i.head?e.range(c,s):e.range(s,c))}}return new e(t,n)}}]),e}();function UB(e,t){var n,r=ht(e.ranges);try{for(r.s();!(n=r.n()).done;)if(n.value.to>t)throw new RangeError("Selection points outside of document")}catch(o){r.e(o)}finally{r.f()}}var $j=0,xe=function(){function e(t,n,r,o,i){rt(this,e),this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=o,this.id=$j++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}return ot(e,[{key:"of",value:function(t){return new Sm([],this,0,t)}},{key:"compute",value:function(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Sm(t,this,1,n)}},{key:"computeN",value:function(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Sm(t,this,2,n)}},{key:"from",value:function(t,n){return n||(n=function(r){return r}),this.compute([t],function(r){return n(r.field(t))})}}],[{key:"define",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new e(t.combine||function(n){return n},t.compareInput||function(n,r){return n===r},t.compare||(t.combine?function(n,r){return n===r}:Gw),!!t.static,t.enables)}}]),e}();function Gw(e,t){return e==t||e.length==t.length&&e.every(function(n,r){return n===t[r]})}var Sm=function(){function e(t,n,r,o){rt(this,e),this.dependencies=t,this.facet=n,this.type=r,this.value=o,this.id=$j++}return ot(e,[{key:"dynamicSlot",value:function(t){var n,r,o=this,i=this.value,a=this.facet.compareInput,s=this.id,c=t[s]>>1,u=this.type==2,l=!1,f=!1,d=[],h=ht(this.dependencies);try{for(h.s();!(r=h.n()).done;){var p=r.value;p=="doc"?l=!0:p=="selection"?f=!0:!(1&((n=t[p.id])!==null&&n!==void 0?n:1))&&d.push(t[p.id])}}catch(v){h.e(v)}finally{h.f()}return{create:function(v){return v.values[c]=i(v),1},update:function(v,m){if(l&&m.docChanged||f&&(m.docChanged||m.selection)||Qw(v,d)){var g=i(v);if(u?!FA(g,v.values[c],a):!a(g,v.values[c]))return v.values[c]=g,1}return 0},reconfigure:function(v,m){var g,y=m.config.address[s];if(y!=null){var b=Pg(m,y);if(o.dependencies.every(function(w){return w instanceof xe?m.facet(w)===v.facet(w):!(w instanceof _o)||m.field(w,!1)==v.field(w,!1)})||(u?FA(g=i(v),b,a):a(g=i(v),b)))return v.values[c]=b,0}else g=i(v);return v.values[c]=g,1}}}}]),e}();function FA(e,t,n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Qw(e,t){var n,r=!1,o=ht(t);try{for(o.s();!(n=o.n()).done;)1&dh(e,n.value)&&(r=!0)}catch(i){o.e(i)}finally{o.f()}return r}var qA=xe.define({static:!0}),_o=function(){function e(t,n,r,o,i){rt(this,e),this.id=t,this.createF=n,this.updateF=r,this.compareF=o,this.spec=i,this.provides=void 0}return ot(e,[{key:"create",value:function(t){var n=this,r=t.facet(qA).find(function(o){return o.field==n});return((r==null?void 0:r.create)||this.createF)(t)}},{key:"slot",value:function(t){var n=this,r=t[this.id]>>1;return{create:function(o){return o.values[r]=n.create(o),1},update:function(o,i){var a=o.values[r],s=n.updateF(a,i);return n.compareF(a,s)?0:(o.values[r]=s,1)},reconfigure:function(o,i){return i.config.address[n.id]!=null?(o.values[r]=i.field(n),0):(o.values[r]=n.create(o),1)}}}},{key:"init",value:function(t){return[this,qA.of({field:this,create:t})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(t){var n=new e($j++,t.create,t.update,t.compare||function(r,o){return r===o},t);return t.provide&&(n.provides=t.provide(n)),n}}]),e}(),wgt=4,xgt=3,Yw=2,kgt=1;function yd(e){return function(t){return new WB(t,e)}}var ad={highest:yd(0),high:yd(kgt),default:yd(Yw),low:yd(xgt),lowest:yd(wgt)},WB=ot(function e(t,n){rt(this,e),this.inner=t,this.prec=n}),Cu=function(){function e(){rt(this,e)}return ot(e,[{key:"of",value:function(t){return new Xw(this,t)}},{key:"reconfigure",value:function(t){return e.reconfigure.of({compartment:this,extension:t})}},{key:"get",value:function(t){return t.config.compartments.get(this)}}]),e}(),Xw=ot(function e(t,n){rt(this,e),this.compartment=t,this.inner=n}),HA=function(){function e(t,n,r,o,i,a){for(rt(this,e),this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=o,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}return ot(e,[{key:"staticFacet",value:function(t){var n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}}],[{key:"resolve",value:function(t,n,r){var o,i=[],a=Object.create(null),s=new Map,c=ht(function(w,x,k){var j=[[],[],[],[],[]],S=new Map;function N(C,$){var B=S.get(C);if(B!=null){if(B<=$)return;var K=j[B].indexOf(C);K>-1&&j[B].splice(K,1),C instanceof Xw&&k.delete(C.compartment)}if(S.set(C,$),Array.isArray(C)){var R,q=ht(C);try{for(q.s();!(R=q.n()).done;)N(R.value,$)}catch(A){q.e(A)}finally{q.f()}}else if(C instanceof Xw){if(k.has(C.compartment))throw new RangeError("Duplicate use of compartment in extensions");var F=x.get(C.compartment)||C.inner;k.set(C.compartment,F),N(F,$)}else if(C instanceof WB)N(C.inner,C.prec);else if(C instanceof _o)j[$].push(C),C.provides&&N(C.provides,$);else if(C instanceof Sm)j[$].push(C),C.facet.extensions&&N(C.facet.extensions,Yw);else{var O=C.extension;if(!O)throw new Error("Unrecognized extension value in extension set (".concat(C,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));N(O,$)}}return N(w,Yw),j.reduce(function(C,$){return C.concat($)})}(t,n,s));try{for(c.s();!(o=c.n()).done;){var u=o.value;u instanceof _o?i.push(u):(a[u.facet.id]||(a[u.facet.id]=[])).push(u)}}catch(w){c.e(w)}finally{c.f()}for(var l=Object.create(null),f=[],d=[],h=function(){var w=v[p];l[w.id]=d.length<<1,d.push(function(x){return w.slot(x)})},p=0,v=i;p<v.length;p++)h();var m=r==null?void 0:r.config.facets,g=function(){var w=a[y],x=w[0].facet,k=m&&m[y]||[];if(w.every(function($){return $.type==0}))if(l[x.id]=f.length<<1|1,Gw(k,w))f.push(r.facet(x));else{var j=x.combine(w.map(function($){return $.value}));f.push(r&&x.compare(j,r.facet(x))?r.facet(x):j)}else{var S,N=ht(w);try{var C=function(){var $=S.value;$.type==0?(l[$.id]=f.length<<1|1,f.push($.value)):(l[$.id]=d.length<<1,d.push(function(B){return $.dynamicSlot(B)}))};for(N.s();!(S=N.n()).done;)C()}catch($){N.e($)}finally{N.f()}l[x.id]=d.length<<1,d.push(function($){return function(B,K,R){var q=R.map(function(M){return B[M.id]}),F=R.map(function(M){return M.type}),O=q.filter(function(M){return!(1&M)}),A=B[K.id]>>1;function _(M){for(var P=[],D=0;D<q.length;D++){var T=Pg(M,q[D]);if(F[D]==2){var H,I=ht(T);try{for(I.s();!(H=I.n()).done;){var ft=H.value;P.push(ft)}}catch(tt){I.e(tt)}finally{I.f()}}else P.push(T)}return K.combine(P)}return{create:function(M){var P,D=ht(q);try{for(D.s();!(P=D.n()).done;)dh(M,P.value)}catch(T){D.e(T)}finally{D.f()}return M.values[A]=_(M),1},update:function(M,P){if(!Qw(M,O))return 0;var D=_(M);return K.compare(D,M.values[A])?0:(M.values[A]=D,1)},reconfigure:function(M,P){var D=Qw(M,q),T=P.config.facets[K.id],H=P.facet(K);if(T&&!D&&Gw(R,T))return M.values[A]=H,0;var I=_(M);return K.compare(I,H)?(M.values[A]=H,0):(M.values[A]=I,1)}}}($,x,w)})}};for(var y in a)g();var b=d.map(function(w){return w(l)});return new e(t,s,b,l,f,a)}}]),e}();function dh(e,t){if(1&t)return 2;var n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;var o=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|o}function Pg(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}var KB=xe.define(),JB=xe.define({combine:function(e){return e.some(function(t){return t})},static:!0}),GB=xe.define({combine:function(e){return e.length?e[0]:void 0},static:!0}),QB=xe.define(),YB=xe.define(),XB=xe.define(),ZB=xe.define({combine:function(e){return!!e.length&&e[0]}}),Ns=function(){function e(t,n){rt(this,e),this.type=t,this.value=n}return ot(e,null,[{key:"define",value:function(){return new jgt}}]),e}(),jgt=function(){function e(){rt(this,e)}return ot(e,[{key:"of",value:function(t){return new Ns(this,t)}}]),e}(),_gt=function(){function e(t){rt(this,e),this.map=t}return ot(e,[{key:"of",value:function(t){return new bn(this,t)}}]),e}(),bn=function(){function e(t,n){rt(this,e),this.type=t,this.value=n}return ot(e,[{key:"map",value:function(t){var n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}},{key:"is",value:function(t){return this.type==t}}],[{key:"define",value:function(){return new _gt((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).map||function(t){return t})}},{key:"mapEffects",value:function(t,n){if(!t.length)return t;var r,o=[],i=ht(t);try{for(i.s();!(r=i.n()).done;){var a=r.value.map(n);a&&o.push(a)}}catch(s){i.e(s)}finally{i.f()}return o}}]),e}();bn.reconfigure=bn.define(),bn.appendConfig=bn.define();var ti=function(){function e(t,n,r,o,i,a){rt(this,e),this.startState=t,this.changes=n,this.selection=r,this.effects=o,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,r&&UB(r,n.newLength),i.some(function(s){return s.type==e.time})||(this.annotations=i.concat(e.time.of(Date.now())))}return ot(e,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(t){var n,r=ht(this.annotations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.type==t)return o.value}}catch(i){r.e(i)}finally{r.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(t){var n=this.annotation(e.userEvent);return!(!n||!(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}],[{key:"create",value:function(t,n,r,o,i,a){return new e(t,n,r,o,i,a)}}]),e}();function Sgt(e,t){for(var n=[],r=0,o=0;;){var i=void 0,a=void 0;if(r<e.length&&(o==t.length||t[o]>=e[r]))i=e[r++],a=e[r++];else{if(!(o<t.length))return n;i=t[o++],a=t[o++]}!n.length||n[n.length-1]<i?n.push(i,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function VA(e,t,n){var r,o,i,a;return n?(o=t.changes,i=Oa.empty(t.changes.length),a=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(o)),{changes:a,selection:t.selection?t.selection.map(i):(r=e.selection)===null||r===void 0?void 0:r.map(o),effects:bn.mapEffects(e.effects,o).concat(bn.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Sy(e,t,n){var r=t.selection,o=cf(t.annotations);return t.userEvent&&(o=o.concat(ti.userEvent.of(t.userEvent))),{changes:t.changes instanceof Oa?t.changes:Oa.of(t.changes||[],n,e.facet(GB)),selection:r&&(r instanceof Jt?r:Jt.single(r.anchor,r.head)),effects:cf(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function tF(e,t,n){var r=Sy(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(var o=1;o<t.length;o++){t[o].filter===!1&&(n=!1);var i=!!t[o].sequential;r=VA(r,Sy(e,t[o],i?r.changes.newLength:e.doc.length),i)}var a=ti.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(s){for(var c=s.startState,u=c.facet(XB),l=s,f=u.length-1;f>=0;f--){var d=u[f](s);d&&Object.keys(d).length&&(l=VA(l,Sy(c,d,s.changes.newLength),!0))}return l==s?s:ti.create(c,s.changes,s.selection,l.effects,l.annotations,l.scrollIntoView)}(n?function(s){var c,u=s.startState,l=!0,f=ht(u.facet(QB));try{for(f.s();!(c=f.n()).done;){var d=(0,c.value)(s);if(d===!1){l=!1;break}Array.isArray(d)&&(l=l===!0?d:Sgt(l,d))}}catch(b){f.e(b)}finally{f.f()}if(l!==!0){var h,p;if(l===!1)p=s.changes.invertedDesc,h=Oa.empty(u.doc.length);else{var v=s.changes.filter(l);h=v.changes,p=v.filtered.mapDesc(v.changes).invertedDesc}s=ti.create(u,h,s.selection&&s.selection.map(p),bn.mapEffects(s.effects,p),s.annotations,s.scrollIntoView)}for(var m=u.facet(YB),g=m.length-1;g>=0;g--){var y=m[g](s);s=y instanceof ti?y:Array.isArray(y)&&y.length==1&&y[0]instanceof ti?y[0]:tF(u,cf(y),!1)}return s}(a):a)}ti.time=Ns.define(),ti.userEvent=Ns.define(),ti.addToHistory=Ns.define(),ti.remote=Ns.define();var $gt=[];function cf(e){return e==null?$gt:Array.isArray(e)?e:[e]}var Zw,Sr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Sr||(Sr={})),Cgt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{Zw=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Egt(e){return function(t){if(!/\S/.test(t))return Sr.Space;if(function(r){if(Zw)return Zw.test(r);for(var o=0;o<r.length;o++){var i=r[o];if(/\w/.test(i)||i>"€"&&(i.toUpperCase()!=i.toLowerCase()||Cgt.test(i)))return!0}return!1}(t))return Sr.Word;for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Sr.Word;return Sr.Other}}var fr=function(){function e(t,n,r,o,i,a){rt(this,e),this.config=t,this.doc=n,this.selection=r,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(var s=0;s<this.config.dynamicSlots.length;s++)dh(this,s<<1);this.computeSlot=null}return ot(e,[{key:"field",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.config.address[t.id];if(r!=null)return dh(this,r),Pg(this,r);if(n)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tF(this,n,!0)}},{key:"applyTransaction",value:function(t){var n,r,o=this,i=this.config,a=i,s=a.base,c=a.compartments,u=ht(t.effects);try{for(u.s();!(n=u.n()).done;){var l=n.value;l.is(Cu.reconfigure)?(i&&(c=new Map,i.compartments.forEach(function(f,d){return c.set(d,f)}),i=null),c.set(l.value.compartment,l.value.extension)):l.is(bn.reconfigure)?(i=null,s=l.value):l.is(bn.appendConfig)&&(i=null,s=cf(s).concat(l.value))}}catch(f){u.e(f)}finally{u.f()}i?r=t.startState.values.slice():r=new e(i=HA.resolve(s,c,this),this.doc,this.selection,i.dynamicSlots.map(function(){return null}),function(f,d){return d.reconfigure(f,o)},null).values,new e(i,t.newDoc,t.newSelection,r,function(f,d){return d.update(f,t)},t)}},{key:"replaceSelection",value:function(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(function(n){return{changes:{from:n.from,to:n.to,insert:t},range:Jt.cursor(n.from+t.length)}})}},{key:"changeByRange",value:function(t){for(var n=this.selection,r=t(n.ranges[0]),o=this.changes(r.changes),i=[r.range],a=cf(r.effects),s=1;s<n.ranges.length;s++){for(var c=t(n.ranges[s]),u=this.changes(c.changes),l=u.map(o),f=0;f<s;f++)i[f]=i[f].map(l);var d=o.mapDesc(u,!0);i.push(c.range.map(d)),o=o.compose(l),a=bn.mapEffects(a,l).concat(bn.mapEffects(cf(c.effects),d))}return{changes:o,selection:Jt.create(i,n.mainIndex),effects:a}}},{key:"changes",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t instanceof Oa?t:Oa.of(t,this.doc.length,this.facet(e.lineSeparator))}},{key:"toText",value:function(t){return Xn.of(t.split(this.facet(e.lineSeparator)||Ww))}},{key:"sliceDoc",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.doc.length;return this.doc.sliceString(t,n,this.lineBreak)}},{key:"facet",value:function(t){var n=this.config.address[t.id];return n==null?t.default:(dh(this,n),Pg(this,n))}},{key:"toJSON",value:function(t){var n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var r in t){var o=t[r];o instanceof _o&&this.config.address[o.id]!=null&&(n[r]=o.spec.toJSON(this.field(t[r]),this))}return n}},{key:"tabSize",get:function(){return this.facet(e.tabSize)}},{key:"lineBreak",get:function(){return this.facet(e.lineSeparator)||`
109
+ `}},{key:"readOnly",get:function(){return this.facet(ZB)}},{key:"phrase",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i,a=ht(this.facet(e.phrases));try{for(a.s();!(i=a.n()).done;){var s=i.value;if(Object.prototype.hasOwnProperty.call(s,t)){t=s[t];break}}}catch(c){a.e(c)}finally{a.f()}return r.length&&(t=t.replace(/\$(\$|\d*)/g,function(c,u){if(u=="$")return"$";var l=+(u||1);return!l||l>r.length?c:r[l-1]})),t}},{key:"languageDataAt",value:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,i=[],a=ht(this.facet(KB));try{for(a.s();!(r=a.n()).done;){var s,c=ht((0,r.value)(this,n,o));try{for(c.s();!(s=c.n()).done;){var u=s.value;Object.prototype.hasOwnProperty.call(u,t)&&i.push(u[t])}}catch(l){c.e(l)}finally{c.f()}}}catch(l){a.e(l)}finally{a.f()}return i}},{key:"charCategorizer",value:function(t){return Egt(this.languageDataAt("wordChars",t).join(""))}},{key:"wordAt",value:function(t){for(var n=this.doc.lineAt(t),r=n.text,o=n.from,i=n.length,a=this.charCategorizer(t),s=t-o,c=t-o;s>0;){var u=Po(r,s,!1);if(a(r.slice(u,s))!=Sr.Word)break;s=u}for(;c<i;){var l=Po(r,c);if(a(r.slice(c,l))!=Sr.Word)break;c=l}return s==c?null:Jt.range(s+o,c+o)}}],[{key:"fromJSON",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");var o=[];if(r){var i=function(){if(Object.prototype.hasOwnProperty.call(t,a)){var s=r[a],c=t[a];o.push(s.init(function(u){return s.spec.fromJSON(c,u)}))}};for(var a in r)i()}return e.create({doc:t.doc,selection:Jt.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}},{key:"create",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=HA.resolve(t.extensions||[],new Map),r=t.doc instanceof Xn?t.doc:Xn.of((t.doc||"").split(n.staticFacet(e.lineSeparator)||Ww)),o=t.selection?t.selection instanceof Jt?t.selection:Jt.single(t.selection.anchor,t.selection.head):Jt.single(0);return UB(o,r.length),n.staticFacet(JB)||(o=o.asSingle()),new e(n,r,o,n.dynamicSlots.map(function(){return null}),function(i,a){return a.create(i)},null)}}]),e}();function Xi(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={},i=ht(e);try{for(i.s();!(n=i.n()).done;)for(var a=n.value,s=0,c=Object.keys(a);s<c.length;s++){var u=c[s],l=a[u],f=o[u];if(f===void 0)o[u]=l;else if(!(f===l||l===void 0)){if(!Object.hasOwnProperty.call(r,u))throw new Error("Config merge conflict for field "+u);o[u]=r[u](f,l)}}}catch(h){i.e(h)}finally{i.f()}for(var d in t)o[d]===void 0&&(o[d]=t[d]);return o}fr.allowMultipleSelections=JB,fr.tabSize=xe.define({combine:function(e){return e.length?e[0]:4}}),fr.lineSeparator=GB,fr.readOnly=ZB,fr.phrases=xe.define({compare:function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(function(o){return e[o]==t[o]})}}),fr.languageData=KB,fr.changeFilter=QB,fr.transactionFilter=YB,fr.transactionExtender=XB,Cu.reconfigure=bn.define();var Ru=function(){function e(){rt(this,e)}return ot(e,[{key:"eq",value:function(t){return this==t}},{key:"range",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return tx.create(t,n,this)}}]),e}();Ru.prototype.startSide=Ru.prototype.endSide=0,Ru.prototype.point=!1,Ru.prototype.mapMode=Fo.TrackDel;var tx=function(){function e(t,n,r){rt(this,e),this.from=t,this.to=n,this.value=r}return ot(e,null,[{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}();function $y(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var Ogt=function(){function e(t,n,r,o){rt(this,e),this.from=t,this.to=n,this.value=r,this.maxPoint=o}return ot(e,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(t,n,r){for(var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=r?this.to:this.from,a=o,s=i.length;;){if(a==s)return a;var c=a+s>>1,u=i[c]-t||(r?this.value[c].endSide:this.value[c].startSide)-n;if(c==a)return u>=0?a:s;u>=0?s=c:a=c+1}}},{key:"between",value:function(t,n,r,o){for(var i=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,i);i<a;i++)if(o(this.from[i]+t,this.to[i]+t,this.value[i])===!1)return!1}},{key:"map",value:function(t,n){for(var r=[],o=[],i=[],a=-1,s=-1,c=0;c<this.value.length;c++){var u=this.value[c],l=this.from[c]+t,f=this.to[c]+t,d=void 0,h=void 0;if(l==f){var p=n.mapPos(l,u.startSide,u.mapMode);if(p==null||(d=h=p,u.startSide!=u.endSide&&(h=n.mapPos(l,u.endSide))<d))continue}else if((d=n.mapPos(l,u.startSide))>(h=n.mapPos(f,u.endSide))||d==h&&u.startSide>0&&u.endSide<=0)continue;(h-d||u.endSide-u.startSide)<0||(a<0&&(a=d),u.point&&(s=Math.max(s,h-d)),r.push(u),o.push(d-a),i.push(h-a))}return{mapped:r.length?new e(o,i,r,s):null,pos:a}}}]),e}(),vr=function(){function e(t,n,r,o){rt(this,e),this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=o}return ot(e,[{key:"length",get:function(){var t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var t,n=this.nextLayer.size,r=ht(this.chunk);try{for(r.s();!(t=r.n()).done;)n+=t.value.value.length}catch(o){r.e(o)}finally{r.f()}return n}},{key:"chunkEnd",value:function(t){return this.chunkPos[t]+this.chunk[t].length}},{key:"update",value:function(t){var n=t.add,r=n===void 0?[]:n,o=t.sort,i=o!==void 0&&o,a=t.filterFrom,s=a===void 0?0:a,c=t.filterTo,u=c===void 0?this.length:c,l=t.filter;if(r.length==0&&!l)return this;if(i&&(r=r.slice().sort($y)),this.isEmpty)return r.length?e.of(r):this;for(var f=new eF(this,null,-1).goto(0),d=0,h=[],p=new Jc;f.value||d<r.length;)if(d<r.length&&(f.from-r[d].from||f.startSide-r[d].value.startSide)>=0){var v=r[d++];p.addInner(v.from,v.to,v.value)||h.push(v)}else f.rangeIndex==1&&f.chunkIndex<this.chunk.length&&(d==r.length||this.chunkEnd(f.chunkIndex)<r[d].from)&&(!l||s>this.chunkEnd(f.chunkIndex)||u<this.chunkPos[f.chunkIndex])&&p.addChunk(this.chunkPos[f.chunkIndex],this.chunk[f.chunkIndex])?f.nextChunk():((!l||s>f.to||u<f.from||l(f.from,f.to,f.value))&&(p.addInner(f.from,f.to,f.value)||h.push(tx.create(f.from,f.to,f.value))),f.next());return p.finishInner(this.nextLayer.isEmpty&&!h.length?e.empty:this.nextLayer.update({add:h,filter:l,filterFrom:s,filterTo:u}))}},{key:"map",value:function(t){if(t.empty||this.isEmpty)return this;for(var n=[],r=[],o=-1,i=0;i<this.chunk.length;i++){var a=this.chunkPos[i],s=this.chunk[i],c=t.touchesRange(a,a+s.length);if(c===!1)o=Math.max(o,s.maxPoint),n.push(s),r.push(t.mapPos(a));else if(c===!0){var u=s.map(a,t),l=u.mapped,f=u.pos;l&&(o=Math.max(o,l.maxPoint),n.push(l),r.push(f))}}var d=this.nextLayer.map(t);return n.length==0?d:new e(r,n,d||e.empty,o)}},{key:"between",value:function(t,n,r){if(!this.isEmpty){for(var o=0;o<this.chunk.length;o++){var i=this.chunkPos[o],a=this.chunk[o];if(n>=i&&t<=i+a.length&&a.between(i,t-i,n-i,r)===!1)return}this.nextLayer.between(t,n,r)}}},{key:"iter",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return ex.from([this]).goto(t)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(t,n,r,o){return new e(t,n,r,o)}},{key:"iter",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ex.from(t).goto(n)}},{key:"compare",value:function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,a=t.filter(function(f){return f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i}),s=n.filter(function(f){return f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i}),c=UA(a,s,r),u=new bd(a,c,i),l=new bd(s,c,i);r.iterGaps(function(f,d,h){return WA(u,f,l,d,h,o)}),r.empty&&r.length==0&&WA(u,0,l,0,0,o)}},{key:"eq",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0;o==null&&(o=999999999);var i=t.filter(function(l){return!l.isEmpty&&n.indexOf(l)<0}),a=n.filter(function(l){return!l.isEmpty&&t.indexOf(l)<0});if(i.length!=a.length)return!1;if(!i.length)return!0;for(var s=UA(i,a),c=new bd(i,s,0).goto(r),u=new bd(a,s,0).goto(r);;){if(c.to!=u.to||!nx(c.active,u.active)||c.point&&(!u.point||!c.point.eq(u.point)))return!1;if(c.to>o)return!0;c.next(),u.next()}}},{key:"spans",value:function(t,n,r,o){for(var i=new bd(t,null,arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1).goto(n),a=n,s=i.openStart;;){var c=Math.min(i.to,r);if(i.point){var u=i.activeForPoint(i.to),l=i.pointFrom<n?u.length+1:Math.min(u.length,s);o.point(a,c,i.point,u,l,i.pointRank),s=Math.min(i.openEnd(c),u.length)}else c>a&&(o.span(a,c,i.active,s),s=i.openEnd(c));if(i.to>r)return s+(i.point&&i.to>r?1:0);a=i.to,i.next()}}},{key:"of",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=new Jc,i=ht(t instanceof tx?[t]:r?function(s){if(s.length>1)for(var c=s[0],u=1;u<s.length;u++){var l=s[u];if($y(c,l)>0)return s.slice().sort($y);c=l}return s}(t):t);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.add(a.from,a.to,a.value)}}catch(s){i.e(s)}finally{i.f()}return o.finish()}}]),e}();vr.empty=new vr([],[],null,-1),vr.empty.nextLayer=vr.empty;var Jc=function(){function e(){rt(this,e),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return ot(e,[{key:"finishChunk",value:function(t){this.chunks.push(new Ogt(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new e)).add(t,n,r)}},{key:"addInner",value:function(t,n,r){var o=t-this.lastTo||r.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0)&&(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}},{key:"addChunk",value:function(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);var r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}},{key:"finish",value:function(){return this.finishInner(vr.empty)}},{key:"finishInner",value:function(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;var n=vr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}]),e}();function UA(e,t,n){var r,o=new Map,i=ht(e);try{for(i.s();!(r=i.n()).done;)for(var a=r.value,s=0;s<a.chunk.length;s++)a.chunk[s].maxPoint<=0&&o.set(a.chunk[s],a.chunkPos[s])}catch(p){i.e(p)}finally{i.f()}var c,u=new Set,l=ht(t);try{for(l.s();!(c=l.n()).done;)for(var f=c.value,d=0;d<f.chunk.length;d++){var h=o.get(f.chunk[d]);h==null||(n?n.mapPos(h):h)!=f.chunkPos[d]||n!=null&&n.touchesRange(h,h+f.chunk[d].length)||u.add(f.chunk[d])}}catch(p){l.e(p)}finally{l.f()}return u}var eF=function(){function e(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;rt(this,e),this.layer=t,this.skip=n,this.minPoint=r,this.rank=o}return ot(e,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,n,!1),this}},{key:"gotoInner",value:function(t,n,r){for(;this.chunkIndex<this.layer.chunk.length;){var o=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(o)||this.layer.chunkEnd(this.chunkIndex)<t||o.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){var i=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}},{key:"forward",value:function(t,n){(this.to-t||this.endSide-n)<0&&this.gotoInner(t,n,!0)}},{key:"next",value:function(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}var t=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=t+n.from[this.rangeIndex];if(this.from=r,this.to=t+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}},{key:"setRangeIndex",value:function(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}},{key:"nextChunk",value:function(){this.chunkIndex++,this.rangeIndex=0,this.next()}},{key:"compare",value:function(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}]),e}(),ex=function(){function e(t){rt(this,e),this.heap=t}return ot(e,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"goto",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1e9,o=ht(this.heap);try{for(o.s();!(n=o.n()).done;)n.value.goto(t,r)}catch(a){o.e(a)}finally{o.f()}for(var i=this.heap.length>>1;i>=0;i--)Cy(this.heap,i);return this.next(),this}},{key:"forward",value:function(t,n){var r,o=ht(this.heap);try{for(o.s();!(r=o.n()).done;)r.value.forward(t,n)}catch(a){o.e(a)}finally{o.f()}for(var i=this.heap.length>>1;i>=0;i--)Cy(this.heap,i);(this.to-t||this.value.endSide-n)<0&&this.next()}},{key:"next",value:function(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Cy(this.heap,0)}}}],[{key:"from",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,o=[],i=0;i<t.length;i++)for(var a=t[i];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&o.push(new eF(a,n,r,i));return o.length==1?o[0]:new e(o)}}]),e}();function Cy(e,t){for(var n=e[t];;){var r=1+(t<<1);if(r>=e.length)break;var o=e[r];if(r+1<e.length&&o.compare(e[r+1])>=0&&(o=e[r+1],r++),n.compare(o)<0)break;e[r]=n,e[t]=o,t=r}}var bd=function(){function e(t,n,r){rt(this,e),this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ex.from(t,n,r)}return ot(e,[{key:"goto",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1e9;return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}},{key:"forward",value:function(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}},{key:"removeActive",value:function(t){jv(this.active,t),jv(this.activeTo,t),jv(this.activeRank,t),this.minActive=KA(this.active,this.activeTo)}},{key:"addActive",value:function(t){for(var n=0,r=this.cursor,o=r.value,i=r.to,a=r.rank;n<this.activeRank.length&&this.activeRank[n]<=a;)n++;_v(this.active,n,o),_v(this.activeTo,n,i),_v(this.activeRank,n,a),t&&_v(t,n,this.cursor.from),this.minActive=KA(this.active,this.activeTo)}},{key:"next",value:function(){var t=this.to,n=this.point;this.point=null;for(var r=this.openStart<0?[]:null;;){var o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),r&&jv(r,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var i=this.cursor.value;if(i.point){if(!(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(r),this.cursor.next()}}if(r){this.openStart=0;for(var a=r.length-1;a>=0&&r[a]<t;a--)this.openStart++}}},{key:"activeForPoint",value:function(t){if(!this.active.length)return this.active;for(var n=[],r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}},{key:"openEnd",value:function(t){for(var n=0,r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}]),e}();function WA(e,t,n,r,o,i){e.goto(t),n.goto(r);for(var a=r+o,s=r,c=r-t;;){var u=e.to+c-n.to||e.endSide-n.endSide,l=u<0?e.to+c:n.to,f=Math.min(l,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&nx(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,f,e.point,n.point):f>s&&!nx(e.active,n.active)&&i.compareRange(s,f,e.active,n.active),l>a)break;s=l,u<=0&&e.next(),u>=0&&n.next()}}function nx(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function jv(e,t){for(var n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function _v(e,t,n){for(var r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function KA(e,t){for(var n=-1,r=1e9,o=0;o<t.length;o++)(t[o]-r||e[o].endSide-e[n].endSide)<0&&(n=o,r=t[o]);return n}function sd(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,o=0;o<n;)e.charCodeAt(o)==9?(r+=t-r%t,o++):(r++,o=Po(e,o));return r}function rx(e,t,n,r){for(var o=0,i=0;;){if(i>=t)return o;if(o==e.length)break;i+=e.charCodeAt(o)==9?n-i%n:1,o=Po(e,o)}return r===!0?-1:e.length}for(var JA=typeof Symbol>"u"?"__ͼ":Symbol.for("ͼ"),Ey=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),GA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Gc=function(){function e(t,n){rt(this,e),this.rules=[];var r=(n||{}).finish;function o(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function i(s,c,u,l){var f=[],d=/^@(\w+)\b/.exec(s[0]),h=d&&d[1]=="keyframes";if(d&&c==null)return u.push(s[0]+";");for(var p in c){var v=c[p];if(/&/.test(p))i(p.split(/,\s*/).map(function(m){return s.map(function(g){return m.replace(/&/,g)})}).reduce(function(m,g){return m.concat(g)}),v,u);else if(v&&ce(v)=="object"){if(!d)throw new RangeError("The value of a property ("+p+") should be a primitive value.");i(o(p),v,f,h)}else v!=null&&f.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(m){return"-"+m.toLowerCase()})+": "+v+";")}(f.length||h)&&u.push((!r||d||l?s:s.map(r)).join(", ")+" {"+f.join(" ")+"}")}for(var a in t)i(o(a),t[a],this.rules)}return ot(e,[{key:"getRules",value:function(){return this.rules.join(`
110
+ `)}}],[{key:"newName",value:function(){var t=GA[JA]||1;return GA[JA]=t+1,"ͼ"+t.toString(36)}},{key:"mount",value:function(t,n,r){var o=t[Ey],i=r&&r.nonce;o?i&&o.setNonce(i):o=new Mgt(t,i),o.mount(Array.isArray(n)?n:[n])}}]),e}(),QA=new Map,Mgt=function(){function e(t,n){rt(this,e);var r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){var i=QA.get(r);if(i)return t.adoptedStyleSheets=[i.sheet].concat(Se(t.adoptedStyleSheets)),t[Ey]=i;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(Se(t.adoptedStyleSheets)),QA.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);var a=t.head||t;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],t[Ey]=this}return ot(e,[{key:"mount",value:function(t){for(var n=this.sheet,r=0,o=0,i=0;i<t.length;i++){var a=t[i],s=this.modules.indexOf(a);if(s<o&&s>-1&&(this.modules.splice(s,1),o--,s=-1),s==-1){if(this.modules.splice(o++,0,a),n)for(var c=0;c<a.rules.length;c++)n.insertRule(a.rules[c],r++)}else{for(;o<s;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(!n){for(var u="",l=0;l<this.modules.length;l++)u+=this.modules[l].getRules()+`
111
+ `;this.styleTag.textContent=u}}},{key:"setNonce",value:function(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}]),e}(),Qc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Jh={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},YA=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Agt=typeof navigator<"u"&&/Mac/.test(navigator.platform),Pgt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Tgt=Agt||YA&&+YA[1]<57,go=0;go<10;go++)Qc[48+go]=Qc[96+go]=String(go);for(go=1;go<=24;go++)Qc[go+111]="F"+go;for(go=65;go<=90;go++)Qc[go]=String.fromCharCode(go+32),Jh[go]=String.fromCharCode(go);for(var Oy in Qc)Jh.hasOwnProperty(Oy)||(Jh[Oy]=Qc[Oy]);function Tg(e){return(e.nodeType==11?e.getSelection?e:e.ownerDocument:e).getSelection()}function ox(e,t){return!!t&&(e==t||e.contains(t.nodeType!=1?t.parentNode:t))}function $m(e,t){if(!t.anchorNode)return!1;try{return ox(e,t.anchorNode)}catch{return!1}}function Gh(e){return e.nodeType==3?il(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Rg(e,t,n,r){return!!n&&(XA(e,t,n,r,-1)||XA(e,t,n,r,1))}function Qh(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function XA(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:Js(e))){if(e.nodeName=="DIV")return!1;var i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=Qh(e)+(o<0?0:1),e=i}else{if(e.nodeType!=1||(e=e.childNodes[t+(o<0?-1:0)]).nodeType==1&&e.contentEditable=="false")return!1;t=o<0?Js(e):0}}}function Js(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Cj(e,t){var n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Rgt(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}var ZA,Igt=function(){function e(){rt(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return ot(e,[{key:"eq",value:function(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}},{key:"setRange",value:function(t){var n=t.anchorNode,r=t.focusNode;this.set(n,Math.min(t.anchorOffset,n?Js(n):0),r,Math.min(t.focusOffset,r?Js(r):0))}},{key:"set",value:function(t,n,r,o){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=o}}]),e}(),kl=null;function nF(e){if(e.setActive)return e.setActive();if(kl)return e.focus(kl);for(var t=[],n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(kl==null?{get preventScroll(){return kl={preventScroll:!0},!0}}:void 0),!kl){kl=!1;for(var r=0;r<t.length;){var o=t[r++],i=t[r++],a=t[r++];o.scrollTop!=i&&(o.scrollTop=i),o.scrollLeft!=a&&(o.scrollLeft=a)}}}function il(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=ZA||(ZA=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function uf(e,t,n){var r={key:t,code:t,keyCode:n,which:n,cancelable:!0},o=new KeyboardEvent("keydown",r);o.synthetic=!0,e.dispatchEvent(o);var i=new KeyboardEvent("keyup",r);return i.synthetic=!0,e.dispatchEvent(i),o.defaultPrevented||i.defaultPrevented}function rF(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function oF(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}var di=function(){function e(t,n){var r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];rt(this,e),this.node=t,this.offset=n,this.precise=r}return ot(e,null,[{key:"before",value:function(t,n){return new e(t.parentNode,Qh(t),n)}},{key:"after",value:function(t,n){return new e(t.parentNode,Qh(t)+1,n)}}]),e}(),Ej=[],Lr=function(){function e(){rt(this,e),this.parent=null,this.dom=null,this.flags=2}return ot(e,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(t){var n,r=this.posAtStart,o=ht(this.children);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i==t)return r;r+=i.length+i.breakAfter}}catch(a){o.e(a)}finally{o.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(t){return this.posBefore(t)+t.length}},{key:"sync",value:function(t,n){if(2&this.flags){var r,o,i=this.dom,a=null,s=ht(this.children);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(7&c.flags){if(!c.dom&&(r=a?a.nextSibling:i.firstChild)){var u=e.get(r);(!u||!u.parent&&u.canReuseDOM(c))&&c.reuseDOM(r)}c.sync(t,n),c.flags&=-8}if(r=a?a.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&r!=c.dom&&(n.written=!0),c.dom.parentNode==i)for(;r&&r!=c.dom;)r=tP(r);else i.insertBefore(c.dom,r);a=c.dom}}catch(h){s.e(h)}finally{s.f()}for((r=a?a.nextSibling:i.firstChild)&&n&&n.node==i&&(n.written=!0);r;)r=tP(r)}else if(1&this.flags){var l,f=ht(this.children);try{for(f.s();!(l=f.n()).done;){var d=l.value;7&d.flags&&(d.sync(t,n),d.flags&=-8)}}catch(h){f.e(h)}finally{f.f()}}}},{key:"reuseDOM",value:function(t){}},{key:"localPosFromDOM",value:function(t,n){var r;if(t==this.dom)r=this.dom.childNodes[n];else{for(var o=Js(t)==0?0:n==0?-1:1;;){var i=t.parentNode;if(i==this.dom)break;o==0&&i.firstChild!=i.lastChild&&(o=t==i.firstChild?-1:1),t=i}r=o<0?t:t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!e.get(r);)r=r.nextSibling;if(!r)return this.length;for(var a=0,s=0;;a++){var c=this.children[a];if(c.dom==r)return s;s+=c.length+c.breakAfter}}},{key:"domBoundsAround",value:function(t,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=-1,i=-1,a=-1,s=-1,c=0,u=r,l=r;c<this.children.length;c++){var f=this.children[c],d=u+f.length;if(u<t&&d>n)return f.domBoundsAround(t,n,u);if(d>=t&&o==-1&&(o=c,i=u),u>n&&f.dom.parentNode==this.dom){a=c,s=l;break}l=d,u=d+f.breakAfter}return{from:i,to:s<0?r+this.length:s,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}},{key:"markDirty",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.flags|=2,this.markParentsDirty(t)}},{key:"markParentsDirty",value:function(t){for(var n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),1&n.flags)return;n.flags|=1,t=!1}}},{key:"setParent",value:function(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}},{key:"rootView",get:function(){for(var t=this;;){var n=t.parent;if(!n)return t;t=n}}},{key:"replaceChildren",value:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ej;this.markDirty();for(var i=t;i<n;i++){var a=this.children[i];a.parent==this&&a.destroy()}(r=this.children).splice.apply(r,[t,n-t].concat(Se(o)));for(var s=0;s<o.length;s++)o[s].setParent(this)}},{key:"ignoreMutation",value:function(t){return!1}},{key:"ignoreEvent",value:function(t){return!1}},{key:"childCursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.length;return new iF(this.children,t,this.children.length)}},{key:"childPos",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return this.childCursor().findPos(t,n)}},{key:"toString",value:function(){var t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"isHidden",get:function(){return!1}},{key:"merge",value:function(t,n,r,o,i,a){return!1}},{key:"become",value:function(t){return!1}},{key:"canReuseDOM",value:function(t){return t.constructor==this.constructor&&!(8&(this.flags|t.flags))}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(t){return t.cmView}}]),e}();function tP(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}Lr.prototype.breakAfter=0;var iF=function(){function e(t,n,r){rt(this,e),this.children=t,this.pos=n,this.i=r,this.off=0}return ot(e,[{key:"findPos",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;var r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}]),e}();function aF(e,t,n,r,o,i,a,s,c){var u=e.children,l=u.length?u[t]:null,f=i.length?i[i.length-1]:null,d=f?f.breakAfter:a;if(!(t==r&&l&&!a&&!d&&i.length<2&&l.merge(n,o,i.length?f:null,n==0,s,c))){if(r<u.length){var h=u[r];h&&(o<h.length||h.breakAfter&&(f!=null&&f.breakAfter))?(t==r&&(h=h.split(o),o=0),!d&&f&&h.merge(0,o,f,!0,0,c)?i[i.length-1]=h:(o&&h.merge(0,o,null,!1,0,c),i.push(h))):h!=null&&h.breakAfter&&(f?f.breakAfter=1:a=1),r++}for(l&&(l.breakAfter=a,n>0&&(!a&&i.length&&l.merge(n,l.length,i[0],!1,s,0)?l.breakAfter=i.shift().breakAfter:(n<l.length||l.children.length&&l.children[l.children.length-1].length==0)&&l.merge(n,l.length,null,!1,s,0),t++));t<r&&i.length;)if(u[r-1].become(i[i.length-1]))r--,i.pop(),c=i.length?0:s;else{if(!u[t].become(i[0]))break;t++,i.shift(),s=i.length?0:c}!i.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,s,c)&&t--,(t<r||i.length)&&e.replaceChildren(t,r,i)}}function sF(e,t,n,r,o,i){var a,s=e.childCursor(),c=s.findPos(n,1),u=c.i,l=c.off,f=s.findPos(t,-1),d=f.i,h=f.off,p=t-n,v=ht(r);try{for(v.s();!(a=v.n()).done;)p+=a.value.length}catch(m){v.e(m)}finally{v.f()}e.length+=p,aF(e,d,h,u,l,r,0,o,i)}var hi=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},ix=typeof document<"u"?document:{documentElement:{style:{}}},ax=/Edge\/(\d+)/.exec(hi.userAgent),cF=/MSIE \d/.test(hi.userAgent),sx=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(hi.userAgent),i1=!!(cF||sx||ax),eP=!i1&&/gecko\/(\d+)/i.test(hi.userAgent),My=!i1&&/Chrome\/(\d+)/.exec(hi.userAgent),nP="webkitFontSmoothing"in ix.documentElement.style,uF=!i1&&/Apple Computer/.test(hi.vendor),rP=uF&&(/Mobile\/\w+/.test(hi.userAgent)||hi.maxTouchPoints>2),Ce={mac:rP||/Mac/.test(hi.platform),windows:/Win/.test(hi.platform),linux:/Linux|X11/.test(hi.platform),ie:i1,ie_version:cF?ix.documentMode||6:sx?+sx[1]:ax?+ax[1]:0,gecko:eP,gecko_version:eP?+(/Firefox\/(\d+)/.exec(hi.userAgent)||[0,0])[1]:0,chrome:!!My,chrome_version:My?+My[1]:0,ios:rP,android:/Android\b/.test(hi.userAgent),webkit:nP,safari:uF,webkit_version:nP?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:ix.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},Pf=function(e){Tt(n,Lr);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).text=r,o}return ot(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(r){this.setDOM(r||document.createTextNode(this.text))}},{key:"sync",value:function(r,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(r){r.nodeType==3&&this.createDOM(r)}},{key:"merge",value:function(r,o,i){return!(8&this.flags||i&&(!(i instanceof n)||this.length-(o-r)+i.length>256||8&i.flags))&&(this.text=this.text.slice(0,r)+(i?i.text:"")+this.text.slice(o),this.markDirty(),!0)}},{key:"split",value:function(r){var o=new n(this.text.slice(r));return this.text=this.text.slice(0,r),this.markDirty(),o.flags|=8&this.flags,o}},{key:"localPosFromDOM",value:function(r,o){return r==this.dom?o:o?this.text.length:0}},{key:"domAtPos",value:function(r){return new di(this.dom,r)}},{key:"domBoundsAround",value:function(r,o,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(r,o){return function(i,a,s){var c=i.nodeValue.length;a>c&&(a=c);var u=a,l=a,f=0;a==0&&s<0||a==c&&s>=0?Ce.chrome||Ce.gecko||(a?(u--,f=1):l<c&&(l++,f=-1)):s<0?u--:l<c&&l++;var d=il(i,u,l).getClientRects();if(!d.length)return null;var h=d[(f?f<0:s>=0)?0:d.length-1];return Ce.safari&&!f&&h.width==0&&(h=Array.prototype.find.call(d,function(p){return p.width})||h),f?Cj(h,f<0):h||null}(this.dom,r,o)}}]),n}(),Tf=function(e){Tt(n,Lr);var t=Rt(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;rt(this,n),(o=t.call(this)).mark=r,o.children=i,o.length=a;var s,c=ht(i);try{for(c.s();!(s=c.n()).done;)s.value.setParent(he(o))}catch(u){c.e(u)}finally{c.f()}return o}return ot(n,[{key:"setAttrs",value:function(r){if(rF(r),this.mark.class&&(r.className=this.mark.class),this.mark.attrs)for(var o in this.mark.attrs)r.setAttribute(o,this.mark.attrs[o]);return r}},{key:"canReuseDOM",value:function(r){return kn(ln(n.prototype),"canReuseDOM",this).call(this,r)&&!(8&(this.flags|r.flags))}},{key:"reuseDOM",value:function(r){r.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(r),this.flags|=6)}},{key:"sync",value:function(r,o){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),kn(ln(n.prototype),"sync",this).call(this,r,o)}},{key:"merge",value:function(r,o,i,a,s,c){return(!i||!(!(i instanceof n&&i.mark.eq(this.mark))||r&&s<=0||o<this.length&&c<=0))&&(sF(this,r,o,i?i.children:[],s-1,c-1),this.markDirty(),!0)}},{key:"split",value:function(r){var o,i=[],a=0,s=-1,c=0,u=ht(this.children);try{for(u.s();!(o=u.n()).done;){var l=o.value,f=a+l.length;f>r&&i.push(a<r?l.split(r-a):l),s<0&&a>=r&&(s=c),a=f,c++}}catch(h){u.e(h)}finally{u.f()}var d=this.length-r;return this.length=r,s>-1&&(this.children.length=s,this.markDirty()),new n(this.mark,i,d)}},{key:"domAtPos",value:function(r){return lF(this,r)}},{key:"coordsAt",value:function(r,o){return dF(this,r,o)}}]),n}(),Oj=function(e){Tt(n,Lr);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this)).widget=r,a.length=o,a.side=i,a.prevWidget=null,a}return ot(n,[{key:"split",value:function(r){var o=n.create(this.widget,this.length-r,this.side);return this.length-=r,o}},{key:"sync",value:function(r){this.dom&&this.widget.updateDOM(this.dom,r)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(r)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(r,o,i,a,s,c){return!(i&&(!(i instanceof n&&this.widget.compare(i.widget))||r>0&&s<=0||o<this.length&&c<=0))&&(this.length=r+(i?i.length:0)+(this.length-o),!0)}},{key:"become",value:function(r){return r instanceof n&&r.side==this.side&&this.widget.constructor==r.widget.constructor&&(this.widget.compare(r.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=r.widget,this.length=r.length,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(r){return this.widget.ignoreEvent(r)}},{key:"overrideDOMText",get:function(){if(this.length==0)return Xn.empty;for(var r=this;r.parent;)r=r.parent;var o=r.view,i=o&&o.state.doc,a=this.posAtStart;return i?i.slice(a,a+this.length):Xn.empty}},{key:"domAtPos",value:function(r){return(this.length?r==0:this.side>0)?di.before(this.dom):di.after(this.dom,r==this.length)}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(r,o){var i=this.widget.coordsAt(this.dom,r,o);if(i)return i;var a=this.dom.getClientRects(),s=null;if(!a.length)return null;for(var c=this.side?this.side<0:r>0,u=c?a.length-1:0;s=a[u],!(r>0?u==0:u==a.length-1||s.top<s.bottom);u+=c?-1:1);return Cj(s,!c)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"isHidden",get:function(){return this.widget.isHidden}},{key:"destroy",value:function(){kn(ln(n.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(r,o,i){return new n(r,o,i)}}]),n}(),cx=function(e){Tt(n,Lr);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).side=r,o}return ot(n,[{key:"length",get:function(){return 0}},{key:"merge",value:function(){return!1}},{key:"become",value:function(r){return r instanceof n&&r.side==this.side}},{key:"split",value:function(){return new n(this.side)}},{key:"sync",value:function(){if(!this.dom){var r=document.createElement("img");r.className="cm-widgetBuffer",r.setAttribute("aria-hidden","true"),this.setDOM(r)}}},{key:"getSide",value:function(){return this.side}},{key:"domAtPos",value:function(r){return this.side>0?di.before(this.dom):di.after(this.dom)}},{key:"localPosFromDOM",value:function(){return 0}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(r){return this.dom.getBoundingClientRect()}},{key:"overrideDOMText",get:function(){return Xn.empty}},{key:"isHidden",get:function(){return!0}}]),n}();function lF(e,t){for(var n=e.dom,r=e.children,o=0,i=0;o<r.length;o++){var a=r[o],s=i+a.length;if(!(s==i&&a.getSide()<=0)){if(t>i&&t<s&&a.dom.parentNode==n)return a.domAtPos(t-i);if(t<=i)break;i=s}}for(var c=o;c>0;c--){var u=r[c-1];if(u.dom.parentNode==n)return u.domAtPos(u.length)}for(var l=o;l<r.length;l++){var f=r[l];if(f.dom.parentNode==n)return f.domAtPos(0)}return new di(n,0)}function fF(e,t,n){var r,o=e.children;n>0&&t instanceof Tf&&o.length&&(r=o[o.length-1])instanceof Tf&&r.mark.eq(t.mark)?fF(r,t.children[0],n-1):(o.push(t),t.setParent(e)),e.length+=t.length}function dF(e,t,n){var r=null,o=-1,i=null,a=-1;(function c(u,l){for(var f=0,d=0;f<u.children.length&&d<=l;f++){var h=u.children[f],p=d+h.length;p>=l&&(h.children.length?c(h,l-d):(!i||i.isHidden&&n>0)&&(p>l||d==p&&h.getSide()>0)?(i=h,a=l-d):(d<l||d==p&&h.getSide()<0&&!h.isHidden)&&(r=h,o=l-d)),d=p}})(e,t);var s=(n<0?r:i)||r||i;return s?s.coordsAt(Math.max(0,s==r?o:a),n):function(c){var u=c.dom.lastChild;if(!u)return c.dom.getBoundingClientRect();var l=Gh(u);return l[l.length-1]||null}(e)}function ux(e,t){for(var n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}Pf.prototype.children=Oj.prototype.children=cx.prototype.children=Ej;var oP=Object.create(null);function Mj(e,t,n){if(e==t)return!0;e||(e=oP),t||(t=oP);var r=Object.keys(e),o=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1;for(var i=0,a=r;i<a.length;i++){var s=a[i];if(s!=n&&(o.indexOf(s)==-1||e[s]!==t[s]))return!1}return!0}function lx(e,t,n){var r=!1;if(t)for(var o in t)n&&o in n||(r=!0,o=="style"?e.style.cssText="":e.removeAttribute(o));if(n)for(var i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function Ngt(e){for(var t=Object.create(null),n=0;n<e.attributes.length;n++){var r=e.attributes[n];t[r.name]=r.value}return t}var Lo=function(e){Tt(n,Lr);var t=Rt(n);function n(){var r;return rt(this,n),(r=t.apply(this,arguments)).children=[],r.length=0,r.prevAttrs=void 0,r.attrs=null,r.breakAfter=0,r}return ot(n,[{key:"merge",value:function(r,o,i,a,s,c){if(i){if(!(i instanceof n))return!1;this.dom||i.transferDOM(this)}return a&&this.setDeco(i?i.attrs:null),sF(this,r,o,i?i.children:[],s,c),!0}},{key:"split",value:function(r){var o=new n;if(o.breakAfter=this.breakAfter,this.length==0)return o;var i=this.childPos(r),a=i.i,s=i.off;s&&(o.append(this.children[a].split(s),0),this.children[a].merge(s,this.children[a].length,null,!1,0,0),a++);for(var c=a;c<this.children.length;c++)o.append(this.children[c],0);for(;a>0&&this.children[a-1].length==0;)this.children[--a].destroy();return this.children.length=a,this.markDirty(),this.length=r,o}},{key:"transferDOM",value:function(r){this.dom&&(this.markDirty(),r.setDOM(this.dom),r.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(r){Mj(this.attrs,r)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=r)}},{key:"append",value:function(r,o){fF(this,r,o)}},{key:"addLineDeco",value:function(r){var o=r.spec.attributes,i=r.spec.class;o&&(this.attrs=ux(o,this.attrs||{})),i&&(this.attrs=ux({class:i},this.attrs||{}))}},{key:"domAtPos",value:function(r){return lF(this,r)}},{key:"reuseDOM",value:function(r){r.nodeName=="DIV"&&(this.setDOM(r),this.flags|=6)}},{key:"sync",value:function(r,o){var i;this.dom?4&this.flags&&(rF(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(lx(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),kn(ln(n.prototype),"sync",this).call(this,r,o);for(var a=this.dom.lastChild;a&&Lr.get(a)instanceof Tf;)a=a.lastChild;if(!(a&&this.length&&(a.nodeName=="BR"||((i=Lr.get(a))===null||i===void 0?void 0:i.isEditable)!=0||Ce.ios&&this.children.some(function(c){return c instanceof Pf})))){var s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}},{key:"measureTextSize",value:function(){if(this.children.length==0||this.length>20)return null;var r,o,i=0,a=ht(this.children);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!(s instanceof Pf)||/[^ -~]/.test(s.text))return null;var c=Gh(s.dom);if(c.length!=1)return null;i+=c[0].width,r=c[0].height}}catch(u){a.e(u)}finally{a.f()}return i?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:i/this.length,textHeight:r}:null}},{key:"coordsAt",value:function(r,o){var i=dF(this,r,o);if(!this.children.length&&i&&this.parent){var a=this.parent.view.viewState.heightOracle,s=i.bottom-i.top;if(Math.abs(s-a.lineHeight)<2&&a.textHeight<s){var c=(s-a.textHeight)/2;return{top:i.top+c,bottom:i.bottom-c,left:i.left,right:i.left}}}return i}},{key:"become",value:function(r){return!1}},{key:"covers",value:function(){return!0}}],[{key:"find",value:function(r,o){for(var i=0,a=0;i<r.children.length;i++){var s=r.children[i],c=a+s.length;if(c>=o){if(s instanceof n)return s;if(c>o)break}a=c+s.breakAfter}return null}}]),n}(),fx=function(e){Tt(n,Lr);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this)).widget=r,a.length=o,a.deco=i,a.breakAfter=0,a.prevWidget=null,a}return ot(n,[{key:"merge",value:function(r,o,i,a,s,c){return!(i&&(!(i instanceof n&&this.widget.compare(i.widget))||r>0&&s<=0||o<this.length&&c<=0))&&(this.length=r+(i?i.length:0)+(this.length-o),!0)}},{key:"domAtPos",value:function(r){return r==0?di.before(this.dom):di.after(this.dom,r==this.length)}},{key:"split",value:function(r){var o=this.length-r;this.length=r;var i=new n(this.widget,o,this.deco);return i.breakAfter=this.breakAfter,i}},{key:"children",get:function(){return Ej}},{key:"sync",value:function(r){this.dom&&this.widget.updateDOM(this.dom,r)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(r)),this.dom.contentEditable="false")}},{key:"overrideDOMText",get:function(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Xn.empty}},{key:"domBoundsAround",value:function(){return null}},{key:"become",value:function(r){return r instanceof n&&r.widget.constructor==this.widget.constructor&&(r.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=r.widget,this.length=r.length,this.deco=r.deco,this.breakAfter=r.breakAfter,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(r){return this.widget.ignoreEvent(r)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"coordsAt",value:function(r,o){return this.widget.coordsAt(this.dom,r,o)}},{key:"destroy",value:function(){kn(ln(n.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}},{key:"covers",value:function(r){var o=this.deco,i=o.startSide,a=o.endSide;return i!=a&&(r<0?i<0:a>0)}}]),n}(),cu=function(){function e(){rt(this,e)}return ot(e,[{key:"eq",value:function(t){return!1}},{key:"updateDOM",value:function(t,n){return!1}},{key:"compare",value:function(t){return this==t||this.constructor==t.constructor&&this.eq(t)}},{key:"estimatedHeight",get:function(){return-1}},{key:"lineBreaks",get:function(){return 0}},{key:"ignoreEvent",value:function(t){return!0}},{key:"coordsAt",value:function(t,n,r){return null}},{key:"isHidden",get:function(){return!1}},{key:"destroy",value:function(t){}}]),e}(),Uo=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Uo||(Uo={})),We=function(e){Tt(n,Ru);var t=Rt(n);function n(r,o,i,a){var s;return rt(this,n),(s=t.call(this)).startSide=r,s.endSide=o,s.widget=i,s.spec=a,s}return ot(n,[{key:"heightRelevant",get:function(){return!1}},{key:"hasHeight",value:function(){return!!this.widget&&this.widget.estimatedHeight>-1}}],[{key:"mark",value:function(r){return new Aj(r)}},{key:"widget",value:function(r){var o=Math.max(-1e4,Math.min(1e4,r.side||0)),i=!!r.block;return o+=i&&!r.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new Rf(r,o,o,i,r.widget||null,!1)}},{key:"replace",value:function(r){var o,i,a=!!r.block;if(r.isBlockGap)o=-5e8,i=4e8;else{var s=hF(r,a);o=(s.start?a?-3e8:-1:5e8)-1,i=1+(s.end?a?2e8:1:-6e8)}return new Rf(r,o,i,a,r.widget||null,!0)}},{key:"line",value:function(r){return new dx(r)}},{key:"set",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return vr.of(r,o)}}]),n}();We.none=vr.empty;var Aj=function(e){Tt(n,We);var t=Rt(n);function n(r){var o;rt(this,n);var i=hF(r),a=i.start,s=i.end;return(o=t.call(this,a?-1:5e8,s?1:-6e8,null,r)).tagName=r.tagName||"span",o.class=r.class||"",o.attrs=r.attributes||null,o}return ot(n,[{key:"eq",value:function(r){var o,i;return this==r||r instanceof n&&this.tagName==r.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(r.class||((i=r.attrs)===null||i===void 0?void 0:i.class))&&Mj(this.attrs,r.attrs,"class")}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;if(r>=o)throw new RangeError("Mark decorations may not be empty");return kn(ln(n.prototype),"range",this).call(this,r,o)}}]),n}();Aj.prototype.point=!1;var dx=function(e){Tt(n,We);var t=Rt(n);function n(r){return rt(this,n),t.call(this,-2e8,-2e8,null,r)}return ot(n,[{key:"eq",value:function(r){return r instanceof n&&this.spec.class==r.spec.class&&Mj(this.spec.attributes,r.spec.attributes)}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;if(o!=r)throw new RangeError("Line decoration ranges must be zero-length");return kn(ln(n.prototype),"range",this).call(this,r,o)}}]),n}();dx.prototype.mapMode=Fo.TrackBefore,dx.prototype.point=!0;var Rf=function(e){Tt(n,We);var t=Rt(n);function n(r,o,i,a,s,c){var u;return rt(this,n),(u=t.call(this,o,i,s,r)).block=a,u.isReplace=c,u.mapMode=a?o<=0?Fo.TrackBefore:Fo.TrackAfter:Fo.TrackDel,u}return ot(n,[{key:"type",get:function(){return this.startSide!=this.endSide?Uo.WidgetRange:this.startSide<=0?Uo.WidgetBefore:Uo.WidgetAfter}},{key:"heightRelevant",get:function(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}},{key:"eq",value:function(r){return r instanceof n&&function(o,i){return o==i||!!(o&&i&&o.compare(i))}(this.widget,r.widget)&&this.block==r.block&&this.startSide==r.startSide&&this.endSide==r.endSide}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;if(this.isReplace&&(r>o||r==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=r)throw new RangeError("Widget decorations can only have zero-length ranges");return kn(ln(n.prototype),"range",this).call(this,r,o)}}]),n}();function hF(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=e.inclusiveStart,r=e.inclusiveEnd;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function hx(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=n.length-1;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}Rf.prototype.point=!0;var Ay=function(){function e(t,n,r,o){rt(this,e),this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}return ot(e,[{key:"posCovered",value:function(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;var t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof fx&&t.deco.endSide<0)}},{key:"getLine",value:function(){return this.curLine||(this.content.push(this.curLine=new Lo),this.atCursorPos=!0),this.curLine}},{key:"flushBuffer",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Sv(new cx(-1),t),t.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}},{key:"finish",value:function(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,t||this.posCovered()||this.getLine()}},{key:"buildText",value:function(t,n,r){for(;t>0;){if(this.textOff==this.text.length){var o=this.cursor.next(this.skip),i=o.value,a=o.lineBreak,s=o.done;if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=i,this.textOff=0}var c=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Sv(new Pf(this.text.slice(this.textOff,this.textOff+c)),n),r),this.atCursorPos=!0,this.textOff+=c,t-=c,r=0}}},{key:"span",value:function(t,n,r,o){this.buildText(n-t,r,o),this.pos=n,this.openStart<0&&(this.openStart=o)}},{key:"point",value:function(t,n,r,o,i,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Rf){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var s=n-t;if(r instanceof Rf)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new fx(r.widget||new iP("div"),s,r));else{var c=Oj.create(r.widget||new iP("span"),s,s?0:r.startSide),u=this.atCursorPos&&!c.isEditable&&i<=o.length&&(t<n||r.startSide>0),l=!c.isEditable&&(t<n||i>o.length||r.startSide<=0),f=this.getLine();this.pendingBuffer!=2||u||c.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),u&&(f.append(Sv(new cx(1),o),i),i=o.length+Math.max(0,i-o.length)),f.append(Sv(c,o),i),this.atCursorPos=l,this.pendingBuffer=l?t<n||i>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=i)}}],[{key:"build",value:function(t,n,r,o,i){var a=new e(t,n,r,i);return a.openEnd=vr.spans(o,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}]),e}();function Sv(e,t){var n,r=ht(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e=new Tf(o,[e],e.length)}}catch(i){r.e(i)}finally{r.f()}return e}var iP=function(e){Tt(n,cu);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).tag=r,o}return ot(n,[{key:"eq",value:function(r){return r.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(r){return r.nodeName.toLowerCase()==this.tag}},{key:"isHidden",get:function(){return!0}}]),n}(),pF=xe.define(),vF=xe.define(),mF=xe.define(),gF=xe.define(),px=xe.define(),yF=xe.define(),bF=xe.define(),wF=xe.define({combine:function(e){return e.some(function(t){return t})}}),xF=xe.define({combine:function(e){return e.some(function(t){return t})}}),aP=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"nearest",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"nearest",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:5;rt(this,e),this.range=t,this.y=n,this.x=r,this.yMargin=o,this.xMargin=i}return ot(e,[{key:"map",value:function(t){return t.empty?this:new e(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}]),e}(),sP=bn.define({map:function(e,t){return e.map(t)}});function Vi(e,t,n){var r=e.facet(gF);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}var a1=xe.define({combine:function(e){return!e.length||e[0]}}),Dgt=0,Fd=xe.define(),Zr=function(){function e(t,n,r,o,i){rt(this,e),this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=o,this.extension=i(this)}return ot(e,null,[{key:"define",value:function(t,n){var r=n||{},o=r.eventHandlers,i=r.eventObservers,a=r.provide,s=r.decorations;return new e(Dgt++,t,o,i,function(c){var u=[Fd.of(c)];return s&&u.push(Yh.of(function(l){var f=l.plugin(c);return f?s(f):We.none})),a&&u.push(a(c)),u})}},{key:"fromClass",value:function(t,n){return e.define(function(r){return new t(r)},n)}}]),e}(),Py=function(){function e(t){rt(this,e),this.spec=t,this.mustUpdate=null,this.value=null}return ot(e,[{key:"update",value:function(t){if(this.value){if(this.mustUpdate){var n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Vi(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(r){Vi(t.state,r,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Vi(t.state,r,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),e}(),kF=xe.define(),Pj=xe.define(),Yh=xe.define(),Tj=xe.define(),jF=xe.define();function cP(e,t,n){var r=e.state.facet(jF);if(!r.length)return r;var o=r.map(function(a){return a instanceof Function?a(e):a}),i=[];return vr.spans(o,t,n,{point:function(){},span:function(a,s,c,u){for(var l=i,f=c.length-1;f>=0;f--,u--){var d=c[f].spec.bidiIsolate,h=void 0;if(d!=null)if(u>0&&l.length&&(h=l[l.length-1]).to==a&&h.direction==d)h.to=s,l=h.inner;else{var p={from:a,to:s,direction:d,inner:[]};l.push(p),l=p.inner}}}}),i}var _F=xe.define();function SF(e){var t,n=0,r=0,o=0,i=0,a=ht(e.state.facet(_F));try{for(a.s();!(t=a.n()).done;){var s=(0,t.value)(e);s&&(s.left!=null&&(n=Math.max(n,s.left)),s.right!=null&&(r=Math.max(r,s.right)),s.top!=null&&(o=Math.max(o,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}}catch(c){a.e(c)}finally{a.f()}return{left:n,right:r,top:o,bottom:i}}var qd=xe.define(),_c=function(){function e(t,n,r,o){rt(this,e),this.fromA=t,this.toA=n,this.fromB=r,this.toB=o}return ot(e,[{key:"join",value:function(t){return new e(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}},{key:"addToSet",value:function(t){for(var n=t.length,r=this;n>0;n--){var o=t[n-1];if(!(o.fromA>r.toA)){if(o.toA<r.fromA)break;r=r.join(o),t.splice(n-1,1)}}return t.splice(n,0,r),t}}],[{key:"extendWithRanges",value:function(t,n){if(n.length==0)return t;for(var r=[],o=0,i=0,a=0,s=0;;o++){for(var c=o==t.length?null:t[o],u=a-s,l=c?c.fromB:1e9;i<n.length&&n[i]<l;){var f=n[i],d=n[i+1],h=Math.max(s,f),p=Math.min(l,d);if(h<=p&&new e(h+u,p+u,h,p).addToSet(r),d>l)break;i+=2}if(!c)return r;new e(c.fromA,c.toA,c.fromB,c.toB).addToSet(r),a=c.toA,s=c.toB}}}]),e}(),uP=function(){function e(t,n,r){rt(this,e),this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Oa.empty(this.startState.doc.length);var o,i=ht(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.changes=this.changes.compose(a.changes)}}catch(c){i.e(c)}finally{i.f()}var s=[];this.changes.iterChangedRanges(function(c,u,l,f){return s.push(new _c(c,u,l,f))}),this.changedRanges=s}return ot(e,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(t){return t.selection})}},{key:"empty",get:function(){return this.flags==0&&this.transactions.length==0}}],[{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}(),Rr=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Rr||(Rr={})),Xh=Rr.LTR,$F=Rr.RTL;function lP(e){for(var t=[],n=0;n<e.length;n++)t.push(1<<+e[n]);return t}for(var zgt=lP("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Lgt=lP("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),vx=Object.create(null),Da=[],Ty=0,fP=["()","[]","{}"];Ty<fP.length;Ty++){var dP=fP[Ty],hP=dP.charCodeAt(0),pP=dP.charCodeAt(1);vx[hP]=pP,vx[pP]=-hP}var Bgt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,Sc=function(){function e(t,n,r){rt(this,e),this.from=t,this.to=n,this.level=r}return ot(e,[{key:"dir",get:function(){return this.level%2?$F:Xh}},{key:"side",value:function(t,n){return this.dir==n==t?this.to:this.from}}],[{key:"find",value:function(t,n,r,o){for(var i=-1,a=0;a<t.length;a++){var s=t[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(i<0||(o!=0?o<0?s.from<n:s.to>n:t[i].level>s.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}}]),e}();function CF(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.direction!=o.direction||!CF(r.inner,o.inner))return!1}return!0}var or=[];function mx(e,t,n,r,o,i,a){var s=r%2?2:1;if(r%2==o%2)for(var c=t,u=0;c<n;){var l=!0,f=!1;if(u==i.length||c<i[u].from){var d=or[c];d!=s&&(l=!1,f=d==16)}var h=l||s!=1?null:[],p=l?r:r+1,v=c;t:for(;;)if(u<i.length&&v==i[u].from){if(f)break t;var m=i[u];if(!l)for(var g=m.to,y=u+1;;){if(g==n)break t;if(!(y<i.length&&i[y].from==g)){if(or[g]==s)break t;break}g=i[y++].to}u++,h?h.push(m):(m.from>c&&a.push(new Sc(c,m.from,p)),gx(e,m.direction==Xh!=!(p%2)?r+1:r,o,m.inner,m.from,m.to,a),c=m.to),v=m.to}else{if(v==n||(l?or[v]!=s:or[v]==s))break;v++}h?mx(e,c,v,r+1,o,h,a):c<v&&a.push(new Sc(c,v,p)),c=v}else for(var b=n,w=i.length;b>t;){var x=!0,k=!1;if(!w||b>i[w-1].to){var j=or[b-1];j!=s&&(x=!1,k=j==16)}var S=x||s!=1?null:[],N=x?r:r+1,C=b;t:for(;;)if(w&&C==i[w-1].to){if(k)break t;var $=i[--w];if(!x)for(var B=$.from,K=w;;){if(B==t)break t;if(!K||i[K-1].to!=B){if(or[B-1]==s)break t;break}B=i[--K].from}S?S.push($):($.to<b&&a.push(new Sc($.to,b,N)),gx(e,$.direction==Xh!=!(N%2)?r+1:r,o,$.inner,$.from,$.to,a),b=$.from),C=$.from}else{if(C==t||(x?or[C-1]!=s:or[C-1]==s))break;C--}S?mx(e,C,b,r+1,o,S,a):C<b&&a.push(new Sc(C,b,N)),b=C}}function gx(e,t,n,r,o,i,a){var s=t%2?2:1;(function(c,u,l,f,d){for(var h=0;h<=f.length;h++){for(var p=h?f[h-1].to:u,v=h<f.length?f[h].from:l,m=h?256:d,g=p,y=m,b=m;g<v;g++){var w=(B=c.charCodeAt(g))<=247?zgt[B]:1424<=B&&B<=1524?2:1536<=B&&B<=1785?Lgt[B-1536]:1774<=B&&B<=2220?4:8192<=B&&B<=8203?256:64336<=B&&B<=65023?4:B==8204?256:1;w==512?w=y:w==8&&b==4&&(w=16),or[g]=w==4?2:w,7&w&&(b=w),y=w}for(var x=p,k=m,j=m;x<v;x++){var S=or[x];if(S==128)x<v-1&&k==or[x+1]&&24&k?S=or[x]=k:or[x]=256;else if(S==64){for(var N=x+1;N<v&&or[N]==64;)N++;for(var C=x&&k==8||N<l&&or[N]==8?j==1?1:8:256,$=x;$<N;$++)or[$]=C;x=N-1}else S==8&&j==1&&(or[x]=1);k=S,7&S&&(j=S)}}var B})(e,o,i,r,s),function(c,u,l,f,d){for(var h=d==1?2:1,p=0,v=0,m=0;p<=f.length;p++)for(var g,y,b,w=p?f[p-1].to:u,x=p<f.length?f[p].from:l,k=w;k<x;k++)if(y=vx[g=c.charCodeAt(k)])if(y<0){for(var j=v-3;j>=0;j-=3)if(Da[j+1]==-y){var S=Da[j+2],N=2&S?d:4&S?1&S?h:d:0;N&&(or[k]=or[Da[j]]=N),v=j;break}}else{if(Da.length==189)break;Da[v++]=k,Da[v++]=g,Da[v++]=m}else if((b=or[k])==2||b==1){var C=b==d;m=C?0:1;for(var $=v-3;$>=0;$-=3){var B=Da[$+2];if(2&B)break;if(C)Da[$+2]|=2;else{if(4&B)break;Da[$+2]|=4}}}}(e,o,i,r,s),function(c,u,l,f){for(var d=0,h=f;d<=l.length;d++)for(var p=d?l[d-1].to:c,v=d<l.length?l[d].from:u,m=p;m<v;){var g=or[m];if(g==256){for(var y=m+1;;)if(y==v){if(d==l.length)break;y=l[d++].to,v=d<l.length?l[d].from:u}else{if(or[y]!=256)break;y++}for(var b=h==1,w=b==((y<u?or[y]:f)==1)?b?1:2:f,x=y,k=d,j=k?l[k-1].to:c;x>m;)x==j&&(x=l[--k].from,j=k?l[k-1].to:c),or[--x]=w;m=y}else h=g,m++}}(o,i,r,s),mx(e,o,i,t,n,r,a)}function vP(e){return[new Sc(0,e,0)]}var EF="";function Fgt(e,t,n,r,o){var i,a=r.head-e.from,s=-1;if(a==0){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),s=0)}else if(a==e.length){if(o)return null;var c=t[t.length-1];c.level!=n&&(a=c.side(!0,n),s=t.length-1)}s<0&&(s=Sc.find(t,a,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc));var u=t[s];a==u.side(o,n)&&(a=(u=t[s+=o?1:-1]).side(!o,n));var l=o==(u.dir==n),f=Po(e.text,a,l);if(EF=e.text.slice(Math.min(a,f),Math.max(a,f)),f!=u.side(o,n))return Jt.cursor(f+e.from,l?-1:1,u.level);var d=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];return d||u.level==n?d&&d.level<u.level?Jt.cursor(d.side(!o,n)+e.from,o?1:-1,d.level):Jt.cursor(f+e.from,o?-1:1,u.level):Jt.cursor(o?e.to:e.from,o?-1:1,n)}var mP=function(e){Tt(n,Lr);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).view=r,o.decorations=[],o.dynamicDecorationMap=[],o.domChanged=null,o.hasComposition=null,o.markedForComposition=new Set,o.minWidth=0,o.minWidthFrom=0,o.minWidthTo=0,o.impreciseAnchor=null,o.impreciseHead=null,o.forceSelection=!1,o.lastUpdate=Date.now(),o.setDOM(r.contentDOM),o.children=[new Lo],o.children[0].setParent(he(o)),o.updateDeco(),o.updateInner([new _c(0,0,0,r.state.doc.length)],0,null),o}return ot(n,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(r){var o,i=this,a=r.changedRanges;this.minWidth>0&&a.length&&(a.every(function(h){var p=h.fromA;return h.toA<i.minWidthFrom||p>i.minWidthTo})?(this.minWidthFrom=r.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=r.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);var s=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?s=this.domChanged.newSel.head:function(h,p){var v=!1;return p&&h.iterChangedRanges(function(m,g){m<p.to&&g>p.from&&(v=!0)}),v}(r.changes,this.hasComposition)||r.selectionSet||(s=r.state.selection.main.head));var c=s>-1?function(h,p,v){var m=OF(h,v);if(!m)return null;var g=m.node,y=m.from,b=m.to,w=g.nodeValue;if(/[\n\r]/.test(w)||h.state.doc.sliceString(m.from,m.to)!=w)return null;for(var x=p.invertedDesc,k=new _c(x.mapPos(y),x.mapPos(b),y,b),j=[],S=g.parentNode;;S=S.parentNode){var N=Lr.get(S);if(N instanceof Tf)j.push({node:S,deco:N.mark});else{if(N instanceof Lo||S.nodeName=="DIV"&&S.parentNode==h.contentDOM)return{range:k,text:g,marks:j,line:S};if(S==h.contentDOM)return null;j.push({node:S,deco:new Aj({inclusive:!0,attributes:Ngt(S),tagName:S.tagName.toLowerCase()})})}}}(this.view,r.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();var u=this.hasComposition,l=u.from,f=u.to;a=new _c(l,f,r.changes.mapPos(l,-1),r.changes.mapPos(f,1)).addToSet(a.slice())}this.hasComposition=c?{from:c.range.fromB,to:c.range.toB}:null,(Ce.ie||Ce.chrome)&&!c&&r&&r.state.doc.lines!=r.startState.doc.lines&&(this.forceSelection=!0);var d=function(h,p,v){var m=new qgt;return vr.compare(h,p,v,m),m.changes}(this.decorations,this.updateDeco(),r.changes);return a=_c.extendWithRanges(a,d),!!(7&this.flags||a.length!=0)&&(this.updateInner(a,r.startState.doc.length,c),r.transactions.length&&(this.lastUpdate=Date.now()),!0)}},{key:"updateInner",value:function(r,o,i){var a=this;this.view.viewState.mustMeasureContent=!0,this.updateChildren(r,o,i);var s=this.view.observer;s.ignore(function(){a.dom.style.height=a.view.viewState.contentHeight/a.view.scaleY+"px",a.dom.style.flexBasis=a.minWidth?a.minWidth+"px":"";var d=Ce.chrome||Ce.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;a.sync(a.view,d),a.flags&=-8,d&&(d.written||s.selectionRange.focusNode!=d.node)&&(a.forceSelection=!0),a.dom.style.height=""}),this.markedForComposition.forEach(function(d){return d.flags&=-9});var c=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length){var u,l=ht(this.children);try{for(l.s();!(u=l.n()).done;){var f=u.value;f instanceof fx&&f.widget instanceof gP&&c.push(f.dom)}}catch(d){l.e(d)}finally{l.f()}}s.updateGaps(c)}},{key:"updateChildren",value:function(r,o,i){for(var a=i?i.range.addToSet(r.slice()):r,s=this.childCursor(o),c=a.length-1;;c--){var u=c>=0?a[c]:null;if(!u)break;var l=u.fromA,f=u.toA,d=u.fromB,h=u.toB,p=void 0,v=void 0,m=void 0,g=void 0;if(i&&i.range.fromB<h&&i.range.toB>d){var y=Ay.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),b=Ay.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);v=y.breakAtStart,m=y.openStart,g=b.openEnd;var w=this.compositionView(i);b.breakAtStart?w.breakAfter=1:b.content.length&&w.merge(w.length,w.length,b.content[0],!1,b.openStart,0)&&(w.breakAfter=b.content[0].breakAfter,b.content.shift()),y.content.length&&w.merge(0,0,y.content[y.content.length-1],!0,0,y.openEnd)&&y.content.pop(),p=y.content.concat(w).concat(b.content)}else{var x=Ay.build(this.view.state.doc,d,h,this.decorations,this.dynamicDecorationMap);p=x.content,v=x.breakAtStart,m=x.openStart,g=x.openEnd}var k=s.findPos(f,1),j=k.i,S=k.off,N=s.findPos(l,-1);aF(this,N.i,N.off,j,S,p,v,m,g)}i&&this.fixCompositionDOM(i)}},{key:"compositionView",value:function(r){var o=new Pf(r.text.nodeValue);o.flags|=8;var i,a=ht(r.marks);try{for(a.s();!(i=a.n()).done;){var s=i.value.deco;o=new Tf(s,[o],o.length)}}catch(u){a.e(u)}finally{a.f()}var c=new Lo;return c.append(o,0),c}},{key:"fixCompositionDOM",value:function(r){var o=this,i=function(u,l){l.flags|=8|(l.children.some(function(d){return 7&d.flags})?1:0),o.markedForComposition.add(l);var f=Lr.get(u);f&&f!=l&&(f.dom=null),l.setDOM(u)},a=this.childPos(r.range.fromB,1),s=this.children[a.i];i(r.line,s);for(var c=r.marks.length-1;c>=-1;c--)a=s.childPos(a.off,1),s=s.children[a.i],i(c>=0?r.marks[c].node:r.text,s)}},{key:"updateSelection",value:function(){var r=this,o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];!(arguments.length>0&&arguments[0]!==void 0&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();var i=this.view.root.activeElement,a=i==this.dom,s=!a&&$m(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(a||o||s){var c=this.forceSelection;this.forceSelection=!1;var u,l=this.view.state.selection.main,f=this.moveToLine(this.domAtPos(l.anchor)),d=l.empty?f:this.moveToLine(this.domAtPos(l.head));if(Ce.gecko&&l.empty&&!this.hasComposition&&(u=f).node.nodeType==1&&u.node.firstChild&&(u.offset==0||u.node.childNodes[u.offset-1].contentEditable=="false")&&(u.offset==u.node.childNodes.length||u.node.childNodes[u.offset].contentEditable=="false")){var h=document.createTextNode("");this.view.observer.ignore(function(){return f.node.insertBefore(h,f.node.childNodes[f.offset]||null)}),f=d=new di(h,0),c=!0}var p=this.view.observer.selectionRange;!c&&p.focusNode&&Rg(f.node,f.offset,p.anchorNode,p.anchorOffset)&&Rg(d.node,d.offset,p.focusNode,p.focusOffset)||(this.view.observer.ignore(function(){Ce.android&&Ce.chrome&&r.dom.contains(p.focusNode)&&function(k,j){for(var S=k;S&&S!=j;S=S.assignedSlot||S.parentNode)if(S.nodeType==1&&S.contentEditable=="false")return!0;return!1}(p.focusNode,r.dom)&&(r.dom.blur(),r.dom.focus({preventScroll:!0}));var v,m,g=Tg(r.view.root);if(g)if(l.empty){if(Ce.gecko){var y=(v=f.node,m=f.offset,v.nodeType!=1?0:(m&&v.childNodes[m-1].contentEditable=="false"?1:0)|(m<v.childNodes.length&&v.childNodes[m].contentEditable=="false"?2:0));if(y&&y!=3){var b=MF(f.node,f.offset,y==1?1:-1);b&&(f=new di(b.node,b.offset))}}g.collapse(f.node,f.offset),l.bidiLevel!=null&&g.caretBidiLevel!==void 0&&(g.caretBidiLevel=l.bidiLevel)}else if(g.extend){g.collapse(f.node,f.offset);try{g.extend(d.node,d.offset)}catch{}}else{var w=document.createRange();if(l.anchor>l.head){var x=[d,f];f=x[0],d=x[1]}w.setEnd(d.node,d.offset),w.setStart(f.node,f.offset),g.removeAllRanges(),g.addRange(w)}s&&r.view.root.activeElement==r.dom&&(r.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(f,d)),this.impreciseAnchor=f.precise?null:new di(p.anchorNode,p.anchorOffset),this.impreciseHead=d.precise?null:new di(p.focusNode,p.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.hasComposition){var r=this.view,o=r.state.selection.main,i=Tg(r.root),a=r.observer.selectionRange,s=a.anchorNode,c=a.anchorOffset;if(i&&o.empty&&o.assoc&&i.modify){var u=Lo.find(this,o.head);if(u){var l=u.posAtStart;if(o.head!=l&&o.head!=l+u.length){var f=this.coordsAt(o.head,-1),d=this.coordsAt(o.head,1);if(f&&d&&!(f.bottom>d.top)){var h=this.domAtPos(o.head+o.assoc);i.collapse(h.node,h.offset),i.modify("move",o.assoc<0?"forward":"backward","lineboundary"),r.observer.readSelectionRange();var p=r.observer.selectionRange;r.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=o.from&&i.collapse(s,c)}}}}}}},{key:"moveToLine",value:function(r){var o,i=this.dom;if(r.node!=i)return r;for(var a=r.offset;!o&&a<i.childNodes.length;a++){var s=Lr.get(i.childNodes[a]);s instanceof Lo&&(o=s.domAtPos(0))}for(var c=r.offset-1;!o&&c>=0;c--){var u=Lr.get(i.childNodes[c]);u instanceof Lo&&(o=u.domAtPos(u.length))}return o?new di(o.node,o.offset,!0):r}},{key:"nearest",value:function(r){for(var o=r;o;){var i=Lr.get(o);if(i&&i.rootView==this)return i;o=o.parentNode}return null}},{key:"posFromDOM",value:function(r,o){var i=this.nearest(r);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(r,o)+i.posAtStart}},{key:"domAtPos",value:function(r){for(var o=this.childCursor().findPos(r,-1),i=o.i,a=o.off;i<this.children.length-1;){var s=this.children[i];if(a<s.length||s instanceof Lo)break;i++,a=0}return this.children[i].domAtPos(a)}},{key:"coordsAt",value:function(r,o){for(var i=null,a=0,s=this.length,c=this.children.length-1;c>=0;c--){var u=this.children[c],l=s-u.breakAfter,f=l-u.length;if(l<r)break;f<=r&&(f<r||u.covers(-1))&&(l>r||u.covers(1))&&(!i||u instanceof Lo&&!(i instanceof Lo&&o>=0))&&(i=u,a=f),s=f}return i?i.coordsAt(r-a,o):null}},{key:"coordsForChar",value:function(r){var o=this.childPos(r,1),i=o.i,a=o.off,s=this.children[i];if(!(s instanceof Lo))return null;for(;s.children.length;){for(var c=s.childPos(a,1),u=c.i,l=c.off;;u++){if(u==s.children.length)return null;if((s=s.children[u]).length)break}a=l}if(!(s instanceof Pf))return null;var f=Po(s.text,a);if(f==a)return null;var d=il(s.dom,a,f).getClientRects();return!d.length||d[0].top>=d[0].bottom?null:d[0]}},{key:"measureVisibleLineHeights",value:function(r){for(var o=[],i=r.from,a=r.to,s=this.view.contentDOM.clientWidth,c=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,u=-1,l=this.view.textDirection==Rr.LTR,f=0,d=0;d<this.children.length;d++){var h=this.children[d],p=f+h.length;if(p>a)break;if(f>=i){var v=h.dom.getBoundingClientRect();if(o.push(v.height),c){var m=h.dom.lastChild,g=m?Gh(m):[];if(g.length){var y=g[g.length-1],b=l?y.right-v.left:v.right-y.left;b>u&&(u=b,this.minWidth=s,this.minWidthFrom=f,this.minWidthTo=p)}}}f=p+h.breakAfter}return o}},{key:"textDirectionAt",value:function(r){var o=this.childPos(r,1).i;return getComputedStyle(this.children[o].dom).direction=="rtl"?Rr.RTL:Rr.LTR}},{key:"measureTextSize",value:function(){var r,o=this,i=ht(this.children);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a instanceof Lo){var s=a.measureTextSize();if(s)return s}}}catch(d){i.e(d)}finally{i.f()}var c,u,l,f=document.createElement("div");return f.className="cm-line",f.style.width="99999px",f.style.position="absolute",f.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){o.dom.appendChild(f);var d=Gh(f.firstChild)[0];c=f.getBoundingClientRect().height,u=d?d.width/27:7,l=d?d.height:c,f.remove()}),{lineHeight:c,charWidth:u,textHeight:l}}},{key:"childCursor",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.length,o=this.children.length;return o&&(r-=this.children[--o].length),new iF(this.children,r,o)}},{key:"computeBlockGapDeco",value:function(){for(var r=[],o=this.view.viewState,i=0,a=0;;a++){var s=a==o.viewports.length?null:o.viewports[a],c=s?s.from-1:this.length;if(c>i){var u=(o.lineBlockAt(c).bottom-o.lineBlockAt(i).top)/this.view.scaleY;r.push(We.replace({widget:new gP(u),block:!0,inclusive:!0,isBlockGap:!0}).range(i,c))}if(!s)break;i=s.to+1}return We.set(r)}},{key:"updateDeco",value:function(){for(var r=this,o=this.view.state.facet(Yh).map(function(a,s){return(r.dynamicDecorationMap[s]=typeof a=="function")?a(r.view):a}),i=o.length;i<o.length+3;i++)this.dynamicDecorationMap[i]=!1;return this.decorations=[].concat(Se(o),[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco])}},{key:"scrollIntoView",value:function(r){var o,i=r.range,a=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1);if(a){!i.empty&&(o=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(a={left:Math.min(a.left,o.left),top:Math.min(a.top,o.top),right:Math.max(a.right,o.right),bottom:Math.max(a.bottom,o.bottom)});var s=SF(this.view),c={left:a.left-s.left,top:a.top-s.top,right:a.right+s.right,bottom:a.bottom+s.bottom};(function(u,l,f,d,h,p,v,m){for(var g=u.ownerDocument,y=g.defaultView||window,b=u,w=!1;b&&!w;)if(b.nodeType==1){var x=void 0,k=b==g.body,j=1,S=1;if(k)x=Rgt(y);else{if(/^(fixed|sticky)$/.test(getComputedStyle(b).position)&&(w=!0),b.scrollHeight<=b.clientHeight&&b.scrollWidth<=b.clientWidth){b=b.assignedSlot||b.parentNode;continue}var N=b.getBoundingClientRect();j=N.width/b.offsetWidth,S=N.height/b.offsetHeight,x={left:N.left,right:N.left+b.clientWidth*j,top:N.top,bottom:N.top+b.clientHeight*S}}var C=0,$=0;if(h=="nearest")l.top<x.top?($=-(x.top-l.top+v),f>0&&l.bottom>x.bottom+$&&($=l.bottom-x.bottom+$+v)):l.bottom>x.bottom&&($=l.bottom-x.bottom+v,f<0&&l.top-$<x.top&&($=-(x.top+$-l.top+v)));else{var B=l.bottom-l.top,K=x.bottom-x.top;$=(h=="center"&&B<=K?l.top+B/2-K/2:h=="start"||h=="center"&&f<0?l.top-v:l.bottom-K+v)-x.top}if(d=="nearest"?l.left<x.left?(C=-(x.left-l.left+p),f>0&&l.right>x.right+C&&(C=l.right-x.right+C+p)):l.right>x.right&&(C=l.right-x.right+p,f<0&&l.left<x.left+C&&(C=-(x.left+C-l.left+p))):C=(d=="center"?l.left+(l.right-l.left)/2-(x.right-x.left)/2:d=="start"==m?l.left-p:l.right-(x.right-x.left)+p)-x.left,C||$)if(k)y.scrollBy(C,$);else{var R=0,q=0;if($){var F=b.scrollTop;b.scrollTop+=$/S,q=(b.scrollTop-F)*S}if(C){var O=b.scrollLeft;b.scrollLeft+=C/j,R=(b.scrollLeft-O)*j}l={left:l.left-R,top:l.top-q,right:l.right-R,bottom:l.bottom-q},R&&Math.abs(R-C)<1&&(d="nearest"),q&&Math.abs(q-$)<1&&(h="nearest")}if(k)break;b=b.assignedSlot||b.parentNode}else{if(b.nodeType!=11)break;b=b.host}})(this.view.scrollDOM,c,i.head<i.anchor?-1:1,r.x,r.y,r.xMargin,r.yMargin,this.view.textDirection==Rr.LTR)}}}]),n}(),gP=function(e){Tt(n,cu);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).height=r,o}return ot(n,[{key:"toDOM",value:function(){var r=document.createElement("div");return this.updateDOM(r),r}},{key:"eq",value:function(r){return r.height==this.height}},{key:"updateDOM",value:function(r){return r.style.height=this.height+"px",!0}},{key:"estimatedHeight",get:function(){return this.height}}]),n}();function OF(e,t){var n=e.observer.selectionRange,r=n.focusNode&&MF(n.focusNode,n.focusOffset,0);if(!r)return null;var o=t-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function MF(e,t,n){if(n<=0)for(var r=e,o=t;;){if(r.nodeType==3)return{node:r,offset:o};if(!(r.nodeType==1&&o>0))break;o=Js(r=r.childNodes[o-1])}if(n>=0)for(var i=e,a=t;;){if(i.nodeType==3)return{node:i,offset:a};if(!(i.nodeType==1&&a<i.childNodes.length&&n>=0))break;i=i.childNodes[a],a=0}return null}var qgt=function(){function e(){rt(this,e),this.changes=[]}return ot(e,[{key:"compareRange",value:function(t,n){hx(t,n,this.changes)}},{key:"comparePoint",value:function(t,n){hx(t,n,this.changes)}}]),e}();function Hgt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Vgt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Ry(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function yP(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function bP(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function yx(e,t,n){for(var r,o,i,a,s,c,u,l,f=!1,d=e.firstChild;d;d=d.nextSibling)for(var h=Gh(d),p=0;p<h.length;p++){var v=h[p];o&&Ry(o,v)&&(v=yP(bP(v,o.bottom),o.top));var m=Hgt(t,v),g=Vgt(n,v);if(m==0&&g==0)return d.nodeType==3?wP(d,t,n):yx(d,t,n);if(!r||a>g||a==g&&i>m){r=d,o=v,i=m,a=g;var y=g?n<v.top?-1:1:m?t<v.left?-1:1:0;f=!y||(y>0?p<h.length-1:p>0)}m==0?n>v.bottom&&(!u||u.bottom<v.bottom)?(s=d,u=v):n<v.top&&(!l||l.top>v.top)&&(c=d,l=v):u&&Ry(u,v)?u=bP(u,v.bottom):l&&Ry(l,v)&&(l=yP(l,v.top))}if(u&&u.bottom>=n?(r=s,o=u):l&&l.top<=n&&(r=c,o=l),!r)return{node:e,offset:0};var b=Math.max(o.left,Math.min(o.right,t));return r.nodeType==3?wP(r,b,n):f&&r.contentEditable!="false"?yx(r,b,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0)}}function wP(e,t,n){for(var r=e.nodeValue.length,o=-1,i=1e9,a=0,s=0;s<r;s++)for(var c=il(e,s,s+1).getClientRects(),u=0;u<c.length;u++){var l=c[u];if(l.top!=l.bottom){a||(a=t-l.left);var f=(l.top>n?l.top-n:n-l.bottom)-1;if(l.left-1<=t&&l.right+1>=t&&f<i){var d=t>=(l.left+l.right)/2,h=d;if((Ce.chrome||Ce.gecko)&&il(e,s).getBoundingClientRect().left==l.right&&(h=!d),f<=0)return{node:e,offset:s+(h?1:0)};o=s+(h?1:0),i=f}}}return{node:e,offset:o>-1?o:a>0?e.nodeValue.length:0}}function xP(e,t,n){var r,o,i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,s=e.contentDOM.getBoundingClientRect(),c=s.top+e.viewState.paddingTop,u=e.viewState.docHeight,l=t.x,f=t.y,d=f-c;if(d<0)return 0;if(d>u)return e.state.doc.length;for(var h=e.viewState.heightOracle.textHeight/2,p=!1;(i=e.elementAtHeight(d)).type!=Uo.Text;)for(;!((d=a>0?i.bottom+h:i.top-h)>=0&&d<=u);){if(p)return n?null:0;p=!0,a=-a}f=c+d;var v=i.from;if(v<e.viewport.from)return e.viewport.from==0?0:n?null:kP(e,s,i,l,f);if(v>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:kP(e,s,i,l,f);var m=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:m,y=g.elementFromPoint(l,f);y&&!e.contentDOM.contains(y)&&(y=null),y||(l=Math.max(s.left+1,Math.min(s.right-1,l)),(y=g.elementFromPoint(l,f))&&!e.contentDOM.contains(y)&&(y=null));var b,w=-1;if(y&&((r=e.docView.nearest(y))===null||r===void 0?void 0:r.isEditable)!=0){if(m.caretPositionFromPoint){var x=m.caretPositionFromPoint(l,f);x&&(b=x.offsetNode,w=x.offset)}else if(m.caretRangeFromPoint){var k=m.caretRangeFromPoint(l,f);k&&(b=k.startContainer,w=k.startOffset,(!e.contentDOM.contains(b)||Ce.safari&&function($,B,K){var R;if($.nodeType!=3||B!=(R=$.nodeValue.length))return!1;for(var q=$.nextSibling;q;q=q.nextSibling)if(q.nodeType!=1||q.nodeName!="BR")return!1;return il($,R-1,R).getBoundingClientRect().left>K}(b,w,l)||Ce.chrome&&function($,B,K){if(B!=0)return!1;for(var R=$;;){var q=R.parentNode;if(!q||q.nodeType!=1||q.firstChild!=R)return!1;if(q.classList.contains("cm-line"))break;R=q}var F=$.nodeType==1?$.getBoundingClientRect():il($,0,Math.max($.nodeValue.length,1)).getBoundingClientRect();return K-F.left>5}(b,w,l))&&(b=void 0))}}if(!b||!e.docView.dom.contains(b)){var j=Lo.find(e.docView,v);if(!j)return d>i.top+i.height/2?i.to:i.from;var S=yx(j.dom,l,f);b=S.node,w=S.offset}var N=e.docView.nearest(b);if(!N)return null;if(N.isWidget&&((o=N.dom)===null||o===void 0?void 0:o.nodeType)==1){var C=N.dom.getBoundingClientRect();return t.y<C.top||t.y<=C.bottom&&t.x<=(C.left+C.right)/2?N.posAtStart:N.posAtEnd}return N.localPosFromDOM(b,w)+N.posAtStart}function kP(e,t,n,r,o){var i=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){var a=e.viewState.heightOracle.textHeight;i+=Math.floor((o-n.top-.5*(e.defaultLineHeight-a))/a)*e.viewState.heightOracle.lineLength}var s=e.state.sliceDoc(n.from,n.to);return n.from+rx(s,i,e.state.tabSize)}function bx(e,t){var n=e.lineBlockAt(t);if(Array.isArray(n.type)){var r,o=ht(n.type);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.to>t||i.to==t&&(i.to==n.to||i.type==Uo.Text))return i}}catch(a){o.e(a)}finally{o.f()}}return n}function jP(e,t,n,r){for(var o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),a=e.textDirectionAt(o.from),s=t,c=null;;){var u=Fgt(o,i,a,s,n),l=EF;if(!u){if(o.number==(n?e.state.doc.lines:1))return s;l=`
112
+ `,o=e.state.doc.line(o.number+(n?1:-1)),i=e.bidiSpans(o),u=Jt.cursor(n?o.from:o.to)}if(c){if(!c(l))return s}else{if(!r)return u;c=r(l)}s=u}}function Cm(e,t,n){for(var r,o=function(){var i,a=0,s=ht(e);try{for(s.s();!(i=s.n()).done;)i.value.between(t-1,t+1,function(c,u,l){if(t>c&&t<u){var f=a||n||(t-c<u-t?-1:1);t=f<0?c:u,a=f}})}catch(c){s.e(c)}finally{s.f()}if(!a)return{v:t}};;)if(r=o())return r.v}function Iy(e,t,n){var r=Cm(e.state.facet(Tj).map(function(o){return o(e)}),n.from,t.head>n.from?-1:1);return r==n.from?n:Jt.cursor(r,r<n.from?1:-1)}var Ugt=function(){function e(t){var n=this;rt(this,e),this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.handleEvent=this.handleEvent.bind(this),t.scrollDOM.addEventListener("mousedown",function(r){if(r.target==t.scrollDOM&&r.clientY>t.contentDOM.getBoundingClientRect().bottom&&(n.runHandlers("mousedown",r),!r.defaultPrevented&&r.button==2)){var o=t.contentDOM.style.minHeight;t.contentDOM.style.minHeight="100%",setTimeout(function(){return t.contentDOM.style.minHeight=o},200)}}),t.scrollDOM.addEventListener("drop",function(r){r.target==t.scrollDOM&&r.clientY>t.contentDOM.getBoundingClientRect().bottom&&n.runHandlers("drop",r)}),this.notifiedFocused=t.hasFocus,Ce.safari&&t.contentDOM.addEventListener("input",function(){return null}),Ce.gecko&&function(r){RP.has(r)||(RP.add(r),r.addEventListener("copy",function(){}),r.addEventListener("cut",function(){}))}(t.contentDOM.ownerDocument)}return ot(e,[{key:"setSelectionOrigin",value:function(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}},{key:"handleEvent",value:function(t){(function(n,r){if(!r.bubbles)return!0;if(r.defaultPrevented)return!1;for(var o,i=r.target;i!=n.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(o=Lr.get(i))&&o.ignoreEvent(r))return!1;return!0})(this.view,t)&&!this.ignoreDuringComposition(t)&&(t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t))}},{key:"runHandlers",value:function(t,n){var r=this.handlers[t];if(r){var o,i=ht(r.observers);try{for(i.s();!(o=i.n()).done;)(0,o.value)(this.view,n)}catch(u){i.e(u)}finally{i.f()}var a,s=ht(r.handlers);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(n.defaultPrevented)break;if(c(this.view,n)){n.preventDefault();break}}}catch(u){s.e(u)}finally{s.f()}}}},{key:"ensureHandlers",value:function(t){var n=Wgt(t),r=this.handlers,o=this.view.contentDOM;for(var i in n)if(i!="scroll"){var a=!n[i].handlers.length,s=r[i];s&&a!=!s.handlers.length&&(o.removeEventListener(i,this.handleEvent),s=null),s||o.addEventListener(i,this.handleEvent,{passive:a})}for(var c in r)c=="scroll"||n[c]||o.removeEventListener(c,this.handleEvent);this.handlers=n}},{key:"keydown",value:function(t){var n,r=this;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3||(t.keyCode!=27&&PF.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),!Ce.android||!Ce.chrome||t.synthetic||t.keyCode!=13&&t.keyCode!=8?!Ce.ios||t.synthetic||t.altKey||t.metaKey||!((n=AF.find(function(o){return o.keyCode==t.keyCode}))&&!t.ctrlKey||Kgt.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(t.keyCode!=229&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=n||t,setTimeout(function(){return r.flushIOSKey()},250),!0):(this.view.observer.delayAndroidKey(t.key,t.keyCode),!0))}},{key:"flushIOSKey",value:function(){var t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,uf(this.view.contentDOM,t.key,t.keyCode))}},{key:"ignoreDuringComposition",value:function(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(Ce.safari&&!Ce.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}},{key:"startMouseSelection",value:function(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}},{key:"update",value:function(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),e}();function _P(e,t){return function(n,r){try{return t.call(e,r,n)}catch(o){Vi(n.state,o)}}}function Wgt(e){var t=Object.create(null);function n(h){return t[h]||(t[h]={observers:[],handlers:[]})}var r,o=ht(e);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.spec;if(a&&a.domEventHandlers)for(var s in a.domEventHandlers){var c=a.domEventHandlers[s];c&&n(s).handlers.push(_P(i.value,c))}if(a&&a.domEventObservers)for(var u in a.domEventObservers){var l=a.domEventObservers[u];l&&n(u).observers.push(_P(i.value,l))}}}catch(h){o.e(h)}finally{o.f()}for(var f in rs)n(f).handlers.push(rs[f]);for(var d in ca)n(d).observers.push(ca[d]);return t}var AF=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Kgt="dthko",PF=[16,17,18,20,91,92,224,225];function $v(e){return .7*Math.max(0,e)+8}var Jgt=function(){function e(t,n,r,o){rt(this,e),this.view=t,this.startEvent=n,this.style=r,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=function(a){for(var s=a.ownerDocument,c=a.parentNode;c&&c!=s.body;)if(c.nodeType==1){if(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)return c;c=c.assignedSlot||c.parentNode}else{if(c.nodeType!=11)break;c=c.host}return null}(t.contentDOM),this.atoms=t.state.facet(Tj).map(function(a){return a(t)});var i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(fr.allowMultipleSelections)&&function(a,s){var c=a.state.facet(pF);return c.length?c[0](s):Ce.mac?s.metaKey:s.ctrlKey}(t,n),this.dragging=!(!function(a,s){var c=a.state.selection.main;if(c.empty)return!1;var u=Tg(a.root);if(!u||u.rangeCount==0)return!0;for(var l=u.getRangeAt(0).getClientRects(),f=0;f<l.length;f++){var d=l[f];if(d.left<=s.clientX&&d.right>=s.clientX&&d.top<=s.clientY&&d.bottom>=s.clientY)return!0}return!1}(t,n)||IF(n)!=1)&&null}return ot(e,[{key:"start",value:function(t){this.dragging===!1&&this.select(t)}},{key:"move",value:function(t){var n;if(t.buttons==0)return this.destroy();if(!(this.dragging||this.dragging==null&&function(s,c){return Math.max(Math.abs(s.clientX-c.clientX),Math.abs(s.clientY-c.clientY))}(this.startEvent,t)<10)){this.select(this.lastEvent=t);var r=0,o=0,i=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=SF(this.view);t.clientX-a.left<=i.left+6?r=-$v(i.left-t.clientX):t.clientX+a.right>=i.right-6&&(r=$v(t.clientX-i.right)),t.clientY-a.top<=i.top+6?o=-$v(i.top-t.clientY):t.clientY+a.bottom>=i.bottom-6&&(o=$v(t.clientY-i.bottom)),this.setScrollSpeed(r,o)}}},{key:"up",value:function(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(t,n){var r=this;this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(function(){return r.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}},{key:"skipAtoms",value:function(t){for(var n=null,r=0;r<t.ranges.length;r++){var o=t.ranges[r],i=null;if(o.empty){var a=Cm(this.atoms,o.from,0);a!=o.from&&(i=Jt.cursor(a,-1))}else{var s=Cm(this.atoms,o.from,-1),c=Cm(this.atoms,o.to,1);s==o.from&&c==o.to||(i=Jt.range(o.from==o.anchor?s:c,o.from==o.head?s:c))}i&&(n||(n=t.ranges.slice()),n[r]=i)}return n?Jt.create(n,t.mainIndex):t}},{key:"select",value:function(t){var n=this.view,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection)||r.main.assoc!=n.state.selection.main.assoc&&this.dragging===!1)&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(t){var n=this;t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(function(){return n.select(n.lastEvent)},20)}}]),e}(),rs=Object.create(null),ca=Object.create(null),TF=Ce.ie&&Ce.ie_version<15||Ce.ios&&Ce.webkit_version<604;function SP(e,t){var n,r=e.state,o=1,i=r.toText(t),a=i.lines==r.selection.ranges.length,s=wx!=null&&r.selection.ranges.every(function(u){return u.empty})&&wx==i.toString();if(s){var c=-1;n=r.changeByRange(function(u){var l=r.doc.lineAt(u.from);if(l.from==c)return{range:u};c=l.from;var f=r.toText((a?i.line(o++).text:t)+r.lineBreak);return{changes:{from:l.from,insert:f},range:Jt.cursor(u.from+f.length)}})}else n=a?r.changeByRange(function(u){var l=i.line(o++);return{changes:{from:u.from,to:u.to,insert:l.text},range:Jt.cursor(u.from+l.length)}}):r.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function $P(e,t,n,r){if(r==1)return Jt.cursor(t,n);if(r==2)return function(c,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=c.charCategorizer(u),d=c.doc.lineAt(u),h=u-d.from;if(d.length==0)return Jt.cursor(u);h==0?l=1:h==d.length&&(l=-1);var p=h,v=h;l<0?p=Po(d.text,h,!1):v=Po(d.text,h);for(var m=f(d.text.slice(p,v));p>0;){var g=Po(d.text,p,!1);if(f(d.text.slice(g,p))!=m)break;p=g}for(;v<d.length;){var y=Po(d.text,v);if(f(d.text.slice(v,y))!=m)break;v=y}return Jt.range(p+d.from,v+d.from)}(e.state,t,n);var o=Lo.find(e.docView,t),i=e.state.doc.lineAt(o?o.posAtEnd:t),a=o?o.posAtStart:i.from,s=o?o.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,Jt.range(a,s)}ca.scroll=function(e){e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},rs.keydown=function(e,t){return e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1},ca.touchstart=function(e,t){e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},ca.touchmove=function(e){e.inputState.setSelectionOrigin("select.pointer")},rs.mousedown=function(e,t){if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;var n,r=null,o=ht(e.state.facet(mF));try{for(o.s();!(n=o.n()).done&&!(r=(0,n.value)(e,t)););}catch(s){o.e(s)}finally{o.f()}if(r||t.button!=0||(r=function(s,c){var u=EP(s,c),l=IF(c),f=s.state.selection;return{update:function(d){d.docChanged&&(u.pos=d.changes.mapPos(u.pos),f=f.map(d.changes))},get:function(d,h,p){var v,m=EP(s,d),g=$P(s,m.pos,m.bias,l);if(u.pos!=m.pos&&!h){var y=$P(s,u.pos,u.bias,l),b=Math.min(y.from,g.from),w=Math.max(y.to,g.to);g=b<g.from?Jt.range(b,w):Jt.range(w,b)}return h?f.replaceRange(f.main.extend(g.from,g.to)):p&&l==1&&f.ranges.length>1&&(v=function(x,k){for(var j=0;j<x.ranges.length;j++){var S=x.ranges[j],N=S.from,C=S.to;if(N<=k&&C>=k)return Jt.create(x.ranges.slice(0,j).concat(x.ranges.slice(j+1)),x.mainIndex==j?0:x.mainIndex-(x.mainIndex>j?1:0))}return null}(f,m.pos))?v:p?f.addRange(g):Jt.create([g])}}}(e,t)),r){var i=!e.hasFocus;e.inputState.startMouseSelection(new Jgt(e,t,r,i)),i&&e.observer.ignore(function(){return nF(e.contentDOM)});var a=e.inputState.mouseSelection;if(a)return a.start(t),!a.dragging}return!1};var RF=function(e,t){return e>=t.top&&e<=t.bottom},CP=function(e,t,n){return RF(t,n)&&e>=n.left&&e<=n.right};function Ggt(e,t,n,r){var o=Lo.find(e.docView,t);if(!o)return 1;var i=t-o.posAtStart;if(i==0)return 1;if(i==o.length)return-1;var a=o.coordsAt(i,-1);if(a&&CP(n,r,a))return-1;var s=o.coordsAt(i,1);return s&&CP(n,r,s)?1:a&&RF(r,a)?-1:1}function EP(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Ggt(e,n,t.clientX,t.clientY)}}var Qgt=Ce.ie&&Ce.ie_version<=11,OP=null,MP=0,AP=0;function IF(e){if(!Qgt)return e.detail;var t=OP,n=AP;return OP=e,AP=Date.now(),MP=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(MP+1)%3:1}function PP(e,t,n,r){if(n){var o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.inputState.mouseSelection,a=r&&i&&i.dragging&&function(u,l){var f=u.state.facet(vF);return f.length?f[0](l):Ce.mac?!l.altKey:!l.ctrlKey}(e,t)?{from:i.dragging.from,to:i.dragging.to}:null,s={from:o,insert:n},c=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(o,-1),head:c.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"})}}rs.dragstart=function(e,t){var n=e.state.selection.main,r=e.inputState.mouseSelection;return r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},rs.drop=function(e,t){if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;var n=t.dataTransfer.files;if(n&&n.length){for(var r=Array(n.length),o=0,i=function(){++o==n.length&&PP(e,t,r.filter(function(u){return u!=null}).join(e.state.lineBreak),!1)},a=function(u){var l=new FileReader;l.onerror=i,l.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(r[u]=l.result),i()},l.readAsText(n[u])},s=0;s<n.length;s++)a(s);return!0}var c=t.dataTransfer.getData("Text");return!!c&&(PP(e,t,c,!0),!0)},rs.paste=function(e,t){if(e.state.readOnly)return!0;e.observer.flush();var n=TF?null:t.clipboardData;return n?(SP(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(r){var o=r.dom.parentNode;if(o){var i=o.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(function(){r.focus(),i.remove(),SP(r,i.value)},50)}}(e),!1)};var wx=null;rs.copy=rs.cut=function(e,t){var n=function(s){var c,u=[],l=[],f=!1,d=ht(s.selection.ranges);try{for(d.s();!(c=d.n()).done;){var h=c.value;h.empty||(u.push(s.sliceDoc(h.from,h.to)),l.push(h))}}catch(b){d.e(b)}finally{d.f()}if(!u.length){var p,v=-1,m=ht(s.selection.ranges);try{for(m.s();!(p=m.n()).done;){var g=p.value.from,y=s.doc.lineAt(g);y.number>v&&(u.push(y.text),l.push({from:y.from,to:Math.min(s.doc.length,y.to+1)})),v=y.number}}catch(b){m.e(b)}finally{m.f()}f=!0}return{text:u.join(s.lineBreak),ranges:l,linewise:f}}(e.state),r=n.text,o=n.ranges,i=n.linewise;if(!r&&!i)return!1;wx=i?r:null,t.type!="cut"||e.state.readOnly||e.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});var a=TF?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",r),!0):(function(s,c){var u=s.dom.parentNode;if(u){var l=u.appendChild(document.createElement("textarea"));l.style.cssText="position: fixed; left: -10000px; top: 10px",l.value=c,l.focus(),l.selectionEnd=c.length,l.selectionStart=0,setTimeout(function(){l.remove(),s.focus()},50)}}(e,r),!1)};var NF=Ns.define();function DF(e,t){var n,r=[],o=ht(e.facet(bF));try{for(o.s();!(n=o.n()).done;){var i=(0,n.value)(e,t);i&&r.push(i)}}catch(a){o.e(a)}finally{o.f()}return r?e.update({effects:r,annotations:NF.of(!0)}):null}function TP(e){setTimeout(function(){var t=e.hasFocus;if(t!=e.inputState.notifiedFocused){var n=DF(e.state,t);n?e.dispatch(n):e.update([])}},10)}ca.focus=function(e){e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),TP(e)},ca.blur=function(e){e.observer.clearSelectionRange(),TP(e)},ca.compositionstart=ca.compositionupdate=function(e){e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},ca.compositionend=function(e){e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Ce.chrome&&Ce.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(function(){return e.observer.flush()}):setTimeout(function(){e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)},ca.contextmenu=function(e){e.inputState.lastContextMenu=Date.now()},rs.beforeinput=function(e,t){var n,r;if(Ce.chrome&&Ce.android&&(r=AF.find(function(i){return i.inputType==t.inputType}))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){var o=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(function(){var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>o+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};var RP=new Set,IP=["pre-wrap","normal","pre-line","break-spaces"],Ygt=function(){function e(t){rt(this,e),this.lineWrapping=t,this.doc=Xn.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}return ot(e,[{key:"heightForGap",value:function(t,n){var r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}},{key:"heightForLine",value:function(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(t){return this.doc=t,this}},{key:"mustRefreshForWrapping",value:function(t){return IP.indexOf(t)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(t){for(var n=!1,r=0;r<t.length;r++){var o=t[r];o<0?r++:this.heightSamples[Math.floor(10*o)]||(n=!0,this.heightSamples[Math.floor(10*o)]=!0)}return n}},{key:"refresh",value:function(t,n,r,o,i,a){var s=IP.indexOf(t)>-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=o,this.lineLength=i,c){this.heightSamples={};for(var u=0;u<a.length;u++){var l=a[u];l<0?u++:this.heightSamples[Math.floor(10*l)]=!0}}return c}}]),e}(),Xgt=function(){function e(t,n){rt(this,e),this.from=t,this.heights=n,this.index=0}return ot(e,[{key:"more",get:function(){return this.index<this.heights.length}}]),e}(),bc=function(){function e(t,n,r,o,i){rt(this,e),this.from=t,this.length=n,this.top=r,this.height=o,this._content=i}return ot(e,[{key:"type",get:function(){return typeof this._content=="number"?Uo.Text:Array.isArray(this._content)?this._content:this._content.type}},{key:"to",get:function(){return this.from+this.length}},{key:"bottom",get:function(){return this.top+this.height}},{key:"widget",get:function(){return this._content instanceof Rf?this._content.widget:null}},{key:"widgetLineBreaks",get:function(){return typeof this._content=="number"?this._content:0}},{key:"join",value:function(t){var n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new e(this.from,this.length+t.length,this.top,this.height+t.height,n)}}]),e}(),yr=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(yr||(yr={})),Em=.001,_a=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;rt(this,e),this.length=t,this.height=n,this.flags=r}return ot(e,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(t){this.flags=(t?2:0)|-3&this.flags}},{key:"setHeight",value:function(t,n){this.height!=n&&(Math.abs(this.height-n)>Em&&(t.heightChanged=!0),this.height=n)}},{key:"replace",value:function(t,n,r){return e.of(r)}},{key:"decomposeLeft",value:function(t,n){n.push(this)}},{key:"decomposeRight",value:function(t,n){n.push(this)}},{key:"applyChanges",value:function(t,n,r,o){for(var i=this,a=r.doc,s=o.length-1;s>=0;s--){var c=o[s],u=c.fromA,l=c.toA,f=c.fromB,d=c.toB,h=i.lineAt(u,yr.ByPosNoHeight,r.setDoc(n),0,0),p=h.to>=l?h:i.lineAt(l,yr.ByPosNoHeight,r,0,0);for(d+=p.to-l,l=p.to;s>0&&h.from<=o[s-1].toA;)u=o[s-1].fromA,f=o[s-1].fromB,s--,u<h.from&&(h=i.lineAt(u,yr.ByPosNoHeight,r,0,0));f+=h.from-u,u=h.from;var v=t0t.build(r.setDoc(a),t,f,d);i=i.replace(u,l,v)}return i.updateHeight(r,0)}}],[{key:"empty",value:function(){return new Va(0,0)}},{key:"of",value:function(t){if(t.length==1)return t[0];for(var n=0,r=t.length,o=0,i=0;;)if(n==r)if(o>2*i){var a=t[n-1];a.break?t.splice(--n,1,a.left,null,a.right):t.splice(--n,1,a.left,a.right),r+=1+a.break,o-=a.size}else{if(!(i>2*o))break;var s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else if(o<i){var c=t[n++];c&&(o+=c.size)}else{var u=t[--r];u&&(i+=u.size)}var l=0;return t[n-1]==null?(l=1,n--):t[n]==null&&(l=1,r++),new Zgt(e.of(t.slice(0,n)),l,e.of(t.slice(r)))}}]),e}();_a.prototype.size=1;var zF=function(e){Tt(n,_a);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this,r,o)).deco=i,a}return ot(n,[{key:"blockAt",value:function(r,o,i,a){return new bc(a,this.length,i,this.height,this.deco||0)}},{key:"lineAt",value:function(r,o,i,a,s){return this.blockAt(0,i,a,s)}},{key:"forEachLine",value:function(r,o,i,a,s,c){r<=s+this.length&&o>=s&&c(this.blockAt(0,i,a,s))}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>3?arguments[3]:void 0;return i&&i.from<=o&&i.more&&this.setHeight(r,i.heights[i.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),n}(),Va=function(e){Tt(n,zF);var t=Rt(n);function n(r,o){var i;return rt(this,n),(i=t.call(this,r,o,null)).collapsed=0,i.widgetHeight=0,i.breaks=0,i}return ot(n,[{key:"blockAt",value:function(r,o,i,a){return new bc(a,this.length,i,this.height,this.breaks)}},{key:"replace",value:function(r,o,i){var a=i[0];return i.length==1&&(a instanceof n||a instanceof lf&&4&a.flags)&&Math.abs(this.length-a.length)<10?(a instanceof lf?a=new n(a.length,this.height):a.height=this.height,this.outdated||(a.outdated=!1),a):_a.of(i)}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=arguments.length>3?arguments[3]:void 0;return a&&a.from<=o&&a.more?this.setHeight(r,a.heights[a.index++]):(i||this.outdated)&&this.setHeight(r,Math.max(this.widgetHeight,r.heightForLine(this.length-this.collapsed))+this.breaks*r.lineHeight),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),n}(),lf=function(e){Tt(n,_a);var t=Rt(n);function n(r){return rt(this,n),t.call(this,r,0)}return ot(n,[{key:"heightMetrics",value:function(r,o){var i,a=r.doc.lineAt(o).number,s=r.doc.lineAt(o+this.length).number,c=s-a+1,u=0;if(r.lineWrapping){var l=Math.min(this.height,r.lineHeight*c);i=l/c,this.length>c+1&&(u=(this.height-l)/(this.length-c-1))}else i=this.height/c;return{firstLine:a,lastLine:s,perLine:i,perChar:u}}},{key:"blockAt",value:function(r,o,i,a){var s=this.heightMetrics(o,a),c=s.firstLine,u=s.lastLine,l=s.perLine,f=s.perChar;if(o.lineWrapping){var d=a+Math.round(Math.max(0,Math.min(1,(r-i)/this.height))*this.length),h=o.doc.lineAt(d),p=l+h.length*f,v=Math.max(i,r-p/2);return new bc(h.from,h.length,v,p,0)}var m=Math.max(0,Math.min(u-c,Math.floor((r-i)/l))),g=o.doc.line(c+m),y=g.from,b=g.length;return new bc(y,b,i+l*m,l,0)}},{key:"lineAt",value:function(r,o,i,a,s){if(o==yr.ByHeight)return this.blockAt(r,i,a,s);if(o==yr.ByPosNoHeight){var c=i.doc.lineAt(r),u=c.from,l=c.to;return new bc(u,l-u,0,0,0)}var f=this.heightMetrics(i,s),d=f.firstLine,h=f.perLine,p=f.perChar,v=i.doc.lineAt(r),m=h+v.length*p,g=v.number-d,y=a+h*g+p*(v.from-s-g);return new bc(v.from,v.length,Math.max(a,Math.min(y,a+this.height-m)),m,0)}},{key:"forEachLine",value:function(r,o,i,a,s,c){r=Math.max(r,s),o=Math.min(o,s+this.length);for(var u=this.heightMetrics(i,s),l=u.firstLine,f=u.perLine,d=u.perChar,h=r,p=a;h<=o;){var v=i.doc.lineAt(h);if(h==r){var m=v.number-l;p+=f*m+d*(r-s-m)}var g=f+d*v.length;c(new bc(v.from,v.length,p,g,0)),p+=g,h=v.to+1}}},{key:"replace",value:function(r,o,i){var a=this.length-o;if(a>0){var s=i[i.length-1];s instanceof n?i[i.length-1]=new n(s.length+a):i.push(null,new n(a-1))}if(r>0){var c=i[0];c instanceof n?i[0]=new n(r+c.length):i.unshift(new n(r-1),null)}return _a.of(i)}},{key:"decomposeLeft",value:function(r,o){o.push(new n(r-1),null)}},{key:"decomposeRight",value:function(r,o){o.push(null,new n(this.length-r-1))}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s=o+this.length;if(a&&a.from<=o+this.length&&a.more){var c=[],u=Math.max(o,a.from),l=-1;for(a.from>o&&c.push(new n(a.from-o-1).updateHeight(r,o));u<=s&&a.more;){var f=r.doc.lineAt(u).length;c.length&&c.push(null);var d=a.heights[a.index++];l==-1?l=d:Math.abs(d-l)>=Em&&(l=-2);var h=new Va(f,d);h.outdated=!1,c.push(h),u+=f+1}u<=s&&c.push(null,new n(s-u).updateHeight(r,u));var p=_a.of(c);return(l<0||Math.abs(p.height-this.height)>=Em||Math.abs(l-this.heightMetrics(r,o).perLine)>=Em)&&(r.heightChanged=!0),p}return(i||this.outdated)&&(this.setHeight(r,r.heightForGap(o,o+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),n}(),Zgt=function(e){Tt(n,_a);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this,r.length+o+i.length,r.height+i.height,o|(r.outdated||i.outdated?2:0))).left=r,a.right=i,a.size=r.size+i.size,a}return ot(n,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(r,o,i,a){var s=i+this.left.height;return r<s?this.left.blockAt(r,o,i,a):this.right.blockAt(r,o,s,a+this.left.length+this.break)}},{key:"lineAt",value:function(r,o,i,a,s){var c=a+this.left.height,u=s+this.left.length+this.break,l=o==yr.ByHeight?r<c:r<u,f=l?this.left.lineAt(r,o,i,a,s):this.right.lineAt(r,o,i,c,u);if(this.break||(l?f.to<u:f.from>u))return f;var d=o==yr.ByPosNoHeight?yr.ByPosNoHeight:yr.ByPos;return l?f.join(this.right.lineAt(u,d,i,c,u)):this.left.lineAt(u,d,i,a,s).join(f)}},{key:"forEachLine",value:function(r,o,i,a,s,c){var u=a+this.left.height,l=s+this.left.length+this.break;if(this.break)r<l&&this.left.forEachLine(r,o,i,a,s,c),o>=l&&this.right.forEachLine(r,o,i,u,l,c);else{var f=this.lineAt(l,yr.ByPos,i,a,s);r<f.from&&this.left.forEachLine(r,f.from-1,i,a,s,c),f.to>=r&&f.from<=o&&c(f),o>f.to&&this.right.forEachLine(f.to+1,o,i,u,l,c)}}},{key:"replace",value:function(r,o,i){var a=this.left.length+this.break;if(o<a)return this.balanced(this.left.replace(r,o,i),this.right);if(r>this.left.length)return this.balanced(this.left,this.right.replace(r-a,o-a,i));var s=[];r>0&&this.decomposeLeft(r,s);var c,u=s.length,l=ht(i);try{for(l.s();!(c=l.n()).done;){var f=c.value;s.push(f)}}catch(h){l.e(h)}finally{l.f()}if(r>0&&NP(s,u-1),o<this.length){var d=s.length;this.decomposeRight(o,s),NP(s,d)}return _a.of(s)}},{key:"decomposeLeft",value:function(r,o){var i=this.left.length;if(r<=i)return this.left.decomposeLeft(r,o);o.push(this.left),this.break&&r>=++i&&o.push(null),r>i&&this.right.decomposeLeft(r-i,o)}},{key:"decomposeRight",value:function(r,o){var i=this.left.length,a=i+this.break;if(r>=a)return this.right.decomposeRight(r-a,o);r<i&&this.left.decomposeRight(r,o),this.break&&r<a&&o.push(null),o.push(this.right)}},{key:"balanced",value:function(r,o){return r.size>2*o.size||o.size>2*r.size?_a.of(this.break?[r,null,o]:[r,o]):(this.left=r,this.right=o,this.height=r.height+o.height,this.outdated=r.outdated||o.outdated,this.size=r.size+o.size,this.length=r.length+this.break+o.length,this)}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s=this.left,c=this.right,u=o+s.length+this.break,l=null;return a&&a.from<=o+s.length&&a.more?l=s=s.updateHeight(r,o,i,a):s.updateHeight(r,o,i),a&&a.from<=u+c.length&&a.more?l=c=c.updateHeight(r,u,i,a):c.updateHeight(r,u,i),l?this.balanced(s,c):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),n}();function NP(e,t){var n,r;e[t]==null&&(n=e[t-1])instanceof lf&&(r=e[t+1])instanceof lf&&e.splice(t-1,3,new lf(n.length+1+r.length))}var t0t=function(){function e(t,n){rt(this,e),this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}return ot(e,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(t,n){if(this.lineStart>-1){var r=Math.min(n,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof Va?o.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Va(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}},{key:"point",value:function(t,n,r){if(t<n||r.heightRelevant){var o=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);var a=n-t;r.block?this.addBlock(new zF(a,o,r)):(a||i||o>=5)&&this.addLineDeco(o,i,a)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}},{key:"enterLine",value:function(){if(!(this.lineStart>-1)){var t=this.oracle.doc.lineAt(this.pos),n=t.from,r=t.to;this.lineStart=n,this.lineEnd=r,this.writtenTo<n&&((this.writtenTo<n-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,n-1)),this.nodes.push(null)),this.pos>n&&this.nodes.push(new Va(this.pos-n,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(t,n){var r=new lf(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}},{key:"ensureLine",value:function(){this.enterLine();var t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Va)return t;var n=new Va(0,-1);return this.nodes.push(n),n}},{key:"addBlock",value:function(t){this.enterLine();var n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}},{key:"addLineDeco",value:function(t,n,r){var o=this.ensureLine();o.length+=r,o.collapsed+=r,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=n,this.writtenTo=this.pos=this.pos+r}},{key:"finish",value:function(t){var n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||n instanceof Va||this.isCovered?(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Va(0,-1));var r,o=t,i=ht(this.nodes);try{for(i.s();!(r=i.n()).done;){var a=r.value;a instanceof Va&&a.updateHeight(this.oracle,o),o+=a?a.length:1}}catch(s){i.e(s)}finally{i.f()}return this.nodes}}],[{key:"build",value:function(t,n,r,o){var i=new e(r,t);return vr.spans(n,r,o,i,0),i.finish(r)}}]),e}(),e0t=function(){function e(){rt(this,e),this.changes=[]}return ot(e,[{key:"compareRange",value:function(){}},{key:"comparePoint",value:function(t,n,r,o){(t<n||r&&r.heightRelevant||o&&o.heightRelevant)&&hx(t,n,this.changes,5)}}]),e}();function n0t(e,t){for(var n=e.getBoundingClientRect(),r=e.ownerDocument,o=r.defaultView||window,i=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),s=Math.max(0,n.top),c=Math.min(o.innerHeight,n.bottom),u=e.parentNode;u&&u!=r.body;)if(u.nodeType==1){var l=u,f=window.getComputedStyle(l);if((l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)&&f.overflow!="visible"){var d=l.getBoundingClientRect();i=Math.max(i,d.left),a=Math.min(a,d.right),s=Math.max(s,d.top),c=u==e.parentNode?d.bottom:Math.min(c,d.bottom)}u=f.position=="absolute"||f.position=="fixed"?l.offsetParent:l.parentNode}else{if(u.nodeType!=11)break;u=u.host}return{left:i-n.left,right:Math.max(i,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,c)-(n.top+t)}}function r0t(e,t){var n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}var Ny=function(){function e(t,n,r){rt(this,e),this.from=t,this.to=n,this.size=r}return ot(e,[{key:"draw",value:function(t,n){return We.replace({widget:new o0t(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}],[{key:"same",value:function(t,n){if(t.length!=n.length)return!1;for(var r=0;r<t.length;r++){var o=t[r],i=n[r];if(o.from!=i.from||o.to!=i.to||o.size!=i.size)return!1}return!0}}]),e}(),o0t=function(e){Tt(n,cu);var t=Rt(n);function n(r,o){var i;return rt(this,n),(i=t.call(this)).size=r,i.vertical=o,i}return ot(n,[{key:"eq",value:function(r){return r.size==this.size&&r.vertical==this.vertical}},{key:"toDOM",value:function(){var r=document.createElement("div");return this.vertical?r.style.height=this.size+"px":(r.style.width=this.size+"px",r.style.height="2px",r.style.display="inline-block"),r}},{key:"estimatedHeight",get:function(){return this.vertical?this.size:-1}}]),n}(),DP=function(){function e(t){var n=this;rt(this,e),this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=zP,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Rr.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;var r=t.facet(Pj).some(function(o){return typeof o!="function"&&o.class=="cm-lineWrapping"});this.heightOracle=new Ygt(r),this.stateDeco=t.facet(Yh).filter(function(o){return typeof o!="function"}),this.heightMap=_a.empty().applyChanges(this.stateDeco,Xn.empty,this.heightOracle.setDoc(t.doc),[new _c(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=We.set(this.lineGaps.map(function(o){return o.draw(n,!1)})),this.computeVisibleRanges()}return ot(e,[{key:"updateForViewport",value:function(){for(var t=this,n=[this.viewport],r=this.state.selection.main,o=function(){var a=i?r.head:r.anchor;if(!n.some(function(l){var f=l.from,d=l.to;return a>=f&&a<=d})){var s=t.lineBlockAt(a),c=s.from,u=s.to;n.push(new Cv(c,u))}},i=0;i<=1;i++)o();this.viewports=n.sort(function(a,s){return a.from-s.from}),this.scaler=this.heightMap.height<=7e6?zP:new a0t(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var t=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(n){t.viewportLines.push(t.scaler.scale==1?n:Hd(n,t.scaler))})}},{key:"update",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.state=t.state;var r=this.stateDeco;this.stateDeco=this.state.facet(Yh).filter(function(l){return typeof l!="function"});var o=t.changedRanges,i=_c.extendWithRanges(o,function(l,f,d){var h=new e0t;return vr.compare(l,f,d,h,0),h.changes}(r,this.stateDeco,t?t.changes:Oa.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);var c=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<c.from||n.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));var u=!t.changes.empty||2&t.flags||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(xF)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(t){var n=t.contentDOM,r=window.getComputedStyle(n),o=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Rr.RTL:Rr.LTR;var a=this.heightOracle.mustRefreshForWrapping(i),s=n.getBoundingClientRect(),c=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;var u=0,l=0;if(s.width&&s.height){var f=s.width/n.offsetWidth,d=s.height/n.offsetHeight;(f>.995&&f<1.005||!isFinite(f)||Math.abs(s.width-n.offsetWidth)<1)&&(f=1),(d>.995&&d<1.005||!isFinite(d)||Math.abs(s.height-n.offsetHeight)<1)&&(d=1),this.scaleX==f&&this.scaleY==d||(this.scaleX=f,this.scaleY=d,u|=8,a=c=!0)}var h=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;this.paddingTop==h&&this.paddingBottom==p||(this.paddingTop=h,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(o.lineWrapping&&(c=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);var v=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=v&&(this.scrollAnchorHeight=-1,this.scrollTop=v),this.scrolledToBottom=oF(t.scrollDOM);var m=(this.printing?r0t:n0t)(n,this.paddingTop),g=m.top-this.pixelViewport.top,y=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;var b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;var w=s.width;if(this.contentDOMWidth==w&&this.editorHeight==t.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),c){var x=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(x)&&(a=!0),a||o.lineWrapping&&Math.abs(w-this.contentDOMWidth)>o.charWidth){var k=t.docView.measureTextSize(),j=k.lineHeight,S=k.charWidth,N=k.textHeight;(a=j>0&&o.refresh(i,j,S,N,w/S,x))&&(t.docView.minWidth=0,u|=8)}g>0&&y>0?l=Math.max(g,y):g<0&&y<0&&(l=Math.min(g,y)),o.heightChanged=!1;var C,$=ht(this.viewports);try{for($.s();!(C=$.n()).done;){var B=C.value,K=B.from==this.viewport.from?x:t.docView.measureVisibleLineHeights(B);this.heightMap=(a?_a.empty().applyChanges(this.stateDeco,Xn.empty,this.heightOracle,[new _c(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new Xgt(B.from,K))}}catch(q){$.e(q)}finally{$.f()}o.heightChanged&&(u|=2)}var R=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return R&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&u||R)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(t,n){var r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,i=this.heightOracle,a=this.visibleTop,s=this.visibleBottom,c=new Cv(o.lineAt(a-1e3*r,yr.ByHeight,i,0,0).from,o.lineAt(s+1e3*(1-r),yr.ByHeight,i,0,0).to);if(n){var u=n.range.head;if(u<c.from||u>c.to){var l,f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=o.lineAt(u,yr.ByPos,i,0,0);l=n.y=="center"?(d.top+d.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&u<c.from?d.top:d.bottom-f,c=new Cv(o.lineAt(l-500,yr.ByHeight,i,0,0).from,o.lineAt(l+f+500,yr.ByHeight,i,0,0).to)}}return c}},{key:"mapViewport",value:function(t,n){var r=n.mapPos(t.from,-1),o=n.mapPos(t.to,1);return new Cv(this.heightMap.lineAt(r,yr.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,yr.ByPos,this.heightOracle,0,0).to)}},{key:"viewportIsAppropriate",value:function(t){var n=t.from,r=t.to,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!this.inView)return!0;var i=this.heightMap.lineAt(n,yr.ByPos,this.heightOracle,0,0).top,a=this.heightMap.lineAt(r,yr.ByPos,this.heightOracle,0,0).bottom,s=this.visibleTop,c=this.visibleBottom;return(n==0||i<=s-Math.max(10,Math.min(-o,250)))&&(r==this.state.doc.length||a>=c+Math.max(10,Math.min(o,250)))&&i>s-2e3&&a<c+2e3}},{key:"mapLineGaps",value:function(t,n){if(!t.length||n.empty)return t;var r,o=[],i=ht(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;n.touchesRange(a.from,a.to)||o.push(new Ny(n.mapPos(a.from),n.mapPos(a.to),a.size))}}catch(s){i.e(s)}finally{i.f()}return o}},{key:"ensureLineGaps",value:function(t,n){var r=this,o=this.heightOracle.lineWrapping,i=o?1e4:2e3,a=i>>1,s=i<<1;if(this.defaultTextDirection!=Rr.LTR&&!o)return[];var c,u=[],l=function B(K,R,q,F){if(!(R-K<a)){var O=r.state.selection.main,A=[O.from];O.empty||A.push(O.to);for(var _=0,M=A;_<M.length;_++){var P=M[_];if(P>K&&P<R)return B(K,P-10,q,F),void B(P+10,R,q,F)}var D=function(H,I){var ft,tt=ht(H);try{for(tt.s();!(ft=tt.n()).done;){var yt=ft.value;if(I(yt))return yt}}catch(bt){tt.e(bt)}finally{tt.f()}}(t,function(H){return H.from>=q.from&&H.to<=q.to&&Math.abs(H.from-K)<a&&Math.abs(H.to-R)<a&&!A.some(function(I){return H.from<I&&H.to>I})});if(!D){if(R<q.to&&n&&o&&n.visibleRanges.some(function(H){return H.from<=R&&H.to>=R})){var T=n.moveToLineBoundary(Jt.cursor(R),!1,!0).head;T>K&&(R=T)}D=new Ny(K,R,r.gapSize(q,K,R,F))}u.push(D)}},f=ht(this.viewportLines);try{for(f.s();!(c=f.n()).done;){var d=c.value;if(!(d.length<s)){var h=i0t(d.from,d.to,this.stateDeco);if(!(h.total<s)){var p=this.scrollTarget?this.scrollTarget.range.head:null,v=void 0,m=void 0;if(o){var g=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,y=void 0,b=void 0;if(p!=null){var w=Ov(h,p),x=((this.visibleBottom-this.visibleTop)/2+g)/d.height;y=w-x,b=w+x}else y=(this.visibleTop-d.top-g)/d.height,b=(this.visibleBottom-d.top+g)/d.height;v=Ev(h,y),m=Ev(h,b)}else{var k=h.total*this.heightOracle.charWidth,j=i*this.heightOracle.charWidth,S=void 0,N=void 0;if(p!=null){var C=Ov(h,p),$=((this.pixelViewport.right-this.pixelViewport.left)/2+j)/k;S=C-$,N=C+$}else S=(this.pixelViewport.left-j)/k,N=(this.pixelViewport.right+j)/k;v=Ev(h,S),m=Ev(h,N)}v>d.from&&l(d.from,v,d,h),m<d.to&&l(m,d.to,d,h)}}}}catch(B){f.e(B)}finally{f.f()}return u}},{key:"gapSize",value:function(t,n,r,o){var i=Ov(o,r)-Ov(o,n);return this.heightOracle.lineWrapping?t.height*i:o.total*this.heightOracle.charWidth*i}},{key:"updateLineGaps",value:function(t){var n=this;Ny.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=We.set(t.map(function(r){return r.draw(n,n.heightOracle.lineWrapping)})))}},{key:"computeVisibleRanges",value:function(){var t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));var n=[];vr.spans(t,this.viewport.from,this.viewport.to,{span:function(o,i){n.push({from:o,to:i})},point:function(){}},20);var r=n.length!=this.visibleRanges.length||this.visibleRanges.some(function(o,i){return o.from!=n[i].from||o.to!=n[i].to});return this.visibleRanges=n,r?4:0}},{key:"lineBlockAt",value:function(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(function(n){return n.from<=t&&n.to>=t})||Hd(this.heightMap.lineAt(t,yr.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(t){return Hd(this.heightMap.lineAt(this.scaler.fromDOM(t),yr.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"scrollAnchorAt",value:function(t){var n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}},{key:"elementAtHeight",value:function(t){return Hd(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),e}(),Cv=ot(function e(t,n){rt(this,e),this.from=t,this.to=n});function i0t(e,t,n){var r=[],o=e,i=0;return vr.spans(n,e,t,{span:function(){},point:function(a,s){a>o&&(r.push({from:o,to:a}),i+=a-o),o=s}},20),o<t&&(r.push({from:o,to:t}),i+=t-o),{total:i,ranges:r}}function Ev(e,t){var n=e.total,r=e.ranges;if(t<=0)return r[0].from;if(t>=1)return r[r.length-1].to;for(var o=Math.floor(n*t),i=0;;i++){var a=r[i],s=a.from,c=a.to-s;if(o<=c)return s+o;o-=c}}function Ov(e,t){var n,r=0,o=ht(e.ranges);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.from,s=i.to;if(t<=s){r+=t-a;break}r+=s-a}}catch(c){o.e(c)}finally{o.f()}return r/e.total}var zP={toDOM:function(e){return e},fromDOM:function(e){return e},scale:1},a0t=function(){function e(t,n,r){rt(this,e);var o=0,i=0,a=0;this.viewports=r.map(function(l){var f=l.from,d=l.to,h=n.lineAt(f,yr.ByPos,t,0,0).top,p=n.lineAt(d,yr.ByPos,t,0,0).bottom;return o+=p-h,{from:f,to:d,top:h,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(n.height-o);var s,c=ht(this.viewports);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.domTop=a+(u.top-i)*this.scale,a=u.domBottom=u.domTop+(u.bottom-u.top),i=u.bottom}}catch(l){c.e(l)}finally{c.f()}}return ot(e,[{key:"toDOM",value:function(t){for(var n=0,r=0,o=0;;n++){var i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.top)return o+(t-r)*this.scale;if(t<=i.bottom)return i.domTop+(t-i.top);r=i.bottom,o=i.domBottom}}},{key:"fromDOM",value:function(t){for(var n=0,r=0,o=0;;n++){var i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.domTop)return r+(t-o)/this.scale;if(t<=i.domBottom)return i.top+(t-i.domTop);r=i.bottom,o=i.domBottom}}}]),e}();function Hd(e,t){if(t.scale==1)return e;var n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new bc(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(function(o){return Hd(o,t)}):e._content)}var Mv=xe.define({combine:function(e){return e.join(" ")}}),xx=xe.define({combine:function(e){return e.indexOf(!0)>-1}}),kx=Gc.newName(),LF=Gc.newName(),BF=Gc.newName(),FF={"&light":"."+LF,"&dark":"."+BF};function jx(e,t,n){return new Gc(t,{finish:function(r){return/&/.test(r)?r.replace(/&\w*/,function(o){if(o=="&")return e;if(!n||!n[o])throw new RangeError("Unsupported selector: ".concat(o));return n[o]}):e+" "+r}})}var s0t=jx("."+kx,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},FF),Vd="￿",c0t=function(){function e(t,n){rt(this,e),this.points=t,this.text="",this.lineSeparator=n.facet(fr.lineSeparator)}return ot(e,[{key:"append",value:function(t){this.text+=t}},{key:"lineBreak",value:function(){this.text+=Vd}},{key:"readRange",value:function(t,n){if(!t)return this;for(var r=t.parentNode,o=t;;){this.findPointBefore(r,o);var i=this.text.length;this.readNode(o);var a=o.nextSibling;if(a==n)break;var s=Lr.get(o),c=Lr.get(a);(s&&c?s.breakAfter:(s?s.breakAfter:LP(o))||LP(a)&&(o.nodeName!="BR"||o.cmIgnore)&&this.text.length>i)&&this.lineBreak(),o=a}return this.findPointBefore(r,n),this}},{key:"readTextNode",value:function(t){var n,r=t.nodeValue,o=ht(this.points);try{for(o.s();!(n=o.n()).done;){var i=n.value;i.node==t&&(i.pos=this.text.length+Math.min(i.offset,r.length))}}catch(p){o.e(p)}finally{o.f()}for(var a=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){var c=-1,u=1,l=void 0;if(this.lineSeparator?(c=r.indexOf(this.lineSeparator,a),u=this.lineSeparator.length):(l=s.exec(r))&&(c=l.index,u=l[0].length),this.append(r.slice(a,c<0?r.length:c)),c<0)break;if(this.lineBreak(),u>1){var f,d=ht(this.points);try{for(d.s();!(f=d.n()).done;){var h=f.value;h.node==t&&h.pos>this.text.length&&(h.pos-=u-1)}}catch(p){d.e(p)}finally{d.f()}}a=c+u}}},{key:"readNode",value:function(t){if(!t.cmIgnore){var n=Lr.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(var o=r.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}}},{key:"findPointBefore",value:function(t,n){var r,o=ht(this.points);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.node==t&&t.childNodes[i.offset]==n&&(i.pos=this.text.length)}}catch(a){o.e(a)}finally{o.f()}}},{key:"findPointInside",value:function(t,n){var r,o=ht(this.points);try{for(o.s();!(r=o.n()).done;){var i=r.value;(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(u0t(t,i.node,i.offset)?n:0))}}catch(a){o.e(a)}finally{o.f()}}}]),e}();function u0t(e,t,n){for(;;){if(!t||n<Js(t))return!1;if(t==e)return!0;n=Qh(t)+1,t=t.parentNode}}function LP(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}var BP=ot(function e(t,n){rt(this,e),this.node=t,this.offset=n,this.pos=-1}),l0t=ot(function e(t,n,r,o){rt(this,e),this.typeOver=o,this.bounds=null,this.text="";var i=t.docView,a=i.impreciseHead,s=i.impreciseAnchor;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){var c=a||s?[]:function(h){var p=[];if(h.root.activeElement!=h.contentDOM)return p;var v=h.observer.selectionRange,m=v.anchorNode,g=v.anchorOffset,y=v.focusNode,b=v.focusOffset;return m&&(p.push(new BP(m,g)),y==m&&b==g||p.push(new BP(y,b))),p}(t),u=new c0t(c,t.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=function(h,p){if(h.length==0)return null;var v=h[0].pos,m=h.length==2?h[1].pos:v;return v>-1&&m>-1?Jt.single(v+p,m+p):null}(c,this.bounds.from)}else{var l=t.observer.selectionRange,f=a&&a.node==l.focusNode&&a.offset==l.focusOffset||!ox(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),d=s&&s.node==l.anchorNode&&s.offset==l.anchorOffset||!ox(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset);this.newSel=Jt.single(d,f)}});function qF(e,t){var n,r=t.newSel,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){var a=t.bounds,s=a.from,c=a.to,u=o.from,l=null;(i===8||Ce.android&&t.text.length<c-s)&&(u=o.to,l="end");var f=function(g,y,b,w){for(var x=Math.min(g.length,y.length),k=0;k<x&&g.charCodeAt(k)==y.charCodeAt(k);)k++;if(k==x&&g.length==y.length)return null;for(var j=g.length,S=y.length;j>0&&S>0&&g.charCodeAt(j-1)==y.charCodeAt(S-1);)j--,S--;return w=="end"&&(b-=j+Math.max(0,k-Math.min(j,S))-k),j<k&&g.length<y.length?(S=(k-=b<=k&&b>=j?k-b:0)+(S-j),j=k):S<k&&(j=(k-=b<=k&&b>=S?k-b:0)+(j-S),S=k),{from:k,toA:j,toB:S}}(e.state.doc.sliceString(s,c,Vd),t.text,u-s,l);f&&(Ce.chrome&&i==13&&f.toB==f.from+2&&t.text.slice(f.from,f.toB)==Vd+Vd&&f.toB--,n={from:s+f.from,to:s+f.toA,insert:Xn.of(t.text.slice(f.from,f.toB).split(Vd))})}else r&&(!e.hasFocus&&e.state.facet(a1)||r.main.eq(o))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(Ce.mac||Ce.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Jt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:Xn.of([" "])}):Ce.chrome&&n&&n.from==n.to&&n.from==o.head&&n.insert.toString()==`
113
+ `&&e.lineWrapping&&(r&&(r=Jt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:Xn.of([" "])}),n){if(Ce.ios&&e.inputState.flushIOSKey()||Ce.android&&(n.from==o.from&&n.to==o.to&&n.insert.length==1&&n.insert.lines==2&&uf(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&n.insert.length==0||i==8&&n.insert.length<n.to-n.from&&n.to>o.head)&&uf(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&n.insert.length==0&&uf(e.contentDOM,"Delete",46)))return!0;var d,h=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;var p=function(){return d||(d=function(g,y,b){var w,x=g.state,k=x.selection.main;if(y.from>=k.from&&y.to<=k.to&&y.to-y.from>=(k.to-k.from)/3&&(!b||b.main.empty&&b.main.from==y.from+y.insert.length)&&g.inputState.composing<0){var j=k.from<y.from?x.sliceDoc(k.from,y.from):"",S=k.to>y.to?x.sliceDoc(y.to,k.to):"";w=x.replaceSelection(g.state.toText(j+y.insert.sliceString(0,void 0,g.state.lineBreak)+S))}else{var N=x.changes(y),C=b&&b.main.to<=N.newLength?b.main:void 0;if(x.selection.ranges.length>1&&g.inputState.composing>=0&&y.to<=k.to&&y.to>=k.to-10){var $,B=g.state.sliceDoc(y.from,y.to),K=b&&OF(g,b.main.head);if(K){var R=y.insert.length-(y.to-y.from);$={from:K.from,to:K.to-R}}else $=g.state.doc.lineAt(k.head);var q=k.to-y.to,F=k.to-k.from;w=x.changeByRange(function(A){if(A.from==k.from&&A.to==k.to)return{changes:N,range:C||A.map(N)};var _=A.to-q,M=_-B.length;if(A.to-A.from!=F||g.state.sliceDoc(M,_)!=B||A.to>=$.from&&A.from<=$.to)return{range:A};var P=x.changes({from:M,to:_,insert:y.insert}),D=A.to-k.to;return{changes:P,range:C?Jt.range(Math.max(0,C.anchor+D),Math.max(0,C.head+D)):A.map(P)}})}else w={changes:N,selection:C&&x.selection.replaceRange(C)}}var O="input.type";return(g.composing||g.inputState.compositionPendingChange&&g.inputState.compositionEndedAt>Date.now()-50)&&(g.inputState.compositionPendingChange=!1,O+=".compose",g.inputState.compositionFirstChange&&(O+=".start",g.inputState.compositionFirstChange=!1)),x.update(w,{userEvent:O,scrollIntoView:!0})}(e,n,r))};return e.state.facet(yF).some(function(g){return g(e,n.from,n.to,h,p)})||e.dispatch(p()),!0}if(r&&!r.main.eq(o)){var v=!1,m="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(v=!0),m=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:v,userEvent:m}),!0}return!1}var f0t={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Dy=Ce.ie&&Ce.ie_version<=11,d0t=function(){function e(t){var n=this;rt(this,e),this.view=t,this.active=!1,this.selectionRange=new Igt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(function(r){var o,i=ht(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;n.queue.push(a)}}catch(s){i.e(s)}finally{i.f()}(Ce.ie&&Ce.ie_version<=11||Ce.ios&&t.composing)&&r.some(function(s){return s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length})?n.flushSoon():n.flush()}),Dy&&(this.onCharData=function(r){n.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(function(){var r;((r=n.view.docView)===null||r===void 0?void 0:r.lastUpdate)<Date.now()-75&&n.onResize()}),this.resizeScroll.observe(t.scrollDOM),this.resizeContent=new ResizeObserver(function(){return n.view.requestMeasure()}),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(function(r){n.parentCheck<0&&(n.parentCheck=setTimeout(n.listenForScroll.bind(n),1e3)),r.length>0&&r[r.length-1].intersectionRatio>0!=n.intersecting&&(n.intersecting=!n.intersecting,n.intersecting!=n.view.inView&&n.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(r){r.length>0&&r[r.length-1].intersectionRatio>0&&n.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return ot(e,[{key:"onScrollChanged",value:function(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}},{key:"onResize",value:function(){var t=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){t.resizeTimeout=-1,t.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var t=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){t.view.viewState.printing=!1,t.view.requestMeasure()},500)}},{key:"updateGaps",value:function(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(function(i,a){return i!=t[a]}))){this.gapIntersection.disconnect();var n,r=ht(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;this.gapIntersection.observe(o)}}catch(i){r.e(i)}finally{r.f()}this.gaps=t}}},{key:"onSelectionChange",value:function(t){var n=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var r=this.view,o=this.selectionRange;if(r.state.facet(a1)?r.root.activeElement==this.dom:$m(r.dom,o)){var i=o.anchorNode&&r.docView.nearest(o.anchorNode);i&&i.ignoreEvent(t)?n||(this.selectionChanged=!1):(Ce.ie&&Ce.ie_version<=11||Ce.android&&Ce.chrome)&&!r.state.selection.main.empty&&o.focusNode&&Rg(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var t=this.view,n=Ce.safari&&t.root.nodeType==11&&function(o){for(var i=o.activeElement;i&&i.shadowRoot;)i=i.shadowRoot.activeElement;return i}(this.dom.ownerDocument)==this.dom&&function(o){var i=null;function a(h){h.preventDefault(),h.stopImmediatePropagation(),i=h.getTargetRanges()[0]}if(o.contentDOM.addEventListener("beforeinput",a,!0),o.dom.ownerDocument.execCommand("indent"),o.contentDOM.removeEventListener("beforeinput",a,!0),!i)return null;var s=i.startContainer,c=i.startOffset,u=i.endContainer,l=i.endOffset,f=o.docView.domAtPos(o.state.selection.main.anchor);if(Rg(f.node,f.offset,u,l)){var d=[u,l,s,c];s=d[0],c=d[1],u=d[2],l=d[3]}return{anchorNode:s,anchorOffset:c,focusNode:u,focusOffset:l}}(this.view)||Tg(t.root);if(!n||this.selectionRange.eq(n))return!1;var r=$m(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&function(o,i){var a=i.focusNode,s=i.focusOffset;if(!a||i.anchorNode!=a||i.anchorOffset!=s)return!1;for(s=Math.min(s,Js(a));;)if(s){if(a.nodeType!=1)return!1;var c=a.childNodes[s-1];c.contentEditable=="false"?s--:s=Js(a=c)}else{if(a==o)return!0;s=Qh(a),a=a.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}},{key:"setSelectionRange",value:function(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}},{key:"clearSelectionRange",value:function(){this.selectionRange.set(null,0,null,0)}},{key:"listenForScroll",value:function(){this.parentCheck=-1;for(var t=0,n=null,r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else{if(r.nodeType!=11)break;r=r.host}if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){var o,i=ht(this.scrollTargets);try{for(i.s();!(o=i.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(c){i.e(c)}finally{i.f()}var a,s=ht(this.scrollTargets=n);try{for(s.s();!(a=s.n()).done;)a.value.addEventListener("scroll",this.onScroll)}catch(c){s.e(c)}finally{s.f()}}}},{key:"ignore",value:function(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}},{key:"start",value:function(){this.active||(this.observer.observe(this.dom,f0t),Dy&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}},{key:"stop",value:function(){this.active&&(this.active=!1,this.observer.disconnect(),Dy&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}},{key:"clear",value:function(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}},{key:"delayAndroidKey",value:function(t,n){var r,o=this;this.delayedAndroidKey||(this.flushingAndroidKey=this.view.win.requestAnimationFrame(function(){var i=o.delayedAndroidKey;i&&(o.clearDelayedAndroidKey(),o.view.inputState.lastKeyCode=i.keyCode,o.view.inputState.lastKeyTime=Date.now(),!o.flush()&&i.force&&uf(o.dom,i.key,i.keyCode))})),this.delayedAndroidKey&&t!="Enter"||(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}},{key:"clearDelayedAndroidKey",value:function(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}},{key:"flushSoon",value:function(){var t=this;this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(function(){t.delayedFlush=-1,t.flush()}))}},{key:"forceFlush",value:function(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"pendingRecords",value:function(){var t,n=ht(this.observer.takeRecords());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.queue.push(r)}}catch(o){n.e(o)}finally{n.f()}return this.queue}},{key:"processRecords",value:function(){var t=this.pendingRecords();t.length&&(this.queue=[]);var n,r=-1,o=-1,i=!1,a=ht(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=this.readMutation(s);c&&(c.typeOver&&(i=!0),r==-1?(r=c.from,o=c.to):(r=Math.min(c.from,r),o=Math.max(c.to,o)))}}catch(u){a.e(u)}finally{a.f()}return{from:r,to:o,typeOver:i}}},{key:"readChange",value:function(){var t=this.processRecords(),n=t.from,r=t.to,o=t.typeOver,i=this.selectionChanged&&$m(this.dom,this.selectionRange);if(n<0&&!i)return null;n>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;var a=new l0t(this.view,n,r,o);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}},{key:"flush",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();var n=this.readChange();if(!n)return!1;var r=this.view.state,o=qF(this.view,n);return this.view.state==r&&this.view.update([]),o}},{key:"readMutation",value:function(t){var n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){var r=FP(n,t.previousSibling||t.target.previousSibling,-1),o=FP(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:o?n.posBefore(o):n.posAtEnd,typeOver:!1}}return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}},{key:"setWindow",value:function(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var t,n,r,o;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect(),(o=this.resizeContent)===null||o===void 0||o.disconnect();var i,a=ht(this.scrollTargets);try{for(a.s();!(i=a.n()).done;)i.value.removeEventListener("scroll",this.onScroll)}catch(s){a.e(s)}finally{a.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),e}();function FP(e,t,n){for(;t;){var r=Lr.get(t);if(r&&r.parent==e)return r;var o=t.parentNode;t=o!=e.dom?o:n>0?t.nextSibling:t.previousSibling}return null}var ye=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(this,e),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);var r=n.dispatch;this.dispatchTransactions=n.dispatchTransactions||r&&function(a){return a.forEach(function(s){return r(s,t)})}||function(a){return t.update(a)},this.dispatch=this.dispatch.bind(this),this._root=n.root||function(a){for(;a;){if(a&&(a.nodeType==9||a.nodeType==11&&a.host))return a;a=a.assignedSlot||a.parentNode}return null}(n.parent)||document,this.viewState=new DP(n.state||fr.create(n)),this.plugins=this.state.facet(Fd).map(function(a){return new Py(a)});var o,i=ht(this.plugins);try{for(i.s();!(o=i.n()).done;)o.value.update(this)}catch(a){i.e(a)}finally{i.f()}this.observer=new d0t(this),this.inputState=new Ugt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new mP(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return ot(e,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.length==1&&r[0]instanceof ti?r:r.length==1&&Array.isArray(r[0])?r[0]:[(t=this.state).update.apply(t,r)];this.dispatchTransactions(i,this)}},{key:"update",value:function(t){var n=this;if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var r,o,i=!1,a=!1,s=this.state,c=ht(t);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(u.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=u.state}}catch(N){c.e(N)}finally{c.f()}if(this.destroyed)this.viewState.state=s;else{var l=this.hasFocus,f=0,d=null;t.some(function(N){return N.annotation(NF)})?(this.inputState.notifiedFocused=l,f=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,(d=DF(s,l))||(f=1));var h=this.observer.delayedAndroidKey,p=null;if(h?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(p=null)):this.observer.clear(),s.facet(fr.phrases)!=this.state.facet(fr.phrases))return this.setState(s);r=uP.create(this,s,t),r.flags|=f;var v=this.viewState.scrollTarget;try{this.updateState=2;var m,g=ht(t);try{for(g.s();!(m=g.n()).done;){var y=m.value;if(v&&(v=v.map(y.changes)),y.scrollIntoView){var b=y.state.selection.main;v=new aP(b.empty?b:Jt.cursor(b.head,b.head>b.anchor?-1:1))}var w,x=ht(y.effects);try{for(x.s();!(w=x.n()).done;){var k=w.value;k.is(sP)&&(v=k.value)}}catch(N){x.e(N)}finally{x.f()}}}catch(N){g.e(N)}finally{g.f()}this.viewState.update(r,v),this.bidiCache=HP.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),i=this.docView.update(r),this.state.facet(qd)!=this.styleModules&&this.mountStyles(),a=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(i,t.some(function(N){return N.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(r.startState.facet(Mv)!=r.state.facet(Mv)&&(this.viewState.mustMeasureContent=!0),(i||a||v||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty){var j,S=ht(this.state.facet(px));try{for(S.s();!(j=S.n()).done;)(0,j.value)(r)}catch(N){S.e(N)}finally{S.f()}}(d||p)&&Promise.resolve().then(function(){d&&n.state==d.startState&&n.dispatch(d),p&&!qF(n,p)&&h.force&&uf(n.contentDOM,h.key,h.keyCode)})}}},{key:"setState",value:function(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=t;else{this.updateState=2;var n=this.hasFocus;try{var r,o=ht(this.plugins);try{for(o.s();!(r=o.n()).done;)r.value.destroy(this)}catch(s){o.e(s)}finally{o.f()}this.viewState=new DP(t),this.plugins=t.facet(Fd).map(function(s){return new Py(s)}),this.pluginMap.clear();var i,a=ht(this.plugins);try{for(a.s();!(i=a.n()).done;)i.value.update(this)}catch(s){a.e(s)}finally{a.f()}this.docView=new mP(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(t){var n=t.startState.facet(Fd),r=t.state.facet(Fd);if(n!=r){var o,i=[],a=ht(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=n.indexOf(s);if(c<0)i.push(new Py(s));else{var u=this.plugins[c];u.mustUpdate=t,i.push(u)}}}catch(m){a.e(m)}finally{a.f()}var l,f=ht(this.plugins);try{for(f.s();!(l=f.n()).done;){var d=l.value;d.mustUpdate!=t&&d.destroy(this)}}catch(m){f.e(m)}finally{f.f()}this.plugins=i,this.pluginMap.clear()}else{var h,p=ht(this.plugins);try{for(p.s();!(h=p.n()).done;)h.value.mustUpdate=t}catch(m){p.e(m)}finally{p.f()}}for(var v=0;v<this.plugins.length;v++)this.plugins[v].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}},{key:"measure",value:function(){var t=this,n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(!this.destroyed){if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,n&&this.observer.forceFlush();var r=null,o=this.scrollDOM,i=o.scrollTop*this.scaleY,a=this.viewState,s=a.scrollAnchorPos,c=a.scrollAnchorHeight;Math.abs(i-this.viewState.scrollTop)>1&&(c=-1),this.viewState.scrollAnchorHeight=-1;try{for(var u=0;;u++){if(c<0)if(oF(o))s=-1,c=this.viewState.heightMap.height;else{var l=this.viewState.scrollAnchorAt(i);s=l.from,c=l.top}this.updateState=1;var f=this.viewState.measure(this);if(!f&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(u>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var d=[];if(!(4&f)){var h=[d,this.measureRequests];this.measureRequests=h[0],d=h[1]}var p=d.map(function(k){try{return k.read(t)}catch(j){return Vi(t.state,j),qP}}),v=uP.create(this,this.state,[]),m=!1;v.flags|=f,r?r.flags|=f:r=v,this.updateState=2,v.empty||(this.updatePlugins(v),this.inputState.update(v),this.updateAttrs(),m=this.docView.update(v));for(var g=0;g<d.length;g++)if(p[g]!=qP)try{var y=d[g];y.write&&y.write(p[g],this)}catch(k){Vi(this.state,k)}if(m&&this.docView.updateSelection(!0),!v.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null;continue}var b=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-c;if(b>1||b<-1){i+=b,o.scrollTop=i/this.scaleY,c=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(r&&!r.empty){var w,x=ht(this.state.facet(px));try{for(x.s();!(w=x.n()).done;)(0,w.value)(r)}catch(k){x.e(k)}finally{x.f()}}}}},{key:"themeClasses",get:function(){return kx+" "+(this.state.facet(xx)?BF:LF)+" "+this.state.facet(Mv)}},{key:"updateAttrs",value:function(){var t=this,n=VP(this,kF,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),r={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(a1)?"true":"false",class:"cm-content",style:"".concat(Ce.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(r["aria-readonly"]="true"),VP(this,Pj,r);var o=this.observer.ignore(function(){var i=lx(t.contentDOM,t.contentAttrs,r),a=lx(t.dom,t.editorAttrs,n);return i||a});return this.editorAttrs=n,this.contentAttrs=r,o}},{key:"showAnnouncements",value:function(t){var n,r=!0,o=ht(t);try{for(o.s();!(n=o.n()).done;){var i,a=ht(n.value.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.is(e.announce)&&(r&&(this.announceDOM.textContent=""),r=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}}catch(c){a.e(c)}finally{a.f()}}}catch(c){o.e(c)}finally{o.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(qd);var t=this.state.facet(e.cspNonce);Gc.mount(this.root,this.styleModules.concat(s0t).reverse(),t?{nonce:t}:void 0)}},{key:"readMeasured",value:function(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(t){var n=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return n.measure()})),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(var r=0;r<this.measureRequests.length;r++)if(this.measureRequests[r].key===t.key)return void(this.measureRequests[r]=t)}this.measureRequests.push(t)}}},{key:"plugin",value:function(t){var n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(function(r){return r.spec==t})||null),n&&n.update(this).value}},{key:"documentTop",get:function(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}},{key:"documentPadding",get:function(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}},{key:"scaleX",get:function(){return this.viewState.scaleX}},{key:"scaleY",get:function(){return this.viewState.scaleY}},{key:"elementAtHeight",value:function(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}},{key:"lineBlockAtHeight",value:function(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}},{key:"viewportLineBlocks",get:function(){return this.viewState.viewportLines}},{key:"lineBlockAt",value:function(t){return this.viewState.lineBlockAt(t)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{key:"moveByChar",value:function(t,n,r){return Iy(this,t,jP(this,t,n,r))}},{key:"moveByGroup",value:function(t,n){var r=this;return Iy(this,t,jP(this,t,n,function(o){return function(i,a,s){var c=i.state.charCategorizer(a),u=c(s);return function(l){var f=c(l);return u==Sr.Space&&(u=f),u==f}}(r,t.head,o)}))}},{key:"moveToLineBoundary",value:function(t,n){return function(r,o,i,a){var s=bx(r,o.head),c=a&&s.type==Uo.Text&&(r.lineWrapping||s.widgetLineBreaks)?r.coordsAtPos(o.assoc<0&&o.head>s.from?o.head-1:o.head):null;if(c){var u=r.dom.getBoundingClientRect(),l=r.textDirectionAt(s.from),f=r.posAtCoords({x:i==(l==Rr.LTR)?u.right-1:u.left+1,y:(c.top+c.bottom)/2});if(f!=null)return Jt.cursor(f,i?-1:1)}return Jt.cursor(i?s.to:s.from,i?-1:1)}(this,t,n,!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])}},{key:"moveVertically",value:function(t,n,r){return Iy(this,t,function(o,i,a,s){var c=i.head,u=a?1:-1;if(c==(a?o.state.doc.length:0))return Jt.cursor(c,i.assoc);var l,f=i.goalColumn,d=o.contentDOM.getBoundingClientRect(),h=o.coordsAtPos(c,i.assoc||-1),p=o.documentTop;if(h)f==null&&(f=h.left-d.left),l=u<0?h.top:h.bottom;else{var v=o.viewState.lineBlockAt(c);f==null&&(f=Math.min(d.right-d.left,o.defaultCharacterWidth*(c-v.from))),l=(u<0?v.top:v.bottom)+p}for(var m=d.left+f,g=s??o.viewState.heightOracle.textHeight>>1,y=0;;y+=10){var b=l+(g+y)*u,w=xP(o,{x:m,y:b},!1,u);if(b<d.top||b>d.bottom||(u<0?w<c:w>c)){var x=o.docView.coordsForChar(w),k=!x||b<x.top?-1:1;return Jt.cursor(w,k,void 0,f)}}}(this,t,n,r))}},{key:"domAtPos",value:function(t){return this.docView.domAtPos(t)}},{key:"posAtDOM",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.docView.posFromDOM(t,n)}},{key:"posAtCoords",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this.readMeasured(),xP(this,t,n)}},{key:"coordsAtPos",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.readMeasured();var r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;var o=this.state.doc.lineAt(t),i=this.bidiSpans(o);return Cj(r,i[Sc.find(i,t-o.from,-1,n)].dir==Rr.LTR==n>0)}},{key:"coordsForChar",value:function(t){return this.readMeasured(),this.docView.coordsForChar(t)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(t){return!this.state.facet(wF)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(t){if(t.length>h0t)return vP(t.length);var n,r,o=this.textDirectionAt(t.from),i=ht(this.bidiCache);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.from==t.from&&a.dir==o&&(a.fresh||CF(a.isolates,n=cP(this,t.from,t.to))))return a.order}}catch(c){i.e(c)}finally{i.f()}n||(n=cP(this,t.from,t.to));var s=function(c,u,l){if(!c)return[new Sc(0,0,u==$F?1:0)];if(u==Xh&&!l.length&&!Bgt.test(c))return vP(c.length);if(l.length)for(;c.length>or.length;)or[or.length]=256;var f=[],d=u==Xh?0:1;return gx(c,d,d,l,0,c.length,f),f}(t.text,o,n);return this.bidiCache.push(new HP(t.from,t.to,o,n,!0,s)),s}},{key:"hasFocus",get:function(){var t;return(this.dom.ownerDocument.hasFocus()||Ce.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var t=this;this.observer.ignore(function(){nF(t.contentDOM),t.docView.updateSelection()})}},{key:"setRoot",value:function(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var t,n=ht(this.plugins);try{for(n.s();!(t=n.n()).done;)t.value.destroy(this)}catch(r){n.e(r)}finally{n.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return sP.of(new aP(typeof t=="number"?Jt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}},{key:"domEventHandlers",value:function(t){return Zr.define(function(){return{}},{eventHandlers:t})}},{key:"domEventObservers",value:function(t){return Zr.define(function(){return{}},{eventObservers:t})}},{key:"theme",value:function(t,n){var r=Gc.newName(),o=[Mv.of(r),qd.of(jx(".".concat(r),t))];return n&&n.dark&&o.push(xx.of(!0)),o}},{key:"baseTheme",value:function(t){return ad.lowest(qd.of(jx("."+kx,t,FF)))}},{key:"findFromDOM",value:function(t){var n,r=t.querySelector(".cm-content"),o=r&&Lr.get(r)||Lr.get(t);return((n=o==null?void 0:o.rootView)===null||n===void 0?void 0:n.view)||null}}]),e}();ye.styleModule=qd,ye.inputHandler=yF,ye.focusChangeEffect=bF,ye.perLineTextDirection=wF,ye.exceptionSink=gF,ye.updateListener=px,ye.editable=a1,ye.mouseSelectionStyle=mF,ye.dragMovesSelection=vF,ye.clickAddsSelectionRange=pF,ye.decorations=Yh,ye.atomicRanges=Tj,ye.bidiIsolatedRanges=jF,ye.scrollMargins=_F,ye.darkTheme=xx,ye.cspNonce=xe.define({combine:function(e){return e.length?e[0]:""}}),ye.contentAttributes=Pj,ye.editorAttributes=kF,ye.lineWrapping=ye.contentAttributes.of({class:"cm-lineWrapping"}),ye.announce=bn.define();var h0t=4096,qP={},HP=function(){function e(t,n,r,o,i,a){rt(this,e),this.from=t,this.to=n,this.dir=r,this.isolates=o,this.fresh=i,this.order=a}return ot(e,null,[{key:"update",value:function(t,n){if(n.empty&&!t.some(function(s){return s.fresh}))return t;for(var r=[],o=t.length?t[t.length-1].dir:Rr.LTR,i=Math.max(0,t.length-10);i<t.length;i++){var a=t[i];a.dir!=o||n.touchesRange(a.from,a.to)||r.push(new e(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}]),e}();function VP(e,t,n){for(var r=e.state.facet(t),o=r.length-1;o>=0;o--){var i=r[o],a=typeof i=="function"?i(e):i;a&&ux(a,n)}return n}var p0t=Ce.mac?"mac":Ce.windows?"win":Ce.linux?"linux":"key";function Av(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}var v0t=ad.default(ye.domEventHandlers({keydown:function(e,t){return VF(HF(t.state),e,t,"editor")}})),Ig=xe.define({enables:v0t}),UP=new WeakMap;function HF(e){var t=e.facet(Ig),n=UP.get(t);return n||UP.set(t,n=function(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p0t,a=Object.create(null),s=Object.create(null),c=function(k,j){var S=s[k];if(S==null)s[k]=j;else if(S!=j)throw new Error("Key binding "+k+" is used both as a regular binding and as a multi-stroke prefix")},u=function(k,j,S,N,C){for(var $,B,K=a[k]||(a[k]=Object.create(null)),R=j.split(/ (?!$)/).map(function(_){return function(M,P){var D,T,H,I,ft=M.split(/-(?!$)/),tt=ft[ft.length-1];tt=="Space"&&(tt=" ");for(var yt=0;yt<ft.length-1;++yt){var bt=ft[yt];if(/^(cmd|meta|m)$/i.test(bt))I=!0;else if(/^a(lt)?$/i.test(bt))D=!0;else if(/^(c|ctrl|control)$/i.test(bt))T=!0;else if(/^s(hift)?$/i.test(bt))H=!0;else{if(!/^mod$/i.test(bt))throw new Error("Unrecognized modifier name: "+bt);P=="mac"?I=!0:T=!0}}return D&&(tt="Alt-"+tt),T&&(tt="Ctrl-"+tt),I&&(tt="Meta-"+tt),H&&(tt="Shift-"+tt),tt}(_,i)}),q=function(){var _=R.slice(0,F).join(" ");c(_,!0),K[_]||(K[_]={preventDefault:!0,stopPropagation:!1,run:[function(M){var P=wc={view:M,prefix:_,scope:k};return setTimeout(function(){wc==P&&(wc=null)},m0t),!0}]})},F=1;F<R.length;F++)q();var O=R.join(" ");c(O,!1);var A=K[O]||(K[O]={preventDefault:!1,stopPropagation:!1,run:((B=($=K._any)===null||$===void 0?void 0:$.run)===null||B===void 0?void 0:B.slice())||[]});S&&A.run.push(S),N&&(A.preventDefault=!0),C&&(A.stopPropagation=!0)},l=ht(r);try{for(l.s();!(o=l.n()).done;){var f=o.value,d=f.scope?f.scope.split(" "):["editor"];if(f.any){var h,p=ht(d);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=a[v]||(a[v]=Object.create(null));for(var g in m._any||(m._any={preventDefault:!1,stopPropagation:!1,run:[]}),m)m[g].run.push(f.any)}}catch(k){p.e(k)}finally{p.f()}}var y=f[i]||f.key;if(y){var b,w=ht(d);try{for(w.s();!(b=w.n()).done;){var x=b.value;u(x,y,f.run,f.preventDefault,f.stopPropagation),f.shift&&u(x,"Shift-"+y,f.shift,f.preventDefault,f.stopPropagation)}}catch(k){w.e(k)}finally{w.f()}}}}catch(k){l.e(k)}finally{l.f()}return a}(t.reduce(function(r,o){return r.concat(o)},[]))),n}var wc=null,m0t=4e3;function VF(e,t,n,r){var o=function(v){var m=!(Tgt&&(v.ctrlKey||v.altKey||v.metaKey)||Pgt&&v.shiftKey&&v.key&&v.key.length==1||v.key=="Unidentified")&&v.key||(v.shiftKey?Jh:Qc)[v.keyCode]||v.key||"Unidentified";return m=="Esc"&&(m="Escape"),m=="Del"&&(m="Delete"),m=="Left"&&(m="ArrowLeft"),m=="Up"&&(m="ArrowUp"),m=="Right"&&(m="ArrowRight"),m=="Down"&&(m="ArrowDown"),m}(t),i=Pi(wo(o,0))==o.length&&o!=" ",a="",s=!1,c=!1,u=!1;wc&&wc.view==n&&wc.scope==r&&(a=wc.prefix+" ",PF.indexOf(t.keyCode)<0&&(c=!0,wc=null));var l,f,d=new Set,h=function(v){if(v){var m,g=ht(v.run);try{for(g.s();!(m=g.n()).done;){var y=m.value;if(!d.has(y)&&(d.add(y),y(n,t)))return v.stopPropagation&&(u=!0),!0}}catch(b){g.e(b)}finally{g.f()}v.preventDefault&&(v.stopPropagation&&(u=!0),c=!0)}return!1},p=e[r];return p&&(h(p[a+Av(o,t,!i)])?s=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Ce.windows&&t.ctrlKey&&t.altKey)&&(l=Qc[t.keyCode])&&l!=o?(h(p[a+Av(l,t,!0)])||t.shiftKey&&(f=Jh[t.keyCode])!=o&&f!=l&&h(p[a+Av(f,t,!1)]))&&(s=!0):i&&t.shiftKey&&h(p[a+Av(o,t,!0)])&&(s=!0),!s&&h(p._any)&&(s=!0)),c&&(s=!0),s&&u&&t.stopPropagation(),s}var Rj=function(){function e(t,n,r,o,i){rt(this,e),this.className=t,this.left=n,this.top=r,this.width=o,this.height=i}return ot(e,[{key:"draw",value:function(){var t=document.createElement("div");return t.className=this.className,this.adjust(t),t}},{key:"update",value:function(t,n){return n.className==this.className&&(this.adjust(t),!0)}},{key:"adjust",value:function(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}},{key:"eq",value:function(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}}],[{key:"forRange",value:function(t,n,r){if(r.empty){var o=t.coordsAtPos(r.head,r.assoc||1);if(!o)return[];var i=UF(t);return[new e(n,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}return g0t(t,n,r)}}]),e}();function UF(e){var t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Rr.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function WP(e,t,n){var r=Jt.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:Uo.Text}}function g0t(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];var r=Math.max(n.from,e.viewport.from),o=Math.min(n.to,e.viewport.to),i=e.textDirection==Rr.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),c=UF(e),u=a.querySelector(".cm-line"),l=u&&window.getComputedStyle(u),f=s.left+(l?parseInt(l.paddingLeft)+Math.min(0,parseInt(l.textIndent)):0),d=s.right-(l?parseInt(l.paddingRight):0),h=bx(e,r),p=bx(e,o),v=h.type==Uo.Text?h:null,m=p.type==Uo.Text?p:null;if(v&&(e.lineWrapping||h.widgetLineBreaks)&&(v=WP(e,r,v)),m&&(e.lineWrapping||p.widgetLineBreaks)&&(m=WP(e,o,m)),v&&m&&v.from==m.from)return x(k(n.from,n.to,v));var g=v?k(n.from,null,v):j(h,!1),y=m?k(null,n.to,m):j(p,!0),b=[];return(v||h).to<(m||p).from-(v&&m?1:0)||h.widgetLineBreaks>1&&g.bottom+e.defaultLineHeight/2<y.top?b.push(w(f,g.bottom,d,y.top)):g.bottom<y.top&&e.elementAtHeight((g.bottom+y.top)/2).type==Uo.Text&&(g.bottom=y.top=(g.bottom+y.top)/2),x(g).concat(b).concat(x(y));function w(S,N,C,$){return new Rj(t,S-c.left,N-c.top-.01,C-S,$-N+.01)}function x(S){for(var N=S.top,C=S.bottom,$=S.horizontal,B=[],K=0;K<$.length;K+=2)B.push(w($[K],N,$[K+1],C));return B}function k(S,N,C){var $=1e9,B=-1e9,K=[];function R(yt,bt,jt,gt,Y){var J=e.coordsAtPos(yt,yt==C.to?-2:2),it=e.coordsAtPos(jt,jt==C.from?2:-2);J&&it&&($=Math.min(J.top,it.top,$),B=Math.max(J.bottom,it.bottom,B),Y==Rr.LTR?K.push(i&&bt?f:J.left,i&&gt?d:it.right):K.push(!i&&gt?f:it.left,!i&&bt?d:J.right))}var q,F=S??C.from,O=N??C.to,A=ht(e.visibleRanges);try{for(A.s();!(q=A.n()).done;){var _=q.value;if(_.to>F&&_.from<O)for(var M=Math.max(_.from,F),P=Math.min(_.to,O);;){var D,T=e.state.doc.lineAt(M),H=ht(e.bidiSpans(T));try{for(H.s();!(D=H.n()).done;){var I=D.value,ft=I.from+T.from,tt=I.to+T.from;if(ft>=P)break;tt>M&&R(Math.max(ft,M),S==null&&ft<=F,Math.min(tt,P),N==null&&tt>=O,I.dir)}}catch(yt){H.e(yt)}finally{H.f()}if((M=T.to+1)>=P)break}}}catch(yt){A.e(yt)}finally{A.f()}return K.length==0&&R(F,S==null,O,N==null,e.textDirection),{top:$,bottom:B,horizontal:K}}function j(S,N){var C=s.top+(N?S.top:S.bottom);return{top:C,bottom:C,horizontal:[]}}}var y0t=function(){function e(t,n){rt(this,e),this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}return ot(e,[{key:"update",value:function(t){t.startState.facet(Om)!=t.state.facet(Om)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}},{key:"setOrder",value:function(t){for(var n=0,r=t.facet(Om);n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}},{key:"measure",value:function(){return this.layer.markers(this.view)}},{key:"scale",value:function(){var t=this.view,n=t.scaleX,r=t.scaleY;n==this.scaleX&&r==this.scaleY||(this.scaleX=n,this.scaleY=r,this.dom.style.transform="scale(".concat(1/n,", ").concat(1/r,")"))}},{key:"draw",value:function(t){var n=this;if(t.length!=this.drawn.length||t.some(function(u,l){return!function(f,d){return f.constructor==d.constructor&&f.eq(d)}(u,n.drawn[l])})){var r,o=this.dom.firstChild,i=0,a=ht(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.update&&o&&s.constructor&&this.drawn[i].constructor&&s.update(o,this.drawn[i])?(o=o.nextSibling,i++):this.dom.insertBefore(s.draw(),o)}}catch(u){a.e(u)}finally{a.f()}for(;o;){var c=o.nextSibling;o.remove(),o=c}this.drawn=t}}},{key:"destroy",value:function(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}]),e}(),Om=xe.define();function WF(e){return[Zr.define(function(t){return new y0t(t,e)}),Om.of(e)]}var KF=!Ce.ios,Zh=xe.define({combine:function(e){return Xi(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:function(t,n){return Math.min(t,n)},drawRangeCursor:function(t,n){return t||n}})}});function b0t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Zh.of(e),w0t,x0t,k0t,xF.of(!0)]}function JF(e){return e.startState.facet(Zh)!=e.state.facet(Zh)}var w0t=WF({above:!0,markers:function(e){var t,n=e.state,r=n.facet(Zh),o=[],i=ht(n.selection.ranges);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a==n.selection.main;if(a.empty?!s||KF:r.drawRangeCursor){var c,u=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=a.empty?a:Jt.cursor(a.head,a.head>a.anchor?-1:1),f=ht(Rj.forRange(e,u,l));try{for(f.s();!(c=f.n()).done;){var d=c.value;o.push(d)}}catch(h){f.e(h)}finally{f.f()}}}}catch(h){i.e(h)}finally{i.f()}return o},update:function(e,t){e.transactions.some(function(r){return r.selection})&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");var n=JF(e);return n&&KP(e.state,t),e.docChanged||e.selectionSet||n},mount:function(e,t){KP(t.state,e)},class:"cm-cursorLayer"});function KP(e,t){t.style.animationDuration=e.facet(Zh).cursorBlinkRate+"ms"}var x0t=WF({above:!1,markers:function(e){return e.state.selection.ranges.map(function(t){return t.empty?[]:Rj.forRange(e,"cm-selectionBackground",t)}).reduce(function(t,n){return t.concat(n)})},update:function(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||JF(e)},class:"cm-selectionLayer"}),GF={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};KF&&(GF[".cm-line"].caretColor="transparent !important");var k0t=ad.highest(ye.theme(GF)),QF=bn.define({map:function(e,t){return e==null?null:t.mapPos(e)}}),Ud=_o.define({create:function(){return null},update:function(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce(function(n,r){return r.is(QF)?r.value:n},e)}}),j0t=Zr.fromClass(function(){function e(t){rt(this,e),this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return ot(e,[{key:"update",value:function(t){var n,r=t.state.field(Ud);r==null?this.cursor!=null&&((n=this.cursor)===null||n===void 0||n.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Ud)!=r||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var t=this.view,n=t.state.field(Ud),r=n!=null&&t.coordsAtPos(n);if(!r)return null;var o=t.scrollDOM.getBoundingClientRect();return{left:r.left-o.left+t.scrollDOM.scrollLeft*t.scaleX,top:r.top-o.top+t.scrollDOM.scrollTop*t.scaleY,height:r.bottom-r.top}}},{key:"drawCursor",value:function(t){if(this.cursor){var n=this.view,r=n.scaleX,o=n.scaleY;t?(this.cursor.style.left=t.left/r+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(t){this.view.state.field(Ud)!=t&&this.view.dispatch({effects:QF.of(t)})}}]),e}(),{eventObservers:{dragover:function(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave:function(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function JP(e,t,n,r,o){t.lastIndex=0;for(var i,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;i=t.exec(a.value);)o(s+i.index,i)}var _0t=function(){function e(t){rt(this,e);var n=t.regexp,r=t.decoration,o=t.decorate,i=t.boundary,a=t.maxLength,s=a===void 0?1e3:a;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,o)this.addMatch=function(c,u,l,f){return o(f,l,l+c[0].length,c,u)};else if(typeof r=="function")this.addMatch=function(c,u,l,f){var d=r(c,u,l);d&&f(l,l+c[0].length,d)};else{if(!r)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(c,u,l,f){return f(l,l+c[0].length,r)}}this.boundary=i,this.maxLength=s}return ot(e,[{key:"createDeco",value:function(t){var n,r=this,o=new Jc,i=o.add.bind(o),a=ht(function(l,f){var d=l.visibleRanges;if(d.length==1&&d[0].from==l.viewport.from&&d[0].to==l.viewport.to)return d;var h,p=[],v=ht(d);try{for(v.s();!(h=v.n()).done;){var m=h.value,g=m.from,y=m.to;g=Math.max(l.state.doc.lineAt(g).from,g-f),y=Math.min(l.state.doc.lineAt(y).to,y+f),p.length&&p[p.length-1].to>=g?p[p.length-1].to=y:p.push({from:g,to:y})}}catch(b){v.e(b)}finally{v.f()}return p}(t,this.maxLength));try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.from,u=s.to;JP(t.state.doc,this.regexp,c,u,function(l,f){return r.addMatch(f,t,l,i)})}}catch(l){a.e(l)}finally{a.f()}return o.finish()}},{key:"updateDeco",value:function(t,n){var r=1e9,o=-1;return t.docChanged&&t.changes.iterChanges(function(i,a,s,c){c>t.view.viewport.from&&s<t.view.viewport.to&&(r=Math.min(s,r),o=Math.max(c,o))}),t.viewportChanged||o-r>1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,n.map(t.changes),r,o):n}},{key:"updateRange",value:function(t,n,r,o){var i,a=this,s=ht(t.visibleRanges);try{var c=function(){var u=i.value,l=Math.max(u.from,r),f=Math.min(u.to,o);if(f>l){var d=t.state.doc.lineAt(l),h=d.to<f?t.state.doc.lineAt(f):d,p=Math.max(u.from,d.from),v=Math.min(u.to,h.to);if(a.boundary){for(;l>d.from;l--)if(a.boundary.test(d.text[l-1-d.from])){p=l;break}for(;f<h.to;f++)if(a.boundary.test(h.text[f-h.from])){v=f;break}}var m,g=[],y=function(b,w,x){return g.push(x.range(b,w))};if(d==h)for(a.regexp.lastIndex=p-d.from;(m=a.regexp.exec(d.text))&&m.index<v-d.from;)a.addMatch(m,t,m.index+d.from,y);else JP(t.state.doc,a.regexp,p,v,function(b,w){return a.addMatch(w,t,b,y)});n=n.update({filterFrom:p,filterTo:v,filter:function(b,w){return b<p||w>v},add:g})}};for(s.s();!(i=s.n()).done;)c()}catch(u){s.e(u)}finally{s.f()}return n}}]),e}(),_x=/x/.unicode!=null?"gu":"g",S0t=new RegExp(`[\0-\b
114
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,_x),$0t={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},zy=null,Pv=xe.define({combine:function(e){var t=Xi(e,{render:null,specialChars:S0t,addSpecialChars:null});return(t.replaceTabs=!function(){var n;if(zy==null&&typeof document<"u"&&document.body){var r=document.body.style;zy=((n=r.tabSize)!==null&&n!==void 0?n:r.MozTabSize)!=null}return zy||!1}())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,_x)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,_x)),t}});function C0t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Pv.of(e),GP||(GP=Zr.fromClass(function(){function t(n){rt(this,t),this.view=n,this.decorations=We.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Pv)),this.decorations=this.decorator.createDeco(n)}return ot(t,[{key:"makeDecorator",value:function(n){var r=this;return new _0t({regexp:n.specialChars,decoration:function(o,i,a){var s=i.state.doc,c=wo(o[0],0);if(c==9){var u=s.lineAt(a),l=i.state.tabSize,f=sd(u.text,l,a-u.from);return We.replace({widget:new O0t((l-f%l)*r.view.defaultCharacterWidth/r.view.scaleX)})}return r.decorationCache[c]||(r.decorationCache[c]=We.replace({widget:new E0t(n,c)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var r=n.state.facet(Pv);n.startState.facet(Pv)!=r?(this.decorator=this.makeDecorator(r),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var GP=null,E0t=function(e){Tt(n,cu);var t=Rt(n);function n(r,o){var i;return rt(this,n),(i=t.call(this)).options=r,i.code=o,i}return ot(n,[{key:"eq",value:function(r){return r.code==this.code}},{key:"toDOM",value:function(r){var o=function(c){return c>=32?"•":c==10?"␤":String.fromCharCode(9216+c)}(this.code),i=r.state.phrase("Control character")+" "+($0t[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,i,o);if(a)return a;var s=document.createElement("span");return s.textContent=o,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}},{key:"ignoreEvent",value:function(){return!1}}]),n}(),O0t=function(e){Tt(n,cu);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).width=r,o}return ot(n,[{key:"eq",value:function(r){return r.width==this.width}},{key:"toDOM",value:function(){var r=document.createElement("span");return r.textContent=" ",r.className="cm-tab",r.style.width=this.width+"px",r}},{key:"ignoreEvent",value:function(){return!1}}]),n}(),M0t=We.line({class:"cm-activeLine"}),A0t=Zr.fromClass(function(){function e(t){rt(this,e),this.decorations=this.getDeco(t)}return ot(e,[{key:"update",value:function(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var n,r=-1,o=[],i=ht(t.state.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=t.lineBlockAt(a.head);s.from>r&&(o.push(M0t.range(s.from)),r=s.from)}}catch(c){i.e(c)}finally{i.f()}return We.set(o)}}]),e}(),{decorations:function(e){return e.decorations}}),Sx=2e3;function QP(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),o=n-r.from,i=o>Sx?-1:o==r.length?function(a,s){var c=a.coordsAtPos(a.viewport.from);return c?Math.round(Math.abs((c.left-s)/a.defaultCharacterWidth)):-1}(e,t.clientX):sd(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function P0t(e,t){var n=QP(e,t),r=e.state.selection;return n?{update:function(o){if(o.docChanged){var i=o.changes.mapPos(o.startState.doc.line(n.line).from),a=o.state.doc.lineAt(i);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(o.changes)}},get:function(o,i,a){var s=QP(e,o);if(!s)return r;var c=function(u,l,f){var d=Math.min(l.line,f.line),h=Math.max(l.line,f.line),p=[];if(l.off>Sx||f.off>Sx||l.col<0||f.col<0)for(var v=Math.min(l.off,f.off),m=Math.max(l.off,f.off),g=d;g<=h;g++){var y=u.doc.line(g);y.length<=m&&p.push(Jt.range(y.from+v,y.to+m))}else for(var b=Math.min(l.col,f.col),w=Math.max(l.col,f.col),x=d;x<=h;x++){var k=u.doc.line(x),j=rx(k.text,b,u.tabSize,!0);if(j<0)p.push(Jt.cursor(k.to));else{var S=rx(k.text,w,u.tabSize);p.push(Jt.range(k.from+j,k.from+S))}}return p}(e.state,n,s);return c.length?a?Jt.create(c.concat(r.ranges)):Jt.create(c):r}}:null}function T0t(e){var t=(e==null?void 0:e.eventFilter)||function(n){return n.altKey&&n.button==0};return ye.mouseSelectionStyle.of(function(n,r){return t(r)?P0t(n,r):null})}var R0t={Alt:[18,function(e){return!!e.altKey}],Control:[17,function(e){return!!e.ctrlKey}],Shift:[16,function(e){return!!e.shiftKey}],Meta:[91,function(e){return!!e.metaKey}]},I0t={style:"cursor: crosshair"};function N0t(){var e=$e(R0t[(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).key||"Alt"],2),t=e[0],n=e[1],r=Zr.fromClass(function(){function o(i){rt(this,o),this.view=i,this.isDown=!1}return ot(o,[{key:"set",value:function(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}}]),o}(),{eventObservers:{keydown:function(o){this.set(o.keyCode==t||n(o))},keyup:function(o){o.keyCode!=t&&n(o)||this.set(!1)},mousemove:function(o){this.set(n(o))}}});return[r,ye.contentAttributes.of(function(o){var i;return!((i=o.plugin(r))===null||i===void 0)&&i.isDown?I0t:null})]}var Tv="-10000px",YF=function(){function e(t,n,r){rt(this,e),this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(function(o){return o}),this.tooltipViews=this.tooltips.map(r)}return ot(e,[{key:"update",value:function(t){var n,r=t.state.facet(this.facet),o=r.filter(function(y){return y});if(r===this.input){var i,a=ht(this.tooltipViews);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.update&&s.update(t)}}catch(y){a.e(y)}finally{a.f()}return!1}for(var c=[],u=0;u<o.length;u++){var l=o[u],f=-1;if(l){for(var d=0;d<this.tooltips.length;d++){var h=this.tooltips[d];h&&h.create==l.create&&(f=d)}if(f<0)c[u]=this.createTooltipView(l);else{var p=c[u]=this.tooltipViews[f];p.update&&p.update(t)}}}var v,m=ht(this.tooltipViews);try{for(m.s();!(v=m.n()).done;){var g=v.value;c.indexOf(g)<0&&(g.dom.remove(),(n=g.destroy)===null||n===void 0||n.call(g))}}catch(y){m.e(y)}finally{m.f()}return this.input=r,this.tooltips=o,this.tooltipViews=c,!0}}]),e}();function D0t(e){var t=e.win;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}var Ly=xe.define({combine:function(e){var t,n,r;return{position:Ce.ios?"absolute":((t=e.find(function(o){return o.position}))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(function(o){return o.parent}))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(function(o){return o.tooltipSpace}))===null||r===void 0?void 0:r.tooltipSpace)||D0t}}}),YP=new WeakMap,XF=Zr.fromClass(function(){function e(t){var n=this;rt(this,e),this.view=t,this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;var r=t.state.facet(Ly);this.position=r.position,this.parent=r.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new YF(t,s1,function(o){return n.createTooltip(o)}),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(function(o){Date.now()>n.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&n.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return ot(e,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var t,n=ht(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.intersectionObserver.observe(r.dom)}}catch(o){n.e(o)}finally{n.f()}}}},{key:"measureSoon",value:function(){var t=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){t.measureTimeout=-1,t.maybeMeasure()},50))}},{key:"update",value:function(t){t.transactions.length&&(this.lastTransaction=Date.now());var n=this.manager.update(t);n&&this.observeIntersection();var r=n||t.geometryChanged,o=t.state.facet(Ly);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;var i,a=ht(this.manager.tooltipViews);try{for(a.s();!(i=a.n()).done;)i.value.dom.style.position=this.position}catch(l){a.e(l)}finally{a.f()}r=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();var s,c=ht(this.manager.tooltipViews);try{for(c.s();!(s=c.n()).done;){var u=s.value;this.container.appendChild(u.dom)}}catch(l){c.e(l)}finally{c.f()}r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}},{key:"createTooltip",value:function(t){var n=t.create(this.view);if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=Tv,this.container.appendChild(n.dom),n.mount&&n.mount(this.view),n}},{key:"destroy",value:function(){var t,n;this.view.win.removeEventListener("resize",this.measureSoon);var r,o=ht(this.manager.tooltipViews);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i)}}catch(a){o.e(a)}finally{o.f()}this.parent&&this.container.remove(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var t=this,n=this.view.dom.getBoundingClientRect(),r=1,o=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){var a=this.manager.tooltipViews[0].dom.offsetParent;i=!(!a||a==this.container.ownerDocument.body)}if(i||this.position=="absolute")if(this.parent){var s=this.parent.getBoundingClientRect();s.width&&s.height&&(r=s.width/this.parent.offsetWidth,o=s.height/this.parent.offsetHeight)}else{var c=this.view.viewState;r=c.scaleX,o=c.scaleY}return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map(function(u,l){var f=t.manager.tooltipViews[l];return f.getCoords?f.getCoords(u.pos):t.view.coordsAtPos(u.pos)}),size:this.manager.tooltipViews.map(function(u){return u.dom.getBoundingClientRect()}),space:this.view.state.facet(Ly).tooltipSpace(this.view),scaleX:r,scaleY:o,makeAbsolute:i}}},{key:"writeMeasure",value:function(t){var n;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";var r,o=ht(this.manager.tooltipViews);try{for(o.s();!(r=o.n()).done;)r.value.dom.style.position="absolute"}catch(q){o.e(q)}finally{o.f()}}for(var i=t.editor,a=t.space,s=t.scaleX,c=t.scaleY,u=[],l=0;l<this.manager.tooltips.length;l++){var f=this.manager.tooltips[l],d=this.manager.tooltipViews[l],h=d.dom,p=t.pos[l],v=t.size[l];if(!p||p.bottom<=Math.max(i.top,a.top)||p.top>=Math.min(i.bottom,a.bottom)||p.right<Math.max(i.left,a.left)-.1||p.left>Math.min(i.right,a.right)+.1)h.style.top=Tv;else{var m=f.arrow?d.dom.querySelector(".cm-tooltip-arrow"):null,g=m?7:0,y=v.right-v.left,b=(n=YP.get(d))!==null&&n!==void 0?n:v.bottom-v.top,w=d.offset||L0t,x=this.view.textDirection==Rr.LTR,k=v.width>a.right-a.left?x?a.left:a.right-v.width:x?Math.min(p.left-(m?14:0)+w.x,a.right-y):Math.max(a.left,p.left-y+(m?14:0)-w.x),j=!!f.above;!f.strictSide&&(j?p.top-(v.bottom-v.top)-w.y<a.top:p.bottom+(v.bottom-v.top)+w.y>a.bottom)&&j==a.bottom-p.bottom>p.top-a.top&&(j=!j);var S=(j?p.top-a.top:a.bottom-p.bottom)-g;if(S<b&&d.resize!==!1){if(S<this.view.defaultLineHeight){h.style.top=Tv;continue}YP.set(d,b),h.style.height=(b=S)/c+"px"}else h.style.height&&(h.style.height="");var N=j?p.top-b-g-w.y:p.bottom+g+w.y,C=k+y;if(d.overlap!==!0){var $,B=ht(u);try{for(B.s();!($=B.n()).done;){var K=$.value;K.left<C&&K.right>k&&K.top<N+b&&K.bottom>N&&(N=j?K.top-b-2-g:K.bottom+g+2)}}catch(q){B.e(q)}finally{B.f()}}if(this.position=="absolute"?(h.style.top=(N-t.parent.top)/c+"px",h.style.left=(k-t.parent.left)/s+"px"):(h.style.top=N/c+"px",h.style.left=k/s+"px"),m){var R=p.left+(x?w.x:-w.x)-(k+14-7);m.style.left=R/s+"px"}d.overlap!==!0&&u.push({left:k,top:N,right:C,bottom:N+b}),h.classList.toggle("cm-tooltip-above",j),h.classList.toggle("cm-tooltip-below",!j),d.positioned&&d.positioned(t.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var t,n=ht(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;)t.value.dom.style.top=Tv}catch(r){n.e(r)}finally{n.f()}}}}]),e}(),{eventObservers:{scroll:function(){this.maybeMeasure()}}}),z0t=ye.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),L0t={x:0,y:0},s1=xe.define({enables:[XF,z0t]}),Ng=xe.define(),B0t=function(){function e(t){var n=this;rt(this,e),this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new YF(t,Ng,function(r){return n.createHostedView(r)})}return ot(e,[{key:"createHostedView",value:function(t){var n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}},{key:"mount",value:function(t){var n,r=ht(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.mount&&o.mount(t)}}catch(i){r.e(i)}finally{r.f()}this.mounted=!0}},{key:"positioned",value:function(t){var n,r=ht(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.positioned&&o.positioned(t)}}catch(i){r.e(i)}finally{r.f()}}},{key:"update",value:function(t){this.manager.update(t)}},{key:"destroy",value:function(){var t,n,r=ht(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){var o=n.value;(t=o.destroy)===null||t===void 0||t.call(o)}}catch(i){r.e(i)}finally{r.f()}}}],[{key:"create",value:function(t){return new e(t)}}]),e}(),F0t=s1.compute([Ng],function(e){var t=e.facet(Ng).filter(function(n){return n});return t.length===0?null:{pos:Math.min.apply(Math,Se(t.map(function(n){return n.pos}))),end:Math.max.apply(Math,Se(t.filter(function(n){return n.end!=null}).map(function(n){return n.end}))),create:B0t.create,above:t[0].above,arrow:t.some(function(n){return n.arrow})}}),q0t=function(){function e(t,n,r,o,i){rt(this,e),this.view=t,this.source=n,this.field=r,this.setHover=o,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return ot(e,[{key:"update",value:function(){var t=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return t.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var t=Date.now()-this.lastMove.time;t<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t):this.startHover()}}},{key:"startHover",value:function(){var t=this;clearTimeout(this.restartTimeout);var n=this.view,r=this.lastMove,o=n.docView.nearest(r.target);if(o){var i,a=1;if(o instanceof Oj)i=o.posAtStart;else{if((i=n.posAtCoords(r))==null)return;var s=n.coordsAtPos(i);if(!s||r.y<s.top||r.y>s.bottom||r.x<s.left-n.defaultCharacterWidth||r.x>s.right+n.defaultCharacterWidth)return;var c=n.bidiSpans(n.state.doc.lineAt(i)).find(function(d){return d.from<=i&&d.to>=i}),u=c&&c.dir==Rr.RTL?-1:1;a=r.x<s.left?-u:u}var l=this.source(n,i,a);if(l!=null&&l.then){var f=this.pending={pos:i};l.then(function(d){t.pending==f&&(t.pending=null,d&&n.dispatch({effects:t.setHover.of(d)}))},function(d){return Vi(n.state,d,"hover tooltip")})}else l&&n.dispatch({effects:this.setHover.of(l)})}}},{key:"mousemove",value:function(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));var r=this.active;if(r&&!XP(this.lastMove.target)||this.pending){var o=(r||this.pending).pos,i=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==i?this.view.posAtCoords(this.lastMove)==o:function(a,s,c,u,l,f){var d=a.scrollDOM.getBoundingClientRect(),h=a.documentTop+a.documentPadding.top+a.contentHeight;if(d.left>u||d.right<u||d.top>l||Math.min(d.bottom,h)<l)return!1;var p=a.posAtCoords({x:u,y:l},!1);return p>=s&&p<=c}(this.view,o,i,t.clientX,t.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}},{key:"mouseleave",value:function(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!XP(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}},{key:"destroy",value:function(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}]),e}();function XP(e){for(var t=e;t;t=t.parentNode)if(t.nodeType==1&&t.classList.contains("cm-tooltip"))return!0;return!1}function H0t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bn.define(),r=_o.define({create:function(){return null},update:function(o,i){if(o&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,o)))return null;if(o&&i.docChanged){var a=i.changes.mapPos(o.pos,-1,Fo.TrackDel);if(a==null)return null;var s=Object.assign(Object.create(null),o);s.pos=a,o.end!=null&&(s.end=i.changes.mapPos(o.end)),o=s}var c,u=ht(i.effects);try{for(u.s();!(c=u.n()).done;){var l=c.value;l.is(n)&&(o=l.value),l.is(V0t)&&(o=null)}}catch(f){u.e(f)}finally{u.f()}return o},provide:function(o){return Ng.from(o)}});return[r,Zr.define(function(o){return new q0t(o,e,r,n,t.hoverTime||300)}),F0t]}function ZF(e,t){var n=e.plugin(XF);if(!n)return null;var r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}var V0t=bn.define(),ZP=xe.define({combine:function(e){var t,n,r,o=ht(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;t=t||i.topContainer,n=n||i.bottomContainer}}catch(a){o.e(a)}finally{o.f()}return{topContainer:t,bottomContainer:n}}});function tp(e,t){var n=e.plugin(tq),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}var tq=Zr.fromClass(function(){function e(t){rt(this,e),this.input=t.state.facet(ep),this.specs=this.input.filter(function(a){return a}),this.panels=this.specs.map(function(a){return a(t)});var n=t.state.facet(ZP);this.top=new Rv(t,!0,n.topContainer),this.bottom=new Rv(t,!1,n.bottomContainer),this.top.sync(this.panels.filter(function(a){return a.top})),this.bottom.sync(this.panels.filter(function(a){return!a.top}));var r,o=ht(this.panels);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.dom.classList.add("cm-panel"),i.mount&&i.mount()}}catch(a){o.e(a)}finally{o.f()}}return ot(e,[{key:"update",value:function(t){var n=t.state.facet(ZP);this.top.container!=n.topContainer&&(this.top.sync([]),this.top=new Rv(t.view,!0,n.topContainer)),this.bottom.container!=n.bottomContainer&&(this.bottom.sync([]),this.bottom=new Rv(t.view,!1,n.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var r=t.state.facet(ep);if(r!=this.input){var o,i=r.filter(function(w){return w}),a=[],s=[],c=[],u=[],l=ht(i);try{for(l.s();!(o=l.n()).done;){var f=o.value,d=this.specs.indexOf(f),h=void 0;d<0?(h=f(t.view),u.push(h)):(h=this.panels[d]).update&&h.update(t),a.push(h),(h.top?s:c).push(h)}}catch(w){l.e(w)}finally{l.f()}this.specs=i,this.panels=a,this.top.sync(s),this.bottom.sync(c);for(var p=0,v=u;p<v.length;p++){var m=v[p];m.dom.classList.add("cm-panel"),m.mount&&m.mount()}}else{var g,y=ht(this.panels);try{for(y.s();!(g=y.n()).done;){var b=g.value;b.update&&b.update(t)}}catch(w){y.e(w)}finally{y.f()}}}},{key:"destroy",value:function(){this.top.sync([]),this.bottom.sync([])}}]),e}(),{provide:function(e){return ye.scrollMargins.of(function(t){var n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})}}),Rv=function(){function e(t,n,r){rt(this,e),this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}return ot(e,[{key:"sync",value:function(t){var n,r=ht(this.panels);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.destroy&&t.indexOf(o)<0&&o.destroy()}}catch(i){r.e(i)}finally{r.f()}this.panels=t,this.syncDOM()}},{key:"syncDOM",value:function(){if(this.panels.length!=0){if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";var t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}var n,r=this.dom.firstChild,o=ht(this.panels);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.dom.parentNode==this.dom){for(;r!=i.dom;)r=tT(r);r=r.nextSibling}else this.dom.insertBefore(i.dom,r)}}catch(a){o.e(a)}finally{o.f()}for(;r;)r=tT(r)}else this.dom&&(this.dom.remove(),this.dom=void 0)}},{key:"scrollMargin",value:function(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}},{key:"syncClasses",value:function(){if(this.container&&this.classes!=this.view.themeClasses){var t,n=ht(this.classes.split(" "));try{for(n.s();!(t=n.n()).done;){var r=t.value;r&&this.container.classList.remove(r)}}catch(s){n.e(s)}finally{n.f()}var o,i=ht((this.classes=this.view.themeClasses).split(" "));try{for(i.s();!(o=i.n()).done;){var a=o.value;a&&this.container.classList.add(a)}}catch(s){i.e(s)}finally{i.f()}}}}]),e}();function tT(e){var t=e.nextSibling;return e.remove(),t}var ep=xe.define({enables:tq}),Wa=function(e){Tt(n,Ru);var t=Rt(n);function n(){return rt(this,n),t.apply(this,arguments)}return ot(n,[{key:"compare",value:function(r){return this==r||this.constructor==r.constructor&&this.eq(r)}},{key:"eq",value:function(r){return!1}},{key:"destroy",value:function(r){}}]),n}();Wa.prototype.elementClass="",Wa.prototype.toDOM=void 0,Wa.prototype.mapMode=Fo.TrackBefore,Wa.prototype.startSide=Wa.prototype.endSide=-1,Wa.prototype.point=!0;var Mm=xe.define(),U0t={class:"",renderEmptyElements:!1,elementStyle:"",markers:function(){return vr.empty},lineMarker:function(){return null},widgetMarker:function(){return null},lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},hh=xe.define();function eq(e){return[nq(),hh.of(Object.assign(Object.assign({},U0t),e))]}var $x=xe.define({combine:function(e){return e.some(function(t){return t})}});function nq(e){var t=[W0t];return e&&e.fixed===!1&&t.push($x.of(!0)),t}var W0t=Zr.fromClass(function(){function e(t){rt(this,e),this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(hh).map(function(i){return new nT(t,i)});var n,r=ht(this.gutters);try{for(r.s();!(n=r.n()).done;){var o=n.value;this.dom.appendChild(o.dom)}}catch(i){r.e(i)}finally{r.f()}this.fixed=!t.state.facet($x),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}return ot(e,[{key:"update",value:function(t){if(this.updateGutters(t)){var n=this.prevViewport,r=t.view.viewport,o=Math.min(n.to,r.to)-Math.max(n.from,r.from);this.syncGutters(o<.8*(r.to-r.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet($x)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}},{key:"syncGutters",value:function(t){var n=this,r=this.dom.nextSibling;t&&this.dom.remove();var o,i=vr.iter(this.view.state.facet(Mm),this.view.viewport.from),a=[],s=this.gutters.map(function(S){return new K0t(S,n.view.viewport,-n.view.documentPadding.top)}),c=ht(this.view.viewportLineBlocks);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(a.length&&(a=[]),Array.isArray(u.type)){var l,f=!0,d=ht(u.type);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(h.type==Uo.Text&&f){Cx(i,a,h.from);var p,v=ht(s);try{for(v.s();!(p=v.n()).done;)p.value.line(this.view,h,a)}catch(S){v.e(S)}finally{v.f()}f=!1}else if(h.widget){var m,g=ht(s);try{for(g.s();!(m=g.n()).done;)m.value.widget(this.view,h)}catch(S){g.e(S)}finally{g.f()}}}}catch(S){d.e(S)}finally{d.f()}}else if(u.type==Uo.Text){Cx(i,a,u.from);var y,b=ht(s);try{for(b.s();!(y=b.n()).done;)y.value.line(this.view,u,a)}catch(S){b.e(S)}finally{b.f()}}else if(u.widget){var w,x=ht(s);try{for(x.s();!(w=x.n()).done;)w.value.widget(this.view,u)}catch(S){x.e(S)}finally{x.f()}}}}catch(S){c.e(S)}finally{c.f()}var k,j=ht(s);try{for(j.s();!(k=j.n()).done;)k.value.finish()}catch(S){j.e(S)}finally{j.f()}t&&this.view.scrollDOM.insertBefore(this.dom,r)}},{key:"updateGutters",value:function(t){var n=t.startState.facet(hh),r=t.state.facet(hh),o=t.docChanged||t.heightChanged||t.viewportChanged||!vr.eq(t.startState.facet(Mm),t.state.facet(Mm),t.view.viewport.from,t.view.viewport.to);if(n==r){var i,a=ht(this.gutters);try{for(a.s();!(i=a.n()).done;)i.value.update(t)&&(o=!0)}catch(y){a.e(y)}finally{a.f()}}else{o=!0;var s,c=[],u=ht(r);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=n.indexOf(l);f<0?c.push(new nT(this.view,l)):(this.gutters[f].update(t),c.push(this.gutters[f]))}}catch(y){u.e(y)}finally{u.f()}var d,h=ht(this.gutters);try{for(h.s();!(d=h.n()).done;){var p=d.value;p.dom.remove(),c.indexOf(p)<0&&p.destroy()}}catch(y){h.e(y)}finally{h.f()}for(var v=0,m=c;v<m.length;v++){var g=m[v];this.dom.appendChild(g.dom)}this.gutters=c}return o}},{key:"destroy",value:function(){var t,n=ht(this.gutters);try{for(n.s();!(t=n.n()).done;)t.value.destroy()}catch(r){n.e(r)}finally{n.f()}this.dom.remove()}}]),e}(),{provide:function(e){return ye.scrollMargins.of(function(t){var n=t.plugin(e);return n&&n.gutters.length!=0&&n.fixed?t.textDirection==Rr.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null})}});function eT(e){return Array.isArray(e)?e:[e]}function Cx(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}var K0t=function(){function e(t,n,r){rt(this,e),this.gutter=t,this.height=r,this.i=0,this.cursor=vr.iter(t.markers,n.from)}return ot(e,[{key:"addElement",value:function(t,n,r){var o=this.gutter,i=(n.top-this.height)/t.scaleY,a=n.height/t.scaleY;if(this.i==o.elements.length){var s=new rq(t,a,i,r);o.elements.push(s),o.dom.appendChild(s.dom)}else o.elements[this.i].update(t,a,i,r);this.height=n.bottom,this.i++}},{key:"line",value:function(t,n,r){var o=[];Cx(this.cursor,o,n.from),r.length&&(o=o.concat(r));var i=this.gutter.config.lineMarker(t,n,o);i&&o.unshift(i);var a=this.gutter;(o.length!=0||a.config.renderEmptyElements)&&this.addElement(t,n,o)}},{key:"widget",value:function(t,n){var r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}},{key:"finish",value:function(){for(var t=this.gutter;t.elements.length>this.i;){var n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}]),e}(),nT=function(){function e(t,n){var r=this;rt(this,e),this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var o=function(a){r.dom.addEventListener(a,function(s){var c,u=s.target;if(u!=r.dom&&r.dom.contains(u)){for(;u.parentNode!=r.dom;)u=u.parentNode;var l=u.getBoundingClientRect();c=(l.top+l.bottom)/2}else c=s.clientY;var f=t.lineBlockAtHeight(c-t.documentTop);n.domEventHandlers[a](t,f,s)&&s.preventDefault()})};for(var i in n.domEventHandlers)o(i);this.markers=eT(n.markers(t)),n.initialSpacer&&(this.spacer=new rq(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return ot(e,[{key:"update",value:function(t){var n=this.markers;if(this.markers=eT(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){var r=this.config.updateSpacer(this.spacer.markers[0],t);r!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[r])}var o=t.view.viewport;return!vr.eq(this.markers,n,o.from,o.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}},{key:"destroy",value:function(){var t,n=ht(this.elements);try{for(n.s();!(t=n.n()).done;)t.value.destroy()}catch(r){n.e(r)}finally{n.f()}}}]),e}(),rq=function(){function e(t,n,r,o){rt(this,e),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,o)}return ot(e,[{key:"update",value:function(t,n,r,o){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),function(i,a){if(i.length!=a.length)return!1;for(var s=0;s<i.length;s++)if(!i[s].compare(a[s]))return!1;return!0}(this.markers,o)||this.setMarkers(t,o)}},{key:"setMarkers",value:function(t,n){for(var r="cm-gutterElement",o=this.dom.firstChild,i=0,a=0;;){var s=a,c=i<n.length?n[i++]:null,u=!1;if(c){var l=c.elementClass;l&&(r+=" "+l);for(var f=a;f<this.markers.length;f++)if(this.markers[f].compare(c)){s=f,u=!0;break}}else s=this.markers.length;for(;a<s;){var d=this.markers[a++];if(d.toDOM){d.destroy(o);var h=o.nextSibling;o.remove(),o=h}}if(!c)break;c.toDOM&&(u?o=o.nextSibling:this.dom.insertBefore(c.toDOM(t),o)),u&&a++}this.dom.className=r,this.markers=n}},{key:"destroy",value:function(){this.setMarkers(null,[])}}]),e}(),J0t=xe.define(),ql=xe.define({combine:function(e){return Xi(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers:function(t,n){var r=Object.assign({},t),o=function(){var a=r[i],s=n[i];r[i]=a?function(c,u,l){return a(c,u,l)||s(c,u,l)}:s};for(var i in n)o();return r}})}}),By=function(e){Tt(n,Wa);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).number=r,o}return ot(n,[{key:"eq",value:function(r){return this.number==r.number}},{key:"toDOM",value:function(){return document.createTextNode(this.number)}}]),n}();function Fy(e,t){return e.state.facet(ql).formatNumber(t,e.state)}var G0t=hh.compute([ql],function(e){return{class:"cm-lineNumbers",renderEmptyElements:!1,markers:function(t){return t.state.facet(J0t)},lineMarker:function(t,n,r){return r.some(function(o){return o.toDOM})?null:new By(Fy(t,t.state.doc.lineAt(n.from).number))},widgetMarker:function(){return null},lineMarkerChange:function(t){return t.startState.facet(ql)!=t.state.facet(ql)},initialSpacer:function(t){return new By(Fy(t,rT(t.state.doc.lines)))},updateSpacer:function(t,n){var r=Fy(n.view,rT(n.view.state.doc.lines));return r==t.number?t:new By(r)},domEventHandlers:e.facet(ql).domEventHandlers}});function Q0t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[ql.of(e),nq(),G0t]}function rT(e){for(var t=9;t<e;)t=10*t+9;return t}var Y0t=new(function(e){Tt(n,Wa);var t=Rt(n);function n(){var r;return rt(this,n),(r=t.apply(this,arguments)).elementClass="cm-activeLineGutter",r}return ot(n)}()),X0t=Mm.compute(["selection"],function(e){var t,n=[],r=-1,o=ht(e.selection.ranges);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.doc.lineAt(i.head).from;a>r&&(r=a,n.push(Y0t.range(a)))}}catch(s){o.e(s)}finally{o.f()}return vr.of(n)}),Z0t=0,qy=ot(function e(t,n){rt(this,e),this.from=t,this.to=n}),Cn=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(this,e),this.id=Z0t++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return ot(e,[{key:"add",value:function(t){var n=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Qi.match(t)),function(r){var o=t(r);return o===void 0?null:[n,o]}}}]),e}();Cn.closedBy=new Cn({deserialize:function(e){return e.split(" ")}}),Cn.openedBy=new Cn({deserialize:function(e){return e.split(" ")}}),Cn.group=new Cn({deserialize:function(e){return e.split(" ")}}),Cn.contextHash=new Cn({perNode:!0}),Cn.lookAhead=new Cn({perNode:!0}),Cn.mounted=new Cn({perNode:!0});var Dg=function(){function e(t,n,r){rt(this,e),this.tree=t,this.overlay=n,this.parser=r}return ot(e,null,[{key:"get",value:function(t){return t&&t.props&&t.props[Cn.mounted.id]}}]),e}(),t1t=Object.create(null),Qi=function(){function e(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;rt(this,e),this.name=t,this.props=n,this.id=r,this.flags=o}return ot(e,[{key:"prop",value:function(t){return this.props[t.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(t){if(typeof t=="string"){if(this.name==t)return!0;var n=this.prop(Cn.group);return!!n&&n.indexOf(t)>-1}return this.id==t}}],[{key:"define",value:function(t){var n=t.props&&t.props.length?Object.create(null):t1t,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),o=new e(t.name||"",n,t.id,r);if(t.props){var i,a=ht(t.props);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}}catch(c){a.e(c)}finally{a.f()}}return o}},{key:"match",value:function(t){var n=Object.create(null);for(var r in t){var o,i=ht(r.split(" "));try{for(i.s();!(o=i.n()).done;){var a=o.value;n[a]=t[r]}}catch(s){i.e(s)}finally{i.f()}}return function(s){for(var c=s.prop(Cn.group),u=-1;u<(c?c.length:0);u++){var l=n[u<0?s.name:c[u]];if(l)return l}}}}]),e}();Qi.none=new Qi("",Object.create(null),0,8);var io,e1t=function(){function e(t){rt(this,e),this.types=t;for(var n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}return ot(e,[{key:"extend",value:function(){for(var t=[],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i,a=ht(this.types);try{for(a.s();!(i=a.n()).done;){var s,c=i.value,u=null,l=ht(r);try{for(l.s();!(s=l.n()).done;){var f=(0,s.value)(c);f&&(u||(u=Object.assign({},c.props)),u[f[0].id]=f[1])}}catch(d){l.e(d)}finally{l.f()}t.push(u?new Qi(c.name,u,c.id,c.flags):c)}}catch(d){a.e(d)}finally{a.f()}return new e(t)}}]),e}(),Iv=new WeakMap,oT=new WeakMap;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(io||(io={}));var ko=function(){function e(t,n,r,o,i){if(rt(this,e),this.type=t,this.children=n,this.positions=r,this.length=o,this.props=null,i&&i.length){this.props=Object.create(null);var a,s=ht(i);try{for(s.s();!(a=s.n()).done;){var c=$e(a.value,2),u=c[0],l=c[1];this.props[typeof u=="number"?u:u.id]=l}}catch(f){s.e(f)}finally{s.f()}}}return ot(e,[{key:"toString",value:function(){var t=Dg.get(this);if(t&&!t.overlay)return t.tree.toString();var n,r="",o=ht(this.children);try{for(o.s();!(n=o.n()).done;){var i=n.value.toString();i&&(r&&(r+=","),r+=i)}}catch(a){o.e(a)}finally{o.f()}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}},{key:"cursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Mx(this.topNode,t)}},{key:"cursorAt",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Iv.get(this)||this.topNode,o=new Mx(r);return o.moveTo(t,n),Iv.set(this,o._tree),o}},{key:"topNode",get:function(){return new Ic(this,0,0,null)}},{key:"resolve",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=ph(Iv.get(this)||this.topNode,t,n,!1);return Iv.set(this,r),r}},{key:"resolveInner",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=ph(oT.get(this)||this.topNode,t,n,!0);return oT.set(this,r),r}},{key:"resolveStack",value:function(t){return function(n,r,o){for(var i=n.resolveInner(r,o),a=null,s=i instanceof Ic?i:i.context.parent;s;s=s.parent)if(s.index<0){var c=s.parent;(a||(a=[i])).push(c.resolve(r,o)),s=c}else{var u=Dg.get(s.tree);if(u&&u.overlay&&u.overlay[0].from<=r&&u.overlay[u.overlay.length-1].to>=r){var l=new Ic(u.tree,u.overlay[0].from+s.from,0,null);(a||(a=[i])).push(ph(l,r,o,!1))}}return a?aq(a):i}(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)}},{key:"iterate",value:function(t){for(var n=t.enter,r=t.leave,o=t.from,i=o===void 0?0:o,a=t.to,s=a===void 0?this.length:a,c=t.mode||0,u=(c&io.IncludeAnonymous)>0,l=this.cursor(c|io.IncludeAnonymous);;){var f=!1;if(l.from<=s&&l.to>=i&&(!u&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;f=!0}for(;f&&r&&(u||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;f=!0}}}},{key:"prop",value:function(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}},{key:"propValues",get:function(){var t=[];if(this.props)for(var n in this.props)t.push([+n,this.props[n]]);return t}},{key:"balance",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.children.length<=8?this:Nj(Qi.none,this.children,this.positions,0,this.children.length,0,this.length,function(r,o,i){return new e(t.type,r,o,i,t.propValues)},n.makeTree||function(r,o,i){return new e(Qi.none,r,o,i)})}}],[{key:"build",value:function(t){return i1t(t)}}]),e}();ko.empty=new ko(Qi.none,[],[],0);var n1t=function(){function e(t,n){rt(this,e),this.buffer=t,this.index=n}return ot(e,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new e(this.buffer,this.index)}}]),e}(),Dp=function(){function e(t,n,r){rt(this,e),this.buffer=t,this.length=n,this.set=r}return ot(e,[{key:"type",get:function(){return Qi.none}},{key:"toString",value:function(){for(var t=[],n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}},{key:"childString",value:function(t){var n=this.buffer[t],r=this.buffer[t+3],o=this.set.types[n],i=o.name;if(/\W/.test(i)&&!o.isError&&(i=JSON.stringify(i)),r==(t+=4))return i;for(var a=[];t<r;)a.push(this.childString(t)),t=this.buffer[t+3];return i+"("+a.join(",")+")"}},{key:"findChild",value:function(t,n,r,o,i){for(var a=this.buffer,s=-1,c=t;c!=n&&!(oq(i,o,a[c+1],a[c+2])&&(s=c,r>0));c=a[c+3]);return s}},{key:"slice",value:function(t,n,r){for(var o=this.buffer,i=new Uint16Array(n-t),a=0,s=t,c=0;s<n;){i[c++]=o[s++],i[c++]=o[s++]-r;var u=i[c++]=o[s++]-r;i[c++]=o[s++]-t,a=Math.max(a,u)}return new e(i,a,this.set)}}]),e}();function oq(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function ph(e,t,n,r){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){var i=!r&&e instanceof Ic&&e.index<0?null:e.parent;if(!i)return e;e=i}var a=r?0:io.IgnoreOverlays;if(r)for(var s=e,c=s.parent;c;c=(s=c).parent)s instanceof Ic&&s.index<0&&((o=c.enter(t,n,a))===null||o===void 0?void 0:o.from)!=s.from&&(e=c);for(;;){var u=e.enter(t,n,a);if(!u)return e;e=u}}var iq=function(){function e(){rt(this,e)}return ot(e,[{key:"cursor",value:function(){return new Mx(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)}},{key:"getChild",value:function(t){var n=iT(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null);return n.length?n[0]:null}},{key:"getChildren",value:function(t){return iT(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null)}},{key:"resolve",value:function(t){return ph(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,!1)}},{key:"resolveInner",value:function(t){return ph(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,!0)}},{key:"matchContext",value:function(t){return Ex(this,t)}},{key:"enterUnfinishedNodesBefore",value:function(t){for(var n=this.childBefore(t),r=this;n;){var o=n.lastChild;if(!o||o.to!=n.to)break;o.type.isError&&o.from==o.to?(r=n,n=o.prevSibling):n=o}return r}},{key:"node",get:function(){return this}},{key:"next",get:function(){return this.parent}}]),e}(),Ic=function(e){Tt(n,iq);var t=Rt(n);function n(r,o,i,a){var s;return rt(this,n),(s=t.call(this))._tree=r,s.from=o,s.index=i,s._parent=a,s}return ot(n,[{key:"type",get:function(){return this._tree.type}},{key:"name",get:function(){return this._tree.type.name}},{key:"to",get:function(){return this.from+this._tree.length}},{key:"nextChild",value:function(r,o,i,a){for(var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,c=this;;){for(var u=c._tree,l=u.children,f=u.positions,d=o>0?l.length:-1;r!=d;r+=o){var h=l[r],p=f[r]+c.from;if(oq(a,i,p,p+h.length)){if(h instanceof Dp){if(s&io.ExcludeBuffers)continue;var v=h.findChild(0,h.buffer.length,o,i-p,a);if(v>-1)return new Ox(new r1t(c,h,r,p),null,v)}else if(s&io.IncludeAnonymous||!h.type.isAnonymous||Ij(h)){var m=void 0;if(!(s&io.IgnoreMounts)&&(m=Dg.get(h))&&!m.overlay)return new n(m.tree,p,r,c);var g=new n(h,p,r,c);return s&io.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(o<0?h.children.length-1:0,o,i,a)}}}if(s&io.IncludeAnonymous||!c.type.isAnonymous||(r=c.index>=0?c.index+o:o<0?-1:c._parent._tree.children.length,!(c=c._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(r){return this.nextChild(0,1,r,2)}},{key:"childBefore",value:function(r){return this.nextChild(this._tree.children.length-1,-1,r,-2)}},{key:"enter",value:function(r,o){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!(a&io.IgnoreOverlays)&&(i=Dg.get(this._tree))&&i.overlay){var s,c=r-this.from,u=ht(i.overlay);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l.from,d=l.to;if((o>0?f<=c:f<c)&&(o<0?d>=c:d>c))return new n(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(h){u.e(h)}finally{u.f()}}return this.nextChild(0,1,r,o,a)}},{key:"nextSignificantParent",value:function(){for(var r=this;r.type.isAnonymous&&r._parent;)r=r._parent;return r}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"toString",value:function(){return this._tree.toString()}}]),n}();function iT(e,t,n,r){var o=e.cursor(),i=[];if(!o.firstChild())return i;if(n!=null){for(;!o.type.is(n);)if(!o.nextSibling())return i}for(;;){if(r!=null&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return r==null?i:[]}}function Ex(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length-1,r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}var r1t=ot(function e(t,n,r,o){rt(this,e),this.parent=t,this.buffer=n,this.index=r,this.start=o}),Ox=function(e){Tt(n,iq);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this)).context=r,a._parent=o,a.index=i,a.type=r.buffer.set.types[r.buffer.buffer[i]],a}return ot(n,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(r,o,i){var a=this.context.buffer,s=a.findChild(this.index+4,a.buffer[this.index+3],r,o-this.context.start,i);return s<0?null:new n(this.context,this,s)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(r){return this.child(1,r,2)}},{key:"childBefore",value:function(r){return this.child(-1,r,-2)}},{key:"enter",value:function(r,o){if((arguments.length>2&&arguments[2]!==void 0?arguments[2]:0)&io.ExcludeBuffers)return null;var i=this.context.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],o>0?1:-1,r-this.context.start,o);return a<0?null:new n(this.context,this,a)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(r){return this._parent?null:this.context.parent.nextChild(this.context.index+r,r,0,4)}},{key:"nextSibling",get:function(){var r=this.context.buffer,o=r.buffer[this.index+3];return o<(this._parent?r.buffer[this._parent.index+3]:r.buffer.length)?new n(this.context,this._parent,o):this.externalSibling(1)}},{key:"prevSibling",get:function(){var r=this.context.buffer,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new n(this.context,this._parent,r.findChild(o,this.index,-1,0,4))}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var r=[],o=[],i=this.context.buffer,a=this.index+4,s=i.buffer[this.index+3];if(s>a){var c=i.buffer[this.index+1];r.push(i.slice(a,s,c)),o.push(0)}return new ko(this.type,r,o,this.to-this.from)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}}]),n}();function aq(e){if(!e.length)return null;if(e.length==1)return e[0];for(var t=0,n=e[0],r=1;r<e.length;r++){var o=e[r];(o.from>n.from||o.to<n.to)&&(n=o,t=r)}var i=n instanceof Ic&&n.index<0?null:n.parent,a=e.slice();return i?a[t]=i:a.splice(t,1),new o1t(a,n)}var o1t=function(){function e(t,n){rt(this,e),this.heads=t,this.node=n}return ot(e,[{key:"next",get:function(){return aq(this.heads)}}]),e}(),Mx=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(rt(this,e),this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Ic)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(var r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}return ot(e,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}},{key:"yieldBuf",value:function(t,n){this.index=t;var r=this.buffer,o=r.start,i=r.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=o+i.buffer[t+1],this.to=o+i.buffer[t+2],!0}},{key:"yield",value:function(t){return!!t&&(t instanceof Ic?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));var o=this.buffer.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(t){return this.enterChild(1,t,2)}},{key:"childBefore",value:function(t){return this.enterChild(-1,t,-2)}},{key:"enter",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.mode;return this.buffer?!(r&io.ExcludeBuffers)&&this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&io.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var t=this.mode&io.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}},{key:"sibling",value:function(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));var n=this.buffer.buffer,r=this.stack.length-1;if(t<0){var o=r<0?0:this.stack[r]+4;if(this.index!=o)return this.yieldBuf(n.findChild(o,this.index,-1,0,4))}else{var i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(t){var n,r,o=this.buffer;if(o){if(t>0){if(this.index<o.buffer.buffer.length)return!1}else for(var i=0;i<this.index;i++)if(o.buffer.buffer[i+3]<this.index)return!1;n=o.index,r=o.parent}else{var a=this._tree;n=a.index,r=a._parent}for(;r;n=(s=r).index,r=s._parent,s){var s;if(n>-1)for(var c=n+t,u=t<0?-1:r._tree.children.length;c!=u;c+=t){var l=r._tree.children[c];if(this.mode&io.IncludeAnonymous||l instanceof Dp||!l.type.isAnonymous||Ij(l))return!1}}return!0}},{key:"move",value:function(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}},{key:"next",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.move(1,t)}},{key:"prev",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.move(-1,t)}},{key:"moveTo",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}},{key:"node",get:function(){if(!this.buffer)return this._tree;var t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)t:for(var o=this.index,i=this.stack.length;i>=0;){for(var a=t;a;a=a._parent)if(a.index==o){if(o==this.index)return a;n=a,r=i+1;break t}o=this.stack[--i]}for(var s=r;s<this.stack.length;s++)n=new Ox(this.buffer,n,this.stack[s]);return this.bufferNode=new Ox(this.buffer,n,this.index)}},{key:"tree",get:function(){return this.buffer?null:this._tree._tree}},{key:"iterate",value:function(t,n){for(var r=0;;){var o=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(o=!0)}for(;o&&n&&n(this),o=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,o=!0}}}},{key:"matchContext",value:function(t){if(!this.buffer)return Ex(this.node,t);for(var n=this.buffer.buffer,r=n.set.types,o=t.length-1,i=this.stack.length-1;o>=0;i--){if(i<0)return Ex(this.node,t,o);var a=r[n.buffer[this.stack[i]]];if(!a.isAnonymous){if(t[o]&&t[o]!=a.name)return!1;o--}}return!0}}]),e}();function Ij(e){return e.children.some(function(t){return t instanceof Dp||!t.type.isAnonymous||Ij(t)})}function i1t(e){var t,n=e.buffer,r=e.nodeSet,o=e.maxBufferLength,i=o===void 0?1024:o,a=e.reused,s=a===void 0?[]:a,c=e.minRepeatType,u=c===void 0?r.types.length:c,l=Array.isArray(n)?new n1t(n,n.length):n,f=r.types,d=0,h=0;function p(x,k,j,S,N){for(var C=l.id,$=l.start,B=l.end,K=l.size,R=h;K<0;){if(l.next(),K==-1){var q=s[C];return j.push(q),void S.push($-x)}if(K==-3)return void(d=C);if(K==-4)return void(h=C);throw new RangeError("Unrecognized record size: ".concat(K))}var F,O,A=f[C],_=$-x;if(B-$<=i&&(O=function(jt,gt){var Y=l.fork(),J=0,it=0,X=0,_t=Y.end-i,z={size:0,start:0,skip:0};t:for(var W=Y.pos-jt;Y.pos>W;){var G=Y.size;if(Y.id==gt&&G>=0)z.size=J,z.start=it,z.skip=X,X+=4,J+=4,Y.next();else{var pt=Y.pos-G;if(G<0||pt<W||Y.start<_t)break;var mt=Y.id>=u?4:0,Ot=Y.start;for(Y.next();Y.pos>pt;){if(Y.size<0){if(Y.size!=-3)break t;mt+=4}else Y.id>=u&&(mt+=4);Y.next()}it=Ot,J+=G,X+=mt}}return(gt<0||J==jt)&&(z.size=J,z.start=it,z.skip=X),z.size>4?z:void 0}(l.pos-k,N))){for(var M=new Uint16Array(O.size-O.skip),P=l.pos-O.size,D=M.length;l.pos>P;)D=g(O.start,M,D);F=new Dp(M,B-O.start,r),_=O.start-x}else{var T=l.pos-K;l.next();for(var H=[],I=[],ft=C>=u?C:-1,tt=0,yt=B;l.pos>T;)ft>=0&&l.id==ft&&l.size>=0?(l.end<=yt-i&&(v(H,I,$,tt,l.end,yt,ft,R),tt=H.length,yt=l.end),l.next()):p($,T,H,I,ft);if(ft>=0&&tt>0&&tt<H.length&&v(H,I,$,tt,$,yt,ft,R),H.reverse(),I.reverse(),ft>-1&&tt>0){var bt=function(jt){return function(gt,Y,J){var it,X,_t=0,z=gt.length-1;if(z>=0&&(it=gt[z])instanceof ko){if(!z&&it.type==jt&&it.length==J)return it;(X=it.prop(Cn.lookAhead))&&(_t=Y[z]+it.length+X)}return m(jt,gt,Y,J,_t)}}(A);F=Nj(A,H,I,0,H.length,0,B-$,bt,bt)}else F=m(A,H,I,B-$,R-B)}j.push(F),S.push(_)}function v(x,k,j,S,N,C,$,B){for(var K=[],R=[];x.length>S;)K.push(x.pop()),R.push(k.pop()+j-N);x.push(m(r.types[$],K,R,C-N,B-C)),k.push(N-j)}function m(x,k,j,S){var N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,C=arguments.length>5?arguments[5]:void 0;if(d){var $=[Cn.contextHash,d];C=C?[$].concat(C):[$]}if(N>25){var B=[Cn.lookAhead,N];C=C?[B].concat(C):[B]}return new ko(x,k,j,S,C)}function g(x,k,j){var S=l.id,N=l.start,C=l.end,$=l.size;if(l.next(),$>=0&&S<u){var B=j;if($>4)for(var K=l.pos-($-4);l.pos>K;)j=g(x,k,j);k[--j]=B,k[--j]=C-x,k[--j]=N-x,k[--j]=S}else $==-3?d=S:$==-4&&(h=S);return j}for(var y=[],b=[];l.pos>0;)p(e.start||0,e.bufferStart||0,y,b,-1);var w=(t=e.length)!==null&&t!==void 0?t:y.length?b[0]+y[0].length:0;return new ko(f[e.topID],y.reverse(),b.reverse(),w)}var aT=new WeakMap;function Am(e,t){if(!e.isAnonymous||t instanceof Dp||t.type!=e)return 1;var n=aT.get(t);if(n==null){n=1;var r,o=ht(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.type!=e||!(i instanceof ko)){n=1;break}n+=Am(e,i)}}catch(a){o.e(a)}finally{o.f()}aT.set(t,n)}return n}function Nj(e,t,n,r,o,i,a,s,c){for(var u=0,l=r;l<o;l++)u+=Am(e,t[l]);var f=Math.ceil(1.5*u/8),d=[],h=[];return function p(v,m,g,y,b){for(var w=g;w<y;){var x=w,k=m[w],j=Am(e,v[w]);for(w++;w<y;w++){var S=Am(e,v[w]);if(j+S>=f)break;j+=S}if(w==x+1){if(j>f){var N=v[x];p(N.children,N.positions,0,N.children.length,m[x]+b);continue}d.push(v[x])}else{var C=m[w-1]+v[w-1].length-k;d.push(Nj(e,v,m,x,w,k,C,null,c))}h.push(k+b-i)}}(t,n,r,o,0),(s||c)(d,h,a)}var Pm=function(){function e(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0&&arguments[4],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5];rt(this,e),this.from=t,this.to=n,this.tree=r,this.offset=o,this.open=(i?1:0)|(a?2:0)}return ot(e,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=[new e(0,t.length,t,0,!1,o)],a=ht(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.to>t.length&&i.push(s)}}catch(c){a.e(c)}finally{a.f()}return i}},{key:"applyChanges",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:128;if(!n.length)return t;for(var o=[],i=1,a=t.length?t[0]:null,s=0,c=0,u=0;;s++){var l=s<n.length?n[s]:null,f=l?l.fromA:1e9;if(f-c>=r)for(;a&&a.from<f;){var d=a;if(c>=d.from||f<=d.to||u){var h=Math.max(d.from,c)-u,p=Math.min(d.to,f)-u;d=h>=p?null:new e(h,p,d.tree,d.offset+u,s>0,!!l)}if(d&&o.push(d),a.to>f)break;a=i<t.length?t[i++]:null}if(!l)break;c=l.toA,u=l.toA-l.toB}return o}}]),e}(),sq=function(){function e(){rt(this,e)}return ot(e,[{key:"startParse",value:function(t,n,r){return typeof t=="string"&&(t=new a1t(t)),r=r?r.length?r.map(function(o){return new qy(o.from,o.to)}):[new qy(0,0)]:[new qy(0,t.length)],this.createParse(t,n||[],r)}},{key:"parse",value:function(t,n,r){for(var o=this.startParse(t,n,r);;){var i=o.advance();if(i)return i}}}]),e}(),a1t=function(){function e(t){rt(this,e),this.string=t}return ot(e,[{key:"length",get:function(){return this.string.length}},{key:"chunk",value:function(t){return this.string.slice(t)}},{key:"lineChunks",get:function(){return!1}},{key:"read",value:function(t,n){return this.string.slice(t,n)}}]),e}();new Cn({perNode:!0});var s1t=0,vc=function(){function e(t,n,r){rt(this,e),this.set=t,this.base=n,this.modified=r,this.id=s1t++}return ot(e,null,[{key:"define",value:function(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");var n=new e([],null,[]);if(n.set.push(n),t){var r,o=ht(t.set);try{for(o.s();!(r=o.n()).done;){var i=r.value;n.set.push(i)}}catch(a){o.e(a)}finally{o.f()}}return n}},{key:"defineModifier",value:function(){var t=new sT;return function(n){return n.modified.indexOf(t)>-1?n:sT.get(n.base||n,n.modified.concat(t).sort(function(r,o){return r.id-o.id}))}}}]),e}(),c1t=0,sT=function(){function e(){rt(this,e),this.instances=[],this.id=c1t++}return ot(e,null,[{key:"get",value:function(t,n){if(!n.length)return t;var r=n[0].instances.find(function(v){return v.base==t&&function(m,g){return m.length==g.length&&m.every(function(y,b){return y==g[b]})}(n,v.modified)});if(r)return r;var o,i=[],a=new vc(i,t,n),s=ht(n);try{for(s.s();!(o=s.n()).done;)o.value.instances.push(a)}catch(v){s.e(v)}finally{s.f()}var c,u=cq(n),l=ht(t.set);try{for(l.s();!(c=l.n()).done;){var f,d=c.value,h=ht(u);try{for(h.s();!(f=h.n()).done;){var p=f.value;i.push(e.get(d,p))}}catch(v){h.e(v)}finally{h.f()}}}catch(v){l.e(v)}finally{l.f()}return a}}]),e}();function cq(e){for(var t=[e],n=0;n<e.length;n++){var r,o=ht(cq(e.slice(0,n).concat(e.slice(n+1))));try{for(o.s();!(r=o.n()).done;){var i=r.value;t.push(i)}}catch(a){o.e(a)}finally{o.f()}}return t}function uq(e){var t=Object.create(null);for(var n in e){var r=e[n];Array.isArray(r)||(r=[r]);var o,i=ht(n.split(" "));try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a){for(var s=[],c=2,u=a,l=0;;){if(u=="..."&&l>0&&l+3==a.length){c=1;break}var f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(u);if(!f)throw new RangeError("Invalid path: "+a);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),(l+=f[0].length)==a.length)break;var d=a[l++];if(l==a.length&&d=="!"){c=0;break}if(d!="/")throw new RangeError("Invalid path: "+a);u=a.slice(l)}var h=s.length-1,p=s[h];if(!p)throw new RangeError("Invalid path: "+a);var v=new u1t(r,c,h>0?s.slice(0,h):null);t[p]=v.sort(t[p])}}}catch(m){i.e(m)}finally{i.f()}}return lq.add(t)}var lq=new Cn,u1t=function(){function e(t,n,r,o){rt(this,e),this.tags=t,this.mode=n,this.context=r,this.next=o}return ot(e,[{key:"sort",value:function(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}},{key:"depth",get:function(){return this.context?this.context.length:0}}]),e}();function fq(e,t){var n,r=Object.create(null),o=ht(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(Array.isArray(i.tag)){var a,s=ht(i.tag);try{for(s.s();!(a=s.n()).done;){var c=a.value;r[c.id]=i.class}}catch(h){s.e(h)}finally{s.f()}}else r[i.tag.id]=i.class}}catch(h){o.e(h)}finally{o.f()}var u=t||{},l=u.scope,f=u.all,d=f===void 0?null:f;return{style:function(h){var p,v=d,m=ht(h);try{for(m.s();!(p=m.n()).done;){var g,y=ht(p.value.set);try{for(y.s();!(g=y.n()).done;){var b=g.value,w=r[b.id];if(w){v=v?v+" "+w:w;break}}}catch(x){y.e(x)}finally{y.f()}}}catch(x){m.e(x)}finally{m.f()}return v},scope:l}}function l1t(e,t){var n,r=null,o=ht(e);try{for(o.s();!(n=o.n()).done;){var i=n.value.style(t);i&&(r=r?r+" "+i:i)}}catch(a){o.e(a)}finally{o.f()}return r}function f1t(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:e.length,i=new d1t(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}var Hy,d1t=function(){function e(t,n,r){rt(this,e),this.at=t,this.highlighters=n,this.span=r,this.class=""}return ot(e,[{key:"startSpan",value:function(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}},{key:"flush",value:function(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}},{key:"highlightRange",value:function(t,n,r,o,i){var a=t.type,s=t.from,c=t.to;if(!(s>=r||c<=n)){a.isTop&&(i=this.highlighters.filter(function(j){return!j.scope||j.scope(a)}));for(var u=o,l=a.prop(lq),f=!1;l;){if(!l.context||t.matchContext(l.context)){var d=l1t(i,l.tags);d&&(u&&(u+=" "),u+=d,l.mode==1?o+=(o?" ":"")+d:l.mode==0&&(f=!0));break}l=l.next}if(this.startSpan(t.from,u),!f){var h=t.tree&&t.tree.prop(Cn.mounted);if(h&&h.overlay){for(var p=t.node.enter(h.overlay[0].from+s,1),v=this.highlighters.filter(function(j){return!j.scope||j.scope(h.tree.type)}),m=t.firstChild(),g=0,y=s;;g++){var b=g<h.overlay.length?h.overlay[g]:null,w=b?b.from+s:c,x=Math.max(n,y),k=Math.min(r,w);if(x<k&&m)for(;t.from<k&&(this.highlightRange(t,x,k,o,i),this.startSpan(Math.min(r,t.to),u),!(t.to>=w)&&t.nextSibling()););if(!b||w>r)break;(y=b.to+s)>n&&(this.highlightRange(p.cursor(),Math.max(n,b.from+s),Math.min(r,y),o,v),this.startSpan(y,u))}m&&t.parent()}else if(t.firstChild()){do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,o,i),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}}}]),e}(),se=vc.define,Nv=se(),mc=se(),cT=se(mc),uT=se(mc),gc=se(),Dv=se(gc),Vy=se(gc),Fa=se(),vu=se(Fa),za=se(),La=se(),Ax=se(),wd=se(Ax),zv=se(),re={comment:Nv,lineComment:se(Nv),blockComment:se(Nv),docComment:se(Nv),name:mc,variableName:se(mc),typeName:cT,tagName:se(cT),propertyName:uT,attributeName:se(uT),className:se(mc),labelName:se(mc),namespace:se(mc),macroName:se(mc),literal:gc,string:Dv,docString:se(Dv),character:se(Dv),attributeValue:se(Dv),number:Vy,integer:se(Vy),float:se(Vy),bool:se(gc),regexp:se(gc),escape:se(gc),color:se(gc),url:se(gc),keyword:za,self:se(za),null:se(za),atom:se(za),unit:se(za),modifier:se(za),operatorKeyword:se(za),controlKeyword:se(za),definitionKeyword:se(za),moduleKeyword:se(za),operator:La,derefOperator:se(La),arithmeticOperator:se(La),logicOperator:se(La),bitwiseOperator:se(La),compareOperator:se(La),updateOperator:se(La),definitionOperator:se(La),typeOperator:se(La),controlOperator:se(La),punctuation:Ax,separator:se(Ax),bracket:wd,angleBracket:se(wd),squareBracket:se(wd),paren:se(wd),brace:se(wd),content:Fa,heading:vu,heading1:se(vu),heading2:se(vu),heading3:se(vu),heading4:se(vu),heading5:se(vu),heading6:se(vu),contentSeparator:se(Fa),list:se(Fa),quote:se(Fa),emphasis:se(Fa),strong:se(Fa),link:se(Fa),monospace:se(Fa),strikethrough:se(Fa),inserted:se(),deleted:se(),changed:se(),invalid:se(),meta:zv,documentMeta:se(zv),annotation:se(zv),processingInstruction:se(zv),definition:vc.defineModifier(),constant:vc.defineModifier(),function:vc.defineModifier(),standard:vc.defineModifier(),local:vc.defineModifier(),special:vc.defineModifier()};fq([{tag:re.link,class:"tok-link"},{tag:re.heading,class:"tok-heading"},{tag:re.emphasis,class:"tok-emphasis"},{tag:re.strong,class:"tok-strong"},{tag:re.keyword,class:"tok-keyword"},{tag:re.atom,class:"tok-atom"},{tag:re.bool,class:"tok-bool"},{tag:re.url,class:"tok-url"},{tag:re.labelName,class:"tok-labelName"},{tag:re.inserted,class:"tok-inserted"},{tag:re.deleted,class:"tok-deleted"},{tag:re.literal,class:"tok-literal"},{tag:re.string,class:"tok-string"},{tag:re.number,class:"tok-number"},{tag:[re.regexp,re.escape,re.special(re.string)],class:"tok-string2"},{tag:re.variableName,class:"tok-variableName"},{tag:re.local(re.variableName),class:"tok-variableName tok-local"},{tag:re.definition(re.variableName),class:"tok-variableName tok-definition"},{tag:re.special(re.variableName),class:"tok-variableName2"},{tag:re.definition(re.propertyName),class:"tok-propertyName tok-definition"},{tag:re.typeName,class:"tok-typeName"},{tag:re.namespace,class:"tok-namespace"},{tag:re.className,class:"tok-className"},{tag:re.macroName,class:"tok-macroName"},{tag:re.propertyName,class:"tok-propertyName"},{tag:re.operator,class:"tok-operator"},{tag:re.comment,class:"tok-comment"},{tag:re.meta,class:"tok-meta"},{tag:re.invalid,class:"tok-invalid"},{tag:re.punctuation,class:"tok-punctuation"}]);var Hl=new Cn,h1t=new Cn,ga=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";rt(this,e),this.data=t,this.name=o,fr.prototype.hasOwnProperty("tree")||Object.defineProperty(fr.prototype,"tree",{get:function(){return Io(this)}}),this.parser=n,this.extension=[Yc.of(this),fr.languageData.of(function(i,a,s){var c=lT(i,a,s),u=c.type.prop(Hl);if(!u)return[];var l=i.facet(u),f=c.type.prop(h1t);if(f){var d,h=c.resolve(a-c.from,s),p=ht(f);try{for(p.s();!(d=p.n()).done;){var v=d.value;if(v.test(h,i)){var m=i.facet(v.facet);return v.type=="replace"?m:m.concat(l)}}}catch(g){p.e(g)}finally{p.f()}}return l})].concat(r)}return ot(e,[{key:"isActiveAt",value:function(t,n){return lT(t,n,arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1).type.prop(Hl)==this.data}},{key:"findRegions",value:function(t){var n=this,r=t.facet(Yc);if((r==null?void 0:r.data)==this.data)return[{from:0,to:t.doc.length}];if(!r||!r.allowsNesting)return[];var o=[];return function i(a,s){if(a.prop(Hl)!=n.data){var c=a.prop(Cn.mounted);if(c){if(c.tree.prop(Hl)==n.data){if(c.overlay){var u,l=ht(c.overlay);try{for(l.s();!(u=l.n()).done;){var f=u.value;o.push({from:f.from+s,to:f.to+s})}}catch(v){l.e(v)}finally{l.f()}}else o.push({from:s,to:s+a.length});return}if(c.overlay){var d=o.length;if(i(c.tree,c.overlay[0].from+s),o.length>d)return}}for(var h=0;h<a.children.length;h++){var p=a.children[h];p instanceof ko&&i(p,a.positions[h]+s)}}else o.push({from:s,to:s+a.length})}(Io(t),0),o}},{key:"allowsNesting",get:function(){return!0}}]),e}();function lT(e,t,n){var r=e.facet(Yc),o=Io(e).topNode;if(!r||r.allowsNesting)for(var i=o;i;i=i.enter(t,n,io.ExcludeBuffers))i.type.isTop&&(o=i);return o}ga.setState=bn.define();var p1t=function(e){Tt(n,ga);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this,r,o,[],i)).parser=o,a}return ot(n,[{key:"configure",value:function(r,o){return new n(this.data,this.parser.configure(r),o||this.name)}},{key:"allowsNesting",get:function(){return this.parser.hasWrappers()}}],[{key:"define",value:function(r){var o,i=(o=r.languageData,xe.define({combine:o?function(a){return a.concat(o)}:void 0}));return new n(i,r.parser.configure({props:[Hl.add(function(a){return a.isTop?i:void 0})]}),r.name)}}]),n}();function Io(e){var t=e.field(ga.state,!1);return t?t.tree:ko.empty}var v1t=function(){function e(t){rt(this,e),this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}return ot(e,[{key:"length",get:function(){return this.doc.length}},{key:"syncTo",value:function(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}},{key:"chunk",value:function(t){return this.syncTo(t),this.string}},{key:"lineChunks",get:function(){return!0}},{key:"read",value:function(t,n){var r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}]),e}(),xd=null,m1t=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0;rt(this,e),this.parser=t,this.state=n,this.fragments=r,this.tree=o,this.treeLen=i,this.viewport=a,this.skipped=s,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}return ot(e,[{key:"startParse",value:function(){return this.parser.startParse(new v1t(this.state.doc),this.fragments)}},{key:"work",value:function(t,n){var r=this;return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ko.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var o;if(typeof t=="number"){var i=Date.now()+t;t=function(){return Date.now()>i}}for(r.parse||(r.parse=r.startParse()),n!=null&&(r.parse.stoppedAt==null||r.parse.stoppedAt>n)&&n<r.state.doc.length&&r.parse.stopAt(n);;){var a=r.parse.advance();if(a){if(r.fragments=r.withoutTempSkipped(Pm.addTree(a,r.fragments,r.parse.stoppedAt!=null)),r.treeLen=(o=r.parse.stoppedAt)!==null&&o!==void 0?o:r.state.doc.length,r.tree=a,r.parse=null,!(r.treeLen<(n??r.state.doc.length)))return!0;r.parse=r.startParse()}if(t())return!1}})}},{key:"takeTree",value:function(){var t,n,r=this;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(function(){for(;!(n=r.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Pm.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(t){var n=xd;xd=this;try{return t()}finally{xd=n}}},{key:"withoutTempSkipped",value:function(t){for(var n;n=this.tempSkipped.pop();)t=fT(t,n.from,n.to);return t}},{key:"changes",value:function(t,n){var r=this.fragments,o=this.tree,i=this.treeLen,a=this.viewport,s=this.skipped;if(this.takeTree(),!t.empty){var c=[];if(t.iterChangedRanges(function(p,v,m,g){return c.push({fromA:p,toA:v,fromB:m,toB:g})}),r=Pm.applyChanges(r,c),o=ko.empty,i=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];var u,l=ht(this.skipped);try{for(l.s();!(u=l.n()).done;){var f=u.value,d=t.mapPos(f.from,1),h=t.mapPos(f.to,-1);d<h&&s.push({from:d,to:h})}}catch(p){l.e(p)}finally{l.f()}}}return new e(this.parser,n,r,o,i,a,s,this.scheduleOn)}},{key:"updateViewport",value:function(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;for(var n=this.skipped.length,r=0;r<this.skipped.length;r++){var o=this.skipped[r],i=o.from,a=o.to;i<t.to&&a>t.from&&(this.fragments=fT(this.fragments,i,a),this.skipped.splice(r--,1))}return!(this.skipped.length>=n)&&(this.reset(),!0)}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(t,n){this.skipped.push({from:t,to:n})}},{key:"isDone",value:function(t){t=Math.min(t,this.state.doc.length);var n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}}],[{key:"create",value:function(t,n,r){return new e(t,n,[],ko.empty,0,r,[],null)}},{key:"getSkippingParser",value:function(t){return new(function(n){Tt(o,sq);var r=Rt(o);function o(){return rt(this,o),r.apply(this,arguments)}return ot(o,[{key:"createParse",value:function(i,a,s){var c=s[0].from,u=s[s.length-1].to;return{parsedPos:c,advance:function(){var l=xd;if(l){var f,d=ht(s);try{for(d.s();!(f=d.n()).done;){var h=f.value;l.tempSkipped.push(h)}}catch(p){d.e(p)}finally{d.f()}t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=u,new ko(Qi.none,[],[],u-c)},stoppedAt:null,stopAt:function(){}}}}]),o}())}},{key:"get",value:function(){return xd}}]),e}();function fT(e,t,n){return Pm.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}var Px=function(){function e(t){rt(this,e),this.context=t,this.tree=t.tree}return ot(e,[{key:"apply",value:function(t){if(!t.docChanged&&this.tree==this.context.tree)return this;var n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new e(n)}}],[{key:"init",value:function(t){var n=Math.min(3e3,t.doc.length),r=m1t.create(t.facet(Yc).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new e(r)}}]),e}();ga.state=_o.define({create:Px.init,update:function(e,t){var n,r=ht(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is(ga.setState))return o.value}}catch(i){r.e(i)}finally{r.f()}return t.startState.facet(Yc)!=t.state.facet(Yc)?Px.init(t.state):e.apply(t)}});var dq=function(e){var t=setTimeout(function(){return e()},500);return function(){return clearTimeout(t)}};typeof requestIdleCallback<"u"&&(dq=function(e){var t=-1,n=setTimeout(function(){t=requestIdleCallback(e,{timeout:400})},100);return function(){return t<0?clearTimeout(n):cancelIdleCallback(t)}});var Uy=typeof navigator<"u"&&(!((Hy=navigator.scheduling)===null||Hy===void 0)&&Hy.isInputPending)?function(){return navigator.scheduling.isInputPending()}:null,g1t=Zr.fromClass(function(){function e(t){rt(this,e),this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return ot(e,[{key:"update",value:function(t){var n=this.view.state.field(ga.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}},{key:"scheduleWork",value:function(){if(!this.working){var t=this.view.state,n=t.field(ga.state);n.tree==n.context.tree&&n.context.isDone(t.doc.length)||(this.working=dq(this.work))}}},{key:"work",value:function(t){this.working=null;var n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),!(this.chunkBudget<=0)){var r=this.view,o=r.state,i=r.viewport.to,a=o.field(ga.state);if(a.tree!=a.context.tree||!a.context.isDone(i+1e5)){var s=Date.now()+Math.min(this.chunkBudget,100,t&&!Uy?Math.max(25,t.timeRemaining()-5):1e9),c=a.context.treeLen<i&&o.doc.length>i+1e3,u=a.context.work(function(){return Uy&&Uy()||Date.now()>s},i+(c?0:1e5));this.chunkBudget-=Date.now()-n,(u||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:ga.setState.of(new Px(a.context))})),this.chunkBudget>0&&(!u||c)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}}}},{key:"checkAsyncSchedule",value:function(t){var n=this;t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(function(){return n.scheduleWork()}).catch(function(r){return Vi(n.view.state,r)}).then(function(){return n.workScheduled--}),t.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),e}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Yc=xe.define({combine:function(e){return e.length?e[0]:null},enables:function(e){return[ga.state,g1t,ye.contentAttributes.compute([e],function(t){var n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}}),y1t=ot(function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];rt(this,e),this.language=t,this.support=n,this.extension=[t,n]}),b1t=xe.define(),c1=xe.define({combine:function(e){if(!e.length)return" ";var t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(function(n){return n!=t[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Xc(e){var t=e.facet(c1);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function np(e,t){var n="",r=e.tabSize,o=e.facet(c1)[0];if(o==" "){for(;t>=r;)n+=" ",t-=r;o=" "}for(var i=0;i<t;i++)n+=o;return n}function Dj(e,t){e instanceof fr&&(e=new u1(e));var n,r=ht(e.state.facet(b1t));try{for(r.s();!(n=r.n()).done;){var o=(0,n.value)(e,t);if(o!==void 0)return o}}catch(a){r.e(a)}finally{r.f()}var i=Io(e.state);return i.length>=t?function(a,s,c){var u=s.resolveStack(c),l=u.node.enterUnfinishedNodesBefore(c);if(l!=u.node){for(var f=[],d=l;d!=u.node;d=d.parent)f.push(d);for(var h=f.length-1;h>=0;h--)u={node:f[h],next:u}}return pq(u,a,c)}(e,i,t):null}var u1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rt(this,e),this.state=t,this.options=n,this.unit=Xc(t)}return ot(e,[{key:"lineAt",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=this.state.doc.lineAt(t),o=this.options,i=o.simulateBreak,a=o.simulateDoubleBreak;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}},{key:"textAfterPos",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";var r=this.lineAt(t,n),o=r.text,i=r.from;return o.slice(t-i,Math.min(o.length,t+100-i))}},{key:"column",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=this.lineAt(t,n),o=r.text,i=r.from,a=this.countColumn(o,t-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(a+=s-this.countColumn(o,o.search(/\S|$/))),a}},{key:"countColumn",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.length;return sd(t,this.state.tabSize,n)}},{key:"lineIndent",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=this.lineAt(t,n),o=r.text,i=r.from,a=this.options.overrideIndentation;if(a){var s=a(i);if(s>-1)return s}return this.countColumn(o,o.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),e}(),hq=new Cn;function pq(e,t,n){for(var r=e;r;r=r.next){var o=w1t(r.node);if(o)return o(k1t.create(t,n,r))}return 0}function w1t(e){var t=e.type.prop(hq);if(t)return t;var n,r=e.firstChild;if(r&&(n=r.type.prop(Cn.closedBy))){var o=e.lastChild,i=o&&n.indexOf(o.name)>-1;return function(a){return function(s,c,u,l,f){var d=s.textAfter,h=d.match(/^\s*/)[0].length,p=l&&d.slice(h,h+l.length)==l||f==s.pos+h,v=c?function(m){var g=m.node,y=g.childAfter(g.from),b=g.lastChild;if(!y)return null;for(var w=m.options.simulateBreak,x=m.state.doc.lineAt(y.from),k=w==null||w<=x.from?x.to:Math.min(x.to,w),j=y.to;;){var S=g.childAfter(j);if(!S||S==b)return null;if(!S.type.isSkipped)return S.from<k?y:null;j=S.to}}(s):null;return v?p?s.column(v.from):s.column(v.to):s.baseIndent+(p?0:s.unit*u)}(a,!0,1,void 0,i&&!function(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}(a)?o.from:void 0)}}return e.parent==null?x1t:null}function x1t(){return 0}var k1t=function(e){Tt(n,u1);var t=Rt(n);function n(r,o,i){var a;return rt(this,n),(a=t.call(this,r.state,r.options)).base=r,a.pos=o,a.context=i,a}return ot(n,[{key:"node",get:function(){return this.context.node}},{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){return this.baseIndentFor(this.node)}},{key:"baseIndentFor",value:function(r){for(var o=this.state.doc.lineAt(r.from);;){for(var i=r.resolve(o.from);i.parent&&i.parent.from==i.from;)i=i.parent;if(j1t(i,r))break;o=this.state.doc.lineAt(i.from)}return this.lineIndent(o.from)}},{key:"continue",value:function(){return pq(this.context.next,this.base,this.pos)}}],[{key:"create",value:function(r,o,i){return new n(r,o,i)}}]),n}();function j1t(e,t){for(var n=t;n;n=n.parent)if(e==n)return!0;return!1}function dT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.except,n=e.units,r=n===void 0?1:n;return function(o){var i=t&&t.test(o.textAfter);return o.baseIndent+(i?0:r*o.unit)}}var _1t=200,S1t=xe.define(),vq=new Cn;function zg(e,t,n){var r,o=ht(e.facet(S1t));try{for(o.s();!(r=o.n()).done;){var i=(0,r.value)(e,t,n);if(i)return i}}catch(a){o.e(a)}finally{o.f()}return function(a,s,c){var u=Io(a);if(u.length<c)return null;for(var l,f,d=null,h=u.resolveStack(c,1);h;h=h.next){var p=h.node;if(!(p.to<=c||p.from>c)){if(d&&p.from<s)break;var v=p.type.prop(vq);if(v&&(p.to<u.length-50||u.length==a.doc.length||(f=void 0,!(f=(l=p).lastChild)||f.to!=l.to||!f.type.isError))){var m=v(p,a);m&&m.from<=c&&m.from>=s&&m.to>c&&(d=m)}}}return d}(e,t,n)}function mq(e,t){var n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}var Lg=bn.define({map:mq}),rp=bn.define({map:mq});function hT(e){var t,n=[],r=ht(e.state.selection.ranges);try{var o=function(){var i=t.value.head;if(n.some(function(a){return a.from<=i&&a.to>=i}))return 1;n.push(e.lineBlockAt(i))};for(r.s();!(t=r.n()).done;)o()}catch(i){r.e(i)}finally{r.f()}return n}var al=_o.define({create:function(){return We.none},update:function(e,t){e=e.map(t.changes);var n,r=ht(t.effects);try{var o=function(){var s=n.value;if(s.is(Lg)&&!function(l,f,d){var h=!1;return l.between(f,f,function(p,v){p==f&&v==d&&(h=!0)}),h}(e,s.value.from,s.value.to)){var c=t.state.facet(zj).preparePlaceholder,u=c?We.replace({widget:new E1t(c(t.state,s.value))}):mT;e=e.update({add:[u.range(s.value.from,s.value.to)]})}else s.is(rp)&&(e=e.update({filter:function(l,f){return s.value.from!=l||s.value.to!=f},filterFrom:s.value.from,filterTo:s.value.to}))};for(r.s();!(n=r.n()).done;)o()}catch(s){r.e(s)}finally{r.f()}if(t.selection){var i=!1,a=t.selection.main.head;e.between(a,a,function(s,c){s<a&&c>a&&(i=!0)}),i&&(e=e.update({filterFrom:a,filterTo:a,filter:function(s,c){return c<=a||s>=a}}))}return e},provide:function(e){return ye.decorations.from(e)},toJSON:function(e,t){var n=[];return e.between(0,t.doc.length,function(r,o){n.push(r,o)}),n},fromJSON:function(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n++];if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid JSON for fold state");t.push(mT.range(r,o))}return We.set(t,!0)}});function Bg(e,t,n){var r,o=null;return(r=e.field(al,!1))===null||r===void 0||r.between(t,n,function(i,a){(!o||o.from>i)&&(o={from:i,to:a})}),o}function pT(e,t){return e.field(al,!1)?t:t.concat(bn.appendConfig.of(gq()))}function vT(e,t){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return ye.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(o,"."))}var $1t=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(e){var t,n=ht(hT(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,o=zg(e.state,r.from,r.to);if(o)return e.dispatch({effects:pT(e.state,[Lg.of(o),vT(e,o)])}),!0}}catch(i){n.e(i)}finally{n.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(e){if(!e.state.field(al,!1))return!1;var t,n=[],r=ht(hT(e));try{for(r.s();!(t=r.n()).done;){var o=t.value,i=Bg(e.state,o.from,o.to);i&&n.push(rp.of(i),vT(e,i,!1))}}catch(a){r.e(a)}finally{r.f()}return n.length&&e.dispatch({effects:n}),n.length>0}},{key:"Ctrl-Alt-[",run:function(e){for(var t=e.state,n=[],r=0;r<t.doc.length;){var o=e.lineBlockAt(r),i=zg(t,o.from,o.to);i&&n.push(Lg.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:pT(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:function(e){var t=e.state.field(al,!1);if(!t||!t.size)return!1;var n=[];return t.between(0,e.state.doc.length,function(r,o){n.push(rp.of({from:r,to:o}))}),e.dispatch({effects:n}),!0}}],C1t={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},zj=xe.define({combine:function(e){return Xi(e,C1t)}});function gq(e){var t=[al,A1t];return e&&t.push(zj.of(e)),t}function yq(e,t){var n=e.state,r=n.facet(zj),o=function(a){var s=e.lineBlockAt(e.posAtDOM(a.target)),c=Bg(e.state,s.from,s.to);c&&e.dispatch({effects:rp.of(c)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);var i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}var mT=We.replace({widget:new(function(e){Tt(n,cu);var t=Rt(n);function n(){return rt(this,n),t.apply(this,arguments)}return ot(n,[{key:"toDOM",value:function(r){return yq(r,null)}}]),n}())}),E1t=function(e){Tt(n,cu);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).value=r,o}return ot(n,[{key:"eq",value:function(r){return this.value==r.value}},{key:"toDOM",value:function(r){return yq(r,this.value)}}]),n}(),O1t={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:function(){return!1}},Wy=function(e){Tt(n,Wa);var t=Rt(n);function n(r,o){var i;return rt(this,n),(i=t.call(this)).config=r,i.open=o,i}return ot(n,[{key:"eq",value:function(r){return this.config==r.config&&this.open==r.open}},{key:"toDOM",value:function(r){if(this.config.markerDOM)return this.config.markerDOM(this.open);var o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=r.state.phrase(this.open?"Fold line":"Unfold line"),o}}]),n}();function M1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Object.assign(Object.assign({},O1t),e),n=new Wy(t,!0),r=new Wy(t,!1),o=Zr.fromClass(function(){function a(s){rt(this,a),this.from=s.viewport.from,this.markers=this.buildMarkers(s)}return ot(a,[{key:"update",value:function(s){(s.docChanged||s.viewportChanged||s.startState.facet(Yc)!=s.state.facet(Yc)||s.startState.field(al,!1)!=s.state.field(al,!1)||Io(s.startState)!=Io(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}},{key:"buildMarkers",value:function(s){var c,u=new Jc,l=ht(s.viewportLineBlocks);try{for(l.s();!(c=l.n()).done;){var f=c.value,d=Bg(s.state,f.from,f.to)?r:zg(s.state,f.from,f.to)?n:null;d&&u.add(f.from,f.from,d)}}catch(h){l.e(h)}finally{l.f()}return u.finish()}}]),a}()),i=t.domEventHandlers;return[o,eq({class:"cm-foldGutter",markers:function(a){var s;return((s=a.plugin(o))===null||s===void 0?void 0:s.markers)||vr.empty},initialSpacer:function(){return new Wy(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:function(a,s,c){if(i.click&&i.click(a,s,c))return!0;var u=Bg(a.state,s.from,s.to);if(u)return a.dispatch({effects:rp.of(u)}),!0;var l=zg(a.state,s.from,s.to);return!!l&&(a.dispatch({effects:Lg.of(l)}),!0)}})}),gq()]}var A1t=ye.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Lj=function(){function e(t,n){var r;function o(s){var c=Gc.newName();return(r||(r=Object.create(null)))["."+c]=s,c}rt(this,e),this.specs=t;var i=typeof n.all=="string"?n.all:n.all?o(n.all):void 0,a=n.scope;this.scope=a instanceof ga?function(s){return s.prop(Hl)==a.data}:a?function(s){return s==a}:void 0,this.style=fq(t.map(function(s){return{tag:s.tag,class:s.class||o(Object.assign({},s,{tag:null}))}}),{all:i}).style,this.module=r?new Gc(r):null,this.themeType=n.themeType}return ot(e,null,[{key:"define",value:function(t,n){return new e(t,n||{})}}]),e}(),Tx=xe.define(),bq=xe.define({combine:function(e){return e.length?[e[0]]:null}});function Ky(e){var t=e.facet(Tx);return t.length?t:e.facet(bq)}function wq(e,t){var n,r=[T1t];return e instanceof Lj&&(e.module&&r.push(ye.styleModule.of(e.module)),n=e.themeType),t!=null&&t.fallback?r.push(bq.of(e)):n?r.push(Tx.computeN([ye.darkTheme],function(o){return o.facet(ye.darkTheme)==(n=="dark")?[e]:[]})):r.push(Tx.of(e)),r}var P1t=function(){function e(t){rt(this,e),this.markCache=Object.create(null),this.tree=Io(t.state),this.decorations=this.buildDeco(t,Ky(t.state))}return ot(e,[{key:"update",value:function(t){var n=Io(t.state),r=Ky(t.state),o=r!=Ky(t.startState);n.length<t.view.viewport.to&&!o&&n.type==this.tree.type?this.decorations=this.decorations.map(t.changes):(n!=this.tree||t.viewportChanged||o)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r))}},{key:"buildDeco",value:function(t,n){var r=this;if(!n||!this.tree.length)return We.none;var o,i=new Jc,a=ht(t.visibleRanges);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.from,u=s.to;f1t(this.tree,n,function(l,f,d){i.add(l,f,r.markCache[d]||(r.markCache[d]=We.mark({class:d})))},c,u)}}catch(l){a.e(l)}finally{a.f()}return i.finish()}}]),e}(),T1t=ad.high(Zr.fromClass(P1t,{decorations:function(e){return e.decorations}})),R1t=Lj.define([{tag:re.meta,color:"#404740"},{tag:re.link,textDecoration:"underline"},{tag:re.heading,textDecoration:"underline",fontWeight:"bold"},{tag:re.emphasis,fontStyle:"italic"},{tag:re.strong,fontWeight:"bold"},{tag:re.strikethrough,textDecoration:"line-through"},{tag:re.keyword,color:"#708"},{tag:[re.atom,re.bool,re.url,re.contentSeparator,re.labelName],color:"#219"},{tag:[re.literal,re.inserted],color:"#164"},{tag:[re.string,re.deleted],color:"#a11"},{tag:[re.regexp,re.escape,re.special(re.string)],color:"#e40"},{tag:re.definition(re.variableName),color:"#00f"},{tag:re.local(re.variableName),color:"#30a"},{tag:[re.typeName,re.namespace],color:"#085"},{tag:re.className,color:"#167"},{tag:[re.special(re.variableName),re.macroName],color:"#256"},{tag:re.definition(re.propertyName),color:"#00c"},{tag:re.comment,color:"#940"},{tag:re.invalid,color:"#f00"}]),I1t=ye.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),xq=1e4,kq="()[]{}",jq=xe.define({combine:function(e){return Xi(e,{afterCursor:!0,brackets:kq,maxScanDistance:xq,renderMatch:z1t})}}),N1t=We.mark({class:"cm-matchingBracket"}),D1t=We.mark({class:"cm-nonmatchingBracket"});function z1t(e){var t=[],n=e.matched?N1t:D1t;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}var L1t=_o.define({create:function(){return We.none},update:function(e,t){if(!t.docChanged&&!t.selection)return e;var n,r=[],o=t.state.facet(jq),i=ht(t.state.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.empty){var s=Qa(t.state,a.head,-1,o)||a.head>0&&Qa(t.state,a.head-1,1,o)||o.afterCursor&&(Qa(t.state,a.head,1,o)||a.head<t.state.doc.length&&Qa(t.state,a.head+1,-1,o));s&&(r=r.concat(o.renderMatch(s,t.state)))}}}catch(c){i.e(c)}finally{i.f()}return We.set(r,!0)},provide:function(e){return ye.decorations.from(e)}}),B1t=[L1t,I1t];function F1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[jq.of(e),B1t]}var q1t=new Cn;function Rx(e,t,n){var r=e.prop(t<0?Cn.openedBy:Cn.closedBy);if(r)return r;if(e.name.length==1){var o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function Ix(e){var t=e.type.prop(q1t);return t?t(e.node):e}function Qa(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r.maxScanDistance||xq,i=r.brackets||kq,a=Io(e),s=a.resolveInner(t,n),c=s;c;c=c.parent){var u=Rx(c.type,n,i);if(u&&c.from<c.to){var l=Ix(c);if(l&&(n>0?t>=l.from&&t<l.to:t>l.from&&t<=l.to))return H1t(e,t,n,c,l,u,i)}}return function(f,d,h,p,v,m,g){var y=h<0?f.sliceDoc(d-1,d):f.sliceDoc(d,d+1),b=g.indexOf(y);if(b<0||b%2==0!=h>0)return null;for(var w={from:h<0?d-1:d,to:h>0?d+1:d},x=f.doc.iterRange(d,h>0?f.doc.length:0),k=0,j=0;!x.next().done&&j<=m;){var S=x.value;h<0&&(j+=S.length);for(var N=d+j*h,C=h>0?0:S.length-1,$=h>0?S.length:-1;C!=$;C+=h){var B=g.indexOf(S[C]);if(!(B<0||p.resolveInner(N+C,1).type!=v))if(B%2==0==h>0)k++;else{if(k==1)return{start:w,end:{from:N+C,to:N+C+1},matched:B>>1==b>>1};k--}}h>0&&(j+=S.length)}return x.done?{start:w,matched:!1}:null}(e,t,n,a,s.type,o,i)}function H1t(e,t,n,r,o,i,a){var s=r.parent,c={from:o.from,to:o.to},u=0,l=s==null?void 0:s.cursor();if(l&&(n<0?l.childBefore(r.from):l.childAfter(r.to)))do if(n<0?l.to<=r.from:l.from>=r.to){if(u==0&&i.indexOf(l.type.name)>-1&&l.from<l.to){var f=Ix(l);return{start:c,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}if(Rx(l.type,n,a))u++;else if(Rx(l.type,-n,a)){if(u==0){var d=Ix(l);return{start:c,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}u--}}while(n<0?l.prevSibling():l.nextSibling());return{start:c,matched:!1}}for(var V1t=Object.create(null),gT=[Qi.none],yT=[],U1t=Object.create(null),Jy=0,bT=[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]];Jy<bT.length;Jy++){var wT=$e(bT[Jy],2),W1t=wT[0],K1t=wT[1];U1t[W1t]=J1t(V1t,K1t)}function Gy(e,t){yT.indexOf(e)>-1||(yT.push(e),console.warn(t))}function J1t(e,t){var n,r=null,o=ht(t.split("."));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=e[i]||re[i];a?typeof a=="function"?r?r=a(r):Gy(i,"Modifier ".concat(i," used at start of tag")):r?Gy(i,"Tag ".concat(i," used as modifier")):r=a:Gy(i,"Unknown highlighting tag ".concat(i))}}catch(u){o.e(u)}finally{o.f()}if(!r)return 0;var s=t.replace(/ /g,"_"),c=Qi.define({id:gT.length,name:s,props:[uq(Vo({},s,r))]});return gT.push(c),c.id}function Bj(e,t){return function(n){var r=n.state,o=n.dispatch;if(r.readOnly)return!1;var i=e(t,r);return!!i&&(o(r.update(i)),!0)}}var G1t=Bj(X1t,0),Q1t=Bj(_q,0),Y1t=Bj(function(e,t){return _q(e,t,function(n){var r,o=[],i=ht(n.selection.ranges);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=n.doc.lineAt(a.from),c=a.to<=s.to?s:n.doc.lineAt(a.to),u=o.length-1;u>=0&&o[u].to>s.from?o[u].to=c.to:o.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:c.to})}}catch(l){i.e(l)}finally{i.f()}return o}(t))},0);function Fj(e,t){var n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}var kd=50;function _q(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.selection.ranges,r=n.map(function(d){return Fj(t,d.from).block});if(!r.every(function(d){return d}))return null;var o=n.map(function(d,h){return function(p,v,m,g){var y,b,w=v.open,x=v.close,k=p.sliceDoc(m-kd,m),j=p.sliceDoc(g,g+kd),S=/\s*$/.exec(k)[0].length,N=/^\s*/.exec(j)[0].length,C=k.length-S;if(k.slice(C-w.length,C)==w&&j.slice(N,N+x.length)==x)return{open:{pos:m-S,margin:S&&1},close:{pos:g+N,margin:N&&1}};g-m<=2*kd?y=b=p.sliceDoc(m,g):(y=p.sliceDoc(m,m+kd),b=p.sliceDoc(g-kd,g));var $=/^\s*/.exec(y)[0].length,B=/\s*$/.exec(b)[0].length,K=b.length-B-x.length;return y.slice($,$+w.length)==w&&b.slice(K,K+x.length)==x?{open:{pos:m+$+w.length,margin:/\s/.test(y.charAt($+w.length))?1:0},close:{pos:g-B-x.length,margin:/\s/.test(b.charAt(K-1))?1:0}}:null}(t,r[h],d.from,d.to)});if(e!=2&&!o.every(function(d){return d}))return{changes:t.changes(n.map(function(d,h){return o[h]?[]:[{from:d.from,insert:r[h].open+" "},{from:d.to,insert:" "+r[h].close}]}))};if(e!=1&&o.some(function(d){return d})){for(var i,a=[],s=0;s<o.length;s++)if(i=o[s]){var c=r[s],u=i,l=u.open,f=u.close;a.push({from:l.pos-c.open.length,to:l.pos+l.margin},{from:f.pos-f.margin,to:f.pos+c.close.length})}return{changes:a}}return null}function X1t(e,t){var n,r=[],o=-1,i=ht(arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=a.from,c=a.to,u=r.length,l=1e9,f=Fj(t,s).line;if(f){for(var d=s;d<=c;){var h=t.doc.lineAt(d);if(h.from>o&&(s==c||c>h.from)){o=h.from;var p=/^\s*/.exec(h.text)[0].length,v=p==h.length,m=h.text.slice(p,p+f.length)==f?p:-1;p<h.text.length&&p<l&&(l=p),r.push({line:h,comment:m,token:f,indent:p,empty:v,single:!1})}d=h.to+1}if(l<1e9)for(var g=u;g<r.length;g++)r[g].indent<r[g].line.text.length&&(r[g].indent=l);r.length==u+1&&(r[u].single=!0)}}}catch(M){i.e(M)}finally{i.f()}if(e!=2&&r.some(function(M){return M.comment<0&&(!M.empty||M.single)})){var y,b=[],w=ht(r);try{for(w.s();!(y=w.n()).done;){var x=y.value,k=x.line,j=x.token,S=x.indent,N=x.empty;!x.single&&N||b.push({from:k.from+S,insert:j+" "})}}catch(M){w.e(M)}finally{w.f()}var C=t.changes(b);return{changes:C,selection:t.selection.map(C,1)}}if(e!=1&&r.some(function(M){return M.comment>=0})){var $,B=[],K=ht(r);try{for(K.s();!($=K.n()).done;){var R=$.value,q=R.line,F=R.comment,O=R.token;if(F>=0){var A=q.from+F,_=A+O.length;q.text[_-q.from]==" "&&_++,B.push({from:A,to:_})}}}catch(M){K.e(M)}finally{K.f()}return{changes:B}}return null}var Nx=Ns.define(),Z1t=Ns.define(),tyt=xe.define(),Sq=xe.define({combine:function(e){return Xi(e,{minDepth:100,newGroupDelay:500,joinToEvent:function(t,n){return n}},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:function(t,n){return function(r,o){return t(r,o)||n(r,o)}}})}}),qj=_o.define({create:function(){return vh.empty},update:function(e,t){var n,r,o=t.state.facet(Sq),i=t.annotation(Nx);if(i){var a=t.docChanged?Jt.single((n=t.changes,r=0,n.iterChangedRanges(function(p,v){return r=v}),r)):void 0,s=Ds.fromTransaction(t,a),c=i.side,u=c==0?e.undone:e.done;return u=s?qg(u,u.length,o.minDepth,s):Eq(u,t.startState.selection),new vh(c==0?i.rest:u,c==0?u:i.rest)}var l=t.annotation(Z1t);if(l!="full"&&l!="before"||(e=e.isolate()),t.annotation(ti.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);var f=Ds.fromTransaction(t),d=t.annotation(ti.time),h=t.annotation(ti.userEvent);return f?e=e.addChanges(f,d,h,o,t):t.selection&&(e=e.addSelection(t.startState.selection,d,h,o.newGroupDelay)),l!="full"&&l!="after"||(e=e.isolate()),e},toJSON:function(e){return{done:e.done.map(function(t){return t.toJSON()}),undone:e.undone.map(function(t){return t.toJSON()})}},fromJSON:function(e){return new vh(e.done.map(Ds.fromJSON),e.undone.map(Ds.fromJSON))}});function eyt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[qj,Sq.of(e),ye.domEventHandlers({beforeinput:function(t,n){var r=t.inputType=="historyUndo"?Hj:t.inputType=="historyRedo"?Fg:null;return!!r&&(t.preventDefault(),r(n))}})]}function l1(e,t){return function(n){var r=n.state,o=n.dispatch;if(!t&&r.readOnly)return!1;var i=r.field(qj,!1);if(!i)return!1;var a=i.pop(e,r,t);return!!a&&(o(a),!0)}}var Hj=l1(0,!1),Fg=l1(1,!1),nyt=l1(0,!0),ryt=l1(1,!0);function $q(e){return function(t){var n=t.field(qj,!1);if(!n)return 0;var r=e==0?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}var oyt=$q(0),iyt=$q(1),Ds=function(){function e(t,n,r,o,i){rt(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}return ot(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}},{key:"toJSON",value:function(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(function(o){return o.toJSON()})}}}],[{key:"fromJSON",value:function(t){return new e(t.changes&&Oa.fromJSON(t.changes),[],t.mapped&&sf.fromJSON(t.mapped),t.startSelection&&Jt.fromJSON(t.startSelection),t.selectionsAfter.map(Jt.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,o=Ii,i=ht(t.startState.facet(tyt));try{for(i.s();!(r=i.n()).done;){var a=(0,r.value)(t);a.length&&(o=o.concat(a))}}catch(s){i.e(s)}finally{i.f()}return!o.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),o,void 0,n||t.startState.selection,Ii)}},{key:"selection",value:function(t){return new e(void 0,Ii,void 0,void 0,t)}}]),e}();function qg(e,t,n,r){var o=t+1>n+20?t-n-1:0,i=e.slice(o,t);return i.push(r),i}function Cq(e,t){return e.length?t.length?e.concat(t):e:t}var Ii=[],ayt=200;function Eq(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-ayt));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),qg(e,e.length-1,1e9,n.setSelAfter(r)))}return[Ds.selection([t])]}function syt(e){var t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Qy(e,t){if(!e.length)return e;for(var n=e.length,r=Ii;n;){var o=cyt(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){var i=e.slice(0,n);return i[n-1]=o,i}t=o.mapped,n--,r=o.selectionsAfter}return r.length?[Ds.selection(r)]:Ii}function cyt(e,t,n){var r=Cq(e.selectionsAfter.length?e.selectionsAfter.map(function(s){return s.map(t)}):Ii,n);if(!e.changes)return Ds.selection(r);var o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new Ds(o,bn.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}var uyt=/^(input\.type|delete)($|\.)/,vh=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;rt(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}return ot(e,[{key:"isolate",value:function(){return this.prevTime?new e(this.done,this.undone):this}},{key:"addChanges",value:function(t,n,r,o,i){var a=this.done,s=a[a.length-1];return a=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||uyt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,function(c,u){var l=[],f=!1;return c.iterChangedRanges(function(d,h){return l.push(d,h)}),u.iterChangedRanges(function(d,h,p,v){for(var m=0;m<l.length;){var g=l[m++],y=l[m++];v>=g&&p<=y&&(f=!0)}}),f}(s.changes,t.changes))||r=="input.type.compose")?qg(a,a.length-1,o.minDepth,new Ds(t.changes.compose(s.changes),Cq(t.effects,s.effects),s.mapped,s.startSelection,Ii)):qg(a,a.length,o.minDepth,t),new e(a,Ii,n,r)}},{key:"addSelection",value:function(t,n,r,o){var i=this.done.length?this.done[this.done.length-1].selectionsAfter:Ii;return i.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&function(a,s){return a.ranges.length==s.ranges.length&&a.ranges.filter(function(c,u){return c.empty!=s.ranges[u].empty}).length===0}(i[i.length-1],t)?this:new e(Eq(this.done,t),this.undone,n,r)}},{key:"addMapping",value:function(t){return new e(Qy(this.done,t),Qy(this.undone,t),this.prevTime,this.prevUserEvent)}},{key:"pop",value:function(t,n,r){var o=t==0?this.done:this.undone;if(o.length==0)return null;var i=o[o.length-1];if(r&&i.selectionsAfter.length)return n.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Nx.of({side:t,rest:syt(o)}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){var a=o.length==1?Ii:o.slice(0,o.length-1);return i.mapped&&(a=Qy(a,i.mapped)),n.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Nx.of({side:t,rest:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}return null}}]),e}();vh.empty=new vh(Ii,Ii);var lyt=[{key:"Mod-z",run:Hj,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Fg,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Fg,preventDefault:!0},{key:"Mod-u",run:nyt,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:ryt,preventDefault:!0}];function ff(e,t){return Jt.create(e.ranges.map(t),e.mainIndex)}function os(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function ya(e,t){var n=e.state,r=e.dispatch,o=ff(n.selection,t);return!o.eq(n.selection)&&(r(os(n,o)),!0)}function f1(e,t){return Jt.cursor(t?e.to:e.from)}function Oq(e,t){return ya(e,function(n){return n.empty?e.moveByChar(n,t):f1(n,t)})}function Eo(e){return e.textDirectionAt(e.state.selection.main.head)==Rr.LTR}var Mq=function(e){return Oq(e,!Eo(e))},Aq=function(e){return Oq(e,Eo(e))};function xT(e,t){return ya(e,function(n){return n.empty?e.moveByGroup(n,t):f1(n,t)})}function fyt(e,t,n){if(t.type.prop(n))return!0;var r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Lv(e,t,n){for(var r=Io(e).resolveInner(t.head),o=n?Cn.closedBy:Cn.openedBy,i=t.head;;){var a=n?r.childAfter(i):r.childBefore(i);if(!a)break;fyt(e,a,o)?r=a:i=n?a.to:a.from}var s,c;return c=r.type.prop(o)&&(s=n?Qa(e,r.from,1):Qa(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,Jt.cursor(c,n?-1:1)}function Pq(e,t){return ya(e,function(n){if(!n.empty)return f1(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}var Tq=function(e){return Pq(e,!1)},Rq=function(e){return Pq(e,!0)};function Iq(e){var t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){var i,a=ht(e.state.facet(ye.scrollMargins));try{for(a.s();!(i=a.n()).done;){var s=(0,i.value)(e);s!=null&&s.top&&(r=Math.max(s==null?void 0:s.top,r)),s!=null&&s.bottom&&(o=Math.max(s==null?void 0:s.bottom,o))}}catch(c){a.e(c)}finally{a.f()}t=e.scrollDOM.clientHeight-r-o}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:o,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function Nq(e,t){var n,r=Iq(e),o=e.state,i=ff(o.selection,function(l){return l.empty?e.moveVertically(l,t,r.height):f1(l,t)});if(i.eq(o.selection))return!1;if(r.selfScroll){var a=e.coordsAtPos(o.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),c=s.top+r.marginTop,u=s.bottom-r.marginBottom;a&&a.top>c&&a.bottom<u&&(n=ye.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-c}))}return e.dispatch(os(o,i),{effects:n}),!0}var kT=function(e){return Nq(e,!1)},Dx=function(e){return Nq(e,!0)};function fc(e,t,n){var r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){var i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(o=Jt.cursor(r.from+i))}return o}function Ni(e,t){var n=ff(e.state.selection,function(r){var o=t(r);return Jt.range(r.anchor,o.head,o.goalColumn,o.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(os(e.state,n)),!0)}function Dq(e,t){return Ni(e,function(n){return e.moveByChar(n,t)})}var zq=function(e){return Dq(e,!Eo(e))},Lq=function(e){return Dq(e,Eo(e))};function jT(e,t){return Ni(e,function(n){return e.moveByGroup(n,t)})}function Bq(e,t){return Ni(e,function(n){return e.moveVertically(n,t)})}var Fq=function(e){return Bq(e,!1)},qq=function(e){return Bq(e,!0)};function Hq(e,t){return Ni(e,function(n){return e.moveVertically(n,t,Iq(e).height)})}var _T=function(e){return Hq(e,!1)},ST=function(e){return Hq(e,!0)},$T=function(e){var t=e.state;return(0,e.dispatch)(os(t,{anchor:0})),!0},CT=function(e){var t=e.state;return(0,e.dispatch)(os(t,{anchor:t.doc.length})),!0},ET=function(e){var t=e.state;return(0,e.dispatch)(os(t,{anchor:t.selection.main.anchor,head:0})),!0},OT=function(e){var t=e.state;return(0,e.dispatch)(os(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function d1(e,t){if(e.state.readOnly)return!1;var n="delete.selection",r=e.state,o=r.changeByRange(function(i){var a=i.from,s=i.to;if(a==s){var c=t(a);c<a?(n="delete.backward",c=Bv(e,c,!1)):c>a&&(n="delete.forward",c=Bv(e,c,!0)),a=Math.min(a,c),s=Math.max(s,c)}else a=Bv(e,a,!1),s=Bv(e,s,!0);return a==s?{range:i}:{changes:{from:a,to:s},range:Jt.cursor(a)}});return!o.changes.empty&&(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?ye.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Bv(e,t,n){if(e instanceof ye){var r,o=ht(e.state.facet(ye.atomicRanges).map(function(i){return i(e)}));try{for(o.s();!(r=o.n()).done;)r.value.between(t,t,function(i,a){i<t&&a>t&&(t=n?a:i)})}catch(i){o.e(i)}finally{o.f()}}return t}var Vq=function(e,t){return d1(e,function(n){var r,o,i=e.state,a=i.doc.lineAt(n);if(!t&&n>a.from&&n<a.from+200&&!/[^ \t]/.test(r=a.text.slice(0,n-a.from))){if(r[r.length-1]==" ")return n-1;for(var s=sd(r,i.tabSize)%Xc(i)||Xc(i),c=0;c<s&&r[r.length-1-c]==" ";c++)n--;o=n}else(o=Po(a.text,n-a.from,t,t)+a.from)==n&&a.number!=(t?i.doc.lines:1)&&(o+=t?1:-1);return o})},zx=function(e){return Vq(e,!1)},Uq=function(e){return Vq(e,!0)},Wq=function(e,t){return d1(e,function(n){for(var r=n,o=e.state,i=o.doc.lineAt(r),a=o.charCategorizer(r),s=null;;){if(r==(t?i.to:i.from)){r==n&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}var c=Po(i.text,r-i.from,t)+i.from,u=i.text.slice(Math.min(r,c)-i.from,Math.max(r,c)-i.from),l=a(u);if(s!=null&&l!=s)break;u==" "&&r==n||(s=l),r=c}return r})},Kq=function(e){return Wq(e,!1)},Jq=function(e){return d1(e,function(t){var n=e.lineBlockAt(t).to;return t<n?n:Math.min(e.state.doc.length,t+1)})};function Hg(e){var t,n=[],r=-1,o=ht(e.selection.ranges);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.doc.lineAt(i.from),s=e.doc.lineAt(i.to);if(i.empty||i.to!=s.from||(s=e.doc.lineAt(i.to-1)),r>=a.number){var c=n[n.length-1];c.to=s.to,c.ranges.push(i)}else n.push({from:a.from,to:s.to,ranges:[i]});r=s.number+1}}catch(u){o.e(u)}finally{o.f()}return n}function MT(e,t,n){if(e.readOnly)return!1;var r,o=[],i=[],a=ht(Hg(e));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(n?s.to!=e.doc.length:s.from!=0){var c=e.doc.lineAt(n?s.to+1:s.from-1),u=c.length+1;if(n){o.push({from:s.to,to:c.to},{from:s.from,insert:c.text+e.lineBreak});var l,f=ht(s.ranges);try{for(f.s();!(l=f.n()).done;){var d=l.value;i.push(Jt.range(Math.min(e.doc.length,d.anchor+u),Math.min(e.doc.length,d.head+u)))}}catch(m){f.e(m)}finally{f.f()}}else{o.push({from:c.from,to:s.from},{from:s.to,insert:e.lineBreak+c.text});var h,p=ht(s.ranges);try{for(p.s();!(h=p.n()).done;){var v=h.value;i.push(Jt.range(v.anchor-u,v.head-u))}}catch(m){p.e(m)}finally{p.f()}}}}}catch(m){a.e(m)}finally{a.f()}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:Jt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function AT(e,t,n){if(e.readOnly)return!1;var r,o=[],i=ht(Hg(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;n?o.push({from:a.from,insert:e.doc.slice(a.from,a.to)+e.lineBreak}):o.push({from:a.to,insert:e.lineBreak+e.doc.slice(a.from,a.to)})}}catch(s){i.e(s)}finally{i.f()}return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var dyt=Gq(!1),hyt=Gq(!0);function Gq(e){return function(t){var n=t.state,r=t.dispatch;if(n.readOnly)return!1;var o=n.changeByRange(function(i){var a=i.from,s=i.to,c=n.doc.lineAt(a),u=!e&&a==s&&function(h,p){if(/\(\)|\[\]|\{\}/.test(h.sliceDoc(p-1,p+1)))return{from:p,to:p};var v,m=Io(h).resolveInner(p),g=m.childBefore(p),y=m.childAfter(p);return g&&y&&g.to<=p&&y.from>=p&&(v=g.type.prop(Cn.closedBy))&&v.indexOf(y.name)>-1&&h.doc.lineAt(g.to).from==h.doc.lineAt(y.from).from&&!/\S/.test(h.sliceDoc(g.to,y.from))?{from:g.to,to:y.from}:null}(n,a);e&&(a=s=(s<=c.to?c:n.doc.lineAt(s)).to);var l=new u1(n,{simulateBreak:a,simulateDoubleBreak:!!u}),f=Dj(l,a);for(f==null&&(f=sd(/^\s*/.exec(n.doc.lineAt(a).text)[0],n.tabSize));s<c.to&&/\s/.test(c.text[s-c.from]);)s++;u?(a=u.from,s=u.to):a>c.from&&a<c.from+100&&!/\S/.test(c.text.slice(0,a))&&(a=c.from);var d=["",np(n,f)];return u&&d.push(np(n,l.lineIndent(c.from,-1))),{changes:{from:a,to:s,insert:Xn.of(d)},range:Jt.cursor(a+1+d[1].length)}});return r(n.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function Vj(e,t){var n=-1;return e.changeByRange(function(r){for(var o=[],i=r.from;i<=r.to;){var a=e.doc.lineAt(i);a.number>n&&(r.empty||r.to>a.from)&&(t(a,o,r),n=a.number),i=a.to+1}var s=e.changes(o);return{changes:o,range:Jt.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}var Qq=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(Vj(t,function(r,o){o.push({from:r.from,insert:t.facet(c1)})}),{userEvent:"input.indent"})),!0)},Yq=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(Vj(t,function(r,o){var i=/^\s*/.exec(r.text)[0];if(i){for(var a=sd(i,t.tabSize),s=0,c=np(t,Math.max(0,a-Xc(t)));s<i.length&&s<c.length&&i.charCodeAt(s)==c.charCodeAt(s);)s++;o.push({from:r.from+s,to:r.from+i.length,insert:c.slice(s)})}}),{userEvent:"delete.dedent"})),!0)},pyt=[{key:"Ctrl-b",run:Mq,shift:zq,preventDefault:!0},{key:"Ctrl-f",run:Aq,shift:Lq},{key:"Ctrl-p",run:Tq,shift:Fq},{key:"Ctrl-n",run:Rq,shift:qq},{key:"Ctrl-a",run:function(e){return ya(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).from,1)})},shift:function(e){return Ni(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).from)})}},{key:"Ctrl-e",run:function(e){return ya(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).to,-1)})},shift:function(e){return Ni(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).to)})}},{key:"Ctrl-d",run:Uq},{key:"Ctrl-h",run:zx},{key:"Ctrl-k",run:Jq},{key:"Ctrl-Alt-h",run:Kq},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange(function(o){return{changes:{from:o.from,to:o.to,insert:Xn.of(["",""])},range:Jt.cursor(o.from)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange(function(o){if(!o.empty||o.from==0||o.from==t.doc.length)return{range:o};var i=o.from,a=t.doc.lineAt(i),s=i==a.from?i-1:Po(a.text,i-a.from,!1)+a.from,c=i==a.to?i+1:Po(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:c,insert:t.doc.slice(i,c).append(t.doc.slice(s,i))},range:Jt.cursor(c)}});return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Dx}],vyt=[{key:"ArrowLeft",run:Mq,shift:zq,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:function(e){return xT(e,!Eo(e))},shift:function(e){return jT(e,!Eo(e))},preventDefault:!0},{mac:"Cmd-ArrowLeft",run:function(e){return ya(e,function(t){return fc(e,t,!Eo(e))})},shift:function(e){return Ni(e,function(t){return fc(e,t,!Eo(e))})},preventDefault:!0},{key:"ArrowRight",run:Aq,shift:Lq,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:function(e){return xT(e,Eo(e))},shift:function(e){return jT(e,Eo(e))},preventDefault:!0},{mac:"Cmd-ArrowRight",run:function(e){return ya(e,function(t){return fc(e,t,Eo(e))})},shift:function(e){return Ni(e,function(t){return fc(e,t,Eo(e))})},preventDefault:!0},{key:"ArrowUp",run:Tq,shift:Fq,preventDefault:!0},{mac:"Cmd-ArrowUp",run:$T,shift:ET},{mac:"Ctrl-ArrowUp",run:kT,shift:_T},{key:"ArrowDown",run:Rq,shift:qq,preventDefault:!0},{mac:"Cmd-ArrowDown",run:CT,shift:OT},{mac:"Ctrl-ArrowDown",run:Dx,shift:ST},{key:"PageUp",run:kT,shift:_T},{key:"PageDown",run:Dx,shift:ST},{key:"Home",run:function(e){return ya(e,function(t){return fc(e,t,!1)})},shift:function(e){return Ni(e,function(t){return fc(e,t,!1)})},preventDefault:!0},{key:"Mod-Home",run:$T,shift:ET},{key:"End",run:function(e){return ya(e,function(t){return fc(e,t,!0)})},shift:function(e){return Ni(e,function(t){return fc(e,t,!0)})},preventDefault:!0},{key:"Mod-End",run:CT,shift:OT},{key:"Enter",run:dyt},{key:"Mod-a",run:function(e){var t=e.state;return(0,e.dispatch)(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:zx,shift:zx},{key:"Delete",run:Uq},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Kq},{key:"Mod-Delete",mac:"Alt-Delete",run:function(e){return Wq(e,!0)}},{mac:"Mod-Backspace",run:function(e){return d1(e,function(t){var n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)})}},{mac:"Mod-Delete",run:Jq}].concat(pyt.map(function(e){return{mac:e.key,run:e.run,shift:e.shift}})),myt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return ya(e,function(t){return Lv(e.state,t,!Eo(e))})},shift:function(e){return Ni(e,function(t){return Lv(e.state,t,!Eo(e))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return ya(e,function(t){return Lv(e.state,t,Eo(e))})},shift:function(e){return Ni(e,function(t){return Lv(e.state,t,Eo(e))})}},{key:"Alt-ArrowUp",run:function(e){return MT(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return AT(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return MT(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return AT(e.state,e.dispatch,!0)}},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch,r=t.selection,o=null;return r.ranges.length>1?o=Jt.create([r.main]):r.main.empty||(o=Jt.create([Jt.cursor(r.main.head)])),!!o&&(n(os(t,o)),!0)}},{key:"Mod-Enter",run:hyt},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=Hg(t).map(function(o){var i=o.from,a=o.to;return Jt.range(i,Math.min(a+1,t.doc.length))});return n(t.update({selection:Jt.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=ff(t.selection,function(o){for(var i,a=Io(t).resolveInner(o.head,1);!(a.from<o.from&&a.to>=o.to||a.to>o.to&&a.from<=o.from)&&(!((i=a.parent)===null||i===void 0)&&i.parent);)a=a.parent;return Jt.range(a.to,a.from)});return n(os(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:Yq},{key:"Mod-]",run:Qq},{key:"Mod-Alt-\\",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=Object.create(null),o=new u1(t,{overrideIndentation:function(a){var s=r[a];return s??-1}}),i=Vj(t,function(a,s,c){var u=Dj(o,a.from);if(u!=null){/\S/.test(a.text)||(u=0);var l=/^\s*/.exec(a.text)[0],f=np(t,u);(l!=f||c.from<a.from+l.length)&&(r[a.from]=u,s.push({from:a.from,to:a.from+l.length,insert:f}))}});return i.changes.empty||n(t.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:function(e){if(e.state.readOnly)return!1;var t=e.state,n=t.changes(Hg(t).map(function(o){var i=o.from,a=o.to;return i>0?i--:a<t.doc.length&&a++,{from:i,to:a}})),r=ff(t.selection,function(o){return e.moveVertically(o,!0)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:function(e){return function(t,n,r){var o=!1,i=ff(t.selection,function(a){var s=Qa(t,a.head,-1)||Qa(t,a.head,1)||a.head>0&&Qa(t,a.head-1,1)||a.head<t.doc.length&&Qa(t,a.head+1,-1);if(!s||!s.end)return a;o=!0;var c=s.start.from==a.head?s.end.to:s.end.from;return r?Jt.range(a.anchor,c):Jt.cursor(c)});return!!o&&(n(os(t,i)),!0)}(e.state,e.dispatch,!1)}},{key:"Mod-/",run:function(e){var t=e.state,n=t.doc.lineAt(t.selection.main.from),r=Fj(e.state,n.from);return r.line?G1t(e):!!r.block&&Y1t(e)}},{key:"Alt-A",run:Q1t}].concat(vyt),gyt={key:"Tab",run:Qq,shift:Yq};function lr(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&ce(n)=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];typeof o=="string"?e.setAttribute(r,o):o!=null&&(e[r]=o)}t++}for(;t<arguments.length;t++)Xq(e,arguments[t]);return e}function Xq(e,t){if(typeof t=="string")e.appendChild(document.createTextNode(t));else if(t!=null)if(t.nodeType!=null)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)Xq(e,t[n])}}var yyt=ot(function e(t,n,r){rt(this,e),this.from=t,this.to=n,this.diagnostic=r}),jd=function(){function e(t,n,r){rt(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return ot(e,null,[{key:"init",value:function(t,n,r){var o=t,i=r.facet(Iu).markerFilter;i&&(o=i(o));var a=We.set(o.map(function(s){return s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?We.widget({widget:new jyt(s),diagnostic:s}).range(s.from):We.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)}),!0);return new e(a,n,If(a))}}]),e}();function If(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=null;return e.between(n,1e9,function(o,i,a){var s=a.spec;if(!t||s.diagnostic==t)return r=new yyt(o,i,s.diagnostic),!1}),r}function Zq(e,t){var n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(function(r){return r.is(h1)})&&!e.changes.touchesRange(n.from,n.to))}function tH(e,t){return e.field(mi,!1)?t:t.concat(bn.appendConfig.of(cH))}var h1=bn.define(),Uj=bn.define(),eH=bn.define(),mi=_o.define({create:function(){return new jd(We.none,null,null)},update:function(e,t){if(t.docChanged){var n=e.diagnostics.map(t.changes),r=null;if(e.selected){var o=t.changes.mapPos(e.selected.from,1);r=If(n,e.selected.diagnostic,o)||If(n,null,o)}e=new jd(n,e.panel,r)}var i,a=ht(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.is(h1)?e=jd.init(s.value,e.panel,t.state):s.is(Uj)?e=new jd(e.diagnostics,s.value?iH.open:null,e.selected):s.is(eH)&&(e=new jd(e.diagnostics,e.panel,s.value))}}catch(c){a.e(c)}finally{a.f()}return e},provide:function(e){return[ep.from(e,function(t){return t.panel}),ye.decorations.from(e,function(t){return t.diagnostics})]}}),byt=We.mark({class:"cm-lintRange cm-lintRange-active"});function wyt(e,t,n){var r=e.state.field(mi).diagnostics,o=[],i=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),function(c,u,l){var f=l.spec;t>=c&&t<=u&&(c==u||(t>c||n>0)&&(t<u||n<0))&&(o.push(f.diagnostic),i=Math.min(c,i),a=Math.max(u,a))});var s=e.state.facet(Iu).tooltipFilter;return s&&(o=s(o)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create:function(){return{dom:nH(e,o)}}}:null}function nH(e,t){return lr("ul",{class:"cm-tooltip-lint"},t.map(function(n){return oH(e,n,!1)}))}var PT=function(e){var t=e.state.field(mi,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Uj.of(!1)}),!0)},xyt=[{key:"Mod-Shift-m",run:function(e){var t=e.state.field(mi,!1);t&&t.panel||e.dispatch({effects:tH(e.state,[Uj.of(!0)])});var n=tp(e,iH.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:function(e){var t=e.state.field(mi,!1);if(!t)return!1;var n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(!(r=t.diagnostics.iter(0)).value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],kyt=Zr.fromClass(function(){function e(t){rt(this,e),this.view=t,this.timeout=-1,this.set=!0;var n=t.state.facet(Iu).delay;this.lintTime=Date.now()+n,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,n)}return ot(e,[{key:"run",value:function(){var t=this,n=Date.now();if(n<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-n);else{this.set=!1;var r=this.view.state,o=r.facet(Iu).sources;Promise.all(o.map(function(i){return Promise.resolve(i(t.view))})).then(function(i){var a=i.reduce(function(s,c){return s.concat(c)});t.view.state.doc==r.doc&&t.view.dispatch(function(s,c){return{effects:tH(s,[h1.of(c)])}}(t.view.state,a))},function(i){Vi(t.view.state,i)})}}},{key:"update",value:function(t){var n=t.state.facet(Iu);(t.docChanged||n!=t.startState.facet(Iu)||n.needsRefresh&&n.needsRefresh(t))&&(this.lintTime=Date.now()+n.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,n.delay)))}},{key:"force",value:function(){this.set&&(this.lintTime=Date.now(),this.run())}},{key:"destroy",value:function(){clearTimeout(this.timeout)}}]),e}()),Iu=xe.define({combine:function(e){return Object.assign({sources:e.map(function(t){return t.source})},Xi(e.map(function(t){return t.config}),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:function(t,n){return t?n?function(r){return t(r)||n(r)}:t:n}}))}});function rH(e){var t=[];if(e){var n,r=ht(e);try{t:for(r.s();!(n=r.n()).done;){for(var o=n.value.name,i=function(){var s=o[a];if(/[a-zA-Z]/.test(s)&&!t.some(function(c){return c.toLowerCase()==s.toLowerCase()}))return t.push(s),1},a=0;a<o.length;a++)if(i())continue t;t.push("")}}catch(s){r.e(s)}finally{r.f()}}return t}function oH(e,t,n){var r,o=n?rH(t.actions):[];return lr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},lr("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map(function(i,a){var s=!1,c=function(d){if(d.preventDefault(),!s){s=!0;var h=If(e.state.field(mi).diagnostics,t);h&&i.apply(e,h.from,h.to)}},u=i.name,l=o[a]?u.indexOf(o[a]):-1,f=l<0?u:[u.slice(0,l),lr("u",u.slice(l,l+1)),u.slice(l+1)];return lr("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":" Action: ".concat(u).concat(l<0?"":' (access key "'.concat(o[a],')"'),".")},f)}),t.source&&lr("div",{class:"cm-diagnosticSource"},t.source))}var jyt=function(e){Tt(n,cu);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).diagnostic=r,o}return ot(n,[{key:"eq",value:function(r){return r.diagnostic==this.diagnostic}},{key:"toDOM",value:function(){return lr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}]),n}(),TT=ot(function e(t,n){rt(this,e),this.diagnostic=n,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=oH(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}),iH=function(){function e(t){var n=this;rt(this,e),this.view=t,this.items=[],this.list=lr("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:function(r){if(r.keyCode==27)PT(n.view),n.view.focus();else if(r.keyCode==38||r.keyCode==33)n.moveSelection((n.selectedIndex-1+n.items.length)%n.items.length);else if(r.keyCode==40||r.keyCode==34)n.moveSelection((n.selectedIndex+1)%n.items.length);else if(r.keyCode==36)n.moveSelection(0);else if(r.keyCode==35)n.moveSelection(n.items.length-1);else if(r.keyCode==13)n.view.focus();else{if(!(r.keyCode>=65&&r.keyCode<=90&&n.selectedIndex>=0))return;for(var o=n.items[n.selectedIndex].diagnostic,i=rH(o.actions),a=0;a<i.length;a++)if(i[a].toUpperCase().charCodeAt(0)==r.keyCode){var s=If(n.view.state.field(mi).diagnostics,o);s&&o.actions[a].apply(t,s.from,s.to)}}r.preventDefault()},onclick:function(r){for(var o=0;o<n.items.length;o++)n.items[o].dom.contains(r.target)&&n.moveSelection(o)}}),this.dom=lr("div",{class:"cm-panel-lint"},this.list,lr("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:function(){return PT(n.view)}},"×")),this.update()}return ot(e,[{key:"selectedIndex",get:function(){var t=this.view.state.field(mi).selected;if(!t)return-1;for(var n=0;n<this.items.length;n++)if(this.items[n].diagnostic==t.diagnostic)return n;return-1}},{key:"update",value:function(){var t=this,n=this.view.state.field(mi),r=n.diagnostics,o=n.selected,i=0,a=!1,s=null;for(r.between(0,this.view.state.doc.length,function(c,u,l){for(var f,d=l.spec,h=-1,p=i;p<t.items.length;p++)if(t.items[p].diagnostic==d.diagnostic){h=p;break}h<0?(f=new TT(t.view,d.diagnostic),t.items.splice(i,0,f),a=!0):(f=t.items[h],h>i&&(t.items.splice(i,h-i),a=!0)),o&&f.diagnostic==o.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),s=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),i++});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)a=!0,this.items.pop();this.items.length==0&&(this.items.push(new TT(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),a=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:function(){return{sel:s.dom.getBoundingClientRect(),panel:t.list.getBoundingClientRect()}},write:function(c){var u=c.sel,l=c.panel,f=l.height/t.list.offsetHeight;u.top<l.top?t.list.scrollTop-=(l.top-u.top)/f:u.bottom>l.bottom&&(t.list.scrollTop+=(u.bottom-l.bottom)/f)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}},{key:"sync",value:function(){var t=this.list.firstChild;function n(){var a=t;t=a.nextSibling,a.remove()}var r,o=ht(this.items);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.dom.parentNode==this.list){for(;t!=i.dom;)n();t=i.dom.nextSibling}else this.list.insertBefore(i.dom,t)}}catch(a){o.e(a)}finally{o.f()}for(;t;)n()}},{key:"moveSelection",value:function(t){if(!(this.selectedIndex<0)){var n=If(this.view.state.field(mi).diagnostics,this.items[t].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:eH.of(n)})}}}],[{key:"open",value:function(t){return new e(t)}}]),e}();function Tm(e){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" `.concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"</svg>')")}function Fv(e){return Tm('<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="'.concat(e,'" fill="none" stroke-width=".7"/>'),'width="6" height="3"')}var _yt=ye.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Fv("#d11")},".cm-lintRange-warning":{backgroundImage:Fv("orange")},".cm-lintRange-info":{backgroundImage:Fv("#999")},".cm-lintRange-hint":{backgroundImage:Fv("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function RT(e){return e=="error"?4:e=="warning"?3:e=="info"?2:1}var Syt=function(e){Tt(n,Wa);var t=Rt(n);function n(r){var o;return rt(this,n),(o=t.call(this)).diagnostics=r,o.severity=r.reduce(function(i,a){return RT(i)<RT(a.severity)?a.severity:i},"hint"),o}return ot(n,[{key:"toDOM",value:function(r){var o=document.createElement("div");o.className="cm-lint-marker cm-lint-marker-"+this.severity;var i=this.diagnostics,a=r.state.facet(Vg).tooltipFilter;return a&&(i=a(i)),i.length&&(o.onmouseover=function(){return function(s,c,u){function l(){var p=s.elementAtHeight(c.getBoundingClientRect().top+5-s.documentTop);s.coordsAtPos(p.from)&&s.dispatch({effects:Lx.of({pos:p.from,above:!1,create:function(){return{dom:nH(s,u),getCoords:function(){return c.getBoundingClientRect()}}}})}),c.onmouseout=c.onmousemove=null,function(v,m){var g=function y(b){var w=m.getBoundingClientRect();if(!(b.clientX>w.left-10&&b.clientX<w.right+10&&b.clientY>w.top-10&&b.clientY<w.bottom+10)){for(var x=b.target;x;x=x.parentNode)if(x.nodeType==1&&x.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",y),v.state.field(sH)&&v.dispatch({effects:Lx.of(null)})}};window.addEventListener("mousemove",g)}(s,c)}var f=s.state.facet(Vg),d=f.hoverTime,h=setTimeout(l,d);c.onmouseout=function(){clearTimeout(h),c.onmouseout=c.onmousemove=null},c.onmousemove=function(){clearTimeout(h),h=setTimeout(l,d)}}(r,o,i)}),o}}]),n}();function $yt(e,t){var n,r=Object.create(null),o=ht(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=e.lineAt(i.from);(r[a.from]||(r[a.from]=[])).push(i)}}catch(u){o.e(u)}finally{o.f()}var s=[];for(var c in r)s.push(new Syt(r[c]).range(+c));return vr.of(s,!0)}var Cyt=eq({class:"cm-gutter-lint",markers:function(e){return e.state.field(aH)}}),aH=_o.define({create:function(){return vr.empty},update:function(e,t){e=e.map(t.changes);var n,r=t.state.facet(Vg).markerFilter,o=ht(t.effects);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.is(h1)){var a=i.value;r&&(a=r(a||[])),e=$yt(t.state.doc,a.slice(0))}}}catch(s){o.e(s)}finally{o.f()}return e}}),Lx=bn.define(),sH=_o.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=Zq(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(function(n,r){return r.is(Lx)?r.value:n},e)},provide:function(e){return s1.from(e)}}),Eyt=ye.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Tm('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:Tm('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:Tm('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),cH=[mi,ye.decorations.compute([mi],function(e){var t=e.field(mi),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?We.set([byt.range(n.from,n.to)]):We.none}),H0t(wyt,{hideOn:Zq}),_yt],Vg=xe.define({combine:function(e){return Xi(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Oyt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Vg.of(e),aH,Cyt,Eyt,sH]}var IT,Myt=function(){function e(t,n,r,o,i,a,s,c,u){var l=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,f=arguments.length>10?arguments[10]:void 0;rt(this,e),this.p=t,this.stack=n,this.state=r,this.reducePos=o,this.pos=i,this.score=a,this.buffer=s,this.bufferBase=c,this.curContext=u,this.lookAhead=l,this.parent=f}return ot(e,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(t,n){return n%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}},{key:"reduce",value:function(t){var n=t>>19,r=65535&t,o=this.p.parser,i=o.dynamicPrecedence(r);if(i&&(this.score+=i),n==0)return this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),void this.reduceContext(r,this.reducePos);var a=this.stack.length-3*(n-1)-(262144&t?6:0),s=this.stack[a-2],c=this.stack[a-1],u=this.bufferBase+this.buffer.length-c;if(r<o.minRepeatTerm||131072&t){var l=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,s,l,u+4,!0)}if(262144&t)this.state=this.stack[a];else{var f=this.stack[a-3];this.state=o.getGoto(f,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,s)}},{key:"storeNode",value:function(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:4,i=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){var a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n)return void(a.buffer[s-2]=r)}}if(i&&this.pos!=r){var c=this.buffer.length;if(c>0&&this.buffer[c-4]!=0)for(;c>0&&this.buffer[c-2]>r;)this.buffer[c]=this.buffer[c-4],this.buffer[c+1]=this.buffer[c-3],this.buffer[c+2]=this.buffer[c-2],this.buffer[c+3]=this.buffer[c-1],c-=4,o>4&&(o-=4);this.buffer[c]=t,this.buffer[c+1]=n,this.buffer[c+2]=r,this.buffer[c+3]=o}else this.buffer.push(t,n,r,o)}},{key:"shift",value:function(t,n,r){var o=this.pos;if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=r,this.shiftContext(n,o),n<=this.p.parser.maxNode&&this.buffer.push(n,o,r,4);else{var i=t,a=this.p.parser;(r>this.pos||n<=a.maxNode)&&(this.pos=r,a.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,o),this.shiftContext(n,o),n<=a.maxNode&&this.buffer.push(n,o,r,4)}}},{key:"apply",value:function(t,n,r){65536&t?this.reduce(t):this.shift(t,n,r)}},{key:"useNode",value:function(t,n){var r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);var o=this.pos;this.reducePos=this.pos=o+t.length,this.pushState(n,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}},{key:"split",value:function(){for(var t=this,n=t.buffer.length;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;for(var r=t.buffer.slice(n),o=t.bufferBase+n;t&&o==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,t)}},{key:"recoverByDelete",value:function(t,n){var r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}},{key:"canShift",value:function(t){for(var n=new Ayt(this);;){var r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(!(65536&r))return!0;if(r==0)return!1;n.reduce(r)}}},{key:"recoverByInsert",value:function(t){if(this.stack.length>=300)return[];var n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){for(var r,o=[],i=0;i<n.length;i+=2)(r=n[i+1])!=this.state&&this.p.parser.hasAction(r,t)&&o.push(n[i],r);if(this.stack.length<120)for(var a=function(){var d=n[s+1];o.some(function(h,p){return 1&p&&h==d})||o.push(n[s],d)},s=0;o.length<8&&s<n.length;s+=2)a();n=o}for(var c=[],u=0;u<n.length&&c.length<4;u+=2){var l=n[u+1];if(l!=this.state){var f=this.split();f.pushState(l,this.pos),f.storeNode(0,f.pos,f.pos,4,!0),f.shiftContext(n[u],this.pos),f.score-=200,c.push(f)}}return c}},{key:"forceReduce",value:function(){var t=this.p.parser.stateSlot(this.state,5);if(!(65536&t))return!1;var n=this.p.parser;if(!n.validAction(this.state,t)){var r=t>>19,o=65535&t,i=this.stack.length-3*r;if(i<0||n.getGoto(this.stack[i],o,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(this.stack.length!=3)return!1;var t=this.p.parser;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(var n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}},{key:"parser",get:function(){return this.p.parser}},{key:"dialectEnabled",value:function(t){return this.p.parser.dialect.flags[t]}},{key:"shiftContext",value:function(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}},{key:"reduceContext",value:function(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}},{key:"emitContext",value:function(){var t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}},{key:"emitLookAhead",value:function(){var t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}},{key:"updateContext",value:function(t){if(t!=this.curContext.context){var n=new NT(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}},{key:"setLookAhead",value:function(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=t.parser.context;return new e(t,[],n,r,r,0,[],0,o?new NT(o,o.start):null,0,null)}}]),e}(),NT=ot(function e(t,n){rt(this,e),this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0});(function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(IT||(IT={}));var Ayt=function(){function e(t){rt(this,e),this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}return ot(e,[{key:"reduce",value:function(t){var n=65535&t,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(r-1);var o=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=o}}]),e}(),Pyt=function(){function e(t,n,r){rt(this,e),this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}return ot(e,[{key:"maybeNext",value:function(){var t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}},{key:"fork",value:function(){return new e(this.stack,this.pos,this.index)}}],[{key:"create",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.bufferBase+t.buffer.length;return new e(t,n,n-t.bufferBase)}}]),e}(),Rm=ot(function e(){rt(this,e),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),DT=new Rm,Tyt=function(){function e(t,n){rt(this,e),this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=DT,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}return ot(e,[{key:"resolveOffset",value:function(t,n){for(var r=this.range,o=this.rangeIndex,i=this.pos+t;i<r.from;){if(!o)return null;var a=this.ranges[--o];i-=r.from-a.to,r=a}for(;n<0?i>r.to:i>=r.to;){if(o==this.ranges.length-1)return null;var s=this.ranges[++o];i+=s.from-r.to,r=s}return i}},{key:"clipPos",value:function(t){if(t>=this.range.from&&t<this.range.to)return t;var n,r=ht(this.ranges);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.to>t)return Math.max(t,o.from)}}catch(i){r.e(i)}finally{r.f()}return this.end}},{key:"peek",value:function(t){var n,r,o=this.chunkOff+t;if(o>=0&&o<this.chunk.length)n=this.pos+t,r=this.chunk.charCodeAt(o);else{var i=this.resolveOffset(t,1);if(i==null)return-1;if((n=i)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{for(var a=this.rangeIndex,s=this.range;s.to<=n;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}},{key:"acceptToken",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}},{key:"getChunk",value:function(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){var t=this.chunk,n=this.chunkPos;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;var r=this.input.chunk(this.pos),o=this.pos+r.length;this.chunk=o>this.range.to?r.slice(0,this.range.to-this.pos):r,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=DT,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}},{key:"read",value:function(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);var r,o="",i=ht(this.ranges);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.from>=n)break;a.to>t&&(o+=this.input.read(Math.max(a.from,t),Math.min(a.to,n)))}}catch(s){i.e(s)}finally{i.f()}return o}}]),e}(),Im=function(){function e(t,n){rt(this,e),this.data=t,this.id=n}return ot(e,[{key:"token",value:function(t,n){(function(r,o,i,a){var s=0,c=1<<a,u=i.p.parser,l=u.dialect;t:for(;c&r[s];){for(var f=r[s+1],d=s+3;d<f;d+=2)if((r[d+1]&c)>0){var h=r[d];if(l.allows(h)&&(o.token.value==-1||o.token.value==h||u.overrides(h,o.token.value))){o.acceptToken(h);break}}var p=o.next,v=0,m=r[s+2];if(!(o.next<0&&m>v&&r[f+3*m-3]==65535)){for(;v<m;){var g=v+m>>1,y=f+g+(g<<1),b=r[y],w=r[y+1];if(p<b)m=g;else{if(!(p>=w)){s=r[y+2],o.advance();continue t}v=g+1}}break}s=r[f+3*m-1]}})(this.data,t,n,this.id)}}]),e}();function qv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uint16Array;if(typeof e!="string")return e;for(var n=null,r=0,o=0;r<e.length;){for(var i=0;;){var a=e.charCodeAt(r++),s=!1;if(a==126){i=65535;break}a>=92&&a--,a>=34&&a--;var c=a-32;if(c>=46&&(c-=46,s=!0),i+=c,s)break;i*=46}n?n[o++]=i:n=new t(i)}return n}Im.prototype.contextual=Im.prototype.fallback=Im.prototype.extend=!1;var zT,ea=typeof process<"u"&&process.env&&/\bparse\b/.test({}.LOG),Yy=null;function LT(e,t,n){var r=e.cursor(io.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}(function(e){e[e.Margin=25]="Margin"})(zT||(zT={}));var BT,Ryt=function(){function e(t,n){rt(this,e),this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return ot(e,[{key:"nextFragment",value:function(){var t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?LT(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?LT(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){var n=this.trees.length-1;if(n<0)return this.nextFragment(),null;var r=this.trees[n],o=this.index[n];if(o!=r.children.length){var i=r.children[o],a=this.start[n]+r.positions[o];if(a>t)return this.nextStart=a,null;if(i instanceof ko){if(a==t){if(a<this.safeFrom)return null;var s=a+i.length;if(s<=this.safeTo){var c=i.prop(Cn.lookAhead);if(!c||s+c<this.fragment.to)return i}}this.index[n]++,a+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+i.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),e}(),Iyt=function(){function e(t,n){rt(this,e),this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(function(r){return new Rm})}return ot(e,[{key:"getActions",value:function(t){for(var n=0,r=null,o=t.p.parser,i=o.tokenizers,a=o.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,c=0,u=0;u<i.length;u++)if(1<<u&a){var l=i[u],f=this.tokens[u];if((!r||l.fallback)&&((l.contextual||f.start!=t.pos||f.mask!=a||f.context!=s)&&(this.updateCachedToken(f,l,t),f.mask=a,f.context=s),f.lookAhead>f.end+25&&(c=Math.max(f.lookAhead,c)),f.value!=0)){var d=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!l.extend&&(r=f,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return c&&t.setLookAhead(c),r||t.pos!=this.stream.end||((r=new Rm).value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}},{key:"getMainToken",value:function(t){if(this.mainToken)return this.mainToken;var n=new Rm,r=t.pos,o=t.p;return n.start=r,n.end=Math.min(r+1,o.stream.end),n.value=r==o.stream.end?o.parser.eofTerm:0,n}},{key:"updateCachedToken",value:function(t,n,r){var o=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(o,t),r),t.value>-1){for(var i=r.p.parser,a=0;a<i.specialized.length;a++)if(i.specialized[a]==t.value){var s=i.specializers[a](this.stream.read(t.start,t.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){1&s?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(o+1)}},{key:"putAction",value:function(t,n,r,o){for(var i=0;i<o;i+=3)if(this.actions[i]==t)return o;return this.actions[o++]=t,this.actions[o++]=n,this.actions[o++]=r,o}},{key:"addActions",value:function(t,n,r,o){for(var i=t.state,a=t.p.parser,s=a.data,c=0;c<2;c++)for(var u=a.stateSlot(i,c?2:1);;u+=3){if(s[u]==65535){if(s[u+1]!=1){o==0&&s[u+1]==2&&(o=this.putAction(Cs(s,u+2),n,r,o));break}u=Cs(s,u+2)}s[u]==n&&(o=this.putAction(Cs(s,u+1),n,r,o))}return o}}]),e}();(function(e){e[e.Distance=5]="Distance",e[e.MaxRemainingPerStep=3]="MaxRemainingPerStep",e[e.MinBufferLengthPrune=500]="MinBufferLengthPrune",e[e.ForceReduceLimit=10]="ForceReduceLimit",e[e.CutDepth=15e3]="CutDepth",e[e.CutTo=9e3]="CutTo"})(BT||(BT={}));var Nyt=function(){function e(t,n,r,o){rt(this,e),this.parser=t,this.input=n,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.stream=new Tyt(n,o),this.tokens=new Iyt(t,this.stream),this.topTerm=t.top[1];var i=o[0].from;this.stacks=[Myt.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>4*t.bufferLength?new Ryt(r,t.nodeSet):null}return ot(e,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var t,n,r=this.stacks,o=this.minStackPos,i=this.stacks=[],a=0;a<r.length;a++)for(var s=r[a];;){if(this.tokens.mainToken=null,s.pos>o)i.push(s);else{if(this.advanceStack(s,i,r))continue;t||(t=[],n=[]),t.push(s);var c=this.tokens.getMainToken(s);n.push(c.value,c.end)}break}if(!i.length){var u=t&&function(g){var y,b=null,w=ht(g);try{for(w.s();!(y=w.n()).done;){var x=y.value,k=x.p.stoppedAt;(x.pos==x.p.stream.end||k!=null&&x.pos>k)&&x.p.parser.stateFlag(x.state,2)&&(!b||b.score<x.score)&&(b=x)}}catch(j){w.e(j)}finally{w.f()}return b}(t);if(u)return this.stackToTree(u);if(this.parser.strict)throw ea&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&t){var l=this.stoppedAt!=null&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,n,i);if(l)return this.stackToTree(l.forceAll())}if(this.recovering){var f=this.recovering==1?1:3*this.recovering;if(i.length>f)for(i.sort(function(g,y){return y.score-g.score});i.length>f;)i.pop();i.some(function(g){return g.reducePos>o})&&this.recovering--}else if(i.length>1)t:for(var d=0;d<i.length-1;d++)for(var h=i[d],p=d+1;p<i.length;p++){var v=i[p];if(h.sameState(v)||h.buffer.length>500&&v.buffer.length>500){if(!((h.score-v.score||h.buffer.length-v.buffer.length)>0)){i.splice(d--,1);continue t}i.splice(p--,1)}}this.minStackPos=i[0].pos;for(var m=1;m<i.length;m++)i[m].pos<this.minStackPos&&(this.minStackPos=i[m].pos);return null}},{key:"stopAt",value:function(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}},{key:"advanceStack",value:function(t,n,r){var o=t.pos,i=this.parser,a=ea?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments)for(var s=t.curContext&&t.curContext.tracker.strict,c=s?t.curContext.hash:0,u=this.fragments.nodeAt(o);u;){var l=this.parser.nodeSet.types[u.type.id]==u.type?i.getGoto(t.state,u.type.id):-1;if(l>-1&&u.length&&(!s||(u.prop(Cn.contextHash)||0)==c))return t.useNode(u,l),ea&&console.log(a+this.stackID(t)+" (via reuse of ".concat(i.getName(u.type.id),")")),!0;if(!(u instanceof ko)||u.children.length==0||u.positions[0]>0)break;var f=u.children[0];if(!(f instanceof ko&&u.positions[0]==0))break;u=f}var d=i.stateSlot(t.state,4);if(d>0)return t.reduce(d),ea&&console.log(a+this.stackID(t)+" (via always-reduce ".concat(i.getName(65535&d),")")),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););for(var h=this.tokens.getActions(t),p=0;p<h.length;){var v=h[p++],m=h[p++],g=h[p++],y=p==h.length||!r,b=y?t:t.split();if(b.apply(v,m,g),ea&&console.log(a+this.stackID(b)+" (via ".concat(65536&v?"reduce of ".concat(i.getName(65535&v)):"shift"," for ").concat(i.getName(m)," @ ").concat(o).concat(b==t?"":", split",")")),y)return!0;b.pos>o?n.push(b):r.push(b)}return!1}},{key:"advanceFully",value:function(t,n){for(var r=t.pos;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return FT(t,n),!0}}},{key:"runRecovery",value:function(t,n,r){for(var o=null,i=!1,a=0;a<t.length;a++){var s=t[a],c=n[a<<1],u=n[1+(a<<1)],l=ea?this.stackID(s)+" -> ":"";if(!(s.deadEnd&&(i||(i=!0,s.restart(),ea&&console.log(l+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))){for(var f=s.split(),d=l,h=0;f.forceReduce()&&h<10&&(ea&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));h++)ea&&(d=this.stackID(f)+" -> ");var p,v=ht(s.recoverByInsert(c));try{for(v.s();!(p=v.n()).done;){var m=p.value;ea&&console.log(l+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r)}}catch(g){v.e(g)}finally{v.f()}this.stream.end>s.pos?(u==s.pos&&(u++,c=0),s.recoverByDelete(c,u),ea&&console.log(l+this.stackID(s)+" (via recover-delete ".concat(this.parser.getName(c),")")),FT(s,r)):(!o||o.score<s.score)&&(o=s)}}return o}},{key:"stackToTree",value:function(t){return t.close(),ko.build({buffer:Pyt.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}},{key:"stackID",value:function(t){var n=(Yy||(Yy=new WeakMap)).get(t);return n||Yy.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}]),e}();function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}var Dyt=function(){function e(t,n,r){rt(this,e),this.source=t,this.flags=n,this.disabled=r}return ot(e,[{key:"allows",value:function(t){return!this.disabled||this.disabled[t]==0}}]),e}(),zyt=function(e){Tt(n,sq);var t=Rt(n);function n(r){var o,i;if(rt(this,n),(i=t.call(this)).wrappers=[],r.version!=14)throw new RangeError("Parser version (".concat(r.version,") doesn't match runtime version (",14,")"));var a=r.nodeNames.split(" ");i.minRepeatTerm=a.length;for(var s=0;s<r.repeatNodeCount;s++)a.push("");for(var c=Object.keys(r.topRules).map(function(k){return r.topRules[k][1]}),u=[],l=0;l<a.length;l++)u.push([]);function f(k,j,S){u[k].push([j,j.deserialize(String(S))])}if(r.nodeProps){var d,h=ht(r.nodeProps);try{for(h.s();!(d=h.n()).done;){var p=d.value,v=p[0];typeof v=="string"&&(v=Cn[v]);for(var m=1;m<p.length;){var g=p[m++];if(g>=0)f(g,v,p[m++]);else{for(var y=p[m+-g],b=-g;b>0;b--)f(p[m++],v,y);m++}}}}catch(k){h.e(k)}finally{h.f()}}i.nodeSet=new e1t(a.map(function(k,j){return Qi.define({name:j>=i.minRepeatTerm?void 0:k,id:j,props:u[j],top:c.indexOf(j)>-1,error:j==0,skipped:r.skippedNodes&&r.skippedNodes.indexOf(j)>-1})})),r.propSources&&(i.nodeSet=(o=i.nodeSet).extend.apply(o,Se(r.propSources))),i.strict=!1,i.bufferLength=1024;var w=qv(r.tokenData);i.context=r.context,i.specializerSpecs=r.specialized||[],i.specialized=new Uint16Array(i.specializerSpecs.length);for(var x=0;x<i.specializerSpecs.length;x++)i.specialized[x]=i.specializerSpecs[x].term;return i.specializers=i.specializerSpecs.map(HT),i.states=qv(r.states,Uint32Array),i.data=qv(r.stateData),i.goto=qv(r.goto),i.maxTerm=r.maxTerm,i.tokenizers=r.tokenizers.map(function(k){return typeof k=="number"?new Im(w,k):k}),i.topRules=r.topRules,i.dialects=r.dialects||{},i.dynamicPrecedences=r.dynamicPrecedences||null,i.tokenPrecTable=r.tokenPrec,i.termNames=r.termNames||null,i.maxNode=i.nodeSet.types.length-1,i.dialect=i.parseDialect(),i.top=i.topRules[Object.keys(i.topRules)[0]],i}return ot(n,[{key:"createParse",value:function(r,o,i){var a,s=new Nyt(this,r,o,i),c=ht(this.wrappers);try{for(c.s();!(a=c.n()).done;)s=(0,a.value)(s,r,o,i)}catch(u){c.e(u)}finally{c.f()}return s}},{key:"getGoto",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=this.goto;if(o>=a[0])return-1;for(var s=a[o+1];;){var c=a[s++],u=1&c,l=a[s++];if(u&&i)return l;for(var f=s+(c>>1);s<f;s++)if(a[s]==r)return l;if(u)return-1}}},{key:"hasAction",value:function(r,o){for(var i=this.data,a=0;a<2;a++)for(var s,c=this.stateSlot(r,a?2:1);;c+=3){if((s=i[c])==65535){if(i[c+1]!=1){if(i[c+1]==2)return Cs(i,c+2);break}s=i[c=Cs(i,c+2)]}if(s==o||s==0)return Cs(i,c+1)}return 0}},{key:"stateSlot",value:function(r,o){return this.states[6*r+o]}},{key:"stateFlag",value:function(r,o){return(this.stateSlot(r,0)&o)>0}},{key:"validAction",value:function(r,o){if(o==this.stateSlot(r,4))return!0;for(var i=this.stateSlot(r,1);;i+=3){if(this.data[i]==65535){if(this.data[i+1]!=1)return!1;i=Cs(this.data,i+2)}if(o==Cs(this.data,i+1))return!0}}},{key:"nextStates",value:function(r){for(var o=this,i=[],a=function(c){if(o.data[c]==65535){if(o.data[c+1]!=1)return s=c,1;c=Cs(o.data,c+2)}if(!(1&o.data[c+2])){var u=o.data[c+1];i.some(function(l,f){return 1&f&&l==u})||i.push(o.data[c],u)}s=c},s=this.stateSlot(r,1);!a(s);s+=3);return i}},{key:"overrides",value:function(r,o){var i=qT(this.data,this.tokenPrecTable,o);return i<0||qT(this.data,this.tokenPrecTable,r)<i}},{key:"configure",value:function(r){var o,i=Object.assign(Object.create(n.prototype),this);if(r.props&&(i.nodeSet=(o=this.nodeSet).extend.apply(o,Se(r.props))),r.top){var a=this.topRules[r.top];if(!a)throw new RangeError("Invalid top rule name ".concat(r.top));i.top=a}return r.tokenizers&&(i.tokenizers=this.tokenizers.map(function(s){var c=r.tokenizers.find(function(u){return u.from==s});return c?c.to:s})),r.specializers&&(i.specializers=this.specializers.slice(),i.specializerSpecs=this.specializerSpecs.map(function(s,c){var u=r.specializers.find(function(f){return f.from==s.external});if(!u)return s;var l=Object.assign(Object.assign({},s),{external:u.to});return i.specializers[c]=HT(l),l})),r.contextTracker&&(i.context=r.contextTracker),r.dialect&&(i.dialect=this.parseDialect(r.dialect)),r.strict!=null&&(i.strict=r.strict),r.wrap&&(i.wrappers=i.wrappers.concat(r.wrap)),r.bufferLength!=null&&(i.bufferLength=r.bufferLength),i}},{key:"hasWrappers",value:function(){return this.wrappers.length>0}},{key:"getName",value:function(r){return this.termNames?this.termNames[r]:String(r<=this.maxNode&&this.nodeSet.types[r].name||r)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(r){var o=this.dynamicPrecedences;return o==null?0:o[r]||0}},{key:"parseDialect",value:function(r){var o=Object.keys(this.dialects),i=o.map(function(){return!1});if(r){var a,s=ht(r.split(" "));try{for(s.s();!(a=s.n()).done;){var c=a.value,u=o.indexOf(c);u>=0&&(i[u]=!0)}}catch(p){s.e(p)}finally{s.f()}}for(var l=null,f=0;f<o.length;f++)if(!i[f])for(var d,h=this.dialects[o[f]];(d=this.data[h++])!=65535;)(l||(l=new Uint8Array(this.maxTerm+1)))[d]=1;return new Dyt(r,i,l)}}],[{key:"deserialize",value:function(r){return new n(r)}}]),n}();function Cs(e,t){return e[t]|e[t+1]<<16}function qT(e,t,n){for(var r,o=t;(r=e[o])!=65535;o++)if(r==n)return o-t;return-1}function HT(e){if(e.external){var t=e.extend?1:0;return function(n,r){return e.external(n,r)<<1|t}}return e.get}var Lyt=uq({String:re.string,Number:re.number,"True False":re.bool,PropertyName:re.propertyName,Null:re.null,",":re.separator,"[ ]":re.squareBracket,"{ }":re.brace}),Byt=zyt.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[Lyt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),Fyt=p1t.define({name:"json",parser:Byt.configure({props:[hq.add({Object:dT({except:/^\s*\}/}),Array:dT({except:/^\s*\]/})}),vq.add({"Object Array":function(e){var t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}}),VT=typeof String.prototype.normalize=="function"?function(e){return e.normalize("NFKD")}:function(e){return e},df=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.length,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;rt(this,e),this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,o),this.bufferStart=r,this.normalize=i?function(s){return i(VT(s))}:VT,this.query=this.normalize(n)}return ot(e,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return wo(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var t=this.peek();if(t<0)return this.done=!0,this;var n=Sj(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=Pi(t);for(var o=this.normalize(n),i=0,a=r;;i++){var s=o.charCodeAt(i),c=this.match(s,a);if(i==o.length-1){if(c)return this.value=c,this;break}a==r&&i<n.length&&n.charCodeAt(i)==s&&a++}}}},{key:"match",value:function(t,n){for(var r=null,o=0;o<this.matches.length;o+=2){var i=this.matches[o],a=!1;this.query.charCodeAt(i)==t&&(i==this.query.length-1?r={from:this.matches[o+1],to:n+1}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==t&&(this.query.length==1?r={from:n,to:n+1}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}]),e}();typeof Symbol<"u"&&(df.prototype[Symbol.iterator]=function(){return this});var uH={from:-1,to:-1,match:/.*/.exec("")},Wj="gm"+(/x/.unicode==null?"":"u"),lH=function(){function e(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:t.length;if(rt(this,e),this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=uH,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new fH(t,n,r,o,i);this.re=new RegExp(n,Wj+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=t.iter();var a=t.lineAt(o);this.curLineStart=a.from,this.matchPos=Ug(t,o),this.getLine(this.curLineStart)}return ot(e,[{key:"getLine",value:function(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;var n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){var r=this.curLineStart+n.index,o=r+n[0].length;if(this.matchPos=Ug(this.text,o+(r==o?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<o||r>this.value.to)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),t=0}}}}]),e}(),Xy=new WeakMap,UT=function(){function e(t,n){rt(this,e),this.from=t,this.text=n}return ot(e,[{key:"to",get:function(){return this.from+this.text.length}}],[{key:"get",value:function(t,n,r){var o=Xy.get(t);if(!o||o.from>=r||o.to<=n){var i=new e(n,t.sliceString(n,r));return Xy.set(t,i),i}if(o.from==n&&o.to==r)return o;var a=o.text,s=o.from;return s>n&&(a=t.sliceString(n,s)+a,s=n),o.to<r&&(a+=t.sliceString(o.to,r)),Xy.set(t,new e(s,a)),new e(n,a.slice(n-s,r-s))}}]),e}(),fH=function(){function e(t,n,r,o,i){rt(this,e),this.text=t,this.to=i,this.done=!1,this.value=uH,this.matchPos=Ug(t,o),this.re=new RegExp(n,Wj+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=UT.get(t,o,this.chunkEnd(o+5e3))}return ot(e,[{key:"chunkEnd",value:function(t){return t>=this.to?this.to:this.text.lineAt(t).to}},{key:"next",value:function(){for(;;){var t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){var r=this.flat.from+n.index,o=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this.matchPos=Ug(this.text,o+(r==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=UT.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),e}();function Ug(e,t){if(t>=e.length)return t;for(var n,r=e.lineAt(t);t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344;)t++;return t}function Bx(e){var t=lr("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){var r=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(r){var o=e.state,i=o.doc.lineAt(o.selection.main.head),a=$e(r,5),s=a[1],c=a[2],u=a[3],l=a[4],f=u?+u.slice(1):0,d=c?+c:i.number;if(c&&l){var h=d/100;s&&(h=h*(s=="-"?-1:1)+i.number/o.doc.lines),d=Math.round(o.doc.lines*h)}else c&&s&&(d=d*(s=="-"?-1:1)+i.number);var p=o.doc.line(Math.max(1,Math.min(o.doc.lines,d))),v=Jt.cursor(p.from+Math.max(0,Math.min(f,p.length)));e.dispatch({effects:[Wg.of(!1),ye.scrollIntoView(v.from,{y:"center"})],selection:v}),e.focus()}}return{dom:lr("form",{class:"cm-gotoLine",onkeydown:function(r){r.keyCode==27?(r.preventDefault(),e.dispatch({effects:Wg.of(!1)}),e.focus()):r.keyCode==13&&(r.preventDefault(),n())},onsubmit:function(r){r.preventDefault(),n()}},lr("label",e.state.phrase("Go to line"),": ",t)," ",lr("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}typeof Symbol<"u"&&(lH.prototype[Symbol.iterator]=fH.prototype[Symbol.iterator]=function(){return this});var Wg=bn.define(),WT=_o.define({create:function(){return!0},update:function(e,t){var n,r=ht(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(Wg)&&(e=o.value)}}catch(i){r.e(i)}finally{r.f()}return e},provide:function(e){return ep.from(e,function(t){return t?Bx:null})}}),qyt=ye.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Hyt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Vyt=xe.define({combine:function(e){return Xi(e,Hyt,{highlightWordAroundCursor:function(t,n){return t||n},minSelectionLength:Math.min,maxMatches:Math.min})}}),Uyt=We.mark({class:"cm-selectionMatch"}),Wyt=We.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function KT(e,t,n,r){return!(n!=0&&e(t.sliceDoc(n-1,n))==Sr.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==Sr.Word)}var Kyt=Zr.fromClass(function(){function e(t){rt(this,e),this.decorations=this.getDeco(t)}return ot(e,[{key:"update",value:function(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var n=t.state.facet(Vyt),r=t.state,o=r.selection;if(o.ranges.length>1)return We.none;var i,a=o.main,s=null;if(a.empty){if(!n.highlightWordAroundCursor)return We.none;var c=r.wordAt(a.head);if(!c)return We.none;s=r.charCategorizer(a.head),i=r.sliceDoc(c.from,c.to)}else{var u=a.to-a.from;if(u<n.minSelectionLength||u>200)return We.none;if(n.wholeWords){if(i=r.sliceDoc(a.from,a.to),!KT(s=r.charCategorizer(a.head),r,a.from,a.to)||!function(y,b,w,x){return y(b.sliceDoc(w,w+1))==Sr.Word&&y(b.sliceDoc(x-1,x))==Sr.Word}(s,r,a.from,a.to))return We.none}else if(!(i=r.sliceDoc(a.from,a.to).trim()))return We.none}var l,f=[],d=ht(t.visibleRanges);try{for(d.s();!(l=d.n()).done;)for(var h=l.value,p=new df(r.doc,i,h.from,h.to);!p.next().done;){var v=p.value,m=v.from,g=v.to;if((!s||KT(s,r,m,g))&&(a.empty&&m<=a.from&&g>=a.to?f.push(Wyt.range(m,g)):(m>=a.to||g<=a.from)&&f.push(Uyt.range(m,g)),f.length>n.maxMatches))return We.none}}catch(y){d.e(y)}finally{d.f()}return We.set(f)}}]),e}(),{decorations:function(e){return e.decorations}}),Jyt=ye.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),pl=xe.define({combine:function(e){return Xi(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:function(t){return new obt(t)},scrollToMatch:function(t){return ye.scrollIntoView(t)}})}});function Gyt(e){return e?[pl.of(e),qx]:qx}var dH=function(){function e(t){rt(this,e),this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(n){try{return new RegExp(n,Wj),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}return ot(e,[{key:"unquote",value:function(t){return this.literal?t:t.replace(/\\([nrt\\])/g,function(n,r){return r=="n"?`
115
+ `:r=="r"?"\r":r=="t"?" ":"\\"})}},{key:"eq",value:function(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}},{key:"create",value:function(){return this.regexp?new Yyt(this):new Qyt(this)}},{key:"getCursor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=t.doc?t:fr.create({doc:t});return r==null&&(r=o.doc.length),this.regexp?Al(this,o,n,r):Ml(this,o,n,r)}}]),e}(),hH=ot(function e(t){rt(this,e),this.spec=t});function Ml(e,t,n,r){return new df(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:function(o){return o.toLowerCase()},e.wholeWord?function(o,i){return function(a,s,c,u){return(u>a||u+c.length<s)&&(u=Math.max(0,a-2),c=o.sliceString(u,Math.min(o.length,s+2))),!(i(Kg(c,a-u))==Sr.Word&&i(Jg(c,a-u))==Sr.Word||i(Jg(c,s-u))==Sr.Word&&i(Kg(c,s-u))==Sr.Word)}}(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}var Qyt=function(e){Tt(n,hH);var t=Rt(n);function n(r){return rt(this,n),t.call(this,r)}return ot(n,[{key:"nextMatch",value:function(r,o,i){var a=Ml(this.spec,r,i,r.doc.length).nextOverlapping();return a.done&&(a=Ml(this.spec,r,0,o).nextOverlapping()),a.done?null:a.value}},{key:"prevMatchInRange",value:function(r,o,i){for(var a=i;;){for(var s=Math.max(o,a-1e4-this.spec.unquoted.length),c=Ml(this.spec,r,s,a),u=null;!c.nextOverlapping().done;)u=c.value;if(u)return u;if(s==o)return null;a-=1e4}}},{key:"prevMatch",value:function(r,o,i){return this.prevMatchInRange(r,0,o)||this.prevMatchInRange(r,i,r.doc.length)}},{key:"getReplacement",value:function(r){return this.spec.unquote(this.spec.replace)}},{key:"matchAll",value:function(r,o){for(var i=Ml(this.spec,r,0,r.doc.length),a=[];!i.next().done;){if(a.length>=o)return null;a.push(i.value)}return a}},{key:"highlight",value:function(r,o,i,a){for(var s=Ml(this.spec,r,Math.max(0,o-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,r.doc.length));!s.next().done;)a(s.value.from,s.value.to)}}]),n}();function Al(e,t,n,r){return new lH(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(o=t.charCategorizer(t.selection.main.head),function(i,a,s){return!s[0].length||(o(Kg(s.input,s.index))!=Sr.Word||o(Jg(s.input,s.index))!=Sr.Word)&&(o(Jg(s.input,s.index+s[0].length))!=Sr.Word||o(Kg(s.input,s.index+s[0].length))!=Sr.Word)}):void 0},n,r);var o}function Kg(e,t){return e.slice(Po(e,t,!1),t)}function Jg(e,t){return e.slice(t,Po(e,t))}var Yyt=function(e){Tt(n,hH);var t=Rt(n);function n(){return rt(this,n),t.apply(this,arguments)}return ot(n,[{key:"nextMatch",value:function(r,o,i){var a=Al(this.spec,r,i,r.doc.length).next();return a.done&&(a=Al(this.spec,r,0,o).next()),a.done?null:a.value}},{key:"prevMatchInRange",value:function(r,o,i){for(var a=1;;a++){for(var s=Math.max(o,i-1e4*a),c=Al(this.spec,r,s,i),u=null;!c.next().done;)u=c.value;if(u&&(s==o||u.from>s+10))return u;if(s==o)return null}}},{key:"prevMatch",value:function(r,o,i){return this.prevMatchInRange(r,0,o)||this.prevMatchInRange(r,i,r.doc.length)}},{key:"getReplacement",value:function(r){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(o,i){return i=="$"?"$":i=="&"?r.match[0]:i!="0"&&+i<r.match.length?r.match[i]:o}))}},{key:"matchAll",value:function(r,o){for(var i=Al(this.spec,r,0,r.doc.length),a=[];!i.next().done;){if(a.length>=o)return null;a.push(i.value)}return a}},{key:"highlight",value:function(r,o,i,a){for(var s=Al(this.spec,r,Math.max(0,o-250),Math.min(i+250,r.doc.length));!s.next().done;)a(s.value.from,s.value.to)}}]),n}(),op=bn.define(),Kj=bn.define(),Nc=_o.define({create:function(e){return new Zy(Fx(e).create(),null)},update:function(e,t){var n,r=ht(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(op)?e=new Zy(o.value.create(),e.panel):o.is(Kj)&&(e=new Zy(e.query,o.value?Jj:null))}}catch(i){r.e(i)}finally{r.f()}return e},provide:function(e){return ep.from(e,function(t){return t.panel})}}),Zy=ot(function e(t,n){rt(this,e),this.query=t,this.panel=n}),Xyt=We.mark({class:"cm-searchMatch"}),Zyt=We.mark({class:"cm-searchMatch cm-searchMatch-selected"}),tbt=Zr.fromClass(function(){function e(t){rt(this,e),this.view=t,this.decorations=this.highlight(t.state.field(Nc))}return ot(e,[{key:"update",value:function(t){var n=t.state.field(Nc);(n!=t.startState.field(Nc)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(n))}},{key:"highlight",value:function(t){var n=t.query;if(!t.panel||!n.spec.valid)return We.none;for(var r=this.view,o=new Jc,i=0,a=r.visibleRanges,s=a.length;i<s;i++){for(var c=a[i],u=c.from,l=c.to;i<s-1&&l>a[i+1].from-500;)l=a[++i].to;n.highlight(r.state,u,l,function(f,d){var h=r.state.selection.ranges.some(function(p){return p.from==f&&p.to==d});o.add(f,d,h?Zyt:Xyt)})}return o.finish()}}]),e}(),{decorations:function(e){return e.decorations}});function zp(e){return function(t){var n=t.state.field(Nc,!1);return n&&n.query.spec.valid?e(t,n):Gj(t)}}var Gg=zp(function(e,t){var n=t.query,r=e.state.selection.main.to,o=n.nextMatch(e.state,r,r);if(!o)return!1;var i=Jt.single(o.from,o.to),a=e.state.facet(pl);return e.dispatch({selection:i,effects:[Yj(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),vH(e),!0}),Qg=zp(function(e,t){var n=t.query,r=e.state,o=r.selection.main.from,i=n.prevMatch(r,o,o);if(!i)return!1;var a=Jt.single(i.from,i.to),s=e.state.facet(pl);return e.dispatch({selection:a,effects:[Yj(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),vH(e),!0}),ebt=zp(function(e,t){var n=t.query.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:Jt.create(n.map(function(r){return Jt.range(r.from,r.to)})),userEvent:"select.search.matches"}),!0)}),JT=zp(function(e,t){var n=t.query,r=e.state,o=r.selection.main,i=o.from,a=o.to;if(r.readOnly)return!1;var s=n.nextMatch(r,i,i);if(!s)return!1;var c,u,l=[],f=[];if(s.from==i&&s.to==a&&(u=r.toText(n.getReplacement(s)),l.push({from:s.from,to:s.to,insert:u}),s=n.nextMatch(r,s.from,s.to),f.push(ye.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+"."))),s){var d=l.length==0||l[0].from>=s.to?0:s.to-s.from-u.length;c=Jt.single(s.from-d,s.to-d),f.push(Yj(e,s)),f.push(r.facet(pl).scrollToMatch(c.main,e))}return e.dispatch({changes:l,selection:c,effects:f,userEvent:"input.replace"}),!0}),nbt=zp(function(e,t){var n=t.query;if(e.state.readOnly)return!1;var r=n.matchAll(e.state,1e9).map(function(i){return{from:i.from,to:i.to,insert:n.getReplacement(i)}});if(!r.length)return!1;var o=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:ye.announce.of(o),userEvent:"input.replace.all"}),!0});function Jj(e){return e.state.facet(pl).createPanel(e)}function Fx(e,t){var n,r,o,i,a,s=e.selection.main,c=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!c)return t;var u=e.facet(pl);return new dH({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(o=t==null?void 0:t.literal)!==null&&o!==void 0?o:u.literal,regexp:(i=t==null?void 0:t.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function pH(e){var t=tp(e,Jj);return t&&t.dom.querySelector("[main-field]")}function vH(e){var t=pH(e);t&&t==e.root.activeElement&&t.select()}var Gj=function(e){var t=e.state.field(Nc,!1);if(t&&t.panel){var n=pH(e);if(n&&n!=e.root.activeElement){var r=Fx(e.state,t.query.spec);r.valid&&e.dispatch({effects:op.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Kj.of(!0),t?op.of(Fx(e.state,t.query.spec)):bn.appendConfig.of(qx)]});return!0},Qj=function(e){var t=e.state.field(Nc,!1);if(!t||!t.panel)return!1;var n=tp(e,Jj);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Kj.of(!1)}),!0},rbt=[{key:"Mod-f",run:Gj,scope:"editor search-panel"},{key:"F3",run:Gg,shift:Qg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Gg,shift:Qg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Qj,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(e){var t=e.state,n=e.dispatch,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,i=o.from,a=o.to,s=[],c=0,u=new df(t.doc,t.sliceDoc(i,a));!u.next().done;){if(s.length>1e3)return!1;u.value.from==i&&(c=s.length),s.push(Jt.range(u.value.from,u.value.to))}return n(t.update({selection:Jt.create(s,c),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(e){var t=tp(e,Bx);if(!t){var n=[Wg.of(!0)];e.state.field(WT,!1)==null&&n.push(bn.appendConfig.of([WT,qyt])),e.dispatch({effects:n}),t=tp(e,Bx)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:function(e){var t=e.state,n=e.dispatch,r=t.selection.ranges;if(r.some(function(a){return a.from===a.to}))return function(a){var s=a.state,c=a.dispatch,u=s.selection,l=Jt.create(u.ranges.map(function(f){return s.wordAt(f.head)||Jt.cursor(f.head)}),u.mainIndex);return!l.eq(u)&&(c(s.update({selection:l})),!0)}({state:t,dispatch:n});var o=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(function(a){return t.sliceDoc(a.from,a.to)!=o}))return!1;var i=function(a,s){for(var c,u=a.selection,l=u.main,f=u.ranges,d=a.wordAt(l.head),h=d&&d.from==l.from&&d.to==l.to,p=function(g,y){if(y.next(),!y.done){if(g&&f.some(function(w){return w.from==y.value.from}))return v=g,m=y,0;if(h){var b=a.wordAt(y.value.from);if(!b||b.from!=y.value.from||b.to!=y.value.to)return v=g,m=y,0}return{v:y.value}}if(g)return{v:null};y=new df(a.doc,s,0,Math.max(0,f[f.length-1].from-1)),v=g=!0,m=y},v=!1,m=new df(a.doc,s,f[f.length-1].to);;)if((c=p(v,m))!==0&&c)return c.v}(t,o);return!!i&&(n(t.update({selection:t.selection.addRange(Jt.range(i.from,i.to),!1),effects:ye.scrollIntoView(i.to)})),!0)},preventDefault:!0}],obt=function(){function e(t){var n=this;rt(this,e),this.view=t;var r=this.query=t.state.field(Nc).query.spec;function o(i,a,s){return lr("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=lr("input",{value:r.search,placeholder:ui(t,"Find"),"aria-label":ui(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=lr("input",{value:r.replace,placeholder:ui(t,"Replace"),"aria-label":ui(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=lr("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=lr("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=lr("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit}),this.dom=lr("div",{onkeydown:function(i){return n.keydown(i)},class:"cm-search"},[this.searchField,o("next",function(){return Gg(t)},[ui(t,"next")]),o("prev",function(){return Qg(t)},[ui(t,"previous")]),o("select",function(){return ebt(t)},[ui(t,"all")]),lr("label",null,[this.caseField,ui(t,"match case")]),lr("label",null,[this.reField,ui(t,"regexp")]),lr("label",null,[this.wordField,ui(t,"by word")])].concat(Se(t.state.readOnly?[]:[lr("br"),this.replaceField,o("replace",function(){return JT(t)},[ui(t,"replace")]),o("replaceAll",function(){return nbt(t)},[ui(t,"replace all")])]),[lr("button",{name:"close",onclick:function(){return Qj(t)},"aria-label":ui(t,"close"),type:"button"},["×"])]))}return ot(e,[{key:"commit",value:function(){var t=new dH({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:op.of(t)}))}},{key:"keydown",value:function(t){(function(n,r,o){return VF(HF(n.state),r,n,o)})(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Qg:Gg)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),JT(this.view))}},{key:"update",value:function(t){var n,r=ht(t.transactions);try{for(r.s();!(n=r.n()).done;){var o,i=ht(n.value.effects);try{for(i.s();!(o=i.n()).done;){var a=o.value;a.is(op)&&!a.value.eq(this.query)&&this.setQuery(a.value)}}catch(s){i.e(s)}finally{i.f()}}}catch(s){r.e(s)}finally{r.f()}}},{key:"setQuery",value:function(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(pl).top}}]),e}();function ui(e,t){return e.state.phrase(t)}var Hv=30,Vv=/[\s\.,:;?!]/;function Yj(e,t){var n=t.from,r=t.to,o=e.state.doc.lineAt(n),i=e.state.doc.lineAt(r).to,a=Math.max(o.from,n-Hv),s=Math.min(i,r+Hv),c=e.state.sliceDoc(a,s);if(a!=o.from){for(var u=0;u<Hv;u++)if(!Vv.test(c[u+1])&&Vv.test(c[u])){c=c.slice(u);break}}if(s!=i){for(var l=c.length-1;l>c.length-Hv;l--)if(!Vv.test(c[l-1])&&Vv.test(c[l])){c=c.slice(0,l);break}}return ye.announce.of("".concat(e.state.phrase("current match"),". ").concat(c," ").concat(e.state.phrase("on line")," ").concat(o.number,"."))}var ibt=ye.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),qx=[Nc,ad.low(tbt),ibt],mH=function(){function e(t,n,r){rt(this,e),this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}return ot(e,[{key:"tokenBefore",value:function(t){for(var n=Io(this.state).resolveInner(this.pos,-1);n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}},{key:"matchBefore",value:function(t){var n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),o=n.text.slice(r-n.from,this.pos-n.from),i=o.search(gH(t,!1));return i<0?null:{from:r+i,to:this.pos,text:o.slice(i)}}},{key:"aborted",get:function(){return this.abortListeners==null}},{key:"addEventListener",value:function(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}]),e}();function GT(e){var t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),"[".concat(n?"\\w":"").concat(t.replace(/[^\w\s]/g,"\\$&"),"]")}function abt(e){var t=e.map(function(a){return typeof a=="string"?{label:a}:a}),n=t.every(function(a){return/^\w+$/.test(a.label)})?[/\w*$/,/\w+$/]:function(a){var s,c=Object.create(null),u=Object.create(null),l=ht(a);try{for(l.s();!(s=l.n()).done;){var f=s.value.label;c[f[0]]=!0;for(var d=1;d<f.length;d++)u[f[d]]=!0}}catch(p){l.e(p)}finally{l.f()}var h=GT(c)+GT(u)+"*$";return[new RegExp("^"+h),new RegExp(h)]}(t),r=$e(n,2),o=r[0],i=r[1];return function(a){var s=a.matchBefore(i);return s||a.explicit?{from:s?s.from:a.pos,options:t,validFor:o}:null}}var QT=ot(function e(t,n,r,o){rt(this,e),this.completion=t,this.source=n,this.match=r,this.score=o});function Dc(e){return e.selection.main.from}function gH(e,t){var n,r=e.source,o=t&&r[0]!="^",i=r[r.length-1]!="$";return o||i?new RegExp("".concat(o?"^":"","(?:").concat(r,")").concat(i?"$":""),(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":""):e}var sbt=Ns.define(),YT=new WeakMap;function cbt(e){if(!Array.isArray(e))return e;var t=YT.get(e);return t||YT.set(e,t=abt(e)),t}var Xj=bn.define(),ip=bn.define(),ubt=function(){function e(t){rt(this,e),this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(var n=0;n<t.length;){var r=wo(t,n),o=Pi(r);this.chars.push(r);var i=t.slice(n,n+o),a=i.toUpperCase();this.folded.push(wo(a==i?i.toLowerCase():a,0)),n+=o}this.astral=t.length!=this.chars.length}return ot(e,[{key:"ret",value:function(t,n){return this.score=t,this.matched=n,!0}},{key:"match",value:function(t){if(this.pattern.length==0)return this.ret(-100,[]);if(t.length<this.pattern.length)return!1;var n=this.chars,r=this.folded,o=this.any,i=this.precise,a=this.byWord;if(n.length==1){var s=wo(t,0),c=Pi(s),u=c==t.length?0:-100;if(s!=n[0]){if(s!=r[0])return!1;u+=-200}return this.ret(u,[0,c])}var l=t.indexOf(this.pattern);if(l==0)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);var f=n.length,d=0;if(l<0){for(var h=0,p=Math.min(t.length,200);h<p&&d<f;){var v=wo(t,h);v!=n[d]&&v!=r[d]||(o[d++]=h),h+=Pi(v)}if(d<f)return!1}for(var m=0,g=0,y=!1,b=0,w=-1,x=-1,k=/[a-z]/.test(t),j=!0,S=0,N=Math.min(t.length,200),C=0;S<N&&g<f;){var $=wo(t,S);l<0&&(m<f&&$==n[m]&&(i[m++]=S),b<f&&($==n[b]||$==r[b]?(b==0&&(w=S),x=S+1,b++):b=0));var B=void 0,K=$<255?$>=48&&$<=57||$>=97&&$<=122?2:$>=65&&$<=90?1:0:(B=Sj($))!=B.toLowerCase()?1:B!=B.toUpperCase()?2:0;(!S||K==1&&k||C==0&&K!=0)&&(n[g]==$||r[g]==$&&(y=!0)?a[g++]=S:a.length&&(j=!1)),C=K,S+=Pi($)}return g==f&&a[0]==0&&j?this.result((y?-200:0)-100,a,t):b==f&&w==0?this.ret(-200-t.length+(x==t.length?0:-100),[0,x]):l>-1?this.ret(-700-t.length,[l,l+this.pattern.length]):b==f?this.ret(-900-t.length,[w,x]):g==f?this.result((y?-200:0)-100-700+(j?0:-1100),a,t):n.length!=2&&this.result((o[0]?-700:0)-200-1100,o,t)}},{key:"result",value:function(t,n,r){var o,i=[],a=0,s=ht(n);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c+(this.astral?Pi(wo(r,c)):1);a&&i[a-1]==c?i[a-1]=u:(i[a++]=c,i[a++]=u)}}catch(l){s.e(l)}finally{s.f()}return this.ret(t-r.length,i)}}]),e}(),ei=xe.define({combine:function(e){return Xi(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:function(){return""},optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:lbt,compareCompletions:function(t,n){return t.label.localeCompare(n.label)},interactionDelay:75},{defaultKeymap:function(t,n){return t&&n},closeOnBlur:function(t,n){return t&&n},icons:function(t,n){return t&&n},tooltipClass:function(t,n){return function(r){return XT(t(r),n(r))}},optionClass:function(t,n){return function(r){return XT(t(r),n(r))}},addToOptions:function(t,n){return t.concat(n)}})}});function XT(e,t){return e?t?e+" "+t:e:t}function lbt(e,t,n,r,o,i){var a,s,c=e.textDirection==Rr.RTL,u=c,l=!1,f="top",d=t.left-o.left,h=o.right-t.right,p=r.right-r.left,v=r.bottom-r.top;if(u&&d<Math.min(p,h)?u=!1:!u&&h<Math.min(p,d)&&(u=!0),p<=(u?d:h))a=Math.max(o.top,Math.min(n.top,o.bottom-v))-t.top,s=Math.min(400,u?d:h);else{l=!0,s=Math.min(400,(c?t.right:o.right-t.left)-30);var m=o.bottom-t.bottom;m>=v||m>t.top?a=n.bottom-t.top:(f="bottom",a=t.bottom-n.top)}var g=(t.bottom-t.top)/i.offsetHeight,y=(t.right-t.left)/i.offsetWidth;return{style:"".concat(f,": ").concat(a/g,"px; max-width: ").concat(s/y,"px"),class:"cm-completionInfo-"+(l?c?"left-narrow":"right-narrow":u?"left":"right")}}function ZT(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){var r=Math.floor(t/n);return{from:r*n,to:(r+1)*n}}var o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}var fbt=function(){function e(t,n,r){var o=this;rt(this,e),this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:function(){return o.measureInfo()},write:function(l){return o.placeInfo(l)},key:this},this.space=null,this.currentClass="";var i=t.state.field(n),a=i.open,s=a.options,c=a.selected,u=t.state.facet(ei);this.optionContent=function(l){var f=l.addToOptions.slice();return l.icons&&f.push({render:function(d){var h,p=document.createElement("div");return p.classList.add("cm-completionIcon"),d.type&&(h=p.classList).add.apply(h,Se(d.type.split(/\s+/g).map(function(v){return"cm-completionIcon-"+v}))),p.setAttribute("aria-hidden","true"),p},position:20}),f.push({render:function(d,h,p){var v=document.createElement("span");v.className="cm-completionLabel";for(var m=d.displayLabel||d.label,g=0,y=0;y<p.length;){var b=p[y++],w=p[y++];b>g&&v.appendChild(document.createTextNode(m.slice(g,b)));var x=v.appendChild(document.createElement("span"));x.appendChild(document.createTextNode(m.slice(b,w))),x.className="cm-completionMatchedText",g=w}return g<m.length&&v.appendChild(document.createTextNode(m.slice(g))),v},position:50},{render:function(d){if(!d.detail)return null;var h=document.createElement("span");return h.className="cm-completionDetail",h.textContent=d.detail,h},position:80}),f.sort(function(d,h){return d.position-h.position}).map(function(d){return d.render})}(u),this.optionClass=u.optionClass,this.tooltipClass=u.tooltipClass,this.range=ZT(s.length,c,u.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",function(l){for(var f,d=l.target;d&&d!=o.dom;d=d.parentNode)if(d.nodeName=="LI"&&(f=/-(\d+)$/.exec(d.id))&&+f[1]<s.length)return o.applyCompletion(t,s[+f[1]]),void l.preventDefault()}),this.dom.addEventListener("focusout",function(l){var f=t.state.field(o.stateField,!1);f&&f.tooltip&&t.state.facet(ei).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:ip.of(null)})}),this.list=this.dom.appendChild(this.createListBox(s,i.id,this.range)),this.list.addEventListener("scroll",function(){o.info&&o.view.requestMeasure(o.placeInfoReq)})}return ot(e,[{key:"mount",value:function(){this.updateSel()}},{key:"update",value:function(t){var n,r,o,i=t.state.field(this.stateField),a=t.startState.field(this.stateField);this.updateTooltipClass(t.state),i!=a&&(this.updateSel(),((n=i.open)===null||n===void 0?void 0:n.disabled)!=((r=a.open)===null||r===void 0?void 0:r.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((o=i.open)===null||o===void 0)&&o.disabled)))}},{key:"updateTooltipClass",value:function(t){var n=this.tooltipClass(t);if(n!=this.currentClass){var r,o=ht(this.currentClass.split(" "));try{for(o.s();!(r=o.n()).done;){var i=r.value;i&&this.dom.classList.remove(i)}}catch(u){o.e(u)}finally{o.f()}var a,s=ht(n.split(" "));try{for(s.s();!(a=s.n()).done;){var c=a.value;c&&this.dom.classList.add(c)}}catch(u){s.e(u)}finally{s.f()}this.currentClass=n}}},{key:"positioned",value:function(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSel",value:function(){var t=this,n=this.view.state.field(this.stateField),r=n.open;if((r.selected>-1&&r.selected<this.range.from||r.selected>=this.range.to)&&(this.range=ZT(r.options.length,r.selected,this.view.state.facet(ei).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(r.options,n.id,this.range)),this.list.addEventListener("scroll",function(){t.info&&t.view.requestMeasure(t.placeInfoReq)})),this.updateSelectedOption(r.selected)){this.destroyInfo();var o=r.options[r.selected].completion,i=o.info;if(!i)return;var a=typeof i=="string"?document.createTextNode(i):i(o);if(!a)return;"then"in a?a.then(function(s){s&&t.view.state.field(t.stateField,!1)==n&&t.addInfoPane(s,o)}).catch(function(s){return Vi(t.view.state,s,"completion info")}):this.addInfoPane(a,o)}}},{key:"addInfoPane",value:function(t,n){this.destroyInfo();var r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{var o=t.dom,i=t.destroy;r.appendChild(o),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSelectedOption",value:function(t){for(var n=null,r=this.list.firstChild,o=this.range.from;r;r=r.nextSibling,o++)r.nodeName=="LI"&&r.id?o==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected"):o--;return n&&function(i,a){var s=i.getBoundingClientRect(),c=a.getBoundingClientRect(),u=s.height/i.offsetHeight;c.top<s.top?i.scrollTop-=(s.top-c.top)/u:c.bottom>s.bottom&&(i.scrollTop+=(c.bottom-s.bottom)/u)}(this.list,n),n}},{key:"measureInfo",value:function(){var t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;var n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),i=this.space;if(!i){var a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return o.top>Math.min(i.bottom,n.bottom)-10||o.bottom<Math.max(i.top,n.top)+10?null:this.view.state.facet(ei).positionInfo(this.view,n,o,r,i,this.dom)}},{key:"placeInfo",value:function(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}},{key:"createListBox",value:function(t,n,r){var o=document.createElement("ul");o.id=n,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));for(var i=null,a=r.from;a<r.to;a++){var s=t[a],c=s.completion,u=s.match,l=c.section;if(l){var f=typeof l=="string"?l:l.name;f!=i&&(a>r.from||r.from==0)&&(i=f,typeof l!="string"&&l.header?o.appendChild(l.header(l)):o.appendChild(document.createElement("completion-section")).textContent=f)}var d=o.appendChild(document.createElement("li"));d.id=n+"-"+a,d.setAttribute("role","option");var h=this.optionClass(c);h&&(d.className=h);var p,v=ht(this.optionContent);try{for(v.s();!(p=v.n()).done;){var m=(0,p.value)(c,this.view.state,u);m&&d.appendChild(m)}}catch(g){v.e(g)}finally{v.f()}}return r.from&&o.classList.add("cm-completionListIncompleteTop"),r.to<t.length&&o.classList.add("cm-completionListIncompleteBottom"),o}},{key:"destroyInfo",value:function(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}},{key:"destroy",value:function(){this.destroyInfo()}}]),e}();function dbt(e,t){return function(n){return new fbt(n,e,t)}}function tR(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}var hbt=function(){function e(t,n,r,o,i,a){rt(this,e),this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=o,this.selected=i,this.disabled=a}return ot(e,[{key:"setSelected",value:function(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,eR(n,t),this.tooltip,this.timestamp,t,this.disabled)}},{key:"map",value:function(t){return new e(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}],[{key:"build",value:function(t,n,r,o,i){var a=function(l,f){var d,h=[],p=null,v=function(tt){h.push(tt);var yt=tt.completion.section;if(yt){p||(p=[]);var bt=typeof yt=="string"?yt:yt.name;p.some(function(jt){return jt.name==bt})||p.push(typeof yt=="string"?{name:bt}:yt)}},m=ht(l);try{for(m.s();!(d=m.n()).done;){var g=d.value;if(g.hasResult()){var y=g.result.getMatch;if(g.result.filter===!1){var b,w=ht(g.result.options);try{for(w.s();!(b=w.n()).done;){var x=b.value;v(new QT(x,g.source,y?y(x):[],1e9-h.length))}}catch(tt){w.e(tt)}finally{w.f()}}else{var k,j=new ubt(f.sliceDoc(g.from,g.to)),S=ht(g.result.options);try{for(S.s();!(k=S.n()).done;){var N=k.value;if(j.match(N.label)){var C=N.displayLabel?y?y(N,j.matched):[]:j.matched;v(new QT(N,g.source,C,j.score+(N.boost||0)))}}}catch(tt){S.e(tt)}finally{S.f()}}}}}catch(tt){m.e(tt)}finally{m.f()}if(p){var $,B=Object.create(null),K=0,R=ht(p.sort(function(tt,yt){var bt,jt;return((bt=tt.rank)!==null&&bt!==void 0?bt:1e9)-((jt=yt.rank)!==null&&jt!==void 0?jt:1e9)||(tt.name<yt.name?-1:1)}));try{for(R.s();!($=R.n()).done;){var q=$.value;K-=1e5,B[q.name]=K}}catch(tt){R.e(tt)}finally{R.f()}var F,O=ht(h);try{for(O.s();!(F=O.n()).done;){var A=F.value,_=A.completion.section;_&&(A.score+=B[typeof _=="string"?_:_.name])}}catch(tt){O.e(tt)}finally{O.f()}}var M,P=[],D=null,T=f.facet(ei).compareCompletions,H=ht(h.sort(function(tt,yt){return yt.score-tt.score||T(tt.completion,yt.completion)}));try{for(H.s();!(M=H.n()).done;){var I=M.value,ft=I.completion;!D||D.label!=ft.label||D.detail!=ft.detail||D.type!=null&&ft.type!=null&&D.type!=ft.type||D.apply!=ft.apply||D.boost!=ft.boost?P.push(I):tR(I.completion)>tR(D)&&(P[P.length-1]=I),D=I.completion}}catch(tt){H.e(tt)}finally{H.f()}return P}(t,n);if(!a.length)return o&&t.some(function(l){return l.state==1})?new e(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;var s=n.facet(ei).selectOnOpen?0:-1;if(o&&o.selected!=s&&o.selected!=-1){for(var c=o.options[o.selected].completion,u=0;u<a.length;u++)if(a[u].completion==c){s=u;break}}return new e(a,eR(r,s),{pos:t.reduce(function(l,f){return f.hasResult()?Math.min(l,f.from):l},1e8),create:dbt(fi,xH),above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}}]),e}(),pbt=function(){function e(t,n,r){rt(this,e),this.active=t,this.id=n,this.open=r}return ot(e,[{key:"update",value:function(t){var n=this,r=t.state,o=r.facet(ei),i=(o.override||r.languageDataAt("autocomplete",Dc(r)).map(cbt)).map(function(l){var f=n.active.find(function(d){return d.source==l})||new Nu(l,n.active.some(function(d){return d.state!=0})?1:0);return f.update(t,o)});i.length==this.active.length&&i.every(function(l,f){return l==n.active[f]})&&(i=this.active);var a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(function(l){return l.hasResult()&&t.changes.touchesRange(l.from,l.to)})||!function(l,f){if(l==f)return!0;for(var d=0,h=0;;){for(;d<l.length&&!l[d].hasResult;)d++;for(;h<f.length&&!f[h].hasResult;)h++;var p=d==l.length,v=h==f.length;if(p||v)return p==v;if(l[d++].result!=f[h++].result)return!1}}(i,this.active)?a=hbt.build(i,r,this.id,a,o):a&&a.disabled&&!i.some(function(l){return l.state==1})&&(a=null),!a&&i.every(function(l){return l.state!=1})&&i.some(function(l){return l.hasResult()})&&(i=i.map(function(l){return l.hasResult()?new Nu(l.source,0):l}));var s,c=ht(t.effects);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is(wH)&&(a=a&&a.setSelected(u.value,this.id))}}catch(l){c.e(l)}finally{c.f()}return i==this.active&&a==this.open?this:new e(i,this.id,a)}},{key:"tooltip",get:function(){return this.open?this.open.tooltip:null}},{key:"attrs",get:function(){return this.open?this.open.attrs:vbt}}],[{key:"start",value:function(){return new e(mbt,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}}]),e}(),vbt={"aria-autocomplete":"list"};function eR(e,t){var n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}var mbt=[];function Hx(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}var Nu=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;rt(this,e),this.source=t,this.state=n,this.explicitPos=r}return ot(e,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(t,n){var r=Hx(t),o=this;r?o=o.handleUserEvent(t,r,n):t.docChanged?o=o.handleChange(t):t.selection&&o.state!=0&&(o=new e(o.source,0));var i,a=ht(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.is(Xj))o=new e(o.source,1,s.value?Dc(t.state):-1);else if(s.is(ip))o=new e(o.source,0);else if(s.is(bH)){var c,u=ht(s.value);try{for(u.s();!(c=u.n()).done;){var l=c.value;l.source==o.source&&(o=l)}}catch(f){u.e(f)}finally{u.f()}}}}catch(f){a.e(f)}finally{a.f()}return o}},{key:"handleUserEvent",value:function(t,n,r){return n!="delete"&&r.activateOnTyping?new e(this.source,1):this.map(t.changes)}},{key:"handleChange",value:function(t){return t.changes.touchesRange(Dc(t.startState))?new e(this.source,0):this.map(t.changes)}},{key:"map",value:function(t){return t.empty||this.explicitPos<0?this:new e(this.source,this.state,t.mapPos(this.explicitPos))}}]),e}(),yH=function(e){Tt(n,Nu);var t=Rt(n);function n(r,o,i,a,s){var c;return rt(this,n),(c=t.call(this,r,2,o)).result=i,c.from=a,c.to=s,c}return ot(n,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(r,o,i){var a,s=r.changes.mapPos(this.from),c=r.changes.mapPos(this.to,1),u=Dc(r.state);if((this.explicitPos<0?u<=s:u<this.from)||u>c||o=="delete"&&Dc(r.startState)==this.from)return new Nu(this.source,o=="input"&&i.activateOnTyping?1:0);var l,f=this.explicitPos<0?-1:r.changes.mapPos(this.explicitPos);return function(d,h,p,v){if(!d)return!1;var m=h.sliceDoc(p,v);return typeof d=="function"?d(m,p,v,h):gH(d,!0).test(m)}(this.result.validFor,r.state,s,c)?new n(this.source,f,this.result,s,c):this.result.update&&(l=this.result.update(this.result,s,c,new mH(r.state,u,f>=0)))?new n(this.source,f,l,l.from,(a=l.to)!==null&&a!==void 0?a:Dc(r.state)):new Nu(this.source,1,f)}},{key:"handleChange",value:function(r){return r.changes.touchesRange(this.from,this.to)?new Nu(this.source,0):this.map(r.changes)}},{key:"map",value:function(r){return r.empty?this:new n(this.source,this.explicitPos<0?-1:r.mapPos(this.explicitPos),this.result,r.mapPos(this.from),r.mapPos(this.to,1))}}]),n}(),bH=bn.define({map:function(e,t){return e.map(function(n){return n.map(t)})}}),wH=bn.define(),fi=_o.define({create:function(){return pbt.start()},update:function(e,t){return e.update(t)},provide:function(e){return[s1.from(e,function(t){return t.tooltip}),ye.contentAttributes.from(e,function(t){return t.attrs})]}});function xH(e,t){var n=t.completion.apply||t.completion.label,r=e.state.field(fi).active.find(function(o){return o.source==t.source});return r instanceof yH&&(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},function(o,i,a,s){var c=o.selection.main,u=a-c.from,l=s-c.from;return Object.assign(Object.assign({},o.changeByRange(function(f){return f!=c&&a!=s&&o.sliceDoc(f.from+u,f.from+l)!=o.sliceDoc(a,s)?{range:f}:{changes:{from:f.from+u,to:s==c.from?f.to:f.from+l,insert:i},range:Jt.cursor(f.from+u+i.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,r.from,r.to)),{annotations:sbt.of(t.completion)})):n(e,t.completion,r.from,r.to),!0)}function Uv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"option";return function(n){var r=n.state.field(fi,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(ei).interactionDelay)return!1;var o,i=1;t=="page"&&(o=ZF(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));var a=r.open.options.length,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:wH.of(s)}),!0}}var gbt=ot(function e(t,n){rt(this,e),this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}),ybt=Zr.fromClass(function(){function e(t){rt(this,e),this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var n,r=ht(t.state.field(fi).active);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.state==1&&this.startQuery(o)}}catch(i){r.e(i)}finally{r.f()}}return ot(e,[{key:"update",value:function(t){var n=this,r=t.state.field(fi);if(t.selectionSet||t.docChanged||t.startState.field(fi)!=r){for(var o=t.transactions.some(function(p){return(p.selection||p.docChanged)&&!Hx(p)}),i=0;i<this.running.length;i++){var a=this.running[i];if(o||a.updates.length+t.transactions.length>50&&Date.now()-a.time>1e3){var s,c=ht(a.context.abortListeners);try{for(c.s();!(s=c.n()).done;){var u=s.value;try{u()}catch(p){Vi(this.view.state,p)}}}catch(p){c.e(p)}finally{c.f()}a.context.abortListeners=null,this.running.splice(i--,1)}else{var l;(l=a.updates).push.apply(l,Se(t.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=r.active.some(function(p){return p.state==1&&!n.running.some(function(v){return v.active.source==p.source})})?setTimeout(function(){return n.startUpdate()},50):-1,this.composing!=0){var f,d=ht(t.transactions);try{for(d.s();!(f=d.n()).done;){var h=f.value;Hx(h)=="input"?this.composing=2:this.composing==2&&h.selection&&(this.composing=3)}}catch(p){d.e(p)}finally{d.f()}}}}},{key:"startUpdate",value:function(){var t=this;this.debounceUpdate=-1;var n,r=ht(this.view.state.field(fi).active);try{var o=function(){var i=n.value;i.state!=1||t.running.some(function(a){return a.active.source==i.source})||t.startQuery(i)};for(r.s();!(n=r.n()).done;)o()}catch(i){r.e(i)}finally{r.f()}}},{key:"startQuery",value:function(t){var n=this,r=this.view.state,o=Dc(r),i=new mH(r,o,t.explicitPos==o),a=new gbt(t,i);this.running.push(a),Promise.resolve(t.source(i)).then(function(s){a.context.aborted||(a.done=s||null,n.scheduleAccept())},function(s){n.view.dispatch({effects:ip.of(null)}),Vi(n.view.state,s)})}},{key:"scheduleAccept",value:function(){var t=this;this.running.every(function(n){return n.done!==void 0})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return t.accept()},50))}},{key:"accept",value:function(){var t,n=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var r=[],o=this.view.state.facet(ei),i=function(s){var c=n.running[s];if(c.done===void 0)return a=s,0;if(n.running.splice(s--,1),c.done){var u,l=new yH(c.active.source,c.active.explicitPos,c.done,c.done.from,(t=c.done.to)!==null&&t!==void 0?t:Dc(c.updates.length?c.updates[0].startState:n.view.state)),f=ht(c.updates);try{for(f.s();!(u=f.n()).done;){var d=u.value;l=l.update(d,o)}}catch(y){f.e(y)}finally{f.f()}if(l.hasResult())return r.push(l),a=s,0}var h=n.view.state.field(fi).active.find(function(y){return y.source==c.active.source});if(h&&h.state==1)if(c.done==null){var p,v=new Nu(c.active.source,0),m=ht(c.updates);try{for(m.s();!(p=m.n()).done;){var g=p.value;v=v.update(g,o)}}catch(y){m.e(y)}finally{m.f()}v.state!=1&&r.push(v)}else n.startQuery(h);a=s},a=0;a<this.running.length;a++)i(a);r.length&&this.view.dispatch({effects:bH.of(r)})}}]),e}(),{eventHandlers:{blur:function(e){var t=this.view.state.field(fi,!1);if(t&&t.tooltip&&this.view.state.facet(ei).closeOnBlur){var n=t.open&&ZF(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:ip.of(null)})}},compositionstart:function(){this.composing=1},compositionend:function(){var e=this;this.composing==3&&setTimeout(function(){return e.view.dispatch({effects:Xj.of(!1)})},20),this.composing=0}}}),bbt=ye.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),ap={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Du=bn.define({map:function(e,t){var n=t.mapPos(e,-1,Fo.TrackAfter);return n??void 0}}),Vx=new(function(e){Tt(n,Ru);var t=Rt(n);function n(){return rt(this,n),t.apply(this,arguments)}return ot(n)}());Vx.startSide=1,Vx.endSide=-1;var kH=_o.define({create:function(){return vr.empty},update:function(e,t){if(t.selection){var n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=vr.empty)}e=e.map(t.changes);var o,i=ht(t.effects);try{for(i.s();!(o=i.n()).done;){var a=o.value;a.is(Du)&&(e=e.update({add:[Vx.range(a.value,a.value+1)]}))}}catch(s){i.e(s)}finally{i.f()}return e}}),tb="()[]{}<>";function jH(e){for(var t=0;t<tb.length;t+=2)if(tb.charCodeAt(t)==e)return tb.charAt(t+1);return Sj(e<128?e:e+1)}function _H(e,t){return e.languageDataAt("closeBrackets",t)[0]||ap}var wbt=(typeof navigator>"u"?"undefined":ce(navigator))=="object"&&/Android\b/.test(navigator.userAgent),xbt=ye.inputHandler.of(function(e,t,n,r){if((wbt?e.composing:e.compositionStarted)||e.state.readOnly)return!1;var o=e.state.selection.main;if(r.length>2||r.length==2&&Pi(wo(r,0))==1||t!=o.from||n!=o.to)return!1;var i=function(a,s){var c,u=_H(a,a.selection.main.head),l=u.brackets||ap.brackets,f=ht(l);try{for(f.s();!(c=f.n()).done;){var d=c.value,h=jH(wo(d,0));if(s==d)return h==d?Sbt(a,d,l.indexOf(d+d+d)>-1,u):jbt(a,d,h,u.before||ap.before);if(s==h&&SH(a,a.selection.main.from))return _bt(a,d,h)}}catch(p){f.e(p)}finally{f.f()}return null}(e.state,r);return!!i&&(e.dispatch(i),!0)}),kbt=[{key:"Backspace",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=_H(t,t.selection.main.head).brackets||ap.brackets,o=null,i=t.changeByRange(function(a){if(a.empty){var s,c=function(f,d){var h=f.sliceString(d-2,d);return Pi(wo(h,0))==h.length?h:h.slice(1)}(t.doc,a.head),u=ht(r);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(l==c&&p1(t.doc,a.head)==jH(wo(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Jt.cursor(a.head-l.length)}}}catch(f){u.e(f)}finally{u.f()}}return{range:o=a}});return o||n(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function SH(e,t){var n=!1;return e.field(kH).between(0,e.doc.length,function(r){r==t&&(n=!0)}),n}function p1(e,t){var n=e.sliceString(t,t+2);return n.slice(0,Pi(wo(n,0)))}function jbt(e,t,n,r){var o=null,i=e.changeByRange(function(a){if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Du.of(a.to+t.length),range:Jt.range(a.anchor+t.length,a.head+t.length)};var s=p1(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Du.of(a.head+t.length),range:Jt.cursor(a.head+t.length)}:{range:o=a}});return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function _bt(e,t,n){var r=null,o=e.changeByRange(function(i){return i.empty&&p1(e.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:Jt.cursor(i.head+n.length)}:r={range:i}});return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Sbt(e,t,n,r){var o=r.stringPrefixes||ap.stringPrefixes,i=null,a=e.changeByRange(function(s){if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Du.of(s.to+t.length),range:Jt.range(s.anchor+t.length,s.head+t.length)};var c,u=s.head,l=p1(e.doc,u);if(l==t){if(nR(e,u))return{changes:{insert:t+t,from:u},effects:Du.of(u+t.length),range:Jt.cursor(u+t.length)};if(SH(e,u)){var f=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+f.length,insert:f},range:Jt.cursor(u+f.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(c=rR(e,u-2*t.length,o))>-1&&nR(e,c))return{changes:{insert:t+t+t+t,from:u},effects:Du.of(u+t.length),range:Jt.cursor(u+t.length)};if(e.charCategorizer(u)(l)!=Sr.Word&&rR(e,u,o)>-1&&!function(d,h,p,v){for(var m=Io(d).resolveInner(h,-1),g=v.reduce(function(j,S){return Math.max(j,S.length)},0),y=0;y<5;y++){var b=d.sliceDoc(m.from,Math.min(m.to,m.from+p.length+g)),w=b.indexOf(p);if(!w||w>-1&&v.indexOf(b.slice(0,w))>-1){for(var x=m.firstChild;x&&x.from==m.from&&x.to-x.from>p.length+w;){if(d.sliceDoc(x.to-p.length,x.to)==p)return!1;x=x.firstChild}return!0}var k=m.to==h&&m.parent;if(!k)break;m=k}return!1}(e,u,t,o))return{changes:{insert:t+t,from:u},effects:Du.of(u+t.length),range:Jt.cursor(u+t.length)}}return{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function nR(e,t){var n=Io(e).resolveInner(t+1);return n.parent&&n.from==t}function rR(e,t,n){var r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Sr.Word)return t;var o,i=ht(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=t-a.length;if(e.sliceDoc(s,t)==a&&r(e.sliceDoc(s-1,s))!=Sr.Word)return s}}catch(c){i.e(c)}finally{i.f()}return-1}function $bt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[fi,ei.of(e),ybt,Cbt,bbt]}var $H=[{key:"Ctrl-Space",run:function(e){return!!e.state.field(fi,!1)&&(e.dispatch({effects:Xj.of(!0)}),!0)}},{key:"Escape",run:function(e){var t=e.state.field(fi,!1);return!(!t||!t.active.some(function(n){return n.state!=0}))&&(e.dispatch({effects:ip.of(null)}),!0)}},{key:"ArrowDown",run:Uv(!0)},{key:"ArrowUp",run:Uv(!1)},{key:"PageDown",run:Uv(!0,"page")},{key:"PageUp",run:Uv(!1,"page")},{key:"Enter",run:function(e){var t=e.state.field(fi,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(ei).interactionDelay)&&xH(e,t.open.options[t.open.selected])}}],Cbt=ad.highest(Ig.computeN([ei],function(e){return e.facet(ei).defaultKeymap?[$H]:[]}));function Ebt(e){ze(e,"svelte-1oo7hnc",".jse-status-bar.svelte-1oo7hnc.svelte-1oo7hnc{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);margin:0;border-top:var(--jse-panel-border);border-left:var(--jse-main-border);border-right:var(--jse-main-border);display:flex;gap:var(--jse-padding)}.jse-status-bar.svelte-1oo7hnc.svelte-1oo7hnc:last-child{border-bottom:var(--jse-main-border)}.jse-status-bar.svelte-1oo7hnc .jse-status-bar-info.svelte-1oo7hnc{padding:2px}")}function oR(e){var t,n,r;return{c:function(){t=et("div"),n=Gt("Line: "),r=Gt(e[0]),E(t,"class","jse-status-bar-info svelte-1oo7hnc")},m:function(o,i){dt(o,t,i),V(t,n),V(t,r)},p:function(o,i){1&i&&we(r,o[0])},d:function(o){o&&lt(t)}}}function iR(e){var t,n,r;return{c:function(){t=et("div"),n=Gt("Column: "),r=Gt(e[1]),E(t,"class","jse-status-bar-info svelte-1oo7hnc")},m:function(o,i){dt(o,t,i),V(t,n),V(t,r)},p:function(o,i){2&i&&we(r,o[1])},d:function(o){o&&lt(t)}}}function aR(e){var t,n,r,o;return{c:function(){t=et("div"),n=Gt("Selection: "),r=Gt(e[2]),o=Gt(" characters"),E(t,"class","jse-status-bar-info svelte-1oo7hnc")},m:function(i,a){dt(i,t,a),V(t,n),V(t,r),V(t,o)},p:function(i,a){4&a&&we(r,i[2])},d:function(i){i&&lt(t)}}}function Obt(e){var t,n,r,o=e[0]!==void 0&&oR(e),i=e[1]!==void 0&&iR(e),a=e[2]!==void 0&&e[2]>0&&aR(e);return{c:function(){t=et("div"),o&&o.c(),n=kt(),i&&i.c(),r=kt(),a&&a.c(),E(t,"class","jse-status-bar svelte-1oo7hnc")},m:function(s,c){dt(s,t,c),o&&o.m(t,null),V(t,n),i&&i.m(t,null),V(t,r),a&&a.m(t,null)},p:function(s,c){var u=$e(c,1)[0];s[0]!==void 0?o?o.p(s,u):((o=oR(s)).c(),o.m(t,n)):o&&(o.d(1),o=null),s[1]!==void 0?i?i.p(s,u):((i=iR(s)).c(),i.m(t,r)):i&&(i.d(1),i=null),s[2]!==void 0&&s[2]>0?a?a.p(s,u):((a=aR(s)).c(),a.m(t,null)):a&&(a.d(1),a=null)},i:Ht,o:Ht,d:function(s){s&&lt(t),o&&o.d(),i&&i.d(),a&&a.d()}}}function Mbt(e,t,n){var r,o,i,a,s,c=t.editorState;return e.$$set=function(u){"editorState"in u&&n(3,c=u.editorState)},e.$$.update=function(){var u,l,f;8&e.$$.dirty&&n(4,r=(u=c)===null||u===void 0||(u=u.selection)===null||u===void 0||(u=u.main)===null||u===void 0?void 0:u.head),24&e.$$.dirty&&n(5,o=(l=c)===null||l===void 0||(l=l.doc)===null||l===void 0?void 0:l.lineAt(r)),32&e.$$.dirty&&n(0,i=o?o.number:void 0),48&e.$$.dirty&&n(1,a=o?r-o.from+1:void 0),8&e.$$.dirty&&n(2,s=(f=c)===null||f===void 0||(f=f.selection)===null||f===void 0||(f=f.ranges)===null||f===void 0?void 0:f.reduce(function(d,h){return d+h.to-h.from},0))},[i,a,s,c,r,o]}var Abt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Mbt,Obt,to,{editorState:3},Ebt),o}return ot(n)}(),Zj=Lj.define([{tag:re.propertyName,color:"var(--jse-key-color)"},{tag:re.number,color:"var(--jse-value-color-number)"},{tag:re.bool,color:"var(--jse-value-color-boolean)"},{tag:re.string,color:"var(--jse-value-color-string)"},{tag:re.keyword,color:"var(--jse-value-color-null)"}]),Pbt=wq(Zj),Tbt=Zj.style;function Ux(e){var t=e.selection.main.head;return e.doc.lineAt(t)}function sR(e,t){var n=0;t:for(var r=0;r<e.length;r++)switch(e[r]){case" ":n+=1;continue t;case" ":n+=t-n%t;continue t;case"\r":continue t;default:break t}return n}Zj.style=function(e){return Tbt(e||[])};var Yg=xe.define({combine:function(e){return Xi(e,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})}}),Rbt=function(){function e(t,n,r,o){rt(this,e),this.lines=t,this.state=n,this.map=new Map,this.unitWidth=r,this.markerType=o;var i,a=ht(this.lines);try{for(a.s();!(i=a.n()).done;){var s=i.value;this.add(s)}}catch(c){a.e(c)}finally{a.f()}this.state.facet(Yg).highlightActiveBlock&&this.findAndSetActiveLines()}return ot(e,[{key:"has",value:function(t){return this.map.has(typeof t=="number"?t:t.number)}},{key:"get",value:function(t){var n=this.map.get(typeof t=="number"?t:t.number);if(!n)throw new Error("Line not found in indentation map");return n}},{key:"set",value:function(t,n,r){var o=!t.text.trim().length,i={line:t,col:n,level:r,empty:o};return this.map.set(i.line.number,i),i}},{key:"add",value:function(t){if(this.has(t))return this.get(t);if(!t.length||!t.text.trim().length){if(t.number===1)return this.set(t,0,0);if(t.number===this.state.doc.lines){var n=this.closestNonEmpty(t,-1);return this.set(t,0,n.level)}var r=this.closestNonEmpty(t,-1),o=this.closestNonEmpty(t,1);return r.level>=o.level&&this.markerType!=="codeOnly"?this.set(t,0,r.level):r.empty&&r.level===0&&o.level!==0?this.set(t,0,0):o.level>r.level?this.set(t,0,r.level+1):this.set(t,0,o.level)}var i=sR(t.text,this.state.tabSize),a=Math.floor(i/this.unitWidth);return this.set(t,i,a)}},{key:"closestNonEmpty",value:function(t,n){for(var r=t.number+n;n===-1?r>=1:r<=this.state.doc.lines;){if(this.has(r)){var o=this.get(r);if(!o.empty)return o}var i=this.state.doc.line(r);if(i.text.trim().length){var a=sR(i.text,this.state.tabSize),s=Math.floor(a/this.unitWidth);return this.set(i,a,s)}r+=n}var c=this.state.doc.line(n===-1?1:this.state.doc.lines);return this.set(c,0,0)}},{key:"findAndSetActiveLines",value:function(){var t=Ux(this.state);if(this.has(t)){var n=this.get(t);if(this.has(n.line.number+1)){var r=this.get(n.line.number+1);r.level>n.level&&(n=r)}if(this.has(n.line.number-1)){var o=this.get(n.line.number-1);o.level>n.level&&(n=o)}if(n.level!==0){var i,a;for(n.active=n.level,i=n.line.number;i>1;i--)if(this.has(i-1)){var s=this.get(i-1);if(s.level<n.level)break;s.active=n.level}for(a=n.line.number;a<this.state.doc.lines;a++)if(this.has(a+1)){var c=this.get(a+1);if(c.level<n.level)break;c.active=n.level}}}}}]),e}();function Ibt(e){var t={light:"#F0F1F2",dark:"#2B3245",activeLight:"#E4E5E6",activeDark:"#3C445C"},n=t;return e&&(n=Object.assign(Object.assign({},t),e)),ye.baseTheme({"&light":{"--indent-marker-bg-color":n.light,"--indent-marker-active-bg-color":n.activeLight},"&dark":{"--indent-marker-bg-color":n.dark,"--indent-marker-active-bg-color":n.activeDark},".cm-line":{position:"relative"},".cm-indent-markers::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:"var(--indent-markers)",pointerEvents:"none",zIndex:"-1"}})}function Wv(e,t,n,r,o){var i="repeating-linear-gradient(to right, var(".concat(e,") 0 ").concat(t,"px, transparent ").concat(t,"px ").concat(n,"ch)");return"".concat(i," ").concat(r*n,".5ch/calc(").concat(n*o,"ch - 1px) no-repeat")}function Nbt(e,t,n,r){var o=e.level,i=e.active;if(n&&o===0)return[];var a=n?1:0,s=[];if(i!==void 0){var c=i-a-1;c>0&&s.push(Wv("--indent-marker-bg-color",r,t,a,c)),s.push(Wv("--indent-marker-active-bg-color",r,t,i-1,1)),i!==o&&s.push(Wv("--indent-marker-bg-color",r,t,i,o-i))}else s.push(Wv("--indent-marker-bg-color",r,t,a,o-a));return s.join(",")}var Dbt=function(){function e(t){rt(this,e),this.view=t,this.unitWidth=Xc(t.state),this.currentLineNumber=Ux(t.state).number,this.generate(t.state)}return ot(e,[{key:"update",value:function(t){var n=Xc(t.state),r=n!==this.unitWidth;r&&(this.unitWidth=n);var o=Ux(t.state).number,i=o!==this.currentLineNumber;this.currentLineNumber=o;var a=t.state.facet(Yg).highlightActiveBlock&&i;(t.docChanged||t.viewportChanged||r||a)&&this.generate(t.state)}},{key:"generate",value:function(t){var n,r=new Jc,o=function(p){var v,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.state,g=new Set,y=ht(p.visibleRanges);try{for(y.s();!(v=y.n()).done;)for(var b=v.value,w=b.from,x=b.to,k=w;k<=x;){var j=m.doc.lineAt(k);g.has(j)||g.add(j),k=j.to+1}}catch(S){y.e(S)}finally{y.f()}return g}(this.view,t),i=t.facet(Yg),a=i.hideFirstIndent,s=i.markerType,c=i.thickness,u=new Rbt(o,t,this.unitWidth,s),l=ht(o);try{for(l.s();!(n=l.n()).done;){var f=n.value,d=u.get(f.number);if(d!=null&&d.level){var h=Nbt(d,this.unitWidth,a,c);r.add(f.from,f.from,We.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(h)}}))}}}catch(p){l.e(p)}finally{l.f()}this.decorations=r.finish()}}]),e}();function zbt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Yg.of(e),Ibt(e.colors),Zr.fromClass(Dbt,{decorations:function(t){return t.decorations}})]}var Lbt=function(){function e(t){rt(this,e),this.view=t,this.indentUnit=Xc(t.state),this.initialPaddingLeft=null,this.generate(t.state)}return ot(e,[{key:"update",value:function(t){var n=Xc(t.state);(n!==this.indentUnit||t.docChanged||t.viewportChanged)&&(this.indentUnit=n,this.generate(t.state))}},{key:"generate",value:function(t){var n=this,r=new Jc;this.initialPaddingLeft?this.addStyleToBuilder(r,t,this.initialPaddingLeft):this.view.requestMeasure({read:function(o){var i=o.contentDOM.querySelector(".cm-line");i&&(n.initialPaddingLeft=window.getComputedStyle(i).getPropertyValue("padding-left"),n.addStyleToBuilder(r,t,n.initialPaddingLeft)),n.decorations=r.finish()}}),this.decorations=r.finish()}},{key:"addStyleToBuilder",value:function(t,n,r){var o,i=ht(this.getVisibleLines(n));try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.getIndentSize(a),c="calc(".concat(s+this.indentUnit,"ch + ").concat(r,")");t.add(a.from,a.from,We.line({attributes:{style:"padding-left: ".concat(c,"; text-indent: -").concat(s+this.indentUnit,"ch;")}}))}}catch(u){i.e(u)}finally{i.f()}}},{key:"getVisibleLines",value:function(t){var n,r=new Set,o=null,i=ht(this.view.visibleRanges);try{for(i.s();!(n=i.n()).done;)for(var a=n.value,s=a.from,c=a.to,u=s;u<=c;){var l=t.doc.lineAt(u);o!==l&&(r.add(l),o=l),u=l.to+1}}catch(f){i.e(f)}finally{i.f()}return r}},{key:"getIndentSize",value:function(t){return t.text.length-t.text.trimStart().length}}]),e}(),Bbt=[Zr.fromClass(Lbt,{decorations:function(e){return e.decorations}})];function Fbt(e){ze(e,"svelte-10sadri",'.jse-text-mode.svelte-10sadri.svelte-10sadri{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-10sadri.svelte-10sadri{border-top:var(--jse-main-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-10sadri .jse-contents.jse-hidden.svelte-10sadri{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-activeLine,.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-10sadri .jse-contents .jse-loading-space.svelte-10sadri{flex:1}.jse-text-mode.svelte-10sadri .jse-contents .jse-loading.svelte-10sadri{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-10sadri .jse-contents.jse-preview.svelte-10sadri{flex:1;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function eb(e){var t=e.slice(),n=t[11].length===0;return t[98]=n,t}function cR(e){var t,n;return t=new mgt({props:{readOnly:e[1],onFormat:e[17],onCompact:e[18],onSort:e[19],onTransform:e[20],onToggleSearch:e[21],onUndo:e[22],onRedo:e[23],canFormat:!e[98],canCompact:!e[98],canSort:!e[98],canTransform:!e[98],canUndo:e[12],canRedo:e[13],onRenderMenu:e[4]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.readOnly=r[1]),2048&o[0]&&(i.canFormat=!r[98]),2048&o[0]&&(i.canCompact=!r[98]),2048&o[0]&&(i.canSort=!r[98]),2048&o[0]&&(i.canTransform=!r[98]),4096&o[0]&&(i.canUndo=r[12]),8192&o[0]&&(i.canRedo=r[13]),16&o[0]&&(i.onRenderMenu=r[4]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function qbt(e){var t;return{c:function(){(t=et("div")).innerHTML='<div class="jse-loading-space svelte-10sadri"></div> <div class="jse-loading svelte-10sadri">loading...</div>',E(t,"class","jse-contents svelte-10sadri")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function Hbt(e){var t,n,r,o,i,a=e[97]&&uR(e),s=!e[97]&&lR(e);return{c:function(){t=et("div"),n=kt(),a&&a.c(),r=kt(),s&&s.c(),o=_n(),E(t,"class","jse-contents svelte-10sadri"),Dt(t,"jse-hidden",e[97])},m:function(c,u){dt(c,t,u),e[52](t),dt(c,n,u),a&&a.m(c,u),dt(c,r,u),s&&s.m(c,u),dt(c,o,u),i=!0},p:function(c,u){(!i||268438016&u[0])&&Dt(t,"jse-hidden",c[97]),c[97]?a?(a.p(c,u),2560&u[0]&&L(a,1)):((a=uR(c)).c(),L(a,1),a.m(r.parentNode,r)):a&&(Bt(),U(a,1,1,function(){a=null}),Ft()),c[97]?s&&(Bt(),U(s,1,1,function(){s=null}),Ft()):s?(s.p(c,u),2560&u[0]&&L(s,1)):((s=lR(c)).c(),L(s,1),s.m(o.parentNode,o))},i:function(c){i||(L(a),L(s),i=!0)},o:function(c){U(a),U(s),i=!1},d:function(c){c&&(lt(t),lt(n),lt(r),lt(o)),e[52](null),a&&a.d(c),s&&s.d(c)}}}function uR(e){var t,n,r,o,i,a=Us(e[11]||"",iw)+"";return t=new Aa({props:{icon:hl,type:"error",message:"The JSON document is larger than ".concat(wv(aw,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(wv(e[11].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:e[24]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:e[25]},{text:"Cancel",title:"Cancel opening this large document.",onClick:e[26]}],onClose:e[5]}}),{c:function(){Pt(t.$$.fragment),n=kt(),r=et("div"),o=Gt(a),E(r,"class","jse-contents jse-preview svelte-10sadri")},m:function(s,c){Mt(t,s,c),dt(s,n,c),dt(s,r,c),V(r,o),i=!0},p:function(s,c){var u={};2048&c[0]&&(u.message="The JSON document is larger than ".concat(wv(aw,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(wv(s[11].length,1024),".")),t.$set(u),(!i||2048&c[0])&&a!==(a=Us(s[11]||"",iw)+"")&&we(o,a)},i:function(s){i||(L(t.$$.fragment,s),i=!0)},o:function(s){U(t.$$.fragment,s),i=!1},d:function(s){s&&(lt(n),lt(r)),At(t,s)}}}function lR(e){var t,n,r,o,i,a=!e[14]&&e[0]&&FO(e[11]),s=e[3]&&fR(e),c=e[14]&&dR(e),u=a&&hR(e);return o=new gj({props:{validationErrors:e[10],selectError:e[27]}}),{c:function(){s&&s.c(),t=kt(),c&&c.c(),n=kt(),u&&u.c(),r=kt(),Pt(o.$$.fragment)},m:function(l,f){s&&s.m(l,f),dt(l,t,f),c&&c.m(l,f),dt(l,n,f),u&&u.m(l,f),dt(l,r,f),Mt(o,l,f),i=!0},p:function(l,f){l[3]?s?(s.p(l,f),8&f[0]&&L(s,1)):((s=fR(l)).c(),L(s,1),s.m(t.parentNode,t)):s&&(Bt(),U(s,1,1,function(){s=null}),Ft()),l[14]?c?(c.p(l,f),16384&f[0]&&L(c,1)):((c=dR(l)).c(),L(c,1),c.m(n.parentNode,n)):c&&(Bt(),U(c,1,1,function(){c=null}),Ft()),18433&f[0]&&(a=!l[14]&&l[0]&&FO(l[11])),a?u?(u.p(l,f),18433&f[0]&&L(u,1)):((u=hR(l)).c(),L(u,1),u.m(r.parentNode,r)):u&&(Bt(),U(u,1,1,function(){u=null}),Ft());var d={};1024&f[0]&&(d.validationErrors=l[10]),o.$set(d)},i:function(l){i||(L(s),L(c),L(u),L(o.$$.fragment,l),i=!0)},o:function(l){U(s),U(c),U(u),U(o.$$.fragment,l),i=!1},d:function(l){l&&(lt(t),lt(n),lt(r)),s&&s.d(l),c&&c.d(l),u&&u.d(l),At(o,l)}}}function fR(e){var t,n;return t=new Abt({props:{editorState:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};256&o[0]&&(i.editorState=r[8]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function dR(e){var t,n;return t=new Aa({props:{type:"error",icon:hl,message:e[14].message,actions:e[15],onClick:e[29],onClose:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};16384&o[0]&&(i.message=r[14].message),32768&o[0]&&(i.actions=r[15]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function hR(e){var t,n;return t=new Aa({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:Bw,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:e[17]},{icon:Of,text:"No thanks",title:"Close this message",onClick:e[53]}],onClose:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=[{icon:Bw,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:r[17]},{icon:Of,text:"No thanks",title:"Close this message",onClick:r[53]}]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Vbt(e){var t,n,r,o,i,a=e[2]&&cR(eb(e)),s=[Hbt,qbt],c=[];function u(l,f){return f===0?function(d){var h=d.slice(),p=h[28](h[11],h[9]);return h[97]=p,h}(l):l}return r=function(l,f){return l[16]?1:0}(e),o=c[r]=s[r](u(e,r)),{c:function(){t=et("div"),a&&a.c(),n=kt(),o.c(),E(t,"class","jse-text-mode svelte-10sadri"),Dt(t,"no-main-menu",!e[2])},m:function(l,f){dt(l,t,f),a&&a.m(t,null),V(t,n),c[r].m(t,null),e[54](t),i=!0},p:function(l,f){l[2]?a?(a.p(eb(l),f),4&f[0]&&L(a,1)):((a=cR(eb(l))).c(),L(a,1),a.m(t,n)):a&&(Bt(),U(a,1,1,function(){a=null}),Ft()),o.p(u(l,r),f),(!i||4&f[0])&&Dt(t,"no-main-menu",!l[2])},i:function(l){i||(L(a),L(o),i=!0)},o:function(l){U(a),U(o),i=!1},d:function(l){l&&lt(t),a&&a.d(),c[r].d(),e[54](null)}}}function pR(e){return{from:e.from||0,to:e.to||0,message:e.message||"",actions:e.actions,severity:e.severity}}function Ubt(e,t,n){var r,o,i,a,s,c,u=t.readOnly,l=t.mainMenuBar,f=t.statusBar,d=t.askToFormat,h=t.externalContent,p=t.externalSelection,v=t.indentation,m=t.tabSize,g=t.escapeUnicodeCharacters,y=t.parser,b=t.validator,w=t.validationParser,x=t.onChange,k=t.onChangeMode,j=t.onSelect,S=t.onError,N=t.onFocus,C=t.onBlur,$=t.onRenderMenu,B=t.onSortModal,K=t.onTransformModal,R=ho("jsoneditor:TextMode"),q={key:"Mod-i",run:it,shift:X,preventDefault:!0},F=typeof window>"u";R("isSSR:",F);var O=!1,A=[],_=new Cu,M=new Cu,P=new Cu,D=new Cu,T=new Cu,H=h,I=Cw(H,v,y),ft=g;Ui(Ae(qt().mark(function Et(){return qt().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(!F){ie.next=2;break}return ie.abrupt("return");case 2:try{s=mt({target:i,initialText:qn(I,O)?"":r.escapeValue(I),readOnly:u,indentation:v})}catch(Be){console.error(Be)}case 3:case"end":return ie.stop()}},Et)}))),yi(function(){s&&(R("Destroy CodeMirror editor"),s.destroy())});var tt=!1,yt=!1,bt=el(),jt=el();function gt(){s&&(R("focus"),s.focus())}var Y=!1;function J(Et){R("patch",Et);var ie=y.parse(I),Be=xa(ie,Et),en=nD(ie,Et);return Qt({text:y.stringify(Be,null,v)}),{json:Be,previousJson:ie,undo:en,redo:Et}}function it(){if(R("format"),u)return!1;try{var Et=y.parse(I);return Qt({text:y.stringify(Et,null,v)}),n(0,d=!0),!0}catch(ie){S(ie)}return!1}function X(){if(R("compact"),u)return!1;try{var Et=y.parse(I);return Qt({text:y.stringify(Et)}),n(0,d=!1),!0}catch(ie){S(ie)}return!1}function _t(){if(R("repair"),!u)try{Qt({text:Xa(I)}),n(51,In=W1),n(14,Zn=null)}catch(Et){S(Et)}}function z(Et){var ie=Et.id,Be=Et.rootPath,en=Et.onTransform,$t=Et.onClose;try{var Xt=y.parse(I);Y=!0,K({id:ie||jt,json:Xt,rootPath:Be||[],onTransform:function(Q){en?en({operations:Q,json:Xt,transformedJson:xa(Xt,Q)}):(R("onTransform",Q),J(Q))},onClose:function(){Y=!1,gt(),$t&&$t()}})}catch(Q){S(Q)}}function W(Et,ie){R("setSelection",{anchor:Et,head:ie}),s&&s.dispatch(s.state.update({selection:{anchor:Et,head:ie},scrollIntoView:!0}))}function G(Et,ie){if(ie.state.selection.ranges.length===1){var Be=ie.state.selection.ranges[0],en=I.slice(Be.from,Be.to);if(en==="{"||en==="["){var $t=lg.parse(I),Xt=Object.keys($t.pointers).find(function(at){var vt;return((vt=$t.pointers[at].value)===null||vt===void 0?void 0:vt.pos)===Be.from}),Q=$t.pointers[Xt];Xt&&Q&&Q.value&&Q.valueEnd&&(R("pointer found, selecting inner contents of path:",Xt,Q),W(Q.value.pos+1,Q.valueEnd.pos-1))}}}function pt(){return function(Et){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return[Iu.of({source:Et,config:ie}),kyt,cH]}(Sn,{delay:300})}function mt(Et){var ie=Et.target,Be=Et.initialText,en=Et.readOnly,$t=Et.indentation;R("Create CodeMirror editor",{readOnly:en,indentation:$t});var Xt,Q=fr.create({doc:Be,selection:ee(p),extensions:[Ig.of([gyt,q]),_.of(pt()),Oyt(),Q0t(),X0t,C0t(),eyt(),M1t(),b0t(),[Ud,j0t],fr.allowMultipleSelections.of(!0),fr.transactionFilter.of(function(at){if(!at.docChanged||!at.isUserEvent("input.type")&&!at.isUserEvent("input.complete"))return at;var vt=at.startState.languageDataAt("indentOnInput",at.startState.selection.main.head);if(!vt.length)return at;var ut=at.newDoc,It=at.newSelection.main.head,ne=ut.lineAt(It);if(It>ne.from+_1t)return at;var pe=ut.sliceString(ne.from,It);if(!vt.some(function(Nt){return Nt.test(pe)}))return at;var Xe,Fe=at.state,xn=-1,On=[],ke=ht(Fe.selection.ranges);try{for(ke.s();!(Xe=ke.n()).done;){var gn=Xe.value.head,pn=Fe.doc.lineAt(gn);if(pn.from!=xn){xn=pn.from;var tr=Dj(Fe,pn.from);if(tr!=null){var yn=/^\s*/.exec(pn.text)[0],ct=np(Fe,tr);yn!=ct&&On.push({from:pn.from,to:pn.from+yn.length,insert:ct})}}}}catch(Nt){ke.e(Nt)}finally{ke.f()}return On.length?[at,{changes:On,sequential:!0}]:at}),wq(R1t,{fallback:!0}),F1t(),[xbt,kH],$bt(),T0t(),N0t(),A0t,(Xt=[Jyt,Kyt],Xt),Ig.of([].concat(kbt,Se(myt),rbt,lyt,$1t,$H,xyt)),Pbt,zbt({hideFirstIndent:!0}),ye.domEventHandlers({dblclick:G}),ye.updateListener.of(function(at){n(8,c=at.state),at.docChanged?Ne():at.selectionSet&&Ke()}),new y1t(Fyt),Gyt({top:!0}),M.of(fr.readOnly.of(en)),D.of(fr.tabSize.of(m)),P.of(le($t)),T.of(ye.theme({},{dark:Ot()})),ye.lineWrapping,Bbt]});return s=new ye({state:Q,parent:ie})}function Ot(){return!!i&&getComputedStyle(i).getPropertyValue("--jse-theme").includes("dark")}function Ct(Et){var ie=Et.path,Be=Et.message,en=function($t,Xt){try{var Q=lg.parse($t),at=oe(Xt),vt=Q.pointers[at];if(vt)return{path:Xt,line:vt.key?vt.key.line:vt.value?vt.value.line:0,column:vt.key?vt.key.column:vt.value?vt.value.column:0,from:vt.key?vt.key.pos:vt.value?vt.value.pos:0,to:vt.keyEnd?vt.keyEnd.pos:vt.valueEnd?vt.valueEnd.pos:0}}catch(ut){console.error(ut)}return null}(r.escapeValue(I),ie);return{path:ie,line:en.line,column:en.column,from:en.from,to:en.to,message:Be,severity:Hs.warning,actions:[]}}function Vt(Et,ie){var Be=Et.line,en=Et.column,$t=Et.position,Xt=Et.message;return{path:[],line:Be,column:en,from:$t,to:$t,severity:Hs.error,message:Xt,actions:ie&&!u?[{name:"Auto repair",apply:function(){return _t()}}]:null}}function Qt(Et){var ie=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Be=Cw(Et,v,y),en=!an(Et,H),$t=H;H=Et,n(11,I=Be),R("setCodeMirrorContent",{isChanged:en,forceUpdate:ie}),s&&(en||ie)&&(qn(I,O)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(I)}}),wn(),en&&Ye(H,$t))}function ee(Et){return Mw(Et)?Jt.fromJSON(Et):void 0}function Kt(){return(Kt=Ae(qt().mark(function Et(){return qt().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return R("refresh"),ie.next=3,Me();case 3:case"end":return ie.stop()}},Et)}))).apply(this,arguments)}function ue(){if(s){var Et=s?r.unescapeValue(s.state.doc.toString()):"",ie=Et!==I;if(R("onChangeCodeMirrorValue",{isChanged:ie}),ie){var Be=H;n(11,I=Et),H={text:I},wn(),Ye(H,Be),Ke()}}}function Me(){return tn.apply(this,arguments)}function tn(){return(tn=Ae(qt().mark(function Et(){var ie;return qt().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,br();case 2:s&&(ie=Ot(),R("updateTheme",{dark:ie}),s.dispatch({effects:[T.reconfigure(ye.theme({},{dark:ie}))]}));case 3:case"end":return Be.stop()}},Et)}))).apply(this,arguments)}function le(Et){return c1.of(typeof Et=="number"?" ".repeat(Et):Et)}function wn(){n(12,tt=oyt(s.state)>0),n(13,yt=iyt(s.state)>0),R({canUndo:tt,canRedo:yt})}yi(function(){mn()}),mj({onMount:Ui,onDestroy:yi,getWindow:function(){return rd(a)},hasFocus:function(){return Y&&document.hasFocus()||xg(a)},onFocus:N,onBlur:function(){mn(),C()}});var Ne=_p(ue,300);function mn(){Ne.flush()}function Ye(Et,ie){x&&x(Et,ie,{contentErrors:En(),patchResult:null})}function Ke(){j(xt({type:Bn.text},c.selection.toJSON()))}function qn(Et,ie){return!!Et&&Et.length>aw&&!ie}var In=W1,Zn=null;function Sn(){if(qn(I,O))return[];var Et=En();return dM(Et)?[pR(Vt(Et.parseError,Et.isRepairable))]:npt(Et)?Et.validationErrors.map(Ct).map(pR):[]}function En(){R("validate:start"),mn();var Et=Nn(r.escapeValue(I),b,y,w);return dM(Et)?(n(51,In=Et.isRepairable?lE:"invalid"),n(14,Zn=Et.parseError),n(10,A=[])):(n(51,In=W1),n(14,Zn=null),n(10,A=(Et==null?void 0:Et.validationErrors)||[])),R("validate:end"),Et}var Nn=Np(Dht);function sr(){Zn&&function(Et){R("select parse error",Et);var ie=Vt(Et,!1);W(ie.from!=null?ie.from:0,ie.to!=null?ie.to:0),gt()}(Zn)}var Pr={icon:wdt,text:"Show me",title:"Move to the parse error location",onClick:sr};return e.$$set=function(Et){"readOnly"in Et&&n(1,u=Et.readOnly),"mainMenuBar"in Et&&n(2,l=Et.mainMenuBar),"statusBar"in Et&&n(3,f=Et.statusBar),"askToFormat"in Et&&n(0,d=Et.askToFormat),"externalContent"in Et&&n(30,h=Et.externalContent),"externalSelection"in Et&&n(31,p=Et.externalSelection),"indentation"in Et&&n(32,v=Et.indentation),"tabSize"in Et&&n(33,m=Et.tabSize),"escapeUnicodeCharacters"in Et&&n(34,g=Et.escapeUnicodeCharacters),"parser"in Et&&n(35,y=Et.parser),"validator"in Et&&n(36,b=Et.validator),"validationParser"in Et&&n(37,w=Et.validationParser),"onChange"in Et&&n(38,x=Et.onChange),"onChangeMode"in Et&&n(39,k=Et.onChangeMode),"onSelect"in Et&&n(40,j=Et.onSelect),"onError"in Et&&n(41,S=Et.onError),"onFocus"in Et&&n(42,N=Et.onFocus),"onBlur"in Et&&n(43,C=Et.onBlur),"onRenderMenu"in Et&&n(4,$=Et.onRenderMenu),"onSortModal"in Et&&n(44,B=Et.onSortModal),"onTransformModal"in Et&&n(45,K=Et.onTransformModal)},e.$$.update=function(){8&e.$$.dirty[1]&&(r=aj({escapeControlCharacters:!1,escapeUnicodeCharacters:g})),1073741824&e.$$.dirty[0]&&Qt(h),1&e.$$.dirty[1]&&function(Et){if(Mw(Et)){var ie=ee(Et);!s||!ie||c&&c.selection.eq(ie)||(R("applyExternalSelection",ie),s.dispatch({selection:ie}))}}(p),32&e.$$.dirty[1]&&function(Et){R("updateLinter",Et),s&&s.dispatch({effects:_.reconfigure(pt())})}(b),2&e.$$.dirty[1]&&function(Et){s&&(R("updateIndentation",Et),s.dispatch({effects:P.reconfigure(le(Et))}))}(v),4&e.$$.dirty[1]&&function(Et){s&&(R("updateTabSize",Et),s.dispatch({effects:D.reconfigure(fr.tabSize.of(Et))}))}(m),2&e.$$.dirty[0]&&function(Et){s&&(R("updateReadOnly",Et),s.dispatch({effects:[M.reconfigure(fr.readOnly.of(Et))]}))}(u),524296&e.$$.dirty[1]&&ft!==g&&(n(50,ft=g),R("forceUpdateText",{escapeUnicodeCharacters:g}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(I)}})),2&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(15,o=In!==lE||u?[Pr]:[{icon:Q0,text:"Auto repair",title:"Automatically repair JSON",onClick:_t},Pr])},[d,u,l,f,$,gt,i,a,c,O,A,I,tt,yt,Zn,o,F,it,X,function(){var Et;if(!u)try{var ie=y.parse(I);Y=!0,B({id:bt,json:ie,rootPath:[],onSort:(Et=Ae(qt().mark(function Be(en){var $t;return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:$t=en.operations,R("onSort",$t),J($t);case 3:case"end":return Xt.stop()}},Be)})),function(Be){return Et.apply(this,arguments)}),onClose:function(){Y=!1,gt()}})}catch(Be){S(Be)}},function(){u||z({rootPath:[]})},function(){s&&(i&&i.querySelector(".cm-search")?Qj(s):Gj(s))},function(){u||s&&(Hj(s),gt())},function(){u||s&&(Fg(s),gt())},function(){n(9,O=!0),Qt(h,!0)},function(){k(bo.tree)},function(){ue()},function(Et){R("select validation error",Et);var ie=Ct(Et);W(ie.from,ie.to),gt()},qn,sr,h,p,v,m,g,y,b,w,x,k,j,S,N,C,B,K,J,z,function(){return Kt.apply(this,arguments)},En,ft,In,function(Et){rn[Et?"unshift":"push"](function(){n(6,i=Et)})},function(){return n(0,d=!1)},function(Et){rn[Et?"unshift":"push"](function(){n(7,a=Et)})}]}var Wbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ubt,Vbt,qe,{readOnly:1,mainMenuBar:2,statusBar:3,askToFormat:0,externalContent:30,externalSelection:31,indentation:32,tabSize:33,escapeUnicodeCharacters:34,parser:35,validator:36,validationParser:37,onChange:38,onChangeMode:39,onSelect:40,onError:41,onFocus:42,onBlur:43,onRenderMenu:4,onSortModal:44,onTransformModal:45,focus:5,patch:46,openTransformModal:47,refresh:48,validate:49},Fbt,[-1,-1,-1,-1]),o}return ot(n,[{key:"focus",get:function(){return this.$$.ctx[5]}},{key:"patch",get:function(){return this.$$.ctx[46]}},{key:"openTransformModal",get:function(){return this.$$.ctx[47]}},{key:"refresh",get:function(){return this.$$.ctx[48]}},{key:"validate",get:function(){return this.$$.ctx[49]}}]),n}();function Kbt(e){var t,n;return t=new r1({props:{items:e[0]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&$e(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Jbt(e,t,n){var r,o,i=t.json,a=t.readOnly,s=t.historyState,c=t.onSort,u=t.onTransform,l=t.onContextMenu,f=t.onUndo,d=t.onRedo,h=t.onRenderMenu;return e.$$set=function(p){"json"in p&&n(1,i=p.json),"readOnly"in p&&n(2,a=p.readOnly),"historyState"in p&&n(3,s=p.historyState),"onSort"in p&&n(4,c=p.onSort),"onTransform"in p&&n(5,u=p.onTransform),"onContextMenu"in p&&n(6,l=p.onContextMenu),"onUndo"in p&&n(7,f=p.onUndo),"onRedo"in p&&n(8,d=p.onRedo),"onRenderMenu"in p&&n(9,h=p.onRenderMenu)},e.$$.update=function(){510&e.$$.dirty&&n(10,r=a?[{type:"space"}]:[{type:"button",icon:Y0,title:"Sort",className:"jse-sort",onClick:c,disabled:a||i===void 0},{type:"button",icon:G0,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:a||i===void 0},{type:"button",icon:uB,title:n2,className:"jse-contextmenu",onClick:l},{type:"separator"},{type:"button",icon:hj,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:f,disabled:!s.canUndo},{type:"button",icon:dj,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:d,disabled:!s.canRedo},{type:"space"}]),1536&e.$$.dirty&&n(0,o=h(r)||r)},[o,i,a,s,c,u,l,f,d,h,r]}var Gbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Jbt,Kbt,qe,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),o}return ot(n)}();function vR(e,t,n){var r=e.slice();return r[9]=t[n],r}function mR(e){var t,n,r,o=[e[9].props],i=e[9].component;function a(s,c){var u={};if(c!==void 0&&1&c)u=Wi(o,[Yu(s[9].props)]);else for(var l=0;l<o.length;l+=1)u=oi(u,o[l]);return{props:u}}return i&&(t=ls(i,a(e))),{c:function(){t&&Pt(t.$$.fragment),n=_n()},m:function(s,c){t&&Mt(t,s,c),dt(s,n,c),r=!0},p:function(s,c){if(1&c&&i!==(i=s[9].component)){if(t){Bt();var u=t;U(u.$$.fragment,1,0,function(){At(u,1)}),Ft()}i?(Pt((t=ls(i,a(s,c))).$$.fragment),L(t.$$.fragment,1),Mt(t,n.parentNode,n)):t=null}else if(i){var l=1&c?Wi(o,[Yu(s[9].props)]):{};t.$set(l)}},i:function(s){r||(t&&L(t.$$.fragment,s),r=!0)},o:function(s){t&&U(t.$$.fragment,s),r=!1},d:function(s){s&&lt(n),t&&At(t,s)}}}function Qbt(e){for(var t,n,r=De(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=mR(vR(e,r,i));var a=function(s){return U(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=_n()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);dt(s,t,c),n=!0},p:function(s,c){var u=$e(c,1)[0];if(1&u){var l;for(r=De(s[0]),l=0;l<r.length;l+=1){var f=vR(s,r,l);o[l]?(o[l].p(f,u),L(o[l],1)):(o[l]=mR(f),o[l].c(),L(o[l],1),o[l].m(t.parentNode,t))}for(Bt(),l=r.length;l<o.length;l+=1)a(l);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)L(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)U(o[c]);n=!1},d:function(s){s&&lt(t),Ir(o,s)}}}function Ybt(e,t,n){var r,o,i=t.path,a=t.value,s=t.context,c=t.enforceString,u=t.selection,l=t.searchResultItems;function f(d,h){return s.onPatch(function(p,v){return p.flatMap(function(m){if(i2(m)){var g=Ca(m.path);if(g.length>0){for(var y=[m],b=on(g);b.length>0&&!Li(v,b);)y.unshift({op:"add",path:oe(b),value:{}}),b=on(b);return y}}return m})}(d,s.getJson()),h)}return e.$$set=function(d){"path"in d&&n(1,i=d.path),"value"in d&&n(2,a=d.value),"context"in d&&n(3,s=d.context),"enforceString"in d&&n(4,c=d.enforceString),"selection"in d&&n(5,u=d.selection),"searchResultItems"in d&&n(6,l=d.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&dn(u)&&Gi(u)),254&e.$$.dirty&&n(0,o=s.onRenderValue({path:i,value:a,readOnly:s.readOnly,enforceString:c,isEditing:r,parser:s.parser,normalization:s.normalization,selection:u,searchResultItems:l,onPatch:f,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[o,i,a,s,c,u,l,r]}var Xbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ybt,Qbt,qe,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),o}return ot(n)}();function Zbt(e){ze(e,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function twt(e){var t,n,r,o,i=Us(e[2].stringify(e[1]),50)+"";return{c:function(){t=et("button"),n=Gt(i),E(t,"type","button"),E(t,"class","jse-inline-value svelte-l28mqd"),Dt(t,"jse-selected",e[3])},m:function(a,s){dt(a,t,s),V(t,n),r||(o=Lt(t,"dblclick",e[5]),r=!0)},p:function(a,s){var c=$e(s,1)[0];6&c&&i!==(i=Us(a[2].stringify(a[1]),50)+"")&&we(n,i),8&c&&Dt(t,"jse-selected",a[3])},i:Ht,o:Ht,d:function(a){a&&lt(t),r=!1,o()}}}function ewt(e,t,n){var r=t.path,o=t.value,i=t.parser,a=t.isSelected,s=t.onEdit;return e.$$set=function(c){"path"in c&&n(0,r=c.path),"value"in c&&n(1,o=c.value),"parser"in c&&n(2,i=c.parser),"isSelected"in c&&n(3,a=c.isSelected),"onEdit"in c&&n(4,s=c.onEdit)},[r,o,i,a,s,function(){return s(r)}]}var nwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,ewt,twt,qe,{path:0,value:1,parser:2,isSelected:3,onEdit:4},Zbt),o}return ot(n)}();function rwt(e){ze(e,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function gR(e){var t,n,r,o;return n=new hn({props:{data:e[1]===zi.asc?Ri:m6}}),{c:function(){t=et("span"),Pt(n.$$.fragment),E(t,"class","jse-column-sort-icon svelte-h4fort"),E(t,"title",r="Currently sorted in ".concat(e[2]," order"))},m:function(i,a){dt(i,t,a),Mt(n,t,null),o=!0},p:function(i,a){var s={};2&a&&(s.data=i[1]===zi.asc?Ri:m6),n.$set(s),(!o||4&a&&r!==(r="Currently sorted in ".concat(i[2]," order")))&&E(t,"title",r)},i:function(i){o||(L(n.$$.fragment,i),o=!0)},o:function(i){U(n.$$.fragment,i),o=!1},d:function(i){i&&lt(t),At(n)}}}function owt(e){var t,n,r,o,i,a,s,c,u=Us(e[3],50)+"",l=e[1]!==void 0&&gR(e);return{c:function(){t=et("button"),n=et("span"),r=Gt(u),o=kt(),l&&l.c(),E(n,"class","jse-column-name"),E(t,"type","button"),E(t,"class","jse-column-header svelte-h4fort"),E(t,"title",i=e[0]?e[3]:e[3]+" (Click to sort the data by this column)"),Dt(t,"jse-readonly",e[0])},m:function(f,d){dt(f,t,d),V(t,n),V(n,r),V(t,o),l&&l.m(t,null),a=!0,s||(c=Lt(t,"click",e[4]),s=!0)},p:function(f,d){var h=$e(d,1)[0];(!a||8&h)&&u!==(u=Us(f[3],50)+"")&&we(r,u),f[1]!==void 0?l?(l.p(f,h),2&h&&L(l,1)):((l=gR(f)).c(),L(l,1),l.m(t,null)):l&&(Bt(),U(l,1,1,function(){l=null}),Ft()),(!a||9&h&&i!==(i=f[0]?f[3]:f[3]+" (Click to sort the data by this column)"))&&E(t,"title",i),(!a||1&h)&&Dt(t,"jse-readonly",f[0])},i:function(f){a||(L(l),a=!0)},o:function(f){U(l),a=!1},d:function(f){f&&lt(t),l&&l.d(),s=!1,c()}}}function iwt(e,t,n){var r,o,i,a=t.path,s=t.sortedColumn,c=t.readOnly,u=t.onSort;return e.$$set=function(l){"path"in l&&n(5,a=l.path),"sortedColumn"in l&&n(6,s=l.sortedColumn),"readOnly"in l&&n(0,c=l.readOnly),"onSort"in l&&n(7,u=l.onSort)},e.$$.update=function(){var l;32&e.$$.dirty&&n(3,r=cn(a)?"values":ai(a)),96&e.$$.dirty&&n(1,o=s&&an(a,(l=s)===null||l===void 0?void 0:l.path)?s.sortDirection:void 0),2&e.$$.dirty&&n(2,i=o?MZ[o]:void 0)},[c,o,i,r,function(){c||u({path:a,sortDirection:o===zi.asc?zi.desc:zi.asc})},a,s,u]}var Kv,Jv,awt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,iwt,owt,qe,{path:5,sortedColumn:6,readOnly:0,onSort:7},rwt),o}return ot(n)}();function CH(e,t){return Kv||(Jv=new WeakMap,Kv=new ResizeObserver(function(n){var r,o=ht(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=Jv.get(i.target);a&&a(i.target)}}catch(s){o.e(s)}finally{o.f()}})),Jv.set(e,t),Kv.observe(e),{destroy:function(){Jv.delete(e),Kv.unobserve(e)}}}function swt(e){var t,n;return t=new CB({props:{items:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.items=r[1]),1&o[0]&&(i.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function cwt(e,t,n){var r,o,i,a,s,c,u,l,f,d=t.json,h=t.documentState,p=t.parser,v=t.showTip,m=t.onCloseContextMenu,g=t.onEditValue,y=t.onEditRow,b=t.onToggleEnforceString,w=t.onCut,x=t.onCopy,k=t.onPaste,j=t.onRemove,S=t.onDuplicateRow,N=t.onInsertBeforeRow,C=t.onInsertAfterRow,$=t.onRemoveRow;function B(){m(),g()}function K(){m(),y()}function R(){m(),b()}function q(){m(),w(!0)}function F(){m(),w(!1)}function O(){m(),x(!0)}function A(){m(),x(!1)}function _(){m(),k()}function M(){m(),j()}function P(){m(),S()}function D(){m(),N()}function T(){m(),C()}function H(){m(),$()}return e.$$set=function(I){"json"in I&&n(2,d=I.json),"documentState"in I&&n(3,h=I.documentState),"parser"in I&&n(4,p=I.parser),"showTip"in I&&n(0,v=I.showTip),"onCloseContextMenu"in I&&n(5,m=I.onCloseContextMenu),"onEditValue"in I&&n(6,g=I.onEditValue),"onEditRow"in I&&n(7,y=I.onEditRow),"onToggleEnforceString"in I&&n(8,b=I.onToggleEnforceString),"onCut"in I&&n(9,w=I.onCut),"onCopy"in I&&n(10,x=I.onCopy),"onPaste"in I&&n(11,k=I.onPaste),"onRemove"in I&&n(12,j=I.onRemove),"onDuplicateRow"in I&&n(13,S=I.onDuplicateRow),"onInsertBeforeRow"in I&&n(14,N=I.onInsertBeforeRow),"onInsertAfterRow"in I&&n(15,C=I.onInsertAfterRow),"onRemoveRow"in I&&n(16,$=I.onRemoveRow)},e.$$.update=function(){8&e.$$.dirty[0]&&n(22,r=h.selection),4&e.$$.dirty[0]&&n(24,o=d!==void 0),4194304&e.$$.dirty[0]&&n(17,i=!!r),4194308&e.$$.dirty[0]&&n(23,a=d!==void 0&&r?fe(d,ge(r)):void 0),20971520&e.$$.dirty[0]&&n(18,s=o&&(Ln(r)||Br(r)||dn(r))),20971520&e.$$.dirty[0]&&n(21,c=o&&r!=null&&_g(r)),10485760&e.$$.dirty[0]&&n(19,u=c&&!xr(a)),12582936&e.$$.dirty[0]&&n(20,l=r!=null&&Ws(a,h.enforceStringMap,oe(ge(r)),p)),4063232&e.$$.dirty[0]&&n(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:B,icon:rf,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:rf,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:B,disabled:!c},{type:"button",icon:l?Lh:Bh,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:R,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:q,icon:nf,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!s},width:"10em",items:[{type:"button",icon:nf,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:q,disabled:!s},{type:"button",icon:nf,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:F,disabled:!s}]},{type:"dropdown-button",main:{type:"button",onClick:O,icon:Tc,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!s},width:"12em",items:[{type:"button",icon:Tc,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:O,disabled:!s},{type:"button",icon:Tc,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:A,disabled:!s}]},{type:"button",onClick:_,icon:sB,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!i},{type:"button",onClick:M,icon:Rw,text:"Remove",title:"Remove selected contents (Delete)",disabled:!s}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:K,icon:rf,text:"Edit row",title:"Edit the current row",disabled:!s},{type:"button",onClick:P,icon:fB,text:"Duplicate row",title:"Duplicate the current row",disabled:!i},{type:"button",onClick:D,icon:Bl,text:"Insert before",title:"Insert a row before the current row",disabled:!i},{type:"button",onClick:T,icon:Bl,text:"Insert after",title:"Insert a row after the current row",disabled:!i},{type:"button",onClick:H,icon:Rw,text:"Remove row",title:"Remove current row",disabled:!i}]}]}])},[v,f,d,h,p,m,g,y,b,w,x,k,j,S,N,C,$,i,s,u,l,c,r,a,o]}var uwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,cwt,swt,qe,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),o}return ot(n)}();function lwt(e){ze(e,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function yR(e,t,n){var r=e.slice();r[13]=t[n];var o=fe(r[0],r[13]).length;return r[14]=o,r}function fwt(e){var t,n;return{c:function(){t=Gt(e[7]),n=Gt(" cannot be opened in table mode.")},m:function(r,o){dt(r,t,o),dt(r,n,o)},p:function(r,o){128&o&&we(t,r[7])},d:function(r){r&&(lt(t),lt(n))}}}function dwt(e){var t;return{c:function(){t=Gt(`An object cannot be opened in table mode. You can open a nested array instead, or open the
116
+ document in tree mode.`)},m:function(n,r){dt(n,t,r)},p:Ht,d:function(n){n&&lt(t)}}}function hwt(e){var t;return{c:function(){t=Gt("You can open the document in tree mode instead.")},m:function(n,r){dt(n,t,r)},d:function(n){n&&lt(t)}}}function pwt(e){var t,n,r;return{c:function(){t=Gt("You can open the document in tree mode instead, or paste a JSON Array using "),(n=et("b")).textContent="Ctrl+V",r=Gt(".")},m:function(o,i){dt(o,t,i),dt(o,n,i),dt(o,r,i)},d:function(o){o&&(lt(t),lt(n),lt(r))}}}function bR(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p=ai(e[13])+"",v=e[14]+"",m=e[14]!==1?"items":"item";function g(){return e[11](e[13])}return{c:function(){t=et("button"),n=Gt(e[8]),r=Gt(' "'),o=Gt(p),i=Gt(`"
117
+ `),a=et("span"),s=Gt("("),c=Gt(v),u=kt(),l=Gt(m),f=Gt(")"),E(a,"class","jse-nested-array-count svelte-1te5h1h"),E(t,"type","button"),E(t,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,b){dt(y,t,b),V(t,n),V(t,r),V(t,o),V(t,i),V(t,a),V(a,s),V(a,c),V(a,u),V(a,l),V(a,f),d||(h=Lt(t,"click",g),d=!0)},p:function(y,b){e=y,256&b&&we(n,e[8]),16&b&&p!==(p=ai(e[13])+"")&&we(o,p),17&b&&v!==(v=e[14]+"")&&we(c,v),17&b&&m!==(m=e[14]!==1?"items":"item")&&we(l,m)},d:function(y){y&&lt(t),d=!1,h()}}}function vwt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y;function b(B,K){return B[6]?dwt:fwt}var w=b(e),x=w(e);function k(B,K){return B[5]&&!B[1]?pwt:hwt}for(var j=k(e),S=j(e),N=De(e[4]),C=[],$=0;$<N.length;$+=1)C[$]=bR(yR(e,N,$));return{c:function(){t=et("div"),n=et("div"),r=kt(),o=et("div"),i=et("div"),a=Gt(e[7]),s=kt(),c=et("div"),x.c(),u=kt(),S.c(),l=kt();for(var B=0;B<C.length;B+=1)C[B].c();f=kt(),d=et("button"),h=Gt(e[8]),p=Gt(" in tree mode"),v=kt(),m=et("div"),E(n,"class","jse-space jse-before svelte-1te5h1h"),E(i,"class","jse-nested-arrays-title"),E(c,"class","jse-nested-arrays-info svelte-1te5h1h"),E(d,"type","button"),E(d,"class","jse-nested-array-action svelte-1te5h1h"),E(o,"class","jse-nested-arrays svelte-1te5h1h"),E(m,"class","jse-space jse-after svelte-1te5h1h"),E(t,"class","jse-table-mode-welcome svelte-1te5h1h")},m:function(B,K){dt(B,t,K),V(t,n),V(t,r),V(t,o),V(o,i),V(i,a),V(o,s),V(o,c),x.m(c,null),V(c,u),S.m(c,null),V(o,l);for(var R=0;R<C.length;R+=1)C[R]&&C[R].m(o,null);V(o,f),V(o,d),V(d,h),V(d,p),V(t,v),V(t,m),g||(y=Lt(d,"click",e[12]),g=!0)},p:function(B,K){var R=$e(K,1)[0];if(128&R&&we(a,B[7]),w===(w=b(B))&&x?x.p(B,R):(x.d(1),(x=w(B))&&(x.c(),x.m(c,u))),j!==(j=k(B))&&(S.d(1),(S=j(B))&&(S.c(),S.m(c,null))),277&R){var q;for(N=De(B[4]),q=0;q<N.length;q+=1){var F=yR(B,N,q);C[q]?C[q].p(F,R):(C[q]=bR(F),C[q].c(),C[q].m(o,f))}for(;q<C.length;q+=1)C[q].d(1);C.length=N.length}256&R&&we(h,B[8])},i:Ht,o:Ht,d:function(B){B&&lt(t),x.d(),S.d(),Ir(C,B),g=!1,y()}}}function mwt(e,t,n){var r,o,i,a,s,c=t.text,u=t.json,l=t.readOnly,f=t.parser,d=t.openJSONEditorModal,h=t.onChangeMode;return e.$$set=function(p){"text"in p&&n(9,c=p.text),"json"in p&&n(0,u=p.json),"readOnly"in p&&n(1,l=p.readOnly),"parser"in p&&n(10,f=p.parser),"openJSONEditorModal"in p&&n(2,d=p.openJSONEditorModal),"onChangeMode"in p&&n(3,h=p.onChangeMode)},e.$$.update=function(){2&e.$$.dirty&&n(8,r=l?"View":"Edit"),1&e.$$.dirty&&n(4,s=u?function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,m=[];return function g(y,b){kr(y)&&b.length<v&&Object.keys(y).forEach(function(w){g(y[w],b.concat(w))}),Un(y)&&m.push(b)}(p,[]),m}(u).slice(0,99).filter(function(p){return p.length>0}):[]),16&e.$$.dirty&&n(6,o=!cn(s)),513&e.$$.dirty&&n(5,i=u===void 0&&(c===""||c===void 0)),1121&e.$$.dirty&&n(7,a=o?"Object with nested arrays":i?"An empty document":kr(u)?"An object":Un(u)?"An empty array":"A ".concat(d2(u,f)))},[u,l,d,h,s,i,o,a,r,c,f,function(p){return d(p)},function(){return h(bo.tree)}]}var gwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,mwt,vwt,qe,{text:9,json:0,readOnly:1,parser:10,openJSONEditorModal:2,onChangeMode:3},lwt),o}return ot(n)}();function ywt(e){ze(e,"svelte-py7l9h",".jse-column-header.svelte-py7l9h{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-py7l9h:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-py7l9h:not(.jse-column-header.jse-readonly){cursor:pointer}")}function bwt(e){var t,n,r,o,i,a;return n=new hn({props:{data:$dt}}),{c:function(){t=et("button"),Pt(n.$$.fragment),E(t,"type","button"),E(t,"class","jse-column-header svelte-py7l9h"),E(t,"title",r="The Columns are created by sampling ".concat(e[1]," items out of ").concat(e[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(s,c){dt(s,t,c),Mt(n,t,null),o=!0,i||(a=Lt(t,"click",e[3]),i=!0)},p:function(s,c){var u=$e(c,1)[0];(!o||3&u&&r!==(r="The Columns are created by sampling ".concat(s[1]," items out of ").concat(s[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&E(t,"title",r)},i:function(s){o||(L(n.$$.fragment,s),o=!0)},o:function(s){U(n.$$.fragment,s),o=!1},d:function(s){s&&lt(t),At(n),i=!1,a()}}}function wwt(e,t,n){var r=t.count,o=t.maxSampleCount,i=t.onRefresh;return e.$$set=function(a){"count"in a&&n(0,r=a.count),"maxSampleCount"in a&&n(1,o=a.maxSampleCount),"onRefresh"in a&&n(2,i=a.onRefresh)},[r,o,i,function(){return i()}]}var xwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,wwt,bwt,qe,{count:0,maxSampleCount:1,onRefresh:2},ywt),o}return ot(n)}();function kwt(e){ze(e,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function wR(e,t,n){var r=e.slice();r[123]=t[n],r[127]=n;var o=r[23].startIndex+r[127];r[124]=o;var i=r[22].rows[r[124]];return r[125]=i,r}function xR(e,t,n){var r,o=e.slice();o[128]=t[n],o[134]=n;var i=[String(o[124])].concat(o[128]);o[129]=i;var a=fe(o[123],o[128]);o[130]=a;var s=dn(o[11].selection)&&Uc(o[11].selection.path,o[129]);o[131]=s;var c=(r=o[125])===null||r===void 0?void 0:r.columns[o[134]];return o[132]=c,o}function kR(e,t,n){var r=e.slice();return r[128]=t[n],r}function jR(e){var t,n;return t=new Gbt({props:{json:e[8],readOnly:e[0],historyState:e[20],onSort:e[41],onTransform:e[42],onUndo:e[43],onRedo:e[44],onContextMenu:e[33],onRenderMenu:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};256&o[0]&&(i.json=r[8]),1&o[0]&&(i.readOnly=r[0]),1048576&o[0]&&(i.historyState=r[20]),32&o[0]&&(i.onRenderMenu=r[5]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function jwt(e){var t;return{c:function(){(t=et("div")).innerHTML='<div class="jse-loading-space svelte-hs49xj"></div> <div class="jse-loading svelte-hs49xj">loading...</div>',E(t,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(n,r){dt(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&&lt(t)}}}function _wt(e){var t,n,r,o,i,a,s,c,u,l=[Cwt,$wt,Swt],f=[];function d(h,p){return h[25]?0:h[17]&&h[16]!==void 0&&h[16]!==""?1:2}return o=d(e),i=f[o]=l[o](e),{c:function(){t=et("label"),n=et("input"),r=kt(),i.c(),a=_n(),E(n,"type","text"),n.readOnly=!0,E(n,"tabindex","-1"),E(n,"class","jse-hidden-input svelte-hs49xj"),E(t,"class","jse-hidden-input-label svelte-hs49xj")},m:function(h,p){dt(h,t,p),V(t,n),e[72](n),dt(h,r,p),f[o].m(h,p),dt(h,a,p),s=!0,c||(u=Lt(n,"paste",e[38]),c=!0)},p:function(h,p){var v=o;(o=d(h))===v?f[o].p(h,p):(Bt(),U(f[v],1,1,function(){f[v]=null}),Ft(),(i=f[o])?i.p(h,p):(i=f[o]=l[o](h)).c(),L(i,1),i.m(a.parentNode,a))},i:function(h){s||(L(i),s=!0)},o:function(h){U(i),s=!1},d:function(h){h&&(lt(t),lt(r),lt(a)),e[72](null),f[o].d(h),c=!1,u()}}}function Swt(e){var t,n;return t=new gwt({props:{text:e[16],json:e[8],readOnly:e[0],parser:e[2],openJSONEditorModal:e[40],onChangeMode:e[4]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};65536&o[0]&&(i.text=r[16]),256&o[0]&&(i.json=r[8]),1&o[0]&&(i.readOnly=r[0]),4&o[0]&&(i.parser=r[2]),16&o[0]&&(i.onChangeMode=r[4]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function $wt(e){var t,n,r,o;return t=new Aa({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:Wc,text:"Repair manually",onClick:e[36]}]}}),r=new zB({props:{text:e[16],json:e[8],indentation:e[3],parser:e[2]}}),{c:function(){Pt(t.$$.fragment),n=kt(),Pt(r.$$.fragment)},m:function(i,a){Mt(t,i,a),dt(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){var s={};1&a[0]&&(s.actions=i[0]?[]:[{icon:Wc,text:"Repair manually",onClick:i[36]}]),t.$set(s);var c={};65536&a[0]&&(c.text=i[16]),256&a[0]&&(c.json=i[8]),8&a[0]&&(c.indentation=i[3]),4&a[0]&&(c.parser=i[2]),r.$set(c)},i:function(i){o||(L(t.$$.fragment,i),L(r.$$.fragment,i),o=!0)},o:function(i){U(t.$$.fragment,i),U(r.$$.fragment,i),o=!1},d:function(i){i&&lt(n),At(t,i),At(r,i)}}}function Cwt(e){for(var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N=!cn((t=e[22])===null||t===void 0?void 0:t.root),C=N&&_R(e),$=De(e[10]),B=[],K=0;K<$.length;K+=1)B[K]=SR(kR(e,$,K));for(var R=function(D){return U(B[D],1,1,function(){B[D]=null})},q=e[24]&&$R(e),F=De(e[23].visibleItems),O=[],A=0;A<F.length;A+=1)O[A]=TR(wR(e,F,A));var _=function(D){return U(O[D],1,1,function(){O[D]=null})},M=e[18]&&RR(e),P=e[19]&&IR(e);return x=new gj({props:{validationErrors:e[12],selectError:e[39]}}),{c:function(){n=et("div"),r=et("table"),o=et("tbody"),i=et("tr"),a=et("th"),C&&C.c(),s=kt();for(var D=0;D<B.length;D+=1)B[D].c();c=kt(),q&&q.c(),u=kt(),l=et("tr"),f=et("td"),h=kt();for(var T=0;T<O.length;T+=1)O[T].c();p=kt(),v=et("tr"),m=et("td"),y=kt(),M&&M.c(),b=kt(),P&&P.c(),w=kt(),Pt(x.$$.fragment),E(a,"class","jse-table-cell jse-table-cell-header svelte-hs49xj"),E(i,"class","jse-table-row jse-table-row-header svelte-hs49xj"),E(f,"colspan",d=e[10].length),E(f,"class","svelte-hs49xj"),xc(f,"height",e[23].startHeight+"px"),E(l,"class","jse-table-invisible-start-section"),E(m,"colspan",g=e[10].length),E(m,"class","svelte-hs49xj"),xc(m,"height",e[23].endHeight+"px"),E(v,"class","jse-table-invisible-end-section"),E(r,"class","jse-table-main svelte-hs49xj"),E(r,"cellpadding","0"),E(r,"cellspacing","0"),E(n,"class","jse-contents svelte-hs49xj")},m:function(D,T){dt(D,n,T),V(n,r),V(r,o),V(o,i),V(i,a),C&&C.m(a,null),V(i,s);for(var H=0;H<B.length;H+=1)B[H]&&B[H].m(i,null);V(i,c),q&&q.m(i,null),V(o,u),V(o,l),V(l,f),V(o,h);for(var I=0;I<O.length;I+=1)O[I]&&O[I].m(o,null);V(o,p),V(o,v),V(v,m),e[75](n),dt(D,y,T),M&&M.m(D,T),dt(D,b,T),P&&P.m(D,T),dt(D,w,T),Mt(x,D,T),k=!0,j||(S=[lo(CH.call(null,n,e[45])),Lt(n,"scroll",e[29])],j=!0)},p:function(D,T){var H;if(4194304&T[0]&&(N=!cn((H=D[22])===null||H===void 0?void 0:H.root)),N?C?(C.p(D,T),4194304&T[0]&&L(C,1)):((C=_R(D)).c(),L(C,1),C.m(a,null)):C&&(Bt(),U(C,1,1,function(){C=null}),Ft()),268438529&T[0]){var I;for($=De(D[10]),I=0;I<$.length;I+=1){var ft=kR(D,$,I);B[I]?(B[I].p(ft,T),L(B[I],1)):(B[I]=SR(ft),B[I].c(),L(B[I],1),B[I].m(i,c))}for(Bt(),I=$.length;I<B.length;I+=1)R(I);Ft()}if(D[24]?q?(q.p(D,T),16777216&T[0]&&L(q,1)):((q=$R(D)).c(),L(q,1),q.m(i,null)):q&&(Bt(),U(q,1,1,function(){q=null}),Ft()),(!k||1024&T[0]&&d!==(d=D[10].length))&&E(f,"colspan",d),8388608&T[0]&&xc(f,"height",D[23].startHeight+"px"),165678085&T[0]|33281&T[1]){var tt;for(F=De(D[23].visibleItems),tt=0;tt<F.length;tt+=1){var yt=wR(D,F,tt);O[tt]?(O[tt].p(yt,T),L(O[tt],1)):(O[tt]=TR(yt),O[tt].c(),L(O[tt],1),O[tt].m(o,p))}for(Bt(),tt=F.length;tt<O.length;tt+=1)_(tt);Ft()}(!k||1024&T[0]&&g!==(g=D[10].length))&&E(m,"colspan",g),8388608&T[0]&&xc(m,"height",D[23].endHeight+"px"),D[18]?M?(M.p(D,T),262144&T[0]&&L(M,1)):((M=RR(D)).c(),L(M,1),M.m(b.parentNode,b)):M&&(Bt(),U(M,1,1,function(){M=null}),Ft()),D[19]?P?(P.p(D,T),524288&T[0]&&L(P,1)):((P=IR(D)).c(),L(P,1),P.m(w.parentNode,w)):P&&(Bt(),U(P,1,1,function(){P=null}),Ft());var bt={};4096&T[0]&&(bt.validationErrors=D[12]),x.$set(bt)},i:function(D){if(!k){L(C);for(var T=0;T<$.length;T+=1)L(B[T]);L(q);for(var H=0;H<F.length;H+=1)L(O[H]);L(M),L(P),L(x.$$.fragment,D),k=!0}},o:function(D){U(C),B=B.filter(Boolean);for(var T=0;T<B.length;T+=1)U(B[T]);U(q),O=O.filter(Boolean);for(var H=0;H<O.length;H+=1)U(O[H]);U(M),U(P),U(x.$$.fragment,D),k=!1},d:function(D){D&&(lt(n),lt(y),lt(b),lt(w)),C&&C.d(),Ir(B,D),q&&q.d(),Ir(O,D),e[75](null),M&&M.d(D),P&&P.d(D),At(x,D),j=!1,Fn(S)}}}function _R(e){var t,n,r,o;return r=new id({props:{validationError:Af([],(t=e[22])===null||t===void 0?void 0:t.root),onExpand:sa}}),{c:function(){n=et("div"),Pt(r.$$.fragment),E(n,"class","jse-table-root-error svelte-hs49xj")},m:function(i,a){dt(i,n,a),Mt(r,n,null),o=!0},p:function(i,a){var s,c={};4194304&a[0]&&(c.validationError=Af([],(s=i[22])===null||s===void 0?void 0:s.root)),r.$set(c)},i:function(i){o||(L(r.$$.fragment,i),o=!0)},o:function(i){U(r.$$.fragment,i),o=!1},d:function(i){i&&lt(n),At(r)}}}function SR(e){var t,n,r;return n=new awt({props:{path:e[128],sortedColumn:e[11].sortedColumn,readOnly:e[0],onSort:e[28]}}),{c:function(){t=et("th"),Pt(n.$$.fragment),E(t,"class","jse-table-cell jse-table-cell-header svelte-hs49xj")},m:function(o,i){dt(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};1024&i[0]&&(a.path=o[128]),2048&i[0]&&(a.sortedColumn=o[11].sortedColumn),1&i[0]&&(a.readOnly=o[0]),n.$set(a)},i:function(o){r||(L(n.$$.fragment,o),r=!0)},o:function(o){U(n.$$.fragment,o),r=!1},d:function(o){o&&lt(t),At(n)}}}function $R(e){var t,n,r;return n=new xwt({props:{count:e[8].length,maxSampleCount:e[9],onRefresh:e[73]}}),{c:function(){t=et("th"),Pt(n.$$.fragment),E(t,"class","jse-table-cell jse-table-cell-header svelte-hs49xj")},m:function(o,i){dt(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.count=o[8].length),512&i[0]&&(a.maxSampleCount=o[9]),512&i[0]&&(a.onRefresh=o[73]),n.$set(a)},i:function(o){r||(L(n.$$.fragment,o),r=!0)},o:function(o){U(n.$$.fragment,o),r=!1},d:function(o){o&&lt(t),At(n)}}}function CR(e){var t,n;return t=new id({props:{validationError:Af([String(e[124])],e[125].row),onExpand:sa}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};12582912&o[0]&&(i.validationError=Af([String(r[124])],r[125].row)),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ER(e){var t,n,r,o,i,a,s,c,u=e[124]+"",l=!cn((t=e[125])===null||t===void 0?void 0:t.row),f=l&&CR(e);function d(){for(var h,p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return(h=e)[74].apply(h,[e[124]].concat(v))}return{c:function(){n=et("th"),r=Gt(u),o=kt(),f&&f.c(),E(n,"class","jse-table-cell jse-table-cell-gutter svelte-hs49xj")},m:function(h,p){dt(h,n,p),V(n,r),V(n,o),f&&f.m(n,null),a=!0,s||(c=lo(i=CH.call(null,n,d)),s=!0)},p:function(h,p){var v;e=h,(!a||8388608&p[0])&&u!==(u=e[124]+"")&&we(r,u),12582912&p[0]&&(l=!cn((v=e[125])===null||v===void 0?void 0:v.row)),l?f?(f.p(e,p),12582912&p[0]&&L(f,1)):((f=CR(e)).c(),L(f,1),f.m(n,null)):f&&(Bt(),U(f,1,1,function(){f=null}),Ft()),i&&co(i.update)&&8388608&p[0]&&i.update.call(null,d)},i:function(h){a||(L(f),a=!0)},o:function(h){U(f),a=!1},d:function(h){h&&lt(n),f&&f.d(),s=!1,c()}}}function Ewt(e){var t,n;return t=new Xbt({props:{path:e[129],value:e[130]!==void 0?e[130]:"",enforceString:Ws(e[130],e[11].enforceStringMap,oe(e[129]),e[21].parser),selection:e[131]?e[11].selection:null,searchResultItems:e[27],context:e[21]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8389632&o[0]&&(i.path=r[129]),8389632&o[0]&&(i.value=r[130]!==void 0?r[130]:""),10488832&o[0]&&(i.enforceString=Ws(r[130],r[11].enforceStringMap,oe(r[129]),r[21].parser)),8391680&o[0]&&(i.selection=r[131]?r[11].selection:null),2097152&o[0]&&(i.context=r[21]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Owt(e){var t,n;return t=new nwt({props:{path:e[129],value:e[130],parser:e[2],isSelected:e[131],onEdit:e[40]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8389632&o[0]&&(i.path=r[129]),8389632&o[0]&&(i.value=r[130]),4&o[0]&&(i.parser=r[2]),8391680&o[0]&&(i.isSelected=r[131]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function OR(e){var t,n,r,o;return n=new su({props:{selected:!0,onContextMenu:e[31]}}),{c:function(){t=et("div"),Pt(n.$$.fragment),r=kt(),E(t,"class","jse-context-menu-anchor svelte-hs49xj")},m:function(i,a){dt(i,t,a),Mt(n,t,null),dt(i,r,a),o=!0},p:Ht,i:function(i){o||(L(n.$$.fragment,i),o=!0)},o:function(i){U(n.$$.fragment,i),o=!1},d:function(i){i&&(lt(t),lt(r)),At(n)}}}function MR(e){var t,n;return t=new id({props:{validationError:Af(e[129],e[132]),onExpand:sa}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};12583936&o[0]&&(i.validationError=Af(r[129],r[132])),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function AR(e){var t,n,r,o,i,a,s,c,u=!e[0]&&e[131]&&!Gi(e[11].selection),l=!cn(e[132]),f=[Owt,Ewt],d=[];function h(m,g){return 8389632&g[0]&&(n=null),n==null&&(n=!!xr(m[130])),n?0:1}r=h(e,[-1,-1,-1,-1,-1]),o=d[r]=f[r](e);var p=u&&OR(e),v=l&&MR(e);return{c:function(){t=et("td"),o.c(),i=_n(),p&&p.c(),a=_n(),v&&v.c(),E(t,"class","jse-table-cell svelte-hs49xj"),E(t,"data-path",s=Cf(e[129])),Dt(t,"jse-selected-value",e[131])},m:function(m,g){dt(m,t,g),d[r].m(t,null),V(t,i),p&&p.m(t,null),V(t,a),v&&v.m(t,null),c=!0},p:function(m,g){var y=r;(r=h(m,g))===y?d[r].p(m,g):(Bt(),U(d[y],1,1,function(){d[y]=null}),Ft(),(o=d[r])?o.p(m,g):(o=d[r]=f[r](m)).c(),L(o,1),o.m(t,i)),8391681&g[0]&&(u=!m[0]&&m[131]&&!Gi(m[11].selection)),u?p?(p.p(m,g),8391681&g[0]&&L(p,1)):((p=OR(m)).c(),L(p,1),p.m(t,a)):p&&(Bt(),U(p,1,1,function(){p=null}),Ft()),12582912&g[0]&&(l=!cn(m[132])),l?v?(v.p(m,g),12582912&g[0]&&L(v,1)):((v=MR(m)).c(),L(v,1),v.m(t,null)):v&&(Bt(),U(v,1,1,function(){v=null}),Ft()),(!c||8389632&g[0]&&s!==(s=Cf(m[129])))&&E(t,"data-path",s),(!c||8391680&g[0])&&Dt(t,"jse-selected-value",m[131])},i:function(m){c||(L(o),L(p),L(v),c=!0)},o:function(m){U(o),U(p),U(v),c=!1},d:function(m){m&&lt(t),d[r].d(),p&&p.d(),v&&v.d()}}}function PR(e){var t;return{c:function(){E(t=et("td"),"class","jse-table-cell svelte-hs49xj")},m:function(n,r){dt(n,t,r)},d:function(n){n&&lt(t)}}}function TR(e){for(var t,n,r,o,i=e[124],a=ER(e),s=De(e[10]),c=[],u=0;u<s.length;u+=1)c[u]=AR(xR(e,s,u));var l=function(d){return U(c[d],1,1,function(){c[d]=null})},f=e[24]&&PR();return{c:function(){t=et("tr"),a.c(),n=kt();for(var d=0;d<c.length;d+=1)c[d].c();r=kt(),f&&f.c(),E(t,"class","jse-table-row svelte-hs49xj")},m:function(d,h){dt(d,t,h),a.m(t,null),V(t,n);for(var p=0;p<c.length;p+=1)c[p]&&c[p].m(t,null);V(t,r),f&&f.m(t,null),o=!0},p:function(d,h){if(8388608&h[0]&&qe(i,i=d[124])?(Bt(),U(a,1,1,Ht),Ft(),(a=ER(d)).c(),L(a,1),a.m(t,n)):a.p(d,h),148900869&h[0]|513&h[1]){var p;for(s=De(d[10]),p=0;p<s.length;p+=1){var v=xR(d,s,p);c[p]?(c[p].p(v,h),L(c[p],1)):(c[p]=AR(v),c[p].c(),L(c[p],1),c[p].m(t,r))}for(Bt(),p=s.length;p<c.length;p+=1)l(p);Ft()}d[24]?f||((f=PR()).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(d){if(!o){L(a);for(var h=0;h<s.length;h+=1)L(c[h]);o=!0}},o:function(d){U(a),c=c.filter(Boolean);for(var h=0;h<c.length;h+=1)U(c[h]);o=!1},d:function(d){d&&lt(t),a.d(d),Ir(c,d),f&&f.d()}}}function RR(e){var t,n;return t=new Aa({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[18].contents)?"array":"object"," as text"),actions:[{icon:Q0,text:"Paste as JSON instead",onMouseDown:e[34]},{text:"Leave as is",onClick:e[35]}],onClose:e[76]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};262144&o[0]&&(i.message="You pasted a JSON ".concat(Array.isArray(r[18].contents)?"array":"object"," as text")),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function IR(e){var t,n;return t=new Aa({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:Hh,text:"Ok",onClick:e[7]},{icon:Wc,text:"Repair manually instead",onClick:e[36]}],onClose:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=r[0]?[]:[{icon:Hh,text:"Ok",onClick:r[7]},{icon:Wc,text:"Repair manually instead",onClick:r[36]}]),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Mwt(e){var t,n,r,o,i,a,s,c=e[1]&&jR(e),u=[_wt,jwt],l=[];return r=function(f,d){return f[26]?1:0}(e),o=l[r]=u[r](e),{c:function(){t=et("div"),c&&c.c(),n=kt(),o.c(),E(t,"role","table"),E(t,"class","jse-table-mode svelte-hs49xj"),Dt(t,"no-main-menu",!e[1])},m:function(f,d){dt(f,t,d),c&&c.m(t,null),V(t,n),l[r].m(t,null),e[77](t),i=!0,a||(s=[Lt(t,"mousedown",e[30]),Lt(t,"keydown",e[37]),Lt(t,"contextmenu",e[32])],a=!0)},p:function(f,d){f[1]?c?(c.p(f,d),2&d[0]&&L(c,1)):((c=jR(f)).c(),L(c,1),c.m(t,n)):c&&(Bt(),U(c,1,1,function(){c=null}),Ft()),o.p(f,d),(!i||2&d[0])&&Dt(t,"no-main-menu",!f[1])},i:function(f){i||(L(c),L(o),i=!0)},o:function(f){U(c),U(o),i=!1},d:function(f){f&&lt(t),c&&c.d(),l[r].d(),e[77](null),a=!1,Fn(s)}}}var _d=18;function Awt(e,t,n){var r,o,i,a,s=ho("jsoneditor:TableMode"),c=fo("simple-modal").open,u=fo("absolute-popup"),l=u.openAbsolutePopup,f=u.closeAbsolutePopup,d=xB(),h=el(),p=el(),v=typeof window>"u";s("isSSR:",v);var m,g,y,b,w,x,k=t.readOnly,j=t.externalContent,S=t.externalSelection,N=t.mainMenuBar,C=t.escapeControlCharacters,$=t.escapeUnicodeCharacters,B=t.flattenColumns,K=t.parser,R=t.parseMemoizeOne,q=t.validator,F=t.validationParser,O=t.indentation,A=t.onChange,_=t.onChangeMode,M=t.onSelect,P=t.onRenderValue,D=t.onRenderMenu,T=t.onFocus,H=t.onBlur,I=t.onSortModal,ft=t.onTransformModal,tt=t.onJSONEditorModal;mj({onMount:Ui,onDestroy:yi,getWindow:function(){return rd(g)},hasFocus:function(){return Y&&document.hasFocus()||xg(g)},onFocus:function(){J=!0,T&&T()},onBlur:function(){J=!1,H&&H()}});var yt,bt=void 0,jt=1e4,gt=[],Y=!1,J=!1,it={},X=600,_t=0;function z(ct){s("updateSelection",ct);var Nt=typeof ct=="function"?ct(G.selection)||null:ct;an(Nt,G.selection)||(n(11,G=xt(xt({},G),{},{selection:Nt})),M(Nt))}function W(ct){G.selection&&ct!==void 0&&(Li(ct,Fu(G.selection))&&Li(ct,ge(G.selection))||(s("clearing selection: path does not exist anymore",G.selection),n(11,G=xt(xt({},G),{},{selection:null}))))}var G=jg(),pt=!1,mt,Ot=kB({onChange:function(ct){n(20,Ct=ct)}}),Ct=Ot.getState();function Vt(ct){var Nt=w,Zt=$f(ct)?ct.text!==x:!an(Nt,ct.json);if(s("update external content",{isChanged:Zt}),Zt){var ae={json:w,text:x},Yt=w,Te=G,He=x,Ve=pt;if($f(ct))try{n(8,w=R(ct.text)),n(16,x=ct.text),n(19,pt=!1),n(17,bt=void 0)}catch(de){try{n(8,w=R(Xa(ct.text))),n(16,x=ct.text),n(19,pt=!0),n(17,bt=void 0)}catch{n(8,w=void 0),n(16,x=j.text),n(19,pt=!1),n(17,bt=x!==void 0&&x!==""?Sf(x,de.message||String(de)):void 0)}}else n(8,w=ct.json),n(16,x=void 0),n(19,pt=!1),n(17,bt=void 0);W(w),G.sortedColumn&&n(11,G=xt(xt({},G),{},{sortedColumn:null})),Qt({previousJson:Yt,previousState:Te,previousText:He,previousTextIsRepaired:Ve}),wn(ae,null)}}function Qt(ct){var Nt=ct.previousJson,Zt=ct.previousState,ae=ct.previousText,Yt=ct.previousTextIsRepaired;Nt===void 0&&ae===void 0||(w!==void 0?Nt!==void 0?Ot.add({undo:{patch:[{op:"replace",path:"",value:Nt}],state:Co(Zt),json:void 0,text:ae,textIsRepaired:Yt},redo:{patch:[{op:"replace",path:"",value:w}],state:Co(G),json:void 0,text:x,textIsRepaired:pt}}):Ot.add({undo:{patch:void 0,json:void 0,text:ae,state:Co(Zt),textIsRepaired:Yt},redo:{patch:void 0,json:w,state:Co(G),text:x,textIsRepaired:pt}}):Nt!==void 0&&Ot.add({undo:{patch:void 0,json:Nt,state:Co(Zt),text:ae,textIsRepaired:Yt},redo:{patch:void 0,json:void 0,text:x,textIsRepaired:pt,state:Co(G)}}))}var ee=[],Kt=Np(jB);function ue(ct,Nt,Zt,ae){Fl(function(){var Yt;try{Yt=Kt(ct,Nt,Zt,ae)}catch(Te){Yt=[{path:[],message:"Failed to validate: "+Te.message,severity:Hs.warning}]}an(Yt,ee)||(s("validationErrors changed:",Yt),n(12,ee=Yt))},function(Yt){return s("validationErrors updated in ".concat(Yt," ms"))})}function Me(){return s("validate"),bt?{parseError:bt,isRepairable:!1}:(ue(w,q,K,F),cn(ee)?null:{validationErrors:ee})}function tn(ct,Nt){if(s("patch",ct,Nt),w===void 0)throw new Error("Cannot apply patch: no JSON");var Zt={json:w},ae=w,Yt=G,Te=pt,He=oB(w,ct),Ve=KL(w,G,ct).json,de=Rmt(G,ct,gt),fn=typeof Nt=="function"?Nt(Ve,de):void 0;n(8,w=fn&&fn.json!==void 0?fn.json:Ve);var Kn=fn&&fn.state!==void 0?fn.state:de;n(11,G=Kn),n(16,x=void 0),n(19,pt=!1),n(18,yt=void 0),n(17,bt=void 0),Ot.add({undo:{patch:He,json:void 0,text:void 0,state:Co(Yt),textIsRepaired:Te},redo:{patch:ct,json:void 0,state:Co(Kn),text:void 0,textIsRepaired:pt}});var Dn={json:w,previousJson:ae,undo:He,redo:ct};return wn(Zt,Dn),Dn}function le(ct,Nt){if(!k)return tn(ct,Nt)}function wn(ct,Nt){(ct.json!==void 0||(ct==null?void 0:ct.text)!==void 0)&&A&&(x!==void 0?A({text:x,json:void 0},ct,{contentErrors:Me(),patchResult:Nt}):w!==void 0&&A({text:void 0,json:w},ct,{contentErrors:Me(),patchResult:Nt}))}function Ne(ct){s("handleFind",ct)}function mn(ct){s("pasted json as text",ct),n(18,yt=ct)}function Ye(ct){var Nt=parseInt(ct[0]),Zt=[String(Nt+1)].concat(Se(ct.slice(1)));return Li(w,Zt)?Ue(Zt,!1):Ue(ct,!1)}function Ke(){b&&(b.focus(),b.select())}function qn(){G.selection||z(!Un(w)||cn(w)||cn(gt)?null:Ue(["0"].concat(Se(gt[0])),!1))}function In(ct){var Nt=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],Zt=_y(ct,gt,it,_d),ae=Zt-_t,Yt=En(ct);if(s("scrollTo",{path:ct,top:Zt,scrollTop:_t,elem:Yt}),!y)return Promise.resolve();var Te=y.getBoundingClientRect();if(Yt&&!Nt){var He=Yt.getBoundingClientRect();if(He.bottom>Te.top&&He.top<Te.bottom)return Promise.resolve()}var Ve=-Te.height/4;return new Promise(Yt?function(de){d(Yt,{container:y,offset:Ve,duration:300,callback:function(){Zn(ct),de()}})}:function(de){var fn;d(ae,{container:y,offset:Ve,duration:300,callback:(fn=Ae(qt().mark(function Kn(){return qt().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,br();case 2:if(_y(ct,gt,it,_d)===Zt){Dn.next=8;break}return Dn.next=6,In(ct,Nt);case 6:Dn.next=9;break;case 8:Zn(ct);case 9:de();case 10:case"end":return Dn.stop()}},Kn)})),function(){return fn.apply(this,arguments)})})})}function Zn(ct){var Nt=En(ct);if(Nt&&y){var Zt=y.getBoundingClientRect(),ae=Nt.getBoundingClientRect();if(ae.right>Zt.right){var Yt=ae.right-Zt.right;n(14,y.scrollLeft+=Yt,y)}if(ae.left<Zt.left){var Te=Zt.left-ae.left;n(14,y.scrollLeft-=Te,y)}}}function Sn(ct){(function(Nt){if(y){var Zt=Ai(Nt,gt).rowIndex,ae=_y(Nt,gt,it,_d),Yt=ae+(it[Zt]||_d),Te=y.getBoundingClientRect(),He=_t,Ve=_t+Te.height-18;if(Yt>Ve){var de=Yt-Ve;n(14,y.scrollTop+=de,y)}if(ae<He){var fn=He-ae;n(14,y.scrollTop-=fn,y)}}})(ct),Zn(ct)}function En(ct){return y?y.querySelector('td[data-path="'.concat(Cf(ct),'"]')):null}function Nn(ct){var Nt=ct.anchor,Zt=ct.left,ae=ct.top,Yt=ct.width,Te=ct.height,He=ct.offsetTop,Ve=ct.offsetLeft,de=ct.showTip;Y=!0;var fn=l(uwt,{json:w,documentState:G,parser:K,showTip:de,onEditValue:Pr,onEditRow:Et,onToggleEnforceString:ie,onCut:$t,onCopy:Q,onPaste:en,onRemove:vt,onDuplicateRow:ut,onInsertBeforeRow:It,onInsertAfterRow:ne,onRemoveRow:pe,onCloseContextMenu:function(){f(fn),Ke()}},{left:Zt,top:ae,offsetTop:He,offsetLeft:Ve,width:Yt,height:Te,anchor:Nt,closeOnOuterClick:!0,onClose:function(){Y=!1,Ke()}})}function sr(ct){if(!k&&!Gi(G.selection)){if(ct&&(ct.stopPropagation(),ct.preventDefault()),ct&&ct.type==="contextmenu"&&ct.target!==b)Nn({left:ct.clientX,top:ct.clientY,width:Rs,height:Ts,showTip:!1});else{var Nt,Zt=(Nt=y)===null||Nt===void 0?void 0:Nt.querySelector(".jse-table-cell.jse-selected-value");if(Zt)Nn({anchor:Zt,offsetTop:2,width:Rs,height:Ts,showTip:!1});else{var ae,Yt=(ae=y)===null||ae===void 0?void 0:ae.getBoundingClientRect();Yt&&Nn({top:Yt.top+2,left:Yt.left+2,width:Rs,height:Ts,showTip:!1})}}return!1}}function Pr(){if(!k&&G.selection){var ct=ge(G.selection);xr(fe(w,ct))?ke(ct):z(Ue(ct,!0))}}function Et(){!k&&G.selection&&ke(ge(G.selection).slice(0,1))}function ie(){if(!k&&dn(G.selection)){var ct=G.selection.path,Nt=oe(ct),Zt=fe(w,ct),ae=!Ws(Zt,G.enforceStringMap,Nt,K),Yt=ae?String(Zt):Kf(String(Zt),K);s("handleToggleEnforceString",{enforceString:ae,value:Zt,updatedValue:Yt}),le([{op:"replace",path:Nt,value:Yt}],function(Te,He){return{state:WL(He,Nt,ae)}})}}function Be(){return(Be=Ae(qt().mark(function ct(){var Nt,Zt,ae;return qt().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(s("apply pasted json",yt),yt){Yt.next=3;break}return Yt.abrupt("return");case 3:return Zt=(Nt=yt).path,ae=Nt.contents,z(Ue(Zt,!1)),Yt.next=7,br();case 7:le([{op:"replace",path:oe(Zt),value:ae}]);case 9:case"end":return Yt.stop()}},ct)}))).apply(this,arguments)}function en(){c(_B,{},xt(xt({},Zu),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ke()}})}function $t(ct){return Xt.apply(this,arguments)}function Xt(){return(Xt=Ae(qt().mark(function ct(Nt){return qt().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,TB({json:w,documentState:G,indentation:Nt?O:void 0,readOnly:k,parser:K,onPatch:le});case 2:case"end":return Zt.stop()}},ct)}))).apply(this,arguments)}function Q(){return at.apply(this,arguments)}function at(){return at=Ae(qt().mark(function ct(){var Nt,Zt=arguments;return qt().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(Nt=!(Zt.length>0&&Zt[0]!==void 0)||Zt[0],w!==void 0){ae.next=3;break}return ae.abrupt("return");case 3:return ae.next=5,RB({json:w,documentState:G,indentation:Nt?O:void 0,parser:K});case 5:case"end":return ae.stop()}},ct)})),at.apply(this,arguments)}function vt(){NB({json:w,text:x,documentState:G,keepSelection:!0,readOnly:k,onChange:A,onPatch:le})}function ut(){Imt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function It(){Nmt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function ne(){Dmt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function pe(){zmt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function Xe(){return(Xe=Ae(qt().mark(function ct(Nt){return qt().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,DB({char:Nt,selectInside:!1,refJsonEditor:g,json:w,selection:G.selection,readOnly:k,parser:K,onPatch:le,onReplaceJson:Fe,onSelect:z});case 2:case"end":return Zt.stop()}},ct)}))).apply(this,arguments)}function Fe(ct,Nt){var Zt=G,ae=w,Yt=x,Te={json:w,text:x},He=pt,Ve=Mi(w,G,[],Ja),de=typeof Nt=="function"?Nt(ct,Ve):void 0;n(8,w=de&&de.json!==void 0?de.json:ct),n(11,G=de&&de.state!==void 0?de.state:Ve),n(16,x=void 0),n(19,pt=!1),n(17,bt=void 0),W(w),Qt({previousJson:ae,previousState:Zt,previousText:Yt,previousTextIsRepaired:He}),wn(Te,null)}function xn(ct,Nt){s("handleChangeText");var Zt=G,ae=w,Yt=x,Te={json:w,text:x},He=pt;try{n(8,w=R(ct)),n(11,G=Mi(w,G,[],Ja)),n(16,x=void 0),n(19,pt=!1),n(17,bt=void 0)}catch(de){try{n(8,w=R(Xa(ct))),n(11,G=Mi(w,G,[],Ja)),n(16,x=ct),n(19,pt=!0),n(17,bt=void 0)}catch{n(8,w=void 0),n(11,G=jg({json:w,expand:Ja})),n(16,x=ct),n(19,pt=!1),n(17,bt=x!==""?Sf(x,de.message||String(de)):void 0)}}if(typeof Nt=="function"){var Ve=Nt(w,G);n(8,w=Ve&&Ve.json?Ve.json:w),n(11,G=Ve&&Ve.state?Ve.state:G)}W(w),Qt({previousJson:ae,previousState:Zt,previousText:Yt,previousTextIsRepaired:He}),wn(Te,null)}function On(ct){if(w!==void 0){var Nt=ct.id,Zt=ct.onTransform,ae=ct.onClose,Yt=ct.rootPath||[];Y=!0,ft({id:Nt||p,json:w,rootPath:Yt||[],onTransform:function(Te){Zt?Zt({operations:Te,json:w,transformedJson:xa(w,Te)}):(s("onTransform",Yt,Te),le(Te))},onClose:function(){Y=!1,Ke(),ae&&ae()}})}}function ke(ct){s("openJSONEditorModal",{path:ct}),Y=!0,tt({content:{json:fe(w,ct)},path:ct,onPatch:mt.onPatch,onClose:function(){Y=!1,Ke()}})}function gn(ct,Nt){c($B,{text:ct,onParse:function(Zt){return W0(Zt,function(ae){return Mp(ae,K)})},onRepair:PL,onApply:Nt},xt(xt({},Zu),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ke()}})}function pn(){if(!k&&Ot.getState().canUndo){var ct=Ot.undo();if(ct){var Nt={json:w,text:x};n(8,w=ct.undo.patch?xa(w,ct.undo.patch):ct.undo.json),n(11,G=ct.undo.state),n(16,x=ct.undo.text),n(19,pt=ct.undo.textIsRepaired),n(17,bt=void 0),s("undo",{item:ct,json:w}),wn(Nt,{json:w,previousJson:Nt.json,redo:ct.undo.patch,undo:ct.redo.patch}),Ke(),G.selection&&In(ge(G.selection),!1)}}}function tr(){if(!k&&Ot.getState().canRedo){var ct=Ot.redo();if(ct){var Nt={json:w,text:x};n(8,w=ct.redo.patch?xa(w,ct.redo.patch):ct.redo.json),n(11,G=ct.redo.state),n(16,x=ct.redo.text),n(19,pt=ct.redo.textIsRepaired),n(17,bt=void 0),s("redo",{item:ct,json:w}),wn(Nt,{json:w,previousJson:Nt.json,redo:ct.redo.patch,undo:ct.undo.patch}),Ke(),G.selection&&In(ge(G.selection),!1)}}}function yn(ct,Nt){n(69,it[Nt]=ct.getBoundingClientRect().height,it)}return e.$$set=function(ct){"readOnly"in ct&&n(0,k=ct.readOnly),"externalContent"in ct&&n(47,j=ct.externalContent),"externalSelection"in ct&&n(48,S=ct.externalSelection),"mainMenuBar"in ct&&n(1,N=ct.mainMenuBar),"escapeControlCharacters"in ct&&n(49,C=ct.escapeControlCharacters),"escapeUnicodeCharacters"in ct&&n(50,$=ct.escapeUnicodeCharacters),"flattenColumns"in ct&&n(51,B=ct.flattenColumns),"parser"in ct&&n(2,K=ct.parser),"parseMemoizeOne"in ct&&n(52,R=ct.parseMemoizeOne),"validator"in ct&&n(53,q=ct.validator),"validationParser"in ct&&n(54,F=ct.validationParser),"indentation"in ct&&n(3,O=ct.indentation),"onChange"in ct&&n(55,A=ct.onChange),"onChangeMode"in ct&&n(4,_=ct.onChangeMode),"onSelect"in ct&&n(56,M=ct.onSelect),"onRenderValue"in ct&&n(57,P=ct.onRenderValue),"onRenderMenu"in ct&&n(5,D=ct.onRenderMenu),"onFocus"in ct&&n(58,T=ct.onFocus),"onBlur"in ct&&n(59,H=ct.onBlur),"onSortModal"in ct&&n(60,I=ct.onSortModal),"onTransformModal"in ct&&n(61,ft=ct.onTransformModal),"onJSONEditorModal"in ct&&n(62,tt=ct.onJSONEditorModal)},e.$$.update=function(){786432&e.$$.dirty[1]&&n(68,m=aj({escapeControlCharacters:C,escapeUnicodeCharacters:$})),65536&e.$$.dirty[1]&&Vt(j),131072&e.$$.dirty[1]&&function(ct){an(G.selection,ct)||(s("applyExternalSelection",ct),z(ct))}(S),1792&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(10,gt=Un(w)?function(ct,Nt){var Zt,ae=new Set(Nt.map(oe)),Yt=new Set(ct.map(oe)),Te=ht(ae);try{for(Te.s();!(Zt=Te.n()).done;){var He=Zt.value;Yt.has(He)||ae.delete(He)}}catch(Kn){Te.e(Kn)}finally{Te.f()}var Ve,de=ht(Yt);try{for(de.s();!(Ve=de.n()).done;){var fn=Ve.value;ae.has(fn)||ae.add(fn)}}catch(Kn){de.e(Kn)}finally{de.f()}return Se(ae).map(Ca)}(Mmt(w,B,jt),gt):[]),1280&e.$$.dirty[0]&&n(25,r=w&&!cn(gt)),768&e.$$.dirty[0]&&n(24,o=Array.isArray(w)&&w.length>jt),256&e.$$.dirty[0]|896&e.$$.dirty[2]&&n(23,i=Amt(_t,X,w,it,_d)),256&e.$$.dirty[0]&&y&&y.scrollTo({top:y.scrollTop,left:y.scrollLeft}),2309&e.$$.dirty[0]|67108864&e.$$.dirty[1]|64&e.$$.dirty[2]&&n(21,mt={readOnly:k,parser:K,normalization:m,getJson:function(){return w},getDocumentState:function(){return G},findElement:En,findNextInside:Ye,focus:Ke,onPatch:le,onSelect:z,onFind:Ne,onPasteJson:mn,onRenderValue:P}),260&e.$$.dirty[0]|12582912&e.$$.dirty[1]&&ue(w,q,K,F),5120&e.$$.dirty[0]&&n(22,a=Pmt(ee,gt))},[k,N,K,O,_,D,Ke,function(){if(pt&&w!==void 0){var ct=G,Nt=w,Zt=x,ae={json:w,text:x},Yt=pt;n(16,x=void 0),n(19,pt=!1),W(w),Qt({previousJson:Nt,previousState:ct,previousText:Zt,previousTextIsRepaired:Yt}),wn(ae,null)}return{json:w,text:x}},w,jt,gt,G,ee,g,y,b,x,bt,yt,pt,Ct,mt,a,i,o,r,v,void 0,function(ct){if(!k){s("onSortByHeader",ct);var Nt=ct.sortDirection===zi.desc?-1:1;le(OB(w,[],ct.path,Nt),function(Zt,ae){return{state:xt(xt({},ae),{},{sortedColumn:ct})}})}},function(ct){n(71,_t=ct.target.scrollTop)},function(ct){var Nt=ct!=null&&ct.target?qL(ct.target):void 0;if(Nt){if(Gi(G.selection)&&Fh(w,G.selection,Nt))return;z(Ue(Nt,!1)),ct.preventDefault()}setTimeout(function(){setTimeout(function(){J||sj(ct.target,"BUTTON")||Ke()})})},Nn,sr,function(ct){k||Nn({anchor:FL(ct.target,"BUTTON"),offsetTop:0,width:Rs,height:Ts,showTip:!0})},function(){return Be.apply(this,arguments)},function(){s("clear pasted json"),n(18,yt=void 0)},function(){_(bo.text)},function(ct){var Nt=au(ct);if(s("keydown",{combo:Nt,key:ct.key}),Nt==="Ctrl+X"&&(ct.preventDefault(),$t(!0)),Nt==="Ctrl+Shift+X"&&(ct.preventDefault(),$t(!1)),Nt==="Ctrl+C"&&(ct.preventDefault(),Q(!0)),Nt==="Ctrl+Shift+C"&&(ct.preventDefault(),Q(!1)),Nt==="Ctrl+D"&&ct.preventDefault(),Nt!=="Delete"&&Nt!=="Backspace"||(ct.preventDefault(),vt()),Nt==="Insert"&&ct.preventDefault(),Nt==="Ctrl+A"&&ct.preventDefault(),Nt==="Ctrl+Q"&&sr(ct),Nt==="ArrowLeft"&&(ct.preventDefault(),qn(),G.selection)){var Zt=function(de,fn){var Kn=Ai(ge(fn),de),Dn=Kn.rowIndex,Nr=Kn.columnIndex;return Nr>0?Ue(Tu({rowIndex:Dn,columnIndex:Nr-1},de),!1):fn}(gt,G.selection);z(Zt),Sn(ge(Zt))}if(Nt==="ArrowRight"&&(ct.preventDefault(),qn(),G.selection)){var ae=function(de,fn){var Kn=Ai(ge(fn),de),Dn=Kn.rowIndex,Nr=Kn.columnIndex;return Nr<de.length-1?Ue(Tu({rowIndex:Dn,columnIndex:Nr+1},de),!1):fn}(gt,G.selection);z(ae),Sn(ge(ae))}if(Nt==="ArrowUp"&&(ct.preventDefault(),qn(),G.selection)){var Yt=function(de,fn){var Kn=Ai(ge(fn),de),Dn=Kn.rowIndex,Nr=Kn.columnIndex;return Dn>0?Ue(Tu({rowIndex:Dn-1,columnIndex:Nr},de),!1):fn}(gt,G.selection);z(Yt),Sn(ge(Yt))}if(Nt==="ArrowDown"&&(ct.preventDefault(),qn(),G.selection)){var Te=function(de,fn,Kn){var Dn=Ai(ge(Kn),fn),Nr=Dn.rowIndex,ci=Dn.columnIndex;return Nr<de.length-1?Ue(Tu({rowIndex:Nr+1,columnIndex:ci},fn),!1):Kn}(w,gt,G.selection);z(Te),Sn(ge(Te))}if(Nt==="Enter"&&G.selection&&dn(G.selection)){ct.preventDefault();var He=G.selection.path;xr(fe(w,He))?ke(He):k||z(xt(xt({},G.selection),{},{edit:!0}))}if(Nt.replace(/^Shift\+/,"").length===1&&G.selection)return ct.preventDefault(),void function(de){Xe.apply(this,arguments)}(ct.key);if(Nt==="Ctrl+Enter"&&dn(G.selection)){var Ve=fe(w,G.selection.path);O0(Ve)&&window.open(String(Ve),"_blank")}Nt==="Escape"&&G.selection&&(ct.preventDefault(),z(null)),Nt==="Ctrl+F"&&ct.preventDefault(),Nt==="Ctrl+H"&&ct.preventDefault(),Nt==="Ctrl+Z"&&(ct.preventDefault(),pn()),Nt==="Ctrl+Shift+Z"&&(ct.preventDefault(),tr())},function(ct){ct.preventDefault(),IB({clipboardText:ct.clipboardData.getData("text/plain"),json:w,selection:G.selection,readOnly:k,parser:K,onPatch:le,onChangeText:xn,openRepairModal:gn})},function(ct){s("select validation error",ct),z(Ue(ct.path,!1)),In(ct.path)},ke,function(){(function(ct){k||w===void 0||(Y=!0,I({id:h,json:w,rootPath:ct,onSort:function(Nt){var Zt=Nt.operations,ae=Nt.itemPath,Yt=Nt.direction;s("onSort",Zt,ct,ae,Yt),le(Zt,function(Te,He){return{state:xt(xt({},He),{},{sortedColumn:{path:ae,sortDirection:Yt===-1?zi.desc:zi.asc}})}})},onClose:function(){Y=!1,Ke()}}))})([])},function(){On({rootPath:[]})},pn,tr,function(ct){n(70,X=ct.getBoundingClientRect().height)},yn,j,S,C,$,B,R,q,F,A,M,P,T,H,I,ft,tt,Me,tn,In,En,On,m,it,X,_t,function(ct){rn[ct?"unshift":"push"](function(){n(15,b=ct)})},function(){return n(9,jt=1/0)},function(ct,Nt){return yn(Nt,ct)},function(ct){rn[ct?"unshift":"push"](function(){n(14,y=ct)})},function(){setTimeout(Ke)},function(ct){rn[ct?"unshift":"push"](function(){n(13,g=ct)})}]}var Pwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Awt,Mwt,qe,{readOnly:0,externalContent:47,externalSelection:48,mainMenuBar:1,escapeControlCharacters:49,escapeUnicodeCharacters:50,flattenColumns:51,parser:2,parseMemoizeOne:52,validator:53,validationParser:54,indentation:3,onChange:55,onChangeMode:4,onSelect:56,onRenderValue:57,onRenderMenu:5,onFocus:58,onBlur:59,onSortModal:60,onTransformModal:61,onJSONEditorModal:62,validate:63,patch:64,focus:6,acceptAutoRepair:7,scrollTo:65,findElement:66,openTransformModal:67},kwt,[-1,-1,-1,-1,-1]),o}return ot(n,[{key:"validate",get:function(){return this.$$.ctx[63]}},{key:"patch",get:function(){return this.$$.ctx[64]}},{key:"focus",get:function(){return this.$$.ctx[6]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[7]}},{key:"scrollTo",get:function(){return this.$$.ctx[65]}},{key:"findElement",get:function(){return this.$$.ctx[66]}},{key:"openTransformModal",get:function(){return this.$$.ctx[67]}}]),n}();function Twt(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],pathParser:e[17],onError:e[23],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onClassName:e[22],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new _j({props:r}),e[47](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};1&i[0]&&(a.externalContent=o[0]),2&i[0]&&(a.externalSelection=o[1]),4&i[0]&&(a.readOnly=o[2]),8&i[0]&&(a.indentation=o[3]),64&i[0]&&(a.mainMenuBar=o[6]),128&i[0]&&(a.navigationBar=o[7]),1024&i[0]&&(a.escapeControlCharacters=o[10]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),8192&i[0]&&(a.parser=o[13]),16384&i[0]&&(a.parseMemoizeOne=o[14]),32768&i[0]&&(a.validator=o[15]),65536&i[0]&&(a.validationParser=o[16]),131072&i[0]&&(a.pathParser=o[17]),8388608&i[0]&&(a.onError=o[23]),262144&i[0]&&(a.onChange=o[18]),524288&i[0]&&(a.onChangeMode=o[19]),1048576&i[0]&&(a.onSelect=o[20]),2097152&i[0]&&(a.onRenderValue=o[21]),4194304&i[0]&&(a.onClassName=o[22]),16777216&i[0]&&(a.onFocus=o[24]),33554432&i[0]&&(a.onBlur=o[25]),2&i[1]&&(a.onRenderMenu=o[32]),67108864&i[0]&&(a.onSortModal=o[26]),134217728&i[0]&&(a.onTransformModal=o[27]),268435456&i[0]&&(a.onJSONEditorModal=o[28]),t.$set(a)},i:function(o){n||(L(t.$$.fragment,o),n=!0)},o:function(o){U(t.$$.fragment,o),n=!1},d:function(o){e[47](null),At(t,o)}}}function Rwt(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],mainMenuBar:e[6],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],indentation:e[3],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Pwt({props:r}),e[46](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};1&i[0]&&(a.externalContent=o[0]),2&i[0]&&(a.externalSelection=o[1]),4&i[0]&&(a.readOnly=o[2]),64&i[0]&&(a.mainMenuBar=o[6]),1024&i[0]&&(a.escapeControlCharacters=o[10]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),4096&i[0]&&(a.flattenColumns=o[12]),8192&i[0]&&(a.parser=o[13]),16384&i[0]&&(a.parseMemoizeOne=o[14]),32768&i[0]&&(a.validator=o[15]),65536&i[0]&&(a.validationParser=o[16]),8&i[0]&&(a.indentation=o[3]),262144&i[0]&&(a.onChange=o[18]),524288&i[0]&&(a.onChangeMode=o[19]),1048576&i[0]&&(a.onSelect=o[20]),2097152&i[0]&&(a.onRenderValue=o[21]),16777216&i[0]&&(a.onFocus=o[24]),33554432&i[0]&&(a.onBlur=o[25]),2&i[1]&&(a.onRenderMenu=o[32]),67108864&i[0]&&(a.onSortModal=o[26]),134217728&i[0]&&(a.onTransformModal=o[27]),268435456&i[0]&&(a.onJSONEditorModal=o[28]),t.$set(a)},i:function(o){n||(L(t.$$.fragment,o),n=!0)},o:function(o){U(t.$$.fragment,o),n=!1},d:function(o){e[46](null),At(t,o)}}}function Iwt(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],tabSize:e[4],mainMenuBar:e[6],statusBar:e[8],askToFormat:e[9],escapeUnicodeCharacters:e[11],parser:e[13],validator:e[15],validationParser:e[16],onChange:e[18],onSelect:e[20],onChangeMode:e[19],onError:e[23],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onSortModal:e[26],onTransformModal:e[27]};return t=new Wbt({props:r}),e[45](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};1&i[0]&&(a.externalContent=o[0]),2&i[0]&&(a.externalSelection=o[1]),4&i[0]&&(a.readOnly=o[2]),8&i[0]&&(a.indentation=o[3]),16&i[0]&&(a.tabSize=o[4]),64&i[0]&&(a.mainMenuBar=o[6]),256&i[0]&&(a.statusBar=o[8]),512&i[0]&&(a.askToFormat=o[9]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),8192&i[0]&&(a.parser=o[13]),32768&i[0]&&(a.validator=o[15]),65536&i[0]&&(a.validationParser=o[16]),262144&i[0]&&(a.onChange=o[18]),1048576&i[0]&&(a.onSelect=o[20]),524288&i[0]&&(a.onChangeMode=o[19]),8388608&i[0]&&(a.onError=o[23]),16777216&i[0]&&(a.onFocus=o[24]),33554432&i[0]&&(a.onBlur=o[25]),2&i[1]&&(a.onRenderMenu=o[32]),67108864&i[0]&&(a.onSortModal=o[26]),134217728&i[0]&&(a.onTransformModal=o[27]),t.$set(a)},i:function(o){n||(L(t.$$.fragment,o),n=!0)},o:function(o){U(t.$$.fragment,o),n=!1},d:function(o){e[45](null),At(t,o)}}}function Nwt(e){var t,n,r,o,i=[Iwt,Rwt,Twt],a=[];function s(c,u){return c[5]===bo.text||c[5]==="code"?0:c[5]===bo.table?1:2}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=_n()},m:function(c,u){a[t].m(c,u),dt(c,r,u),o=!0},p:function(c,u){var l=t;(t=s(c))===l?a[t].p(c,u):(Bt(),U(a[l],1,1,function(){a[l]=null}),Ft(),(n=a[t])?n.p(c,u):(n=a[t]=i[t](c)).c(),L(n,1),n.m(r.parentNode,r))},i:function(c){o||(L(n),o=!0)},o:function(c){U(n),o=!1},d:function(c){c&&lt(r),a[t].d(c)}}}function Dwt(e,t,n){var r,o,i,a,s,c=t.content,u=t.selection,l=t.readOnly,f=t.indentation,d=t.tabSize,h=t.mode,p=t.mainMenuBar,v=t.navigationBar,m=t.statusBar,g=t.askToFormat,y=t.escapeControlCharacters,b=t.escapeUnicodeCharacters,w=t.flattenColumns,x=t.parser,k=t.parseMemoizeOne,j=t.validator,S=t.validationParser,N=t.pathParser,C=t.insideModal,$=t.onChange,B=t.onChangeMode,K=t.onSelect,R=t.onRenderValue,q=t.onClassName,F=t.onRenderMenu,O=t.onError,A=t.onFocus,_=t.onBlur,M=t.onSortModal,P=t.onTransformModal,D=t.onJSONEditorModal,T={type:"separator"};function H(){return(H=Ae(qt().mark(function I(){return qt().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(!i){ft.next=3;break}return ft.next=3,i.refresh();case 3:case"end":return ft.stop()}},I)}))).apply(this,arguments)}return e.$$set=function(I){"content"in I&&n(0,c=I.content),"selection"in I&&n(1,u=I.selection),"readOnly"in I&&n(2,l=I.readOnly),"indentation"in I&&n(3,f=I.indentation),"tabSize"in I&&n(4,d=I.tabSize),"mode"in I&&n(5,h=I.mode),"mainMenuBar"in I&&n(6,p=I.mainMenuBar),"navigationBar"in I&&n(7,v=I.navigationBar),"statusBar"in I&&n(8,m=I.statusBar),"askToFormat"in I&&n(9,g=I.askToFormat),"escapeControlCharacters"in I&&n(10,y=I.escapeControlCharacters),"escapeUnicodeCharacters"in I&&n(11,b=I.escapeUnicodeCharacters),"flattenColumns"in I&&n(12,w=I.flattenColumns),"parser"in I&&n(13,x=I.parser),"parseMemoizeOne"in I&&n(14,k=I.parseMemoizeOne),"validator"in I&&n(15,j=I.validator),"validationParser"in I&&n(16,S=I.validationParser),"pathParser"in I&&n(17,N=I.pathParser),"insideModal"in I&&n(33,C=I.insideModal),"onChange"in I&&n(18,$=I.onChange),"onChangeMode"in I&&n(19,B=I.onChangeMode),"onSelect"in I&&n(20,K=I.onSelect),"onRenderValue"in I&&n(21,R=I.onRenderValue),"onClassName"in I&&n(22,q=I.onClassName),"onRenderMenu"in I&&n(34,F=I.onRenderMenu),"onError"in I&&n(23,O=I.onError),"onFocus"in I&&n(24,A=I.onFocus),"onBlur"in I&&n(25,_=I.onBlur),"onSortModal"in I&&n(26,M=I.onSortModal),"onTransformModal"in I&&n(27,P=I.onTransformModal),"onJSONEditorModal"in I&&n(28,D=I.onJSONEditorModal)},e.$$.update=function(){524320&e.$$.dirty[0]&&n(44,a=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(h,")"),className:"jse-group-button jse-first"+(h===bo.text||h==="code"?" jse-selected":""),onClick:function(){return B(bo.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(h,")"),className:"jse-group-button "+(h===bo.tree?" jse-selected":""),onClick:function(){return B(bo.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(h,")"),className:"jse-group-button jse-last"+(h===bo.table?" jse-selected":""),onClick:function(){return B(bo.table)}}]),32&e.$$.dirty[0]|8204&e.$$.dirty[1]&&n(32,s=function(I){var ft=SB(I[0])?a.concat(I):a.concat(T,I);return F(ft,{mode:h,modal:C})||ft})},[c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,j,S,N,$,B,K,R,q,O,A,_,M,P,D,r,o,i,s,C,F,function(I){return r?r.patch(I):o?o.patch(I):i?i.patch(I):void 0},function(I){if(r)return r.expand(I);throw new Error('Method expand is not available in mode "'.concat(h,'"'))},function(I){if(i)i.openTransformModal(I);else if(r)r.openTransformModal(I);else{if(!o)throw new Error('Method transform is not available in mode "'.concat(h,'"'));o.openTransformModal(I)}},function(){if(i)return i.validate();if(r)return r.validate();if(o)return o.validate();throw new Error('Method validate is not available in mode "'.concat(h,'"'))},function(){return r?r.acceptAutoRepair():c},function(I){if(r)return r.scrollTo(I);if(o)return o.scrollTo(I);throw new Error('Method scrollTo is not available in mode "'.concat(h,'"'))},function(I){if(r)return r.findElement(I);if(o)return o.findElement(I);throw new Error('Method findElement is not available in mode "'.concat(h,'"'))},function(){i?i.focus():r?r.focus():o&&o.focus()},function(){return H.apply(this,arguments)},a,function(I){rn[I?"unshift":"push"](function(){n(31,i=I)})},function(I){rn[I?"unshift":"push"](function(){n(30,o=I)})},function(I){rn[I?"unshift":"push"](function(){n(29,r=I)})}]}var EH=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Dwt,Nwt,to,{content:0,selection:1,readOnly:2,indentation:3,tabSize:4,mode:5,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,parseMemoizeOne:14,validator:15,validationParser:16,pathParser:17,insideModal:33,onChange:18,onChangeMode:19,onSelect:20,onRenderValue:21,onClassName:22,onRenderMenu:34,onError:23,onFocus:24,onBlur:25,onSortModal:26,onTransformModal:27,onJSONEditorModal:28,patch:35,expand:36,transform:37,validate:38,acceptAutoRepair:39,scrollTo:40,findElement:41,focus:42,refresh:43},null,[-1,-1]),o}return ot(n,[{key:"patch",get:function(){return this.$$.ctx[35]}},{key:"expand",get:function(){return this.$$.ctx[36]}},{key:"transform",get:function(){return this.$$.ctx[37]}},{key:"validate",get:function(){return this.$$.ctx[38]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[39]}},{key:"scrollTo",get:function(){return this.$$.ctx[40]}},{key:"findElement",get:function(){return this.$$.ctx[41]}},{key:"focus",get:function(){return this.$$.ctx[42]}},{key:"refresh",get:function(){return this.$$.ctx[43]}}]),n}();function zwt(e){ze(e,"svelte-4nt0y7",".jse-modal.svelte-4nt0y7.svelte-4nt0y7{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-4nt0y7 .jse-modal-contents.svelte-4nt0y7{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-4nt0y7 .jse-modal-contents .jse-actions.svelte-4nt0y7{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-4nt0y7 .jse-modal-contents .jse-actions button.jse-primary.svelte-4nt0y7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-4nt0y7 .jse-modal-contents .jse-actions button.jse-primary.svelte-4nt0y7:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-4nt0y7 .jse-modal-contents .jse-actions button.jse-primary.svelte-4nt0y7:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-modal-contents.svelte-4nt0y7{padding-top:0;--jse-theme-color:var(--jse-modal-theme-color);--jse-theme-color-highlight:var(--jse-modal-theme-color-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-modal-contents .jse-label.svelte-4nt0y7{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-modal-contents .jse-label .jse-label-inner.svelte-4nt0y7{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-modal-contents .jse-label .jse-label-inner button.svelte-4nt0y7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-modal-contents .jse-modal-inline-editor.svelte-4nt0y7{flex:1;min-height:150px;min-width:0;display:flex}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-actions.svelte-4nt0y7{gap:var(--jse-padding);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-actions .jse-error.svelte-4nt0y7{flex:1;color:var(--jse-error-color)}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-actions button.jse-secondary.svelte-4nt0y7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-secondary-background);color:var(--jse-button-secondary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-actions button.jse-secondary.svelte-4nt0y7:hover{background:var(--jse-button-secondary-background-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 .jse-actions button.jse-secondary.svelte-4nt0y7:disabled{background:var(--jse-button-secondary-background-disabled)}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 input.svelte-4nt0y7{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 input.svelte-4nt0y7:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-jsoneditor-modal.svelte-4nt0y7 input.svelte-4nt0y7:read-only{background:var(--jse-input-background-readonly)}")}function NR(e){var t,n;return{c:function(){t=et("div"),n=Gt(e[21]),E(t,"class","jse-error svelte-4nt0y7")},m:function(r,o){dt(r,t,o),V(t,n)},p:function(r,o){2097152&o[0]&&we(n,r[21])},d:function(r){r&&lt(t)}}}function DR(e){var t,n,r,o,i,a;return n=new hn({props:{data:gdt}}),{c:function(){t=et("button"),Pt(n.$$.fragment),r=Gt(" Back"),E(t,"type","button"),E(t,"class","jse-secondary svelte-4nt0y7")},m:function(s,c){dt(s,t,c),Mt(n,t,null),V(t,r),o=!0,i||(a=Lt(t,"click",e[26]),i=!0)},p:Ht,i:function(s){o||(L(n.$$.fragment,s),o=!0)},o:function(s){U(n.$$.fragment,s),o=!1},d:function(s){s&&lt(t),At(n),i=!1,a()}}}function Lwt(e){var t,n,r;return{c:function(){(t=et("button")).textContent="Close",E(t,"type","button"),E(t,"class","jse-primary svelte-4nt0y7")},m:function(o,i){dt(o,t,i),n||(r=[Lt(t,"click",e[26]),lo(OH.call(null,t))],n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,Fn(r)}}}function Bwt(e){var t,n,r;return{c:function(){(t=et("button")).textContent="Apply",E(t,"type","button"),E(t,"class","jse-primary svelte-4nt0y7")},m:function(o,i){dt(o,t,i),n||(r=[Lt(t,"click",e[25]),lo(OH.call(null,t))],n=!0)},p:Ht,d:function(o){o&&lt(t),n=!1,Fn(r)}}}function Fwt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b;n=new yj({props:{title:"Edit nested content "+(e[19].length>1?" (".concat(e[19].length,")"):""),onClose:e[26]}});var w={mode:e[22].mode,content:e[22].content,selection:e[22].selection,readOnly:e[0],indentation:e[1],tabSize:e[2],statusBar:e[5],askToFormat:e[6],mainMenuBar:e[3],navigationBar:e[4],escapeControlCharacters:e[7],escapeUnicodeCharacters:e[8],flattenColumns:e[9],parser:e[10],parseMemoizeOne:e[23],validator:e[11],validationParser:e[12],pathParser:e[13],insideModal:!0,onError:e[30],onChange:e[27],onChangeMode:e[29],onSelect:e[28],onRenderValue:e[14],onClassName:e[15],onFocus:sa,onBlur:sa,onRenderMenu:e[16],onSortModal:e[17],onTransformModal:e[18],onJSONEditorModal:e[31]};d=new EH({props:w}),e[36](d);var x=e[21]&&NR(e),k=e[19].length>1&&DR(e);function j(C,$){return C[0]?Lwt:Bwt}var S=j(e),N=S(e);return{c:function(){t=et("div"),Pt(n.$$.fragment),r=kt(),o=et("div"),(i=et("div")).innerHTML='<div class="jse-label-inner svelte-4nt0y7">Path</div>',a=kt(),s=et("input"),c=kt(),(u=et("div")).innerHTML='<div class="jse-label-inner svelte-4nt0y7">Contents</div>',l=kt(),f=et("div"),Pt(d.$$.fragment),h=kt(),p=et("div"),x&&x.c(),v=kt(),k&&k.c(),m=kt(),N.c(),E(i,"class","jse-label svelte-4nt0y7"),E(s,"class","jse-path svelte-4nt0y7"),E(s,"type","text"),s.readOnly=!0,E(s,"title","Selected path"),s.value=e[24],E(u,"class","jse-label svelte-4nt0y7"),E(f,"class","jse-modal-inline-editor svelte-4nt0y7"),E(p,"class","jse-actions svelte-4nt0y7"),E(o,"class","jse-modal-contents svelte-4nt0y7"),E(t,"class","jse-modal jse-jsoneditor-modal svelte-4nt0y7")},m:function(C,$){dt(C,t,$),Mt(n,t,null),V(t,r),V(t,o),V(o,i),V(o,a),V(o,s),V(o,c),V(o,u),V(o,l),V(o,f),Mt(d,f,null),V(o,h),V(o,p),x&&x.m(p,null),V(p,v),k&&k.m(p,null),V(p,m),N.m(p,null),g=!0,y||(b=lo(o1.call(null,t,e[26])),y=!0)},p:function(C,$){var B={};524288&$[0]&&(B.title="Edit nested content "+(C[19].length>1?" (".concat(C[19].length,")"):"")),n.$set(B),(!g||16777216&$[0]&&s.value!==C[24])&&(s.value=C[24]);var K={};4194304&$[0]&&(K.mode=C[22].mode),4194304&$[0]&&(K.content=C[22].content),4194304&$[0]&&(K.selection=C[22].selection),1&$[0]&&(K.readOnly=C[0]),2&$[0]&&(K.indentation=C[1]),4&$[0]&&(K.tabSize=C[2]),32&$[0]&&(K.statusBar=C[5]),64&$[0]&&(K.askToFormat=C[6]),8&$[0]&&(K.mainMenuBar=C[3]),16&$[0]&&(K.navigationBar=C[4]),128&$[0]&&(K.escapeControlCharacters=C[7]),256&$[0]&&(K.escapeUnicodeCharacters=C[8]),512&$[0]&&(K.flattenColumns=C[9]),1024&$[0]&&(K.parser=C[10]),8388608&$[0]&&(K.parseMemoizeOne=C[23]),2048&$[0]&&(K.validator=C[11]),4096&$[0]&&(K.validationParser=C[12]),8192&$[0]&&(K.pathParser=C[13]),16384&$[0]&&(K.onRenderValue=C[14]),32768&$[0]&&(K.onClassName=C[15]),65536&$[0]&&(K.onRenderMenu=C[16]),131072&$[0]&&(K.onSortModal=C[17]),262144&$[0]&&(K.onTransformModal=C[18]),d.$set(K),C[21]?x?x.p(C,$):((x=NR(C)).c(),x.m(p,v)):x&&(x.d(1),x=null),C[19].length>1?k?(k.p(C,$),524288&$[0]&&L(k,1)):((k=DR(C)).c(),L(k,1),k.m(p,m)):k&&(Bt(),U(k,1,1,function(){k=null}),Ft()),S===(S=j(C))&&N?N.p(C,$):(N.d(1),(N=S(C))&&(N.c(),N.m(p,null)))},i:function(C){g||(L(n.$$.fragment,C),L(d.$$.fragment,C),L(k),g=!0)},o:function(C){U(n.$$.fragment,C),U(d.$$.fragment,C),U(k),g=!1},d:function(C){C&&lt(t),At(n),e[36](null),At(d),x&&x.d(),k&&k.d(),N.d(),y=!1,b()}}}function OH(e){e.focus()}function qwt(e,t,n){var r,o,i,a,s,c=ho("jsoneditor:JSONEditorModal"),u=t.content,l=t.path,f=t.onPatch,d=t.readOnly,h=t.indentation,p=t.tabSize,v=t.mainMenuBar,m=t.navigationBar,g=t.statusBar,y=t.askToFormat,b=t.escapeControlCharacters,w=t.escapeUnicodeCharacters,x=t.flattenColumns,k=t.parser,j=t.validator,S=t.validationParser,N=t.pathParser,C=t.onRenderValue,$=t.onClassName,B=t.onRenderMenu,K=t.onSortModal,R=t.onTransformModal,q=fo("simple-modal").close,F={mode:_(u),content:u,selection:null,relativePath:l},O=[F],A=void 0;function _(P){return ij(P)&&Un(P.json)?bo.table:bo.tree}function M(){var P,D=((P=Ie(O))===null||P===void 0?void 0:P.selection)||null;D&&s.scrollTo(ge(D))}return e.$$set=function(P){"content"in P&&n(32,u=P.content),"path"in P&&n(33,l=P.path),"onPatch"in P&&n(34,f=P.onPatch),"readOnly"in P&&n(0,d=P.readOnly),"indentation"in P&&n(1,h=P.indentation),"tabSize"in P&&n(2,p=P.tabSize),"mainMenuBar"in P&&n(3,v=P.mainMenuBar),"navigationBar"in P&&n(4,m=P.navigationBar),"statusBar"in P&&n(5,g=P.statusBar),"askToFormat"in P&&n(6,y=P.askToFormat),"escapeControlCharacters"in P&&n(7,b=P.escapeControlCharacters),"escapeUnicodeCharacters"in P&&n(8,w=P.escapeUnicodeCharacters),"flattenColumns"in P&&n(9,x=P.flattenColumns),"parser"in P&&n(10,k=P.parser),"validator"in P&&n(11,j=P.validator),"validationParser"in P&&n(12,S=P.validationParser),"pathParser"in P&&n(13,N=P.pathParser),"onRenderValue"in P&&n(14,C=P.onRenderValue),"onClassName"in P&&n(15,$=P.onClassName),"onRenderMenu"in P&&n(16,B=P.onRenderMenu),"onSortModal"in P&&n(17,K=P.onSortModal),"onTransformModal"in P&&n(18,R=P.onTransformModal)},e.$$.update=function(){524288&e.$$.dirty[0]&&n(22,r=Ie(O)||F),524288&e.$$.dirty[0]&&n(35,o=O.flatMap(function(P){return P.relativePath})),16&e.$$.dirty[1]&&n(24,i=cn(o)?"(whole document)":ai(o)),1024&e.$$.dirty[0]&&n(23,a=Np(k.parse))},[d,h,p,v,m,g,y,b,w,x,k,j,S,N,C,$,B,K,R,O,s,A,r,a,i,function(){if(c("handleApply"),!d)try{n(21,A=void 0);var P=r.relativePath,D=r.content,T=[{op:"replace",path:oe(P),value:LO(D,k).json}];if(O.length>1){var H={json:xa(LO(O[O.length-2].content,k).json,T)},I=xt(xt({},O[O.length-2]||F),{},{content:H});n(19,O=[].concat(Se(O.slice(0,O.length-2)),[I])),br().then(M)}else f(T),q()}catch(ft){n(21,A=String(ft))}},function(){c("handleClose"),O.length>1?(n(19,O=on(O)),br().then(M),n(21,A=void 0)):q()},function(P){c("handleChange",P);var D=xt(xt({},r),{},{content:P});n(19,O=[].concat(Se(on(O)),[D]))},function(P){c("handleChangeSelection",P);var D=xt(xt({},r),{},{selection:P});n(19,O=[].concat(Se(on(O)),[D]))},function(P){c("handleChangeMode",P);var D=xt(xt({},r),{},{mode:P});n(19,O=[].concat(Se(on(O)),[D]))},function(P){n(21,A=P.toString()),console.error(P)},function(P){var D=P.content,T=P.path;c("handleJSONEditorModal",{content:D,path:T});var H={mode:_(D),content:D,selection:null,relativePath:T};n(19,O=[].concat(Se(O),[H]))},u,l,f,o,function(P){rn[P?"unshift":"push"](function(){n(20,s=P)})}]}var Hwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,qwt,Fwt,qe,{content:32,path:33,onPatch:34,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,askToFormat:6,escapeControlCharacters:7,escapeUnicodeCharacters:8,flattenColumns:9,parser:10,validator:11,validationParser:12,pathParser:13,onRenderValue:14,onClassName:15,onRenderMenu:16,onSortModal:17,onTransformModal:18},zwt,[-1,-1]),o}return ot(n)}();function Vwt(e,t,n){var r=fo("simple-modal");return[r.open,r.close]}var Uwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Vwt,null,qe,{open:0,close:1}),o}return ot(n,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),n}();function Wwt(e){ze(e,"svelte-sxaskb",`:root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
118
+ Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}`)}function zR(e){var t,n,r={mode:e[1],content:e[0],selection:e[2],readOnly:e[3],indentation:e[4],tabSize:e[5],statusBar:e[8],askToFormat:e[9],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[26],validator:e[14],validationParser:e[15],pathParser:e[16],insideModal:!1,onError:e[20],onChange:e[27],onChangeMode:e[31],onSelect:e[28],onRenderValue:e[17],onClassName:e[18],onFocus:e[29],onBlur:e[30],onRenderMenu:e[19],onSortModal:e[33],onTransformModal:e[32],onJSONEditorModal:e[34]};return t=new EH({props:r}),e[61](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};2&i[0]&&(a.mode=o[1]),1&i[0]&&(a.content=o[0]),4&i[0]&&(a.selection=o[2]),8&i[0]&&(a.readOnly=o[3]),16&i[0]&&(a.indentation=o[4]),32&i[0]&&(a.tabSize=o[5]),256&i[0]&&(a.statusBar=o[8]),512&i[0]&&(a.askToFormat=o[9]),64&i[0]&&(a.mainMenuBar=o[6]),128&i[0]&&(a.navigationBar=o[7]),1024&i[0]&&(a.escapeControlCharacters=o[10]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),4096&i[0]&&(a.flattenColumns=o[12]),8192&i[0]&&(a.parser=o[13]),67108864&i[0]&&(a.parseMemoizeOne=o[26]),16384&i[0]&&(a.validator=o[14]),32768&i[0]&&(a.validationParser=o[15]),65536&i[0]&&(a.pathParser=o[16]),1048576&i[0]&&(a.onError=o[20]),131072&i[0]&&(a.onRenderValue=o[17]),262144&i[0]&&(a.onClassName=o[18]),524288&i[0]&&(a.onRenderMenu=o[19]),t.$set(a)},i:function(o){n||(L(t.$$.fragment,o),n=!0)},o:function(o){U(t.$$.fragment,o),n=!1},d:function(o){e[61](null),At(t,o)}}}function Kwt(e){var t,n,r,o,i,a=e[21];function s(l){e[60](l)}var c={};e[24]!==void 0&&(c.open=e[24]),t=new Uwt({props:c}),rn.push(function(){return da(t,"open",s)});var u=zR(e);return{c:function(){Pt(t.$$.fragment),r=kt(),o=et("div"),u.c(),E(o,"class","jse-main svelte-sxaskb"),Dt(o,"jse-focus",e[22])},m:function(l,f){Mt(t,l,f),dt(l,r,f),dt(l,o,f),u.m(o,null),i=!0},p:function(l,f){var d={};!n&&16777216&f[0]&&(n=!0,d.open=l[24],fa(function(){return n=!1})),t.$set(d),2097152&f[0]&&qe(a,a=l[21])?(Bt(),U(u,1,1,Ht),Ft(),(u=zR(l)).c(),L(u,1),u.m(o,null)):u.p(l,f),(!i||4194304&f[0])&&Dt(o,"jse-focus",l[22])},i:function(l){i||(L(t.$$.fragment,l),L(u),i=!0)},o:function(l){U(t.$$.fragment,l),U(u),i=!1},d:function(l){l&&(lt(r),lt(o)),At(t,l),u.d(l)}}}function Jwt(e){var t,n;return t=new KN({props:{closeOnEsc:!1,$$slots:{default:[Kwt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};100663295&o[0]|4&o[2]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Gwt(e){for(var t,n,r,o=[{show:(t=e[25])===null||t===void 0?void 0:t.component},EZ,{closeOnEsc:!1}],i={$$slots:{default:[Jwt]},$$scope:{ctx:e}},a=0;a<o.length;a+=1)i=oi(i,o[a]);return(n=new KN({props:i})).$on("close",e[35]),{c:function(){Pt(n.$$.fragment)},m:function(s,c){Mt(n,s,c),r=!0},p:function(s,c){var u,l=33554432&c[0]?Wi(o,[{show:(u=s[25])===null||u===void 0?void 0:u.component},o[1],o[2]]):{};100663295&c[0]|4&c[2]&&(l.$$scope={dirty:c,ctx:s}),n.$set(l)},i:function(s){r||(L(n.$$.fragment,s),r=!0)},o:function(s){U(n.$$.fragment,s),r=!1},d:function(s){At(n,s)}}}function Qwt(e){var t,n;return t=new HL({props:{$$slots:{default:[Gwt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};134217727&o[0]|4&o[2]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(L(t.$$.fragment,r),n=!0)},o:function(r){U(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Ywt(e,t,n){var r,o,i,a=ho("jsoneditor:JSONEditor"),s=t.content,c=s===void 0?{text:""}:s,u=t.selection,l=u===void 0?null:u,f=t.readOnly,d=f!==void 0&&f,h=t.indentation,p=h===void 0?2:h,v=t.tabSize,m=v===void 0?4:v,g=t.mode,y=g===void 0?bo.tree:g,b=t.mainMenuBar,w=b===void 0||b,x=t.navigationBar,k=x===void 0||x,j=t.statusBar,S=j===void 0||j,N=t.askToFormat,C=N===void 0||N,$=t.escapeControlCharacters,B=$!==void 0&&$,K=t.escapeUnicodeCharacters,R=K!==void 0&&K,q=t.flattenColumns,F=q===void 0||q,O=t.parser,A=O===void 0?JSON:O,_=t.validator,M=_===void 0?null:_,P=t.validationParser,D=P===void 0?JSON:P,T=t.pathParser,H=T===void 0?{parse:uft,stringify:ai}:T,I=t.queryLanguages,ft=I===void 0?[dft]:I,tt=t.queryLanguageId,yt=tt===void 0?ft[0].id:tt,bt=t.onChangeQueryLanguage,jt=bt===void 0?sa:bt,gt=t.onChange,Y=gt===void 0?null:gt,J=t.onSelect,it=J===void 0?sa:J,X=t.onRenderValue,_t=X===void 0?pdt:X,z=t.onClassName,W=z===void 0?function(){}:z,G=t.onRenderMenu,pt=G===void 0?sa:G,mt=t.onChangeMode,Ot=mt===void 0?sa:mt,Ct=t.onError,Vt=Ct===void 0?function($t){console.error($t),alert($t.toString())}:Ct,Qt=t.onFocus,ee=Qt===void 0?sa:Qt,Kt=t.onBlur,ue=Kt===void 0?sa:Kt,Me=rh(),tn=!1,le=null,wn=A;function Ne(){return(Ne=Ae(qt().mark(function $t(Xt){var Q;return qt().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(a("set"),!(Q=fy(Xt))){at.next=4;break}throw new Error(Q);case 4:return n(21,Me=rh()),n(0,c=Xt),at.next=8,br();case 8:case"end":return at.stop()}},$t)}))).apply(this,arguments)}function mn(){return(mn=Ae(qt().mark(function $t(Xt){var Q;return qt().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(a("update"),!(Q=fy(Xt))){at.next=4;break}throw new Error(Q);case 4:return n(0,c=Xt),at.next=7,br();case 7:case"end":return at.stop()}},$t)}))).apply(this,arguments)}function Ye(){return Ye=Ae(qt().mark(function $t(Xt){var Q;return qt().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!$f(c)){at.next=8;break}at.prev=1,n(0,c={json:A.parse(c.text),text:void 0}),at.next=8;break;case 5:throw at.prev=5,at.t0=at.catch(1),new Error("Cannot apply patch: current document contains invalid JSON");case 8:return Q=o.patch(Xt),at.next=11,br();case 11:return at.abrupt("return",Q);case 12:case"end":return at.stop()}},$t,null,[[1,5]])})),Ye.apply(this,arguments)}function Ke(){return(Ke=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return n(2,l=Xt),Q.next=3,br();case 3:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function qn(){return(qn=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return o.expand(Xt),Q.next=3,br();case 3:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function In(){return In=Ae(qt().mark(function $t(){var Xt;return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Xt=o.acceptAutoRepair(),Q.next=3,br();case 3:return Q.abrupt("return",Xt);case 4:case"end":return Q.stop()}},$t)})),In.apply(this,arguments)}function Zn(){return(Zn=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,o.scrollTo(Xt);case 2:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function Sn(){return En.apply(this,arguments)}function En(){return(En=Ae(qt().mark(function $t(){return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return o.focus(),Xt.next=3,br();case 3:case"end":return Xt.stop()}},$t)}))).apply(this,arguments)}function Nn(){return(Nn=Ae(qt().mark(function $t(){return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,o.refresh();case 2:case"end":return Xt.stop()}},$t)}))).apply(this,arguments)}function sr(){return(sr=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return this.$set(Xt),Q.next=3,br();case 3:case"end":return Q.stop()}},$t,this)}))).apply(this,arguments)}function Pr(){return(Pr=Ae(qt().mark(function $t(){return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return this.$destroy(),Xt.next=3,br();case 3:case"end":return Xt.stop()}},$t,this)}))).apply(this,arguments)}function Et(){return(Et=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(y!==Xt){Q.next=2;break}return Q.abrupt("return");case 2:return n(1,y=Xt),Q.next=5,br();case 5:Sn(),Ot(Xt);case 7:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function ie($t){a("handleChangeQueryLanguage",$t),n(36,yt=$t),jt($t)}function Be($t){var Xt=$t.id,Q=$t.json,at=$t.rootPath,vt=$t.onTransform,ut=$t.onClose;d||i(cgt,{id:Xt,json:Q,rootPath:at,indentation:p,escapeControlCharacters:B,escapeUnicodeCharacters:R,parser:A,parseMemoizeOne:r,validationParser:D,pathParser:H,queryLanguages:ft,queryLanguageId:yt,onChangeQueryLanguage:ie,onRenderValue:_t,onClassName:W,onTransform:vt},CZ,{onClose:ut})}function en($t){var Xt=$t.id,Q=$t.json,at=$t.rootPath,vt=$t.onSort,ut=$t.onClose;d||i(hgt,{id:Xt,json:Q,rootPath:at,onSort:vt},$Z,{onClose:ut})}return e.$$set=function($t){"content"in $t&&n(0,c=$t.content),"selection"in $t&&n(2,l=$t.selection),"readOnly"in $t&&n(3,d=$t.readOnly),"indentation"in $t&&n(4,p=$t.indentation),"tabSize"in $t&&n(5,m=$t.tabSize),"mode"in $t&&n(1,y=$t.mode),"mainMenuBar"in $t&&n(6,w=$t.mainMenuBar),"navigationBar"in $t&&n(7,k=$t.navigationBar),"statusBar"in $t&&n(8,S=$t.statusBar),"askToFormat"in $t&&n(9,C=$t.askToFormat),"escapeControlCharacters"in $t&&n(10,B=$t.escapeControlCharacters),"escapeUnicodeCharacters"in $t&&n(11,R=$t.escapeUnicodeCharacters),"flattenColumns"in $t&&n(12,F=$t.flattenColumns),"parser"in $t&&n(13,A=$t.parser),"validator"in $t&&n(14,M=$t.validator),"validationParser"in $t&&n(15,D=$t.validationParser),"pathParser"in $t&&n(16,H=$t.pathParser),"queryLanguages"in $t&&n(37,ft=$t.queryLanguages),"queryLanguageId"in $t&&n(36,yt=$t.queryLanguageId),"onChangeQueryLanguage"in $t&&n(38,jt=$t.onChangeQueryLanguage),"onChange"in $t&&n(39,Y=$t.onChange),"onSelect"in $t&&n(40,it=$t.onSelect),"onRenderValue"in $t&&n(17,_t=$t.onRenderValue),"onClassName"in $t&&n(18,W=$t.onClassName),"onRenderMenu"in $t&&n(19,pt=$t.onRenderMenu),"onChangeMode"in $t&&n(41,Ot=$t.onChangeMode),"onError"in $t&&n(20,Vt=$t.onError),"onFocus"in $t&&n(42,ee=$t.onFocus),"onBlur"in $t&&n(43,ue=$t.onBlur)},e.$$.update=function(){if(8193&e.$$.dirty[0]|268435456&e.$$.dirty[1]&&(Klt(A,wn)||(a("parser changed, recreate editor"),ij(c)&&n(0,c={json:A.parse(wn.stringify(c.json))}),n(59,wn=A),n(21,Me=rh()))),1&e.$$.dirty[0]){var $t=fy(c);$t&&console.error("Error: "+$t)}8192&e.$$.dirty[0]&&n(26,r=Np(A.parse)),2&e.$$.dirty[0]&&(a("mode changed to",y),y==="code"&&console.warn('Deprecation warning: "code" mode is renamed to "text". Please use mode="text" instead.'))},[c,y,l,d,p,m,w,k,S,C,B,R,F,A,M,D,H,_t,W,pt,Vt,Me,tn,o,i,le,r,function($t,Xt,Q){n(0,c=$t),Y&&Y($t,Xt,Q)},function($t){n(2,l=$t),it($t)},function(){n(22,tn=!0),ee&&ee()},function(){n(22,tn=!1),ue&&ue()},function($t){return Et.apply(this,arguments)},Be,en,function($t){var Xt=$t.content,Q=$t.path,at=$t.onPatch,vt=$t.onClose;a("onJSONEditorModal",{content:Xt,path:Q}),n(25,le={component:WN(Hwt,{content:Xt,path:Q,onPatch:at,readOnly:d,indentation:p,tabSize:m,mainMenuBar:w,navigationBar:k,statusBar:S,askToFormat:C,escapeControlCharacters:B,escapeUnicodeCharacters:R,flattenColumns:F,parser:A,validator:void 0,validationParser:D,pathParser:H,onRenderValue:_t,onClassName:W,onRenderMenu:pt,onSortModal:en,onTransformModal:Be}),callbacks:{onClose:vt}})},function(){var $t,Xt;($t=le)===null||$t===void 0||($t=$t.callbacks)===null||$t===void 0||(Xt=$t.onClose)===null||Xt===void 0||Xt.call($t),n(25,le=null)},yt,ft,jt,Y,it,Ot,ee,ue,function(){return c},function($t){return Ne.apply(this,arguments)},function($t){return mn.apply(this,arguments)},function($t){return Ye.apply(this,arguments)},function($t){return Ke.apply(this,arguments)},function($t){return qn.apply(this,arguments)},function($t){o.transform($t)},function(){return o.validate()},function(){return In.apply(this,arguments)},function($t){return Zn.apply(this,arguments)},function($t){return o.findElement($t)},Sn,function(){return Nn.apply(this,arguments)},function($t){return sr.apply(this,arguments)},function(){return Pr.apply(this,arguments)},wn,function($t){n(24,i=$t)},function($t){rn[$t?"unshift":"push"](function(){n(23,o=$t)})}]}var Xwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,Ywt,Qwt,qe,{content:0,selection:2,readOnly:3,indentation:4,tabSize:5,mode:1,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,validator:14,validationParser:15,pathParser:16,queryLanguages:37,queryLanguageId:36,onChangeQueryLanguage:38,onChange:39,onSelect:40,onRenderValue:17,onClassName:18,onRenderMenu:19,onChangeMode:41,onError:20,onFocus:42,onBlur:43,get:44,set:45,update:46,patch:47,select:48,expand:49,transform:50,validate:51,acceptAutoRepair:52,scrollTo:53,findElement:54,focus:55,refresh:56,updateProps:57,destroy:58},Wwt,[-1,-1,-1]),o}return ot(n,[{key:"get",get:function(){return this.$$.ctx[44]}},{key:"set",get:function(){return this.$$.ctx[45]}},{key:"update",get:function(){return this.$$.ctx[46]}},{key:"patch",get:function(){return this.$$.ctx[47]}},{key:"select",get:function(){return this.$$.ctx[48]}},{key:"expand",get:function(){return this.$$.ctx[49]}},{key:"transform",get:function(){return this.$$.ctx[50]}},{key:"validate",get:function(){return this.$$.ctx[51]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[52]}},{key:"scrollTo",get:function(){return this.$$.ctx[53]}},{key:"findElement",get:function(){return this.$$.ctx[54]}},{key:"focus",get:function(){return this.$$.ctx[55]}},{key:"refresh",get:function(){return this.$$.ctx[56]}},{key:"updateProps",get:function(){return this.$$.ctx[57]}},{key:"destroy",get:function(){return this.$$.ctx[58]}}]),n}();function Zwt(e){ze(e,"svelte-rc6e9m",".jse-value.jse-string.svelte-rc6e9m{color:var(--jse-value-color-string)}.jse-value.jse-object.svelte-rc6e9m,.jse-value.jse-array.svelte-rc6e9m{min-width:16px;color:var(--jse-delimiter-color)}.jse-value.jse-number.svelte-rc6e9m{color:var(--jse-value-color-number)}.jse-value.jse-boolean.svelte-rc6e9m{color:var(--jse-value-color-boolean)}.jse-value.jse-null.svelte-rc6e9m{color:var(--jse-value-color-null)}.jse-value.jse-invalid.svelte-rc6e9m{color:var(--jse-text-color)}.jse-value.jse-url.svelte-rc6e9m{color:var(--jse-value-color-url);text-decoration:underline}.jse-enum-value.svelte-rc6e9m{background:var(--jse-hover-background-color);border:none;padding:0;font-family:inherit;font-size:inherit;cursor:pointer;outline:none}.jse-enum-value.jse-selected.svelte-rc6e9m{background:var(--jse-selection-background-color);color:inherit}.jse-enum-value.jse-value.svelte-rc6e9m:focus{color:var(--jse-text-color)}.jse-json-node.jse-selected .jse-enum-value.svelte-rc6e9m{background:transparent}")}function LR(e,t,n){var r=e.slice();return r[13]=t[n],r}function BR(e){var t,n,r,o=e[13].text+"";return{c:function(){t=et("option"),n=Gt(o),t.__value=r=e[13].value,us(t,t.__value)},m:function(i,a){dt(i,t,a),V(t,n)},p:function(i,a){4&a&&o!==(o=i[13].text+"")&&we(n,o),4&a&&r!==(r=i[13].value)&&(t.__value=r,us(t,t.__value))},d:function(i){i&&lt(t)}}}function txt(e){for(var t,n,r,o,i=De(e[2]),a=[],s=0;s<i.length;s+=1)a[s]=BR(LR(e,i,s));return{c:function(){t=et("select");for(var c=0;c<a.length;c+=1)a[c].c();E(t,"class",n=dr("jse-enum-value ".concat(qh(e[4],e[0])))+" svelte-rc6e9m"),e[4]===void 0&&Qu(function(){return e[10].call(t)}),Dt(t,"jse-selected",dn(e[1]))},m:function(c,u){dt(c,t,u);for(var l=0;l<a.length;l+=1)a[l]&&a[l].m(t,null);oE(t,e[4],!0),e[11](t),r||(o=[Lt(t,"change",e[10]),Lt(t,"change",e[5]),Lt(t,"mousedown",ext)],r=!0)},p:function(c,u){var l=$e(u,1)[0];if(4&l){var f;for(i=De(c[2]),f=0;f<i.length;f+=1){var d=LR(c,i,f);a[f]?a[f].p(d,l):(a[f]=BR(d),a[f].c(),a[f].m(t,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=i.length}17&l&&n!==(n=dr("jse-enum-value ".concat(qh(c[4],c[0])))+" svelte-rc6e9m")&&E(t,"class",n),16&l&&oE(t,c[4]),19&l&&Dt(t,"jse-selected",dn(c[1]))},i:Ht,o:Ht,d:function(c){c&&lt(t),Ir(a,c),e[11](null),r=!1,Fn(o)}}}function ext(e){e.stopPropagation()}function nxt(e,t,n){var r,o=t.path,i=t.value,a=t.parser,s=t.readOnly,c=t.selection,u=t.onPatch,l=t.options,f=i;return e.$$set=function(d){"path"in d&&n(6,o=d.path),"value"in d&&n(7,i=d.value),"parser"in d&&n(0,a=d.parser),"readOnly"in d&&n(8,s=d.readOnly),"selection"in d&&n(1,c=d.selection),"onPatch"in d&&n(9,u=d.onPatch),"options"in d&&n(2,l=d.options)},e.$$.update=function(){128&e.$$.dirty&&n(4,f=i),2&e.$$.dirty&&function(d){d&&r&&r.focus()}(c)},[a,c,l,r,f,function(d){d.stopPropagation(),s||u([{op:"replace",path:oe(o),value:f}])},o,i,s,u,function(){var d;d=this.querySelector(":checked"),f=d&&d.__value,n(4,f),n(7,i)},function(d){rn[d?"unshift":"push"](function(){n(3,r=d),n(2,l)})}]}(function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return rt(this,n),ve(he(o=t.call(this)),r,nxt,txt,qe,{path:6,value:7,parser:0,readOnly:8,selection:1,onPatch:9,options:2},Zwt),o}return ot(n)})();var FR,Wx={exports:{}},MH={},js={},mu={},qR={},HR={},VR={};function Xg(){return FR||(FR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=ot(function l(){rt(this,l)});e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=function(l){Tt(d,l);var f=Rt(d);function d(h){var p;if(rt(this,d),p=f.call(this),!e.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");return p.str=h,p}return ot(d,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return Vo({},this.str,1)}}]),d}(t);e.Name=n;var r=function(l){Tt(d,l);var f=Rt(d);function d(h){var p;return rt(this,d),(p=f.call(this))._items=typeof h=="string"?[h]:h,p}return ot(d,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var h=this._items[0];return h===""||h==='""'}},{key:"str",get:function(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce(function(p,v){return"".concat(p).concat(v)},"")}},{key:"names",get:function(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce(function(p,v){return v instanceof n&&(p[v.str]=(p[v.str]||0)+1),p},{})}}]),d}(t);function o(l){for(var f=[l[0]],d=0,h=arguments.length,p=new Array(h>1?h-1:0),v=1;v<h;v++)p[v-1]=arguments[v];for(;d<p.length;)s(f,p[d]),f.push(l[++d]);return new r(f)}e._Code=r,e.nil=new r(""),e._=o;var i=new r("+");function a(l){for(var f=[u(l[0])],d=0,h=arguments.length,p=new Array(h>1?h-1:0),v=1;v<h;v++)p[v-1]=arguments[v];for(;d<p.length;)f.push(i),s(f,p[d]),f.push(i,u(l[++d]));return function(m){for(var g=1;g<m.length-1;){if(m[g]===i){var y=c(m[g-1],m[g+1]);if(y!==void 0){m.splice(g-1,3,y);continue}m[g++]="+"}g++}}(f),new r(f)}function s(l,f){f instanceof r?l.push.apply(l,Se(f._items)):f instanceof n?l.push(f):l.push(function(d){return typeof d=="number"||typeof d=="boolean"||d===null?d:u(Array.isArray(d)?d.join(","):d)}(f))}function c(l,f){return f==='""'?l:l==='""'?f:typeof l=="string"?f instanceof n||l[l.length-1]!=='"'?void 0:typeof f!="string"?"".concat(l.slice(0,-1)).concat(f,'"'):f[0]==='"'?l.slice(0,-1)+f.slice(1):void 0:typeof f!="string"||f[0]!=='"'||l instanceof n?void 0:'"'.concat(l).concat(f.slice(1))}function u(l){return JSON.stringify(l).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=s,e.strConcat=function(l,f){return f.emptyStr()?l:l.emptyStr()?f:a(F$||(F$=st(["","",""])),l,f)},e.stringify=function(l){return new r(u(l))},e.safeStringify=u,e.getProperty=function(l){return typeof l=="string"&&e.IDENTIFIER.test(l)?new r(".".concat(l)):o(q$||(q$=st(["[","]"])),l)},e.getEsmExportName=function(l){if(typeof l=="string"&&e.IDENTIFIER.test(l))return new r("".concat(l));throw new Error("CodeGen: invalid export name: ".concat(l,", use explicit $id name mapping"))},e.regexpCode=function(l){return new r(l.toString())}}(VR)),VR}var UR,WR,KR={};function JR(){return UR||(UR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t,n=Xg(),r=function(c){Tt(l,jf(Error));var u=Rt(l);function l(f){var d;return rt(this,l),(d=u.call(this,'CodeGen: "code" for '.concat(f," not defined"))).value=f.value,d}return ot(l)}();(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(t=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};var o=function(){function c(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=u.prefixes,f=u.parent;rt(this,c),this._names={},this._prefixes=l,this._parent=f}return ot(c,[{key:"toName",value:function(u){return u instanceof n.Name?u:this.name(u)}},{key:"name",value:function(u){return new n.Name(this._newName(u))}},{key:"_newName",value:function(u){var l=this._names[u]||this._nameGroup(u);return"".concat(u).concat(l.index++)}},{key:"_nameGroup",value:function(u){var l,f;if(!((f=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error('CodeGen: prefix "'.concat(u,'" is not allowed in this scope'));return this._names[u]={prefix:u,index:0}}}]),c}();e.Scope=o;var i=function(c){Tt(l,c);var u=Rt(l);function l(f,d){var h;return rt(this,l),(h=u.call(this,d)).prefix=f,h}return ot(l,[{key:"setValue",value:function(f,d){var h=d.property,p=d.itemIndex;this.value=f,this.scopePath=(0,n._)(H$||(H$=st([".","[","]"])),new n.Name(h),p)}}]),l}(n.Name);e.ValueScopeName=i;var a=(0,n._)(V$||(V$=st([`
119
+ `],["\\n"]))),s=function(c){Tt(l,c);var u=Rt(l);function l(f){var d;return rt(this,l),(d=u.call(this,f))._values={},d._scope=f.scope,d.opts=xt(xt({},f),{},{_n:f.lines?a:n.nil}),d}return ot(l,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(f){return new i(f,this._newName(f))}},{key:"value",value:function(f,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(f),v=p.prefix,m=(h=d.key)!==null&&h!==void 0?h:d.ref,g=this._values[v];if(g){var y=g.get(m);if(y)return y}else g=this._values[v]=new Map;g.set(m,p);var b=this._scope[v]||(this._scope[v]=[]),w=b.length;return b[w]=d.ref,p.setValue(d,{property:v,itemIndex:w}),p}},{key:"getValue",value:function(f,d){var h=this._values[f];if(h)return h.get(d)}},{key:"scopeRefs",value:function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._values;return this._reduceValues(d,function(h){if(h.scopePath===void 0)throw new Error('CodeGen: name "'.concat(h,'" has no value'));return(0,n._)(U$||(U$=st(["","",""])),f,h.scopePath)})}},{key:"scopeCode",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._values,d=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return this._reduceValues(f,function(p){if(p.value===void 0)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},d,h)}},{key:"_reduceValues",value:function(f,d){var h=this,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3?arguments[3]:void 0,m=n.nil,g=function(){var b=f[y];if(!b)return 1;var w=p[y]=p[y]||new Map;b.forEach(function(x){if(!w.has(x)){w.set(x,t.Started);var k=d(x);if(k){var j=h.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,n._)(W$||(W$=st(["",""," "," = ",";",""])),m,j,x,k,h.opts._n)}else{if(!(k=v==null?void 0:v(x)))throw new r(x);m=(0,n._)(K$||(K$=st(["","","",""])),m,k,h.opts._n)}w.set(x,t.Completed)}})};for(var y in f)g();return m}}]),l}(o);e.ValueScope=s}(KR)),KR}function jn(){return WR||(WR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=Xg(),n=JR(),r=Xg();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=JR();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};var i=function(){function P(){rt(this,P)}return ot(P,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(D,T){return this}}]),P}(),a=function(P){Tt(T,P);var D=Rt(T);function T(H,I,ft){var tt;return rt(this,T),(tt=D.call(this)).varKind=H,tt.name=I,tt.rhs=ft,tt}return ot(T,[{key:"render",value:function(H){var I=H.es5,ft=H._n,tt=I?n.varKinds.var:this.varKind,yt=this.rhs===void 0?"":" = ".concat(this.rhs);return"".concat(tt," ").concat(this.name).concat(yt,";")+ft}},{key:"optimizeNames",value:function(H,I){if(H[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,H,I)),this}},{key:"names",get:function(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}]),T}(i),s=function(P){Tt(T,P);var D=Rt(T);function T(H,I,ft){var tt;return rt(this,T),(tt=D.call(this)).lhs=H,tt.rhs=I,tt.sideEffects=ft,tt}return ot(T,[{key:"render",value:function(H){var I=H._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+I}},{key:"optimizeNames",value:function(H,I){if(!(this.lhs instanceof t.Name)||H[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,H,I),this}},{key:"names",get:function(){return K(this.lhs instanceof t.Name?{}:xt({},this.lhs.names),this.rhs)}}]),T}(i),c=function(P){Tt(T,P);var D=Rt(T);function T(H,I,ft,tt){var yt;return rt(this,T),(yt=D.call(this,H,ft,tt)).op=I,yt}return ot(T,[{key:"render",value:function(H){var I=H._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+I}}]),T}(s),u=function(P){Tt(T,P);var D=Rt(T);function T(H){var I;return rt(this,T),(I=D.call(this)).label=H,I.names={},I}return ot(T,[{key:"render",value:function(H){var I=H._n;return"".concat(this.label,":")+I}}]),T}(i),l=function(P){Tt(T,P);var D=Rt(T);function T(H){var I;return rt(this,T),(I=D.call(this)).label=H,I.names={},I}return ot(T,[{key:"render",value:function(H){var I=H._n,ft=this.label?" ".concat(this.label):"";return"break".concat(ft,";")+I}}]),T}(i),f=function(P){Tt(T,P);var D=Rt(T);function T(H){var I;return rt(this,T),(I=D.call(this)).error=H,I}return ot(T,[{key:"render",value:function(H){var I=H._n;return"throw ".concat(this.error,";")+I}},{key:"names",get:function(){return this.error.names}}]),T}(i),d=function(P){Tt(T,P);var D=Rt(T);function T(H){var I;return rt(this,T),(I=D.call(this)).code=H,I}return ot(T,[{key:"render",value:function(H){var I=H._n;return"".concat(this.code,";")+I}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(H,I){return this.code=R(this.code,H,I),this}},{key:"names",get:function(){return this.code instanceof t._CodeOrName?this.code.names:{}}}]),T}(i),h=function(P){Tt(T,P);var D=Rt(T);function T(){var H,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return rt(this,T),(H=D.call(this)).nodes=I,H}return ot(T,[{key:"render",value:function(H){return this.nodes.reduce(function(I,ft){return I+ft.render(H)},"")}},{key:"optimizeNodes",value:function(){for(var H=this.nodes,I=H.length;I--;){var ft=H[I].optimizeNodes();Array.isArray(ft)?H.splice.apply(H,[I,1].concat(Se(ft))):ft?H[I]=ft:H.splice(I,1)}return H.length>0?this:void 0}},{key:"optimizeNames",value:function(H,I){for(var ft=this.nodes,tt=ft.length;tt--;){var yt=ft[tt];yt.optimizeNames(H,I)||(q(H,yt.names),ft.splice(tt,1))}return ft.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(H,I){return B(H,I.names)},{})}}]),T}(i),p=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T,[{key:"render",value:function(H){return"{"+H._n+kn(ln(T.prototype),"render",this).call(this,H)+"}"+H._n}}]),T}(h),v=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T)}(h),m=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T)}(p);m.kind="else";var g=function(P){Tt(T,P);var D=Rt(T);function T(H,I){var ft;return rt(this,T),(ft=D.call(this,I)).condition=H,ft}return ot(T,[{key:"render",value:function(H){var I="if(".concat(this.condition,")")+kn(ln(T.prototype),"render",this).call(this,H);return this.else&&(I+="else "+this.else.render(H)),I}},{key:"optimizeNodes",value:function(){kn(ln(T.prototype),"optimizeNodes",this).call(this);var H=this.condition;if(H===!0)return this.nodes;var I=this.else;if(I){var ft=I.optimizeNodes();I=this.else=Array.isArray(ft)?new m(ft):ft}return I?H===!1?I instanceof T?I:I.nodes:this.nodes.length?this:new T(F(H),I instanceof T?[I]:I.nodes):H!==!1&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(H,I){var ft;if(this.else=(ft=this.else)===null||ft===void 0?void 0:ft.optimizeNames(H,I),kn(ln(T.prototype),"optimizeNames",this).call(this,H,I)||this.else)return this.condition=R(this.condition,H,I),this}},{key:"names",get:function(){var H=kn(ln(T.prototype),"names",this);return K(H,this.condition),this.else&&B(H,this.else.names),H}}]),T}(p);g.kind="if";var y=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T)}(p);y.kind="for";var b=function(P){Tt(T,P);var D=Rt(T);function T(H){var I;return rt(this,T),(I=D.call(this)).iteration=H,I}return ot(T,[{key:"render",value:function(H){return"for(".concat(this.iteration,")")+kn(ln(T.prototype),"render",this).call(this,H)}},{key:"optimizeNames",value:function(H,I){if(kn(ln(T.prototype),"optimizeNames",this).call(this,H,I))return this.iteration=R(this.iteration,H,I),this}},{key:"names",get:function(){return B(kn(ln(T.prototype),"names",this),this.iteration.names)}}]),T}(y),w=function(P){Tt(T,P);var D=Rt(T);function T(H,I,ft,tt){var yt;return rt(this,T),(yt=D.call(this)).varKind=H,yt.name=I,yt.from=ft,yt.to=tt,yt}return ot(T,[{key:"render",value:function(H){var I=H.es5?n.varKinds.var:this.varKind,ft=this.name,tt=this.from,yt=this.to;return"for(".concat(I," ").concat(ft,"=").concat(tt,"; ").concat(ft,"<").concat(yt,"; ").concat(ft,"++)")+kn(ln(T.prototype),"render",this).call(this,H)}},{key:"names",get:function(){var H=K(kn(ln(T.prototype),"names",this),this.from);return K(H,this.to)}}]),T}(y),x=function(P){Tt(T,P);var D=Rt(T);function T(H,I,ft,tt){var yt;return rt(this,T),(yt=D.call(this)).loop=H,yt.varKind=I,yt.name=ft,yt.iterable=tt,yt}return ot(T,[{key:"render",value:function(H){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+kn(ln(T.prototype),"render",this).call(this,H)}},{key:"optimizeNames",value:function(H,I){if(kn(ln(T.prototype),"optimizeNames",this).call(this,H,I))return this.iterable=R(this.iterable,H,I),this}},{key:"names",get:function(){return B(kn(ln(T.prototype),"names",this),this.iterable.names)}}]),T}(y),k=function(P){Tt(T,P);var D=Rt(T);function T(H,I,ft){var tt;return rt(this,T),(tt=D.call(this)).name=H,tt.args=I,tt.async=ft,tt}return ot(T,[{key:"render",value:function(H){var I=this.async?"async ":"";return"".concat(I,"function ").concat(this.name,"(").concat(this.args,")")+kn(ln(T.prototype),"render",this).call(this,H)}}]),T}(p);k.kind="func";var j=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T,[{key:"render",value:function(H){return"return "+kn(ln(T.prototype),"render",this).call(this,H)}}]),T}(h);j.kind="return";var S=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T,[{key:"render",value:function(H){var I="try"+kn(ln(T.prototype),"render",this).call(this,H);return this.catch&&(I+=this.catch.render(H)),this.finally&&(I+=this.finally.render(H)),I}},{key:"optimizeNodes",value:function(){var H,I;return kn(ln(T.prototype),"optimizeNodes",this).call(this),(H=this.catch)===null||H===void 0||H.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}},{key:"optimizeNames",value:function(H,I){var ft,tt;return kn(ln(T.prototype),"optimizeNames",this).call(this,H,I),(ft=this.catch)===null||ft===void 0||ft.optimizeNames(H,I),(tt=this.finally)===null||tt===void 0||tt.optimizeNames(H,I),this}},{key:"names",get:function(){var H=kn(ln(T.prototype),"names",this);return this.catch&&B(H,this.catch.names),this.finally&&B(H,this.finally.names),H}}]),T}(p),N=function(P){Tt(T,P);var D=Rt(T);function T(H){var I;return rt(this,T),(I=D.call(this)).error=H,I}return ot(T,[{key:"render",value:function(H){return"catch(".concat(this.error,")")+kn(ln(T.prototype),"render",this).call(this,H)}}]),T}(p);N.kind="catch";var C=function(P){Tt(T,P);var D=Rt(T);function T(){return rt(this,T),D.apply(this,arguments)}return ot(T,[{key:"render",value:function(H){return"finally"+kn(ln(T.prototype),"render",this).call(this,H)}}]),T}(p);C.kind="finally";var $=function(){function P(D){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rt(this,P),this._values={},this._blockStarts=[],this._constants={},this.opts=xt(xt({},T),{},{_n:T.lines?`
120
+ `:""}),this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}return ot(P,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(D){return this._scope.name(D)}},{key:"scopeName",value:function(D){return this._extScope.name(D)}},{key:"scopeValue",value:function(D,T){var H=this._extScope.value(D,T);return(this._values[H.prefix]||(this._values[H.prefix]=new Set)).add(H),H}},{key:"getScopeValue",value:function(D,T){return this._extScope.getValue(D,T)}},{key:"scopeRefs",value:function(D){return this._extScope.scopeRefs(D,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(D,T,H,I){var ft=this._scope.toName(T);return H!==void 0&&I&&(this._constants[ft.str]=H),this._leafNode(new a(D,ft,H)),ft}},{key:"const",value:function(D,T,H){return this._def(n.varKinds.const,D,T,H)}},{key:"let",value:function(D,T,H){return this._def(n.varKinds.let,D,T,H)}},{key:"var",value:function(D,T,H){return this._def(n.varKinds.var,D,T,H)}},{key:"assign",value:function(D,T,H){return this._leafNode(new s(D,T,H))}},{key:"add",value:function(D,T){return this._leafNode(new c(D,e.operators.ADD,T))}},{key:"code",value:function(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new d(D)),this}},{key:"object",value:function(){for(var D=["{"],T=arguments.length,H=new Array(T),I=0;I<T;I++)H[I]=arguments[I];for(var ft=0,tt=H;ft<tt.length;ft++){var yt=$e(tt[ft],2),bt=yt[0],jt=yt[1];D.length>1&&D.push(","),D.push(bt),(bt!==jt||this.opts.es5)&&(D.push(":"),(0,t.addCodeArg)(D,jt))}return D.push("}"),new t._Code(D)}},{key:"if",value:function(D,T,H){if(this._blockNode(new g(D)),T&&H)this.code(T).else().code(H).endIf();else if(T)this.code(T).endIf();else if(H)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(D){return this._elseNode(new g(D))}},{key:"else",value:function(){return this._elseNode(new m)}},{key:"endIf",value:function(){return this._endBlockNode(g,m)}},{key:"_for",value:function(D,T){return this._blockNode(D),T&&this.code(T).endFor(),this}},{key:"for",value:function(D,T){return this._for(new b(D),T)}},{key:"forRange",value:function(D,T,H,I){var ft=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.opts.es5?n.varKinds.var:n.varKinds.let,tt=this._scope.toName(D);return this._for(new w(ft,tt,T,H),function(){return I(tt)})}},{key:"forOf",value:function(D,T,H){var I=this,ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n.varKinds.const,tt=this._scope.toName(D);if(this.opts.es5){var yt=T instanceof t.Name?T:this.var("_arr",T);return this.forRange("_i",0,(0,t._)(J$||(J$=st(["",".length"])),yt),function(bt){I.var(tt,(0,t._)(G$||(G$=st(["","[","]"])),yt,bt)),H(tt)})}return this._for(new x("of",ft,tt,T),function(){return H(tt)})}},{key:"forIn",value:function(D,T,H){var I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.opts.es5?n.varKinds.var:n.varKinds.const;if(this.opts.ownProperties)return this.forOf(D,(0,t._)(Q$||(Q$=st(["Object.keys(",")"])),T),H);var ft=this._scope.toName(D);return this._for(new x("in",I,ft,T),function(){return H(ft)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(D){return this._leafNode(new u(D))}},{key:"break",value:function(D){return this._leafNode(new l(D))}},{key:"return",value:function(D){var T=new j;if(this._blockNode(T),this.code(D),T.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}},{key:"try",value:function(D,T,H){if(!T&&!H)throw new Error('CodeGen: "try" without "catch" and "finally"');var I=new S;if(this._blockNode(I),this.code(D),T){var ft=this.name("e");this._currNode=I.catch=new N(ft),T(ft)}return H&&(this._currNode=I.finally=new C,this.code(H)),this._endBlockNode(N,C)}},{key:"throw",value:function(D){return this._leafNode(new f(D))}},{key:"block",value:function(D,T){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(T),this}},{key:"endBlock",value:function(D){var T=this._blockStarts.pop();if(T===void 0)throw new Error("CodeGen: not in self-balancing block");var H=this._nodes.length-T;if(H<0||D!==void 0&&H!==D)throw new Error("CodeGen: wrong number of nodes: ".concat(H," vs ").concat(D," expected"));return this._nodes.length=T,this}},{key:"func",value:function(D){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.nil,H=arguments.length>2?arguments[2]:void 0,I=arguments.length>3?arguments[3]:void 0;return this._blockNode(new k(D,T,H)),I&&this.code(I).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(k)}},{key:"optimize",value:function(){for(var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(D){return this._currNode.nodes.push(D),this}},{key:"_blockNode",value:function(D){this._currNode.nodes.push(D),this._nodes.push(D)}},{key:"_endBlockNode",value:function(D,T){var H=this._currNode;if(H instanceof D||T&&H instanceof T)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(T?"".concat(D.kind,"/").concat(T.kind):D.kind,'"'))}},{key:"_elseNode",value:function(D){var T=this._currNode;if(!(T instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=T.else=D,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var D=this._nodes;return D[D.length-1]},set:function(D){var T=this._nodes;T[T.length-1]=D}}]),P}();function B(P,D){for(var T in D)P[T]=(P[T]||0)+(D[T]||0);return P}function K(P,D){return D instanceof t._CodeOrName?B(P,D.names):P}function R(P,D,T){return P instanceof t.Name?H(P):function(I){return I instanceof t._Code&&I._items.some(function(ft){return ft instanceof t.Name&&D[ft.str]===1&&T[ft.str]!==void 0})}(P)?new t._Code(P._items.reduce(function(I,ft){return ft instanceof t.Name&&(ft=H(ft)),ft instanceof t._Code?I.push.apply(I,Se(ft._items)):I.push(ft),I},[])):P;function H(I){var ft=T[I.str];return ft===void 0||D[I.str]!==1?I:(delete D[I.str],ft)}}function q(P,D){for(var T in D)P[T]=(P[T]||0)-(D[T]||0)}function F(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)(Y$||(Y$=st(["!",""])),M(P))}e.CodeGen=$,e.not=F;var O=_(e.operators.AND);e.and=function(){for(var P=arguments.length,D=new Array(P),T=0;T<P;T++)D[T]=arguments[T];return D.reduce(O)};var A=_(e.operators.OR);function _(P){return function(D,T){return D===t.nil?T:T===t.nil?D:(0,t._)(X$||(X$=st([""," "," ",""])),M(D),P,M(T))}}function M(P){return P instanceof t.Name?P:(0,t._)(Z$||(Z$=st(["(",")"])),P)}e.or=function(){for(var P=arguments.length,D=new Array(P),T=0;T<P;T++)D[T]=arguments[T];return D.reduce(A)}}(HR)),HR}var Rn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=jn(),n=Xg();function r(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.schema,v=h.opts,m=h.self;if(v.strictSchema&&typeof p!="boolean"){var g=m.RULES.keywords;for(var y in p)g[y]||d(h,'unknown keyword: "'.concat(y,'"'))}}function o(h,p){if(typeof h=="boolean")return!h;for(var v in h)if(p[v])return!0;return!1}function i(h){return typeof h=="number"?"".concat(h):h.replace(/~/g,"~0").replace(/\//g,"~1")}function a(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}function s(h){var p=h.mergeNames,v=h.mergeToName,m=h.mergeValues,g=h.resultToName;return function(y,b,w,x){var k=w===void 0?b:w instanceof t.Name?(b instanceof t.Name?p(y,b,w):v(y,b,w),w):b instanceof t.Name?(v(y,w,b),b):m(b,w);return x!==t.Name||k instanceof t.Name?k:g(y,k)}}function c(h,p){if(p===!0)return h.var("props",!0);var v=h.var("props",(0,t._)(dC||(dC=st(["{}"]))));return p!==void 0&&u(h,v,p),v}function u(h,p,v){Object.keys(v).forEach(function(m){return h.assign((0,t._)(hC||(hC=st(["","",""])),p,(0,t.getProperty)(m)),!0)})}e.toHash=function(h){var p,v={},m=ht(h);try{for(m.s();!(p=m.n()).done;)v[p.value]=!0}catch(g){m.e(g)}finally{m.f()}return v},e.alwaysValidSchema=function(h,p){return typeof p=="boolean"?p:Object.keys(p).length===0||(r(h,p),!o(p,h.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=o,e.schemaHasRulesButRef=function(h,p){if(typeof h=="boolean")return!h;for(var v in h)if(v!=="$ref"&&p.all[v])return!0;return!1},e.schemaRefOrVal=function(h,p,v,m){var g=h.topSchemaRef,y=h.schemaPath;if(!m){if(typeof p=="number"||typeof p=="boolean")return p;if(typeof p=="string")return(0,t._)(tC||(tC=st(["",""])),p)}return(0,t._)(eC||(eC=st(["","","",""])),g,y,(0,t.getProperty)(v))},e.unescapeFragment=function(h){return a(decodeURIComponent(h))},e.escapeFragment=function(h){return encodeURIComponent(i(h))},e.escapeJsonPointer=i,e.unescapeJsonPointer=a,e.eachItem=function(h,p){if(Array.isArray(h)){var v,m=ht(h);try{for(m.s();!(v=m.n()).done;)p(v.value)}catch(g){m.e(g)}finally{m.f()}}else p(h)},e.mergeEvaluated={props:s({mergeNames:function(h,p,v){return h.if((0,t._)(nC||(nC=st([""," !== true && "," !== undefined"])),v,p),function(){h.if((0,t._)(rC||(rC=st([""," === true"])),p),function(){return h.assign(v,!0)},function(){return h.assign(v,(0,t._)(oC||(oC=st([""," || {}"])),v)).code((0,t._)(iC||(iC=st(["Object.assign(",", ",")"])),v,p))})})},mergeToName:function(h,p,v){return h.if((0,t._)(aC||(aC=st([""," !== true"])),v),function(){p===!0?h.assign(v,!0):(h.assign(v,(0,t._)(sC||(sC=st([""," || {}"])),v)),u(h,v,p))})},mergeValues:function(h,p){return h===!0||xt(xt({},h),p)},resultToName:c}),items:s({mergeNames:function(h,p,v){return h.if((0,t._)(cC||(cC=st([""," !== true && "," !== undefined"])),v,p),function(){return h.assign(v,(0,t._)(uC||(uC=st([""," === true ? true : "," > "," ? "," : ",""])),p,v,p,v,p))})},mergeToName:function(h,p,v){return h.if((0,t._)(lC||(lC=st([""," !== true"])),v),function(){return h.assign(v,p===!0||(0,t._)(fC||(fC=st([""," > "," ? "," : ",""])),v,p,v,p))})},mergeValues:function(h,p){return h===!0||Math.max(h,p)},resultToName:function(h,p){return h.var("items",p)}})},e.evaluatedPropsToName=c,e.setEvaluated=u;var l,f={};function d(h,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.opts.strictSchema;if(v){if(p="strict mode: ".concat(p),v===!0)throw new Error(p);h.self.logger.warn(p)}}e.useFunc=function(h,p){return h.scopeValue("func",{ref:p,code:f[p.code]||(f[p.code]=new n._Code(p.code))})},function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"}(l=e.Type||(e.Type={})),e.getErrorPath=function(h,p,v){if(h instanceof t.Name){var m=p===l.Num;return v?m?(0,t._)(pC||(pC=st(['"[" + ',' + "]"'])),h):(0,t._)(vC||(vC=st([`"['" + `,` + "']"`])),h):m?(0,t._)(mC||(mC=st(['"/" + ',""])),h):(0,t._)(gC||(gC=st(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),h)}return v?(0,t.getProperty)(h).toString():"/"+i(h)},e.checkStrictMode=d})(Rn);var GR,QR,YR,Gv={};function Zc(){if(GR)return Gv;GR=1,Object.defineProperty(Gv,"__esModule",{value:!0});var e=jn(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Gv.default=t,Gv}function Zg(){return QR||(QR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=jn(),n=Rn,r=Zc();function o(l,f){var d=l.const("err",f);l.if((0,t._)(AC||(AC=st([""," === null"])),r.default.vErrors),function(){return l.assign(r.default.vErrors,(0,t._)(PC||(PC=st(["[","]"])),d))},(0,t._)(TC||(TC=st(["",".push(",")"])),r.default.vErrors,d)),l.code((0,t._)(RC||(RC=st(["","++"])),r.default.errors))}function i(l,f){var d=l.gen,h=l.validateName;l.schemaEnv.$async?d.throw((0,t._)(IC||(IC=st(["new ","(",")"])),l.ValidationError,f)):(d.assign((0,t._)(NC||(NC=st(["",".errors"])),h),f),d.return(!1))}e.keywordError={message:function(l){var f=l.keyword;return(0,t.str)(yC||(yC=st(['must pass "','" keyword validation'])),f)}},e.keyword$DataError={message:function(l){var f=l.keyword,d=l.schemaType;return d?(0,t.str)(bC||(bC=st(['"','" keyword must be '," ($data)"])),f,d):(0,t.str)(wC||(wC=st(['"','" keyword is invalid ($data)'])),f)}},e.reportError=function(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.keywordError,d=arguments.length>2?arguments[2]:void 0,h=arguments.length>3?arguments[3]:void 0,p=l.it,v=p.gen,m=p.compositeRule,g=p.allErrors,y=s(l,f,d);h??(m||g)?o(v,y):i(p,(0,t._)(xC||(xC=st(["[","]"])),y))},e.reportExtraError=function(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.keywordError,d=arguments.length>2?arguments[2]:void 0,h=l.it,p=h.gen,v=h.compositeRule,m=h.allErrors;o(p,s(l,f,d)),v||m||i(h,r.default.vErrors)},e.resetErrorsCount=function(l,f){l.assign(r.default.errors,f),l.if((0,t._)(kC||(kC=st([""," !== null"])),r.default.vErrors),function(){return l.if(f,function(){return l.assign((0,t._)(jC||(jC=st(["",".length"])),r.default.vErrors),f)},function(){return l.assign(r.default.vErrors,null)})})},e.extendErrors=function(l){var f=l.gen,d=l.keyword,h=l.schemaValue,p=l.data,v=l.errsCount,m=l.it;if(v===void 0)throw new Error("ajv implementation error");var g=f.name("err");f.forRange("i",v,r.default.errors,function(y){f.const(g,(0,t._)(_C||(_C=st(["","[","]"])),r.default.vErrors,y)),f.if((0,t._)(SC||(SC=st(["",".instancePath === undefined"])),g),function(){return f.assign((0,t._)($C||($C=st(["",".instancePath"])),g),(0,t.strConcat)(r.default.instancePath,m.errorPath))}),f.assign((0,t._)(CC||(CC=st(["",".schemaPath"])),g),(0,t.str)(EC||(EC=st(["","/",""])),m.errSchemaPath,d)),m.opts.verbose&&(f.assign((0,t._)(OC||(OC=st(["",".schema"])),g),h),f.assign((0,t._)(MC||(MC=st(["",".data"])),g),p))})};var a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(l,f,d){return l.it.createErrors===!1?(0,t._)(DC||(DC=st(["{}"]))):function(h,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=h.gen,g=h.it,y=[c(g,v),u(h,v)];return function(b,w,x){var k=w.params,j=w.message,S=b.keyword,N=b.data,C=b.schemaValue,$=b.it,B=$.opts,K=$.propertyName,R=$.topSchemaRef,q=$.schemaPath;x.push([a.keyword,S],[a.params,typeof k=="function"?k(b):k||(0,t._)(FC||(FC=st(["{}"])))]),B.messages&&x.push([a.message,typeof j=="function"?j(b):j]),B.verbose&&x.push([a.schema,C],[a.parentSchema,(0,t._)(qC||(qC=st(["","",""])),R,q)],[r.default.data,N]),K&&x.push([a.propertyName,K])}(h,p,y),m.object.apply(m,y)}(l,f,d)}function c(l,f){var d=l.errorPath,h=f.instancePath,p=h?(0,t.str)(zC||(zC=st(["","",""])),d,(0,n.getErrorPath)(h,n.Type.Str)):d;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,p)]}function u(l,f){var d=l.keyword,h=l.it.errSchemaPath,p=f.schemaPath,v=f.parentSchema?h:(0,t.str)(LC||(LC=st(["","/",""])),h,d);return p&&(v=(0,t.str)(BC||(BC=st(["","",""])),v,(0,n.getErrorPath)(p,n.Type.Str))),[a.schemaPath,v]}}(qR)),qR}var sp={},Hu={};Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.getRules=Hu.isJSONType=void 0;var rxt=new Set(["string","number","integer","boolean","null","object","array"]);Hu.isJSONType=function(e){return typeof e=="string"&&rxt.has(e)},Hu.getRules=function(){var e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:xt(xt({},e),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var XR,_s={};function AH(){if(XR)return _s;function e(n,r){return r.rules.some(function(o){return t(n,o)})}function t(n,r){var o;return n[r.keyword]!==void 0||((o=r.definition.implements)===null||o===void 0?void 0:o.some(function(i){return n[i]!==void 0}))}return XR=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.shouldUseRule=_s.shouldUseGroup=_s.schemaHasRulesForType=void 0,_s.schemaHasRulesForType=function(n,r){var o=n.schema,i=n.self.RULES.types[r];return i&&i!==!0&&e(o,i)},_s.shouldUseGroup=e,_s.shouldUseRule=t,_s}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t,n=Hu,r=AH(),o=Zg(),i=jn(),a=Rn;function s(h){var p=Array.isArray(h)?h:h?[h]:[];if(p.every(n.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(function(h){h[h.Correct=0]="Correct",h[h.Wrong=1]="Wrong"})(t=e.DataType||(e.DataType={})),e.getSchemaTypes=function(h){var p=s(h.type);if(p.includes("null")){if(h.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&h.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');h.nullable===!0&&p.push("null")}return p},e.getJSONTypes=s,e.coerceAndCheckDataType=function(h,p){var v=h.gen,m=h.data,g=h.opts,y=function(x,k){return k?x.filter(function(j){return c.has(j)||k==="array"&&j==="array"}):[]}(p,g.coerceTypes),b=p.length>0&&!(y.length===0&&p.length===1&&(0,r.schemaHasRulesForType)(h,p[0]));if(b){var w=l(p,m,g.strictNumbers,t.Wrong);v.if(w,function(){y.length?function(x,k,j){var S=x.gen,N=x.data,C=x.opts,$=S.let("dataType",(0,i._)(VC||(VC=st(["typeof ",""])),N)),B=S.let("coerced",(0,i._)(UC||(UC=st(["undefined"]))));C.coerceTypes==="array"&&S.if((0,i._)(WC||(WC=st([""," == 'object' && Array.isArray(",") && ",".length == 1"])),$,N,N),function(){return S.assign(N,(0,i._)(KC||(KC=st(["","[0]"])),N)).assign($,(0,i._)(JC||(JC=st(["typeof ",""])),N)).if(l(k,N,C.strictNumbers),function(){return S.assign(B,N)})}),S.if((0,i._)(GC||(GC=st([""," !== undefined"])),B));var K,R=ht(j);try{for(R.s();!(K=R.n()).done;){var q=K.value;(c.has(q)||q==="array"&&C.coerceTypes==="array")&&F(q)}}catch(O){R.e(O)}finally{R.f()}function F(O){switch(O){case"string":return void S.elseIf((0,i._)(YC||(YC=st(["",' == "number" || ',' == "boolean"'])),$,$)).assign(B,(0,i._)(XC||(XC=st(['"" + ',""])),N)).elseIf((0,i._)(ZC||(ZC=st([""," === null"])),N)).assign(B,(0,i._)(t3||(t3=st(['""']))));case"number":return void S.elseIf((0,i._)(e3||(e3=st(["",' == "boolean" || ',` === null
121
+ || (`,' == "string" && '," && "," == +",")"])),$,N,$,N,N,N)).assign(B,(0,i._)(n3||(n3=st(["+",""])),N));case"integer":return void S.elseIf((0,i._)(r3||(r3=st(["",' === "boolean" || ',` === null
122
+ || (`,' === "string" && '," && "," == +"," && !("," % 1))"])),$,N,$,N,N,N,N)).assign(B,(0,i._)(o3||(o3=st(["+",""])),N));case"boolean":return void S.elseIf((0,i._)(i3||(i3=st(["",' === "false" || '," === 0 || "," === null"])),N,N,N)).assign(B,!1).elseIf((0,i._)(a3||(a3=st(["",' === "true" || '," === 1"])),N,N)).assign(B,!0);case"null":return S.elseIf((0,i._)(s3||(s3=st(["",' === "" || '," === 0 || "," === false"])),N,N,N)),void S.assign(B,null);case"array":S.elseIf((0,i._)(c3||(c3=st(["",' === "string" || ',` === "number"
123
+ || `,' === "boolean" || '," === null"])),$,$,$,N)).assign(B,(0,i._)(u3||(u3=st(["[","]"])),N))}}S.else(),d(x),S.endIf(),S.if((0,i._)(QC||(QC=st([""," !== undefined"])),B),function(){S.assign(N,B),function(O,A){var _=O.gen,M=O.parentData,P=O.parentDataProperty;_.if((0,i._)(l3||(l3=st([""," !== undefined"])),M),function(){return _.assign((0,i._)(f3||(f3=st(["","[","]"])),M,P),A)})}(x,B)})}(h,p,y):d(h)})}return b};var c=new Set(["string","number","integer","boolean","null"]);function u(h,p,v){var m,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.Correct,y=g===t.Correct?i.operators.EQ:i.operators.NEQ;switch(h){case"null":return(0,i._)(d3||(d3=st([""," "," null"])),p,y);case"array":m=(0,i._)(h3||(h3=st(["Array.isArray(",")"])),p);break;case"object":m=(0,i._)(p3||(p3=st([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":m=b((0,i._)(v3||(v3=st(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":m=b();break;default:return(0,i._)(m3||(m3=st(["typeof "," "," ",""])),p,y,h)}return g===t.Correct?m:(0,i.not)(m);function b(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.nil;return(0,i.and)((0,i._)(g3||(g3=st(["typeof ",' == "number"'])),p),w,v?(0,i._)(y3||(y3=st(["isFinite(",")"])),p):i.nil)}}function l(h,p,v,m){if(h.length===1)return u(h[0],p,v,m);var g,y=(0,a.toHash)(h);if(y.array&&y.object){var b=(0,i._)(b3||(b3=st(["typeof ",' != "object"'])),p);g=y.null?b:(0,i._)(w3||(w3=st(["!"," || ",""])),p,b),delete y.null,delete y.array,delete y.object}else g=i.nil;for(var w in y.number&&delete y.integer,y)g=(0,i.and)(g,u(w,p,v,m));return g}e.checkDataType=u,e.checkDataTypes=l;var f={message:function(h){var p=h.schema;return"must be ".concat(p)},params:function(h){var p=h.schema,v=h.schemaValue;return typeof p=="string"?(0,i._)(x3||(x3=st(["{type: ","}"])),p):(0,i._)(k3||(k3=st(["{type: ","}"])),v)}};function d(h){var p=function(v){var m=v.gen,g=v.data,y=v.schema,b=(0,a.schemaRefOrVal)(v,y,"type");return{gen:m,keyword:"type",data:g,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:v}}(h);(0,o.reportError)(p,f)}e.reportTypeError=d})(sp);var ZR,Sd={},t9,e9,na={},Gn={};function Pa(){if(t9)return Gn;t9=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.validateUnion=Gn.validateArray=Gn.usePattern=Gn.callValidateCode=Gn.schemaProperties=Gn.allSchemaProperties=Gn.noPropertyInData=Gn.propertyInData=Gn.isOwnProperty=Gn.hasPropFunc=Gn.reportMissingProp=Gn.checkMissingProp=Gn.checkReportMissingProp=void 0;var e=jn(),t=Rn,n=Zc(),r=Rn;function o(u){return u.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)(O3||(O3=st(["Object.prototype.hasOwnProperty"])))})}function i(u,l,f){return(0,e._)(M3||(M3=st(["",".call(",", ",")"])),o(u),l,f)}function a(u,l,f,d){var h=(0,e._)(T3||(T3=st(["",""," === undefined"])),l,(0,e.getProperty)(f));return d?(0,e.or)(h,(0,e.not)(i(u,l,f))):h}function s(u){return u?Object.keys(u).filter(function(l){return l!=="__proto__"}):[]}Gn.checkReportMissingProp=function(u,l){var f=u.gen,d=u.data,h=u.it;f.if(a(f,d,l,h.opts.ownProperties),function(){u.setParams({missingProperty:(0,e._)(C3||(C3=st(["",""])),l)},!0),u.error()})},Gn.checkMissingProp=function(u,l,f){var d=u.gen,h=u.data,p=u.it.opts;return e.or.apply(void 0,Se(l.map(function(v){return(0,e.and)(a(d,h,v,p.ownProperties),(0,e._)(E3||(E3=st([""," = ",""])),f,v))})))},Gn.reportMissingProp=function(u,l){u.setParams({missingProperty:l},!0),u.error()},Gn.hasPropFunc=o,Gn.isOwnProperty=i,Gn.propertyInData=function(u,l,f,d){var h=(0,e._)(A3||(A3=st(["",""," !== undefined"])),l,(0,e.getProperty)(f));return d?(0,e._)(P3||(P3=st([""," && ",""])),h,i(u,l,f)):h},Gn.noPropertyInData=a,Gn.allSchemaProperties=s,Gn.schemaProperties=function(u,l){return s(l).filter(function(f){return!(0,t.alwaysValidSchema)(u,l[f])})},Gn.callValidateCode=function(u,l,f,d){var h=u.schemaCode,p=u.data,v=u.it,m=v.gen,g=v.topSchemaRef,y=v.schemaPath,b=v.errorPath,w=u.it,x=d?(0,e._)(R3||(R3=st(["",", ",", ","",""])),h,p,g,y):p,k=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,b)],[n.default.parentData,w.parentData],[n.default.parentDataProperty,w.parentDataProperty],[n.default.rootData,n.default.rootData]];w.opts.dynamicRef&&k.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);var j=(0,e._)(I3||(I3=st(["",", ",""])),x,m.object.apply(m,k));return f!==e.nil?(0,e._)(N3||(N3=st(["",".call(",", ",")"])),l,f,j):(0,e._)(D3||(D3=st(["","(",")"])),l,j)};var c=(0,e._)(z3||(z3=st(["new RegExp"])));return Gn.usePattern=function(u,l){var f=u.gen,d=u.it.opts,h=d.unicodeRegExp?"u":"",p=d.code.regExp,v=p(l,h);return f.scopeValue("pattern",{key:v.toString(),ref:v,code:(0,e._)(L3||(L3=st(["","(",", ",")"])),p.code==="new RegExp"?c:(0,r.useFunc)(f,p),l,h)})},Gn.validateArray=function(u){var l=u.gen,f=u.data,d=u.keyword,h=u.it,p=l.name("valid");if(h.allErrors){var v=l.let("valid",!0);return m(function(){return l.assign(v,!1)}),v}return l.var(p,!0),m(function(){return l.break()}),p;function m(g){var y=l.const("len",(0,e._)(B3||(B3=st(["",".length"])),f));l.forRange("i",0,y,function(b){u.subschema({keyword:d,dataProp:b,dataPropType:t.Type.Num},p),l.if((0,e.not)(p),g)})}},Gn.validateUnion=function(u){var l=u.gen,f=u.schema,d=u.keyword,h=u.it;if(!Array.isArray(f))throw new Error("ajv implementation error");if(!f.some(function(m){return(0,t.alwaysValidSchema)(h,m)})||h.opts.unevaluated){var p=l.let("valid",!1),v=l.name("_valid");l.block(function(){return f.forEach(function(m,g){var y=u.subschema({keyword:d,schemaProp:g,compositeRule:!0},v);l.assign(p,(0,e._)(F3||(F3=st([""," || ",""])),p,v)),u.mergeValidEvaluated(y,v)||l.if((0,e.not)(p))})}),u.result(p,function(){return u.reset()},function(){return u.error(!0)})}},Gn}function oxt(){if(e9)return na;e9=1,Object.defineProperty(na,"__esModule",{value:!0}),na.validateKeywordUsage=na.validSchemaType=na.funcKeywordCode=na.macroKeywordCode=void 0;var e=jn(),t=Zc(),n=Pa(),r=Zg();function o(a){var s=a.gen,c=a.data,u=a.it;s.if(u.parentData,function(){return s.assign(c,(0,e._)(J3||(J3=st(["","[","]"])),u.parentData,u.parentDataProperty))})}function i(a,s,c){if(c===void 0)throw new Error('keyword "'.concat(s,'" failed to compile'));return a.scopeValue("keyword",typeof c=="function"?{ref:c}:{ref:c,code:(0,e.stringify)(c)})}return na.macroKeywordCode=function(a,s){var c=a.gen,u=a.keyword,l=a.schema,f=a.parentSchema,d=a.it,h=s.macro.call(d.self,l,f,d),p=i(c,u,h);d.opts.validateSchema!==!1&&d.self.validateSchema(h,!0);var v=c.name("valid");a.subschema({schema:h,schemaPath:e.nil,errSchemaPath:"".concat(d.errSchemaPath,"/").concat(u),topSchemaRef:p,compositeRule:!0},v),a.pass(v,function(){return a.error(!0)})},na.funcKeywordCode=function(a,s){var c,u=a.gen,l=a.keyword,f=a.schema,d=a.parentSchema,h=a.$data,p=a.it;(function(w,x){var k=w.schemaEnv;if(x.async&&!k.$async)throw new Error("async keyword in sync schema")})(p,s);var v=!h&&s.compile?s.compile.call(p.self,f,d,p):s.validate,m=i(u,l,v),g=u.let("valid");function y(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.async?(0,e._)(W3||(W3=st(["await "]))):e.nil,x=p.opts.passContext?t.default.this:t.default.self,k=!("compile"in s&&!h||s.schema===!1);u.assign(g,(0,e._)(K3||(K3=st(["","",""])),w,(0,n.callValidateCode)(a,m,x,k)),s.modifying)}function b(w){var x;u.if((0,e.not)((x=s.valid)!==null&&x!==void 0?x:g),w)}a.block$data(g,function(){if(s.errors===!1)y(),s.modifying&&o(a),b(function(){return a.error()});else{var w=s.async?function(){var k=u.let("ruleErrs",null);return u.try(function(){return y((0,e._)(q3||(q3=st(["await "]))))},function(j){return u.assign(g,!1).if((0,e._)(H3||(H3=st([""," instanceof ",""])),j,p.ValidationError),function(){return u.assign(k,(0,e._)(V3||(V3=st(["",".errors"])),j))},function(){return u.throw(j)})}),k}():(x=(0,e._)(U3||(U3=st(["",".errors"])),m),u.assign(x,null),y(e.nil),x);s.modifying&&o(a),b(function(){return function(k,j){var S=k.gen;S.if((0,e._)(G3||(G3=st(["Array.isArray(",")"])),j),function(){S.assign(t.default.vErrors,(0,e._)(Q3||(Q3=st([""," === null ? "," : ",".concat(",")"])),t.default.vErrors,j,t.default.vErrors,j)).assign(t.default.errors,(0,e._)(Y3||(Y3=st(["",".length"])),t.default.vErrors)),(0,r.extendErrors)(k)},function(){return k.error()})}(a,w)})}var x}),a.ok((c=s.valid)!==null&&c!==void 0?c:g)},na.validSchemaType=function(a,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return!s.length||s.some(function(u){return u==="array"?Array.isArray(a):u==="object"?a&&ce(a)=="object"&&!Array.isArray(a):ce(a)==u||c&&a===void 0})},na.validateKeywordUsage=function(a,s,c){var u=a.schema,l=a.opts,f=a.self,d=a.errSchemaPath;if(Array.isArray(s.keyword)?!s.keyword.includes(c):s.keyword!==c)throw new Error("ajv implementation error");var h=s.dependencies;if(h!=null&&h.some(function(v){return!Object.prototype.hasOwnProperty.call(u,v)}))throw new Error("parent schema must have dependencies of ".concat(c,": ").concat(h.join(",")));if(s.validateSchema&&!s.validateSchema(u[c])){var p='keyword "'.concat(c,'" value is invalid at path "').concat(d,'": ')+f.errorsText(s.validateSchema.errors);if(l.validateSchema!=="log")throw new Error(p);f.logger.error(p)}},na}var n9,Ss={},yo={},PH=function e(t,n){if(t===n)return!0;if(t&&n&&ce(t)=="object"&&ce(n)=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;o--!=0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!=0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},TH={exports:{}},$c=TH.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),Nm(t,typeof(n=t.cb||n)=="function"?n:n.pre||function(){},n.post||function(){},e,"",e)};function Nm(e,t,n,r,o,i,a,s,c,u){if(r&&ce(r)=="object"&&!Array.isArray(r)){for(var l in t(r,o,i,a,s,c,u),r){var f=r[l];if(Array.isArray(f)){if(l in $c.arrayKeywords)for(var d=0;d<f.length;d++)Nm(e,t,n,f[d],o+"/"+l+"/"+d,i,o,l,r,d)}else if(l in $c.propsKeywords){if(f&&ce(f)=="object")for(var h in f)Nm(e,t,n,f[h],o+"/"+l+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),i,o,l,r,h)}else(l in $c.keywords||e.allKeys&&!(l in $c.skipKeywords))&&Nm(e,t,n,f,o+"/"+l,i,o,l,r)}n(r,o,i,a,s,c,u)}}$c.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},$c.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},$c.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},$c.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var ixt=TH.exports;Object.defineProperty(yo,"__esModule",{value:!0}),yo.getSchemaRefs=yo.resolveUrl=yo.normalizeId=yo._getFullPath=yo.getFullPath=yo.inlineRef=void 0;var axt=Rn,sxt=PH,cxt=ixt,uxt=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);yo.inlineRef=function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return typeof e=="boolean"||(t===!0?!Kx(e):!!t&&RH(e)<=t)};var lxt=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Kx(e){for(var t in e){if(lxt.has(t))return!0;var n=e[t];if(Array.isArray(n)&&n.some(Kx)||ce(n)=="object"&&Kx(n))return!0}return!1}function RH(e){var t=0;for(var n in e)if(n==="$ref"||(t++,!uxt.has(n)&&(ce(e[n])=="object"&&(0,axt.eachItem)(e[n],function(r){return t+=RH(r)}),t===1/0)))return 1/0;return t}function IH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(arguments.length>2?arguments[2]:void 0)!==!1&&(t=hf(t));var n=e.parse(t);return NH(e,n)}function NH(e,t){return e.serialize(t).split("#")[0]+"#"}yo.getFullPath=IH,yo._getFullPath=NH;var fxt=/#\/?$/;function hf(e){return e?e.replace(fxt,""):""}yo.normalizeId=hf,yo.resolveUrl=function(e,t,n){return n=hf(n),e.resolve(t,n)};var r9,dxt=/^[a-z_][-a-z0-9._]*$/i;function v1(){if(r9)return js;r9=1,Object.defineProperty(js,"__esModule",{value:!0}),js.getData=js.KeywordCxt=js.validateFunctionCode=void 0;var e=function(){if(YR)return mu;YR=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.boolOrEmptySchema=mu.topBoolOrEmptySchema=void 0;var R=Zg(),q=jn(),F=Zc(),O={message:"boolean schema is false"};function A(_,M){var P={gen:_.gen,keyword:"false schema",data:_.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:_};(0,R.reportError)(P,O,void 0,M)}return mu.topBoolOrEmptySchema=function(_){var M=_.gen,P=_.schema,D=_.validateName;P===!1?A(_,!1):ce(P)=="object"&&P.$async===!0?M.return(F.default.data):(M.assign((0,q._)(HC||(HC=st(["",".errors"])),D),null),M.return(!0))},mu.boolOrEmptySchema=function(_,M){var P=_.gen;_.schema===!1?(P.var(M,!1),A(_)):P.var(M,!0)},mu}(),t=sp,n=AH(),r=sp,o=function(){if(ZR)return Sd;ZR=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.assignDefaults=void 0;var R=jn(),q=Rn;function F(O,A,_){var M=O.gen,P=O.compositeRule,D=O.data,T=O.opts;if(_!==void 0){var H=(0,R._)(j3||(j3=st(["","",""])),D,(0,R.getProperty)(A));if(P)(0,q.checkStrictMode)(O,"default is ignored for: ".concat(H));else{var I=(0,R._)(_3||(_3=st([""," === undefined"])),H);T.useDefaults==="empty"&&(I=(0,R._)(S3||(S3=st([""," || "," === null || ",' === ""'])),I,H,H)),M.if(I,(0,R._)($3||($3=st([""," = ",""])),H,(0,R.stringify)(_)))}}}return Sd.assignDefaults=function(O,A){var _=O.schema,M=_.properties,P=_.items;if(A==="object"&&M)for(var D in M)F(O,D,M[D].default);else A==="array"&&Array.isArray(P)&&P.forEach(function(T,H){return F(O,H,T.default)})},Sd}(),i=oxt(),a=function(){if(n9)return Ss;n9=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.extendSubschemaMode=Ss.extendSubschemaData=Ss.getSubschema=void 0;var R=jn(),q=Rn;return Ss.getSubschema=function(F,O){var A=O.keyword,_=O.schemaProp,M=O.schema,P=O.schemaPath,D=O.errSchemaPath,T=O.topSchemaRef;if(A!==void 0&&M!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(A!==void 0){var H=F.schema[A];return _===void 0?{schema:H,schemaPath:(0,R._)(X3||(X3=st(["","",""])),F.schemaPath,(0,R.getProperty)(A)),errSchemaPath:"".concat(F.errSchemaPath,"/").concat(A)}:{schema:H[_],schemaPath:(0,R._)(Z3||(Z3=st(["","","",""])),F.schemaPath,(0,R.getProperty)(A),(0,R.getProperty)(_)),errSchemaPath:"".concat(F.errSchemaPath,"/").concat(A,"/").concat((0,q.escapeFragment)(_))}}if(M!==void 0){if(P===void 0||D===void 0||T===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:M,schemaPath:P,topSchemaRef:T,errSchemaPath:D}}throw new Error('either "keyword" or "schema" must be passed')},Ss.extendSubschemaData=function(F,O,A){var _=A.dataProp,M=A.dataPropType,P=A.data,D=A.dataTypes,T=A.propertyName;if(P!==void 0&&_!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');var H=O.gen;if(_!==void 0){var I=O.errorPath,ft=O.dataPathArr,tt=O.opts;yt(H.let("data",(0,R._)(t4||(t4=st(["","",""])),O.data,(0,R.getProperty)(_)),!0)),F.errorPath=(0,R.str)(e4||(e4=st(["","",""])),I,(0,q.getErrorPath)(_,M,tt.jsPropertySyntax)),F.parentDataProperty=(0,R._)(n4||(n4=st(["",""])),_),F.dataPathArr=[].concat(Se(ft),[F.parentDataProperty])}function yt(bt){F.data=bt,F.dataLevel=O.dataLevel+1,F.dataTypes=[],O.definedProperties=new Set,F.parentData=O.data,F.dataNames=[].concat(Se(O.dataNames),[bt])}P!==void 0&&(yt(P instanceof R.Name?P:H.let("data",P,!0)),T!==void 0&&(F.propertyName=T)),D&&(F.dataTypes=D)},Ss.extendSubschemaMode=function(F,O){var A=O.jtdDiscriminator,_=O.jtdMetadata,M=O.compositeRule,P=O.createErrors,D=O.allErrors;M!==void 0&&(F.compositeRule=M),P!==void 0&&(F.createErrors=P),D!==void 0&&(F.allErrors=D),F.jtdDiscriminator=A,F.jtdMetadata=_},Ss}(),s=jn(),c=Zc(),u=yo,l=Rn,f=Zg();function d(R,q){var F=R.gen,O=R.validateName,A=R.schema,_=R.schemaEnv,M=R.opts;M.code.es5?F.func(O,(0,s._)(r4||(r4=st(["",", ",""])),c.default.data,c.default.valCxt),_.$async,function(){F.code((0,s._)(o4||(o4=st(['"use strict"; ',""])),h(A,M))),function(P,D){P.if(c.default.valCxt,function(){P.var(c.default.instancePath,(0,s._)(c4||(c4=st(["",".",""])),c.default.valCxt,c.default.instancePath)),P.var(c.default.parentData,(0,s._)(u4||(u4=st(["",".",""])),c.default.valCxt,c.default.parentData)),P.var(c.default.parentDataProperty,(0,s._)(l4||(l4=st(["",".",""])),c.default.valCxt,c.default.parentDataProperty)),P.var(c.default.rootData,(0,s._)(f4||(f4=st(["",".",""])),c.default.valCxt,c.default.rootData)),D.dynamicRef&&P.var(c.default.dynamicAnchors,(0,s._)(d4||(d4=st(["",".",""])),c.default.valCxt,c.default.dynamicAnchors))},function(){P.var(c.default.instancePath,(0,s._)(h4||(h4=st(['""'])))),P.var(c.default.parentData,(0,s._)(p4||(p4=st(["undefined"])))),P.var(c.default.parentDataProperty,(0,s._)(v4||(v4=st(["undefined"])))),P.var(c.default.rootData,c.default.data),D.dynamicRef&&P.var(c.default.dynamicAnchors,(0,s._)(m4||(m4=st(["{}"]))))})}(F,M),F.code(q)}):F.func(O,(0,s._)(i4||(i4=st(["",", ",""])),c.default.data,function(P){return(0,s._)(a4||(a4=st(["{",'="", ',", ",", ","=","","}={}"])),c.default.instancePath,c.default.parentData,c.default.parentDataProperty,c.default.rootData,c.default.data,P.dynamicRef?(0,s._)(s4||(s4=st([", ","={}"])),c.default.dynamicAnchors):s.nil)}(M)),_.$async,function(){return F.code(h(A,M)).code(q)})}function h(R,q){var F=ce(R)=="object"&&R[q.schemaId];return F&&(q.code.source||q.code.process)?(0,s._)(_4||(_4=st(["/*# sourceURL="," */"])),F):s.nil}function p(R,q){m(R)&&(g(R),v(R))?function(F,O){var A=F.schema,_=F.gen,M=F.opts;M.$comment&&A.$comment&&b(F),function(D){var T=D.schema[D.opts.schemaId];T&&(D.baseId=(0,u.resolveUrl)(D.opts.uriResolver,D.baseId,T))}(F),function(D){if(D.schema.$async&&!D.schemaEnv.$async)throw new Error("async schema in sync schema")}(F);var P=_.const("_errs",c.default.errors);y(F,P),_.var(O,(0,s._)(S4||(S4=st([""," === ",""])),P,c.default.errors))}(R,q):(0,e.boolOrEmptySchema)(R,q)}function v(R){var q=R.schema,F=R.self;if(typeof q=="boolean")return!q;for(var O in q)if(F.RULES.all[O])return!0;return!1}function m(R){return typeof R.schema!="boolean"}function g(R){(0,l.checkUnknownRules)(R),function(q){var F=q.schema,O=q.errSchemaPath,A=q.opts,_=q.self;F.$ref&&A.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(F,_.RULES)&&_.logger.warn('$ref: keywords ignored in schema at path "'.concat(O,'"'))}(R)}function y(R,q){if(R.opts.jtd)return w(R,[],!1,q);var F=(0,t.getSchemaTypes)(R.schema);w(R,F,!(0,t.coerceAndCheckDataType)(R,F),q)}function b(R){var q=R.gen,F=R.schemaEnv,O=R.schema,A=R.errSchemaPath,_=R.opts,M=O.$comment;if(_.$comment===!0)q.code((0,s._)($4||($4=st(["",".logger.log(",")"])),c.default.self,M));else if(typeof _.$comment=="function"){var P=(0,s.str)(C4||(C4=st(["","/$comment"])),A),D=q.scopeValue("root",{ref:F.root});q.code((0,s._)(E4||(E4=st(["",".opts.$comment(",", ",", ",".schema)"])),c.default.self,M,P,D))}}function w(R,q,F,O){var A=R.gen,_=R.schema,M=R.data,P=R.allErrors,D=R.opts,T=R.self.RULES;function H(I){(0,n.shouldUseGroup)(_,I)&&(I.type?(A.if((0,r.checkDataType)(I.type,M,D.strictNumbers)),x(R,I),q.length===1&&q[0]===I.type&&F&&(A.else(),(0,r.reportTypeError)(R)),A.endIf()):x(R,I),P||A.if((0,s._)(I4||(I4=st([""," === ",""])),c.default.errors,O||0)))}!_.$ref||!D.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(_,T)?(D.jtd||function(I,ft){I.schemaEnv.meta||!I.opts.strictTypes||(function(tt,yt){if(yt.length){if(!tt.dataTypes.length)return void(tt.dataTypes=yt);yt.forEach(function(bt){j(tt.dataTypes,bt)||S(tt,'type "'.concat(bt,'" not allowed by context "').concat(tt.dataTypes.join(","),'"'))}),function(bt,jt){var gt,Y=[],J=ht(bt.dataTypes);try{for(J.s();!(gt=J.n()).done;){var it=gt.value;j(jt,it)?Y.push(it):jt.includes("integer")&&it==="number"&&Y.push("integer")}}catch(X){J.e(X)}finally{J.f()}bt.dataTypes=Y}(tt,yt)}}(I,ft),I.opts.allowUnionTypes||function(tt,yt){yt.length>1&&(yt.length!==2||!yt.includes("null"))&&S(tt,"use allowUnionTypes to allow union type keyword")}(I,ft),function(tt,yt){var bt=tt.self.RULES.all;for(var jt in bt){var gt=bt[jt];if(ce(gt)=="object"&&(0,n.shouldUseRule)(tt.schema,gt)){var Y=gt.definition.type;Y.length&&!Y.some(function(J){return k(yt,J)})&&S(tt,'missing type "'.concat(Y.join(","),'" for keyword "').concat(jt,'"'))}}}(I,I.dataTypes))}(R,q),A.block(function(){var I,ft=ht(T.rules);try{for(ft.s();!(I=ft.n()).done;)H(I.value)}catch(tt){ft.e(tt)}finally{ft.f()}H(T.post)})):A.block(function(){return C(R,"$ref",T.all.$ref.definition)})}function x(R,q){var F=R.gen,O=R.schema;R.opts.useDefaults&&(0,o.assignDefaults)(R,q.type),F.block(function(){var A,_=ht(q.rules);try{for(_.s();!(A=_.n()).done;){var M=A.value;(0,n.shouldUseRule)(O,M)&&C(R,M.keyword,M.definition,q.type)}}catch(P){_.e(P)}finally{_.f()}})}function k(R,q){return R.includes(q)||q==="number"&&R.includes("integer")}function j(R,q){return R.includes(q)||q==="integer"&&R.includes("number")}function S(R,q){var F=R.schemaEnv.baseId+R.errSchemaPath;q+=' at "'.concat(F,'" (strictTypes)'),(0,l.checkStrictMode)(R,q,R.opts.strictTypes)}js.validateFunctionCode=function(R){m(R)&&(g(R),v(R))?function(q){var F=q.schema,O=q.opts,A=q.gen;d(q,function(){O.$comment&&F.$comment&&b(q),function(_){var M=_.schema,P=_.opts;M.default!==void 0&&P.useDefaults&&P.strictSchema&&(0,l.checkStrictMode)(_,"default is ignored in the schema root")}(q),A.let(c.default.vErrors,null),A.let(c.default.errors,0),O.unevaluated&&function(_){var M=_.gen,P=_.validateName;_.evaluated=M.const("evaluated",(0,s._)(g4||(g4=st(["",".evaluated"])),P)),M.if((0,s._)(y4||(y4=st(["",".dynamicProps"])),_.evaluated),function(){return M.assign((0,s._)(b4||(b4=st(["",".props"])),_.evaluated),(0,s._)(w4||(w4=st(["undefined"]))))}),M.if((0,s._)(x4||(x4=st(["",".dynamicItems"])),_.evaluated),function(){return M.assign((0,s._)(k4||(k4=st(["",".items"])),_.evaluated),(0,s._)(j4||(j4=st(["undefined"]))))})}(q),y(q),function(_){var M=_.gen,P=_.schemaEnv,D=_.validateName,T=_.ValidationError,H=_.opts;P.$async?M.if((0,s._)(O4||(O4=st([""," === 0"])),c.default.errors),function(){return M.return(c.default.data)},function(){return M.throw((0,s._)(M4||(M4=st(["new ","(",")"])),T,c.default.vErrors))}):(M.assign((0,s._)(A4||(A4=st(["",".errors"])),D),c.default.vErrors),H.unevaluated&&function(I){var ft=I.gen,tt=I.evaluated,yt=I.props,bt=I.items;yt instanceof s.Name&&ft.assign((0,s._)(T4||(T4=st(["",".props"])),tt),yt),bt instanceof s.Name&&ft.assign((0,s._)(R4||(R4=st(["",".items"])),tt),bt)}(_),M.return((0,s._)(P4||(P4=st([""," === 0"])),c.default.errors)))}(q)})}(R):d(R,function(){return(0,e.topBoolOrEmptySchema)(R)})};var N=function(){function R(q,F,O){if(rt(this,R),(0,i.validateKeywordUsage)(q,F,O),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=O,this.data=q.data,this.schema=q.schema[O],this.$data=F.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(q,this.schema,O,this.$data),this.schemaType=F.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=F,this.$data)this.schemaCode=q.gen.const("vSchema",K(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,F.schemaType,F.allowUndefined))throw new Error("".concat(O," value must be ").concat(JSON.stringify(F.schemaType)));("code"in F?F.trackErrors:F.errors!==!1)&&(this.errsCount=q.gen.const("_errs",c.default.errors))}return ot(R,[{key:"result",value:function(q,F,O){this.failResult((0,s.not)(q),F,O)}},{key:"failResult",value:function(q,F,O){this.gen.if(q),O?O():this.error(),F?(this.gen.else(),F(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(q,F){this.failResult((0,s.not)(q),void 0,F)}},{key:"fail",value:function(q){if(q===void 0)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(q){if(!this.$data)return this.fail(q);var F=this.schemaCode;this.fail((0,s._)(N4||(N4=st([""," !== undefined && (",")"])),F,(0,s.or)(this.invalid$data(),q)))}},{key:"error",value:function(q,F,O){if(F)return this.setParams(F),this._error(q,O),void this.setParams({});this._error(q,O)}},{key:"_error",value:function(q,F){(q?f.reportExtraError:f.reportError)(this,this.def.error,F)}},{key:"$dataError",value:function(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}},{key:"reset",value:function(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(q){this.allErrors||this.gen.if(q)}},{key:"setParams",value:function(q,F){F?Object.assign(this.params,q):this.params=q}},{key:"block$data",value:function(q,F){var O=this,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.nil;this.gen.block(function(){O.check$data(q,A),F()})}},{key:"check$data",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.nil,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.nil;if(this.$data){var O=this.gen,A=this.schemaCode,_=this.schemaType,M=this.def;O.if((0,s.or)((0,s._)(D4||(D4=st([""," === undefined"])),A),F)),q!==s.nil&&O.assign(q,!0),(_.length||M.validateSchema)&&(O.elseIf(this.invalid$data()),this.$dataError(),q!==s.nil&&O.assign(q,!1)),O.else()}}},{key:"invalid$data",value:function(){var q=this.gen,F=this.schemaCode,O=this.schemaType,A=this.def,_=this.it;return(0,s.or)(function(){if(O.length){if(!(F instanceof s.Name))throw new Error("ajv implementation error");var M=Array.isArray(O)?O:[O];return(0,s._)(z4||(z4=st(["",""])),(0,r.checkDataTypes)(M,F,_.opts.strictNumbers,r.DataType.Wrong))}return s.nil}(),function(){if(A.validateSchema){var M=q.scopeValue("validate$data",{ref:A.validateSchema});return(0,s._)(L4||(L4=st(["!","(",")"])),M,F)}return s.nil}())}},{key:"subschema",value:function(q,F){var O=(0,a.getSubschema)(this.it,q);(0,a.extendSubschemaData)(O,this.it,q),(0,a.extendSubschemaMode)(O,q);var A=xt(xt(xt({},this.it),O),{},{items:void 0,props:void 0});return p(A,F),A}},{key:"mergeEvaluated",value:function(q,F){var O=this.it,A=this.gen;O.opts.unevaluated&&(O.props!==!0&&q.props!==void 0&&(O.props=l.mergeEvaluated.props(A,q.props,O.props,F)),O.items!==!0&&q.items!==void 0&&(O.items=l.mergeEvaluated.items(A,q.items,O.items,F)))}},{key:"mergeValidEvaluated",value:function(q,F){var O=this,A=this.it,_=this.gen;if(A.opts.unevaluated&&(A.props!==!0||A.items!==!0))return _.if(F,function(){return O.mergeEvaluated(q,s.Name)}),!0}}]),R}();function C(R,q,F,O){var A=new N(R,F,q);"code"in F?F.code(A,O):A.$data&&F.validate?(0,i.funcKeywordCode)(A,F):"macro"in F?(0,i.macroKeywordCode)(A,F):(F.compile||F.validate)&&(0,i.funcKeywordCode)(A,F)}js.KeywordCxt=N;var $=/^\/(?:[^~]|~0|~1)*$/,B=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function K(R,q){var F,O,A=q.dataLevel,_=q.dataNames,M=q.dataPathArr;if(R==="")return c.default.rootData;if(R[0]==="/"){if(!$.test(R))throw new Error("Invalid JSON-pointer: ".concat(R));F=R,O=c.default.rootData}else{var P=B.exec(R);if(!P)throw new Error("Invalid JSON-pointer: ".concat(R));var D=+P[1];if((F=P[2])==="#"){if(D>=A)throw new Error(tt("property/index",D));return M[A-D]}if(D>A)throw new Error(tt("data",D));if(O=_[A-D],!F)return O}var T,H=O,I=ht(F.split("/"));try{for(I.s();!(T=I.n()).done;){var ft=T.value;ft&&(O=(0,s._)(B4||(B4=st(["","",""])),O,(0,s.getProperty)((0,l.unescapeJsonPointer)(ft))),H=(0,s._)(F4||(F4=st([""," && ",""])),H,O))}}catch(yt){I.e(yt)}finally{I.f()}return H;function tt(yt,bt){return"Cannot access ".concat(yt," ").concat(bt," levels up, current level is ").concat(A)}}return js.getData=K,js}yo.getSchemaRefs=function(e,t){var n=this;if(typeof e=="boolean")return{};var r=this.opts,o=r.schemaId,i=r.uriResolver,a=hf(e[o]||t),s={"":a},c=IH(i,a,!1),u={},l=new Set;return cxt(e,{allKeys:!0},function(h,p,v,m){if(m!==void 0){var g=c+p,y=s[m];typeof h[o]=="string"&&(y=b.call(n,h[o])),w.call(n,h.$anchor),w.call(n,h.$dynamicAnchor),s[p]=y}function b(x){var k=this.opts.uriResolver.resolve;if(x=hf(y?k(y,x):x),l.has(x))throw d(x);l.add(x);var j=this.refs[x];return typeof j=="string"&&(j=this.refs[j]),ce(j)=="object"?f(h,j.schema,x):x!==hf(g)&&(x[0]==="#"?(f(h,u[x],x),u[x]=h):this.refs[x]=g),x}function w(x){if(typeof x=="string"){if(!dxt.test(x))throw new Error('invalid anchor "'.concat(x,'"'));b.call(this,"#".concat(x))}}}),u;function f(h,p,v){if(p!==void 0&&!sxt(h,p))throw d(v)}function d(h){return new Error('reference "'.concat(h,'" resolves to more than one schema'))}};var o9,Qv={};function t_(){if(o9)return Qv;o9=1,Object.defineProperty(Qv,"__esModule",{value:!0});var e=function(t){Tt(r,jf(Error));var n=Rt(r);function r(o){var i;return rt(this,r),(i=n.call(this,"validation failed")).errors=o,i.ajv=i.validation=!0,i}return ot(r)}();return Qv.default=e,Qv}var i9,Yv={};function e_(){if(i9)return Yv;i9=1,Object.defineProperty(Yv,"__esModule",{value:!0});var e=yo,t=function(n){Tt(o,jf(Error));var r=Rt(o);function o(i,a,s,c){var u;return rt(this,o),(u=r.call(this,c||"can't resolve reference ".concat(s," from id ").concat(a))).missingRef=(0,e.resolveUrl)(i,a,s),u.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,u.missingRef)),u}return ot(o)}();return Yv.default=t,Yv}var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.resolveSchema=Zo.getCompilingSchema=Zo.resolveRef=Zo.compileSchema=Zo.SchemaEnv=void 0;var ra=jn(),hxt=t_(),gu=Zc(),va=yo,a9=Rn,pxt=v1(),t0=ot(function e(t){var n,r;rt(this,e),this.refs={},this.dynamicAnchors={},ce(t.schema)=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,va.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}});function n_(e){var t=DH.call(this,e);if(t)return t;var n,r=(0,va.getFullPath)(this.opts.uriResolver,e.root.baseId),o=this.opts.code,i=o.es5,a=o.lines,s=this.opts.ownProperties,c=new ra.CodeGen(this.scope,{es5:i,lines:a,ownProperties:s});e.$async&&(n=c.scopeValue("Error",{ref:hxt.default,code:(0,ra._)(q4||(q4=st(['require("ajv/dist/runtime/validation_error").default'])))}));var u=c.scopeName("validate");e.validateName=u;var l,f={gen:c,allErrors:this.opts.allErrors,data:gu.default.data,parentData:gu.default.parentData,parentDataProperty:gu.default.parentDataProperty,dataNames:[gu.default.data],dataPathArr:[ra.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ra.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:n,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ra.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ra._)(H4||(H4=st(['""']))),opts:this.opts,self:this};try{this._compilations.add(e),(0,pxt.validateFunctionCode)(f),c.optimize(this.opts.code.optimize);var d=c.toString();l="".concat(c.scopeRefs(gu.default.scope),"return ").concat(d),this.opts.code.process&&(l=this.opts.code.process(l,e));var h=new Function("".concat(gu.default.self),"".concat(gu.default.scope),l)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:d,scopeValues:c._values}),this.opts.unevaluated){var p=f.props,v=f.items;h.evaluated={props:p instanceof ra.Name?void 0:p,items:v instanceof ra.Name?void 0:v,dynamicProps:p instanceof ra.Name,dynamicItems:v instanceof ra.Name},h.source&&(h.source.evaluated=(0,ra.stringify)(h.evaluated))}return e.validate=h,e}catch(m){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),m}finally{this._compilations.delete(e)}}function vxt(e){return(0,va.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:n_.call(this,e)}function DH(e){var t,n,r,o=ht(this._compilations);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(r=e,(n=i).schema===r.schema&&n.root===r.root&&n.baseId===r.baseId)return i}}catch(a){o.e(a)}finally{o.f()}}function mxt(e,t){for(var n;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||m1.call(this,e,t)}function m1(e,t){var n=this.opts.uriResolver.parse(t),r=(0,va._getFullPath)(this.opts.uriResolver,n),o=(0,va.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return nb.call(this,n,e);var i=(0,va.normalizeId)(r),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){var s=m1.call(this,e,a);return ce(s==null?void 0:s.schema)!=="object"?void 0:nb.call(this,n,s)}if(ce(a==null?void 0:a.schema)==="object"){if(a.validate||n_.call(this,a),i===(0,va.normalizeId)(t)){var c=a.schema,u=this.opts.schemaId,l=c[u];return l&&(o=(0,va.resolveUrl)(this.opts.uriResolver,o,l)),new t0({schema:c,schemaId:u,root:e,baseId:o})}return nb.call(this,n,a)}}Zo.SchemaEnv=t0,Zo.compileSchema=n_,Zo.resolveRef=function(e,t,n){var r;n=(0,va.resolveUrl)(this.opts.uriResolver,t,n);var o=e.refs[n];if(o)return o;var i=mxt.call(this,e,n);if(i===void 0){var a=(r=e.localRefs)===null||r===void 0?void 0:r[n],s=this.opts.schemaId;a&&(i=new t0({schema:a,schemaId:s,root:e,baseId:t}))}return i!==void 0?e.refs[n]=vxt.call(this,i):void 0},Zo.getCompilingSchema=DH,Zo.resolveSchema=m1;var gxt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function nb(e,t){var n,r=t.baseId,o=t.schema,i=t.root;if(((n=e.fragment)===null||n===void 0?void 0:n[0])==="/"){var a,s,c=ht(e.fragment.slice(1).split("/"));try{for(c.s();!(a=c.n()).done;){var u=a.value;if(typeof o=="boolean")return;var l=o[(0,a9.unescapeFragment)(u)];if(l===void 0)return;var f=ce(o=l)==="object"&&o[this.opts.schemaId];!gxt.has(u)&&f&&(r=(0,va.resolveUrl)(this.opts.uriResolver,r,f))}}catch(p){c.e(p)}finally{c.f()}if(typeof o!="boolean"&&o.$ref&&!(0,a9.schemaHasRulesButRef)(o,this.RULES)){var d=(0,va.resolveUrl)(this.opts.uriResolver,r,o.$ref);s=m1.call(this,i,d)}var h=this.opts.schemaId;return(s=s||new t0({schema:o,schemaId:h,root:i,baseId:r})).schema!==s.root.schema?s:void 0}}var yxt={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},Jx={},zH={exports:{}};(function(e){function t(){for(var Q=arguments.length,at=Array(Q),vt=0;vt<Q;vt++)at[vt]=arguments[vt];if(at.length>1){at[0]=at[0].slice(0,-1);for(var ut=at.length-1,It=1;It<ut;++It)at[It]=at[It].slice(1,-1);return at[ut]=at[ut].slice(1),at.join("")}return at[0]}function n(Q){return"(?:"+Q+")"}function r(Q){return Q===void 0?"undefined":Q===null?"null":Object.prototype.toString.call(Q).split(" ").pop().split("]").shift().toLowerCase()}function o(Q){return Q.toUpperCase()}function i(Q){return Q!=null?Q instanceof Array?Q:typeof Q.length!="number"||Q.split||Q.setInterval||Q.call?[Q]:Array.prototype.slice.call(Q):[]}function a(Q,at){var vt=Q;if(at)for(var ut in at)vt[ut]=at[ut];return vt}function s(Q){var at="[A-Za-z]",vt="[0-9]",ut=t(vt,"[A-Fa-f]"),It=n(n("%[EFef]"+ut+"%"+ut+ut+"%"+ut+ut)+"|"+n("%[89A-Fa-f]"+ut+"%"+ut+ut)+"|"+n("%"+ut+ut)),ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",pe=t("[\\:\\/\\?\\#\\[\\]\\@]",ne),Xe=Q?"[\\uE000-\\uF8FF]":"[]",Fe=t(at,vt,"[\\-\\.\\_\\~]",Q?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(at+t(at,vt,"[\\+\\-\\.]")+"*"),n(n(It+"|"+t(Fe,ne,"[\\:]"))+"*");var xn=n(n("25[0-5]")+"|"+n("2[0-4]"+vt)+"|"+n("1"+vt+vt)+"|"+n("0?[1-9]"+vt)+"|0?0?"+vt),On=n(xn+"\\."+xn+"\\."+xn+"\\."+xn),ke=n(ut+"{1,4}"),gn=n(n(ke+"\\:"+ke)+"|"+On),pn=n(n(ke+"\\:")+"{6}"+gn),tr=n("\\:\\:"+n(ke+"\\:")+"{5}"+gn),yn=n(n(ke)+"?\\:\\:"+n(ke+"\\:")+"{4}"+gn),ct=n(n(n(ke+"\\:")+"{0,1}"+ke)+"?\\:\\:"+n(ke+"\\:")+"{3}"+gn),Nt=n(n(n(ke+"\\:")+"{0,2}"+ke)+"?\\:\\:"+n(ke+"\\:")+"{2}"+gn),Zt=n(n(n(ke+"\\:")+"{0,3}"+ke)+"?\\:\\:"+ke+"\\:"+gn),ae=n(n(n(ke+"\\:")+"{0,4}"+ke)+"?\\:\\:"+gn),Yt=n(n(n(ke+"\\:")+"{0,5}"+ke)+"?\\:\\:"+ke),Te=n(n(n(ke+"\\:")+"{0,6}"+ke)+"?\\:\\:"),He=n([pn,tr,yn,ct,Nt,Zt,ae,Yt,Te].join("|")),Ve=n(n(Fe+"|"+It)+"+");n("[vV]"+ut+"+\\."+t(Fe,ne,"[\\:]")+"+"),n(n(It+"|"+t(Fe,ne))+"*");var de=n(It+"|"+t(Fe,ne,"[\\:\\@]"));return n(n(It+"|"+t(Fe,ne,"[\\@]"))+"+"),n(n(de+"|"+t("[\\/\\?]",Xe))+"*"),{NOT_SCHEME:new RegExp(t("[^]",at,vt,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",Fe,ne),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",Fe,ne),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",Fe,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",Fe,ne),"g"),NOT_QUERY:new RegExp(t("[^\\%]",Fe,ne,"[\\:\\@\\/\\?]",Xe),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",Fe,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",Fe,ne),"g"),UNRESERVED:new RegExp(Fe,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",Fe,pe),"g"),PCT_ENCODED:new RegExp(It,"g"),IPV4ADDRESS:new RegExp("^("+On+")$"),IPV6ADDRESS:new RegExp("^\\[?("+He+")"+n(n("\\%25|\\%(?!"+ut+"{2})")+"("+Ve+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function Q(at,vt){var ut=[],It=!0,ne=!1,pe=void 0;try{for(var Xe,Fe=at[Symbol.iterator]();!(It=(Xe=Fe.next()).done)&&(ut.push(Xe.value),!vt||ut.length!==vt);It=!0);}catch(xn){ne=!0,pe=xn}finally{try{!It&&Fe.return&&Fe.return()}finally{if(ne)throw pe}}return ut}return function(at,vt){if(Array.isArray(at))return at;if(Symbol.iterator in Object(at))return Q(at,vt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(Q){if(Array.isArray(Q)){for(var at=0,vt=Array(Q.length);at<Q.length;at++)vt[at]=Q[at];return vt}return Array.from(Q)},d=2147483647,h=36,p=1,v=26,m=38,g=700,y=72,b=128,w="-",x=/^xn--/,k=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=h-p,C=Math.floor,$=String.fromCharCode;function B(Q){throw new RangeError(S[Q])}function K(Q,at){for(var vt=[],ut=Q.length;ut--;)vt[ut]=at(Q[ut]);return vt}function R(Q,at){var vt=Q.split("@"),ut="";return vt.length>1&&(ut=vt[0]+"@",Q=vt[1]),ut+K((Q=Q.replace(j,".")).split("."),at).join(".")}function q(Q){for(var at=[],vt=0,ut=Q.length;vt<ut;){var It=Q.charCodeAt(vt++);if(It>=55296&&It<=56319&&vt<ut){var ne=Q.charCodeAt(vt++);(64512&ne)==56320?at.push(((1023&It)<<10)+(1023&ne)+65536):(at.push(It),vt--)}else at.push(It)}return at}var F=function(Q){return String.fromCodePoint.apply(String,f(Q))},O=function(Q){return Q-48<10?Q-22:Q-65<26?Q-65:Q-97<26?Q-97:h},A=function(Q,at){return Q+22+75*(Q<26)-((at!=0)<<5)},_=function(Q,at,vt){var ut=0;for(Q=vt?C(Q/g):Q>>1,Q+=C(Q/at);Q>N*v>>1;ut+=h)Q=C(Q/N);return C(ut+(N+1)*Q/(Q+m))},M=function(Q){var at=[],vt=Q.length,ut=0,It=b,ne=y,pe=Q.lastIndexOf(w);pe<0&&(pe=0);for(var Xe=0;Xe<pe;++Xe)Q.charCodeAt(Xe)>=128&&B("not-basic"),at.push(Q.charCodeAt(Xe));for(var Fe=pe>0?pe+1:0;Fe<vt;){for(var xn=ut,On=1,ke=h;;ke+=h){Fe>=vt&&B("invalid-input");var gn=O(Q.charCodeAt(Fe++));(gn>=h||gn>C((d-ut)/On))&&B("overflow"),ut+=gn*On;var pn=ke<=ne?p:ke>=ne+v?v:ke-ne;if(gn<pn)break;var tr=h-pn;On>C(d/tr)&&B("overflow"),On*=tr}var yn=at.length+1;ne=_(ut-xn,yn,xn==0),C(ut/yn)>d-It&&B("overflow"),It+=C(ut/yn),ut%=yn,at.splice(ut++,0,It)}return String.fromCodePoint.apply(String,at)},P=function(Q){var at=[],vt=(Q=q(Q)).length,ut=b,It=0,ne=y,pe=!0,Xe=!1,Fe=void 0;try{for(var xn,On=Q[Symbol.iterator]();!(pe=(xn=On.next()).done);pe=!0){var ke=xn.value;ke<128&&at.push($(ke))}}catch(_i){Xe=!0,Fe=_i}finally{try{!pe&&On.return&&On.return()}finally{if(Xe)throw Fe}}var gn=at.length,pn=gn;for(gn&&at.push(w);pn<vt;){var tr=d,yn=!0,ct=!1,Nt=void 0;try{for(var Zt,ae=Q[Symbol.iterator]();!(yn=(Zt=ae.next()).done);yn=!0){var Yt=Zt.value;Yt>=ut&&Yt<tr&&(tr=Yt)}}catch(_i){ct=!0,Nt=_i}finally{try{!yn&&ae.return&&ae.return()}finally{if(ct)throw Nt}}var Te=pn+1;tr-ut>C((d-It)/Te)&&B("overflow"),It+=(tr-ut)*Te,ut=tr;var He=!0,Ve=!1,de=void 0;try{for(var fn,Kn=Q[Symbol.iterator]();!(He=(fn=Kn.next()).done);He=!0){var Dn=fn.value;if(Dn<ut&&++It>d&&B("overflow"),Dn==ut){for(var Nr=It,ci=h;;ci+=h){var Ta=ci<=ne?p:ci>=ne+v?v:ci-ne;if(Nr<Ta)break;var ji=Nr-Ta,Ra=h-Ta;at.push($(A(Ta+ji%Ra,0))),Nr=C(ji/Ra)}at.push($(A(Nr,0))),ne=_(It,Te,pn==gn),It=0,++pn}}}catch(_i){Ve=!0,de=_i}finally{try{!He&&Kn.return&&Kn.return()}finally{if(Ve)throw de}}++It,++ut}return at.join("")},D=function(Q){return R(Q,function(at){return x.test(at)?M(at.slice(4).toLowerCase()):at})},T=function(Q){return R(Q,function(at){return k.test(at)?"xn--"+P(at):at})},H={version:"2.1.0",ucs2:{decode:q,encode:F},decode:M,encode:P,toASCII:T,toUnicode:D},I={};function ft(Q){var at=Q.charCodeAt(0);return at<16?"%0"+at.toString(16).toUpperCase():at<128?"%"+at.toString(16).toUpperCase():at<2048?"%"+(at>>6|192).toString(16).toUpperCase()+"%"+(63&at|128).toString(16).toUpperCase():"%"+(at>>12|224).toString(16).toUpperCase()+"%"+(at>>6&63|128).toString(16).toUpperCase()+"%"+(63&at|128).toString(16).toUpperCase()}function tt(Q){for(var at="",vt=0,ut=Q.length;vt<ut;){var It=parseInt(Q.substr(vt+1,2),16);if(It<128)at+=String.fromCharCode(It),vt+=3;else if(It>=194&&It<224){if(ut-vt>=6){var ne=parseInt(Q.substr(vt+4,2),16);at+=String.fromCharCode((31&It)<<6|63&ne)}else at+=Q.substr(vt,6);vt+=6}else if(It>=224){if(ut-vt>=9){var pe=parseInt(Q.substr(vt+4,2),16),Xe=parseInt(Q.substr(vt+7,2),16);at+=String.fromCharCode((15&It)<<12|(63&pe)<<6|63&Xe)}else at+=Q.substr(vt,9);vt+=9}else at+=Q.substr(vt,3),vt+=3}return at}function yt(Q,at){function vt(ut){var It=tt(ut);return It.match(at.UNRESERVED)?It:ut}return Q.scheme&&(Q.scheme=String(Q.scheme).replace(at.PCT_ENCODED,vt).toLowerCase().replace(at.NOT_SCHEME,"")),Q.userinfo!==void 0&&(Q.userinfo=String(Q.userinfo).replace(at.PCT_ENCODED,vt).replace(at.NOT_USERINFO,ft).replace(at.PCT_ENCODED,o)),Q.host!==void 0&&(Q.host=String(Q.host).replace(at.PCT_ENCODED,vt).toLowerCase().replace(at.NOT_HOST,ft).replace(at.PCT_ENCODED,o)),Q.path!==void 0&&(Q.path=String(Q.path).replace(at.PCT_ENCODED,vt).replace(Q.scheme?at.NOT_PATH:at.NOT_PATH_NOSCHEME,ft).replace(at.PCT_ENCODED,o)),Q.query!==void 0&&(Q.query=String(Q.query).replace(at.PCT_ENCODED,vt).replace(at.NOT_QUERY,ft).replace(at.PCT_ENCODED,o)),Q.fragment!==void 0&&(Q.fragment=String(Q.fragment).replace(at.PCT_ENCODED,vt).replace(at.NOT_FRAGMENT,ft).replace(at.PCT_ENCODED,o)),Q}function bt(Q){return Q.replace(/^0*(.*)/,"$1")||"0"}function jt(Q,at){var vt=Q.match(at.IPV4ADDRESS)||[],ut=l(vt,2)[1];return ut?ut.split(".").map(bt).join("."):Q}function gt(Q,at){var vt=Q.match(at.IPV6ADDRESS)||[],ut=l(vt,3),It=ut[1],ne=ut[2];if(It){for(var pe=It.toLowerCase().split("::").reverse(),Xe=l(pe,2),Fe=Xe[0],xn=Xe[1],On=xn?xn.split(":").map(bt):[],ke=Fe.split(":").map(bt),gn=at.IPV4ADDRESS.test(ke[ke.length-1]),pn=gn?7:8,tr=ke.length-pn,yn=Array(pn),ct=0;ct<pn;++ct)yn[ct]=On[ct]||ke[tr+ct]||"";gn&&(yn[pn-1]=jt(yn[pn-1],at));var Nt=yn.reduce(function(Te,He,Ve){if(!He||He==="0"){var de=Te[Te.length-1];de&&de.index+de.length===Ve?de.length++:Te.push({index:Ve,length:1})}return Te},[]).sort(function(Te,He){return He.length-Te.length})[0],Zt=void 0;if(Nt&&Nt.length>1){var ae=yn.slice(0,Nt.index),Yt=yn.slice(Nt.index+Nt.length);Zt=ae.join(":")+"::"+Yt.join(":")}else Zt=yn.join(":");return ne&&(Zt+="%"+ne),Zt}return Q}var Y=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,J="".match(/(){0}/)[1]===void 0;function it(Q){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt={},ut=at.iri!==!1?u:c;at.reference==="suffix"&&(Q=(at.scheme?at.scheme+":":"")+"//"+Q);var It=Q.match(Y);if(It){J?(vt.scheme=It[1],vt.userinfo=It[3],vt.host=It[4],vt.port=parseInt(It[5],10),vt.path=It[6]||"",vt.query=It[7],vt.fragment=It[8],isNaN(vt.port)&&(vt.port=It[5])):(vt.scheme=It[1]||void 0,vt.userinfo=Q.indexOf("@")!==-1?It[3]:void 0,vt.host=Q.indexOf("//")!==-1?It[4]:void 0,vt.port=parseInt(It[5],10),vt.path=It[6]||"",vt.query=Q.indexOf("?")!==-1?It[7]:void 0,vt.fragment=Q.indexOf("#")!==-1?It[8]:void 0,isNaN(vt.port)&&(vt.port=Q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?It[4]:void 0)),vt.host&&(vt.host=gt(jt(vt.host,ut),ut)),vt.scheme!==void 0||vt.userinfo!==void 0||vt.host!==void 0||vt.port!==void 0||vt.path||vt.query!==void 0?vt.scheme===void 0?vt.reference="relative":vt.fragment===void 0?vt.reference="absolute":vt.reference="uri":vt.reference="same-document",at.reference&&at.reference!=="suffix"&&at.reference!==vt.reference&&(vt.error=vt.error||"URI is not a "+at.reference+" reference.");var ne=I[(at.scheme||vt.scheme||"").toLowerCase()];if(at.unicodeSupport||ne&&ne.unicodeSupport)yt(vt,ut);else{if(vt.host&&(at.domainHost||ne&&ne.domainHost))try{vt.host=H.toASCII(vt.host.replace(ut.PCT_ENCODED,tt).toLowerCase())}catch(pe){vt.error=vt.error||"Host's domain name can not be converted to ASCII via punycode: "+pe}yt(vt,c)}ne&&ne.parse&&ne.parse(vt,at)}else vt.error=vt.error||"URI can not be parsed.";return vt}function X(Q,at){var vt=at.iri!==!1?u:c,ut=[];return Q.userinfo!==void 0&&(ut.push(Q.userinfo),ut.push("@")),Q.host!==void 0&&ut.push(gt(jt(String(Q.host),vt),vt).replace(vt.IPV6ADDRESS,function(It,ne,pe){return"["+ne+(pe?"%25"+pe:"")+"]"})),typeof Q.port!="number"&&typeof Q.port!="string"||(ut.push(":"),ut.push(String(Q.port))),ut.length?ut.join(""):void 0}var _t=/^\.\.?\//,z=/^\/\.(\/|$)/,W=/^\/\.\.(\/|$)/,G=/^\/?(?:.|\n)*?(?=\/|$)/;function pt(Q){for(var at=[];Q.length;)if(Q.match(_t))Q=Q.replace(_t,"");else if(Q.match(z))Q=Q.replace(z,"/");else if(Q.match(W))Q=Q.replace(W,"/"),at.pop();else if(Q==="."||Q==="..")Q="";else{var vt=Q.match(G);if(!vt)throw new Error("Unexpected dot segment condition");var ut=vt[0];Q=Q.slice(ut.length),at.push(ut)}return at.join("")}function mt(Q){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=at.iri?u:c,ut=[],It=I[(at.scheme||Q.scheme||"").toLowerCase()];if(It&&It.serialize&&It.serialize(Q,at),Q.host&&!vt.IPV6ADDRESS.test(Q.host)){if(at.domainHost||It&&It.domainHost)try{Q.host=at.iri?H.toUnicode(Q.host):H.toASCII(Q.host.replace(vt.PCT_ENCODED,tt).toLowerCase())}catch(Xe){Q.error=Q.error||"Host's domain name can not be converted to "+(at.iri?"Unicode":"ASCII")+" via punycode: "+Xe}}yt(Q,vt),at.reference!=="suffix"&&Q.scheme&&(ut.push(Q.scheme),ut.push(":"));var ne=X(Q,at);if(ne!==void 0&&(at.reference!=="suffix"&&ut.push("//"),ut.push(ne),Q.path&&Q.path.charAt(0)!=="/"&&ut.push("/")),Q.path!==void 0){var pe=Q.path;at.absolutePath||It&&It.absolutePath||(pe=pt(pe)),ne===void 0&&(pe=pe.replace(/^\/\//,"/%2F")),ut.push(pe)}return Q.query!==void 0&&(ut.push("?"),ut.push(Q.query)),Q.fragment!==void 0&&(ut.push("#"),ut.push(Q.fragment)),ut.join("")}function Ot(Q,at){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ut={};return arguments[3]||(Q=it(mt(Q,vt),vt),at=it(mt(at,vt),vt)),!(vt=vt||{}).tolerant&&at.scheme?(ut.scheme=at.scheme,ut.userinfo=at.userinfo,ut.host=at.host,ut.port=at.port,ut.path=pt(at.path||""),ut.query=at.query):(at.userinfo!==void 0||at.host!==void 0||at.port!==void 0?(ut.userinfo=at.userinfo,ut.host=at.host,ut.port=at.port,ut.path=pt(at.path||""),ut.query=at.query):(at.path?(at.path.charAt(0)==="/"?ut.path=pt(at.path):(Q.userinfo===void 0&&Q.host===void 0&&Q.port===void 0||Q.path?Q.path?ut.path=Q.path.slice(0,Q.path.lastIndexOf("/")+1)+at.path:ut.path=at.path:ut.path="/"+at.path,ut.path=pt(ut.path)),ut.query=at.query):(ut.path=Q.path,at.query!==void 0?ut.query=at.query:ut.query=Q.query),ut.userinfo=Q.userinfo,ut.host=Q.host,ut.port=Q.port),ut.scheme=Q.scheme),ut.fragment=at.fragment,ut}function Ct(Q,at,vt){var ut=a({scheme:"null"},vt);return mt(Ot(it(Q,ut),it(at,ut),ut,!0),ut)}function Vt(Q,at){return typeof Q=="string"?Q=mt(it(Q,at),at):r(Q)==="object"&&(Q=it(mt(Q,at),at)),Q}function Qt(Q,at,vt){return typeof Q=="string"?Q=mt(it(Q,vt),vt):r(Q)==="object"&&(Q=mt(Q,vt)),typeof at=="string"?at=mt(it(at,vt),vt):r(at)==="object"&&(at=mt(at,vt)),Q===at}function ee(Q,at){return Q&&Q.toString().replace(at&&at.iri?u.ESCAPE:c.ESCAPE,ft)}function Kt(Q,at){return Q&&Q.toString().replace(at&&at.iri?u.PCT_ENCODED:c.PCT_ENCODED,tt)}var ue={scheme:"http",domainHost:!0,parse:function(Q,at){return Q.host||(Q.error=Q.error||"HTTP URIs must have a host."),Q},serialize:function(Q,at){var vt=String(Q.scheme).toLowerCase()==="https";return Q.port!==(vt?443:80)&&Q.port!==""||(Q.port=void 0),Q.path||(Q.path="/"),Q}},Me={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function tn(Q){return typeof Q.secure=="boolean"?Q.secure:String(Q.scheme).toLowerCase()==="wss"}var le={scheme:"ws",domainHost:!0,parse:function(Q,at){var vt=Q;return vt.secure=tn(vt),vt.resourceName=(vt.path||"/")+(vt.query?"?"+vt.query:""),vt.path=void 0,vt.query=void 0,vt},serialize:function(Q,at){if(Q.port!==(tn(Q)?443:80)&&Q.port!==""||(Q.port=void 0),typeof Q.secure=="boolean"&&(Q.scheme=Q.secure?"wss":"ws",Q.secure=void 0),Q.resourceName){var vt=Q.resourceName.split("?"),ut=l(vt,2),It=ut[0],ne=ut[1];Q.path=It&&It!=="/"?It:void 0,Q.query=ne,Q.resourceName=void 0}return Q.fragment=void 0,Q}},wn={scheme:"wss",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize},Ne={},mn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ye="[0-9A-Fa-f]",Ke=n(n("%[EFef]"+Ye+"%"+Ye+Ye+"%"+Ye+Ye)+"|"+n("%[89A-Fa-f]"+Ye+"%"+Ye+Ye)+"|"+n("%"+Ye+Ye)),qn="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",In=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Zn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Sn=new RegExp(mn,"g"),En=new RegExp(Ke,"g"),Nn=new RegExp(t("[^]",qn,"[\\.]",'[\\"]',In),"g"),sr=new RegExp(t("[^]",mn,Zn),"g"),Pr=sr;function Et(Q){var at=tt(Q);return at.match(Sn)?at:Q}var ie={scheme:"mailto",parse:function(Q,at){var vt=Q,ut=vt.to=vt.path?vt.path.split(","):[];if(vt.path=void 0,vt.query){for(var It=!1,ne={},pe=vt.query.split("&"),Xe=0,Fe=pe.length;Xe<Fe;++Xe){var xn=pe[Xe].split("=");switch(xn[0]){case"to":for(var On=xn[1].split(","),ke=0,gn=On.length;ke<gn;++ke)ut.push(On[ke]);break;case"subject":vt.subject=Kt(xn[1],at);break;case"body":vt.body=Kt(xn[1],at);break;default:It=!0,ne[Kt(xn[0],at)]=Kt(xn[1],at)}}It&&(vt.headers=ne)}vt.query=void 0;for(var pn=0,tr=ut.length;pn<tr;++pn){var yn=ut[pn].split("@");if(yn[0]=Kt(yn[0]),at.unicodeSupport)yn[1]=Kt(yn[1],at).toLowerCase();else try{yn[1]=H.toASCII(Kt(yn[1],at).toLowerCase())}catch(ct){vt.error=vt.error||"Email address's domain name can not be converted to ASCII via punycode: "+ct}ut[pn]=yn.join("@")}return vt},serialize:function(Q,at){var vt=Q,ut=i(Q.to);if(ut){for(var It=0,ne=ut.length;It<ne;++It){var pe=String(ut[It]),Xe=pe.lastIndexOf("@"),Fe=pe.slice(0,Xe).replace(En,Et).replace(En,o).replace(Nn,ft),xn=pe.slice(Xe+1);try{xn=at.iri?H.toUnicode(xn):H.toASCII(Kt(xn,at).toLowerCase())}catch(pn){vt.error=vt.error||"Email address's domain name can not be converted to "+(at.iri?"Unicode":"ASCII")+" via punycode: "+pn}ut[It]=Fe+"@"+xn}vt.path=ut.join(",")}var On=Q.headers=Q.headers||{};Q.subject&&(On.subject=Q.subject),Q.body&&(On.body=Q.body);var ke=[];for(var gn in On)On[gn]!==Ne[gn]&&ke.push(gn.replace(En,Et).replace(En,o).replace(sr,ft)+"="+On[gn].replace(En,Et).replace(En,o).replace(Pr,ft));return ke.length&&(vt.query=ke.join("&")),vt}},Be=/^([^\:]+)\:(.*)/,en={scheme:"urn",parse:function(Q,at){var vt=Q.path&&Q.path.match(Be),ut=Q;if(vt){var It=at.scheme||ut.scheme||"urn",ne=vt[1].toLowerCase(),pe=vt[2],Xe=It+":"+(at.nid||ne),Fe=I[Xe];ut.nid=ne,ut.nss=pe,ut.path=void 0,Fe&&(ut=Fe.parse(ut,at))}else ut.error=ut.error||"URN can not be parsed.";return ut},serialize:function(Q,at){var vt=at.scheme||Q.scheme||"urn",ut=Q.nid,It=vt+":"+(at.nid||ut),ne=I[It];ne&&(Q=ne.serialize(Q,at));var pe=Q,Xe=Q.nss;return pe.path=(ut||at.nid)+":"+Xe,pe}},$t=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Xt={scheme:"urn:uuid",parse:function(Q,at){var vt=Q;return vt.uuid=vt.nss,vt.nss=void 0,at.tolerant||vt.uuid&&vt.uuid.match($t)||(vt.error=vt.error||"UUID is not valid."),vt},serialize:function(Q,at){var vt=Q;return vt.nss=(Q.uuid||"").toLowerCase(),vt}};I[ue.scheme]=ue,I[Me.scheme]=Me,I[le.scheme]=le,I[wn.scheme]=wn,I[ie.scheme]=ie,I[en.scheme]=en,I[Xt.scheme]=Xt,e.SCHEMES=I,e.pctEncChar=ft,e.pctDecChars=tt,e.parse=it,e.removeDotSegments=pt,e.serialize=mt,e.resolveComponents=Ot,e.resolve=Ct,e.normalize=Vt,e.equal=Qt,e.escapeComponent=ee,e.unescapeComponent=Kt,Object.defineProperty(e,"__esModule",{value:!0})})(zH.exports);var bxt=zH.exports;Object.defineProperty(Jx,"__esModule",{value:!0});var s9=bxt;s9.code='require("ajv/dist/runtime/uri").default',Jx.default=s9,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=v1();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=jn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});var r=t_(),o=e_(),i=Hu,a=Zo,s=jn(),c=yo,u=sp,l=Rn,f=yxt,d=Jx,h=function(O,A){return new RegExp(O,A)};h.code="new RegExp";var p=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=function(){function O(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(this,O),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,A=this.opts=xt(xt({},A),function(T){var H,I,ft,tt,yt,bt,jt,gt,Y,J,it,X,_t,z,W,G,pt,mt,Ot,Ct,Vt,Qt,ee,Kt,ue,Me=T.strict,tn=(H=T.code)===null||H===void 0?void 0:H.optimize,le=tn===!0||tn===void 0?1:tn||0,wn=(ft=(I=T.code)===null||I===void 0?void 0:I.regExp)!==null&&ft!==void 0?ft:h,Ne=(tt=T.uriResolver)!==null&&tt!==void 0?tt:d.default;return{strictSchema:(bt=(yt=T.strictSchema)!==null&&yt!==void 0?yt:Me)===null||bt===void 0||bt,strictNumbers:(gt=(jt=T.strictNumbers)!==null&&jt!==void 0?jt:Me)===null||gt===void 0||gt,strictTypes:(J=(Y=T.strictTypes)!==null&&Y!==void 0?Y:Me)!==null&&J!==void 0?J:"log",strictTuples:(X=(it=T.strictTuples)!==null&&it!==void 0?it:Me)!==null&&X!==void 0?X:"log",strictRequired:(z=(_t=T.strictRequired)!==null&&_t!==void 0?_t:Me)!==null&&z!==void 0&&z,code:T.code?xt(xt({},T.code),{},{optimize:le,regExp:wn}):{optimize:le,regExp:wn},loopRequired:(W=T.loopRequired)!==null&&W!==void 0?W:200,loopEnum:(G=T.loopEnum)!==null&&G!==void 0?G:200,meta:(pt=T.meta)===null||pt===void 0||pt,messages:(mt=T.messages)===null||mt===void 0||mt,inlineRefs:(Ot=T.inlineRefs)===null||Ot===void 0||Ot,schemaId:(Ct=T.schemaId)!==null&&Ct!==void 0?Ct:"$id",addUsedSchema:(Vt=T.addUsedSchema)===null||Vt===void 0||Vt,validateSchema:(Qt=T.validateSchema)===null||Qt===void 0||Qt,validateFormats:(ee=T.validateFormats)===null||ee===void 0||ee,unicodeRegExp:(Kt=T.unicodeRegExp)===null||Kt===void 0||Kt,int32range:(ue=T.int32range)===null||ue===void 0||ue,uriResolver:Ne}}(A));var _=this.opts.code,M=_.es5,P=_.lines;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:M,lines:P}),this.logger=function(T){if(T===!1)return N;if(T===void 0)return console;if(T.log&&T.warn&&T.error)return T;throw new Error("logger must implement log, warn and error methods")}(A.logger);var D=A.validateFormats;A.validateFormats=!1,this.RULES=(0,i.getRules)(),b.call(this,m,A,"NOT SUPPORTED"),b.call(this,g,A,"DEPRECATED","warn"),this._metaOpts=S.call(this),A.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),A.keywords&&j.call(this,A.keywords),ce(A.meta)=="object"&&this.addMetaSchema(A.meta),x.call(this),A.validateFormats=D}return ot(O,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var A=this.opts,_=A.$data,M=A.meta,P=A.schemaId,D=f;P==="id"&&((D=xt({},f)).id=D.$id,delete D.$id),M&&_&&this.addMetaSchema(D,D[P],!1)}},{key:"defaultMeta",value:function(){var A=this.opts,_=A.meta,M=A.schemaId;return this.opts.defaultMeta=ce(_)=="object"?_[M]||_:void 0}},{key:"validate",value:function(A,_){var M;if(typeof A=="string"){if(!(M=this.getSchema(A)))throw new Error('no schema with key or ref "'.concat(A,'"'))}else M=this.compile(A);var P=M(_);return"$async"in M||(this.errors=M.errors),P}},{key:"compile",value:function(A,_){var M=this._addSchema(A,_);return M.validate||this._compileSchemaEnv(M)}},{key:"compileAsync",value:function(A,_){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");var M=this.opts.loadSchema;return P.call(this,A,_);function P(Y,J){return D.apply(this,arguments)}function D(){return(D=Ae(qt().mark(function Y(J,it){var X;return qt().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,T.call(this,J.$schema);case 2:return X=this._addSchema(J,it),_t.abrupt("return",X.validate||I.call(this,X));case 4:case"end":return _t.stop()}},Y,this)}))).apply(this,arguments)}function T(Y){return H.apply(this,arguments)}function H(){return(H=Ae(qt().mark(function Y(J){return qt().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(!J||this.getSchema(J)){it.next=3;break}return it.next=3,P.call(this,{$ref:J},!0);case 3:case"end":return it.stop()}},Y,this)}))).apply(this,arguments)}function I(Y){return ft.apply(this,arguments)}function ft(){return(ft=Ae(qt().mark(function Y(J){return qt().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.prev=0,it.abrupt("return",this._compileSchemaEnv(J));case 4:if(it.prev=4,it.t0=it.catch(0),it.t0 instanceof o.default){it.next=8;break}throw it.t0;case 8:return tt.call(this,it.t0),it.next=11,yt.call(this,it.t0.missingSchema);case 11:return it.abrupt("return",I.call(this,J));case 12:case"end":return it.stop()}},Y,this,[[0,4]])}))).apply(this,arguments)}function tt(Y){var J=Y.missingSchema,it=Y.missingRef;if(this.refs[J])throw new Error("AnySchema ".concat(J," is loaded but ").concat(it," cannot be resolved"))}function yt(Y){return bt.apply(this,arguments)}function bt(){return bt=Ae(qt().mark(function Y(J){var it;return qt().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,jt.call(this,J);case 2:if(it=X.sent,this.refs[J]){X.next=6;break}return X.next=6,T.call(this,it.$schema);case 6:this.refs[J]||this.addSchema(it,J,_);case 7:case"end":return X.stop()}},Y,this)})),bt.apply(this,arguments)}function jt(Y){return gt.apply(this,arguments)}function gt(){return gt=Ae(qt().mark(function Y(J){var it;return qt().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(it=this._loading[J])){X.next=3;break}return X.abrupt("return",it);case 3:return X.prev=3,X.next=6,this._loading[J]=M(J);case 6:return X.abrupt("return",X.sent);case 7:return X.prev=7,delete this._loading[J],X.finish(7);case 10:case"end":return X.stop()}},Y,this,[[3,,7,10]])})),gt.apply(this,arguments)}}},{key:"addSchema",value:function(A,_,M){var P,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.opts.validateSchema;if(Array.isArray(A)){var T,H=ht(A);try{for(H.s();!(T=H.n()).done;){var I=T.value;this.addSchema(I,void 0,M,D)}}catch(tt){H.e(tt)}finally{H.f()}return this}if(ce(A)==="object"){var ft=this.opts.schemaId;if((P=A[ft])!==void 0&&typeof P!="string")throw new Error("schema ".concat(ft," must be string"))}return _=(0,c.normalizeId)(_||P),this._checkUnique(_),this.schemas[_]=this._addSchema(A,M,_,D,!0),this}},{key:"addMetaSchema",value:function(A,_){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.opts.validateSchema;return this.addSchema(A,_,!0,M),this}},{key:"validateSchema",value:function(A,_){if(typeof A=="boolean")return!0;var M;if((M=A.$schema)!==void 0&&typeof M!="string")throw new Error("$schema must be a string");if(!(M=M||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var P=this.validate(M,A);if(!P&&_){var D="schema is invalid: "+this.errorsText();if(this.opts.validateSchema!=="log")throw new Error(D);this.logger.error(D)}return P}},{key:"getSchema",value:function(A){for(var _;typeof(_=w.call(this,A))=="string";)A=_;if(_===void 0){var M=this.opts.schemaId,P=new a.SchemaEnv({schema:{},schemaId:M});if(!(_=a.resolveSchema.call(this,P,A)))return;this.refs[A]=_}return _.validate||this._compileSchemaEnv(_)}},{key:"removeSchema",value:function(A){if(A instanceof RegExp)return this._removeAllSchemas(this.schemas,A),this._removeAllSchemas(this.refs,A),this;switch(ce(A)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var _=w.call(this,A);return ce(_)=="object"&&this._cache.delete(_.schema),delete this.schemas[A],delete this.refs[A],this;case"object":var M=A;this._cache.delete(M);var P=A[this.opts.schemaId];return P&&(P=(0,c.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(A){var _,M=ht(A);try{for(M.s();!(_=M.n()).done;){var P=_.value;this.addKeyword(P)}}catch(D){M.e(D)}finally{M.f()}return this}},{key:"addKeyword",value:function(A,_){var M,P=this;if(typeof A=="string")M=A,ce(_)=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),_.keyword=M);else{if(ce(A)!="object"||_!==void 0)throw new Error("invalid addKeywords parameters");if(M=(_=A).keyword,Array.isArray(M)&&!M.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if($.call(this,M,_),!_)return(0,l.eachItem)(M,function(T){return B.call(P,T)}),this;R.call(this,_);var D=xt(xt({},_),{},{type:(0,u.getJSONTypes)(_.type),schemaType:(0,u.getJSONTypes)(_.schemaType)});return(0,l.eachItem)(M,D.type.length===0?function(T){return B.call(P,T,D)}:function(T){return D.type.forEach(function(H){return B.call(P,T,D,H)})}),this}},{key:"getKeyword",value:function(A){var _=this.RULES.all[A];return ce(_)=="object"?_.definition:!!_}},{key:"removeKeyword",value:function(A){var _=this.RULES;delete _.keywords[A],delete _.all[A];var M,P=ht(_.rules);try{for(P.s();!(M=P.n()).done;){var D=M.value,T=D.rules.findIndex(function(H){return H.keyword===A});T>=0&&D.rules.splice(T,1)}}catch(H){P.e(H)}finally{P.f()}return this}},{key:"addFormat",value:function(A,_){return typeof _=="string"&&(_=new RegExp(_)),this.formats[A]=_,this}},{key:"errorsText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.errors,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=_.separator,P=M===void 0?", ":M,D=_.dataVar,T=D===void 0?"data":D;return A&&A.length!==0?A.map(function(H){return"".concat(T).concat(H.instancePath," ").concat(H.message)}).reduce(function(H,I){return H+P+I}):"No errors"}},{key:"$dataMetaSchema",value:function(A,_){var M=this.RULES.all;A=JSON.parse(JSON.stringify(A));var P,D=ht(_);try{for(D.s();!(P=D.n()).done;){var T,H=P.value.split("/").slice(1),I=A,ft=ht(H);try{for(ft.s();!(T=ft.n()).done;)I=I[T.value]}catch(gt){ft.e(gt)}finally{ft.f()}for(var tt in M){var yt=M[tt];if(ce(yt)=="object"){var bt=yt.definition.$data,jt=I[tt];bt&&jt&&(I[tt]=F(jt))}}}}catch(gt){D.e(gt)}finally{D.f()}return A}},{key:"_removeAllSchemas",value:function(A,_){for(var M in A){var P=A[M];_&&!_.test(M)||(typeof P=="string"?delete A[M]:P&&!P.meta&&(this._cache.delete(P.schema),delete A[M]))}}},{key:"_addSchema",value:function(A,_,M){var P,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.opts.validateSchema,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.opts.addUsedSchema,H=this.opts.schemaId;if(ce(A)=="object")P=A[H];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof A!="boolean")throw new Error("schema must be object or boolean")}var I=this._cache.get(A);if(I!==void 0)return I;M=(0,c.normalizeId)(P||M);var ft=c.getSchemaRefs.call(this,A,M);return I=new a.SchemaEnv({schema:A,schemaId:H,meta:_,baseId:M,localRefs:ft}),this._cache.set(I.schema,I),T&&!M.startsWith("#")&&(M&&this._checkUnique(M),this.refs[M]=I),D&&this.validateSchema(A,!0),I}},{key:"_checkUnique",value:function(A){if(this.schemas[A]||this.refs[A])throw new Error('schema with key or id "'.concat(A,'" already exists'))}},{key:"_compileSchemaEnv",value:function(A){if(A.meta?this._compileMetaSchema(A):a.compileSchema.call(this,A),!A.validate)throw new Error("ajv implementation error");return A.validate}},{key:"_compileMetaSchema",value:function(A){var _=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,A)}finally{this.opts=_}}}]),O}();function b(O,A,_){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"error";for(var P in O){var D=P;D in A&&this.logger[M]("".concat(_,": option ").concat(P,". ").concat(O[D]))}}function w(O){return O=(0,c.normalizeId)(O),this.schemas[O]||this.refs[O]}function x(){var O=this.opts.schemas;if(O)if(Array.isArray(O))this.addSchema(O);else for(var A in O)this.addSchema(O[A],A)}function k(){for(var O in this.opts.formats){var A=this.opts.formats[O];A&&this.addFormat(O,A)}}function j(O){if(Array.isArray(O))this.addVocabulary(O);else for(var A in this.logger.warn("keywords option as map is deprecated, pass array"),O){var _=O[A];_.keyword||(_.keyword=A),this.addKeyword(_)}}function S(){var O,A=xt({},this.opts),_=ht(p);try{for(_.s();!(O=_.n()).done;)delete A[O.value]}catch(M){_.e(M)}finally{_.f()}return A}e.default=y,y.ValidationError=r.default,y.MissingRefError=o.default;var N={log:function(){},warn:function(){},error:function(){}},C=/^[a-z_$][a-z0-9_$:-]*$/i;function $(O,A){var _=this.RULES;if((0,l.eachItem)(O,function(M){if(_.keywords[M])throw new Error("Keyword ".concat(M," is already defined"));if(!C.test(M))throw new Error("Keyword ".concat(M," has invalid name"))}),A&&A.$data&&!("code"in A)&&!("validate"in A))throw new Error('$data keyword must have "code" or "validate" function')}function B(O,A,_){var M,P=this,D=A==null?void 0:A.post;if(_&&D)throw new Error('keyword with "post" flag cannot have "type"');var T=this.RULES,H=D?T.post:T.rules.find(function(ft){return ft.type===_});if(H||(H={type:_,rules:[]},T.rules.push(H)),T.keywords[O]=!0,A){var I={keyword:O,definition:xt(xt({},A),{},{type:(0,u.getJSONTypes)(A.type),schemaType:(0,u.getJSONTypes)(A.schemaType)})};A.before?K.call(this,H,I,A.before):H.rules.push(I),T.all[O]=I,(M=A.implements)===null||M===void 0||M.forEach(function(ft){return P.addKeyword(ft)})}}function K(O,A,_){var M=O.rules.findIndex(function(P){return P.keyword===_});M>=0?O.rules.splice(M,0,A):(O.rules.push(A),this.logger.warn("rule ".concat(_," is not defined")))}function R(O){var A=O.metaSchema;A!==void 0&&(O.$data&&this.opts.$data&&(A=F(A)),O.validateSchema=this.compile(A,!0))}var q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function F(O){return{anyOf:[O,q]}}}(MH);var r_={},o_={},i_={};Object.defineProperty(i_,"__esModule",{value:!0});var wxt={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};i_.default=wxt;var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.callRef=Vu.getValidate=void 0;var xxt=e_(),c9=Pa(),Xo=jn(),jl=Zc(),u9=Zo,Xv=Rn,kxt={keyword:"$ref",schemaType:"string",code:function(e){var t=e.gen,n=e.schema,r=e.it,o=r.baseId,i=r.schemaEnv,a=r.validateName,s=r.opts,c=r.self,u=i.root;if((n==="#"||n==="#/")&&o===u.baseId)return function(){if(i===u)return Dm(e,a,i,i.$async);var v=t.scopeValue("root",{ref:u});return Dm(e,(0,Xo._)(V4||(V4=st(["",".validate"])),v),u,u.$async)}();var l,f,d,h,p=u9.resolveRef.call(c,u,o,n);if(p===void 0)throw new xxt.default(r.opts.uriResolver,o,n);return p instanceof u9.SchemaEnv?function(v){var m=LH(e,v);Dm(e,m,v,v.$async)}(p):(l=p,f=t.scopeValue("schema",s.code.source===!0?{ref:l,code:(0,Xo.stringify)(l)}:{ref:l}),d=t.name("valid"),h=e.subschema({schema:l,dataTypes:[],schemaPath:Xo.nil,topSchemaRef:f,errSchemaPath:n},d),e.mergeEvaluated(h),void e.ok(d))}};function LH(e,t){var n=e.gen;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,Xo._)(U4||(U4=st(["",".validate"])),n.scopeValue("wrapper",{ref:t}))}function Dm(e,t,n,r){var o=e.gen,i=e.it,a=i.allErrors,s=i.schemaEnv,c=i.opts.passContext?jl.default.this:Xo.nil;function u(f){var d=(0,Xo._)(J4||(J4=st(["",".errors"])),f);o.assign(jl.default.vErrors,(0,Xo._)(G4||(G4=st([""," === null ? "," : ",".concat(",")"])),jl.default.vErrors,d,jl.default.vErrors,d)),o.assign(jl.default.errors,(0,Xo._)(Q4||(Q4=st(["",".length"])),jl.default.vErrors))}function l(f){var d;if(i.opts.unevaluated){var h=(d=n==null?void 0:n.validate)===null||d===void 0?void 0:d.evaluated;if(i.props!==!0)if(h&&!h.dynamicProps)h.props!==void 0&&(i.props=Xv.mergeEvaluated.props(o,h.props,i.props));else{var p=o.var("props",(0,Xo._)(Y4||(Y4=st(["",".evaluated.props"])),f));i.props=Xv.mergeEvaluated.props(o,p,i.props,Xo.Name)}if(i.items!==!0)if(h&&!h.dynamicItems)h.items!==void 0&&(i.items=Xv.mergeEvaluated.items(o,h.items,i.items));else{var v=o.var("items",(0,Xo._)(X4||(X4=st(["",".evaluated.items"])),f));i.items=Xv.mergeEvaluated.items(o,v,i.items,Xo.Name)}}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");var f=o.let("valid");o.try(function(){o.code((0,Xo._)(W4||(W4=st(["await ",""])),(0,c9.callValidateCode)(e,t,c))),l(t),a||o.assign(f,!0)},function(d){o.if((0,Xo._)(K4||(K4=st(["!("," instanceof ",")"])),d,i.ValidationError),function(){return o.throw(d)}),u(d),a||o.assign(f,!1)}),e.ok(f)}():e.result((0,c9.callValidateCode)(e,t,c),function(){return l(t)},function(){return u(t)})}Vu.getValidate=LH,Vu.callRef=Dm,Vu.default=kxt,Object.defineProperty(o_,"__esModule",{value:!0});var jxt=Vu,_xt=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",i_.default,jxt.default];o_.default=_xt;var a_={},s_={};Object.defineProperty(s_,"__esModule",{value:!0});var e0=jn(),dc=e0.operators,n0={maximum:{okStr:"<=",ok:dc.LTE,fail:dc.GT},minimum:{okStr:">=",ok:dc.GTE,fail:dc.LT},exclusiveMaximum:{okStr:"<",ok:dc.LT,fail:dc.GTE},exclusiveMinimum:{okStr:">",ok:dc.GT,fail:dc.LTE}},Sxt={message:function(e){var t=e.keyword,n=e.schemaCode;return(0,e0.str)(Z4||(Z4=st(["must be "," ",""])),n0[t].okStr,n)},params:function(e){var t=e.keyword,n=e.schemaCode;return(0,e0._)(t8||(t8=st(["{comparison: ",", limit: ","}"])),n0[t].okStr,n)}},$xt={keyword:Object.keys(n0),type:"number",schemaType:"number",$data:!0,error:Sxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode;e.fail$data((0,e0._)(e8||(e8=st([""," "," "," || isNaN(",")"])),n,n0[t].fail,r,n))}};s_.default=$xt;var c_={};Object.defineProperty(c_,"__esModule",{value:!0});var $d=jn(),Cxt={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,$d.str)(n8||(n8=st(["must be multiple of ",""])),t)},params:function(e){var t=e.schemaCode;return(0,$d._)(r8||(r8=st(["{multipleOf: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.schemaCode,o=e.it.opts.multipleOfPrecision,i=t.let("res"),a=o?(0,$d._)(o8||(o8=st(["Math.abs(Math.round(",") - ",") > 1e-",""])),i,i,o):(0,$d._)(i8||(i8=st([""," !== parseInt(",")"])),i,i);e.fail$data((0,$d._)(a8||(a8=st(["("," === 0 || ("," = ","/",", ","))"])),r,i,n,r,a))}};c_.default=Cxt;var u_={},Gx={};function l9(e){for(var t,n=e.length,r=0,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&(64512&(t=e.charCodeAt(o)))==56320&&o++;return r}Object.defineProperty(Gx,"__esModule",{value:!0}),Gx.default=l9,l9.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(u_,"__esModule",{value:!0});var Eu=jn(),Ext=Rn,Oxt=Gx,Mxt={message:function(e){var t=e.keyword,n=e.schemaCode,r=t==="maxLength"?"more":"fewer";return(0,Eu.str)(s8||(s8=st(["must NOT have "," than "," characters"])),r,n)},params:function(e){var t=e.schemaCode;return(0,Eu._)(c8||(c8=st(["{limit: ","}"])),t)}},Axt={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Mxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=e.it,i=t==="maxLength"?Eu.operators.GT:Eu.operators.LT,a=o.opts.unicode===!1?(0,Eu._)(u8||(u8=st(["",".length"])),n):(0,Eu._)(l8||(l8=st(["","(",")"])),(0,Ext.useFunc)(e.gen,Oxt.default),n);e.fail$data((0,Eu._)(f8||(f8=st([""," "," ",""])),a,i,r))}};u_.default=Axt;var l_={};Object.defineProperty(l_,"__esModule",{value:!0});var Pxt=Pa(),Zv=jn(),Txt={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,Zv.str)(d8||(d8=st(['must match pattern "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,Zv._)(h8||(h8=st(["{pattern: ","}"])),t)}},code:function(e){var t=e.data,n=e.$data,r=e.schema,o=e.schemaCode,i=e.it.opts.unicodeRegExp?"u":"",a=n?(0,Zv._)(p8||(p8=st(["(new RegExp(",", ","))"])),o,i):(0,Pxt.usePattern)(e,r);e.fail$data((0,Zv._)(v8||(v8=st(["!",".test(",")"])),a,t))}};l_.default=Txt;var f_={};Object.defineProperty(f_,"__esModule",{value:!0});var mh=jn(),Rxt={message:function(e){var t=e.keyword,n=e.schemaCode,r=t==="maxProperties"?"more":"fewer";return(0,mh.str)(m8||(m8=st(["must NOT have "," than "," properties"])),r,n)},params:function(e){var t=e.schemaCode;return(0,mh._)(g8||(g8=st(["{limit: ","}"])),t)}},Ixt={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Rxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=t==="maxProperties"?mh.operators.GT:mh.operators.LT;e.fail$data((0,mh._)(y8||(y8=st(["Object.keys(",").length "," ",""])),n,o,r))}};f_.default=Ixt;var d_={};Object.defineProperty(d_,"__esModule",{value:!0});var Cd=Pa(),Ed=jn(),Nxt=Rn,Dxt={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:function(e){var t=e.params.missingProperty;return(0,Ed.str)(b8||(b8=st(["must have required property '","'"])),t)},params:function(e){var t=e.params.missingProperty;return(0,Ed._)(w8||(w8=st(["{missingProperty: ","}"])),t)}},code:function(e){var t=e.gen,n=e.schema,r=e.schemaCode,o=e.data,i=e.$data,a=e.it,s=a.opts;if(i||n.length!==0){var c=n.length>=s.loopRequired;if(a.allErrors?function(){if(c||i)e.block$data(Ed.nil,m);else{var g,y=ht(n);try{for(y.s();!(g=y.n()).done;){var b=g.value;(0,Cd.checkReportMissingProp)(e,b)}}catch(w){y.e(w)}finally{y.f()}}}():function(){var g=t.let("missing");if(c||i){var y=t.let("valid",!0);e.block$data(y,function(){return function(b,w){e.setParams({missingProperty:b}),t.forOf(b,r,function(){t.assign(w,(0,Cd.propertyInData)(t,o,b,s.ownProperties)),t.if((0,Ed.not)(w),function(){e.error(),t.break()})},Ed.nil)}(g,y)}),e.ok(y)}else t.if((0,Cd.checkMissingProp)(e,n,g)),(0,Cd.reportMissingProp)(e,g),t.else()}(),s.strictRequired){var u,l=e.parentSchema.properties,f=e.it.definedProperties,d=ht(n);try{for(d.s();!(u=d.n()).done;){var h=u.value;if((l==null?void 0:l[h])===void 0&&!f.has(h)){var p=a.schemaEnv.baseId+a.errSchemaPath,v='required property "'.concat(h,'" is not defined at "').concat(p,'" (strictRequired)');(0,Nxt.checkStrictMode)(a,v,a.opts.strictRequired)}}}catch(g){d.e(g)}finally{d.f()}}}function m(){t.forOf("prop",r,function(g){e.setParams({missingProperty:g}),t.if((0,Cd.noPropertyInData)(t,o,g,s.ownProperties),function(){return e.error()})})}}};d_.default=Dxt;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});var gh=jn(),zxt={message:function(e){var t=e.keyword,n=e.schemaCode,r=t==="maxItems"?"more":"fewer";return(0,gh.str)(x8||(x8=st(["must NOT have "," than "," items"])),r,n)},params:function(e){var t=e.schemaCode;return(0,gh._)(k8||(k8=st(["{limit: ","}"])),t)}},Lxt={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:zxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=t==="maxItems"?gh.operators.GT:gh.operators.LT;e.fail$data((0,gh._)(j8||(j8=st(["",".length "," ",""])),n,o,r))}};h_.default=Lxt;var p_={},Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});var f9=PH;f9.code='require("ajv/dist/runtime/equal").default',Lp.default=f9,Object.defineProperty(p_,"__esModule",{value:!0});var rb=sp,vo=jn(),Bxt=Rn,Fxt=Lp,qxt={message:function(e){var t=e.params,n=t.i,r=t.j;return(0,vo.str)(_8||(_8=st(["must NOT have duplicate items (items ## "," and "," are identical)"])),r,n)},params:function(e){var t=e.params,n=t.i,r=t.j;return(0,vo._)(S8||(S8=st(["{i: ",", j: ","}"])),n,r)}},Hxt={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:qxt,code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schema,i=e.parentSchema,a=e.schemaCode,s=e.it;if(r||o){var c=t.let("valid"),u=i.items?(0,rb.getSchemaTypes)(i.items):[];e.block$data(c,function(){var d=t.let("i",(0,vo._)(C8||(C8=st(["",".length"])),n)),h=t.let("j");e.setParams({i:d,j:h}),t.assign(c,!0),t.if((0,vo._)(E8||(E8=st([""," > 1"])),d),function(){return(u.length>0&&!u.some(function(p){return p==="object"||p==="array"})?l:f)(d,h)})},(0,vo._)($8||($8=st([""," === false"])),a)),e.ok(c)}function l(d,h){var p=t.name("item"),v=(0,rb.checkDataTypes)(u,p,s.opts.strictNumbers,rb.DataType.Wrong),m=t.const("indices",(0,vo._)(O8||(O8=st(["{}"]))));t.for((0,vo._)(M8||(M8=st([";","--;"])),d),function(){t.let(p,(0,vo._)(A8||(A8=st(["","[","]"])),n,d)),t.if(v,(0,vo._)(P8||(P8=st(["continue"])))),u.length>1&&t.if((0,vo._)(T8||(T8=st(["typeof ",' == "string"'])),p),(0,vo._)(R8||(R8=st(["",' += "_"'])),p)),t.if((0,vo._)(I8||(I8=st(["typeof ","[",'] == "number"'])),m,p),function(){t.assign(h,(0,vo._)(N8||(N8=st(["","[","]"])),m,p)),e.error(),t.assign(c,!1).break()}).code((0,vo._)(D8||(D8=st(["","[","] = ",""])),m,p,d))})}function f(d,h){var p=(0,Bxt.useFunc)(t,Fxt.default),v=t.name("outer");t.label(v).for((0,vo._)(z8||(z8=st([";","--;"])),d),function(){return t.for((0,vo._)(L8||(L8=st([""," = ","; ","--;"])),h,d,h),function(){return t.if((0,vo._)(B8||(B8=st(["","(","[","], ","[","])"])),p,n,d,n,h),function(){e.error(),t.assign(c,!1).break(v)})})})}}};p_.default=Hxt;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});var ob=jn(),Vxt=Rn,Uxt=Lp,Wxt={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(e){var t=e.schemaCode;return(0,ob._)(F8||(F8=st(["{allowedValue: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schemaCode,i=e.schema;r||i&&ce(i)=="object"?e.fail$data((0,ob._)(q8||(q8=st(["!","(",", ",")"])),(0,Vxt.useFunc)(t,Uxt.default),n,o)):e.fail((0,ob._)(H8||(H8=st([""," !== ",""])),i,n))}};v_.default=Wxt;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});var Od=jn(),Kxt=Rn,Jxt=Lp,Gxt={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(e){var t=e.schemaCode;return(0,Od._)(V8||(V8=st(["{allowedValues: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schema,i=e.schemaCode,a=e.it;if(!r&&o.length===0)throw new Error("enum must have non-empty array");var s,c,u=o.length>=a.opts.loopEnum,l=function(){return s??(s=(0,Kxt.useFunc)(t,Jxt.default))};if(u||r)c=t.let("valid"),e.block$data(c,function(){t.assign(c,!1),t.forOf("v",i,function(d){return t.if((0,Od._)(U8||(U8=st(["","(",", ",")"])),l(),n,d),function(){return t.assign(c,!0).break()})})});else{if(!Array.isArray(o))throw new Error("ajv implementation error");var f=t.const("vSchema",i);c=Od.or.apply(void 0,Se(o.map(function(d,h){return function(p,v){var m=o[v];return ce(m)==="object"&&m!==null?(0,Od._)(W8||(W8=st(["","(",", ","[","])"])),l(),n,p,v):(0,Od._)(K8||(K8=st([""," === ",""])),n,m)}(f,h)})))}e.pass(c)}};m_.default=Gxt,Object.defineProperty(a_,"__esModule",{value:!0});var Qxt=c_,Yxt=u_,Xxt=l_,Zxt=f_,tkt=d_,ekt=h_,nkt=p_,rkt=v_,okt=m_,ikt=[s_.default,Qxt.default,Yxt.default,Xxt.default,Zxt.default,tkt.default,ekt.default,nkt.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rkt.default,okt.default];a_.default=ikt;var g_={},Nf={};Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.validateAdditionalItems=void 0;var Ou=jn(),Qx=Rn,akt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,Ou.str)(J8||(J8=st(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,Ou._)(G8||(G8=st(["{limit: ","}"])),t)}},code:function(e){var t=e.parentSchema,n=e.it,r=t.items;Array.isArray(r)?BH(e,r):(0,Qx.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function BH(e,t){var n=e.gen,r=e.schema,o=e.data,i=e.keyword,a=e.it;a.items=!0;var s=n.const("len",(0,Ou._)(Q8||(Q8=st(["",".length"])),o));if(r===!1)e.setParams({len:t.length}),e.pass((0,Ou._)(Y8||(Y8=st([""," <= ",""])),s,t.length));else if(ce(r)=="object"&&!(0,Qx.alwaysValidSchema)(a,r)){var c=n.var("valid",(0,Ou._)(X8||(X8=st([""," <= ",""])),s,t.length));n.if((0,Ou.not)(c),function(){return function(u){n.forRange("i",t.length,s,function(l){e.subschema({keyword:i,dataProp:l,dataPropType:Qx.Type.Num},u),a.allErrors||n.if((0,Ou.not)(u),function(){return n.break()})})}(c)}),e.ok(c)}}Nf.validateAdditionalItems=BH,Nf.default=akt;var y_={},Df={};Object.defineProperty(Df,"__esModule",{value:!0}),Df.validateTuple=void 0;var d9=jn(),zm=Rn,skt=Pa(),ckt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(e){var t=e.schema,n=e.it;if(Array.isArray(t))return FH(e,"additionalItems",t);n.items=!0,(0,zm.alwaysValidSchema)(n,t)||e.ok((0,skt.validateArray)(e))}};function FH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.schema,r=e.gen,o=e.parentSchema,i=e.data,a=e.keyword,s=e.it;(function(l){var f=s.opts,d=s.errSchemaPath,h=n.length,p=h===l.minItems&&(h===l.maxItems||l[t]===!1);if(f.strictTuples&&!p){var v='"'.concat(a,'" is ').concat(h,"-tuple, but minItems or maxItems/").concat(t,' are not specified or different at path "').concat(d,'"');(0,zm.checkStrictMode)(s,v,f.strictTuples)}})(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=zm.mergeEvaluated.items(r,n.length,s.items));var c=r.name("valid"),u=r.const("len",(0,d9._)(Z8||(Z8=st(["",".length"])),i));n.forEach(function(l,f){(0,zm.alwaysValidSchema)(s,l)||(r.if((0,d9._)(t5||(t5=st([""," > ",""])),u,f),function(){return e.subschema({keyword:a,schemaProp:f,dataProp:f},c)}),e.ok(c))})}Df.validateTuple=FH,Df.default=ckt,Object.defineProperty(y_,"__esModule",{value:!0});var ukt=Df,lkt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(e){return(0,ukt.validateTuple)(e,"items")}};y_.default=lkt;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});var h9=jn(),fkt=Rn,dkt=Pa(),hkt=Nf,pkt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,h9.str)(e5||(e5=st(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,h9._)(n5||(n5=st(["{limit: ","}"])),t)}},code:function(e){var t=e.schema,n=e.parentSchema,r=e.it,o=n.prefixItems;r.items=!0,(0,fkt.alwaysValidSchema)(r,t)||(o?(0,hkt.validateAdditionalItems)(e,o):e.ok((0,dkt.validateArray)(e)))}};b_.default=pkt;var w_={};Object.defineProperty(w_,"__esModule",{value:!0});var Ci=jn(),tm=Rn,vkt={message:function(e){var t=e.params,n=t.min,r=t.max;return r===void 0?(0,Ci.str)(r5||(r5=st(["must contain at least "," valid item(s)"])),n):(0,Ci.str)(o5||(o5=st(["must contain at least "," and no more than "," valid item(s)"])),n,r)},params:function(e){var t=e.params,n=t.min,r=t.max;return r===void 0?(0,Ci._)(i5||(i5=st(["{minContains: ","}"])),n):(0,Ci._)(a5||(a5=st(["{minContains: ",", maxContains: ","}"])),n,r)}},mkt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:vkt,code:function(e){var t,n,r=e.gen,o=e.schema,i=e.parentSchema,a=e.data,s=e.it,c=i.minContains,u=i.maxContains;s.opts.next?(t=c===void 0?1:c,n=u):t=1;var l=r.const("len",(0,Ci._)(s5||(s5=st(["",".length"])),a));if(e.setParams({min:t,max:n}),n!==void 0||t!==0){if(n!==void 0&&t>n)return(0,tm.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,tm.alwaysValidSchema)(s,o)){var f=(0,Ci._)(c5||(c5=st([""," >= ",""])),l,t);return n!==void 0&&(f=(0,Ci._)(u5||(u5=st([""," && "," <= ",""])),f,l,n)),void e.pass(f)}s.items=!0;var d=r.name("valid");n===void 0&&t===1?p(d,function(){return r.if(d,function(){return r.break()})}):t===0?(r.let(d,!0),n!==void 0&&r.if((0,Ci._)(l5||(l5=st(["",".length > 0"])),a),h)):(r.let(d,!1),h()),e.result(d,function(){return e.reset()})}else(0,tm.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function h(){var v=r.name("_valid"),m=r.let("count",0);p(v,function(){return r.if(v,function(){return function(g){r.code((0,Ci._)(f5||(f5=st(["","++"])),g)),n===void 0?r.if((0,Ci._)(d5||(d5=st([""," >= ",""])),g,t),function(){return r.assign(d,!0).break()}):(r.if((0,Ci._)(h5||(h5=st([""," > ",""])),g,n),function(){return r.assign(d,!1).break()}),t===1?r.assign(d,!0):r.if((0,Ci._)(p5||(p5=st([""," >= ",""])),g,t),function(){return r.assign(d,!0)}))}(m)})})}function p(v,m){r.forRange("i",0,l,function(g){e.subschema({keyword:"contains",dataProp:g,dataPropType:tm.Type.Num,compositeRule:!0},v),m()})}}};w_.default=mkt;var qH={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=jn(),n=Rn,r=Pa();e.error={message:function(s){var c=s.params,u=c.property,l=c.depsCount,f=c.deps,d=l===1?"property":"properties";return(0,t.str)(v5||(v5=st(["must have "," "," when property "," is present"])),d,f,u)},params:function(s){var c=s.params,u=c.property,l=c.depsCount,f=c.deps,d=c.missingProperty;return(0,t._)(m5||(m5=st(["{property: ",`,
124
+ missingProperty: `,`,
125
+ depsCount: `,`,
126
+ deps: `,"}"])),u,d,l,f)}};var o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code:function(s){var c=$e(function(f){var d=f.schema,h={},p={};for(var v in d)v!=="__proto__"&&((Array.isArray(d[v])?h:p)[v]=d[v]);return[h,p]}(s),2),u=c[0],l=c[1];i(s,u),a(s,l)}};function i(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.schema,u=s.gen,l=s.data,f=s.it;if(Object.keys(c).length!==0){var d=u.let("missing"),h=function(){var v=c[p];if(v.length===0)return 1;var m=(0,r.propertyInData)(u,l,p,f.opts.ownProperties);s.setParams({property:p,depsCount:v.length,deps:v.join(", ")}),f.allErrors?u.if(m,function(){var g,y=ht(v);try{for(y.s();!(g=y.n()).done;){var b=g.value;(0,r.checkReportMissingProp)(s,b)}}catch(w){y.e(w)}finally{y.f()}}):(u.if((0,t._)(g5||(g5=st([""," && (",")"])),m,(0,r.checkMissingProp)(s,v,d))),(0,r.reportMissingProp)(s,d),u.else())};for(var p in c)h()}}function a(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.schema,u=s.gen,l=s.data,f=s.keyword,d=s.it,h=u.name("valid"),p=function(m){if((0,n.alwaysValidSchema)(d,c[m]))return 1;u.if((0,r.propertyInData)(u,l,m,d.opts.ownProperties),function(){var g=s.subschema({keyword:f,schemaProp:m},h);s.mergeValidEvaluated(g,h)},function(){return u.var(h,!0)}),s.ok(h)};for(var v in c)p(v)}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=o})(qH);var x_={};Object.defineProperty(x_,"__esModule",{value:!0});var p9=jn(),gkt=Rn,ykt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(e){var t=e.params;return(0,p9._)(y5||(y5=st(["{propertyName: ","}"])),t.propertyName)}},code:function(e){var t=e.gen,n=e.schema,r=e.data,o=e.it;if(!(0,gkt.alwaysValidSchema)(o,n)){var i=t.name("valid");t.forIn("key",r,function(a){e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),t.if((0,p9.not)(i),function(){e.error(!0),o.allErrors||t.break()})}),e.ok(i)}}};x_.default=ykt;var g1={};Object.defineProperty(g1,"__esModule",{value:!0});var em=Pa(),oa=jn(),bkt=Zc(),nm=Rn,wkt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(e){var t=e.params;return(0,oa._)(b5||(b5=st(["{additionalProperty: ","}"])),t.additionalProperty)}},code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,o=e.data,i=e.errsCount,a=e.it;if(!i)throw new Error("ajv implementation error");var s=a.allErrors,c=a.opts;if(a.props=!0,c.removeAdditional==="all"||!(0,nm.alwaysValidSchema)(a,n)){var u=(0,em.allSchemaProperties)(r.properties),l=(0,em.allSchemaProperties)(r.patternProperties);t.forIn("key",o,function(p){u.length||l.length?t.if(function(v){var m;if(u.length>8){var g=(0,nm.schemaRefOrVal)(a,r.properties,"properties");m=(0,em.isOwnProperty)(t,g,v)}else m=u.length?oa.or.apply(void 0,Se(u.map(function(y){return(0,oa._)(x5||(x5=st([""," === ",""])),v,y)}))):oa.nil;return l.length&&(m=oa.or.apply(void 0,[m].concat(Se(l.map(function(y){return(0,oa._)(k5||(k5=st(["",".test(",")"])),(0,em.usePattern)(e,y),v)}))))),(0,oa.not)(m)}(p),function(){return d(p)}):d(p)}),e.ok((0,oa._)(w5||(w5=st([""," === ",""])),i,bkt.default.errors))}function f(p){t.code((0,oa._)(j5||(j5=st(["delete ","[","]"])),o,p))}function d(p){if(c.removeAdditional==="all"||c.removeAdditional&&n===!1)f(p);else{if(n===!1)return e.setParams({additionalProperty:p}),e.error(),void(s||t.break());if(ce(n)=="object"&&!(0,nm.alwaysValidSchema)(a,n)){var v=t.name("valid");c.removeAdditional==="failing"?(h(p,v,!1),t.if((0,oa.not)(v),function(){e.reset(),f(p)})):(h(p,v),s||t.if((0,oa.not)(v),function(){return t.break()}))}}}function h(p,v,m){var g={keyword:"additionalProperties",dataProp:p,dataPropType:nm.Type.Str};m===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(g,v)}}};g1.default=wkt;var k_={};Object.defineProperty(k_,"__esModule",{value:!0});var xkt=v1(),v9=Pa(),ib=Rn,m9=g1,kkt={keyword:"properties",type:"object",schemaType:"object",code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,o=e.data,i=e.it;i.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&m9.default.code(new xkt.KeywordCxt(i,m9.default,"additionalProperties"));var a,s=(0,v9.allSchemaProperties)(n),c=ht(s);try{for(c.s();!(a=c.n()).done;){var u=a.value;i.definedProperties.add(u)}}catch(g){c.e(g)}finally{c.f()}i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=ib.mergeEvaluated.props(t,(0,ib.toHash)(s),i.props));var l=s.filter(function(g){return!(0,ib.alwaysValidSchema)(i,n[g])});if(l.length!==0){var f,d=t.name("valid"),h=ht(l);try{for(h.s();!(f=h.n()).done;){var p=f.value;v(p)?m(p):(t.if((0,v9.propertyInData)(t,o,p,i.opts.ownProperties)),m(p),i.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(d)}}catch(g){h.e(g)}finally{h.f()}}function v(g){return i.opts.useDefaults&&!i.compositeRule&&n[g].default!==void 0}function m(g){e.subschema({keyword:"properties",schemaProp:g,dataProp:g},d)}}};k_.default=kkt;var j_={};Object.defineProperty(j_,"__esModule",{value:!0});var g9=Pa(),rm=jn(),y9=Rn,b9=Rn,jkt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(e){var t=e.gen,n=e.schema,r=e.data,o=e.parentSchema,i=e.it,a=i.opts,s=(0,g9.allSchemaProperties)(n),c=s.filter(function(p){return(0,y9.alwaysValidSchema)(i,n[p])});if(s.length!==0&&(c.length!==s.length||i.opts.unevaluated&&i.props!==!0)){var u=a.strictSchema&&!a.allowMatchingProperties&&o.properties,l=t.name("valid");i.props===!0||i.props instanceof rm.Name||(i.props=(0,b9.evaluatedPropsToName)(t,i.props));var f=i.props;(function(){var p,v=ht(s);try{for(v.s();!(p=v.n()).done;){var m=p.value;u&&d(m),i.allErrors?h(m):(t.var(l,!0),h(m),t.if(l))}}catch(g){v.e(g)}finally{v.f()}})()}function d(p){for(var v in u)new RegExp(p).test(v)&&(0,y9.checkStrictMode)(i,"property ".concat(v," matches pattern ").concat(p," (use allowMatchingProperties)"))}function h(p){t.forIn("key",r,function(v){t.if((0,rm._)(_5||(_5=st(["",".test(",")"])),(0,g9.usePattern)(e,p),v),function(){var m=c.includes(p);m||e.subschema({keyword:"patternProperties",schemaProp:p,dataProp:v,dataPropType:b9.Type.Str},l),i.opts.unevaluated&&f!==!0?t.assign((0,rm._)(S5||(S5=st(["","[","]"])),f,v),!0):m||i.allErrors||t.if((0,rm.not)(l),function(){return t.break()})})})}}};j_.default=jkt;var __={};Object.defineProperty(__,"__esModule",{value:!0});var _kt=Rn,Skt={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(e){var t=e.gen,n=e.schema,r=e.it;if((0,_kt.alwaysValidSchema)(r,n))e.fail();else{var o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,function(){return e.reset()},function(){return e.error()})}},error:{message:"must NOT be valid"}};__.default=Skt;var S_={};Object.defineProperty(S_,"__esModule",{value:!0});var $kt={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pa().validateUnion,error:{message:"must match a schema in anyOf"}};S_.default=$kt;var $_={};Object.defineProperty($_,"__esModule",{value:!0});var om=jn(),Ckt=Rn,Ekt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(e){var t=e.params;return(0,om._)($5||($5=st(["{passingSchemas: ","}"])),t.passing)}},code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,o=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");if(!o.opts.discriminator||!r.discriminator){var i=n,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(function(){i.forEach(function(u,l){var f;(0,Ckt.alwaysValidSchema)(o,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},c),l>0&&t.if((0,om._)(C5||(C5=st([""," && ",""])),c,a)).assign(a,!1).assign(s,(0,om._)(E5||(E5=st(["[",", ","]"])),s,l)).else(),t.if(c,function(){t.assign(a,!0),t.assign(s,l),f&&e.mergeEvaluated(f,om.Name)})})}),e.result(a,function(){return e.reset()},function(){return e.error(!0)})}}};$_.default=Ekt;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});var Okt=Rn,Mkt={keyword:"allOf",schemaType:"array",code:function(e){var t=e.gen,n=e.schema,r=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");var o=t.name("valid");n.forEach(function(i,a){if(!(0,Okt.alwaysValidSchema)(r,i)){var s=e.subschema({keyword:"allOf",schemaProp:a},o);e.ok(o),e.mergeEvaluated(s)}})}};C_.default=Mkt;var E_={};Object.defineProperty(E_,"__esModule",{value:!0});var im=jn(),HH=Rn,Akt={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(e){var t=e.params;return(0,im.str)(O5||(O5=st(['must match "','" schema'])),t.ifClause)},params:function(e){var t=e.params;return(0,im._)(M5||(M5=st(["{failingKeyword: ","}"])),t.ifClause)}},code:function(e){var t=e.gen,n=e.parentSchema,r=e.it;n.then===void 0&&n.else===void 0&&(0,HH.checkStrictMode)(r,'"if" without "then" and "else" is ignored');var o=w9(r,"then"),i=w9(r,"else");if(o||i){var a,s=t.let("valid",!0),c=t.name("_valid");if(a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c),e.mergeEvaluated(a),e.reset(),o&&i){var u=t.let("ifClause");e.setParams({ifClause:u}),t.if(c,l("then",u),l("else",u))}else o?t.if(c,l("then")):t.if((0,im.not)(c),l("else"));e.pass(s,function(){return e.error(!0)})}function l(f,d){return function(){var h=e.subschema({keyword:f},c);t.assign(s,c),e.mergeValidEvaluated(h,s),d?t.assign(d,(0,im._)(A5||(A5=st(["",""])),f)):e.setParams({ifClause:f})}}}};function w9(e,t){var n=e.schema[t];return n!==void 0&&!(0,HH.alwaysValidSchema)(e,n)}E_.default=Akt;var O_={};Object.defineProperty(O_,"__esModule",{value:!0});var Pkt=Rn,Tkt={keyword:["then","else"],schemaType:["object","boolean"],code:function(e){var t=e.keyword,n=e.parentSchema,r=e.it;n.if===void 0&&(0,Pkt.checkStrictMode)(r,'"'.concat(t,'" without "if" is ignored'))}};O_.default=Tkt,Object.defineProperty(g_,"__esModule",{value:!0});var Rkt=Nf,Ikt=y_,Nkt=Df,Dkt=b_,zkt=w_,Lkt=qH,Bkt=x_,Fkt=g1,qkt=k_,Hkt=j_,Vkt=__,Ukt=S_,Wkt=$_,Kkt=C_,Jkt=E_,Gkt=O_;g_.default=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=[Vkt.default,Ukt.default,Wkt.default,Kkt.default,Jkt.default,Gkt.default,Bkt.default,Fkt.default,Lkt.default,qkt.default,Hkt.default];return e?t.push(Ikt.default,Dkt.default):t.push(Rkt.default,Nkt.default),t.push(zkt.default),t};var M_={},A_={};Object.defineProperty(A_,"__esModule",{value:!0});var Hr=jn(),Qkt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,Hr.str)(P5||(P5=st(['must match format "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,Hr._)(T5||(T5=st(["{format: ","}"])),t)}},code:function(e,t){var n=e.gen,r=e.data,o=e.$data,i=e.schema,a=e.schemaCode,s=e.it,c=s.opts,u=s.errSchemaPath,l=s.schemaEnv,f=s.self;c.validateFormats&&(o?function(){var d=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),h=n.const("fDef",(0,Hr._)(R5||(R5=st(["","[","]"])),d,a)),p=n.let("fType"),v=n.let("format");n.if((0,Hr._)(I5||(I5=st(["typeof ",' == "object" && !('," instanceof RegExp)"])),h,h),function(){return n.assign(p,(0,Hr._)(N5||(N5=st(["",'.type || "string"'])),h)).assign(v,(0,Hr._)(D5||(D5=st(["",".validate"])),h))},function(){return n.assign(p,(0,Hr._)(z5||(z5=st(['"string"'])))).assign(v,h)}),e.fail$data((0,Hr.or)(c.strictSchema===!1?Hr.nil:(0,Hr._)(L5||(L5=st([""," && !",""])),a,v),(m=l.$async?(0,Hr._)(B5||(B5=st(["(",".async ? await ","(",") : ","(","))"])),h,v,r,v,r):(0,Hr._)(F5||(F5=st(["","(",")"])),v,r),g=(0,Hr._)(q5||(q5=st(["(typeof ",' == "function" ? '," : ",".test(","))"])),v,m,v,r),(0,Hr._)(H5||(H5=st([""," && "," !== true && "," === "," && !",""])),v,v,p,t,g))));var m,g}():function(){var d=f.formats[i];if(!d)return void function(){if(c.strictSchema===!1)return void f.logger.warn(g());throw new Error(g());function g(){return'unknown format "'.concat(i,'" ignored in schema at path "').concat(u,'"')}}();if(d!==!0){var h=$e(function(g){var y=g instanceof RegExp?(0,Hr.regexpCode)(g):c.code.formats?(0,Hr._)(V5||(V5=st(["","",""])),c.code.formats,(0,Hr.getProperty)(i)):void 0,b=n.scopeValue("formats",{key:i,ref:g,code:y});return ce(g)=="object"&&!(g instanceof RegExp)?[g.type||"string",g.validate,(0,Hr._)(U5||(U5=st(["",".validate"])),b)]:["string",g,b]}(d),3),p=h[0],v=h[1],m=h[2];p===t&&e.pass(function(){if(ce(d)=="object"&&!(d instanceof RegExp)&&d.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Hr._)(W5||(W5=st(["await ","(",")"])),m,r)}return typeof v=="function"?(0,Hr._)(K5||(K5=st(["","(",")"])),m,r):(0,Hr._)(J5||(J5=st(["",".test(",")"])),m,r)}())}}())}};A_.default=Qkt,Object.defineProperty(M_,"__esModule",{value:!0});var Ykt=[A_.default];M_.default=Ykt;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.contentVocabulary=Pl.metadataVocabulary=void 0,Pl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Pl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(r_,"__esModule",{value:!0});var Xkt=a_,Zkt=g_,t2t=M_,x9=Pl,e2t=[o_.default,Xkt.default,(0,Zkt.default)(),t2t.default,x9.metadataVocabulary,x9.contentVocabulary];r_.default=e2t;var P_={},VH={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"})(VH),Object.defineProperty(P_,"__esModule",{value:!0});var _l=jn(),ab=VH,k9=Zo,n2t=Rn,r2t={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(e){var t=e.params,n=t.discrError,r=t.tagName;return n===ab.DiscrError.Tag?'tag "'.concat(r,'" must be string'):'value of tag "'.concat(r,'" must be in oneOf')},params:function(e){var t=e.params,n=t.discrError,r=t.tag,o=t.tagName;return(0,_l._)(G5||(G5=st(["{error: ",", tag: ",", tagValue: ","}"])),n,o,r)}},code:function(e){var t=e.gen,n=e.data,r=e.schema,o=e.parentSchema,i=e.it,a=o.oneOf;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");var s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");var c=t.let("valid",!1),u=t.const("tag",(0,_l._)(Q5||(Q5=st(["","",""])),n,(0,_l.getProperty)(s)));function l(f){var d=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:f},d);return e.mergeEvaluated(h,_l.Name),d}t.if((0,_l._)(Y5||(Y5=st(["typeof ",' == "string"'])),u),function(){return function(){var f=function(){for(var h,p={},v=w(o),m=!0,g=0;g<a.length;g++){var y=a[g];y!=null&&y.$ref&&!(0,n2t.schemaHasRulesButRef)(y,i.self.RULES)&&(y=k9.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,y==null?void 0:y.$ref))instanceof k9.SchemaEnv&&(y=y.schema);var b=(h=y==null?void 0:y.properties)===null||h===void 0?void 0:h[s];if(ce(b)!="object")throw new Error('discriminator: oneOf subschemas (or referenced schemas) must have "properties/'.concat(s,'"'));m=m&&(v||w(y)),x(b,g)}if(!m)throw new Error('discriminator: "'.concat(s,'" must be required'));return p;function w(j){var S=j.required;return Array.isArray(S)&&S.includes(s)}function x(j,S){if(j.const)k(j.const,S);else{if(!j.enum)throw new Error('discriminator: "properties/'.concat(s,'" must have "const" or "enum"'));var N,C=ht(j.enum);try{for(C.s();!(N=C.n()).done;)k(N.value,S)}catch($){C.e($)}finally{C.f()}}}function k(j,S){if(typeof j!="string"||j in p)throw new Error('discriminator: "'.concat(s,'" values must be unique strings'));p[j]=S}}();for(var d in t.if(!1),f)t.elseIf((0,_l._)(X5||(X5=st([""," === ",""])),u,d)),t.assign(c,l(f[d]));t.else(),e.error(!1,{discrError:ab.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()},function(){return e.error(!1,{discrError:ab.DiscrError.Tag,tag:u,tagName:s})}),e.ok(c)}};P_.default=r2t;var o2t={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r_,r=P_,o=o2t,i=["/properties"],a="http://json-schema.org/draft-07/schema",s=function(d){Tt(p,d);var h=Rt(p);function p(){return rt(this,p),h.apply(this,arguments)}return ot(p,[{key:"_addVocabularies",value:function(){var v=this;kn(ln(p.prototype),"_addVocabularies",this).call(this),n.default.forEach(function(m){return v.addVocabulary(m)}),this.opts.discriminator&&this.addKeyword(r.default)}},{key:"_addDefaultMetaSchema",value:function(){if(kn(ln(p.prototype),"_addDefaultMetaSchema",this).call(this),this.opts.meta){var v=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema(v,a,!1),this.refs["http://json-schema.org/schema"]=a}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=kn(ln(p.prototype),"defaultMeta",this).call(this)||(this.getSchema(a)?a:void 0)}}]),p}(MH.default);e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var c=v1();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=jn();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var l=t_();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var f=e_();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Wx,Wx.exports);l2(Wx.exports);var UH={};(function(e){function t(z){return z!==null&&Object.prototype.toString.call(z)==="[object Array]"}function n(z){return z!==null&&Object.prototype.toString.call(z)==="[object Object]"}function r(z,W){if(z===W)return!0;if(Object.prototype.toString.call(z)!==Object.prototype.toString.call(W))return!1;if(t(z)===!0){if(z.length!==W.length)return!1;for(var G=0;G<z.length;G++)if(r(z[G],W[G])===!1)return!1;return!0}if(n(z)===!0){var pt={};for(var mt in z)if(hasOwnProperty.call(z,mt)){if(r(z[mt],W[mt])===!1)return!1;pt[mt]=!0}for(var Ot in W)if(hasOwnProperty.call(W,Ot)&&pt[Ot]!==!0)return!1;return!0}return!1}function o(z){if(z===""||z===!1||z===null||t(z)&&z.length===0)return!0;if(n(z)){for(var W in z)if(z.hasOwnProperty(W))return!1;return!0}return!1}var i;i=typeof String.prototype.trimLeft=="function"?function(z){return z.trimLeft()}:function(z){return z.match(/^\s*(.*)/)[1]};var a=0,s=1,c=2,u=3,l=4,f=6,d=8,h=9,p={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},v="EOF",m="UnquotedIdentifier",g="QuotedIdentifier",y="Rbracket",b="Rparen",w="Comma",x="Colon",k="Rbrace",j="Number",S="Current",N="Expref",C="Pipe",$="Or",B="And",K="EQ",R="GT",q="LT",F="GTE",O="LTE",A="NE",_="Flatten",M="Star",P="Filter",D="Dot",T="Not",H="Lbrace",I="Lbracket",ft="Lparen",tt="Literal",yt={".":D,"*":M,",":w,":":x,"{":H,"}":k,"]":y,"(":ft,")":b,"@":S},bt={"<":!0,">":!0,"=":!0,"!":!0},jt={" ":!0," ":!0,"\n":!0};function gt(z){return z>="0"&&z<="9"||z==="-"}function Y(){}Y.prototype={tokenize:function(z){var W,G,pt,mt,Ot=[];for(this._current=0;this._current<z.length;)if((mt=z[this._current])>="a"&&mt<="z"||mt>="A"&&mt<="Z"||mt==="_")W=this._current,G=this._consumeUnquotedIdentifier(z),Ot.push({type:m,value:G,start:W});else if(yt[z[this._current]]!==void 0)Ot.push({type:yt[z[this._current]],value:z[this._current],start:this._current}),this._current++;else if(gt(z[this._current]))pt=this._consumeNumber(z),Ot.push(pt);else if(z[this._current]==="[")pt=this._consumeLBracket(z),Ot.push(pt);else if(z[this._current]==='"')W=this._current,G=this._consumeQuotedIdentifier(z),Ot.push({type:g,value:G,start:W});else if(z[this._current]==="'")W=this._current,G=this._consumeRawStringLiteral(z),Ot.push({type:tt,value:G,start:W});else if(z[this._current]==="`"){W=this._current;var Ct=this._consumeLiteral(z);Ot.push({type:tt,value:Ct,start:W})}else if(bt[z[this._current]]!==void 0)Ot.push(this._consumeOperator(z));else if(jt[z[this._current]]!==void 0)this._current++;else if(z[this._current]==="&")W=this._current,this._current++,z[this._current]==="&"?(this._current++,Ot.push({type:B,value:"&&",start:W})):Ot.push({type:N,value:"&",start:W});else{if(z[this._current]!=="|"){var Vt=new Error("Unknown character:"+z[this._current]);throw Vt.name="LexerError",Vt}W=this._current,this._current++,z[this._current]==="|"?(this._current++,Ot.push({type:$,value:"||",start:W})):Ot.push({type:C,value:"|",start:W})}return Ot},_consumeUnquotedIdentifier:function(z){var W,G=this._current;for(this._current++;this._current<z.length&&((W=z[this._current])>="a"&&W<="z"||W>="A"&&W<="Z"||W>="0"&&W<="9"||W==="_");)this._current++;return z.slice(G,this._current)},_consumeQuotedIdentifier:function(z){var W=this._current;this._current++;for(var G=z.length;z[this._current]!=='"'&&this._current<G;){var pt=this._current;z[pt]!=="\\"||z[pt+1]!=="\\"&&z[pt+1]!=='"'?pt++:pt+=2,this._current=pt}return this._current++,JSON.parse(z.slice(W,this._current))},_consumeRawStringLiteral:function(z){var W=this._current;this._current++;for(var G=z.length;z[this._current]!=="'"&&this._current<G;){var pt=this._current;z[pt]!=="\\"||z[pt+1]!=="\\"&&z[pt+1]!=="'"?pt++:pt+=2,this._current=pt}return this._current++,z.slice(W+1,this._current-1).replace("\\'","'")},_consumeNumber:function(z){var W=this._current;this._current++;for(var G=z.length;gt(z[this._current])&&this._current<G;)this._current++;var pt=parseInt(z.slice(W,this._current));return{type:j,value:pt,start:W}},_consumeLBracket:function(z){var W=this._current;return this._current++,z[this._current]==="?"?(this._current++,{type:P,value:"[?",start:W}):z[this._current]==="]"?(this._current++,{type:_,value:"[]",start:W}):{type:I,value:"[",start:W}},_consumeOperator:function(z){var W=this._current,G=z[W];return this._current++,G==="!"?z[this._current]==="="?(this._current++,{type:A,value:"!=",start:W}):{type:T,value:"!",start:W}:G==="<"?z[this._current]==="="?(this._current++,{type:O,value:"<=",start:W}):{type:q,value:"<",start:W}:G===">"?z[this._current]==="="?(this._current++,{type:F,value:">=",start:W}):{type:R,value:">",start:W}:G==="="&&z[this._current]==="="?(this._current++,{type:K,value:"==",start:W}):void 0},_consumeLiteral:function(z){this._current++;for(var W,G=this._current,pt=z.length;z[this._current]!=="`"&&this._current<pt;){var mt=this._current;z[mt]!=="\\"||z[mt+1]!=="\\"&&z[mt+1]!=="`"?mt++:mt+=2,this._current=mt}var Ot=i(z.slice(G,this._current));return Ot=Ot.replace("\\`","`"),W=this._looksLikeJSON(Ot)?JSON.parse(Ot):JSON.parse('"'+Ot+'"'),this._current++,W},_looksLikeJSON:function(z){if(z==="")return!1;if('[{"'.indexOf(z[0])>=0||["true","false","null"].indexOf(z)>=0)return!0;if(!("-0123456789".indexOf(z[0])>=0))return!1;try{return JSON.parse(z),!0}catch{return!1}}};var J={};function it(){}function X(z){this.runtime=z}function _t(z){this._interpreter=z,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[d]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[c,u]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[c,u,l]}]},map:{_func:this._functionMap,_signature:[{types:[f]},{types:[u]}]},max:{_func:this._functionMax,_signature:[{types:[d,h]}]},merge:{_func:this._functionMerge,_signature:[{types:[l],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[u]},{types:[f]}]},sum:{_func:this._functionSum,_signature:[{types:[d]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[d,h]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[u]},{types:[f]}]},type:{_func:this._functionType,_signature:[{types:[s]}]},keys:{_func:this._functionKeys,_signature:[{types:[l]}]},values:{_func:this._functionValues,_signature:[{types:[l]}]},sort:{_func:this._functionSort,_signature:[{types:[h,d]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[u]},{types:[f]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[h]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,u]}]},to_array:{_func:this._functionToArray,_signature:[{types:[s]}]},to_string:{_func:this._functionToString,_signature:[{types:[s]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[s]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[s],variadic:!0}]}}}J[v]=0,J[m]=0,J[g]=0,J[y]=0,J[b]=0,J[w]=0,J[k]=0,J[j]=0,J[S]=0,J[N]=0,J[C]=1,J[$]=2,J[B]=3,J[K]=5,J[R]=5,J[q]=5,J[F]=5,J[O]=5,J[A]=5,J[_]=9,J[M]=20,J[P]=21,J[D]=40,J[T]=45,J[H]=50,J[I]=55,J[ft]=60,it.prototype={parse:function(z){this._loadTokens(z),this.index=0;var W=this.expression(0);if(this._lookahead(0)!==v){var G=this._lookaheadToken(0),pt=new Error("Unexpected token type: "+G.type+", value: "+G.value);throw pt.name="ParserError",pt}return W},_loadTokens:function(z){var W=new Y().tokenize(z);W.push({type:v,value:"",start:z.length}),this.tokens=W},expression:function(z){var W=this._lookaheadToken(0);this._advance();for(var G=this.nud(W),pt=this._lookahead(0);z<J[pt];)this._advance(),G=this.led(pt,G),pt=this._lookahead(0);return G},_lookahead:function(z){return this.tokens[this.index+z].type},_lookaheadToken:function(z){return this.tokens[this.index+z]},_advance:function(){this.index++},nud:function(z){var W,G;switch(z.type){case tt:return{type:"Literal",value:z.value};case m:return{type:"Field",name:z.value};case g:var pt={type:"Field",name:z.value};if(this._lookahead(0)===ft)throw new Error("Quoted identifier not allowed for function names.");return pt;case T:return{type:"NotExpression",children:[W=this.expression(J.Not)]};case M:return W=null,{type:"ValueProjection",children:[{type:"Identity"},W=this._lookahead(0)===y?{type:"Identity"}:this._parseProjectionRHS(J.Star)]};case P:return this.led(z.type,{type:"Identity"});case H:return this._parseMultiselectHash();case _:return{type:"Projection",children:[{type:_,children:[{type:"Identity"}]},W=this._parseProjectionRHS(J.Flatten)]};case I:return this._lookahead(0)===j||this._lookahead(0)===x?(W=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},W)):this._lookahead(0)===M&&this._lookahead(1)===y?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},W=this._parseProjectionRHS(J.Star)]}):this._parseMultiselectList();case S:return{type:S};case N:return{type:"ExpressionReference",children:[G=this.expression(J.Expref)]};case ft:for(var mt=[];this._lookahead(0)!==b;)this._lookahead(0)===S?(G={type:S},this._advance()):G=this.expression(0),mt.push(G);return this._match(b),mt[0];default:this._errorToken(z)}},led:function(z,W){var G;switch(z){case D:var pt=J.Dot;return this._lookahead(0)!==M?{type:"Subexpression",children:[W,G=this._parseDotRHS(pt)]}:(this._advance(),{type:"ValueProjection",children:[W,G=this._parseProjectionRHS(pt)]});case C:return G=this.expression(J.Pipe),{type:C,children:[W,G]};case $:return{type:"OrExpression",children:[W,G=this.expression(J.Or)]};case B:return{type:"AndExpression",children:[W,G=this.expression(J.And)]};case ft:for(var mt,Ot=W.name,Ct=[];this._lookahead(0)!==b;)this._lookahead(0)===S?(mt={type:S},this._advance()):mt=this.expression(0),this._lookahead(0)===w&&this._match(w),Ct.push(mt);return this._match(b),{type:"Function",name:Ot,children:Ct};case P:var Vt=this.expression(0);return this._match(y),{type:"FilterProjection",children:[W,G=this._lookahead(0)===_?{type:"Identity"}:this._parseProjectionRHS(J.Filter),Vt]};case _:return{type:"Projection",children:[{type:_,children:[W]},this._parseProjectionRHS(J.Flatten)]};case K:case A:case R:case F:case q:case O:return this._parseComparator(W,z);case I:var Qt=this._lookaheadToken(0);return Qt.type===j||Qt.type===x?(G=this._parseIndexExpression(),this._projectIfSlice(W,G)):(this._match(M),this._match(y),{type:"Projection",children:[W,G=this._parseProjectionRHS(J.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(z){if(this._lookahead(0)!==z){var W=this._lookaheadToken(0),G=new Error("Expected "+z+", got: "+W.type);throw G.name="ParserError",G}this._advance()},_errorToken:function(z){var W=new Error("Invalid token ("+z.type+'): "'+z.value+'"');throw W.name="ParserError",W},_parseIndexExpression:function(){if(this._lookahead(0)===x||this._lookahead(1)===x)return this._parseSliceExpression();var z={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(y),z},_projectIfSlice:function(z,W){var G={type:"IndexExpression",children:[z,W]};return W.type==="Slice"?{type:"Projection",children:[G,this._parseProjectionRHS(J.Star)]}:G},_parseSliceExpression:function(){for(var z=[null,null,null],W=0,G=this._lookahead(0);G!==y&&W<3;){if(G===x)W++,this._advance();else{if(G!==j){var pt=this._lookahead(0),mt=new Error("Syntax error, unexpected token: "+pt.value+"("+pt.type+")");throw mt.name="Parsererror",mt}z[W]=this._lookaheadToken(0).value,this._advance()}G=this._lookahead(0)}return this._match(y),{type:"Slice",children:z}},_parseComparator:function(z,W){return{type:"Comparator",name:W,children:[z,this.expression(J[W])]}},_parseDotRHS:function(z){var W=this._lookahead(0);return[m,g,M].indexOf(W)>=0?this.expression(z):W===I?(this._match(I),this._parseMultiselectList()):W===H?(this._match(H),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(z){var W;if(J[this._lookahead(0)]<10)W={type:"Identity"};else if(this._lookahead(0)===I)W=this.expression(z);else if(this._lookahead(0)===P)W=this.expression(z);else{if(this._lookahead(0)!==D){var G=this._lookaheadToken(0),pt=new Error("Sytanx error, unexpected token: "+G.value+"("+G.type+")");throw pt.name="ParserError",pt}this._match(D),W=this._parseDotRHS(z)}return W},_parseMultiselectList:function(){for(var z=[];this._lookahead(0)!==y;){var W=this.expression(0);if(z.push(W),this._lookahead(0)===w&&(this._match(w),this._lookahead(0)===y))throw new Error("Unexpected token Rbracket")}return this._match(y),{type:"MultiSelectList",children:z}},_parseMultiselectHash:function(){for(var z,W,G,pt=[],mt=[m,g];;){if(z=this._lookaheadToken(0),mt.indexOf(z.type)<0)throw new Error("Expecting an identifier token, got: "+z.type);if(W=z.value,this._advance(),this._match(x),G={type:"KeyValuePair",name:W,value:this.expression(0)},pt.push(G),this._lookahead(0)===w)this._match(w);else if(this._lookahead(0)===k){this._match(k);break}}return{type:"MultiSelectHash",children:pt}}},X.prototype={search:function(z,W){return this.visit(z,W)},visit:function(z,W){var G,pt,mt,Ot,Ct,Vt,Qt,ee,Kt;switch(z.type){case"Field":return W!==null&&n(W)?(Vt=W[z.name])===void 0?null:Vt:null;case"Subexpression":for(mt=this.visit(z.children[0],W),Kt=1;Kt<z.children.length;Kt++)if((mt=this.visit(z.children[1],mt))===null)return null;return mt;case"IndexExpression":return Qt=this.visit(z.children[0],W),this.visit(z.children[1],Qt);case"Index":if(!t(W))return null;var ue=z.value;return ue<0&&(ue=W.length+ue),(mt=W[ue])===void 0&&(mt=null),mt;case"Slice":if(!t(W))return null;var Me=z.children.slice(0),tn=this.computeSliceParams(W.length,Me),le=tn[0],wn=tn[1],Ne=tn[2];if(mt=[],Ne>0)for(Kt=le;Kt<wn;Kt+=Ne)mt.push(W[Kt]);else for(Kt=le;Kt>wn;Kt+=Ne)mt.push(W[Kt]);return mt;case"Projection":var mn=this.visit(z.children[0],W);if(!t(mn))return null;for(ee=[],Kt=0;Kt<mn.length;Kt++)(pt=this.visit(z.children[1],mn[Kt]))!==null&&ee.push(pt);return ee;case"ValueProjection":if(!n(mn=this.visit(z.children[0],W)))return null;ee=[];var Ye=function(Pr){for(var Et=Object.keys(Pr),ie=[],Be=0;Be<Et.length;Be++)ie.push(Pr[Et[Be]]);return ie}(mn);for(Kt=0;Kt<Ye.length;Kt++)(pt=this.visit(z.children[1],Ye[Kt]))!==null&&ee.push(pt);return ee;case"FilterProjection":if(!t(mn=this.visit(z.children[0],W)))return null;var Ke=[],qn=[];for(Kt=0;Kt<mn.length;Kt++)o(G=this.visit(z.children[2],mn[Kt]))||Ke.push(mn[Kt]);for(var In=0;In<Ke.length;In++)(pt=this.visit(z.children[1],Ke[In]))!==null&&qn.push(pt);return qn;case"Comparator":switch(Ot=this.visit(z.children[0],W),Ct=this.visit(z.children[1],W),z.name){case K:mt=r(Ot,Ct);break;case A:mt=!r(Ot,Ct);break;case R:mt=Ot>Ct;break;case F:mt=Ot>=Ct;break;case q:mt=Ot<Ct;break;case O:mt=Ot<=Ct;break;default:throw new Error("Unknown comparator: "+z.name)}return mt;case _:var Zn=this.visit(z.children[0],W);if(!t(Zn))return null;var Sn=[];for(Kt=0;Kt<Zn.length;Kt++)t(pt=Zn[Kt])?Sn.push.apply(Sn,pt):Sn.push(pt);return Sn;case"Identity":return W;case"MultiSelectList":if(W===null)return null;for(ee=[],Kt=0;Kt<z.children.length;Kt++)ee.push(this.visit(z.children[Kt],W));return ee;case"MultiSelectHash":if(W===null)return null;var En;for(ee={},Kt=0;Kt<z.children.length;Kt++)ee[(En=z.children[Kt]).name]=this.visit(En.value,W);return ee;case"OrExpression":return o(G=this.visit(z.children[0],W))&&(G=this.visit(z.children[1],W)),G;case"AndExpression":return o(Ot=this.visit(z.children[0],W))===!0?Ot:this.visit(z.children[1],W);case"NotExpression":return o(Ot=this.visit(z.children[0],W));case"Literal":return z.value;case C:return Qt=this.visit(z.children[0],W),this.visit(z.children[1],Qt);case S:return W;case"Function":var Nn=[];for(Kt=0;Kt<z.children.length;Kt++)Nn.push(this.visit(z.children[Kt],W));return this.runtime.callFunction(z.name,Nn);case"ExpressionReference":var sr=z.children[0];return sr.jmespathType=N,sr;default:throw new Error("Unknown node type: "+z.type)}},computeSliceParams:function(z,W){var G=W[0],pt=W[1],mt=W[2],Ot=[null,null,null];if(mt===null)mt=1;else if(mt===0){var Ct=new Error("Invalid slice, step cannot be 0");throw Ct.name="RuntimeError",Ct}var Vt=mt<0;return G=G===null?Vt?z-1:0:this.capSliceRange(z,G,mt),pt=pt===null?Vt?-1:z:this.capSliceRange(z,pt,mt),Ot[0]=G,Ot[1]=pt,Ot[2]=mt,Ot},capSliceRange:function(z,W,G){return W<0?(W+=z)<0&&(W=G<0?-1:0):W>=z&&(W=G<0?z-1:z),W}},_t.prototype={callFunction:function(z,W){var G=this.functionTable[z];if(G===void 0)throw new Error("Unknown function: "+z+"()");return this._validateArgs(z,W,G._signature),G._func.call(this,W)},_validateArgs:function(z,W,G){var pt,mt,Ot,Ct;if(G[G.length-1].variadic){if(W.length<G.length)throw pt=G.length===1?" argument":" arguments",new Error("ArgumentError: "+z+"() takes at least"+G.length+pt+" but received "+W.length)}else if(W.length!==G.length)throw pt=G.length===1?" argument":" arguments",new Error("ArgumentError: "+z+"() takes "+G.length+pt+" but received "+W.length);for(var Vt=0;Vt<G.length;Vt++){Ct=!1,mt=G[Vt].types,Ot=this._getTypeName(W[Vt]);for(var Qt=0;Qt<mt.length;Qt++)if(this._typeMatches(Ot,mt[Qt],W[Vt])){Ct=!0;break}if(!Ct){var ee=mt.map(function(Kt){return p[Kt]}).join(",");throw new Error("TypeError: "+z+"() expected argument "+(Vt+1)+" to be type "+ee+" but received type "+p[Ot]+" instead.")}}},_typeMatches:function(z,W,G){if(W===s)return!0;if(W!==h&&W!==d&&W!==u)return z===W;if(W===u)return z===u;if(z===u){var pt;W===d?pt=a:W===h&&(pt=c);for(var mt=0;mt<G.length;mt++)if(!this._typeMatches(this._getTypeName(G[mt]),pt,G[mt]))return!1;return!0}},_getTypeName:function(z){switch(Object.prototype.toString.call(z)){case"[object String]":return c;case"[object Number]":return a;case"[object Array]":return u;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return z.jmespathType===N?f:l}},_functionStartsWith:function(z){return z[0].lastIndexOf(z[1])===0},_functionEndsWith:function(z){var W=z[0],G=z[1];return W.indexOf(G,W.length-G.length)!==-1},_functionReverse:function(z){if(this._getTypeName(z[0])===c){for(var W=z[0],G="",pt=W.length-1;pt>=0;pt--)G+=W[pt];return G}var mt=z[0].slice(0);return mt.reverse(),mt},_functionAbs:function(z){return Math.abs(z[0])},_functionCeil:function(z){return Math.ceil(z[0])},_functionAvg:function(z){for(var W=0,G=z[0],pt=0;pt<G.length;pt++)W+=G[pt];return W/G.length},_functionContains:function(z){return z[0].indexOf(z[1])>=0},_functionFloor:function(z){return Math.floor(z[0])},_functionLength:function(z){return n(z[0])?Object.keys(z[0]).length:z[0].length},_functionMap:function(z){for(var W=[],G=this._interpreter,pt=z[0],mt=z[1],Ot=0;Ot<mt.length;Ot++)W.push(G.visit(pt,mt[Ot]));return W},_functionMerge:function(z){for(var W={},G=0;G<z.length;G++){var pt=z[G];for(var mt in pt)W[mt]=pt[mt]}return W},_functionMax:function(z){if(z[0].length>0){if(this._getTypeName(z[0][0])===a)return Math.max.apply(Math,z[0]);for(var W=z[0],G=W[0],pt=1;pt<W.length;pt++)G.localeCompare(W[pt])<0&&(G=W[pt]);return G}return null},_functionMin:function(z){if(z[0].length>0){if(this._getTypeName(z[0][0])===a)return Math.min.apply(Math,z[0]);for(var W=z[0],G=W[0],pt=1;pt<W.length;pt++)W[pt].localeCompare(G)<0&&(G=W[pt]);return G}return null},_functionSum:function(z){for(var W=0,G=z[0],pt=0;pt<G.length;pt++)W+=G[pt];return W},_functionType:function(z){switch(this._getTypeName(z[0])){case a:return"number";case c:return"string";case u:return"array";case l:return"object";case 5:return"boolean";case f:return"expref";case 7:return"null"}},_functionKeys:function(z){return Object.keys(z[0])},_functionValues:function(z){for(var W=z[0],G=Object.keys(W),pt=[],mt=0;mt<G.length;mt++)pt.push(W[G[mt]]);return pt},_functionJoin:function(z){var W=z[0];return z[1].join(W)},_functionToArray:function(z){return this._getTypeName(z[0])===u?z[0]:[z[0]]},_functionToString:function(z){return this._getTypeName(z[0])===c?z[0]:JSON.stringify(z[0])},_functionToNumber:function(z){var W,G=this._getTypeName(z[0]);return G===a?z[0]:G!==c||(W=+z[0],isNaN(W))?null:W},_functionNotNull:function(z){for(var W=0;W<z.length;W++)if(this._getTypeName(z[W])!==7)return z[W];return null},_functionSort:function(z){var W=z[0].slice(0);return W.sort(),W},_functionSortBy:function(z){var W=z[0].slice(0);if(W.length===0)return W;var G=this._interpreter,pt=z[1],mt=this._getTypeName(G.visit(pt,W[0]));if([a,c].indexOf(mt)<0)throw new Error("TypeError");for(var Ot=this,Ct=[],Vt=0;Vt<W.length;Vt++)Ct.push([Vt,W[Vt]]);Ct.sort(function(ee,Kt){var ue=G.visit(pt,ee[1]),Me=G.visit(pt,Kt[1]);if(Ot._getTypeName(ue)!==mt)throw new Error("TypeError: expected "+mt+", received "+Ot._getTypeName(ue));if(Ot._getTypeName(Me)!==mt)throw new Error("TypeError: expected "+mt+", received "+Ot._getTypeName(Me));return ue>Me?1:ue<Me?-1:ee[0]-Kt[0]});for(var Qt=0;Qt<Ct.length;Qt++)W[Qt]=Ct[Qt][1];return W},_functionMaxBy:function(z){for(var W,G,pt=z[1],mt=z[0],Ot=this.createKeyFunction(pt,[a,c]),Ct=-1/0,Vt=0;Vt<mt.length;Vt++)(G=Ot(mt[Vt]))>Ct&&(Ct=G,W=mt[Vt]);return W},_functionMinBy:function(z){for(var W,G,pt=z[1],mt=z[0],Ot=this.createKeyFunction(pt,[a,c]),Ct=1/0,Vt=0;Vt<mt.length;Vt++)(G=Ot(mt[Vt]))<Ct&&(Ct=G,W=mt[Vt]);return W},createKeyFunction:function(z,W){var G=this,pt=this._interpreter;return function(mt){var Ot=pt.visit(z,mt);if(W.indexOf(G._getTypeName(Ot))<0){var Ct="TypeError: expected one of "+W+", received "+G._getTypeName(Ot);throw new Error(Ct)}return Ot}}},e.tokenize=function(z){return new Y().tokenize(z)},e.compile=function(z){return new it().parse(z)},e.search=function(z,W){var G=new it,pt=new _t,mt=new X(pt);pt._interpreter=mt;var Ot=G.parse(W);return mt.search(Ot,z)},e.strictDeepEqual=r})(UH);l2(UH);/*!
127
+ * vanilla-picker v2.12.2
128
+ * https://vanilla-picker.js.org
129
+ *
130
+ * Copyright 2017-2023 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
131
+ * Released under the ISC license.
132
+ */var T_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R_=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),am=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(n,r){var o=[],i=!0,a=!1,s=void 0;try{for(var c,u=n[Symbol.iterator]();!(i=(c=u.next()).done)&&(o.push(c.value),!r||o.length!==r);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return this.indexOf(e)===0},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var i2t={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function j9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString())||"0"}var a2t=function(){function e(t,n,r,o){T_(this,e);var i=this;if(t!==void 0)if(Array.isArray(t))this.rgba=t;else if(r===void 0){var a=t&&""+t;a&&function(s){if(s.startsWith("hsl")){var c=s.match(/([\-\d\.e]+)/g).map(Number),u=am(c,4),l=u[0],f=u[1],d=u[2],h=u[3];h===void 0&&(h=1),l/=360,f/=100,d/=100,i.hsla=[l,f,d,h]}else if(s.startsWith("rgb")){var p=s.match(/([\-\d\.e]+)/g).map(Number),v=am(p,4),m=v[0],g=v[1],y=v[2],b=v[3];b===void 0&&(b=1),i.rgba=[m,g,y,b]}else s.startsWith("#")?i.rgba=e.hexToRgb(s):i.rgba=e.nameToRgb(s)||e.hexToRgb(s)}(a.toLowerCase())}else this.rgba=[t,n,r,o===void 0?1:o]}return R_(e,[{key:"printRGB",value:function(t){var n=(t?this.rgba:this.rgba.slice(0,3)).map(function(r,o){return j9(r,o===3?3:0)});return t?"rgba("+n+")":"rgb("+n+")"}},{key:"printHSL",value:function(t){var n=[360,100,100,1],r=["","%","%",""],o=(t?this.hsla:this.hsla.slice(0,3)).map(function(i,a){return j9(i*n[a],a===3?3:1)+r[a]});return t?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(t){var n=this.hex;return t?n:n.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(t){t.length===3&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(t){t.length===3&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var t=this.rgba.map(function(n,r){return r<3?n.toString(16):Math.round(255*n).toString(16)});return"#"+t.map(function(n){return n.padStart(2,"0")}).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(t){var n=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!n.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var r=n.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(o){return parseInt(o,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=i2t[n];return r===void 0?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var n=am(t,4),r=n[0],o=n[1],i=n[2],a=n[3];r/=255,o/=255,i/=255;var s=Math.max(r,o,i),c=Math.min(r,o,i),u=void 0,l=void 0,f=(s+c)/2;if(s===c)u=l=0;else{var d=s-c;switch(l=f>.5?d/(2-s-c):d/(s+c),s){case r:u=(o-i)/d+(o<i?6:0);break;case o:u=(i-r)/d+2;break;case i:u=(r-o)/d+4}u/=6}return[u,l,f,a]}},{key:"hslToRgb",value:function(t){var n=am(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=void 0,c=void 0,u=void 0;if(o===0)s=c=u=i;else{var l=function(p,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<.16666666666666666?p+6*(v-p)*m:m<.5?v:m<.6666666666666666?p+(v-p)*(.6666666666666666-m)*6:p},f=i<.5?i*(1+o):i+o-i*o,d=2*i-f;s=l(d,f,r+1/3),c=l(d,f,r),u=l(d,f,r-1/3)}var h=[255*s,255*c,255*u].map(Math.round);return h[3]=a,h}}]),e}(),s2t=function(){function e(){T_(this,e),this._events=[]}return R_(e,[{key:"add",value:function(t,n,r){t.addEventListener(n,r,!1),this._events.push({target:t,type:n,handler:r})}},{key:"remove",value:function(t,n,r){this._events=this._events.filter(function(o){var i=!0;return t&&t!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&e._doRemove(o.target,o.type,o.handler),!i})}},{key:"destroy",value:function(){this._events.forEach(function(t){return e._doRemove(t.target,t.type,t.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(t,n,r){t.removeEventListener(n,r,!1)}}]),e}();function sb(e,t,n){var r=!1;function o(c,u,l){return Math.max(u,Math.min(c,l))}function i(c,u,l){if(l&&(r=!0),r){c.preventDefault();var f=t.getBoundingClientRect(),d=f.width,h=f.height,p=u.clientX,v=u.clientY,m=o(p-f.left,0,d),g=o(v-f.top,0,h);n(m/d,g/h)}}function a(c,u){(c.buttons===void 0?c.which:c.buttons)===1?i(c,c,u):r=!1}function s(c,u){c.touches.length===1?i(c,c.touches[0],u):r=!1}e.add(t,"mousedown",function(c){a(c,!0)}),e.add(t,"touchstart",function(c){s(c,!0)}),e.add(window,"mousemove",a),e.add(t,"touchmove",s),e.add(window,"mouseup",function(c){r=!1}),e.add(t,"touchend",function(c){r=!1}),e.add(t,"touchcancel",function(c){r=!1})}var WH="keydown",sm="mousedown",cb="focusin";function Ba(e,t){return(t||document).querySelector(e)}function KH(e){e.preventDefault(),e.stopPropagation()}function ub(e,t,n,r,o){e.add(t,WH,function(i){n.indexOf(i.key)>=0&&(o&&KH(i),r(i))})}var JH=function(){function e(t){T_(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new s2t,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return R_(e,[{key:"setOptions",value:function(t){var n=this;if(t){var r=this.settings;if(t instanceof HTMLElement)r.parent=t;else{r.parent&&t.parent&&r.parent!==t.parent&&(this._events.remove(r.parent),this._popupInited=!1),function(s,c,u){for(var l in s)u&&u.indexOf(l)>=0||(c[l]=s[l])}(t,r),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var o=t.color||t.colour;o&&this._setColor(o)}var i=r.parent;if(i&&r.popup&&!this._popupInited){var a=function(s){return n.openHandler(s)};this._events.add(i,"click",a),ub(this._events,i,[" ","Spacebar","Enter"],a),this._popupInited=!0}else t.parent&&!r.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var n=t&&t.type===WH?this._domEdit:this.domElement;setTimeout(function(){return n.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var n=t&&t.type,r=!1;if(t)if(n===sm||n===cb){var o=(this.__containedEvent||0)+100;t.timeStamp>o&&(r=!0)}else KH(t),r=!0;else r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",n!==sm&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,n){this.closeHandler(),this.setOptions(t),n&&this.openHandler()}},{key:"setColor",value:function(t,n){this._setColor(t,{silent:n})}},{key:"_setColor",value:function(t,n){if(typeof t=="string"&&(t=t.trim()),t){n=n||{};var r=void 0;try{r=new a2t(t)}catch(i){if(n.failSilently)return;throw i}if(!this.settings.alpha){var o=r.hsla;o[3]=1,r.hsla=o}this.colour=this.color=r,this._setHSLA(null,null,null,null,n)}}},{key:"setColour",value:function(t,n){this.setColor(t,n)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var n,r,o=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',i=(n=o,(r=document.createElement("div")).innerHTML=n,r.firstElementChild);return this.domElement=i,this._domH=Ba(".picker_hue",i),this._domSL=Ba(".picker_sl",i),this._domA=Ba(".picker_alpha",i),this._domEdit=Ba(".picker_editor input",i),this._domSample=Ba(".picker_sample",i),this._domOkay=Ba(".picker_done button",i),this._domCancel=Ba(".picker_cancel button",i),i.classList.add("layout_"+this.settings.layout),this.settings.alpha||i.classList.add("no_alpha"),this.settings.editor||i.classList.add("no_editor"),this.settings.cancelButton||i.classList.add("no_cancel"),this._ifPopup(function(){return i.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var t=this,n=this,r=this.domElement,o=this._events;function i(c,u,l){o.add(c,u,l)}i(r,"click",function(c){return c.preventDefault()}),sb(o,this._domH,function(c,u){return n._setHSLA(c)}),sb(o,this._domSL,function(c,u){return n._setHSLA(null,c,1-u)}),this.settings.alpha&&sb(o,this._domA,function(c,u){return n._setHSLA(null,null,null,1-u)});var a=this._domEdit;i(a,"input",function(c){n._setColor(this.value,{fromEditor:!0,failSilently:!0})}),i(a,"focus",function(c){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var c=function(l){return t.closeHandler(l)};i(window,sm,c),i(window,cb,c),ub(o,r,["Esc","Escape"],c);var u=function(l){t.__containedEvent=l.timeStamp};i(r,sm,u),i(r,cb,u),i(t._domCancel,"click",c)});var s=function(c){t._ifPopup(function(){return t.closeHandler(c)}),t.onDone&&t.onDone(t.colour)};i(this._domOkay,"click",s),ub(o,r,["Enter"],s)}},{key:"_setPosition",value:function(){var t=this.settings.parent,n=this.domElement;t!==n.parentNode&&t.appendChild(n),this._ifPopup(function(r){getComputedStyle(t).position==="static"&&(t.style.position="relative");var o=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(i){i===o?n.classList.add(i):n.classList.remove(i)}),n.classList.add(o)})}},{key:"_setHSLA",value:function(t,n,r,o,i){i=i||{};var a=this.colour,s=a.hsla;[t,n,r,o].forEach(function(c,u){(c||c===0)&&(s[u]=c)}),a.hsla=s,this._updateUI(i),this.onChange&&!i.silent&&this.onChange(a)}},{key:"_updateUI",value:function(t){if(this.domElement){t=t||{};var n=this.colour,r=n.hsla,o="hsl("+360*r[0]+", 100%, 50%)",i=n.hslString,a=n.hslaString,s=this._domH,c=this._domSL,u=this._domA,l=Ba(".picker_selector",s),f=Ba(".picker_selector",c),d=Ba(".picker_selector",u);b(0,l,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=o,b(0,f,r[1]),w(0,f,1-r[2]),c.style.color=i,w(0,d,1-r[3]);var h=i,p=h.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[h,p]+")";if(this._domA.style.background=v+`, linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
133
+ linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!t.fromEditor){var m=this.settings.editorFormat,g=this.settings.alpha,y=void 0;switch(m){case"rgb":y=n.printRGB(g);break;case"hsl":y=n.printHSL(g);break;default:y=n.printHex(g)}this._domEdit.value=y}this._domSample.style.color=a}function b(x,k,j){k.style.left=100*j+"%"}function w(x,k,j){k.style.top=100*j+"%"}}},{key:"_ifPopup",value:function(t,n){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):n&&n()}},{key:"_toggleDOM",value:function(t){var n=this.domElement;if(!n)return!1;var r=t?"":"none",o=n.style.display!==r;return o&&(n.style.display=r),o}}]),e}(),lb=document.createElement("style");lb.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lb),JH.StyleElement=lb;var c2t=Object.freeze({__proto__:null,default:JH}),u2t=typeof global=="object"&&global&&global.Object===Object&&global;const GH=u2t;var l2t=typeof self=="object"&&self&&self.Object===Object&&self,f2t=GH||l2t||Function("return this")();const ys=f2t;var d2t=ys.Symbol;const hs=d2t;var QH=Object.prototype,h2t=QH.hasOwnProperty,p2t=QH.toString,Md=hs?hs.toStringTag:void 0;function v2t(e){var t=h2t.call(e,Md),n=e[Md];try{e[Md]=void 0;var r=!0}catch{}var o=p2t.call(e);return r&&(t?e[Md]=n:delete e[Md]),o}var m2t=Object.prototype,g2t=m2t.toString;function y2t(e){return g2t.call(e)}var b2t="[object Null]",w2t="[object Undefined]",_9=hs?hs.toStringTag:void 0;function vl(e){return e==null?e===void 0?w2t:b2t:_9&&_9 in Object(e)?v2t(e):y2t(e)}function ps(e){return e!=null&&typeof e=="object"}var x2t="[object Symbol]";function I_(e){return typeof e=="symbol"||ps(e)&&vl(e)==x2t}function k2t(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var j2t=Array.isArray;const Yi=j2t;var _2t=1/0,S9=hs?hs.prototype:void 0,$9=S9?S9.toString:void 0;function YH(e){if(typeof e=="string")return e;if(Yi(e))return k2t(e,YH)+"";if(I_(e))return $9?$9.call(e):"";var t=e+"";return t=="0"&&1/e==-_2t?"-0":t}function bs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function N_(e){return e}var S2t="[object AsyncFunction]",$2t="[object Function]",C2t="[object GeneratorFunction]",E2t="[object Proxy]";function D_(e){if(!bs(e))return!1;var t=vl(e);return t==$2t||t==C2t||t==S2t||t==E2t}var O2t=ys["__core-js_shared__"];const fb=O2t;var C9=function(){var e=/[^.]+$/.exec(fb&&fb.keys&&fb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M2t(e){return!!C9&&C9 in e}var A2t=Function.prototype,P2t=A2t.toString;function ml(e){if(e!=null){try{return P2t.call(e)}catch{}try{return e+""}catch{}}return""}var T2t=/[\\^$.*+?()[\]{}|]/g,R2t=/^\[object .+?Constructor\]$/,I2t=Function.prototype,N2t=Object.prototype,D2t=I2t.toString,z2t=N2t.hasOwnProperty,L2t=RegExp("^"+D2t.call(z2t).replace(T2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B2t(e){if(!bs(e)||M2t(e))return!1;var t=D_(e)?L2t:R2t;return t.test(ml(e))}function F2t(e,t){return e==null?void 0:e[t]}function gl(e,t){var n=F2t(e,t);return B2t(n)?n:void 0}var q2t=gl(ys,"WeakMap");const Yx=q2t;var E9=Object.create,H2t=function(){function e(){}return function(t){if(!bs(t))return{};if(E9)return E9(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const V2t=H2t;function U2t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function XH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var W2t=800,K2t=16,J2t=Date.now;function G2t(e){var t=0,n=0;return function(){var r=J2t(),o=K2t-(r-n);if(n=r,o>0){if(++t>=W2t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Q2t(e){return function(){return e}}var Y2t=function(){try{var e=gl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const r0=Y2t;var X2t=r0?function(e,t){return r0(e,"toString",{configurable:!0,enumerable:!1,value:Q2t(t),writable:!0})}:N_;const Z2t=X2t;var tjt=G2t(Z2t);const ejt=tjt;function njt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var rjt=9007199254740991,ojt=/^(?:0|[1-9]\d*)$/;function z_(e,t){var n=typeof e;return t=t??rjt,!!t&&(n=="number"||n!="symbol"&&ojt.test(e))&&e>-1&&e%1==0&&e<t}function y1(e,t,n){t=="__proto__"&&r0?r0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bp(e,t){return e===t||e!==e&&t!==t}var ijt=Object.prototype,ajt=ijt.hasOwnProperty;function ZH(e,t,n){var r=e[t];(!(ajt.call(e,t)&&Bp(r,n))||n===void 0&&!(t in e))&&y1(e,t,n)}function cd(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?y1(n,s,c):ZH(n,s,c)}return n}var O9=Math.max;function sjt(e,t,n){return t=O9(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=O9(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),U2t(e,this,s)}}function cjt(e,t){return ejt(sjt(e,t,N_),e+"")}var ujt=9007199254740991;function L_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ujt}function b1(e){return e!=null&&L_(e.length)&&!D_(e)}function ljt(e,t,n){if(!bs(n))return!1;var r=typeof t;return(r=="number"?b1(n)&&z_(t,n.length):r=="string"&&t in n)?Bp(n[t],e):!1}function tV(e){return cjt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&ljt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var fjt=Object.prototype;function B_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fjt;return e===n}function djt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hjt="[object Arguments]";function M9(e){return ps(e)&&vl(e)==hjt}var eV=Object.prototype,pjt=eV.hasOwnProperty,vjt=eV.propertyIsEnumerable,mjt=M9(function(){return arguments}())?M9:function(e){return ps(e)&&pjt.call(e,"callee")&&!vjt.call(e,"callee")};const o0=mjt;function gjt(){return!1}var nV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A9=nV&&typeof module=="object"&&module&&!module.nodeType&&module,yjt=A9&&A9.exports===nV,P9=yjt?ys.Buffer:void 0,bjt=P9?P9.isBuffer:void 0,wjt=bjt||gjt;const cp=wjt;var xjt="[object Arguments]",kjt="[object Array]",jjt="[object Boolean]",_jt="[object Date]",Sjt="[object Error]",$jt="[object Function]",Cjt="[object Map]",Ejt="[object Number]",Ojt="[object Object]",Mjt="[object RegExp]",Ajt="[object Set]",Pjt="[object String]",Tjt="[object WeakMap]",Rjt="[object ArrayBuffer]",Ijt="[object DataView]",Njt="[object Float32Array]",Djt="[object Float64Array]",zjt="[object Int8Array]",Ljt="[object Int16Array]",Bjt="[object Int32Array]",Fjt="[object Uint8Array]",qjt="[object Uint8ClampedArray]",Hjt="[object Uint16Array]",Vjt="[object Uint32Array]",gr={};gr[Njt]=gr[Djt]=gr[zjt]=gr[Ljt]=gr[Bjt]=gr[Fjt]=gr[qjt]=gr[Hjt]=gr[Vjt]=!0;gr[xjt]=gr[kjt]=gr[Rjt]=gr[jjt]=gr[Ijt]=gr[_jt]=gr[Sjt]=gr[$jt]=gr[Cjt]=gr[Ejt]=gr[Ojt]=gr[Mjt]=gr[Ajt]=gr[Pjt]=gr[Tjt]=!1;function Ujt(e){return ps(e)&&L_(e.length)&&!!gr[vl(e)]}function F_(e){return function(t){return e(t)}}var rV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=rV&&typeof module=="object"&&module&&!module.nodeType&&module,Wjt=yh&&yh.exports===rV,db=Wjt&&GH.process,Kjt=function(){try{var e=yh&&yh.require&&yh.require("util").types;return e||db&&db.binding&&db.binding("util")}catch{}}();const zf=Kjt;var T9=zf&&zf.isTypedArray,Jjt=T9?F_(T9):Ujt;const q_=Jjt;var Gjt=Object.prototype,Qjt=Gjt.hasOwnProperty;function oV(e,t){var n=Yi(e),r=!n&&o0(e),o=!n&&!r&&cp(e),i=!n&&!r&&!o&&q_(e),a=n||r||o||i,s=a?djt(e.length,String):[],c=s.length;for(var u in e)(t||Qjt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||z_(u,c)))&&s.push(u);return s}function iV(e,t){return function(n){return e(t(n))}}var Yjt=iV(Object.keys,Object);const Xjt=Yjt;var Zjt=Object.prototype,t_t=Zjt.hasOwnProperty;function e_t(e){if(!B_(e))return Xjt(e);var t=[];for(var n in Object(e))t_t.call(e,n)&&n!="constructor"&&t.push(n);return t}function Fp(e){return b1(e)?oV(e):e_t(e)}function n_t(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var r_t=Object.prototype,o_t=r_t.hasOwnProperty;function i_t(e){if(!bs(e))return n_t(e);var t=B_(e),n=[];for(var r in e)r=="constructor"&&(t||!o_t.call(e,r))||n.push(r);return n}function ud(e){return b1(e)?oV(e,!0):i_t(e)}var a_t=tV(function(e,t,n,r){cd(t,ud(t),e,r)});const s_t=a_t;var c_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u_t=/^\w*$/;function H_(e,t){if(Yi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||I_(e)?!0:u_t.test(e)||!c_t.test(e)||t!=null&&e in Object(t)}var l_t=gl(Object,"create");const up=l_t;function f_t(){this.__data__=up?up(null):{},this.size=0}function d_t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var h_t="__lodash_hash_undefined__",p_t=Object.prototype,v_t=p_t.hasOwnProperty;function m_t(e){var t=this.__data__;if(up){var n=t[e];return n===h_t?void 0:n}return v_t.call(t,e)?t[e]:void 0}var g_t=Object.prototype,y_t=g_t.hasOwnProperty;function b_t(e){var t=this.__data__;return up?t[e]!==void 0:y_t.call(t,e)}var w_t="__lodash_hash_undefined__";function x_t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=up&&t===void 0?w_t:t,this}function sl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}sl.prototype.clear=f_t;sl.prototype.delete=d_t;sl.prototype.get=m_t;sl.prototype.has=b_t;sl.prototype.set=x_t;function k_t(){this.__data__=[],this.size=0}function w1(e,t){for(var n=e.length;n--;)if(Bp(e[n][0],t))return n;return-1}var j_t=Array.prototype,__t=j_t.splice;function S_t(e){var t=this.__data__,n=w1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():__t.call(t,n,1),--this.size,!0}function $_t(e){var t=this.__data__,n=w1(t,e);return n<0?void 0:t[n][1]}function C_t(e){return w1(this.__data__,e)>-1}function E_t(e,t){var n=this.__data__,r=w1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function rc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rc.prototype.clear=k_t;rc.prototype.delete=S_t;rc.prototype.get=$_t;rc.prototype.has=C_t;rc.prototype.set=E_t;var O_t=gl(ys,"Map");const lp=O_t;function M_t(){this.size=0,this.__data__={hash:new sl,map:new(lp||rc),string:new sl}}function A_t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function x1(e,t){var n=e.__data__;return A_t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function P_t(e){var t=x1(this,e).delete(e);return this.size-=t?1:0,t}function T_t(e){return x1(this,e).get(e)}function R_t(e){return x1(this,e).has(e)}function I_t(e,t){var n=x1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function oc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oc.prototype.clear=M_t;oc.prototype.delete=P_t;oc.prototype.get=T_t;oc.prototype.has=R_t;oc.prototype.set=I_t;var N_t="Expected a function";function V_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(N_t);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(V_.Cache||oc),n}V_.Cache=oc;var D_t=500;function z_t(e){var t=V_(e,function(r){return n.size===D_t&&n.clear(),r}),n=t.cache;return t}var L_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B_t=/\\(\\)?/g,F_t=z_t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_t,function(n,r,o,i){t.push(o?i.replace(B_t,"$1"):r||n)}),t});const q_t=F_t;function H_t(e){return e==null?"":YH(e)}function aV(e,t){return Yi(e)?e:H_(e,t)?[e]:q_t(H_t(e))}var V_t=1/0;function k1(e){if(typeof e=="string"||I_(e))return e;var t=e+"";return t=="0"&&1/e==-V_t?"-0":t}function sV(e,t){t=aV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[k1(t[n++])];return n&&n==r?e:void 0}function U_t(e,t,n){var r=e==null?void 0:sV(e,t);return r===void 0?n:r}function cV(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var W_t=iV(Object.getPrototypeOf,Object);const U_=W_t;var K_t="[object Object]",J_t=Function.prototype,G_t=Object.prototype,uV=J_t.toString,Q_t=G_t.hasOwnProperty,Y_t=uV.call(Object);function lV(e){if(!ps(e)||vl(e)!=K_t)return!1;var t=U_(e);if(t===null)return!0;var n=Q_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uV.call(n)==Y_t}function X_t(){this.__data__=new rc,this.size=0}function Z_t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function tSt(e){return this.__data__.get(e)}function eSt(e){return this.__data__.has(e)}var nSt=200;function rSt(e,t){var n=this.__data__;if(n instanceof rc){var r=n.__data__;if(!lp||r.length<nSt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oc(r)}return n.set(e,t),this.size=n.size,this}function Sa(e){var t=this.__data__=new rc(e);this.size=t.size}Sa.prototype.clear=X_t;Sa.prototype.delete=Z_t;Sa.prototype.get=tSt;Sa.prototype.has=eSt;Sa.prototype.set=rSt;function oSt(e,t){return e&&cd(t,Fp(t),e)}function iSt(e,t){return e&&cd(t,ud(t),e)}var fV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R9=fV&&typeof module=="object"&&module&&!module.nodeType&&module,aSt=R9&&R9.exports===fV,I9=aSt?ys.Buffer:void 0,N9=I9?I9.allocUnsafe:void 0;function dV(e,t){if(t)return e.slice();var n=e.length,r=N9?N9(n):new e.constructor(n);return e.copy(r),r}function sSt(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function hV(){return[]}var cSt=Object.prototype,uSt=cSt.propertyIsEnumerable,D9=Object.getOwnPropertySymbols,lSt=D9?function(e){return e==null?[]:(e=Object(e),sSt(D9(e),function(t){return uSt.call(e,t)}))}:hV;const W_=lSt;function fSt(e,t){return cd(e,W_(e),t)}var dSt=Object.getOwnPropertySymbols,hSt=dSt?function(e){for(var t=[];e;)cV(t,W_(e)),e=U_(e);return t}:hV;const pV=hSt;function pSt(e,t){return cd(e,pV(e),t)}function vV(e,t,n){var r=t(e);return Yi(e)?r:cV(r,n(e))}function Xx(e){return vV(e,Fp,W_)}function vSt(e){return vV(e,ud,pV)}var mSt=gl(ys,"DataView");const Zx=mSt;var gSt=gl(ys,"Promise");const tk=gSt;var ySt=gl(ys,"Set");const ek=ySt;var z9="[object Map]",bSt="[object Object]",L9="[object Promise]",B9="[object Set]",F9="[object WeakMap]",q9="[object DataView]",wSt=ml(Zx),xSt=ml(lp),kSt=ml(tk),jSt=ml(ek),_St=ml(Yx),ku=vl;(Zx&&ku(new Zx(new ArrayBuffer(1)))!=q9||lp&&ku(new lp)!=z9||tk&&ku(tk.resolve())!=L9||ek&&ku(new ek)!=B9||Yx&&ku(new Yx)!=F9)&&(ku=function(e){var t=vl(e),n=t==bSt?e.constructor:void 0,r=n?ml(n):"";if(r)switch(r){case wSt:return q9;case xSt:return z9;case kSt:return L9;case jSt:return B9;case _St:return F9}return t});const fp=ku;var SSt=Object.prototype,$St=SSt.hasOwnProperty;function CSt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$St.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ESt=ys.Uint8Array;const i0=ESt;function K_(e){var t=new e.constructor(e.byteLength);return new i0(t).set(new i0(e)),t}function OSt(e,t){var n=t?K_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var MSt=/\w*$/;function ASt(e){var t=new e.constructor(e.source,MSt.exec(e));return t.lastIndex=e.lastIndex,t}var H9=hs?hs.prototype:void 0,V9=H9?H9.valueOf:void 0;function PSt(e){return V9?Object(V9.call(e)):{}}function mV(e,t){var n=t?K_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var TSt="[object Boolean]",RSt="[object Date]",ISt="[object Map]",NSt="[object Number]",DSt="[object RegExp]",zSt="[object Set]",LSt="[object String]",BSt="[object Symbol]",FSt="[object ArrayBuffer]",qSt="[object DataView]",HSt="[object Float32Array]",VSt="[object Float64Array]",USt="[object Int8Array]",WSt="[object Int16Array]",KSt="[object Int32Array]",JSt="[object Uint8Array]",GSt="[object Uint8ClampedArray]",QSt="[object Uint16Array]",YSt="[object Uint32Array]";function XSt(e,t,n){var r=e.constructor;switch(t){case FSt:return K_(e);case TSt:case RSt:return new r(+e);case qSt:return OSt(e,n);case HSt:case VSt:case USt:case WSt:case KSt:case JSt:case GSt:case QSt:case YSt:return mV(e,n);case ISt:return new r;case NSt:case LSt:return new r(e);case DSt:return ASt(e);case zSt:return new r;case BSt:return PSt(e)}}function gV(e){return typeof e.constructor=="function"&&!B_(e)?V2t(U_(e)):{}}var ZSt="[object Map]";function t$t(e){return ps(e)&&fp(e)==ZSt}var U9=zf&&zf.isMap,e$t=U9?F_(U9):t$t;const n$t=e$t;var r$t="[object Set]";function o$t(e){return ps(e)&&fp(e)==r$t}var W9=zf&&zf.isSet,i$t=W9?F_(W9):o$t;const a$t=i$t;var s$t=1,c$t=2,u$t=4,yV="[object Arguments]",l$t="[object Array]",f$t="[object Boolean]",d$t="[object Date]",h$t="[object Error]",bV="[object Function]",p$t="[object GeneratorFunction]",v$t="[object Map]",m$t="[object Number]",wV="[object Object]",g$t="[object RegExp]",y$t="[object Set]",b$t="[object String]",w$t="[object Symbol]",x$t="[object WeakMap]",k$t="[object ArrayBuffer]",j$t="[object DataView]",_$t="[object Float32Array]",S$t="[object Float64Array]",$$t="[object Int8Array]",C$t="[object Int16Array]",E$t="[object Int32Array]",O$t="[object Uint8Array]",M$t="[object Uint8ClampedArray]",A$t="[object Uint16Array]",P$t="[object Uint32Array]",ur={};ur[yV]=ur[l$t]=ur[k$t]=ur[j$t]=ur[f$t]=ur[d$t]=ur[_$t]=ur[S$t]=ur[$$t]=ur[C$t]=ur[E$t]=ur[v$t]=ur[m$t]=ur[wV]=ur[g$t]=ur[y$t]=ur[b$t]=ur[w$t]=ur[O$t]=ur[M$t]=ur[A$t]=ur[P$t]=!0;ur[h$t]=ur[bV]=ur[x$t]=!1;function Lm(e,t,n,r,o,i){var a,s=t&s$t,c=t&c$t,u=t&u$t;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!bs(e))return e;var l=Yi(e);if(l){if(a=CSt(e),!s)return XH(e,a)}else{var f=fp(e),d=f==bV||f==p$t;if(cp(e))return dV(e,s);if(f==wV||f==yV||d&&!o){if(a=c||d?{}:gV(e),!s)return c?pSt(e,iSt(a,e)):fSt(e,oSt(a,e))}else{if(!ur[f])return o?e:{};a=XSt(e,f,s)}}i||(i=new Sa);var h=i.get(e);if(h)return h;i.set(e,a),a$t(e)?e.forEach(function(m){a.add(Lm(m,t,n,m,e,i))}):n$t(e)&&e.forEach(function(m,g){a.set(g,Lm(m,t,n,g,e,i))});var p=u?c?vSt:Xx:c?ud:Fp,v=l?void 0:p(e);return njt(v||e,function(m,g){v&&(g=m,m=e[g]),ZH(a,g,Lm(m,t,n,g,e,i))}),a}var T$t=1,R$t=4;function I$t(e){return Lm(e,T$t|R$t)}var N$t="__lodash_hash_undefined__";function D$t(e){return this.__data__.set(e,N$t),this}function z$t(e){return this.__data__.has(e)}function a0(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oc;++t<n;)this.add(e[t])}a0.prototype.add=a0.prototype.push=D$t;a0.prototype.has=z$t;function L$t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function B$t(e,t){return e.has(t)}var F$t=1,q$t=2;function xV(e,t,n,r,o,i){var a=n&F$t,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&q$t?new a0:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!L$t(t,function(g,y){if(!B$t(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(p===v||o(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function H$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function V$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var U$t=1,W$t=2,K$t="[object Boolean]",J$t="[object Date]",G$t="[object Error]",Q$t="[object Map]",Y$t="[object Number]",X$t="[object RegExp]",Z$t="[object Set]",tCt="[object String]",eCt="[object Symbol]",nCt="[object ArrayBuffer]",rCt="[object DataView]",K9=hs?hs.prototype:void 0,hb=K9?K9.valueOf:void 0;function oCt(e,t,n,r,o,i,a){switch(n){case rCt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nCt:return!(e.byteLength!=t.byteLength||!i(new i0(e),new i0(t)));case K$t:case J$t:case Y$t:return Bp(+e,+t);case G$t:return e.name==t.name&&e.message==t.message;case X$t:case tCt:return e==t+"";case Q$t:var s=H$t;case Z$t:var c=r&U$t;if(s||(s=V$t),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=W$t,a.set(e,t);var l=xV(s(e),s(t),r,o,i,a);return a.delete(e),l;case eCt:if(hb)return hb.call(e)==hb.call(t)}return!1}var iCt=1,aCt=Object.prototype,sCt=aCt.hasOwnProperty;function cCt(e,t,n,r,o,i){var a=n&iCt,s=Xx(e),c=s.length,u=Xx(t),l=u.length;if(c!=l&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:sCt.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=a;++f<c;){d=s[f];var g=e[d],y=t[d];if(r)var b=a?r(y,g,d,t,e,i):r(g,y,d,e,t,i);if(!(b===void 0?g===y||o(g,y,n,r,i):b)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(e),i.delete(t),v}var uCt=1,J9="[object Arguments]",G9="[object Array]",cm="[object Object]",lCt=Object.prototype,Q9=lCt.hasOwnProperty;function fCt(e,t,n,r,o,i){var a=Yi(e),s=Yi(t),c=a?G9:fp(e),u=s?G9:fp(t);c=c==J9?cm:c,u=u==J9?cm:u;var l=c==cm,f=u==cm,d=c==u;if(d&&cp(e)){if(!cp(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new Sa),a||q_(e)?xV(e,t,n,r,o,i):oCt(e,t,c,n,r,o,i);if(!(n&uCt)){var h=l&&Q9.call(e,"__wrapped__"),p=f&&Q9.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new Sa),o(v,m,n,r,i)}}return d?(i||(i=new Sa),cCt(e,t,n,r,o,i)):!1}function J_(e,t,n,r,o){return e===t?!0:e==null||t==null||!ps(e)&&!ps(t)?e!==e&&t!==t:fCt(e,t,n,r,J_,o)}var dCt=1,hCt=2;function pCt(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Sa;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?J_(l,u,dCt|hCt,r,f):d))return!1}}return!0}function kV(e){return e===e&&!bs(e)}function vCt(e){for(var t=Fp(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,kV(o)]}return t}function jV(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function mCt(e){var t=vCt(e);return t.length==1&&t[0][2]?jV(t[0][0],t[0][1]):function(n){return n===e||pCt(n,e,t)}}function gCt(e,t){return e!=null&&t in Object(e)}function yCt(e,t,n){t=aV(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=k1(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&L_(o)&&z_(a,o)&&(Yi(e)||o0(e)))}function bCt(e,t){return e!=null&&yCt(e,t,gCt)}var wCt=1,xCt=2;function kCt(e,t){return H_(e)&&kV(t)?jV(k1(e),t):function(n){var r=U_t(n,e);return r===void 0&&r===t?bCt(n,e):J_(t,r,wCt|xCt)}}function jCt(e){return function(t){return t==null?void 0:t[e]}}function _Ct(e){return function(t){return sV(t,e)}}function SCt(e){return H_(e)?jCt(k1(e)):_Ct(e)}function $Ct(e){return typeof e=="function"?e:e==null?N_:typeof e=="object"?Yi(e)?kCt(e[0],e[1]):mCt(e):SCt(e)}function CCt(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var ECt=CCt();const _V=ECt;function OCt(e,t){return e&&_V(e,t,Fp)}function nk(e,t,n){(n!==void 0&&!Bp(e[t],n)||n===void 0&&!(t in e))&&y1(e,t,n)}function MCt(e){return ps(e)&&b1(e)}function rk(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ACt(e){return cd(e,ud(e))}function PCt(e,t,n,r,o,i,a){var s=rk(e,n),c=rk(t,n),u=a.get(c);if(u){nk(e,n,u);return}var l=i?i(s,c,n+"",e,t,a):void 0,f=l===void 0;if(f){var d=Yi(c),h=!d&&cp(c),p=!d&&!h&&q_(c);l=c,d||h||p?Yi(s)?l=s:MCt(s)?l=XH(s):h?(f=!1,l=dV(c,!0)):p?(f=!1,l=mV(c,!0)):l=[]:lV(c)||o0(c)?(l=s,o0(s)?l=ACt(s):(!bs(s)||D_(s))&&(l=gV(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),nk(e,n,l)}function SV(e,t,n,r,o){e!==t&&_V(t,function(i,a){if(o||(o=new Sa),bs(i))PCt(e,t,a,n,SV,r,o);else{var s=r?r(rk(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),nk(e,a,s)}},ud)}var TCt=tV(function(e,t,n,r){SV(e,t,n,r)});const RCt=TCt;function ICt(e,t){var n={};return t=$Ct(t),OCt(e,function(r,o,i){y1(n,t(r,o,i),r)}),n}var s0=function(){return s0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s0.apply(this,arguments)};function NCt(e){return e.toLowerCase()}var DCt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],zCt=/[^A-Z0-9]+/gi;function LCt(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?DCt:n,o=t.stripRegexp,i=o===void 0?zCt:o,a=t.transform,s=a===void 0?NCt:a,c=t.delimiter,u=c===void 0?" ":c,l=Y9(Y9(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(d-1)==="\0";)d--;return l.slice(f,d).split("\0").map(s).join(u)}function Y9(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function $V(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function BCt(e,t){return t===void 0&&(t={}),LCt(e,s0({delimiter:"",transform:$V},t))}function FCt(e,t){return t===0?e.toLowerCase():$V(e,t)}function qCt(e,t){return t===void 0&&(t={}),BCt(e,s0({transform:FCt},t))}function HCt(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const VCt=HCt("String,Number,Boolean,Function,Symbol,BigInt");function UCt(e){const t=e==null?void 0:e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function WCt(e,t){let n;const r=UCt(t);if(VCt(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=bs(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function KCt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const o=Array.isArray(t)?t:[t],i=[];for(let a=0;a<o.length&&!r;a++){const{valid:s,expectedType:c}=WCt(e,o[a]);i.push(c||""),r=s}if(!r)throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function JCt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let i=e.length-1;i>=0;i--)r.push(e[i]);const o=n?(i,a)=>typeof i=="function"&&typeof a=="function"?n(a,i):void 0:void 0;return t==="deep"?RCt(...r,o):s_t(...r,o)}function GCt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function Tl(e,t={}){const{type:n,default:r,defaultIsDynamic:o=!1,required:i=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:c=!1,mergeFunctionApplyOnlyToDefault:u=!0}=t;let{mergeObject:l="deep",mergeFunction:f=!1}=t;const d=[];let h,p=!1,v=!1;const m=g=>{if(g!==void 0){KCt({type:n,prop:g,validator:a});const y=lV(g),b=typeof g=="function";return p=y,v=b,y?(g=I$t(g),s?ICt(g,(w,x)=>qCt(x,{stripRegexp:/-/g})):g):g}};for(const g of e)d.push(m(g));if(!o)d.push(m(r));else if(typeof r!="function")throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);p||(l=!1,v||(f=!1));for(let g=0;g<d.length;g++){const y=d[g];if(y!==void 0){g===d.length-1?h=y:l?h=JCt(c?[y,r]:d,{mergeObject:l,mergeFunction:f}):f?h=GCt(u?[y,r]:d,{mergeFunction:f}):h=y;break}}if(i&&[void 0,null].includes(h))throw new Error("Missing required prop");return o?Tl(e,{...t,default:r(h),defaultIsDynamic:!1}):h}function X9(e){const t=Array.from(e);return t[0]=t[0].toUpperCase(),t.unshift("n"),t.unshift("o"),t.join("")}function QCt(e,t=[]){const n={props:{},attrs:{},listeners:{},hooks:{},slots:{}},r=Array.isArray(t)?t:Object.keys(t);for(const o in e)if(o.startsWith("@")){const i=o.substring(1);i.startsWith("vnode")?n.hooks[X9(i)]=e[o]:n.listeners[X9(i)]=e[o]}else if(o.startsWith("#")){const i=o.substring(1);i&&(n.slots[i]=e[o])}else r.includes(o)?n.props[o]=e[o]:n.attrs[o]=e[o];return n}var YCt=typeof global=="object"&&global&&global.Object===Object&&global;const XCt=YCt;var ZCt=typeof self=="object"&&self&&self.Object===Object&&self,t3t=XCt||ZCt||Function("return this")();const CV=t3t;var e3t=CV.Symbol;const c0=e3t;var EV=Object.prototype,n3t=EV.hasOwnProperty,r3t=EV.toString,Ad=c0?c0.toStringTag:void 0;function o3t(e){var t=n3t.call(e,Ad),n=e[Ad];try{e[Ad]=void 0;var r=!0}catch{}var o=r3t.call(e);return r&&(t?e[Ad]=n:delete e[Ad]),o}var i3t=Object.prototype,a3t=i3t.toString;function s3t(e){return a3t.call(e)}var c3t="[object Null]",u3t="[object Undefined]",Z9=c0?c0.toStringTag:void 0;function l3t(e){return e==null?e===void 0?u3t:c3t:Z9&&Z9 in Object(e)?o3t(e):s3t(e)}function f3t(e){return e!=null&&typeof e=="object"}var d3t="[object Symbol]";function h3t(e){return typeof e=="symbol"||f3t(e)&&l3t(e)==d3t}var p3t=/\s/;function v3t(e){for(var t=e.length;t--&&p3t.test(e.charAt(t)););return t}var m3t=/^\s+/;function g3t(e){return e&&e.slice(0,v3t(e)+1).replace(m3t,"")}function ok(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var t7=0/0,y3t=/^[-+]0x[0-9a-f]+$/i,b3t=/^0b[01]+$/i,w3t=/^0o[0-7]+$/i,x3t=parseInt;function e7(e){if(typeof e=="number")return e;if(h3t(e))return t7;if(ok(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ok(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=g3t(e);var n=b3t.test(e);return n||w3t.test(e)?x3t(e.slice(2),n?2:8):y3t.test(e)?t7:+e}var k3t=function(){return CV.Date.now()};const pb=k3t;var j3t="Expected a function",_3t=Math.max,S3t=Math.min;function $3t(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(j3t);t=e7(t)||0,ok(n)&&(l=!!n.leading,f="maxWait"in n,i=f?_3t(e7(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(k){var j=r,S=o;return r=o=void 0,u=k,a=e.apply(S,j),a}function p(k){return u=k,s=setTimeout(g,t),l?h(k):a}function v(k){var j=k-c,S=k-u,N=t-j;return f?S3t(N,i-S):N}function m(k){var j=k-c,S=k-u;return c===void 0||j>=t||j<0||f&&S>=i}function g(){var k=pb();if(m(k))return y(k);s=setTimeout(g,v(k))}function y(k){return s=void 0,d&&r?h(k):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function w(){return s===void 0?a:y(pb())}function x(){var k=pb(),j=m(k);if(r=arguments,o=this,c=k,j){if(s===void 0)return p(c);if(f)return clearTimeout(s),s=setTimeout(g,t),h(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=b,x.flush=w,x}const C3t="JsonEditorVue",um="modelValue",n7="update:modelValue",lm=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],OV=Jo({name:C3t,props:{[um]:{},mode:{type:String},...Object.fromEntries(lm.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[n7](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var o;const i=(o=Qs())==null?void 0:o.proxy,a=Tn(),s=Tn(!1),c=Tn(!1),u=$3t(d=>{if(c.value){c.value=!1;return}s.value=!0,n(n7,d.text===void 0?d.json:d.text)},100),l=d=>{n("update:mode",d)},f=(d,h)=>(...p)=>{d(...p),h(...p)};return r==null||r({jsonEditor:a}),vf(()=>{var d;(d=a.value)==null||d.destroy()}),cl(()=>{const d=Tl([e.mode,Bm.mode],{type:String}),h=Tl([e[um],Bm[um]]),p=Object.fromEntries(Array.from(lm,m=>[m,Tl([e[m],Bm[m]])]).filter(([,m])=>m!==void 0)),v=Tl([t,MV,{onChange:u,onChangeMode:l,mode:d,...p,...h!==void 0&&{content:{json:h}}}],{type:Object,mergeFunction:f});a.value=new Xwt({target:i==null?void 0:i.$refs.jsonEditorRef,props:v}),so(()=>e[um],m=>{if(s.value){s.value=!1;return}a.value&&(c.value=!0,a.value.set([void 0,""].includes(m)?{text:""}:{json:m}))},{deep:!0}),so(()=>e.mode,m=>{var g;(g=a.value)==null||g.updateProps({mode:m})}),so(()=>Array.from(lm,m=>e[m]),m=>{var g;(g=a.value)==null||g.updateProps(Object.fromEntries(Array.from(m,(y,b)=>[lm[b],y]).filter(([,y])=>y!==void 0)))}),so(()=>t,m=>{var g;const y={};m.onChange&&(y.onChange=u),m.onChangeMode&&(y.onChangeMode=l),(g=a.value)==null||g.updateProps(Object.getOwnPropertyNames(y).length>0?Tl([m,y],{type:Object,mergeFunction:f}):m)},{deep:!0}),r||(r=m=>{for(const g in m)i[g]=Re(m[g])},r({jsonEditor:a}))}),()=>Ho("div",{ref:"jsonEditorRef"})}}),Bm={},MV={};function E3t(e){return e.install=(t,n={})=>{const{props:r,attrs:o}=QCt(n,OV.props);Object.assign(Bm,r),Object.assign(MV,o),t.component(e.name,e)},e}const O3t=E3t(OV);const M3t={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,o)=>(r.size=o===t?r.max:r.min,o!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let a=[t,t+1],s=this.panes[a[0]]||null,c=this.panes[a[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(u||l){u?(s.size=s.max,c.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:a}=f),s=this.panes[a[0]]||null,c=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((o,i)=>{i>r[0]&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,i)=>{i>0&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((o,i)=>{i>n&&i<r[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,i)=>{i<this.panesCount-1&&i>=n+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=i=>this.onMouseDown(i,r)),o.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(o.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,i)=>o.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,o)=>r.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let o=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),o-=i.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const o=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(a=>{e&&e.givenSize!==null&&e.id===a.id||(a.size=Math.max(Math.min(n,a.max),a.min)),r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),r>.1&&this.readjustSizes(r,o,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((o,i)=>{if(e>0&&!t.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}else if(!n.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Ho("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},A3t=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},P3t={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function T3t(e,t,n,r,o,i){return Vn(),li("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=a=>i.onPaneClick(a,e._.uid)),style:zc(e.style)},[Ku(e.$slots,"default")],4)}const r7=A3t(P3t,[["render",T3t]]);let Rl;const Pd=[];function R3t(e){if(Pd.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Pd.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Pd.forEach(n=>n(t))},get(){return Rl.value},configurable:!0}),()=>{Pd.splice(Pd.indexOf(e),1)}}function I3t(){Rl||(Rl=pf(),R3t(t));function e(){kU(Rl)}function t(n){Rl.value=n,n.host&&n.host.hooks.hook("host:update:reactivity",e)}return Rl}const o7=I3t();const N3t="2.1.0",D3t={class:"flex-row flex h-screen"},z3t={class:"border-r-1 border-light-400 dark:border-dark-400 dark:bg-dark-900 dark:text-light bg-white text-dark-800 flex flex-col justify-between h-screen z-5"},L3t={class:"flex-grow hidden md:block"},B3t={class:"py-3 w-full flex items-start px-5 justify-between space-x-5"},F3t=nr("h1",{class:"text-base w-40"}," OG Image Playground ",-1),q3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),H3t={class:"py-7 px-5 text-sm flex flex-col space-y-3"},V3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),U3t={key:0,class:"py-7 px-5 text-sm flex flex-col space-y-3"},W3t={class:"p-3 text-gray-400 text-sm text-center"},K3t={class:"mx-auto flex flex-col w-full bg-white dark:bg-black max-h-screen overflow-hidden dark:bg-dark-700 bg-light-200"},J3t={class:"py-9px dark:bg-dark-800 bg-light-200 px-10 opacity-80 flex items-center max-w-full block space-x-5"},G3t={class:"text-sm flex items-center space-x-5"},Q3t=nr("div",{class:"text-xs opacity-40"}," Path ",-1),Y3t={class:"flex items-center space-x-1"},X3t={key:0,class:"text-xs opacity-70"},Z3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),t4t=nr("h2",{class:"font-semibold text-lg mb-5"}," Props ",-1),e4t={class:"relative"},n4t={key:0,class:"absolute top-1 right-1 text-10px ml-1 bg-blue-100 text-blue-700 px-1 py-2px rounded"},r4t={key:0,class:"text-xs p-2 text-gray-300"},o4t=Jo({__name:"app",async setup(e){let t,n;sG({title:"OG Image Playground"}),_N(SN);const r=hr(()=>!!o7.value),o=hr(()=>{var d,h,p,v;return((v=(p=(h=(d=o7.value)==null?void 0:d.host.nuxt.vueApp.config)==null?void 0:h.globalProperties)==null?void 0:p.$route)==null?void 0:v.path)||void 0});Ga.value=o.value||Il().query.path||"/",$N.value=Il().query.base||"/",so(()=>o,d=>{Nd.value={},wu.value=!1,Ga.value=d});const i=hr(()=>Il().path!=="/vnodes"&&Il().path!=="/options"),a=([t,n]=kb(()=>B$()),t=await t,n(),t);so(a,d=>{rv.value=Re(d),d={...Re(d)},delete d.path,delete d.cache,delete d.cacheTtl,delete d.component,delete d.provider,delete d.componentHash,q1.value=d},{immediate:!0});const s=Gk(d=>{Nd.value={},wu.value=!1,Ga.value=d.target.value,Dd()},1e3),c=ZI();function u(d){Nd.value=d,wu.value=!0,Dd()}const l=hr(()=>c.value==="dark");async function f(d=!0){d&&await B$(),Nd.value={},wu.value=!1;const h={...rv.value};delete h.path,delete h.cache,delete h.cacheTtl,delete h.component,delete h.provider,delete h.componentHash,q1.value=h,d&&Dd()}return[t,n]=kb(()=>f(!1)),await t,n(),(d,h)=>{var x;const p=Bk,v=fY,m=mY,g=gN,y=NI,b=MX,w=IX;return Vn(),li("div",D3t,[nr("header",z3t,[nr("div",L3t,[nr("div",B3t,[F3t,Re(r)?qa("",!0):(Vn(),xo(m,{key:0},{default:oo(({toggle:k})=>[nn(v,{n:"borderless lg m-0","p-0":"",op50:"",onClick:k},{default:oo(()=>[nn(p,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1}))]),q3t,nr("div",H3t,[nn(y,{to:"/",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:image-search",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Template HTML ",2)]),_:1}),((x=Re(rv))==null?void 0:x.provider)==="satori"?(Vn(),xo(y,{key:0,to:"/svg",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:svg",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Preview SVG ",2)]),_:1})):qa("",!0),nn(y,{to:"/png",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:png",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Preview PNG ",2)]),_:1}),nn(y,{to:"/options",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:operations-record",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Options ",2)]),_:1}),nn(y,{to:"/vnodes",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:ibm-cloud-pak-manta-automated-data-lineage",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," vNodes ",2)]),_:1})]),V3t,Re(i)?(Vn(),li("div",U3t,[Re(bl)!==504?(Vn(),li("div",{key:0,onClick:h[0]||(h[0]=k=>bl.value=504)},[nn(v,null,{default:oo(()=>[nn(g,{name:"carbon:mobile"}),Au(" Small ")]),_:1})])):qa("",!0),Re(bl)!==null?(Vn(),li("div",{key:1,onClick:h[1]||(h[1]=k=>bl.value=null)},[nn(v,null,{default:oo(()=>[nn(g,{name:"carbon:laptop"}),Au(" Full width ")]),_:1})])):qa("",!0),nr("div",null,[nn(v,{onClick:Re(Dd)},{default:oo(()=>[Au(" Refresh ")]),_:1},8,["onClick"])])])):qa("",!0)]),nr("div",W3t," v"+fm(Re(N3t)),1)]),nr("main",K3t,[nr("div",J3t,[nr("div",G3t,[Q3t,nr("div",Y3t,[nn(b,{"model-value":Re(Ga),placeholder:"Search...",n:"primary",onInput:Re(s)},null,8,["model-value","onInput"])])]),Re(L$)?(Vn(),li("div",X3t,fm(Re(L$)),1)):qa("",!0)]),Z3t,nr("div",{class:"h-full max-h-full overflow-hidden lg:p-5 p-2",style:zc({width:Re(bl)&&Re(i)?`${Re(bl)}px`:"100%"})},[nn(Re(M3t),{class:"default-theme",onResize:Re(nZ)},{default:oo(()=>[nn(Re(r7),{size:"80"},{default:oo(()=>[nn(w)]),_:1}),nn(Re(r7),{size:"20"},{default:oo(()=>[t4t,nr("div",e4t,[nn(Re(O3t),{"model-value":Re(q1),class:Gr(Re(l)?["jse-theme-dark"]:[]),"main-menu-bar":!1,"navigation-bar":!1,"onUpdate:modelValue":u},null,8,["model-value","class"]),Re(wu)?(Vn(),li("span",n4t,"modified")):qa("",!0)]),Re(wu)?(Vn(),li("div",r4t,[nr("div",null,[Au(" Update "+fm(Re(rv).component)+" to persist the changes. ",1),nr("button",{type:"button",class:"underline",onClick:h[2]||(h[2]=k=>f(!0))}," Reset ")])])):qa("",!0)]),_:1})]),_:1},8,["onResize"])],4)])])}}});const i4t={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(`
134
+ `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
135
+ `);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),s=void 0,l=o?Jm(()=>Os(()=>import("./error-404.d3cf3af1.js"),["./error-404.d3cf3af1.js","./error-404.b751fa02.css"],import.meta.url).then(f=>f.default||f)):Jm(()=>Os(()=>import("./error-500.6d5569a5.js"),["./error-500.6d5569a5.js","./error-500.69009e70.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(Vn(),xo(Re(l),l7(Ck({statusCode:Re(r),statusMessage:Re(i),description:Re(a),stack:Re(s)})),null,16))}},i7={__name:"nuxt-root",setup(e){const t=()=>null,n=ar(),r=n.deferHydration(),o=!1;Ql(b0,Il()),n.hooks.callHookWith(s=>s.map(c=>c()),"vue:setup");const i=w0();W7((s,c,u)=>{if(n.hooks.callHook("vue:error",s,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),wG(s)&&(s.fatal||s.unhandled))return n.runWithContext(()=>Nl(s)),!1});const a=!1;return(s,c)=>(Vn(),xo(I7,{onResolve:Re(r)},{default:oo(()=>[Re(i)?(Vn(),xo(Re(i4t),{key:0,error:Re(i)},null,8,["error"])):Re(a)?(Vn(),xo(Re(t),{key:1,context:Re(a)},null,8,["context"])):Re(o)?(Vn(),xo(_k(Re(o)),{key:2})):(Vn(),xo(Re(o4t),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=ZK.create({baseURL:eJ()}));let a7;{let e;a7=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?lK(i7):uK(i7),o=pJ({vueApp:r});try{await mJ(o,lY)}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(IG),await o.hooks.callHook("app:mounted",r),await tu()}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}return r},e=a7().catch(t=>{console.error("Error while mounting app:",t)})}export{S0 as A,Qk as B,Dd as C,u4t as D,xo as E,kb as F,l4t as G,c4t as H,TG as I,XI as _,nr as a,nn as b,li as c,Au as d,NI as e,s4t as f,Jo as g,ZI as h,Gk as i,rv as j,cl as k,so as l,bl as m,hr as n,Vn as o,a4t as p,L$ as q,Tn as r,zc as s,fm as t,sG as u,Re as v,oo as w,yI as x,Nd as y,Ga as z};