@abgov/ui-components-common 1.11.0 → 2.0.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty;var y=r=>{throw TypeError(r)};var M=(r,t,e)=>t in r?S(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var l=(r,t,e)=>M(r,typeof t!="symbol"?t+"":t,e),C=(r,t,e)=>t.has(r)||y("Cannot "+e);var V=(r,t,e)=>t.has(r)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e);var _=(r,t,e)=>(C(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class N{constructor(t){l(this,"validators");this.validators=t||{}}add(t,...e){this.validators[t]=e}validate(t){const e={};return Object.entries(this.validators).forEach(([i,a])=>{const n=a.map(s=>s(t[i])).find(s=>!!s);n&&(e[i]=n)}),e}}function w(){return[c("Day is required"),h({min:1,max:31,minMsg:"Day must be between 1 and 31",maxMsg:"Day must be between 1 and 31"})]}function E(){return[c("Month is required"),h({min:0,max:11,minMsg:"Month must be between Jan and Dec",maxMsg:"Month must be between Jan and Dec"})]}function R(){const r=new Date().getFullYear();return[c("Year is required"),h({min:1900,max:r,minMsg:"Year must be greater than 1900",maxMsg:`Year must be less than ${r}`})]}function c(r){return t=>(r=r||"Required",typeof t=="number"&&!isNaN(t)||t?"":r)}function D(r){const t=new RegExp(/^\+?[\d-() ]{10,18}$/);return m(t,r||"Invalid phone number")}function I(r){const t=new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);return m(t,r||"Invalid email address")}function $(){return r=>{if(!r)return"";const t="121212121".split("").map(a=>parseInt(a)),e=r.replace(/\D/g,"");return e.length!==9?"SIN must contain 9 numbers":e.split("").map(a=>parseInt(a)).map((a,n)=>{const s=a*t[n];return s<10?s:`${s}`.split("").map(u=>parseInt(u)).reduce((u,f)=>u+f,0)}).reduce((a,n)=>a+n,0)%10===0?"":"Invalid SIN"}}function x(){return m(/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,"Invalid postal code")}function m(r,t){return e=>!e||e.match(r)?"":t}function L({invalidMsg:r,minMsg:t,maxMsg:e,min:i,max:a}={}){return n=>{let s=new Date(-1);return`${n||""}`.length===0?"":(typeof n=="string"&&(s=new Date(n)),typeof n=="number"&&(s=new Date(n)),n.toDateString&&(s=n),s.getDate()===-1?r||"Invalid date":i&&s<i?t||`Must be after ${i}`:a&&s>a?e||`Must be before ${a}`:"")}}function h({invalidTypeMsg:r,minMsg:t,maxMsg:e,min:i=-Number.MAX_VALUE,max:a=Number.MAX_VALUE}={}){return n=>{let s=Number.MAX_VALUE;return`${n??""}`.length===0?"":(typeof n=="string"&&(s=parseFloat(n)),typeof n=="number"&&(s=n),isNaN(s)?r||"Must be a numeric value":s>a?e||`Must be less than or equal to ${a}`:s<i?t||`Must be greater than or equal to ${i}`:"")}}function T({invalidTypeMsg:r,minMsg:t,maxMsg:e,min:i=-Number.MAX_VALUE,max:a=Number.MAX_VALUE}){return n=>`${n||""}`.length===0?"":typeof n!="string"?r||"Invalid type":n.length>a?e||`Must be less than ${a} characters`:n.length<i?t||`Must be greater than ${i} characters`:""}function b(r,t,e,i){if(!r){console.error("dispatch element is null");return}r.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:i==null?void 0:i.bubbles,detail:e}))}function o(r,t,e,i){if(!r){console.error("dispatch element is null");return}r.dispatchEvent(new CustomEvent("msg",{composed:!0,bubbles:i==null?void 0:i.bubbles,detail:{action:t,data:e}}))}var d,q,v;class U{constructor(t){V(this,d);l(this,"state");l(this,"_formData");l(this,"_formRef");l(this,"_isCompleting",!1);this.type=t}init(t){if(this._formRef){console.warn("init: form element has already been set");return}this._formRef=t.detail.el,this.state={uuid:crypto.randomUUID(),form:{},history:[],editting:"",status:"not-started"}}initList(t){this._formRef=t.detail.el,this.state=[]}initState(t,e){o(this._formRef,"external::init:state",t),typeof t=="string"?this.state=JSON.parse(t):Array.isArray(t)||(this.state=t),e&&setTimeout(e,200)}updateListState(t){const e=t.detail;Array.isArray(e.data)&&(this.state=e.data)}updateObjectState(t){var i,a;if(Array.isArray(this.state))return;const e=t.detail;e.type==="list"?this.state={...this.state,form:{...((i=this.state)==null?void 0:i.form)||{},[e.id]:e.data}}:this.state={...this.state,...e.data,form:{...((a=this.state)==null?void 0:a.form)||{},...e.data.form},history:e.data.history}}getStateList(){return this.state?Array.isArray(this.state)?this.state.length===0?[]:this.state.map(t=>Object.values(t.form).filter(e=>{var i;return((i=e==null?void 0:e.data)==null?void 0:i.type)==="details"}).map(e=>{var i;return e.data.type==="details"&&((i=e.data)==null?void 0:i.fieldsets)||{}}).reduce((e,i)=>{for(const[a,n]of Object.entries(i))e[a]=n.value;return e},{})):(console.warn("Utils:getStateList: unable to update the state of a non-multi form type",this.state),[]):[]}getStateValue(t,e){if(Array.isArray(this.state))return console.error("getStateValue: unable to update the state of a multi form type"),"";if(!this.state)return console.error("getStateValue: state has not yet been set"),"";const i=this.state.form[t].data;return i.type!=="details"?"":i.fieldsets[e].value}continueTo(t){if(!t){console.error("continueTo [name] is undefined");return}o(this._formRef,"external::continue",{next:t})}validate(t,e,i,a){var p;const{el:n,state:s,cancelled:u}=t.detail,f=(p=s==null?void 0:s[e])==null?void 0:p.value;if(window.scrollTo({top:0,behavior:"smooth"}),u)return[!0,f];for(const A of i){const g=A(f);if(_(this,d,v).call(this,n,e,g,a),g)return[!1,""]}return[!0,f]}validateGroup(t,e,i){let a=0;const n={};for(const s of e){const[u]=this.validate(t,s,i,{grouped:!0});u&&(n[s]=!0,a++)}return[a,n]}edit(t){o(this._formRef,"external::alter:state",{index:t,operation:"edit"})}remove(t){o(this._formRef,"external::alter:state",{index:t,operation:"remove"})}complete(){if(!this._formRef){console.error("complete: form ref is not set");return}if(this._isCompleting){console.warn("complete: completion already in progress");return}this._isCompleting=!0,o(this._formRef,"fieldset::submit",null,{bubbles:!0}),this._isCompleting=!1}completeSubform(){if(!this._formRef){console.error("completeSubform: form ref is not set");return}if(this._isCompleting){console.warn("completeSubform: completion already in progress");return}const t=this._formRef;this._isCompleting=!0;const e=i=>{t.removeEventListener("_stateChange",e),b(t,"_complete",{},{bubbles:!0}),this._isCompleting=!1};t.addEventListener("_stateChange",e),b(t,"_continue",null,{bubbles:!0})}clean(t){return t.history.reduce((e,i)=>(e[i]=t.form[i],e),{})}}d=new WeakSet,q=function(t){var e;Array.isArray(t.data)&&(Array.isArray(this.state)||(this.state={...this.state,form:{...((e=this.state)==null?void 0:e.form)||{},[t.id]:t.data}}))},v=function(t,e,i,a){t.dispatchEvent(new CustomEvent("msg",{composed:!0,detail:{action:"external::set:error",data:{name:e,msg:i,grouped:a==null?void 0:a.grouped}}}))};const Y=["basic","success","failure"];function O(r,t){const e=crypto.randomUUID();return t={uuid:e,type:"basic",...t||{}},!t.duration&&t.type&&Y.includes(t.type)&&(t.duration="short"),o(document.body,"goa:temp-notification",{message:r,...t},{bubbles:!0}),e}function P(r){o(document.body,"goa:temp-notification:dismiss",r,{bubbles:!0})}function j(r,t){o(document.body,"goa:temp-notification:progress",{uuid:r,progress:t},{bubbles:!0})}const F={show:O,dismiss:P,setProgress:j};exports.FormValidator=N;exports.PublicFormController=U;exports.SINValidator=$;exports.TemporaryNotification=F;exports.birthDayValidator=w;exports.birthMonthValidator=E;exports.birthYearValidator=R;exports.dateValidator=L;exports.dispatch=b;exports.emailValidator=I;exports.lengthValidator=T;exports.numericValidator=h;exports.phoneNumberValidator=D;exports.postalCodeValidator=x;exports.regexValidator=m;exports.relay=o;exports.requiredValidator=c;
1
+ "use strict";var z=Object.defineProperty;var q=n=>{throw TypeError(n)};var K=(n,t,e)=>t in n?z(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var p=(n,t,e)=>K(n,typeof t!="symbol"?t+"":t,e),tt=(n,t,e)=>t.has(n)||q("Cannot "+e);var R=(n,t,e)=>t.has(n)?q("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e);var L=(n,t,e)=>(tt(n,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class et{constructor(t){p(this,"validators");this.validators=t||{}}add(t,...e){this.validators[t]=e}validate(t){const e={};return Object.entries(this.validators).forEach(([r,a])=>{const i=a.map(s=>s(t[r])).find(s=>!!s);i&&(e[r]=i)}),e}}function nt(){return[W("Day is required"),E({min:1,max:31,minMsg:"Day must be between 1 and 31",maxMsg:"Day must be between 1 and 31"})]}function rt(){return[W("Month is required"),E({min:0,max:11,minMsg:"Month must be between Jan and Dec",maxMsg:"Month must be between Jan and Dec"})]}function at(){const n=new Date().getFullYear();return[W("Year is required"),E({min:1900,max:n,minMsg:"Year must be greater than 1900",maxMsg:`Year must be less than ${n}`})]}function W(n){return t=>(n=n||"Required",typeof t=="number"&&!isNaN(t)||t?"":n)}function it(n){const t=new RegExp(/^\+?[\d-() ]{10,18}$/);return _(t,n||"Invalid phone number")}function st(n){const t=new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);return _(t,n||"Invalid email address")}function ot(){return n=>{if(!n)return"";const t="121212121".split("").map(a=>parseInt(a)),e=n.replace(/\D/g,"");return e.length!==9?"SIN must contain 9 numbers":e.split("").map(a=>parseInt(a)).map((a,i)=>{const s=a*t[i];return s<10?s:`${s}`.split("").map(o=>parseInt(o)).reduce((o,c)=>o+c,0)}).reduce((a,i)=>a+i,0)%10===0?"":"Invalid SIN"}}function ut(){return _(/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,"Invalid postal code")}function _(n,t){return e=>!e||e.match(n)?"":t}function ct({invalidMsg:n,minMsg:t,maxMsg:e,min:r,max:a}={}){return i=>{let s=new Date(-1);return`${i||""}`.length===0?"":(typeof i=="string"&&(s=new Date(i)),typeof i=="number"&&(s=new Date(i)),i.toDateString&&(s=i),s.getDate()===-1?n||"Invalid date":r&&s<r?t||`Must be after ${r}`:a&&s>a?e||`Must be before ${a}`:"")}}function E({invalidTypeMsg:n,minMsg:t,maxMsg:e,min:r=-Number.MAX_VALUE,max:a=Number.MAX_VALUE}={}){return i=>{let s=Number.MAX_VALUE;return`${i??""}`.length===0?"":(typeof i=="string"&&(s=parseFloat(i)),typeof i=="number"&&(s=i),isNaN(s)?n||"Must be a numeric value":s>a?e||`Must be less than or equal to ${a}`:s<r?t||`Must be greater than or equal to ${r}`:"")}}function dt({invalidTypeMsg:n,minMsg:t,maxMsg:e,min:r=-Number.MAX_VALUE,max:a=Number.MAX_VALUE}){return i=>`${i||""}`.length===0?"":typeof i!="string"?n||"Invalid type":i.length>a?e||`Must be less than ${a} characters`:i.length<r?t||`Must be greater than ${r} characters`:""}function A(n,t,e,r){if(!n){console.error("dispatch element is null");return}n.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:r==null?void 0:r.bubbles,detail:e}))}function w(n,t,e,r){if(!n){console.error("dispatch element is null");return}n.dispatchEvent(new CustomEvent("msg",{composed:!0,bubbles:r==null?void 0:r.bubbles,detail:{action:t,data:e}}))}var k,ht,G;class ft{constructor(t){R(this,k);p(this,"state");p(this,"_formData");p(this,"_formRef");p(this,"_isCompleting",!1);this.type=t}init(t){if(this._formRef){console.warn("init: form element has already been set");return}this._formRef=t.detail.el,this.state={uuid:crypto.randomUUID(),form:{},history:[],editting:"",status:"not-started"}}initList(t){this._formRef=t.detail.el,this.state=[]}initState(t,e){w(this._formRef,"external::init:state",t),typeof t=="string"?this.state=JSON.parse(t):Array.isArray(t)||(this.state=t),e&&setTimeout(e,201)}updateListState(t){const e=t.detail;Array.isArray(e.data)&&(this.state=e.data)}updateObjectState(t){var r,a;if(Array.isArray(this.state))return;const e=t.detail;e.type==="list"?this.state={...this.state,form:{...((r=this.state)==null?void 0:r.form)||{},[e.id]:e.data}}:this.state={...this.state,...e.data,form:{...((a=this.state)==null?void 0:a.form)||{},...e.data.form},history:e.data.history}}getStateList(){return this.state?Array.isArray(this.state)?this.state.length===0?[]:this.state.map(t=>Object.values(t.form).filter(e=>{var r;return((r=e==null?void 0:e.data)==null?void 0:r.type)==="details"}).map(e=>{var r;return e.data.type==="details"&&((r=e.data)==null?void 0:r.fieldsets)||{}}).reduce((e,r)=>{for(const[a,i]of Object.entries(r))e[a]=i.value;return e},{})):(console.warn("Utils:getStateList: unable to update the state of a non-multi form type",this.state),[]):[]}getStateValue(t,e){if(Array.isArray(this.state))return console.error("getStateValue: unable to update the state of a multi form type"),"";if(!this.state)return console.error("getStateValue: state has not yet been set"),"";const r=this.state.form[t].data;return r.type!=="details"?"":r.fieldsets[e].value}continueTo(t){if(!t){console.error("continueTo [name] is undefined");return}w(this._formRef,"external::continue",{next:t})}validate(t,e,r,a){var f;const{el:i,state:s,cancelled:o}=t.detail,c=(f=s==null?void 0:s[e])==null?void 0:f.value;if(window.scrollTo({top:0,behavior:"smooth"}),o)return[!0,c];for(const h of r){const g=h(c);if(L(this,k,G).call(this,i,e,g,a),g)return[!1,""]}return[!0,c]}validateGroup(t,e,r){let a=0;const i={};for(const s of e){const[o]=this.validate(t,s,r,{grouped:!0});o&&(i[s]=!0,a++)}return[a,i]}edit(t){w(this._formRef,"external::alter:state",{index:t,operation:"edit"})}remove(t){w(this._formRef,"external::alter:state",{index:t,operation:"remove"})}complete(){if(!this._formRef){console.error("complete: form ref is not set");return}if(this._isCompleting){console.warn("complete: completion already in progress");return}this._isCompleting=!0,w(this._formRef,"fieldset::submit",null,{bubbles:!0}),this._isCompleting=!1}completeSubform(){if(!this._formRef){console.error("completeSubform: form ref is not set");return}if(this._isCompleting){console.warn("completeSubform: completion already in progress");return}const t=this._formRef;this._isCompleting=!0;const e=r=>{t.removeEventListener("_stateChange",e),A(t,"_complete",{},{bubbles:!0}),this._isCompleting=!1};t.addEventListener("_stateChange",e),A(t,"_continue",null,{bubbles:!0})}clean(t){return t.history.reduce((e,r)=>(e[r]=t.form[r],e),{})}}k=new WeakSet,ht=function(t){var e;Array.isArray(t.data)&&(Array.isArray(this.state)||(this.state={...this.state,form:{...((e=this.state)==null?void 0:e.form)||{},[t.id]:t.data}}))},G=function(t,e,r,a){t.dispatchEvent(new CustomEvent("msg",{composed:!0,detail:{action:"external::set:error",data:{name:e,msg:r,grouped:a==null?void 0:a.grouped}}}))};const lt=["basic","success","failure"];function mt(n,t){const e=crypto.randomUUID();return t={uuid:e,type:"basic",...t||{}},!t.duration&&t.type&&lt.includes(t.type)&&(t.duration="short"),w(document.body,"goa:temp-notification",{message:n,...t},{bubbles:!0}),e}function gt(n){w(document.body,"goa:temp-notification:dismiss",n,{bubbles:!0})}function yt(n,t){w(document.body,"goa:temp-notification:progress",{uuid:n,progress:t},{bubbles:!0})}const bt={show:mt,dismiss:gt,setProgress:yt};class Q{constructor(){p(this,"done");this.done=new Set}when(t){return t?this:new wt}do(t,e){this.done.has(t)||(this.done.add(t),e())}}class wt extends Q{do(t,e){}}function d(n){const t=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&t==="[object Date]"?new n.constructor(+n):typeof n=="number"||t==="[object Number]"||typeof n=="string"||t==="[object String]"?new Date(n):new Date(NaN)}function y(n,t){return n instanceof Date?new n.constructor(t):new Date(t)}function pt(n,t){const e=d(n);return isNaN(t)?y(n,NaN):(t&&e.setDate(e.getDate()+t),e)}function Mt(n,t){const e=d(n);if(isNaN(t))return y(n,NaN);if(!t)return e;const r=e.getDate(),a=y(n,e.getTime());a.setMonth(e.getMonth()+t+1,0);const i=a.getDate();return r>=i?a:(e.setFullYear(a.getFullYear(),a.getMonth(),r),e)}const B=6048e5,Dt=864e5;let Ot={};function F(){return Ot}function N(n,t){var o,c,f,h;const e=F(),r=(t==null?void 0:t.weekStartsOn)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??e.weekStartsOn??((h=(f=e.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,a=d(n),i=a.getDay(),s=(i<r?7:0)+i-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function Y(n){return N(n,{weekStartsOn:1})}function J(n){const t=d(n),e=t.getFullYear(),r=y(n,0);r.setFullYear(e+1,0,4),r.setHours(0,0,0,0);const a=Y(r),i=y(n,0);i.setFullYear(e,0,4),i.setHours(0,0,0,0);const s=Y(i);return t.getTime()>=a.getTime()?e+1:t.getTime()>=s.getTime()?e:e-1}function T(n){const t=d(n);return t.setHours(0,0,0,0),t}function H(n){const t=d(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function St(n,t){const e=T(n),r=T(t),a=+e-H(e),i=+r-H(r);return Math.round((a-i)/Dt)}function Pt(n){const t=J(n),e=y(n,0);return e.setFullYear(t,0,4),e.setHours(0,0,0,0),Y(e)}function vt(n,t){const e=T(n),r=T(t);return+e==+r}function xt(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Nt(n){if(!xt(n)&&typeof n!="number")return!1;const t=d(n);return!isNaN(Number(t))}function kt(n){const t=d(n),e=y(n,0);return e.setFullYear(t.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Yt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tt=(n,t,e)=>{let r;const a=Yt[n];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function V(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Wt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Et={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ft={date:V({formats:Wt,defaultWidth:"full"}),time:V({formats:_t,defaultWidth:"full"}),dateTime:V({formats:Et,defaultWidth:"full"})},Ct={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vt=(n,t,e,r)=>Ct[n];function v(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let a;if(r==="formatting"&&n.formattingValues){const s=n.defaultFormattingWidth||n.defaultWidth,o=e!=null&&e.width?String(e.width):s;a=n.formattingValues[o]||n.formattingValues[s]}else{const s=n.defaultWidth,o=e!=null&&e.width?String(e.width):n.defaultWidth;a=n.values[o]||n.values[s]}const i=n.argumentCallback?n.argumentCallback(t):t;return a[i]}}const At={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Rt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Lt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ht={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},It={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jt=(n,t)=>{const e=Number(n),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Xt={ordinalNumber:jt,era:v({values:At,defaultWidth:"wide"}),quarter:v({values:qt,defaultWidth:"wide",argumentCallback:n=>n-1}),month:v({values:Rt,defaultWidth:"wide"}),day:v({values:Lt,defaultWidth:"wide"}),dayPeriod:v({values:Ht,defaultWidth:"wide",formattingValues:It,defaultFormattingWidth:"wide"})};function x(n){return(t,e={})=>{const r=e.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=t.match(a);if(!i)return null;const s=i[0],o=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],c=Array.isArray(o)?Gt(o,g=>g.test(s)):$t(o,g=>g.test(s));let f;f=n.valueCallback?n.valueCallback(c):c,f=e.valueCallback?e.valueCallback(f):f;const h=t.slice(s.length);return{value:f,rest:h}}}function $t(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Gt(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Qt(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const a=r[0],i=t.match(n.parsePattern);if(!i)return null;let s=n.valueCallback?n.valueCallback(i[0]):i[0];s=e.valueCallback?e.valueCallback(s):s;const o=t.slice(a.length);return{value:s,rest:o}}}const Bt=/^(\d+)(th|st|nd|rd)?/i,Jt=/\d+/i,Ut={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zt={any:[/^b/i,/^(a|c)/i]},zt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kt={any:[/1/i,/2/i,/3/i,/4/i]},te={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ee={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ne={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},re={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ae={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ie={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},se={ordinalNumber:Qt({matchPattern:Bt,parsePattern:Jt,valueCallback:n=>parseInt(n,10)}),era:x({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:Zt,defaultParseWidth:"any"}),quarter:x({matchPatterns:zt,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any",valueCallback:n=>n+1}),month:x({matchPatterns:te,defaultMatchWidth:"wide",parsePatterns:ee,defaultParseWidth:"any"}),day:x({matchPatterns:ne,defaultMatchWidth:"wide",parsePatterns:re,defaultParseWidth:"any"}),dayPeriod:x({matchPatterns:ae,defaultMatchWidth:"any",parsePatterns:ie,defaultParseWidth:"any"})},oe={code:"en-US",formatDistance:Tt,formatLong:Ft,formatRelative:Vt,localize:Xt,match:se,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ue(n){const t=d(n);return St(t,kt(t))+1}function ce(n){const t=d(n),e=+Y(t)-+Pt(t);return Math.round(e/B)+1}function U(n,t){var h,g,S,P;const e=d(n),r=e.getFullYear(),a=F(),i=(t==null?void 0:t.firstWeekContainsDate)??((g=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((P=(S=a.locale)==null?void 0:S.options)==null?void 0:P.firstWeekContainsDate)??1,s=y(n,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const o=N(s,t),c=y(n,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const f=N(c,t);return e.getTime()>=o.getTime()?r+1:e.getTime()>=f.getTime()?r:r-1}function de(n,t){var o,c,f,h;const e=F(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??e.firstWeekContainsDate??((h=(f=e.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=U(n,t),i=y(n,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),N(i,t)}function fe(n,t){const e=d(n),r=+N(e,t)-+de(e,t);return Math.round(r/B)+1}function u(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const M={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return u(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):u(e+1,2)},d(n,t){return u(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return u(n.getHours()%12||12,t.length)},H(n,t){return u(n.getHours(),t.length)},m(n,t){return u(n.getMinutes(),t.length)},s(n,t){return u(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),a=Math.trunc(r*Math.pow(10,e-3));return u(a,t.length)}},O={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},I={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),a=r>0?r:1-r;return e.ordinalNumber(a,{unit:"year"})}return M.y(n,t)},Y:function(n,t,e,r){const a=U(n,r),i=a>0?a:1-a;if(t==="YY"){const s=i%100;return u(s,2)}return t==="Yo"?e.ordinalNumber(i,{unit:"year"}):u(i,t.length)},R:function(n,t){const e=J(n);return u(e,t.length)},u:function(n,t){const e=n.getFullYear();return u(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return u(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return u(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return M.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return u(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const a=fe(n,r);return t==="wo"?e.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(n,t,e){const r=ce(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):u(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):M.d(n,t)},D:function(n,t,e){const r=ue(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):u(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return u(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return u(i,t.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const a=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let a;switch(r===12?a=O.noon:r===0?a=O.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let a;switch(r>=17?a=O.evening:r>=12?a=O.afternoon:r>=4?a=O.morning:a=O.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return M.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):M.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):u(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):u(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):M.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):M.s(n,t)},S:function(n,t){return M.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return X(r);case"XXXX":case"XX":return D(r);case"XXXXX":case"XXX":default:return D(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return X(r);case"xxxx":case"xx":return D(r);case"xxxxx":case"xxx":default:return D(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+j(r,":");case"OOOO":default:return"GMT"+D(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+j(r,":");case"zzzz":default:return"GMT"+D(r,":")}},t:function(n,t,e){const r=Math.trunc(n.getTime()/1e3);return u(r,t.length)},T:function(n,t,e){const r=n.getTime();return u(r,t.length)}};function j(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),a=Math.trunc(r/60),i=r%60;return i===0?e+String(a):e+String(a)+t+u(i,2)}function X(n,t){return n%60===0?(n>0?"-":"+")+u(Math.abs(n)/60,2):D(n,t)}function D(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),a=u(Math.trunc(r/60),2),i=u(r%60,2);return e+a+t+i}const $=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Z=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},he=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],a=e[2];if(!a)return $(n,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",$(r,t)).replace("{{time}}",Z(a,t))},le={p:Z,P:he},me=/^D+$/,ge=/^Y+$/,ye=["D","DD","YY","YYYY"];function be(n){return me.test(n)}function we(n){return ge.test(n)}function pe(n,t,e){const r=Me(n,t,e);if(console.warn(r),ye.includes(n))throw new RangeError(r)}function Me(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const De=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Oe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Se=/^'([^]*?)'?$/,Pe=/''/g,ve=/[a-zA-Z]/;function xe(n,t,e){var h,g,S,P;const r=F(),a=r.locale??oe,i=r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=r.weekStartsOn??((P=(S=r.locale)==null?void 0:S.options)==null?void 0:P.weekStartsOn)??0,o=d(n);if(!Nt(o))throw new RangeError("Invalid time value");let c=t.match(Oe).map(m=>{const l=m[0];if(l==="p"||l==="P"){const C=le[l];return C(m,a.formatLong)}return m}).join("").match(De).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const l=m[0];if(l==="'")return{isToken:!1,value:Ne(m)};if(I[l])return{isToken:!0,value:m};if(l.match(ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:m}});a.localize.preprocessor&&(c=a.localize.preprocessor(o,c));const f={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return c.map(m=>{if(!m.isToken)return m.value;const l=m.value;(we(l)||be(l))&&pe(l,t,String(n));const C=I[l[0]];return C(o,l,a.localize,f)}).join("")}function Ne(n){const t=n.match(Se);return t?t[1].replace(Pe,"'"):n}function ke(n){const t=d(n),e=t.getFullYear(),r=t.getMonth(),a=y(n,0);return a.setFullYear(e,r+1,0),a.setHours(0,0,0,0),a.getDate()}function Ye(n){const t=d(n),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(0,0,0,0),t}function Te(n,t){const e=d(n),r=d(t);return e.getTime()>r.getTime()}function We(n,t){const e=d(n),r=d(t);return+e<+r}function _e(n,t){const e=d(n),r=d(t);return e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()}class b{constructor(t){p(this,"_dateNums");t||t===0?this._dateNums=b.parse(t):this._dateNums=b.parse(new Date)}static parse(t){return typeof t=="string"?(t=t.split("T")[0],t.split("-").map(e=>+e)):t instanceof Date?[t.getFullYear(),t.getMonth()+1,t.getDate()]:t===0?[0,0,0]:[t.year,t.month,t.day]}static init(){return new b(0)}get date(){return new Date(this._dateNums[0],this._dateNums[1]-1,this._dateNums[2])}get year(){return this._dateNums[0]}get month(){return this._dateNums[1]}get day(){return this._dateNums[2]}get dayOfWeek(){return this.date.getDay()}get daysInMonth(){return ke(this.date)}get firstDayOfMonth(){return new b({year:this.year,month:this.month,day:1})}get lastDayOfMonth(){return new b(Ye(this.date))}get previousDay(){return this.clone().addDays(-1)}get nextDay(){return this.clone().addDays(1)}get previousWeek(){return this.clone().addDays(-7)}get nextWeek(){return this.clone().addDays(7)}get previousMonth(){return this.clone().addMonths(-1)}get nextMonth(){return this.clone().addMonths(1)}clone(){return new b(this.toString())}setYear(t){this._dateNums[0]=t}setMonth(t){this._dateNums[1]=t}setDay(t){return this._dateNums[2]=t,this}addYears(t){return this._dateNums[0]+=t,this}addMonths(t){return this._dateNums=b.parse(Mt(this.date,t)),this}addDays(t){return this._dateNums=b.parse(pt(this.date,t)),this}isSameDay(t){return vt(this.date,t.date)}isSameMonth(t){return _e(this.date,t.date)}isBefore(t){return We(this.date,t.date)}isAfter(t){return Te(this.date,t.date)}isZero(){return this._dateNums[0]===0&&this._dateNums[1]===0&&this._dateNums[2]===0}isValid(){const t=new Date(this.toString());return!(isNaN(t.getTime())||this.toString()!==t.toISOString().split("T")[0])}format(t){return this.isZero()?"":xe(this.date,t)}toString(){return this.isZero()?"":this._dateNums.map(t=>`${t}`.length<2?`0${t}`:`${t}`).join("-")}}exports.CalendarDate=b;exports.FormValidator=et;exports.Once=Q;exports.PublicFormController=ft;exports.SINValidator=ot;exports.TemporaryNotification=bt;exports.birthDayValidator=nt;exports.birthMonthValidator=rt;exports.birthYearValidator=at;exports.dateValidator=ct;exports.dispatch=A;exports.emailValidator=st;exports.lengthValidator=dt;exports.numericValidator=E;exports.phoneNumberValidator=it;exports.postalCodeValidator=ut;exports.regexValidator=_;exports.relay=w;exports.requiredValidator=W;
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './lib/common';
2
- export * from './lib/experimental/common';
3
2
  export * from './lib/validators';
4
3
  export * from './lib/public-form-controller';
5
4
  export * from './lib/temporary-notification-controller/temporary-notification-controller';
6
5
  export * from './lib/messaging/messaging';
6
+ export { Once } from './lib/once';
7
+ export { CalendarDate } from './lib/calendar-date';