@verdnatura/vn-front-lib 0.1.1 → 0.1.3

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.
@@ -1,56 +0,0 @@
1
- const e=require("./rolldown-runtime-DF3sbh8G.cjs"),t=require("./stores.cjs"),n=require("./filters.cjs"),r=require("./utils.cjs");let i=require("vue"),a=require("quasar"),o=e.r(a,1);a=e.r(a);let s=require("vue-i18n"),c=require("validator");c=e.r(c,1);let l=require("axios");l=e.r(l,1);let u=require("vue-router");var d=`_q_fo_`;function f(){let e=t.useValidationsStore().validations;function n(t){let n=e;if(!n||!t)return;let r=t.split(`.`),a=r[0],o=r[1],s=a.charAt(0).toUpperCase()+a.slice(1);if(!n[s])return;let c=n[s].validations;if(c[o])return c[o].map(e=>i(e)[e.validation])}let{t:r}=(0,s.useI18n)({useScope:`global`}),i=function(e={}){return{format:t=>{let{allowNull:n,with:i,allowBlank:a}=e,o=r(e.message)||e.message;if(!a&&t===``||!n&&t===null||!new RegExp(i).test(t))return o},presence:t=>{let n=r(`globals.valueCantBeEmpty`);return e.message&&(n=r(e.message)||e.message),!c.default.isEmpty(t?String(t):``)||n},required:(e,t)=>e?t===0||!!t||r(`globals.fieldRequired`):null,length:t=>{let n={min:e.min||e.is,max:e.max||e.is};t=String(t),t||=``;let r=`Value should have at most ${n.max} characters`;return e.is&&(r=`Value should be ${e.is} characters long`),e.min&&(r=`Value should have at least ${e.min} characters`),e.min&&e.max&&(r=`Value should have a length between ${e.min} and ${e.max}`),c.default.isLength(t,n)||r},numericality:t=>e.int?c.default.isInt(t)||`Value should be integer`:c.default.isNumeric(t)||`Value should be a number`,min:(e,t)=>{if(t>=0&&Math.floor(e)<t)return r(`inputMin`,{value:t})},custom:t=>Function(`return (${e.bindedFunction})`)()(t)||`Invalid value`}};return{validate:n,validations:i,models:e}}function p(e){let{validations:t}=f(),n=typeof e.required==`boolean`?e.required:Object.keys(e).includes(`required`);return{isRequired:n,requiredFieldRule:e=>t().required(n,e)}}function m(){return(0,i.inject)(`_q_`)}function h(...e){let t=m(),{t:n}=(0,s.useI18n)();if(!t.screen.xs)return n(...e)}function g(e,a){if(e??=(0,u.useRoute)().meta.moduleName,!e)throw Error(`ArrayData: A key is required to use this composable`);let o=t.useArrayDataStore();o.get(e)||o.set(e);let s=o.get(e);s.dataKey=e;let c=(0,u.useRoute)(),l=(0,u.useRouter)(),d=null;(0,i.onMounted)(()=>{f(a??{}),g([`skip`]);let e=c.query,t=s.searchUrl;if(e[t]){let n=JSON.parse(e[t]),r=n?.filter&&typeof n?.filter==`object`?n?.filter:JSON.parse(n?.filter??`{}`);delete n.filter,s.userParams={...O(L(n)),...R()},s.filter={...r,...s.userFilter},r?.order&&(s.order=r.order)}e.stackedParams&&(s.stackedParams=JSON.parse(e.stackedParams)),N()}),a&&f(a);function f(e){if(!e)return;let t=[`url`,`filter`,`where`,`order`,`limit`,`skip`,`userParams`,`userFilter`,`exprBuilder`,`dynamicExprBuilder`,`searchUrl`,`navigate`,`mapKey`,`oneRecord`,`hasChanges`,`isLocal`,`customFilterFn`,`remoteParamsArray`,`keyData`,`isStackableParams`,`nonStackableParams`,`stackedParams`,`dataAnalyticsFilter`,`ignoreUrlParams`];if(typeof e==`object`){for(let n in e)if(!(e[n]==null||e[n]===``||!t.includes(n))&&Object.hasOwn(s,n)){let t=e[n];s[n]=e.keepOpts?.includes(n)?Object.assign(t,s[n]):t,n===`userParams`&&(s.defaultParams=s[n])}}}async function p({append:e=!1,updateRouter:t=!0}){b(),d=new AbortController;let{params:r,limit:i}=N(),a;(s?.exprBuilder||Object.keys(s.dynamicWhereBuilder).length)&&(a=n.buildFilter(r,(e,t)=>{if(e==`filter`)return;let n=s.exprBuilder?.(e,t);return s.dynamicWhereBuilder[e]&&(n={[e]:t}),n&&delete r[e],n})),(r.filter.where||a)&&(r.filter.where={...r.filter.where,...a}),r?.filter?.order?.length||delete r?.filter?.order,Object.keys(r?.filter?.where??{})?.length||delete r?.filter?.where,s.isLoading=!0;let o;try{o=await xi(r,d,s)}finally{s.isLoading=!1,d=null}if(s.hasMoreData=i&&o.data.length>=i,!(!e&&!n.isDialogOpened()&&t&&j()?.redirect))return P(o.data,{map:!!s.mapKey,append:e,oneRecord:s.oneRecord}),o}function m(){o.get(e)&&o.clear(e)}function h(e){delete s[e]}function g(t=[]){o.get(e)&&o.reset(e,t)}function y(){o.get(e)&&o.resetPagination(e)}function b(){d&&=(d.abort(),null)}async function x({filter:e,params:t},n={}){return e&&(s.filter=e),t&&(s.userParams={...t}),await p(n)}async function S({filter:e,params:t}){e&&(s.filter=e);let n={...s.userParams,...t};return n=O(n),s.userParams=n,y(),{response:await p({}),filter:e,params:t}}async function C(e){let t={...s.filter};t?.where||(t.where={}),e={...t.where,...e},await S({filter:{where:e}})}async function w(e,t=`ASC`){let n=`${e} ${t}`,r=v(s.order),i=_(r,e);return i>-1?r[i]=n:(i=r.length,r.push(n)),s.order=r,y(),await p({}),i++,{index:i,order:r}}async function T(e,t=`ASC`){let n=`${e} ${t}`;return s.order=[n],y(),await p({}),{index:1,order:[n]}}async function E(e,t=!0){s.order=e,y(),t&&await p({})}async function D(e){let t=v(s.order),n=_(t,e);n>-1&&t.splice(n,1),s.order=t,p({})}function O(e){for(let t in e){if(e[t]&&typeof e[t]==`object`){let n=Object.keys(e[t])[0];if(Object.values(e[t])[0]===null&&(n=n==`eq`?`null`:`notNull`),r.advancedFilters[n]){s.dynamicExprBuilder[t]=n;let r=Object.values(e[t])[0];s.userParams[t]=r,e[t]=r}}if(I(e[t],t)&&(delete s.userParams[t],delete e[t],s.filter?.where)){let e=t;if(s?.exprBuilder){let e=s.exprBuilder(t);if(!e||!Object.values(e).every(e=>I(e,t)))continue}delete s.filter.where[e],delete s.dynamicExprBuilder[e],Object.keys(s.filter.where).length||delete s.filter.where}}return e}async function k(){s.hasMoreData&&(s.skip=(s?.filter?.limit??s.limit)*s.page,s.page+=1,await p({append:!0}))}async function A(){Object.values(s.userParams).length&&await p({})}function j(){if(!c?.path)return;let e={path:c.path,query:{...c.query??{}}};s?.searchUrl&&(e.query[s.searchUrl]=JSON.stringify(L(s.currentFilter)),s.stackedParams?.length?e.query.stackedParams=JSON.stringify(s.stackedParams):delete e.query.stackedParams),l.replace(e)}function M(){Object.keys(s?.userParams??{}).length||(s.userParams=s.defaultParams??{});let e={limit:s.limit,...s.userFilter},t;(e?.where||s.filter?.where)&&(t=Object.assign(e?.where??{},s.filter?.where??{})),Object.assign(e,s.filter),e.where=t;let n={filter:e};Object.assign(n,s.userParams),n.filter&&(n.filter.skip=s.skip),s.order?n.filter.order=v(s.order):delete n.filter.order;for(let[e,t]of Object.entries(n)){if(I(t,e)||t&&typeof t==`object`&&!Array.isArray(t))continue;let r=F(e)?.expr?.(t);r&&(n[e]=r)}return{filter:e,params:n,limit:e.limit}}function N(){let{filter:e,params:t,limit:n}=M(),r=JSON.parse(JSON.stringify(t));return delete r.filter.include,delete r.filter.fields,delete r.filter.limit,delete r.filter.skip,r.filter=JSON.stringify(r.filter),s.currentFilter=(0,i.markRaw)(r),{filter:e,params:t,limit:n}}function P(e,{map:t=!0,append:n=!0,oneRecord:r=!1}){if(s.append=n,r){s.data=Array.isArray(e)?e[0]:e;return}if(n||(s.data=[],s.map=new Map),!Array.isArray(e))s.data=e;else if(!t&&n)for(let t of e)s.data.push(t);else for(let t of e){let e=t[s.mapKey];t.key=e;let n=s.map.get(e);if(e&&n){let{position:r}=n;t.position=r,s.map.set(e,t),s.data[r]=t}else t.position=s.map.size,s.map.set(e,t),s.data.push(t)}}function F(e){let t=s.dynamicExprBuilder[e];if(t)return r.advancedFilters[t]}function I(e,t){return e===``||e===void 0||e===null&&!F(t)?.isNullable}function L(e){let t={...e};if(s.ignoreUrlParams.length&&Object.keys(t).length)for(let e of s.ignoreUrlParams)delete t[e];return t}function R(){let e={};if(s.ignoreUrlParams.length&&Object.keys(s.userParams).length)for(let t of s.ignoreUrlParams)e[t]=s.userParams[t];return e}return{fetch:p,applyFilter:x,addFilter:S,getCurrentFilter:M,setCurrentFilter:N,addFilterWhere:C,addOrder:w,applyOrder:T,applyOrders:E,deleteOrder:D,refresh:A,destroy:m,loadMore:k,store:s,totalRows:(0,i.computed)(()=>s.data&&s.data.length||0),updateStateParams:j,isLoading:(0,i.ref)(s.isLoading||!1),deleteOption:h,reset:g,resetPagination:y,setOptions:f,sanitizerParams:O,processData:P,dataKey:e}}function _(e,t){return e.findIndex(e=>e.split(` `)[0]===t)}function v(e=[]){if(!e)return[];if(Array.isArray(e))return e;if(typeof e==`string`)return e.split(`,`).map(e=>e.trim())}function y(e){if(!e||e.hasAttribute(`data-no-focus`))return;let t=e.querySelectorAll(`textarea:not([disabled]), [contenteditable]:not([disabled])`),[n]=e.querySelectorAll(`input:not([disabled]):not([type="checkbox"])`),r=t.length,i=r?t[r-1]:n;i!==document.activeElement&&i?.focus()}var b=`globals:
2
- fieldRequired: Field required
3
- valueCantBeEmpty: Value cannot be empty
4
- cancel: Cancel
5
- confirm: Confirm
6
- pleaseWait: Please wait...
7
- saveAndContinue: Save and go to
8
- unsavedPopup:
9
- title: Unsaved changes will be lost
10
- subtitle: Are you sure exit without saving?
11
- pageTitles:
12
- basicData: Basic data
13
- inputMin: Must be more than {value}
14
- inputMax: Must be less than {value}
15
- maxLength: Must not exceed {value} characters
16
- Confirm: Confirm
17
- Are you sure you want to continue?: Are you sure you want to continue?
18
- Remove: Remove
19
- Convert to uppercase: Convert to uppercase
20
- `,x=`globals:
21
- fieldRequired: Campo requerido
22
- valueCantBeEmpty: El valor no puede estar vacío
23
- cancel: Cancelar
24
- confirm: Confirmar
25
- pleaseWait: Por favor espera...
26
- saveAndContinue: Guardar e ir a
27
- unsavedPopup:
28
- title: Los cambios que no haya guardado se perderán
29
- subtitle: ¿Seguro que quiere salir sin guardar?
30
- pageTitles:
31
- basicData: Datos básicos
32
- inputMin: Debe ser mayor a {value}
33
- inputMax: Debe ser menor a {value}
34
- maxLength: No debe superar los {value} caracteres
35
- Confirm: Confirmar
36
- Are you sure you want to continue?: ¿Seguro que quieres continuar?
37
- Remove: Eliminar
38
- Convert to uppercase: Convertir a mayúsculas
39
- `,S=Symbol(`NOT_RESOLVED`);function C(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function w(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function T(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var E=C(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),D=[``,`~`,`null`,`Null`,`NULL`],O=C(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>D.indexOf(e)===-1?S:null,identify:e=>e===null,represent:()=>`null`}),k=C(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:S,identify:e=>e===null,represent:()=>`null`}),A=[``,`~`,`null`,`Null`,`NULL`],j=C(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>A.indexOf(e)===-1?S:null,identify:e=>e===null,represent:()=>`null`}),M=[`true`,`True`,`TRUE`],N=[`false`,`False`,`FALSE`],P=C(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>M.indexOf(e)!==-1||N.indexOf(e)===-1&&S,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),F=[`true`],I=[`false`],L=C(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>F.indexOf(e)!==-1||I.indexOf(e)===-1&&S,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),R=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],z=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],ee=C(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>R.indexOf(e)!==-1||z.indexOf(e)===-1&&S,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),B=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),te=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function ne(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function re(e,t){if(t){if(!te.test(e))return S}else if(!B.test(e))return S;let n=ne(e);return Number.isFinite(n)?n:S}var ie=C(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:re,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),ae=RegExp(`^-?(?:0|[1-9][0-9]*)$`),oe=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function se(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ce(e,t){if(t){if(!oe.test(e))return S}else if(!ae.test(e))return S;let n=se(e);return Number.isFinite(n)?n:S}var le=C(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:ce,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),ue=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`);function V(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function H(e){if(!ue.test(e))return S;let t=V(e);return Number.isFinite(t)?t:S}var de=C(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:H,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),fe=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),pe=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function me(e){if(!fe.test(e))return S;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||pe.test(e)?r:S}function he(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var ge=C(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:me,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:he}),_e=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),ve=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ye(e,t){if(t){if(!ve.test(e))return S;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:S}if(!_e.test(e))return S;let n=Number(e);return Number.isFinite(n)?n:S}function be(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var xe=C(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:ye,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:be}),Se=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ce=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function we(e){if(!Se.test(e))return S;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Ce.test(e)?r:S}function Te(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var Ee=C(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:we,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Te}),De=C(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:S,identify:()=>!1}),Oe=/^[A-Za-z0-9+/]*={0,2}$/;function ke(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!Oe.test(t))return S;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}function Ae(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var je=C(`tag:yaml.org,2002:binary`,{resolve:ke,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Ae}),Me=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Ne=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Pe(e,t,n,r=0,i=0,a=0,o=0){let s=new Date(Date.UTC(e,t,n,r,i,a,o));return s.setUTCFullYear(e,t,n),s}function Fe(e){let t=Me.exec(e);if(t===null&&(t=Ne.exec(e)),t===null)return S;let n=+t[1],r=t[2]-1,i=+t[3];if(!t[4]){let e=Pe(n,r,i);return e.getUTCFullYear()!==n||e.getUTCMonth()!==r||e.getUTCDate()!==i?S:e}let a=+t[4],o=+t[5],s=+t[6],c=0;if(a>23||o>59||s>59)return S;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;c=+e}let l=Pe(n,r,i,a,o,s,c);if(l.getUTCFullYear()!==n||l.getUTCMonth()!==r||l.getUTCDate()!==i)return S;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return S;let r=(e*60+n)*6e4;l.setTime(l.getTime()-(t[9]===`-`?-r:r))}return l}var Ie=C(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Fe,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Le=w(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function Re(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ze(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var Be=w(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Re(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Ve=w(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),He=T(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Re,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Ue=T(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function We(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Ge(){return{scalar:[],sequence:[],mapping:[]}}function Ke(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}var qe=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=Ke(e),n=[],r=We(),i=Ge();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==S)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},Je=new qe([E,Le,He]);new qe([...Je.tags,k,L,le,xe]);var Ye=new qe([...Je.tags,O,P,ie,ge]);new qe([...Je.tags,j,ee,de,Ee,Ie,De,je,Be,Ve,Ue]).withTags({...de,resolve:(e,t,n)=>{let r=de.resolve(e,t,n);return r===S?ie.resolve(e,t,n):r}},{...Ee,resolve:(e,t,n)=>{let r=Ee.resolve(e,t,n);return r===S?ge.resolve(e,t,n):r}}),T(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Re(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function Xe(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;typeof t[e]==`object`&&Object.prototype.toString.call(t[e])===`[object Object]`&&(t[e]=`[object Object]`)}return String(t)}return typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`?`[object Object]`:String(e)}T(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Re,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Xe(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Xe(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var Ze={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Qe(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function $e(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function et(e,t){if(!e.buffer)return null;let n={...Ze,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=Qe(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${$e((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=Qe(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${$e((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=Qe(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${$e((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function tt(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var nt=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=tt(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${tt(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n===10?(a++,o=e+1):n===13&&(a++,t.charCodeAt(e+1)===10&&e++,o=e+1)}let s={name:i,buffer:t,position:n,line:a,column:n-o};throw s.snippet=et(s),new e(r,s)}},U={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},W={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},rt={BLOCK:1,FLOW:2},G={CLIP:1,STRIP:2,KEEP:3},it=-1;function at(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
40
- `;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}var ot=Array(256),st=Array(256);for(let e=0;e<256;e++)ot[e]=+!!at(e),st[e]=at(e);function ct(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function lt(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function ut(e){return e===120?2:e===117?4:8}function dt(e,t,n){let r=0;for(;t<n;){let n=e.charCodeAt(t);if(n===10)r++,t++;else if(n===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(n===32||n===9)t++;else break}return{position:t,breaks:r}}function ft(e){return e===1?` `:`
41
- `.repeat(e-1)}function pt(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===10||t===13){r+=e.slice(a,o);let t=dt(e,i,n);r+=ft(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,o)}function mt(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===39)r+=e.slice(a,i)+`'`,i+=2,a=o=i;else if(t===10||t===13){r+=e.slice(a,o);let t=dt(e,i,n);r+=ft(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function ht(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===92){r+=e.slice(a,i),i++;let t=e.charCodeAt(i);if(t===10||t===13)i=dt(e,i,n).position;else if(t<256&&ot[t])r+=st[t],i++;else{let n=ut(t),a=0;for(;n>0;n--){i++;let t=lt(e.charCodeAt(i));a=(a<<4)+t}r+=ct(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=dt(e,i,n);r+=ft(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function gt(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
42
- `),c=s===``?[]:(s.endsWith(`
43
- `)?s.slice(0,-1):s).split(`
44
- `),l=``,u=!1,d=0,f=!1;for(let e of c){let t=0;for(;t<o&&e.charCodeAt(t)===32;)t++;if(r<0||t>=e.length){d++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(f=!0,l+=`
45
- `.repeat(u?1+d:d)):f?(f=!1,l+=`
46
- `.repeat(d+1)):d===0?u&&(l+=` `):l+=`
47
- `.repeat(d):l+=`
48
- `.repeat(u?1+d:d),l+=n,u=!0,d=0}return i===G.KEEP?l+=`
49
- `.repeat(u?1+d:d):i!==G.STRIP&&u&&(l+=`
50
- `),l}function _t(e,t){if(t.valueStart===it)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case W.SINGLE_QUOTED:return mt(e,n,r);case W.DOUBLE_QUOTED:return ht(e,n,r);case W.LITERAL_BLOCK:return gt(e,n,r,t.indent,t.chomping,!1);case W.FOLDED_BLOCK:return gt(e,n,r,t.indent,t.chomping,!0);default:return pt(e,n,r)}}var vt=Object.assign(Object.create(null),{"!":`!`,"!!":`tag:yaml.org,2002:`});function yt(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??vt[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}var bt=-1,xt=`tag:yaml.org,2002:merge`,St={filename:``,schema:Ye,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Ct(e){return`tagStart`in e&&e.tagStart!==bt?e.tagStart:`anchorStart`in e&&e.anchorStart!==bt?e.anchorStart:`valueStart`in e&&e.valueStart!==bt?e.valueStart:`start`in e?e.start:0}function K(e,t){nt.throwAt(e.source,e.position,t,e.filename)}function wt(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof nt)throw n;nt.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function Tt(e,t){let n=_t(e.source,t),r=t.tagStart===bt?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=yt(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===S&&K(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&K(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:wt(e,e.position,o,r),tag:o}}K(e,`unknown scalar tag !<${t}>`)}return t.style===W.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function Et(e,t,n){let r=t.tagStart===bt?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:yt(r,e.tagHandlers)}function Dt(e){return e.nodeKind===`mapping`}function Ot(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&K(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function kt(e,t,n,r){Ot(e);for(let i of r.keys(n)){if(Ot(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&K(e,a),t.overridable??=new Set,t.overridable.add(i)}}function At(e,t,n,r){if(e.position=t.keyPosition,Dt(r))kt(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&K(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||K(e,`cannot merge mappings; the provided source object is unacceptable`),kt(e,t,r,n)}}else K(e,`cannot merge mappings; the provided source object is unacceptable`)}function jt(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){At(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&K(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&K(e,a),t.overridable?.delete(n)}function Mt(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){Dt(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&K(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,jt(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===xt}function Nt(e,t,n,r,i){if(t.anchorStart!==bt){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function Pt(e,t){let n={...St,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){let e=n.events[n.eventIndex++];switch(n.position=Ct(e),e.type){case U.DOCUMENT:n.anchors=new Map,n.nodeTags=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(let t of e.directives)t.kind===`tag`&&(n.tagHandlers[t.handle]=t.prefix);n.frames.push({kind:`document`,position:n.position,value:void 0,hasValue:!1});break;case U.SCALAR:{let{value:t,tag:r}=Tt(n,e);Nt(n,e,t,r,!0),Mt(n,t,r);break}case U.SEQUENCE:{let t=Et(n,e,`tag:yaml.org,2002:seq`),r=n.schema.lookupSequenceTag(t);r||K(n,`unknown sequence tag !<${t}>`);let i=r.create(t),a=Nt(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case U.MAPPING:{let t=Et(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||K(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=Nt(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case U.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&K(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||K(n,`unidentified alias "${t}"`),r.isValueFinal||K(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),Mt(n,r.value,r.tag);break}case U.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,K(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:wt(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),Mt(n,t,e.tag)}break}}}return n.documents}var q=-1,Ft=Object.prototype.hasOwnProperty,It=1,Lt=2,Rt=3,zt=4,Bt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Vt=/[,\[\]{}]/,Ht=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Ut=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Wt=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Gt=RegExp(`^(?:${Ut})*$`),Kt=RegExp(`^(?:${Wt})+$`),qt=RegExp(`^(?:!(?:${Ut})*|${Wt}(?:${Ut})*)$`),Jt={filename:``,maxDepth:100};function Yt(e,t,n){e.events.push({type:U.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function Xt(e,t,n,r,i,a,o){e.events.push({type:U.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function Zt(e,t,n,r,i,a,o){e.events.push({type:U.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function Qt(e,t){e.events.splice(t.eventsLength,0,{type:U.MAPPING,start:t.position,anchorStart:q,anchorEnd:q,tagStart:q,tagEnd:q,style:rt.FLOW})}function $t(e,t,n,r,i,a,o,s,c=G.CLIP,l=-1,u=!1){e.events.push({type:U.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function en(e,t,n){e.events.push({type:U.ALIAS,anchorStart:t,anchorEnd:n})}function tn(e){e.events.push({type:U.POP})}function J(e){$t(e,q,q,q,q,q,q,W.PLAIN)}function nn(){return{anchorStart:q,anchorEnd:q,tagStart:q,tagEnd:q}}function rn(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function an(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function Y(e,t){nt.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function X(e){return e===10||e===13}function on(e){return e===9||e===32}function Z(e){return on(e)||X(e)}function Q(e){return e===0||Z(e)}function sn(e){return e===44||e===91||e===93||e===123||e===125}function cn(e){return e>=48&&e<=57?e-48:-1}function ln(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function un(e){return e===120?2:e===117?4:e===85?8:0}function dn(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function fn(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function $(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Z(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;on(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!X(r)&&r!==0);if(!X(r))break;for(fn(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function pn(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||Z(n)}return!1}function mn(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function hn(e){if(e.position!==e.lineStart)return!1;if(pn(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=rn(e);mn(e),$(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&pn(e));return an(e,t),r}function gn(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!X(t);)t=e.input.charCodeAt(++e.position)}function _n(e,t,n){Bt.test(e.input.slice(t,n))&&Y(e,`the stream contains non-printable characters`)}function vn(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==q&&Y(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&Y(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!Z(s)&&!(n&&sn(s));)s===33&&(a?Y(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),Ht.test(o)||Y(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),Vt.test(l)&&Y(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?Gt.test(l):Kt.test(l))&&Y(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!Ft.call(e.tagHandlers,o)&&Y(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function yn(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==q&&Y(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Z(e.input.charCodeAt(e.position))&&!sn(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&Y(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function bn(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==q||t.tagStart!==q)&&Y(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Z(e.input.charCodeAt(e.position))&&!sn(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&Y(e,`name of an alias node must contain at least one character`),en(e,n,e.position),!0}function xn(e,t){$(e,!1),e.lineIndent<t&&Y(e,`deficient indentation`)}function Sn(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let t=e.position;return e.position++,$t(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,W.SINGLE_QUOTED,G.CLIP,-1,i),!0}X(a)?(i=!1,xn(e,t)):e.position===e.lineStart&&pn(e)?Y(e,`unexpected end of the document within a single quoted scalar`):a!==9&&a<32?Y(e,`expected valid JSON character`):e.position++}Y(e,`unexpected end of the stream within a single quoted scalar`)}function Cn(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===34){let t=e.position;return e.position++,$t(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,W.DOUBLE_QUOTED,G.CLIP,-1,i),!0}if(a===92){i=!1;let n=e.input.charCodeAt(++e.position);if(X(n))xn(e,t);else if(dn(n))e.position++;else{let t=un(n);for(t===0&&Y(e,`unknown escape sequence`);t-->0;)e.position++,ln(e.input.charCodeAt(e.position))<0&&Y(e,`expected hexadecimal character`);e.position++}}else X(a)?(i=!1,xn(e,t)):e.position===e.lineStart&&pn(e)?Y(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?Y(e,`expected valid JSON character`):e.position++}Y(e,`unexpected end of the stream within a double quoted scalar`)}function wn(e,t,n){let r=e.input.charCodeAt(e.position),i=G.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?W.LITERAL_BLOCK:W.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=cn(n);if(n===43||n===45)i!==G.CLIP&&Y(e,`repeat of a chomping mode identifier`),i=n===43?G.KEEP:G.STRIP,e.position++;else if(r>=0)r===0&&Y(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&Y(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;on(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&gn(e),X(e.input.charCodeAt(e.position))?fn(e):e.input.charCodeAt(e.position)!==0&&Y(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(hn(e))break;if(!o&&l===-1&&X(i)&&(u=Math.max(u,r)),!o&&l===-1&&!X(i)&&(i===9&&r<t&&(e.position=n+r,Y(e,`tab characters must not be used in indentation`)),r<u&&(e.position=n+r,Y(e,`bad indentation of a mapping entry`))),l===-1&&i!==0&&!X(i)&&r<t){e.lineIndent=r,e.position=n+r;break}!o&&i!==0&&!X(i)&&l===-1&&(l=r);let a=l===-1?t+1:l;if(i!==0&&!X(i)&&r<a){e.lineIndent=r,e.position=n+r;break}gn(e),f=e.position,X(e.input.charCodeAt(e.position))&&(fn(e),f=e.position)}return _n(e,d,f),$t(e,d,f,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,s,i,l),!0}function Tn(e,t){let n=e.input.charCodeAt(e.position),r=t===It;if(n===0||Z(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||r&&sn(n))return!1;if(n===63||n===45){let t=e.input.charCodeAt(e.position+1);if(Q(t)||r&&sn(t))return!1}return!0}function En(e,t,n,r){if(!Tn(e,n))return!1;let i=e.position,a=e.position,o=e.input.charCodeAt(e.position),s=n===It,c=!1;for(;o!==0&&!hn(e);){if(o===58){let t=e.input.charCodeAt(e.position+1);if(Q(t)||s&&sn(t))break}else if(o===35){if(Z(e.input.charCodeAt(e.position-1)))break}else if(s&&sn(o))break;else if(X(o)){let n=e.position,r=e.line,i=e.lineStart,a=e.lineIndent;if($(e,!1),e.lineIndent>=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}on(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(_n(e,i,a),$t(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,W.PLAIN,G.CLIP,-1,!c),!0)}function Dn(e,t){let n=e.line;$(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&Y(e,`deficient indentation`)}function On(e,t,n){let r=e.input.charCodeAt(e.position),i=r===123,a=e.position,o=!0;if(r!==91&&r!==123)return!1;let s=i?125:93;for(i?Zt(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,rt.FLOW):Xt(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,rt.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){Dn(e,t);let n=e.input.charCodeAt(e.position);if(n===s)return e.position++,tn(e),!0;o?n===44&&Y(e,`expected the node content, but found ','`):Y(e,`missed comma between flow collection entries`);let r=!1,a=!1;n===63&&Z(e.input.charCodeAt(e.position+1))&&(r=a=!0,e.position+=1,Dn(e,t));let c=e.line,l=rn(e),u=jn(e,t,It,!1,!0);Dn(e,t),n=e.input.charCodeAt(e.position),(i||a||e.line===c)&&n===58?(r=!0,e.position++,Dn(e,t),i||Qt(e,l),u||J(e),jn(e,t,It,!1,!0)||J(e),Dn(e,t),i||tn(e)):i&&r?(u||J(e),J(e)):i?J(e):r&&(Qt(e,l),u||J(e),J(e),tn(e)),n=e.input.charCodeAt(e.position),n===44?(o=!0,e.position++):o=!1}Y(e,`unexpected end of the stream within a flow collection`)}function kn(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Q(e.input.charCodeAt(e.position+1)))return!1;for(Xt(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,rt.BLOCK);e.input.charCodeAt(e.position)===45&&Q(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Y(e,`tab characters must not be used in indentation`));let n=e.line;e.position++;let r=$(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Q(e.input.charCodeAt(e.position+1))&&Y(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?J(e):jn(e,t,Rt,!1,!0),$(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&Y(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&Q(e.input.charCodeAt(e.position+1))&&Y(e,`bad indentation of a sequence entry`)}return tn(e),!0}function An(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Y(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&Q(l))o||=(Zt(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,rt.BLOCK),!0),c===63?(i&&J(e),a=!0,i=!0):i?i=!1:(J(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(J(e),!1);let t=rn(e);if(!jn(e,n,Lt,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);on(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),Q(c)||Y(e,`a whitespace character is expected after the key-value separator within a block mapping`),!o){for(an(e,t),Zt(e,t.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,rt.BLOCK),o=!0,jn(e,n,Lt,!1,!0),c=e.input.charCodeAt(e.position);on(c);)c=e.input.charCodeAt(++e.position);e.position++}a=!0,i=!1,s=!1}else if(a)Y(e,`expected ':' after a mapping key`);else return r.anchorStart!==q||r.tagStart!==q?(an(e,t),!1):!0}else if(a)Y(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==q||r.tagStart!==q?(an(e,t),!1):!0}if(jn(e,t,zt,!0,s)&&(s=!1),i||(s&&=(J(e),!1)),$(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)Y(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return a?(i&&J(e),o&&tn(e),!0):!1}function jn(e,t,n,r,i,a=!0){e.depth>=e.maxDepth&&Y(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=nn(),d=n===zt||n===Rt,f=d,p=d;if(r&&$(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=rn(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==q||u.anchorStart!==q)&&(r===33||r===38)){let n=rn(e),r=t+1;if(An(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===U.MAPPING)return e.depth--,!0;an(e,n)}if(s&&(r===33&&u.tagStart!==q||r===38&&u.anchorStart!==q)||!vn(e,u,n===It)&&!yn(e,u))break;l===null&&(l=i),$(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===zt){let r=n===It||n===Lt?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(kn(e,i,u)||An(e,i,r,u))||On(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=rn(e),n=l.position-l.lineStart;an(e,l),An(e,n,r,nn())&&e.events[t.eventsLength]?.type===U.MAPPING?c=!0:an(e,t)}!c&&(d&&wn(e,r,u)||Sn(e,r,u)||Cn(e,r,u)||bn(e,u)||En(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&kn(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==q||u.tagStart!==q||d)&&($t(e,q,q,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,W.PLAIN),c=!0),e.depth--,c||u.anchorStart!==q||u.tagStart!==q}function Mn(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Z(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&Y(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!X(e.input.charCodeAt(e.position));){for(;on(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||X(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Z(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(X(e.input.charCodeAt(e.position))&&fn(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&Y(e,`duplication of %YAML directive`),r.length!==1&&Y(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&Y(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&Y(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&Y(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Ht.test(t)||Y(e,`ill-formed tag handle (first argument) of the TAG directive`),Ft.call(e.tagHandlers,t)&&Y(e,`there is a previously declared suffix for "${t}" tag handle`),qt.test(n)||Y(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Nn(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for($(e,!0);Mn(e);)t=!0,$(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Q(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,$(e,!0),i=e.line>t}else t&&Y(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&pn(e)){e.position+=3,$(e,!0);return}if(Yt(e,n,!1),jn(e,e.lineIndent-1,zt,!1,i,i)||J(e),$(e,!0),e.position===e.lineStart&&pn(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,$(e,!0),e.line===t&&e.position<e.length&&Y(e,`end of the stream or a document separator is expected`)}let o=e.events[a];o?.type===U.DOCUMENT&&(o.explicitEnd=r),tn(e),!r&&e.position<e.length&&!hn(e)&&Y(e,`end of the stream or a document separator is expected`)}function Pn(e,t){let n=e.length,r={...Jt,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf(`\0`);for(i!==-1&&nt.throwAt(e,i,`null byte is not allowed in input`,r.filename);r.position<r.length&&(mn(r),$(r,!0),!(r.position>=r.length));){let e=r.position;Nn(r),r.position===e&&Y(r,`can not read a document`)}return r.events}var Fn={...Jt,...St};function In(e,t={}){let n={...Fn,...t},r=String(e),i=Object.keys(Jt),a=Object.keys(St);return Pt(Pn(r,ze(n,i)),{...ze(n,a),source:r})}function Ln(e,t){let n=In(e,t);if(n.length===0)throw new nt(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new nt(`expected a single document in the stream, but found more`)}function Rn(e,t){return!!(e&1<<t)}var zn={applyQuoteFlowKeysOption:Vn,doubleQuoteForInvisibles:Hn,doubleQuoteWhitespaceOnly:Un,applyForceQuotesOption:Wn,tryLongOrMultilineAsBlock:Gn,quoteInvalidPlain:Kn,fallbackToDoubleQuoted:qn};function Bn(e){return e.presenterOptions.quoteStyle===`single`&&Rn(e.allowedStylesMask,W.SINGLE_QUOTED)?W.SINGLE_QUOTED:W.DOUBLE_QUOTED}function Vn(e){e.presenterOptions.quoteFlowKeys&&(!e.isKey||!e.flowOnly||e.style!==W.PLAIN||(e.style=W.DOUBLE_QUOTED))}function Hn(e){e.style===W.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=W.DOUBLE_QUOTED)}function Un(e){e.style===W.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=W.DOUBLE_QUOTED)}function Wn(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==W.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
51
- `)?W.DOUBLE_QUOTED:Bn(e)))}function Gn(e){if(e.style!==W.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(`
52
- `)!==-1;if(!Rn(e.allowedStylesMask,W.LITERAL_BLOCK)){n&&(e.style=W.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=W.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(`
53
- `,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=W.FOLDED_BLOCK:n&&(e.style=W.LITERAL_BLOCK)}function Kn(e){e.style===W.PLAIN&&!Rn(e.allowedStylesMask,W.PLAIN)&&(e.style=Bn(e))}function qn(e){Rn(e.allowedStylesMask,e.style)||(e.style=W.DOUBLE_QUOTED)}var Jn=`[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]`,Yn=`[\\n\\r]`,Xn=`\\uFEFF`,Zn=`[ \\t]`,Qn=`(?:(?!(?:${Yn}|${Xn}))${Jn})`,$n=`(?:(?!${Zn})${Qn})`,er=`[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]`,tr=`[-?:,\\[\\]{}#&*!|>'"%@\`]`,nr=`[,\\[\\]{}]`,rr=$n,ir=`(?:(?!${nr})${$n})`,ar=`(?:(?:(?!${tr})${$n})|[?:-](?=${rr}))`,or=`(?:(?:(?!${tr})${$n})|[?:-](?=${ir}))`,sr=`(?:(?:(?![:#])${rr})|:(?=${rr}))#*`,cr=`(?:(?:(?![:#])${ir})|:(?=${ir}))#*`,lr=`(?:${Zn}*${sr})*`,ur=`(?:${Zn}*${cr})*`,dr=`${ar}#*${lr}`,fr=`${or}#*${ur}`,pr=dr,mr=fr,hr=`\\n+${sr}${lr}`,gr=`\\n+${cr}${ur}`,_r=`${dr}(?:${hr})*`,vr=`${fr}(?:${gr})*`;RegExp(`^(?:${_r})$`,`u`),RegExp(`^(?:${vr})$`,`u`),RegExp(`^(?:${pr})$`,`u`),RegExp(`^(?:${mr})$`,`u`),RegExp(`^(?:${er})*$`,`u`),RegExp(`^(?:${er}|\\n)*$`,`u`),RegExp(`^(?:${Qn}|\\n)*$`,`u`),Object.keys(zn).map(e=>Reflect.get(zn,e)),U.DOCUMENT,U.SEQUENCE,U.MAPPING,U.SCALAR,U.ALIAS,U.POP,W.PLAIN,W.SINGLE_QUOTED,W.DOUBLE_QUOTED,W.LITERAL_BLOCK,W.FOLDED_BLOCK,rt.BLOCK,rt.FLOW,G.CLIP,G.STRIP,G.KEEP;var yr;function br(e){yr=e;let t=Object.assign({"../i18n/locale/en.yml":b,"../i18n/locale/es.yml":x});for(let[e,n]of Object.entries(t)){let t=e.split(`/`).pop().split(`.`)[0];yr.global.mergeLocaleMessage(t,Ln(n))}}function xr(){return{notify:(e,t=`positive`,n,r={})=>{let i={message:yr.global.t(e,r.translationParams||{}),type:t,icon:n||{warning:`warning`,negative:`error`,positive:`check`}[t],...r};o.Notify.create(i)}}}function Sr(e,t){if(!e||typeof e!=`object`||!Array.isArray(t)||!t.length)return{};let n={};for(let r of t)Object.hasOwn(e,r)&&(n[r]=e[r]);return n}function Cr(e,t){let n=wr(e)?e:{},r=wr(t)?t:{},i={},a=new Set([...Object.keys(n),...Object.keys(r)]);for(let e of a){let t=n[e],a=r[e];if(wr(t)&&wr(a)){let n=Cr(t,a);Object.keys(n).length&&(i[e]=n);continue}Tr(t,a)||(i[e]={expected:t,actual:a})}return i}function wr(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Tr(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}if(wr(e)&&wr(t)){let n=Cr(e,t);return!Object.keys(n).length}return Object.is(e,t)}function Er(){return{getObjectByKeys:Sr,getObjectDifferences:Cr,isComparableObject:wr,isSameValue:Tr}}var Dr=e.t(((e,t)=>{t.exports=TypeError})),Or=e.t(((e,t)=>{t.exports={}})),kr=e.t(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var P=Or(),F=P.custom,I=ce(F)?F:null,L={__proto__:null,double:`"`,single:`'`},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(V(s,`quoteStyle`)&&!V(L,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(V(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!V(s,`customInspect`)||s.customInspect;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return ye(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return te(t)?`[Array]`:`[Object]`;var g=Te(s,r);if(o===void 0)o=[];else if(fe(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return V(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!re(t)){var x=de(t),T=De(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ce(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?xe(D):D}if(ve(t)){for(var F=`<`+b.call(String(t.nodeName)),R=t.attributes||[],B=0;B<R.length;B++)F+=` `+R[B].name+`=`+z(ee(R[B].value),`double`,s);return F+=`>`,t.childNodes&&t.childNodes.length&&(F+=`...`),F+=`</`+b.call(String(t.nodeName))+`>`,F}if(te(t)){if(t.length===0)return`[]`;var ue=De(t,y);return g&&!we(ue)?`[`+Ee(ue,g)+`]`:`[ `+C.call(ue,`, `)+` ]`}if(ie(t)){var be=De(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),be),`, `)+` }`:be.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(be,`, `)+` }`}if(typeof t==`object`&&u){if(I&&typeof t[I]==`function`&&P)return P(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(pe(t)){var Oe=[];return a&&a.call(t,function(e,n){Oe.push(y(n,t,!0)+` => `+y(e,t))}),Ce(`Map`,i.call(t),Oe,g)}if(ge(t)){var ke=[];return l&&l.call(t,function(e){ke.push(y(e,t))}),Ce(`Set`,c.call(t),ke,g)}if(me(t))return Se(`WeakMap`);if(_e(t))return Se(`WeakSet`);if(he(t))return Se(`WeakRef`);if(oe(t))return xe(y(Number(t)));if(le(t))return xe(y(E.call(t)));if(se(t))return xe(p.call(t));if(ae(t))return xe(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!ne(t)&&!re(t)){var Ae=De(t,y),je=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Me=t instanceof Object?``:`null prototype`,Ne=!je&&A&&Object(t)===t&&A in t?_.call(H(t),8,-1):Me?`Object`:``,Pe=(je||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Ne||Me?`[`+C.call(S.call([],Ne||[],Me||[]),`: `)+`] `:``);return Ae.length===0?Pe+`{}`:g?Pe+`{`+Ee(Ae,g)+`}`:Pe+`{ `+C.call(Ae,`, `)+` }`}return String(t)};function z(e,t,n){var r=L[n.quoteStyle||t];return r+e+r}function ee(e){return v.call(String(e),/"/g,`&quot;`)}function B(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function te(e){return H(e)===`[object Array]`&&B(e)}function ne(e){return H(e)===`[object Date]`&&B(e)}function re(e){return H(e)===`[object RegExp]`&&B(e)}function ie(e){return H(e)===`[object Error]`&&B(e)}function ae(e){return H(e)===`[object String]`&&B(e)}function oe(e){return H(e)===`[object Number]`&&B(e)}function se(e){return H(e)===`[object Boolean]`&&B(e)}function ce(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function le(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var ue=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return ue.call(e,t)}function H(e){return m.call(e)}function de(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function fe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function pe(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function me(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function he(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function ge(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function _e(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ve(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement||typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function ye(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return ye(_.call(e,0,t.maxStringLength),t)+r}var i=R[t.quoteStyle||`single`];return i.lastIndex=0,z(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,be),`single`,t)}function be(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function xe(e){return`Object(`+e+`)`}function Se(e){return e+` { ? }`}function Ce(e,t,n,r){var i=r?Ee(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function we(e){for(var t=0;t<e.length;t++)if(fe(e[t],`
54
- `)>=0)return!1;return!0}function Te(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function Ee(e,t){if(e.length===0)return``;var n=`
55
- `+t.prev+t.base;return n+C.call(e,`,`+n)+`
56
- `+t.prev}function De(e,t){var n=te(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=V(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)V(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),Ar=e.t(((e,t)=>{var n=kr(),r=Dr(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),jr=e.t(((e,t)=>{t.exports=Object})),Mr=e.t(((e,t)=>{t.exports=Error})),Nr=e.t(((e,t)=>{t.exports=EvalError})),Pr=e.t(((e,t)=>{t.exports=RangeError})),Fr=e.t(((e,t)=>{t.exports=ReferenceError})),Ir=e.t(((e,t)=>{t.exports=SyntaxError})),Lr=e.t(((e,t)=>{t.exports=URIError})),Rr=e.t(((e,t)=>{t.exports=Math.abs})),zr=e.t(((e,t)=>{t.exports=Math.floor})),Br=e.t(((e,t)=>{t.exports=Math.max})),Vr=e.t(((e,t)=>{t.exports=Math.min})),Hr=e.t(((e,t)=>{t.exports=Math.pow})),Ur=e.t(((e,t)=>{t.exports=Math.round})),Wr=e.t(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Gr=e.t(((e,t)=>{var n=Wr();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Kr=e.t(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),qr=e.t(((e,t)=>{var n=Kr();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Jr=e.t(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Yr=e.t(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Xr=e.t(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Yr();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Zr=e.t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Qr=e.t(((e,t)=>{t.exports=jr().getPrototypeOf||null})),$r=e.t(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),ei=e.t(((e,t)=>{var n=$r();t.exports=Function.prototype.bind||n})),ti=e.t(((e,t)=>{t.exports=Function.prototype.call})),ni=e.t(((e,t)=>{t.exports=Function.prototype.apply})),ri=e.t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),ii=e.t(((e,t)=>{var n=ei(),r=ni(),i=ti();t.exports=ri()||n.call(i,r)})),ai=e.t(((e,t)=>{var n=ei(),r=Dr(),i=ti(),a=ii();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),oi=e.t(((e,t)=>{var n=ai(),r=qr(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),si=e.t(((e,t)=>{var n=Zr(),r=Qr(),i=oi();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ci=e.t(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=ei().call(n,r)})),li=e.t(((e,t)=>{var n,r=jr(),i=Mr(),a=Nr(),o=Pr(),s=Fr(),c=Ir(),l=Dr(),u=Lr(),d=Rr(),f=zr(),p=Br(),m=Vr(),h=Hr(),g=Ur(),_=Gr(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=qr(),x=Jr(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Xr()(),T=si(),E=Qr(),D=Zr(),O=ni(),k=ti(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=ei(),I=ci(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),ee=F.call(k,String.prototype.slice),B=F.call(k,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,re=function(e){var t=ee(e,0,1),n=ee(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,te,function(e,t,n,i){r[r.length]=n?z(i,ne,`$1`):t||e}),r},ie=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(B(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=re(e),r=n.length>0?n[0]:``,i=ie(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ee(p,0,1),h=ee(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),ui=e.t(((e,t)=>{var n=li(),r=ai(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),di=e.t(((e,t)=>{var n=li(),r=ui(),i=kr(),a=Dr(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),fi=e.t(((e,t)=>{var n=li(),r=ui(),i=kr(),a=di(),o=Dr(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),pi=e.t(((e,t)=>{var n=Dr(),r=kr(),i=Ar(),a=di(),o=fi()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+(e&&Object(e)===e?`the given object key`:r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),mi=e.t(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),hi=e.t(((e,t)=>{var n=mi(),r=pi(),i=Jr(),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=r(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},m=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},h=function(e,t,n){t===`__proto__`&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},g=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(o(t)){var i=t.length;if(r&&typeof r.arrayLimit==`number`&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t.concat(n),r),i)}t[i]=n}else if(t&&typeof t==`object`){if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else if(r&&r.strictMerge)return[t,n];else(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}else return[t,n];return t}if(!t||typeof t!=`object`){if(l(n)){for(var f=Object.keys(n),p=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<f.length;g++){var _=parseInt(f[g],10);p[_+1]=n[f[g]]}return c(p,u(n)+1)}var v=[t].concat(n);if(r&&typeof r.arrayLimit==`number`&&v.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(v,r),v.length-1)}return v}var y=t;if(o(t)&&!o(n)&&(y=m(t,r)),o(t)&&o(n)){if(n.forEach(function(n,i){if(a.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,r):t[t.length]=n}else t[i]=n}),r&&typeof r.arrayLimit==`number`&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var o=n[i];if(a.call(t,i)?h(t,i,e(t[i],o,r)):h(t,i,o),l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&d(t,s)}return t},y)},_=function(e,t){return Object.keys(t).reduce(function(e,n){return h(e,n,t[n]),e},e)},v=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},y=1024;t.exports={arrayToObject:m,assign:_,combine:function(e,t,n,r,i){if(l(e)){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);var a=u(e)+1;return e[a]=t,d(e,a),e}var o=[].concat(e,t);if(o.length>n){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);return c(m(o,{plainObjects:r}),o.length-1)}return o},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=r(),i=0;i<t.length;++i)for(var a=t[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];typeof u==`object`&&u&&!n.has(u)&&(t[t.length]={obj:o,prop:l},n.set(u,!0))}return p(t),e},decode:v,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=y){var l=o.length>=y?o.slice(c,c+y):o;if(c+y<o.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),--c)}for(var d=[],p=0;p<l.length;++p){var m=l.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(m===40||m===41)){d[d.length]=l.charAt(p);continue}if(m<128){d[d.length]=f[m];continue}if(m<2048){d[d.length]=f[192|m>>6]+f[128|m&63];continue}if(m<55296||m>=57344){d[d.length]=f[224|m>>12]+f[128|m>>6&63]+f[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|l.charCodeAt(p)&1023),d[d.length]=f[240|m>>18]+f[128|m>>12&63]+f[128|m>>6&63]+f[128|m&63]}s+=d.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:c,maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:g}})),gi=e.t(((e,t)=>{var n=pi(),r=hi(),i=mi(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return S(g&&!C?g(i,f.encoder,w,`key`,x):i);E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,function(e){return e==null?e:g(e)})),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I<M.length;++I){var L=M[I],R=typeof L==`object`&&L&&L.value!==void 0?L.value:E[L];if(!(d&&R===null)){var z=y&&h?String(L).replace(/\./g,`%2E`):String(L),ee=s(E)?typeof a==`function`?a(F,z):F:F+(y?`.`+z:`[`+z+`]`);T.set(t,O);var B=n();B.set(m,T),l(j,e(R,ee,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,B))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0||f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];if(_!=null){var v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B`+i.delimiter:b+=`utf8=%E2%9C%93`+i.delimiter),y.length>0?b+y:``}})),_i=e.t(((e,t)=>{var n=hi(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n,r){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1){if(r&&t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(`,`);a>-1;){if(i+=1,i>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);a=e.indexOf(`,`,a+1)}return e.split(`,`)}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded&&f!==void 0?f+1:f);if(t.throwOnLimitExceeded&&f!==void 0&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0,_.indexOf(`[]=`)===-1),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit&&(x=n.combine([],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=[],a=n.indexOf(`[`),o=a>=0?n.slice(0,a):n;if(o){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<t.depth;){for(var u=1,d=c+1,f=-1;d<s&&f<0;){var p=n.charCodeAt(d);p===91?u+=1:p===93&&(--u,u===0&&(f=d)),d+=1}if(f<0)return i[i.length]=`[`+n.slice(c)+`]`,i;var m=n.slice(c,f+1),h=m.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf(`[`,f+1)}if(c>=0){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);i[i.length]=`[`+n.slice(c)+`]`}return i},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0||a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`&&e.throwOnLimitExceeded}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),vi=e.t(((e,t)=>{var n=gi(),r=_i();t.exports={formats:mi(),parse:r,stringify:n}})),yi=e.r(vi(),1),bi=`eq`;async function xi(e,t,n){let{isLocal:i,remoteParamsArray:a,customFilterFn:o,keyData:s,url:c}=n;if(n?.dataAnalyticsFilter){let e=window.location.hash.slice(1).split(`?`)[0];r.trackAnalyticEvent(n.dataAnalyticsFilter,e)}if(!i)return v(e);let u,{remote:d,local:f}=Si(e,a),{remote:p,local:m}=Si(n.appliedParams,a),h=!n.appliedParams||!Tr(d,p),g=!n.appliedParams||!Tr(f,m),_=g?f:m;return(!h&&!g||!n?.rawResponse||h)&&c&&(u=await v(d)),u=Ci(n.rawResponse,_,o,s,n),n.appliedParams=JSON.parse(JSON.stringify(e)),u;async function v(r){let i={...r,filter:JSON.stringify(r.filter)},a=await l.default.get(n.url,{signal:t.signal,params:i,paramsSerializer:e=>yi.default.stringify(e,{skipNulls:!1})});return n.appliedParams=JSON.parse(JSON.stringify(e)),n.rawResponse=structuredClone(a.data),a}}function Si(e,t=[]){let n=e=>e&&typeof e==`object`&&!Array.isArray(e),r=n(e)?e:{},i=Array.isArray(t)?t.filter(e=>typeof e==`string`):[],a=new Set(i),o=Sr(r,i),s=Object.fromEntries(Object.entries(r).filter(([e])=>e!==`filter`&&!a.has(e))),c=n(r.filter)?r.filter:null;if(!c)return{remote:o,local:s};let l={},u={};if(n(c.where)){let e=Sr(c.where,i),t=Object.fromEntries(Object.entries(c.where).filter(([e])=>!a.has(e)));Object.keys(t).length&&(l.where=t),Object.keys(e).length&&(u.where=e)}if(Array.isArray(c.order)){let e=e=>{if(typeof e!=`string`)return!1;let t=e.toLowerCase();return i.some(e=>{let n=e.toLowerCase();return t===n||t.startsWith(`${n} `)||t.includes(`.${n} `)})},t=c.order.filter(e),n=c.order.filter(t=>!e(t));n.length&&(l.order=n),t.length&&(u.order=t)}return Object.assign(u,Object.fromEntries(Object.entries(c).filter(([e])=>e!==`where`&&e!==`order`))),Object.keys(l).length&&(s.filter=l),Object.keys(u).length&&(o.filter=u),{remote:o,local:s}}function Ci(e,t,n,i,a){let{isStackableParams:o,nonStackableParams:s,stackedParams:c}=a,l=i?e[i]:e??a.data,u=JSON.parse(JSON.stringify(t)),d=u?.filter,f=d?.order,p=d?.where,m=JSON.parse(JSON.stringify(u));delete m.filter;let h=Object.keys(p??{}).length,g=Object.keys(m??{}).length,_=o&&c.length;if(h||g||_){let e=[];p&&y(p,e),m&&y(m,e),o&&v(a,e);function v(e,t){t.push(...e.stackedParams.filter(e=>!t.find(t=>t.column===e.column&&t.operator===e.operator&&!Array.isArray(e.value)&&Tr(t.value,e.value)))),o&&(e.stackedParams=t.filter(e=>!s?.includes(e.column)))}function y(e,t){for(let n in e){let r=e[n]&&typeof e[n]==`object`&&!Array.isArray(e[n]),i=r?Object.keys(e[n])[0]:bi,a=r?e[n][i]:e[n];t.push({column:n,operator:i,value:a})}}function b(e,t){let n;for(let i of t){try{let t=r.advancedFilters?.[i.operator]?.localEval;n=t?t(e[i.column],i.value):!1}catch(n){return console.error(`fetchLocalData filter comparison error`,{row:e,filter:i,filters:t,error:n}),!1}if(!n)break}return n}let t=n?t=>n(t,e,b):t=>b(t,e);l=l.filter(t)}if(f){let e=wi(f);l=Oi(l,e)}let x;return x=i?{...e,[i]:l}:{data:l},x}function wi(e){return typeof e==`string`&&(e=e.split(`,`)),e.map(e=>{let[t,n=`asc`]=e.trim().split(/\s+/);return{key:t,order:n.toLowerCase()===`desc`?`desc`:`asc`}})}function Ti(e){if(e==null)return null;if(e instanceof Date)return e.getTime();if(typeof e==`boolean`)return+!!e;if(typeof e==`number`)return e;if(typeof e==`string`){let t=Number(e);if(!isNaN(t)&&e.trim()!==``)return t;if(Ei(e)){let t=new Date(e);if(!isNaN(t.getTime()))return t.getTime()}return e.toLowerCase()}return e}function Ei(e){return/^(\d{4}-\d{2}-\d{2})([T ][\d:.+-]+(?:Z)?)?$/.test(e.trim())}function Di(e,t,n){let r=n===`asc`?1:-1,i=Ti(e),a=Ti(t);return i==null&&a==null?0:i==null?1:a==null?-1:typeof i==`string`&&typeof a==`string`?r*i.localeCompare(a):i>a?r:i<a?-r:0}function Oi(e,t){return[...e].sort((e,n)=>{for(let{key:r,order:i}of t){let t=Di(e[r],n[r],i);if(t!==0)return t}return 0})}var ki=(0,i.ref)({}),Ai=(0,i.ref)({id:0,name:``,nickname:``,lang:``,darkMode:null,companyFk:null,warehouseFk:null,centralWeekPlacement:null,yearScope:null});sessionStorage.getItem(`user`)&&(Ai.value=JSON.parse(sessionStorage.getItem(`user`)));var ji=(0,i.ref)([]),Mi=(0,i.ref)([]),Ni=(0,i.ref)(!0),Pi=(0,i.ref)(!1);function Fi(){function e(){return(0,i.computed)(()=>Ai.value)}function t(e){let t={...JSON.parse(sessionStorage.getItem(`user`)),...e};return sessionStorage.setItem(`user`,JSON.stringify(t)),Ai.value=t,t}function n(){return(0,i.computed)(()=>ji.value)}function r(e){ji.value=e}function a(){return(0,i.computed)(()=>Mi.value)}function o(e){Mi.value=e}function s(e,t){ki.value[e]=(0,i.ref)(t)}function c(e){return ki.value[e]}function l(e){delete ki.value[e]}return{getUser:e,setUser:t,getRoles:n,setRoles:r,getAcls:a,setAcls:o,set:s,get:c,unset:l,drawer:Ni,headerMounted:Pi}}Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return xi}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return d}});