// Version 1.16.3 kapsule - https://github.com/vasturiano/kapsule !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self).Kapsule=n()}(this,(function(){"use strict";function t(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=Array(n);r=n||r<0||d&&t-s>=a}function b(){var t=u();if(h(t))return g(t);c=setTimeout(b,function(t){var r=n-(t-l);return d?A(r,a-(t-s)):r}(t))}function g(t){return c=void 0,p&&o?y(t):(o=i=void 0,f)}function m(){var t=u(),r=h(t);if(o=arguments,i=this,l=t,r){if(void 0===c)return function(t){return s=t,c=setTimeout(b,n),v?y(t):f}(l);if(d)return clearTimeout(c),c=setTimeout(b,n),y(l)}return void 0===c&&(c=setTimeout(b,n)),f}return n=T(n)||0,e(r)&&(v=!!r.leading,a=(d="maxWait"in r)?S(T(r.maxWait)||0,n):a,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),s=0,o=l=i=c=void 0},m.flush=function(){return void 0===c?f:g(u())},m}var E=n((function t(n,r){var e=r.default,o=void 0===e?null:e,i=r.triggerUpdate,a=void 0===i||i,u=r.onChange,f=void 0===u?function(t,n){}:u;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=n,this.defaultVal=o,this.triggerUpdate=a,this.onChange=f}));return function(t){var n=t.stateInit,e=void 0===n?function(){return{}}:n,o=t.props,i=void 0===o?{}:o,a=t.methods,u=void 0===a?{}:a,f=t.aliases,c=void 0===f?{}:f,l=t.init,s=void 0===l?function(){}:l,v=t.update,d=void 0===v?function(){}:v,p=Object.keys(i).map((function(t){return new E(t,i[t])}));return function t(){for(var n=arguments.length,o=new Array(n),i=0;i