@sfxcode/formkit-primevue 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(E,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(E=typeof globalThis<"u"?globalThis:E||self,s(E["formkit-primevue"]={},E.Vue))})(this,function(E,s){"use strict";const At=["__key","__init","__shim","__original","__index","__prevKey"];function xe(){return Math.random().toString(36).substring(2,15)}function jt(e,n){const t=e instanceof Set?e:new Set(e);return n&&n.forEach(r=>t.add(r)),[...t]}function x(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function ue(e,n,t=!0,r=["__key"]){if(e===n)return!0;if(typeof n=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||n===null||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i of r)if((i in e||i in n)&&e[i]!==n[i])return!1;for(const i in e)if(!(i in n)||e[i]!==n[i]&&!t||t&&!ue(e[i],n[i],t,r))return!1;return!0}return!1}function ce(e){return Object.prototype.toString.call(e)==="[object Object]"}function pe(e){return ce(e)||Array.isArray(e)}function Q(e){if(ce(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(ce(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function de(e,n,t=!1,r=!1){if(n===null)return null;const i={};if(typeof n=="string")return n;for(const o in e)if(x(n,o)&&(n[o]!==void 0||!r)){if(t&&Array.isArray(e[o])&&Array.isArray(n[o])){i[o]=e[o].concat(n[o]);continue}if(n[o]===void 0)continue;Q(e[o])&&Q(n[o])?i[o]=de(e[o],n[o],t,r):i[o]=n[o]}else i[o]=e[o];for(const o in n)!x(i,o)&&n[o]!==void 0&&(i[o]=n[o]);return i}function xt(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const n=e[0];for(let t=1;t<e.length;t++)if(e[t]===n&&(t===1||e[t-1]!=="\\")&&t!==e.length-1)return!1;return!0}function Rt(e){if(!e.length)return"";let n="",t="";for(let r=0;r<e.length;r++){const i=e.charAt(r);(i!=="\\"||t==="\\")&&(n+=i),t=i}return n}function q(...e){return e.reduce((n,t)=>{const{value:r,name:i,modelValue:o,config:l,plugins:a,...m}=t;return Object.assign(n,m)},{})}function Dt(e){const n=[];let t="",r=0,i="",o="";for(let l=0;l<e.length;l++){const a=e.charAt(l);a===i&&o!=="\\"?i="":(a==="'"||a==='"')&&!i&&o!=="\\"?i=a:a==="("&&!i?r++:a===")"&&!i&&r--,a===","&&!i&&r===0?(n.push(t),t=""):(a!==" "||i)&&(t+=a),o=a}return t&&n.push(t),n}function Re(e,n){const t={},r=n.filter(o=>o instanceof RegExp),i=new Set(n);for(const o in e)!i.has(o)&&!r.some(l=>l.test(o))&&(t[o]=e[o]);return t}function De(e,n){const t={},r=n.filter(i=>i instanceof RegExp);return n.forEach(i=>{i instanceof RegExp||(t[i]=e[i])}),Object.keys(e).forEach(i=>{r.some(o=>o.test(i))&&(t[i]=e[i])}),t}function G(e){return e.replace(/-([a-z0-9])/gi,(n,t)=>t.toUpperCase())}function Te(e){return e.replace(/([a-z0-9])([A-Z])/g,(n,t,r)=>t+"-"+r.toLowerCase()).replace(" ","-").toLowerCase()}function X(e,n=At){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let t;Array.isArray(e)?t=e.map(r=>typeof r=="object"?X(r,n):r):t=Object.keys(e).reduce((r,i)=>(r[i]=typeof e[i]=="object"?X(e[i],n):e[i],r),{});for(const r of n)r in e&&Object.defineProperty(t,r,{enumerable:!1,value:e[r]});return t}function U(e){return typeof e=="object"?X(e):e}function Tt(e,n){if(!e||typeof e!="object")return null;const t=n.split(".");let r=e;for(const i in t){const o=t[i];if(x(r,o)&&(r=r[o]),+i===t.length-1)return r;if(!r||typeof r!="object")return null}return null}function Le(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function H(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Me(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function me(){const e=[];let n=0;const t=i=>e.push(i),r=i=>{const o=e[n];return typeof o=="function"?o(i,l=>(n++,r(l===void 0?i:l))):(n=0,i)};return t.dispatch=r,t.unshift=i=>e.unshift(i),t.remove=i=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)},t}function ze(){const e=new Map,n=new Map;let t;const r=(i,o)=>{if(t){t.set(o.name,[i,o]);return}e.has(o.name)&&e.get(o.name).forEach(l=>{(o.origin===i||l.modifiers.includes("deep"))&&l.listener(o)}),o.bubble&&i.bubble(o)};return r.on=(i,o)=>{const[l,...a]=i.split("."),m=o.receipt||xe(),h={modifiers:a,event:l,listener:o,receipt:m};return e.has(l)?e.get(l).push(h):e.set(l,[h]),n.has(m)?n.get(m).push(l):n.set(m,[l]),m},r.off=i=>{var o;n.has(i)&&((o=n.get(i))===null||o===void 0||o.forEach(l=>{const a=e.get(l);Array.isArray(a)&&e.set(l,a.filter(m=>m.receipt!==i))}),n.delete(i))},r.pause=i=>{t||(t=new Map),i&&i.walk(o=>o._e.pause())},r.play=i=>{if(!t)return;const o=t;t=void 0,o.forEach(([l,a])=>r(l,a)),i&&i.walk(l=>l._e.play())},r}function Lt(e,n,t,r,i=!0){return n._e(e,{payload:r,name:t,bubble:i,origin:e}),e}function Mt(e,n,t){return re(e.parent)&&e.parent._e(e.parent,t),e}function zt(e,n,t,r){return n._e.on(t,r)}function Ft(e,n,t){return n._e.off(t),e}const ye=me();ye((e,n)=>(e.message||(e.message=String(`E${e.code}`)),n(e)));const he=me();he((e,n)=>{e.message||(e.message=String(`W${e.code}`));const t=n(e);return console&&typeof console.warn=="function"&&console.warn(t.message),t});function ee(e,n={}){he.dispatch({code:e,data:n})}function L(e,n={}){throw Error(ye.dispatch({code:e,data:n}).message)}function te(e,n){const t={blocking:!1,key:xe(),meta:{},type:"state",visible:!0,...e};return n&&t.value&&t.meta.localize!==!1&&(t.value=n.t(t),t.meta.locale=n.config.locale),t}const Fe={apply:Nt,set:Wt,remove:ve,filter:Kt,reduce:qt,release:Yt,touch:Ut};function vt(e=!1){const n={};let t,r=e,i=[];const o=new Map;let l;const a=new Proxy(n,{get(...m){const[h,g]=m;return g==="buffer"?r:g==="_b"?i:g==="_m"?o:g==="_r"?l:x(Fe,g)?Fe[g].bind(null,n,a,t):Reflect.get(...m)},set(m,h,g){return h==="_n"?(t=g,l==="__n"&&We(t,a),!0):h==="_b"?(i=g,!0):h==="buffer"?(r=g,!0):h==="_r"?(l=g,!0):(L(101,t),!1)}});return a}function Wt(e,n,t,r){if(n.buffer)return n._b.push([[r]]),n;if(e[r.key]!==r){if(typeof r.value=="string"&&r.meta.localize!==!1){const o=r.value;r.value=t.t(r),r.value!==o&&(r.meta.locale=t.props.locale)}const i=`message-${x(e,r.key)?"updated":"added"}`;e[r.key]=Object.freeze(t.hook.message.dispatch(r)),t.emit(i,r)}return n}function Ut(e,n){for(const t in e){const r={...e[t]};n.set(r)}}function ve(e,n,t,r){if(x(e,r)){const i=e[r];delete e[r],t.emit("message-removed",i)}return n.buffer===!0&&(n._b=n._b.filter(i=>(i[0]=i[0].filter(o=>o.key!==r),i[1]||i[0].length))),n}function Kt(e,n,t,r,i){for(const o in e){const l=e[o];(!i||l.type===i)&&!r(l)&&ve(e,n,t,o)}}function qt(e,n,t,r,i){for(const o in e){const l=e[o];i=r(i,l)}return i}function Nt(e,n,t,r,i){if(Array.isArray(r)){if(n.buffer){n._b.push([r,i]);return}const o=new Set(r.map(l=>(n.set(l),l.key)));typeof i=="string"?n.filter(l=>l.type!==i||o.has(l.key)):typeof i=="function"&&n.filter(l=>!i(l)||o.has(l.key))}else for(const o in r){const l=t.at(o);l?l.store.apply(r[o],i):Zt(t,n,o,r[o],i)}}function Ht(e,...n){const t=`${e.name}-set`,r=i=>te({key:Me(i),type:"error",value:i,meta:{source:t,autoClear:!0}});return n.filter(i=>!!i).map(i=>{if(typeof i=="string"&&(i=[i]),Array.isArray(i))return i.map(o=>r(o));{const o={};for(const l in i)Array.isArray(i[l])?o[l]=i[l].map(a=>r(a)):o[l]=[r(i[l])];return o}})}function Zt(e,n,t,r,i){var o;const l=n._m;l.has(t)||l.set(t,[]),n._r||(n._r=We(e,n)),(o=l.get(t))===null||o===void 0||o.push([r,i])}function We(e,n){return e.on("child.deep",({payload:t})=>{n._m.forEach((r,i)=>{e.at(i)===t&&(r.forEach(([o,l])=>{t.store.apply(o,l)}),n._m.delete(i))}),n._m.size===0&&n._r&&(e.off(n._r),n._r=void 0)})}function Yt(e,n){n.buffer=!1,n._b.forEach(([t,r])=>n.apply(t,r)),n._b=[]}function Jt(){const e={};let n;return{count:(...t)=>Qt(n,e,...t),init(t){n=t,t.on("message-added.deep",Ke(e,1)),t.on("message-removed.deep",Ke(e,-1))},merge:t=>qe(n,e,t),settled(t){return x(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>qe(n,e,t,!0),value(t){return x(e,t)?e[t].count:0}}}function Qt(e,n,t,r,i=0){if(r=Gt(r||t),!x(n,t)){const o={condition:r,count:0,name:t,node:e,promise:Promise.resolve(),resolve:()=>{}};n[t]=o,i=e.store.reduce((l,a)=>l+o.condition(a)*1,i),e.each(l=>{l.ledger.count(o.name,o.condition),i+=l.ledger.value(o.name)})}return Ue(n[t],i).promise}function Gt(e){return typeof e=="function"?e:n=>n.type===e}function Ue(e,n){const t=e.count,r=e.count+n;return e.count=r,t===0&&r!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(i=>e.resolve=i)):t!==0&&r===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function Ke(e,n){return t=>{for(const r in e){const i=e[r];i.condition(t.payload)&&Ue(i,n)}}}function qe(e,n,t,r=!1){for(const i in n){const o=n[i].condition;r||t.ledger.count(i,o);const l=t.ledger.value(i)*(r?-1:1);if(!!e)do e.ledger.count(i,o,l),e=e.parent;while(e)}}const ge=new Map,ne=new Map,_e=ze(),Xt=[];function en(e){e.props.id&&(ge.set(e.props.id,e),ne.set(e,e.props.id),_e(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function tn(e){if(ne.has(e)){const n=ne.get(e);ne.delete(e),ge.delete(n),_e(e,{payload:null,name:n,bubble:!1,origin:e})}}function Ne(e){return ge.get(e)}function nn(e,n){Xt.push(_e.on(e,n))}function He(e,n,t){let r=!0;return n in e.config._t?r=!1:e.emit(`config:${n}`,t,!1),n in e.props||(e.emit("prop",{prop:n,value:t}),e.emit(`prop:${n}`,t)),r}function rn(e){const n=document.getElementById(e);if(n instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});n.dispatchEvent(t);return}ee(151,e)}function sn(e){const n=t=>{for(const r in t.store){const i=t.store[r];i.type==="error"||i.type==="ui"&&r==="incomplete"?t.store.remove(r):i.type==="state"&&t.store.set({...i,value:!1})}};n(e),e.walk(n)}function on(e,n){const t=typeof e=="string"?Ne(e):e;if(t){const r=o=>U(o.props.initial)||(o.type==="group"?{}:o.type==="list"?[]:void 0);t._e.pause(t),t.input(U(n)||r(t),!1),t.walk(o=>o.input(r(o),!1));const i=r(t);return t.input(typeof i=="object"?U(n)||H(i):i,!1),t._e.play(t),sn(t),t.emit("reset",t),t}ee(152,e)}const ln={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Te(e)}`]:!0})},Ze=Symbol("index"),be=Symbol("removed"),$e=Symbol("moved"),Ye=Symbol("inserted");function an(e){return e.type==="list"&&Array.isArray(e._value)}function re(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const ie=(e,n,t)=>{L(102,[e,t])},fn={_c:V(Bn,ie,!1),add:V(kn),addProps:V(Cn),address:V(jn,ie,!1),at:V(xn),bubble:V(Mt),clearErrors:V(vn),calm:V(_n),config:V(!1),define:V($n),disturb:V(gn),destroy:V(bn),hydrate:V(hn),index:V(En,On,!1),input:V(Qe),each:V(Vn),emit:V(Lt),find:V(Dn),on:V(zt),off:V(Ft),parent:V(!1,wn),plugins:V(!1),remove:V(Sn),root:V(Ln,ie,!1),reset:V(Fn),resetConfig:V(Pn),setErrors:V(et),submit:V(zn),t:V(Mn),use:V(Ce),name:V(An,!1,!1),walk:V(In)};function un(){return new Map(Object.entries(fn))}function V(e,n,t=!0){return{get:e?(r,i)=>t?(...o)=>e(r,i,...o):e(r,i):!1,set:n!==void 0?n:ie.bind(null)}}function cn(){const e=new Map;return new Proxy(e,{get(n,t){return e.has(t)||e.set(t,me()),e.get(t)}})}let pn=0,dn=0;function mn(e){var n,t;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?Ze:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++pn}`}function Je(e){return e.type==="group"?H(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?H(Array.isArray(e.value)?e.value:[]):e.value}function Qe(e,n,t,r=!0){return n._value=yn(e,e.hook.input.dispatch(t)),e.emit("input",n._value),n.isSettled&&e.disturb(),r?(n._tmo&&clearTimeout(n._tmo),n._tmo=setTimeout(se,e.props.delay,e,n)):se(e,n),n.settled}function yn(e,n){switch(e.type){case"input":break;case"group":(!n||typeof n!="object")&&L(107,[e,n]);break;case"list":Array.isArray(n)||L(108,[e,n]);break}return n}function se(e,n,t=!0,r=!0){n._value=n.value=e.hook.commit.dispatch(n._value),e.type!=="input"&&r&&e.hydrate(),e.emit("commit",n.value),t&&e.calm()}function Ge(e,{name:n,value:t,from:r}){if(!Object.isFrozen(e._value)){if(an(e)){const i=t===be?[]:t===$e&&typeof r=="number"?e._value.splice(r,1):[t];e._value.splice(n,t===$e||r===Ye?0:1,...i);return}t!==be?e._value[n]=t:delete e._value[n]}}function hn(e,n){const t=n._value;return n.children.forEach(r=>{if(typeof t=="object")if(r.name in t){const i=r.type!=="input"||t[r.name]&&typeof t[r.name]=="object"?H(t[r.name]):t[r.name];r.input(i,!1)}else(e.type!=="list"||typeof r.name=="number")&&Ge(n,{name:r.name,value:r.value}),t.__init||(r.type==="group"?r.input({},!1):r.type==="list"?r.input([],!1):r.input(void 0,!1))}),e}function gn(e,n){var t;return n._d<=0&&(n.isSettled=!1,e.emit("settled",!1,!1),n.settled=new Promise(r=>{n._resolve=r}),e.parent&&((t=e.parent)===null||t===void 0||t.disturb())),n._d++,e}function _n(e,n,t){var r;if(t!==void 0&&e.type!=="input")return Ge(n,t),se(e,n,!0,!1);n._d>0&&n._d--,n._d===0&&(n.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((r=e.parent)===null||r===void 0||r.calm({name:e.name,value:n.value})),n._resolve&&n._resolve(n.value))}function bn(e,n){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),tn(e),n._value=n.value=void 0,e.emit("destroyed",e)}function $n(e,n,t){n.type=t.type,n.props.definition=X(t),n.value=n._value=Je({type:e.type,value:n.value}),t.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),n.props.type=t.forceTypeProp),t.family&&(n.props.family=t.family),t.features&&t.features.forEach(r=>r(e)),t.props&&e.addProps(t.props),e.emit("defined",t)}function Cn(e,n,t){var r;if(e.props.attrs){const i={...e.props.attrs};e.props._emit=!1;for(const l in i){const a=G(l);t.includes(a)&&(e.props[a]=i[l],delete i[l])}const o=U(n._value);e.props.initial=e.type!=="input"?H(o):o,e.props._emit=!0,e.props.attrs=i,e.props.definition&&(e.props.definition.props=[...((r=e.props.definition)===null||r===void 0?void 0:r.props)||[],...t])}return e.emit("added-props",t),e}function kn(e,n,t,r){if(e.type==="input"&&L(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),n.children.includes(t)||(r!==void 0&&e.type==="list"?(n.children.splice(r,0,t),Array.isArray(e.value)&&e.value.length<n.children.length&&e.disturb().calm({name:r,value:t.value,from:Ye})):n.children.push(t),t.isSettled||e.disturb()),t.parent!==e){if(t.parent=e,t.parent!==e)return e.remove(t),t.parent.add(t),e}else t.use(e.plugins);return se(e,n,!1),e.ledger.merge(t),e.emit("child",t),e}function wn(e,n,t,r){return re(r)?(e.parent&&e.parent!==r&&e.parent.remove(e),n.parent=r,e.resetConfig(),r.children.includes(e)?e.use(r.plugins):r.add(e),!0):r===null?(n.parent=null,!0):!1}function Sn(e,n,t){const r=n.children.indexOf(t);if(r!==-1){t.isSettled&&e.disturb(),n.children.splice(r,1);let i=Le(t.props.preserve),o=t.parent;for(;i===void 0&&o;)i=Le(o.props.preserve),o=o.parent;i?e.calm():e.calm({name:e.type==="list"?r:t.name,value:be}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function Vn(e,n,t){n.children.forEach(r=>t(r))}function In(e,n,t,r=!1){n.children.forEach(i=>{(t(i)!==!1||!r)&&i.walk(t)})}function Pn(e,n){const t=e.parent||void 0;n.config=Xe(e.config._t,t),e.walk(r=>r.resetConfig())}function Ce(e,n,t,r=!0,i=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(o=>Ce(e,n,o)),e):(n.plugins.has(t)||(i&&typeof t.library=="function"&&t.library(e),r&&t(e)!==!1&&(n.plugins.add(t),e.children.forEach(o=>o.use(t)))),e)}function On(e,n,t,r){if(re(e.parent)){const i=e.parent.children,o=r>=i.length?i.length-1:r<0?0:r,l=i.indexOf(e);return l===-1?!1:(i.splice(l,1),i.splice(o,0,e),e.parent.children=i,e.parent.type==="list"&&e.parent.disturb().calm({name:o,value:$e,from:l}),!0)}return!1}function En(e){if(e.parent){const n=[...e.parent.children].indexOf(e);return n===-1?e.parent.children.length:n}return-1}function Bn(e,n){return n}function An(e,n){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:n.name!==Ze?n.name:e.index}function jn(e,n){return n.parent?n.parent.address.concat([e.name]):[e.name]}function xn(e,n,t){const r=typeof t=="string"?t.split(e.config.delimiter):t;if(!r.length)return;const i=r[0];let o=e.parent;for(o||(String(r[0])===String(e.name)&&r.shift(),o=e),i==="$parent"&&r.shift();o&&r.length;){const l=r.shift();switch(l){case"$root":o=e.root;break;case"$parent":o=o.parent;break;case"$self":o=e;break;default:o=o.children.find(a=>String(a.name)===String(l))||Rn(o,l)}}return o||void 0}function Rn(e,n){const t=String(n).match(/^(find)\((.*)\)$/);if(t){const[,r,i]=t,o=i.split(",").map(l=>l.trim());switch(r){case"find":return e.find(o[0],o[1]);default:return}}}function Dn(e,n,t,r){return Tn(e,t,r)}function Tn(e,n,t="name"){const r=typeof t=="string"?o=>o[t]==n:t,i=[e];for(;i.length;){const o=i.shift();if(r(o,n))return o;i.push(...o.children)}}function Ln(e){let n=e;for(;n.parent;)n=n.parent;return n}function Xe(e={},n){let t;return new Proxy(e,{get(...r){const i=r[1];if(i==="_t")return e;const o=Reflect.get(...r);if(o!==void 0)return o;if(n){const l=n.config[i];if(l!==void 0)return l}if(e.rootConfig&&typeof i=="string"){const l=e.rootConfig[i];if(l!==void 0)return l}return i==="delay"&&(t==null?void 0:t.type)==="input"?20:ln[i]},set(...r){const i=r[1],o=r[2];if(i==="_n")return t=o,e.rootConfig&&e.rootConfig._add(t),!0;if(i==="_rmn")return e.rootConfig&&e.rootConfig._rm(t),t=void 0,!0;if(!ue(e[i],o,!1)){const l=Reflect.set(...r);return t&&(t.emit(`config:${i}`,o,!1),He(t,i,o),t.walk(a=>He(a,i,o),!0)),l}return!0}})}function Mn(e,n,t,r="ui"){const i=typeof t=="string"?{key:t,value:t,type:r}:t,o=e.hook.text.dispatch(i);return e.emit("text",o,!1),o.value}function zn(e){const n=e.name;do{if(e.props.isForm===!0)break;e.parent||L(106,n),e=e.parent}while(e);e.props.id&&rn(e.props.id)}function Fn(e,n,t){return on(e,t)}function et(e,n,t,r){const i=`${e.name}-set`,o=e.hook.setErrors.dispatch({localErrors:t,childErrors:r});return Ht(e,o.localErrors,o.childErrors).forEach(l=>{e.store.apply(l,a=>a.meta.source===i)}),e}function vn(e,n,t=!0,r){return et(e,n,[]),t&&(r=r||`${e.name}-set`,e.walk(i=>{i.store.filter(o=>!(o.type==="error"&&o.meta&&o.meta.source===r))})),e}function Wn(e){return x(e.props,"id")||(e.props.id=`input_${dn++}`),e}function Un(e){const n={initial:typeof e=="object"?U(e):e};let t,r=!0;return new Proxy(n,{get(...i){const[o,l]=i;if(x(n,l))return Reflect.get(...i);if(t&&typeof l=="string"&&t.config[l]!==void 0)return t.config[l]},set(i,o,l,a){if(o==="_n")return t=l,!0;if(o==="_emit")return r=l,!0;const{prop:m,value:h}=t.hook.prop.dispatch({prop:o,value:l});if(!ue(n[m],h,!1)||typeof h=="object"){const g=Reflect.set(i,m,h,a);return r&&(t.emit("prop",{prop:m,value:h}),typeof m=="string"&&t.emit(`prop:${m}`,h)),g}return!0}})}function Kn(e,n){if(e.props.definition)return e.define(e.props.definition);for(const t of n){if(e.props.definition)return;typeof t.library=="function"&&t.library(e)}}function qn(e){const n=Je(e),t=Xe(e.config||{},e.parent);return{_d:0,_e:ze(),_resolve:!1,_tmo:!1,_value:n,children:jt(e.children||[]),config:t,hook:cn(),isCreated:!1,isSettled:!0,ledger:Jt(),name:mn(e),parent:e.parent||null,plugins:new Set,props:Un(n),settled:Promise.resolve(n),store:vt(!0),traps:un(),type:e.type||"input",value:n}}function Nn(e,n){var t;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,n.props&&Object.assign(e.props,n.props),e.props._emit=!0,Kn(e,new Set([...n.plugins||[],...e.parent?e.parent.plugins:[]])),n.plugins)for(const r of n.plugins)Ce(e,e._c,r,!0,!1);return Wn(e),e.each(r=>e.add(r)),e.parent&&e.parent.add(e,n.index),e.type==="input"&&e.children.length&&L(100,e),Qe(e,e._c,e._value,!1),e.store.release(),!((t=n.props)===null||t===void 0)&&t.id&&en(e),e.emit("created",e),e.isCreated=!0,e}function Hn(e){const n=e||{},t=qn(n),r=new Proxy(t,{get(...i){const[,o]=i;if(o==="__FKNode__")return!0;const l=t.traps.get(o);return l&&l.get?l.get(r,t):Reflect.get(...i)},set(...i){const[,o,l]=i,a=t.traps.get(o);return a&&a.set?a.set(r,t,o,l):Reflect.set(...i)}});return Nn(r,n)}function ke(e){return typeof e!="string"&&x(e,"$el")}function we(e){return typeof e!="string"&&x(e,"$cmp")}function Z(e){return!e||typeof e=="string"?!1:x(e,"if")&&x(e,"then")}function Zn(e){return typeof e!="string"&&"$formkit"in e}function Yn(e){if(typeof e=="string")return{$el:"text",children:e};if(Zn(e)){const{$formkit:n,for:t,if:r,children:i,bind:o,...l}=e;return Object.assign({$cmp:"FormKit",props:{...l,type:n}},r?{if:r}:{},t?{for:t}:{},i?{children:i}:{},o?{bind:o}:{})}return e}function M(e){let n;const t=new Set,r=function(u,d){return typeof u=="function"?u(d):u},i=[{"&&":(c,u,d)=>r(c,d)&&r(u,d),"||":(c,u,d)=>r(c,d)||r(u,d)},{"===":(c,u,d)=>r(c,d)===r(u,d),"!==":(c,u,d)=>r(c,d)!==r(u,d),"==":(c,u,d)=>r(c,d)==r(u,d),"!=":(c,u,d)=>r(c,d)!=r(u,d),">=":(c,u,d)=>r(c,d)>=r(u,d),"<=":(c,u,d)=>r(c,d)<=r(u,d),">":(c,u,d)=>r(c,d)>r(u,d),"<":(c,u,d)=>r(c,d)<r(u,d)},{"+":(c,u,d)=>r(c,d)+r(u,d),"-":(c,u,d)=>r(c,d)-r(u,d)},{"*":(c,u,d)=>r(c,d)*r(u,d),"/":(c,u,d)=>r(c,d)/r(u,d),"%":(c,u,d)=>r(c,d)%r(u,d)}],o=i.reduce((c,u)=>c.concat(Object.keys(u)),[]),l=new Set(o.map(c=>c.charAt(0)));function a(c,u,d,b){const S=c.filter(f=>f.startsWith(u));return S.length?S.find(f=>b.length>=d+f.length&&b.substring(d,d+f.length)===f?f:!1):!1}function m(c,u,d=1){let b=d?u.substring(c+1).trim():u.substring(0,c).trim();if(!b.length)return-1;if(!d){const f=b.split("").reverse(),y=f.findIndex($=>l.has($));b=f.slice(y).join("")}const S=b[0];return i.findIndex(f=>{const y=Object.keys(f);return!!a(y,S,0,b)})}function h(c,u){let d="";const b=u.length;let S=0;for(let f=c;f<b;f++){const y=u.charAt(f);if(y==="(")S++;else if(y===")")S--;else if(S===0&&y===" ")continue;if(S===0&&a(o,y,f,u))return[d,f-1];d+=y}return[d,u.length-1]}function g(c,u=0){const d=i[u],b=c.length,S=Object.keys(d);let f=0,y=!1,$=null,w="",O=null,P,D="",I="",A="",j="",F=0;const v=(B,W)=>{B?A+=W:w+=W};for(let B=0;B<b;B++)if(D=I,I=c.charAt(B),(I==="'"||I==='"')&&D!=="\\"&&(f===0&&!y||f&&!j)){f?j=I:y=I,v(f,I);continue}else if(y&&(I!==y||D==="\\")||j&&(I!==j||D==="\\")){v(f,I);continue}else if(y===I){y=!1,v(f,I);continue}else if(j===I){j=!1,v(f,I);continue}else{if(I===" ")continue;if(I==="(")f===0?F=B:A+=I,f++;else if(I===")")if(f--,f===0){const W=typeof w=="string"&&w.startsWith("$")?w:void 0,Bt=W&&c.charAt(B+1)===".";let Y="";Bt&&([Y,B]=h(B+2,c));const fe=$?u:m(F,c,0),J=m(B,c);fe===-1&&J===-1?w=p(A,-1,W,Y):$&&(fe>=J||J===-1)&&u===fe?(O=$.bind(null,p(A,-1,W,Y)),$=null,w=""):J>fe&&u===J?w=p(A,-1,W,Y):w+=`(${A})${Bt?`.${Y}`:""}`,A=""}else A+=I;else if(f===0&&(P=a(S,I,B,c))){B===0&&L(103,[P,c]),B+=P.length-1,B===c.length-1&&L(104,[P,c]),$?w&&(O=$.bind(null,p(w,u)),$=d[P].bind(null,O),w=""):O?($=d[P].bind(null,p(O,u)),O=null):($=d[P].bind(null,p(w,u)),w="");continue}else v(f,I)}return w&&$&&($=$.bind(null,p(w,u))),$=!$&&O?O:$,!$&&w&&($=(B,W)=>typeof B=="function"?B(W):B,$=$.bind(null,p(w,u))),!$&&!w&&L(105,c),$}function p(c,u,d,b){if(d){const S=p(d,i.length);let f,y=b?M(`$${b}`):!1;if(typeof S=="function"){const $=Dt(String(c)).map(w=>p(w,-1));return w=>{const O=S(w);return typeof O!="function"?(ee(150,d),O):(f=O(...$.map(P=>typeof P=="function"?P(w):P)),y&&(y=y.provide(P=>{const D=n(P);return P.reduce((A,j)=>{if(j===b||(b==null?void 0:b.startsWith(`${j}(`))){const v=Tt(f,j);A[j]=()=>v}else A[j]=D[j];return A},{})})),y?y():f)}}}else if(typeof c=="string"){if(c==="true")return!0;if(c==="false")return!1;if(c==="undefined")return;if(xt(c))return Rt(c.substring(1,c.length-1));if(!isNaN(+c))return Number(c);if(u<i.length-1)return g(c,u+1);if(c.startsWith("$")){const S=c.substring(1);return t.add(S),function(y){return S in y?y[S]():void 0}}return c}return c}const k=g(e.startsWith("$:")?e.substring(2):e),_=Array.from(t);function C(c){return n=c,Object.assign(k.bind(null,c(_)),{provide:C})}return Object.assign(k,{provide:C})}const tt="1.0.0-beta.11",Jn=z("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}),!0),Qn=z("inner","div"),Gn=z("wrapper","div"),Xn=z("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),er=z("messages",()=>({$el:"ul",if:"$fns.length($messages)"})),tr=z("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),nr=z("prefix",null),rr=z("suffix",null),ir=z("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}}));function nt(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function sr(e,n={}){return typeof e=="string"?nt(n)||typeof n=="string"?n:e:Array.isArray(e)?nt(n)?n:e:de(e,n)}function or(e){return Jn(Gn(Xn("$label"),Qn(nr(),e(),rr())),ir("$help"),er(tr("$message.value")))}function z(e,n,t=!1){return(...r)=>{const i=o=>{const l=!n||typeof n=="string"?{$el:n}:n();return(ke(l)||we(l))&&(l.meta||(l.meta={section:e}),r.length&&!l.children&&(l.children=[...r.map(a=>typeof a=="string"?a:a(o))]),ke(l)&&(l.attrs={class:`$classes.${e}`,...l.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in o?sr(l,o[e]):l}};return t?lr(i):i}}function lr(e){return n=>[e(n)]}te({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let oe;const ar=new Promise(e=>{}),le=typeof window<"u"&&typeof fetch<"u";oe=le?getComputedStyle(document.documentElement):void 0;const N={},Se={};function Ve(e,n){return t=>{if(typeof t=="boolean")return;if(t.startsWith("<svg"))return t;if(typeof t!="string")return;const r=N[t],i=t.startsWith("default:");t=i?t.split(":")[1]:t;let o;if(r||t in N)return N[t];if(!Se[t]){if(o=fr(t),o=le&&typeof o>"u"?Promise.resolve(o):o,o instanceof Promise)Se[t]=o.then(l=>!l&&typeof t=="string"&&!i?o=typeof e=="function"?e(t):cr(t,n):l).then(l=>(typeof t=="string"&&(N[i?`default:${t}`:t]=l),l));else if(typeof o=="string")return N[i?`default:${t}`:t]=o,o}return Se[t]}}function fr(e){if(!!le)return ar.then(()=>ur(e))}function ur(e){const n=oe==null?void 0:oe.getPropertyValue(`--fk-icon-${e}`);if(n){const t=atob(n);if(t.startsWith("<svg"))return N[e]=t,t}}function cr(e,n){const t=tt.startsWith("__")?"latest":tt,r=typeof n=="function"?n(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;if(!!le)return fetch(`${r}`).then(async i=>{const o=await i.text();if(o.startsWith("<svg"))return o}).catch(i=>{console.error(i)})}let Ie=!1;const rt={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,n]})=>`You cannot directly assign node.${n} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,n]})=>`Schema expressions cannot end with an operator (${e} in "${n}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,n]})=>`Cannot set ${e.name} to non object value: ${n}`,108:({data:[e,n]})=>`Cannot set ${e.name} to non array value: ${n}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},it={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`};Ie||ye((e,n)=>{if(e.code in rt){const t=rt[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),Ie||he((e,n)=>{if(e.code in it){const t=it[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),Ie=!0;const Pe={};let T;const K=new Map,pr="__raw__",dr=/[a-zA-Z0-9\-][cC]lass$/;function mr(e,n){const t=s.ref(null);if(e==="get"){const i={};return t.value=yr.bind(null,i),t}const r=e.split(".");return s.watchEffect(()=>t.value=Oe(n,r)),t}function Oe(e,n){if(Array.isArray(e)){for(const i of e){const o=i!==!1&&Oe(i,n);if(o!==void 0)return o}return}let t,r=e;for(const i in n){const o=n[i];if(typeof r!="object"||r===null){t=void 0;break}const l=r[o];if(Number(i)===n.length-1&&l!==void 0){t=l;break}r=l}return t}function yr(e,n){if(typeof n!="string")return ee(650);if(n in e||(e[n]=s.ref(void 0)),e[n].value===void 0){e[n].value=null;const t=Ne(n);t&&(e[n].value=t.context),nn(n,({payload:r})=>{e[n].value=re(r)?r.context:r})}return e[n].value}function st(e,n){function t(p,k){const _=g(M(k.if),{if:!0}),C=m(p,k.then),c=k.else?m(p,k.else):null;return[_,C,c]}function r(p,k){var _,C;const c=g(M(p.if));let u=()=>k,d=()=>k;return typeof p.then=="object"?d=i(p.then,void 0):typeof p.then=="string"&&((_=p.then)===null||_===void 0?void 0:_.startsWith("$"))?d=g(M(p.then)):d=()=>p.then,x(p,"else")&&(typeof p.else=="object"?u=i(p.else):typeof p.else=="string"&&((C=p.else)===null||C===void 0?void 0:C.startsWith("$"))?u=g(M(p.else)):u=()=>p.else),()=>c()?d():u()}function i(p,k,_={}){const C=new Set(Object.keys(p||{})),c=k?g(M(k)):()=>({}),u=[d=>{const b=c();for(const S in b)C.has(S)||(d[S]=b[S])}];if(p){if(Z(p))return r(p,_);for(let d in p){const b=p[d];let S;const f=typeof b=="string";d.startsWith(pr)?(d=d.substring(7),S=()=>b):f&&b.startsWith("$")&&b.length>1&&!(b.startsWith("$reset")&&dr.test(d))?S=g(M(b)):typeof b=="object"&&Z(b)?S=r(b,void 0):typeof b=="object"&&Q(b)?S=i(b):S=()=>b,u.push(y=>{y[d]=S()})}}return()=>{const d=Array.isArray(p)?[]:{};return u.forEach(b=>b(d)),d}}function o(p,k){let _=null,C=()=>null,c=!1,u=null,d=null,b=null,S=!1;const f=Yn(k);if(ke(f)?(_=f.$el,C=f.$el!=="text"?i(f.attrs,f.bind):()=>null):we(f)?(typeof f.$cmp=="string"?x(p,f.$cmp)?_=p[f.$cmp]:(_=f.$cmp,S=!0):_=f.$cmp,C=i(f.props,f.bind)):Z(f)&&([c,u,d]=t(p,f)),!Z(f)&&"if"in f?c=g(M(f.if)):!Z(f)&&_===null&&(c=()=>!0),"children"in f&&f.children)if(typeof f.children=="string")if(f.children.startsWith("$slots."))_=_==="text"?"slot":_,u=g(M(f.children));else if(f.children.startsWith("$")&&f.children.length>1){const y=g(M(f.children));u=()=>String(y())}else u=()=>String(f.children);else if(Array.isArray(f.children))u=m(p,f.children);else{const[y,$,w]=t(p,f.children);u=O=>y&&y()?$&&$(O):w&&w(O)}if(we(f))if(u){const y=u;u=$=>({default(w,O){var P,D,I,A;const j=T;O&&(T=O),w&&((P=K.get(T))===null||P===void 0||P.unshift(w)),$&&((D=K.get(T))===null||D===void 0||D.unshift($));const F=y($);return w&&((I=K.get(T))===null||I===void 0||I.shift()),$&&((A=K.get(T))===null||A===void 0||A.shift()),T=j,F}}),u.slot=!0}else u=()=>({});if("for"in f&&f.for){const y=f.for.length===3?f.for[2]:f.for[1];b=[typeof y=="string"&&y.startsWith("$")?g(M(y)):()=>y,f.for[0],f.for.length===3?String(f.for[1]):null]}return[c,_,C,u,d,b,S]}function l(p,k){const _=p(k),C=T;return Object.keys(_).reduce((c,u)=>{const d=_&&_[u];return c[u]=b=>d&&d(b,C)||null,c},{})}function a(p,k){const[_,C,c,u,d,b,S]=o(p,k);let f=y=>{if(_&&C===null&&u)return _()?u(y):d&&d(y);if(C&&(!_||_())){if(C==="text"&&u)return s.createTextVNode(String(u()));if(C==="slot"&&u)return u(y);const $=S?s.resolveComponent(C):C,w=u!=null&&u.slot?l(u,y):null;return s.h($,c(),w||(u?u(y):[]))}return typeof d=="function"?d(y):d};if(b){const y=f,[$,w,O]=b;f=()=>{const P=$(),D=isNaN(P)?P:Array(Number(P)).fill(0).map((j,F)=>F),I=[];if(typeof D!="object")return null;const A=K.get(T)||[];for(const j in D){if(Array.isArray(D)&&j==="length")continue;const F=Object.defineProperty({...A.reduce((v,B)=>v.__idata?{...v,...B}:B,{}),[w]:D[j],...O!==null?{[O]:j}:{}},"__idata",{enumerable:!1,value:!0});A.unshift(F),I.push(y.bind(null,F)()),A.shift()}return I}}return f}function m(p,k){if(Array.isArray(k)){const C=k.map(a.bind(null,p));return c=>C.map(u=>u(c))}const _=a(p,k);return C=>_(C)}const h=[];function g(p,k={}){const _={};return h.push((C,c)=>{_[c]=p.provide(u=>C(u,k))}),()=>_[T]()}return function(k,_){const C=JSON.stringify(n),[c,u]=x(Pe,C)?Pe[C]:[m(e,n),h];return Pe[C]=[c,u],u.forEach(d=>{d(k,_)}),()=>(T=_,c())}}function ot(e,n){const t=K.get(T)||[];let r;return t.length&&(r=Oe(t,e.split("."))),r===void 0?n:r}function hr(e,n){return new Proxy(e,{get(...t){let r;const i=t[1];if(typeof i=="string"){const o=T;T=n,r=ot(i,void 0),T=o}return r!==void 0?r:Reflect.get(...t)}})}function lt(e,n,t){return e((r,i={})=>r.reduce((o,l)=>{if(l.startsWith("slots.")){const m=l.substring(6),h=n.slots&&x(n.slots,m);if(i.if)o[l]=()=>h;else if(n.slots&&h){const g=hr(n,t);return o[l]=()=>n.slots[m](g),o}}const a=mr(l,n);return o[l]=()=>ot(l,a.value),o},{}),t)}let at=0;const gr=s.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,n){const t=s.getCurrentInstance();let r=Symbol(String(at++));K.set(r,[]);let i=st(e.library,e.schema),o,l;return s.watch(()=>e.schema,(a,m)=>{var h;r=Symbol(String(at++)),i=st(e.library,e.schema),o=lt(i,l,r),a===m&&((h=t==null?void 0:t.proxy)===null||h===void 0?void 0:h.$forceUpdate)()},{deep:!0}),s.watchEffect(()=>{l=Object.assign(s.reactive(e.data),{slots:n.slots}),o=lt(i,l,r)}),()=>o()}}),_r={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},Ee=Symbol("FormKitParent");s.defineComponent({props:_r,emits:{input:(e,n)=>!0,inputRaw:(e,n)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,n)=>!0,submitRaw:(e,n)=>!0,submitInvalid:e=>!0},inheritAttrs:!1,setup(e,n){const t=wr(e,n);if(t.props.definition||L(600,t),t.props.definition.component)return()=>{var l;return s.h((l=t.props.definition)===null||l===void 0?void 0:l.component,{context:t.context},{...n.slots})};const r=s.ref([]),i=()=>{var l,a;const m=(a=(l=t.props)===null||l===void 0?void 0:l.definition)===null||a===void 0?void 0:a.schema;m||L(601,t),r.value=typeof m=="function"?m({...e.sectionsSchema}):m};i(),t.on("schema",i),n.emit("node",t);const o=t.props.definition.library;return n.expose({node:t}),()=>s.h(gr,{schema:r.value,data:t.context,library:o},{...n.slots})}});const ft=Symbol.for("FormKitOptions"),Be=Symbol();function br(e,n){const t={},r=l=>{for(const a of l)a.__str in t&&t[a.__str](),t[a.__str]=s.watch(Cr.bind(null,e,a),o.bind(null,a),{deep:!1})},o=$r(e,n,r,l=>{if(!!l.length)for(const a in t)`${a}`.startsWith(`${l.__str}.`)&&(t[a](),delete t[a])});r(Ae(e))}function $r(e,n,t,r){return i=>{const o=ut(e,i);o!==Be&&(i.__deep&&r(i),typeof o=="object"&&t(Ae(o,[i],...i)),n(i,o,e))}}function Cr(e,n){const t=ut(e,n);return t&&typeof t=="object"?Object.keys(t):t}function ut(e,n){if(s.isRef(e)){if(n.length===0)return e.value;e=e.value}return n.reduce((t,r)=>t===Be?t:t===null||typeof t!="object"?Be:t[r],e)}function Ae(e,n=[],...t){if(e===null)return n;if(!t.length){const r=Object.defineProperty([],"__str",{value:""});if(e=s.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(r,"__deep",{value:!0}),n.push(r);else return[r]}if(e===null||typeof e!="object")return n;for(const r in e){const i=t.concat(r);Object.defineProperty(i,"__str",{value:i.join(".")});const o=e[r];Q(o)||Array.isArray(o)?(n.push(Object.defineProperty(i,"__deep",{value:!0})),n=n.concat(Ae(o,[],...i))):n.push(i)}return n}function ae(e){return e===null||typeof e!="object"||(s.isReactive(e)?e=s.toRaw(e):s.isRef(e)&&(e=s.isReactive(e.value)?ae(e.value):e.value)),e}const je=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/];function ct(e,n){n.classes&&Object.keys(n.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=n.classes[t],pe(n.classes[t])&&t==="inner"&&Object.values(n.classes[t]))})}function kr(e){return e?["Submit","SubmitRaw","SubmitInvalid"].reduce((t,r)=>{const i=`on${r}`;return i in e&&typeof e[i]=="function"&&(t[i]=e[i]),t},{}):{}}function wr(e,n,t={}){const r=Object.assign({},s.inject(ft)||{},t),i=s.getCurrentInstance(),o=kr(i==null?void 0:i.vnode.props),l=e.modelValue!==void 0,a=e.modelValue!==void 0?e.modelValue:U(n.attrs.value);function m(){const f={...q(e),...o},y=Re(q(n.attrs),je);f.attrs=y;const $=De(q(n.attrs),je);for(const O in $)f[G(O)]=$[O];const w={props:{}};return ct(w,e),Object.assign(f,w.props),typeof f.type!="string"&&(f.definition=f.type,delete f.type),f}const h=m(),g=h.ignore?null:e.parent||s.inject(Ee,null),p=Hn(de(r||{},{name:e.name||void 0,value:a,parent:g,plugins:(r.plugins||[]).concat(e.plugins),config:e.config,props:h,index:e.index},!1,!0));p.props.definition||L(600,p);const k=s.ref(new Set(p.props.definition.props||[]));p.on("added-props",({payload:f})=>{Array.isArray(f)&&f.forEach(y=>k.value.add(y))});const _=s.computed(()=>je.concat([...k.value]).reduce((f,y)=>(typeof y=="string"?(f.push(G(y)),f.push(Te(y))):f.push(y),f),[]));s.watchEffect(()=>ct(p,e));const C=q(e);for(const f in C)s.watch(()=>e[f],()=>{e[f]!==void 0&&(p.props[f]=e[f])});const c=new Set,u=q(n.attrs);s.watchEffect(()=>{d(De(u,_.value))});function d(f){c.forEach(y=>{y(),c.delete(y)});for(const y in f){const $=G(y);c.add(s.watch(()=>n.attrs[y],()=>{p.props[$]=n.attrs[y]}))}}if(s.watchEffect(()=>{const f=Re(q(n.attrs),_.value);p.props.attrs=Object.assign({},p.props.attrs||{},f)}),s.watchEffect(()=>{const f=e.errors.map(y=>te({key:Me(y),type:"error",value:y,meta:{source:"prop"}}));p.store.apply(f,y=>y.type==="error"&&y.meta.source==="prop")}),p.type!=="input"){const f=`${p.name}-prop`;s.watchEffect(()=>{const y=Object.keys(e.inputErrors);y.length||p.clearErrors(!0,f);const $=y.reduce((w,O)=>{let P=e.inputErrors[O];return typeof P=="string"&&(P=[P]),Array.isArray(P)&&(w[O]=P.map(D=>te({key:D,type:"error",value:D,meta:{source:f}}))),w},{});p.store.apply($,w=>w.type==="error"&&w.meta.source===f)})}s.watchEffect(()=>Object.assign(p.config,e.config)),p.type!=="input"&&s.provide(Ee,p);let b;const S=new WeakSet;return p.on("modelUpdated",()=>{var f,y;if(n.emit("inputRaw",(f=p.context)===null||f===void 0?void 0:f.value,p),clearTimeout(b),b=setTimeout(n.emit,20,"input",(y=p.context)===null||y===void 0?void 0:y.value,p),l&&p.context){const $=ae(p.context.value);pe($)&&ae(e.modelValue)!==$&&S.add($),n.emit("update:modelValue",$)}}),l&&(br(s.toRef(e,"modelValue"),(f,y)=>{var $;const w=ae(y);if(pe(w)&&S.has(w))return S.delete(w);f.length?($=p.at(f))===null||$===void 0||$.input(y,!1):p.input(y,!1)}),p.value!==a&&p.emit("modelUpdated")),s.onUnmounted(()=>p.destroy()),p}let Sr=1;function Vr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function R(e,n={}){const t={type:"input",...n};let r;if(Vr(e)){const i=`SchemaComponent${Sr++}`;r=z("input",()=>({$cmp:i,props:{context:"$node.context"}})),t.library={[i]:s.markRaw(e)}}else typeof e=="function"?r=e:r=z("input",()=>U(e));return t.schema=or(r||"Schema undefined"),t}s.defineComponent({name:"FormKitIcon",props:{icon:{type:String,default:""},iconLoader:{type:Function,default:null},iconLoaderUrl:{type:Function,default:null}},setup(e){var n,t;const r=s.ref(void 0),i=s.inject(ft,{}),o=s.inject(Ee,null);let l;if(e.iconLoader&&typeof e.iconLoader=="function")l=Ve(e.iconLoader);else if(o&&((n=o.props)===null||n===void 0?void 0:n.iconLoader))l=Ve(o.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")l=Ve(l,e.iconLoaderUrl);else{const a=(t=i==null?void 0:i.plugins)===null||t===void 0?void 0:t.find(m=>typeof m.iconHandler=="function");a&&(l=a.iconHandler)}if(l&&typeof l=="function"){const a=l(e.icon);a instanceof Promise?a.then(m=>{r.value=m}):r.value=a}return()=>r.value?s.h("span",{class:"formkit-icon",innerHTML:r.value}):null}});const Ir=s.defineComponent({__name:"PrimeCalendar",props:{context:Object},setup(e){const n=e,t=n.context;function r(o){t==null||t.node.input(t==null?void 0:t._value)}function i(o){t==null||t.node.input(o)}return(o,l)=>{const a=s.resolveComponent("Calendar");return s.openBlock(),s.createBlock(a,{modelValue:s.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=m=>s.unref(t)._value=m),id:n.context.id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),"date-format":s.unref(t).attrs.dateFormat,"show-icon":s.unref(t).attrs.showIcon,icon:s.unref(t).attrs.icon,onDateSelect:i,onInput:r},null,8,["modelValue","id","name","class","date-format","show-icon","icon"])}}}),Pr={key:0,class:"formkit-prime-left"},Or={key:1,class:"formkit-prime-right"},Er=s.defineComponent({__name:"PrimeCheckBox",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i)}return(i,o)=>{const l=s.resolveComponent("Checkbox");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.unref(t).attrs.labelLeft?(s.openBlock(),s.createElementBlock("span",Pr,s.toDisplayString(s.unref(t).attrs.labelLeft),1)):s.createCommentVNode("",!0),s.createVNode(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=a=>s.unref(t)._value=a),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),placeholder:s.unref(t).attrs.placeholder,binary:!0,onInput:r},null,8,["modelValue","id","name","class","placeholder"]),s.unref(t).attrs.labelRight?(s.openBlock(),s.createElementBlock("span",Or,s.toDisplayString(s.unref(t).attrs.labelRight),1)):s.createCommentVNode("",!0)],64)}}}),Br=s.defineComponent({__name:"PrimeChips",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{var a,m,h;const l=s.resolveComponent("Chips");return s.openBlock(),s.createBlock(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=g=>s.unref(t)._value=g),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),"allow-duplicate":(a=s.unref(t).attrs.allowDuplicate)!=null?a:!0,"add-on-blur":(m=s.unref(t).attrs.addOnBlur)!=null?m:!1,max:(h=s.unref(t).attrs.max)!=null?h:void 0,onAdd:r,onRemove:r},null,8,["modelValue","id","name","class","allow-duplicate","add-on-blur","max"])}}}),Ar=s.defineComponent({__name:"PrimeColorPicker",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{const l=s.resolveComponent("ColorPicker");return s.openBlock(),s.createBlock(l,{id:s.unref(t).id,modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=a=>s.unref(t)._value=a),name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),inline:!1,"default-color":s.unref(t).attrs.defaultColor,onChange:r},null,8,["id","modelValue","name","class","default-color"])}}}),jr=s.defineComponent({__name:"PrimeDropdown",props:{context:Object},setup(e){const t=e.context;function r(o){t==null||t.handlers.blur(o.value)}function i(o){t==null||t.node.input(o.value)}return(o,l)=>{var m,h,g,p,k,_,C,c,u,d;const a=s.resolveComponent("Dropdown");return s.openBlock(),s.createBlock(a,{id:s.unref(t).id,modelValue:s.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=b=>s.unref(t)._value=b),name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),options:(h=(m=s.unref(t))==null?void 0:m.attrs)==null?void 0:h.options,"option-label":(k=(p=(g=s.unref(t))==null?void 0:g.attrs)==null?void 0:p.optionLabel)!=null?k:"label","option-value":(c=(C=(_=s.unref(t))==null?void 0:_.attrs)==null?void 0:C.optionValue)!=null?c:"value",placeholder:s.unref(t).attrs.placeholder,filter:(u=s.unref(t).attrs.filter)!=null?u:!1,"show-clear":(d=s.unref(t).attrs.showClear)!=null?d:!1,onChange:i,onBlur:r},null,8,["id","modelValue","name","class","options","option-label","option-value","placeholder","filter","show-clear"])}}}),xr=s.defineComponent({__name:"PrimeEditor",props:{context:Object},setup(e){const t=e.context;function r(o){t==null||t.node.input(o.htmlValue)}function i(o){o.range===null&&(t==null||t.handlers.blur(o.htmlValue))}return(o,l)=>{const a=s.resolveComponent("Editor");return s.openBlock(),s.createBlock(a,{modelValue:s.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=m=>s.unref(t)._value=m),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),placeholder:s.unref(t).attrs.placeholder,onTextChange:r,onSelectionChange:i},null,8,["modelValue","id","name","class","placeholder"])}}}),Rr=s.defineComponent({__name:"PrimeInputMask",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o,l;t==null||t.node.input((o=n.context)==null?void 0:o._value),t==null||t.handlers.blur((l=n.context)==null?void 0:l._value)}return(i,o)=>{var a,m,h,g;const l=s.resolveComponent("InputMask");return s.openBlock(),s.createBlock(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=p=>s.unref(t)._value=p),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),placeholder:s.unref(t).attrs.placeholder,mask:(a=s.unref(t).attrs.mask)!=null?a:void 0,"slot-char":(m=s.unref(t).attrs.slotChar)!=null?m:"_","auto-clear":(h=s.unref(t).attrs.autoClear)!=null?h:!0,unmask:(g=s.unref(t).attrs.unmask)!=null?g:!1,onBlur:r},null,8,["modelValue","id","name","class","placeholder","mask","slot-char","auto-clear","unmask"])}}}),Dr=s.defineComponent({__name:"PrimeInputNumber",props:{context:Object},setup(e){const t=e.context;function r(o){t==null||t.handlers.blur(o.value)}function i(o){t==null||t.node.input(o.value)}return(o,l)=>{var m,h,g,p,k,_,C,c,u,d,b;const a=s.resolveComponent("InputNumber");return s.openBlock(),s.createBlock(a,{modelValue:s.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=S=>s.unref(t)._value=S),id:s.unref(t).id,name:s.unref(t).name,placeholder:s.unref(t).attrs.placeholder,class:s.normalizeClass(s.unref(t).attrs.class),"use-grouping":(m=s.unref(t).attrs.useGrouping)!=null?m:!0,"min-fraction-digits":(h=s.unref(t).attrs.minFractionDigits)!=null?h:void 0,"max-fraction-digits":(g=s.unref(t).attrs.maxFractionDigits)!=null?g:void 0,locale:(p=s.unref(t).attrs.locale)!=null?p:void 0,mode:(k=s.unref(t).attrs.mode)!=null?k:void 0,currency:(_=s.unref(t).attrs.currency)!=null?_:void 0,prefix:(C=s.unref(t).attrs.prefix)!=null?C:void 0,suffix:(c=s.unref(t).attrs.suffix)!=null?c:void 0,"show-buttons":(u=s.unref(t).attrs.showButtons)!=null?u:void 0,"button-layout":(d=s.unref(t).attrs.buttonLayout)!=null?d:"stacked",step:(b=s.unref(t).attrs.step)!=null?b:void 0,onInput:i,onBlur:r},null,8,["modelValue","id","name","placeholder","class","use-grouping","min-fraction-digits","max-fraction-digits","locale","mode","currency","prefix","suffix","show-buttons","button-layout","step"])}}}),Tr={key:0,class:"formkit-prime-left"},Lr={key:1,class:"formkit-prime-right"},Mr=s.defineComponent({__name:"PrimeInputSwitch",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{var a,m;const l=s.resolveComponent("InputSwitch");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.unref(t).attrs.labelLeft?(s.openBlock(),s.createElementBlock("span",Tr,s.toDisplayString(s.unref(t).attrs.labelLeft),1)):s.createCommentVNode("",!0),s.createVNode(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=h=>s.unref(t)._value=h),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),"true-value":(a=s.unref(t).attrs.trueValue)!=null?a:void 0,"false-value":(m=s.unref(t).attrs.falseValue)!=null?m:void 0,onInput:r},null,8,["modelValue","id","name","class","true-value","false-value"]),s.unref(t).attrs.labelRight?(s.openBlock(),s.createElementBlock("span",Lr,s.toDisplayString(s.unref(t).attrs.labelRight),1)):s.createCommentVNode("",!0)],64)}}}),zr=s.defineComponent({__name:"PrimeInputText",props:{context:Object},setup(e){const t=e.context,r=()=>(t==null?void 0:t.iconLeft)&&(t==null?void 0:t.iconLeft.length)>0,i=()=>(t==null?void 0:t.iconRight)&&(t==null?void 0:t.iconRight.length)>0,o=()=>{let m="";return r()&&(m=`${m}p-input-icon-left `),i()&&(m=`${m}p-input-icon-right `),m};function l(m){t==null||t.handlers.blur(m.target.value)}function a(m){t==null||t.node.input(m.target.value)}return(m,h)=>{const g=s.resolveComponent("InputText");return s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(o())},[r()?(s.openBlock(),s.createElementBlock("i",{key:0,class:s.normalizeClass(s.unref(t).iconLeft)},null,2)):s.createCommentVNode("",!0),s.createVNode(g,{modelValue:s.unref(t)._value,"onUpdate:modelValue":h[0]||(h[0]=p=>s.unref(t)._value=p),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),placeholder:s.unref(t).attrs.placeholder,onInput:a,onBlur:l},null,8,["modelValue","id","name","class","placeholder"]),i?(s.openBlock(),s.createElementBlock("i",{key:1,class:s.normalizeClass(s.unref(t).iconRight)},null,2)):s.createCommentVNode("",!0)],2)}}}),Fr=s.defineComponent({__name:"PrimeInputTextArea",props:{context:Object},setup(e){const t=e.context;function r(o){t==null||t.handlers.blur(o.target.value)}function i(o){t==null||t.node.input(o.target.value)}return(o,l)=>{var m;const a=s.resolveComponent("Textarea");return s.openBlock(),s.createBlock(a,{modelValue:s.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=h=>s.unref(t)._value=h),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),placeholder:s.unref(t).attrs.placeholder,rows:(m=s.unref(t).rows)!=null?m:3,onInput:i,onBlur:r},null,8,["modelValue","id","name","class","placeholder","rows"])}}}),vr=s.defineComponent({__name:"PrimeKnob",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i),t==null||t.handlers.blur(i)}return(i,o)=>{var a,m,h,g,p,k,_,C,c,u;const l=s.resolveComponent("Knob");return s.openBlock(),s.createBlock(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=d=>s.unref(t)._value=d),id:s.unref(t).id,name:s.unref(t).name,min:(a=s.unref(t).attrs.min)!=null?a:0,max:(m=s.unref(t).attrs.max)!=null?m:100,step:(h=s.unref(t).attrs.step)!=null?h:void 0,size:(g=s.unref(t).attrs.max)!=null?g:100,"stroke-width":(p=s.unref(t).attrs.strokeWidth)!=null?p:14,"show-value":(k=s.unref(t).attrs.showValue)!=null?k:!0,"value-color":(_=s.unref(t).attrs.valueColor)!=null?_:void 0,"range-color":(C=s.unref(t).attrs.rangeColor)!=null?C:void 0,"text-color":(c=s.unref(t).attrs.textColor)!=null?c:void 0,"value-template":(u=s.unref(t).attrs.valueTemplate)!=null?u:void 0,onChange:r},null,8,["modelValue","id","name","min","max","step","size","stroke-width","show-value","value-color","range-color","text-color","value-template"])}}}),Wr=s.defineComponent({__name:"PrimeMultiSelect",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{var a,m,h,g,p,k,_,C,c;const l=s.resolveComponent("MultiSelect");return s.openBlock(),s.createBlock(l,{id:s.unref(t).id,modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=u=>s.unref(t)._value=u),name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),options:(m=(a=s.unref(t))==null?void 0:a.attrs)==null?void 0:m.options,"option-label":(p=(g=(h=s.unref(t))==null?void 0:h.attrs)==null?void 0:g.optionLabel)!=null?p:"label","option-value":(C=(_=(k=s.unref(t))==null?void 0:k.attrs)==null?void 0:_.optionValue)!=null?C:"value",placeholder:s.unref(t).attrs.placeholder,filter:(c=s.unref(t).attrs.filter)!=null?c:!1,onChange:r},null,8,["id","modelValue","name","class","options","option-label","option-value","placeholder","filter"])}}}),Ur=s.defineComponent({__name:"PrimeListbox",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{var a,m,h,g,p,k,_,C,c,u;const l=s.resolveComponent("Listbox");return s.openBlock(),s.createBlock(l,{id:s.unref(t).id,modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=d=>s.unref(t)._value=d),name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),style:s.normalizeStyle(s.unref(t).attrs.style),"list-style":s.unref(t).attrs.listStyle,options:(m=(a=s.unref(t))==null?void 0:a.attrs)==null?void 0:m.options,"option-label":(p=(g=(h=s.unref(t))==null?void 0:h.attrs)==null?void 0:g.optionLabel)!=null?p:"label","option-value":(C=(_=(k=s.unref(t))==null?void 0:k.attrs)==null?void 0:_.optionValue)!=null?C:"value","filter-placeholder":s.unref(t).attrs.filterPlaceholder,filter:(c=s.unref(t).attrs.filter)!=null?c:!1,multiple:(u=s.unref(t).attrs.multiple)!=null?u:!1,onChange:r},null,8,["id","modelValue","name","class","style","list-style","options","option-label","option-value","filter-placeholder","filter","multiple"])}}}),Kr=s.defineComponent({__name:"PrimePassword",props:{context:Object},setup(e){const t=e.context;function r(o){t==null||t.handlers.blur(o.target.value)}function i(o){t==null||t.node.input(o.target.value)}return(o,l)=>{var m,h,g,p;const a=s.resolveComponent("Password");return s.openBlock(),s.createBlock(a,{modelValue:s.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=k=>s.unref(t)._value=k),id:s.unref(t).id,name:s.unref(t).name,class:s.normalizeClass(s.unref(t).attrs.class),placeholder:s.unref(t).attrs.placeholder,feedback:(h=(m=s.unref(t))==null?void 0:m.feedback)!=null?h:!0,"toggle-mask":(p=(g=s.unref(t))==null?void 0:g.toggleMask)!=null?p:!1,onInput:i,onBlur:r},null,8,["modelValue","id","name","class","placeholder","feedback","toggle-mask"])}}}),qr=s.defineComponent({__name:"PrimeRating",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{var a,m,h,g;const l=s.resolveComponent("Rating");return s.openBlock(),s.createBlock(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=p=>s.unref(t)._value=p),id:s.unref(t).id,name:s.unref(t).name,disabled:(a=s.unref(t).attrs.disabled)!=null?a:!1,readonly:(m=s.unref(t).attrs.readonly)!=null?m:!1,stars:(h=s.unref(t).attrs.stars)!=null?h:5,cancel:(g=s.unref(t).attrs.cancel)!=null?g:!1,onChange:r},null,8,["modelValue","id","name","disabled","readonly","stars","cancel"])}}}),Nr=s.defineComponent({__name:"PrimeSlider",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i),t==null||t.handlers.blur(i)}return(i,o)=>{var a,m,h,g;const l=s.resolveComponent("Slider");return s.openBlock(),s.createBlock(l,{modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=p=>s.unref(t)._value=p),id:s.unref(t).id,name:s.unref(t).name,min:(a=s.unref(t).attrs.min)!=null?a:0,max:(m=s.unref(t).attrs.max)!=null?m:100,step:(h=s.unref(t).attrs.step)!=null?h:void 0,range:(g=s.unref(t).attrs.range)!=null?g:!1,onChange:r},null,8,["modelValue","id","name","min","max","step","range"])}}}),Hr=s.defineComponent({__name:"PrimeToggleButton",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var o;t==null||t.node.input((o=n.context)==null?void 0:o._value)}return(i,o)=>{var a,m,h,g;const l=s.resolveComponent("ToggleButton");return s.openBlock(),s.createBlock(l,{id:s.unref(t).id,modelValue:s.unref(t)._value,"onUpdate:modelValue":o[0]||(o[0]=p=>s.unref(t)._value=p),"input-class":s.unref(t).attrs.inputClass,"input-style":s.unref(t).attrs.inputStyle,"on-label":(a=s.unref(t).attrs.onLabel)!=null?a:"Yes","off-label":(m=s.unref(t).attrs.offLabel)!=null?m:"No","on-icon":(h=s.unref(t).attrs.onIcon)!=null?h:"pi pi-check","off-icon":(g=s.unref(t).attrs.offIcon)!=null?g:"pi pi-times",onChange:r},null,8,["id","modelValue","input-class","input-style","on-label","off-label","on-icon","off-icon"])}}}),pt=R(zr,{props:["iconRight","iconLeft"]}),dt=R(Dr,{props:["iconRight","iconLeft"]}),mt=R(Rr,{props:[]}),yt=R(Kr,{props:["feedback","toggleMask"]}),ht=R(Fr,{props:["rows"]}),gt=R(Er,{props:[]}),_t=R(Mr,{props:[]}),bt=R(xr,{props:[]}),$t=R(jr,{props:[]}),Ct=R(Wr,{props:[]}),kt=R(Ur,{props:[]}),wt=R(Ir,{props:[]}),St=R(Nr,{props:[]}),Vt=R(qr,{props:[]}),It=R(Br,{props:[]}),Pt=R(vr,{props:[]}),Ot=R(Ar,{props:[]}),Et=R(Hr,{props:[]}),Zr={primeInputText:pt,primeInputNumber:dt,primeInputMask:mt,primePassword:yt,primeCheckBox:gt,primeInputSwitch:_t,primeInputTextArea:ht,primeEditor:bt,primeDropdown:$t,primeMultiSelect:Ct,primeCalendar:wt,primeSlider:St,primeChips:It,primeKnob:Pt,primeRating:Vt,primeColorPicker:Ot,primeToggleButton:Et,primeListbox:kt};E.primeCalendarDefinition=wt,E.primeCheckBoxDefinition=gt,E.primeChipsDefinition=It,E.primeColorPickerDefinition=Ot,E.primeDropdownDefinition=$t,E.primeEditorDefinition=bt,E.primeInputMaskDefinition=mt,E.primeInputNumberDefinition=dt,E.primeInputSwitchDefinition=_t,E.primeInputTextAreaDefinition=ht,E.primeInputTextDefinition=pt,E.primeInputs=Zr,E.primeKnobDefinition=Pt,E.primeListboxDefinition=kt,E.primeMultiSelectDefinition=Ct,E.primePasswordDefinition=yt,E.primeRatingDefinition=Vt,E.primeSliderDefinition=St,E.primeToggleButtonDefinition=Et,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(L,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(L=typeof globalThis<"u"?globalThis:L||self,r(L["formkit-primevue"]={},L.Vue))})(this,function(L,r){"use strict";const jn=["__key","__init","__shim","__original","__index","__prevKey"];function De(){return Math.random().toString(36).substring(2,15)}function Tn(e,i){const n=e instanceof Set?e:new Set(e);return i&&i.forEach(t=>n.add(t)),[...n]}function R(e,i){return Object.prototype.hasOwnProperty.call(e,i)}function ce(e,i,n=!0,t=["__key"]){if(e===i)return!0;if(typeof i=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||i===null||Object.keys(e).length!==Object.keys(i).length)return!1;for(const l of t)if((l in e||l in i)&&e[l]!==i[l])return!1;for(const l in e)if(!(l in i)||e[l]!==i[l]&&!n||n&&!ce(e[l],i[l],n,t))return!1;return!0}return!1}function pe(e){return Object.prototype.toString.call(e)==="[object Object]"}function de(e){return pe(e)||Array.isArray(e)}function v(e){if(pe(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const i=e.constructor;if(i===void 0)return!0;const n=i.prototype;return!(pe(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}function me(e,i,n=!1,t=!1){if(i===null)return null;const l={};if(typeof i=="string")return i;for(const a in e)if(R(i,a)&&(i[a]!==void 0||!t)){if(n&&Array.isArray(e[a])&&Array.isArray(i[a])){l[a]=e[a].concat(i[a]);continue}if(i[a]===void 0)continue;v(e[a])&&v(i[a])?l[a]=me(e[a],i[a],n,t):l[a]=i[a]}else l[a]=e[a];for(const a in i)!R(l,a)&&i[a]!==void 0&&(l[a]=i[a]);return l}function Mn(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const i=e[0];for(let n=1;n<e.length;n++)if(e[n]===i&&(n===1||e[n-1]!=="\\")&&n!==e.length-1)return!1;return!0}function zn(e){if(!e.length)return"";let i="",n="";for(let t=0;t<e.length;t++){const l=e.charAt(t);(l!=="\\"||n==="\\")&&(i+=l),n=l}return i}function Y(...e){return e.reduce((i,n)=>{const{value:t,name:l,modelValue:a,config:o,plugins:u,...b}=n;return Object.assign(i,b)},{})}function Fn(e){const i=[];let n="",t=0,l="",a="";for(let o=0;o<e.length;o++){const u=e.charAt(o);u===l&&a!=="\\"?l="":(u==="'"||u==='"')&&!l&&a!=="\\"?l=u:u==="("&&!l?t++:u===")"&&!l&&t--,u===","&&!l&&t===0?(i.push(n),n=""):(u!==" "||l)&&(n+=u),a=u}return n&&i.push(n),i}function Re(e,i){const n={},t=i.filter(a=>a instanceof RegExp),l=new Set(i);for(const a in e)!l.has(a)&&!t.some(o=>o.test(a))&&(n[a]=e[a]);return n}function je(e,i){const n={},t=i.filter(l=>l instanceof RegExp);return i.forEach(l=>{l instanceof RegExp||(n[l]=e[l])}),Object.keys(e).forEach(l=>{t.some(a=>a.test(l))&&(n[l]=e[l])}),n}function ee(e){return e.replace(/-([a-z0-9])/gi,(i,n)=>n.toUpperCase())}function Te(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,n,t)=>n+"-"+t.toLowerCase()).replace(" ","-").toLowerCase()}function ne(e,i=jn){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let n;Array.isArray(e)?n=e.map(t=>typeof t=="object"?ne(t,i):t):n=Object.keys(e).reduce((t,l)=>(t[l]=typeof e[l]=="object"?ne(e[l],i):e[l],t),{});for(const t of i)t in e&&Object.defineProperty(n,t,{enumerable:!1,value:e[t]});return n}function q(e){return typeof e=="object"?ne(e):e}function Un(e,i){if(!e||typeof e!="object")return null;const n=i.split(".");let t=e;for(const l in n){const a=n[l];if(R(t,a)&&(t=t[a]),+l===n.length-1)return t;if(!t||typeof t!="object")return null}return null}function Me(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function Q(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function ze(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function be(){const e=[];let i=0;const n=l=>e.push(l),t=l=>{const a=e[i];return typeof a=="function"?a(l,o=>(i++,t(o===void 0?l:o))):(i=0,l)};return n.dispatch=t,n.unshift=l=>e.unshift(l),n.remove=l=>{const a=e.indexOf(l);a>-1&&e.splice(a,1)},n}function Fe(){const e=new Map,i=new Map;let n;const t=(l,a)=>{if(n){n.set(a.name,[l,a]);return}e.has(a.name)&&e.get(a.name).forEach(o=>{(a.origin===l||o.modifiers.includes("deep"))&&o.listener(a)}),a.bubble&&l.bubble(a)};return t.on=(l,a)=>{const[o,...u]=l.split("."),b=a.receipt||De(),m={modifiers:u,event:o,listener:a,receipt:b};return e.has(o)?e.get(o).push(m):e.set(o,[m]),i.has(b)?i.get(b).push(o):i.set(b,[o]),b},t.off=l=>{var a;i.has(l)&&((a=i.get(l))===null||a===void 0||a.forEach(o=>{const u=e.get(o);Array.isArray(u)&&e.set(o,u.filter(b=>b.receipt!==l))}),i.delete(l))},t.pause=l=>{n||(n=new Map),l&&l.walk(a=>a._e.pause())},t.play=l=>{if(!n)return;const a=n;n=void 0,a.forEach(([o,u])=>t(o,u)),l&&l.walk(o=>o._e.play())},t}function Wn(e,i,n,t,l=!0){return i._e(e,{payload:t,name:n,bubble:l,origin:e}),e}function Kn(e,i,n){return le(e.parent)&&e.parent._e(e.parent,n),e}function Nn(e,i,n,t){return i._e.on(n,t)}function qn(e,i,n){return i._e.off(n),e}const ye=be();ye((e,i)=>(e.message||(e.message=String(`E${e.code}`)),i(e)));const he=be();he((e,i)=>{e.message||(e.message=String(`W${e.code}`));const n=i(e);return console&&typeof console.warn=="function"&&console.warn(n.message),n});function te(e,i={}){he.dispatch({code:e,data:i})}function T(e,i={}){throw Error(ye.dispatch({code:e,data:i}).message)}function re(e,i){const n={blocking:!1,key:De(),meta:{},type:"state",visible:!0,...e};return i&&n.value&&n.meta.localize!==!1&&(n.value=i.t(n),n.meta.locale=i.config.locale),n}const Ue={apply:Gn,set:Zn,remove:We,filter:Jn,reduce:Qn,release:et,touch:Yn};function Hn(e=!1){const i={};let n,t=e,l=[];const a=new Map;let o;const u=new Proxy(i,{get(...b){const[m,y]=b;return y==="buffer"?t:y==="_b"?l:y==="_m"?a:y==="_r"?o:R(Ue,y)?Ue[y].bind(null,i,u,n):Reflect.get(...b)},set(b,m,y){return m==="_n"?(n=y,o==="__n"&&Ke(n,u),!0):m==="_b"?(l=y,!0):m==="buffer"?(t=y,!0):m==="_r"?(o=y,!0):(T(101,n),!1)}});return u}function Zn(e,i,n,t){if(i.buffer)return i._b.push([[t]]),i;if(e[t.key]!==t){if(typeof t.value=="string"&&t.meta.localize!==!1){const a=t.value;t.value=n.t(t),t.value!==a&&(t.meta.locale=n.props.locale)}const l=`message-${R(e,t.key)?"updated":"added"}`;e[t.key]=Object.freeze(n.hook.message.dispatch(t)),n.emit(l,t)}return i}function Yn(e,i){for(const n in e){const t={...e[n]};i.set(t)}}function We(e,i,n,t){if(R(e,t)){const l=e[t];delete e[t],n.emit("message-removed",l)}return i.buffer===!0&&(i._b=i._b.filter(l=>(l[0]=l[0].filter(a=>a.key!==t),l[1]||l[0].length))),i}function Jn(e,i,n,t,l){for(const a in e){const o=e[a];(!l||o.type===l)&&!t(o)&&We(e,i,n,a)}}function Qn(e,i,n,t,l){for(const a in e){const o=e[a];l=t(l,o)}return l}function Gn(e,i,n,t,l){if(Array.isArray(t)){if(i.buffer){i._b.push([t,l]);return}const a=new Set(t.map(o=>(i.set(o),o.key)));typeof l=="string"?i.filter(o=>o.type!==l||a.has(o.key)):typeof l=="function"&&i.filter(o=>!l(o)||a.has(o.key))}else for(const a in t){const o=n.at(a);o?o.store.apply(t[a],l):vn(n,i,a,t[a],l)}}function Xn(e,...i){const n=`${e.name}-set`,t=l=>re({key:ze(l),type:"error",value:l,meta:{source:n,autoClear:!0}});return i.filter(l=>!!l).map(l=>{if(typeof l=="string"&&(l=[l]),Array.isArray(l))return l.map(a=>t(a));{const a={};for(const o in l)Array.isArray(l[o])?a[o]=l[o].map(u=>t(u)):a[o]=[t(l[o])];return a}})}function vn(e,i,n,t,l){var a;const o=i._m;o.has(n)||o.set(n,[]),i._r||(i._r=Ke(e,i)),(a=o.get(n))===null||a===void 0||a.push([t,l])}function Ke(e,i){return e.on("child.deep",({payload:n})=>{i._m.forEach((t,l)=>{e.at(l)===n&&(t.forEach(([a,o])=>{n.store.apply(a,o)}),i._m.delete(l))}),i._m.size===0&&i._r&&(e.off(i._r),i._r=void 0)})}function et(e,i){i.buffer=!1,i._b.forEach(([n,t])=>i.apply(n,t)),i._b=[]}function nt(){const e={};let i;return{count:(...n)=>tt(i,e,...n),init(n){i=n,n.on("message-added.deep",qe(e,1)),n.on("message-removed.deep",qe(e,-1))},merge:n=>He(i,e,n),settled(n){return R(e,n)?e[n].promise:Promise.resolve()},unmerge:n=>He(i,e,n,!0),value(n){return R(e,n)?e[n].count:0}}}function tt(e,i,n,t,l=0){if(t=rt(t||n),!R(i,n)){const a={condition:t,count:0,name:n,node:e,promise:Promise.resolve(),resolve:()=>{}};i[n]=a,l=e.store.reduce((o,u)=>o+a.condition(u)*1,l),e.each(o=>{o.ledger.count(a.name,a.condition),l+=o.ledger.value(a.name)})}return Ne(i[n],l).promise}function rt(e){return typeof e=="function"?e:i=>i.type===e}function Ne(e,i){const n=e.count,t=e.count+i;return e.count=t,n===0&&t!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(l=>e.resolve=l)):n!==0&&t===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function qe(e,i){return n=>{for(const t in e){const l=e[t];l.condition(n.payload)&&Ne(l,i)}}}function He(e,i,n,t=!1){for(const l in i){const a=i[l].condition;t||n.ledger.count(l,a);const o=n.ledger.value(l)*(t?-1:1);if(!!e)do e.ledger.count(l,a,o),e=e.parent;while(e)}}const _e=new Map,ie=new Map,ge=Fe(),it=[];function lt(e){e.props.id&&(_e.set(e.props.id,e),ie.set(e,e.props.id),ge(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function at(e){if(ie.has(e)){const i=ie.get(e);ie.delete(e),_e.delete(i),ge(e,{payload:null,name:i,bubble:!1,origin:e})}}function Ze(e){return _e.get(e)}function ot(e,i){it.push(ge.on(e,i))}function Ye(e,i,n){let t=!0;return i in e.config._t?t=!1:e.emit(`config:${i}`,n,!1),i in e.props||(e.emit("prop",{prop:i,value:n}),e.emit(`prop:${i}`,n)),t}function st(e){const i=document.getElementById(e);if(i instanceof HTMLFormElement){const n=new Event("submit",{cancelable:!0,bubbles:!0});i.dispatchEvent(n);return}te(151,e)}function ft(e){const i=n=>{for(const t in n.store){const l=n.store[t];l.type==="error"||l.type==="ui"&&t==="incomplete"?n.store.remove(t):l.type==="state"&&n.store.set({...l,value:!1})}};i(e),e.walk(i)}function ut(e,i){const n=typeof e=="string"?Ze(e):e;if(n){const t=a=>q(a.props.initial)||(a.type==="group"?{}:a.type==="list"?[]:void 0);n._e.pause(n),n.input(q(i)||t(n),!1),n.walk(a=>a.input(t(a),!1));const l=t(n);return n.input(typeof l=="object"?q(i)||Q(l):l,!1),n._e.play(n),ft(n),n.emit("reset",n),n}te(152,e)}const ct={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Te(e)}`]:!0})},Je=Symbol("index"),ke=Symbol("removed"),Ce=Symbol("moved"),Qe=Symbol("inserted");function pt(e){return e.type==="list"&&Array.isArray(e._value)}function le(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const ae=(e,i,n)=>{T(102,[e,n])},dt={_c:V(Dt,ae,!1),add:V(It),addProps:V(Vt),address:V(jt,ae,!1),at:V(Tt),bubble:V(Kn),clearErrors:V(qt),calm:V($t),config:V(!1),define:V(St),disturb:V(Ct),destroy:V(wt),hydrate:V(kt),index:V(At,Bt,!1),input:V(Xe),each:V(Lt),emit:V(Wn),find:V(zt),on:V(Nn),off:V(qn),parent:V(!1,xt),plugins:V(!1),remove:V(Ot),root:V(Ut,ae,!1),reset:V(Nt),resetConfig:V(Et),setErrors:V(nn),submit:V(Kt),t:V(Wt),use:V($e),name:V(Rt,!1,!1),walk:V(Pt)};function mt(){return new Map(Object.entries(dt))}function V(e,i,n=!0){return{get:e?(t,l)=>n?(...a)=>e(t,l,...a):e(t,l):!1,set:i!==void 0?i:ae.bind(null)}}function bt(){const e=new Map;return new Proxy(e,{get(i,n){return e.has(n)||e.set(n,be()),e.get(n)}})}let yt=0,ht=0;function _t(e){var i,n;return((i=e.parent)===null||i===void 0?void 0:i.type)==="list"?Je:e.name||`${((n=e.props)===null||n===void 0?void 0:n.type)||"input"}_${++yt}`}function Ge(e){return e.type==="group"?Q(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?Q(Array.isArray(e.value)?e.value:[]):e.value}function Xe(e,i,n,t=!0){return i._value=gt(e,e.hook.input.dispatch(n)),e.emit("input",i._value),i.isSettled&&e.disturb(),t?(i._tmo&&clearTimeout(i._tmo),i._tmo=setTimeout(oe,e.props.delay,e,i)):oe(e,i),i.settled}function gt(e,i){switch(e.type){case"input":break;case"group":(!i||typeof i!="object")&&T(107,[e,i]);break;case"list":Array.isArray(i)||T(108,[e,i]);break}return i}function oe(e,i,n=!0,t=!0){i._value=i.value=e.hook.commit.dispatch(i._value),e.type!=="input"&&t&&e.hydrate(),e.emit("commit",i.value),n&&e.calm()}function ve(e,{name:i,value:n,from:t}){if(!Object.isFrozen(e._value)){if(pt(e)){const l=n===ke?[]:n===Ce&&typeof t=="number"?e._value.splice(t,1):[n];e._value.splice(i,n===Ce||t===Qe?0:1,...l);return}n!==ke?e._value[i]=n:delete e._value[i]}}function kt(e,i){const n=i._value;return i.children.forEach(t=>{if(typeof n=="object")if(t.name in n){const l=t.type!=="input"||n[t.name]&&typeof n[t.name]=="object"?Q(n[t.name]):n[t.name];t.input(l,!1)}else(e.type!=="list"||typeof t.name=="number")&&ve(i,{name:t.name,value:t.value}),n.__init||(t.type==="group"?t.input({},!1):t.type==="list"?t.input([],!1):t.input(void 0,!1))}),e}function Ct(e,i){var n;return i._d<=0&&(i.isSettled=!1,e.emit("settled",!1,!1),i.settled=new Promise(t=>{i._resolve=t}),e.parent&&((n=e.parent)===null||n===void 0||n.disturb())),i._d++,e}function $t(e,i,n){var t;if(n!==void 0&&e.type!=="input")return ve(i,n),oe(e,i,!0,!1);i._d>0&&i._d--,i._d===0&&(i.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((t=e.parent)===null||t===void 0||t.calm({name:e.name,value:i.value})),i._resolve&&i._resolve(i.value))}function wt(e,i){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),at(e),i._value=i.value=void 0,e.emit("destroyed",e)}function St(e,i,n){i.type=n.type,i.props.definition=ne(n),i.value=i._value=Ge({type:e.type,value:i.value}),n.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),i.props.type=n.forceTypeProp),n.family&&(i.props.family=n.family),n.features&&n.features.forEach(t=>t(e)),n.props&&e.addProps(n.props),e.emit("defined",n)}function Vt(e,i,n){var t;if(e.props.attrs){const l={...e.props.attrs};e.props._emit=!1;for(const o in l){const u=ee(o);n.includes(u)&&(e.props[u]=l[o],delete l[o])}const a=q(i._value);e.props.initial=e.type!=="input"?Q(a):a,e.props._emit=!0,e.props.attrs=l,e.props.definition&&(e.props.definition.props=[...((t=e.props.definition)===null||t===void 0?void 0:t.props)||[],...n])}return e.emit("added-props",n),e}function It(e,i,n,t){if(e.type==="input"&&T(100,e),n.parent&&n.parent!==e&&n.parent.remove(n),i.children.includes(n)||(t!==void 0&&e.type==="list"?(i.children.splice(t,0,n),Array.isArray(e.value)&&e.value.length<i.children.length&&e.disturb().calm({name:t,value:n.value,from:Qe})):i.children.push(n),n.isSettled||e.disturb()),n.parent!==e){if(n.parent=e,n.parent!==e)return e.remove(n),n.parent.add(n),e}else n.use(e.plugins);return oe(e,i,!1),e.ledger.merge(n),e.emit("child",n),e}function xt(e,i,n,t){return le(t)?(e.parent&&e.parent!==t&&e.parent.remove(e),i.parent=t,e.resetConfig(),t.children.includes(e)?e.use(t.plugins):t.add(e),!0):t===null?(i.parent=null,!0):!1}function Ot(e,i,n){const t=i.children.indexOf(n);if(t!==-1){n.isSettled&&e.disturb(),i.children.splice(t,1);let l=Me(n.props.preserve),a=n.parent;for(;l===void 0&&a;)l=Me(a.props.preserve),a=a.parent;l?e.calm():e.calm({name:e.type==="list"?t:n.name,value:ke}),n.parent=null,n.config._rmn=n}return e.ledger.unmerge(n),e}function Lt(e,i,n){i.children.forEach(t=>n(t))}function Pt(e,i,n,t=!1){i.children.forEach(l=>{(n(l)!==!1||!t)&&l.walk(n)})}function Et(e,i){const n=e.parent||void 0;i.config=en(e.config._t,n),e.walk(t=>t.resetConfig())}function $e(e,i,n,t=!0,l=!0){return Array.isArray(n)||n instanceof Set?(n.forEach(a=>$e(e,i,a)),e):(i.plugins.has(n)||(l&&typeof n.library=="function"&&n.library(e),t&&n(e)!==!1&&(i.plugins.add(n),e.children.forEach(a=>a.use(n)))),e)}function Bt(e,i,n,t){if(le(e.parent)){const l=e.parent.children,a=t>=l.length?l.length-1:t<0?0:t,o=l.indexOf(e);return o===-1?!1:(l.splice(o,1),l.splice(a,0,e),e.parent.children=l,e.parent.type==="list"&&e.parent.disturb().calm({name:a,value:Ce,from:o}),!0)}return!1}function At(e){if(e.parent){const i=[...e.parent.children].indexOf(e);return i===-1?e.parent.children.length:i}return-1}function Dt(e,i){return i}function Rt(e,i){var n;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?e.index:i.name!==Je?i.name:e.index}function jt(e,i){return i.parent?i.parent.address.concat([e.name]):[e.name]}function Tt(e,i,n){const t=typeof n=="string"?n.split(e.config.delimiter):n;if(!t.length)return;const l=t[0];let a=e.parent;for(a||(String(t[0])===String(e.name)&&t.shift(),a=e),l==="$parent"&&t.shift();a&&t.length;){const o=t.shift();switch(o){case"$root":a=e.root;break;case"$parent":a=a.parent;break;case"$self":a=e;break;default:a=a.children.find(u=>String(u.name)===String(o))||Mt(a,o)}}return a||void 0}function Mt(e,i){const n=String(i).match(/^(find)\((.*)\)$/);if(n){const[,t,l]=n,a=l.split(",").map(o=>o.trim());switch(t){case"find":return e.find(a[0],a[1]);default:return}}}function zt(e,i,n,t){return Ft(e,n,t)}function Ft(e,i,n="name"){const t=typeof n=="string"?a=>a[n]==i:n,l=[e];for(;l.length;){const a=l.shift();if(t(a,i))return a;l.push(...a.children)}}function Ut(e){let i=e;for(;i.parent;)i=i.parent;return i}function en(e={},i){let n;return new Proxy(e,{get(...t){const l=t[1];if(l==="_t")return e;const a=Reflect.get(...t);if(a!==void 0)return a;if(i){const o=i.config[l];if(o!==void 0)return o}if(e.rootConfig&&typeof l=="string"){const o=e.rootConfig[l];if(o!==void 0)return o}return l==="delay"&&(n==null?void 0:n.type)==="input"?20:ct[l]},set(...t){const l=t[1],a=t[2];if(l==="_n")return n=a,e.rootConfig&&e.rootConfig._add(n),!0;if(l==="_rmn")return e.rootConfig&&e.rootConfig._rm(n),n=void 0,!0;if(!ce(e[l],a,!1)){const o=Reflect.set(...t);return n&&(n.emit(`config:${l}`,a,!1),Ye(n,l,a),n.walk(u=>Ye(u,l,a),!0)),o}return!0}})}function Wt(e,i,n,t="ui"){const l=typeof n=="string"?{key:n,value:n,type:t}:n,a=e.hook.text.dispatch(l);return e.emit("text",a,!1),a.value}function Kt(e){const i=e.name;do{if(e.props.isForm===!0)break;e.parent||T(106,i),e=e.parent}while(e);e.props.id&&st(e.props.id)}function Nt(e,i,n){return ut(e,n)}function nn(e,i,n,t){const l=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:n,childErrors:t});return Xn(e,a.localErrors,a.childErrors).forEach(o=>{e.store.apply(o,u=>u.meta.source===l)}),e}function qt(e,i,n=!0,t){return nn(e,i,[]),n&&(t=t||`${e.name}-set`,e.walk(l=>{l.store.filter(a=>!(a.type==="error"&&a.meta&&a.meta.source===t))})),e}function Ht(e){return R(e.props,"id")||(e.props.id=`input_${ht++}`),e}function Zt(e){const i={initial:typeof e=="object"?q(e):e};let n,t=!0;return new Proxy(i,{get(...l){const[a,o]=l;if(R(i,o))return Reflect.get(...l);if(n&&typeof o=="string"&&n.config[o]!==void 0)return n.config[o]},set(l,a,o,u){if(a==="_n")return n=o,!0;if(a==="_emit")return t=o,!0;const{prop:b,value:m}=n.hook.prop.dispatch({prop:a,value:o});if(!ce(i[b],m,!1)||typeof m=="object"){const y=Reflect.set(l,b,m,u);return t&&(n.emit("prop",{prop:b,value:m}),typeof b=="string"&&n.emit(`prop:${b}`,m)),y}return!0}})}function Yt(e,i){if(e.props.definition)return e.define(e.props.definition);for(const n of i){if(e.props.definition)return;typeof n.library=="function"&&n.library(e)}}function Jt(e){const i=Ge(e),n=en(e.config||{},e.parent);return{_d:0,_e:Fe(),_resolve:!1,_tmo:!1,_value:i,children:Tn(e.children||[]),config:n,hook:bt(),isCreated:!1,isSettled:!0,ledger:nt(),name:_t(e),parent:e.parent||null,plugins:new Set,props:Zt(i),settled:Promise.resolve(i),store:Hn(!0),traps:mt(),type:e.type||"input",value:i}}function Qt(e,i){var n;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,i.props&&Object.assign(e.props,i.props),e.props._emit=!0,Yt(e,new Set([...i.plugins||[],...e.parent?e.parent.plugins:[]])),i.plugins)for(const t of i.plugins)$e(e,e._c,t,!0,!1);return Ht(e),e.each(t=>e.add(t)),e.parent&&e.parent.add(e,i.index),e.type==="input"&&e.children.length&&T(100,e),Xe(e,e._c,e._value,!1),e.store.release(),!((n=i.props)===null||n===void 0)&&n.id&&lt(e),e.emit("created",e),e.isCreated=!0,e}function Gt(e){const i=e||{},n=Jt(i),t=new Proxy(n,{get(...l){const[,a]=l;if(a==="__FKNode__")return!0;const o=n.traps.get(a);return o&&o.get?o.get(t,n):Reflect.get(...l)},set(...l){const[,a,o]=l,u=n.traps.get(a);return u&&u.set?u.set(t,n,a,o):Reflect.set(...l)}});return Qt(t,i)}function we(e){return typeof e!="string"&&R(e,"$el")}function Se(e){return typeof e!="string"&&R(e,"$cmp")}function G(e){return!e||typeof e=="string"?!1:R(e,"if")&&R(e,"then")}function Xt(e){return typeof e!="string"&&"$formkit"in e}function vt(e){if(typeof e=="string")return{$el:"text",children:e};if(Xt(e)){const{$formkit:i,for:n,if:t,children:l,bind:a,...o}=e;return Object.assign({$cmp:"FormKit",props:{...o,type:i}},t?{if:t}:{},n?{for:n}:{},l?{children:l}:{},a?{bind:a}:{})}return e}function U(e){let i;const n=new Set,t=function(p,d){return typeof p=="function"?p(d):p},l=[{"&&":(c,p,d)=>t(c,d)&&t(p,d),"||":(c,p,d)=>t(c,d)||t(p,d)},{"===":(c,p,d)=>t(c,d)===t(p,d),"!==":(c,p,d)=>t(c,d)!==t(p,d),"==":(c,p,d)=>t(c,d)==t(p,d),"!=":(c,p,d)=>t(c,d)!=t(p,d),">=":(c,p,d)=>t(c,d)>=t(p,d),"<=":(c,p,d)=>t(c,d)<=t(p,d),">":(c,p,d)=>t(c,d)>t(p,d),"<":(c,p,d)=>t(c,d)<t(p,d)},{"+":(c,p,d)=>t(c,d)+t(p,d),"-":(c,p,d)=>t(c,d)-t(p,d)},{"*":(c,p,d)=>t(c,d)*t(p,d),"/":(c,p,d)=>t(c,d)/t(p,d),"%":(c,p,d)=>t(c,d)%t(p,d)}],a=l.reduce((c,p)=>c.concat(Object.keys(p)),[]),o=new Set(a.map(c=>c.charAt(0)));function u(c,p,d,$){const S=c.filter(f=>f.startsWith(p));return S.length?S.find(f=>$.length>=d+f.length&&$.substring(d,d+f.length)===f?f:!1):!1}function b(c,p,d=1){let $=d?p.substring(c+1).trim():p.substring(0,c).trim();if(!$.length)return-1;if(!d){const f=$.split("").reverse(),h=f.findIndex(C=>o.has(C));$=f.slice(h).join("")}const S=$[0];return l.findIndex(f=>{const h=Object.keys(f);return!!u(h,S,0,$)})}function m(c,p){let d="";const $=p.length;let S=0;for(let f=c;f<$;f++){const h=p.charAt(f);if(h==="(")S++;else if(h===")")S--;else if(S===0&&h===" ")continue;if(S===0&&u(a,h,f,p))return[d,f-1];d+=h}return[d,p.length-1]}function y(c,p=0){const d=l[p],$=c.length,S=Object.keys(d);let f=0,h=!1,C=null,w="",O=null,x,A="",I="",E="",B="",M=0;const z=(P,F)=>{P?E+=F:w+=F};for(let P=0;P<$;P++)if(A=I,I=c.charAt(P),(I==="'"||I==='"')&&A!=="\\"&&(f===0&&!h||f&&!B)){f?B=I:h=I,z(f,I);continue}else if(h&&(I!==h||A==="\\")||B&&(I!==B||A==="\\")){z(f,I);continue}else if(h===I){h=!1,z(f,I);continue}else if(B===I){B=!1,z(f,I);continue}else{if(I===" ")continue;if(I==="(")f===0?M=P:E+=I,f++;else if(I===")")if(f--,f===0){const F=typeof w=="string"&&w.startsWith("$")?w:void 0,X=F&&c.charAt(P+1)===".";let K="";X&&([K,P]=m(P+2,c));const Z=C?p:b(M,c,0),N=b(P,c);Z===-1&&N===-1?w=s(E,-1,F,K):C&&(Z>=N||N===-1)&&p===Z?(O=C.bind(null,s(E,-1,F,K)),C=null,w=""):N>Z&&p===N?w=s(E,-1,F,K):w+=`(${E})${X?`.${K}`:""}`,E=""}else E+=I;else if(f===0&&(x=u(S,I,P,c))){P===0&&T(103,[x,c]),P+=x.length-1,P===c.length-1&&T(104,[x,c]),C?w&&(O=C.bind(null,s(w,p)),C=d[x].bind(null,O),w=""):O?(C=d[x].bind(null,s(O,p)),O=null):(C=d[x].bind(null,s(w,p)),w="");continue}else z(f,I)}return w&&C&&(C=C.bind(null,s(w,p))),C=!C&&O?O:C,!C&&w&&(C=(P,F)=>typeof P=="function"?P(F):P,C=C.bind(null,s(w,p))),!C&&!w&&T(105,c),C}function s(c,p,d,$){if(d){const S=s(d,l.length);let f,h=$?U(`$${$}`):!1;if(typeof S=="function"){const C=Fn(String(c)).map(w=>s(w,-1));return w=>{const O=S(w);return typeof O!="function"?(te(150,d),O):(f=O(...C.map(x=>typeof x=="function"?x(w):x)),h&&(h=h.provide(x=>{const A=i(x);return x.reduce((E,B)=>{if(B===$||($==null?void 0:$.startsWith(`${B}(`))){const z=Un(f,B);E[B]=()=>z}else E[B]=A[B];return E},{})})),h?h():f)}}}else if(typeof c=="string"){if(c==="true")return!0;if(c==="false")return!1;if(c==="undefined")return;if(Mn(c))return zn(c.substring(1,c.length-1));if(!isNaN(+c))return Number(c);if(p<l.length-1)return y(c,p+1);if(c.startsWith("$")){const S=c.substring(1);return n.add(S),function(h){return S in h?h[S]():void 0}}return c}return c}const _=y(e.startsWith("$:")?e.substring(2):e),g=Array.from(n);function k(c){return i=c,Object.assign(_.bind(null,c(g)),{provide:k})}return Object.assign(_,{provide:k})}const tn="1.0.0-beta.11",er=W("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}),!0),nr=W("inner","div"),tr=W("wrapper","div"),rr=W("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),ir=W("messages",()=>({$el:"ul",if:"$fns.length($messages)"})),lr=W("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),ar=W("prefix",null),or=W("suffix",null),sr=W("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}}));function rn(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function fr(e,i={}){return typeof e=="string"?rn(i)||typeof i=="string"?i:e:Array.isArray(e)?rn(i)?i:e:me(e,i)}function ur(e){return er(tr(rr("$label"),nr(ar(),e(),or())),sr("$help"),ir(lr("$message.value")))}function W(e,i,n=!1){return(...t)=>{const l=a=>{const o=!i||typeof i=="string"?{$el:i}:i();return(we(o)||Se(o))&&(o.meta||(o.meta={section:e}),t.length&&!o.children&&(o.children=[...t.map(u=>typeof u=="string"?u:u(a))]),we(o)&&(o.attrs={class:`$classes.${e}`,...o.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in a?fr(o,a[e]):o}};return n?cr(l):l}}function cr(e){return i=>[e(i)]}re({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let se;const pr=new Promise(e=>{}),fe=typeof window<"u"&&typeof fetch<"u";se=fe?getComputedStyle(document.documentElement):void 0;const J={},Ve={};function Ie(e,i){return n=>{if(typeof n=="boolean")return;if(n.startsWith("<svg"))return n;if(typeof n!="string")return;const t=J[n],l=n.startsWith("default:");n=l?n.split(":")[1]:n;let a;if(t||n in J)return J[n];if(!Ve[n]){if(a=dr(n),a=fe&&typeof a>"u"?Promise.resolve(a):a,a instanceof Promise)Ve[n]=a.then(o=>!o&&typeof n=="string"&&!l?a=typeof e=="function"?e(n):br(n,i):o).then(o=>(typeof n=="string"&&(J[l?`default:${n}`:n]=o),o));else if(typeof a=="string")return J[l?`default:${n}`:n]=a,a}return Ve[n]}}function dr(e){if(!!fe)return pr.then(()=>mr(e))}function mr(e){const i=se==null?void 0:se.getPropertyValue(`--fk-icon-${e}`);if(i){const n=atob(i);if(n.startsWith("<svg"))return J[e]=n,n}}function br(e,i){const n=tn.startsWith("__")?"latest":tn,t=typeof i=="function"?i(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${n}/dist/icons/${e}.svg`;if(!!fe)return fetch(`${t}`).then(async l=>{const a=await l.text();if(a.startsWith("<svg"))return a}).catch(l=>{console.error(l)})}let xe=!1;const ln={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,i]})=>`You cannot directly assign node.${i} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,i]})=>`Schema expressions cannot end with an operator (${e} in "${i}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,i]})=>`Cannot set ${e.name} to non object value: ${i}`,108:({data:[e,i]})=>`Cannot set ${e.name} to non array value: ${i}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},an={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`};xe||ye((e,i)=>{if(e.code in ln){const n=ln[e.code];e.message=typeof n=="function"?n(e):n}return i(e)}),xe||he((e,i)=>{if(e.code in an){const n=an[e.code];e.message=typeof n=="function"?n(e):n}return i(e)}),xe=!0;const Oe={};let j;const H=new Map,yr="__raw__",hr=/[a-zA-Z0-9\-][cC]lass$/;function _r(e,i){const n=r.ref(null);if(e==="get"){const l={};return n.value=gr.bind(null,l),n}const t=e.split(".");return r.watchEffect(()=>n.value=Le(i,t)),n}function Le(e,i){if(Array.isArray(e)){for(const l of e){const a=l!==!1&&Le(l,i);if(a!==void 0)return a}return}let n,t=e;for(const l in i){const a=i[l];if(typeof t!="object"||t===null){n=void 0;break}const o=t[a];if(Number(l)===i.length-1&&o!==void 0){n=o;break}t=o}return n}function gr(e,i){if(typeof i!="string")return te(650);if(i in e||(e[i]=r.ref(void 0)),e[i].value===void 0){e[i].value=null;const n=Ze(i);n&&(e[i].value=n.context),ot(i,({payload:t})=>{e[i].value=le(t)?t.context:t})}return e[i].value}function on(e,i){function n(s,_){const g=y(U(_.if),{if:!0}),k=b(s,_.then),c=_.else?b(s,_.else):null;return[g,k,c]}function t(s,_){var g,k;const c=y(U(s.if));let p=()=>_,d=()=>_;return typeof s.then=="object"?d=l(s.then,void 0):typeof s.then=="string"&&((g=s.then)===null||g===void 0?void 0:g.startsWith("$"))?d=y(U(s.then)):d=()=>s.then,R(s,"else")&&(typeof s.else=="object"?p=l(s.else):typeof s.else=="string"&&((k=s.else)===null||k===void 0?void 0:k.startsWith("$"))?p=y(U(s.else)):p=()=>s.else),()=>c()?d():p()}function l(s,_,g={}){const k=new Set(Object.keys(s||{})),c=_?y(U(_)):()=>({}),p=[d=>{const $=c();for(const S in $)k.has(S)||(d[S]=$[S])}];if(s){if(G(s))return t(s,g);for(let d in s){const $=s[d];let S;const f=typeof $=="string";d.startsWith(yr)?(d=d.substring(7),S=()=>$):f&&$.startsWith("$")&&$.length>1&&!($.startsWith("$reset")&&hr.test(d))?S=y(U($)):typeof $=="object"&&G($)?S=t($,void 0):typeof $=="object"&&v($)?S=l($):S=()=>$,p.push(h=>{h[d]=S()})}}return()=>{const d=Array.isArray(s)?[]:{};return p.forEach($=>$(d)),d}}function a(s,_){let g=null,k=()=>null,c=!1,p=null,d=null,$=null,S=!1;const f=vt(_);if(we(f)?(g=f.$el,k=f.$el!=="text"?l(f.attrs,f.bind):()=>null):Se(f)?(typeof f.$cmp=="string"?R(s,f.$cmp)?g=s[f.$cmp]:(g=f.$cmp,S=!0):g=f.$cmp,k=l(f.props,f.bind)):G(f)&&([c,p,d]=n(s,f)),!G(f)&&"if"in f?c=y(U(f.if)):!G(f)&&g===null&&(c=()=>!0),"children"in f&&f.children)if(typeof f.children=="string")if(f.children.startsWith("$slots."))g=g==="text"?"slot":g,p=y(U(f.children));else if(f.children.startsWith("$")&&f.children.length>1){const h=y(U(f.children));p=()=>String(h())}else p=()=>String(f.children);else if(Array.isArray(f.children))p=b(s,f.children);else{const[h,C,w]=n(s,f.children);p=O=>h&&h()?C&&C(O):w&&w(O)}if(Se(f))if(p){const h=p;p=C=>({default(w,O){var x,A,I,E;const B=j;O&&(j=O),w&&((x=H.get(j))===null||x===void 0||x.unshift(w)),C&&((A=H.get(j))===null||A===void 0||A.unshift(C));const M=h(C);return w&&((I=H.get(j))===null||I===void 0||I.shift()),C&&((E=H.get(j))===null||E===void 0||E.shift()),j=B,M}}),p.slot=!0}else p=()=>({});if("for"in f&&f.for){const h=f.for.length===3?f.for[2]:f.for[1];$=[typeof h=="string"&&h.startsWith("$")?y(U(h)):()=>h,f.for[0],f.for.length===3?String(f.for[1]):null]}return[c,g,k,p,d,$,S]}function o(s,_){const g=s(_),k=j;return Object.keys(g).reduce((c,p)=>{const d=g&&g[p];return c[p]=$=>d&&d($,k)||null,c},{})}function u(s,_){const[g,k,c,p,d,$,S]=a(s,_);let f=h=>{if(g&&k===null&&p)return g()?p(h):d&&d(h);if(k&&(!g||g())){if(k==="text"&&p)return r.createTextVNode(String(p()));if(k==="slot"&&p)return p(h);const C=S?r.resolveComponent(k):k,w=p!=null&&p.slot?o(p,h):null;return r.h(C,c(),w||(p?p(h):[]))}return typeof d=="function"?d(h):d};if($){const h=f,[C,w,O]=$;f=()=>{const x=C(),A=isNaN(x)?x:Array(Number(x)).fill(0).map((B,M)=>M),I=[];if(typeof A!="object")return null;const E=H.get(j)||[];for(const B in A){if(Array.isArray(A)&&B==="length")continue;const M=Object.defineProperty({...E.reduce((z,P)=>z.__idata?{...z,...P}:P,{}),[w]:A[B],...O!==null?{[O]:B}:{}},"__idata",{enumerable:!1,value:!0});E.unshift(M),I.push(h.bind(null,M)()),E.shift()}return I}}return f}function b(s,_){if(Array.isArray(_)){const k=_.map(u.bind(null,s));return c=>k.map(p=>p(c))}const g=u(s,_);return k=>g(k)}const m=[];function y(s,_={}){const g={};return m.push((k,c)=>{g[c]=s.provide(p=>k(p,_))}),()=>g[j]()}return function(_,g){const k=JSON.stringify(i),[c,p]=R(Oe,k)?Oe[k]:[b(e,i),m];return Oe[k]=[c,p],p.forEach(d=>{d(_,g)}),()=>(j=g,c())}}function sn(e,i){const n=H.get(j)||[];let t;return n.length&&(t=Le(n,e.split("."))),t===void 0?i:t}function kr(e,i){return new Proxy(e,{get(...n){let t;const l=n[1];if(typeof l=="string"){const a=j;j=i,t=sn(l,void 0),j=a}return t!==void 0?t:Reflect.get(...n)}})}function fn(e,i,n){return e((t,l={})=>t.reduce((a,o)=>{if(o.startsWith("slots.")){const b=o.substring(6),m=i.slots&&R(i.slots,b);if(l.if)a[o]=()=>m;else if(i.slots&&m){const y=kr(i,n);return a[o]=()=>i.slots[b](y),a}}const u=_r(o,i);return a[o]=()=>sn(o,u.value),a},{}),n)}let un=0;const Cr=r.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,i){const n=r.getCurrentInstance();let t=Symbol(String(un++));H.set(t,[]);let l=on(e.library,e.schema),a,o;return r.watch(()=>e.schema,(u,b)=>{var m;t=Symbol(String(un++)),l=on(e.library,e.schema),a=fn(l,o,t),u===b&&((m=n==null?void 0:n.proxy)===null||m===void 0?void 0:m.$forceUpdate)()},{deep:!0}),r.watchEffect(()=>{o=Object.assign(r.reactive(e.data),{slots:i.slots}),a=fn(l,o,t)}),()=>a()}}),$r={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},Pe=Symbol("FormKitParent");r.defineComponent({props:$r,emits:{input:(e,i)=>!0,inputRaw:(e,i)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,i)=>!0,submitRaw:(e,i)=>!0,submitInvalid:e=>!0},inheritAttrs:!1,setup(e,i){const n=xr(e,i);if(n.props.definition||T(600,n),n.props.definition.component)return()=>{var o;return r.h((o=n.props.definition)===null||o===void 0?void 0:o.component,{context:n.context},{...i.slots})};const t=r.ref([]),l=()=>{var o,u;const b=(u=(o=n.props)===null||o===void 0?void 0:o.definition)===null||u===void 0?void 0:u.schema;b||T(601,n),t.value=typeof b=="function"?b({...e.sectionsSchema}):b};l(),n.on("schema",l),i.emit("node",n);const a=n.props.definition.library;return i.expose({node:n}),()=>r.h(Cr,{schema:t.value,data:n.context,library:a},{...i.slots})}});const cn=Symbol.for("FormKitOptions"),Ee=Symbol();function wr(e,i){const n={},t=o=>{for(const u of o)u.__str in n&&n[u.__str](),n[u.__str]=r.watch(Vr.bind(null,e,u),a.bind(null,u),{deep:!1})},a=Sr(e,i,t,o=>{if(!!o.length)for(const u in n)`${u}`.startsWith(`${o.__str}.`)&&(n[u](),delete n[u])});t(Be(e))}function Sr(e,i,n,t){return l=>{const a=pn(e,l);a!==Ee&&(l.__deep&&t(l),typeof a=="object"&&n(Be(a,[l],...l)),i(l,a,e))}}function Vr(e,i){const n=pn(e,i);return n&&typeof n=="object"?Object.keys(n):n}function pn(e,i){if(r.isRef(e)){if(i.length===0)return e.value;e=e.value}return i.reduce((n,t)=>n===Ee?n:n===null||typeof n!="object"?Ee:n[t],e)}function Be(e,i=[],...n){if(e===null)return i;if(!n.length){const t=Object.defineProperty([],"__str",{value:""});if(e=r.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(t,"__deep",{value:!0}),i.push(t);else return[t]}if(e===null||typeof e!="object")return i;for(const t in e){const l=n.concat(t);Object.defineProperty(l,"__str",{value:l.join(".")});const a=e[t];v(a)||Array.isArray(a)?(i.push(Object.defineProperty(l,"__deep",{value:!0})),i=i.concat(Be(a,[],...l))):i.push(l)}return i}function ue(e){return e===null||typeof e!="object"||(r.isReactive(e)?e=r.toRaw(e):r.isRef(e)&&(e=r.isReactive(e.value)?ue(e.value):e.value)),e}const Ae=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/];function dn(e,i){i.classes&&Object.keys(i.classes).forEach(n=>{typeof n=="string"&&(e.props[`_${n}Class`]=i.classes[n],de(i.classes[n])&&n==="inner"&&Object.values(i.classes[n]))})}function Ir(e){return e?["Submit","SubmitRaw","SubmitInvalid"].reduce((n,t)=>{const l=`on${t}`;return l in e&&typeof e[l]=="function"&&(n[l]=e[l]),n},{}):{}}function xr(e,i,n={}){const t=Object.assign({},r.inject(cn)||{},n),l=r.getCurrentInstance(),a=Ir(l==null?void 0:l.vnode.props),o=e.modelValue!==void 0,u=e.modelValue!==void 0?e.modelValue:q(i.attrs.value);function b(){const f={...Y(e),...a},h=Re(Y(i.attrs),Ae);f.attrs=h;const C=je(Y(i.attrs),Ae);for(const O in C)f[ee(O)]=C[O];const w={props:{}};return dn(w,e),Object.assign(f,w.props),typeof f.type!="string"&&(f.definition=f.type,delete f.type),f}const m=b(),y=m.ignore?null:e.parent||r.inject(Pe,null),s=Gt(me(t||{},{name:e.name||void 0,value:u,parent:y,plugins:(t.plugins||[]).concat(e.plugins),config:e.config,props:m,index:e.index},!1,!0));s.props.definition||T(600,s);const _=r.ref(new Set(s.props.definition.props||[]));s.on("added-props",({payload:f})=>{Array.isArray(f)&&f.forEach(h=>_.value.add(h))});const g=r.computed(()=>Ae.concat([..._.value]).reduce((f,h)=>(typeof h=="string"?(f.push(ee(h)),f.push(Te(h))):f.push(h),f),[]));r.watchEffect(()=>dn(s,e));const k=Y(e);for(const f in k)r.watch(()=>e[f],()=>{e[f]!==void 0&&(s.props[f]=e[f])});const c=new Set,p=Y(i.attrs);r.watchEffect(()=>{d(je(p,g.value))});function d(f){c.forEach(h=>{h(),c.delete(h)});for(const h in f){const C=ee(h);c.add(r.watch(()=>i.attrs[h],()=>{s.props[C]=i.attrs[h]}))}}if(r.watchEffect(()=>{const f=Re(Y(i.attrs),g.value);s.props.attrs=Object.assign({},s.props.attrs||{},f)}),r.watchEffect(()=>{const f=e.errors.map(h=>re({key:ze(h),type:"error",value:h,meta:{source:"prop"}}));s.store.apply(f,h=>h.type==="error"&&h.meta.source==="prop")}),s.type!=="input"){const f=`${s.name}-prop`;r.watchEffect(()=>{const h=Object.keys(e.inputErrors);h.length||s.clearErrors(!0,f);const C=h.reduce((w,O)=>{let x=e.inputErrors[O];return typeof x=="string"&&(x=[x]),Array.isArray(x)&&(w[O]=x.map(A=>re({key:A,type:"error",value:A,meta:{source:f}}))),w},{});s.store.apply(C,w=>w.type==="error"&&w.meta.source===f)})}r.watchEffect(()=>Object.assign(s.config,e.config)),s.type!=="input"&&r.provide(Pe,s);let $;const S=new WeakSet;return s.on("modelUpdated",()=>{var f,h;if(i.emit("inputRaw",(f=s.context)===null||f===void 0?void 0:f.value,s),clearTimeout($),$=setTimeout(i.emit,20,"input",(h=s.context)===null||h===void 0?void 0:h.value,s),o&&s.context){const C=ue(s.context.value);de(C)&&ue(e.modelValue)!==C&&S.add(C),i.emit("update:modelValue",C)}}),o&&(wr(r.toRef(e,"modelValue"),(f,h)=>{var C;const w=ue(h);if(de(w)&&S.has(w))return S.delete(w);f.length?(C=s.at(f))===null||C===void 0||C.input(h,!1):s.input(h,!1)}),s.value!==u&&s.emit("modelUpdated")),r.onUnmounted(()=>s.destroy()),s}let Or=1;function Lr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function D(e,i={}){const n={type:"input",...i};let t;if(Lr(e)){const l=`SchemaComponent${Or++}`;t=W("input",()=>({$cmp:l,props:{context:"$node.context"}})),n.library={[l]:r.markRaw(e)}}else typeof e=="function"?t=e:t=W("input",()=>q(e));return n.schema=ur(t||"Schema undefined"),n}r.defineComponent({name:"FormKitIcon",props:{icon:{type:String,default:""},iconLoader:{type:Function,default:null},iconLoaderUrl:{type:Function,default:null}},setup(e){var i,n;const t=r.ref(void 0),l=r.inject(cn,{}),a=r.inject(Pe,null);let o;if(e.iconLoader&&typeof e.iconLoader=="function")o=Ie(e.iconLoader);else if(a&&((i=a.props)===null||i===void 0?void 0:i.iconLoader))o=Ie(a.props.iconLoader);else if(e.iconLoaderUrl&&typeof e.iconLoaderUrl=="function")o=Ie(o,e.iconLoaderUrl);else{const u=(n=l==null?void 0:l.plugins)===null||n===void 0?void 0:n.find(b=>typeof b.iconHandler=="function");u&&(o=u.iconHandler)}if(o&&typeof o=="function"){const u=o(e.icon);u instanceof Promise?u.then(b=>{t.value=b}):t.value=u}return()=>t.value?r.h("span",{class:"formkit-icon",innerHTML:t.value}):null}});const Pr=r.defineComponent({__name:"PrimeCalendar",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(o){n==null||n.node.input(n==null?void 0:n._value)}function a(o){n==null||n.node.input(o)}return(o,u)=>{var m,y,s,_,g,k,c,p,d,$,S,f,h,C,w,O,x,A,I,E,B,M,z,P,F,X,K,Z,N,Dn,Rn;const b=r.resolveComponent("Calendar");return r.openBlock(),r.createBlock(b,{modelValue:r.unref(n)._value,"onUpdate:modelValue":u[0]||(u[0]=ri=>r.unref(n)._value=ri),"input-id":i.context.id,disabled:(m=r.unref(t)._disabled)!=null?m:!1,readonly:(y=r.unref(t)._readonly)!=null?y:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,"date-format":r.unref(t).dateFormat,"selection-mode":(s=r.unref(t).selectionMode)!=null?s:"single",inline:(_=r.unref(t).inline)!=null?_:!1,"show-other-months":(g=r.unref(t).showOtherMonths)!=null?g:!0,"select-other-months":(k=r.unref(t).selectOtherMonths)!=null?k:!1,icon:r.unref(t).icon,"show-icon":r.unref(n).showIcon,"previous-icon":(c=r.unref(t).previousIcon)!=null?c:"pi pi-calendar","next-icon":(p=r.unref(t).nextIcon)!=null?p:"pi pi-chevron-right","increment-icon":(d=r.unref(t).incrementIcon)!=null?d:"pi pi-chevron-up","decrement-icon":($=r.unref(t).decrementIcon)!=null?$:"pi pi-chevron-down","number-of-months":(S=r.unref(t).numberOfMonths)!=null?S:1,"responsive-options":r.unref(t).responsiveOptions,view:(f=r.unref(t).view)!=null?f:"date","touch-u-i":(h=r.unref(t).touchUI)!=null?h:!1,"min-date":r.unref(t).minDate,"max-date":r.unref(t).maxDate,"disabled-dates":r.unref(t).disabledDates,"disabled-days":r.unref(t).disabledDays,"max-date-count":r.unref(t).maxDateCount,"show-on-focus":(C=r.unref(t).showOnFocus)!=null?C:!0,"auto-z-index":(w=r.unref(t).autoZIndex)!=null?w:!0,"base-z-index":(O=r.unref(t).baseZIndex)!=null?O:0,"show-button-bar":(x=r.unref(t).showButtonBar)!=null?x:!1,"show-time":(A=r.unref(t).showTime)!=null?A:!1,"time-only":(I=r.unref(t).timeOnly)!=null?I:!1,"short-year-cutoff":(E=r.unref(t).shortYearCutoff)!=null?E:"+10","hour-format":(B=r.unref(t).hourFormat)!=null?B:"24","step-hour":(M=r.unref(t).stepHour)!=null?M:1,"step-minute":(z=r.unref(t).stepMinute)!=null?z:1,"step-second":(P=r.unref(t).stepSecond)!=null?P:1,"show-seconds":(F=r.unref(t).showSeconds)!=null?F:!1,"hide-on-date-time-select":(X=r.unref(t).hideOnDateTimeSelect)!=null?X:!1,"hide-on-range-selection":(K=r.unref(t).hideOnRangeSelection)!=null?K:!1,"time-separator":(Z=r.unref(t).timeSeparator)!=null?Z:":","show-week":(N=r.unref(t).showWeek)!=null?N:!1,"manual-input":(Dn=r.unref(t).manualInput)!=null?Dn:!0,"append-to":(Rn=r.unref(t).appendTo)!=null?Rn:"body","panel-style":r.unref(t).panelStyle,"panel-class":r.unref(t).panelClass,onDateSelect:a,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","date-format","selection-mode","inline","show-other-months","select-other-months","icon","show-icon","previous-icon","next-icon","increment-icon","decrement-icon","number-of-months","responsive-options","view","touch-u-i","min-date","max-date","disabled-dates","disabled-days","max-date-count","show-on-focus","auto-z-index","base-z-index","show-button-bar","show-time","time-only","short-year-cutoff","hour-format","step-hour","step-minute","step-second","show-seconds","hide-on-date-time-select","hide-on-range-selection","time-separator","show-week","manual-input","append-to","panel-style","panel-class"])}}}),Er={key:0,class:"formkit-prime-left"},Br={key:1,class:"formkit-prime-right"},Ar=r.defineComponent({__name:"PrimeCheckbox",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_;const u=r.resolveComponent("Checkbox");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",Er,r.toDisplayString(r.unref(n).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=g=>r.unref(n)._value=g),"input-id":r.unref(n).id,disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,binary:(y=r.unref(t).binary)!=null?y:!0,"true-value":(s=r.unref(t).trueValue)!=null?s:void 0,"false-value":(_=r.unref(t).falseValue)!=null?_:void 0,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","binary","true-value","false-value"]),r.unref(n).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Br,r.toDisplayString(r.unref(n).attrs.labelRight),1)):r.createCommentVNode("",!0)],64)}}}),Dr=r.defineComponent({__name:"PrimeChips",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_;const u=r.resolveComponent("Chips");return r.openBlock(),r.createBlock(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=g=>r.unref(n)._value=g),"input-id":r.unref(n).id,disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,"allow-duplicate":(y=r.unref(t).allowDuplicate)!=null?y:!0,"add-on-blur":(s=r.unref(t).addOnBlur)!=null?s:!1,max:(_=r.unref(t).max)!=null?_:void 0,placeholder:r.unref(t).placeholder,separator:r.unref(t).separator,onAdd:l,onRemove:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","allow-duplicate","add-on-blur","max","placeholder","separator"])}}}),Rr=r.defineComponent({__name:"PrimeColorPicker",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s;const u=r.resolveComponent("ColorPicker");return r.openBlock(),r.createBlock(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=_=>r.unref(n)._value=_),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,style:r.normalizeStyle(r.unref(t).style),"panel-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,"default-color":(y=r.unref(t).defaultColor)!=null?y:"ff0000",inline:(s=r.unref(t).inline)!=null?s:!1,format:r.unref(t).format,onChange:l},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format"])}}}),jr=r.defineComponent({__name:"PrimeDropdown",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(o){n==null||n.handlers.blur(o.value)}function a(o){n==null||n.node.input(o.value)}return(o,u)=>{var m,y,s,_,g,k;const b=r.resolveComponent("Dropdown");return r.openBlock(),r.createBlock(b,{modelValue:r.unref(n)._value,"onUpdate:modelValue":u[0]||(u[0]=c=>r.unref(n)._value=c),"input-id":r.unref(n).id,disabled:(m=r.unref(t)._disabled)!=null?m:!1,readonly:(y=r.unref(t)._readonly)!=null?y:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,options:r.unref(t).options,"option-label":(s=r.unref(t).optionLabel)!=null?s:"label","option-value":(_=r.unref(t).optionValue)!=null?_:"value",placeholder:r.unref(t).placeholder,filter:(g=r.unref(t).filter)!=null?g:!1,"show-clear":(k=r.unref(t).showClear)!=null?k:!1,onChange:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","placeholder","filter","show-clear"])}}}),Tr=r.defineComponent({__name:"PrimeEditor",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(o){n==null||n.node.input(o.htmlValue)}function a(o){o.range===null&&(n==null||n.handlers.blur(o.htmlValue))}return(o,u)=>{var m,y;const b=r.resolveComponent("Editor");return r.openBlock(),r.createBlock(b,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":u[0]||(u[0]=s=>r.unref(n)._value=s),disabled:(m=r.unref(t)._disabled)!=null?m:!1,readonly:(y=r.unref(t)._readonly)!=null?y:!1,"editor-style":r.unref(t).style,class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,placeholder:r.unref(t).placeholder,formats:r.unref(t).formats,modules:r.unref(t).modules,onTextChange:l,onSelectionChange:a},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules"])}}}),Mr=r.defineComponent({__name:"PrimeInputMask",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o,u;n==null||n.node.input((o=i.context)==null?void 0:o._value),n==null||n.handlers.blur((u=i.context)==null?void 0:u._value)}return(a,o)=>{var b,m,y,s,_,g;const u=r.resolveComponent("InputMask");return r.openBlock(),r.createBlock(u,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=k=>r.unref(n)._value=k),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"editor-style":r.unref(t).style,class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,placeholder:r.unref(t).placeholder,mask:(y=r.unref(t).mask)!=null?y:void 0,"slot-char":(s=r.unref(t).slotChar)!=null?s:"_","auto-clear":(_=r.unref(t).autoClear)!=null?_:!0,unmask:(g=r.unref(t).unmask)!=null?g:!1,onBlur:l},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","mask","slot-char","auto-clear","unmask"])}}}),zr=r.defineComponent({__name:"PrimeInputNumber",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(o){n==null||n.handlers.blur(o.value)}function a(o){n==null||n.node.input(o.value)}return(o,u)=>{var m,y,s,_,g,k,c,p,d,$,S,f,h;const b=r.resolveComponent("InputNumber");return r.openBlock(),r.createBlock(b,{modelValue:r.unref(n)._value,"onUpdate:modelValue":u[0]||(u[0]=C=>r.unref(n)._value=C),"input-id":r.unref(n).id,disabled:(m=r.unref(t)._disabled)!=null?m:!1,readonly:(y=r.unref(t)._readonly)!=null?y:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,placeholder:r.unref(t).placeholder,"use-grouping":(s=r.unref(t).useGrouping)!=null?s:!0,"min-fraction-digits":(_=r.unref(t).minFractionDigits)!=null?_:void 0,"max-fraction-digits":(g=r.unref(t).maxFractionDigits)!=null?g:void 0,locale:(k=r.unref(t).locale)!=null?k:void 0,mode:(c=r.unref(t).mode)!=null?c:void 0,currency:(p=r.unref(t).currency)!=null?p:void 0,prefix:(d=r.unref(t).prefix)!=null?d:void 0,suffix:($=r.unref(t).suffix)!=null?$:void 0,"show-buttons":(S=r.unref(t).showButtons)!=null?S:void 0,"button-layout":(f=r.unref(t).buttonLayout)!=null?f:"stacked",step:(h=r.unref(t).step)!=null?h:void 0,onInput:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","placeholder","use-grouping","min-fraction-digits","max-fraction-digits","locale","mode","currency","prefix","suffix","show-buttons","button-layout","step"])}}}),Fr={key:0,class:"formkit-prime-left"},Ur={key:1,class:"formkit-prime-right"},Wr=r.defineComponent({__name:"PrimeInputSwitch",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s;const u=r.resolveComponent("InputSwitch");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",Fr,r.toDisplayString(r.unref(n).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=_=>r.unref(n)._value=_),"input-id":r.unref(n).id,disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,"true-value":(y=r.unref(t).trueValue)!=null?y:void 0,"false-value":(s=r.unref(t).falseValue)!=null?s:void 0,onInput:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value"]),r.unref(n).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",Ur,r.toDisplayString(r.unref(n).attrs.labelRight),1)):r.createCommentVNode("",!0)],64)}}}),Kr=r.defineComponent({__name:"PrimeInputText",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs,l=()=>(n==null?void 0:n.iconLeft)&&(n==null?void 0:n.iconLeft.length)>0,a=()=>(n==null?void 0:n.iconRight)&&(n==null?void 0:n.iconRight.length)>0,o=()=>{let m="";return l()&&(m=`${m}p-input-icon-left `),a()&&(m=`${m}p-input-icon-right `),m};function u(m){n==null||n.handlers.blur(m.target.value)}function b(m){n==null||n.node.input(m.target.value)}return(m,y)=>{var _,g;const s=r.resolveComponent("InputText");return r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass(o())},[l()?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(r.unref(n).iconLeft)},null,2)):r.createCommentVNode("",!0),r.createVNode(s,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":y[0]||(y[0]=k=>r.unref(n)._value=k),disabled:(_=r.unref(t)._disabled)!=null?_:!1,readonly:(g=r.unref(t)._readonly)!=null?g:!1,style:r.normalizeStyle(r.unref(t).style),class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,placeholder:r.unref(t).placeholder,onInput:b,onBlur:u},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder"]),a?(r.openBlock(),r.createElementBlock("i",{key:1,class:r.normalizeClass(r.unref(n).iconRight)},null,2)):r.createCommentVNode("",!0)],2)}}}),Nr=r.defineComponent({__name:"PrimeInputTextArea",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(o){n==null||n.handlers.blur(o.target.value)}function a(o){n==null||n.node.input(o.target.value)}return(o,u)=>{var m,y,s;const b=r.resolveComponent("Textarea");return r.openBlock(),r.createBlock(b,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":u[0]||(u[0]=_=>r.unref(n)._value=_),disabled:(m=r.unref(t)._disabled)!=null?m:!1,readonly:(y=r.unref(t)._readonly)!=null?y:!1,style:r.normalizeStyle(r.unref(t).style),class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,placeholder:r.unref(t).placeholder,rows:(s=r.unref(n).rows)!=null?s:3,onInput:a,onBlur:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows"])}}}),qr=r.defineComponent({__name:"PrimeKnob",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(a){n==null||n.node.input(a),n==null||n.handlers.blur(a)}return(a,o)=>{var b,m,y,s,_,g,k,c,p,d,$,S;const u=r.resolveComponent("Knob");return r.openBlock(),r.createBlock(u,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=f=>r.unref(n)._value=f),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,style:r.normalizeStyle(r.unref(t).style),class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,min:(y=r.unref(t).min)!=null?y:0,max:(s=r.unref(t).max)!=null?s:100,step:(_=r.unref(t).step)!=null?_:void 0,size:(g=r.unref(t).size)!=null?g:100,"stroke-width":(k=r.unref(t).strokeWidth)!=null?k:14,"show-value":(c=r.unref(t).showValue)!=null?c:!0,"value-color":(p=r.unref(t).valueColor)!=null?p:void 0,"range-color":(d=r.unref(t).rangeColor)!=null?d:void 0,"text-color":($=r.unref(t).textColor)!=null?$:void 0,"value-template":(S=r.unref(t).valueTemplate)!=null?S:void 0,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","size","stroke-width","show-value","value-color","range-color","text-color","value-template"])}}}),Hr=r.defineComponent({__name:"PrimeMultiSelect",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_;const u=r.resolveComponent("MultiSelect");return r.openBlock(),r.createBlock(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=g=>r.unref(n)._value=g),"input-id":r.unref(n).id,disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"list-style":r.unref(t).style,class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,options:r.unref(t).options,"option-label":(y=r.unref(t).optionLabel)!=null?y:"label","option-value":(s=r.unref(t).optionValue)!=null?s:"value",filter:(_=r.unref(t).filter)!=null?_:!1,onChange:l},null,8,["modelValue","input-id","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","filter"])}}}),Zr=r.defineComponent({__name:"PrimeListbox",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_,g,k,c,p;const u=r.resolveComponent("Listbox");return r.openBlock(),r.createBlock(u,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=d=>r.unref(n)._value=d),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"list-style":r.unref(t).style,class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,options:(y=r.unref(t))==null?void 0:y.options,"option-label":(s=r.unref(t).optionLabel)!=null?s:"label","option-value":(_=r.unref(t).optionValue)!=null?_:"value",multiple:(g=r.unref(t).multiple)!=null?g:!1,filter:(k=r.unref(t).filter)!=null?k:!1,"filter-icon":r.unref(t).filterIcon,"filter-placeholder":r.unref(t).filterPlaceholder,"filter-locale":r.unref(t).filterLocale,"filter-match-mode":r.unref(t).filterMatchMode,"auto-option-focus":(c=r.unref(t).autoOptionFocus)!=null?c:!0,"select-on-focus":(p=r.unref(t).selectOnFocus)!=null?p:!1,onChange:l},null,8,["id","modelValue","disabled","readonly","list-style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","multiple","filter","filter-icon","filter-placeholder","filter-locale","filter-match-mode","auto-option-focus","select-on-focus"])}}}),Yr=r.defineComponent({__name:"PrimePassword",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(o){n==null||n.handlers.blur(o.target.value)}function a(o){n==null||n.node.input(o.target.value)}return(o,u)=>{var m,y,s,_,g,k,c,p;const b=r.resolveComponent("Password");return r.openBlock(),r.createBlock(b,{modelValue:r.unref(n)._value,"onUpdate:modelValue":u[0]||(u[0]=d=>r.unref(n)._value=d),"input-id":r.unref(n).id,disabled:(m=r.unref(t)._disabled)!=null?m:!1,readonly:(y=r.unref(t)._readonly)!=null?y:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,placeholder:r.unref(t).placeholder,"medium-regex":(s=r.unref(t).mediumRegex)!=null?s:"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})","strong-regex":(_=r.unref(t).strongRegex)!=null?_:"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})","prompt-label":r.unref(t).promptLabel,"weak-label":r.unref(t).weakLabel,"medium-label":r.unref(t).mediumLabel,"strong-label":r.unref(t).strongLabel,"hide-icon":(g=r.unref(t).hideIcon)!=null?g:"pi pi-eye-slash","show-icon":(k=r.unref(t).showIcon)!=null?k:"pi pi-eye",feedback:(c=r.unref(n).feedback)!=null?c:!1,"toggle-mask":(p=r.unref(n).toggleMask)!=null?p:!1,onInput:a,onBlur:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","placeholder","medium-regex","strong-regex","prompt-label","weak-label","medium-label","strong-label","hide-icon","show-icon","feedback","toggle-mask"])}}}),Jr=r.defineComponent({__name:"PrimeRating",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_,g,k;const u=r.resolveComponent("Rating");return r.openBlock(),r.createBlock(u,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=c=>r.unref(n)._value=c),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,style:r.normalizeStyle(r.unref(t).style),class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,stars:(y=r.unref(t).stars)!=null?y:5,cancel:(s=r.unref(t).cancel)!=null?s:!1,"on-icon":(_=r.unref(t).onIcon)!=null?_:"pi pi-star-fill","off-icon":(g=r.unref(t).offIcon)!=null?g:"pi pi-star","cancel-icon":(k=r.unref(t).cancelIcon)!=null?k:"pi pi-ban",onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","stars","cancel","on-icon","off-icon","cancel-icon"])}}}),Qr=r.defineComponent({__name:"PrimeSlider",props:{context:Object},setup(e){const n=e.context,t=n==null?void 0:n.attrs;function l(a){n==null||n.node.input(a),n==null||n.handlers.blur(a)}return(a,o)=>{var b,m,y,s,_,g,k;const u=r.resolveComponent("Slider");return r.openBlock(),r.createBlock(u,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=c=>r.unref(n)._value=c),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,style:r.normalizeStyle(r.unref(t).style),class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,min:(y=r.unref(t).min)!=null?y:0,max:(s=r.unref(t).max)!=null?s:100,step:(_=r.unref(t).step)!=null?_:void 0,range:(g=r.unref(t).range)!=null?g:!1,orientation:(k=r.unref(t).orientation)!=null?k:"horizontal",onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation"])}}}),Gr=r.defineComponent({__name:"PrimeToggleButton",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_,g,k;const u=r.resolveComponent("ToggleButton");return r.openBlock(),r.createBlock(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=c=>r.unref(n)._value=c),"input-id":r.unref(n).id,disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,"on-label":(y=r.unref(t).onLabel)!=null?y:"Yes","off-label":(s=r.unref(t).offLabel)!=null?s:"No","on-icon":(_=r.unref(t).onIcon)!=null?_:"pi pi-check","off-icon":(g=r.unref(t).offIcon)!=null?g:"pi pi-times","icon-pos":(k=r.unref(t).iconPos)!=null?k:"left",onChange:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","on-label","off-label","on-icon","off-icon","icon-pos"])}}}),Xr=r.defineComponent({__name:"PrimeSelectButton",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m,y,s,_,g;const u=r.resolveComponent("SelectButton");return r.openBlock(),r.createBlock(u,{id:r.unref(n).id,modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=k=>r.unref(n)._value=k),disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,style:r.normalizeStyle(r.unref(t).style),class:r.normalizeClass(r.unref(t).class),tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,options:r.unref(t).options,"option-label":(y=r.unref(t).optionLabel)!=null?y:"label","option-value":(s=r.unref(t).optionValue)!=null?s:"value","option-disabled":r.unref(t).optionDisabled,multiple:(_=r.unref(t).multiple)!=null?_:!1,unselectable:(g=r.unref(t).unselectable)!=null?g:!0,"data-key":r.unref(t).dataKey,onChange:l},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","option-disabled","multiple","unselectable","data-key"])}}}),vr={key:0,class:"formkit-prime-left"},ei={key:1,class:"formkit-prime-right"},ni=r.defineComponent({__name:"PrimeTriStateCheckbox",props:{context:Object},setup(e){const i=e,n=i.context,t=n==null?void 0:n.attrs;function l(a){var o;n==null||n.node.input((o=i.context)==null?void 0:o._value)}return(a,o)=>{var b,m;const u=r.resolveComponent("TriStateCheckbox");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).attrs.labelLeft?(r.openBlock(),r.createElementBlock("span",vr,r.toDisplayString(r.unref(n).attrs.labelLeft),1)):r.createCommentVNode("",!0),r.createVNode(u,{modelValue:r.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=y=>r.unref(n)._value=y),"input-id":r.unref(n).id,disabled:(b=r.unref(t)._disabled)!=null?b:!1,readonly:(m=r.unref(t)._readonly)!=null?m:!1,"input-style":r.unref(t).style,"input-class":r.unref(t).class,tabindex:r.unref(t).tabindex,"aria-label":r.unref(t).ariaLabel,"aria-labelledby":r.unref(t).ariaLabelledby,onClick:l},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby"]),r.unref(n).attrs.labelRight?(r.openBlock(),r.createElementBlock("span",ei,r.toDisplayString(r.unref(n).attrs.labelRight),1)):r.createCommentVNode("",!0)],64)}}}),mn=D(Kr,{props:["iconRight","iconLeft"]}),bn=D(zr,{props:["iconRight","iconLeft"]}),yn=D(Mr,{props:[]}),hn=D(Yr,{props:["feedback","toggleMask"]}),_n=D(Nr,{props:["rows"]}),gn=D(Ar,{props:[]}),kn=D(Wr,{props:[]}),Cn=D(Tr,{props:[]}),$n=D(jr,{props:[]}),wn=D(Hr,{props:[]}),Sn=D(Zr,{props:[]}),Vn=D(Pr,{props:[]}),In=D(Qr,{props:[]}),xn=D(Jr,{props:[]}),On=D(Dr,{props:[]}),Ln=D(qr,{props:[]}),Pn=D(Rr,{props:[]}),En=D(Gr,{props:[]}),Bn=D(Xr,{props:[]}),An=D(ni,{props:[]}),ti={primeInputText:mn,primeInputNumber:bn,primeInputMask:yn,primePassword:hn,primeCheckbox:gn,primeInputSwitch:kn,primeInputTextArea:_n,primeEditor:Cn,primeDropdown:$n,primeMultiSelect:wn,primeCalendar:Vn,primeSlider:In,primeChips:On,primeKnob:Ln,primeRating:xn,primeColorPicker:Pn,primeToggleButton:En,primeListbox:Sn,primeSelectButton:Bn,primeTriStateCheckbox:An};L.primeCalendarDefinition=Vn,L.primeCheckboxDefinition=gn,L.primeChipsDefinition=On,L.primeColorPickerDefinition=Pn,L.primeDropdownDefinition=$n,L.primeEditorDefinition=Cn,L.primeInputMaskDefinition=yn,L.primeInputNumberDefinition=bn,L.primeInputSwitchDefinition=kn,L.primeInputTextAreaDefinition=_n,L.primeInputTextDefinition=mn,L.primeInputs=ti,L.primeKnobDefinition=Ln,L.primeListboxDefinition=Sn,L.primeMultiSelectDefinition=wn,L.primePasswordDefinition=hn,L.primeRatingDefinition=xn,L.primeSelectButtonDefinition=Bn,L.primeSliderDefinition=In,L.primeToggleButtonDefinition=En,L.primeTriStateCheckboxDefinition=An,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -56,7 +56,9 @@
56
56
  }
57
57
  }
58
58
 
59
-
59
+ .p-selectbutton {
60
+ width: 300px;
61
+ }
60
62
 
61
63
  .p-multiselect {
62
64
  .p-multiselect-label {
@@ -64,27 +66,29 @@
64
66
  }
65
67
  }
66
68
 
69
+ .p-listbox {
70
+ .p-listbox-item {
71
+ width: 250px;
72
+ }
73
+ }
74
+
67
75
  .p-editor-container {
68
76
  width: 300px;
69
- height: 250px;
70
- margin-bottom: 90px;
71
77
  }
72
78
  }
73
79
 
74
- .formkit-outer[data-type="primeInputSwitch"], .formkit-outer[data-type="primeCheckBox"], .formkit-outer[data-type="primeTriStateCheckBox"] {
80
+ .formkit-outer[data-type="primeInputSwitch"], .formkit-outer[data-type="primeCheckbox"], .formkit-outer[data-type="primeTriStateCheckBox"] {
75
81
  .formkit-inner {
76
82
  width: 300px;
77
83
 
78
84
  .formkit-prime-right {
79
85
  margin-left: 10px;
80
- font-weight: bold;
81
- font-size: 0.75rem;
86
+ font-size: 1rem;
82
87
  }
83
88
 
84
89
  .formkit-prime-left {
85
90
  margin-right: 10px;
86
- font-weight: bold;
87
- font-size: 0.75rem;
91
+ font-size: 1rem;
88
92
  }
89
93
  }
90
94
  }
@@ -3,7 +3,6 @@
3
3
  .formkit-message {
4
4
  font-size: 0.8rem;
5
5
  }
6
-
7
6
  }
8
7
 
9
8
  .formkit-outer {
@@ -22,7 +21,7 @@
22
21
  margin: 0;
23
22
  color: #ef9a9a;
24
23
  list-style: none;
25
- font-size: 0.75rem;
24
+ font-size: 0.8rem;
26
25
  }
27
26
  }
28
27
  }
@@ -30,16 +29,15 @@
30
29
  .formkit-wrapper,
31
30
  .formkit-fieldset {
32
31
  max-width: 0;
33
-
34
32
  }
35
33
 
36
34
  .formkit-label {
37
35
  display: block;
38
36
  margin: 0;
39
- padding-bottom: 4px;
37
+ padding-bottom: 6px;
40
38
  width: 300px;
41
39
  font-weight: bold;
42
- font-size: 0.75rem;
40
+ font-size: 0.8rem;
43
41
  }
44
42
 
45
43
  .formkit-fieldset {
@@ -69,31 +67,28 @@
69
67
  border-radius: 0;
70
68
  display: flex;
71
69
  align-items: center;
72
-
73
- width: fit-content;
74
-
70
+ width: fit-content;
75
71
  &:focus-within {
76
72
 
77
73
  }
78
-
79
74
  }
80
75
 
81
76
  .formkit-help {
82
77
  margin: 4px 0 0 0 ;
83
- font-size: 0.80rem;
78
+ font-size: 0.8rem;
84
79
  color: var(--text-color-secondary);
85
80
  }
86
81
 
87
82
  .formkit-messages {
88
83
  padding: 0;
89
84
  }
85
+
90
86
  .formkit-message {
91
87
  padding: 0;
92
88
  margin: 0;
93
89
  color: #ef9a9a;
94
90
  list-style: none;
95
- font-size: 0.75rem;
96
-
91
+ font-size: 0.8rem;
97
92
  }
98
93
 
99
94
  .formkit-actions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
- "version": "0.8.4",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/sfxcode/formkit-primevue",
@@ -38,34 +38,39 @@
38
38
  "primevue": "^3.18.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@antfu/eslint-config": "^0.29.4",
41
+ "@antfu/eslint-config": "^0.30.1",
42
42
  "@formkit/i18n": "^1.0.0-beta.11",
43
43
  "@types/node": "^18.11.9",
44
+ "@unocss/preset-icons": "^0.46.5",
45
+ "@unocss/preset-uno": "0.46.5",
44
46
  "@vitejs/plugin-vue": "^3.2.0",
45
47
  "@vue/babel-preset-app": "^5.0.8",
46
- "@vue/compiler-sfc": "^3.2.44",
47
- "@vue/server-renderer": "^3.2.44",
48
- "@vue/test-utils": "^2.2.1",
48
+ "@vue/compiler-sfc": "^3.2.45",
49
+ "@vue/server-renderer": "^3.2.45",
50
+ "@vue/test-utils": "^2.2.3",
49
51
  "@vuedx/typecheck": "~0.7.6",
50
52
  "@vuedx/typescript-plugin-vue": "~0.7.6",
51
53
  "@vueuse/core": "^9.5.0",
52
- "@vueuse/head": "~0.9.8",
53
- "chart.js": "^3.9.1",
54
+ "@vueuse/head": "~1.0.13",
55
+ "chart.js": "^4.0.1",
54
56
  "consola": "^2.15.3",
55
57
  "eslint": "^8.27.0",
58
+ "json-editor-vue": "^0.9.2",
56
59
  "quill": "^1.3.7",
57
60
  "sass": "^1.56.1",
58
61
  "tslib": "^2.4.1",
59
62
  "typescript": "^4.8.4",
63
+ "unocss": "^0.46.5",
60
64
  "unplugin-auto-import": "^0.11.4",
61
65
  "unplugin-vue-components": "^0.22.9",
62
- "vue-demi": "^0.13.11",
66
+ "vanilla-jsoneditor": "^0.10.1",
63
67
  "vite": "^3.2.3",
64
- "vite-plugin-dts": "^1.7.0",
68
+ "vite-plugin-dts": "^1.7.1",
65
69
  "vite-plugin-eslint": "^1.8.1",
66
70
  "vite-plugin-pages": "^0.27.1",
67
71
  "vite-ssg": "^0.21.2",
68
- "vue": "^3.2.44",
72
+ "vue": "^3.2.45",
73
+ "vue-demi": "^0.13.11",
69
74
  "vue-router": "^4.1.6",
70
75
  "vue-tsc": "^1.0.9"
71
76
  },