@htmlbricks/hb-input-datetime 0.60.0 → 0.60.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/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(Yt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Jr=1,Kr=2,Bt="[",Ut="[!",Gt="]",he={},x=Symbol(),Zr="http://www.w3.org/1999/xhtml",Wt=!1;var zt=Array.isArray,Qr=Array.prototype.indexOf,en=Array.from,Ve=Object.keys,_e=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyDescriptors,rn=Object.prototype,nn=Array.prototype,Xt=Object.getPrototypeOf,Jt=Object.isExtensible;function Kt(e){for(var t=0;t<e.length;t++)e[t]()}function sn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const D=2,vt=4,ht=8,me=16,G=32,z=64,Zt=128,j=256,Ye=512,A=1024,F=2048,X=4096,J=8192,re=16384,_t=32768,pt=65536,Qt=1<<17,on=1<<18,be=1<<19,an=1<<20,mt=1<<21,bt=1<<22,ne=1<<23,gt=Symbol("$state"),ln=Symbol("legacy props"),wt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},er=3,Be=8;function un(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function fn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function dn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function vn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _n(){throw new Error("https://svelte.dev/e/hydration_failed")}function pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ue(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let k=!1;function K(e){k=e}let S;function Z(e){if(e===null)throw Ue(),he;return S=e}function yt(){return Z(ae(S))}function ge(e){if(k){if(ae(S)!==null)throw Ue(),he;S=e}}function gn(){for(var e=0,t=S;;){if(t.nodeType===Be){var r=t.data;if(r===Gt){if(e===0)return t;e-=1}else(r===Bt||r===Ut)&&(e+=1)}var n=ae(t);t.remove(),t=n}}function wn(e){if(!e||e.nodeType!==Be)throw Ue(),he;return e.data}function tr(e){return e===this.v}function yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $n(e){return!yn(e,this.v)}let En=!1,Y=null;function Ge(e){Y=e}function rr(e,t=!1,r){Y={p:Y,c:null,e:null,s:e,x:null,l:null}}function nr(e){var t=Y,r=t.e;if(r!==null){t.e=null;for(var n of r)wr(n)}return e!==void 0&&(t.x=e),Y=t.p,e??{}}function ir(){return!0}const kn=new WeakMap;function Sn(e){var t=w;if(t===null)return y.f|=ne,e;if((t.f&_t)===0){if((t.f&Zt)===0)throw!t.parent&&e instanceof Error&&sr(e),e;t.b.error(e)}else $t(e,t)}function $t(e,t){for(;t!==null;){if((t.f&Zt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&sr(e),e}function sr(e){const t=kn.get(e);t&&(_e(e,"message",{value:t.message}),_e(e,"stack",{value:t.stack}))}let Pe=[],Et=[];function or(){var e=Pe;Pe=[],Kt(e)}function xn(){var e=Et;Et=[],Kt(e)}function Tn(e){Pe.length===0&&queueMicrotask(or),Pe.push(e)}function Nn(){Pe.length>0&&or(),Et.length>0&&xn()}function On(){const e=w.b;return e===null&&un(),e}function kt(e){var t=D|F,r=y!==null&&(y.f&D)!==0?y:null;return w===null||r!==null&&(r.f&j)!==0?t|=j:w.f|=be,{ctx:Y,deps:null,effects:null,equals:tr,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??w,ac:null}}function An(e,t){let r=w;r===null&&fn();var n=r.b,i=void 0,s=Nt(x),o=null,l=!y;return Bn(()=>{try{var a=e();o&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var u=()=>a;i=o?.then(u,u)??Promise.resolve(a),o=i;var f=T,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const _=(v,h=void 0)=>{o=null,c||f.activate(),h?h!==wt&&(s.f|=ne,Ot(s,h)):((s.f&ne)!==0&&(s.f^=ne),Ot(s,v)),l&&(n.update_pending_count(-1),c||f.decrement()),ur()};if(i.then(_,v=>_(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function c(){f===i?a(s):u(i)}f.then(c,c)}u(i)})}function De(e){const t=kt(e);return Or(t),t}function ar(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function Rn(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return t;t=t.parent}return null}function St(e){var t,r=w;U(Rn(e));try{ar(e),t=Pr(e)}finally{U(r)}return t}function lr(e){var t=St(e);if(e.equals(t)||(e.v=t,e.wv=Cr()),!le){var r=(te||(e.f&j)!==0)&&e.deps!==null?X:A;M(e,r)}}function Cn(e,t,r){const n=kt;if(t.length===0){r(e.map(n));return}var i=T,s=w,o=Mn(),l=On();Promise.all(t.map(a=>An(a))).then(a=>{i?.activate(),o();try{r([...e.map(n),...a])}catch(u){(s.f&re)===0&&$t(u,s)}i?.deactivate(),ur()}).catch(a=>{l.error(a)})}function Mn(){var e=w,t=y,r=Y,n=T;return function(){U(e),q(t),Ge(r),n?.activate()}}function ur(){U(null),q(null),Ge(null)}const xt=new Set;let T=null,fr=new Set,We=[];function cr(){const e=We.shift();We.length>0&&queueMicrotask(cr),e()}let ie=[],ze=null,Tt=!1,Xe=!1;class se{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#o=[];#s=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){ie=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#a=[],T=null,vr(r),vr(n),T===null?T=this:xt.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#a);for(const i of this.#i)Te(i);for(const i of this.#o)Te(i);this.#i=[],this.#o=[]}#h(t){t.f^=A;for(var r=t.first;r!==null;){var n=r.f,i=(n&(G|z))!==0,s=i&&(n&A)!==0,o=s||(n&J)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(i)r.f^=A;else if((n&vt)!==0)this.#n.push(r);else if((n&A)===0)if((n&bt)!==0){var l=r.b?.is_pending()?this.#o:this.#i;l.push(r)}else Ze(r)&&((r.f&me)!==0&&this.#a.push(r),Te(r));var a=r.first;if(a!==null){r=a;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&F)!==0?this.#c:this.#d).push(r),M(r,A);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){T=this}deactivate(){T=null;for(const t of fr)if(fr.delete(t),t(),T!==null)break}neuter(){this.#f=!0}flush(){ie.length>0?dr():this.#v(),T===this&&(this.#r===0&&xt.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)M(t,F),we(t);for(const t of this.#d)M(t,X),we(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=sn()).promise}static ensure(){if(T===null){const t=T=new se;xt.add(T),Xe||se.enqueue(()=>{T===t&&t.flush()})}return T}static enqueue(t){We.length===0&&queueMicrotask(cr),We.unshift(t)}}function Je(e){var t=Xe;Xe=!0;try{for(var r;;){if(Nn(),ie.length===0&&(T?.flush(),ie.length===0))return ze=null,r;dr()}}finally{Xe=t}}function dr(){var e=xe;Tt=!0;try{var t=0;for(Tr(!0);ie.length>0;){var r=se.ensure();if(t++>1e3){var n,i;Pn()}r.process(ie),Q.clear()}}finally{Tt=!1,Tr(e),ze=null}}function Pn(){try{hn()}catch(e){$t(e,ze)}}let oe=null;function vr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(re|J))===0&&Ze(n)&&(oe=[],Te(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Er(n):n.fn=null),oe?.length>0)){Q.clear();for(const i of oe)Te(i);oe=[]}}oe=null}}function we(e){for(var t=ze=e;t.parent!==null;){t=t.parent;var r=t.f;if(Tt&&t===w&&(r&me)!==0)return;if((r&(z|G))!==0){if((r&A)===0)return;t.f^=A}}ie.push(t)}const Q=new Map;function Nt(e,t){var r={f:0,v:e,reactions:null,equals:tr,rv:0,wv:0};return r}function R(e,t){const r=Nt(e);return Or(r),r}function Dn(e,t=!1,r=!0){const n=Nt(e);return t||(n.equals=$n),n}function E(e,t,r=!1){y!==null&&(!ue||(y.f&Qt)!==0)&&ir()&&(y.f&(D|me|bt|Qt))!==0&&!W?.includes(e)&&bn();let n=r?ye(t):t;return Ot(e,n)}function Ot(e,t){if(!e.equals(t)){var r=e.v;le?Q.set(e,t):Q.set(e,r),e.v=t;var n=se.ensure();n.capture(e,r),(e.f&D)!==0&&((e.f&F)!==0&&St(e),M(e,(e.f&j)===0?A:X)),e.wv=Cr(),hr(e,F),w!==null&&(w.f&A)!==0&&(w.f&(G|z))===0&&(H===null?Kn([e]):H.push(e))}return t}function At(e){E(e,e.v+1)}function hr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&F)===0;l&&M(s,t),(o&D)!==0?hr(s,X):l&&((o&me)!==0&&oe!==null&&oe.push(s),we(s))}}function ye(e){if(typeof e!="object"||e===null||gt in e)return e;const t=Xt(e);if(t!==rn&&t!==nn)return e;var r=new Map,n=zt(e),i=R(0),s=fe,o=l=>{if(fe===s)return l();var a=y,u=fe;q(null),Rr(s);var f=l();return q(a),Rr(u),f};return n&&r.set("length",R(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&pn();var f=r.get(a);return f===void 0?f=o(()=>{var c=R(u.value);return r.set(a,c),c}):E(f,u.value,!0),!0},deleteProperty(l,a){var u=r.get(a);if(u===void 0){if(a in l){const f=o(()=>R(x));r.set(a,f),At(i)}}else E(u,x),At(i);return!0},get(l,a,u){if(a===gt)return e;var f=r.get(a),c=a in l;if(f===void 0&&(!c||pe(l,a)?.writable)&&(f=o(()=>{var v=ye(c?l[a]:x),h=R(v);return h}),r.set(a,f)),f!==void 0){var _=d(f);return _===x?void 0:_}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var f=r.get(a);f&&(u.value=d(f))}else if(u===void 0){var c=r.get(a),_=c?.v;if(c!==void 0&&_!==x)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return u},has(l,a){if(a===gt)return!0;var u=r.get(a),f=u!==void 0&&u.v!==x||Reflect.has(l,a);if(u!==void 0||w!==null&&(!f||pe(l,a)?.writable)){u===void 0&&(u=o(()=>{var _=f?ye(l[a]):x,v=R(_);return v}),r.set(a,u));var c=d(u);if(c===x)return!1}return f},set(l,a,u,f){var c=r.get(a),_=a in l;if(n&&a==="length")for(var v=u;v<c.v;v+=1){var h=r.get(v+"");h!==void 0?E(h,x):v in l&&(h=o(()=>R(x)),r.set(v+"",h))}if(c===void 0)(!_||pe(l,a)?.writable)&&(c=o(()=>R(void 0)),E(c,ye(u)),r.set(a,c));else{_=c.v!==x;var b=o(()=>ye(u));E(c,b)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N?.set&&N.set.call(f,u),!_){if(n&&typeof a=="string"){var O=r.get("length"),$=Number(a);Number.isInteger($)&&$>=O.v&&E(O,$+1)}At(i)}return!0},ownKeys(l){d(i);var a=Reflect.ownKeys(l).filter(c=>{var _=r.get(c);return _===void 0||_.v!==x});for(var[u,f]of r)f.v!==x&&!(u in l)&&a.push(u);return a},setPrototypeOf(){mn()}})}var _r,pr,mr,br;function Rt(){if(_r===void 0){_r=window,pr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;mr=pe(t,"firstChild").get,br=pe(t,"nextSibling").get,Jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Jt(r)&&(r.__t=void 0)}}function $e(e=""){return document.createTextNode(e)}function Ee(e){return mr.call(e)}function ae(e){return br.call(e)}function ke(e,t){if(!k)return Ee(e);var r=Ee(S);if(r===null)r=S.appendChild($e());else if(t&&r.nodeType!==er){var n=$e();return r?.before(n),Z(n),n}return Z(r),r}function Ke(e,t){if(!k){var r=Ee(e);return r instanceof Comment&&r.data===""?ae(r):r}return S}function Ie(e,t=1,r=!1){let n=k?S:e;for(var i;t--;)i=n,n=ae(n);if(!k)return n;if(r&&n?.nodeType!==er){var s=$e();return n===null?i?.after(s):n.before(s),Z(s),s}return Z(n),n}function In(e){e.textContent=""}function Ln(){return!1}function Ct(e){var t=y,r=w;q(null),U(null);try{return e()}finally{q(t),U(r)}}function jn(e){w===null&&y===null&&vn(),y!==null&&(y.f&j)!==0&&w===null&&dn(),le&&cn()}function Fn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r,n=!0){var i=w;i!==null&&(i.f&J)!==0&&(e|=J);var s={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:e|F,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Te(s),s.f|=_t}catch(a){throw ee(s),a}else t!==null&&we(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&be)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&Fn(o,i),y!==null&&(y.f&D)!==0&&(e&z)===0)){var l=y;(l.effects??=[]).push(o)}}return s}function qn(e){const t=B(ht,null,!1);return M(t,A),t.teardown=e,t}function gr(e){jn();var t=w.f,r=!y&&(t&G)!==0&&(t&_t)===0;if(r){var n=Y;(n.e??=[]).push(e)}else return wr(e)}function wr(e){return B(vt|an,e,!1)}function Hn(e){se.ensure();const t=B(z|be,e,!0);return()=>{ee(t)}}function Vn(e){se.ensure();const t=B(z|be,e,!0);return(r={})=>new Promise(n=>{r.outro?kr(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function Yn(e){return B(vt,e,!1)}function Bn(e){return B(bt|be,e,!0)}function Un(e,t=0){return B(ht|t,e,!0)}function Se(e,t=[],r=[]){Cn(t,r,n=>{B(ht,()=>e(...n.map(d)),!0)})}function Gn(e,t=0){var r=B(me|t,e,!0);return r}function Mt(e,t=!0){return B(G|be,e,!0,t)}function yr(e){var t=e.teardown;if(t!==null){const r=le,n=y;Nr(!0),q(null);try{t.call(null)}finally{Nr(r),q(n)}}}function $r(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ct(()=>{i.abort(wt)});var n=r.next;(r.f&z)!==0?r.parent=null:ee(r,t),r=n}}function Wn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&G)===0&&ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||(e.f&on)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(zn(e.nodes_start,e.nodes_end),r=!0),$r(e,t&&!r),Qe(e,0),M(e,re);var n=e.transitions;if(n!==null)for(const s of n)s.stop();yr(e);var i=e.parent;i!==null&&i.first!==null&&Er(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function zn(e,t){for(;e!==null;){var r=e===t?null:ae(e);e.remove(),e=r}}function Er(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function kr(e,t){var r=[];Sr(e,r,!0),Xn(r,()=>{ee(e),t&&t()})}function Xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Sr(e,t,r){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&pt)!==0||(n.f&G)!==0;Sr(n,t,s?r:!1),n=i}}}function Jn(e){xr(e,!0)}function xr(e,t){if((e.f&J)!==0){e.f^=J,(e.f&A)===0&&(M(e,F),we(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&pt)!==0||(r.f&G)!==0;xr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let xe=!1;function Tr(e){xe=e}let le=!1;function Nr(e){le=e}let y=null,ue=!1;function q(e){y=e}let w=null;function U(e){w=e}let W=null;function Or(e){y!==null&&(W===null?W=[e]:W.push(e))}let C=null,I=0,H=null;function Kn(e){H=e}let Ar=1,Le=0,fe=Le;function Rr(e){fe=e}let te=!1;function Cr(){return++Ar}function Ze(e){var t=e.f;if((t&F)!==0)return!0;if((t&X)!==0){var r=e.deps,n=(t&j)!==0;if(r!==null){var i,s,o=(t&Ye)!==0,l=n&&w!==null&&!te,a=r.length;if((o||l)&&(w===null||(w.f&re)===0)){var u=e,f=u.parent;for(i=0;i<a;i++)s=r[i],(o||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);o&&(u.f^=Ye),l&&f!==null&&(f.f&j)===0&&(u.f^=j)}for(i=0;i<a;i++)if(s=r[i],Ze(s)&&lr(s),s.wv>e.wv)return!0}(!n||w!==null&&!te)&&M(e,A)}return!1}function Mr(e,t,r=!0){var n=e.reactions;if(n!==null&&!W?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&D)!==0?Mr(s,t,!1):t===s&&(r?M(s,F):(s.f&A)!==0&&M(s,X),we(s))}}function Pr(e){var t=C,r=I,n=H,i=y,s=te,o=W,l=Y,a=ue,u=fe,f=e.f;C=null,I=0,H=null,te=(f&j)!==0&&(ue||!xe||y===null),y=(f&(G|z))===0?e:null,W=null,Ge(e.ctx),ue=!1,fe=++Le,e.ac!==null&&(Ct(()=>{e.ac.abort(wt)}),e.ac=null);try{e.f|=mt;var c=e.fn,_=c(),v=e.deps;if(C!==null){var h;if(Qe(e,I),v!==null&&I>0)for(v.length=I+C.length,h=0;h<C.length;h++)v[I+h]=C[h];else e.deps=v=C;if(!te||(f&D)!==0&&e.reactions!==null)for(h=I;h<v.length;h++)(v[h].reactions??=[]).push(e)}else v!==null&&I<v.length&&(Qe(e,I),v.length=I);if(ir()&&H!==null&&!ue&&v!==null&&(e.f&(D|X|F))===0)for(h=0;h<H.length;h++)Mr(H[h],e);return i!==null&&i!==e&&(Le++,H!==null&&(n===null?n=H:n.push(...H))),(e.f&ne)!==0&&(e.f^=ne),_}catch(b){return Sn(b)}finally{e.f^=mt,C=t,I=r,H=n,y=i,te=s,W=o,Ge(l),ue=a,fe=u}}function Zn(e,t){let r=t.reactions;if(r!==null){var n=Qr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&D)!==0&&(C===null||!C.includes(t))&&(M(t,X),(t.f&(j|Ye))===0&&(t.f^=Ye),ar(t),Qe(t,0))}function Qe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zn(e,r[n])}function Te(e){var t=e.f;if((t&re)===0){M(e,A);var r=w,n=xe;w=e,xe=!0;try{(t&me)!==0?Wn(e):$r(e),yr(e);var i=Pr(e);e.teardown=typeof i=="function"?i:null,e.wv=Ar;var s;Wt&&En&&(e.f&F)!==0&&e.deps}finally{xe=n,w=r}}}function d(e){var t=e.f,r=(t&D)!==0;if(y!==null&&!ue){var n=w!==null&&(w.f&re)!==0;if(!n&&!W?.includes(e)){var i=y.deps;if((y.f&mt)!==0)e.rv<Le&&(e.rv=Le,C===null&&i!==null&&i[I]===e?I++:C===null?C=[e]:(!te||!C.includes(e))&&C.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&j)===0&&(o.f^=j)}if(le){if(Q.has(e))return Q.get(e);if(r){o=e;var a=o.v;return((o.f&A)===0&&o.reactions!==null||Dr(o))&&(a=St(o)),Q.set(o,a),a}}else r&&(o=e,Ze(o)&&lr(o));if((e.f&ne)!==0)throw e.v;return e.v}function Dr(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&D)!==0&&Dr(t))return!0;return!1}const Qn=-7169;function M(e,t){e.f=e.f&Qn|t}const ei=new Set,Ir=new Set;function ti(e,t,r,n={}){function i(s){if(n.capture||je.call(t,s),!s.cancelBubble)return Ct(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Tn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function et(e,t,r,n,i){var s={capture:n,passive:i},o=ti(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&qn(()=>{t.removeEventListener(e,o,s)})}let Lr=null;function je(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Lr=e;var o=0,l=Lr===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(o=a)}if(s=i[o]||e.target,s!==t){_e(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=y,c=w;q(null),U(null);try{for(var _,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];if(b!=null&&(!s.disabled||e.target===s))if(zt(b)){var[N,...O]=b;N.apply(s,[e,...O])}else b.call(s,e)}catch($){_?v.push($):_=$}if(e.cancelBubble||h===t||h===null)break;s=h}if(_){for(let $ of v)queueMicrotask(()=>{throw $});throw _}}finally{e.__root=t,delete e.currentTarget,q(f),U(c)}}}function ri(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function tt(e,t){var r=(t&Jr)!==0,n=(t&Kr)!==0,i,s=!e.startsWith("<!>");return()=>{if(k)return Ne(S,null),S;i===void 0&&(i=ri(s?e:"<!>"+e),r||(i=Ee(i)));var o=n||pr?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ee(o),a=o.lastChild;Ne(l,a)}else Ne(o,o);return o}}function ni(){if(k)return Ne(S,null),S;var e=document.createDocumentFragment(),t=document.createComment(""),r=$e();return e.append(t,r),Ne(t,r),e}function Oe(e,t){if(k){w.nodes_end=S,yt();return}e!==null&&e.before(t)}const ii=["touchstart","touchmove"];function si(e){return ii.includes(e)}function oi(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function jr(e,t){return Fr(e,t)}function ai(e,t){Rt(),t.intro=t.intro??!1;const r=t.target,n=k,i=S;try{for(var s=Ee(r);s&&(s.nodeType!==Be||s.data!==Bt);)s=ae(s);if(!s)throw he;K(!0),Z(s),yt();const o=Fr(e,{...t,anchor:s});if(S===null||S.nodeType!==Be||S.data!==Gt)throw Ue(),he;return K(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
2
  `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==he&&console.warn("Failed to hydrate: ",o),t.recover===!1&&_n(),Rt(),In(r),K(!1),jr(e,t)}finally{K(n),Z(i)}}const Ae=new Map;function Fr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){Rt();var l=new Set,a=c=>{for(var _=0;_<c.length;_++){var v=c[_];if(!l.has(v)){l.add(v);var h=si(v);t.addEventListener(v,je,{passive:h});var b=Ae.get(v);b===void 0?(document.addEventListener(v,je,{passive:h}),Ae.set(v,1)):Ae.set(v,b+1)}}};a(en(ei)),Ir.add(a);var u=void 0,f=Vn(()=>{var c=r??t.appendChild($e());return Mt(()=>{if(s){rr({});var _=Y;_.c=s}i&&(n.$$events=i),k&&Ne(c,null),u=e(c,n)||{},k&&(w.nodes_end=S),s&&nr()}),()=>{for(var _ of l){t.removeEventListener(_,je);var v=Ae.get(_);--v===0?(document.removeEventListener(_,je),Ae.delete(_)):Ae.set(_,v)}Ir.delete(a),c!==r&&c.parentNode?.removeChild(c)}});return Pt.set(u,f),u}let Pt=new WeakMap;function li(e,t){const r=Pt.get(e);return r?(Pt.delete(e),r(t)):Promise.resolve()}function rt(e,t,r=!1){k&&yt();var n=e,i=null,s=null,o=x,l=r?pt:0,a=!1;const u=(v,h=!0)=>{a=!0,_(h,v)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var v=o?i:s,h=o?s:i;v&&Jn(v),h&&kr(h,()=>{o?s=null:i=null})}const _=(v,h)=>{if(o===(o=v))return;let b=!1;if(k){const Ce=wn(n)===Ut;!!o===Ce&&(n=gn(),Z(n),K(!1),b=!0)}var N=Ln(),O=n;if(N&&(f=document.createDocumentFragment(),f.append(O=$e())),o?i??=h&&Mt(()=>h(O)):s??=h&&Mt(()=>h(O)),N){var $=T,V=o?i:s,ce=o?s:i;V&&$.skipped_effects.delete(V),ce&&$.skipped_effects.add(ce),$.add_callback(c)}else c();b&&K(!0)};Gn(()=>{a=!1,t(u),a||_(null,null)},l),k&&(n=S)}function ui(e,t){Yn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function fi(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function ci(e,t){return e==null?null:String(e)}function Fe(e,t,r,n,i,s){var o=e.__className;if(k||o!==r||o===void 0){var l=fi(r,n);(!k||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function nt(e,t,r,n){var i=e.__style;if(k||i!==t){var s=ci(t);(!k||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const di=Symbol("is custom element"),vi=Symbol("is html");function hi(e,t,r,n){var i=_i(e);k&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&qr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function it(e,t,r){var n=y,i=w;let s=k;k&&K(!1),q(null),U(null);try{t!=="style"&&(Dt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?qr(e).includes(t):r&&typeof r=="object")?e[t]=r:hi(e,t,r==null?r:String(r))}finally{q(n),U(i),s&&K(!0)}}function _i(e){return e.__attributes??={[di]:e.nodeName.includes("-"),[vi]:e.namespaceURI===Zr}}var Dt=new Map;function qr(e){var t=e.getAttribute("is")||e.nodeName,r=Dt.get(t);if(r)return r;Dt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=tn(i);for(var o in n)n[o].set&&r.push(o);i=Xt(i)}return r}function It(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var _=e[t];return _===void 0?o():(s=!0,_)};var u=!1,f=kt(()=>(u=!1,a())),c=w;return(function(_,v){if(arguments.length>0){const h=v?d(f):_;return E(f,h),u=!0,i!==void 0&&(i=h),_}return le&&u||(c.f&re)!==0?f.v:d(f)})}function pi(e){return new mi(e)}class mi{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var l=Dn(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===ln?!0:(d(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return E(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?ai:jr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Je(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||_e(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{li(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Hr;typeof HTMLElement=="function"&&(Hr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Oe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=bi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=st(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=pi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hn(()=>{Un(()=>{this.$$r=!0;for(const n of Ve(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=st(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=st(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function st(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function gi(e,t,r,n,i,s){let o=class extends Hr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ve(t).forEach(l=>{_e(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=st(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var f=pe(u,l)?.get;f?u[l]=a:u.$set({[l]:a})}}})}),n.forEach(l=>{_e(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function Vr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Re={},Lt,Yr;function yi(){if(Yr)return Lt;Yr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,a=`
3
- `,u="/",f="*",c="",_="comment",v="declaration";Lt=function(b,N){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];N=N||{};var O=1,$=1;function V(g){var p=g.match(t);p&&(O+=p.length);var L=g.lastIndexOf(a);$=~L?g.length-L:$+g.length}function ce(){var g={line:O,column:$};return function(p){return p.position=new Ce(g),at(),p}}function Ce(g){this.start=g,this.end={line:O,column:$},this.source=N.source}Ce.prototype.content=b;function ot(g){var p=new Error(N.source+":"+O+":"+$+": "+g);if(p.reason=g,p.filename=N.source,p.line=O,p.column=$,p.source=b,!N.silent)throw p}function de(g){var p=g.exec(b);if(p){var L=p[0];return V(L),b=b.slice(L.length),p}}function at(){de(r)}function qe(g){var p;for(g=g||[];p=lt();)p!==!1&&g.push(p);return g}function lt(){var g=ce();if(!(u!=b.charAt(0)||f!=b.charAt(1))){for(var p=2;c!=b.charAt(p)&&(f!=b.charAt(p)||u!=b.charAt(p+1));)++p;if(p+=2,c===b.charAt(p-1))return ot("End of comment missing");var L=b.slice(2,p-2);return $+=2,V(L),b=b.slice(p),$+=2,g({type:_,comment:L})}}function jt(){var g=ce(),p=de(n);if(p){if(lt(),!de(i))return ot("property missing ':'");var L=de(s),Ft=g({type:v,property:h(p[0].replace(e,c)),value:L?h(L[0].replace(e,c)):c});return de(o),Ft}}function m(){var g=[];qe(g);for(var p;p=jt();)p!==!1&&(g.push(p),qe(g));return g}return at(),m()};function h(b){return b?b.replace(l,c):c}return Lt}var Br;function $i(){if(Br)return Re;Br=1;var e=Re&&Re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=r;var t=e(yi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var o=(0,t.default)(n),l=typeof i=="function";return o.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;l?i(u,f,a):f&&(s=s||{},s[u]=f)}}),s}return Re}var Ei=$i();const Ur=wi(Ei);Ur.default;const Gr={version:"0.60.0"};var ki=tt(': <div class="input svelte-9w9ofo"><hb-input-number></hb-input-number></div>',3),Si=tt('<div style="margin-right:20px" class="input svelte-9w9ofo"><hb-input-date></hb-input-date></div> <div class="input svelte-9w9ofo"><hb-input-number></hb-input-number></div> : <div class="input svelte-9w9ofo"><hb-input-number></hb-input-number></div> <!>',3),xi=tt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-9w9ofo"> </div>'),Ti=tt("<div><!></div> <!>",1);const Ni={hash:"svelte-9w9ofo",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
+ `,u="/",f="*",c="",_="comment",v="declaration";Lt=function(b,N){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];N=N||{};var O=1,$=1;function V(g){var p=g.match(t);p&&(O+=p.length);var L=g.lastIndexOf(a);$=~L?g.length-L:$+g.length}function ce(){var g={line:O,column:$};return function(p){return p.position=new Ce(g),at(),p}}function Ce(g){this.start=g,this.end={line:O,column:$},this.source=N.source}Ce.prototype.content=b;function ot(g){var p=new Error(N.source+":"+O+":"+$+": "+g);if(p.reason=g,p.filename=N.source,p.line=O,p.column=$,p.source=b,!N.silent)throw p}function de(g){var p=g.exec(b);if(p){var L=p[0];return V(L),b=b.slice(L.length),p}}function at(){de(r)}function qe(g){var p;for(g=g||[];p=lt();)p!==!1&&g.push(p);return g}function lt(){var g=ce();if(!(u!=b.charAt(0)||f!=b.charAt(1))){for(var p=2;c!=b.charAt(p)&&(f!=b.charAt(p)||u!=b.charAt(p+1));)++p;if(p+=2,c===b.charAt(p-1))return ot("End of comment missing");var L=b.slice(2,p-2);return $+=2,V(L),b=b.slice(p),$+=2,g({type:_,comment:L})}}function jt(){var g=ce(),p=de(n);if(p){if(lt(),!de(i))return ot("property missing ':'");var L=de(s),Ft=g({type:v,property:h(p[0].replace(e,c)),value:L?h(L[0].replace(e,c)):c});return de(o),Ft}}function m(){var g=[];qe(g);for(var p;p=jt();)p!==!1&&(g.push(p),qe(g));return g}return at(),m()};function h(b){return b?b.replace(l,c):c}return Lt}var Br;function $i(){if(Br)return Re;Br=1;var e=Re&&Re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=r;var t=e(yi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var o=(0,t.default)(n),l=typeof i=="function";return o.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;l?i(u,f,a):f&&(s=s||{},s[u]=f)}}),s}return Re}var Ei=$i();const Ur=wi(Ei);Ur.default;const Gr={version:"0.60.2"};var ki=tt(': <div class="input svelte-9w9ofo"><hb-input-number></hb-input-number></div>',3),Si=tt('<div style="margin-right:20px" class="input svelte-9w9ofo"><hb-input-date></hb-input-date></div> <div class="input svelte-9w9ofo"><hb-input-number></hb-input-number></div> : <div class="input svelte-9w9ofo"><hb-input-number></hb-input-number></div> <!>',3),xi=tt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-9w9ofo"> </div>'),Ti=tt("<div><!></div> <!>",1);const Ni={hash:"svelte-9w9ofo",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
6
  * Copyright 2011-2021 The Bootstrap Authors
package/manifest.json CHANGED
@@ -277,5 +277,5 @@
277
277
  "size": {},
278
278
  "iifePath": "main.iife.js",
279
279
  "repoName": "@htmlbricks/hb-input-datetime",
280
- "version": "0.60.0"
280
+ "version": "0.60.2"
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-datetime",
3
- "version": "0.60.0",
3
+ "version": "0.60.2",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [