@platforma-sdk/ui-vue 1.11.6 → 1.11.8

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.
package/dist/lib.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(I,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@ag-grid-enterprise/core"),require("@ag-grid-community/core"),require("@ag-grid-community/client-side-row-model"),require("@ag-grid-community/infinite-row-model"),require("@ag-grid-enterprise/server-side-row-model"),require("@ag-grid-community/csv-export"),require("@ag-grid-enterprise/clipboard"),require("@ag-grid-enterprise/range-selection"),require("@ag-grid-enterprise/rich-select"),require("@ag-grid-enterprise/menu"),require("@ag-grid-enterprise/excel-export"),require("@ag-grid-community/theming"),require("@ag-grid-community/vue3")):typeof define=="function"&&define.amd?define(["exports","vue","@ag-grid-enterprise/core","@ag-grid-community/core","@ag-grid-community/client-side-row-model","@ag-grid-community/infinite-row-model","@ag-grid-enterprise/server-side-row-model","@ag-grid-community/csv-export","@ag-grid-enterprise/clipboard","@ag-grid-enterprise/range-selection","@ag-grid-enterprise/rich-select","@ag-grid-enterprise/menu","@ag-grid-enterprise/excel-export","@ag-grid-community/theming","@ag-grid-community/vue3"],r):(I=typeof globalThis<"u"?globalThis:I||self,r(I.SdkVueLib={},I.Vue,I.core$1,I.core,I.clientSideRowModel,I.infiniteRowModel,I.serverSideRowModel,I.csvExport,I.clipboard,I.rangeSelection,I.richSelect,I.menu,I.excelExport,I.theming,I.vue3))})(this,function(I,r,Me,b,Qi,rm,ad,om,ld,cd,im,sm,am,dd,lm){"use strict";var gR=Object.defineProperty;var em=I=>{throw TypeError(I)};var yR=(I,r,Me)=>r in I?gR(I,r,{enumerable:!0,configurable:!0,writable:!0,value:Me}):I[r]=Me;var Ze=(I,r,Me)=>yR(I,typeof r!="symbol"?r+"":r,Me),nd=(I,r,Me)=>r.has(I)||em("Cannot "+Me);var w=(I,r,Me)=>(nd(I,r,"read from private field"),Me?Me.call(I):r.get(I)),Oe=(I,r,Me)=>r.has(I)?em("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(I):r.set(I,Me),me=(I,r,Me,b)=>(nd(I,r,"write to private field"),b?b.call(I,Me):r.set(I,Me),Me),de=(I,r,Me)=>(nd(I,r,"access private method"),Me);var ka=(I,r,Me,b)=>({set _(Qi){me(I,r,Qi,Me)},get _(){return w(I,r,b)}});var _p,wo,Cp,wp,un,Ot,pn,hn,bo,xo,ct,fn,at,Ke,be,Tt,Gt,wt,ht,mn,ft,gn,yn,zt,vn,_r,Bt,te,rd,Zr,$n,Ni,$t,nm,Ur,ko,Vi,Vr,Pr,od,Sa,Ea,Je,id,Xi,Dr,sd;function cm(t,e){if(t==null)throw Error(e??"Empty (null | undefined) value");return t}const ud=Array.isArray;function dm(t){return t!==null&&typeof t=="object"}function pd(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null}function En(t){if(Array.isArray(t)){const e=[];for(let n=0;n<t.length;n++)e[n]=En(t[n]);return e}else if(dm(t)){const e={};return Object.keys(t).forEach(n=>{e[n]=En(t[n])}),e}else return t}function hd(t,e){return new Set([...Object.keys(t),...Object.keys(e)]).forEach(n=>{const o=t[n],s=e[n];pd(o)&&pd(s)||ud(o)&&ud(s)&&o.length===s.length?hd(o,s):t[n]=s}),t}function Ta(t,e,n=!0){let o=0,s;return function(...l){s=()=>{t.apply(this,l),o=new Date().getTime()+e,s=null,n&&setTimeout(()=>{s&&s()},e)},new Date().getTime()>o&&s()}}function um(t){let e=0n,n;return async function(...o){const s=++e;try{await n}catch{}if(e!==s)return{ok:!1};const l=t(...o);return n=l,{ok:!0,value:await l}}}var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hm=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((s,l,d)=>`${s}${d===0?"":","}${t(l===void 0||typeof l=="symbol"?null:l)}`,"")}]`:`{${Object.keys(e).sort().reduce((o,s)=>{if(e[s]===void 0||typeof e[s]=="symbol")return o;const l=o.length===0?"":",";return`${o}${l}${t(s)}:${t(e[s])}`},"")}}`};const no=pm(hm);class Ba extends Error{}class Aa extends Error{constructor(e){super(e.join(`
1
+ (function(I,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@ag-grid-enterprise/core"),require("@ag-grid-community/core"),require("@ag-grid-community/client-side-row-model"),require("@ag-grid-community/infinite-row-model"),require("@ag-grid-enterprise/server-side-row-model"),require("@ag-grid-community/csv-export"),require("@ag-grid-enterprise/clipboard"),require("@ag-grid-enterprise/range-selection"),require("@ag-grid-enterprise/rich-select"),require("@ag-grid-enterprise/menu"),require("@ag-grid-enterprise/excel-export"),require("@ag-grid-community/theming"),require("@ag-grid-community/vue3")):typeof define=="function"&&define.amd?define(["exports","vue","@ag-grid-enterprise/core","@ag-grid-community/core","@ag-grid-community/client-side-row-model","@ag-grid-community/infinite-row-model","@ag-grid-enterprise/server-side-row-model","@ag-grid-community/csv-export","@ag-grid-enterprise/clipboard","@ag-grid-enterprise/range-selection","@ag-grid-enterprise/rich-select","@ag-grid-enterprise/menu","@ag-grid-enterprise/excel-export","@ag-grid-community/theming","@ag-grid-community/vue3"],r):(I=typeof globalThis<"u"?globalThis:I||self,r(I.SdkVueLib={},I.Vue,I.core$1,I.core,I.clientSideRowModel,I.infiniteRowModel,I.serverSideRowModel,I.csvExport,I.clipboard,I.rangeSelection,I.richSelect,I.menu,I.excelExport,I.theming,I.vue3))})(this,function(I,r,Me,b,Qi,rm,ad,om,ld,cd,im,sm,am,dd,lm){"use strict";var vR=Object.defineProperty;var em=I=>{throw TypeError(I)};var _R=(I,r,Me)=>r in I?vR(I,r,{enumerable:!0,configurable:!0,writable:!0,value:Me}):I[r]=Me;var Ze=(I,r,Me)=>_R(I,typeof r!="symbol"?r+"":r,Me),nd=(I,r,Me)=>r.has(I)||em("Cannot "+Me);var w=(I,r,Me)=>(nd(I,r,"read from private field"),Me?Me.call(I):r.get(I)),Oe=(I,r,Me)=>r.has(I)?em("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(I):r.set(I,Me),me=(I,r,Me,b)=>(nd(I,r,"write to private field"),b?b.call(I,Me):r.set(I,Me),Me),de=(I,r,Me)=>(nd(I,r,"access private method"),Me);var ka=(I,r,Me,b)=>({set _(Qi){me(I,r,Qi,Me)},get _(){return w(I,r,b)}});var _p,wo,Cp,wp,un,Ot,pn,hn,bo,xo,ct,fn,at,Ke,be,Tt,Gt,wt,ht,mn,ft,gn,yn,zt,vn,_r,Bt,te,rd,Zr,$n,Ni,$t,nm,Ur,ko,Vi,Vr,Pr,od,Sa,Ea,Je,id,Xi,Dr,sd;function cm(t,e){if(t==null)throw Error(e??"Empty (null | undefined) value");return t}const ud=Array.isArray;function dm(t){return t!==null&&typeof t=="object"}function pd(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null}function En(t){if(Array.isArray(t)){const e=[];for(let n=0;n<t.length;n++)e[n]=En(t[n]);return e}else if(dm(t)){const e={};return Object.keys(t).forEach(n=>{e[n]=En(t[n])}),e}else return t}function hd(t,e){return new Set([...Object.keys(t),...Object.keys(e)]).forEach(n=>{const o=t[n],s=e[n];pd(o)&&pd(s)||ud(o)&&ud(s)&&o.length===s.length?hd(o,s):t[n]=s}),t}function Ta(t,e,n=!0){let o=0,s;return function(...l){s=()=>{t.apply(this,l),o=new Date().getTime()+e,s=null,n&&setTimeout(()=>{s&&s()},e)},new Date().getTime()>o&&s()}}function um(t){let e=0n,n;return async function(...o){const s=++e;try{await n}catch{}if(e!==s)return{ok:!1};const l=t(...o);return n=l,{ok:!0,value:await l}}}var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hm=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((s,l,d)=>`${s}${d===0?"":","}${t(l===void 0||typeof l=="symbol"?null:l)}`,"")}]`:`{${Object.keys(e).sort().reduce((o,s)=>{if(e[s]===void 0||typeof e[s]=="symbol")return o;const l=o.length===0?"":",";return`${o}${l}${t(s)}:${t(e[s])}`},"")}}`};const no=pm(hm);class Ba extends Error{}class Aa extends Error{constructor(e){super(e.join(`
2
2
  `)),this.errors=e}toString(){return this.errors.join(`
3
3
  `)}}function fm(t){return{ok:!0,value:t}}function fd(t){if(!t)throw new Ba;if(!t.ok)throw Error(t.errors.join(";"));return t.value}function md(t){return{value:t,errors:void 0}}function mm(t){if(t.errors)throw new Aa(t.errors);if(!t.value)throw new Ba;return t.value}function gm(t){return t!==void 0}function Na(t,e){return no(t)===no(e)}const Va=t=>t,Pa=t=>t instanceof Error?t:Error(String(t)),Da=t=>t.name==="ZodError",Fa=t=>{const{formErrors:e,fieldErrors:n}=t.flatten(),o=Object.entries(n).map(([s,l])=>s+":"+(l==null?void 0:l.join(",")));return e.concat(o).join("; ")};function Ra(t){const e=t.validate??Va,{autoSave:n}=t,o=r.ref(),s=r.ref(),l=N=>{s.value={model:En(N)}};r.watch(()=>t.get(),N=>l(N),{immediate:!0});const d=()=>{var N;t.onSave(e(En((N=s.value)==null?void 0:N.model)))},u=()=>{l(t.get()),o.value=void 0},p=N=>{const L=Pa(N);Da(L)?o.value=Error(Fa(L)):o.value=L},f=N=>{o.value=void 0;try{e(N),n&&d()}catch(L){p(L)}},m=r.computed({get:()=>{var N;return(N=s.value)==null?void 0:N.model},set(N){l(N),f(N)}});r.watch(s,(N,L)=>{N&&N===L&&f(N.model)},{deep:!0});const y=r.computed(()=>!o.value),E=r.computed(()=>!Na(t.get(),r.unref(s))),S=r.computed(()=>o.value?o.value.message:"");return r.reactive({model:m,valid:y,isChanged:E,error:o,errorString:S,save:d,revert:u,setError:p})}function ym(t,e,n){const o=t.validate??Va,{autoSave:s}=t,l=r.ref(),d=r.ref(),u=O=>{var C;if(n.deepPatchModel){const A=(C=d.value)==null?void 0:C.model,H=Object.assign(En(O),e??{});d.value={model:A?hd(A,H):H,stage:Symbol()}}else d.value={model:Object.assign(En(O),e??{}),stage:Symbol()}};r.watch(()=>t.get(),O=>u(O),{immediate:!0});const p=()=>{var O;t.onSave(o(En((O=d.value)==null?void 0:O.model)))},f=()=>{u(t.get()),l.value=void 0},m=O=>{const C=Pa(O);Da(C)?l.value=Error(Fa(C)):l.value=C},y=O=>{l.value=void 0;try{o(O),s&&p()}catch(C){m(C)}},E=r.computed({get:()=>{var O;return(O=d.value)==null?void 0:O.model},set(){throw Error("Cannot replace base model")}});r.watch([()=>({args:E.value.args,ui:E.value.ui}),()=>{var O;return(O=d.value)==null?void 0:O.stage}],([O,C],[A,H])=>{C===H&&y(O)},{deep:!0});const S=r.computed(()=>!l.value),N=r.computed(()=>{var A;const{args:O,ui:C}=((A=r.unref(d))==null?void 0:A.model)??{};return!Na(t.get(),{args:O,ui:C})}),L=r.computed(()=>l.value?l.value.message:"");return r.reactive({model:E,valid:S,isChanged:N,error:l,errorString:L,save:p,revert:f,setError:m})}const vm=t=>Object.fromEntries(new URL(t,"http://dummy").searchParams);function _m(t,e,n){const o=(C,...A)=>{n.debug&&console.log(`%c>>> %c${C}`,"color: orange; font-weight: bold","color: orange",...A)},l=Ta(e.setBlockArgs,100),d=Ta(e.setBlockUiState,100),u=Ta(e.setBlockArgsAndUiState,100),p=r.reactive({args:Object.freeze(t.args),outputs:Object.freeze(t.outputs),ui:Object.freeze(t.ui),navigationState:Object.freeze(t.navigationState)});e.onStateUpdates(async C=>{C.forEach(A=>{A.key==="args"&&(p.args=Object.freeze(A.value),o("args patch",p.args)),A.key==="ui"&&(p.ui=Object.freeze(A.value),o("ui patch",p.ui)),A.key==="outputs"&&(p.outputs=Object.freeze(A.value),o("outputs patch",p.outputs)),A.key==="navigationState"&&(p.navigationState=Object.freeze(A.value),o("navigationState patch",p.navigationState))}),await r.nextTick()});const f=()=>En(p.args),m=()=>En(p.ui),y=()=>En(p.navigationState),E={createArgsModel(C={}){return Ra({get(){return C.transform?C.transform(p.args):p.args},validate:C.validate,autoSave:!0,onSave(A){l(A)}})},createUiModel(C={},A){return Ra({get(){return C.transform?C.transform(p.ui):p.ui??A()},validate:C.validate,autoSave:!0,onSave(H){d(H)}})},useOutputs(...C){const A=r.reactive({errors:void 0,value:void 0});return r.watch(()=>p.outputs,()=>{try{Object.assign(A,{value:this.unwrapOutputs(...C),errors:void 0})}catch(H){Object.assign(A,{value:void 0,errors:[String(H)]})}},{immediate:!0,deep:!0}),A},unwrapOutputs(...C){const A=p.outputs,H=C.map(X=>[X,fd(A[X])]);return Object.fromEntries(H)},getOutputField(C){return p.outputs[C]},getOutputFieldOkOptional(C){console.warn("use reactive app.outputValues.fieldName instead instead of getOutputFieldOkOptional(fieldName)");const A=this.getOutputField(C);if(A&&A.ok)return A.value},getOutputFieldErrorsOptional(C){console.warn("use reactive app.outputErrors.fieldName instead instead of getOutputFieldErrorsOptional(fieldName)");const A=this.getOutputField(C);if(A&&!A.ok)return A.errors},updateArgs(C){const A=f();return C(A),e.setBlockArgs(A)},updateUiState(C){const A=m();return e.setBlockUiState(C(A))},updateNavigationState(C){const A=y();return C(A),e.setNavigationState(A)},navigateTo(C){const A=y();return A.href=C,e.setNavigationState(A)}},S=r.computed(()=>{const C=Object.entries(p.outputs).map(([A,H])=>[A,H.ok&&H.value!==void 0?H.value:void 0]);return Object.fromEntries(C)}),N=r.computed(()=>{const C=Object.entries(p.outputs).map(([A,H])=>[A,H&&!H.ok?new Aa(H.errors):void 0]);return Object.fromEntries(C)}),L={snapshot:p,queryParams:r.computed(()=>vm(p.navigationState.href)),href:r.computed(()=>p.navigationState.href),hasErrors:r.computed(()=>Object.values(p.outputs).some(C=>!(C!=null&&C.ok))),outputValues:r.computed(()=>(console.warn("Change app.outputValues to app.model.outputs"),S.value)),outputErrors:r.computed(()=>(console.warn("Change app.outputErrors to app.model.outputErrors"),N.value)),args:r.computed(()=>(console.warn("Change app.args to app.snapshot.args"),p.args)),outputs:r.computed(()=>(console.warn("Change app.outputs to app.snapshot.outputs"),p.outputs)),ui:r.computed(()=>(console.warn("Change app.ui to app.snapshot.ui"),p.ui)),navigationState:r.computed(()=>(console.warn("Change app.navigationState to app.snapshot.navigationState"),p.navigationState))},O=ym({get(){return{args:p.args,ui:p.ui}},autoSave:!0,onSave(C){u(C.args,C.ui)}},{outputs:S,outputErrors:N},n);return r.reactive(Object.assign(O,E,L))}var Ie;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const l={};for(const d of s)l[d]=d;return l},t.getValidEnumValues=s=>{const l=t.objectKeys(s).filter(u=>typeof s[s[u]]!="number"),d={};for(const u of l)d[u]=s[u];return t.objectValues(d)},t.objectValues=s=>t.objectKeys(s).map(function(l){return s[l]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const l=[];for(const d in s)Object.prototype.hasOwnProperty.call(s,d)&&l.push(d);return l},t.find=(s,l)=>{for(const d of s)if(l(d))return d},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function o(s,l=" | "){return s.map(d=>typeof d=="string"?`'${d}'`:d).join(l)}t.joinValues=o,t.jsonStringifyReplacer=(s,l)=>typeof l=="bigint"?l.toString():l})(Ie||(Ie={}));var Ma;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Ma||(Ma={}));const ae=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),er=t=>{switch(typeof t){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(t)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(t)?ae.array:t===null?ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ae.promise:typeof Map<"u"&&t instanceof Map?ae.map:typeof Set<"u"&&t instanceof Set?ae.set:typeof Date<"u"&&t instanceof Date?ae.date:ae.object;default:return ae.unknown}},Q=Ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cm=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class It extends Error{constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const n=e||function(l){return l.message},o={_errors:[]},s=l=>{for(const d of l.issues)if(d.code==="invalid_union")d.unionErrors.map(s);else if(d.code==="invalid_return_type")s(d.returnTypeError);else if(d.code==="invalid_arguments")s(d.argumentsError);else if(d.path.length===0)o._errors.push(n(d));else{let u=o,p=0;for(;p<d.path.length;){const f=d.path[p];p===d.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(d))):u[f]=u[f]||{_errors:[]},u=u[f],p++}}};return s(this),o}static assert(e){if(!(e instanceof It))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},o=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):o.push(e(s));return{formErrors:o,fieldErrors:n}}get formErrors(){return this.flatten()}}It.create=t=>new It(t);const ro=(t,e)=>{let n;switch(t.code){case Q.invalid_type:t.received===ae.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ie.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ie.joinValues(t.keys,", ")}`;break;case Q.invalid_union:n="Invalid input";break;case Q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ie.joinValues(t.options)}`;break;case Q.invalid_enum_value:n=`Invalid enum value. Expected ${Ie.joinValues(t.options)}, received '${t.received}'`;break;case Q.invalid_arguments:n="Invalid function arguments";break;case Q.invalid_return_type:n="Invalid function return type";break;case Q.invalid_date:n="Invalid date";break;case Q.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ie.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Q.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Q.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Q.custom:n="Invalid input";break;case Q.invalid_intersection_types:n="Intersection results could not be merged";break;case Q.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Q.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ie.assertNever(t)}return{message:n}};let gd=ro;function wm(t){gd=t}function es(){return gd}const ts=t=>{const{data:e,path:n,errorMaps:o,issueData:s}=t,l=[...n,...s.path||[]],d={...s,path:l};if(s.message!==void 0)return{...s,path:l,message:s.message};let u="";const p=o.filter(f=>!!f).slice().reverse();for(const f of p)u=f(d,{data:e,defaultError:u}).message;return{...s,path:l,message:u}},bm=[];function oe(t,e){const n=es(),o=ts({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===ro?void 0:ro].filter(s=>!!s)});t.common.issues.push(o)}class vt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const o=[];for(const s of n){if(s.status==="aborted")return Ce;s.status==="dirty"&&e.dirty(),o.push(s.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,n){const o=[];for(const s of n){const l=await s.key,d=await s.value;o.push({key:l,value:d})}return vt.mergeObjectSync(e,o)}static mergeObjectSync(e,n){const o={};for(const s of n){const{key:l,value:d}=s;if(l.status==="aborted"||d.status==="aborted")return Ce;l.status==="dirty"&&e.dirty(),d.status==="dirty"&&e.dirty(),l.value!=="__proto__"&&(typeof d.value<"u"||s.alwaysSet)&&(o[l.value]=d.value)}return{status:e.value,value:o}}}const Ce=Object.freeze({status:"aborted"}),oo=t=>({status:"dirty",value:t}),kt=t=>({status:"valid",value:t}),Ia=t=>t.status==="aborted",La=t=>t.status==="dirty",zo=t=>t.status==="valid",$o=t=>typeof Promise<"u"&&t instanceof Promise;function ns(t,e,n,o){if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function yd(t,e,n,o,s){if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}typeof SuppressedError=="function"&&SuppressedError;var pe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(pe||(pe={}));var Zo,Uo;class Tn{constructor(e,n,o,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=o,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const vd=(t,e)=>{if(zo(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new It(t.common.issues);return this._error=n,this._error}}};function Se(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:o,description:s}=t;if(e&&(n||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(d,u)=>{var p,f;const{message:m}=t;return d.code==="invalid_enum_value"?{message:m??u.defaultError}:typeof u.data>"u"?{message:(p=m??o)!==null&&p!==void 0?p:u.defaultError}:d.code!=="invalid_type"?{message:u.defaultError}:{message:(f=m??n)!==null&&f!==void 0?f:u.defaultError}},description:s}}class Be{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return er(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:er(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new vt,ctx:{common:e.parent.common,data:e.data,parsedType:er(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if($o(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const o=this.safeParse(e,n);if(o.success)return o.data;throw o.error}safeParse(e,n){var o;const s={common:{issues:[],async:(o=n==null?void 0:n.async)!==null&&o!==void 0?o:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:er(e)},l=this._parseSync({data:e,path:s.path,parent:s});return vd(s,l)}async parseAsync(e,n){const o=await this.safeParseAsync(e,n);if(o.success)return o.data;throw o.error}async safeParseAsync(e,n){const o={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:er(e)},s=this._parse({data:e,path:o.path,parent:o}),l=await($o(s)?s:Promise.resolve(s));return vd(o,l)}refine(e,n){const o=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,l)=>{const d=e(s),u=()=>l.addIssue({code:Q.custom,...o(s)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(u(),!1)):d?!0:(u(),!1)})}refinement(e,n){return this._refinement((o,s)=>e(o)?!0:(s.addIssue(typeof n=="function"?n(o,s):n),!1))}_refinement(e){return new an({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return An.create(this,this._def)}nullable(){return or.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return sn.create(this,this._def)}promise(){return lo.create(this,this._def)}or(e){return qo.create([this,e],this._def)}and(e){return Ko.create(this,e,this._def)}transform(e){return new an({...Se(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new ei({...Se(this._def),innerType:this,defaultValue:n,typeName:ve.ZodDefault})}brand(){return new za({typeName:ve.ZodBranded,type:this,...Se(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new ti({...Se(this._def),innerType:this,catchValue:n,typeName:ve.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return ni.create(this,e)}readonly(){return ri.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const xm=/^c[^\s-]{8,}$/i,km=/^[0-9a-z]+$/,Sm=/^[0-9A-HJKMNP-TV-Z]{26}$/,Em=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Tm=/^[a-z0-9_-]{21}$/i,Bm=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Am=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Nm="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Oa;const Vm=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pm=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Dm=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_d="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Fm=new RegExp(`^${_d}$`);function Cd(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Rm(t){return new RegExp(`^${Cd(t)}$`)}function wd(t){let e=`${_d}T${Cd(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Mm(t,e){return!!((e==="v4"||!e)&&Vm.test(t)||(e==="v6"||!e)&&Pm.test(t))}class on extends Be{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){const l=this._getOrReturnCtx(e);return oe(l,{code:Q.invalid_type,expected:ae.string,received:l.parsedType}),Ce}const o=new vt;let s;for(const l of this._def.checks)if(l.kind==="min")e.data.length<l.value&&(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),o.dirty());else if(l.kind==="max")e.data.length>l.value&&(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),o.dirty());else if(l.kind==="length"){const d=e.data.length>l.value,u=e.data.length<l.value;(d||u)&&(s=this._getOrReturnCtx(e,s),d?oe(s,{code:Q.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):u&&oe(s,{code:Q.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),o.dirty())}else if(l.kind==="email")Am.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"email",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="emoji")Oa||(Oa=new RegExp(Nm,"u")),Oa.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"emoji",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="uuid")Em.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"uuid",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="nanoid")Tm.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"nanoid",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="cuid")xm.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"cuid",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="cuid2")km.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"cuid2",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="ulid")Sm.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"ulid",code:Q.invalid_string,message:l.message}),o.dirty());else if(l.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),oe(s,{validation:"url",code:Q.invalid_string,message:l.message}),o.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"regex",code:Q.invalid_string,message:l.message}),o.dirty())):l.kind==="trim"?e.data=e.data.trim():l.kind==="includes"?e.data.includes(l.value,l.position)||(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),o.dirty()):l.kind==="toLowerCase"?e.data=e.data.toLowerCase():l.kind==="toUpperCase"?e.data=e.data.toUpperCase():l.kind==="startsWith"?e.data.startsWith(l.value)||(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.invalid_string,validation:{startsWith:l.value},message:l.message}),o.dirty()):l.kind==="endsWith"?e.data.endsWith(l.value)||(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.invalid_string,validation:{endsWith:l.value},message:l.message}),o.dirty()):l.kind==="datetime"?wd(l).test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.invalid_string,validation:"datetime",message:l.message}),o.dirty()):l.kind==="date"?Fm.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.invalid_string,validation:"date",message:l.message}),o.dirty()):l.kind==="time"?Rm(l).test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.invalid_string,validation:"time",message:l.message}),o.dirty()):l.kind==="duration"?Bm.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"duration",code:Q.invalid_string,message:l.message}),o.dirty()):l.kind==="ip"?Mm(e.data,l.version)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"ip",code:Q.invalid_string,message:l.message}),o.dirty()):l.kind==="base64"?Dm.test(e.data)||(s=this._getOrReturnCtx(e,s),oe(s,{validation:"base64",code:Q.invalid_string,message:l.message}),o.dirty()):Ie.assertNever(l);return{status:o.value,value:e.data}}_regex(e,n,o){return this.refinement(s=>e.test(s),{validation:n,code:Q.invalid_string,...pe.errToObj(o)})}_addCheck(e){return new on({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...pe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...pe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})}datetime(e){var n,o;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(o=e==null?void 0:e.local)!==null&&o!==void 0?o:!1,...pe.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...pe.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...pe.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...pe.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...pe.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...pe.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...pe.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...pe.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...pe.errToObj(n)})}nonempty(e){return this.min(1,pe.errToObj(e))}trim(){return new on({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new on({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new on({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}on.create=t=>{var e;return new on({checks:[],typeName:ve.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Se(t)})};function Im(t,e){const n=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,s=n>o?n:o,l=parseInt(t.toFixed(s).replace(".","")),d=parseInt(e.toFixed(s).replace(".",""));return l%d/Math.pow(10,s)}class tr extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){const l=this._getOrReturnCtx(e);return oe(l,{code:Q.invalid_type,expected:ae.number,received:l.parsedType}),Ce}let o;const s=new vt;for(const l of this._def.checks)l.kind==="int"?Ie.isInteger(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.invalid_type,expected:"integer",received:"float",message:l.message}),s.dirty()):l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),s.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),s.dirty()):l.kind==="multipleOf"?Im(e.data,l.value)!==0&&(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.not_multiple_of,multipleOf:l.value,message:l.message}),s.dirty()):l.kind==="finite"?Number.isFinite(e.data)||(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.not_finite,message:l.message}),s.dirty()):Ie.assertNever(l);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,o,s){return new tr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:o,message:pe.toString(s)}]})}_addCheck(e){return new tr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ie.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(n===null||o.value>n)&&(n=o.value):o.kind==="max"&&(e===null||o.value<e)&&(e=o.value)}return Number.isFinite(n)&&Number.isFinite(e)}}tr.create=t=>new tr({checks:[],typeName:ve.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Se(t)});class nr extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ae.bigint){const l=this._getOrReturnCtx(e);return oe(l,{code:Q.invalid_type,expected:ae.bigint,received:l.parsedType}),Ce}let o;const s=new vt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?e.data<l.value:e.data<=l.value)&&(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),s.dirty()):l.kind==="max"?(l.inclusive?e.data>l.value:e.data>=l.value)&&(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),s.dirty()):l.kind==="multipleOf"?e.data%l.value!==BigInt(0)&&(o=this._getOrReturnCtx(e,o),oe(o,{code:Q.not_multiple_of,multipleOf:l.value,message:l.message}),s.dirty()):Ie.assertNever(l);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,o,s){return new nr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:o,message:pe.toString(s)}]})}_addCheck(e){return new nr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}nr.create=t=>{var e;return new nr({checks:[],typeName:ve.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Se(t)})};class Wo extends Be{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){const o=this._getOrReturnCtx(e);return oe(o,{code:Q.invalid_type,expected:ae.boolean,received:o.parsedType}),Ce}return kt(e.data)}}Wo.create=t=>new Wo({typeName:ve.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Se(t)});class Fr extends Be{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){const l=this._getOrReturnCtx(e);return oe(l,{code:Q.invalid_type,expected:ae.date,received:l.parsedType}),Ce}if(isNaN(e.data.getTime())){const l=this._getOrReturnCtx(e);return oe(l,{code:Q.invalid_date}),Ce}const o=new vt;let s;for(const l of this._def.checks)l.kind==="min"?e.data.getTime()<l.value&&(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),o.dirty()):l.kind==="max"?e.data.getTime()>l.value&&(s=this._getOrReturnCtx(e,s),oe(s,{code:Q.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),o.dirty()):Ie.assertNever(l);return{status:o.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Fr({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:pe.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:pe.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Fr.create=t=>new Fr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ve.ZodDate,...Se(t)});class rs extends Be{_parse(e){if(this._getType(e)!==ae.symbol){const o=this._getOrReturnCtx(e);return oe(o,{code:Q.invalid_type,expected:ae.symbol,received:o.parsedType}),Ce}return kt(e.data)}}rs.create=t=>new rs({typeName:ve.ZodSymbol,...Se(t)});class Ho extends Be{_parse(e){if(this._getType(e)!==ae.undefined){const o=this._getOrReturnCtx(e);return oe(o,{code:Q.invalid_type,expected:ae.undefined,received:o.parsedType}),Ce}return kt(e.data)}}Ho.create=t=>new Ho({typeName:ve.ZodUndefined,...Se(t)});class jo extends Be{_parse(e){if(this._getType(e)!==ae.null){const o=this._getOrReturnCtx(e);return oe(o,{code:Q.invalid_type,expected:ae.null,received:o.parsedType}),Ce}return kt(e.data)}}jo.create=t=>new jo({typeName:ve.ZodNull,...Se(t)});class io extends Be{constructor(){super(...arguments),this._any=!0}_parse(e){return kt(e.data)}}io.create=t=>new io({typeName:ve.ZodAny,...Se(t)});class Rr extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(e){return kt(e.data)}}Rr.create=t=>new Rr({typeName:ve.ZodUnknown,...Se(t)});class In extends Be{_parse(e){const n=this._getOrReturnCtx(e);return oe(n,{code:Q.invalid_type,expected:ae.never,received:n.parsedType}),Ce}}In.create=t=>new In({typeName:ve.ZodNever,...Se(t)});class os extends Be{_parse(e){if(this._getType(e)!==ae.undefined){const o=this._getOrReturnCtx(e);return oe(o,{code:Q.invalid_type,expected:ae.void,received:o.parsedType}),Ce}return kt(e.data)}}os.create=t=>new os({typeName:ve.ZodVoid,...Se(t)});class sn extends Be{_parse(e){const{ctx:n,status:o}=this._processInputParams(e),s=this._def;if(n.parsedType!==ae.array)return oe(n,{code:Q.invalid_type,expected:ae.array,received:n.parsedType}),Ce;if(s.exactLength!==null){const d=n.data.length>s.exactLength.value,u=n.data.length<s.exactLength.value;(d||u)&&(oe(n,{code:d?Q.too_big:Q.too_small,minimum:u?s.exactLength.value:void 0,maximum:d?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),o.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(oe(n,{code:Q.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),o.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(oe(n,{code:Q.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),o.dirty()),n.common.async)return Promise.all([...n.data].map((d,u)=>s.type._parseAsync(new Tn(n,d,n.path,u)))).then(d=>vt.mergeArray(o,d));const l=[...n.data].map((d,u)=>s.type._parseSync(new Tn(n,d,n.path,u)));return vt.mergeArray(o,l)}get element(){return this._def.type}min(e,n){return new sn({...this._def,minLength:{value:e,message:pe.toString(n)}})}max(e,n){return new sn({...this._def,maxLength:{value:e,message:pe.toString(n)}})}length(e,n){return new sn({...this._def,exactLength:{value:e,message:pe.toString(n)}})}nonempty(e){return this.min(1,e)}}sn.create=(t,e)=>new sn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...Se(e)});function so(t){if(t instanceof Qe){const e={};for(const n in t.shape){const o=t.shape[n];e[n]=An.create(so(o))}return new Qe({...t._def,shape:()=>e})}else return t instanceof sn?new sn({...t._def,type:so(t.element)}):t instanceof An?An.create(so(t.unwrap())):t instanceof or?or.create(so(t.unwrap())):t instanceof Bn?Bn.create(t.items.map(e=>so(e))):t}class Qe extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ie.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==ae.object){const f=this._getOrReturnCtx(e);return oe(f,{code:Q.invalid_type,expected:ae.object,received:f.parsedType}),Ce}const{status:o,ctx:s}=this._processInputParams(e),{shape:l,keys:d}=this._getCached(),u=[];if(!(this._def.catchall instanceof In&&this._def.unknownKeys==="strip"))for(const f in s.data)d.includes(f)||u.push(f);const p=[];for(const f of d){const m=l[f],y=s.data[f];p.push({key:{status:"valid",value:f},value:m._parse(new Tn(s,y,s.path,f)),alwaysSet:f in s.data})}if(this._def.catchall instanceof In){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of u)p.push({key:{status:"valid",value:m},value:{status:"valid",value:s.data[m]}});else if(f==="strict")u.length>0&&(oe(s,{code:Q.unrecognized_keys,keys:u}),o.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of u){const y=s.data[m];p.push({key:{status:"valid",value:m},value:f._parse(new Tn(s,y,s.path,m)),alwaysSet:m in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of p){const y=await m.key,E=await m.value;f.push({key:y,value:E,alwaysSet:m.alwaysSet})}return f}).then(f=>vt.mergeObjectSync(o,f)):vt.mergeObjectSync(o,p)}get shape(){return this._def.shape()}strict(e){return pe.errToObj,new Qe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,o)=>{var s,l,d,u;const p=(d=(l=(s=this._def).errorMap)===null||l===void 0?void 0:l.call(s,n,o).message)!==null&&d!==void 0?d:o.defaultError;return n.code==="unrecognized_keys"?{message:(u=pe.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new Qe({...this._def,unknownKeys:"strip"})}passthrough(){return new Qe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Qe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Qe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ve.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new Qe({...this._def,catchall:e})}pick(e){const n={};return Ie.objectKeys(e).forEach(o=>{e[o]&&this.shape[o]&&(n[o]=this.shape[o])}),new Qe({...this._def,shape:()=>n})}omit(e){const n={};return Ie.objectKeys(this.shape).forEach(o=>{e[o]||(n[o]=this.shape[o])}),new Qe({...this._def,shape:()=>n})}deepPartial(){return so(this)}partial(e){const n={};return Ie.objectKeys(this.shape).forEach(o=>{const s=this.shape[o];e&&!e[o]?n[o]=s:n[o]=s.optional()}),new Qe({...this._def,shape:()=>n})}required(e){const n={};return Ie.objectKeys(this.shape).forEach(o=>{if(e&&!e[o])n[o]=this.shape[o];else{let l=this.shape[o];for(;l instanceof An;)l=l._def.innerType;n[o]=l}}),new Qe({...this._def,shape:()=>n})}keyof(){return bd(Ie.objectKeys(this.shape))}}Qe.create=(t,e)=>new Qe({shape:()=>t,unknownKeys:"strip",catchall:In.create(),typeName:ve.ZodObject,...Se(e)}),Qe.strictCreate=(t,e)=>new Qe({shape:()=>t,unknownKeys:"strict",catchall:In.create(),typeName:ve.ZodObject,...Se(e)}),Qe.lazycreate=(t,e)=>new Qe({shape:t,unknownKeys:"strip",catchall:In.create(),typeName:ve.ZodObject,...Se(e)});class qo extends Be{_parse(e){const{ctx:n}=this._processInputParams(e),o=this._def.options;function s(l){for(const u of l)if(u.result.status==="valid")return u.result;for(const u of l)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const d=l.map(u=>new It(u.ctx.common.issues));return oe(n,{code:Q.invalid_union,unionErrors:d}),Ce}if(n.common.async)return Promise.all(o.map(async l=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(s);{let l;const d=[];for(const p of o){const f={...n,common:{...n.common,issues:[]},parent:null},m=p._parseSync({data:n.data,path:n.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!l&&(l={result:m,ctx:f}),f.common.issues.length&&d.push(f.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const u=d.map(p=>new It(p));return oe(n,{code:Q.invalid_union,unionErrors:u}),Ce}}get options(){return this._def.options}}qo.create=(t,e)=>new qo({options:t,typeName:ve.ZodUnion,...Se(e)});const Ln=t=>t instanceof Jo?Ln(t.schema):t instanceof an?Ln(t.innerType()):t instanceof Xo?[t.value]:t instanceof rr?t.options:t instanceof Qo?Ie.objectValues(t.enum):t instanceof ei?Ln(t._def.innerType):t instanceof Ho?[void 0]:t instanceof jo?[null]:t instanceof An?[void 0,...Ln(t.unwrap())]:t instanceof or?[null,...Ln(t.unwrap())]:t instanceof za||t instanceof ri?Ln(t.unwrap()):t instanceof ti?Ln(t._def.innerType):[];class is extends Be{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.object)return oe(n,{code:Q.invalid_type,expected:ae.object,received:n.parsedType}),Ce;const o=this.discriminator,s=n.data[o],l=this.optionsMap.get(s);return l?n.common.async?l._parseAsync({data:n.data,path:n.path,parent:n}):l._parseSync({data:n.data,path:n.path,parent:n}):(oe(n,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),Ce)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,o){const s=new Map;for(const l of n){const d=Ln(l.shape[e]);if(!d.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const u of d){if(s.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);s.set(u,l)}}return new is({typeName:ve.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...Se(o)})}}function Ga(t,e){const n=er(t),o=er(e);if(t===e)return{valid:!0,data:t};if(n===ae.object&&o===ae.object){const s=Ie.objectKeys(e),l=Ie.objectKeys(t).filter(u=>s.indexOf(u)!==-1),d={...t,...e};for(const u of l){const p=Ga(t[u],e[u]);if(!p.valid)return{valid:!1};d[u]=p.data}return{valid:!0,data:d}}else if(n===ae.array&&o===ae.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let l=0;l<t.length;l++){const d=t[l],u=e[l],p=Ga(d,u);if(!p.valid)return{valid:!1};s.push(p.data)}return{valid:!0,data:s}}else return n===ae.date&&o===ae.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Ko extends Be{_parse(e){const{status:n,ctx:o}=this._processInputParams(e),s=(l,d)=>{if(Ia(l)||Ia(d))return Ce;const u=Ga(l.value,d.value);return u.valid?((La(l)||La(d))&&n.dirty(),{status:n.value,value:u.data}):(oe(o,{code:Q.invalid_intersection_types}),Ce)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([l,d])=>s(l,d)):s(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}Ko.create=(t,e,n)=>new Ko({left:t,right:e,typeName:ve.ZodIntersection,...Se(n)});class Bn extends Be{_parse(e){const{status:n,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.array)return oe(o,{code:Q.invalid_type,expected:ae.array,received:o.parsedType}),Ce;if(o.data.length<this._def.items.length)return oe(o,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ce;!this._def.rest&&o.data.length>this._def.items.length&&(oe(o,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...o.data].map((d,u)=>{const p=this._def.items[u]||this._def.rest;return p?p._parse(new Tn(o,d,o.path,u)):null}).filter(d=>!!d);return o.common.async?Promise.all(l).then(d=>vt.mergeArray(n,d)):vt.mergeArray(n,l)}get items(){return this._def.items}rest(e){return new Bn({...this._def,rest:e})}}Bn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bn({items:t,typeName:ve.ZodTuple,rest:null,...Se(e)})};class Yo extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.object)return oe(o,{code:Q.invalid_type,expected:ae.object,received:o.parsedType}),Ce;const s=[],l=this._def.keyType,d=this._def.valueType;for(const u in o.data)s.push({key:l._parse(new Tn(o,u,o.path,u)),value:d._parse(new Tn(o,o.data[u],o.path,u)),alwaysSet:u in o.data});return o.common.async?vt.mergeObjectAsync(n,s):vt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,o){return n instanceof Be?new Yo({keyType:e,valueType:n,typeName:ve.ZodRecord,...Se(o)}):new Yo({keyType:on.create(),valueType:e,typeName:ve.ZodRecord,...Se(n)})}}class ss extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.map)return oe(o,{code:Q.invalid_type,expected:ae.map,received:o.parsedType}),Ce;const s=this._def.keyType,l=this._def.valueType,d=[...o.data.entries()].map(([u,p],f)=>({key:s._parse(new Tn(o,u,o.path,[f,"key"])),value:l._parse(new Tn(o,p,o.path,[f,"value"]))}));if(o.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of d){const f=await p.key,m=await p.value;if(f.status==="aborted"||m.status==="aborted")return Ce;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const p of d){const f=p.key,m=p.value;if(f.status==="aborted"||m.status==="aborted")return Ce;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}}}}ss.create=(t,e,n)=>new ss({valueType:e,keyType:t,typeName:ve.ZodMap,...Se(n)});class Mr extends Be{_parse(e){const{status:n,ctx:o}=this._processInputParams(e);if(o.parsedType!==ae.set)return oe(o,{code:Q.invalid_type,expected:ae.set,received:o.parsedType}),Ce;const s=this._def;s.minSize!==null&&o.data.size<s.minSize.value&&(oe(o,{code:Q.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&o.data.size>s.maxSize.value&&(oe(o,{code:Q.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const l=this._def.valueType;function d(p){const f=new Set;for(const m of p){if(m.status==="aborted")return Ce;m.status==="dirty"&&n.dirty(),f.add(m.value)}return{status:n.value,value:f}}const u=[...o.data.values()].map((p,f)=>l._parse(new Tn(o,p,o.path,f)));return o.common.async?Promise.all(u).then(p=>d(p)):d(u)}min(e,n){return new Mr({...this._def,minSize:{value:e,message:pe.toString(n)}})}max(e,n){return new Mr({...this._def,maxSize:{value:e,message:pe.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Mr.create=(t,e)=>new Mr({valueType:t,minSize:null,maxSize:null,typeName:ve.ZodSet,...Se(e)});class ao extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.function)return oe(n,{code:Q.invalid_type,expected:ae.function,received:n.parsedType}),Ce;function o(u,p){return ts({data:u,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,es(),ro].filter(f=>!!f),issueData:{code:Q.invalid_arguments,argumentsError:p}})}function s(u,p){return ts({data:u,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,es(),ro].filter(f=>!!f),issueData:{code:Q.invalid_return_type,returnTypeError:p}})}const l={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof lo){const u=this;return kt(async function(...p){const f=new It([]),m=await u._def.args.parseAsync(p,l).catch(S=>{throw f.addIssue(o(p,S)),f}),y=await Reflect.apply(d,this,m);return await u._def.returns._def.type.parseAsync(y,l).catch(S=>{throw f.addIssue(s(y,S)),f})})}else{const u=this;return kt(function(...p){const f=u._def.args.safeParse(p,l);if(!f.success)throw new It([o(p,f.error)]);const m=Reflect.apply(d,this,f.data),y=u._def.returns.safeParse(m,l);if(!y.success)throw new It([s(m,y.error)]);return y.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ao({...this._def,args:Bn.create(e).rest(Rr.create())})}returns(e){return new ao({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,o){return new ao({args:e||Bn.create([]).rest(Rr.create()),returns:n||Rr.create(),typeName:ve.ZodFunction,...Se(o)})}}class Jo extends Be{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Jo.create=(t,e)=>new Jo({getter:t,typeName:ve.ZodLazy,...Se(e)});class Xo extends Be{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return oe(n,{received:n.data,code:Q.invalid_literal,expected:this._def.value}),Ce}return{status:"valid",value:e.data}}get value(){return this._def.value}}Xo.create=(t,e)=>new Xo({value:t,typeName:ve.ZodLiteral,...Se(e)});function bd(t,e){return new rr({values:t,typeName:ve.ZodEnum,...Se(e)})}class rr extends Be{constructor(){super(...arguments),Zo.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),o=this._def.values;return oe(n,{expected:Ie.joinValues(o),received:n.parsedType,code:Q.invalid_type}),Ce}if(ns(this,Zo)||yd(this,Zo,new Set(this._def.values)),!ns(this,Zo).has(e.data)){const n=this._getOrReturnCtx(e),o=this._def.values;return oe(n,{received:n.data,code:Q.invalid_enum_value,options:o}),Ce}return kt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return rr.create(e,{...this._def,...n})}exclude(e,n=this._def){return rr.create(this.options.filter(o=>!e.includes(o)),{...this._def,...n})}}Zo=new WeakMap,rr.create=bd;class Qo extends Be{constructor(){super(...arguments),Uo.set(this,void 0)}_parse(e){const n=Ie.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==ae.string&&o.parsedType!==ae.number){const s=Ie.objectValues(n);return oe(o,{expected:Ie.joinValues(s),received:o.parsedType,code:Q.invalid_type}),Ce}if(ns(this,Uo)||yd(this,Uo,new Set(Ie.getValidEnumValues(this._def.values))),!ns(this,Uo).has(e.data)){const s=Ie.objectValues(n);return oe(o,{received:o.data,code:Q.invalid_enum_value,options:s}),Ce}return kt(e.data)}get enum(){return this._def.values}}Uo=new WeakMap,Qo.create=(t,e)=>new Qo({values:t,typeName:ve.ZodNativeEnum,...Se(e)});class lo extends Be{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ae.promise&&n.common.async===!1)return oe(n,{code:Q.invalid_type,expected:ae.promise,received:n.parsedType}),Ce;const o=n.parsedType===ae.promise?n.data:Promise.resolve(n.data);return kt(o.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}lo.create=(t,e)=>new lo({type:t,typeName:ve.ZodPromise,...Se(e)});class an extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:o}=this._processInputParams(e),s=this._def.effect||null,l={addIssue:d=>{oe(o,d),d.fatal?n.abort():n.dirty()},get path(){return o.path}};if(l.addIssue=l.addIssue.bind(l),s.type==="preprocess"){const d=s.transform(o.data,l);if(o.common.async)return Promise.resolve(d).then(async u=>{if(n.value==="aborted")return Ce;const p=await this._def.schema._parseAsync({data:u,path:o.path,parent:o});return p.status==="aborted"?Ce:p.status==="dirty"||n.value==="dirty"?oo(p.value):p});{if(n.value==="aborted")return Ce;const u=this._def.schema._parseSync({data:d,path:o.path,parent:o});return u.status==="aborted"?Ce:u.status==="dirty"||n.value==="dirty"?oo(u.value):u}}if(s.type==="refinement"){const d=u=>{const p=s.refinement(u,l);if(o.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(o.common.async===!1){const u=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return u.status==="aborted"?Ce:(u.status==="dirty"&&n.dirty(),d(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(u=>u.status==="aborted"?Ce:(u.status==="dirty"&&n.dirty(),d(u.value).then(()=>({status:n.value,value:u.value}))))}if(s.type==="transform")if(o.common.async===!1){const d=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!zo(d))return d;const u=s.transform(d.value,l);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(d=>zo(d)?Promise.resolve(s.transform(d.value,l)).then(u=>({status:n.value,value:u})):d);Ie.assertNever(s)}}an.create=(t,e,n)=>new an({schema:t,typeName:ve.ZodEffects,effect:e,...Se(n)}),an.createWithPreprocess=(t,e,n)=>new an({schema:e,effect:{type:"preprocess",transform:t},typeName:ve.ZodEffects,...Se(n)});class An extends Be{_parse(e){return this._getType(e)===ae.undefined?kt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}An.create=(t,e)=>new An({innerType:t,typeName:ve.ZodOptional,...Se(e)});class or extends Be{_parse(e){return this._getType(e)===ae.null?kt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}or.create=(t,e)=>new or({innerType:t,typeName:ve.ZodNullable,...Se(e)});class ei extends Be{_parse(e){const{ctx:n}=this._processInputParams(e);let o=n.data;return n.parsedType===ae.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ei.create=(t,e)=>new ei({innerType:t,typeName:ve.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Se(e)});class ti extends Be{_parse(e){const{ctx:n}=this._processInputParams(e),o={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return $o(s)?s.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new It(o.common.issues)},input:o.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new It(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}ti.create=(t,e)=>new ti({innerType:t,typeName:ve.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Se(e)});class as extends Be{_parse(e){if(this._getType(e)!==ae.nan){const o=this._getOrReturnCtx(e);return oe(o,{code:Q.invalid_type,expected:ae.nan,received:o.parsedType}),Ce}return{status:"valid",value:e.data}}}as.create=t=>new as({typeName:ve.ZodNaN,...Se(t)});const Lm=Symbol("zod_brand");class za extends Be{_parse(e){const{ctx:n}=this._processInputParams(e),o=n.data;return this._def.type._parse({data:o,path:n.path,parent:n})}unwrap(){return this._def.type}}class ni extends Be{_parse(e){const{status:n,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return l.status==="aborted"?Ce:l.status==="dirty"?(n.dirty(),oo(l.value)):this._def.out._parseAsync({data:l.value,path:o.path,parent:o})})();{const s=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Ce:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:o.path,parent:o})}}static create(e,n){return new ni({in:e,out:n,typeName:ve.ZodPipeline})}}class ri extends Be{_parse(e){const n=this._def.innerType._parse(e),o=s=>(zo(s)&&(s.value=Object.freeze(s.value)),s);return $o(n)?n.then(s=>o(s)):o(n)}unwrap(){return this._def.innerType}}ri.create=(t,e)=>new ri({innerType:t,typeName:ve.ZodReadonly,...Se(e)});function xd(t,e={},n){return t?io.create().superRefine((o,s)=>{var l,d;if(!t(o)){const u=typeof e=="function"?e(o):typeof e=="string"?{message:e}:e,p=(d=(l=u.fatal)!==null&&l!==void 0?l:n)!==null&&d!==void 0?d:!0,f=typeof u=="string"?{message:u}:u;s.addIssue({code:"custom",...f,fatal:p})}}):io.create()}const Om={object:Qe.lazycreate};var ve;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ve||(ve={}));const Gm=(t,e={message:`Input not instance of ${t.name}`})=>xd(n=>n instanceof t,e),kd=on.create,Sd=tr.create,zm=as.create,$m=nr.create,Ed=Wo.create,Zm=Fr.create,Um=rs.create,Wm=Ho.create,Hm=jo.create,jm=io.create,qm=Rr.create,Km=In.create,Ym=os.create,Jm=sn.create,Xm=Qe.create,Qm=Qe.strictCreate,eg=qo.create,tg=is.create,ng=Ko.create,rg=Bn.create,og=Yo.create,ig=ss.create,sg=Mr.create,ag=ao.create,lg=Jo.create,cg=Xo.create,dg=rr.create,ug=Qo.create,pg=lo.create,Td=an.create,hg=An.create,fg=or.create,mg=an.createWithPreprocess,gg=ni.create;var ls=Object.freeze({__proto__:null,defaultErrorMap:ro,setErrorMap:wm,getErrorMap:es,makeIssue:ts,EMPTY_PATH:bm,addIssueToContext:oe,ParseStatus:vt,INVALID:Ce,DIRTY:oo,OK:kt,isAborted:Ia,isDirty:La,isValid:zo,isAsync:$o,get util(){return Ie},get objectUtil(){return Ma},ZodParsedType:ae,getParsedType:er,ZodType:Be,datetimeRegex:wd,ZodString:on,ZodNumber:tr,ZodBigInt:nr,ZodBoolean:Wo,ZodDate:Fr,ZodSymbol:rs,ZodUndefined:Ho,ZodNull:jo,ZodAny:io,ZodUnknown:Rr,ZodNever:In,ZodVoid:os,ZodArray:sn,ZodObject:Qe,ZodUnion:qo,ZodDiscriminatedUnion:is,ZodIntersection:Ko,ZodTuple:Bn,ZodRecord:Yo,ZodMap:ss,ZodSet:Mr,ZodFunction:ao,ZodLazy:Jo,ZodLiteral:Xo,ZodEnum:rr,ZodNativeEnum:Qo,ZodPromise:lo,ZodEffects:an,ZodTransformer:an,ZodOptional:An,ZodNullable:or,ZodDefault:ei,ZodCatch:ti,ZodNaN:as,BRAND:Lm,ZodBranded:za,ZodPipeline:ni,ZodReadonly:ri,custom:xd,Schema:Be,ZodSchema:Be,late:Om,get ZodFirstPartyTypeKind(){return ve},coerce:{string:t=>on.create({...t,coerce:!0}),number:t=>tr.create({...t,coerce:!0}),boolean:t=>Wo.create({...t,coerce:!0}),bigint:t=>nr.create({...t,coerce:!0}),date:t=>Fr.create({...t,coerce:!0})},any:jm,array:Jm,bigint:$m,boolean:Ed,date:Zm,discriminatedUnion:tg,effect:Td,enum:dg,function:ag,instanceof:Gm,intersection:ng,lazy:lg,literal:cg,map:ig,nan:zm,nativeEnum:ug,never:Km,null:Hm,nullable:fg,number:Sd,object:Xm,oboolean:()=>Ed().optional(),onumber:()=>Sd().optional(),optional:hg,ostring:()=>kd().optional(),pipeline:gg,preprocess:mg,promise:pg,record:og,set:sg,strictObject:Qm,string:kd,symbol:Um,transformer:Td,tuple:rg,undefined:Wm,union:eg,unknown:qm,void:Ym,NEVER:Ce,ZodIssueCode:Q,quotelessJson:Cm,ZodError:It});function yg(t){throw new Error("Unexpected object: "+t)}const vg=-2147483648,Bd=-9007199254740991n,_g=NaN,Cg=NaN,wg=null,bg=null;function Ad(t,e){switch(e){case"Int":return t===vg;case"Long":return t===Number(Bd)||t===Bd;case"Float":return t===_g;case"Double":return t===Cg;case"String":return t===wg;case"Bytes":return t===bg;default:throw Error(`unsupported data type: ${e}`)}}function xg(t,e){const n=Math.floor(e/8),o=1<<7-e%8;return(t[n]&o)>0}function Nd(t){const{type:e,name:n,domain:o}=t;return{type:e,name:n,...o&&{domain:o}}}function $a(t){return t.map(Nd)}function cs(t,e){switch(t.type){case"column":return{type:"column",column:e(t.column)};case"inner":case"full":return{type:t.type,entries:t.entries.map(n=>cs(n,e))};case"outer":return{type:"outer",primary:cs(t.primary,e),secondary:t.secondary.map(n=>cs(n,e))};default:yg(t)}}ls.object({__isRef:ls.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:ls.string().describe("Upstream block id"),name:ls.string().describe("Name of the output provided to the upstream block's output context")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").strict().readonly();function kg(t){if(t&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(t);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}const Sg="1.10.12";function Eg(){return kg({sdkVersion:Sg})}function Tg(t){if(typeof globalThis.getEnvironmentValue=="function")return globalThis.getEnvironmentValue(t)}function co(t){return!!t&&typeof t.children<"u"}function ir(t){return co(t)?t.groupId:t.colId}function Vd(t,e,n){const o=(d,u)=>{const p=d.children.map(ir),f=b._includes(p,ir(u)),m=b._last(d.children),y=m&&ir(m)!==ir(u);return f&&y};if(!co(t))return!0;const s=t,l=n;if(o(s,l))return s.children.push(l),!0;if(s.groupId===e){const d=s.children.map(ir);if(!b._includes(d,ir(l)))return s.children.push(l),!0}for(let d=s.children.length-1;d>=0&&!Vd(s.children[d],e,n);d--);return!1}function Bg(t){const e=(s,l)=>co(s)&&co(l)&&ir(s)===ir(l),n=(s,l)=>{if(!co(l))return s;const d=s,u=l;return u.children&&u.groupId&&Vd(d,u.groupId,u.children[0])||u.children.forEach(p=>n(d,p)),d},o=[];for(let s=1;s<=t.length;s++){const l=t[s-1],d=t[s];e(l,d)?t[s]=n(l,d):o.push(l)}return o}var Ag=class extends b.BeanStub{constructor(){super(...arguments),this.beanName="toolPanelColDefService"}wireBeans(t){this.columnModel=t.columnModel}createColumnTree(t){const e=[],n=(s,l)=>{if(co(s)){const d=s,u=typeof d.groupId<"u"?d.groupId:d.headerName,p=new b.AgProvidedColumnGroup(d,u,!1,l),f=[];return d.children.forEach(m=>{const y=n(m,l+1);y&&f.push(y)}),p.setChildren(f),p}else{const d=s,u=d.colId?d.colId:d.field,p=this.columnModel.getColDefCol(u);return p||e.push(d),p}},o=[];return t.forEach(s=>{const l=n(s,0);l&&o.push(l)}),e.length>0&&b._warnOnce("unable to find grid columns for the supplied colDef(s):",e),o}syncLayoutWithGrid(t){const e=this.getLeafPathTrees(),n=Bg(e);t(n)}getLeafPathTrees(){const t=(o,s)=>{let l;if(b.isProvidedColumnGroup(o))if(o.isPadding())l=s;else{const u=Object.assign({},o.getColGroupDef());u.groupId=o.getGroupId(),u.children=[s],l=u}else{const u=Object.assign({},o.getColDef());u.colId=o.getColId(),l=u}const d=o.getOriginalParent();return d?t(d,l):l};return this.columnModel.getCols().filter(o=>{const s=o.getColDef();return o.isPrimary()&&!s.showRowGroup}).map(o=>t(o,o.getColDef()))}};function Ng(t){var e;return((e=t.sideBarService)==null?void 0:e.getSideBarComp().isDisplayed())??!1}function Vg(t,e){var n;(n=t.sideBarService)==null||n.getSideBarComp().setDisplayed(e)}function Pg(t,e){var n;(n=t.sideBarService)==null||n.getSideBarComp().setSideBarPosition(e)}function Dg(t,e){var n;(n=t.sideBarService)==null||n.getSideBarComp().openToolPanel(e,"api")}function Fg(t){var e;(e=t.sideBarService)==null||e.getSideBarComp().close("api")}function Rg(t){var e;return((e=t.sideBarService)==null?void 0:e.getSideBarComp().openedItem())??null}function Mg(t){var e;(e=t.sideBarService)==null||e.getSideBarComp().refresh()}function Ig(t){var e;return((e=t.sideBarService)==null?void 0:e.getSideBarComp().isToolPanelShowing())??!1}function Lg(t,e){var o;const n=(o=t.sideBarService)==null?void 0:o.getSideBarComp().getToolPanelInstance(e);return b._unwrapUserComp(n)}function Og(t){var e;return(e=t.sideBarService)==null?void 0:e.getSideBarComp().getDef()}var Gg=class extends b.Component{constructor(t){super(),this.eToggleButton=b.RefPlaceholder,this.eIconWrapper=b.RefPlaceholder,this.eLabel=b.RefPlaceholder,this.toolPanelDef=t}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){const t=this.createTemplate();this.setTemplate(t,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation">
4
4
  <button type="button" data-ref="eToggleButton" tabindex="-1" role="tab" aria-expanded="false" class="ag-button ag-side-button-button">
@@ -42,7 +42,7 @@
42
42
  <ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
43
43
  </div>`}postConstruct(){this.setTemplate(this.createTemplate(),[b.AgToggleButtonSelector]),this.cbPivotMode.setValue(this.columnModel.isPivotMode());const t=this.localeService.getLocaleTextFunc();this.cbPivotMode.setLabel(t("pivotMode","Pivot Mode")),this.addManagedListeners(this.cbPivotMode,{fieldValueChanged:this.onBtPivotMode.bind(this)});const e=this.onPivotModeChanged.bind(this);this.addManagedEventListeners({newColumnsLoaded:e,columnPivotModeChanged:e})}onBtPivotMode(){const t=!!this.cbPivotMode.getValue();t!==this.columnModel.isPivotMode()&&(this.gos.updateGridOptions({options:{pivotMode:t},source:"toolPanelUi"}),this.ctrlsService.getHeaderRowContainerCtrls().forEach(e=>e.refresh()))}onPivotModeChanged(){const t=this.columnModel.isPivotMode();this.cbPivotMode.setValue(t)}},hv=class extends b.Component{constructor(){super('<div class="ag-column-panel"></div>'),this.initialised=!1,this.childDestroyFuncs=[]}setVisible(t){super.setDisplayed(t),t&&!this.initialised&&this.init(this.params)}init(t){const e=this.gos.addGridCommonParams({suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1});if(this.params={...e,...t},this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new Jd),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel)),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new pv),this.childDestroyFuncs.push(()=>this.destroyBean(this.primaryColsPanel)),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new Ka(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.rowGroupDropZonePanel)),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new Hd(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.valuesDropZonePanel)),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new qa(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotDropZonePanel)),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();const[n]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});this.childDestroyFuncs.push(()=>n())}this.initialised=!0}setPivotModeSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(t):t&&(this.pivotModePanel=this.createBean(new Jd),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel))),this.setLastVisible())}setRowGroupsSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(t):t&&(this.rowGroupDropZonePanel=this.createManagedBean(new Ka(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())}setValuesSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(t):t&&(this.valuesDropZonePanel=this.createManagedBean(new Hd(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())}setPivotSectionVisible(t){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(t):t&&(this.pivotDropZonePanel=this.createManagedBean(new qa(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(t)),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(t=>{if(!t)return;const e=t.getGui();t.toggleResizable(!e.classList.contains("ag-last-column-drop")&&!e.classList.contains("ag-hidden"))})}setLastVisible(){const t=this.getGui();Array.prototype.slice.call(t.querySelectorAll(".ag-column-drop")).forEach(s=>s.classList.remove("ag-last-column-drop"));const n=t.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),o=b._last(n);o&&o.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){const e=this.getGui().children;for(let n=0;n<e.length;n++){const o=e[n];o.style.removeProperty("height"),o.style.removeProperty("flex")}}isRowGroupingModuleLoaded(){return this.gos.assertModuleRegistered(b.ModuleNames.RowGroupingModule,"Row Grouping")}expandColumnGroups(t){this.primaryColsPanel.expandGroups(t)}collapseColumnGroups(t){this.primaryColsPanel.collapseGroups(t)}setColumnLayout(t){this.primaryColsPanel.setColumnLayout(t)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){this.childDestroyFuncs.forEach(t=>t()),this.childDestroyFuncs.length=0,b._clearElement(this.getGui())}refresh(t){return this.destroyChildren(),this.init(t),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}},fv=class extends b.BeanStub{constructor(){super(...arguments),this.beanName="modelItemUtils"}wireBeans(t){this.aggFuncService=t.aggFuncService,this.columnModel=t.columnModel,this.columnApplyStateService=t.columnApplyStateService}selectAllChildren(t,e,n){const o=this.extractAllLeafColumns(t);this.setAllColumns(o,e,n)}setColumn(t,e,n){this.setAllColumns([t],e,n)}setAllColumns(t,e,n){this.columnModel.isPivotMode()?this.setAllPivot(t,e,n):this.setAllVisible(t,e,n)}extractAllLeafColumns(t){const e=[],n=o=>{o.forEach(s=>{s.isPassesFilter()&&(s.isGroup()?n(s.getChildren()):e.push(s.getColumn()))})};return n(t),e}setAllVisible(t,e,n){const o=[];t.forEach(s=>{s.getColDef().lockVisible||s.isVisible()!=e&&o.push({colId:s.getId(),hide:!e})}),o.length>0&&this.columnApplyStateService.applyColumnState({state:o},n)}setAllPivot(t,e,n){this.setAllPivotActive(t,e,n)}setAllPivotActive(t,e,n){const o=[],d=e?u=>{var p;if(!u.isAnyFunctionActive())if(u.isAllowValue()){const f=typeof u.getAggFunc()=="string"?u.getAggFunc():(p=this.aggFuncService)==null?void 0:p.getDefaultAggFunc(u);o.push({colId:u.getId(),aggFunc:f})}else u.isAllowRowGroup()?o.push({colId:u.getId(),rowGroup:!0}):u.isAllowPivot()&&o.push({colId:u.getId(),pivot:!0})}:u=>{(u.isPivotActive()||u.isRowGroupActive()||u.isValueActive())&&o.push({colId:u.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};t.forEach(d),o.length>0&&this.columnApplyStateService.applyColumnState({state:o},n)}updateColumns(t){const{columns:e,visibleState:n,pivotState:o,eventType:s}=t,l=e.map(d=>{const u=d.getColId();if(this.columnModel.isPivotMode()){const p=o==null?void 0:o[u];return{colId:u,pivot:p==null?void 0:p.pivot,rowGroup:p==null?void 0:p.rowGroup,aggFunc:p==null?void 0:p.aggFunc}}else return{colId:u,hide:!(n!=null&&n[u])}});this.columnApplyStateService.applyColumnState({state:l},s)}createPivotState(t){return{pivot:t.isPivotActive(),rowGroup:t.isRowGroupActive(),aggFunc:t.isValueActive()?t.getAggFunc():void 0}}},mv="32.3.3",Xd=b._defineModule({version:mv,moduleName:b.ModuleNames.ColumnsToolPanelModule,beans:[fv],userComponents:[{name:"agColumnsToolPanel",classImp:hv},{name:"agMenuItem",classImp:Me.AgMenuItemRenderer}],dependantModules:[Me.EnterpriseCoreModule,rv,Ha]});const gv=`.ag-header {
44
44
  border-bottom: 1px solid var(--border-color-default);
45
- }`;function Qd(){b.ModuleRegistry.registerModules([Qi.ClientSideRowModelModule,rm.InfiniteRowModelModule,ad.ServerSideRowModelModule,om.CsvExportModule,ld.ClipboardModule,cd.RangeSelectionModule,im.RichSelectModule,sm.MenuModule,am.ExcelExportModule,Ha,Xd]);const t=Tg("AGGRID_LICENSE");t?(Me.LicenseManager.setLicenseKey(t),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const yv=dd.createPart("headerBottomBorder").withCSS(gv),eu=dd.themeQuartz.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#49cc49",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}).withPart(yv),tu=Symbol("sdk-vue");function Xa(){return r.inject(tu)}function vv(t,e,n={}){let o;Qd();const s=()=>{t.loadBlockState().then(d=>{l.loaded=!0;const u=_m(d,t,n),p=e(u),f=Object.fromEntries(Object.entries(p.routes).map(([m,y])=>{const E=typeof y=="function"?y():y;return[m,r.markRaw(E)]}));o=Object.assign(u,{...p,getRoute(m){return f[m]}})}).catch(d=>{console.error("load initial state error",d),l.error=d})},l=r.reactive({loaded:!1,error:void 0,useApp(){return cm(o,"App is not loaded")},install(d){d.provide(tu,this),s()}});return l}var _v=Object.defineProperty,Cv=(t,e,n)=>e in t?_v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wv=(t,e,n)=>Cv(t,e+"",n);function nu(t,e){if(t==null)throw Error("Empty (null | undefined) value");return t}function bv(t,e,n){const o=Math.min(e,n),s=Math.max(e,n);return t>=o&&t<=s}function xv(t){return new Promise(e=>setTimeout(e,t))}function kv(t){return t()}function us(t,e,n){return e>t?e:t>n?n:t}function ru(t,e){return e(t)}function Ir(t,e){if(t!=null)return e(t)}function Sv(t){if(t&&t.ok)return t.value}async function Ev(t){return Object.fromEntries(await Promise.all(Object.entries(t).map(async([e,n])=>[e,await n])))}const ou=t=>t;function Tv(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t}function Bv(t){let e="";for(let n=0;n<t;n++)e+=String.fromCharCode(Tv(65,91));return e}function iu(){return Bv(42)}const Qa=Array.isArray;function si(t){return t!==null&&typeof t=="object"}function el(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null}function Av(t,e){return Object.keys(t).map(n=>e(t[n],n))}function ai(t,e){return si(t)&&si(e)?Object.keys(t).length!==Object.keys(e).length?!1:Object.keys(t).every(n=>ai(t[n],e[n])):t===e}function li(t){if(Array.isArray(t)){const e=[];for(let n=0;n<t.length;n++)e[n]=li(t[n]);return e}else if(si(t)){const e={};return Object.keys(t).forEach(n=>{e[n]=li(t[n])}),e}else return t}function Nv(t){return Array.isArray(t)?Object.assign([],t):si(t)?Object.assign({},t):t}function Vv(t,e){const n={};for(const o in e)e[o]!==t[o]&&(n[o]=t[o]);return n}function Pv(t){return Object.entries(t).forEach(([e,n])=>{n instanceof Function&&(t[e]=n.bind(t))}),t}function Dv(t,e,n){return t[e]=n,t}function Fv(t,e){return t[e]}function Rv(t,e){t={...t};const n=t[e];return delete t[e],[n,t]}function Mv(t,...e){return Object.assign({},...e.map(n=>({[n]:t[n]})))}function Iv(t,...e){return e.map(n=>t[n])}function Lv(t,...e){const n=Object.assign({},t);return e.forEach(o=>delete n[o]),n}function su(t,e){return new Set([...Object.keys(t),...Object.keys(e)]).forEach(n=>{const o=t[n],s=e[n];el(o)&&el(s)||Qa(o)&&Qa(s)&&o.length===s.length?su(o,s):t[n]=s}),t}const tl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Pv,deepClone:li,deepEqual:ai,deepPatch:su,getProp:Fv,isArray:Qa,isObject:si,isPlainObject:el,map:Av,omit:Lv,pick:Mv,pickValues:Iv,setProp:Dv,shallowClone:Nv,shallowDiff:Vv,shiftProp:Rv},Symbol.toStringTag,{value:"Module"}));function Ov(t,e){const n=t.findIndex(e);if(n<0)return[];const o=(()=>{for(let s=n;s<t.length;s++)if(!e(t[s],s))return s;return t.length})();return t.slice(n,o)}function au(t,e,n){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,t.apply(this,s)},e)}}const Gv=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],zv=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],$v=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Zv=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],lu=(t,e)=>{let n=String(t);return typeof e=="string"||Array.isArray(e)?n=t.toLocaleString(e):e===!0&&(n=t.toLocaleString(void 0)),n};function nl(t,e){if(t=typeof t=="bigint"?Number(t):t,!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);Object.assign(e,{bits:!1,binary:!1});const n=e.bits?e.binary?Zv:$v:e.binary?zv:Gv;if(e.signed&&t===0)return` 0 ${n[0]}`;const o=t<0,s=o?"-":e.signed?"+":"";if(o&&(t=-t),t<1){const p=lu(t,e.locale);return s+p+" "+n[0]}const l=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),n.length-1);t/=(e.binary?1024:1e3)**l,t=Number(t.toPrecision(3));const d=lu(Number(t),e.locale),u=n[l];return s+d+" "+u}const Uv={class:"context-menu"},Wv=["onClick"],Hv=r.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(t,{emit:e}){const n=e,o=s=>{s.cb(),n("close")};return(s,l)=>(r.openBlock(),r.createElementBlock("div",Uv,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.options,(d,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,onClick:r.withModifiers(p=>o(d),["stop"])},[r.createElementVNode("span",null,r.toDisplayString(d.text),1)],8,Wv))),128))]))}}),Kt=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},jv=Kt(Hv,[["__scopeId","data-v-12530966"]]);function rl(t,e){t.preventDefault();const n=()=>{r.render(null,document.body)},o=r.h(jv,{options:e,onClose:()=>{n()}});r.render(o,document.body);const s=o.el;return s.style.top=t.clientY+"px",s.style.left=t.clientX+"px",document.addEventListener("click",l=>{s.contains(l.target)||n()}),n}const cu=Symbol(),ps=()=>r.inject(cu),qv=["value"],Kv={key:1},Yv=r.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,o=t,s=r.reactive({edit:!1}),l=r.computed(()=>o.valueType),d=f=>{var m;let y=(m=f.target)==null?void 0:m.value;const E=r.unref(l),S=kv(()=>E==="integer"?parseInt(y,10):E==="float"?Number(y):y);n("update:modelValue",S),s.edit=!1},u=r.ref(),p=f=>{!f.metaKey&&o.editable&&(s.edit=!0,requestAnimationFrame(()=>{var m,y;(y=(m=u.value)==null?void 0:m.querySelector("input"))==null||y.focus()}))};return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"baseRef",ref:u,class:r.normalizeClass(["base-cell",{"base-cell__edit":s.edit}]),onClick:p},[s.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:f.modelValue,onFocusout:m[0]||(m[0]=y=>s.edit=!1),onChange:d},null,40,qv)):(r.openBlock(),r.createElementBlock("div",Kv,r.toDisplayString(f.modelValue),1))],2))}}),Jv=["^data-row-index"],Xv={key:0,class:"control-cell"},Qv=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(t){const e=t,n=ps(),o=r.computed(()=>e.cell.column.valueType),s=f=>{Ir(n.settings.value.onUpdatedRow,m=>{const y=e.cell.row,E={...y.dataRow,[e.cell.id]:f};m({...y,dataRow:E})})},l=f=>{f.metaKey&&n.selectRow(e.cell.row.primaryKey)},d=(f,m)=>{if(f.type==="contextmenu")f.preventDefault();else return;const y=n.settings??{},E=[],{onSelectedRows:S,onSelectedColumns:N}=y.value,L=n.data.selectedRows.has(m.primaryKey);S&&S.length&&(L?E.push({text:"Deselect row",cb(){n.data.selectedRows.delete(e.cell.row.primaryKey)}}):E.push({text:"Select row",cb(){n.selectRow(e.cell.row.primaryKey)}})),N&&N.length&&(E.push({text:"Select column",cb(){n.selectColumn(e.cell.column.id)}}),E.push({text:"Unselect column",cb(){n.unselectColumn(e.cell.column.id)}})),E.length&&rl(f,E)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[f.cell.class]:!0}]),"^data-row-index":f.cell.row.index,onClick:l,onContextmenu:m[0]||(m[0]=y=>d(y,f.cell.row))},[f.cell.control?(r.openBlock(),r.createElementBlock("div",Xv,r.toDisplayString(f.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":f.cell.value,"onUpdate:modelValue":s},null,8,["model-value"])):(r.openBlock(),r.createBlock(Yv,{key:2,"model-value":f.cell.value,"value-type":o.value,editable:f.cell.column.editable,"onUpdate:modelValue":s},null,8,["model-value","value-type","editable"]))],42,Jv))}}),e_={},t_={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n_(t,e){return r.openBlock(),r.createElementBlock("svg",t_,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const r_=Kt(e_,[["render",n_]]),o_={class:"tr-head"},i_=r.defineComponent({__name:"TrHead",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",o_,[r.renderSlot(e.$slots,"default")]))}});function s_(t,e){const n=e.indexOf(t)+1;return e[n>=e.length?0:n]}function a_(t,e){const n=t.findIndex(e);if(n<0)return[];const o=(()=>{for(let s=n;s<t.length;s++)if(!e(t[s],s))return s;return t.length})();return t.slice(n,o)}const l_=["^data-col-id"],c_=r.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(t,{emit:e}){const n=e;function o(l){l.preventDefault();const d=[];d.length&&rl(l,d)}function s(l){var d;const u=((d=l.sort)==null?void 0:d.direction)??"DESC";n("change:sort",{colId:l.id,direction:s_(u,["DESC","ASC"])})}return(l,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":l.col.justify,frozen:l.col.frozen}]),"^data-col-id":l.col.id,onContextmenu:o},[l.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(l.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(l.col.label)+" ",1),l.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",l.col.sort.direction]),onClick:d[0]||(d[0]=r.withModifiers(()=>s(l.col),["stop"]))},null,2)):r.createCommentVNode("",!0)],42,l_))}}),d_=r.defineComponent({__name:"TrBody",props:{row:{}},setup(t){const e=r.ref(),n=()=>{r.nextTick().then(()=>{Ir(e.value,o=>o.scrollLeft=0)})};return(o,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"trRef",ref:e,class:r.normalizeClass(["tr-body",{selected:o.row.selected}]),scroll:"no",style:r.normalizeStyle(o.row.style),onScroll:n},[r.renderSlot(o.$slots,"default")],38))}}),u_=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(t){const e=ps(),n=t,o=r.computed(()=>e.data.selectedColumns.has(n.column.id));return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column-caret",{selected:o.value,frozen:s.column.frozen}])},null,2))}});function rt(t,e,n,o){r.onMounted(()=>{var s;return(s=r.unref(t))==null?void 0:s.addEventListener(e,n,o)}),r.onUnmounted(()=>{var s;return(s=r.unref(t))==null?void 0:s.removeEventListener(e,n,o)})}function p_(t){r.onMounted(()=>window.addEventListener("mouseup",t)),r.onUnmounted(()=>window.removeEventListener("mouseup",t))}function h_(t){let e=!1;return function(...n){e?console.log("handle pressure"):(requestAnimationFrame(()=>{t(...n),e=!1}),e=!0)}}function f_(t,e){let n;function o(l){n={...l}}p_(()=>{n=void 0,e()});const s=h_(t);return rt(window,"mousemove",l=>{n&&s({x:n.x,width:n.width,diff:l.x-n.x})}),{start:o}}const uo=1,m_=10,g_=30,du=60;function uu(){const t=r.reactive({x:0,y:0});function e(n){t.x=n.pageX,t.y=n.pageY}return r.onMounted(()=>window.addEventListener("mousemove",e)),r.onUnmounted(()=>window.removeEventListener("mousemove",e)),t}function pu(t,e={}){const{delayEnter:n=0,delayLeave:o=0}=e,s=r.ref(!1);let l;const d=u=>{const p=u?n:o;l&&(clearTimeout(l),l=void 0),p?l=setTimeout(()=>s.value=u,p):s.value=u};return window&&(rt(t,"mouseenter",()=>d(!0)),rt(t,"mouseleave",()=>d(!1))),s}function y_(t){var e;const n=Ir((e=r.unref(t))==null?void 0:e.querySelectorAll(".th-cell"),o=>[...o])??[];return n.map(o=>{const{width:s,x:l}=o.getBoundingClientRect(),d=o.getAttribute("data-col-id");return ou({colId:d,width:s,x:l,right:l+s})}).slice(0,n.length-1)}function v_(t,e){const n=uu(),o=pu(e,{}),{data:s}=t,l=f_(u=>{Ir(s.resizeTh,p=>{const f=s.columns.find(m=>m.id===p.colId);f&&(f.width=us(u.width+u.diff,g_,1e4),t.adjustWidth())})},()=>{s.resize=!1,s.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{s.resizeTh&&(s.resize=!0,l.start({x:u.x,width:s.resizeTh.width}))};return r.watchEffect(()=>{if(!o.value){document.body.style.cursor="";return}if(s.resize)return;const u=y_(e).find(p=>Math.abs(n.x-p.right)<m_);u?(document.body.style.cursor="col-resize",s.resizeTh=u):(s.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const __={key:0,class:"command-menu"},C_={key:0},w_=["onClick"],b_=r.defineComponent({__name:"RowsCommandMenu",setup(t){const e=ps(),n=r.computed(()=>e.getSelectedRows()),o=r.computed(()=>n.value.length>0),s=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),l=r.computed(()=>s.value.map(d=>({label:d.label,cb:()=>{d.cb(n.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>o.value?(r.openBlock(),r.createElementBlock("div",__,[n.value.length?(r.openBlock(),r.createElementBlock("span",C_,r.toDisplayString(n.value.length)+" rows selected",1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,w_))),128))])):r.createCommentVNode("",!0)}}),x_={key:0,class:"command-menu"},k_={key:0},S_=["onClick"],E_=r.defineComponent({__name:"ColumnsCommandMenu",setup(t){const e=ps(),n=r.computed(()=>e.getSelectedColumns()),o=r.computed(()=>n.value.length>0),s=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),l=r.computed(()=>s.value.map(d=>({label:d.label,cb:()=>{d.cb(n.value),e.data.selectedColumns.clear()}})));return(d,u)=>o.value?(r.openBlock(),r.createElementBlock("div",x_,[n.value.length?(r.openBlock(),r.createElementBlock("span",k_,"selected columns "+r.toDisplayString(n.value.length),1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,S_))),128))])):r.createCommentVNode("",!0)}});function ar(t,e){const n={el:void 0,x:0,y:0},o=s=>({x:s.x,y:s.y,dx:s.x-n.x,dy:s.y-n.y});rt(document,"mousedown",s=>{s.target===r.unref(t)&&(s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),n.el=r.unref(t),n.x=s.x,n.y=s.y)}),rt(document,"mouseup",s=>{n.el&&(n.el=void 0,e({...o(s),stop:!0},n))}),rt(document,"mousemove",s=>{n.el&&e(o(s),n)})}const T_=r.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(),l=r.computed(()=>o.windowSize-12),d=r.computed(()=>o.windowSize<o.dataSize),u=r.computed(()=>Math.ceil(o.offset*(l.value/o.dataSize))),p=r.computed(()=>Math.ceil(l.value*l.value/o.dataSize)),f=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return ar(s,(m,y)=>{const E=(u.value+m.dy)*o.dataSize/l.value;n("change:offset",E),y.x=m.x,y.y=m.y}),(m,y)=>(r.openBlock(),r.createElementBlock("div",{class:"t-scroll",style:r.normalizeStyle({height:`${m.windowSize}px`})},[r.createElementVNode("div",null,[d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"handleRef",ref:s,class:"t-scroll__handle",style:r.normalizeStyle(f.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function B_(t){return r.computed(()=>{const{data:e,settings:n}=t,{bodyWidth:o,scrollLeft:s}=e,l=[...e.columns],d=iu();n.value.controlColumn&&l.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=l.map(m=>{const y={...m,offset:u};return u+=m.width+uo,y}),f=p.filter(m=>m.frozen);return Ov(p,m=>m.frozen?!1:s<m.offset+m.width&&m.offset<o+s).concat(f).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function A_(t,e){const n=r.computed(()=>e.value.reduce((o,s)=>(o[s.id]=s.justify?"justify-"+s.justify:"",o),{}));return r.computed(()=>t.rows.map(o=>{const s=n.value,{primaryKey:l,offset:d,dataRow:u,height:p}=o,f=e.value.map(m=>({id:m.id,column:m,row:o,value:u[m.id],class:s[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return ou({style:{top:`${d-t.scrollTop}px`,height:`${o.height}px`},primaryKey:l,offset:d,height:p,cells:f,selected:t.selectedRows.has(l)})}))}const N_=async(t,e)=>{const{scrollTop:n,bodyHeight:o}=t;return await xv(0),Ev({rows:e.getRows(n,o),dataWindow:t})};function V_(t){const e=r.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:t.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});r.watch(()=>t.settings,m=>{e.columns=li(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(y=>{e.dataHeight=y,f.updateBodyHeight()}).catch(y=>e.error=y)},{immediate:!0});const n=r.computed(()=>t.settings),o=r.computed(()=>e.columns.reduce((m,y)=>m+y.width+uo,0)),s=r.computed(()=>ru(f.data.dataHeight-f.data.bodyHeight,m=>m>0?m:0)),l=r.computed(()=>ru(o.value-f.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=B_({data:e,settings:n}),p=A_(e,u),f={data:e,settings:n,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((E,S)=>E+S.width+uo,0),y=e.bodyWidth+e.scrollLeft;if(m<y){const E=e.columns[e.columns.length-1];E.width=E.width+(y-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=us(m,0,s.value)},updateScrollLeft(m){e.scrollLeft=us(m,0,l.value)},updateBodyHeight(){const{height:m}=t.settings,{dataHeight:y}=e,E=m>y?y:m;e.bodyHeight=E},updateDimensions(m){this.updateBodyHeight(),f.data.bodyWidth=m.width,f.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,y)=>{const E=m.current;(!E||m.scrollTop<E.scrollTop||m.scrollTop+m.bodyHeight>E.bodyHeight+E.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-du,bodyHeight:m.bodyHeight+du*2},N_(li(e.currentWindow),n.value.dataSource).then(({rows:S,dataWindow:N})=>{ai(e.currentWindow,N)&&(e.rows=S)}))},{deep:!0,immediate:!0}),r.provide(cu,f),f}const P_={class:"command-menu__container"},D_={key:0,class:"table-body__no-data"},F_={class:"carets"},ol=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(t,{emit:e}){const n=e,o=t,s=V_(o),l=r.computed(()=>s.data.rows.length===0),d=r.computed(()=>({height:l.value?"212px":s.data.bodyHeight+"px"}));r.watch(s.data,L=>n("update:data",L),{deep:!0}),r.watch(o,()=>m);const u=r.ref(),p=r.ref(),f=r.ref(),m=()=>{Ir(f.value,L=>{s.updateDimensions(L.getBoundingClientRect())})},y=s.tableColumns,E=s.tableRows,{mouseDown:S}=v_(s,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(o.settings),r.nextTick(m)}),rt(window,"resize",()=>r.nextTick(m));const N=L=>{L.preventDefault(),s.updateOffsets(L)};return(L,O)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:O[2]||(O[2]=(...C)=>r.unref(S)&&r.unref(S)(...C))},[r.createElementVNode("div",P_,[r.createVNode(b_),O[3]||(O[3]=r.createTextVNode()),r.createVNode(E_)]),O[7]||(O[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(i_,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(y),(C,A)=>(r.openBlock(),r.createBlock(c_,{key:A,col:C,style:r.normalizeStyle(C.style),"onChange:sort":O[0]||(O[0]=H=>L.$emit("change:sort",H))},null,8,["col","style"]))),128))]),_:1})],512),O[8]||(O[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:f,class:"table-body",style:r.normalizeStyle(d.value),onWheel:N},[l.value?(r.openBlock(),r.createElementBlock("div",D_,[r.createElementVNode("div",null,[r.createVNode(r_),O[4]||(O[4]=r.createTextVNode()),O[5]||(O[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),O[6]||(O[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(E),(C,A)=>(r.openBlock(),r.createBlock(d_,{key:A,row:C},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.cells,H=>(r.openBlock(),r.createBlock(Qv,{key:H.column.id+":"+A,cell:H,style:r.normalizeStyle(H.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),O[9]||(O[9]=r.createTextVNode()),r.createElementVNode("div",F_,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(y),(C,A)=>(r.openBlock(),r.createBlock(u_,{key:A,column:C,style:r.normalizeStyle(C.style),"onChange:sort":O[1]||(O[1]=H=>L.$emit("change:sort",H))},null,8,["column","style"]))),128))]),O[10]||(O[10]=r.createTextVNode()),r.createVNode(T_,{offset:r.unref(s).data.scrollTop,"window-size":r.unref(s).data.bodyHeight,"data-size":r.unref(s).data.dataHeight,"onChange:offset":r.unref(s).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),hu=new WeakMap;class R_{constructor(e,n,o){wv(this,"dataHeight"),this.datum=e,this.resolveHeight=n,this.resolvePrimaryKey=o;const s=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+uo,d),{total:0,indices:new Map});this.dataHeight=s.total;const l=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:nu(s.indices.get(u)),height:this.resolveHeight(d,u)}));hu.set(this,l)}get rows(){return hu.get(this)}async getHeight(){return this.dataHeight}async getRows(e,n){return a_(this.rows,o=>{const s=o.offset;return e<s+o.height&&s<n+e})}}class M_{constructor(e,n,o){this.api=e,this.rowHeight=n,this.resolvePrimaryKey=o}get height(){return this.rowHeight+uo}async getHeight(){return await this.api.count()*this.height}async getRows(e,n){const o=us(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),s=Math.ceil(n+40/this.height);return(await this.api.query({offset:o,limit:s})).map((l,d)=>({dataRow:l,index:o+d,primaryKey:this.resolvePrimaryKey(l,o+d),offset:(o+d)*(this.rowHeight+uo),height:this.rowHeight}))}}function I_(t){return Object.freeze(t)}function L_(t){return r.h(ol,{settings:Object.freeze(t)})}function il(t,e){const n=new R_(t,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:n}}function O_(t,e){return r.computed(()=>{const n=r.unref(t);return il(n,r.unref(e))})}function G_(t,e){const n=r.computed(()=>{const s=r.unref(t);return il(s,r.unref(e))}),o=r.reactive({settings:n});return r.computed(()=>r.h(ol,o))}const z_=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:M_,Component:ol,factory:L_,rawDataSettings:il,settings:I_,useRawData:O_,useRawDataComponent:G_},Symbol.toStringTag,{value:"Module"}));function*$_(t,e){for(const n of t)yield e(n)}function Z_(t){const e=[];for(const n of t)e.push(n);return e}function fu(t){return t()}function sl(t,e){if(t==null)throw Error(e);return t}function al(t){let e=!1;return function(...n){e||(requestAnimationFrame(()=>{t(...n),e=!1}),e=!0)}}function mu(t){return new Promise(e=>setTimeout(e,t))}function gu(t,e){const n=setTimeout(t,e);return()=>{clearTimeout(n)}}function yu(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t}function U_(t){let e="";for(let n=0;n<t;n++)e+=String.fromCharCode(yu(65,91));return e}function vu(t){return function(e){return 1-t(1-e)}}function W_(t){return function(e){return e<.5?t(2*e)/2:(2-t(2*(1-e)))/2}}function _u(t){const{duration:e,draw:n,timing:o}=t,s=performance.now();let l=!1;return requestAnimationFrame(function d(u){let p=(u-s)/e;(p>1||l)&&(p=1);const f=o(p);n(f),p<1&&requestAnimationFrame(d)}),function(){l=!0}}function H_(t){const{getFraction:e,draw:n,timing:o}=t,s=performance.now();let l=!1;return requestAnimationFrame(function d(u){let p=e(u-s);if(l)return;p>1&&(p=1);const f=o(p);n(f),p<1&&requestAnimationFrame(d)}),function(){l=!0}}function Cu(t,e){let n=-1;return(...o)=>{n!==-1&&(clearTimeout(n),n=-1),n=window.setTimeout(()=>t(...o),e)}}function wu(t,e,n=!0){let o=0,s;return function(...l){s=()=>{t.apply(this,l),o=new Date().getTime()+e,s=null,n&&setTimeout(()=>{s&&s()},e)},new Date().getTime()>o&&s()}}function j_(t){return t.map(e=>({text:String(e),value:e}))}function lr(t){return t.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const ll=new Map;function q_(t){return ll.has(t)||ll.set(t,r.ref(localStorage.getItem(t))),sl(ll.get(t),"...")}function K_(t,e){e==null?localStorage.removeItem(t):localStorage.setItem(t,e)}function bu(t){const e=q_(t);return r.watch(e,n=>K_(t,n)),e}const cl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>{Z_($_(cl.values(),e=>e(t.matches?"dark":"light")))});const Y_=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",xu=r.ref(Y_),dl=bu("theme");function ku(t){const e=r.computed(()=>dl.value?dl.value:xu.value),n=s=>{xu.value=s,t&&t(s)};function o(){dl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,s=>{t&&t(r.unref(s))}),r.onMounted(()=>{cl.add(n)}),r.onUnmounted(()=>{cl.delete(n)}),[e,o]}const J_=r.defineComponent({__name:"ThemeSwitcher",setup(t){const[e,n]=ku();return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-theme-switcher",r.unref(e)]),onClick:s[0]||(s[0]=(...l)=>r.unref(n)&&r.unref(n)(...l))},s[1]||(s[1]=[r.createElementVNode("div",null,null,-1)]),2))}}),X_={key:0,class:"pl-block-page__title"},Q_={class:"pl-block-page__title__append"},eC={key:1},tC={class:"pl-block-page__body"},nC={name:"PlBlockPage"},rC=r.defineComponent({...nC,props:{noBodyGutters:{type:Boolean}},setup(t){const e=r.useSlots();return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-block-page",{noBodyGutters:n.noBodyGutters}])},[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",X_,[r.createElementVNode("h1",null,[r.renderSlot(n.$slots,"title")]),o[0]||(o[0]=r.createTextVNode()),r.createElementVNode("div",Q_,[r.renderSlot(n.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",eC)),o[1]||(o[1]=r.createTextVNode()),r.createElementVNode("div",tC,[r.renderSlot(n.$slots,"default")])],2))}}),oC={name:"PlContainer"},iC=r.defineComponent({...oC,props:{width:{}},setup(t){const e=t,n=r.computed(()=>({width:e.width}));return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-container pl-layout-component",style:r.normalizeStyle(n.value)},[r.renderSlot(o.$slots,"default")],4))}}),sC={name:"PlRow"},aC=r.defineComponent({...sC,props:{wrap:{type:Boolean},alignCenter:{type:Boolean},noGap:{type:Boolean}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[r.renderSlot(e.$slots,"default")],2))}}),lC={class:"pl-layout-component",style:{"flex-grow":"1"}},cC={name:"PlSpacer"},Su=r.defineComponent({...cC,setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",lC))}}),dC={name:"PlGrid"},uC=r.defineComponent({...dC,props:{columns:{}},setup(t){const e=t,n=r.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-layout-component pl-grid",style:r.normalizeStyle(n.value)},[r.renderSlot(o.$slots,"default")],4))}}),pC={key:0,class:"pl-alert__icon"},hC={class:"pl-alert__main"},fC={key:0},mC={class:"pl-alert__main__text"},gC={name:"PlAlert"},yC=r.defineComponent({...gC,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(t){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(n,o)=>n.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["pl-alert",[{monospace:n.monospace,whiteSpacePre:n.whiteSpacePre},n.type?`pl-alert__${n.type}`:""]]),style:r.normalizeStyle({maxHeight:n.maxHeight})},[n.icon&&n.type?(r.openBlock(),r.createElementBlock("div",pC,[r.createElementVNode("div",{class:r.normalizeClass(`icon-24 icon-${e[n.type]}`)},null,2)])):r.createCommentVNode("",!0),o[2]||(o[2]=r.createTextVNode()),r.createElementVNode("div",hC,[n.label?(r.openBlock(),r.createElementBlock("label",fC,r.toDisplayString(n.label),1)):r.createCommentVNode("",!0),o[1]||(o[1]=r.createTextVNode()),r.createElementVNode("div",mC,[r.renderSlot(n.$slots,"default")])]),o[3]||(o[3]=r.createTextVNode()),n.closeable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:o[0]||(o[0]=s=>n.$emit("update:modelValue",!1))})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)}}),vC=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
45
+ }`;function Qd(){b.ModuleRegistry.registerModules([Qi.ClientSideRowModelModule,rm.InfiniteRowModelModule,ad.ServerSideRowModelModule,om.CsvExportModule,ld.ClipboardModule,cd.RangeSelectionModule,im.RichSelectModule,sm.MenuModule,am.ExcelExportModule,Ha,Xd]);const t=Tg("AGGRID_LICENSE");t?(Me.LicenseManager.setLicenseKey(t),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const yv=dd.createPart("headerBottomBorder").withCSS(gv),eu=dd.themeQuartz.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#49cc49",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxCheckedBackgroundColor:"#110529",checkboxCheckedBorderColor:"#110529",checkboxIndeterminateBackgroundColor:"#110529",checkboxIndeterminateBorderColor:"#110529",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}).withPart(yv),tu=Symbol("sdk-vue");function Xa(){return r.inject(tu)}function vv(t,e,n={}){let o;Qd();const s=()=>{t.loadBlockState().then(d=>{l.loaded=!0;const u=_m(d,t,n),p=e(u),f=Object.fromEntries(Object.entries(p.routes).map(([m,y])=>{const E=typeof y=="function"?y():y;return[m,r.markRaw(E)]}));o=Object.assign(u,{...p,getRoute(m){return f[m]}})}).catch(d=>{console.error("load initial state error",d),l.error=d})},l=r.reactive({loaded:!1,error:void 0,useApp(){return cm(o,"App is not loaded")},install(d){d.provide(tu,this),s()}});return l}var _v=Object.defineProperty,Cv=(t,e,n)=>e in t?_v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wv=(t,e,n)=>Cv(t,e+"",n);function nu(t,e){if(t==null)throw Error("Empty (null | undefined) value");return t}function bv(t,e,n){const o=Math.min(e,n),s=Math.max(e,n);return t>=o&&t<=s}function xv(t){return new Promise(e=>setTimeout(e,t))}function kv(t){return t()}function us(t,e,n){return e>t?e:t>n?n:t}function ru(t,e){return e(t)}function Ir(t,e){if(t!=null)return e(t)}function Sv(t){if(t&&t.ok)return t.value}async function Ev(t){return Object.fromEntries(await Promise.all(Object.entries(t).map(async([e,n])=>[e,await n])))}const ou=t=>t;function Tv(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t}function Bv(t){let e="";for(let n=0;n<t;n++)e+=String.fromCharCode(Tv(65,91));return e}function iu(){return Bv(42)}const Qa=Array.isArray;function si(t){return t!==null&&typeof t=="object"}function el(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null}function Av(t,e){return Object.keys(t).map(n=>e(t[n],n))}function ai(t,e){return si(t)&&si(e)?Object.keys(t).length!==Object.keys(e).length?!1:Object.keys(t).every(n=>ai(t[n],e[n])):t===e}function li(t){if(Array.isArray(t)){const e=[];for(let n=0;n<t.length;n++)e[n]=li(t[n]);return e}else if(si(t)){const e={};return Object.keys(t).forEach(n=>{e[n]=li(t[n])}),e}else return t}function Nv(t){return Array.isArray(t)?Object.assign([],t):si(t)?Object.assign({},t):t}function Vv(t,e){const n={};for(const o in e)e[o]!==t[o]&&(n[o]=t[o]);return n}function Pv(t){return Object.entries(t).forEach(([e,n])=>{n instanceof Function&&(t[e]=n.bind(t))}),t}function Dv(t,e,n){return t[e]=n,t}function Fv(t,e){return t[e]}function Rv(t,e){t={...t};const n=t[e];return delete t[e],[n,t]}function Mv(t,...e){return Object.assign({},...e.map(n=>({[n]:t[n]})))}function Iv(t,...e){return e.map(n=>t[n])}function Lv(t,...e){const n=Object.assign({},t);return e.forEach(o=>delete n[o]),n}function su(t,e){return new Set([...Object.keys(t),...Object.keys(e)]).forEach(n=>{const o=t[n],s=e[n];el(o)&&el(s)||Qa(o)&&Qa(s)&&o.length===s.length?su(o,s):t[n]=s}),t}const tl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Pv,deepClone:li,deepEqual:ai,deepPatch:su,getProp:Fv,isArray:Qa,isObject:si,isPlainObject:el,map:Av,omit:Lv,pick:Mv,pickValues:Iv,setProp:Dv,shallowClone:Nv,shallowDiff:Vv,shiftProp:Rv},Symbol.toStringTag,{value:"Module"}));function Ov(t,e){const n=t.findIndex(e);if(n<0)return[];const o=(()=>{for(let s=n;s<t.length;s++)if(!e(t[s],s))return s;return t.length})();return t.slice(n,o)}function au(t,e,n){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,t.apply(this,s)},e)}}const Gv=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],zv=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],$v=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Zv=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],lu=(t,e)=>{let n=String(t);return typeof e=="string"||Array.isArray(e)?n=t.toLocaleString(e):e===!0&&(n=t.toLocaleString(void 0)),n};function nl(t,e){if(t=typeof t=="bigint"?Number(t):t,!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);Object.assign(e,{bits:!1,binary:!1});const n=e.bits?e.binary?Zv:$v:e.binary?zv:Gv;if(e.signed&&t===0)return` 0 ${n[0]}`;const o=t<0,s=o?"-":e.signed?"+":"";if(o&&(t=-t),t<1){const p=lu(t,e.locale);return s+p+" "+n[0]}const l=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),n.length-1);t/=(e.binary?1024:1e3)**l,t=Number(t.toPrecision(3));const d=lu(Number(t),e.locale),u=n[l];return s+d+" "+u}const Uv={class:"context-menu"},Wv=["onClick"],Hv=r.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(t,{emit:e}){const n=e,o=s=>{s.cb(),n("close")};return(s,l)=>(r.openBlock(),r.createElementBlock("div",Uv,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.options,(d,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,onClick:r.withModifiers(p=>o(d),["stop"])},[r.createElementVNode("span",null,r.toDisplayString(d.text),1)],8,Wv))),128))]))}}),Kt=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},jv=Kt(Hv,[["__scopeId","data-v-12530966"]]);function rl(t,e){t.preventDefault();const n=()=>{r.render(null,document.body)},o=r.h(jv,{options:e,onClose:()=>{n()}});r.render(o,document.body);const s=o.el;return s.style.top=t.clientY+"px",s.style.left=t.clientX+"px",document.addEventListener("click",l=>{s.contains(l.target)||n()}),n}const cu=Symbol(),ps=()=>r.inject(cu),qv=["value"],Kv={key:1},Yv=r.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,o=t,s=r.reactive({edit:!1}),l=r.computed(()=>o.valueType),d=f=>{var m;let y=(m=f.target)==null?void 0:m.value;const E=r.unref(l),S=kv(()=>E==="integer"?parseInt(y,10):E==="float"?Number(y):y);n("update:modelValue",S),s.edit=!1},u=r.ref(),p=f=>{!f.metaKey&&o.editable&&(s.edit=!0,requestAnimationFrame(()=>{var m,y;(y=(m=u.value)==null?void 0:m.querySelector("input"))==null||y.focus()}))};return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"baseRef",ref:u,class:r.normalizeClass(["base-cell",{"base-cell__edit":s.edit}]),onClick:p},[s.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:f.modelValue,onFocusout:m[0]||(m[0]=y=>s.edit=!1),onChange:d},null,40,qv)):(r.openBlock(),r.createElementBlock("div",Kv,r.toDisplayString(f.modelValue),1))],2))}}),Jv=["^data-row-index"],Xv={key:0,class:"control-cell"},Qv=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(t){const e=t,n=ps(),o=r.computed(()=>e.cell.column.valueType),s=f=>{Ir(n.settings.value.onUpdatedRow,m=>{const y=e.cell.row,E={...y.dataRow,[e.cell.id]:f};m({...y,dataRow:E})})},l=f=>{f.metaKey&&n.selectRow(e.cell.row.primaryKey)},d=(f,m)=>{if(f.type==="contextmenu")f.preventDefault();else return;const y=n.settings??{},E=[],{onSelectedRows:S,onSelectedColumns:N}=y.value,L=n.data.selectedRows.has(m.primaryKey);S&&S.length&&(L?E.push({text:"Deselect row",cb(){n.data.selectedRows.delete(e.cell.row.primaryKey)}}):E.push({text:"Select row",cb(){n.selectRow(e.cell.row.primaryKey)}})),N&&N.length&&(E.push({text:"Select column",cb(){n.selectColumn(e.cell.column.id)}}),E.push({text:"Unselect column",cb(){n.unselectColumn(e.cell.column.id)}})),E.length&&rl(f,E)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[f.cell.class]:!0}]),"^data-row-index":f.cell.row.index,onClick:l,onContextmenu:m[0]||(m[0]=y=>d(y,f.cell.row))},[f.cell.control?(r.openBlock(),r.createElementBlock("div",Xv,r.toDisplayString(f.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":f.cell.value,"onUpdate:modelValue":s},null,8,["model-value"])):(r.openBlock(),r.createBlock(Yv,{key:2,"model-value":f.cell.value,"value-type":o.value,editable:f.cell.column.editable,"onUpdate:modelValue":s},null,8,["model-value","value-type","editable"]))],42,Jv))}}),e_={},t_={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n_(t,e){return r.openBlock(),r.createElementBlock("svg",t_,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const r_=Kt(e_,[["render",n_]]),o_={class:"tr-head"},i_=r.defineComponent({__name:"TrHead",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",o_,[r.renderSlot(e.$slots,"default")]))}});function s_(t,e){const n=e.indexOf(t)+1;return e[n>=e.length?0:n]}function a_(t,e){const n=t.findIndex(e);if(n<0)return[];const o=(()=>{for(let s=n;s<t.length;s++)if(!e(t[s],s))return s;return t.length})();return t.slice(n,o)}const l_=["^data-col-id"],c_=r.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(t,{emit:e}){const n=e;function o(l){l.preventDefault();const d=[];d.length&&rl(l,d)}function s(l){var d;const u=((d=l.sort)==null?void 0:d.direction)??"DESC";n("change:sort",{colId:l.id,direction:s_(u,["DESC","ASC"])})}return(l,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":l.col.justify,frozen:l.col.frozen}]),"^data-col-id":l.col.id,onContextmenu:o},[l.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(l.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(l.col.label)+" ",1),l.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",l.col.sort.direction]),onClick:d[0]||(d[0]=r.withModifiers(()=>s(l.col),["stop"]))},null,2)):r.createCommentVNode("",!0)],42,l_))}}),d_=r.defineComponent({__name:"TrBody",props:{row:{}},setup(t){const e=r.ref(),n=()=>{r.nextTick().then(()=>{Ir(e.value,o=>o.scrollLeft=0)})};return(o,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"trRef",ref:e,class:r.normalizeClass(["tr-body",{selected:o.row.selected}]),scroll:"no",style:r.normalizeStyle(o.row.style),onScroll:n},[r.renderSlot(o.$slots,"default")],38))}}),u_=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(t){const e=ps(),n=t,o=r.computed(()=>e.data.selectedColumns.has(n.column.id));return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column-caret",{selected:o.value,frozen:s.column.frozen}])},null,2))}});function rt(t,e,n,o){r.onMounted(()=>{var s;return(s=r.unref(t))==null?void 0:s.addEventListener(e,n,o)}),r.onUnmounted(()=>{var s;return(s=r.unref(t))==null?void 0:s.removeEventListener(e,n,o)})}function p_(t){r.onMounted(()=>window.addEventListener("mouseup",t)),r.onUnmounted(()=>window.removeEventListener("mouseup",t))}function h_(t){let e=!1;return function(...n){e?console.log("handle pressure"):(requestAnimationFrame(()=>{t(...n),e=!1}),e=!0)}}function f_(t,e){let n;function o(l){n={...l}}p_(()=>{n=void 0,e()});const s=h_(t);return rt(window,"mousemove",l=>{n&&s({x:n.x,width:n.width,diff:l.x-n.x})}),{start:o}}const uo=1,m_=10,g_=30,du=60;function uu(){const t=r.reactive({x:0,y:0});function e(n){t.x=n.pageX,t.y=n.pageY}return r.onMounted(()=>window.addEventListener("mousemove",e)),r.onUnmounted(()=>window.removeEventListener("mousemove",e)),t}function pu(t,e={}){const{delayEnter:n=0,delayLeave:o=0}=e,s=r.ref(!1);let l;const d=u=>{const p=u?n:o;l&&(clearTimeout(l),l=void 0),p?l=setTimeout(()=>s.value=u,p):s.value=u};return window&&(rt(t,"mouseenter",()=>d(!0)),rt(t,"mouseleave",()=>d(!1))),s}function y_(t){var e;const n=Ir((e=r.unref(t))==null?void 0:e.querySelectorAll(".th-cell"),o=>[...o])??[];return n.map(o=>{const{width:s,x:l}=o.getBoundingClientRect(),d=o.getAttribute("data-col-id");return ou({colId:d,width:s,x:l,right:l+s})}).slice(0,n.length-1)}function v_(t,e){const n=uu(),o=pu(e,{}),{data:s}=t,l=f_(u=>{Ir(s.resizeTh,p=>{const f=s.columns.find(m=>m.id===p.colId);f&&(f.width=us(u.width+u.diff,g_,1e4),t.adjustWidth())})},()=>{s.resize=!1,s.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{s.resizeTh&&(s.resize=!0,l.start({x:u.x,width:s.resizeTh.width}))};return r.watchEffect(()=>{if(!o.value){document.body.style.cursor="";return}if(s.resize)return;const u=y_(e).find(p=>Math.abs(n.x-p.right)<m_);u?(document.body.style.cursor="col-resize",s.resizeTh=u):(s.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const __={key:0,class:"command-menu"},C_={key:0},w_=["onClick"],b_=r.defineComponent({__name:"RowsCommandMenu",setup(t){const e=ps(),n=r.computed(()=>e.getSelectedRows()),o=r.computed(()=>n.value.length>0),s=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),l=r.computed(()=>s.value.map(d=>({label:d.label,cb:()=>{d.cb(n.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>o.value?(r.openBlock(),r.createElementBlock("div",__,[n.value.length?(r.openBlock(),r.createElementBlock("span",C_,r.toDisplayString(n.value.length)+" rows selected",1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,w_))),128))])):r.createCommentVNode("",!0)}}),x_={key:0,class:"command-menu"},k_={key:0},S_=["onClick"],E_=r.defineComponent({__name:"ColumnsCommandMenu",setup(t){const e=ps(),n=r.computed(()=>e.getSelectedColumns()),o=r.computed(()=>n.value.length>0),s=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),l=r.computed(()=>s.value.map(d=>({label:d.label,cb:()=>{d.cb(n.value),e.data.selectedColumns.clear()}})));return(d,u)=>o.value?(r.openBlock(),r.createElementBlock("div",x_,[n.value.length?(r.openBlock(),r.createElementBlock("span",k_,"selected columns "+r.toDisplayString(n.value.length),1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,S_))),128))])):r.createCommentVNode("",!0)}});function ar(t,e){const n={el:void 0,x:0,y:0},o=s=>({x:s.x,y:s.y,dx:s.x-n.x,dy:s.y-n.y});rt(document,"mousedown",s=>{s.target===r.unref(t)&&(s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),n.el=r.unref(t),n.x=s.x,n.y=s.y)}),rt(document,"mouseup",s=>{n.el&&(n.el=void 0,e({...o(s),stop:!0},n))}),rt(document,"mousemove",s=>{n.el&&e(o(s),n)})}const T_=r.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(),l=r.computed(()=>o.windowSize-12),d=r.computed(()=>o.windowSize<o.dataSize),u=r.computed(()=>Math.ceil(o.offset*(l.value/o.dataSize))),p=r.computed(()=>Math.ceil(l.value*l.value/o.dataSize)),f=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return ar(s,(m,y)=>{const E=(u.value+m.dy)*o.dataSize/l.value;n("change:offset",E),y.x=m.x,y.y=m.y}),(m,y)=>(r.openBlock(),r.createElementBlock("div",{class:"t-scroll",style:r.normalizeStyle({height:`${m.windowSize}px`})},[r.createElementVNode("div",null,[d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"handleRef",ref:s,class:"t-scroll__handle",style:r.normalizeStyle(f.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function B_(t){return r.computed(()=>{const{data:e,settings:n}=t,{bodyWidth:o,scrollLeft:s}=e,l=[...e.columns],d=iu();n.value.controlColumn&&l.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=l.map(m=>{const y={...m,offset:u};return u+=m.width+uo,y}),f=p.filter(m=>m.frozen);return Ov(p,m=>m.frozen?!1:s<m.offset+m.width&&m.offset<o+s).concat(f).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function A_(t,e){const n=r.computed(()=>e.value.reduce((o,s)=>(o[s.id]=s.justify?"justify-"+s.justify:"",o),{}));return r.computed(()=>t.rows.map(o=>{const s=n.value,{primaryKey:l,offset:d,dataRow:u,height:p}=o,f=e.value.map(m=>({id:m.id,column:m,row:o,value:u[m.id],class:s[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return ou({style:{top:`${d-t.scrollTop}px`,height:`${o.height}px`},primaryKey:l,offset:d,height:p,cells:f,selected:t.selectedRows.has(l)})}))}const N_=async(t,e)=>{const{scrollTop:n,bodyHeight:o}=t;return await xv(0),Ev({rows:e.getRows(n,o),dataWindow:t})};function V_(t){const e=r.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:t.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});r.watch(()=>t.settings,m=>{e.columns=li(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(y=>{e.dataHeight=y,f.updateBodyHeight()}).catch(y=>e.error=y)},{immediate:!0});const n=r.computed(()=>t.settings),o=r.computed(()=>e.columns.reduce((m,y)=>m+y.width+uo,0)),s=r.computed(()=>ru(f.data.dataHeight-f.data.bodyHeight,m=>m>0?m:0)),l=r.computed(()=>ru(o.value-f.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=B_({data:e,settings:n}),p=A_(e,u),f={data:e,settings:n,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((E,S)=>E+S.width+uo,0),y=e.bodyWidth+e.scrollLeft;if(m<y){const E=e.columns[e.columns.length-1];E.width=E.width+(y-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=us(m,0,s.value)},updateScrollLeft(m){e.scrollLeft=us(m,0,l.value)},updateBodyHeight(){const{height:m}=t.settings,{dataHeight:y}=e,E=m>y?y:m;e.bodyHeight=E},updateDimensions(m){this.updateBodyHeight(),f.data.bodyWidth=m.width,f.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,y)=>{const E=m.current;(!E||m.scrollTop<E.scrollTop||m.scrollTop+m.bodyHeight>E.bodyHeight+E.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-du,bodyHeight:m.bodyHeight+du*2},N_(li(e.currentWindow),n.value.dataSource).then(({rows:S,dataWindow:N})=>{ai(e.currentWindow,N)&&(e.rows=S)}))},{deep:!0,immediate:!0}),r.provide(cu,f),f}const P_={class:"command-menu__container"},D_={key:0,class:"table-body__no-data"},F_={class:"carets"},ol=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(t,{emit:e}){const n=e,o=t,s=V_(o),l=r.computed(()=>s.data.rows.length===0),d=r.computed(()=>({height:l.value?"212px":s.data.bodyHeight+"px"}));r.watch(s.data,L=>n("update:data",L),{deep:!0}),r.watch(o,()=>m);const u=r.ref(),p=r.ref(),f=r.ref(),m=()=>{Ir(f.value,L=>{s.updateDimensions(L.getBoundingClientRect())})},y=s.tableColumns,E=s.tableRows,{mouseDown:S}=v_(s,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(o.settings),r.nextTick(m)}),rt(window,"resize",()=>r.nextTick(m));const N=L=>{L.preventDefault(),s.updateOffsets(L)};return(L,O)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:O[2]||(O[2]=(...C)=>r.unref(S)&&r.unref(S)(...C))},[r.createElementVNode("div",P_,[r.createVNode(b_),O[3]||(O[3]=r.createTextVNode()),r.createVNode(E_)]),O[7]||(O[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(i_,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(y),(C,A)=>(r.openBlock(),r.createBlock(c_,{key:A,col:C,style:r.normalizeStyle(C.style),"onChange:sort":O[0]||(O[0]=H=>L.$emit("change:sort",H))},null,8,["col","style"]))),128))]),_:1})],512),O[8]||(O[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:f,class:"table-body",style:r.normalizeStyle(d.value),onWheel:N},[l.value?(r.openBlock(),r.createElementBlock("div",D_,[r.createElementVNode("div",null,[r.createVNode(r_),O[4]||(O[4]=r.createTextVNode()),O[5]||(O[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),O[6]||(O[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(E),(C,A)=>(r.openBlock(),r.createBlock(d_,{key:A,row:C},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.cells,H=>(r.openBlock(),r.createBlock(Qv,{key:H.column.id+":"+A,cell:H,style:r.normalizeStyle(H.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),O[9]||(O[9]=r.createTextVNode()),r.createElementVNode("div",F_,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(y),(C,A)=>(r.openBlock(),r.createBlock(u_,{key:A,column:C,style:r.normalizeStyle(C.style),"onChange:sort":O[1]||(O[1]=H=>L.$emit("change:sort",H))},null,8,["column","style"]))),128))]),O[10]||(O[10]=r.createTextVNode()),r.createVNode(T_,{offset:r.unref(s).data.scrollTop,"window-size":r.unref(s).data.bodyHeight,"data-size":r.unref(s).data.dataHeight,"onChange:offset":r.unref(s).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),hu=new WeakMap;class R_{constructor(e,n,o){wv(this,"dataHeight"),this.datum=e,this.resolveHeight=n,this.resolvePrimaryKey=o;const s=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+uo,d),{total:0,indices:new Map});this.dataHeight=s.total;const l=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:nu(s.indices.get(u)),height:this.resolveHeight(d,u)}));hu.set(this,l)}get rows(){return hu.get(this)}async getHeight(){return this.dataHeight}async getRows(e,n){return a_(this.rows,o=>{const s=o.offset;return e<s+o.height&&s<n+e})}}class M_{constructor(e,n,o){this.api=e,this.rowHeight=n,this.resolvePrimaryKey=o}get height(){return this.rowHeight+uo}async getHeight(){return await this.api.count()*this.height}async getRows(e,n){const o=us(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),s=Math.ceil(n+40/this.height);return(await this.api.query({offset:o,limit:s})).map((l,d)=>({dataRow:l,index:o+d,primaryKey:this.resolvePrimaryKey(l,o+d),offset:(o+d)*(this.rowHeight+uo),height:this.rowHeight}))}}function I_(t){return Object.freeze(t)}function L_(t){return r.h(ol,{settings:Object.freeze(t)})}function il(t,e){const n=new R_(t,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:n}}function O_(t,e){return r.computed(()=>{const n=r.unref(t);return il(n,r.unref(e))})}function G_(t,e){const n=r.computed(()=>{const s=r.unref(t);return il(s,r.unref(e))}),o=r.reactive({settings:n});return r.computed(()=>r.h(ol,o))}const z_=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:M_,Component:ol,factory:L_,rawDataSettings:il,settings:I_,useRawData:O_,useRawDataComponent:G_},Symbol.toStringTag,{value:"Module"}));function*$_(t,e){for(const n of t)yield e(n)}function Z_(t){const e=[];for(const n of t)e.push(n);return e}function fu(t){return t()}function sl(t,e){if(t==null)throw Error(e);return t}function al(t){let e=!1;return function(...n){e||(requestAnimationFrame(()=>{t(...n),e=!1}),e=!0)}}function mu(t){return new Promise(e=>setTimeout(e,t))}function gu(t,e){const n=setTimeout(t,e);return()=>{clearTimeout(n)}}function yu(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t}function U_(t){let e="";for(let n=0;n<t;n++)e+=String.fromCharCode(yu(65,91));return e}function vu(t){return function(e){return 1-t(1-e)}}function W_(t){return function(e){return e<.5?t(2*e)/2:(2-t(2*(1-e)))/2}}function _u(t){const{duration:e,draw:n,timing:o}=t,s=performance.now();let l=!1;return requestAnimationFrame(function d(u){let p=(u-s)/e;(p>1||l)&&(p=1);const f=o(p);n(f),p<1&&requestAnimationFrame(d)}),function(){l=!0}}function H_(t){const{getFraction:e,draw:n,timing:o}=t,s=performance.now();let l=!1;return requestAnimationFrame(function d(u){let p=e(u-s);if(l)return;p>1&&(p=1);const f=o(p);n(f),p<1&&requestAnimationFrame(d)}),function(){l=!0}}function Cu(t,e){let n=-1;return(...o)=>{n!==-1&&(clearTimeout(n),n=-1),n=window.setTimeout(()=>t(...o),e)}}function wu(t,e,n=!0){let o=0,s;return function(...l){s=()=>{t.apply(this,l),o=new Date().getTime()+e,s=null,n&&setTimeout(()=>{s&&s()},e)},new Date().getTime()>o&&s()}}function j_(t){return t.map(e=>({text:String(e),value:e}))}function lr(t){return t.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const ll=new Map;function q_(t){return ll.has(t)||ll.set(t,r.ref(localStorage.getItem(t))),sl(ll.get(t),"...")}function K_(t,e){e==null?localStorage.removeItem(t):localStorage.setItem(t,e)}function bu(t){const e=q_(t);return r.watch(e,n=>K_(t,n)),e}const cl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>{Z_($_(cl.values(),e=>e(t.matches?"dark":"light")))});const Y_=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",xu=r.ref(Y_),dl=bu("theme");function ku(t){const e=r.computed(()=>dl.value?dl.value:xu.value),n=s=>{xu.value=s,t&&t(s)};function o(){dl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,s=>{t&&t(r.unref(s))}),r.onMounted(()=>{cl.add(n)}),r.onUnmounted(()=>{cl.delete(n)}),[e,o]}const J_=r.defineComponent({__name:"ThemeSwitcher",setup(t){const[e,n]=ku();return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-theme-switcher",r.unref(e)]),onClick:s[0]||(s[0]=(...l)=>r.unref(n)&&r.unref(n)(...l))},s[1]||(s[1]=[r.createElementVNode("div",null,null,-1)]),2))}}),X_={key:0,class:"pl-block-page__title"},Q_={class:"pl-block-page__title__append"},eC={key:1},tC={class:"pl-block-page__body"},nC={name:"PlBlockPage"},rC=r.defineComponent({...nC,props:{noBodyGutters:{type:Boolean}},setup(t){const e=r.useSlots();return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-block-page",{noBodyGutters:n.noBodyGutters}])},[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",X_,[r.createElementVNode("h1",null,[r.renderSlot(n.$slots,"title")]),o[0]||(o[0]=r.createTextVNode()),r.createElementVNode("div",Q_,[r.renderSlot(n.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",eC)),o[1]||(o[1]=r.createTextVNode()),r.createElementVNode("div",tC,[r.renderSlot(n.$slots,"default")])],2))}}),oC={name:"PlContainer"},iC=r.defineComponent({...oC,props:{width:{}},setup(t){const e=t,n=r.computed(()=>({width:e.width}));return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-container pl-layout-component",style:r.normalizeStyle(n.value)},[r.renderSlot(o.$slots,"default")],4))}}),sC={name:"PlRow"},aC=r.defineComponent({...sC,props:{wrap:{type:Boolean},alignCenter:{type:Boolean},noGap:{type:Boolean}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[r.renderSlot(e.$slots,"default")],2))}}),lC={class:"pl-layout-component",style:{"flex-grow":"1"}},cC={name:"PlSpacer"},Su=r.defineComponent({...cC,setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",lC))}}),dC={name:"PlGrid"},uC=r.defineComponent({...dC,props:{columns:{}},setup(t){const e=t,n=r.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-layout-component pl-grid",style:r.normalizeStyle(n.value)},[r.renderSlot(o.$slots,"default")],4))}}),pC={key:0,class:"pl-alert__icon"},hC={class:"pl-alert__main"},fC={key:0},mC={class:"pl-alert__main__text"},gC={name:"PlAlert"},yC=r.defineComponent({...gC,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(t){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(n,o)=>n.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["pl-alert",[{monospace:n.monospace,whiteSpacePre:n.whiteSpacePre},n.type?`pl-alert__${n.type}`:""]]),style:r.normalizeStyle({maxHeight:n.maxHeight})},[n.icon&&n.type?(r.openBlock(),r.createElementBlock("div",pC,[r.createElementVNode("div",{class:r.normalizeClass(`icon-24 icon-${e[n.type]}`)},null,2)])):r.createCommentVNode("",!0),o[2]||(o[2]=r.createTextVNode()),r.createElementVNode("div",hC,[n.label?(r.openBlock(),r.createElementBlock("label",fC,r.toDisplayString(n.label),1)):r.createCommentVNode("",!0),o[1]||(o[1]=r.createTextVNode()),r.createElementVNode("div",mC,[r.renderSlot(n.$slots,"default")])]),o[3]||(o[3]=r.createTextVNode()),n.closeable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:o[0]||(o[0]=s=>n.$emit("update:modelValue",!1))})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)}}),vC=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
46
46
  <path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 4.5H4.5L4.5 19.5H19.5V4.5ZM4.5 3C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3H4.5Z" fill="#110529"/>
47
47
  </svg>
48
48
  `,_C=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -62,17 +62,17 @@
62
62
  black ${E}px,
63
63
  black ${S}px,
64
64
  transparent 100%
65
- )`}function l(){const u=t.value;if(!u)return;const p=[o(u),s(u)].filter(f=>f!==null);u.style.setProperty("-webkit-mask-image",p.join(",")),u.style.setProperty("mask-image",p.join(",")),p.length>1&&(u.style.setProperty("-webkit-mask-composite","source-in"),u.style.setProperty("mask-composite","source-in"))}const d=al(l);r.onMounted(l),rt(window,"scroll",d,!0),rt(window,"resize",d,!0)}function ip(t,e){Tu(()=>{lt(r.unref(t),n=>{Bu(n,()=>e(n))})}),r.onUnmounted(()=>{lt(r.unref(t),n=>{Au(n)})})}const yr={item:"sortable__item",animate:"sortable__animate"},Ai=t=>t.getBoundingClientRect().y,sp=t=>{const{y:e,height:n}=t.getBoundingClientRect();return e+Math.ceil(n/2)},Hk=t=>{const{y:e,height:n}=t.getBoundingClientRect();return e+n};function jk(t,e){const n={item:void 0,options(){var S;return[...((S=t.value)==null?void 0:S.children)??[]]}},o=r.computed(()=>n.options()),s=e.shakeBuffer??10,l=e.reorderDelay??100;function d(S){const N=e.handle?this.querySelector(e.handle):null;N&&!N.contains(S.target)||(this.classList.remove(yr.animate),this.classList.add(yr.item),n.item={el:this,y:S.y,dy:0,orderChanged:!1})}function u(S){const N=n.options();return N.slice(0,N.indexOf(S))}function p(S){const N=n.options();return N.slice(N.indexOf(S)+1)}function f(S,N){const L=n.options().filter(C=>C!==N),O=L.indexOf(S);return L.splice(O,0,N),L}function m(S,N){const L=n.options().filter(C=>C!==N),O=L.indexOf(S);return L.splice(O+1,0,N),L}function y(S,N){S.dy=N-S.y,S.el.style.setProperty("transform",`translateY(${S.dy}px)`)}function E(S){var N;if(!n.item)return;const{el:L}=n.item;if(!L.isConnected){n.item=void 0;return}const O=S.map(Y=>Ai(Y)),C=Ai(L);(N=t.value)==null||N.replaceChildren(...S);const A=Ai(L),H=S.map(Y=>Ai(Y)),X=[];for(let Y=0;Y<H.length;Y++){const U=S[Y];if(U===n.item.el)continue;const R=H[Y],V=O[Y]-R;U.style.transform=`translateY(${V}px)`,X.push(U)}const G=A-C;n.item.y=n.item.y+G,n.item.dy=n.item.dy-G,n.item.orderChanged=!0,n.item.el.style.setProperty("transform",`translateY(${n.item.dy}px)`),X.forEach(Y=>Y.classList.remove(yr.animate)),requestAnimationFrame(function(){X.forEach(Y=>{Y.classList.add(yr.animate),Y.style.transform="",Y.addEventListener("transitionend",()=>{Y.classList.remove(yr.animate)})})})}rt(window,"mousemove",S=>{if(!n.item)return;const{el:N}=n.item;y(n.item,S.y);const L=Ai(n.item.el),O=Hk(n.item.el),C=u(N),A=p(N);C.forEach(H=>{const X=sp(H);L+s<X&&E(f(H,N))}),A.forEach(H=>{const X=sp(H);O-s>X&&E(m(H,N))})}),rt(window,"mouseup",()=>{if(!n.item)return;const{el:S,orderChanged:N}=n.item;S.classList.add(yr.animate),S.style.removeProperty("transform"),S.addEventListener("transitionend",()=>{S.classList.remove(yr.animate,yr.item)}),setTimeout(()=>{if(!N)return;const L=n.options().map(C=>Number(C.getAttribute("data-index"))),O=t.value;if(O){for(const C of n.options())O.removeChild(C);o.value.forEach(C=>{O.appendChild(C)})}e.onChange(L)},l),n.item=void 0}),r.watchEffect(()=>{o.value.forEach((S,N)=>{S.removeEventListener("mousedown",d),S.addEventListener("mousedown",d),S.setAttribute("data-index",String(N))})})}function qk(t,e){let n;r.onMounted(()=>{n=setInterval(t,e)}),r.onUnmounted(()=>clearInterval(n))}function Kk(t,e,n){const o=r.reactive({data:tl.deepClone(e(t.value)),changed:!1});return r.watch(()=>o.data,s=>{o.changed?n(tl.deepClone(s)):o.changed=!0},{deep:!0}),r.watch(t,s=>{Object.assign(o,{data:tl.deepClone(e(s)),changed:!1})},{deep:!0,immediate:!0}),o}function Yk(t){const e=r.reactive({isLoading:!1,result:void 0,error:void 0,async run(...n){this.isLoading=!0,this.error=void 0;try{this.result=await t(...n)}catch(o){this.error=o}finally{this.isLoading=!1}},debounce(n,o=1e3){return au(()=>{const s=n();this.run(...s).catch(console.error)},o)}});return e.run=e.run.bind(e),e}function Jk(t,e){function n(d,u){const p=r.unref(t);if(!p)return;const f=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",f),e(u)}function o(d){const u=p=>n(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=r.unref(t);document.removeEventListener("mousemove",u),p&&(p.style.setProperty("transition","all .3s ease-in-out"),p.style.removeProperty("transform"),p.addEventListener("transitionend",()=>{p.style.removeProperty("transition")}))},{once:!0})}function s(){var d;(d=r.unref(t))==null||d.addEventListener("mousedown",o)}function l(){var d;(d=r.unref(t))==null||d.removeEventListener("mousedown",o)}r.onMounted(s),r.onUnmounted(l)}const Xk={class:"ui-slider__wrapper"},Qk={class:"ui-slider__label-section"},eS={key:0,class:"text-s"},tS={class:"ui-slider__base"},nS={class:"ui-slider__container"},rS={class:"ui-slider__container ui-slider__container-thumb"},oS=["data-percent"],iS=["data-percent"],sS=["data-percent"],aS={key:0,class:"ui-slider__error"},lS=r.defineComponent({__name:"SliderRangeTriple",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:"%"},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=r.useSlots(),o=e,s=t,l=r.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=r.ref(),u=r.ref(),p=r.ref(),f=r.ref(),m=r.computed(()=>s.max-s.min),y=r.computed(()=>s),E=Al(y),S=r.computed(()=>Ct((s.modelValue[0]??0)+l.deltaValue1,s.min,s.max)),N=r.computed(()=>Ct((s.modelValue[1]??0)+l.deltaValue2,s.min,s.max)),L=r.computed(()=>Ct((s.modelValue[2]??0)+l.deltaValue3,s.min,s.max)),O=r.computed(()=>{const D=s.modelValue;if(!(Array.isArray(D)&&D.length===3&&D.every(re=>Number.isFinite(re))))return"Expected model [number, number, number]";const $=[];return[...s.modelValue].forEach(re=>{re>s.max&&$.push(`Max model value must be lower than max props ${s.max}.`),re<s.min&&$.push("Min model value must be greater than max props.")}),$.length>0?$.join(" "):s.error}),C=r.computed(()=>(S.value-s.min)/m.value),A=r.computed(()=>(N.value-s.min)/m.value),H=r.computed(()=>(L.value-s.min)/m.value),X=r.computed(()=>M()),G=r.computed(()=>({right:X.value[0]+"%",left:100-X.value[2]+"%"})),Y=r.computed(()=>({right:Math.ceil((1-C.value)*100)+"%"})),U=r.computed(()=>({right:Math.ceil((1-A.value)*100)+"%"})),R=r.computed(()=>({right:Math.ceil((1-H.value)*100)+"%"}));ar(u,D=>{var $;lt(($=r.unref(d))==null?void 0:$.getBoundingClientRect(),re=>{const{dx:se}=D;l.deltaValue1=se/re.width*m.value,u.value&&V(u.value,s.modelValue[0],l.deltaValue1),D.stop&&(q([W(S.value),W(N.value),W(L.value)]),l.deltaValue1=0)})}),ar(p,D=>{var $;lt(($=r.unref(d))==null?void 0:$.getBoundingClientRect(),re=>{const{dx:se}=D;l.deltaValue2=se/re.width*m.value,p.value&&V(p.value,s.modelValue[1],l.deltaValue2),D.stop&&(q([W(S.value),W(N.value),W(L.value)]),l.deltaValue2=0)})}),ar(f,D=>{var $;lt(($=r.unref(d))==null?void 0:$.getBoundingClientRect(),re=>{const{dx:se}=D;l.deltaValue3=se/re.width*m.value,f.value&&V(f.value,s.modelValue[2],l.deltaValue3),D.stop&&(q([W(S.value),W(N.value),W(L.value)]),l.deltaValue3=0)})});function V(D,$,re){const se=W(Ct(($??0)+re,s.min,s.max));D.dataset.percent=`${se}${s.measure}`,B()}function M(){const D=Math.ceil((1-C.value)*100),$=Math.ceil((1-A.value)*100),re=Math.ceil((1-H.value)*100);return[D,$,re].sort((se,Pe)=>se-Pe)}function W(D){const $=Ct(D,s.min,s.max);return Math.round(($+Number.EPSILON)*(1/s.step))/(1/s.step)}function q(D){o("update:modelValue",D)}function B(){const D=Number(Y.value.right.substring(0,Y.value.right.length-1)),$=Number(U.value.right.substring(0,U.value.right.length-1)),re=Number(R.value.right.substring(0,R.value.right.length-1)),se=[{r:D,th:u},{r:$,th:p},{r:re,th:f}].sort((Pe,He)=>Pe.r-He.r);se[0].th.value&&(se[0].th.value.dataset.hint="high"),se[1].th.value&&(se[1].th.value.dataset.hint="mid"),se[2].th.value&&(se[2].th.value.dataset.hint="low")}function x(D,$){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(D.code)&&D.preventDefault();const re=D.code==="ArrowUp"||D.code==="ArrowRight"?s.step*1:D.code==="ArrowDown"||D.code==="ArrowLeft"?s.step*-1:0,se=[...s.modelValue];se[$]=Ct(se[$]+re,s.min,s.max),q(se),B()}return r.onMounted(()=>{B()}),(D,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[r.createElementVNode("div",Xk,[r.createElementVNode("div",Qk,[D.label?(r.openBlock(),r.createElementBlock("label",eS,[r.createElementVNode("span",null,r.toDisplayString(D.label),1),$[3]||($[3]=r.createTextVNode()),r.unref(n).tooltip?(r.openBlock(),r.createBlock(r.unref(St),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(D.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),$[11]||($[11]=r.createTextVNode()),r.createElementVNode("div",tS,[r.createElementVNode("div",nS,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(G.value)},null,4)],512)]),$[10]||($[10]=r.createTextVNode()),r.createElementVNode("div",rS,[s.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(E),(re,se)=>(r.openBlock(),r.createElementBlock("div",{key:se,style:r.normalizeStyle({right:`${re}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),$[7]||($[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(Y.value),"data-percent":s.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:$[0]||($[0]=re=>x(re,0))},$[4]||($[4]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,oS),$[8]||($[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(U.value),"data-percent":s.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:$[1]||($[1]=re=>x(re,1))},$[5]||($[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,iS),$[9]||($[9]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef3",ref:f,style:r.normalizeStyle(R.value),"data-percent":s.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:$[2]||($[2]=re=>x(re,2))},$[6]||($[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,sS)])])]),$[12]||($[12]=r.createTextVNode()),$[13]||($[13]=r.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),$[14]||($[14]=r.createTextVNode()),O.value?(r.openBlock(),r.createElementBlock("div",aS,r.toDisplayString(O.value),1)):r.createCommentVNode("",!0)],2))}}),cS={class:"ui-input-range__separator"},dS=r.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,o=e,s=r.reactive({left:n.modelValue[0],right:n.modelValue[1]}),l=r.ref(!1),d=r.computed(()=>(l.value,"ui-input-range-focused")),u=r.computed({get(){return{left:Math.min(...n.modelValue),right:Math.max(...n.modelValue)}},set(){}});r.watch(()=>u.value,m=>(s.left=m.left)&&(s.right=m.right));function p(){o("update:modelValue",[+s.left,+s.right]),o("change",[+s.left,+s.right])}function f(m,y){const E=y.target.value;/^[0-9]{0,2}$/.test(E)?m?s.left=+E:s.right=+E:m?s.left=+E.slice(0,E.length-1):s.right=+E.slice(0,E.length-1)}return(m,y)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({class:[d.value,"ui-input-range"]},m.$attrs),[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=E=>u.value.left=E),class:"text-s",type:"text",onChange:p,onFocus:y[1]||(y[1]=E=>l.value=!0),onFocusout:y[2]||(y[2]=E=>l.value=!1),onInput:y[3]||(y[3]=E=>f(!0,E))},null,544),[[r.vModelText,u.value.left]]),y[8]||(y[8]=r.createTextVNode()),r.createElementVNode("div",cS,r.toDisplayString(n.separator),1),y[9]||(y[9]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=E=>u.value.right=E),class:"text-s",type:"text",onChange:p,onFocus:y[5]||(y[5]=E=>l.value=!0),onFocusout:y[6]||(y[6]=E=>l.value=!1),onInput:y[7]||(y[7]=E=>f(!1,E))},null,544),[[r.vModelText,u.value.right]])],16))}}),uS={class:"ui-slider__wrapper"},pS={class:"ui-slider__label-section"},hS={key:0,class:"text-s"},fS={key:1,class:"ui-slider__value-static text-s"},mS={class:"ui-slider__base"},gS={class:"ui-slider__container"},yS={class:"ui-slider__container ui-slider__container-thumb"},vS={class:"ui-slider__input-wrapper d-flex"},_S={key:0,class:"ui-slider__error"},CS=r.defineComponent({__name:"SliderRange",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=r.useSlots(),o=e,s=t,l=r.reactive({deltaValue1:0,deltaValue2:0}),d=r.ref(),u=r.ref(),p=r.ref(),f=r.ref(s.modelValue),m=r.ref(s.modelValue[0]),y=r.ref(s.modelValue[1]),E=r.computed(()=>s),S=Al(E),N=r.computed(()=>[m.value,y.value].sort((B,x)=>B-x).join("-")),L=r.computed(()=>s.max-s.min),O=r.computed(()=>Ct((s.modelValue[0]??0)+l.deltaValue1,s.min,s.max)),C=r.computed(()=>Ct((s.modelValue[1]??0)+l.deltaValue2,s.min,s.max)),A=r.computed(()=>{const B=s.modelValue;return Array.isArray(B)&&B.length===2&&B.every(x=>Number.isFinite(x))?s.error:"Expected model [number, number]"}),H=r.computed(()=>(O.value-s.min)/L.value),X=r.computed(()=>(C.value-s.min)/L.value),G=r.computed(()=>V()),Y=r.computed(()=>({right:G.value[0]+"%",left:100-G.value[1]+"%"})),U=r.computed(()=>({right:Math.ceil((1-H.value)*100)+"%"})),R=r.computed(()=>({right:Math.ceil((1-X.value)*100)+"%"}));r.watch(()=>s.modelValue,B=>{f.value=B,m.value=+B[0],y.value=+B[1]},{immediate:!0}),ar(u,B=>{var x;lt((x=r.unref(d))==null?void 0:x.getBoundingClientRect(),D=>{const{dx:$}=B;l.deltaValue1=$/D.width*L.value,m.value=M(Ct((s.modelValue[0]??0)+l.deltaValue1,s.min,s.max)),f.value=[m.value,y.value].sort((re,se)=>re-se),B.stop&&(W([M(O.value),M(C.value)]),l.deltaValue1=0)})}),ar(p,B=>{var x;lt((x=r.unref(d))==null?void 0:x.getBoundingClientRect(),D=>{const{dx:$}=B;l.deltaValue2=$/D.width*L.value,y.value=M(Ct((s.modelValue[1]??0)+l.deltaValue2,s.min,s.max)),f.value=[m.value,y.value].sort((re,se)=>re-se),B.stop&&(W([M(O.value),M(C.value)]),l.deltaValue2=0)})});function V(){const B=Math.ceil((1-H.value)*100),x=Math.ceil((1-X.value)*100);return[B,x].sort((D,$)=>D-$)}function M(B){const x=Ct(B,s.min,s.max);return Math.round((x+Number.EPSILON)*(1/s.step))/(1/s.step)}function W(B){o("update:modelValue",B)}function q(B,x){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(B.code)&&B.preventDefault();const D=B.code==="ArrowUp"||B.code==="ArrowRight"?s.step*1:B.code==="ArrowDown"||B.code==="ArrowLeft"?s.step*-1:0,$=[...s.modelValue];$[x]=Ct($[x]+D,s.min,s.max),W($)}return(B,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[r.createElementVNode("div",uS,[r.createElementVNode("div",pS,[B.label?(r.openBlock(),r.createElementBlock("label",hS,[r.createElementVNode("span",null,r.toDisplayString(B.label),1),x[3]||(x[3]=r.createTextVNode()),r.unref(n).tooltip?(r.openBlock(),r.createBlock(r.unref(St),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(B.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),x[4]||(x[4]=r.createTextVNode()),s.mode==="text"?(r.openBlock(),r.createElementBlock("div",fS,r.toDisplayString(N.value),1)):r.createCommentVNode("",!0)]),x[10]||(x[10]=r.createTextVNode()),r.createElementVNode("div",mS,[r.createElementVNode("div",gS,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(Y.value)},null,4)],512)]),x[9]||(x[9]=r.createTextVNode()),r.createElementVNode("div",yS,[s.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(S),(D,$)=>(r.openBlock(),r.createElementBlock("div",{key:$,style:r.normalizeStyle({right:`${D}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),x[7]||(x[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(U.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:x[0]||(x[0]=D=>q(D,0))},x[5]||(x[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),x[8]||(x[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(R.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:x[1]||(x[1]=D=>q(D,1))},x[6]||(x[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),x[11]||(x[11]=r.createTextVNode()),r.createElementVNode("div",vS,[s.mode==="input"?(r.openBlock(),r.createBlock(dS,{key:0,modelValue:f.value,"onUpdate:modelValue":x[2]||(x[2]=D=>f.value=D),class:"ui-focused-border",onChange:W},null,8,["modelValue"])):r.createCommentVNode("",!0)])],2),x[12]||(x[12]=r.createTextVNode()),A.value?(r.openBlock(),r.createElementBlock("div",_S,r.toDisplayString(A.value),1)):r.createCommentVNode("",!0)],2))}}),wS=r.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(),l=r.computed(()=>o.clientHeight/(o.scrollHeight||1)),d=r.computed(()=>l.value<1),u=r.computed(()=>{const p=r.unref(l);return{top:o.scrollTop*p+"px",height:Math.floor(o.clientHeight*p)+"px"}});return rt(s,"pointerdown",p=>{const f={clientY:p.clientY},m=yl(document,"mousemove",y=>{const E=(y.clientY-f.clientY)/l.value;n("update:scrollTop",o.scrollTop+E),f.clientY=y.clientY});["mouseup","pointercancel"].forEach(y=>{document.addEventListener(y,m,{once:!0})})}),(p,f)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"v-scroll"},[r.createElementVNode("div",{class:"v-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),bS=r.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(),l=r.computed(()=>o.clientWidth/(o.scrollWidth||1)),d=r.computed(()=>l.value<1),u=r.computed(()=>{const p=r.unref(l);return{left:o.scrollLeft*p+"px",width:Math.floor(o.clientWidth*p)+"px"}});return rt(s,"pointerdown",p=>{const f={clientX:p.clientX},m=yl(document,"mousemove",y=>{const E=(y.clientX-f.clientX)/l.value;n("update:scrollLeft",o.scrollLeft+E),f.clientX=y.clientX});["mouseup","pointercancel"].forEach(y=>{document.addEventListener(y,m,{once:!0})})}),(p,f)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"h-scroll"},[r.createElementVNode("div",{class:"h-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),xS={class:"ui-scrollable"},kS=r.defineComponent({__name:"Scrollable",setup(t){const e=r.ref(),n=r.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function o(u){UC(n,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const s=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,o(p)};function l(u){lt(r.unref(e),p=>{p.scrollTop=u,o(p)})}function d(u){lt(r.unref(e),p=>{p.scrollLeft=u,o(p)})}return ip(e,u=>{lt(u,p=>o(p))}),r.onMounted(()=>{lt(r.unref(e),u=>{o(u),u.addEventListener("wheel",s)})}),r.onUnmounted(()=>{lt(r.unref(e),u=>u.removeEventListener("wheel",s))}),(u,p)=>(r.openBlock(),r.createElementBlock("div",xS,[r.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:s},[r.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=r.createTextVNode()),r.createVNode(wS,{"scroll-top":n.scrollTop,"client-height":n.clientHeight,"scroll-height":n.scrollHeight,onWheel:p[0]||(p[0]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":l},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=r.createTextVNode()),r.createVNode(bS,{"scroll-left":n.scrollLeft,"client-width":n.clientWidth,"scroll-width":n.scrollWidth,onWheel:p[1]||(p[1]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),SS="add.svg",ES="box.svg",TS="calendar.svg",BS="checkmark.svg",AS="clipboard.svg",NS="close.svg",VS="copy.svg",PS="download.svg",DS="duplicate.svg",FS="edit.svg",RS="error.svg",MS="filter.svg",IS="help.svg",LS="info.svg",OS="link.svg",GS="loading.svg",zS="lock.svg",$S="maximize.svg",ZS="minimize.svg",US="minus.svg",WS="more.svg",HS="open.svg",jS="pause.svg",qS="play.svg",KS="renew.svg",YS="restart.svg",JS="reverse.svg",XS="settings.svg",QS="sort.svg",e1="stop.svg",t1="success.svg",n1="time.svg",r1="tune.svg",o1="warning.svg",i1="zip.svg",s1={add:SS,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",box:ES,calendar:TS,"caret-down":"caret-down.svg","caret-left":"caret-left.svg","caret-right":"caret-right.svg","caret-up":"caret-up.svg","cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:BS,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:AS,close:NS,copy:VS,"data-dimentions":"data-dimentions.svg","delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",download:PS,"drag-dots":"drag-dots.svg",duplicate:DS,edit:FS,error:RS,export:"export.svg","filter-on":"filter-on.svg",filter:MS,"help-outline":"help-outline.svg",help:IS,"info-outline":"info-outline.svg",info:LS,"jump-link":"jump-link.svg",link:OS,loading:GS,lock:zS,maximize:$S,minimize:ZS,minus:US,more:WS,open:HS,"paper-clip":"paper-clip.svg",pause:jS,play:qS,renew:KS,restart:YS,reverse:JS,settings:XS,sort:QS,stop:e1,success:t1,time:n1,tune:r1,warning:o1,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:i1},a1="add.svg",l1="annotate.svg",c1="annotation.svg",d1="area.svg",u1="axes.svg",p1="bar.svg",h1="bindot.svg",f1="box.svg",m1="boxplot.svg",g1="bubble.svg",y1="calendar.svg",v1="canvas.svg",_1="checkbox.svg",C1="checkmark.svg",w1="clipboard.svg",b1="close.svg",x1="cluster.svg",k1="code.svg",S1="color.svg",E1="columns.svg",T1="container.svg",B1="cookie.svg",A1="copy.svg",N1="cpu.svg",V1="debug.svg",P1="dna.svg",D1="download.svg",F1="duplicate.svg",R1="edit.svg",M1="error.svg",I1="filter.svg",L1="generate.svg",O1="graph.svg",G1="heatmap.svg",z1="help.svg",$1="info.svg",Z1="jitter.svg",U1="lasso.svg",W1="layers.svg",H1="learn.svg",j1="legend.svg",q1="line.svg",K1="link.svg",Y1="loading.svg",J1="lock.svg",X1="maximize.svg",Q1="menu.svg",eE="minimize.svg",tE="minus.svg",nE="more.svg",rE="pause.svg",oE="pin.svg",iE="play.svg",sE="product.svg",aE="publications.svg",lE="renew.svg",cE="restart.svg",dE="reverse.svg",uE="search.svg",pE="server.svg",hE="settings.svg",fE="sina.svg",mE="skatterplot.svg",gE="slice.svg",yE="sort.svg",vE="statistics.svg",_E="stop.svg",CE="success.svg",wE="table.svg",bE="template.svg",xE="terminal.svg",kE="time.svg",SE="tune.svg",EE="venn.svg",TE="violin.svg",BE="warning.svg",AE="wetlab.svg",NE="zip.svg",VE={"add-layer":"add-layer.svg",add:a1,"align-center":"align-center.svg","align-left":"align-left.svg","align-right":"align-right.svg",annotate:l1,annotation:c1,area:d1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:u1,"bar-cross":"bar-cross.svg","bar-error":"bar-error.svg","bar-stacked":"bar-stacked.svg","bar-trend":"bar-trend.svg",bar:p1,bindot:h1,box:f1,"boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:m1,bubble:g1,calendar:y1,canvas:v1,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg","checkbox-checked":"checkbox-checked.svg","checkbox-intermediate":"checkbox-intermediate.svg",checkbox:_1,checkmark:C1,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:w1,close:b1,"cloud-download":"cloud-download.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-upload":"cloud-upload.svg",cluster:x1,code:k1,"color-fill":"color-fill.svg","color-none":"color-none.svg","color-stroke":"color-stroke.svg",color:S1,columns:E1,"connected-points":"connected-points.svg",container:T1,cookie:B1,copy:A1,cpu:N1,"data-dimentions":"data-dimentions.svg",debug:V1,"delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg","dendrogram-X-line":"dendrogram-X-line.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-line":"dendrogram-Y-line.svg","dendrogram-Y":"dendrogram-Y.svg","dna-add":"dna-add.svg","dna-import":"dna-import.svg",dna:P1,download:D1,"drag-dots":"drag-dots.svg","drag-horizontal":"drag-horizontal.svg","drag-vertical":"drag-vertical.svg",duplicate:F1,edit:R1,"error-bar":"error-bar.svg",error:M1,"expand-left":"expand-left.svg","expand-right":"expand-right.svg",export:"export.svg","file-doc-add":"file-doc-add.svg","file-doc-download":"file-doc-download.svg","file-doc-import":"file-doc-import.svg","file-doc":"file-doc.svg","filter-on":"filter-on.svg",filter:I1,"fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type-all":"frame-type-all.svg","frame-type-bottom":"frame-type-bottom.svg","frame-type-left-bottom":"frame-type-left-bottom.svg","frame-type-left":"frame-type-left.svg","frame-type-none":"frame-type-none.svg",generate:L1,graph:O1,heatmap:G1,"help-outline":"help-outline.svg",help:z1,"info-outline":"info-outline.svg",info:$1,jitter:Z1,"jump-link":"jump-link.svg",lasso:U1,layers:W1,learn:H1,"legend-box-dot":"legend-box-dot.svg","legend-box":"legend-box.svg",legend:j1,"line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:q1,"linetype-dashed":"linetype-dashed.svg","linetype-dotdash":"linetype-dotdash.svg","linetype-dotted":"linetype-dotted.svg","linetype-longdash":"linetype-longdash.svg","linetype-solid":"linetype-solid.svg","linetype-twodash":"linetype-twodash.svg","link-disabled":"link-disabled.svg",link:K1,loading:Y1,lock:J1,maximize:X1,menu:Q1,minimize:eE,minus:tE,more:nE,"paper-clip":"paper-clip.svg",pause:rE,pin:oE,play:iE,"position-bottom-annotation":"position-bottom-annotation.svg","position-bottom":"position-bottom.svg","position-left-annotation":"position-left-annotation.svg","position-left":"position-left.svg","position-right-annotation":"position-right-annotation.svg","position-right":"position-right.svg","position-top-annotation":"position-top-annotation.svg","position-top":"position-top.svg",product:sE,publications:aE,"radio-button-checked":"radio-button-checked.svg","radio-button":"radio-button.svg",renew:lE,restart:cE,reverse:dE,"rotation-0":"rotation-0.svg","rotation-45":"rotation-45.svg","rotation-90":"rotation-90.svg",search:uE,"server-on":"server-on.svg",server:pE,settings:hE,sina:fE,skatterplot:mE,slice:gE,"social-github":"social-github.svg","social-linkedin":"social-linkedin.svg","social-twitter-X":"social-twitter-X.svg","social-twitter-bird":"social-twitter-bird.svg","social-youtube":"social-youtube.svg","sort-list-down":"sort-list-down.svg","sort-list-up":"sort-list-up.svg",sort:yE,statistics:vE,stop:_E,"strip-plot":"strip-plot.svg",success:CE,"table-add":"table-add.svg","table-alias":"table-alias.svg","table-import":"table-import.svg",table:wE,template:bE,terminal:xE,"text-align-center":"text-align-center.svg","text-align-left":"text-align-left.svg","text-align-right":"text-align-right.svg","theme-dark":"theme-dark.svg","theme-light":"theme-light.svg",time:kE,tune:SE,venn:EE,"view-hide":"view-hide.svg","view-show":"view-show.svg","violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:TE,warning:BE,wetlab:AE,"windows-collapse":"windows-collapse.svg","windows-expand":"windows-expand.svg","x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:NE,"zoom-in":"zoom-in.svg","zoom-out":"zoom-out.svg"};function PE(){return{txtSec:{title:"Text",data:{"--txt-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Text on the colored elements"},"--txt-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary text layer"},"--txt-02":{light:[!0,!1],value:["#231842","#ADAEB8"],description:"Secondary text layer - large arrays of text"},"--txt-03":{light:[!0,!0],value:["#9D9EAE","#60616B"],description:"Tetritary text layer - hints and descriptions"},"--txt-mask":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Text mask in inputs, icons, etc."},"--txt-focus":{light:[!0,!0],value:["#07AD3E","#87E087"],description:"Colored text in active/focus elements"},"--txt-error":{light:[!0,!0],value:["#F1222F","#FF5C5C"],description:"Colored text in error elements"},"--txt-link":{light:[!0,!0],value:["#5F31CC","#9470FF"],description:"Colored text in links"}}},iconSec:{title:"Icon",data:{"--ic-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Icons on colored elements"},"--ic-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary elements"},"--ic-02":{light:[!1,!0],value:["#CFD1DB","#60616B"],description:"Secondary & tetritary elements"},"--ic-accent":{light:[!0,!1],value:["#07AD3E","#87E087"],description:"Focus/active elements"}}},borderSec:{title:"Border",data:{"--border-color-default":{light:[!0,!0],value:["#110529","#60616B"],description:"Main border for components"},"--border-color-hover":{light:[!0,!0],value:["#231842","#ADAEB8"],description:"Hover on main border"},"--border-color-focus":{light:[!1,!1],value:["#49CC49","#49CC49"],description:"Active border for components"},"--border-color-error":{light:[!1,!1],value:["#FF5C5C","#FF5C5C"],description:"Error border for components"},"--border-color-div-grey":{light:[!1,!0],value:["#E1E3EB","#232329"],description:"Divider lines low contrast"},"--border-color-div-bw":{light:[!1,!0],value:["#FFFFFF","#000000"],description:"Divider lines hight contrast"}}},btnSec:{title:"Button",data:{"--btn-accent-default":{light:[!0,!0],value:["#845CFF"," #5F31CC"],description:"Accent coloured button"},"--btn-accent-hover":{light:[!0,!0],value:["#9470FF"," #5F31CC"],description:"Hover on accent coloured button"},"--btn-accent-press":{light:[!0,!0],value:["#6F4DD6","#5F31CC"],description:"Pressed on accent coloured button"},"--btn-primary-default":{light:[!0,!0],value:["#110529","#5F31CC"],description:"Primary button"},"--btn-primary-hover":{light:[!0,!0],value:["#231842","#6D3DDB"],description:"Hover on primary button"},"--btn-primary-press":{light:[!0,!0],value:["#080214","#5328B8"],description:"Hover on primary button"},"--btn-sec-hover-white":{light:[!1,!0],value:["rgba(255, 255, 255, 0.50)","rgba(131, 131, 163, 0.16)"],description:"Hover background on transparent button"},"--btn-sec-hover-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.16)","rgba(131, 131, 163, 0.16)"],description:"Hover background on ghost button & icons"},"--btn-sec-press-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.24)","rgba(131, 131, 163, 0.24)"],description:"Hover background on ghost button & icons"},"--btn-active-select":{light:[!1,!0],value:["rgba(99, 224, 36, 0.24)","rgba(99, 224, 36, 0.24)"],description:"Fill on selected elements"},"--btn-switcher":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","#5E5E70"],description:"Gradient on active controll/switcher element"}}},disSec:{title:"Disable",data:{"--dis-00":{light:[!1,!0],value:["#FFFFFF","#65656B"],description:"Elements on dis-01, labels, texts, icons"},"--dis-01":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Buttons, borders, labels, texts, icons"}}},bgSec:{title:"Background",data:{"--bg-base-dark":{light:[!0,!0],value:["#110529","#0D0D0F"],description:"Default dark block background"},"--bg-base-light":{light:[!1,!0],value:["#F7F8FA","#0D0D0F"],description:"Default light block background"},"--bg-elevated-01":{light:[!1,!0],value:["#FFFFFF","#1B1B1F"],description:"Default block background"},"--bg-elevated-02":{light:[!1,!0],value:["#E1E3EB","#2D2D33"],description:"Secondary block background"}}},filledSec:{title:"Filled",data:{"--filled-V-BG":{light:[!1,!0],value:["#D0F0C0","rgba(66, 184, 66, 0.40)"],description:"Text background selection on V-read"},"--filled-D-BG":{light:[!1,!0],value:["#FFCECC","rgba(229, 83, 229, 0.40)"],description:"Text background selection on D-read"},"--filled-N-BG":{light:[!1,!0],value:["#FAF5AA","rgba(83, 82, 102, 0.40)"],description:"Text background selection on C/N-read"},"--filled-J-BG":{light:[!1,!0],value:["#DEDBFF","rgba(132, 92, 255, 0.40)"],description:"Text background selection on J-read"}}},notificationSec:{title:"Notification",data:{"--notification-neutral":{light:[!1,!0],value:["linear-gradient(90deg, #D6D9FF 0%, #FFF 100%)","linear-gradient(90deg, #4D4D8F 0%, #292933 100%)"],description:"Background on neutral blocks"},"--notification-success":{light:[!1,!0],value:["linear-gradient(90deg, #C9F0B6 0%, #FFF 100%)","linear-gradient(90deg, #305C3E 0%, #292933 100%)"],description:"Background on success blocks"},"--notification-warning":{light:[!1,!0],value:["linear-gradient(90deg, #FEE0A3 0%, #FFF 100%)","linear-gradient(90deg, #754F2D 0%, #292933 100%)"],description:"Background on warning blocks"},"--notification-error":{light:[!1,!0],value:["linear-gradient(90deg, #FFB8B8 0%, #FFF 100%)","linear-gradient(90deg, #8F3343 0%, #292933 100%)"],description:"Background on error blocks"}}},gradientSec:{title:"Gradient",data:{"--gradient-blue-green":{light:[!0,!0],value:["linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand dark gradient"},"--gradient-green-lime":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-violet":{light:[!1,!0],value:["linear-gradient(180deg, #ADB8FF 0%, #D6E9FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-clear":{light:[!1,!0],value:["linear-gradient(180deg, #85BEFF 0%, #CEF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-orange":{light:[!1,!0],value:["linear-gradient(180deg, #FFB766 0%, #FFEAA3 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-mint":{light:[!1,!0],value:["linear-gradient(180deg, #7DD1D1 0%, #C8FAE9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-lime":{light:[!1,!0],value:["linear-gradient(180deg, #BFE062 0%, #E4FFAD 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-rose":{light:[!1,!0],value:["linear-gradient(0deg, #FFDDD6 0%, #FF99C9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-red":{light:[!1,!0],value:["linear-gradient(0deg, #FFD5CC 0%, #FF9494 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-violet":{light:[!1,!0],value:["linear-gradient(180deg, #BCA3FF 0%, #E5E5FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"}}}}}const DE=["add","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","box","calendar","caret-down","caret-left","caret-right","caret-up","cell-type-num","cell-type-txt","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","clipboard-copied","clipboard","close","copy","data-dimentions","delete-bin","delete-circle","delete-clear","download","drag-dots","duplicate","edit","error","export","filter-on","filter","help-outline","help","info-outline","info","jump-link","link","loading","lock","maximize","minimize","minus","more","open","paper-clip","pause","play","renew","restart","reverse","settings","sort","stop","success","time","tune","warning","x-axis","y-axis","zip"],FE=["add-layer","add","align-center","align-left","align-right","annotate","annotation","area","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","axes","bar-cross","bar-error","bar-stacked","bar-trend","bar","bindot","box","boxplot-binned","boxplot-jitter","boxplot-notched","boxplot","bubble","calendar","canvas","cell-type-num","cell-type-txt","checkbox-checked","checkbox-intermediate","checkbox","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-sort","chevron-up","clipboard-copied","clipboard","close","cloud-download","cloud-offline","cloud-online","cloud-upload","cluster","code","color-fill","color-none","color-stroke","color","columns","connected-points","container","cookie","copy","cpu","data-dimentions","debug","delete-bin","delete-circle","delete-clear","dendrogram-X-line","dendrogram-X","dendrogram-Y-line","dendrogram-Y","dna-add","dna-import","dna","download","drag-dots","drag-horizontal","drag-vertical","duplicate","edit","error-bar","error","expand-left","expand-right","export","file-doc-add","file-doc-download","file-doc-import","file-doc","filter-on","filter","fire-tips","folder-parent","frame-type-all","frame-type-bottom","frame-type-left-bottom","frame-type-left","frame-type-none","generate","graph","heatmap","help-outline","help","info-outline","info","jitter","jump-link","lasso","layers","learn","legend-box-dot","legend-box","legend","line-binned","line-error","line-jitter","line","linetype-dashed","linetype-dotdash","linetype-dotted","linetype-longdash","linetype-solid","linetype-twodash","link-disabled","link","loading","lock","maximize","menu","minimize","minus","more","paper-clip","pause","pin","play","position-bottom-annotation","position-bottom","position-left-annotation","position-left","position-right-annotation","position-right","position-top-annotation","position-top","product","publications","radio-button-checked","radio-button","renew","restart","reverse","rotation-0","rotation-45","rotation-90","search","server-on","server","settings","sina","skatterplot","slice","social-github","social-linkedin","social-twitter-X","social-twitter-bird","social-youtube","sort-list-down","sort-list-up","sort","statistics","stop","strip-plot","success","table-add","table-alias","table-import","table","template","terminal","text-align-center","text-align-left","text-align-right","theme-dark","theme-light","time","tune","venn","view-hide","view-show","violin-binned","violin-jitter","violin","warning","wetlab","windows-collapse","windows-expand","x-axis","y-axis","zip","zoom-in","zoom-out"],RE={allCssVariables:PE(),icons16:s1,icons24:VE},ME={class:"block__not-found"},IE=r.defineComponent({__name:"NotFound",setup(t){const n=Xa().useApp(),o=()=>{n.updateNavigationState(s=>{s.href="/"})};return(s,l)=>(r.openBlock(),r.createElementBlock("div",ME,[r.createElementVNode("h1",null,"Not found route: "+r.toDisplayString(r.unref(n).snapshot.navigationState.href),1),r.createVNode(r.unref(pl),{onClick:r.withModifiers(o,["stop"])},{default:r.withCtx(()=>l[0]||(l[0]=[r.createTextVNode("Return to main page")])),_:1})]))}}),Ts=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},LE={},OE={class:"block__loader-page"};function GE(t,e){return r.openBlock(),r.createElementBlock("div",OE,e[0]||(e[0]=[r.createElementVNode("div",{class:"loader-container"},[r.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const zE=Ts(LE,[["render",GE]]),$E={class:"pl-app-notification-alert"},ZE={class:"pl-app-notification-alert__content"},UE={class:"pl-app-notification-alert__title"},WE=r.defineComponent({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(t){const e=t,n=r.ref(!1),o=r.ref(!0),s=r.computed(()=>Object.entries(e.errors).filter(d=>!!d[1]));function l(){n.value=!0}return r.watch(()=>e.errors,d=>{o.value=Object.values(d).some(u=>!!u)},{immediate:!0,deep:!0}),(d,u)=>(r.openBlock(),r.createElementBlock("div",$E,[r.createVNode(r.unref(bl),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),width:"50%",style:{"max-height":"100vh"}},{title:r.withCtx(()=>u[2]||(u[2]=[r.createTextVNode(" Errors ")])),default:r.withCtx(()=>[r.createElementVNode("div",ZE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,p=>{var f;return r.openBlock(),r.createElementBlock("div",{key:p[0],class:"pl-app-notification-alert__item"},[r.createElementVNode("div",UE,r.toDisplayString(p[0]),1),r.createVNode(r.unref(Ou),{value:(f=p[1])==null?void 0:f.message},null,8,["value"])])}),128))])]),_:1},8,["modelValue"]),r.createVNode(r.unref(rp),{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"error",closable:""},{actions:r.withCtx(()=>[r.createVNode(r.unref(ul),{icon:"arrow-right",onClick:l},{default:r.withCtx(()=>u[3]||(u[3]=[r.createTextVNode("See errors")])),_:1}),r.createVNode(r.unref(Su))]),default:r.withCtx(()=>[u[4]||(u[4]=r.createTextVNode(" Some outputs have errors. "))]),_:1},8,["modelValue"])]))}}),HE={class:"block block__layout"},jE={key:0},qE=r.defineComponent({__name:"BlockLayout",setup(t){const e=Xa(),n=p=>{try{return new URL(p,"http://dummy").pathname}catch{console.error("Invalid href",p);return}},o=r.computed(()=>e.loaded?e.useApp().href:void 0),s=r.computed(()=>{if(e.loaded){const p=e.useApp(),f=n(p.snapshot.navigationState.href);return f?p.getRoute(f):void 0}}),l=r.computed(()=>e.loaded?e.useApp():void 0),d=r.computed(()=>l.value?l.value.model.outputErrors:{}),u=r.computed(()=>{var p;return((p=l.value)==null?void 0:p.showErrorsNotification)??!0});return(p,f)=>(r.openBlock(),r.createElementBlock("div",HE,[r.unref(e).error?(r.openBlock(),r.createElementBlock("div",jE,r.toDisplayString(r.unref(e).error),1)):r.unref(e).loaded?s.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s.value),{key:o.value})):(r.openBlock(),r.createBlock(IE,{key:3})):(r.openBlock(),r.createBlock(zE,{key:1},{default:r.withCtx(()=>f[0]||(f[0]=[r.createTextVNode("Loading...")])),_:1})),r.unref(e).loaded&&u.value?(r.openBlock(),r.createBlock(r.unref(WE),{key:4,errors:d.value},null,8,["errors"])):r.createCommentVNode("",!0)]))}});var Bs={exports:{}};/**
65
+ )`}function l(){const u=t.value;if(!u)return;const p=[o(u),s(u)].filter(f=>f!==null);u.style.setProperty("-webkit-mask-image",p.join(",")),u.style.setProperty("mask-image",p.join(",")),p.length>1&&(u.style.setProperty("-webkit-mask-composite","source-in"),u.style.setProperty("mask-composite","source-in"))}const d=al(l);r.onMounted(l),rt(window,"scroll",d,!0),rt(window,"resize",d,!0)}function ip(t,e){Tu(()=>{lt(r.unref(t),n=>{Bu(n,()=>e(n))})}),r.onUnmounted(()=>{lt(r.unref(t),n=>{Au(n)})})}const yr={item:"sortable__item",animate:"sortable__animate"},Ai=t=>t.getBoundingClientRect().y,sp=t=>{const{y:e,height:n}=t.getBoundingClientRect();return e+Math.ceil(n/2)},Hk=t=>{const{y:e,height:n}=t.getBoundingClientRect();return e+n};function jk(t,e){const n={item:void 0,options(){var S;return[...((S=t.value)==null?void 0:S.children)??[]]}},o=r.computed(()=>n.options()),s=e.shakeBuffer??10,l=e.reorderDelay??100;function d(S){const N=e.handle?this.querySelector(e.handle):null;N&&!N.contains(S.target)||(this.classList.remove(yr.animate),this.classList.add(yr.item),n.item={el:this,y:S.y,dy:0,orderChanged:!1})}function u(S){const N=n.options();return N.slice(0,N.indexOf(S))}function p(S){const N=n.options();return N.slice(N.indexOf(S)+1)}function f(S,N){const L=n.options().filter(C=>C!==N),O=L.indexOf(S);return L.splice(O,0,N),L}function m(S,N){const L=n.options().filter(C=>C!==N),O=L.indexOf(S);return L.splice(O+1,0,N),L}function y(S,N){S.dy=N-S.y,S.el.style.setProperty("transform",`translateY(${S.dy}px)`)}function E(S){var N;if(!n.item)return;const{el:L}=n.item;if(!L.isConnected){n.item=void 0;return}const O=S.map(Y=>Ai(Y)),C=Ai(L);(N=t.value)==null||N.replaceChildren(...S);const A=Ai(L),H=S.map(Y=>Ai(Y)),X=[];for(let Y=0;Y<H.length;Y++){const U=S[Y];if(U===n.item.el)continue;const R=H[Y],V=O[Y]-R;U.style.transform=`translateY(${V}px)`,X.push(U)}const G=A-C;n.item.y=n.item.y+G,n.item.dy=n.item.dy-G,n.item.orderChanged=!0,n.item.el.style.setProperty("transform",`translateY(${n.item.dy}px)`),X.forEach(Y=>Y.classList.remove(yr.animate)),requestAnimationFrame(function(){X.forEach(Y=>{Y.classList.add(yr.animate),Y.style.transform="",Y.addEventListener("transitionend",()=>{Y.classList.remove(yr.animate)})})})}rt(window,"mousemove",S=>{if(!n.item)return;const{el:N}=n.item;y(n.item,S.y);const L=Ai(n.item.el),O=Hk(n.item.el),C=u(N),A=p(N);C.forEach(H=>{const X=sp(H);L+s<X&&E(f(H,N))}),A.forEach(H=>{const X=sp(H);O-s>X&&E(m(H,N))})}),rt(window,"mouseup",()=>{if(!n.item)return;const{el:S,orderChanged:N}=n.item;S.classList.add(yr.animate),S.style.removeProperty("transform"),S.addEventListener("transitionend",()=>{S.classList.remove(yr.animate,yr.item)}),setTimeout(()=>{if(!N)return;const L=n.options().map(C=>Number(C.getAttribute("data-index"))),O=t.value;if(O){for(const C of n.options())O.removeChild(C);o.value.forEach(C=>{O.appendChild(C)})}e.onChange(L)},l),n.item=void 0}),r.watchEffect(()=>{o.value.forEach((S,N)=>{S.removeEventListener("mousedown",d),S.addEventListener("mousedown",d),S.setAttribute("data-index",String(N))})})}function qk(t,e){let n;r.onMounted(()=>{n=setInterval(t,e)}),r.onUnmounted(()=>clearInterval(n))}function Kk(t,e,n){const o=r.reactive({data:tl.deepClone(e(t.value)),changed:!1});return r.watch(()=>o.data,s=>{o.changed?n(tl.deepClone(s)):o.changed=!0},{deep:!0}),r.watch(t,s=>{Object.assign(o,{data:tl.deepClone(e(s)),changed:!1})},{deep:!0,immediate:!0}),o}function Yk(t){const e=r.reactive({isLoading:!1,result:void 0,error:void 0,async run(...n){this.isLoading=!0,this.error=void 0;try{this.result=await t(...n)}catch(o){this.error=o}finally{this.isLoading=!1}},debounce(n,o=1e3){return au(()=>{const s=n();this.run(...s).catch(console.error)},o)}});return e.run=e.run.bind(e),e}function Jk(t,e){function n(d,u){const p=r.unref(t);if(!p)return;const f=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",f),e(u)}function o(d){const u=p=>n(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=r.unref(t);document.removeEventListener("mousemove",u),p&&(p.style.setProperty("transition","all .3s ease-in-out"),p.style.removeProperty("transform"),p.addEventListener("transitionend",()=>{p.style.removeProperty("transition")}))},{once:!0})}function s(){var d;(d=r.unref(t))==null||d.addEventListener("mousedown",o)}function l(){var d;(d=r.unref(t))==null||d.removeEventListener("mousedown",o)}r.onMounted(s),r.onUnmounted(l)}const Xk={class:"ui-slider__wrapper"},Qk={class:"ui-slider__label-section"},eS={key:0,class:"text-s"},tS={class:"ui-slider__base"},nS={class:"ui-slider__container"},rS={class:"ui-slider__container ui-slider__container-thumb"},oS=["data-percent"],iS=["data-percent"],sS=["data-percent"],aS={key:0,class:"ui-slider__error"},lS=r.defineComponent({__name:"SliderRangeTriple",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:"%"},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=r.useSlots(),o=e,s=t,l=r.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=r.ref(),u=r.ref(),p=r.ref(),f=r.ref(),m=r.computed(()=>s.max-s.min),y=r.computed(()=>s),E=Al(y),S=r.computed(()=>Ct((s.modelValue[0]??0)+l.deltaValue1,s.min,s.max)),N=r.computed(()=>Ct((s.modelValue[1]??0)+l.deltaValue2,s.min,s.max)),L=r.computed(()=>Ct((s.modelValue[2]??0)+l.deltaValue3,s.min,s.max)),O=r.computed(()=>{const D=s.modelValue;if(!(Array.isArray(D)&&D.length===3&&D.every(re=>Number.isFinite(re))))return"Expected model [number, number, number]";const $=[];return[...s.modelValue].forEach(re=>{re>s.max&&$.push(`Max model value must be lower than max props ${s.max}.`),re<s.min&&$.push("Min model value must be greater than max props.")}),$.length>0?$.join(" "):s.error}),C=r.computed(()=>(S.value-s.min)/m.value),A=r.computed(()=>(N.value-s.min)/m.value),H=r.computed(()=>(L.value-s.min)/m.value),X=r.computed(()=>M()),G=r.computed(()=>({right:X.value[0]+"%",left:100-X.value[2]+"%"})),Y=r.computed(()=>({right:Math.ceil((1-C.value)*100)+"%"})),U=r.computed(()=>({right:Math.ceil((1-A.value)*100)+"%"})),R=r.computed(()=>({right:Math.ceil((1-H.value)*100)+"%"}));ar(u,D=>{var $;lt(($=r.unref(d))==null?void 0:$.getBoundingClientRect(),re=>{const{dx:se}=D;l.deltaValue1=se/re.width*m.value,u.value&&V(u.value,s.modelValue[0],l.deltaValue1),D.stop&&(q([W(S.value),W(N.value),W(L.value)]),l.deltaValue1=0)})}),ar(p,D=>{var $;lt(($=r.unref(d))==null?void 0:$.getBoundingClientRect(),re=>{const{dx:se}=D;l.deltaValue2=se/re.width*m.value,p.value&&V(p.value,s.modelValue[1],l.deltaValue2),D.stop&&(q([W(S.value),W(N.value),W(L.value)]),l.deltaValue2=0)})}),ar(f,D=>{var $;lt(($=r.unref(d))==null?void 0:$.getBoundingClientRect(),re=>{const{dx:se}=D;l.deltaValue3=se/re.width*m.value,f.value&&V(f.value,s.modelValue[2],l.deltaValue3),D.stop&&(q([W(S.value),W(N.value),W(L.value)]),l.deltaValue3=0)})});function V(D,$,re){const se=W(Ct(($??0)+re,s.min,s.max));D.dataset.percent=`${se}${s.measure}`,B()}function M(){const D=Math.ceil((1-C.value)*100),$=Math.ceil((1-A.value)*100),re=Math.ceil((1-H.value)*100);return[D,$,re].sort((se,Pe)=>se-Pe)}function W(D){const $=Ct(D,s.min,s.max);return Math.round(($+Number.EPSILON)*(1/s.step))/(1/s.step)}function q(D){o("update:modelValue",D)}function B(){const D=Number(Y.value.right.substring(0,Y.value.right.length-1)),$=Number(U.value.right.substring(0,U.value.right.length-1)),re=Number(R.value.right.substring(0,R.value.right.length-1)),se=[{r:D,th:u},{r:$,th:p},{r:re,th:f}].sort((Pe,He)=>Pe.r-He.r);se[0].th.value&&(se[0].th.value.dataset.hint="high"),se[1].th.value&&(se[1].th.value.dataset.hint="mid"),se[2].th.value&&(se[2].th.value.dataset.hint="low")}function x(D,$){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(D.code)&&D.preventDefault();const re=D.code==="ArrowUp"||D.code==="ArrowRight"?s.step*1:D.code==="ArrowDown"||D.code==="ArrowLeft"?s.step*-1:0,se=[...s.modelValue];se[$]=Ct(se[$]+re,s.min,s.max),q(se),B()}return r.onMounted(()=>{B()}),(D,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[r.createElementVNode("div",Xk,[r.createElementVNode("div",Qk,[D.label?(r.openBlock(),r.createElementBlock("label",eS,[r.createElementVNode("span",null,r.toDisplayString(D.label),1),$[3]||($[3]=r.createTextVNode()),r.unref(n).tooltip?(r.openBlock(),r.createBlock(r.unref(St),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(D.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),$[11]||($[11]=r.createTextVNode()),r.createElementVNode("div",tS,[r.createElementVNode("div",nS,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(G.value)},null,4)],512)]),$[10]||($[10]=r.createTextVNode()),r.createElementVNode("div",rS,[s.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(E),(re,se)=>(r.openBlock(),r.createElementBlock("div",{key:se,style:r.normalizeStyle({right:`${re}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),$[7]||($[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(Y.value),"data-percent":s.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:$[0]||($[0]=re=>x(re,0))},$[4]||($[4]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,oS),$[8]||($[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(U.value),"data-percent":s.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:$[1]||($[1]=re=>x(re,1))},$[5]||($[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,iS),$[9]||($[9]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef3",ref:f,style:r.normalizeStyle(R.value),"data-percent":s.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:$[2]||($[2]=re=>x(re,2))},$[6]||($[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,sS)])])]),$[12]||($[12]=r.createTextVNode()),$[13]||($[13]=r.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),$[14]||($[14]=r.createTextVNode()),O.value?(r.openBlock(),r.createElementBlock("div",aS,r.toDisplayString(O.value),1)):r.createCommentVNode("",!0)],2))}}),cS={class:"ui-input-range__separator"},dS=r.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,o=e,s=r.reactive({left:n.modelValue[0],right:n.modelValue[1]}),l=r.ref(!1),d=r.computed(()=>(l.value,"ui-input-range-focused")),u=r.computed({get(){return{left:Math.min(...n.modelValue),right:Math.max(...n.modelValue)}},set(){}});r.watch(()=>u.value,m=>(s.left=m.left)&&(s.right=m.right));function p(){o("update:modelValue",[+s.left,+s.right]),o("change",[+s.left,+s.right])}function f(m,y){const E=y.target.value;/^[0-9]{0,2}$/.test(E)?m?s.left=+E:s.right=+E:m?s.left=+E.slice(0,E.length-1):s.right=+E.slice(0,E.length-1)}return(m,y)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({class:[d.value,"ui-input-range"]},m.$attrs),[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=E=>u.value.left=E),class:"text-s",type:"text",onChange:p,onFocus:y[1]||(y[1]=E=>l.value=!0),onFocusout:y[2]||(y[2]=E=>l.value=!1),onInput:y[3]||(y[3]=E=>f(!0,E))},null,544),[[r.vModelText,u.value.left]]),y[8]||(y[8]=r.createTextVNode()),r.createElementVNode("div",cS,r.toDisplayString(n.separator),1),y[9]||(y[9]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=E=>u.value.right=E),class:"text-s",type:"text",onChange:p,onFocus:y[5]||(y[5]=E=>l.value=!0),onFocusout:y[6]||(y[6]=E=>l.value=!1),onInput:y[7]||(y[7]=E=>f(!1,E))},null,544),[[r.vModelText,u.value.right]])],16))}}),uS={class:"ui-slider__wrapper"},pS={class:"ui-slider__label-section"},hS={key:0,class:"text-s"},fS={key:1,class:"ui-slider__value-static text-s"},mS={class:"ui-slider__base"},gS={class:"ui-slider__container"},yS={class:"ui-slider__container ui-slider__container-thumb"},vS={class:"ui-slider__input-wrapper d-flex"},_S={key:0,class:"ui-slider__error"},CS=r.defineComponent({__name:"SliderRange",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=r.useSlots(),o=e,s=t,l=r.reactive({deltaValue1:0,deltaValue2:0}),d=r.ref(),u=r.ref(),p=r.ref(),f=r.ref(s.modelValue),m=r.ref(s.modelValue[0]),y=r.ref(s.modelValue[1]),E=r.computed(()=>s),S=Al(E),N=r.computed(()=>[m.value,y.value].sort((B,x)=>B-x).join("-")),L=r.computed(()=>s.max-s.min),O=r.computed(()=>Ct((s.modelValue[0]??0)+l.deltaValue1,s.min,s.max)),C=r.computed(()=>Ct((s.modelValue[1]??0)+l.deltaValue2,s.min,s.max)),A=r.computed(()=>{const B=s.modelValue;return Array.isArray(B)&&B.length===2&&B.every(x=>Number.isFinite(x))?s.error:"Expected model [number, number]"}),H=r.computed(()=>(O.value-s.min)/L.value),X=r.computed(()=>(C.value-s.min)/L.value),G=r.computed(()=>V()),Y=r.computed(()=>({right:G.value[0]+"%",left:100-G.value[1]+"%"})),U=r.computed(()=>({right:Math.ceil((1-H.value)*100)+"%"})),R=r.computed(()=>({right:Math.ceil((1-X.value)*100)+"%"}));r.watch(()=>s.modelValue,B=>{f.value=B,m.value=+B[0],y.value=+B[1]},{immediate:!0}),ar(u,B=>{var x;lt((x=r.unref(d))==null?void 0:x.getBoundingClientRect(),D=>{const{dx:$}=B;l.deltaValue1=$/D.width*L.value,m.value=M(Ct((s.modelValue[0]??0)+l.deltaValue1,s.min,s.max)),f.value=[m.value,y.value].sort((re,se)=>re-se),B.stop&&(W([M(O.value),M(C.value)]),l.deltaValue1=0)})}),ar(p,B=>{var x;lt((x=r.unref(d))==null?void 0:x.getBoundingClientRect(),D=>{const{dx:$}=B;l.deltaValue2=$/D.width*L.value,y.value=M(Ct((s.modelValue[1]??0)+l.deltaValue2,s.min,s.max)),f.value=[m.value,y.value].sort((re,se)=>re-se),B.stop&&(W([M(O.value),M(C.value)]),l.deltaValue2=0)})});function V(){const B=Math.ceil((1-H.value)*100),x=Math.ceil((1-X.value)*100);return[B,x].sort((D,$)=>D-$)}function M(B){const x=Ct(B,s.min,s.max);return Math.round((x+Number.EPSILON)*(1/s.step))/(1/s.step)}function W(B){o("update:modelValue",B)}function q(B,x){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(B.code)&&B.preventDefault();const D=B.code==="ArrowUp"||B.code==="ArrowRight"?s.step*1:B.code==="ArrowDown"||B.code==="ArrowLeft"?s.step*-1:0,$=[...s.modelValue];$[x]=Ct($[x]+D,s.min,s.max),W($)}return(B,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[r.createElementVNode("div",uS,[r.createElementVNode("div",pS,[B.label?(r.openBlock(),r.createElementBlock("label",hS,[r.createElementVNode("span",null,r.toDisplayString(B.label),1),x[3]||(x[3]=r.createTextVNode()),r.unref(n).tooltip?(r.openBlock(),r.createBlock(r.unref(St),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(B.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),x[4]||(x[4]=r.createTextVNode()),s.mode==="text"?(r.openBlock(),r.createElementBlock("div",fS,r.toDisplayString(N.value),1)):r.createCommentVNode("",!0)]),x[10]||(x[10]=r.createTextVNode()),r.createElementVNode("div",mS,[r.createElementVNode("div",gS,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(Y.value)},null,4)],512)]),x[9]||(x[9]=r.createTextVNode()),r.createElementVNode("div",yS,[s.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(S),(D,$)=>(r.openBlock(),r.createElementBlock("div",{key:$,style:r.normalizeStyle({right:`${D}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),x[7]||(x[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(U.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:x[0]||(x[0]=D=>q(D,0))},x[5]||(x[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),x[8]||(x[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(R.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:x[1]||(x[1]=D=>q(D,1))},x[6]||(x[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),x[11]||(x[11]=r.createTextVNode()),r.createElementVNode("div",vS,[s.mode==="input"?(r.openBlock(),r.createBlock(dS,{key:0,modelValue:f.value,"onUpdate:modelValue":x[2]||(x[2]=D=>f.value=D),class:"ui-focused-border",onChange:W},null,8,["modelValue"])):r.createCommentVNode("",!0)])],2),x[12]||(x[12]=r.createTextVNode()),A.value?(r.openBlock(),r.createElementBlock("div",_S,r.toDisplayString(A.value),1)):r.createCommentVNode("",!0)],2))}}),wS=r.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(),l=r.computed(()=>o.clientHeight/(o.scrollHeight||1)),d=r.computed(()=>l.value<1),u=r.computed(()=>{const p=r.unref(l);return{top:o.scrollTop*p+"px",height:Math.floor(o.clientHeight*p)+"px"}});return rt(s,"pointerdown",p=>{const f={clientY:p.clientY},m=yl(document,"mousemove",y=>{const E=(y.clientY-f.clientY)/l.value;n("update:scrollTop",o.scrollTop+E),f.clientY=y.clientY});["mouseup","pointercancel"].forEach(y=>{document.addEventListener(y,m,{once:!0})})}),(p,f)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"v-scroll"},[r.createElementVNode("div",{class:"v-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),bS=r.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(),l=r.computed(()=>o.clientWidth/(o.scrollWidth||1)),d=r.computed(()=>l.value<1),u=r.computed(()=>{const p=r.unref(l);return{left:o.scrollLeft*p+"px",width:Math.floor(o.clientWidth*p)+"px"}});return rt(s,"pointerdown",p=>{const f={clientX:p.clientX},m=yl(document,"mousemove",y=>{const E=(y.clientX-f.clientX)/l.value;n("update:scrollLeft",o.scrollLeft+E),f.clientX=y.clientX});["mouseup","pointercancel"].forEach(y=>{document.addEventListener(y,m,{once:!0})})}),(p,f)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"h-scroll"},[r.createElementVNode("div",{class:"h-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),xS={class:"ui-scrollable"},kS=r.defineComponent({__name:"Scrollable",setup(t){const e=r.ref(),n=r.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function o(u){UC(n,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const s=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,o(p)};function l(u){lt(r.unref(e),p=>{p.scrollTop=u,o(p)})}function d(u){lt(r.unref(e),p=>{p.scrollLeft=u,o(p)})}return ip(e,u=>{lt(u,p=>o(p))}),r.onMounted(()=>{lt(r.unref(e),u=>{o(u),u.addEventListener("wheel",s)})}),r.onUnmounted(()=>{lt(r.unref(e),u=>u.removeEventListener("wheel",s))}),(u,p)=>(r.openBlock(),r.createElementBlock("div",xS,[r.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:s},[r.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=r.createTextVNode()),r.createVNode(wS,{"scroll-top":n.scrollTop,"client-height":n.clientHeight,"scroll-height":n.scrollHeight,onWheel:p[0]||(p[0]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":l},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=r.createTextVNode()),r.createVNode(bS,{"scroll-left":n.scrollLeft,"client-width":n.clientWidth,"scroll-width":n.scrollWidth,onWheel:p[1]||(p[1]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),SS="add.svg",ES="box.svg",TS="calendar.svg",BS="checkmark.svg",AS="clipboard.svg",NS="close.svg",VS="copy.svg",PS="download.svg",DS="duplicate.svg",FS="edit.svg",RS="error.svg",MS="filter.svg",IS="help.svg",LS="info.svg",OS="link.svg",GS="loading.svg",zS="lock.svg",$S="maximize.svg",ZS="minimize.svg",US="minus.svg",WS="more.svg",HS="open.svg",jS="pause.svg",qS="play.svg",KS="renew.svg",YS="restart.svg",JS="reverse.svg",XS="settings.svg",QS="sort.svg",e1="stop.svg",t1="success.svg",n1="time.svg",r1="tune.svg",o1="warning.svg",i1="zip.svg",s1={add:SS,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",box:ES,calendar:TS,"caret-down":"caret-down.svg","caret-left":"caret-left.svg","caret-right":"caret-right.svg","caret-up":"caret-up.svg","cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:BS,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:AS,close:NS,copy:VS,"data-dimentions":"data-dimentions.svg","delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",download:PS,"drag-dots":"drag-dots.svg",duplicate:DS,edit:FS,error:RS,export:"export.svg","filter-on":"filter-on.svg",filter:MS,"help-outline":"help-outline.svg",help:IS,"info-outline":"info-outline.svg",info:LS,"jump-link":"jump-link.svg",link:OS,loading:GS,lock:zS,maximize:$S,minimize:ZS,minus:US,more:WS,open:HS,"paper-clip":"paper-clip.svg",pause:jS,play:qS,renew:KS,restart:YS,reverse:JS,settings:XS,sort:QS,stop:e1,success:t1,time:n1,tune:r1,warning:o1,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:i1},a1="add.svg",l1="annotate.svg",c1="annotation.svg",d1="area.svg",u1="axes.svg",p1="bar.svg",h1="bindot.svg",f1="box.svg",m1="boxplot.svg",g1="bubble.svg",y1="calendar.svg",v1="canvas.svg",_1="checkbox.svg",C1="checkmark.svg",w1="clipboard.svg",b1="close.svg",x1="cluster.svg",k1="code.svg",S1="color.svg",E1="columns.svg",T1="container.svg",B1="cookie.svg",A1="copy.svg",N1="cpu.svg",V1="debug.svg",P1="dna.svg",D1="download.svg",F1="duplicate.svg",R1="edit.svg",M1="error.svg",I1="filter.svg",L1="generate.svg",O1="graph.svg",G1="heatmap.svg",z1="help.svg",$1="info.svg",Z1="jitter.svg",U1="lasso.svg",W1="layers.svg",H1="learn.svg",j1="legend.svg",q1="line.svg",K1="link.svg",Y1="loading.svg",J1="lock.svg",X1="maximize.svg",Q1="menu.svg",eE="minimize.svg",tE="minus.svg",nE="more.svg",rE="pause.svg",oE="pin.svg",iE="play.svg",sE="product.svg",aE="publications.svg",lE="renew.svg",cE="restart.svg",dE="reverse.svg",uE="search.svg",pE="server.svg",hE="settings.svg",fE="sina.svg",mE="skatterplot.svg",gE="slice.svg",yE="sort.svg",vE="statistics.svg",_E="stop.svg",CE="success.svg",wE="table.svg",bE="template.svg",xE="terminal.svg",kE="time.svg",SE="tune.svg",EE="venn.svg",TE="violin.svg",BE="warning.svg",AE="wetlab.svg",NE="zip.svg",VE={"add-layer":"add-layer.svg",add:a1,"align-center":"align-center.svg","align-left":"align-left.svg","align-right":"align-right.svg",annotate:l1,annotation:c1,area:d1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:u1,"bar-cross":"bar-cross.svg","bar-error":"bar-error.svg","bar-stacked":"bar-stacked.svg","bar-trend":"bar-trend.svg",bar:p1,bindot:h1,box:f1,"boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:m1,bubble:g1,calendar:y1,canvas:v1,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg","checkbox-checked":"checkbox-checked.svg","checkbox-intermediate":"checkbox-intermediate.svg",checkbox:_1,checkmark:C1,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:w1,close:b1,"cloud-download":"cloud-download.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-upload":"cloud-upload.svg",cluster:x1,code:k1,"color-fill":"color-fill.svg","color-none":"color-none.svg","color-stroke":"color-stroke.svg",color:S1,columns:E1,"connected-points":"connected-points.svg",container:T1,cookie:B1,copy:A1,cpu:N1,"data-dimentions":"data-dimentions.svg",debug:V1,"delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg","dendrogram-X-line":"dendrogram-X-line.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-line":"dendrogram-Y-line.svg","dendrogram-Y":"dendrogram-Y.svg","dna-add":"dna-add.svg","dna-import":"dna-import.svg",dna:P1,download:D1,"drag-dots":"drag-dots.svg","drag-horizontal":"drag-horizontal.svg","drag-vertical":"drag-vertical.svg",duplicate:F1,edit:R1,"error-bar":"error-bar.svg",error:M1,"expand-left":"expand-left.svg","expand-right":"expand-right.svg",export:"export.svg","file-doc-add":"file-doc-add.svg","file-doc-download":"file-doc-download.svg","file-doc-import":"file-doc-import.svg","file-doc":"file-doc.svg","filter-on":"filter-on.svg",filter:I1,"fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type-all":"frame-type-all.svg","frame-type-bottom":"frame-type-bottom.svg","frame-type-left-bottom":"frame-type-left-bottom.svg","frame-type-left":"frame-type-left.svg","frame-type-none":"frame-type-none.svg",generate:L1,graph:O1,heatmap:G1,"help-outline":"help-outline.svg",help:z1,"info-outline":"info-outline.svg",info:$1,jitter:Z1,"jump-link":"jump-link.svg",lasso:U1,layers:W1,learn:H1,"legend-box-dot":"legend-box-dot.svg","legend-box":"legend-box.svg",legend:j1,"line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:q1,"linetype-dashed":"linetype-dashed.svg","linetype-dotdash":"linetype-dotdash.svg","linetype-dotted":"linetype-dotted.svg","linetype-longdash":"linetype-longdash.svg","linetype-solid":"linetype-solid.svg","linetype-twodash":"linetype-twodash.svg","link-disabled":"link-disabled.svg",link:K1,loading:Y1,lock:J1,maximize:X1,menu:Q1,minimize:eE,minus:tE,more:nE,"paper-clip":"paper-clip.svg",pause:rE,pin:oE,play:iE,"position-bottom-annotation":"position-bottom-annotation.svg","position-bottom":"position-bottom.svg","position-left-annotation":"position-left-annotation.svg","position-left":"position-left.svg","position-right-annotation":"position-right-annotation.svg","position-right":"position-right.svg","position-top-annotation":"position-top-annotation.svg","position-top":"position-top.svg",product:sE,publications:aE,"radio-button-checked":"radio-button-checked.svg","radio-button":"radio-button.svg",renew:lE,restart:cE,reverse:dE,"rotation-0":"rotation-0.svg","rotation-45":"rotation-45.svg","rotation-90":"rotation-90.svg",search:uE,"server-on":"server-on.svg",server:pE,settings:hE,sina:fE,skatterplot:mE,slice:gE,"social-github":"social-github.svg","social-linkedin":"social-linkedin.svg","social-twitter-X":"social-twitter-X.svg","social-twitter-bird":"social-twitter-bird.svg","social-youtube":"social-youtube.svg","sort-list-down":"sort-list-down.svg","sort-list-up":"sort-list-up.svg",sort:yE,statistics:vE,stop:_E,"strip-plot":"strip-plot.svg",success:CE,"table-add":"table-add.svg","table-alias":"table-alias.svg","table-import":"table-import.svg",table:wE,template:bE,terminal:xE,"text-align-center":"text-align-center.svg","text-align-left":"text-align-left.svg","text-align-right":"text-align-right.svg","theme-dark":"theme-dark.svg","theme-light":"theme-light.svg",time:kE,tune:SE,venn:EE,"view-hide":"view-hide.svg","view-show":"view-show.svg","violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:TE,warning:BE,wetlab:AE,"windows-collapse":"windows-collapse.svg","windows-expand":"windows-expand.svg","x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:NE,"zoom-in":"zoom-in.svg","zoom-out":"zoom-out.svg"};function PE(){return{txtSec:{title:"Text",data:{"--txt-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Text on the colored elements"},"--txt-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary text layer"},"--txt-02":{light:[!0,!1],value:["#231842","#ADAEB8"],description:"Secondary text layer - large arrays of text"},"--txt-03":{light:[!0,!0],value:["#9D9EAE","#60616B"],description:"Tetritary text layer - hints and descriptions"},"--txt-mask":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Text mask in inputs, icons, etc."},"--txt-focus":{light:[!0,!0],value:["#07AD3E","#87E087"],description:"Colored text in active/focus elements"},"--txt-error":{light:[!0,!0],value:["#F1222F","#FF5C5C"],description:"Colored text in error elements"},"--txt-link":{light:[!0,!0],value:["#5F31CC","#9470FF"],description:"Colored text in links"}}},iconSec:{title:"Icon",data:{"--ic-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Icons on colored elements"},"--ic-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary elements"},"--ic-02":{light:[!1,!0],value:["#CFD1DB","#60616B"],description:"Secondary & tetritary elements"},"--ic-accent":{light:[!0,!1],value:["#07AD3E","#87E087"],description:"Focus/active elements"}}},borderSec:{title:"Border",data:{"--border-color-default":{light:[!0,!0],value:["#110529","#60616B"],description:"Main border for components"},"--border-color-hover":{light:[!0,!0],value:["#231842","#ADAEB8"],description:"Hover on main border"},"--border-color-focus":{light:[!1,!1],value:["#49CC49","#49CC49"],description:"Active border for components"},"--border-color-error":{light:[!1,!1],value:["#FF5C5C","#FF5C5C"],description:"Error border for components"},"--border-color-div-grey":{light:[!1,!0],value:["#E1E3EB","#232329"],description:"Divider lines low contrast"},"--border-color-div-bw":{light:[!1,!0],value:["#FFFFFF","#000000"],description:"Divider lines hight contrast"}}},btnSec:{title:"Button",data:{"--btn-accent-default":{light:[!0,!0],value:["#845CFF"," #5F31CC"],description:"Accent coloured button"},"--btn-accent-hover":{light:[!0,!0],value:["#9470FF"," #5F31CC"],description:"Hover on accent coloured button"},"--btn-accent-press":{light:[!0,!0],value:["#6F4DD6","#5F31CC"],description:"Pressed on accent coloured button"},"--btn-primary-default":{light:[!0,!0],value:["#110529","#5F31CC"],description:"Primary button"},"--btn-primary-hover":{light:[!0,!0],value:["#231842","#6D3DDB"],description:"Hover on primary button"},"--btn-primary-press":{light:[!0,!0],value:["#080214","#5328B8"],description:"Hover on primary button"},"--btn-sec-hover-white":{light:[!1,!0],value:["rgba(255, 255, 255, 0.50)","rgba(131, 131, 163, 0.16)"],description:"Hover background on transparent button"},"--btn-sec-hover-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.16)","rgba(131, 131, 163, 0.16)"],description:"Hover background on ghost button & icons"},"--btn-sec-press-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.24)","rgba(131, 131, 163, 0.24)"],description:"Hover background on ghost button & icons"},"--btn-active-select":{light:[!1,!0],value:["rgba(99, 224, 36, 0.24)","rgba(99, 224, 36, 0.24)"],description:"Fill on selected elements"},"--btn-switcher":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","#5E5E70"],description:"Gradient on active controll/switcher element"}}},disSec:{title:"Disable",data:{"--dis-00":{light:[!1,!0],value:["#FFFFFF","#65656B"],description:"Elements on dis-01, labels, texts, icons"},"--dis-01":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Buttons, borders, labels, texts, icons"}}},bgSec:{title:"Background",data:{"--bg-base-dark":{light:[!0,!0],value:["#110529","#0D0D0F"],description:"Default dark block background"},"--bg-base-light":{light:[!1,!0],value:["#F7F8FA","#0D0D0F"],description:"Default light block background"},"--bg-elevated-01":{light:[!1,!0],value:["#FFFFFF","#1B1B1F"],description:"Default block background"},"--bg-elevated-02":{light:[!1,!0],value:["#E1E3EB","#2D2D33"],description:"Secondary block background"}}},filledSec:{title:"Filled",data:{"--filled-V-BG":{light:[!1,!0],value:["#D0F0C0","rgba(66, 184, 66, 0.40)"],description:"Text background selection on V-read"},"--filled-D-BG":{light:[!1,!0],value:["#FFCECC","rgba(229, 83, 229, 0.40)"],description:"Text background selection on D-read"},"--filled-N-BG":{light:[!1,!0],value:["#FAF5AA","rgba(83, 82, 102, 0.40)"],description:"Text background selection on C/N-read"},"--filled-J-BG":{light:[!1,!0],value:["#DEDBFF","rgba(132, 92, 255, 0.40)"],description:"Text background selection on J-read"}}},notificationSec:{title:"Notification",data:{"--notification-neutral":{light:[!1,!0],value:["linear-gradient(90deg, #D6D9FF 0%, #FFF 100%)","linear-gradient(90deg, #4D4D8F 0%, #292933 100%)"],description:"Background on neutral blocks"},"--notification-success":{light:[!1,!0],value:["linear-gradient(90deg, #C9F0B6 0%, #FFF 100%)","linear-gradient(90deg, #305C3E 0%, #292933 100%)"],description:"Background on success blocks"},"--notification-warning":{light:[!1,!0],value:["linear-gradient(90deg, #FEE0A3 0%, #FFF 100%)","linear-gradient(90deg, #754F2D 0%, #292933 100%)"],description:"Background on warning blocks"},"--notification-error":{light:[!1,!0],value:["linear-gradient(90deg, #FFB8B8 0%, #FFF 100%)","linear-gradient(90deg, #8F3343 0%, #292933 100%)"],description:"Background on error blocks"}}},gradientSec:{title:"Gradient",data:{"--gradient-blue-green":{light:[!0,!0],value:["linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand dark gradient"},"--gradient-green-lime":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-violet":{light:[!1,!0],value:["linear-gradient(180deg, #ADB8FF 0%, #D6E9FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-clear":{light:[!1,!0],value:["linear-gradient(180deg, #85BEFF 0%, #CEF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-orange":{light:[!1,!0],value:["linear-gradient(180deg, #FFB766 0%, #FFEAA3 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-mint":{light:[!1,!0],value:["linear-gradient(180deg, #7DD1D1 0%, #C8FAE9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-lime":{light:[!1,!0],value:["linear-gradient(180deg, #BFE062 0%, #E4FFAD 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-rose":{light:[!1,!0],value:["linear-gradient(0deg, #FFDDD6 0%, #FF99C9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-red":{light:[!1,!0],value:["linear-gradient(0deg, #FFD5CC 0%, #FF9494 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-violet":{light:[!1,!0],value:["linear-gradient(180deg, #BCA3FF 0%, #E5E5FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"}}}}}const DE=["add","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","box","calendar","caret-down","caret-left","caret-right","caret-up","cell-type-num","cell-type-txt","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","clipboard-copied","clipboard","close","copy","data-dimentions","delete-bin","delete-circle","delete-clear","download","drag-dots","duplicate","edit","error","export","filter-on","filter","help-outline","help","info-outline","info","jump-link","link","loading","lock","maximize","minimize","minus","more","open","paper-clip","pause","play","renew","restart","reverse","settings","sort","stop","success","time","tune","warning","x-axis","y-axis","zip"],FE=["add-layer","add","align-center","align-left","align-right","annotate","annotation","area","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","axes","bar-cross","bar-error","bar-stacked","bar-trend","bar","bindot","box","boxplot-binned","boxplot-jitter","boxplot-notched","boxplot","bubble","calendar","canvas","cell-type-num","cell-type-txt","checkbox-checked","checkbox-intermediate","checkbox","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-sort","chevron-up","clipboard-copied","clipboard","close","cloud-download","cloud-offline","cloud-online","cloud-upload","cluster","code","color-fill","color-none","color-stroke","color","columns","connected-points","container","cookie","copy","cpu","data-dimentions","debug","delete-bin","delete-circle","delete-clear","dendrogram-X-line","dendrogram-X","dendrogram-Y-line","dendrogram-Y","dna-add","dna-import","dna","download","drag-dots","drag-horizontal","drag-vertical","duplicate","edit","error-bar","error","expand-left","expand-right","export","file-doc-add","file-doc-download","file-doc-import","file-doc","filter-on","filter","fire-tips","folder-parent","frame-type-all","frame-type-bottom","frame-type-left-bottom","frame-type-left","frame-type-none","generate","graph","heatmap","help-outline","help","info-outline","info","jitter","jump-link","lasso","layers","learn","legend-box-dot","legend-box","legend","line-binned","line-error","line-jitter","line","linetype-dashed","linetype-dotdash","linetype-dotted","linetype-longdash","linetype-solid","linetype-twodash","link-disabled","link","loading","lock","maximize","menu","minimize","minus","more","paper-clip","pause","pin","play","position-bottom-annotation","position-bottom","position-left-annotation","position-left","position-right-annotation","position-right","position-top-annotation","position-top","product","publications","radio-button-checked","radio-button","renew","restart","reverse","rotation-0","rotation-45","rotation-90","search","server-on","server","settings","sina","skatterplot","slice","social-github","social-linkedin","social-twitter-X","social-twitter-bird","social-youtube","sort-list-down","sort-list-up","sort","statistics","stop","strip-plot","success","table-add","table-alias","table-import","table","template","terminal","text-align-center","text-align-left","text-align-right","theme-dark","theme-light","time","tune","venn","view-hide","view-show","violin-binned","violin-jitter","violin","warning","wetlab","windows-collapse","windows-expand","x-axis","y-axis","zip","zoom-in","zoom-out"],RE={allCssVariables:PE(),icons16:s1,icons24:VE},ME={class:"block__not-found"},IE=r.defineComponent({__name:"NotFound",setup(t){const n=Xa().useApp(),o=()=>{n.updateNavigationState(s=>{s.href="/"})};return(s,l)=>(r.openBlock(),r.createElementBlock("div",ME,[r.createElementVNode("h1",null,"Not found route: "+r.toDisplayString(r.unref(n).snapshot.navigationState.href),1),r.createVNode(r.unref(pl),{onClick:r.withModifiers(o,["stop"])},{default:r.withCtx(()=>l[0]||(l[0]=[r.createTextVNode("Return to main page")])),_:1})]))}}),Ts=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},LE={},OE={class:"block__loader-page"};function GE(t,e){return r.openBlock(),r.createElementBlock("div",OE,e[0]||(e[0]=[r.createElementVNode("div",{class:"loader-container"},[r.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const zE=Ts(LE,[["render",GE]]),$E={class:"pl-app-notification-alert"},ZE={class:"pl-app-notification-alert__content"},UE={class:"pl-app-notification-alert__title"},WE=r.defineComponent({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(t){const e=t,n=r.ref(!1),o=r.ref(!0),s=r.computed(()=>Object.entries(e.errors).filter(d=>!!d[1]));function l(){n.value=!0}return r.watch(()=>e.errors,d=>{o.value=Object.values(d).some(u=>!!u)},{immediate:!0,deep:!0}),(d,u)=>(r.openBlock(),r.createElementBlock("div",$E,[r.createVNode(r.unref(bl),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),width:"720px",style:{"max-height":"100vh"}},{title:r.withCtx(()=>u[2]||(u[2]=[r.createTextVNode(" Errors ")])),default:r.withCtx(()=>[r.createElementVNode("div",ZE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,p=>{var f;return r.openBlock(),r.createElementBlock("div",{key:p[0],class:"pl-app-notification-alert__item"},[r.createElementVNode("div",UE,r.toDisplayString(p[0]),1),r.createVNode(r.unref(Ou),{value:(f=p[1])==null?void 0:f.message},null,8,["value"])])}),128))])]),_:1},8,["modelValue"]),r.createVNode(r.unref(rp),{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"error",closable:""},{actions:r.withCtx(()=>[r.createVNode(r.unref(ul),{icon:"arrow-right",onClick:l},{default:r.withCtx(()=>u[3]||(u[3]=[r.createTextVNode("See errors")])),_:1}),r.createVNode(r.unref(Su))]),default:r.withCtx(()=>[u[4]||(u[4]=r.createTextVNode(" Some outputs have errors. "))]),_:1},8,["modelValue"])]))}}),HE={key:0,class:"block__loader"},jE=r.defineComponent({__name:"BlockLoader",props:{value:{type:[Boolean,Number]}},setup(t){const e=t,n=r.computed(()=>typeof e.value=="boolean"&&e.value),o=r.computed(()=>{const s=e.value;if(typeof s=="number")return s>=1?void 0:(s*100).toFixed(2)+"%"});return(s,l)=>n.value?(r.openBlock(),r.createElementBlock("div",HE)):o.value!==void 0?(r.openBlock(),r.createElementBlock("div",{key:1,class:"block__progress",style:r.normalizeStyle({"--progress-width":o.value})},null,4)):r.createCommentVNode("",!0)}}),qE={class:"block block__layout"},KE={key:0},YE=r.defineComponent({__name:"BlockLayout",setup(t){const e=Xa(),n=f=>{try{return new URL(f,"http://dummy").pathname}catch{console.error("Invalid href",f);return}},o=r.computed(()=>e.loaded?e.useApp().href:void 0),s=r.computed(()=>{if(e.loaded){const f=e.useApp(),m=n(f.snapshot.navigationState.href);return m?f.getRoute(m):void 0}}),l=r.computed(()=>e.loaded?e.useApp():void 0),d=r.computed(()=>l.value?l.value.model.outputErrors:{}),u=r.computed(()=>{var f;return((f=l.value)==null?void 0:f.showErrorsNotification)??!0}),p=r.computed(()=>{var f,m;return(m=(f=l.value)==null?void 0:f.progress)==null?void 0:m.call(f)});return(f,m)=>(r.openBlock(),r.createElementBlock("div",qE,[r.createVNode(jE,{value:p.value},null,8,["value"]),r.unref(e).error?(r.openBlock(),r.createElementBlock("div",KE,r.toDisplayString(r.unref(e).error),1)):r.unref(e).loaded?s.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s.value),{key:o.value})):(r.openBlock(),r.createBlock(IE,{key:3})):(r.openBlock(),r.createBlock(zE,{key:1},{default:r.withCtx(()=>m[0]||(m[0]=[r.createTextVNode("Loading...")])),_:1})),r.unref(e).loaded&&u.value?(r.openBlock(),r.createBlock(r.unref(WE),{key:4,errors:d.value},null,8,["errors"])):r.createCommentVNode("",!0)]))}});var Bs={exports:{}};/**
66
66
  * @license
67
67
  * Lodash <https://lodash.com/>
68
68
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
69
69
  * Released under MIT license <https://lodash.com/license>
70
70
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
71
71
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
72
- */Bs.exports,function(t,e){(function(){var n,o="4.17.21",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",u="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",y=1,E=2,S=4,N=1,L=2,O=1,C=2,A=4,H=8,X=16,G=32,Y=64,U=128,R=256,V=512,M=30,W="...",q=800,B=16,x=1,D=2,$=3,re=1/0,se=9007199254740991,Pe=17976931348623157e292,He=NaN,ot=4294967295,_n=ot-1,Dn=ot>>>1,Cr=[["ary",U],["bind",O],["bindKey",C],["curry",H],["curryRight",X],["flip",V],["partial",G],["partialRight",Y],["rearg",R]],Zn="[object Arguments]",Hr="[object Array]",Ps="[object AsyncFunction]",ze="[object Boolean]",wr="[object Date]",PT="[object DOMException]",Ds="[object Error]",Fs="[object Function]",bp="[object GeneratorFunction]",Cn="[object Map]",Pi="[object Number]",DT="[object Null]",Un="[object Object]",xp="[object Promise]",FT="[object Proxy]",Di="[object RegExp]",wn="[object Set]",Fi="[object String]",Rs="[object Symbol]",RT="[object Undefined]",Ri="[object WeakMap]",MT="[object WeakSet]",Mi="[object ArrayBuffer]",So="[object DataView]",Rl="[object Float32Array]",Ml="[object Float64Array]",Il="[object Int8Array]",Ll="[object Int16Array]",Ol="[object Int32Array]",Gl="[object Uint8Array]",zl="[object Uint8ClampedArray]",$l="[object Uint16Array]",Zl="[object Uint32Array]",IT=/\b__p \+= '';/g,LT=/\b(__p \+=) '' \+/g,OT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kp=/&(?:amp|lt|gt|quot|#39);/g,Sp=/[&<>"']/g,GT=RegExp(kp.source),zT=RegExp(Sp.source),$T=/<%-([\s\S]+?)%>/g,ZT=/<%([\s\S]+?)%>/g,Ep=/<%=([\s\S]+?)%>/g,UT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WT=/^\w*$/,HT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ul=/[\\^$.*+?()[\]{}|]/g,jT=RegExp(Ul.source),Wl=/^\s+/,qT=/\s/,KT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,YT=/\{\n\/\* \[wrapped with (.+)\] \*/,JT=/,? & /,XT=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,QT=/[()=,{}\[\]\/\s]/,eB=/\\(\\)?/g,tB=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tp=/\w*$/,nB=/^[-+]0x[0-9a-f]+$/i,rB=/^0b[01]+$/i,oB=/^\[object .+?Constructor\]$/,iB=/^0o[0-7]+$/i,sB=/^(?:0|[1-9]\d*)$/,aB=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ms=/($^)/,lB=/['\n\r\u2028\u2029\\]/g,Is="\\ud800-\\udfff",cB="\\u0300-\\u036f",dB="\\ufe20-\\ufe2f",uB="\\u20d0-\\u20ff",Bp=cB+dB+uB,Ap="\\u2700-\\u27bf",Np="a-z\\xdf-\\xf6\\xf8-\\xff",pB="\\xac\\xb1\\xd7\\xf7",hB="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fB="\\u2000-\\u206f",mB=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vp="A-Z\\xc0-\\xd6\\xd8-\\xde",Pp="\\ufe0e\\ufe0f",Dp=pB+hB+fB+mB,Hl="['’]",gB="["+Is+"]",Fp="["+Dp+"]",Ls="["+Bp+"]",Rp="\\d+",yB="["+Ap+"]",Mp="["+Np+"]",Ip="[^"+Is+Dp+Rp+Ap+Np+Vp+"]",jl="\\ud83c[\\udffb-\\udfff]",vB="(?:"+Ls+"|"+jl+")",Lp="[^"+Is+"]",ql="(?:\\ud83c[\\udde6-\\uddff]){2}",Kl="[\\ud800-\\udbff][\\udc00-\\udfff]",Eo="["+Vp+"]",Op="\\u200d",Gp="(?:"+Mp+"|"+Ip+")",_B="(?:"+Eo+"|"+Ip+")",zp="(?:"+Hl+"(?:d|ll|m|re|s|t|ve))?",$p="(?:"+Hl+"(?:D|LL|M|RE|S|T|VE))?",Zp=vB+"?",Up="["+Pp+"]?",CB="(?:"+Op+"(?:"+[Lp,ql,Kl].join("|")+")"+Up+Zp+")*",wB="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bB="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wp=Up+Zp+CB,xB="(?:"+[yB,ql,Kl].join("|")+")"+Wp,kB="(?:"+[Lp+Ls+"?",Ls,ql,Kl,gB].join("|")+")",SB=RegExp(Hl,"g"),EB=RegExp(Ls,"g"),Yl=RegExp(jl+"(?="+jl+")|"+kB+Wp,"g"),TB=RegExp([Eo+"?"+Mp+"+"+zp+"(?="+[Fp,Eo,"$"].join("|")+")",_B+"+"+$p+"(?="+[Fp,Eo+Gp,"$"].join("|")+")",Eo+"?"+Gp+"+"+zp,Eo+"+"+$p,bB,wB,Rp,xB].join("|"),"g"),BB=RegExp("["+Op+Is+Bp+Pp+"]"),AB=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NB=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],VB=-1,Ye={};Ye[Rl]=Ye[Ml]=Ye[Il]=Ye[Ll]=Ye[Ol]=Ye[Gl]=Ye[zl]=Ye[$l]=Ye[Zl]=!0,Ye[Zn]=Ye[Hr]=Ye[Mi]=Ye[ze]=Ye[So]=Ye[wr]=Ye[Ds]=Ye[Fs]=Ye[Cn]=Ye[Pi]=Ye[Un]=Ye[Di]=Ye[wn]=Ye[Fi]=Ye[Ri]=!1;var qe={};qe[Zn]=qe[Hr]=qe[Mi]=qe[So]=qe[ze]=qe[wr]=qe[Rl]=qe[Ml]=qe[Il]=qe[Ll]=qe[Ol]=qe[Cn]=qe[Pi]=qe[Un]=qe[Di]=qe[wn]=qe[Fi]=qe[Rs]=qe[Gl]=qe[zl]=qe[$l]=qe[Zl]=!0,qe[Ds]=qe[Fs]=qe[Ri]=!1;var PB={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},DB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},FB={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},RB={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},MB=parseFloat,IB=parseInt,Hp=typeof Go=="object"&&Go&&Go.Object===Object&&Go,LB=typeof self=="object"&&self&&self.Object===Object&&self,gt=Hp||LB||Function("return this")(),Jl=e&&!e.nodeType&&e,jr=Jl&&!0&&t&&!t.nodeType&&t,jp=jr&&jr.exports===Jl,Xl=jp&&Hp.process,Yt=function(){try{var P=jr&&jr.require&&jr.require("util").types;return P||Xl&&Xl.binding&&Xl.binding("util")}catch{}}(),qp=Yt&&Yt.isArrayBuffer,Kp=Yt&&Yt.isDate,Yp=Yt&&Yt.isMap,Jp=Yt&&Yt.isRegExp,Xp=Yt&&Yt.isSet,Qp=Yt&&Yt.isTypedArray;function Zt(P,Z,z){switch(z.length){case 0:return P.call(Z);case 1:return P.call(Z,z[0]);case 2:return P.call(Z,z[0],z[1]);case 3:return P.call(Z,z[0],z[1],z[2])}return P.apply(Z,z)}function OB(P,Z,z,ce){for(var xe=-1,$e=P==null?0:P.length;++xe<$e;){var dt=P[xe];Z(ce,dt,z(dt),P)}return ce}function Jt(P,Z){for(var z=-1,ce=P==null?0:P.length;++z<ce&&Z(P[z],z,P)!==!1;);return P}function GB(P,Z){for(var z=P==null?0:P.length;z--&&Z(P[z],z,P)!==!1;);return P}function eh(P,Z){for(var z=-1,ce=P==null?0:P.length;++z<ce;)if(!Z(P[z],z,P))return!1;return!0}function br(P,Z){for(var z=-1,ce=P==null?0:P.length,xe=0,$e=[];++z<ce;){var dt=P[z];Z(dt,z,P)&&($e[xe++]=dt)}return $e}function Os(P,Z){var z=P==null?0:P.length;return!!z&&To(P,Z,0)>-1}function Ql(P,Z,z){for(var ce=-1,xe=P==null?0:P.length;++ce<xe;)if(z(Z,P[ce]))return!0;return!1}function Xe(P,Z){for(var z=-1,ce=P==null?0:P.length,xe=Array(ce);++z<ce;)xe[z]=Z(P[z],z,P);return xe}function xr(P,Z){for(var z=-1,ce=Z.length,xe=P.length;++z<ce;)P[xe+z]=Z[z];return P}function ec(P,Z,z,ce){var xe=-1,$e=P==null?0:P.length;for(ce&&$e&&(z=P[++xe]);++xe<$e;)z=Z(z,P[xe],xe,P);return z}function zB(P,Z,z,ce){var xe=P==null?0:P.length;for(ce&&xe&&(z=P[--xe]);xe--;)z=Z(z,P[xe],xe,P);return z}function tc(P,Z){for(var z=-1,ce=P==null?0:P.length;++z<ce;)if(Z(P[z],z,P))return!0;return!1}var $B=nc("length");function ZB(P){return P.split("")}function UB(P){return P.match(XT)||[]}function th(P,Z,z){var ce;return z(P,function(xe,$e,dt){if(Z(xe,$e,dt))return ce=$e,!1}),ce}function Gs(P,Z,z,ce){for(var xe=P.length,$e=z+(ce?1:-1);ce?$e--:++$e<xe;)if(Z(P[$e],$e,P))return $e;return-1}function To(P,Z,z){return Z===Z?nA(P,Z,z):Gs(P,nh,z)}function WB(P,Z,z,ce){for(var xe=z-1,$e=P.length;++xe<$e;)if(ce(P[xe],Z))return xe;return-1}function nh(P){return P!==P}function rh(P,Z){var z=P==null?0:P.length;return z?oc(P,Z)/z:He}function nc(P){return function(Z){return Z==null?n:Z[P]}}function rc(P){return function(Z){return P==null?n:P[Z]}}function oh(P,Z,z,ce,xe){return xe(P,function($e,dt,je){z=ce?(ce=!1,$e):Z(z,$e,dt,je)}),z}function HB(P,Z){var z=P.length;for(P.sort(Z);z--;)P[z]=P[z].value;return P}function oc(P,Z){for(var z,ce=-1,xe=P.length;++ce<xe;){var $e=Z(P[ce]);$e!==n&&(z=z===n?$e:z+$e)}return z}function ic(P,Z){for(var z=-1,ce=Array(P);++z<P;)ce[z]=Z(z);return ce}function jB(P,Z){return Xe(Z,function(z){return[z,P[z]]})}function ih(P){return P&&P.slice(0,ch(P)+1).replace(Wl,"")}function Ut(P){return function(Z){return P(Z)}}function sc(P,Z){return Xe(Z,function(z){return P[z]})}function Ii(P,Z){return P.has(Z)}function sh(P,Z){for(var z=-1,ce=P.length;++z<ce&&To(Z,P[z],0)>-1;);return z}function ah(P,Z){for(var z=P.length;z--&&To(Z,P[z],0)>-1;);return z}function qB(P,Z){for(var z=P.length,ce=0;z--;)P[z]===Z&&++ce;return ce}var KB=rc(PB),YB=rc(DB);function JB(P){return"\\"+RB[P]}function XB(P,Z){return P==null?n:P[Z]}function Bo(P){return BB.test(P)}function QB(P){return AB.test(P)}function eA(P){for(var Z,z=[];!(Z=P.next()).done;)z.push(Z.value);return z}function ac(P){var Z=-1,z=Array(P.size);return P.forEach(function(ce,xe){z[++Z]=[xe,ce]}),z}function lh(P,Z){return function(z){return P(Z(z))}}function kr(P,Z){for(var z=-1,ce=P.length,xe=0,$e=[];++z<ce;){var dt=P[z];(dt===Z||dt===m)&&(P[z]=m,$e[xe++]=z)}return $e}function zs(P){var Z=-1,z=Array(P.size);return P.forEach(function(ce){z[++Z]=ce}),z}function tA(P){var Z=-1,z=Array(P.size);return P.forEach(function(ce){z[++Z]=[ce,ce]}),z}function nA(P,Z,z){for(var ce=z-1,xe=P.length;++ce<xe;)if(P[ce]===Z)return ce;return-1}function rA(P,Z,z){for(var ce=z+1;ce--;)if(P[ce]===Z)return ce;return ce}function Ao(P){return Bo(P)?iA(P):$B(P)}function bn(P){return Bo(P)?sA(P):ZB(P)}function ch(P){for(var Z=P.length;Z--&&qT.test(P.charAt(Z)););return Z}var oA=rc(FB);function iA(P){for(var Z=Yl.lastIndex=0;Yl.test(P);)++Z;return Z}function sA(P){return P.match(Yl)||[]}function aA(P){return P.match(TB)||[]}var lA=function P(Z){Z=Z==null?gt:No.defaults(gt.Object(),Z,No.pick(gt,NB));var z=Z.Array,ce=Z.Date,xe=Z.Error,$e=Z.Function,dt=Z.Math,je=Z.Object,lc=Z.RegExp,cA=Z.String,Xt=Z.TypeError,$s=z.prototype,dA=$e.prototype,Vo=je.prototype,Zs=Z["__core-js_shared__"],Us=dA.toString,We=Vo.hasOwnProperty,uA=0,dh=function(){var i=/[^.]+$/.exec(Zs&&Zs.keys&&Zs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Ws=Vo.toString,pA=Us.call(je),hA=gt._,fA=lc("^"+Us.call(We).replace(Ul,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hs=jp?Z.Buffer:n,Sr=Z.Symbol,js=Z.Uint8Array,uh=Hs?Hs.allocUnsafe:n,qs=lh(je.getPrototypeOf,je),ph=je.create,hh=Vo.propertyIsEnumerable,Ks=$s.splice,fh=Sr?Sr.isConcatSpreadable:n,Li=Sr?Sr.iterator:n,qr=Sr?Sr.toStringTag:n,Ys=function(){try{var i=Qr(je,"defineProperty");return i({},"",{}),i}catch{}}(),mA=Z.clearTimeout!==gt.clearTimeout&&Z.clearTimeout,gA=ce&&ce.now!==gt.Date.now&&ce.now,yA=Z.setTimeout!==gt.setTimeout&&Z.setTimeout,Js=dt.ceil,Xs=dt.floor,cc=je.getOwnPropertySymbols,vA=Hs?Hs.isBuffer:n,mh=Z.isFinite,_A=$s.join,CA=lh(je.keys,je),ut=dt.max,bt=dt.min,wA=ce.now,bA=Z.parseInt,gh=dt.random,xA=$s.reverse,dc=Qr(Z,"DataView"),Oi=Qr(Z,"Map"),uc=Qr(Z,"Promise"),Po=Qr(Z,"Set"),Gi=Qr(Z,"WeakMap"),zi=Qr(je,"create"),Qs=Gi&&new Gi,Do={},kA=eo(dc),SA=eo(Oi),EA=eo(uc),TA=eo(Po),BA=eo(Gi),ea=Sr?Sr.prototype:n,$i=ea?ea.valueOf:n,yh=ea?ea.toString:n;function v(i){if(nt(i)&&!ke(i)&&!(i instanceof Fe)){if(i instanceof Qt)return i;if(We.call(i,"__wrapped__"))return _f(i)}return new Qt(i)}var Fo=function(){function i(){}return function(a){if(!tt(a))return{};if(ph)return ph(a);i.prototype=a;var c=new i;return i.prototype=n,c}}();function ta(){}function Qt(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}v.templateSettings={escape:$T,evaluate:ZT,interpolate:Ep,variable:"",imports:{_:v}},v.prototype=ta.prototype,v.prototype.constructor=v,Qt.prototype=Fo(ta.prototype),Qt.prototype.constructor=Qt;function Fe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ot,this.__views__=[]}function AA(){var i=new Fe(this.__wrapped__);return i.__actions__=Dt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Dt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Dt(this.__views__),i}function NA(){if(this.__filtered__){var i=new Fe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function VA(){var i=this.__wrapped__.value(),a=this.__dir__,c=ke(i),h=a<0,g=c?i.length:0,_=ZN(0,g,this.__views__),k=_.start,T=_.end,F=T-k,j=h?T:k-1,K=this.__iteratees__,J=K.length,ne=0,ue=bt(F,this.__takeCount__);if(!c||!h&&g==F&&ue==F)return zh(i,this.__actions__);var ge=[];e:for(;F--&&ne<ue;){j+=a;for(var Ne=-1,ye=i[j];++Ne<J;){var De=K[Ne],Re=De.iteratee,jt=De.type,Vt=Re(ye);if(jt==D)ye=Vt;else if(!Vt){if(jt==x)continue e;break e}}ge[ne++]=ye}return ge}Fe.prototype=Fo(ta.prototype),Fe.prototype.constructor=Fe;function Kr(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var h=i[a];this.set(h[0],h[1])}}function PA(){this.__data__=zi?zi(null):{},this.size=0}function DA(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function FA(i){var a=this.__data__;if(zi){var c=a[i];return c===p?n:c}return We.call(a,i)?a[i]:n}function RA(i){var a=this.__data__;return zi?a[i]!==n:We.call(a,i)}function MA(i,a){var c=this.__data__;return this.size+=this.has(i)?0:1,c[i]=zi&&a===n?p:a,this}Kr.prototype.clear=PA,Kr.prototype.delete=DA,Kr.prototype.get=FA,Kr.prototype.has=RA,Kr.prototype.set=MA;function Wn(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var h=i[a];this.set(h[0],h[1])}}function IA(){this.__data__=[],this.size=0}function LA(i){var a=this.__data__,c=na(a,i);if(c<0)return!1;var h=a.length-1;return c==h?a.pop():Ks.call(a,c,1),--this.size,!0}function OA(i){var a=this.__data__,c=na(a,i);return c<0?n:a[c][1]}function GA(i){return na(this.__data__,i)>-1}function zA(i,a){var c=this.__data__,h=na(c,i);return h<0?(++this.size,c.push([i,a])):c[h][1]=a,this}Wn.prototype.clear=IA,Wn.prototype.delete=LA,Wn.prototype.get=OA,Wn.prototype.has=GA,Wn.prototype.set=zA;function Hn(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var h=i[a];this.set(h[0],h[1])}}function $A(){this.size=0,this.__data__={hash:new Kr,map:new(Oi||Wn),string:new Kr}}function ZA(i){var a=fa(this,i).delete(i);return this.size-=a?1:0,a}function UA(i){return fa(this,i).get(i)}function WA(i){return fa(this,i).has(i)}function HA(i,a){var c=fa(this,i),h=c.size;return c.set(i,a),this.size+=c.size==h?0:1,this}Hn.prototype.clear=$A,Hn.prototype.delete=ZA,Hn.prototype.get=UA,Hn.prototype.has=WA,Hn.prototype.set=HA;function Yr(i){var a=-1,c=i==null?0:i.length;for(this.__data__=new Hn;++a<c;)this.add(i[a])}function jA(i){return this.__data__.set(i,p),this}function qA(i){return this.__data__.has(i)}Yr.prototype.add=Yr.prototype.push=jA,Yr.prototype.has=qA;function xn(i){var a=this.__data__=new Wn(i);this.size=a.size}function KA(){this.__data__=new Wn,this.size=0}function YA(i){var a=this.__data__,c=a.delete(i);return this.size=a.size,c}function JA(i){return this.__data__.get(i)}function XA(i){return this.__data__.has(i)}function QA(i,a){var c=this.__data__;if(c instanceof Wn){var h=c.__data__;if(!Oi||h.length<s-1)return h.push([i,a]),this.size=++c.size,this;c=this.__data__=new Hn(h)}return c.set(i,a),this.size=c.size,this}xn.prototype.clear=KA,xn.prototype.delete=YA,xn.prototype.get=JA,xn.prototype.has=XA,xn.prototype.set=QA;function vh(i,a){var c=ke(i),h=!c&&to(i),g=!c&&!h&&Nr(i),_=!c&&!h&&!g&&Lo(i),k=c||h||g||_,T=k?ic(i.length,cA):[],F=T.length;for(var j in i)(a||We.call(i,j))&&!(k&&(j=="length"||g&&(j=="offset"||j=="parent")||_&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Yn(j,F)))&&T.push(j);return T}function _h(i){var a=i.length;return a?i[bc(0,a-1)]:n}function eN(i,a){return ma(Dt(i),Jr(a,0,i.length))}function tN(i){return ma(Dt(i))}function pc(i,a,c){(c!==n&&!kn(i[a],c)||c===n&&!(a in i))&&jn(i,a,c)}function Zi(i,a,c){var h=i[a];(!(We.call(i,a)&&kn(h,c))||c===n&&!(a in i))&&jn(i,a,c)}function na(i,a){for(var c=i.length;c--;)if(kn(i[c][0],a))return c;return-1}function nN(i,a,c,h){return Er(i,function(g,_,k){a(h,g,c(g),k)}),h}function Ch(i,a){return i&&Rn(a,mt(a),i)}function rN(i,a){return i&&Rn(a,Rt(a),i)}function jn(i,a,c){a=="__proto__"&&Ys?Ys(i,a,{configurable:!0,enumerable:!0,value:c,writable:!0}):i[a]=c}function hc(i,a){for(var c=-1,h=a.length,g=z(h),_=i==null;++c<h;)g[c]=_?n:jc(i,a[c]);return g}function Jr(i,a,c){return i===i&&(c!==n&&(i=i<=c?i:c),a!==n&&(i=i>=a?i:a)),i}function en(i,a,c,h,g,_){var k,T=a&y,F=a&E,j=a&S;if(c&&(k=g?c(i,h,g,_):c(i)),k!==n)return k;if(!tt(i))return i;var K=ke(i);if(K){if(k=WN(i),!T)return Dt(i,k)}else{var J=xt(i),ne=J==Fs||J==bp;if(Nr(i))return Uh(i,T);if(J==Un||J==Zn||ne&&!g){if(k=F||ne?{}:df(i),!T)return F?FN(i,rN(k,i)):DN(i,Ch(k,i))}else{if(!qe[J])return g?i:{};k=HN(i,J,T)}}_||(_=new xn);var ue=_.get(i);if(ue)return ue;_.set(i,k),Of(i)?i.forEach(function(ye){k.add(en(ye,a,c,ye,i,_))}):If(i)&&i.forEach(function(ye,De){k.set(De,en(ye,a,c,De,i,_))});var ge=j?F?Dc:Pc:F?Rt:mt,Ne=K?n:ge(i);return Jt(Ne||i,function(ye,De){Ne&&(De=ye,ye=i[De]),Zi(k,De,en(ye,a,c,De,i,_))}),k}function oN(i){var a=mt(i);return function(c){return wh(c,i,a)}}function wh(i,a,c){var h=c.length;if(i==null)return!h;for(i=je(i);h--;){var g=c[h],_=a[g],k=i[g];if(k===n&&!(g in i)||!_(k))return!1}return!0}function bh(i,a,c){if(typeof i!="function")throw new Xt(d);return Yi(function(){i.apply(n,c)},a)}function Ui(i,a,c,h){var g=-1,_=Os,k=!0,T=i.length,F=[],j=a.length;if(!T)return F;c&&(a=Xe(a,Ut(c))),h?(_=Ql,k=!1):a.length>=s&&(_=Ii,k=!1,a=new Yr(a));e:for(;++g<T;){var K=i[g],J=c==null?K:c(K);if(K=h||K!==0?K:0,k&&J===J){for(var ne=j;ne--;)if(a[ne]===J)continue e;F.push(K)}else _(a,J,h)||F.push(K)}return F}var Er=Kh(Fn),xh=Kh(mc,!0);function iN(i,a){var c=!0;return Er(i,function(h,g,_){return c=!!a(h,g,_),c}),c}function ra(i,a,c){for(var h=-1,g=i.length;++h<g;){var _=i[h],k=a(_);if(k!=null&&(T===n?k===k&&!Ht(k):c(k,T)))var T=k,F=_}return F}function sN(i,a,c,h){var g=i.length;for(c=Te(c),c<0&&(c=-c>g?0:g+c),h=h===n||h>g?g:Te(h),h<0&&(h+=g),h=c>h?0:zf(h);c<h;)i[c++]=a;return i}function kh(i,a){var c=[];return Er(i,function(h,g,_){a(h,g,_)&&c.push(h)}),c}function yt(i,a,c,h,g){var _=-1,k=i.length;for(c||(c=qN),g||(g=[]);++_<k;){var T=i[_];a>0&&c(T)?a>1?yt(T,a-1,c,h,g):xr(g,T):h||(g[g.length]=T)}return g}var fc=Yh(),Sh=Yh(!0);function Fn(i,a){return i&&fc(i,a,mt)}function mc(i,a){return i&&Sh(i,a,mt)}function oa(i,a){return br(a,function(c){return Jn(i[c])})}function Xr(i,a){a=Br(a,i);for(var c=0,h=a.length;i!=null&&c<h;)i=i[Mn(a[c++])];return c&&c==h?i:n}function Eh(i,a,c){var h=a(i);return ke(i)?h:xr(h,c(i))}function At(i){return i==null?i===n?RT:DT:qr&&qr in je(i)?$N(i):tV(i)}function gc(i,a){return i>a}function aN(i,a){return i!=null&&We.call(i,a)}function lN(i,a){return i!=null&&a in je(i)}function cN(i,a,c){return i>=bt(a,c)&&i<ut(a,c)}function yc(i,a,c){for(var h=c?Ql:Os,g=i[0].length,_=i.length,k=_,T=z(_),F=1/0,j=[];k--;){var K=i[k];k&&a&&(K=Xe(K,Ut(a))),F=bt(K.length,F),T[k]=!c&&(a||g>=120&&K.length>=120)?new Yr(k&&K):n}K=i[0];var J=-1,ne=T[0];e:for(;++J<g&&j.length<F;){var ue=K[J],ge=a?a(ue):ue;if(ue=c||ue!==0?ue:0,!(ne?Ii(ne,ge):h(j,ge,c))){for(k=_;--k;){var Ne=T[k];if(!(Ne?Ii(Ne,ge):h(i[k],ge,c)))continue e}ne&&ne.push(ge),j.push(ue)}}return j}function dN(i,a,c,h){return Fn(i,function(g,_,k){a(h,c(g),_,k)}),h}function Wi(i,a,c){a=Br(a,i),i=ff(i,a);var h=i==null?i:i[Mn(nn(a))];return h==null?n:Zt(h,i,c)}function Th(i){return nt(i)&&At(i)==Zn}function uN(i){return nt(i)&&At(i)==Mi}function pN(i){return nt(i)&&At(i)==wr}function Hi(i,a,c,h,g){return i===a?!0:i==null||a==null||!nt(i)&&!nt(a)?i!==i&&a!==a:hN(i,a,c,h,Hi,g)}function hN(i,a,c,h,g,_){var k=ke(i),T=ke(a),F=k?Hr:xt(i),j=T?Hr:xt(a);F=F==Zn?Un:F,j=j==Zn?Un:j;var K=F==Un,J=j==Un,ne=F==j;if(ne&&Nr(i)){if(!Nr(a))return!1;k=!0,K=!1}if(ne&&!K)return _||(_=new xn),k||Lo(i)?af(i,a,c,h,g,_):GN(i,a,F,c,h,g,_);if(!(c&N)){var ue=K&&We.call(i,"__wrapped__"),ge=J&&We.call(a,"__wrapped__");if(ue||ge){var Ne=ue?i.value():i,ye=ge?a.value():a;return _||(_=new xn),g(Ne,ye,c,h,_)}}return ne?(_||(_=new xn),zN(i,a,c,h,g,_)):!1}function fN(i){return nt(i)&&xt(i)==Cn}function vc(i,a,c,h){var g=c.length,_=g,k=!h;if(i==null)return!_;for(i=je(i);g--;){var T=c[g];if(k&&T[2]?T[1]!==i[T[0]]:!(T[0]in i))return!1}for(;++g<_;){T=c[g];var F=T[0],j=i[F],K=T[1];if(k&&T[2]){if(j===n&&!(F in i))return!1}else{var J=new xn;if(h)var ne=h(j,K,F,i,a,J);if(!(ne===n?Hi(K,j,N|L,h,J):ne))return!1}}return!0}function Bh(i){if(!tt(i)||YN(i))return!1;var a=Jn(i)?fA:oB;return a.test(eo(i))}function mN(i){return nt(i)&&At(i)==Di}function gN(i){return nt(i)&&xt(i)==wn}function yN(i){return nt(i)&&wa(i.length)&&!!Ye[At(i)]}function Ah(i){return typeof i=="function"?i:i==null?Mt:typeof i=="object"?ke(i)?Ph(i[0],i[1]):Vh(i):Xf(i)}function _c(i){if(!Ki(i))return CA(i);var a=[];for(var c in je(i))We.call(i,c)&&c!="constructor"&&a.push(c);return a}function vN(i){if(!tt(i))return eV(i);var a=Ki(i),c=[];for(var h in i)h=="constructor"&&(a||!We.call(i,h))||c.push(h);return c}function Cc(i,a){return i<a}function Nh(i,a){var c=-1,h=Ft(i)?z(i.length):[];return Er(i,function(g,_,k){h[++c]=a(g,_,k)}),h}function Vh(i){var a=Rc(i);return a.length==1&&a[0][2]?pf(a[0][0],a[0][1]):function(c){return c===i||vc(c,i,a)}}function Ph(i,a){return Ic(i)&&uf(a)?pf(Mn(i),a):function(c){var h=jc(c,i);return h===n&&h===a?qc(c,i):Hi(a,h,N|L)}}function ia(i,a,c,h,g){i!==a&&fc(a,function(_,k){if(g||(g=new xn),tt(_))_N(i,a,k,c,ia,h,g);else{var T=h?h(Oc(i,k),_,k+"",i,a,g):n;T===n&&(T=_),pc(i,k,T)}},Rt)}function _N(i,a,c,h,g,_,k){var T=Oc(i,c),F=Oc(a,c),j=k.get(F);if(j){pc(i,c,j);return}var K=_?_(T,F,c+"",i,a,k):n,J=K===n;if(J){var ne=ke(F),ue=!ne&&Nr(F),ge=!ne&&!ue&&Lo(F);K=F,ne||ue||ge?ke(T)?K=T:it(T)?K=Dt(T):ue?(J=!1,K=Uh(F,!0)):ge?(J=!1,K=Wh(F,!0)):K=[]:Ji(F)||to(F)?(K=T,to(T)?K=$f(T):(!tt(T)||Jn(T))&&(K=df(F))):J=!1}J&&(k.set(F,K),g(K,F,h,_,k),k.delete(F)),pc(i,c,K)}function Dh(i,a){var c=i.length;if(c)return a+=a<0?c:0,Yn(a,c)?i[a]:n}function Fh(i,a,c){a.length?a=Xe(a,function(_){return ke(_)?function(k){return Xr(k,_.length===1?_[0]:_)}:_}):a=[Mt];var h=-1;a=Xe(a,Ut(fe()));var g=Nh(i,function(_,k,T){var F=Xe(a,function(j){return j(_)});return{criteria:F,index:++h,value:_}});return HB(g,function(_,k){return PN(_,k,c)})}function CN(i,a){return Rh(i,a,function(c,h){return qc(i,h)})}function Rh(i,a,c){for(var h=-1,g=a.length,_={};++h<g;){var k=a[h],T=Xr(i,k);c(T,k)&&ji(_,Br(k,i),T)}return _}function wN(i){return function(a){return Xr(a,i)}}function wc(i,a,c,h){var g=h?WB:To,_=-1,k=a.length,T=i;for(i===a&&(a=Dt(a)),c&&(T=Xe(i,Ut(c)));++_<k;)for(var F=0,j=a[_],K=c?c(j):j;(F=g(T,K,F,h))>-1;)T!==i&&Ks.call(T,F,1),Ks.call(i,F,1);return i}function Mh(i,a){for(var c=i?a.length:0,h=c-1;c--;){var g=a[c];if(c==h||g!==_){var _=g;Yn(g)?Ks.call(i,g,1):Sc(i,g)}}return i}function bc(i,a){return i+Xs(gh()*(a-i+1))}function bN(i,a,c,h){for(var g=-1,_=ut(Js((a-i)/(c||1)),0),k=z(_);_--;)k[h?_:++g]=i,i+=c;return k}function xc(i,a){var c="";if(!i||a<1||a>se)return c;do a%2&&(c+=i),a=Xs(a/2),a&&(i+=i);while(a);return c}function Ve(i,a){return Gc(hf(i,a,Mt),i+"")}function xN(i){return _h(Oo(i))}function kN(i,a){var c=Oo(i);return ma(c,Jr(a,0,c.length))}function ji(i,a,c,h){if(!tt(i))return i;a=Br(a,i);for(var g=-1,_=a.length,k=_-1,T=i;T!=null&&++g<_;){var F=Mn(a[g]),j=c;if(F==="__proto__"||F==="constructor"||F==="prototype")return i;if(g!=k){var K=T[F];j=h?h(K,F,T):n,j===n&&(j=tt(K)?K:Yn(a[g+1])?[]:{})}Zi(T,F,j),T=T[F]}return i}var Ih=Qs?function(i,a){return Qs.set(i,a),i}:Mt,SN=Ys?function(i,a){return Ys(i,"toString",{configurable:!0,enumerable:!1,value:Yc(a),writable:!0})}:Mt;function EN(i){return ma(Oo(i))}function tn(i,a,c){var h=-1,g=i.length;a<0&&(a=-a>g?0:g+a),c=c>g?g:c,c<0&&(c+=g),g=a>c?0:c-a>>>0,a>>>=0;for(var _=z(g);++h<g;)_[h]=i[h+a];return _}function TN(i,a){var c;return Er(i,function(h,g,_){return c=a(h,g,_),!c}),!!c}function sa(i,a,c){var h=0,g=i==null?h:i.length;if(typeof a=="number"&&a===a&&g<=Dn){for(;h<g;){var _=h+g>>>1,k=i[_];k!==null&&!Ht(k)&&(c?k<=a:k<a)?h=_+1:g=_}return g}return kc(i,a,Mt,c)}function kc(i,a,c,h){var g=0,_=i==null?0:i.length;if(_===0)return 0;a=c(a);for(var k=a!==a,T=a===null,F=Ht(a),j=a===n;g<_;){var K=Xs((g+_)/2),J=c(i[K]),ne=J!==n,ue=J===null,ge=J===J,Ne=Ht(J);if(k)var ye=h||ge;else j?ye=ge&&(h||ne):T?ye=ge&&ne&&(h||!ue):F?ye=ge&&ne&&!ue&&(h||!Ne):ue||Ne?ye=!1:ye=h?J<=a:J<a;ye?g=K+1:_=K}return bt(_,_n)}function Lh(i,a){for(var c=-1,h=i.length,g=0,_=[];++c<h;){var k=i[c],T=a?a(k):k;if(!c||!kn(T,F)){var F=T;_[g++]=k===0?0:k}}return _}function Oh(i){return typeof i=="number"?i:Ht(i)?He:+i}function Wt(i){if(typeof i=="string")return i;if(ke(i))return Xe(i,Wt)+"";if(Ht(i))return yh?yh.call(i):"";var a=i+"";return a=="0"&&1/i==-re?"-0":a}function Tr(i,a,c){var h=-1,g=Os,_=i.length,k=!0,T=[],F=T;if(c)k=!1,g=Ql;else if(_>=s){var j=a?null:LN(i);if(j)return zs(j);k=!1,g=Ii,F=new Yr}else F=a?[]:T;e:for(;++h<_;){var K=i[h],J=a?a(K):K;if(K=c||K!==0?K:0,k&&J===J){for(var ne=F.length;ne--;)if(F[ne]===J)continue e;a&&F.push(J),T.push(K)}else g(F,J,c)||(F!==T&&F.push(J),T.push(K))}return T}function Sc(i,a){return a=Br(a,i),i=ff(i,a),i==null||delete i[Mn(nn(a))]}function Gh(i,a,c,h){return ji(i,a,c(Xr(i,a)),h)}function aa(i,a,c,h){for(var g=i.length,_=h?g:-1;(h?_--:++_<g)&&a(i[_],_,i););return c?tn(i,h?0:_,h?_+1:g):tn(i,h?_+1:0,h?g:_)}function zh(i,a){var c=i;return c instanceof Fe&&(c=c.value()),ec(a,function(h,g){return g.func.apply(g.thisArg,xr([h],g.args))},c)}function Ec(i,a,c){var h=i.length;if(h<2)return h?Tr(i[0]):[];for(var g=-1,_=z(h);++g<h;)for(var k=i[g],T=-1;++T<h;)T!=g&&(_[g]=Ui(_[g]||k,i[T],a,c));return Tr(yt(_,1),a,c)}function $h(i,a,c){for(var h=-1,g=i.length,_=a.length,k={};++h<g;){var T=h<_?a[h]:n;c(k,i[h],T)}return k}function Tc(i){return it(i)?i:[]}function Bc(i){return typeof i=="function"?i:Mt}function Br(i,a){return ke(i)?i:Ic(i,a)?[i]:vf(Ue(i))}var BN=Ve;function Ar(i,a,c){var h=i.length;return c=c===n?h:c,!a&&c>=h?i:tn(i,a,c)}var Zh=mA||function(i){return gt.clearTimeout(i)};function Uh(i,a){if(a)return i.slice();var c=i.length,h=uh?uh(c):new i.constructor(c);return i.copy(h),h}function Ac(i){var a=new i.constructor(i.byteLength);return new js(a).set(new js(i)),a}function AN(i,a){var c=a?Ac(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.byteLength)}function NN(i){var a=new i.constructor(i.source,Tp.exec(i));return a.lastIndex=i.lastIndex,a}function VN(i){return $i?je($i.call(i)):{}}function Wh(i,a){var c=a?Ac(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.length)}function Hh(i,a){if(i!==a){var c=i!==n,h=i===null,g=i===i,_=Ht(i),k=a!==n,T=a===null,F=a===a,j=Ht(a);if(!T&&!j&&!_&&i>a||_&&k&&F&&!T&&!j||h&&k&&F||!c&&F||!g)return 1;if(!h&&!_&&!j&&i<a||j&&c&&g&&!h&&!_||T&&c&&g||!k&&g||!F)return-1}return 0}function PN(i,a,c){for(var h=-1,g=i.criteria,_=a.criteria,k=g.length,T=c.length;++h<k;){var F=Hh(g[h],_[h]);if(F){if(h>=T)return F;var j=c[h];return F*(j=="desc"?-1:1)}}return i.index-a.index}function jh(i,a,c,h){for(var g=-1,_=i.length,k=c.length,T=-1,F=a.length,j=ut(_-k,0),K=z(F+j),J=!h;++T<F;)K[T]=a[T];for(;++g<k;)(J||g<_)&&(K[c[g]]=i[g]);for(;j--;)K[T++]=i[g++];return K}function qh(i,a,c,h){for(var g=-1,_=i.length,k=-1,T=c.length,F=-1,j=a.length,K=ut(_-T,0),J=z(K+j),ne=!h;++g<K;)J[g]=i[g];for(var ue=g;++F<j;)J[ue+F]=a[F];for(;++k<T;)(ne||g<_)&&(J[ue+c[k]]=i[g++]);return J}function Dt(i,a){var c=-1,h=i.length;for(a||(a=z(h));++c<h;)a[c]=i[c];return a}function Rn(i,a,c,h){var g=!c;c||(c={});for(var _=-1,k=a.length;++_<k;){var T=a[_],F=h?h(c[T],i[T],T,c,i):n;F===n&&(F=i[T]),g?jn(c,T,F):Zi(c,T,F)}return c}function DN(i,a){return Rn(i,Mc(i),a)}function FN(i,a){return Rn(i,lf(i),a)}function la(i,a){return function(c,h){var g=ke(c)?OB:nN,_=a?a():{};return g(c,i,fe(h,2),_)}}function Ro(i){return Ve(function(a,c){var h=-1,g=c.length,_=g>1?c[g-1]:n,k=g>2?c[2]:n;for(_=i.length>3&&typeof _=="function"?(g--,_):n,k&&Nt(c[0],c[1],k)&&(_=g<3?n:_,g=1),a=je(a);++h<g;){var T=c[h];T&&i(a,T,h,_)}return a})}function Kh(i,a){return function(c,h){if(c==null)return c;if(!Ft(c))return i(c,h);for(var g=c.length,_=a?g:-1,k=je(c);(a?_--:++_<g)&&h(k[_],_,k)!==!1;);return c}}function Yh(i){return function(a,c,h){for(var g=-1,_=je(a),k=h(a),T=k.length;T--;){var F=k[i?T:++g];if(c(_[F],F,_)===!1)break}return a}}function RN(i,a,c){var h=a&O,g=qi(i);function _(){var k=this&&this!==gt&&this instanceof _?g:i;return k.apply(h?c:this,arguments)}return _}function Jh(i){return function(a){a=Ue(a);var c=Bo(a)?bn(a):n,h=c?c[0]:a.charAt(0),g=c?Ar(c,1).join(""):a.slice(1);return h[i]()+g}}function Mo(i){return function(a){return ec(Yf(Kf(a).replace(SB,"")),i,"")}}function qi(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var c=Fo(i.prototype),h=i.apply(c,a);return tt(h)?h:c}}function MN(i,a,c){var h=qi(i);function g(){for(var _=arguments.length,k=z(_),T=_,F=Io(g);T--;)k[T]=arguments[T];var j=_<3&&k[0]!==F&&k[_-1]!==F?[]:kr(k,F);if(_-=j.length,_<c)return nf(i,a,ca,g.placeholder,n,k,j,n,n,c-_);var K=this&&this!==gt&&this instanceof g?h:i;return Zt(K,this,k)}return g}function Xh(i){return function(a,c,h){var g=je(a);if(!Ft(a)){var _=fe(c,3);a=mt(a),c=function(T){return _(g[T],T,g)}}var k=i(a,c,h);return k>-1?g[_?a[k]:k]:n}}function Qh(i){return Kn(function(a){var c=a.length,h=c,g=Qt.prototype.thru;for(i&&a.reverse();h--;){var _=a[h];if(typeof _!="function")throw new Xt(d);if(g&&!k&&ha(_)=="wrapper")var k=new Qt([],!0)}for(h=k?h:c;++h<c;){_=a[h];var T=ha(_),F=T=="wrapper"?Fc(_):n;F&&Lc(F[0])&&F[1]==(U|H|G|R)&&!F[4].length&&F[9]==1?k=k[ha(F[0])].apply(k,F[3]):k=_.length==1&&Lc(_)?k[T]():k.thru(_)}return function(){var j=arguments,K=j[0];if(k&&j.length==1&&ke(K))return k.plant(K).value();for(var J=0,ne=c?a[J].apply(this,j):K;++J<c;)ne=a[J].call(this,ne);return ne}})}function ca(i,a,c,h,g,_,k,T,F,j){var K=a&U,J=a&O,ne=a&C,ue=a&(H|X),ge=a&V,Ne=ne?n:qi(i);function ye(){for(var De=arguments.length,Re=z(De),jt=De;jt--;)Re[jt]=arguments[jt];if(ue)var Vt=Io(ye),qt=qB(Re,Vt);if(h&&(Re=jh(Re,h,g,ue)),_&&(Re=qh(Re,_,k,ue)),De-=qt,ue&&De<j){var st=kr(Re,Vt);return nf(i,a,ca,ye.placeholder,c,Re,st,T,F,j-De)}var Sn=J?c:this,Qn=ne?Sn[i]:i;return De=Re.length,T?Re=nV(Re,T):ge&&De>1&&Re.reverse(),K&&F<De&&(Re.length=F),this&&this!==gt&&this instanceof ye&&(Qn=Ne||qi(Qn)),Qn.apply(Sn,Re)}return ye}function ef(i,a){return function(c,h){return dN(c,i,a(h),{})}}function da(i,a){return function(c,h){var g;if(c===n&&h===n)return a;if(c!==n&&(g=c),h!==n){if(g===n)return h;typeof c=="string"||typeof h=="string"?(c=Wt(c),h=Wt(h)):(c=Oh(c),h=Oh(h)),g=i(c,h)}return g}}function Nc(i){return Kn(function(a){return a=Xe(a,Ut(fe())),Ve(function(c){var h=this;return i(a,function(g){return Zt(g,h,c)})})})}function ua(i,a){a=a===n?" ":Wt(a);var c=a.length;if(c<2)return c?xc(a,i):a;var h=xc(a,Js(i/Ao(a)));return Bo(a)?Ar(bn(h),0,i).join(""):h.slice(0,i)}function IN(i,a,c,h){var g=a&O,_=qi(i);function k(){for(var T=-1,F=arguments.length,j=-1,K=h.length,J=z(K+F),ne=this&&this!==gt&&this instanceof k?_:i;++j<K;)J[j]=h[j];for(;F--;)J[j++]=arguments[++T];return Zt(ne,g?c:this,J)}return k}function tf(i){return function(a,c,h){return h&&typeof h!="number"&&Nt(a,c,h)&&(c=h=n),a=Xn(a),c===n?(c=a,a=0):c=Xn(c),h=h===n?a<c?1:-1:Xn(h),bN(a,c,h,i)}}function pa(i){return function(a,c){return typeof a=="string"&&typeof c=="string"||(a=rn(a),c=rn(c)),i(a,c)}}function nf(i,a,c,h,g,_,k,T,F,j){var K=a&H,J=K?k:n,ne=K?n:k,ue=K?_:n,ge=K?n:_;a|=K?G:Y,a&=~(K?Y:G),a&A||(a&=~(O|C));var Ne=[i,a,g,ue,J,ge,ne,T,F,j],ye=c.apply(n,Ne);return Lc(i)&&mf(ye,Ne),ye.placeholder=h,gf(ye,i,a)}function Vc(i){var a=dt[i];return function(c,h){if(c=rn(c),h=h==null?0:bt(Te(h),292),h&&mh(c)){var g=(Ue(c)+"e").split("e"),_=a(g[0]+"e"+(+g[1]+h));return g=(Ue(_)+"e").split("e"),+(g[0]+"e"+(+g[1]-h))}return a(c)}}var LN=Po&&1/zs(new Po([,-0]))[1]==re?function(i){return new Po(i)}:Qc;function rf(i){return function(a){var c=xt(a);return c==Cn?ac(a):c==wn?tA(a):jB(a,i(a))}}function qn(i,a,c,h,g,_,k,T){var F=a&C;if(!F&&typeof i!="function")throw new Xt(d);var j=h?h.length:0;if(j||(a&=~(G|Y),h=g=n),k=k===n?k:ut(Te(k),0),T=T===n?T:Te(T),j-=g?g.length:0,a&Y){var K=h,J=g;h=g=n}var ne=F?n:Fc(i),ue=[i,a,c,h,g,K,J,_,k,T];if(ne&&QN(ue,ne),i=ue[0],a=ue[1],c=ue[2],h=ue[3],g=ue[4],T=ue[9]=ue[9]===n?F?0:i.length:ut(ue[9]-j,0),!T&&a&(H|X)&&(a&=~(H|X)),!a||a==O)var ge=RN(i,a,c);else a==H||a==X?ge=MN(i,a,T):(a==G||a==(O|G))&&!g.length?ge=IN(i,a,c,h):ge=ca.apply(n,ue);var Ne=ne?Ih:mf;return gf(Ne(ge,ue),i,a)}function of(i,a,c,h){return i===n||kn(i,Vo[c])&&!We.call(h,c)?a:i}function sf(i,a,c,h,g,_){return tt(i)&&tt(a)&&(_.set(a,i),ia(i,a,n,sf,_),_.delete(a)),i}function ON(i){return Ji(i)?n:i}function af(i,a,c,h,g,_){var k=c&N,T=i.length,F=a.length;if(T!=F&&!(k&&F>T))return!1;var j=_.get(i),K=_.get(a);if(j&&K)return j==a&&K==i;var J=-1,ne=!0,ue=c&L?new Yr:n;for(_.set(i,a),_.set(a,i);++J<T;){var ge=i[J],Ne=a[J];if(h)var ye=k?h(Ne,ge,J,a,i,_):h(ge,Ne,J,i,a,_);if(ye!==n){if(ye)continue;ne=!1;break}if(ue){if(!tc(a,function(De,Re){if(!Ii(ue,Re)&&(ge===De||g(ge,De,c,h,_)))return ue.push(Re)})){ne=!1;break}}else if(!(ge===Ne||g(ge,Ne,c,h,_))){ne=!1;break}}return _.delete(i),_.delete(a),ne}function GN(i,a,c,h,g,_,k){switch(c){case So:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case Mi:return!(i.byteLength!=a.byteLength||!_(new js(i),new js(a)));case ze:case wr:case Pi:return kn(+i,+a);case Ds:return i.name==a.name&&i.message==a.message;case Di:case Fi:return i==a+"";case Cn:var T=ac;case wn:var F=h&N;if(T||(T=zs),i.size!=a.size&&!F)return!1;var j=k.get(i);if(j)return j==a;h|=L,k.set(i,a);var K=af(T(i),T(a),h,g,_,k);return k.delete(i),K;case Rs:if($i)return $i.call(i)==$i.call(a)}return!1}function zN(i,a,c,h,g,_){var k=c&N,T=Pc(i),F=T.length,j=Pc(a),K=j.length;if(F!=K&&!k)return!1;for(var J=F;J--;){var ne=T[J];if(!(k?ne in a:We.call(a,ne)))return!1}var ue=_.get(i),ge=_.get(a);if(ue&&ge)return ue==a&&ge==i;var Ne=!0;_.set(i,a),_.set(a,i);for(var ye=k;++J<F;){ne=T[J];var De=i[ne],Re=a[ne];if(h)var jt=k?h(Re,De,ne,a,i,_):h(De,Re,ne,i,a,_);if(!(jt===n?De===Re||g(De,Re,c,h,_):jt)){Ne=!1;break}ye||(ye=ne=="constructor")}if(Ne&&!ye){var Vt=i.constructor,qt=a.constructor;Vt!=qt&&"constructor"in i&&"constructor"in a&&!(typeof Vt=="function"&&Vt instanceof Vt&&typeof qt=="function"&&qt instanceof qt)&&(Ne=!1)}return _.delete(i),_.delete(a),Ne}function Kn(i){return Gc(hf(i,n,bf),i+"")}function Pc(i){return Eh(i,mt,Mc)}function Dc(i){return Eh(i,Rt,lf)}var Fc=Qs?function(i){return Qs.get(i)}:Qc;function ha(i){for(var a=i.name+"",c=Do[a],h=We.call(Do,a)?c.length:0;h--;){var g=c[h],_=g.func;if(_==null||_==i)return g.name}return a}function Io(i){var a=We.call(v,"placeholder")?v:i;return a.placeholder}function fe(){var i=v.iteratee||Jc;return i=i===Jc?Ah:i,arguments.length?i(arguments[0],arguments[1]):i}function fa(i,a){var c=i.__data__;return KN(a)?c[typeof a=="string"?"string":"hash"]:c.map}function Rc(i){for(var a=mt(i),c=a.length;c--;){var h=a[c],g=i[h];a[c]=[h,g,uf(g)]}return a}function Qr(i,a){var c=XB(i,a);return Bh(c)?c:n}function $N(i){var a=We.call(i,qr),c=i[qr];try{i[qr]=n;var h=!0}catch{}var g=Ws.call(i);return h&&(a?i[qr]=c:delete i[qr]),g}var Mc=cc?function(i){return i==null?[]:(i=je(i),br(cc(i),function(a){return hh.call(i,a)}))}:ed,lf=cc?function(i){for(var a=[];i;)xr(a,Mc(i)),i=qs(i);return a}:ed,xt=At;(dc&&xt(new dc(new ArrayBuffer(1)))!=So||Oi&&xt(new Oi)!=Cn||uc&&xt(uc.resolve())!=xp||Po&&xt(new Po)!=wn||Gi&&xt(new Gi)!=Ri)&&(xt=function(i){var a=At(i),c=a==Un?i.constructor:n,h=c?eo(c):"";if(h)switch(h){case kA:return So;case SA:return Cn;case EA:return xp;case TA:return wn;case BA:return Ri}return a});function ZN(i,a,c){for(var h=-1,g=c.length;++h<g;){var _=c[h],k=_.size;switch(_.type){case"drop":i+=k;break;case"dropRight":a-=k;break;case"take":a=bt(a,i+k);break;case"takeRight":i=ut(i,a-k);break}}return{start:i,end:a}}function UN(i){var a=i.match(YT);return a?a[1].split(JT):[]}function cf(i,a,c){a=Br(a,i);for(var h=-1,g=a.length,_=!1;++h<g;){var k=Mn(a[h]);if(!(_=i!=null&&c(i,k)))break;i=i[k]}return _||++h!=g?_:(g=i==null?0:i.length,!!g&&wa(g)&&Yn(k,g)&&(ke(i)||to(i)))}function WN(i){var a=i.length,c=new i.constructor(a);return a&&typeof i[0]=="string"&&We.call(i,"index")&&(c.index=i.index,c.input=i.input),c}function df(i){return typeof i.constructor=="function"&&!Ki(i)?Fo(qs(i)):{}}function HN(i,a,c){var h=i.constructor;switch(a){case Mi:return Ac(i);case ze:case wr:return new h(+i);case So:return AN(i,c);case Rl:case Ml:case Il:case Ll:case Ol:case Gl:case zl:case $l:case Zl:return Wh(i,c);case Cn:return new h;case Pi:case Fi:return new h(i);case Di:return NN(i);case wn:return new h;case Rs:return VN(i)}}function jN(i,a){var c=a.length;if(!c)return i;var h=c-1;return a[h]=(c>1?"& ":"")+a[h],a=a.join(c>2?", ":" "),i.replace(KT,`{
72
+ */Bs.exports,function(t,e){(function(){var n,o="4.17.21",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",u="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",y=1,E=2,S=4,N=1,L=2,O=1,C=2,A=4,H=8,X=16,G=32,Y=64,U=128,R=256,V=512,M=30,W="...",q=800,B=16,x=1,D=2,$=3,re=1/0,se=9007199254740991,Pe=17976931348623157e292,He=NaN,ot=4294967295,_n=ot-1,Dn=ot>>>1,Cr=[["ary",U],["bind",O],["bindKey",C],["curry",H],["curryRight",X],["flip",V],["partial",G],["partialRight",Y],["rearg",R]],Zn="[object Arguments]",Hr="[object Array]",Ps="[object AsyncFunction]",ze="[object Boolean]",wr="[object Date]",FT="[object DOMException]",Ds="[object Error]",Fs="[object Function]",bp="[object GeneratorFunction]",Cn="[object Map]",Pi="[object Number]",RT="[object Null]",Un="[object Object]",xp="[object Promise]",MT="[object Proxy]",Di="[object RegExp]",wn="[object Set]",Fi="[object String]",Rs="[object Symbol]",IT="[object Undefined]",Ri="[object WeakMap]",LT="[object WeakSet]",Mi="[object ArrayBuffer]",So="[object DataView]",Rl="[object Float32Array]",Ml="[object Float64Array]",Il="[object Int8Array]",Ll="[object Int16Array]",Ol="[object Int32Array]",Gl="[object Uint8Array]",zl="[object Uint8ClampedArray]",$l="[object Uint16Array]",Zl="[object Uint32Array]",OT=/\b__p \+= '';/g,GT=/\b(__p \+=) '' \+/g,zT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kp=/&(?:amp|lt|gt|quot|#39);/g,Sp=/[&<>"']/g,$T=RegExp(kp.source),ZT=RegExp(Sp.source),UT=/<%-([\s\S]+?)%>/g,WT=/<%([\s\S]+?)%>/g,Ep=/<%=([\s\S]+?)%>/g,HT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jT=/^\w*$/,qT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ul=/[\\^$.*+?()[\]{}|]/g,KT=RegExp(Ul.source),Wl=/^\s+/,YT=/\s/,JT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,XT=/\{\n\/\* \[wrapped with (.+)\] \*/,QT=/,? & /,eB=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tB=/[()=,{}\[\]\/\s]/,nB=/\\(\\)?/g,rB=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tp=/\w*$/,oB=/^[-+]0x[0-9a-f]+$/i,iB=/^0b[01]+$/i,sB=/^\[object .+?Constructor\]$/,aB=/^0o[0-7]+$/i,lB=/^(?:0|[1-9]\d*)$/,cB=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ms=/($^)/,dB=/['\n\r\u2028\u2029\\]/g,Is="\\ud800-\\udfff",uB="\\u0300-\\u036f",pB="\\ufe20-\\ufe2f",hB="\\u20d0-\\u20ff",Bp=uB+pB+hB,Ap="\\u2700-\\u27bf",Np="a-z\\xdf-\\xf6\\xf8-\\xff",fB="\\xac\\xb1\\xd7\\xf7",mB="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gB="\\u2000-\\u206f",yB=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vp="A-Z\\xc0-\\xd6\\xd8-\\xde",Pp="\\ufe0e\\ufe0f",Dp=fB+mB+gB+yB,Hl="['’]",vB="["+Is+"]",Fp="["+Dp+"]",Ls="["+Bp+"]",Rp="\\d+",_B="["+Ap+"]",Mp="["+Np+"]",Ip="[^"+Is+Dp+Rp+Ap+Np+Vp+"]",jl="\\ud83c[\\udffb-\\udfff]",CB="(?:"+Ls+"|"+jl+")",Lp="[^"+Is+"]",ql="(?:\\ud83c[\\udde6-\\uddff]){2}",Kl="[\\ud800-\\udbff][\\udc00-\\udfff]",Eo="["+Vp+"]",Op="\\u200d",Gp="(?:"+Mp+"|"+Ip+")",wB="(?:"+Eo+"|"+Ip+")",zp="(?:"+Hl+"(?:d|ll|m|re|s|t|ve))?",$p="(?:"+Hl+"(?:D|LL|M|RE|S|T|VE))?",Zp=CB+"?",Up="["+Pp+"]?",bB="(?:"+Op+"(?:"+[Lp,ql,Kl].join("|")+")"+Up+Zp+")*",xB="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kB="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wp=Up+Zp+bB,SB="(?:"+[_B,ql,Kl].join("|")+")"+Wp,EB="(?:"+[Lp+Ls+"?",Ls,ql,Kl,vB].join("|")+")",TB=RegExp(Hl,"g"),BB=RegExp(Ls,"g"),Yl=RegExp(jl+"(?="+jl+")|"+EB+Wp,"g"),AB=RegExp([Eo+"?"+Mp+"+"+zp+"(?="+[Fp,Eo,"$"].join("|")+")",wB+"+"+$p+"(?="+[Fp,Eo+Gp,"$"].join("|")+")",Eo+"?"+Gp+"+"+zp,Eo+"+"+$p,kB,xB,Rp,SB].join("|"),"g"),NB=RegExp("["+Op+Is+Bp+Pp+"]"),VB=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,PB=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],DB=-1,Ye={};Ye[Rl]=Ye[Ml]=Ye[Il]=Ye[Ll]=Ye[Ol]=Ye[Gl]=Ye[zl]=Ye[$l]=Ye[Zl]=!0,Ye[Zn]=Ye[Hr]=Ye[Mi]=Ye[ze]=Ye[So]=Ye[wr]=Ye[Ds]=Ye[Fs]=Ye[Cn]=Ye[Pi]=Ye[Un]=Ye[Di]=Ye[wn]=Ye[Fi]=Ye[Ri]=!1;var qe={};qe[Zn]=qe[Hr]=qe[Mi]=qe[So]=qe[ze]=qe[wr]=qe[Rl]=qe[Ml]=qe[Il]=qe[Ll]=qe[Ol]=qe[Cn]=qe[Pi]=qe[Un]=qe[Di]=qe[wn]=qe[Fi]=qe[Rs]=qe[Gl]=qe[zl]=qe[$l]=qe[Zl]=!0,qe[Ds]=qe[Fs]=qe[Ri]=!1;var FB={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},RB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},MB={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},IB={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},LB=parseFloat,OB=parseInt,Hp=typeof Go=="object"&&Go&&Go.Object===Object&&Go,GB=typeof self=="object"&&self&&self.Object===Object&&self,gt=Hp||GB||Function("return this")(),Jl=e&&!e.nodeType&&e,jr=Jl&&!0&&t&&!t.nodeType&&t,jp=jr&&jr.exports===Jl,Xl=jp&&Hp.process,Yt=function(){try{var P=jr&&jr.require&&jr.require("util").types;return P||Xl&&Xl.binding&&Xl.binding("util")}catch{}}(),qp=Yt&&Yt.isArrayBuffer,Kp=Yt&&Yt.isDate,Yp=Yt&&Yt.isMap,Jp=Yt&&Yt.isRegExp,Xp=Yt&&Yt.isSet,Qp=Yt&&Yt.isTypedArray;function Zt(P,Z,z){switch(z.length){case 0:return P.call(Z);case 1:return P.call(Z,z[0]);case 2:return P.call(Z,z[0],z[1]);case 3:return P.call(Z,z[0],z[1],z[2])}return P.apply(Z,z)}function zB(P,Z,z,ce){for(var xe=-1,$e=P==null?0:P.length;++xe<$e;){var dt=P[xe];Z(ce,dt,z(dt),P)}return ce}function Jt(P,Z){for(var z=-1,ce=P==null?0:P.length;++z<ce&&Z(P[z],z,P)!==!1;);return P}function $B(P,Z){for(var z=P==null?0:P.length;z--&&Z(P[z],z,P)!==!1;);return P}function eh(P,Z){for(var z=-1,ce=P==null?0:P.length;++z<ce;)if(!Z(P[z],z,P))return!1;return!0}function br(P,Z){for(var z=-1,ce=P==null?0:P.length,xe=0,$e=[];++z<ce;){var dt=P[z];Z(dt,z,P)&&($e[xe++]=dt)}return $e}function Os(P,Z){var z=P==null?0:P.length;return!!z&&To(P,Z,0)>-1}function Ql(P,Z,z){for(var ce=-1,xe=P==null?0:P.length;++ce<xe;)if(z(Z,P[ce]))return!0;return!1}function Xe(P,Z){for(var z=-1,ce=P==null?0:P.length,xe=Array(ce);++z<ce;)xe[z]=Z(P[z],z,P);return xe}function xr(P,Z){for(var z=-1,ce=Z.length,xe=P.length;++z<ce;)P[xe+z]=Z[z];return P}function ec(P,Z,z,ce){var xe=-1,$e=P==null?0:P.length;for(ce&&$e&&(z=P[++xe]);++xe<$e;)z=Z(z,P[xe],xe,P);return z}function ZB(P,Z,z,ce){var xe=P==null?0:P.length;for(ce&&xe&&(z=P[--xe]);xe--;)z=Z(z,P[xe],xe,P);return z}function tc(P,Z){for(var z=-1,ce=P==null?0:P.length;++z<ce;)if(Z(P[z],z,P))return!0;return!1}var UB=nc("length");function WB(P){return P.split("")}function HB(P){return P.match(eB)||[]}function th(P,Z,z){var ce;return z(P,function(xe,$e,dt){if(Z(xe,$e,dt))return ce=$e,!1}),ce}function Gs(P,Z,z,ce){for(var xe=P.length,$e=z+(ce?1:-1);ce?$e--:++$e<xe;)if(Z(P[$e],$e,P))return $e;return-1}function To(P,Z,z){return Z===Z?oA(P,Z,z):Gs(P,nh,z)}function jB(P,Z,z,ce){for(var xe=z-1,$e=P.length;++xe<$e;)if(ce(P[xe],Z))return xe;return-1}function nh(P){return P!==P}function rh(P,Z){var z=P==null?0:P.length;return z?oc(P,Z)/z:He}function nc(P){return function(Z){return Z==null?n:Z[P]}}function rc(P){return function(Z){return P==null?n:P[Z]}}function oh(P,Z,z,ce,xe){return xe(P,function($e,dt,je){z=ce?(ce=!1,$e):Z(z,$e,dt,je)}),z}function qB(P,Z){var z=P.length;for(P.sort(Z);z--;)P[z]=P[z].value;return P}function oc(P,Z){for(var z,ce=-1,xe=P.length;++ce<xe;){var $e=Z(P[ce]);$e!==n&&(z=z===n?$e:z+$e)}return z}function ic(P,Z){for(var z=-1,ce=Array(P);++z<P;)ce[z]=Z(z);return ce}function KB(P,Z){return Xe(Z,function(z){return[z,P[z]]})}function ih(P){return P&&P.slice(0,ch(P)+1).replace(Wl,"")}function Ut(P){return function(Z){return P(Z)}}function sc(P,Z){return Xe(Z,function(z){return P[z]})}function Ii(P,Z){return P.has(Z)}function sh(P,Z){for(var z=-1,ce=P.length;++z<ce&&To(Z,P[z],0)>-1;);return z}function ah(P,Z){for(var z=P.length;z--&&To(Z,P[z],0)>-1;);return z}function YB(P,Z){for(var z=P.length,ce=0;z--;)P[z]===Z&&++ce;return ce}var JB=rc(FB),XB=rc(RB);function QB(P){return"\\"+IB[P]}function eA(P,Z){return P==null?n:P[Z]}function Bo(P){return NB.test(P)}function tA(P){return VB.test(P)}function nA(P){for(var Z,z=[];!(Z=P.next()).done;)z.push(Z.value);return z}function ac(P){var Z=-1,z=Array(P.size);return P.forEach(function(ce,xe){z[++Z]=[xe,ce]}),z}function lh(P,Z){return function(z){return P(Z(z))}}function kr(P,Z){for(var z=-1,ce=P.length,xe=0,$e=[];++z<ce;){var dt=P[z];(dt===Z||dt===m)&&(P[z]=m,$e[xe++]=z)}return $e}function zs(P){var Z=-1,z=Array(P.size);return P.forEach(function(ce){z[++Z]=ce}),z}function rA(P){var Z=-1,z=Array(P.size);return P.forEach(function(ce){z[++Z]=[ce,ce]}),z}function oA(P,Z,z){for(var ce=z-1,xe=P.length;++ce<xe;)if(P[ce]===Z)return ce;return-1}function iA(P,Z,z){for(var ce=z+1;ce--;)if(P[ce]===Z)return ce;return ce}function Ao(P){return Bo(P)?aA(P):UB(P)}function bn(P){return Bo(P)?lA(P):WB(P)}function ch(P){for(var Z=P.length;Z--&&YT.test(P.charAt(Z)););return Z}var sA=rc(MB);function aA(P){for(var Z=Yl.lastIndex=0;Yl.test(P);)++Z;return Z}function lA(P){return P.match(Yl)||[]}function cA(P){return P.match(AB)||[]}var dA=function P(Z){Z=Z==null?gt:No.defaults(gt.Object(),Z,No.pick(gt,PB));var z=Z.Array,ce=Z.Date,xe=Z.Error,$e=Z.Function,dt=Z.Math,je=Z.Object,lc=Z.RegExp,uA=Z.String,Xt=Z.TypeError,$s=z.prototype,pA=$e.prototype,Vo=je.prototype,Zs=Z["__core-js_shared__"],Us=pA.toString,We=Vo.hasOwnProperty,hA=0,dh=function(){var i=/[^.]+$/.exec(Zs&&Zs.keys&&Zs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Ws=Vo.toString,fA=Us.call(je),mA=gt._,gA=lc("^"+Us.call(We).replace(Ul,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hs=jp?Z.Buffer:n,Sr=Z.Symbol,js=Z.Uint8Array,uh=Hs?Hs.allocUnsafe:n,qs=lh(je.getPrototypeOf,je),ph=je.create,hh=Vo.propertyIsEnumerable,Ks=$s.splice,fh=Sr?Sr.isConcatSpreadable:n,Li=Sr?Sr.iterator:n,qr=Sr?Sr.toStringTag:n,Ys=function(){try{var i=Qr(je,"defineProperty");return i({},"",{}),i}catch{}}(),yA=Z.clearTimeout!==gt.clearTimeout&&Z.clearTimeout,vA=ce&&ce.now!==gt.Date.now&&ce.now,_A=Z.setTimeout!==gt.setTimeout&&Z.setTimeout,Js=dt.ceil,Xs=dt.floor,cc=je.getOwnPropertySymbols,CA=Hs?Hs.isBuffer:n,mh=Z.isFinite,wA=$s.join,bA=lh(je.keys,je),ut=dt.max,bt=dt.min,xA=ce.now,kA=Z.parseInt,gh=dt.random,SA=$s.reverse,dc=Qr(Z,"DataView"),Oi=Qr(Z,"Map"),uc=Qr(Z,"Promise"),Po=Qr(Z,"Set"),Gi=Qr(Z,"WeakMap"),zi=Qr(je,"create"),Qs=Gi&&new Gi,Do={},EA=eo(dc),TA=eo(Oi),BA=eo(uc),AA=eo(Po),NA=eo(Gi),ea=Sr?Sr.prototype:n,$i=ea?ea.valueOf:n,yh=ea?ea.toString:n;function v(i){if(nt(i)&&!ke(i)&&!(i instanceof Fe)){if(i instanceof Qt)return i;if(We.call(i,"__wrapped__"))return _f(i)}return new Qt(i)}var Fo=function(){function i(){}return function(a){if(!tt(a))return{};if(ph)return ph(a);i.prototype=a;var c=new i;return i.prototype=n,c}}();function ta(){}function Qt(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}v.templateSettings={escape:UT,evaluate:WT,interpolate:Ep,variable:"",imports:{_:v}},v.prototype=ta.prototype,v.prototype.constructor=v,Qt.prototype=Fo(ta.prototype),Qt.prototype.constructor=Qt;function Fe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ot,this.__views__=[]}function VA(){var i=new Fe(this.__wrapped__);return i.__actions__=Dt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Dt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Dt(this.__views__),i}function PA(){if(this.__filtered__){var i=new Fe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function DA(){var i=this.__wrapped__.value(),a=this.__dir__,c=ke(i),h=a<0,g=c?i.length:0,_=WN(0,g,this.__views__),k=_.start,T=_.end,F=T-k,j=h?T:k-1,K=this.__iteratees__,J=K.length,ne=0,ue=bt(F,this.__takeCount__);if(!c||!h&&g==F&&ue==F)return zh(i,this.__actions__);var ge=[];e:for(;F--&&ne<ue;){j+=a;for(var Ne=-1,ye=i[j];++Ne<J;){var De=K[Ne],Re=De.iteratee,jt=De.type,Vt=Re(ye);if(jt==D)ye=Vt;else if(!Vt){if(jt==x)continue e;break e}}ge[ne++]=ye}return ge}Fe.prototype=Fo(ta.prototype),Fe.prototype.constructor=Fe;function Kr(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var h=i[a];this.set(h[0],h[1])}}function FA(){this.__data__=zi?zi(null):{},this.size=0}function RA(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function MA(i){var a=this.__data__;if(zi){var c=a[i];return c===p?n:c}return We.call(a,i)?a[i]:n}function IA(i){var a=this.__data__;return zi?a[i]!==n:We.call(a,i)}function LA(i,a){var c=this.__data__;return this.size+=this.has(i)?0:1,c[i]=zi&&a===n?p:a,this}Kr.prototype.clear=FA,Kr.prototype.delete=RA,Kr.prototype.get=MA,Kr.prototype.has=IA,Kr.prototype.set=LA;function Wn(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var h=i[a];this.set(h[0],h[1])}}function OA(){this.__data__=[],this.size=0}function GA(i){var a=this.__data__,c=na(a,i);if(c<0)return!1;var h=a.length-1;return c==h?a.pop():Ks.call(a,c,1),--this.size,!0}function zA(i){var a=this.__data__,c=na(a,i);return c<0?n:a[c][1]}function $A(i){return na(this.__data__,i)>-1}function ZA(i,a){var c=this.__data__,h=na(c,i);return h<0?(++this.size,c.push([i,a])):c[h][1]=a,this}Wn.prototype.clear=OA,Wn.prototype.delete=GA,Wn.prototype.get=zA,Wn.prototype.has=$A,Wn.prototype.set=ZA;function Hn(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var h=i[a];this.set(h[0],h[1])}}function UA(){this.size=0,this.__data__={hash:new Kr,map:new(Oi||Wn),string:new Kr}}function WA(i){var a=fa(this,i).delete(i);return this.size-=a?1:0,a}function HA(i){return fa(this,i).get(i)}function jA(i){return fa(this,i).has(i)}function qA(i,a){var c=fa(this,i),h=c.size;return c.set(i,a),this.size+=c.size==h?0:1,this}Hn.prototype.clear=UA,Hn.prototype.delete=WA,Hn.prototype.get=HA,Hn.prototype.has=jA,Hn.prototype.set=qA;function Yr(i){var a=-1,c=i==null?0:i.length;for(this.__data__=new Hn;++a<c;)this.add(i[a])}function KA(i){return this.__data__.set(i,p),this}function YA(i){return this.__data__.has(i)}Yr.prototype.add=Yr.prototype.push=KA,Yr.prototype.has=YA;function xn(i){var a=this.__data__=new Wn(i);this.size=a.size}function JA(){this.__data__=new Wn,this.size=0}function XA(i){var a=this.__data__,c=a.delete(i);return this.size=a.size,c}function QA(i){return this.__data__.get(i)}function eN(i){return this.__data__.has(i)}function tN(i,a){var c=this.__data__;if(c instanceof Wn){var h=c.__data__;if(!Oi||h.length<s-1)return h.push([i,a]),this.size=++c.size,this;c=this.__data__=new Hn(h)}return c.set(i,a),this.size=c.size,this}xn.prototype.clear=JA,xn.prototype.delete=XA,xn.prototype.get=QA,xn.prototype.has=eN,xn.prototype.set=tN;function vh(i,a){var c=ke(i),h=!c&&to(i),g=!c&&!h&&Nr(i),_=!c&&!h&&!g&&Lo(i),k=c||h||g||_,T=k?ic(i.length,uA):[],F=T.length;for(var j in i)(a||We.call(i,j))&&!(k&&(j=="length"||g&&(j=="offset"||j=="parent")||_&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Yn(j,F)))&&T.push(j);return T}function _h(i){var a=i.length;return a?i[bc(0,a-1)]:n}function nN(i,a){return ma(Dt(i),Jr(a,0,i.length))}function rN(i){return ma(Dt(i))}function pc(i,a,c){(c!==n&&!kn(i[a],c)||c===n&&!(a in i))&&jn(i,a,c)}function Zi(i,a,c){var h=i[a];(!(We.call(i,a)&&kn(h,c))||c===n&&!(a in i))&&jn(i,a,c)}function na(i,a){for(var c=i.length;c--;)if(kn(i[c][0],a))return c;return-1}function oN(i,a,c,h){return Er(i,function(g,_,k){a(h,g,c(g),k)}),h}function Ch(i,a){return i&&Rn(a,mt(a),i)}function iN(i,a){return i&&Rn(a,Rt(a),i)}function jn(i,a,c){a=="__proto__"&&Ys?Ys(i,a,{configurable:!0,enumerable:!0,value:c,writable:!0}):i[a]=c}function hc(i,a){for(var c=-1,h=a.length,g=z(h),_=i==null;++c<h;)g[c]=_?n:jc(i,a[c]);return g}function Jr(i,a,c){return i===i&&(c!==n&&(i=i<=c?i:c),a!==n&&(i=i>=a?i:a)),i}function en(i,a,c,h,g,_){var k,T=a&y,F=a&E,j=a&S;if(c&&(k=g?c(i,h,g,_):c(i)),k!==n)return k;if(!tt(i))return i;var K=ke(i);if(K){if(k=jN(i),!T)return Dt(i,k)}else{var J=xt(i),ne=J==Fs||J==bp;if(Nr(i))return Uh(i,T);if(J==Un||J==Zn||ne&&!g){if(k=F||ne?{}:df(i),!T)return F?MN(i,iN(k,i)):RN(i,Ch(k,i))}else{if(!qe[J])return g?i:{};k=qN(i,J,T)}}_||(_=new xn);var ue=_.get(i);if(ue)return ue;_.set(i,k),Of(i)?i.forEach(function(ye){k.add(en(ye,a,c,ye,i,_))}):If(i)&&i.forEach(function(ye,De){k.set(De,en(ye,a,c,De,i,_))});var ge=j?F?Dc:Pc:F?Rt:mt,Ne=K?n:ge(i);return Jt(Ne||i,function(ye,De){Ne&&(De=ye,ye=i[De]),Zi(k,De,en(ye,a,c,De,i,_))}),k}function sN(i){var a=mt(i);return function(c){return wh(c,i,a)}}function wh(i,a,c){var h=c.length;if(i==null)return!h;for(i=je(i);h--;){var g=c[h],_=a[g],k=i[g];if(k===n&&!(g in i)||!_(k))return!1}return!0}function bh(i,a,c){if(typeof i!="function")throw new Xt(d);return Yi(function(){i.apply(n,c)},a)}function Ui(i,a,c,h){var g=-1,_=Os,k=!0,T=i.length,F=[],j=a.length;if(!T)return F;c&&(a=Xe(a,Ut(c))),h?(_=Ql,k=!1):a.length>=s&&(_=Ii,k=!1,a=new Yr(a));e:for(;++g<T;){var K=i[g],J=c==null?K:c(K);if(K=h||K!==0?K:0,k&&J===J){for(var ne=j;ne--;)if(a[ne]===J)continue e;F.push(K)}else _(a,J,h)||F.push(K)}return F}var Er=Kh(Fn),xh=Kh(mc,!0);function aN(i,a){var c=!0;return Er(i,function(h,g,_){return c=!!a(h,g,_),c}),c}function ra(i,a,c){for(var h=-1,g=i.length;++h<g;){var _=i[h],k=a(_);if(k!=null&&(T===n?k===k&&!Ht(k):c(k,T)))var T=k,F=_}return F}function lN(i,a,c,h){var g=i.length;for(c=Te(c),c<0&&(c=-c>g?0:g+c),h=h===n||h>g?g:Te(h),h<0&&(h+=g),h=c>h?0:zf(h);c<h;)i[c++]=a;return i}function kh(i,a){var c=[];return Er(i,function(h,g,_){a(h,g,_)&&c.push(h)}),c}function yt(i,a,c,h,g){var _=-1,k=i.length;for(c||(c=YN),g||(g=[]);++_<k;){var T=i[_];a>0&&c(T)?a>1?yt(T,a-1,c,h,g):xr(g,T):h||(g[g.length]=T)}return g}var fc=Yh(),Sh=Yh(!0);function Fn(i,a){return i&&fc(i,a,mt)}function mc(i,a){return i&&Sh(i,a,mt)}function oa(i,a){return br(a,function(c){return Jn(i[c])})}function Xr(i,a){a=Br(a,i);for(var c=0,h=a.length;i!=null&&c<h;)i=i[Mn(a[c++])];return c&&c==h?i:n}function Eh(i,a,c){var h=a(i);return ke(i)?h:xr(h,c(i))}function At(i){return i==null?i===n?IT:RT:qr&&qr in je(i)?UN(i):rV(i)}function gc(i,a){return i>a}function cN(i,a){return i!=null&&We.call(i,a)}function dN(i,a){return i!=null&&a in je(i)}function uN(i,a,c){return i>=bt(a,c)&&i<ut(a,c)}function yc(i,a,c){for(var h=c?Ql:Os,g=i[0].length,_=i.length,k=_,T=z(_),F=1/0,j=[];k--;){var K=i[k];k&&a&&(K=Xe(K,Ut(a))),F=bt(K.length,F),T[k]=!c&&(a||g>=120&&K.length>=120)?new Yr(k&&K):n}K=i[0];var J=-1,ne=T[0];e:for(;++J<g&&j.length<F;){var ue=K[J],ge=a?a(ue):ue;if(ue=c||ue!==0?ue:0,!(ne?Ii(ne,ge):h(j,ge,c))){for(k=_;--k;){var Ne=T[k];if(!(Ne?Ii(Ne,ge):h(i[k],ge,c)))continue e}ne&&ne.push(ge),j.push(ue)}}return j}function pN(i,a,c,h){return Fn(i,function(g,_,k){a(h,c(g),_,k)}),h}function Wi(i,a,c){a=Br(a,i),i=ff(i,a);var h=i==null?i:i[Mn(nn(a))];return h==null?n:Zt(h,i,c)}function Th(i){return nt(i)&&At(i)==Zn}function hN(i){return nt(i)&&At(i)==Mi}function fN(i){return nt(i)&&At(i)==wr}function Hi(i,a,c,h,g){return i===a?!0:i==null||a==null||!nt(i)&&!nt(a)?i!==i&&a!==a:mN(i,a,c,h,Hi,g)}function mN(i,a,c,h,g,_){var k=ke(i),T=ke(a),F=k?Hr:xt(i),j=T?Hr:xt(a);F=F==Zn?Un:F,j=j==Zn?Un:j;var K=F==Un,J=j==Un,ne=F==j;if(ne&&Nr(i)){if(!Nr(a))return!1;k=!0,K=!1}if(ne&&!K)return _||(_=new xn),k||Lo(i)?af(i,a,c,h,g,_):$N(i,a,F,c,h,g,_);if(!(c&N)){var ue=K&&We.call(i,"__wrapped__"),ge=J&&We.call(a,"__wrapped__");if(ue||ge){var Ne=ue?i.value():i,ye=ge?a.value():a;return _||(_=new xn),g(Ne,ye,c,h,_)}}return ne?(_||(_=new xn),ZN(i,a,c,h,g,_)):!1}function gN(i){return nt(i)&&xt(i)==Cn}function vc(i,a,c,h){var g=c.length,_=g,k=!h;if(i==null)return!_;for(i=je(i);g--;){var T=c[g];if(k&&T[2]?T[1]!==i[T[0]]:!(T[0]in i))return!1}for(;++g<_;){T=c[g];var F=T[0],j=i[F],K=T[1];if(k&&T[2]){if(j===n&&!(F in i))return!1}else{var J=new xn;if(h)var ne=h(j,K,F,i,a,J);if(!(ne===n?Hi(K,j,N|L,h,J):ne))return!1}}return!0}function Bh(i){if(!tt(i)||XN(i))return!1;var a=Jn(i)?gA:sB;return a.test(eo(i))}function yN(i){return nt(i)&&At(i)==Di}function vN(i){return nt(i)&&xt(i)==wn}function _N(i){return nt(i)&&wa(i.length)&&!!Ye[At(i)]}function Ah(i){return typeof i=="function"?i:i==null?Mt:typeof i=="object"?ke(i)?Ph(i[0],i[1]):Vh(i):Xf(i)}function _c(i){if(!Ki(i))return bA(i);var a=[];for(var c in je(i))We.call(i,c)&&c!="constructor"&&a.push(c);return a}function CN(i){if(!tt(i))return nV(i);var a=Ki(i),c=[];for(var h in i)h=="constructor"&&(a||!We.call(i,h))||c.push(h);return c}function Cc(i,a){return i<a}function Nh(i,a){var c=-1,h=Ft(i)?z(i.length):[];return Er(i,function(g,_,k){h[++c]=a(g,_,k)}),h}function Vh(i){var a=Rc(i);return a.length==1&&a[0][2]?pf(a[0][0],a[0][1]):function(c){return c===i||vc(c,i,a)}}function Ph(i,a){return Ic(i)&&uf(a)?pf(Mn(i),a):function(c){var h=jc(c,i);return h===n&&h===a?qc(c,i):Hi(a,h,N|L)}}function ia(i,a,c,h,g){i!==a&&fc(a,function(_,k){if(g||(g=new xn),tt(_))wN(i,a,k,c,ia,h,g);else{var T=h?h(Oc(i,k),_,k+"",i,a,g):n;T===n&&(T=_),pc(i,k,T)}},Rt)}function wN(i,a,c,h,g,_,k){var T=Oc(i,c),F=Oc(a,c),j=k.get(F);if(j){pc(i,c,j);return}var K=_?_(T,F,c+"",i,a,k):n,J=K===n;if(J){var ne=ke(F),ue=!ne&&Nr(F),ge=!ne&&!ue&&Lo(F);K=F,ne||ue||ge?ke(T)?K=T:it(T)?K=Dt(T):ue?(J=!1,K=Uh(F,!0)):ge?(J=!1,K=Wh(F,!0)):K=[]:Ji(F)||to(F)?(K=T,to(T)?K=$f(T):(!tt(T)||Jn(T))&&(K=df(F))):J=!1}J&&(k.set(F,K),g(K,F,h,_,k),k.delete(F)),pc(i,c,K)}function Dh(i,a){var c=i.length;if(c)return a+=a<0?c:0,Yn(a,c)?i[a]:n}function Fh(i,a,c){a.length?a=Xe(a,function(_){return ke(_)?function(k){return Xr(k,_.length===1?_[0]:_)}:_}):a=[Mt];var h=-1;a=Xe(a,Ut(fe()));var g=Nh(i,function(_,k,T){var F=Xe(a,function(j){return j(_)});return{criteria:F,index:++h,value:_}});return qB(g,function(_,k){return FN(_,k,c)})}function bN(i,a){return Rh(i,a,function(c,h){return qc(i,h)})}function Rh(i,a,c){for(var h=-1,g=a.length,_={};++h<g;){var k=a[h],T=Xr(i,k);c(T,k)&&ji(_,Br(k,i),T)}return _}function xN(i){return function(a){return Xr(a,i)}}function wc(i,a,c,h){var g=h?jB:To,_=-1,k=a.length,T=i;for(i===a&&(a=Dt(a)),c&&(T=Xe(i,Ut(c)));++_<k;)for(var F=0,j=a[_],K=c?c(j):j;(F=g(T,K,F,h))>-1;)T!==i&&Ks.call(T,F,1),Ks.call(i,F,1);return i}function Mh(i,a){for(var c=i?a.length:0,h=c-1;c--;){var g=a[c];if(c==h||g!==_){var _=g;Yn(g)?Ks.call(i,g,1):Sc(i,g)}}return i}function bc(i,a){return i+Xs(gh()*(a-i+1))}function kN(i,a,c,h){for(var g=-1,_=ut(Js((a-i)/(c||1)),0),k=z(_);_--;)k[h?_:++g]=i,i+=c;return k}function xc(i,a){var c="";if(!i||a<1||a>se)return c;do a%2&&(c+=i),a=Xs(a/2),a&&(i+=i);while(a);return c}function Ve(i,a){return Gc(hf(i,a,Mt),i+"")}function SN(i){return _h(Oo(i))}function EN(i,a){var c=Oo(i);return ma(c,Jr(a,0,c.length))}function ji(i,a,c,h){if(!tt(i))return i;a=Br(a,i);for(var g=-1,_=a.length,k=_-1,T=i;T!=null&&++g<_;){var F=Mn(a[g]),j=c;if(F==="__proto__"||F==="constructor"||F==="prototype")return i;if(g!=k){var K=T[F];j=h?h(K,F,T):n,j===n&&(j=tt(K)?K:Yn(a[g+1])?[]:{})}Zi(T,F,j),T=T[F]}return i}var Ih=Qs?function(i,a){return Qs.set(i,a),i}:Mt,TN=Ys?function(i,a){return Ys(i,"toString",{configurable:!0,enumerable:!1,value:Yc(a),writable:!0})}:Mt;function BN(i){return ma(Oo(i))}function tn(i,a,c){var h=-1,g=i.length;a<0&&(a=-a>g?0:g+a),c=c>g?g:c,c<0&&(c+=g),g=a>c?0:c-a>>>0,a>>>=0;for(var _=z(g);++h<g;)_[h]=i[h+a];return _}function AN(i,a){var c;return Er(i,function(h,g,_){return c=a(h,g,_),!c}),!!c}function sa(i,a,c){var h=0,g=i==null?h:i.length;if(typeof a=="number"&&a===a&&g<=Dn){for(;h<g;){var _=h+g>>>1,k=i[_];k!==null&&!Ht(k)&&(c?k<=a:k<a)?h=_+1:g=_}return g}return kc(i,a,Mt,c)}function kc(i,a,c,h){var g=0,_=i==null?0:i.length;if(_===0)return 0;a=c(a);for(var k=a!==a,T=a===null,F=Ht(a),j=a===n;g<_;){var K=Xs((g+_)/2),J=c(i[K]),ne=J!==n,ue=J===null,ge=J===J,Ne=Ht(J);if(k)var ye=h||ge;else j?ye=ge&&(h||ne):T?ye=ge&&ne&&(h||!ue):F?ye=ge&&ne&&!ue&&(h||!Ne):ue||Ne?ye=!1:ye=h?J<=a:J<a;ye?g=K+1:_=K}return bt(_,_n)}function Lh(i,a){for(var c=-1,h=i.length,g=0,_=[];++c<h;){var k=i[c],T=a?a(k):k;if(!c||!kn(T,F)){var F=T;_[g++]=k===0?0:k}}return _}function Oh(i){return typeof i=="number"?i:Ht(i)?He:+i}function Wt(i){if(typeof i=="string")return i;if(ke(i))return Xe(i,Wt)+"";if(Ht(i))return yh?yh.call(i):"";var a=i+"";return a=="0"&&1/i==-re?"-0":a}function Tr(i,a,c){var h=-1,g=Os,_=i.length,k=!0,T=[],F=T;if(c)k=!1,g=Ql;else if(_>=s){var j=a?null:GN(i);if(j)return zs(j);k=!1,g=Ii,F=new Yr}else F=a?[]:T;e:for(;++h<_;){var K=i[h],J=a?a(K):K;if(K=c||K!==0?K:0,k&&J===J){for(var ne=F.length;ne--;)if(F[ne]===J)continue e;a&&F.push(J),T.push(K)}else g(F,J,c)||(F!==T&&F.push(J),T.push(K))}return T}function Sc(i,a){return a=Br(a,i),i=ff(i,a),i==null||delete i[Mn(nn(a))]}function Gh(i,a,c,h){return ji(i,a,c(Xr(i,a)),h)}function aa(i,a,c,h){for(var g=i.length,_=h?g:-1;(h?_--:++_<g)&&a(i[_],_,i););return c?tn(i,h?0:_,h?_+1:g):tn(i,h?_+1:0,h?g:_)}function zh(i,a){var c=i;return c instanceof Fe&&(c=c.value()),ec(a,function(h,g){return g.func.apply(g.thisArg,xr([h],g.args))},c)}function Ec(i,a,c){var h=i.length;if(h<2)return h?Tr(i[0]):[];for(var g=-1,_=z(h);++g<h;)for(var k=i[g],T=-1;++T<h;)T!=g&&(_[g]=Ui(_[g]||k,i[T],a,c));return Tr(yt(_,1),a,c)}function $h(i,a,c){for(var h=-1,g=i.length,_=a.length,k={};++h<g;){var T=h<_?a[h]:n;c(k,i[h],T)}return k}function Tc(i){return it(i)?i:[]}function Bc(i){return typeof i=="function"?i:Mt}function Br(i,a){return ke(i)?i:Ic(i,a)?[i]:vf(Ue(i))}var NN=Ve;function Ar(i,a,c){var h=i.length;return c=c===n?h:c,!a&&c>=h?i:tn(i,a,c)}var Zh=yA||function(i){return gt.clearTimeout(i)};function Uh(i,a){if(a)return i.slice();var c=i.length,h=uh?uh(c):new i.constructor(c);return i.copy(h),h}function Ac(i){var a=new i.constructor(i.byteLength);return new js(a).set(new js(i)),a}function VN(i,a){var c=a?Ac(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.byteLength)}function PN(i){var a=new i.constructor(i.source,Tp.exec(i));return a.lastIndex=i.lastIndex,a}function DN(i){return $i?je($i.call(i)):{}}function Wh(i,a){var c=a?Ac(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.length)}function Hh(i,a){if(i!==a){var c=i!==n,h=i===null,g=i===i,_=Ht(i),k=a!==n,T=a===null,F=a===a,j=Ht(a);if(!T&&!j&&!_&&i>a||_&&k&&F&&!T&&!j||h&&k&&F||!c&&F||!g)return 1;if(!h&&!_&&!j&&i<a||j&&c&&g&&!h&&!_||T&&c&&g||!k&&g||!F)return-1}return 0}function FN(i,a,c){for(var h=-1,g=i.criteria,_=a.criteria,k=g.length,T=c.length;++h<k;){var F=Hh(g[h],_[h]);if(F){if(h>=T)return F;var j=c[h];return F*(j=="desc"?-1:1)}}return i.index-a.index}function jh(i,a,c,h){for(var g=-1,_=i.length,k=c.length,T=-1,F=a.length,j=ut(_-k,0),K=z(F+j),J=!h;++T<F;)K[T]=a[T];for(;++g<k;)(J||g<_)&&(K[c[g]]=i[g]);for(;j--;)K[T++]=i[g++];return K}function qh(i,a,c,h){for(var g=-1,_=i.length,k=-1,T=c.length,F=-1,j=a.length,K=ut(_-T,0),J=z(K+j),ne=!h;++g<K;)J[g]=i[g];for(var ue=g;++F<j;)J[ue+F]=a[F];for(;++k<T;)(ne||g<_)&&(J[ue+c[k]]=i[g++]);return J}function Dt(i,a){var c=-1,h=i.length;for(a||(a=z(h));++c<h;)a[c]=i[c];return a}function Rn(i,a,c,h){var g=!c;c||(c={});for(var _=-1,k=a.length;++_<k;){var T=a[_],F=h?h(c[T],i[T],T,c,i):n;F===n&&(F=i[T]),g?jn(c,T,F):Zi(c,T,F)}return c}function RN(i,a){return Rn(i,Mc(i),a)}function MN(i,a){return Rn(i,lf(i),a)}function la(i,a){return function(c,h){var g=ke(c)?zB:oN,_=a?a():{};return g(c,i,fe(h,2),_)}}function Ro(i){return Ve(function(a,c){var h=-1,g=c.length,_=g>1?c[g-1]:n,k=g>2?c[2]:n;for(_=i.length>3&&typeof _=="function"?(g--,_):n,k&&Nt(c[0],c[1],k)&&(_=g<3?n:_,g=1),a=je(a);++h<g;){var T=c[h];T&&i(a,T,h,_)}return a})}function Kh(i,a){return function(c,h){if(c==null)return c;if(!Ft(c))return i(c,h);for(var g=c.length,_=a?g:-1,k=je(c);(a?_--:++_<g)&&h(k[_],_,k)!==!1;);return c}}function Yh(i){return function(a,c,h){for(var g=-1,_=je(a),k=h(a),T=k.length;T--;){var F=k[i?T:++g];if(c(_[F],F,_)===!1)break}return a}}function IN(i,a,c){var h=a&O,g=qi(i);function _(){var k=this&&this!==gt&&this instanceof _?g:i;return k.apply(h?c:this,arguments)}return _}function Jh(i){return function(a){a=Ue(a);var c=Bo(a)?bn(a):n,h=c?c[0]:a.charAt(0),g=c?Ar(c,1).join(""):a.slice(1);return h[i]()+g}}function Mo(i){return function(a){return ec(Yf(Kf(a).replace(TB,"")),i,"")}}function qi(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var c=Fo(i.prototype),h=i.apply(c,a);return tt(h)?h:c}}function LN(i,a,c){var h=qi(i);function g(){for(var _=arguments.length,k=z(_),T=_,F=Io(g);T--;)k[T]=arguments[T];var j=_<3&&k[0]!==F&&k[_-1]!==F?[]:kr(k,F);if(_-=j.length,_<c)return nf(i,a,ca,g.placeholder,n,k,j,n,n,c-_);var K=this&&this!==gt&&this instanceof g?h:i;return Zt(K,this,k)}return g}function Xh(i){return function(a,c,h){var g=je(a);if(!Ft(a)){var _=fe(c,3);a=mt(a),c=function(T){return _(g[T],T,g)}}var k=i(a,c,h);return k>-1?g[_?a[k]:k]:n}}function Qh(i){return Kn(function(a){var c=a.length,h=c,g=Qt.prototype.thru;for(i&&a.reverse();h--;){var _=a[h];if(typeof _!="function")throw new Xt(d);if(g&&!k&&ha(_)=="wrapper")var k=new Qt([],!0)}for(h=k?h:c;++h<c;){_=a[h];var T=ha(_),F=T=="wrapper"?Fc(_):n;F&&Lc(F[0])&&F[1]==(U|H|G|R)&&!F[4].length&&F[9]==1?k=k[ha(F[0])].apply(k,F[3]):k=_.length==1&&Lc(_)?k[T]():k.thru(_)}return function(){var j=arguments,K=j[0];if(k&&j.length==1&&ke(K))return k.plant(K).value();for(var J=0,ne=c?a[J].apply(this,j):K;++J<c;)ne=a[J].call(this,ne);return ne}})}function ca(i,a,c,h,g,_,k,T,F,j){var K=a&U,J=a&O,ne=a&C,ue=a&(H|X),ge=a&V,Ne=ne?n:qi(i);function ye(){for(var De=arguments.length,Re=z(De),jt=De;jt--;)Re[jt]=arguments[jt];if(ue)var Vt=Io(ye),qt=YB(Re,Vt);if(h&&(Re=jh(Re,h,g,ue)),_&&(Re=qh(Re,_,k,ue)),De-=qt,ue&&De<j){var st=kr(Re,Vt);return nf(i,a,ca,ye.placeholder,c,Re,st,T,F,j-De)}var Sn=J?c:this,Qn=ne?Sn[i]:i;return De=Re.length,T?Re=oV(Re,T):ge&&De>1&&Re.reverse(),K&&F<De&&(Re.length=F),this&&this!==gt&&this instanceof ye&&(Qn=Ne||qi(Qn)),Qn.apply(Sn,Re)}return ye}function ef(i,a){return function(c,h){return pN(c,i,a(h),{})}}function da(i,a){return function(c,h){var g;if(c===n&&h===n)return a;if(c!==n&&(g=c),h!==n){if(g===n)return h;typeof c=="string"||typeof h=="string"?(c=Wt(c),h=Wt(h)):(c=Oh(c),h=Oh(h)),g=i(c,h)}return g}}function Nc(i){return Kn(function(a){return a=Xe(a,Ut(fe())),Ve(function(c){var h=this;return i(a,function(g){return Zt(g,h,c)})})})}function ua(i,a){a=a===n?" ":Wt(a);var c=a.length;if(c<2)return c?xc(a,i):a;var h=xc(a,Js(i/Ao(a)));return Bo(a)?Ar(bn(h),0,i).join(""):h.slice(0,i)}function ON(i,a,c,h){var g=a&O,_=qi(i);function k(){for(var T=-1,F=arguments.length,j=-1,K=h.length,J=z(K+F),ne=this&&this!==gt&&this instanceof k?_:i;++j<K;)J[j]=h[j];for(;F--;)J[j++]=arguments[++T];return Zt(ne,g?c:this,J)}return k}function tf(i){return function(a,c,h){return h&&typeof h!="number"&&Nt(a,c,h)&&(c=h=n),a=Xn(a),c===n?(c=a,a=0):c=Xn(c),h=h===n?a<c?1:-1:Xn(h),kN(a,c,h,i)}}function pa(i){return function(a,c){return typeof a=="string"&&typeof c=="string"||(a=rn(a),c=rn(c)),i(a,c)}}function nf(i,a,c,h,g,_,k,T,F,j){var K=a&H,J=K?k:n,ne=K?n:k,ue=K?_:n,ge=K?n:_;a|=K?G:Y,a&=~(K?Y:G),a&A||(a&=~(O|C));var Ne=[i,a,g,ue,J,ge,ne,T,F,j],ye=c.apply(n,Ne);return Lc(i)&&mf(ye,Ne),ye.placeholder=h,gf(ye,i,a)}function Vc(i){var a=dt[i];return function(c,h){if(c=rn(c),h=h==null?0:bt(Te(h),292),h&&mh(c)){var g=(Ue(c)+"e").split("e"),_=a(g[0]+"e"+(+g[1]+h));return g=(Ue(_)+"e").split("e"),+(g[0]+"e"+(+g[1]-h))}return a(c)}}var GN=Po&&1/zs(new Po([,-0]))[1]==re?function(i){return new Po(i)}:Qc;function rf(i){return function(a){var c=xt(a);return c==Cn?ac(a):c==wn?rA(a):KB(a,i(a))}}function qn(i,a,c,h,g,_,k,T){var F=a&C;if(!F&&typeof i!="function")throw new Xt(d);var j=h?h.length:0;if(j||(a&=~(G|Y),h=g=n),k=k===n?k:ut(Te(k),0),T=T===n?T:Te(T),j-=g?g.length:0,a&Y){var K=h,J=g;h=g=n}var ne=F?n:Fc(i),ue=[i,a,c,h,g,K,J,_,k,T];if(ne&&tV(ue,ne),i=ue[0],a=ue[1],c=ue[2],h=ue[3],g=ue[4],T=ue[9]=ue[9]===n?F?0:i.length:ut(ue[9]-j,0),!T&&a&(H|X)&&(a&=~(H|X)),!a||a==O)var ge=IN(i,a,c);else a==H||a==X?ge=LN(i,a,T):(a==G||a==(O|G))&&!g.length?ge=ON(i,a,c,h):ge=ca.apply(n,ue);var Ne=ne?Ih:mf;return gf(Ne(ge,ue),i,a)}function of(i,a,c,h){return i===n||kn(i,Vo[c])&&!We.call(h,c)?a:i}function sf(i,a,c,h,g,_){return tt(i)&&tt(a)&&(_.set(a,i),ia(i,a,n,sf,_),_.delete(a)),i}function zN(i){return Ji(i)?n:i}function af(i,a,c,h,g,_){var k=c&N,T=i.length,F=a.length;if(T!=F&&!(k&&F>T))return!1;var j=_.get(i),K=_.get(a);if(j&&K)return j==a&&K==i;var J=-1,ne=!0,ue=c&L?new Yr:n;for(_.set(i,a),_.set(a,i);++J<T;){var ge=i[J],Ne=a[J];if(h)var ye=k?h(Ne,ge,J,a,i,_):h(ge,Ne,J,i,a,_);if(ye!==n){if(ye)continue;ne=!1;break}if(ue){if(!tc(a,function(De,Re){if(!Ii(ue,Re)&&(ge===De||g(ge,De,c,h,_)))return ue.push(Re)})){ne=!1;break}}else if(!(ge===Ne||g(ge,Ne,c,h,_))){ne=!1;break}}return _.delete(i),_.delete(a),ne}function $N(i,a,c,h,g,_,k){switch(c){case So:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case Mi:return!(i.byteLength!=a.byteLength||!_(new js(i),new js(a)));case ze:case wr:case Pi:return kn(+i,+a);case Ds:return i.name==a.name&&i.message==a.message;case Di:case Fi:return i==a+"";case Cn:var T=ac;case wn:var F=h&N;if(T||(T=zs),i.size!=a.size&&!F)return!1;var j=k.get(i);if(j)return j==a;h|=L,k.set(i,a);var K=af(T(i),T(a),h,g,_,k);return k.delete(i),K;case Rs:if($i)return $i.call(i)==$i.call(a)}return!1}function ZN(i,a,c,h,g,_){var k=c&N,T=Pc(i),F=T.length,j=Pc(a),K=j.length;if(F!=K&&!k)return!1;for(var J=F;J--;){var ne=T[J];if(!(k?ne in a:We.call(a,ne)))return!1}var ue=_.get(i),ge=_.get(a);if(ue&&ge)return ue==a&&ge==i;var Ne=!0;_.set(i,a),_.set(a,i);for(var ye=k;++J<F;){ne=T[J];var De=i[ne],Re=a[ne];if(h)var jt=k?h(Re,De,ne,a,i,_):h(De,Re,ne,i,a,_);if(!(jt===n?De===Re||g(De,Re,c,h,_):jt)){Ne=!1;break}ye||(ye=ne=="constructor")}if(Ne&&!ye){var Vt=i.constructor,qt=a.constructor;Vt!=qt&&"constructor"in i&&"constructor"in a&&!(typeof Vt=="function"&&Vt instanceof Vt&&typeof qt=="function"&&qt instanceof qt)&&(Ne=!1)}return _.delete(i),_.delete(a),Ne}function Kn(i){return Gc(hf(i,n,bf),i+"")}function Pc(i){return Eh(i,mt,Mc)}function Dc(i){return Eh(i,Rt,lf)}var Fc=Qs?function(i){return Qs.get(i)}:Qc;function ha(i){for(var a=i.name+"",c=Do[a],h=We.call(Do,a)?c.length:0;h--;){var g=c[h],_=g.func;if(_==null||_==i)return g.name}return a}function Io(i){var a=We.call(v,"placeholder")?v:i;return a.placeholder}function fe(){var i=v.iteratee||Jc;return i=i===Jc?Ah:i,arguments.length?i(arguments[0],arguments[1]):i}function fa(i,a){var c=i.__data__;return JN(a)?c[typeof a=="string"?"string":"hash"]:c.map}function Rc(i){for(var a=mt(i),c=a.length;c--;){var h=a[c],g=i[h];a[c]=[h,g,uf(g)]}return a}function Qr(i,a){var c=eA(i,a);return Bh(c)?c:n}function UN(i){var a=We.call(i,qr),c=i[qr];try{i[qr]=n;var h=!0}catch{}var g=Ws.call(i);return h&&(a?i[qr]=c:delete i[qr]),g}var Mc=cc?function(i){return i==null?[]:(i=je(i),br(cc(i),function(a){return hh.call(i,a)}))}:ed,lf=cc?function(i){for(var a=[];i;)xr(a,Mc(i)),i=qs(i);return a}:ed,xt=At;(dc&&xt(new dc(new ArrayBuffer(1)))!=So||Oi&&xt(new Oi)!=Cn||uc&&xt(uc.resolve())!=xp||Po&&xt(new Po)!=wn||Gi&&xt(new Gi)!=Ri)&&(xt=function(i){var a=At(i),c=a==Un?i.constructor:n,h=c?eo(c):"";if(h)switch(h){case EA:return So;case TA:return Cn;case BA:return xp;case AA:return wn;case NA:return Ri}return a});function WN(i,a,c){for(var h=-1,g=c.length;++h<g;){var _=c[h],k=_.size;switch(_.type){case"drop":i+=k;break;case"dropRight":a-=k;break;case"take":a=bt(a,i+k);break;case"takeRight":i=ut(i,a-k);break}}return{start:i,end:a}}function HN(i){var a=i.match(XT);return a?a[1].split(QT):[]}function cf(i,a,c){a=Br(a,i);for(var h=-1,g=a.length,_=!1;++h<g;){var k=Mn(a[h]);if(!(_=i!=null&&c(i,k)))break;i=i[k]}return _||++h!=g?_:(g=i==null?0:i.length,!!g&&wa(g)&&Yn(k,g)&&(ke(i)||to(i)))}function jN(i){var a=i.length,c=new i.constructor(a);return a&&typeof i[0]=="string"&&We.call(i,"index")&&(c.index=i.index,c.input=i.input),c}function df(i){return typeof i.constructor=="function"&&!Ki(i)?Fo(qs(i)):{}}function qN(i,a,c){var h=i.constructor;switch(a){case Mi:return Ac(i);case ze:case wr:return new h(+i);case So:return VN(i,c);case Rl:case Ml:case Il:case Ll:case Ol:case Gl:case zl:case $l:case Zl:return Wh(i,c);case Cn:return new h;case Pi:case Fi:return new h(i);case Di:return PN(i);case wn:return new h;case Rs:return DN(i)}}function KN(i,a){var c=a.length;if(!c)return i;var h=c-1;return a[h]=(c>1?"& ":"")+a[h],a=a.join(c>2?", ":" "),i.replace(JT,`{
73
73
  /* [wrapped with `+a+`] */
74
- `)}function qN(i){return ke(i)||to(i)||!!(fh&&i&&i[fh])}function Yn(i,a){var c=typeof i;return a=a??se,!!a&&(c=="number"||c!="symbol"&&sB.test(i))&&i>-1&&i%1==0&&i<a}function Nt(i,a,c){if(!tt(c))return!1;var h=typeof a;return(h=="number"?Ft(c)&&Yn(a,c.length):h=="string"&&a in c)?kn(c[a],i):!1}function Ic(i,a){if(ke(i))return!1;var c=typeof i;return c=="number"||c=="symbol"||c=="boolean"||i==null||Ht(i)?!0:WT.test(i)||!UT.test(i)||a!=null&&i in je(a)}function KN(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function Lc(i){var a=ha(i),c=v[a];if(typeof c!="function"||!(a in Fe.prototype))return!1;if(i===c)return!0;var h=Fc(c);return!!h&&i===h[0]}function YN(i){return!!dh&&dh in i}var JN=Zs?Jn:td;function Ki(i){var a=i&&i.constructor,c=typeof a=="function"&&a.prototype||Vo;return i===c}function uf(i){return i===i&&!tt(i)}function pf(i,a){return function(c){return c==null?!1:c[i]===a&&(a!==n||i in je(c))}}function XN(i){var a=_a(i,function(h){return c.size===f&&c.clear(),h}),c=a.cache;return a}function QN(i,a){var c=i[1],h=a[1],g=c|h,_=g<(O|C|U),k=h==U&&c==H||h==U&&c==R&&i[7].length<=a[8]||h==(U|R)&&a[7].length<=a[8]&&c==H;if(!(_||k))return i;h&O&&(i[2]=a[2],g|=c&O?0:A);var T=a[3];if(T){var F=i[3];i[3]=F?jh(F,T,a[4]):T,i[4]=F?kr(i[3],m):a[4]}return T=a[5],T&&(F=i[5],i[5]=F?qh(F,T,a[6]):T,i[6]=F?kr(i[5],m):a[6]),T=a[7],T&&(i[7]=T),h&U&&(i[8]=i[8]==null?a[8]:bt(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=g,i}function eV(i){var a=[];if(i!=null)for(var c in je(i))a.push(c);return a}function tV(i){return Ws.call(i)}function hf(i,a,c){return a=ut(a===n?i.length-1:a,0),function(){for(var h=arguments,g=-1,_=ut(h.length-a,0),k=z(_);++g<_;)k[g]=h[a+g];g=-1;for(var T=z(a+1);++g<a;)T[g]=h[g];return T[a]=c(k),Zt(i,this,T)}}function ff(i,a){return a.length<2?i:Xr(i,tn(a,0,-1))}function nV(i,a){for(var c=i.length,h=bt(a.length,c),g=Dt(i);h--;){var _=a[h];i[h]=Yn(_,c)?g[_]:n}return i}function Oc(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var mf=yf(Ih),Yi=yA||function(i,a){return gt.setTimeout(i,a)},Gc=yf(SN);function gf(i,a,c){var h=a+"";return Gc(i,jN(h,rV(UN(h),c)))}function yf(i){var a=0,c=0;return function(){var h=wA(),g=B-(h-c);if(c=h,g>0){if(++a>=q)return arguments[0]}else a=0;return i.apply(n,arguments)}}function ma(i,a){var c=-1,h=i.length,g=h-1;for(a=a===n?h:a;++c<a;){var _=bc(c,g),k=i[_];i[_]=i[c],i[c]=k}return i.length=a,i}var vf=XN(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(HT,function(c,h,g,_){a.push(g?_.replace(eB,"$1"):h||c)}),a});function Mn(i){if(typeof i=="string"||Ht(i))return i;var a=i+"";return a=="0"&&1/i==-re?"-0":a}function eo(i){if(i!=null){try{return Us.call(i)}catch{}try{return i+""}catch{}}return""}function rV(i,a){return Jt(Cr,function(c){var h="_."+c[0];a&c[1]&&!Os(i,h)&&i.push(h)}),i.sort()}function _f(i){if(i instanceof Fe)return i.clone();var a=new Qt(i.__wrapped__,i.__chain__);return a.__actions__=Dt(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function oV(i,a,c){(c?Nt(i,a,c):a===n)?a=1:a=ut(Te(a),0);var h=i==null?0:i.length;if(!h||a<1)return[];for(var g=0,_=0,k=z(Js(h/a));g<h;)k[_++]=tn(i,g,g+=a);return k}function iV(i){for(var a=-1,c=i==null?0:i.length,h=0,g=[];++a<c;){var _=i[a];_&&(g[h++]=_)}return g}function sV(){var i=arguments.length;if(!i)return[];for(var a=z(i-1),c=arguments[0],h=i;h--;)a[h-1]=arguments[h];return xr(ke(c)?Dt(c):[c],yt(a,1))}var aV=Ve(function(i,a){return it(i)?Ui(i,yt(a,1,it,!0)):[]}),lV=Ve(function(i,a){var c=nn(a);return it(c)&&(c=n),it(i)?Ui(i,yt(a,1,it,!0),fe(c,2)):[]}),cV=Ve(function(i,a){var c=nn(a);return it(c)&&(c=n),it(i)?Ui(i,yt(a,1,it,!0),n,c):[]});function dV(i,a,c){var h=i==null?0:i.length;return h?(a=c||a===n?1:Te(a),tn(i,a<0?0:a,h)):[]}function uV(i,a,c){var h=i==null?0:i.length;return h?(a=c||a===n?1:Te(a),a=h-a,tn(i,0,a<0?0:a)):[]}function pV(i,a){return i&&i.length?aa(i,fe(a,3),!0,!0):[]}function hV(i,a){return i&&i.length?aa(i,fe(a,3),!0):[]}function fV(i,a,c,h){var g=i==null?0:i.length;return g?(c&&typeof c!="number"&&Nt(i,a,c)&&(c=0,h=g),sN(i,a,c,h)):[]}function Cf(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=c==null?0:Te(c);return g<0&&(g=ut(h+g,0)),Gs(i,fe(a,3),g)}function wf(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=h-1;return c!==n&&(g=Te(c),g=c<0?ut(h+g,0):bt(g,h-1)),Gs(i,fe(a,3),g,!0)}function bf(i){var a=i==null?0:i.length;return a?yt(i,1):[]}function mV(i){var a=i==null?0:i.length;return a?yt(i,re):[]}function gV(i,a){var c=i==null?0:i.length;return c?(a=a===n?1:Te(a),yt(i,a)):[]}function yV(i){for(var a=-1,c=i==null?0:i.length,h={};++a<c;){var g=i[a];h[g[0]]=g[1]}return h}function xf(i){return i&&i.length?i[0]:n}function vV(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=c==null?0:Te(c);return g<0&&(g=ut(h+g,0)),To(i,a,g)}function _V(i){var a=i==null?0:i.length;return a?tn(i,0,-1):[]}var CV=Ve(function(i){var a=Xe(i,Tc);return a.length&&a[0]===i[0]?yc(a):[]}),wV=Ve(function(i){var a=nn(i),c=Xe(i,Tc);return a===nn(c)?a=n:c.pop(),c.length&&c[0]===i[0]?yc(c,fe(a,2)):[]}),bV=Ve(function(i){var a=nn(i),c=Xe(i,Tc);return a=typeof a=="function"?a:n,a&&c.pop(),c.length&&c[0]===i[0]?yc(c,n,a):[]});function xV(i,a){return i==null?"":_A.call(i,a)}function nn(i){var a=i==null?0:i.length;return a?i[a-1]:n}function kV(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=h;return c!==n&&(g=Te(c),g=g<0?ut(h+g,0):bt(g,h-1)),a===a?rA(i,a,g):Gs(i,nh,g,!0)}function SV(i,a){return i&&i.length?Dh(i,Te(a)):n}var EV=Ve(kf);function kf(i,a){return i&&i.length&&a&&a.length?wc(i,a):i}function TV(i,a,c){return i&&i.length&&a&&a.length?wc(i,a,fe(c,2)):i}function BV(i,a,c){return i&&i.length&&a&&a.length?wc(i,a,n,c):i}var AV=Kn(function(i,a){var c=i==null?0:i.length,h=hc(i,a);return Mh(i,Xe(a,function(g){return Yn(g,c)?+g:g}).sort(Hh)),h});function NV(i,a){var c=[];if(!(i&&i.length))return c;var h=-1,g=[],_=i.length;for(a=fe(a,3);++h<_;){var k=i[h];a(k,h,i)&&(c.push(k),g.push(h))}return Mh(i,g),c}function zc(i){return i==null?i:xA.call(i)}function VV(i,a,c){var h=i==null?0:i.length;return h?(c&&typeof c!="number"&&Nt(i,a,c)?(a=0,c=h):(a=a==null?0:Te(a),c=c===n?h:Te(c)),tn(i,a,c)):[]}function PV(i,a){return sa(i,a)}function DV(i,a,c){return kc(i,a,fe(c,2))}function FV(i,a){var c=i==null?0:i.length;if(c){var h=sa(i,a);if(h<c&&kn(i[h],a))return h}return-1}function RV(i,a){return sa(i,a,!0)}function MV(i,a,c){return kc(i,a,fe(c,2),!0)}function IV(i,a){var c=i==null?0:i.length;if(c){var h=sa(i,a,!0)-1;if(kn(i[h],a))return h}return-1}function LV(i){return i&&i.length?Lh(i):[]}function OV(i,a){return i&&i.length?Lh(i,fe(a,2)):[]}function GV(i){var a=i==null?0:i.length;return a?tn(i,1,a):[]}function zV(i,a,c){return i&&i.length?(a=c||a===n?1:Te(a),tn(i,0,a<0?0:a)):[]}function $V(i,a,c){var h=i==null?0:i.length;return h?(a=c||a===n?1:Te(a),a=h-a,tn(i,a<0?0:a,h)):[]}function ZV(i,a){return i&&i.length?aa(i,fe(a,3),!1,!0):[]}function UV(i,a){return i&&i.length?aa(i,fe(a,3)):[]}var WV=Ve(function(i){return Tr(yt(i,1,it,!0))}),HV=Ve(function(i){var a=nn(i);return it(a)&&(a=n),Tr(yt(i,1,it,!0),fe(a,2))}),jV=Ve(function(i){var a=nn(i);return a=typeof a=="function"?a:n,Tr(yt(i,1,it,!0),n,a)});function qV(i){return i&&i.length?Tr(i):[]}function KV(i,a){return i&&i.length?Tr(i,fe(a,2)):[]}function YV(i,a){return a=typeof a=="function"?a:n,i&&i.length?Tr(i,n,a):[]}function $c(i){if(!(i&&i.length))return[];var a=0;return i=br(i,function(c){if(it(c))return a=ut(c.length,a),!0}),ic(a,function(c){return Xe(i,nc(c))})}function Sf(i,a){if(!(i&&i.length))return[];var c=$c(i);return a==null?c:Xe(c,function(h){return Zt(a,n,h)})}var JV=Ve(function(i,a){return it(i)?Ui(i,a):[]}),XV=Ve(function(i){return Ec(br(i,it))}),QV=Ve(function(i){var a=nn(i);return it(a)&&(a=n),Ec(br(i,it),fe(a,2))}),eP=Ve(function(i){var a=nn(i);return a=typeof a=="function"?a:n,Ec(br(i,it),n,a)}),tP=Ve($c);function nP(i,a){return $h(i||[],a||[],Zi)}function rP(i,a){return $h(i||[],a||[],ji)}var oP=Ve(function(i){var a=i.length,c=a>1?i[a-1]:n;return c=typeof c=="function"?(i.pop(),c):n,Sf(i,c)});function Ef(i){var a=v(i);return a.__chain__=!0,a}function iP(i,a){return a(i),i}function ga(i,a){return a(i)}var sP=Kn(function(i){var a=i.length,c=a?i[0]:0,h=this.__wrapped__,g=function(_){return hc(_,i)};return a>1||this.__actions__.length||!(h instanceof Fe)||!Yn(c)?this.thru(g):(h=h.slice(c,+c+(a?1:0)),h.__actions__.push({func:ga,args:[g],thisArg:n}),new Qt(h,this.__chain__).thru(function(_){return a&&!_.length&&_.push(n),_}))});function aP(){return Ef(this)}function lP(){return new Qt(this.value(),this.__chain__)}function cP(){this.__values__===n&&(this.__values__=Gf(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function dP(){return this}function uP(i){for(var a,c=this;c instanceof ta;){var h=_f(c);h.__index__=0,h.__values__=n,a?g.__wrapped__=h:a=h;var g=h;c=c.__wrapped__}return g.__wrapped__=i,a}function pP(){var i=this.__wrapped__;if(i instanceof Fe){var a=i;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:ga,args:[zc],thisArg:n}),new Qt(a,this.__chain__)}return this.thru(zc)}function hP(){return zh(this.__wrapped__,this.__actions__)}var fP=la(function(i,a,c){We.call(i,c)?++i[c]:jn(i,c,1)});function mP(i,a,c){var h=ke(i)?eh:iN;return c&&Nt(i,a,c)&&(a=n),h(i,fe(a,3))}function gP(i,a){var c=ke(i)?br:kh;return c(i,fe(a,3))}var yP=Xh(Cf),vP=Xh(wf);function _P(i,a){return yt(ya(i,a),1)}function CP(i,a){return yt(ya(i,a),re)}function wP(i,a,c){return c=c===n?1:Te(c),yt(ya(i,a),c)}function Tf(i,a){var c=ke(i)?Jt:Er;return c(i,fe(a,3))}function Bf(i,a){var c=ke(i)?GB:xh;return c(i,fe(a,3))}var bP=la(function(i,a,c){We.call(i,c)?i[c].push(a):jn(i,c,[a])});function xP(i,a,c,h){i=Ft(i)?i:Oo(i),c=c&&!h?Te(c):0;var g=i.length;return c<0&&(c=ut(g+c,0)),ba(i)?c<=g&&i.indexOf(a,c)>-1:!!g&&To(i,a,c)>-1}var kP=Ve(function(i,a,c){var h=-1,g=typeof a=="function",_=Ft(i)?z(i.length):[];return Er(i,function(k){_[++h]=g?Zt(a,k,c):Wi(k,a,c)}),_}),SP=la(function(i,a,c){jn(i,c,a)});function ya(i,a){var c=ke(i)?Xe:Nh;return c(i,fe(a,3))}function EP(i,a,c,h){return i==null?[]:(ke(a)||(a=a==null?[]:[a]),c=h?n:c,ke(c)||(c=c==null?[]:[c]),Fh(i,a,c))}var TP=la(function(i,a,c){i[c?0:1].push(a)},function(){return[[],[]]});function BP(i,a,c){var h=ke(i)?ec:oh,g=arguments.length<3;return h(i,fe(a,4),c,g,Er)}function AP(i,a,c){var h=ke(i)?zB:oh,g=arguments.length<3;return h(i,fe(a,4),c,g,xh)}function NP(i,a){var c=ke(i)?br:kh;return c(i,Ca(fe(a,3)))}function VP(i){var a=ke(i)?_h:xN;return a(i)}function PP(i,a,c){(c?Nt(i,a,c):a===n)?a=1:a=Te(a);var h=ke(i)?eN:kN;return h(i,a)}function DP(i){var a=ke(i)?tN:EN;return a(i)}function FP(i){if(i==null)return 0;if(Ft(i))return ba(i)?Ao(i):i.length;var a=xt(i);return a==Cn||a==wn?i.size:_c(i).length}function RP(i,a,c){var h=ke(i)?tc:TN;return c&&Nt(i,a,c)&&(a=n),h(i,fe(a,3))}var MP=Ve(function(i,a){if(i==null)return[];var c=a.length;return c>1&&Nt(i,a[0],a[1])?a=[]:c>2&&Nt(a[0],a[1],a[2])&&(a=[a[0]]),Fh(i,yt(a,1),[])}),va=gA||function(){return gt.Date.now()};function IP(i,a){if(typeof a!="function")throw new Xt(d);return i=Te(i),function(){if(--i<1)return a.apply(this,arguments)}}function Af(i,a,c){return a=c?n:a,a=i&&a==null?i.length:a,qn(i,U,n,n,n,n,a)}function Nf(i,a){var c;if(typeof a!="function")throw new Xt(d);return i=Te(i),function(){return--i>0&&(c=a.apply(this,arguments)),i<=1&&(a=n),c}}var Zc=Ve(function(i,a,c){var h=O;if(c.length){var g=kr(c,Io(Zc));h|=G}return qn(i,h,a,c,g)}),Vf=Ve(function(i,a,c){var h=O|C;if(c.length){var g=kr(c,Io(Vf));h|=G}return qn(a,h,i,c,g)});function Pf(i,a,c){a=c?n:a;var h=qn(i,H,n,n,n,n,n,a);return h.placeholder=Pf.placeholder,h}function Df(i,a,c){a=c?n:a;var h=qn(i,X,n,n,n,n,n,a);return h.placeholder=Df.placeholder,h}function Ff(i,a,c){var h,g,_,k,T,F,j=0,K=!1,J=!1,ne=!0;if(typeof i!="function")throw new Xt(d);a=rn(a)||0,tt(c)&&(K=!!c.leading,J="maxWait"in c,_=J?ut(rn(c.maxWait)||0,a):_,ne="trailing"in c?!!c.trailing:ne);function ue(st){var Sn=h,Qn=g;return h=g=n,j=st,k=i.apply(Qn,Sn),k}function ge(st){return j=st,T=Yi(De,a),K?ue(st):k}function Ne(st){var Sn=st-F,Qn=st-j,Qf=a-Sn;return J?bt(Qf,_-Qn):Qf}function ye(st){var Sn=st-F,Qn=st-j;return F===n||Sn>=a||Sn<0||J&&Qn>=_}function De(){var st=va();if(ye(st))return Re(st);T=Yi(De,Ne(st))}function Re(st){return T=n,ne&&h?ue(st):(h=g=n,k)}function jt(){T!==n&&Zh(T),j=0,h=F=g=T=n}function Vt(){return T===n?k:Re(va())}function qt(){var st=va(),Sn=ye(st);if(h=arguments,g=this,F=st,Sn){if(T===n)return ge(F);if(J)return Zh(T),T=Yi(De,a),ue(F)}return T===n&&(T=Yi(De,a)),k}return qt.cancel=jt,qt.flush=Vt,qt}var LP=Ve(function(i,a){return bh(i,1,a)}),OP=Ve(function(i,a,c){return bh(i,rn(a)||0,c)});function GP(i){return qn(i,V)}function _a(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Xt(d);var c=function(){var h=arguments,g=a?a.apply(this,h):h[0],_=c.cache;if(_.has(g))return _.get(g);var k=i.apply(this,h);return c.cache=_.set(g,k)||_,k};return c.cache=new(_a.Cache||Hn),c}_a.Cache=Hn;function Ca(i){if(typeof i!="function")throw new Xt(d);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function zP(i){return Nf(2,i)}var $P=BN(function(i,a){a=a.length==1&&ke(a[0])?Xe(a[0],Ut(fe())):Xe(yt(a,1),Ut(fe()));var c=a.length;return Ve(function(h){for(var g=-1,_=bt(h.length,c);++g<_;)h[g]=a[g].call(this,h[g]);return Zt(i,this,h)})}),Uc=Ve(function(i,a){var c=kr(a,Io(Uc));return qn(i,G,n,a,c)}),Rf=Ve(function(i,a){var c=kr(a,Io(Rf));return qn(i,Y,n,a,c)}),ZP=Kn(function(i,a){return qn(i,R,n,n,n,a)});function UP(i,a){if(typeof i!="function")throw new Xt(d);return a=a===n?a:Te(a),Ve(i,a)}function WP(i,a){if(typeof i!="function")throw new Xt(d);return a=a==null?0:ut(Te(a),0),Ve(function(c){var h=c[a],g=Ar(c,0,a);return h&&xr(g,h),Zt(i,this,g)})}function HP(i,a,c){var h=!0,g=!0;if(typeof i!="function")throw new Xt(d);return tt(c)&&(h="leading"in c?!!c.leading:h,g="trailing"in c?!!c.trailing:g),Ff(i,a,{leading:h,maxWait:a,trailing:g})}function jP(i){return Af(i,1)}function qP(i,a){return Uc(Bc(a),i)}function KP(){if(!arguments.length)return[];var i=arguments[0];return ke(i)?i:[i]}function YP(i){return en(i,S)}function JP(i,a){return a=typeof a=="function"?a:n,en(i,S,a)}function XP(i){return en(i,y|S)}function QP(i,a){return a=typeof a=="function"?a:n,en(i,y|S,a)}function eD(i,a){return a==null||wh(i,a,mt(a))}function kn(i,a){return i===a||i!==i&&a!==a}var tD=pa(gc),nD=pa(function(i,a){return i>=a}),to=Th(function(){return arguments}())?Th:function(i){return nt(i)&&We.call(i,"callee")&&!hh.call(i,"callee")},ke=z.isArray,rD=qp?Ut(qp):uN;function Ft(i){return i!=null&&wa(i.length)&&!Jn(i)}function it(i){return nt(i)&&Ft(i)}function oD(i){return i===!0||i===!1||nt(i)&&At(i)==ze}var Nr=vA||td,iD=Kp?Ut(Kp):pN;function sD(i){return nt(i)&&i.nodeType===1&&!Ji(i)}function aD(i){if(i==null)return!0;if(Ft(i)&&(ke(i)||typeof i=="string"||typeof i.splice=="function"||Nr(i)||Lo(i)||to(i)))return!i.length;var a=xt(i);if(a==Cn||a==wn)return!i.size;if(Ki(i))return!_c(i).length;for(var c in i)if(We.call(i,c))return!1;return!0}function lD(i,a){return Hi(i,a)}function cD(i,a,c){c=typeof c=="function"?c:n;var h=c?c(i,a):n;return h===n?Hi(i,a,n,c):!!h}function Wc(i){if(!nt(i))return!1;var a=At(i);return a==Ds||a==PT||typeof i.message=="string"&&typeof i.name=="string"&&!Ji(i)}function dD(i){return typeof i=="number"&&mh(i)}function Jn(i){if(!tt(i))return!1;var a=At(i);return a==Fs||a==bp||a==Ps||a==FT}function Mf(i){return typeof i=="number"&&i==Te(i)}function wa(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=se}function tt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function nt(i){return i!=null&&typeof i=="object"}var If=Yp?Ut(Yp):fN;function uD(i,a){return i===a||vc(i,a,Rc(a))}function pD(i,a,c){return c=typeof c=="function"?c:n,vc(i,a,Rc(a),c)}function hD(i){return Lf(i)&&i!=+i}function fD(i){if(JN(i))throw new xe(l);return Bh(i)}function mD(i){return i===null}function gD(i){return i==null}function Lf(i){return typeof i=="number"||nt(i)&&At(i)==Pi}function Ji(i){if(!nt(i)||At(i)!=Un)return!1;var a=qs(i);if(a===null)return!0;var c=We.call(a,"constructor")&&a.constructor;return typeof c=="function"&&c instanceof c&&Us.call(c)==pA}var Hc=Jp?Ut(Jp):mN;function yD(i){return Mf(i)&&i>=-se&&i<=se}var Of=Xp?Ut(Xp):gN;function ba(i){return typeof i=="string"||!ke(i)&&nt(i)&&At(i)==Fi}function Ht(i){return typeof i=="symbol"||nt(i)&&At(i)==Rs}var Lo=Qp?Ut(Qp):yN;function vD(i){return i===n}function _D(i){return nt(i)&&xt(i)==Ri}function CD(i){return nt(i)&&At(i)==MT}var wD=pa(Cc),bD=pa(function(i,a){return i<=a});function Gf(i){if(!i)return[];if(Ft(i))return ba(i)?bn(i):Dt(i);if(Li&&i[Li])return eA(i[Li]());var a=xt(i),c=a==Cn?ac:a==wn?zs:Oo;return c(i)}function Xn(i){if(!i)return i===0?i:0;if(i=rn(i),i===re||i===-re){var a=i<0?-1:1;return a*Pe}return i===i?i:0}function Te(i){var a=Xn(i),c=a%1;return a===a?c?a-c:a:0}function zf(i){return i?Jr(Te(i),0,ot):0}function rn(i){if(typeof i=="number")return i;if(Ht(i))return He;if(tt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=tt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=ih(i);var c=rB.test(i);return c||iB.test(i)?IB(i.slice(2),c?2:8):nB.test(i)?He:+i}function $f(i){return Rn(i,Rt(i))}function xD(i){return i?Jr(Te(i),-se,se):i===0?i:0}function Ue(i){return i==null?"":Wt(i)}var kD=Ro(function(i,a){if(Ki(a)||Ft(a)){Rn(a,mt(a),i);return}for(var c in a)We.call(a,c)&&Zi(i,c,a[c])}),Zf=Ro(function(i,a){Rn(a,Rt(a),i)}),xa=Ro(function(i,a,c,h){Rn(a,Rt(a),i,h)}),SD=Ro(function(i,a,c,h){Rn(a,mt(a),i,h)}),ED=Kn(hc);function TD(i,a){var c=Fo(i);return a==null?c:Ch(c,a)}var BD=Ve(function(i,a){i=je(i);var c=-1,h=a.length,g=h>2?a[2]:n;for(g&&Nt(a[0],a[1],g)&&(h=1);++c<h;)for(var _=a[c],k=Rt(_),T=-1,F=k.length;++T<F;){var j=k[T],K=i[j];(K===n||kn(K,Vo[j])&&!We.call(i,j))&&(i[j]=_[j])}return i}),AD=Ve(function(i){return i.push(n,sf),Zt(Uf,n,i)});function ND(i,a){return th(i,fe(a,3),Fn)}function VD(i,a){return th(i,fe(a,3),mc)}function PD(i,a){return i==null?i:fc(i,fe(a,3),Rt)}function DD(i,a){return i==null?i:Sh(i,fe(a,3),Rt)}function FD(i,a){return i&&Fn(i,fe(a,3))}function RD(i,a){return i&&mc(i,fe(a,3))}function MD(i){return i==null?[]:oa(i,mt(i))}function ID(i){return i==null?[]:oa(i,Rt(i))}function jc(i,a,c){var h=i==null?n:Xr(i,a);return h===n?c:h}function LD(i,a){return i!=null&&cf(i,a,aN)}function qc(i,a){return i!=null&&cf(i,a,lN)}var OD=ef(function(i,a,c){a!=null&&typeof a.toString!="function"&&(a=Ws.call(a)),i[a]=c},Yc(Mt)),GD=ef(function(i,a,c){a!=null&&typeof a.toString!="function"&&(a=Ws.call(a)),We.call(i,a)?i[a].push(c):i[a]=[c]},fe),zD=Ve(Wi);function mt(i){return Ft(i)?vh(i):_c(i)}function Rt(i){return Ft(i)?vh(i,!0):vN(i)}function $D(i,a){var c={};return a=fe(a,3),Fn(i,function(h,g,_){jn(c,a(h,g,_),h)}),c}function ZD(i,a){var c={};return a=fe(a,3),Fn(i,function(h,g,_){jn(c,g,a(h,g,_))}),c}var UD=Ro(function(i,a,c){ia(i,a,c)}),Uf=Ro(function(i,a,c,h){ia(i,a,c,h)}),WD=Kn(function(i,a){var c={};if(i==null)return c;var h=!1;a=Xe(a,function(_){return _=Br(_,i),h||(h=_.length>1),_}),Rn(i,Dc(i),c),h&&(c=en(c,y|E|S,ON));for(var g=a.length;g--;)Sc(c,a[g]);return c});function HD(i,a){return Wf(i,Ca(fe(a)))}var jD=Kn(function(i,a){return i==null?{}:CN(i,a)});function Wf(i,a){if(i==null)return{};var c=Xe(Dc(i),function(h){return[h]});return a=fe(a),Rh(i,c,function(h,g){return a(h,g[0])})}function qD(i,a,c){a=Br(a,i);var h=-1,g=a.length;for(g||(g=1,i=n);++h<g;){var _=i==null?n:i[Mn(a[h])];_===n&&(h=g,_=c),i=Jn(_)?_.call(i):_}return i}function KD(i,a,c){return i==null?i:ji(i,a,c)}function YD(i,a,c,h){return h=typeof h=="function"?h:n,i==null?i:ji(i,a,c,h)}var Hf=rf(mt),jf=rf(Rt);function JD(i,a,c){var h=ke(i),g=h||Nr(i)||Lo(i);if(a=fe(a,4),c==null){var _=i&&i.constructor;g?c=h?new _:[]:tt(i)?c=Jn(_)?Fo(qs(i)):{}:c={}}return(g?Jt:Fn)(i,function(k,T,F){return a(c,k,T,F)}),c}function XD(i,a){return i==null?!0:Sc(i,a)}function QD(i,a,c){return i==null?i:Gh(i,a,Bc(c))}function eF(i,a,c,h){return h=typeof h=="function"?h:n,i==null?i:Gh(i,a,Bc(c),h)}function Oo(i){return i==null?[]:sc(i,mt(i))}function tF(i){return i==null?[]:sc(i,Rt(i))}function nF(i,a,c){return c===n&&(c=a,a=n),c!==n&&(c=rn(c),c=c===c?c:0),a!==n&&(a=rn(a),a=a===a?a:0),Jr(rn(i),a,c)}function rF(i,a,c){return a=Xn(a),c===n?(c=a,a=0):c=Xn(c),i=rn(i),cN(i,a,c)}function oF(i,a,c){if(c&&typeof c!="boolean"&&Nt(i,a,c)&&(a=c=n),c===n&&(typeof a=="boolean"?(c=a,a=n):typeof i=="boolean"&&(c=i,i=n)),i===n&&a===n?(i=0,a=1):(i=Xn(i),a===n?(a=i,i=0):a=Xn(a)),i>a){var h=i;i=a,a=h}if(c||i%1||a%1){var g=gh();return bt(i+g*(a-i+MB("1e-"+((g+"").length-1))),a)}return bc(i,a)}var iF=Mo(function(i,a,c){return a=a.toLowerCase(),i+(c?qf(a):a)});function qf(i){return Kc(Ue(i).toLowerCase())}function Kf(i){return i=Ue(i),i&&i.replace(aB,KB).replace(EB,"")}function sF(i,a,c){i=Ue(i),a=Wt(a);var h=i.length;c=c===n?h:Jr(Te(c),0,h);var g=c;return c-=a.length,c>=0&&i.slice(c,g)==a}function aF(i){return i=Ue(i),i&&zT.test(i)?i.replace(Sp,YB):i}function lF(i){return i=Ue(i),i&&jT.test(i)?i.replace(Ul,"\\$&"):i}var cF=Mo(function(i,a,c){return i+(c?"-":"")+a.toLowerCase()}),dF=Mo(function(i,a,c){return i+(c?" ":"")+a.toLowerCase()}),uF=Jh("toLowerCase");function pF(i,a,c){i=Ue(i),a=Te(a);var h=a?Ao(i):0;if(!a||h>=a)return i;var g=(a-h)/2;return ua(Xs(g),c)+i+ua(Js(g),c)}function hF(i,a,c){i=Ue(i),a=Te(a);var h=a?Ao(i):0;return a&&h<a?i+ua(a-h,c):i}function fF(i,a,c){i=Ue(i),a=Te(a);var h=a?Ao(i):0;return a&&h<a?ua(a-h,c)+i:i}function mF(i,a,c){return c||a==null?a=0:a&&(a=+a),bA(Ue(i).replace(Wl,""),a||0)}function gF(i,a,c){return(c?Nt(i,a,c):a===n)?a=1:a=Te(a),xc(Ue(i),a)}function yF(){var i=arguments,a=Ue(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var vF=Mo(function(i,a,c){return i+(c?"_":"")+a.toLowerCase()});function _F(i,a,c){return c&&typeof c!="number"&&Nt(i,a,c)&&(a=c=n),c=c===n?ot:c>>>0,c?(i=Ue(i),i&&(typeof a=="string"||a!=null&&!Hc(a))&&(a=Wt(a),!a&&Bo(i))?Ar(bn(i),0,c):i.split(a,c)):[]}var CF=Mo(function(i,a,c){return i+(c?" ":"")+Kc(a)});function wF(i,a,c){return i=Ue(i),c=c==null?0:Jr(Te(c),0,i.length),a=Wt(a),i.slice(c,c+a.length)==a}function bF(i,a,c){var h=v.templateSettings;c&&Nt(i,a,c)&&(a=n),i=Ue(i),a=xa({},a,h,of);var g=xa({},a.imports,h.imports,of),_=mt(g),k=sc(g,_),T,F,j=0,K=a.interpolate||Ms,J="__p += '",ne=lc((a.escape||Ms).source+"|"+K.source+"|"+(K===Ep?tB:Ms).source+"|"+(a.evaluate||Ms).source+"|$","g"),ue="//# sourceURL="+(We.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VB+"]")+`
75
- `;i.replace(ne,function(ye,De,Re,jt,Vt,qt){return Re||(Re=jt),J+=i.slice(j,qt).replace(lB,JB),De&&(T=!0,J+=`' +
74
+ `)}function YN(i){return ke(i)||to(i)||!!(fh&&i&&i[fh])}function Yn(i,a){var c=typeof i;return a=a??se,!!a&&(c=="number"||c!="symbol"&&lB.test(i))&&i>-1&&i%1==0&&i<a}function Nt(i,a,c){if(!tt(c))return!1;var h=typeof a;return(h=="number"?Ft(c)&&Yn(a,c.length):h=="string"&&a in c)?kn(c[a],i):!1}function Ic(i,a){if(ke(i))return!1;var c=typeof i;return c=="number"||c=="symbol"||c=="boolean"||i==null||Ht(i)?!0:jT.test(i)||!HT.test(i)||a!=null&&i in je(a)}function JN(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function Lc(i){var a=ha(i),c=v[a];if(typeof c!="function"||!(a in Fe.prototype))return!1;if(i===c)return!0;var h=Fc(c);return!!h&&i===h[0]}function XN(i){return!!dh&&dh in i}var QN=Zs?Jn:td;function Ki(i){var a=i&&i.constructor,c=typeof a=="function"&&a.prototype||Vo;return i===c}function uf(i){return i===i&&!tt(i)}function pf(i,a){return function(c){return c==null?!1:c[i]===a&&(a!==n||i in je(c))}}function eV(i){var a=_a(i,function(h){return c.size===f&&c.clear(),h}),c=a.cache;return a}function tV(i,a){var c=i[1],h=a[1],g=c|h,_=g<(O|C|U),k=h==U&&c==H||h==U&&c==R&&i[7].length<=a[8]||h==(U|R)&&a[7].length<=a[8]&&c==H;if(!(_||k))return i;h&O&&(i[2]=a[2],g|=c&O?0:A);var T=a[3];if(T){var F=i[3];i[3]=F?jh(F,T,a[4]):T,i[4]=F?kr(i[3],m):a[4]}return T=a[5],T&&(F=i[5],i[5]=F?qh(F,T,a[6]):T,i[6]=F?kr(i[5],m):a[6]),T=a[7],T&&(i[7]=T),h&U&&(i[8]=i[8]==null?a[8]:bt(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=g,i}function nV(i){var a=[];if(i!=null)for(var c in je(i))a.push(c);return a}function rV(i){return Ws.call(i)}function hf(i,a,c){return a=ut(a===n?i.length-1:a,0),function(){for(var h=arguments,g=-1,_=ut(h.length-a,0),k=z(_);++g<_;)k[g]=h[a+g];g=-1;for(var T=z(a+1);++g<a;)T[g]=h[g];return T[a]=c(k),Zt(i,this,T)}}function ff(i,a){return a.length<2?i:Xr(i,tn(a,0,-1))}function oV(i,a){for(var c=i.length,h=bt(a.length,c),g=Dt(i);h--;){var _=a[h];i[h]=Yn(_,c)?g[_]:n}return i}function Oc(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var mf=yf(Ih),Yi=_A||function(i,a){return gt.setTimeout(i,a)},Gc=yf(TN);function gf(i,a,c){var h=a+"";return Gc(i,KN(h,iV(HN(h),c)))}function yf(i){var a=0,c=0;return function(){var h=xA(),g=B-(h-c);if(c=h,g>0){if(++a>=q)return arguments[0]}else a=0;return i.apply(n,arguments)}}function ma(i,a){var c=-1,h=i.length,g=h-1;for(a=a===n?h:a;++c<a;){var _=bc(c,g),k=i[_];i[_]=i[c],i[c]=k}return i.length=a,i}var vf=eV(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(qT,function(c,h,g,_){a.push(g?_.replace(nB,"$1"):h||c)}),a});function Mn(i){if(typeof i=="string"||Ht(i))return i;var a=i+"";return a=="0"&&1/i==-re?"-0":a}function eo(i){if(i!=null){try{return Us.call(i)}catch{}try{return i+""}catch{}}return""}function iV(i,a){return Jt(Cr,function(c){var h="_."+c[0];a&c[1]&&!Os(i,h)&&i.push(h)}),i.sort()}function _f(i){if(i instanceof Fe)return i.clone();var a=new Qt(i.__wrapped__,i.__chain__);return a.__actions__=Dt(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function sV(i,a,c){(c?Nt(i,a,c):a===n)?a=1:a=ut(Te(a),0);var h=i==null?0:i.length;if(!h||a<1)return[];for(var g=0,_=0,k=z(Js(h/a));g<h;)k[_++]=tn(i,g,g+=a);return k}function aV(i){for(var a=-1,c=i==null?0:i.length,h=0,g=[];++a<c;){var _=i[a];_&&(g[h++]=_)}return g}function lV(){var i=arguments.length;if(!i)return[];for(var a=z(i-1),c=arguments[0],h=i;h--;)a[h-1]=arguments[h];return xr(ke(c)?Dt(c):[c],yt(a,1))}var cV=Ve(function(i,a){return it(i)?Ui(i,yt(a,1,it,!0)):[]}),dV=Ve(function(i,a){var c=nn(a);return it(c)&&(c=n),it(i)?Ui(i,yt(a,1,it,!0),fe(c,2)):[]}),uV=Ve(function(i,a){var c=nn(a);return it(c)&&(c=n),it(i)?Ui(i,yt(a,1,it,!0),n,c):[]});function pV(i,a,c){var h=i==null?0:i.length;return h?(a=c||a===n?1:Te(a),tn(i,a<0?0:a,h)):[]}function hV(i,a,c){var h=i==null?0:i.length;return h?(a=c||a===n?1:Te(a),a=h-a,tn(i,0,a<0?0:a)):[]}function fV(i,a){return i&&i.length?aa(i,fe(a,3),!0,!0):[]}function mV(i,a){return i&&i.length?aa(i,fe(a,3),!0):[]}function gV(i,a,c,h){var g=i==null?0:i.length;return g?(c&&typeof c!="number"&&Nt(i,a,c)&&(c=0,h=g),lN(i,a,c,h)):[]}function Cf(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=c==null?0:Te(c);return g<0&&(g=ut(h+g,0)),Gs(i,fe(a,3),g)}function wf(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=h-1;return c!==n&&(g=Te(c),g=c<0?ut(h+g,0):bt(g,h-1)),Gs(i,fe(a,3),g,!0)}function bf(i){var a=i==null?0:i.length;return a?yt(i,1):[]}function yV(i){var a=i==null?0:i.length;return a?yt(i,re):[]}function vV(i,a){var c=i==null?0:i.length;return c?(a=a===n?1:Te(a),yt(i,a)):[]}function _V(i){for(var a=-1,c=i==null?0:i.length,h={};++a<c;){var g=i[a];h[g[0]]=g[1]}return h}function xf(i){return i&&i.length?i[0]:n}function CV(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=c==null?0:Te(c);return g<0&&(g=ut(h+g,0)),To(i,a,g)}function wV(i){var a=i==null?0:i.length;return a?tn(i,0,-1):[]}var bV=Ve(function(i){var a=Xe(i,Tc);return a.length&&a[0]===i[0]?yc(a):[]}),xV=Ve(function(i){var a=nn(i),c=Xe(i,Tc);return a===nn(c)?a=n:c.pop(),c.length&&c[0]===i[0]?yc(c,fe(a,2)):[]}),kV=Ve(function(i){var a=nn(i),c=Xe(i,Tc);return a=typeof a=="function"?a:n,a&&c.pop(),c.length&&c[0]===i[0]?yc(c,n,a):[]});function SV(i,a){return i==null?"":wA.call(i,a)}function nn(i){var a=i==null?0:i.length;return a?i[a-1]:n}function EV(i,a,c){var h=i==null?0:i.length;if(!h)return-1;var g=h;return c!==n&&(g=Te(c),g=g<0?ut(h+g,0):bt(g,h-1)),a===a?iA(i,a,g):Gs(i,nh,g,!0)}function TV(i,a){return i&&i.length?Dh(i,Te(a)):n}var BV=Ve(kf);function kf(i,a){return i&&i.length&&a&&a.length?wc(i,a):i}function AV(i,a,c){return i&&i.length&&a&&a.length?wc(i,a,fe(c,2)):i}function NV(i,a,c){return i&&i.length&&a&&a.length?wc(i,a,n,c):i}var VV=Kn(function(i,a){var c=i==null?0:i.length,h=hc(i,a);return Mh(i,Xe(a,function(g){return Yn(g,c)?+g:g}).sort(Hh)),h});function PV(i,a){var c=[];if(!(i&&i.length))return c;var h=-1,g=[],_=i.length;for(a=fe(a,3);++h<_;){var k=i[h];a(k,h,i)&&(c.push(k),g.push(h))}return Mh(i,g),c}function zc(i){return i==null?i:SA.call(i)}function DV(i,a,c){var h=i==null?0:i.length;return h?(c&&typeof c!="number"&&Nt(i,a,c)?(a=0,c=h):(a=a==null?0:Te(a),c=c===n?h:Te(c)),tn(i,a,c)):[]}function FV(i,a){return sa(i,a)}function RV(i,a,c){return kc(i,a,fe(c,2))}function MV(i,a){var c=i==null?0:i.length;if(c){var h=sa(i,a);if(h<c&&kn(i[h],a))return h}return-1}function IV(i,a){return sa(i,a,!0)}function LV(i,a,c){return kc(i,a,fe(c,2),!0)}function OV(i,a){var c=i==null?0:i.length;if(c){var h=sa(i,a,!0)-1;if(kn(i[h],a))return h}return-1}function GV(i){return i&&i.length?Lh(i):[]}function zV(i,a){return i&&i.length?Lh(i,fe(a,2)):[]}function $V(i){var a=i==null?0:i.length;return a?tn(i,1,a):[]}function ZV(i,a,c){return i&&i.length?(a=c||a===n?1:Te(a),tn(i,0,a<0?0:a)):[]}function UV(i,a,c){var h=i==null?0:i.length;return h?(a=c||a===n?1:Te(a),a=h-a,tn(i,a<0?0:a,h)):[]}function WV(i,a){return i&&i.length?aa(i,fe(a,3),!1,!0):[]}function HV(i,a){return i&&i.length?aa(i,fe(a,3)):[]}var jV=Ve(function(i){return Tr(yt(i,1,it,!0))}),qV=Ve(function(i){var a=nn(i);return it(a)&&(a=n),Tr(yt(i,1,it,!0),fe(a,2))}),KV=Ve(function(i){var a=nn(i);return a=typeof a=="function"?a:n,Tr(yt(i,1,it,!0),n,a)});function YV(i){return i&&i.length?Tr(i):[]}function JV(i,a){return i&&i.length?Tr(i,fe(a,2)):[]}function XV(i,a){return a=typeof a=="function"?a:n,i&&i.length?Tr(i,n,a):[]}function $c(i){if(!(i&&i.length))return[];var a=0;return i=br(i,function(c){if(it(c))return a=ut(c.length,a),!0}),ic(a,function(c){return Xe(i,nc(c))})}function Sf(i,a){if(!(i&&i.length))return[];var c=$c(i);return a==null?c:Xe(c,function(h){return Zt(a,n,h)})}var QV=Ve(function(i,a){return it(i)?Ui(i,a):[]}),eP=Ve(function(i){return Ec(br(i,it))}),tP=Ve(function(i){var a=nn(i);return it(a)&&(a=n),Ec(br(i,it),fe(a,2))}),nP=Ve(function(i){var a=nn(i);return a=typeof a=="function"?a:n,Ec(br(i,it),n,a)}),rP=Ve($c);function oP(i,a){return $h(i||[],a||[],Zi)}function iP(i,a){return $h(i||[],a||[],ji)}var sP=Ve(function(i){var a=i.length,c=a>1?i[a-1]:n;return c=typeof c=="function"?(i.pop(),c):n,Sf(i,c)});function Ef(i){var a=v(i);return a.__chain__=!0,a}function aP(i,a){return a(i),i}function ga(i,a){return a(i)}var lP=Kn(function(i){var a=i.length,c=a?i[0]:0,h=this.__wrapped__,g=function(_){return hc(_,i)};return a>1||this.__actions__.length||!(h instanceof Fe)||!Yn(c)?this.thru(g):(h=h.slice(c,+c+(a?1:0)),h.__actions__.push({func:ga,args:[g],thisArg:n}),new Qt(h,this.__chain__).thru(function(_){return a&&!_.length&&_.push(n),_}))});function cP(){return Ef(this)}function dP(){return new Qt(this.value(),this.__chain__)}function uP(){this.__values__===n&&(this.__values__=Gf(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function pP(){return this}function hP(i){for(var a,c=this;c instanceof ta;){var h=_f(c);h.__index__=0,h.__values__=n,a?g.__wrapped__=h:a=h;var g=h;c=c.__wrapped__}return g.__wrapped__=i,a}function fP(){var i=this.__wrapped__;if(i instanceof Fe){var a=i;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:ga,args:[zc],thisArg:n}),new Qt(a,this.__chain__)}return this.thru(zc)}function mP(){return zh(this.__wrapped__,this.__actions__)}var gP=la(function(i,a,c){We.call(i,c)?++i[c]:jn(i,c,1)});function yP(i,a,c){var h=ke(i)?eh:aN;return c&&Nt(i,a,c)&&(a=n),h(i,fe(a,3))}function vP(i,a){var c=ke(i)?br:kh;return c(i,fe(a,3))}var _P=Xh(Cf),CP=Xh(wf);function wP(i,a){return yt(ya(i,a),1)}function bP(i,a){return yt(ya(i,a),re)}function xP(i,a,c){return c=c===n?1:Te(c),yt(ya(i,a),c)}function Tf(i,a){var c=ke(i)?Jt:Er;return c(i,fe(a,3))}function Bf(i,a){var c=ke(i)?$B:xh;return c(i,fe(a,3))}var kP=la(function(i,a,c){We.call(i,c)?i[c].push(a):jn(i,c,[a])});function SP(i,a,c,h){i=Ft(i)?i:Oo(i),c=c&&!h?Te(c):0;var g=i.length;return c<0&&(c=ut(g+c,0)),ba(i)?c<=g&&i.indexOf(a,c)>-1:!!g&&To(i,a,c)>-1}var EP=Ve(function(i,a,c){var h=-1,g=typeof a=="function",_=Ft(i)?z(i.length):[];return Er(i,function(k){_[++h]=g?Zt(a,k,c):Wi(k,a,c)}),_}),TP=la(function(i,a,c){jn(i,c,a)});function ya(i,a){var c=ke(i)?Xe:Nh;return c(i,fe(a,3))}function BP(i,a,c,h){return i==null?[]:(ke(a)||(a=a==null?[]:[a]),c=h?n:c,ke(c)||(c=c==null?[]:[c]),Fh(i,a,c))}var AP=la(function(i,a,c){i[c?0:1].push(a)},function(){return[[],[]]});function NP(i,a,c){var h=ke(i)?ec:oh,g=arguments.length<3;return h(i,fe(a,4),c,g,Er)}function VP(i,a,c){var h=ke(i)?ZB:oh,g=arguments.length<3;return h(i,fe(a,4),c,g,xh)}function PP(i,a){var c=ke(i)?br:kh;return c(i,Ca(fe(a,3)))}function DP(i){var a=ke(i)?_h:SN;return a(i)}function FP(i,a,c){(c?Nt(i,a,c):a===n)?a=1:a=Te(a);var h=ke(i)?nN:EN;return h(i,a)}function RP(i){var a=ke(i)?rN:BN;return a(i)}function MP(i){if(i==null)return 0;if(Ft(i))return ba(i)?Ao(i):i.length;var a=xt(i);return a==Cn||a==wn?i.size:_c(i).length}function IP(i,a,c){var h=ke(i)?tc:AN;return c&&Nt(i,a,c)&&(a=n),h(i,fe(a,3))}var LP=Ve(function(i,a){if(i==null)return[];var c=a.length;return c>1&&Nt(i,a[0],a[1])?a=[]:c>2&&Nt(a[0],a[1],a[2])&&(a=[a[0]]),Fh(i,yt(a,1),[])}),va=vA||function(){return gt.Date.now()};function OP(i,a){if(typeof a!="function")throw new Xt(d);return i=Te(i),function(){if(--i<1)return a.apply(this,arguments)}}function Af(i,a,c){return a=c?n:a,a=i&&a==null?i.length:a,qn(i,U,n,n,n,n,a)}function Nf(i,a){var c;if(typeof a!="function")throw new Xt(d);return i=Te(i),function(){return--i>0&&(c=a.apply(this,arguments)),i<=1&&(a=n),c}}var Zc=Ve(function(i,a,c){var h=O;if(c.length){var g=kr(c,Io(Zc));h|=G}return qn(i,h,a,c,g)}),Vf=Ve(function(i,a,c){var h=O|C;if(c.length){var g=kr(c,Io(Vf));h|=G}return qn(a,h,i,c,g)});function Pf(i,a,c){a=c?n:a;var h=qn(i,H,n,n,n,n,n,a);return h.placeholder=Pf.placeholder,h}function Df(i,a,c){a=c?n:a;var h=qn(i,X,n,n,n,n,n,a);return h.placeholder=Df.placeholder,h}function Ff(i,a,c){var h,g,_,k,T,F,j=0,K=!1,J=!1,ne=!0;if(typeof i!="function")throw new Xt(d);a=rn(a)||0,tt(c)&&(K=!!c.leading,J="maxWait"in c,_=J?ut(rn(c.maxWait)||0,a):_,ne="trailing"in c?!!c.trailing:ne);function ue(st){var Sn=h,Qn=g;return h=g=n,j=st,k=i.apply(Qn,Sn),k}function ge(st){return j=st,T=Yi(De,a),K?ue(st):k}function Ne(st){var Sn=st-F,Qn=st-j,Qf=a-Sn;return J?bt(Qf,_-Qn):Qf}function ye(st){var Sn=st-F,Qn=st-j;return F===n||Sn>=a||Sn<0||J&&Qn>=_}function De(){var st=va();if(ye(st))return Re(st);T=Yi(De,Ne(st))}function Re(st){return T=n,ne&&h?ue(st):(h=g=n,k)}function jt(){T!==n&&Zh(T),j=0,h=F=g=T=n}function Vt(){return T===n?k:Re(va())}function qt(){var st=va(),Sn=ye(st);if(h=arguments,g=this,F=st,Sn){if(T===n)return ge(F);if(J)return Zh(T),T=Yi(De,a),ue(F)}return T===n&&(T=Yi(De,a)),k}return qt.cancel=jt,qt.flush=Vt,qt}var GP=Ve(function(i,a){return bh(i,1,a)}),zP=Ve(function(i,a,c){return bh(i,rn(a)||0,c)});function $P(i){return qn(i,V)}function _a(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Xt(d);var c=function(){var h=arguments,g=a?a.apply(this,h):h[0],_=c.cache;if(_.has(g))return _.get(g);var k=i.apply(this,h);return c.cache=_.set(g,k)||_,k};return c.cache=new(_a.Cache||Hn),c}_a.Cache=Hn;function Ca(i){if(typeof i!="function")throw new Xt(d);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function ZP(i){return Nf(2,i)}var UP=NN(function(i,a){a=a.length==1&&ke(a[0])?Xe(a[0],Ut(fe())):Xe(yt(a,1),Ut(fe()));var c=a.length;return Ve(function(h){for(var g=-1,_=bt(h.length,c);++g<_;)h[g]=a[g].call(this,h[g]);return Zt(i,this,h)})}),Uc=Ve(function(i,a){var c=kr(a,Io(Uc));return qn(i,G,n,a,c)}),Rf=Ve(function(i,a){var c=kr(a,Io(Rf));return qn(i,Y,n,a,c)}),WP=Kn(function(i,a){return qn(i,R,n,n,n,a)});function HP(i,a){if(typeof i!="function")throw new Xt(d);return a=a===n?a:Te(a),Ve(i,a)}function jP(i,a){if(typeof i!="function")throw new Xt(d);return a=a==null?0:ut(Te(a),0),Ve(function(c){var h=c[a],g=Ar(c,0,a);return h&&xr(g,h),Zt(i,this,g)})}function qP(i,a,c){var h=!0,g=!0;if(typeof i!="function")throw new Xt(d);return tt(c)&&(h="leading"in c?!!c.leading:h,g="trailing"in c?!!c.trailing:g),Ff(i,a,{leading:h,maxWait:a,trailing:g})}function KP(i){return Af(i,1)}function YP(i,a){return Uc(Bc(a),i)}function JP(){if(!arguments.length)return[];var i=arguments[0];return ke(i)?i:[i]}function XP(i){return en(i,S)}function QP(i,a){return a=typeof a=="function"?a:n,en(i,S,a)}function eD(i){return en(i,y|S)}function tD(i,a){return a=typeof a=="function"?a:n,en(i,y|S,a)}function nD(i,a){return a==null||wh(i,a,mt(a))}function kn(i,a){return i===a||i!==i&&a!==a}var rD=pa(gc),oD=pa(function(i,a){return i>=a}),to=Th(function(){return arguments}())?Th:function(i){return nt(i)&&We.call(i,"callee")&&!hh.call(i,"callee")},ke=z.isArray,iD=qp?Ut(qp):hN;function Ft(i){return i!=null&&wa(i.length)&&!Jn(i)}function it(i){return nt(i)&&Ft(i)}function sD(i){return i===!0||i===!1||nt(i)&&At(i)==ze}var Nr=CA||td,aD=Kp?Ut(Kp):fN;function lD(i){return nt(i)&&i.nodeType===1&&!Ji(i)}function cD(i){if(i==null)return!0;if(Ft(i)&&(ke(i)||typeof i=="string"||typeof i.splice=="function"||Nr(i)||Lo(i)||to(i)))return!i.length;var a=xt(i);if(a==Cn||a==wn)return!i.size;if(Ki(i))return!_c(i).length;for(var c in i)if(We.call(i,c))return!1;return!0}function dD(i,a){return Hi(i,a)}function uD(i,a,c){c=typeof c=="function"?c:n;var h=c?c(i,a):n;return h===n?Hi(i,a,n,c):!!h}function Wc(i){if(!nt(i))return!1;var a=At(i);return a==Ds||a==FT||typeof i.message=="string"&&typeof i.name=="string"&&!Ji(i)}function pD(i){return typeof i=="number"&&mh(i)}function Jn(i){if(!tt(i))return!1;var a=At(i);return a==Fs||a==bp||a==Ps||a==MT}function Mf(i){return typeof i=="number"&&i==Te(i)}function wa(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=se}function tt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function nt(i){return i!=null&&typeof i=="object"}var If=Yp?Ut(Yp):gN;function hD(i,a){return i===a||vc(i,a,Rc(a))}function fD(i,a,c){return c=typeof c=="function"?c:n,vc(i,a,Rc(a),c)}function mD(i){return Lf(i)&&i!=+i}function gD(i){if(QN(i))throw new xe(l);return Bh(i)}function yD(i){return i===null}function vD(i){return i==null}function Lf(i){return typeof i=="number"||nt(i)&&At(i)==Pi}function Ji(i){if(!nt(i)||At(i)!=Un)return!1;var a=qs(i);if(a===null)return!0;var c=We.call(a,"constructor")&&a.constructor;return typeof c=="function"&&c instanceof c&&Us.call(c)==fA}var Hc=Jp?Ut(Jp):yN;function _D(i){return Mf(i)&&i>=-se&&i<=se}var Of=Xp?Ut(Xp):vN;function ba(i){return typeof i=="string"||!ke(i)&&nt(i)&&At(i)==Fi}function Ht(i){return typeof i=="symbol"||nt(i)&&At(i)==Rs}var Lo=Qp?Ut(Qp):_N;function CD(i){return i===n}function wD(i){return nt(i)&&xt(i)==Ri}function bD(i){return nt(i)&&At(i)==LT}var xD=pa(Cc),kD=pa(function(i,a){return i<=a});function Gf(i){if(!i)return[];if(Ft(i))return ba(i)?bn(i):Dt(i);if(Li&&i[Li])return nA(i[Li]());var a=xt(i),c=a==Cn?ac:a==wn?zs:Oo;return c(i)}function Xn(i){if(!i)return i===0?i:0;if(i=rn(i),i===re||i===-re){var a=i<0?-1:1;return a*Pe}return i===i?i:0}function Te(i){var a=Xn(i),c=a%1;return a===a?c?a-c:a:0}function zf(i){return i?Jr(Te(i),0,ot):0}function rn(i){if(typeof i=="number")return i;if(Ht(i))return He;if(tt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=tt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=ih(i);var c=iB.test(i);return c||aB.test(i)?OB(i.slice(2),c?2:8):oB.test(i)?He:+i}function $f(i){return Rn(i,Rt(i))}function SD(i){return i?Jr(Te(i),-se,se):i===0?i:0}function Ue(i){return i==null?"":Wt(i)}var ED=Ro(function(i,a){if(Ki(a)||Ft(a)){Rn(a,mt(a),i);return}for(var c in a)We.call(a,c)&&Zi(i,c,a[c])}),Zf=Ro(function(i,a){Rn(a,Rt(a),i)}),xa=Ro(function(i,a,c,h){Rn(a,Rt(a),i,h)}),TD=Ro(function(i,a,c,h){Rn(a,mt(a),i,h)}),BD=Kn(hc);function AD(i,a){var c=Fo(i);return a==null?c:Ch(c,a)}var ND=Ve(function(i,a){i=je(i);var c=-1,h=a.length,g=h>2?a[2]:n;for(g&&Nt(a[0],a[1],g)&&(h=1);++c<h;)for(var _=a[c],k=Rt(_),T=-1,F=k.length;++T<F;){var j=k[T],K=i[j];(K===n||kn(K,Vo[j])&&!We.call(i,j))&&(i[j]=_[j])}return i}),VD=Ve(function(i){return i.push(n,sf),Zt(Uf,n,i)});function PD(i,a){return th(i,fe(a,3),Fn)}function DD(i,a){return th(i,fe(a,3),mc)}function FD(i,a){return i==null?i:fc(i,fe(a,3),Rt)}function RD(i,a){return i==null?i:Sh(i,fe(a,3),Rt)}function MD(i,a){return i&&Fn(i,fe(a,3))}function ID(i,a){return i&&mc(i,fe(a,3))}function LD(i){return i==null?[]:oa(i,mt(i))}function OD(i){return i==null?[]:oa(i,Rt(i))}function jc(i,a,c){var h=i==null?n:Xr(i,a);return h===n?c:h}function GD(i,a){return i!=null&&cf(i,a,cN)}function qc(i,a){return i!=null&&cf(i,a,dN)}var zD=ef(function(i,a,c){a!=null&&typeof a.toString!="function"&&(a=Ws.call(a)),i[a]=c},Yc(Mt)),$D=ef(function(i,a,c){a!=null&&typeof a.toString!="function"&&(a=Ws.call(a)),We.call(i,a)?i[a].push(c):i[a]=[c]},fe),ZD=Ve(Wi);function mt(i){return Ft(i)?vh(i):_c(i)}function Rt(i){return Ft(i)?vh(i,!0):CN(i)}function UD(i,a){var c={};return a=fe(a,3),Fn(i,function(h,g,_){jn(c,a(h,g,_),h)}),c}function WD(i,a){var c={};return a=fe(a,3),Fn(i,function(h,g,_){jn(c,g,a(h,g,_))}),c}var HD=Ro(function(i,a,c){ia(i,a,c)}),Uf=Ro(function(i,a,c,h){ia(i,a,c,h)}),jD=Kn(function(i,a){var c={};if(i==null)return c;var h=!1;a=Xe(a,function(_){return _=Br(_,i),h||(h=_.length>1),_}),Rn(i,Dc(i),c),h&&(c=en(c,y|E|S,zN));for(var g=a.length;g--;)Sc(c,a[g]);return c});function qD(i,a){return Wf(i,Ca(fe(a)))}var KD=Kn(function(i,a){return i==null?{}:bN(i,a)});function Wf(i,a){if(i==null)return{};var c=Xe(Dc(i),function(h){return[h]});return a=fe(a),Rh(i,c,function(h,g){return a(h,g[0])})}function YD(i,a,c){a=Br(a,i);var h=-1,g=a.length;for(g||(g=1,i=n);++h<g;){var _=i==null?n:i[Mn(a[h])];_===n&&(h=g,_=c),i=Jn(_)?_.call(i):_}return i}function JD(i,a,c){return i==null?i:ji(i,a,c)}function XD(i,a,c,h){return h=typeof h=="function"?h:n,i==null?i:ji(i,a,c,h)}var Hf=rf(mt),jf=rf(Rt);function QD(i,a,c){var h=ke(i),g=h||Nr(i)||Lo(i);if(a=fe(a,4),c==null){var _=i&&i.constructor;g?c=h?new _:[]:tt(i)?c=Jn(_)?Fo(qs(i)):{}:c={}}return(g?Jt:Fn)(i,function(k,T,F){return a(c,k,T,F)}),c}function eF(i,a){return i==null?!0:Sc(i,a)}function tF(i,a,c){return i==null?i:Gh(i,a,Bc(c))}function nF(i,a,c,h){return h=typeof h=="function"?h:n,i==null?i:Gh(i,a,Bc(c),h)}function Oo(i){return i==null?[]:sc(i,mt(i))}function rF(i){return i==null?[]:sc(i,Rt(i))}function oF(i,a,c){return c===n&&(c=a,a=n),c!==n&&(c=rn(c),c=c===c?c:0),a!==n&&(a=rn(a),a=a===a?a:0),Jr(rn(i),a,c)}function iF(i,a,c){return a=Xn(a),c===n?(c=a,a=0):c=Xn(c),i=rn(i),uN(i,a,c)}function sF(i,a,c){if(c&&typeof c!="boolean"&&Nt(i,a,c)&&(a=c=n),c===n&&(typeof a=="boolean"?(c=a,a=n):typeof i=="boolean"&&(c=i,i=n)),i===n&&a===n?(i=0,a=1):(i=Xn(i),a===n?(a=i,i=0):a=Xn(a)),i>a){var h=i;i=a,a=h}if(c||i%1||a%1){var g=gh();return bt(i+g*(a-i+LB("1e-"+((g+"").length-1))),a)}return bc(i,a)}var aF=Mo(function(i,a,c){return a=a.toLowerCase(),i+(c?qf(a):a)});function qf(i){return Kc(Ue(i).toLowerCase())}function Kf(i){return i=Ue(i),i&&i.replace(cB,JB).replace(BB,"")}function lF(i,a,c){i=Ue(i),a=Wt(a);var h=i.length;c=c===n?h:Jr(Te(c),0,h);var g=c;return c-=a.length,c>=0&&i.slice(c,g)==a}function cF(i){return i=Ue(i),i&&ZT.test(i)?i.replace(Sp,XB):i}function dF(i){return i=Ue(i),i&&KT.test(i)?i.replace(Ul,"\\$&"):i}var uF=Mo(function(i,a,c){return i+(c?"-":"")+a.toLowerCase()}),pF=Mo(function(i,a,c){return i+(c?" ":"")+a.toLowerCase()}),hF=Jh("toLowerCase");function fF(i,a,c){i=Ue(i),a=Te(a);var h=a?Ao(i):0;if(!a||h>=a)return i;var g=(a-h)/2;return ua(Xs(g),c)+i+ua(Js(g),c)}function mF(i,a,c){i=Ue(i),a=Te(a);var h=a?Ao(i):0;return a&&h<a?i+ua(a-h,c):i}function gF(i,a,c){i=Ue(i),a=Te(a);var h=a?Ao(i):0;return a&&h<a?ua(a-h,c)+i:i}function yF(i,a,c){return c||a==null?a=0:a&&(a=+a),kA(Ue(i).replace(Wl,""),a||0)}function vF(i,a,c){return(c?Nt(i,a,c):a===n)?a=1:a=Te(a),xc(Ue(i),a)}function _F(){var i=arguments,a=Ue(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var CF=Mo(function(i,a,c){return i+(c?"_":"")+a.toLowerCase()});function wF(i,a,c){return c&&typeof c!="number"&&Nt(i,a,c)&&(a=c=n),c=c===n?ot:c>>>0,c?(i=Ue(i),i&&(typeof a=="string"||a!=null&&!Hc(a))&&(a=Wt(a),!a&&Bo(i))?Ar(bn(i),0,c):i.split(a,c)):[]}var bF=Mo(function(i,a,c){return i+(c?" ":"")+Kc(a)});function xF(i,a,c){return i=Ue(i),c=c==null?0:Jr(Te(c),0,i.length),a=Wt(a),i.slice(c,c+a.length)==a}function kF(i,a,c){var h=v.templateSettings;c&&Nt(i,a,c)&&(a=n),i=Ue(i),a=xa({},a,h,of);var g=xa({},a.imports,h.imports,of),_=mt(g),k=sc(g,_),T,F,j=0,K=a.interpolate||Ms,J="__p += '",ne=lc((a.escape||Ms).source+"|"+K.source+"|"+(K===Ep?rB:Ms).source+"|"+(a.evaluate||Ms).source+"|$","g"),ue="//# sourceURL="+(We.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++DB+"]")+`
75
+ `;i.replace(ne,function(ye,De,Re,jt,Vt,qt){return Re||(Re=jt),J+=i.slice(j,qt).replace(dB,QB),De&&(T=!0,J+=`' +
76
76
  __e(`+De+`) +
77
77
  '`),Vt&&(F=!0,J+=`';
78
78
  `+Vt+`;
@@ -82,10 +82,10 @@ __p += '`),Re&&(J+=`' +
82
82
  `;var ge=We.call(a,"variable")&&a.variable;if(!ge)J=`with (obj) {
83
83
  `+J+`
84
84
  }
85
- `;else if(QT.test(ge))throw new xe(u);J=(F?J.replace(IT,""):J).replace(LT,"$1").replace(OT,"$1;"),J="function("+(ge||"obj")+`) {
85
+ `;else if(tB.test(ge))throw new xe(u);J=(F?J.replace(OT,""):J).replace(GT,"$1").replace(zT,"$1;"),J="function("+(ge||"obj")+`) {
86
86
  `+(ge?"":`obj || (obj = {});
87
87
  `)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(F?`, __j = Array.prototype.join;
88
88
  function print() { __p += __j.call(arguments, '') }
89
89
  `:`;
90
90
  `)+J+`return __p
91
- }`;var Ne=Jf(function(){return $e(_,ue+"return "+J).apply(n,k)});if(Ne.source=J,Wc(Ne))throw Ne;return Ne}function xF(i){return Ue(i).toLowerCase()}function kF(i){return Ue(i).toUpperCase()}function SF(i,a,c){if(i=Ue(i),i&&(c||a===n))return ih(i);if(!i||!(a=Wt(a)))return i;var h=bn(i),g=bn(a),_=sh(h,g),k=ah(h,g)+1;return Ar(h,_,k).join("")}function EF(i,a,c){if(i=Ue(i),i&&(c||a===n))return i.slice(0,ch(i)+1);if(!i||!(a=Wt(a)))return i;var h=bn(i),g=ah(h,bn(a))+1;return Ar(h,0,g).join("")}function TF(i,a,c){if(i=Ue(i),i&&(c||a===n))return i.replace(Wl,"");if(!i||!(a=Wt(a)))return i;var h=bn(i),g=sh(h,bn(a));return Ar(h,g).join("")}function BF(i,a){var c=M,h=W;if(tt(a)){var g="separator"in a?a.separator:g;c="length"in a?Te(a.length):c,h="omission"in a?Wt(a.omission):h}i=Ue(i);var _=i.length;if(Bo(i)){var k=bn(i);_=k.length}if(c>=_)return i;var T=c-Ao(h);if(T<1)return h;var F=k?Ar(k,0,T).join(""):i.slice(0,T);if(g===n)return F+h;if(k&&(T+=F.length-T),Hc(g)){if(i.slice(T).search(g)){var j,K=F;for(g.global||(g=lc(g.source,Ue(Tp.exec(g))+"g")),g.lastIndex=0;j=g.exec(K);)var J=j.index;F=F.slice(0,J===n?T:J)}}else if(i.indexOf(Wt(g),T)!=T){var ne=F.lastIndexOf(g);ne>-1&&(F=F.slice(0,ne))}return F+h}function AF(i){return i=Ue(i),i&&GT.test(i)?i.replace(kp,oA):i}var NF=Mo(function(i,a,c){return i+(c?" ":"")+a.toUpperCase()}),Kc=Jh("toUpperCase");function Yf(i,a,c){return i=Ue(i),a=c?n:a,a===n?QB(i)?aA(i):UB(i):i.match(a)||[]}var Jf=Ve(function(i,a){try{return Zt(i,n,a)}catch(c){return Wc(c)?c:new xe(c)}}),VF=Kn(function(i,a){return Jt(a,function(c){c=Mn(c),jn(i,c,Zc(i[c],i))}),i});function PF(i){var a=i==null?0:i.length,c=fe();return i=a?Xe(i,function(h){if(typeof h[1]!="function")throw new Xt(d);return[c(h[0]),h[1]]}):[],Ve(function(h){for(var g=-1;++g<a;){var _=i[g];if(Zt(_[0],this,h))return Zt(_[1],this,h)}})}function DF(i){return oN(en(i,y))}function Yc(i){return function(){return i}}function FF(i,a){return i==null||i!==i?a:i}var RF=Qh(),MF=Qh(!0);function Mt(i){return i}function Jc(i){return Ah(typeof i=="function"?i:en(i,y))}function IF(i){return Vh(en(i,y))}function LF(i,a){return Ph(i,en(a,y))}var OF=Ve(function(i,a){return function(c){return Wi(c,i,a)}}),GF=Ve(function(i,a){return function(c){return Wi(i,c,a)}});function Xc(i,a,c){var h=mt(a),g=oa(a,h);c==null&&!(tt(a)&&(g.length||!h.length))&&(c=a,a=i,i=this,g=oa(a,mt(a)));var _=!(tt(c)&&"chain"in c)||!!c.chain,k=Jn(i);return Jt(g,function(T){var F=a[T];i[T]=F,k&&(i.prototype[T]=function(){var j=this.__chain__;if(_||j){var K=i(this.__wrapped__),J=K.__actions__=Dt(this.__actions__);return J.push({func:F,args:arguments,thisArg:i}),K.__chain__=j,K}return F.apply(i,xr([this.value()],arguments))})}),i}function zF(){return gt._===this&&(gt._=hA),this}function Qc(){}function $F(i){return i=Te(i),Ve(function(a){return Dh(a,i)})}var ZF=Nc(Xe),UF=Nc(eh),WF=Nc(tc);function Xf(i){return Ic(i)?nc(Mn(i)):wN(i)}function HF(i){return function(a){return i==null?n:Xr(i,a)}}var jF=tf(),qF=tf(!0);function ed(){return[]}function td(){return!1}function KF(){return{}}function YF(){return""}function JF(){return!0}function XF(i,a){if(i=Te(i),i<1||i>se)return[];var c=ot,h=bt(i,ot);a=fe(a),i-=ot;for(var g=ic(h,a);++c<i;)a(c);return g}function QF(i){return ke(i)?Xe(i,Mn):Ht(i)?[i]:Dt(vf(Ue(i)))}function eR(i){var a=++uA;return Ue(i)+a}var tR=da(function(i,a){return i+a},0),nR=Vc("ceil"),rR=da(function(i,a){return i/a},1),oR=Vc("floor");function iR(i){return i&&i.length?ra(i,Mt,gc):n}function sR(i,a){return i&&i.length?ra(i,fe(a,2),gc):n}function aR(i){return rh(i,Mt)}function lR(i,a){return rh(i,fe(a,2))}function cR(i){return i&&i.length?ra(i,Mt,Cc):n}function dR(i,a){return i&&i.length?ra(i,fe(a,2),Cc):n}var uR=da(function(i,a){return i*a},1),pR=Vc("round"),hR=da(function(i,a){return i-a},0);function fR(i){return i&&i.length?oc(i,Mt):0}function mR(i,a){return i&&i.length?oc(i,fe(a,2)):0}return v.after=IP,v.ary=Af,v.assign=kD,v.assignIn=Zf,v.assignInWith=xa,v.assignWith=SD,v.at=ED,v.before=Nf,v.bind=Zc,v.bindAll=VF,v.bindKey=Vf,v.castArray=KP,v.chain=Ef,v.chunk=oV,v.compact=iV,v.concat=sV,v.cond=PF,v.conforms=DF,v.constant=Yc,v.countBy=fP,v.create=TD,v.curry=Pf,v.curryRight=Df,v.debounce=Ff,v.defaults=BD,v.defaultsDeep=AD,v.defer=LP,v.delay=OP,v.difference=aV,v.differenceBy=lV,v.differenceWith=cV,v.drop=dV,v.dropRight=uV,v.dropRightWhile=pV,v.dropWhile=hV,v.fill=fV,v.filter=gP,v.flatMap=_P,v.flatMapDeep=CP,v.flatMapDepth=wP,v.flatten=bf,v.flattenDeep=mV,v.flattenDepth=gV,v.flip=GP,v.flow=RF,v.flowRight=MF,v.fromPairs=yV,v.functions=MD,v.functionsIn=ID,v.groupBy=bP,v.initial=_V,v.intersection=CV,v.intersectionBy=wV,v.intersectionWith=bV,v.invert=OD,v.invertBy=GD,v.invokeMap=kP,v.iteratee=Jc,v.keyBy=SP,v.keys=mt,v.keysIn=Rt,v.map=ya,v.mapKeys=$D,v.mapValues=ZD,v.matches=IF,v.matchesProperty=LF,v.memoize=_a,v.merge=UD,v.mergeWith=Uf,v.method=OF,v.methodOf=GF,v.mixin=Xc,v.negate=Ca,v.nthArg=$F,v.omit=WD,v.omitBy=HD,v.once=zP,v.orderBy=EP,v.over=ZF,v.overArgs=$P,v.overEvery=UF,v.overSome=WF,v.partial=Uc,v.partialRight=Rf,v.partition=TP,v.pick=jD,v.pickBy=Wf,v.property=Xf,v.propertyOf=HF,v.pull=EV,v.pullAll=kf,v.pullAllBy=TV,v.pullAllWith=BV,v.pullAt=AV,v.range=jF,v.rangeRight=qF,v.rearg=ZP,v.reject=NP,v.remove=NV,v.rest=UP,v.reverse=zc,v.sampleSize=PP,v.set=KD,v.setWith=YD,v.shuffle=DP,v.slice=VV,v.sortBy=MP,v.sortedUniq=LV,v.sortedUniqBy=OV,v.split=_F,v.spread=WP,v.tail=GV,v.take=zV,v.takeRight=$V,v.takeRightWhile=ZV,v.takeWhile=UV,v.tap=iP,v.throttle=HP,v.thru=ga,v.toArray=Gf,v.toPairs=Hf,v.toPairsIn=jf,v.toPath=QF,v.toPlainObject=$f,v.transform=JD,v.unary=jP,v.union=WV,v.unionBy=HV,v.unionWith=jV,v.uniq=qV,v.uniqBy=KV,v.uniqWith=YV,v.unset=XD,v.unzip=$c,v.unzipWith=Sf,v.update=QD,v.updateWith=eF,v.values=Oo,v.valuesIn=tF,v.without=JV,v.words=Yf,v.wrap=qP,v.xor=XV,v.xorBy=QV,v.xorWith=eP,v.zip=tP,v.zipObject=nP,v.zipObjectDeep=rP,v.zipWith=oP,v.entries=Hf,v.entriesIn=jf,v.extend=Zf,v.extendWith=xa,Xc(v,v),v.add=tR,v.attempt=Jf,v.camelCase=iF,v.capitalize=qf,v.ceil=nR,v.clamp=nF,v.clone=YP,v.cloneDeep=XP,v.cloneDeepWith=QP,v.cloneWith=JP,v.conformsTo=eD,v.deburr=Kf,v.defaultTo=FF,v.divide=rR,v.endsWith=sF,v.eq=kn,v.escape=aF,v.escapeRegExp=lF,v.every=mP,v.find=yP,v.findIndex=Cf,v.findKey=ND,v.findLast=vP,v.findLastIndex=wf,v.findLastKey=VD,v.floor=oR,v.forEach=Tf,v.forEachRight=Bf,v.forIn=PD,v.forInRight=DD,v.forOwn=FD,v.forOwnRight=RD,v.get=jc,v.gt=tD,v.gte=nD,v.has=LD,v.hasIn=qc,v.head=xf,v.identity=Mt,v.includes=xP,v.indexOf=vV,v.inRange=rF,v.invoke=zD,v.isArguments=to,v.isArray=ke,v.isArrayBuffer=rD,v.isArrayLike=Ft,v.isArrayLikeObject=it,v.isBoolean=oD,v.isBuffer=Nr,v.isDate=iD,v.isElement=sD,v.isEmpty=aD,v.isEqual=lD,v.isEqualWith=cD,v.isError=Wc,v.isFinite=dD,v.isFunction=Jn,v.isInteger=Mf,v.isLength=wa,v.isMap=If,v.isMatch=uD,v.isMatchWith=pD,v.isNaN=hD,v.isNative=fD,v.isNil=gD,v.isNull=mD,v.isNumber=Lf,v.isObject=tt,v.isObjectLike=nt,v.isPlainObject=Ji,v.isRegExp=Hc,v.isSafeInteger=yD,v.isSet=Of,v.isString=ba,v.isSymbol=Ht,v.isTypedArray=Lo,v.isUndefined=vD,v.isWeakMap=_D,v.isWeakSet=CD,v.join=xV,v.kebabCase=cF,v.last=nn,v.lastIndexOf=kV,v.lowerCase=dF,v.lowerFirst=uF,v.lt=wD,v.lte=bD,v.max=iR,v.maxBy=sR,v.mean=aR,v.meanBy=lR,v.min=cR,v.minBy=dR,v.stubArray=ed,v.stubFalse=td,v.stubObject=KF,v.stubString=YF,v.stubTrue=JF,v.multiply=uR,v.nth=SV,v.noConflict=zF,v.noop=Qc,v.now=va,v.pad=pF,v.padEnd=hF,v.padStart=fF,v.parseInt=mF,v.random=oF,v.reduce=BP,v.reduceRight=AP,v.repeat=gF,v.replace=yF,v.result=qD,v.round=pR,v.runInContext=P,v.sample=VP,v.size=FP,v.snakeCase=vF,v.some=RP,v.sortedIndex=PV,v.sortedIndexBy=DV,v.sortedIndexOf=FV,v.sortedLastIndex=RV,v.sortedLastIndexBy=MV,v.sortedLastIndexOf=IV,v.startCase=CF,v.startsWith=wF,v.subtract=hR,v.sum=fR,v.sumBy=mR,v.template=bF,v.times=XF,v.toFinite=Xn,v.toInteger=Te,v.toLength=zf,v.toLower=xF,v.toNumber=rn,v.toSafeInteger=xD,v.toString=Ue,v.toUpper=kF,v.trim=SF,v.trimEnd=EF,v.trimStart=TF,v.truncate=BF,v.unescape=AF,v.uniqueId=eR,v.upperCase=NF,v.upperFirst=Kc,v.each=Tf,v.eachRight=Bf,v.first=xf,Xc(v,function(){var i={};return Fn(v,function(a,c){We.call(v.prototype,c)||(i[c]=a)}),i}(),{chain:!1}),v.VERSION=o,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){v[i].placeholder=v}),Jt(["drop","take"],function(i,a){Fe.prototype[i]=function(c){c=c===n?1:ut(Te(c),0);var h=this.__filtered__&&!a?new Fe(this):this.clone();return h.__filtered__?h.__takeCount__=bt(c,h.__takeCount__):h.__views__.push({size:bt(c,ot),type:i+(h.__dir__<0?"Right":"")}),h},Fe.prototype[i+"Right"]=function(c){return this.reverse()[i](c).reverse()}}),Jt(["filter","map","takeWhile"],function(i,a){var c=a+1,h=c==x||c==$;Fe.prototype[i]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:fe(g,3),type:c}),_.__filtered__=_.__filtered__||h,_}}),Jt(["head","last"],function(i,a){var c="take"+(a?"Right":"");Fe.prototype[i]=function(){return this[c](1).value()[0]}}),Jt(["initial","tail"],function(i,a){var c="drop"+(a?"":"Right");Fe.prototype[i]=function(){return this.__filtered__?new Fe(this):this[c](1)}}),Fe.prototype.compact=function(){return this.filter(Mt)},Fe.prototype.find=function(i){return this.filter(i).head()},Fe.prototype.findLast=function(i){return this.reverse().find(i)},Fe.prototype.invokeMap=Ve(function(i,a){return typeof i=="function"?new Fe(this):this.map(function(c){return Wi(c,i,a)})}),Fe.prototype.reject=function(i){return this.filter(Ca(fe(i)))},Fe.prototype.slice=function(i,a){i=Te(i);var c=this;return c.__filtered__&&(i>0||a<0)?new Fe(c):(i<0?c=c.takeRight(-i):i&&(c=c.drop(i)),a!==n&&(a=Te(a),c=a<0?c.dropRight(-a):c.take(a-i)),c)},Fe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Fe.prototype.toArray=function(){return this.take(ot)},Fn(Fe.prototype,function(i,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);g&&(v.prototype[a]=function(){var k=this.__wrapped__,T=h?[1]:arguments,F=k instanceof Fe,j=T[0],K=F||ke(k),J=function(De){var Re=g.apply(v,xr([De],T));return h&&ne?Re[0]:Re};K&&c&&typeof j=="function"&&j.length!=1&&(F=K=!1);var ne=this.__chain__,ue=!!this.__actions__.length,ge=_&&!ne,Ne=F&&!ue;if(!_&&K){k=Ne?k:new Fe(this);var ye=i.apply(k,T);return ye.__actions__.push({func:ga,args:[J],thisArg:n}),new Qt(ye,ne)}return ge&&Ne?i.apply(this,T):(ye=this.thru(J),ge?h?ye.value()[0]:ye.value():ye)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(i){var a=$s[i],c=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);v.prototype[i]=function(){var g=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(ke(_)?_:[],g)}return this[c](function(k){return a.apply(ke(k)?k:[],g)})}}),Fn(Fe.prototype,function(i,a){var c=v[a];if(c){var h=c.name+"";We.call(Do,h)||(Do[h]=[]),Do[h].push({name:a,func:c})}}),Do[ca(n,C).name]=[{name:"wrapper",func:n}],Fe.prototype.clone=AA,Fe.prototype.reverse=NA,Fe.prototype.value=VA,v.prototype.at=sP,v.prototype.chain=aP,v.prototype.commit=lP,v.prototype.next=cP,v.prototype.plant=uP,v.prototype.reverse=pP,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=hP,v.prototype.first=v.prototype.head,Li&&(v.prototype[Li]=dP),v},No=lA();jr?((jr.exports=No)._=No,Jl._=No):gt._=No}).call(Go)}(Bs,Bs.exports);var Ge=Bs.exports;const KE={class:"grid-overlay-container"},ap=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",KE,[e.params.notReady?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n[0]||(n[0]=r.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),n[1]||(n[1]=r.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n[2]||(n[2]=r.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),n[3]||(n[3]=r.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),YE={},JE={class:"grid-overlay-container"};function XE(t,e){return r.openBlock(),r.createElementBlock("div",JE,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const lp=Ts(YE,[["render",XE]]);async function QE(t,e){throw Error("not implemented")}function eT(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function tT(t,e){const n=[];for(const o of e)if(t[o].type==="column"){const s=eT(t[o].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const d=Nd(l),u=t.findIndex(p=>Ge.isEqual(p.id,d));if(u===-1)throw console.error("axis not found",o,d,t),Error("axis not found");n.push({columnIdx:o,axisIdx:u})}}return n}const cp=(t,e)=>(t+e).toString();function nT(t,e,n,o,s,l){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const d=t[0];let u=-1,p=-1;for(let y=0;y<l.length;++y)l[y]===d.axisIdx&&(u=y),l[y]===d.columnIdx&&(p=y);const f=(()=>{const E=o[u].data.filter(S=>S!==null);return Array.from(new Set(E))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=rT(s,o,u,p,f,e.rows);for(let y=0;y<f.length;++y){const E=f[y],S=E+"@"+y;n.push({colId:S,field:cp(o.length,y),headerName:E,valueFormatter:up})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function rT(t,e,n,o,s,l){const d=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let L=0;L<e.length;++L){if(L===n||L===o)continue;const O=t[L].toString();m[O]=e[L].data[f]}let y;const E=no(Object.values(m))??"";d.has(E)?y=d.get(E):(d.set(E,m),y=m,y.id=u.toString(),u++);const S=s.indexOf(e[n].data[f]);if(S===-1)throw Error("index not found");const N=cp(e.length,S);y[N]=e[o].data[f]}return Array.from(d.values())}function oT(t){return no(t)}function dp(t){return JSON.parse(t)}const up=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function iT(t,e,n){var s,l,d;const o=oT(e);return{colId:o,field:t.toString(),headerName:((l=(s=e.spec.annotations)==null?void 0:s["pl7.app/label"])==null?void 0:l.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(n==null?void 0:n.includes(o))??((d=e.spec.annotations)==null?void 0:d["pl7.app/table/visibility"])==="optional",valueFormatter:up,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function pp(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function hp(t){const e=[];return cs(t,n=>(e.push(n),n)),e}async function sT(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ge.uniqWith(n.map(s=>$a(s.spec.axesSpec).map(Ge.cloneDeep)).flat(),Ge.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function aT(t,e,n){const o=hp(n),l=(await sT(t,e,o)).filter(d=>!Ge.find(o,u=>d.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(d=>({type:"column",column:d}))}}async function lT(t,e,n,o){const s=n.filter(m=>m.type!=="Bytes"),l=hp(o),d=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=$a(l[m].spec.axesSpec);for(let E=0;E<y.length;++E){const S=Ge.findIndex(s,N=>Ge.isEqual(N,y[E]));S===-1||u[S]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(d[S]=[[m,E]],u[S]=l[m].columnId):d[S].push([m,E]))}}for(let m=s.length-1;m>=0;--m)d[m].length||(u.splice(m,1),d.splice(m,1),s.splice(m,1));const p=100,f=s.map(m=>new Set);e:for(let m=s.length-1;m>=0;--m){for(const[y,E]of d[m]){const S=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Ge.cloneDeep(s[m])},filters:[],limit:p});if(S.overflow){u.splice(m,1),d.splice(m,1),s.splice(m,1);continue e}const N=S.values.type;for(const L of S.values.data)if(!(Ad(L,N)||L===null)&&(f[m].add(pp(L,N)),f[m].size===p)){u.splice(m,1),d.splice(m,1),s.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),d.splice(m,1),s.splice(m,1);continue e}}return s.map((m,y)=>{const E=[...f[y]].map(N=>({value:N,text:N.toString()})),S=E[0].value;return{axis:Ge.cloneDeep(m),...u[y]&&{column:u[y]},options:E,defaultValue:S}})}function cT(t,e,n,o){const s=t.length,l=[];for(let d=0;d<e[0].data.length;++d){const u=[],p=(o++).toString();for(const m of n)u.push(e[m].data[d]);const f={key:u,id:p};for(let m=0;m<s;++m){const y=t[m].toString(),E=e[m].data[d],S=e[m].type;xg(e[m].absent,d)?f[y]=void 0:Ad(E,S)||E===null?f[y]=null:f[y]=pp(E,S)}l.push(f)}return l}const dT=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function uT(t,e,n,o){const s=await t.getSpec(e);let l=s.findIndex(C=>C.type==="column");l===-1&&(l=s.length);const d=[...s.keys()].filter(C=>!Ge.find(n,A=>Ge.isEqual(A.axis,s[C].id)||Ge.isEqual(A.column,s[C].id))).sort((C,A)=>{var G,Y;if(s[C].type!==s[A].type)return s[C].type==="axis"?-1:1;const H=(G=s[C].spec.annotations)==null?void 0:G["pl7.app/table/orderPriority"],X=(Y=s[A].spec.annotations)==null?void 0:Y["pl7.app/table/orderPriority"];return H===void 0?X===void 0?0:1:X===void 0?-1:Number(X)-Number(H)}),u=Ge.cloneDeep(d),p=tT(s,d);for(let C=d.length-1;C>=0;--C){const A=d[C];if(!dT(s[A]))continue;const H=$a(s[A].spec.axesSpec)[0],X=Ge.findIndex(d,G=>Ge.isEqual(s[G].id,H));if(X!==-1){d[X]=A;for(const G of p)G.axisIdx===A&&(G.axisIdx=X);d.splice(C,1),u.splice(C,1)}}const f=await t.getShape(e),m=f.rows,y=u.map(C=>iT(C,s[C],o));if(p.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",p.length," transposition will not be applied."),p.length===1)return nT(p,f,y,await t.getData(e,d),u,d);const E=[...d],S=new Map;for(let C=0;C<l;++C)S.set(C,-1);for(let C=0;C<E.length;++C){const A=E[C];S.has(A)&&S.set(A,C)}for(const[C,A]of S)A===-1&&(S.set(C,E.length),E.push(C));const N=[];for(let C=0;C<l;++C){const A=S.get(C);if(A===void 0||A===-1)throw new Error("assertion exception");N.push(A)}let L;return{rowModelType:"serverSide",columnDefs:y,serverSideDatasource:{getRows:async C=>{try{if(m==0){C.success({rowData:[],rowCount:m}),C.api.setGridOption("loading",!1),C.api.showNoRowsOverlay();return}if(L&&!Ge.isEqual(L.request.sortModel,C.request.sortModel)){L=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}L=C;let A=0,H=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(A=Math.min(m,C.request.endRow)-C.request.startRow,A>0)){const X=await t.getData(e,E,{offset:C.request.startRow,length:A});H=cT(u,X,N,C.request.startRow)}C.success({rowData:H,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(A){C.api.setGridOption("loading",!0),C.fail(),console.trace(A)}}}}}const pT={class:"ap-ag-data-table-container"},hT={key:0,class:"ap-ag-data-table-sheets"},fT=Ts(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{expose:e,emit:n}){b.ModuleRegistry.registerModules([Qi.ClientSideRowModelModule,ld.ClipboardModule,ad.ServerSideRowModelModule,cd.RangeSelectionModule,Ha,Xd]);const o=r.useModel(t,"modelValue"),s=t,{settings:l}=r.toRefs(s),d=n;r.watch(()=>l.value,async(B,x)=>{if(B.sourceType!=="pframe"||!B.pFrame||!B.join||x&&x.sourceType==="pframe"&&Ge.isEqual(B.pFrame,x.pFrame)&&Ge.isEqual(B.join,x.join))return;const D=window.platforma;if(!D)throw Error("platforma not set");const $=D.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const re=await aT($,B.pFrame,B.join),se=o.value;se.pTableParams||(se.pTableParams={sorting:[],filters:[]}),se.pTableParams.join=re,o.value=se});const u=fp(()=>l.value.sourceType,async B=>{var D;const x=l.value.sourceType;switch(x){case"pframe":{const $=window.platforma;if(!$)throw Error("platforma not set");const re=$.pFrameDriver;if(!re)throw Error("platforma.pFrameDriver not set");if(!l.value.pFrame)return[];const se=l.value.pFrame,Pe=(D=o.value.pTableParams)==null?void 0:D.join;return Pe?await lT(re,se,l.value.sheetAxes,Pe):[]}case"ptable":return l.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${x}`)}});function p(B){if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return(B==null?void 0:B.sortModel.map(x=>{const{spec:D,...$}=dp(x.colId);return{column:$,ascending:x.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const f=r.computed({get:()=>{const B=o.value;return{columnOrder:B.gridState.columnOrder,sort:B.gridState.sort,columnVisibility:B.gridState.columnVisibility}},set:B=>{const x=o.value,D=N.value.rowModelType==="clientSide"?void 0:p(B.sort);x.gridState={...x.gridState,...B},(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(x.pTableParams||(x.pTableParams={sorting:[],filters:[]}),x.pTableParams.sorting=D),o.value=x}}),m=B=>no(B);function y(B){var x;if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return((x=u.value)==null?void 0:x.map(D=>({type:"bySingleColumn",column:D.column?{type:"column",id:D.column}:{type:"axis",id:D.axis},predicate:{operator:"Equal",reference:B[m(D.axis)]}})))??[]}const E=r.computed({get:()=>o.value.gridState.sheets??{},set:B=>{const x=y(B),D=o.value;D.gridState.sheets=B,(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(D.pTableParams||(D.pTableParams={sorting:[],filters:[]}),D.pTableParams.filters=x),o.value=D}});r.watch(()=>[l.value,u.value],(B,x)=>{const[D,$]=B;if(!$)return;if(x){const[se,Pe]=x;if((D.sourceType==="ptable"||D.sourceType==="pframe")&&D.sourceType===(se==null?void 0:se.sourceType)&&Ge.isEqual($,Pe))return}if(D.sourceType!=="ptable"&&D.sourceType!=="pframe"){E.value={};return}const re=E.value;for(const se of $){const Pe=m(se.axis);re[Pe]||(re[Pe]=se.defaultValue??se.options[0].value)}E.value=re},{immediate:!0});const S=r.shallowRef(),N=r.shallowRef({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:f.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:B=>{B.api.autoSizeAllColumns()},onRowDoubleClicked:B=>{B.data&&d("onRowDoubleClicked",B.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:B=>B.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:ap,noRowsOverlayComponent:lp,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"},defaultCsvExportParams:{allColumns:!0,suppressQuotes:!0,fileName:"table.csv"}}),L=B=>{const x=B.api;S.value=new Proxy(x,{get(D,$,re){switch($){case"setGridOption":return(se,Pe)=>{const He=N.value;He[se]=Pe,N.value=He,x.setGridOption(se,Pe)};case"updateGridOptions":return se=>{N.value={...N.value,...se},x.updateGridOptions(se)};default:return Reflect.get(D,$,re)}}})},O=B=>({columnOrder:B.columnOrder,sort:B.sort,columnVisibility:B.columnVisibility??(B.columnOrder?{hiddenColIds:[]}:void 0)}),C=B=>{N.value.initialState=f.value=O(B.state),B.api.autoSizeAllColumns()},A=()=>{N.value.initialState=f.value=O(S.value.getState()),S.value=void 0};let H=!1;const X=()=>{if(!H)return;const B=S.value;B!==void 0&&(B.exportDataAsCsv(),H=!1,B.setGridOption("cacheBlockSize",100))},G=()=>{if(!H)return;const B=S.value;if(B===void 0)return;const x=B.getServerSideGroupLevelState()[0];x.cacheBlockSize===x.rowCount&&B.refreshServerSide({route:x.route,purge:!1})};e({exportCsv:async()=>{const B=S.value;if(B!==void 0){if(N.value.rowModelType==="clientSide"){B.exportDataAsCsv();return}if(N.value.rowModelType==="serverSide"){const x=B.getServerSideGroupLevelState()[0];if(x.rowCount<=x.cacheBlockSize){B.exportDataAsCsv();return}H||(H=!0,B.setGridOption("cacheBlockSize",x.rowCount))}}}});const U=r.ref(0);r.watch(()=>[S.value,f.value],(B,x)=>{if(Ge.isEqual(B,x))return;const[D,$]=B;if(!D)return;const re=O(D.getState());Ge.isEqual($,re)||(N.value.initialState=$,++U.value)}),r.watch(()=>N.value,(B,x)=>{var D;if(x&&(B.rowModelType!=x.rowModelType&&++U.value,!Ge.isEqual(B.columnDefs,x.columnDefs)&&B.columnDefs)){const $=Pe=>!("children"in Pe),re=(D=B.columnDefs)==null?void 0:D.filter($),se=re==null?void 0:re.map(Pe=>Pe.colId).filter(Pe=>Pe!==void 0).map(Pe=>dp(Pe));d("columnsChanged",se??[])}});const R=(B,x)=>{var $;const D=E.value;D[B]!==x&&(D[B]=x,E.value=D,($=S.value)==null||$.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))},V=window.platforma;if(!V)throw Error("platforma not set");const M=V.pFrameDriver;if(!M)throw Error("platforma.pFrameDriver not set");const W=V.blobDriver;if(!W)throw Error("platforma.blobDriver not set");let q;return r.watch(()=>[S.value,l.value,u.value],async B=>{var se,Pe;const[x,D,$]=B;if(!x||Ge.isEqual(D,q))return;q=D;const re=D.sourceType;switch(re){case"pframe":case"ptable":{const He=D.pTable;if(!He||!$)return x.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=(Pe=(se=f.value)==null?void 0:se.columnVisibility)==null?void 0:Pe.hiddenColIds,_n=await uT(M,He,$,ot);return x.updateGridOptions({loading:_n.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},..._n})}case"xsv":{const He=D.xsvFile;if(!(He!=null&&He.ok)||!He.value)return x.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=await QE(W,He.value);return x.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...ot})}default:throw Error(`unsupported source type: ${re}`)}}),(B,x)=>(r.openBlock(),r.createElementBlock("div",pT,[r.createVNode(r.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:r.withCtx(()=>[r.unref(u).value&&r.unref(u).value.length>0?(r.openBlock(),r.createElementBlock("div",hT,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).value,(D,$)=>(r.openBlock(),r.createBlock(r.unref(Mu),{key:$,"model-value":E.value[m(D.axis)],options:D.options,"onUpdate:modelValue":re=>R(m(D.axis),re)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)]),_:1}),(r.openBlock(),r.createBlock(r.unref(lm.AgGridVue),{key:U.value,theme:r.unref(eu),class:"ap-ag-data-table-grid","grid-options":N.value,onGridReady:L,onStateUpdated:C,onGridPreDestroyed:A,onStoreRefreshed:X,onModelUpdated:G},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-7ab26ece"]]),mT={key:0,class:"d-flex gap-10 flex-column"},gT={key:0},yT=Ts(r.defineComponent({__name:"PlTableFilters",props:r.mergeModels({columns:{},restrictions:{},defaults:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t,{columns:o,restrictions:s,defaults:l}=r.toRefs(n),d=V=>no(V.id),u=r.computed(()=>o.value.filter(V=>{const M=V.type;switch(M){case"axis":return V.spec.type!=="Bytes";case"column":return V.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${M}`)}}).map(V=>({column:V,id:d(V)}))),p=r.computed(()=>{const V=s.value??[],M={};for(const{column:W,id:q}of u.value){const B=Ge.find(V,x=>Ge.isEqual(x.column.id,W.id));B!==void 0&&(M[q]=B.allowedFilterTypes)}return M}),f=r.computed(()=>{const V=l.value??[],M={};for(const{column:W,id:q}of u.value){const B=Ge.find(V,x=>Ge.isEqual(x.column.id,W.id));B!==void 0&&(M[q]=B.default)}return M}),m=V=>V!==void 0?V:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,V=>{Ge.isEqual(y.state,V.state)||(y.state=m(V.state))}),r.watch(()=>u.value,V=>{if(y.state!==void 0&&V.length===0)return;const M=y.state??{},W={};for(const{id:q}of V)M[q]!==void 0&&(W[q]=M[q]);y.state=W},{immediate:!0});const E=V=>{switch(V){case"isNotNA":return"Is not NA";case"isNA":return"Is NA";case"number_equals":case"string_equals":return"Equals";case"number_notEquals":case"string_notEquals":return"Not equals";case"number_greaterThan":return"Greater than";case"number_greaterThanOrEqualTo":return"Greater than or equal to";case"number_lessThan":return"Less than";case"number_lessThanOrEqualTo":return"Less than or equal to";case"number_between":return"Between";case"string_contains":return"Contains";case"string_doesNotContain":return"Does not contain";case"string_matches":return"Matches";case"string_doesNotMatch":return"Does not match";case"string_containsFuzzyMatch":return"Contains fuzzy match";default:throw Error(`unsupported filter type: ${V}`)}},S=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThan","number_greaterThanOrEqualTo","number_lessThan","number_lessThanOrEqualTo","number_between"],N=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],L=r.computed(()=>{const V=p.value,M={};for(const{column:W,id:q}of u.value){let x=(W.type==="column"?W.spec.valueType:W.spec.type)==="String"?N:S;const D=V[q];D!==void 0&&(x=x.filter($=>D.includes($))),M[q]=x.map($=>({value:$,text:E($)}))}return M}),O=r.computed(()=>Ge.some(Object.values(L.value),V=>V.length>0)),C=V=>{const M=V.type;switch(M){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return V.reference;case"number_between":return V.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return V.reference;default:throw Error(`unsupported filter type: ${M}`)}},A=(V,M)=>{switch(V){case"isNotNA":case"isNA":return{type:V};case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return{type:V,reference:typeof M=="number"?M:0};case"number_between":return{type:V,lowerBound:typeof M=="number"?M:0,includeLowerBound:!0,upperBound:100,includeUpperBound:!1};case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":return{type:V,reference:typeof M=="string"?M:""};case"string_containsFuzzyMatch":return{type:V,reference:typeof M=="string"?M:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${V}`)}},H=(V,M)=>{const W=y.state[V];y.state[V]=A(M,C(W))},X=(V,M)=>{M?y.state[V]=f.value[V]??A(L.value[V][0].value):delete y.state[V]},G=V=>{const M=Ge.uniq(V);return M.sort(),M.map(W=>({value:W,text:W}))},Y=V=>{const M=Number(V);if(!Number.isFinite(M))throw Error("Model value is not a number.");return M},U=V=>{const M=V.type;switch(M){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:V.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:V.reference}};case"number_greaterThan":return{operator:"Greater",reference:V.reference};case"number_greaterThanOrEqualTo":return{operator:"GreaterOrEqual",reference:V.reference};case"number_lessThan":return{operator:"Less",reference:V.reference};case"number_lessThanOrEqualTo":return{operator:"LessOrEqual",reference:V.reference};case"number_between":return{operator:"And",operands:[{operator:V.includeLowerBound?"GreaterOrEqual":"Greater",reference:V.lowerBound},{operator:V.includeUpperBound?"LessOrEqual":"Less",reference:V.upperBound}]};case"string_contains":return{operator:"StringContains",substring:V.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:V.reference}};case"string_matches":return{operator:"Matches",regex:V.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:V.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:V.reference,maxEdits:V.maxEdits,substitutionsOnly:V.substitutionsOnly,wildcard:V.wildcard};default:throw Error(`unsupported filter type: ${M}`)}},R=V=>u.value.map(({column:M,id:W})=>{if(!(W in V))return;const q=U(V[W]),{spec:B,...x}=M;return{type:"bySingleColumn",column:x,predicate:q}}).filter(M=>M!==void 0);return r.watch(()=>y,V=>{Ge.isEqual(V.state,e.value.state)||(e.value={state:Ge.cloneDeep(V.state),filters:R(V.state)})},{immediate:!0,deep:!0}),(V,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:W,id:q},B)=>{var x,D,$,re,se,Pe,He,ot,_n,Dn,Cr,Zn,Hr,Ps;return r.openBlock(),r.createElementBlock("div",{key:q},[L.value[q].length>0?(r.openBlock(),r.createElementBlock("form",mT,[r.createVNode(r.unref(Iu),{"model-value":!!y.state[q],"onUpdate:modelValue":ze=>X(q,ze)},{default:r.withCtx(()=>{var ze,wr;return[r.createTextVNode(r.toDisplayString(((wr=(ze=W.spec.annotations)==null?void 0:ze["pl7.app/label"])==null?void 0:wr.trim())??"Unlabeled "+W.type+" "+B.toString()),1)]}),_:2},1032,["model-value","onUpdate:modelValue"]),r.createElementVNode("div",{class:r.normalizeClass(["controls d-flex gap-10 flex-column",{open:!!y.state[q]}])},[y.state[q]?(r.openBlock(),r.createBlock(r.unref(ui),{key:0,"model-value":y.state[q].type,options:L.value[q],label:"Predicate","onUpdate:modelValue":ze=>H(q,ze)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((x=y.state[q])==null?void 0:x.type)==="number_equals"||((D=y.state[q])==null?void 0:D.type)==="number_notEquals"||(($=y.state[q])==null?void 0:$.type)==="number_lessThan"||((re=y.state[q])==null?void 0:re.type)==="number_lessThanOrEqualTo"||((se=y.state[q])==null?void 0:se.type)==="number_greaterThan"||((Pe=y.state[q])==null?void 0:Pe.type)==="number_greaterThanOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(Lr),{key:1,modelValue:y.state[q].reference,"onUpdate:modelValue":ze=>y.state[q].reference=ze,parse:Y,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((He=y.state[q])==null?void 0:He.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(Lr),{modelValue:y.state[q].lowerBound,"onUpdate:modelValue":ze=>y.state[q].lowerBound=ze,parse:Y,label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeLowerBound,"onUpdate:modelValue":ze=>y.state[q].includeLowerBound=ze,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Lr),{modelValue:y.state[q].upperBound,"onUpdate:modelValue":ze=>y.state[q].upperBound=ze,parse:Y,label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeUpperBound,"onUpdate:modelValue":ze=>y.state[q].includeUpperBound=ze,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((ot=y.state[q])==null?void 0:ot.type)==="string_equals"||((_n=y.state[q])==null?void 0:_n.type)==="string_notEquals"||((Dn=y.state[q])==null?void 0:Dn.type)==="string_contains"||((Cr=y.state[q])==null?void 0:Cr.type)==="string_doesNotContain"||((Zn=y.state[q])==null?void 0:Zn.type)==="string_matches"||((Hr=y.state[q])==null?void 0:Hr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(Lr),{key:3,modelValue:y.state[q].reference,"onUpdate:modelValue":ze=>y.state[q].reference=ze,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Ps=y.state[q])==null?void 0:Ps.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[r.createVNode(r.unref(Lr),{modelValue:y.state[q].reference,"onUpdate:modelValue":ze=>y.state[q].reference=ze,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(op),{modelValue:y.state[q].maxEdits,"onUpdate:modelValue":ze=>y.state[q].maxEdits=ze,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].substitutionsOnly,"onUpdate:modelValue":ze=>y.state[q].substitutionsOnly=ze,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(ui),{modelValue:y.state[q].wildcard,"onUpdate:modelValue":ze=>y.state[q].wildcard=ze,options:G(y.state[q].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128)),O.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",gT,"No filters applicable"))],64))}}),[["__scopeId","data-v-b30bf5ef"]]),vT={key:1,class:"alert-error"},_T={key:2},CT=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),o=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&o.value===void 0);return(l,d)=>(r.openBlock(),r.createElementBlock("div",null,[n.value!==void 0?r.renderSlot(l.$slots,"default",r.normalizeProps(r.mergeProps({key:0},{value:n.value}))):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("div",vT,r.toDisplayString(o.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",_T,"Unresolved")):r.createCommentVNode("",!0)]))}}),wT={style:{height:"100%"}},bT=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),o=r.computed(()=>e.params.value);function s(d){e.params.setValue(d)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(o.value):void 0);return(d,u)=>(r.openBlock(),r.createElementBlock("div",wT,[r.createVNode(r.unref(np),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${n.value?n.value[0]:""}`,extensions:n.value,"model-value":o.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),xT={class:"pl-ag-grid-open-cell d-flex"},kT={class:"pl-ag-grid-open-cell__value"},ST=r.defineComponent({__name:"PlAgTextAndButtonCell",props:{params:{}},setup(t){const e=t;function n(){const o=document.querySelector(`.ag-row[row-index="${e.params.node.rowIndex}"]`);if(o){const s=new MouseEvent("dblclick",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(s)}else console.warn(`Row with index ${e.params.node.rowIndex} not found.`)}return(o,s)=>(r.openBlock(),r.createElementBlock("div",xT,[r.createElementVNode("div",kT,r.toDisplayString(o.params.value),1),r.createElementVNode("div",{class:"pl-ag-grid-open-cell__activator text-caps11 align-center",onClick:r.withModifiers(n,["stop"])},[r.createVNode(r.unref(cr),{name:o.params.plIcon??"maximize"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(o.params.plBtnLabel??"Open"),1)])]))}}),As=new Map;function ET(t,e){const n=r.getCurrentScope()??r.effectScope(),o=n.run(()=>(r.onScopeDispose(()=>{As.delete(t)}),r.reactive(e())));return o[Symbol.dispose]=()=>{n.stop()},o}function TT(t){const e=Symbol();return()=>(As.has(e)||As.set(e,ET(e,t)),As.get(e))}function BT(t){return r.computed(()=>{try{return md(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function fp(t,e,n){const o=r.ref(0),s=r.reactive({loading:r.computed(()=>o.value>0),loadingRef:o,value:void 0,error:void 0}),l=um(e);return r.watch(t,async d=>{s.error=void 0,o.value++,l(d).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{o.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const Co=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,mp=new Set,Nl=typeof process=="object"&&process?process:{},gp=(t,e,n,o)=>{typeof Nl.emitWarning=="function"?Nl.emitWarning(t,e,n,o):console.error(`[${n}] ${e}: ${t}`)};let Ns=globalThis.AbortController,yp=globalThis.AbortSignal;if(typeof Ns>"u"){yp=class{constructor(){Ze(this,"onabort");Ze(this,"_onabort",[]);Ze(this,"reason");Ze(this,"aborted",!1)}addEventListener(o,s){this._onabort.push(s)}},Ns=class{constructor(){Ze(this,"signal",new yp);e()}abort(o){var s,l;if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(const d of this.signal._onabort)d(o);(l=(s=this.signal).onabort)==null||l.call(s,o)}}};let t=((_p=Nl.env)==null?void 0:_p.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,gp("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const AT=t=>!mp.has(t),vr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),vp=t=>vr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Vs:null:null;class Vs extends Array{constructor(e){super(e),this.fill(0)}}const $r=class $r{constructor(e,n){Ze(this,"heap");Ze(this,"length");if(!w($r,wo))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=vp(e);if(!n)return[];me($r,wo,!0);const o=new $r(e,n);return me($r,wo,!1),o}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};wo=new WeakMap,Oe($r,wo,!1);let Vl=$r;const Fl=class Fl{constructor(e){Oe(this,te);Oe(this,un);Oe(this,Ot);Oe(this,pn);Oe(this,hn);Oe(this,bo);Oe(this,xo);Ze(this,"ttl");Ze(this,"ttlResolution");Ze(this,"ttlAutopurge");Ze(this,"updateAgeOnGet");Ze(this,"updateAgeOnHas");Ze(this,"allowStale");Ze(this,"noDisposeOnSet");Ze(this,"noUpdateTTL");Ze(this,"maxEntrySize");Ze(this,"sizeCalculation");Ze(this,"noDeleteOnFetchRejection");Ze(this,"noDeleteOnStaleGet");Ze(this,"allowStaleOnFetchAbort");Ze(this,"allowStaleOnFetchRejection");Ze(this,"ignoreFetchAbort");Oe(this,ct);Oe(this,fn);Oe(this,at);Oe(this,Ke);Oe(this,be);Oe(this,Tt);Oe(this,Gt);Oe(this,wt);Oe(this,ht);Oe(this,mn);Oe(this,ft);Oe(this,gn);Oe(this,yn);Oe(this,zt);Oe(this,vn);Oe(this,_r);Oe(this,Bt);Oe(this,Zr,()=>{});Oe(this,$n,()=>{});Oe(this,Ni,()=>{});Oe(this,$t,()=>!1);Oe(this,Ur,e=>{});Oe(this,ko,(e,n,o)=>{});Oe(this,Vi,(e,n,o,s)=>{if(o||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ze(this,Cp,"LRUCache");const{max:n=0,ttl:o,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:d,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:E,maxSize:S=0,maxEntrySize:N=0,sizeCalculation:L,fetchMethod:O,memoMethod:C,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:H,allowStaleOnFetchRejection:X,allowStaleOnFetchAbort:G,ignoreFetchAbort:Y}=e;if(n!==0&&!vr(n))throw new TypeError("max option must be a nonnegative integer");const U=n?vp(n):Array;if(!U)throw new Error("invalid max value: "+n);if(me(this,un,n),me(this,Ot,S),this.maxEntrySize=N||w(this,Ot),this.sizeCalculation=L,this.sizeCalculation){if(!w(this,Ot)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(me(this,xo,C),O!==void 0&&typeof O!="function")throw new TypeError("fetchMethod must be a function if specified");if(me(this,bo,O),me(this,_r,!!O),me(this,at,new Map),me(this,Ke,new Array(n).fill(void 0)),me(this,be,new Array(n).fill(void 0)),me(this,Tt,new U(n)),me(this,Gt,new U(n)),me(this,wt,0),me(this,ht,0),me(this,mn,Vl.create(n)),me(this,ct,0),me(this,fn,0),typeof f=="function"&&me(this,pn,f),typeof m=="function"?(me(this,hn,m),me(this,ft,[])):(me(this,hn,void 0),me(this,ft,void 0)),me(this,vn,!!w(this,pn)),me(this,Bt,!!w(this,hn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!X,this.allowStaleOnFetchAbort=!!G,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(w(this,Ot)!==0&&!vr(w(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!vr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");de(this,te,nm).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!H,this.updateAgeOnGet=!!d,this.updateAgeOnHas=!!u,this.ttlResolution=vr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=o||0,this.ttl){if(!vr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");de(this,te,rd).call(this)}if(w(this,un)===0&&this.ttl===0&&w(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,un)&&!w(this,Ot)){const R="LRU_CACHE_UNBOUNDED";AT(R)&&(mp.add(R),gp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",R,Fl))}}static unsafeExposeInternals(e){return{starts:w(e,yn),ttls:w(e,zt),sizes:w(e,gn),keyMap:w(e,at),keyList:w(e,Ke),valList:w(e,be),next:w(e,Tt),prev:w(e,Gt),get head(){return w(e,wt)},get tail(){return w(e,ht)},free:w(e,mn),isBackgroundFetch:n=>{var o;return de(o=e,te,Je).call(o,n)},backgroundFetch:(n,o,s,l)=>{var d;return de(d=e,te,Ea).call(d,n,o,s,l)},moveToTail:n=>{var o;return de(o=e,te,Xi).call(o,n)},indexes:n=>{var o;return de(o=e,te,Vr).call(o,n)},rindexes:n=>{var o;return de(o=e,te,Pr).call(o,n)},isStale:n=>{var o;return w(o=e,$t).call(o,n)}}}get max(){return w(this,un)}get maxSize(){return w(this,Ot)}get calculatedSize(){return w(this,fn)}get size(){return w(this,ct)}get fetchMethod(){return w(this,bo)}get memoMethod(){return w(this,xo)}get dispose(){return w(this,pn)}get disposeAfter(){return w(this,hn)}getRemainingTTL(e){return w(this,at).has(e)?1/0:0}*entries(){for(const e of de(this,te,Vr).call(this))w(this,be)[e]!==void 0&&w(this,Ke)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield[w(this,Ke)[e],w(this,be)[e]])}*rentries(){for(const e of de(this,te,Pr).call(this))w(this,be)[e]!==void 0&&w(this,Ke)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield[w(this,Ke)[e],w(this,be)[e]])}*keys(){for(const e of de(this,te,Vr).call(this)){const n=w(this,Ke)[e];n!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield n)}}*rkeys(){for(const e of de(this,te,Pr).call(this)){const n=w(this,Ke)[e];n!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield n)}}*values(){for(const e of de(this,te,Vr).call(this))w(this,be)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield w(this,be)[e])}*rvalues(){for(const e of de(this,te,Pr).call(this))w(this,be)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield w(this,be)[e])}[(wp=Symbol.iterator,Cp=Symbol.toStringTag,wp)](){return this.entries()}find(e,n={}){for(const o of de(this,te,Vr).call(this)){const s=w(this,be)[o],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,w(this,Ke)[o],this))return this.get(w(this,Ke)[o],n)}}forEach(e,n=this){for(const o of de(this,te,Vr).call(this)){const s=w(this,be)[o],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,Ke)[o],this)}}rforEach(e,n=this){for(const o of de(this,te,Pr).call(this)){const s=w(this,be)[o],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,Ke)[o],this)}}purgeStale(){let e=!1;for(const n of de(this,te,Pr).call(this,{allowStale:!0}))w(this,$t).call(this,n)&&(de(this,te,Dr).call(this,w(this,Ke)[n],"expire"),e=!0);return e}info(e){const n=w(this,at).get(e);if(n===void 0)return;const o=w(this,be)[n],s=de(this,te,Je).call(this,o)?o.__staleWhileFetching:o;if(s===void 0)return;const l={value:s};if(w(this,zt)&&w(this,yn)){const d=w(this,zt)[n],u=w(this,yn)[n];if(d&&u){const p=d-(Co.now()-u);l.ttl=p,l.start=Date.now()}}return w(this,gn)&&(l.size=w(this,gn)[n]),l}dump(){const e=[];for(const n of de(this,te,Vr).call(this,{allowStale:!0})){const o=w(this,Ke)[n],s=w(this,be)[n],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||o===void 0)continue;const d={value:l};if(w(this,zt)&&w(this,yn)){d.ttl=w(this,zt)[n];const u=Co.now()-w(this,yn)[n];d.start=Math.floor(Date.now()-u)}w(this,gn)&&(d.size=w(this,gn)[n]),e.unshift([o,d])}return e}load(e){this.clear();for(const[n,o]of e){if(o.start){const s=Date.now()-o.start;o.start=Co.now()-s}this.set(n,o.value,o)}}set(e,n,o={}){var E,S,N,L,O;if(n===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:l,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=o;let{noUpdateTTL:f=this.noUpdateTTL}=o;const m=w(this,Vi).call(this,e,n,o.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),de(this,te,Dr).call(this,e,"set"),this;let y=w(this,ct)===0?void 0:w(this,at).get(e);if(y===void 0)y=w(this,ct)===0?w(this,ht):w(this,mn).length!==0?w(this,mn).pop():w(this,ct)===w(this,un)?de(this,te,Sa).call(this,!1):w(this,ct),w(this,Ke)[y]=e,w(this,be)[y]=n,w(this,at).set(e,y),w(this,Tt)[w(this,ht)]=y,w(this,Gt)[y]=w(this,ht),me(this,ht,y),ka(this,ct)._++,w(this,ko).call(this,y,m,p),p&&(p.set="add"),f=!1;else{de(this,te,Xi).call(this,y);const C=w(this,be)[y];if(n!==C){if(w(this,_r)&&de(this,te,Je).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:A}=C;A!==void 0&&!d&&(w(this,vn)&&((E=w(this,pn))==null||E.call(this,A,e,"set")),w(this,Bt)&&((S=w(this,ft))==null||S.push([A,e,"set"])))}else d||(w(this,vn)&&((N=w(this,pn))==null||N.call(this,C,e,"set")),w(this,Bt)&&((L=w(this,ft))==null||L.push([C,e,"set"])));if(w(this,Ur).call(this,y),w(this,ko).call(this,y,m,p),w(this,be)[y]=n,p){p.set="replace";const A=C&&de(this,te,Je).call(this,C)?C.__staleWhileFetching:C;A!==void 0&&(p.oldValue=A)}}else p&&(p.set="update")}if(s!==0&&!w(this,zt)&&de(this,te,rd).call(this),w(this,zt)&&(f||w(this,Ni).call(this,y,s,l),p&&w(this,$n).call(this,p,y)),!d&&w(this,Bt)&&w(this,ft)){const C=w(this,ft);let A;for(;A=C==null?void 0:C.shift();)(O=w(this,hn))==null||O.call(this,...A)}return this}pop(){var e;try{for(;w(this,ct);){const n=w(this,be)[w(this,wt)];if(de(this,te,Sa).call(this,!0),de(this,te,Je).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,Bt)&&w(this,ft)){const n=w(this,ft);let o;for(;o=n==null?void 0:n.shift();)(e=w(this,hn))==null||e.call(this,...o)}}}has(e,n={}){const{updateAgeOnHas:o=this.updateAgeOnHas,status:s}=n,l=w(this,at).get(e);if(l!==void 0){const d=w(this,be)[l];if(de(this,te,Je).call(this,d)&&d.__staleWhileFetching===void 0)return!1;if(w(this,$t).call(this,l))s&&(s.has="stale",w(this,$n).call(this,s,l));else return o&&w(this,Zr).call(this,l),s&&(s.has="hit",w(this,$n).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:o=this.allowStale}=n,s=w(this,at).get(e);if(s===void 0||!o&&w(this,$t).call(this,s))return;const l=w(this,be)[s];return de(this,te,Je).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:o=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:d=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:E=this.allowStaleOnFetchRejection,ignoreFetchAbort:S=this.ignoreFetchAbort,allowStaleOnFetchAbort:N=this.allowStaleOnFetchAbort,context:L,forceRefresh:O=!1,status:C,signal:A}=n;if(!w(this,_r))return C&&(C.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const H={allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:d,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:N,ignoreFetchAbort:S,status:C,signal:A};let X=w(this,at).get(e);if(X===void 0){C&&(C.fetch="miss");const G=de(this,te,Ea).call(this,e,X,H,L);return G.__returned=G}else{const G=w(this,be)[X];if(de(this,te,Je).call(this,G)){const M=o&&G.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",M&&(C.returnedStale=!0)),M?G.__staleWhileFetching:G.__returned=G}const Y=w(this,$t).call(this,X);if(!O&&!Y)return C&&(C.fetch="hit"),de(this,te,Xi).call(this,X),s&&w(this,Zr).call(this,X),C&&w(this,$n).call(this,C,X),G;const U=de(this,te,Ea).call(this,e,X,H,L),V=U.__staleWhileFetching!==void 0&&o;return C&&(C.fetch=Y?"stale":"refresh",V&&Y&&(C.returnedStale=!0)),V?U.__staleWhileFetching:U.__returned=U}}async forceFetch(e,n={}){const o=await this.fetch(e,n);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,n={}){const o=w(this,xo);if(!o)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:l,...d}=n,u=this.get(e,d);if(!l&&u!==void 0)return u;const p=o(e,u,{options:d,context:s});return this.set(e,p,d),p}get(e,n={}){const{allowStale:o=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:d}=n,u=w(this,at).get(e);if(u!==void 0){const p=w(this,be)[u],f=de(this,te,Je).call(this,p);return d&&w(this,$n).call(this,d,u),w(this,$t).call(this,u)?(d&&(d.get="stale"),f?(d&&o&&p.__staleWhileFetching!==void 0&&(d.returnedStale=!0),o?p.__staleWhileFetching:void 0):(l||de(this,te,Dr).call(this,e,"expire"),d&&o&&(d.returnedStale=!0),o?p:void 0)):(d&&(d.get="hit"),f?p.__staleWhileFetching:(de(this,te,Xi).call(this,u),s&&w(this,Zr).call(this,u),p))}else d&&(d.get="miss")}delete(e){return de(this,te,Dr).call(this,e,"delete")}clear(){return de(this,te,sd).call(this,"delete")}};un=new WeakMap,Ot=new WeakMap,pn=new WeakMap,hn=new WeakMap,bo=new WeakMap,xo=new WeakMap,ct=new WeakMap,fn=new WeakMap,at=new WeakMap,Ke=new WeakMap,be=new WeakMap,Tt=new WeakMap,Gt=new WeakMap,wt=new WeakMap,ht=new WeakMap,mn=new WeakMap,ft=new WeakMap,gn=new WeakMap,yn=new WeakMap,zt=new WeakMap,vn=new WeakMap,_r=new WeakMap,Bt=new WeakMap,te=new WeakSet,rd=function(){const e=new Vs(w(this,un)),n=new Vs(w(this,un));me(this,zt,e),me(this,yn,n),me(this,Ni,(l,d,u=Co.now())=>{if(n[l]=d!==0?u:0,e[l]=d,d!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,$t).call(this,l)&&de(this,te,Dr).call(this,w(this,Ke)[l],"expire")},d+1);p.unref&&p.unref()}}),me(this,Zr,l=>{n[l]=e[l]!==0?Co.now():0}),me(this,$n,(l,d)=>{if(e[d]){const u=e[d],p=n[d];if(!u||!p)return;l.ttl=u,l.start=p,l.now=o||s();const f=l.now-p;l.remainingTTL=u-f}});let o=0;const s=()=>{const l=Co.now();if(this.ttlResolution>0){o=l;const d=setTimeout(()=>o=0,this.ttlResolution);d.unref&&d.unref()}return l};this.getRemainingTTL=l=>{const d=w(this,at).get(l);if(d===void 0)return 0;const u=e[d],p=n[d];if(!u||!p)return 1/0;const f=(o||s())-p;return u-f},me(this,$t,l=>{const d=n[l],u=e[l];return!!u&&!!d&&(o||s())-d>u})},Zr=new WeakMap,$n=new WeakMap,Ni=new WeakMap,$t=new WeakMap,nm=function(){const e=new Vs(w(this,un));me(this,fn,0),me(this,gn,e),me(this,Ur,n=>{me(this,fn,w(this,fn)-e[n]),e[n]=0}),me(this,Vi,(n,o,s,l)=>{if(de(this,te,Je).call(this,o))return 0;if(!vr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(o,n),!vr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),me(this,ko,(n,o,s)=>{if(e[n]=o,w(this,Ot)){const l=w(this,Ot)-e[n];for(;w(this,fn)>l;)de(this,te,Sa).call(this,!0)}me(this,fn,w(this,fn)+e[n]),s&&(s.entrySize=o,s.totalCalculatedSize=w(this,fn))})},Ur=new WeakMap,ko=new WeakMap,Vi=new WeakMap,Vr=function*({allowStale:e=this.allowStale}={}){if(w(this,ct))for(let n=w(this,ht);!(!de(this,te,od).call(this,n)||((e||!w(this,$t).call(this,n))&&(yield n),n===w(this,wt)));)n=w(this,Gt)[n]},Pr=function*({allowStale:e=this.allowStale}={}){if(w(this,ct))for(let n=w(this,wt);!(!de(this,te,od).call(this,n)||((e||!w(this,$t).call(this,n))&&(yield n),n===w(this,ht)));)n=w(this,Tt)[n]},od=function(e){return e!==void 0&&w(this,at).get(w(this,Ke)[e])===e},Sa=function(e){var l,d;const n=w(this,wt),o=w(this,Ke)[n],s=w(this,be)[n];return w(this,_r)&&de(this,te,Je).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,vn)||w(this,Bt))&&(w(this,vn)&&((l=w(this,pn))==null||l.call(this,s,o,"evict")),w(this,Bt)&&((d=w(this,ft))==null||d.push([s,o,"evict"]))),w(this,Ur).call(this,n),e&&(w(this,Ke)[n]=void 0,w(this,be)[n]=void 0,w(this,mn).push(n)),w(this,ct)===1?(me(this,wt,me(this,ht,0)),w(this,mn).length=0):me(this,wt,w(this,Tt)[n]),w(this,at).delete(o),ka(this,ct)._--,n},Ea=function(e,n,o,s){const l=n===void 0?void 0:w(this,be)[n];if(de(this,te,Je).call(this,l))return l;const d=new Ns,{signal:u}=o;u==null||u.addEventListener("abort",()=>d.abort(u.reason),{signal:d.signal});const p={signal:d.signal,options:o,context:s},f=(L,O=!1)=>{const{aborted:C}=d.signal,A=o.ignoreFetchAbort&&L!==void 0;if(o.status&&(C&&!O?(o.status.fetchAborted=!0,o.status.fetchError=d.signal.reason,A&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),C&&!A&&!O)return y(d.signal.reason);const H=S;return w(this,be)[n]===S&&(L===void 0?H.__staleWhileFetching?w(this,be)[n]=H.__staleWhileFetching:de(this,te,Dr).call(this,e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,L,p.options))),L},m=L=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=L),y(L)),y=L=>{const{aborted:O}=d.signal,C=O&&o.allowStaleOnFetchAbort,A=C||o.allowStaleOnFetchRejection,H=A||o.noDeleteOnFetchRejection,X=S;if(w(this,be)[n]===S&&(!H||X.__staleWhileFetching===void 0?de(this,te,Dr).call(this,e,"fetch"):C||(w(this,be)[n]=X.__staleWhileFetching)),A)return o.status&&X.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),X.__staleWhileFetching;if(X.__returned===X)throw L},E=(L,O)=>{var A;const C=(A=w(this,bo))==null?void 0:A.call(this,e,l,p);C&&C instanceof Promise&&C.then(H=>L(H===void 0?void 0:H),O),d.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(L(void 0),o.allowStaleOnFetchAbort&&(L=H=>f(H,!0)))})};o.status&&(o.status.fetchDispatched=!0);const S=new Promise(E).then(f,m),N=Object.assign(S,{__abortController:d,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,N,{...p.options,status:void 0}),n=w(this,at).get(e)):w(this,be)[n]=N,N},Je=function(e){if(!w(this,_r))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ns},id=function(e,n){w(this,Gt)[n]=e,w(this,Tt)[e]=n},Xi=function(e){e!==w(this,ht)&&(e===w(this,wt)?me(this,wt,w(this,Tt)[e]):de(this,te,id).call(this,w(this,Gt)[e],w(this,Tt)[e]),de(this,te,id).call(this,w(this,ht),e),me(this,ht,e))},Dr=function(e,n){var s,l,d,u;let o=!1;if(w(this,ct)!==0){const p=w(this,at).get(e);if(p!==void 0)if(o=!0,w(this,ct)===1)de(this,te,sd).call(this,n);else{w(this,Ur).call(this,p);const f=w(this,be)[p];if(de(this,te,Je).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,vn)||w(this,Bt))&&(w(this,vn)&&((s=w(this,pn))==null||s.call(this,f,e,n)),w(this,Bt)&&((l=w(this,ft))==null||l.push([f,e,n]))),w(this,at).delete(e),w(this,Ke)[p]=void 0,w(this,be)[p]=void 0,p===w(this,ht))me(this,ht,w(this,Gt)[p]);else if(p===w(this,wt))me(this,wt,w(this,Tt)[p]);else{const m=w(this,Gt)[p];w(this,Tt)[m]=w(this,Tt)[p];const y=w(this,Tt)[p];w(this,Gt)[y]=w(this,Gt)[p]}ka(this,ct)._--,w(this,mn).push(p)}}if(w(this,Bt)&&((d=w(this,ft))!=null&&d.length)){const p=w(this,ft);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,hn))==null||u.call(this,...f)}return o},sd=function(e){var n,o,s;for(const l of de(this,te,Pr).call(this,{allowStale:!0})){const d=w(this,be)[l];if(de(this,te,Je).call(this,d))d.__abortController.abort(new Error("deleted"));else{const u=w(this,Ke)[l];w(this,vn)&&((n=w(this,pn))==null||n.call(this,d,u,e)),w(this,Bt)&&((o=w(this,ft))==null||o.push([d,u,e]))}}if(w(this,at).clear(),w(this,be).fill(void 0),w(this,Ke).fill(void 0),w(this,zt)&&w(this,yn)&&(w(this,zt).fill(0),w(this,yn).fill(0)),w(this,gn)&&w(this,gn).fill(0),me(this,wt,0),me(this,ht,0),w(this,mn).length=0,me(this,fn,0),me(this,ct,0),w(this,Bt)&&w(this,ft)){const l=w(this,ft);let d;for(;d=l==null?void 0:l.shift();)(s=w(this,hn))==null||s.call(this,...d)}};let Pl=Fl;const NT={cacheSize:15e6};class VT{constructor(e){Ze(this,"_str");Ze(this,"_rawJson");Ze(this,"_zodSchema");Ze(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const Wr=class Wr{constructor(e){Ze(this,"fileDataCache");Ze(this,"fileDataRefs",new Map);const n={...NT,...e??{}};this.fileDataCache=new Pl({maxSize:n.cacheSize,fetchMethod:async o=>new VT(await Eg().blobDriver.getContent(o)),sizeCalculation:o=>o.bytes.length,dispose:(o,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const o=r.shallowRef();return this.fileDataRefs.set(e,o),(async()=>{try{const s=await this.fileDataCache.fetch(e);o.value=s}catch(s){console.error(s)}})(),o}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n.value)==null?void 0:o.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.str})}getContentJson(e,n){if(e===void 0)return;const o=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=o==null?void 0:o.value)==null?void 0:s.rawJson:(l=o==null?void 0:o.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return Wr.globalInstance.getContentBytes(e)}static getContentString(e){return Wr.globalInstance.getContentString(e)}static getContentJson(e,n){return Wr.globalInstance.getContentJson(e,n)}};Ze(Wr,"globalInstance",new Wr);let Dl=Wr;I.AgGridTheme=eu,I.BlockLayout=qE,I.ContextProvider=Fk,I.DataTable=z_,I.DemoData=RE,I.DropdownListItem=po,I.LongText=_l,I.MultiError=Aa,I.PlAccordion=jb,I.PlAccordionSection=nx,I.PlAgCellFile=bT,I.PlAgDataTable=fT,I.PlAgOverlayLoading=ap,I.PlAgOverlayNoRows=lp,I.PlAgTextAndButtonCell=ST,I.PlAlert=yC,I.PlBlockPage=rC,I.PlBtnAccent=RC,I.PlBtnDanger=IC,I.PlBtnGhost=hl,I.PlBtnGroup=iw,I.PlBtnLink=zC,I.PlBtnPrimary=ul,I.PlBtnSecondary=pl,I.PlBtnSplit=NC,I.PlCheckbox=Iu,I.PlCheckboxGroup=ib,I.PlChip=Cl,I.PlContainer=iC,I.PlDialogModal=bl,I.PlDropdown=ui,I.PlDropdownLegacy=T0,I.PlDropdownLine=Mu,I.PlDropdownMulti=eb,I.PlDropdownRef=n0,I.PlFileDialog=zu,I.PlFileInput=np,I.PlGrid=uC,I.PlIcon16=ms,I.PlIcon24=Pu,I.PlLogView=Ou,I.PlMaskIcon16=cr,I.PlMaskIcon24=Gn,I.PlNotificationAlert=rp,I.PlNumberField=O0,I.PlProgressBar=P0,I.PlRow=aC,I.PlSectionSeparator=Gu,I.PlSlideModal=_b,I.PlSpacer=Su,I.PlTableFilters=yT,I.PlTabs=zb,I.PlTextArea=Mw,I.PlTextField=Lr,I.PlToggleSwitch=gs,I.PlTooltip=St,I.ReactiveFileContent=Dl,I.Scrollable=kS,I.Slider=op,I.SliderRange=CS,I.SliderRangeTriple=lS,I.ThemeSwitcher=J_,I.UnresolvedError=Ba,I.ValueOrErrorsComponent=CT,I.activateAgGrid=Qd,I.animate=_u,I.animateInfinite=H_,I.call=fu,I.computedResult=BT,I.createModel=Ra,I.debounce=Cu,I.defineApp=vv,I.defineStore=TT,I.delay=mu,I.detectOutside=Iw,I.ensureError=Pa,I.eventListener=yl,I.formatZodError=Fa,I.getElementScrollPosition=Fu,I.identity=Va,I.isDefined=gm,I.isElementVisible=Du,I.isJsonEqual=Na,I.isZodError=Da,I.listToOptions=j_,I.makeEaseInOut=W_,I.makeEaseOut=vu,I.maskIcons16=DE,I.maskIcons24=FE,I.normalizeListOptions=lr,I.notEmpty=sl,I.randomInt=yu,I.randomString=U_,I.requestTick=al,I.scrollIntoView=di,I.showContextMenu=rl,I.throttle=wu,I.timeout=gu,I.unwrapOptionalResult=mm,I.unwrapValueOrErrors=fd,I.useClickOutside=fs,I.useDraggable=Jk,I.useEventListener=rt,I.useFormState=Kk,I.useHover=pu,I.useInterval=qk,I.useLabelNotch=On,I.useLocalStorage=bu,I.useMouse=uu,I.useMouseCapture=ar,I.usePosition=ho,I.useQuery=Yk,I.useResizeObserver=ip,I.useScroll=Wk,I.useSdkPlugin=Xa,I.useSortable=jk,I.useTheme=ku,I.useWatchFetch=fp,I.wrapOptionalResult=md,I.wrapValueOrErrors=fm,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
91
+ }`;var Ne=Jf(function(){return $e(_,ue+"return "+J).apply(n,k)});if(Ne.source=J,Wc(Ne))throw Ne;return Ne}function SF(i){return Ue(i).toLowerCase()}function EF(i){return Ue(i).toUpperCase()}function TF(i,a,c){if(i=Ue(i),i&&(c||a===n))return ih(i);if(!i||!(a=Wt(a)))return i;var h=bn(i),g=bn(a),_=sh(h,g),k=ah(h,g)+1;return Ar(h,_,k).join("")}function BF(i,a,c){if(i=Ue(i),i&&(c||a===n))return i.slice(0,ch(i)+1);if(!i||!(a=Wt(a)))return i;var h=bn(i),g=ah(h,bn(a))+1;return Ar(h,0,g).join("")}function AF(i,a,c){if(i=Ue(i),i&&(c||a===n))return i.replace(Wl,"");if(!i||!(a=Wt(a)))return i;var h=bn(i),g=sh(h,bn(a));return Ar(h,g).join("")}function NF(i,a){var c=M,h=W;if(tt(a)){var g="separator"in a?a.separator:g;c="length"in a?Te(a.length):c,h="omission"in a?Wt(a.omission):h}i=Ue(i);var _=i.length;if(Bo(i)){var k=bn(i);_=k.length}if(c>=_)return i;var T=c-Ao(h);if(T<1)return h;var F=k?Ar(k,0,T).join(""):i.slice(0,T);if(g===n)return F+h;if(k&&(T+=F.length-T),Hc(g)){if(i.slice(T).search(g)){var j,K=F;for(g.global||(g=lc(g.source,Ue(Tp.exec(g))+"g")),g.lastIndex=0;j=g.exec(K);)var J=j.index;F=F.slice(0,J===n?T:J)}}else if(i.indexOf(Wt(g),T)!=T){var ne=F.lastIndexOf(g);ne>-1&&(F=F.slice(0,ne))}return F+h}function VF(i){return i=Ue(i),i&&$T.test(i)?i.replace(kp,sA):i}var PF=Mo(function(i,a,c){return i+(c?" ":"")+a.toUpperCase()}),Kc=Jh("toUpperCase");function Yf(i,a,c){return i=Ue(i),a=c?n:a,a===n?tA(i)?cA(i):HB(i):i.match(a)||[]}var Jf=Ve(function(i,a){try{return Zt(i,n,a)}catch(c){return Wc(c)?c:new xe(c)}}),DF=Kn(function(i,a){return Jt(a,function(c){c=Mn(c),jn(i,c,Zc(i[c],i))}),i});function FF(i){var a=i==null?0:i.length,c=fe();return i=a?Xe(i,function(h){if(typeof h[1]!="function")throw new Xt(d);return[c(h[0]),h[1]]}):[],Ve(function(h){for(var g=-1;++g<a;){var _=i[g];if(Zt(_[0],this,h))return Zt(_[1],this,h)}})}function RF(i){return sN(en(i,y))}function Yc(i){return function(){return i}}function MF(i,a){return i==null||i!==i?a:i}var IF=Qh(),LF=Qh(!0);function Mt(i){return i}function Jc(i){return Ah(typeof i=="function"?i:en(i,y))}function OF(i){return Vh(en(i,y))}function GF(i,a){return Ph(i,en(a,y))}var zF=Ve(function(i,a){return function(c){return Wi(c,i,a)}}),$F=Ve(function(i,a){return function(c){return Wi(i,c,a)}});function Xc(i,a,c){var h=mt(a),g=oa(a,h);c==null&&!(tt(a)&&(g.length||!h.length))&&(c=a,a=i,i=this,g=oa(a,mt(a)));var _=!(tt(c)&&"chain"in c)||!!c.chain,k=Jn(i);return Jt(g,function(T){var F=a[T];i[T]=F,k&&(i.prototype[T]=function(){var j=this.__chain__;if(_||j){var K=i(this.__wrapped__),J=K.__actions__=Dt(this.__actions__);return J.push({func:F,args:arguments,thisArg:i}),K.__chain__=j,K}return F.apply(i,xr([this.value()],arguments))})}),i}function ZF(){return gt._===this&&(gt._=mA),this}function Qc(){}function UF(i){return i=Te(i),Ve(function(a){return Dh(a,i)})}var WF=Nc(Xe),HF=Nc(eh),jF=Nc(tc);function Xf(i){return Ic(i)?nc(Mn(i)):xN(i)}function qF(i){return function(a){return i==null?n:Xr(i,a)}}var KF=tf(),YF=tf(!0);function ed(){return[]}function td(){return!1}function JF(){return{}}function XF(){return""}function QF(){return!0}function eR(i,a){if(i=Te(i),i<1||i>se)return[];var c=ot,h=bt(i,ot);a=fe(a),i-=ot;for(var g=ic(h,a);++c<i;)a(c);return g}function tR(i){return ke(i)?Xe(i,Mn):Ht(i)?[i]:Dt(vf(Ue(i)))}function nR(i){var a=++hA;return Ue(i)+a}var rR=da(function(i,a){return i+a},0),oR=Vc("ceil"),iR=da(function(i,a){return i/a},1),sR=Vc("floor");function aR(i){return i&&i.length?ra(i,Mt,gc):n}function lR(i,a){return i&&i.length?ra(i,fe(a,2),gc):n}function cR(i){return rh(i,Mt)}function dR(i,a){return rh(i,fe(a,2))}function uR(i){return i&&i.length?ra(i,Mt,Cc):n}function pR(i,a){return i&&i.length?ra(i,fe(a,2),Cc):n}var hR=da(function(i,a){return i*a},1),fR=Vc("round"),mR=da(function(i,a){return i-a},0);function gR(i){return i&&i.length?oc(i,Mt):0}function yR(i,a){return i&&i.length?oc(i,fe(a,2)):0}return v.after=OP,v.ary=Af,v.assign=ED,v.assignIn=Zf,v.assignInWith=xa,v.assignWith=TD,v.at=BD,v.before=Nf,v.bind=Zc,v.bindAll=DF,v.bindKey=Vf,v.castArray=JP,v.chain=Ef,v.chunk=sV,v.compact=aV,v.concat=lV,v.cond=FF,v.conforms=RF,v.constant=Yc,v.countBy=gP,v.create=AD,v.curry=Pf,v.curryRight=Df,v.debounce=Ff,v.defaults=ND,v.defaultsDeep=VD,v.defer=GP,v.delay=zP,v.difference=cV,v.differenceBy=dV,v.differenceWith=uV,v.drop=pV,v.dropRight=hV,v.dropRightWhile=fV,v.dropWhile=mV,v.fill=gV,v.filter=vP,v.flatMap=wP,v.flatMapDeep=bP,v.flatMapDepth=xP,v.flatten=bf,v.flattenDeep=yV,v.flattenDepth=vV,v.flip=$P,v.flow=IF,v.flowRight=LF,v.fromPairs=_V,v.functions=LD,v.functionsIn=OD,v.groupBy=kP,v.initial=wV,v.intersection=bV,v.intersectionBy=xV,v.intersectionWith=kV,v.invert=zD,v.invertBy=$D,v.invokeMap=EP,v.iteratee=Jc,v.keyBy=TP,v.keys=mt,v.keysIn=Rt,v.map=ya,v.mapKeys=UD,v.mapValues=WD,v.matches=OF,v.matchesProperty=GF,v.memoize=_a,v.merge=HD,v.mergeWith=Uf,v.method=zF,v.methodOf=$F,v.mixin=Xc,v.negate=Ca,v.nthArg=UF,v.omit=jD,v.omitBy=qD,v.once=ZP,v.orderBy=BP,v.over=WF,v.overArgs=UP,v.overEvery=HF,v.overSome=jF,v.partial=Uc,v.partialRight=Rf,v.partition=AP,v.pick=KD,v.pickBy=Wf,v.property=Xf,v.propertyOf=qF,v.pull=BV,v.pullAll=kf,v.pullAllBy=AV,v.pullAllWith=NV,v.pullAt=VV,v.range=KF,v.rangeRight=YF,v.rearg=WP,v.reject=PP,v.remove=PV,v.rest=HP,v.reverse=zc,v.sampleSize=FP,v.set=JD,v.setWith=XD,v.shuffle=RP,v.slice=DV,v.sortBy=LP,v.sortedUniq=GV,v.sortedUniqBy=zV,v.split=wF,v.spread=jP,v.tail=$V,v.take=ZV,v.takeRight=UV,v.takeRightWhile=WV,v.takeWhile=HV,v.tap=aP,v.throttle=qP,v.thru=ga,v.toArray=Gf,v.toPairs=Hf,v.toPairsIn=jf,v.toPath=tR,v.toPlainObject=$f,v.transform=QD,v.unary=KP,v.union=jV,v.unionBy=qV,v.unionWith=KV,v.uniq=YV,v.uniqBy=JV,v.uniqWith=XV,v.unset=eF,v.unzip=$c,v.unzipWith=Sf,v.update=tF,v.updateWith=nF,v.values=Oo,v.valuesIn=rF,v.without=QV,v.words=Yf,v.wrap=YP,v.xor=eP,v.xorBy=tP,v.xorWith=nP,v.zip=rP,v.zipObject=oP,v.zipObjectDeep=iP,v.zipWith=sP,v.entries=Hf,v.entriesIn=jf,v.extend=Zf,v.extendWith=xa,Xc(v,v),v.add=rR,v.attempt=Jf,v.camelCase=aF,v.capitalize=qf,v.ceil=oR,v.clamp=oF,v.clone=XP,v.cloneDeep=eD,v.cloneDeepWith=tD,v.cloneWith=QP,v.conformsTo=nD,v.deburr=Kf,v.defaultTo=MF,v.divide=iR,v.endsWith=lF,v.eq=kn,v.escape=cF,v.escapeRegExp=dF,v.every=yP,v.find=_P,v.findIndex=Cf,v.findKey=PD,v.findLast=CP,v.findLastIndex=wf,v.findLastKey=DD,v.floor=sR,v.forEach=Tf,v.forEachRight=Bf,v.forIn=FD,v.forInRight=RD,v.forOwn=MD,v.forOwnRight=ID,v.get=jc,v.gt=rD,v.gte=oD,v.has=GD,v.hasIn=qc,v.head=xf,v.identity=Mt,v.includes=SP,v.indexOf=CV,v.inRange=iF,v.invoke=ZD,v.isArguments=to,v.isArray=ke,v.isArrayBuffer=iD,v.isArrayLike=Ft,v.isArrayLikeObject=it,v.isBoolean=sD,v.isBuffer=Nr,v.isDate=aD,v.isElement=lD,v.isEmpty=cD,v.isEqual=dD,v.isEqualWith=uD,v.isError=Wc,v.isFinite=pD,v.isFunction=Jn,v.isInteger=Mf,v.isLength=wa,v.isMap=If,v.isMatch=hD,v.isMatchWith=fD,v.isNaN=mD,v.isNative=gD,v.isNil=vD,v.isNull=yD,v.isNumber=Lf,v.isObject=tt,v.isObjectLike=nt,v.isPlainObject=Ji,v.isRegExp=Hc,v.isSafeInteger=_D,v.isSet=Of,v.isString=ba,v.isSymbol=Ht,v.isTypedArray=Lo,v.isUndefined=CD,v.isWeakMap=wD,v.isWeakSet=bD,v.join=SV,v.kebabCase=uF,v.last=nn,v.lastIndexOf=EV,v.lowerCase=pF,v.lowerFirst=hF,v.lt=xD,v.lte=kD,v.max=aR,v.maxBy=lR,v.mean=cR,v.meanBy=dR,v.min=uR,v.minBy=pR,v.stubArray=ed,v.stubFalse=td,v.stubObject=JF,v.stubString=XF,v.stubTrue=QF,v.multiply=hR,v.nth=TV,v.noConflict=ZF,v.noop=Qc,v.now=va,v.pad=fF,v.padEnd=mF,v.padStart=gF,v.parseInt=yF,v.random=sF,v.reduce=NP,v.reduceRight=VP,v.repeat=vF,v.replace=_F,v.result=YD,v.round=fR,v.runInContext=P,v.sample=DP,v.size=MP,v.snakeCase=CF,v.some=IP,v.sortedIndex=FV,v.sortedIndexBy=RV,v.sortedIndexOf=MV,v.sortedLastIndex=IV,v.sortedLastIndexBy=LV,v.sortedLastIndexOf=OV,v.startCase=bF,v.startsWith=xF,v.subtract=mR,v.sum=gR,v.sumBy=yR,v.template=kF,v.times=eR,v.toFinite=Xn,v.toInteger=Te,v.toLength=zf,v.toLower=SF,v.toNumber=rn,v.toSafeInteger=SD,v.toString=Ue,v.toUpper=EF,v.trim=TF,v.trimEnd=BF,v.trimStart=AF,v.truncate=NF,v.unescape=VF,v.uniqueId=nR,v.upperCase=PF,v.upperFirst=Kc,v.each=Tf,v.eachRight=Bf,v.first=xf,Xc(v,function(){var i={};return Fn(v,function(a,c){We.call(v.prototype,c)||(i[c]=a)}),i}(),{chain:!1}),v.VERSION=o,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){v[i].placeholder=v}),Jt(["drop","take"],function(i,a){Fe.prototype[i]=function(c){c=c===n?1:ut(Te(c),0);var h=this.__filtered__&&!a?new Fe(this):this.clone();return h.__filtered__?h.__takeCount__=bt(c,h.__takeCount__):h.__views__.push({size:bt(c,ot),type:i+(h.__dir__<0?"Right":"")}),h},Fe.prototype[i+"Right"]=function(c){return this.reverse()[i](c).reverse()}}),Jt(["filter","map","takeWhile"],function(i,a){var c=a+1,h=c==x||c==$;Fe.prototype[i]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:fe(g,3),type:c}),_.__filtered__=_.__filtered__||h,_}}),Jt(["head","last"],function(i,a){var c="take"+(a?"Right":"");Fe.prototype[i]=function(){return this[c](1).value()[0]}}),Jt(["initial","tail"],function(i,a){var c="drop"+(a?"":"Right");Fe.prototype[i]=function(){return this.__filtered__?new Fe(this):this[c](1)}}),Fe.prototype.compact=function(){return this.filter(Mt)},Fe.prototype.find=function(i){return this.filter(i).head()},Fe.prototype.findLast=function(i){return this.reverse().find(i)},Fe.prototype.invokeMap=Ve(function(i,a){return typeof i=="function"?new Fe(this):this.map(function(c){return Wi(c,i,a)})}),Fe.prototype.reject=function(i){return this.filter(Ca(fe(i)))},Fe.prototype.slice=function(i,a){i=Te(i);var c=this;return c.__filtered__&&(i>0||a<0)?new Fe(c):(i<0?c=c.takeRight(-i):i&&(c=c.drop(i)),a!==n&&(a=Te(a),c=a<0?c.dropRight(-a):c.take(a-i)),c)},Fe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Fe.prototype.toArray=function(){return this.take(ot)},Fn(Fe.prototype,function(i,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);g&&(v.prototype[a]=function(){var k=this.__wrapped__,T=h?[1]:arguments,F=k instanceof Fe,j=T[0],K=F||ke(k),J=function(De){var Re=g.apply(v,xr([De],T));return h&&ne?Re[0]:Re};K&&c&&typeof j=="function"&&j.length!=1&&(F=K=!1);var ne=this.__chain__,ue=!!this.__actions__.length,ge=_&&!ne,Ne=F&&!ue;if(!_&&K){k=Ne?k:new Fe(this);var ye=i.apply(k,T);return ye.__actions__.push({func:ga,args:[J],thisArg:n}),new Qt(ye,ne)}return ge&&Ne?i.apply(this,T):(ye=this.thru(J),ge?h?ye.value()[0]:ye.value():ye)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(i){var a=$s[i],c=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);v.prototype[i]=function(){var g=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(ke(_)?_:[],g)}return this[c](function(k){return a.apply(ke(k)?k:[],g)})}}),Fn(Fe.prototype,function(i,a){var c=v[a];if(c){var h=c.name+"";We.call(Do,h)||(Do[h]=[]),Do[h].push({name:a,func:c})}}),Do[ca(n,C).name]=[{name:"wrapper",func:n}],Fe.prototype.clone=VA,Fe.prototype.reverse=PA,Fe.prototype.value=DA,v.prototype.at=lP,v.prototype.chain=cP,v.prototype.commit=dP,v.prototype.next=uP,v.prototype.plant=hP,v.prototype.reverse=fP,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=mP,v.prototype.first=v.prototype.head,Li&&(v.prototype[Li]=pP),v},No=dA();jr?((jr.exports=No)._=No,Jl._=No):gt._=No}).call(Go)}(Bs,Bs.exports);var Ge=Bs.exports;const JE={class:"grid-overlay-container"},ap=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",JE,[e.params.notReady?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n[0]||(n[0]=r.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),n[1]||(n[1]=r.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n[2]||(n[2]=r.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),n[3]||(n[3]=r.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),XE={},QE={class:"grid-overlay-container"};function eT(t,e){return r.openBlock(),r.createElementBlock("div",QE,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const lp=Ts(XE,[["render",eT]]);async function tT(t,e){throw Error("not implemented")}function nT(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function rT(t,e){const n=[];for(const o of e)if(t[o].type==="column"){const s=nT(t[o].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const d=Nd(l),u=t.findIndex(p=>Ge.isEqual(p.id,d));if(u===-1)throw console.error("axis not found",o,d,t),Error("axis not found");n.push({columnIdx:o,axisIdx:u})}}return n}const cp=(t,e)=>(t+e).toString();function oT(t,e,n,o,s,l){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const d=t[0];let u=-1,p=-1;for(let y=0;y<l.length;++y)l[y]===d.axisIdx&&(u=y),l[y]===d.columnIdx&&(p=y);const f=(()=>{const E=o[u].data.filter(S=>S!==null);return Array.from(new Set(E))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=iT(s,o,u,p,f,e.rows);for(let y=0;y<f.length;++y){const E=f[y],S=E+"@"+y;n.push({colId:S,field:cp(o.length,y),headerName:E,valueFormatter:up})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function iT(t,e,n,o,s,l){const d=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let L=0;L<e.length;++L){if(L===n||L===o)continue;const O=t[L].toString();m[O]=e[L].data[f]}let y;const E=no(Object.values(m))??"";d.has(E)?y=d.get(E):(d.set(E,m),y=m,y.id=u.toString(),u++);const S=s.indexOf(e[n].data[f]);if(S===-1)throw Error("index not found");const N=cp(e.length,S);y[N]=e[o].data[f]}return Array.from(d.values())}function sT(t){return no(t)}function dp(t){return JSON.parse(t)}const up=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function aT(t,e,n){var s,l,d;const o=sT(e);return{colId:o,field:t.toString(),headerName:((l=(s=e.spec.annotations)==null?void 0:s["pl7.app/label"])==null?void 0:l.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(n==null?void 0:n.includes(o))??((d=e.spec.annotations)==null?void 0:d["pl7.app/table/visibility"])==="optional",valueFormatter:up,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function pp(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function hp(t){const e=[];return cs(t,n=>(e.push(n),n)),e}async function lT(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ge.uniqWith(n.map(s=>$a(s.spec.axesSpec).map(Ge.cloneDeep)).flat(),Ge.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function cT(t,e,n){const o=hp(n),l=(await lT(t,e,o)).filter(d=>!Ge.find(o,u=>d.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(d=>({type:"column",column:d}))}}async function dT(t,e,n,o){const s=n.filter(m=>m.type!=="Bytes"),l=hp(o),d=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=$a(l[m].spec.axesSpec);for(let E=0;E<y.length;++E){const S=Ge.findIndex(s,N=>Ge.isEqual(N,y[E]));S===-1||u[S]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(d[S]=[[m,E]],u[S]=l[m].columnId):d[S].push([m,E]))}}for(let m=s.length-1;m>=0;--m)d[m].length||(u.splice(m,1),d.splice(m,1),s.splice(m,1));const p=100,f=s.map(m=>new Set);e:for(let m=s.length-1;m>=0;--m){for(const[y,E]of d[m]){const S=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Ge.cloneDeep(s[m])},filters:[],limit:p});if(S.overflow){u.splice(m,1),d.splice(m,1),s.splice(m,1);continue e}const N=S.values.type;for(const L of S.values.data)if(!(Ad(L,N)||L===null)&&(f[m].add(pp(L,N)),f[m].size===p)){u.splice(m,1),d.splice(m,1),s.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),d.splice(m,1),s.splice(m,1);continue e}}return s.map((m,y)=>{const E=[...f[y]].map(N=>({value:N,text:N.toString()})),S=E[0].value;return{axis:Ge.cloneDeep(m),...u[y]&&{column:u[y]},options:E,defaultValue:S}})}function uT(t,e,n,o){const s=t.length,l=[];for(let d=0;d<e[0].data.length;++d){const u=[],p=(o++).toString();for(const m of n)u.push(e[m].data[d]);const f={key:u,id:p};for(let m=0;m<s;++m){const y=t[m].toString(),E=e[m].data[d],S=e[m].type;xg(e[m].absent,d)?f[y]=void 0:Ad(E,S)||E===null?f[y]=null:f[y]=pp(E,S)}l.push(f)}return l}const pT=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function hT(t,e,n,o){const s=await t.getSpec(e);let l=s.findIndex(C=>C.type==="column");l===-1&&(l=s.length);const d=[...s.keys()].filter(C=>!Ge.find(n,A=>Ge.isEqual(A.axis,s[C].id)||Ge.isEqual(A.column,s[C].id))).sort((C,A)=>{var G,Y;if(s[C].type!==s[A].type)return s[C].type==="axis"?-1:1;const H=(G=s[C].spec.annotations)==null?void 0:G["pl7.app/table/orderPriority"],X=(Y=s[A].spec.annotations)==null?void 0:Y["pl7.app/table/orderPriority"];return H===void 0?X===void 0?0:1:X===void 0?-1:Number(X)-Number(H)}),u=Ge.cloneDeep(d),p=rT(s,d);for(let C=d.length-1;C>=0;--C){const A=d[C];if(!pT(s[A]))continue;const H=$a(s[A].spec.axesSpec)[0],X=Ge.findIndex(d,G=>Ge.isEqual(s[G].id,H));if(X!==-1){d[X]=A;for(const G of p)G.axisIdx===A&&(G.axisIdx=X);d.splice(C,1),u.splice(C,1)}}const f=await t.getShape(e),m=f.rows,y=u.map(C=>aT(C,s[C],o));if(p.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",p.length," transposition will not be applied."),p.length===1)return oT(p,f,y,await t.getData(e,d),u,d);const E=[...d],S=new Map;for(let C=0;C<l;++C)S.set(C,-1);for(let C=0;C<E.length;++C){const A=E[C];S.has(A)&&S.set(A,C)}for(const[C,A]of S)A===-1&&(S.set(C,E.length),E.push(C));const N=[];for(let C=0;C<l;++C){const A=S.get(C);if(A===void 0||A===-1)throw new Error("assertion exception");N.push(A)}let L;return{rowModelType:"serverSide",columnDefs:y,serverSideDatasource:{getRows:async C=>{try{if(m==0){C.success({rowData:[],rowCount:m}),C.api.setGridOption("loading",!1),C.api.showNoRowsOverlay();return}if(L&&!Ge.isEqual(L.request.sortModel,C.request.sortModel)){L=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}L=C;let A=0,H=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(A=Math.min(m,C.request.endRow)-C.request.startRow,A>0)){const X=await t.getData(e,E,{offset:C.request.startRow,length:A});H=uT(u,X,N,C.request.startRow)}C.success({rowData:H,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(A){C.api.setGridOption("loading",!0),C.fail(),console.trace(A)}}}}}const fT={class:"ap-ag-data-table-container"},mT={key:0,class:"ap-ag-data-table-sheets"},gT=Ts(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{expose:e,emit:n}){b.ModuleRegistry.registerModules([Qi.ClientSideRowModelModule,ld.ClipboardModule,ad.ServerSideRowModelModule,cd.RangeSelectionModule,Ha,Xd]);const o=r.useModel(t,"modelValue"),s=t,{settings:l}=r.toRefs(s),d=n;r.watch(()=>l.value,async(B,x)=>{if(B.sourceType!=="pframe"||!B.pFrame||!B.join||x&&x.sourceType==="pframe"&&Ge.isEqual(B.pFrame,x.pFrame)&&Ge.isEqual(B.join,x.join))return;const D=window.platforma;if(!D)throw Error("platforma not set");const $=D.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const re=await cT($,B.pFrame,B.join),se=o.value;se.pTableParams||(se.pTableParams={sorting:[],filters:[]}),se.pTableParams.join=re,o.value=se});const u=fp(()=>l.value.sourceType,async B=>{var D;const x=l.value.sourceType;switch(x){case"pframe":{const $=window.platforma;if(!$)throw Error("platforma not set");const re=$.pFrameDriver;if(!re)throw Error("platforma.pFrameDriver not set");if(!l.value.pFrame)return[];const se=l.value.pFrame,Pe=(D=o.value.pTableParams)==null?void 0:D.join;return Pe?await dT(re,se,l.value.sheetAxes,Pe):[]}case"ptable":return l.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${x}`)}});function p(B){if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return(B==null?void 0:B.sortModel.map(x=>{const{spec:D,...$}=dp(x.colId);return{column:$,ascending:x.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const f=r.computed({get:()=>{const B=o.value;return{columnOrder:B.gridState.columnOrder,sort:B.gridState.sort,columnVisibility:B.gridState.columnVisibility}},set:B=>{const x=o.value,D=N.value.rowModelType==="clientSide"?void 0:p(B.sort);x.gridState={...x.gridState,...B},(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(x.pTableParams||(x.pTableParams={sorting:[],filters:[]}),x.pTableParams.sorting=D),o.value=x}}),m=B=>no(B);function y(B){var x;if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return((x=u.value)==null?void 0:x.map(D=>({type:"bySingleColumn",column:D.column?{type:"column",id:D.column}:{type:"axis",id:D.axis},predicate:{operator:"Equal",reference:B[m(D.axis)]}})))??[]}const E=r.computed({get:()=>o.value.gridState.sheets??{},set:B=>{const x=y(B),D=o.value;D.gridState.sheets=B,(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(D.pTableParams||(D.pTableParams={sorting:[],filters:[]}),D.pTableParams.filters=x),o.value=D}});r.watch(()=>[l.value,u.value],(B,x)=>{const[D,$]=B;if(!$)return;if(x){const[se,Pe]=x;if((D.sourceType==="ptable"||D.sourceType==="pframe")&&D.sourceType===(se==null?void 0:se.sourceType)&&Ge.isEqual($,Pe))return}if(D.sourceType!=="ptable"&&D.sourceType!=="pframe"){E.value={};return}const re=E.value;for(const se of $){const Pe=m(se.axis);re[Pe]||(re[Pe]=se.defaultValue??se.options[0].value)}E.value=re},{immediate:!0});const S=r.shallowRef(),N=r.shallowRef({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:f.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:B=>{B.api.autoSizeAllColumns()},onRowDoubleClicked:B=>{B.data&&d("onRowDoubleClicked",B.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:B=>B.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:ap,noRowsOverlayComponent:lp,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"},defaultCsvExportParams:{allColumns:!0,suppressQuotes:!0,fileName:"table.csv"}}),L=B=>{const x=B.api;S.value=new Proxy(x,{get(D,$,re){switch($){case"setGridOption":return(se,Pe)=>{const He=N.value;He[se]=Pe,N.value=He,x.setGridOption(se,Pe)};case"updateGridOptions":return se=>{N.value={...N.value,...se},x.updateGridOptions(se)};default:return Reflect.get(D,$,re)}}})},O=B=>({columnOrder:B.columnOrder,sort:B.sort,columnVisibility:B.columnVisibility??(B.columnOrder?{hiddenColIds:[]}:void 0)}),C=B=>{N.value.initialState=f.value=O(B.state),B.api.autoSizeAllColumns()},A=()=>{N.value.initialState=f.value=O(S.value.getState()),S.value=void 0};let H=!1;const X=()=>{if(!H)return;const B=S.value;B!==void 0&&(B.exportDataAsCsv(),H=!1,B.setGridOption("cacheBlockSize",100))},G=()=>{if(!H)return;const B=S.value;if(B===void 0)return;const x=B.getServerSideGroupLevelState()[0];x.cacheBlockSize===x.rowCount&&B.refreshServerSide({route:x.route,purge:!1})};e({exportCsv:async()=>{const B=S.value;if(B!==void 0){if(N.value.rowModelType==="clientSide"){B.exportDataAsCsv();return}if(N.value.rowModelType==="serverSide"){const x=B.getServerSideGroupLevelState()[0];if(x.rowCount<=x.cacheBlockSize){B.exportDataAsCsv();return}H||(H=!0,B.setGridOption("cacheBlockSize",x.rowCount))}}}});const U=r.ref(0);r.watch(()=>[S.value,f.value],(B,x)=>{if(Ge.isEqual(B,x))return;const[D,$]=B;if(!D)return;const re=O(D.getState());Ge.isEqual($,re)||(N.value.initialState=$,++U.value)}),r.watch(()=>N.value,(B,x)=>{var D;if(x&&(B.rowModelType!=x.rowModelType&&++U.value,!Ge.isEqual(B.columnDefs,x.columnDefs)&&B.columnDefs)){const $=Pe=>!("children"in Pe),re=(D=B.columnDefs)==null?void 0:D.filter($),se=re==null?void 0:re.map(Pe=>Pe.colId).filter(Pe=>Pe!==void 0).map(Pe=>dp(Pe));d("columnsChanged",se??[])}});const R=(B,x)=>{var $;const D=E.value;D[B]!==x&&(D[B]=x,E.value=D,($=S.value)==null||$.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))},V=window.platforma;if(!V)throw Error("platforma not set");const M=V.pFrameDriver;if(!M)throw Error("platforma.pFrameDriver not set");const W=V.blobDriver;if(!W)throw Error("platforma.blobDriver not set");let q;return r.watch(()=>[S.value,l.value,u.value],async B=>{var se,Pe;const[x,D,$]=B;if(!x||Ge.isEqual(D,q))return;q=D;const re=D.sourceType;switch(re){case"pframe":case"ptable":{const He=D.pTable;if(!He||!$)return x.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=(Pe=(se=f.value)==null?void 0:se.columnVisibility)==null?void 0:Pe.hiddenColIds,_n=await hT(M,He,$,ot);return x.updateGridOptions({loading:_n.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},..._n})}case"xsv":{const He=D.xsvFile;if(!(He!=null&&He.ok)||!He.value)return x.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=await tT(W,He.value);return x.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...ot})}default:throw Error(`unsupported source type: ${re}`)}}),(B,x)=>(r.openBlock(),r.createElementBlock("div",fT,[r.createVNode(r.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:r.withCtx(()=>[r.unref(u).value&&r.unref(u).value.length>0?(r.openBlock(),r.createElementBlock("div",mT,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).value,(D,$)=>(r.openBlock(),r.createBlock(r.unref(Mu),{key:$,"model-value":E.value[m(D.axis)],options:D.options,"onUpdate:modelValue":re=>R(m(D.axis),re)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)]),_:1}),(r.openBlock(),r.createBlock(r.unref(lm.AgGridVue),{key:U.value,theme:r.unref(eu),class:"ap-ag-data-table-grid","grid-options":N.value,onGridReady:L,onStateUpdated:C,onGridPreDestroyed:A,onStoreRefreshed:X,onModelUpdated:G},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-7ab26ece"]]),yT={key:0,class:"d-flex gap-10 flex-column"},vT={key:0},_T=Ts(r.defineComponent({__name:"PlTableFilters",props:r.mergeModels({columns:{},restrictions:{},defaults:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t,{columns:o,restrictions:s,defaults:l}=r.toRefs(n),d=V=>no(V.id),u=r.computed(()=>o.value.filter(V=>{const M=V.type;switch(M){case"axis":return V.spec.type!=="Bytes";case"column":return V.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${M}`)}}).map(V=>({column:V,id:d(V)}))),p=r.computed(()=>{const V=s.value??[],M={};for(const{column:W,id:q}of u.value){const B=Ge.find(V,x=>Ge.isEqual(x.column.id,W.id));B!==void 0&&(M[q]=B.allowedFilterTypes)}return M}),f=r.computed(()=>{const V=l.value??[],M={};for(const{column:W,id:q}of u.value){const B=Ge.find(V,x=>Ge.isEqual(x.column.id,W.id));B!==void 0&&(M[q]=B.default)}return M}),m=V=>V!==void 0?V:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,V=>{Ge.isEqual(y.state,V.state)||(y.state=m(V.state))}),r.watch(()=>u.value,V=>{if(y.state!==void 0&&V.length===0)return;const M=y.state??{},W={};for(const{id:q}of V)M[q]!==void 0&&(W[q]=M[q]);y.state=W},{immediate:!0});const E=V=>{switch(V){case"isNotNA":return"Is not NA";case"isNA":return"Is NA";case"number_equals":case"string_equals":return"Equals";case"number_notEquals":case"string_notEquals":return"Not equals";case"number_greaterThan":return"Greater than";case"number_greaterThanOrEqualTo":return"Greater than or equal to";case"number_lessThan":return"Less than";case"number_lessThanOrEqualTo":return"Less than or equal to";case"number_between":return"Between";case"string_contains":return"Contains";case"string_doesNotContain":return"Does not contain";case"string_matches":return"Matches";case"string_doesNotMatch":return"Does not match";case"string_containsFuzzyMatch":return"Contains fuzzy match";default:throw Error(`unsupported filter type: ${V}`)}},S=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThan","number_greaterThanOrEqualTo","number_lessThan","number_lessThanOrEqualTo","number_between"],N=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],L=r.computed(()=>{const V=p.value,M={};for(const{column:W,id:q}of u.value){let x=(W.type==="column"?W.spec.valueType:W.spec.type)==="String"?N:S;const D=V[q];D!==void 0&&(x=x.filter($=>D.includes($))),M[q]=x.map($=>({value:$,text:E($)}))}return M}),O=r.computed(()=>Ge.some(Object.values(L.value),V=>V.length>0)),C=V=>{const M=V.type;switch(M){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return V.reference;case"number_between":return V.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return V.reference;default:throw Error(`unsupported filter type: ${M}`)}},A=(V,M)=>{switch(V){case"isNotNA":case"isNA":return{type:V};case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return{type:V,reference:typeof M=="number"?M:0};case"number_between":return{type:V,lowerBound:typeof M=="number"?M:0,includeLowerBound:!0,upperBound:100,includeUpperBound:!1};case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":return{type:V,reference:typeof M=="string"?M:""};case"string_containsFuzzyMatch":return{type:V,reference:typeof M=="string"?M:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${V}`)}},H=(V,M)=>{const W=y.state[V];y.state[V]=A(M,C(W))},X=(V,M)=>{M?y.state[V]=f.value[V]??A(L.value[V][0].value):delete y.state[V]},G=V=>{const M=Ge.uniq(V);return M.sort(),M.map(W=>({value:W,text:W}))},Y=V=>{const M=Number(V);if(!Number.isFinite(M))throw Error("Model value is not a number.");return M},U=V=>{const M=V.type;switch(M){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:V.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:V.reference}};case"number_greaterThan":return{operator:"Greater",reference:V.reference};case"number_greaterThanOrEqualTo":return{operator:"GreaterOrEqual",reference:V.reference};case"number_lessThan":return{operator:"Less",reference:V.reference};case"number_lessThanOrEqualTo":return{operator:"LessOrEqual",reference:V.reference};case"number_between":return{operator:"And",operands:[{operator:V.includeLowerBound?"GreaterOrEqual":"Greater",reference:V.lowerBound},{operator:V.includeUpperBound?"LessOrEqual":"Less",reference:V.upperBound}]};case"string_contains":return{operator:"StringContains",substring:V.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:V.reference}};case"string_matches":return{operator:"Matches",regex:V.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:V.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:V.reference,maxEdits:V.maxEdits,substitutionsOnly:V.substitutionsOnly,wildcard:V.wildcard};default:throw Error(`unsupported filter type: ${M}`)}},R=V=>u.value.map(({column:M,id:W})=>{if(!(W in V))return;const q=U(V[W]),{spec:B,...x}=M;return{type:"bySingleColumn",column:x,predicate:q}}).filter(M=>M!==void 0);return r.watch(()=>y,V=>{Ge.isEqual(V.state,e.value.state)||(e.value={state:Ge.cloneDeep(V.state),filters:R(V.state)})},{immediate:!0,deep:!0}),(V,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:W,id:q},B)=>{var x,D,$,re,se,Pe,He,ot,_n,Dn,Cr,Zn,Hr,Ps;return r.openBlock(),r.createElementBlock("div",{key:q},[L.value[q].length>0?(r.openBlock(),r.createElementBlock("form",yT,[r.createVNode(r.unref(Iu),{"model-value":!!y.state[q],"onUpdate:modelValue":ze=>X(q,ze)},{default:r.withCtx(()=>{var ze,wr;return[r.createTextVNode(r.toDisplayString(((wr=(ze=W.spec.annotations)==null?void 0:ze["pl7.app/label"])==null?void 0:wr.trim())??"Unlabeled "+W.type+" "+B.toString()),1)]}),_:2},1032,["model-value","onUpdate:modelValue"]),r.createElementVNode("div",{class:r.normalizeClass(["controls d-flex gap-10 flex-column",{open:!!y.state[q]}])},[y.state[q]?(r.openBlock(),r.createBlock(r.unref(ui),{key:0,"model-value":y.state[q].type,options:L.value[q],label:"Predicate","onUpdate:modelValue":ze=>H(q,ze)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((x=y.state[q])==null?void 0:x.type)==="number_equals"||((D=y.state[q])==null?void 0:D.type)==="number_notEquals"||(($=y.state[q])==null?void 0:$.type)==="number_lessThan"||((re=y.state[q])==null?void 0:re.type)==="number_lessThanOrEqualTo"||((se=y.state[q])==null?void 0:se.type)==="number_greaterThan"||((Pe=y.state[q])==null?void 0:Pe.type)==="number_greaterThanOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(Lr),{key:1,modelValue:y.state[q].reference,"onUpdate:modelValue":ze=>y.state[q].reference=ze,parse:Y,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((He=y.state[q])==null?void 0:He.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(Lr),{modelValue:y.state[q].lowerBound,"onUpdate:modelValue":ze=>y.state[q].lowerBound=ze,parse:Y,label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeLowerBound,"onUpdate:modelValue":ze=>y.state[q].includeLowerBound=ze,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Lr),{modelValue:y.state[q].upperBound,"onUpdate:modelValue":ze=>y.state[q].upperBound=ze,parse:Y,label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeUpperBound,"onUpdate:modelValue":ze=>y.state[q].includeUpperBound=ze,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((ot=y.state[q])==null?void 0:ot.type)==="string_equals"||((_n=y.state[q])==null?void 0:_n.type)==="string_notEquals"||((Dn=y.state[q])==null?void 0:Dn.type)==="string_contains"||((Cr=y.state[q])==null?void 0:Cr.type)==="string_doesNotContain"||((Zn=y.state[q])==null?void 0:Zn.type)==="string_matches"||((Hr=y.state[q])==null?void 0:Hr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(Lr),{key:3,modelValue:y.state[q].reference,"onUpdate:modelValue":ze=>y.state[q].reference=ze,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Ps=y.state[q])==null?void 0:Ps.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[r.createVNode(r.unref(Lr),{modelValue:y.state[q].reference,"onUpdate:modelValue":ze=>y.state[q].reference=ze,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(op),{modelValue:y.state[q].maxEdits,"onUpdate:modelValue":ze=>y.state[q].maxEdits=ze,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].substitutionsOnly,"onUpdate:modelValue":ze=>y.state[q].substitutionsOnly=ze,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(ui),{modelValue:y.state[q].wildcard,"onUpdate:modelValue":ze=>y.state[q].wildcard=ze,options:G(y.state[q].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128)),O.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",vT,"No filters applicable"))],64))}}),[["__scopeId","data-v-b30bf5ef"]]),CT={key:1,class:"alert-error"},wT={key:2},bT=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),o=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&o.value===void 0);return(l,d)=>(r.openBlock(),r.createElementBlock("div",null,[n.value!==void 0?r.renderSlot(l.$slots,"default",r.normalizeProps(r.mergeProps({key:0},{value:n.value}))):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("div",CT,r.toDisplayString(o.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",wT,"Unresolved")):r.createCommentVNode("",!0)]))}}),xT={style:{height:"100%"}},kT=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),o=r.computed(()=>e.params.value);function s(d){e.params.setValue(d)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(o.value):void 0);return(d,u)=>(r.openBlock(),r.createElementBlock("div",xT,[r.createVNode(r.unref(np),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${n.value?n.value[0]:""}`,extensions:n.value,"model-value":o.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),ST={class:"pl-ag-grid-open-cell d-flex"},ET={class:"pl-ag-grid-open-cell__value"},TT=r.defineComponent({__name:"PlAgTextAndButtonCell",props:{params:{}},setup(t){const e=t;console.log(e);function n(){if(e.params.invokeRowsOnDoubleClick){const o=e.params.api,s={rowPinned:e.params.node.rowPinned,api:o,rowIndex:e.params.node.rowIndex,context:o,type:"rowDoubleClicked",node:e.params.node,data:e.params.data,event:null};o.dispatchEvent(s)}else e.params.onClick&&e.params.onClick(e.params)}return(o,s)=>(r.openBlock(),r.createElementBlock("div",ST,[r.createElementVNode("div",ET,r.toDisplayString(o.params.value),1),r.createElementVNode("div",{class:"pl-ag-grid-open-cell__activator text-caps11 align-center",onClick:r.withModifiers(n,["stop"])},[r.createVNode(r.unref(cr),{name:o.params.icon??"maximize"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(o.params.btnLabel??"Open"),1)])]))}}),As=new Map;function BT(t,e){const n=r.getCurrentScope()??r.effectScope(),o=n.run(()=>(r.onScopeDispose(()=>{As.delete(t)}),r.reactive(e())));return o[Symbol.dispose]=()=>{n.stop()},o}function AT(t){const e=Symbol();return()=>(As.has(e)||As.set(e,BT(e,t)),As.get(e))}function NT(t){return r.computed(()=>{try{return md(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function fp(t,e,n){const o=r.ref(0),s=r.reactive({loading:r.computed(()=>o.value>0),loadingRef:o,value:void 0,error:void 0}),l=um(e);return r.watch(t,async d=>{s.error=void 0,o.value++,l(d).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{o.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const Co=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,mp=new Set,Nl=typeof process=="object"&&process?process:{},gp=(t,e,n,o)=>{typeof Nl.emitWarning=="function"?Nl.emitWarning(t,e,n,o):console.error(`[${n}] ${e}: ${t}`)};let Ns=globalThis.AbortController,yp=globalThis.AbortSignal;if(typeof Ns>"u"){yp=class{constructor(){Ze(this,"onabort");Ze(this,"_onabort",[]);Ze(this,"reason");Ze(this,"aborted",!1)}addEventListener(o,s){this._onabort.push(s)}},Ns=class{constructor(){Ze(this,"signal",new yp);e()}abort(o){var s,l;if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(const d of this.signal._onabort)d(o);(l=(s=this.signal).onabort)==null||l.call(s,o)}}};let t=((_p=Nl.env)==null?void 0:_p.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,gp("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const VT=t=>!mp.has(t),vr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),vp=t=>vr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Vs:null:null;class Vs extends Array{constructor(e){super(e),this.fill(0)}}const $r=class $r{constructor(e,n){Ze(this,"heap");Ze(this,"length");if(!w($r,wo))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=vp(e);if(!n)return[];me($r,wo,!0);const o=new $r(e,n);return me($r,wo,!1),o}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};wo=new WeakMap,Oe($r,wo,!1);let Vl=$r;const Fl=class Fl{constructor(e){Oe(this,te);Oe(this,un);Oe(this,Ot);Oe(this,pn);Oe(this,hn);Oe(this,bo);Oe(this,xo);Ze(this,"ttl");Ze(this,"ttlResolution");Ze(this,"ttlAutopurge");Ze(this,"updateAgeOnGet");Ze(this,"updateAgeOnHas");Ze(this,"allowStale");Ze(this,"noDisposeOnSet");Ze(this,"noUpdateTTL");Ze(this,"maxEntrySize");Ze(this,"sizeCalculation");Ze(this,"noDeleteOnFetchRejection");Ze(this,"noDeleteOnStaleGet");Ze(this,"allowStaleOnFetchAbort");Ze(this,"allowStaleOnFetchRejection");Ze(this,"ignoreFetchAbort");Oe(this,ct);Oe(this,fn);Oe(this,at);Oe(this,Ke);Oe(this,be);Oe(this,Tt);Oe(this,Gt);Oe(this,wt);Oe(this,ht);Oe(this,mn);Oe(this,ft);Oe(this,gn);Oe(this,yn);Oe(this,zt);Oe(this,vn);Oe(this,_r);Oe(this,Bt);Oe(this,Zr,()=>{});Oe(this,$n,()=>{});Oe(this,Ni,()=>{});Oe(this,$t,()=>!1);Oe(this,Ur,e=>{});Oe(this,ko,(e,n,o)=>{});Oe(this,Vi,(e,n,o,s)=>{if(o||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ze(this,Cp,"LRUCache");const{max:n=0,ttl:o,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:d,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:E,maxSize:S=0,maxEntrySize:N=0,sizeCalculation:L,fetchMethod:O,memoMethod:C,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:H,allowStaleOnFetchRejection:X,allowStaleOnFetchAbort:G,ignoreFetchAbort:Y}=e;if(n!==0&&!vr(n))throw new TypeError("max option must be a nonnegative integer");const U=n?vp(n):Array;if(!U)throw new Error("invalid max value: "+n);if(me(this,un,n),me(this,Ot,S),this.maxEntrySize=N||w(this,Ot),this.sizeCalculation=L,this.sizeCalculation){if(!w(this,Ot)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(me(this,xo,C),O!==void 0&&typeof O!="function")throw new TypeError("fetchMethod must be a function if specified");if(me(this,bo,O),me(this,_r,!!O),me(this,at,new Map),me(this,Ke,new Array(n).fill(void 0)),me(this,be,new Array(n).fill(void 0)),me(this,Tt,new U(n)),me(this,Gt,new U(n)),me(this,wt,0),me(this,ht,0),me(this,mn,Vl.create(n)),me(this,ct,0),me(this,fn,0),typeof f=="function"&&me(this,pn,f),typeof m=="function"?(me(this,hn,m),me(this,ft,[])):(me(this,hn,void 0),me(this,ft,void 0)),me(this,vn,!!w(this,pn)),me(this,Bt,!!w(this,hn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!X,this.allowStaleOnFetchAbort=!!G,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(w(this,Ot)!==0&&!vr(w(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!vr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");de(this,te,nm).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!H,this.updateAgeOnGet=!!d,this.updateAgeOnHas=!!u,this.ttlResolution=vr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=o||0,this.ttl){if(!vr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");de(this,te,rd).call(this)}if(w(this,un)===0&&this.ttl===0&&w(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,un)&&!w(this,Ot)){const R="LRU_CACHE_UNBOUNDED";VT(R)&&(mp.add(R),gp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",R,Fl))}}static unsafeExposeInternals(e){return{starts:w(e,yn),ttls:w(e,zt),sizes:w(e,gn),keyMap:w(e,at),keyList:w(e,Ke),valList:w(e,be),next:w(e,Tt),prev:w(e,Gt),get head(){return w(e,wt)},get tail(){return w(e,ht)},free:w(e,mn),isBackgroundFetch:n=>{var o;return de(o=e,te,Je).call(o,n)},backgroundFetch:(n,o,s,l)=>{var d;return de(d=e,te,Ea).call(d,n,o,s,l)},moveToTail:n=>{var o;return de(o=e,te,Xi).call(o,n)},indexes:n=>{var o;return de(o=e,te,Vr).call(o,n)},rindexes:n=>{var o;return de(o=e,te,Pr).call(o,n)},isStale:n=>{var o;return w(o=e,$t).call(o,n)}}}get max(){return w(this,un)}get maxSize(){return w(this,Ot)}get calculatedSize(){return w(this,fn)}get size(){return w(this,ct)}get fetchMethod(){return w(this,bo)}get memoMethod(){return w(this,xo)}get dispose(){return w(this,pn)}get disposeAfter(){return w(this,hn)}getRemainingTTL(e){return w(this,at).has(e)?1/0:0}*entries(){for(const e of de(this,te,Vr).call(this))w(this,be)[e]!==void 0&&w(this,Ke)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield[w(this,Ke)[e],w(this,be)[e]])}*rentries(){for(const e of de(this,te,Pr).call(this))w(this,be)[e]!==void 0&&w(this,Ke)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield[w(this,Ke)[e],w(this,be)[e]])}*keys(){for(const e of de(this,te,Vr).call(this)){const n=w(this,Ke)[e];n!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield n)}}*rkeys(){for(const e of de(this,te,Pr).call(this)){const n=w(this,Ke)[e];n!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield n)}}*values(){for(const e of de(this,te,Vr).call(this))w(this,be)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield w(this,be)[e])}*rvalues(){for(const e of de(this,te,Pr).call(this))w(this,be)[e]!==void 0&&!de(this,te,Je).call(this,w(this,be)[e])&&(yield w(this,be)[e])}[(wp=Symbol.iterator,Cp=Symbol.toStringTag,wp)](){return this.entries()}find(e,n={}){for(const o of de(this,te,Vr).call(this)){const s=w(this,be)[o],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,w(this,Ke)[o],this))return this.get(w(this,Ke)[o],n)}}forEach(e,n=this){for(const o of de(this,te,Vr).call(this)){const s=w(this,be)[o],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,Ke)[o],this)}}rforEach(e,n=this){for(const o of de(this,te,Pr).call(this)){const s=w(this,be)[o],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,Ke)[o],this)}}purgeStale(){let e=!1;for(const n of de(this,te,Pr).call(this,{allowStale:!0}))w(this,$t).call(this,n)&&(de(this,te,Dr).call(this,w(this,Ke)[n],"expire"),e=!0);return e}info(e){const n=w(this,at).get(e);if(n===void 0)return;const o=w(this,be)[n],s=de(this,te,Je).call(this,o)?o.__staleWhileFetching:o;if(s===void 0)return;const l={value:s};if(w(this,zt)&&w(this,yn)){const d=w(this,zt)[n],u=w(this,yn)[n];if(d&&u){const p=d-(Co.now()-u);l.ttl=p,l.start=Date.now()}}return w(this,gn)&&(l.size=w(this,gn)[n]),l}dump(){const e=[];for(const n of de(this,te,Vr).call(this,{allowStale:!0})){const o=w(this,Ke)[n],s=w(this,be)[n],l=de(this,te,Je).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||o===void 0)continue;const d={value:l};if(w(this,zt)&&w(this,yn)){d.ttl=w(this,zt)[n];const u=Co.now()-w(this,yn)[n];d.start=Math.floor(Date.now()-u)}w(this,gn)&&(d.size=w(this,gn)[n]),e.unshift([o,d])}return e}load(e){this.clear();for(const[n,o]of e){if(o.start){const s=Date.now()-o.start;o.start=Co.now()-s}this.set(n,o.value,o)}}set(e,n,o={}){var E,S,N,L,O;if(n===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:l,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=o;let{noUpdateTTL:f=this.noUpdateTTL}=o;const m=w(this,Vi).call(this,e,n,o.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),de(this,te,Dr).call(this,e,"set"),this;let y=w(this,ct)===0?void 0:w(this,at).get(e);if(y===void 0)y=w(this,ct)===0?w(this,ht):w(this,mn).length!==0?w(this,mn).pop():w(this,ct)===w(this,un)?de(this,te,Sa).call(this,!1):w(this,ct),w(this,Ke)[y]=e,w(this,be)[y]=n,w(this,at).set(e,y),w(this,Tt)[w(this,ht)]=y,w(this,Gt)[y]=w(this,ht),me(this,ht,y),ka(this,ct)._++,w(this,ko).call(this,y,m,p),p&&(p.set="add"),f=!1;else{de(this,te,Xi).call(this,y);const C=w(this,be)[y];if(n!==C){if(w(this,_r)&&de(this,te,Je).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:A}=C;A!==void 0&&!d&&(w(this,vn)&&((E=w(this,pn))==null||E.call(this,A,e,"set")),w(this,Bt)&&((S=w(this,ft))==null||S.push([A,e,"set"])))}else d||(w(this,vn)&&((N=w(this,pn))==null||N.call(this,C,e,"set")),w(this,Bt)&&((L=w(this,ft))==null||L.push([C,e,"set"])));if(w(this,Ur).call(this,y),w(this,ko).call(this,y,m,p),w(this,be)[y]=n,p){p.set="replace";const A=C&&de(this,te,Je).call(this,C)?C.__staleWhileFetching:C;A!==void 0&&(p.oldValue=A)}}else p&&(p.set="update")}if(s!==0&&!w(this,zt)&&de(this,te,rd).call(this),w(this,zt)&&(f||w(this,Ni).call(this,y,s,l),p&&w(this,$n).call(this,p,y)),!d&&w(this,Bt)&&w(this,ft)){const C=w(this,ft);let A;for(;A=C==null?void 0:C.shift();)(O=w(this,hn))==null||O.call(this,...A)}return this}pop(){var e;try{for(;w(this,ct);){const n=w(this,be)[w(this,wt)];if(de(this,te,Sa).call(this,!0),de(this,te,Je).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,Bt)&&w(this,ft)){const n=w(this,ft);let o;for(;o=n==null?void 0:n.shift();)(e=w(this,hn))==null||e.call(this,...o)}}}has(e,n={}){const{updateAgeOnHas:o=this.updateAgeOnHas,status:s}=n,l=w(this,at).get(e);if(l!==void 0){const d=w(this,be)[l];if(de(this,te,Je).call(this,d)&&d.__staleWhileFetching===void 0)return!1;if(w(this,$t).call(this,l))s&&(s.has="stale",w(this,$n).call(this,s,l));else return o&&w(this,Zr).call(this,l),s&&(s.has="hit",w(this,$n).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:o=this.allowStale}=n,s=w(this,at).get(e);if(s===void 0||!o&&w(this,$t).call(this,s))return;const l=w(this,be)[s];return de(this,te,Je).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:o=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:d=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:E=this.allowStaleOnFetchRejection,ignoreFetchAbort:S=this.ignoreFetchAbort,allowStaleOnFetchAbort:N=this.allowStaleOnFetchAbort,context:L,forceRefresh:O=!1,status:C,signal:A}=n;if(!w(this,_r))return C&&(C.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const H={allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:d,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:N,ignoreFetchAbort:S,status:C,signal:A};let X=w(this,at).get(e);if(X===void 0){C&&(C.fetch="miss");const G=de(this,te,Ea).call(this,e,X,H,L);return G.__returned=G}else{const G=w(this,be)[X];if(de(this,te,Je).call(this,G)){const M=o&&G.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",M&&(C.returnedStale=!0)),M?G.__staleWhileFetching:G.__returned=G}const Y=w(this,$t).call(this,X);if(!O&&!Y)return C&&(C.fetch="hit"),de(this,te,Xi).call(this,X),s&&w(this,Zr).call(this,X),C&&w(this,$n).call(this,C,X),G;const U=de(this,te,Ea).call(this,e,X,H,L),V=U.__staleWhileFetching!==void 0&&o;return C&&(C.fetch=Y?"stale":"refresh",V&&Y&&(C.returnedStale=!0)),V?U.__staleWhileFetching:U.__returned=U}}async forceFetch(e,n={}){const o=await this.fetch(e,n);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,n={}){const o=w(this,xo);if(!o)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:l,...d}=n,u=this.get(e,d);if(!l&&u!==void 0)return u;const p=o(e,u,{options:d,context:s});return this.set(e,p,d),p}get(e,n={}){const{allowStale:o=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:d}=n,u=w(this,at).get(e);if(u!==void 0){const p=w(this,be)[u],f=de(this,te,Je).call(this,p);return d&&w(this,$n).call(this,d,u),w(this,$t).call(this,u)?(d&&(d.get="stale"),f?(d&&o&&p.__staleWhileFetching!==void 0&&(d.returnedStale=!0),o?p.__staleWhileFetching:void 0):(l||de(this,te,Dr).call(this,e,"expire"),d&&o&&(d.returnedStale=!0),o?p:void 0)):(d&&(d.get="hit"),f?p.__staleWhileFetching:(de(this,te,Xi).call(this,u),s&&w(this,Zr).call(this,u),p))}else d&&(d.get="miss")}delete(e){return de(this,te,Dr).call(this,e,"delete")}clear(){return de(this,te,sd).call(this,"delete")}};un=new WeakMap,Ot=new WeakMap,pn=new WeakMap,hn=new WeakMap,bo=new WeakMap,xo=new WeakMap,ct=new WeakMap,fn=new WeakMap,at=new WeakMap,Ke=new WeakMap,be=new WeakMap,Tt=new WeakMap,Gt=new WeakMap,wt=new WeakMap,ht=new WeakMap,mn=new WeakMap,ft=new WeakMap,gn=new WeakMap,yn=new WeakMap,zt=new WeakMap,vn=new WeakMap,_r=new WeakMap,Bt=new WeakMap,te=new WeakSet,rd=function(){const e=new Vs(w(this,un)),n=new Vs(w(this,un));me(this,zt,e),me(this,yn,n),me(this,Ni,(l,d,u=Co.now())=>{if(n[l]=d!==0?u:0,e[l]=d,d!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,$t).call(this,l)&&de(this,te,Dr).call(this,w(this,Ke)[l],"expire")},d+1);p.unref&&p.unref()}}),me(this,Zr,l=>{n[l]=e[l]!==0?Co.now():0}),me(this,$n,(l,d)=>{if(e[d]){const u=e[d],p=n[d];if(!u||!p)return;l.ttl=u,l.start=p,l.now=o||s();const f=l.now-p;l.remainingTTL=u-f}});let o=0;const s=()=>{const l=Co.now();if(this.ttlResolution>0){o=l;const d=setTimeout(()=>o=0,this.ttlResolution);d.unref&&d.unref()}return l};this.getRemainingTTL=l=>{const d=w(this,at).get(l);if(d===void 0)return 0;const u=e[d],p=n[d];if(!u||!p)return 1/0;const f=(o||s())-p;return u-f},me(this,$t,l=>{const d=n[l],u=e[l];return!!u&&!!d&&(o||s())-d>u})},Zr=new WeakMap,$n=new WeakMap,Ni=new WeakMap,$t=new WeakMap,nm=function(){const e=new Vs(w(this,un));me(this,fn,0),me(this,gn,e),me(this,Ur,n=>{me(this,fn,w(this,fn)-e[n]),e[n]=0}),me(this,Vi,(n,o,s,l)=>{if(de(this,te,Je).call(this,o))return 0;if(!vr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(o,n),!vr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),me(this,ko,(n,o,s)=>{if(e[n]=o,w(this,Ot)){const l=w(this,Ot)-e[n];for(;w(this,fn)>l;)de(this,te,Sa).call(this,!0)}me(this,fn,w(this,fn)+e[n]),s&&(s.entrySize=o,s.totalCalculatedSize=w(this,fn))})},Ur=new WeakMap,ko=new WeakMap,Vi=new WeakMap,Vr=function*({allowStale:e=this.allowStale}={}){if(w(this,ct))for(let n=w(this,ht);!(!de(this,te,od).call(this,n)||((e||!w(this,$t).call(this,n))&&(yield n),n===w(this,wt)));)n=w(this,Gt)[n]},Pr=function*({allowStale:e=this.allowStale}={}){if(w(this,ct))for(let n=w(this,wt);!(!de(this,te,od).call(this,n)||((e||!w(this,$t).call(this,n))&&(yield n),n===w(this,ht)));)n=w(this,Tt)[n]},od=function(e){return e!==void 0&&w(this,at).get(w(this,Ke)[e])===e},Sa=function(e){var l,d;const n=w(this,wt),o=w(this,Ke)[n],s=w(this,be)[n];return w(this,_r)&&de(this,te,Je).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,vn)||w(this,Bt))&&(w(this,vn)&&((l=w(this,pn))==null||l.call(this,s,o,"evict")),w(this,Bt)&&((d=w(this,ft))==null||d.push([s,o,"evict"]))),w(this,Ur).call(this,n),e&&(w(this,Ke)[n]=void 0,w(this,be)[n]=void 0,w(this,mn).push(n)),w(this,ct)===1?(me(this,wt,me(this,ht,0)),w(this,mn).length=0):me(this,wt,w(this,Tt)[n]),w(this,at).delete(o),ka(this,ct)._--,n},Ea=function(e,n,o,s){const l=n===void 0?void 0:w(this,be)[n];if(de(this,te,Je).call(this,l))return l;const d=new Ns,{signal:u}=o;u==null||u.addEventListener("abort",()=>d.abort(u.reason),{signal:d.signal});const p={signal:d.signal,options:o,context:s},f=(L,O=!1)=>{const{aborted:C}=d.signal,A=o.ignoreFetchAbort&&L!==void 0;if(o.status&&(C&&!O?(o.status.fetchAborted=!0,o.status.fetchError=d.signal.reason,A&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),C&&!A&&!O)return y(d.signal.reason);const H=S;return w(this,be)[n]===S&&(L===void 0?H.__staleWhileFetching?w(this,be)[n]=H.__staleWhileFetching:de(this,te,Dr).call(this,e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,L,p.options))),L},m=L=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=L),y(L)),y=L=>{const{aborted:O}=d.signal,C=O&&o.allowStaleOnFetchAbort,A=C||o.allowStaleOnFetchRejection,H=A||o.noDeleteOnFetchRejection,X=S;if(w(this,be)[n]===S&&(!H||X.__staleWhileFetching===void 0?de(this,te,Dr).call(this,e,"fetch"):C||(w(this,be)[n]=X.__staleWhileFetching)),A)return o.status&&X.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),X.__staleWhileFetching;if(X.__returned===X)throw L},E=(L,O)=>{var A;const C=(A=w(this,bo))==null?void 0:A.call(this,e,l,p);C&&C instanceof Promise&&C.then(H=>L(H===void 0?void 0:H),O),d.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(L(void 0),o.allowStaleOnFetchAbort&&(L=H=>f(H,!0)))})};o.status&&(o.status.fetchDispatched=!0);const S=new Promise(E).then(f,m),N=Object.assign(S,{__abortController:d,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,N,{...p.options,status:void 0}),n=w(this,at).get(e)):w(this,be)[n]=N,N},Je=function(e){if(!w(this,_r))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ns},id=function(e,n){w(this,Gt)[n]=e,w(this,Tt)[e]=n},Xi=function(e){e!==w(this,ht)&&(e===w(this,wt)?me(this,wt,w(this,Tt)[e]):de(this,te,id).call(this,w(this,Gt)[e],w(this,Tt)[e]),de(this,te,id).call(this,w(this,ht),e),me(this,ht,e))},Dr=function(e,n){var s,l,d,u;let o=!1;if(w(this,ct)!==0){const p=w(this,at).get(e);if(p!==void 0)if(o=!0,w(this,ct)===1)de(this,te,sd).call(this,n);else{w(this,Ur).call(this,p);const f=w(this,be)[p];if(de(this,te,Je).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,vn)||w(this,Bt))&&(w(this,vn)&&((s=w(this,pn))==null||s.call(this,f,e,n)),w(this,Bt)&&((l=w(this,ft))==null||l.push([f,e,n]))),w(this,at).delete(e),w(this,Ke)[p]=void 0,w(this,be)[p]=void 0,p===w(this,ht))me(this,ht,w(this,Gt)[p]);else if(p===w(this,wt))me(this,wt,w(this,Tt)[p]);else{const m=w(this,Gt)[p];w(this,Tt)[m]=w(this,Tt)[p];const y=w(this,Tt)[p];w(this,Gt)[y]=w(this,Gt)[p]}ka(this,ct)._--,w(this,mn).push(p)}}if(w(this,Bt)&&((d=w(this,ft))!=null&&d.length)){const p=w(this,ft);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,hn))==null||u.call(this,...f)}return o},sd=function(e){var n,o,s;for(const l of de(this,te,Pr).call(this,{allowStale:!0})){const d=w(this,be)[l];if(de(this,te,Je).call(this,d))d.__abortController.abort(new Error("deleted"));else{const u=w(this,Ke)[l];w(this,vn)&&((n=w(this,pn))==null||n.call(this,d,u,e)),w(this,Bt)&&((o=w(this,ft))==null||o.push([d,u,e]))}}if(w(this,at).clear(),w(this,be).fill(void 0),w(this,Ke).fill(void 0),w(this,zt)&&w(this,yn)&&(w(this,zt).fill(0),w(this,yn).fill(0)),w(this,gn)&&w(this,gn).fill(0),me(this,wt,0),me(this,ht,0),w(this,mn).length=0,me(this,fn,0),me(this,ct,0),w(this,Bt)&&w(this,ft)){const l=w(this,ft);let d;for(;d=l==null?void 0:l.shift();)(s=w(this,hn))==null||s.call(this,...d)}};let Pl=Fl;const PT={cacheSize:15e6};class DT{constructor(e){Ze(this,"_str");Ze(this,"_rawJson");Ze(this,"_zodSchema");Ze(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const Wr=class Wr{constructor(e){Ze(this,"fileDataCache");Ze(this,"fileDataRefs",new Map);const n={...PT,...e??{}};this.fileDataCache=new Pl({maxSize:n.cacheSize,fetchMethod:async o=>new DT(await Eg().blobDriver.getContent(o)),sizeCalculation:o=>o.bytes.length,dispose:(o,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const o=r.shallowRef();return this.fileDataRefs.set(e,o),(async()=>{try{const s=await this.fileDataCache.fetch(e);o.value=s}catch(s){console.error(s)}})(),o}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n.value)==null?void 0:o.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.str})}getContentJson(e,n){if(e===void 0)return;const o=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=o==null?void 0:o.value)==null?void 0:s.rawJson:(l=o==null?void 0:o.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return Wr.globalInstance.getContentBytes(e)}static getContentString(e){return Wr.globalInstance.getContentString(e)}static getContentJson(e,n){return Wr.globalInstance.getContentJson(e,n)}};Ze(Wr,"globalInstance",new Wr);let Dl=Wr;I.AgGridTheme=eu,I.BlockLayout=YE,I.ContextProvider=Fk,I.DataTable=z_,I.DemoData=RE,I.DropdownListItem=po,I.LongText=_l,I.MultiError=Aa,I.PlAccordion=jb,I.PlAccordionSection=nx,I.PlAgCellFile=kT,I.PlAgDataTable=gT,I.PlAgOverlayLoading=ap,I.PlAgOverlayNoRows=lp,I.PlAgTextAndButtonCell=TT,I.PlAlert=yC,I.PlBlockPage=rC,I.PlBtnAccent=RC,I.PlBtnDanger=IC,I.PlBtnGhost=hl,I.PlBtnGroup=iw,I.PlBtnLink=zC,I.PlBtnPrimary=ul,I.PlBtnSecondary=pl,I.PlBtnSplit=NC,I.PlCheckbox=Iu,I.PlCheckboxGroup=ib,I.PlChip=Cl,I.PlContainer=iC,I.PlDialogModal=bl,I.PlDropdown=ui,I.PlDropdownLegacy=T0,I.PlDropdownLine=Mu,I.PlDropdownMulti=eb,I.PlDropdownRef=n0,I.PlFileDialog=zu,I.PlFileInput=np,I.PlGrid=uC,I.PlIcon16=ms,I.PlIcon24=Pu,I.PlLogView=Ou,I.PlMaskIcon16=cr,I.PlMaskIcon24=Gn,I.PlNotificationAlert=rp,I.PlNumberField=O0,I.PlProgressBar=P0,I.PlRow=aC,I.PlSectionSeparator=Gu,I.PlSlideModal=_b,I.PlSpacer=Su,I.PlTableFilters=_T,I.PlTabs=zb,I.PlTextArea=Mw,I.PlTextField=Lr,I.PlToggleSwitch=gs,I.PlTooltip=St,I.ReactiveFileContent=Dl,I.Scrollable=kS,I.Slider=op,I.SliderRange=CS,I.SliderRangeTriple=lS,I.ThemeSwitcher=J_,I.UnresolvedError=Ba,I.ValueOrErrorsComponent=bT,I.activateAgGrid=Qd,I.animate=_u,I.animateInfinite=H_,I.call=fu,I.computedResult=NT,I.createModel=Ra,I.debounce=Cu,I.defineApp=vv,I.defineStore=AT,I.delay=mu,I.detectOutside=Iw,I.ensureError=Pa,I.eventListener=yl,I.formatZodError=Fa,I.getElementScrollPosition=Fu,I.identity=Va,I.isDefined=gm,I.isElementVisible=Du,I.isJsonEqual=Na,I.isZodError=Da,I.listToOptions=j_,I.makeEaseInOut=W_,I.makeEaseOut=vu,I.maskIcons16=DE,I.maskIcons24=FE,I.normalizeListOptions=lr,I.notEmpty=sl,I.randomInt=yu,I.randomString=U_,I.requestTick=al,I.scrollIntoView=di,I.showContextMenu=rl,I.throttle=wu,I.timeout=gu,I.unwrapOptionalResult=mm,I.unwrapValueOrErrors=fd,I.useClickOutside=fs,I.useDraggable=Jk,I.useEventListener=rt,I.useFormState=Kk,I.useHover=pu,I.useInterval=qk,I.useLabelNotch=On,I.useLocalStorage=bu,I.useMouse=uu,I.useMouseCapture=ar,I.usePosition=ho,I.useQuery=Yk,I.useResizeObserver=ip,I.useScroll=Wk,I.useSdkPlugin=Xa,I.useSortable=jk,I.useTheme=ku,I.useWatchFetch=fp,I.wrapOptionalResult=md,I.wrapValueOrErrors=fm,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});