ku4web-components 6.7.3 → 6.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/angular/index.js +1 -1
  2. package/angular/index.mjs +1 -1
  3. package/dist/cjs/index-69919a4f.js +15 -0
  4. package/dist/cjs/{index-4ca7863f.js → index-8b7230db.js} +1 -1
  5. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
  6. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  7. package/dist/cjs/ku4-carousel.cjs.entry.js +2 -2
  8. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  9. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  10. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  11. package/dist/cjs/ku4-focus-trap.cjs.entry.js +2 -2
  12. package/dist/cjs/ku4-form.cjs.entry.js +2 -2
  13. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  14. package/dist/cjs/ku4-label.cjs.entry.js +3 -3
  15. package/dist/cjs/ku4-mask.cjs.entry.js +3 -3
  16. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  17. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  18. package/dist/cjs/ku4-preview.cjs.entry.js +2 -2
  19. package/dist/cjs/ku4-tab-list.cjs.entry.js +3 -3
  20. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  21. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  22. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  23. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  24. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  25. package/dist/cjs/ku4web-components.cjs.js +2 -2
  26. package/dist/cjs/loader.cjs.js +2 -2
  27. package/dist/cjs/{shadow-css-8ae6d6e1.js → shadow-css-cf936b02.js} +1 -1
  28. package/dist/cjs/{uid-04ee16aa.js → uid-682bb993.js} +1 -1
  29. package/dist/esm/index-adc31e97.js +3 -0
  30. package/dist/esm/{index-21724a14.js → index-ed88cd9f.js} +1 -1
  31. package/dist/esm/ku4-carousel-controls.entry.js +2 -2
  32. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  33. package/dist/esm/ku4-carousel.entry.js +2 -2
  34. package/dist/esm/ku4-col.entry.js +1 -1
  35. package/dist/esm/ku4-drawer.entry.js +1 -1
  36. package/dist/esm/ku4-feature.entry.js +2 -2
  37. package/dist/esm/ku4-focus-trap.entry.js +2 -2
  38. package/dist/esm/ku4-form.entry.js +2 -2
  39. package/dist/esm/ku4-grid.entry.js +1 -1
  40. package/dist/esm/ku4-label.entry.js +3 -3
  41. package/dist/esm/ku4-mask.entry.js +3 -3
  42. package/dist/esm/ku4-modal.entry.js +3 -3
  43. package/dist/esm/ku4-panel.entry.js +1 -1
  44. package/dist/esm/ku4-preview.entry.js +2 -2
  45. package/dist/esm/ku4-tab-list.entry.js +3 -3
  46. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  47. package/dist/esm/ku4-tab.entry.js +3 -3
  48. package/dist/esm/ku4-table.entry.js +1 -1
  49. package/dist/esm/ku4-tooltip.entry.js +2 -2
  50. package/dist/esm/ku4-validation.entry.js +2 -2
  51. package/dist/esm/ku4web-components.js +2 -2
  52. package/dist/esm/loader.js +2 -2
  53. package/dist/esm/{shadow-css-1257b266.js → shadow-css-4cd4480f.js} +1 -1
  54. package/dist/esm/{uid-7b4b0e6e.js → uid-a87782ca.js} +1 -1
  55. package/dist/esm-es5/index-adc31e97.js +1 -0
  56. package/dist/esm-es5/{index-21724a14.js → index-ed88cd9f.js} +1 -1
  57. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  58. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  59. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  60. package/dist/esm-es5/ku4-col.entry.js +1 -1
  61. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  62. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  63. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  64. package/dist/esm-es5/ku4-form.entry.js +1 -1
  65. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  66. package/dist/esm-es5/ku4-label.entry.js +1 -1
  67. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  68. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  69. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  70. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  71. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  72. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  73. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  74. package/dist/esm-es5/ku4-table.entry.js +1 -1
  75. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  76. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  77. package/dist/esm-es5/ku4web-components.js +1 -1
  78. package/dist/esm-es5/loader.js +1 -1
  79. package/dist/esm-es5/{shadow-css-1257b266.js → shadow-css-4cd4480f.js} +0 -0
  80. package/dist/esm-es5/uid-a87782ca.js +1 -0
  81. package/dist/ku4web-components/ku4web-components.esm.js +1 -1
  82. package/dist/ku4web-components/ku4web-components.js +1 -1
  83. package/dist/ku4web-components/{p-2f4a16d7.entry.js → p-003842e3.entry.js} +1 -1
  84. package/dist/ku4web-components/{p-220c33c5.system.entry.js → p-00f6f7a2.system.entry.js} +1 -1
  85. package/dist/ku4web-components/{p-a4cd5761.entry.js → p-0ca65b63.entry.js} +1 -1
  86. package/dist/ku4web-components/{p-6fc54c2b.system.entry.js → p-0e578877.system.entry.js} +1 -1
  87. package/dist/ku4web-components/p-0f3da44d.system.entry.js +1 -0
  88. package/dist/ku4web-components/{p-2da96838.system.entry.js → p-11757f38.system.entry.js} +1 -1
  89. package/dist/ku4web-components/{p-6c7c6b42.system.entry.js → p-15a87049.system.entry.js} +1 -1
  90. package/dist/ku4web-components/{p-7875dc99.entry.js → p-23ff9bcd.entry.js} +1 -1
  91. package/dist/ku4web-components/p-29a8bbab.entry.js +1 -0
  92. package/dist/ku4web-components/{p-55f5c91c.system.js → p-3074face.system.js} +1 -1
  93. package/dist/ku4web-components/{p-56f61856.entry.js → p-36f621f0.entry.js} +1 -1
  94. package/dist/ku4web-components/{p-9404f926.system.entry.js → p-376b72f4.system.entry.js} +1 -1
  95. package/dist/ku4web-components/{p-5119224c.entry.js → p-3bf6b262.entry.js} +1 -1
  96. package/dist/ku4web-components/{p-2df06b36.system.entry.js → p-416cf70d.system.entry.js} +1 -1
  97. package/dist/ku4web-components/{p-332a5a54.entry.js → p-46b0daaf.entry.js} +1 -1
  98. package/dist/ku4web-components/{p-f6330722.js → p-4eaf20b7.js} +0 -0
  99. package/dist/ku4web-components/{p-6f6a8c8d.entry.js → p-4f30a3b4.entry.js} +1 -1
  100. package/dist/ku4web-components/p-54fb5b7d.js +1 -0
  101. package/dist/ku4web-components/{p-e2659cc2.system.entry.js → p-5cccec1b.system.entry.js} +1 -1
  102. package/dist/ku4web-components/{p-b3ad84eb.system.js → p-68376c90.system.js} +1 -1
  103. package/dist/ku4web-components/{p-6715c004.system.entry.js → p-6c6c1035.system.entry.js} +1 -1
  104. package/dist/ku4web-components/{p-4243b0a9.system.entry.js → p-76ed1a14.system.entry.js} +1 -1
  105. package/dist/ku4web-components/{p-f33f1619.entry.js → p-7d459d29.entry.js} +1 -1
  106. package/dist/ku4web-components/p-7fb3c20b.entry.js +1 -0
  107. package/dist/ku4web-components/p-8091c9a5.js +1 -0
  108. package/dist/ku4web-components/{p-9d027a50.entry.js → p-80c99a74.entry.js} +1 -1
  109. package/dist/ku4web-components/{p-3d59749e.entry.js → p-825c4eb1.entry.js} +1 -1
  110. package/dist/ku4web-components/p-89670006.system.entry.js +1 -0
  111. package/dist/ku4web-components/{p-9260407c.entry.js → p-8e94fc34.entry.js} +1 -1
  112. package/dist/ku4web-components/{p-bb380a04.entry.js → p-918a802a.entry.js} +1 -1
  113. package/dist/ku4web-components/{p-3742c929.entry.js → p-9d3e0ac4.entry.js} +1 -1
  114. package/dist/ku4web-components/{p-be3b5409.system.entry.js → p-9dfc9b1f.system.entry.js} +1 -1
  115. package/dist/ku4web-components/{p-0943c493.js → p-a145181f.js} +1 -1
  116. package/dist/ku4web-components/{p-996461ba.entry.js → p-a3636f09.entry.js} +1 -1
  117. package/dist/ku4web-components/{p-22afbc6b.system.entry.js → p-a43cea20.system.entry.js} +1 -1
  118. package/dist/ku4web-components/{p-43d724df.system.entry.js → p-a51c6fe5.system.entry.js} +1 -1
  119. package/dist/ku4web-components/p-ad57c6a3.system.js +1 -0
  120. package/dist/ku4web-components/{p-b2af9e06.system.entry.js → p-adbc2f7a.system.entry.js} +1 -1
  121. package/dist/ku4web-components/{p-e77aa4b5.system.js → p-b1530d9c.system.js} +0 -0
  122. package/dist/ku4web-components/{p-ee51fe4d.system.entry.js → p-b32c7075.system.entry.js} +1 -1
  123. package/dist/ku4web-components/{p-5acd5997.entry.js → p-ba6e9e3d.entry.js} +1 -1
  124. package/dist/ku4web-components/{p-c305fd7d.entry.js → p-c52796ac.entry.js} +1 -1
  125. package/dist/ku4web-components/{p-d56159f9.system.entry.js → p-db4732d6.system.entry.js} +1 -1
  126. package/dist/ku4web-components/{p-90553d69.system.entry.js → p-dd984902.system.entry.js} +1 -1
  127. package/dist/ku4web-components/{p-0669a534.entry.js → p-e2515ee6.entry.js} +1 -1
  128. package/dist/ku4web-components/{p-746378d8.system.entry.js → p-e4e56edf.system.entry.js} +1 -1
  129. package/dist/ku4web-components/{p-f23287da.entry.js → p-e56f956e.entry.js} +1 -1
  130. package/dist/ku4web-components/p-e9482cb1.system.js +1 -0
  131. package/dist/ku4web-components/p-f5f5958d.system.entry.js +1 -0
  132. package/package.json +25 -25
  133. package/react/index.js +1 -1
  134. package/react/index.mjs +1 -1
  135. package/vue/index.js +1 -1
  136. package/vue/index.mjs +1 -1
  137. package/vue3/index.js +1 -1
  138. package/vue3/index.mjs +1 -1
  139. package/dist/cjs/index-2d850c25.js +0 -15
  140. package/dist/esm/index-4dba724d.js +0 -3
  141. package/dist/esm-es5/index-4dba724d.js +0 -1
  142. package/dist/esm-es5/uid-7b4b0e6e.js +0 -1
  143. package/dist/ku4web-components/p-0af98743.js +0 -1
  144. package/dist/ku4web-components/p-36e2caf6.system.entry.js +0 -1
  145. package/dist/ku4web-components/p-6981c0c5.system.js +0 -1
  146. package/dist/ku4web-components/p-74ef5565.system.entry.js +0 -1
  147. package/dist/ku4web-components/p-96c08f79.system.entry.js +0 -1
  148. package/dist/ku4web-components/p-d1b4d5dc.entry.js +0 -1
  149. package/dist/ku4web-components/p-d44118ae.js +0 -1
  150. package/dist/ku4web-components/p-d9a5870c.entry.js +0 -1
  151. package/dist/ku4web-components/p-e11b977e.system.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-0943c493.js";import{a as i,Y as e,t as h}from"./p-0af98743.js";const n=class{constructor(s){t(this,s),this.charIndexes=[],this.reverseCharIndexes=[],this.previousValue="",this.currentValue="",this.touchStart=!1,this.template="",this.ban="",this.pattern="",this.char="_",this.hidden=!1,this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleInput=this.handleInput.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.init()}init(){this.chars=this.char&&new RegExp(this.char),this.banned=this.ban&&new RegExp(this.ban);const t=this.pattern.replace(/[\s\n]/gm,"");return this.patterns=t.substr(1).split(t[0]).map((t=>{try{return t&&new RegExp(t)||null}catch(s){}})),this.charIndexes=this.template.split("").reduce(((t,s,i)=>(this.chars.test(s)&&t.push(i),t)),[]),this.reverseCharIndexes=[...this.charIndexes].reverse(),this}templateHandler(t,s){const{input:e,previousCharIndex:h,previousValue:n,currentValue:r,value:a,char:o}=this,c=i.unmask(n,s,o).length<i.unmask(r,s,o).length?h+1:h;this.init().value=i.mask(i.unmask(a,s,o),t,o),e.setSelectionRange(c,c)}charHandler(t,s){const{value:e,template:h}=this;this.init().value=i.mask(i.unmask(e,h,s),h,t)}get previousCharIndex(){return this.reverseCharIndexes.find((t=>this.selectionStart>t))||this.charIndexes[0]}get value(){return this.currentValue}set value(t){const{chars:s,hidden:i,input:e}=this,h=t.search(s);this.currentValue=t,e.value=i&&h>-1?t.substring(0,h):t}handleTouchStart(){this.touchStart=!0}handleFocus(){if(window.document.documentMode)return;const{input:t,template:s,char:h,chars:n,touchStart:r}=this,a=i.unmask(t.value,s,h),o=i.unmask(this.value,s,h);this.value=i.mask(a!==o?a:o,s,h),e(0).then((()=>{const s=t.value.search(n),i=s<0?t.value.length:s;this.input.setSelectionRange(s<0&&!r?0:i,i),this.touchStart=!1}))}handleBlur(){const{template:t,char:s}=this;h.isEmpty(i.unmask(this.value,t,s))&&(this.value="")}handleKeyDown(t){if(window.document.documentMode)return;const{banned:s,hidden:e,template:h,char:n}=this;t.key&&1===t.key.length&&s&&s.test(t.key)&&!(t.altKey||t.ctrlKey||t.metaKey)&&t.preventDefault(),this.previousValue=e?i.mask(i.unmask(t.target.value,h,n),h,n):t.target.value,this.selectionStart=t.target.selectionStart,this.selectionEnd=t.target.selectionEnd}handleInput(t){if(window.document.documentMode)return;const{input:s,template:e,char:n,chars:r,previousValue:a,banned:o,selectionStart:c,selectionEnd:l,previousCharIndex:u,patterns:d,charIndexes:p,reverseCharIndexes:f}=this;if(r.test(this.previousValue)||"input"===t.type&&!t.inputType||"insertFromPaste"===t.inputType||"deleteContentBackward"===t.inputType||"deleteContentForward"===t.inputType||"deleteByCut"===t.inputType||c!==l){if("insertFromPaste"===t.inputType)try{return navigator.clipboard.readText().then((t=>{const u=i.unmask(t,e,n).replace(new RegExp(o,"g"),"");if(h.isNullOrEmpty(u))return this.value=a,void s.setSelectionRange(c,c);if(!o||!o.test(u)){let t=a;if(c<l){const s=f.find((t=>t<=c-1)),h=f.find((t=>t<=l-1)),r=p.findIndex((t=>t===s)),o=p.findIndex((t=>t===h)),u=i.unmask(a,e,n),d=u.substring(0,r+1)+u.substring(o+1,a.length);t=i.mask(d,e,n)}const h=p.find((t=>t>=c)),o=p.findIndex((t=>t===h)),d=i.unmask(t,e,n);t=d.substring(0,o)+u+d.substring(o,a.length),this.value=i.mask(t,e,n);const v=p[o+u.length]||this.value.search(r)||this.value.length;s.setSelectionRange(v,v)}})),this.value=a,void s.setSelectionRange(c,c)}catch(t){return this.value=a,void s.setSelectionRange(c,c)}if("deleteContentBackward"!==t.inputType&&"deleteByCut"!==t.inputType){if("deleteContentForward"===t.inputType){const t=p.find((t=>t>=c)),h=p.findIndex((s=>s===t)),r=i.unmask(a,e,n),o=r.substring(0,h)+r.substring(h+1,a.length);return this.value=i.mask(o,e,n),void s.setSelectionRange(c,c)}if(!(t.altKey||t.ctrlKey||t.metaKey))if(t.data)if(r.test(a.charAt(c))||c===e.length){const h=i.unmask(a,e,n);this.value=i.mask(h+t.data,e,n);const o=this.value.search(r),c=o<0?e.length:o;s.setSelectionRange(c,c);const l=p.findIndex((t=>t>=c));this.validate(t.data,d[l<0?p.length-1:l-1])}else{let h=a;if(c<l){const t=f.find((t=>t<=c-1)),s=f.find((t=>t<=l-1)),r=p.findIndex((s=>s===t)),o=p.findIndex((t=>t===s)),u=i.unmask(a,e,n),d=u.substring(0,r+1)+u.substring(o+1,a.length);h=i.mask(d,e,n)}const r=p.find((t=>t>=c)),o=p.findIndex((t=>t===r)),u=i.unmask(h,e,n);h=u.substring(0,o)+t.data+u.substring(o,a.length);const v=p.find((t=>t>r));this.value=i.mask(h,e,n),s.setSelectionRange(v,v);const m=p.findIndex((t=>t>=v));this.validate(t.data,d[m<0?p.length-1:m-1])}else if("input"!==t.type||t.inputType)this.value=a,s.setSelectionRange(c,c);else{const{value:s}=t.target,h=p.find((t=>t>=c)),r=p.findIndex((t=>t===h)),a=i.unmask(s,e,n),l=s.replace(new RegExp(o,"g"),""),u=a.substring(0,r)+l,f=p.find((t=>t>h)),v=p.findIndex((t=>t>=f)),m=v<0?p.length-1:v-1;this.value=i.mask(u,e,n),this.validate(u,d[m])}}else{const t=f.find((t=>t<=c-1)),h=f.find((t=>t<=l-1)),r=p.findIndex((s=>s===t)),o=p.findIndex((t=>t===h)),d=i.unmask(a,e,n);if(r<o){const t=d.substring(0,r+1)+d.substring(o+1,a.length);this.value=i.mask(t,e,n),t&&r>-1?s.setSelectionRange(u+1,u+1):s.setSelectionRange(u,u)}else{const t=d.substring(0,r)+d.substring(o+1,a.length);this.value=i.mask(t,e,n),s.setSelectionRange(u,u)}}}else this.value=a}validate(t,s){const{previousValue:i,input:e,value:n,selectionStart:r}=this;h.exists(s)&&!(s.test(t)||/\(\?[!<=]/.test(s.toString())&&s.test(n))&&(this.value=i,e.setSelectionRange(r,r))}componentWillLoad(){this.input=document.getElementById(this.for),h.exists(this.input)?(this.input.addEventListener("focus",this.handleFocus),this.input.addEventListener("blur",this.handleBlur),this.input.addEventListener("keydown",this.handleKeyDown),this.input.addEventListener("input",this.handleInput),this.input.addEventListener("ku4-mask-input",this.handleInput),this.input.addEventListener("touchstart",this.handleTouchStart,{passive:!0})):console.error("ku4-mask must have a valid `for` referencing target field `id`.")}disconnectedCallback(){this.input&&this.input.removeEventListener&&(this.input.removeEventListener("focus",this.handleFocus),this.input.removeEventListener("blur",this.handleBlur),this.input.removeEventListener("keydown",this.handleKeyDown),this.input.removeEventListener("input",this.handleInput),this.input.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}))}render(){return s("slot",null)}static get watchers(){return{template:["templateHandler"],char:["charHandler"]}}};n.style=":host{display:none}";export{n as ku4_mask}
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function u(t){try{a(r.next(t))}catch(e){o(e)}}function s(t){try{a(r["throw"](t))}catch(e){o(e)}}function a(t){t.done?n(t.value):i(t.value).then(u,s)}a((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(t){return function(e){return a([t,e])}}function a(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(s){u=[6,s];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register([],(function(t){"use strict";return{execute:function(){var e=this;t("h",l);var n=function(){function t(){}t.isNull=function(t){return null===t};t.isEmpty=function(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1};t.isUndefined=function(t){return void 0===t};t.isZero=function(t){return 0===t};t.exists=function(e){return!(t.isUndefined(e)||t.isNull(e))};t.isNullOrEmpty=function(e){return!t.exists(e)||t.isEmpty(e)};t.isArray=function(t){return Array.isArray(t)};t.isBool=function(t){return"boolean"==typeof t};t.isTrue=function(e){return t.isBool(e)&&!0===e};t.isFalse=function(e){return t.isBool(e)&&!1===e};t.isDate=function(t){return t instanceof Date};t.isNumber=function(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)};t.isEven=function(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0};t.isOdd=function(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)};t.isString=function(t){return"string"==typeof t||t instanceof String};t.isFunction=function(t){return t instanceof Function};t.isAsyncFunction=function(e){try{return"AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(t){return!1}};t.isPromise=function(t){return t instanceof Promise};t.isObject=function(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))};t.isObjectLiteral=function(e){return t.isObject(e)&&e.constructor==={}.constructor};t.isTruthy=function(e){return!t.isFalsy(e)};t.isFalsy=function(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)};return t}();t("t",n);function r(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}return"".concat.apply("",t)}function i(t){var e=[];for(var n=1;n<arguments.length;n++){e[n-1]=arguments[n]}return e.reduce((function(t,e,n){return t.replace(new RegExp("\\{".concat(n,"\\}"),"g"),e&&e.toString?e.toString():e)}),t)}function o(t){return u(s(t))}function u(t){return n.exists(t)&&n.isFunction(t.replace)?t.replace(/^[\s\n]*/,""):t}function s(t){return n.exists(t)&&n.isFunction(t.replace)?t.replace(/[\s\n]*$/,""):t}var a=t("a",Object.freeze({__proto__:null,build:r,chunk:function(t,e){if(e===void 0){e=0}if(!n.isString(t)||Number.isNaN(e)||e<0)return[];if(e<t.length){var r=0;var i=e||t.length,o=[];for(;r<t.length;)o.push(t.slice(r,r+i)),r+=i;return o}return[t]},format:i,trim:o,trimStart:u,trimEnd:s,capitalize:function(t){if(t===void 0){t=""}return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(t,e,r){if(r===void 0){r="_"}return n.isFunction(e)?e(t):n.isString(e)&&t.split("").reduce((function(t,e){return t.replace(new RegExp(r),e)}),e)},unmask:function(t,e,r){if(r===void 0){r="_"}var i=new RegExp(r);return n.isFunction(e)?e(t):n.isString(e)&&t.split("").reduce((function(t,n,r){return!i.test(n)&&i.test(e.charAt(r))?t+n:t}),"")}}));var c=t("o",(function(t){return t.reduce((function(t,e){return t.includes(e)||t.push(e),t}),[])}));var f=function(){function t(t){this._list=t,this._head=0}Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.length<1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"index",{get:function(){return this._head},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"length",{get:function(){return this._list.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"current",{get:function(){return this._list[this._head]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"next",{get:function(){var t=this.length;var e=this._head;return this._head=e++<t-1?e:0,this.current},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"prev",{get:function(){var t=this.length;var e=this._head;return this._head=--e<0?t-1:e,this.current},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"peekNext",{get:function(){var t=this.length,e=this._head;return this._list[e+1<t?e+1:0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"peekPrev",{get:function(){var t=this.length,e=this._head;return this._list[e-1<0?t-1:e-1]},enumerable:false,configurable:true});return t}();t("c",f);function l(t,e){try{return t()}catch(n){return e}}l.async=function(t,n){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,t()];case 1:return[2,r.sent()];case 2:e=r.sent();return[2,n];case 3:return[2]}}))}))};function p(t,e){if(e===void 0){e=0}var n=Math.pow(10,-e);return Math.round(parseFloat((t*n).toFixed(Math.abs(e))))/n}function h(t,e){if(e===void 0){e=0}return p(t+5*Math.pow(10,e-1),e)}function y(t,e){if(e===void 0){e=0}if(0===t)return 0;return p(t-5*Math.pow(10,e-1),e)}function d(t,e){if(e===void 0){e=0}return t<0?h(t,e):y(t,e)}function b(t){var e=function(t,n,r){if(n===void 0){n=0}if(r===void 0){r=1}return 0<t?e(--t,r,n+r):n};return e(t)}function g(t){var e=0,n=1,r=0;for(;t>1;)r=e,e=n,n+=r,t--;return t<1?e:n}function v(t,e){if(e===void 0){e=0}var n=parseInt(t);return Number.isNaN(n)?e:n}Object.freeze({__proto__:null,random:function(t,e){if(t===void 0){t=0}if(e===void 0){e=1}return Math.random()*(e-t)+t},round:p,roundUp:h,roundDown:y,roundTowardZero:d,gcd:function t(e,n){return 0===n?Math.abs(e):t(n,e%n)},fib:b,fib2:g,fibArray:function(t){return Array(t).fill(0).map((function(){return b(--t)})).reverse()},fib2Array:function(t){return Array(t).fill(0).map((function(){return g(--t)})).reverse()},tryParseInt:v,tryParseFloat:function(t,e){if(e===void 0){e=0}var n=parseFloat(t);return Number.isNaN(n)?e:n}});var m=function(){function t(t,e){if(t===void 0){t=0}if(e===void 0){e=0}if(!n.isNumber(t)||!n.isNumber(e))throw new Error("Coord requires numeric x and y values");this._x=t,this._y=e}Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return{x:this.x,y:this.y}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"half",{get:function(){return this.divide(new t(2,2))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"abs",{get:function(){return new t(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y};t.prototype.add=function(e){return new t(this.x+e.x,this.y+e.y)};t.prototype.subtract=function(e){return new t(this.x-e.x,this.y-e.y)};t.prototype.multiply=function(e){return new t(this.x*e.x,this.y*e.y)};t.prototype.divide=function(e){return new t(this.x/e.x,this.y/e.y)};t.prototype.round=function(e){if(e===void 0){e=0}return new t(p(this.x,e),p(this.y,e))};t.prototype.toString=function(){return"(".concat(this.x,",").concat(this.y,")")};t.canParse=function(e){return n.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):n.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof t};t.parse=function(e){return n.exists(e)?e instanceof t?e:n.isArray(e)?new t(e[0],e[1]):n.isObjectLiteral(e)&&n.exists(e.x)&&n.exists(e.y)?new t(e.x,e.y):null:null};t.tryParse=function(e){return l((function(){return t.parse(e)}),null)};return t}();var _=function(t){__extends(e,t);function e(e,n){if(e===void 0){e=0}if(n===void 0){n=0}var r=this;r=t.call(this,e,n)||this,r._lengthSquared=Math.pow(e,2)+Math.pow(n,2),r._magnitude=Math.sqrt(r._lengthSquared),r._unitNormalX=0===e&&0===n?0:e/r._magnitude,r._unitNormalY=0===e&&0===n?0:n/r._magnitude;return r}Object.defineProperty(e.prototype,"magnitude",{get:function(){return this._magnitude},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isZero",{get:function(){return 0===this.x&&0===this.y},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"normal",{get:function(){return new e(this._unitNormalX,this._unitNormalY)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"invert",{get:function(){return new e(-this.x,-this.y)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"norm",{get:function(){return new e(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"perpendicular",{get:function(){return new e(-this.y,this.x)},enumerable:false,configurable:true});e.prototype.equals=function(t){return t instanceof e&&this.x===t.x&&this.y===t.y};e.prototype.add=function(t){return t instanceof e?new e(this.x+t.x,this.y+t.y):null};e.prototype.dot=function(t){return t instanceof e?this.x*t.x+this.y*t.y:null};e.prototype.perpendicularAtTo=function(t){if(!(t instanceof e))return null;var n=t.add(this.projectionOfOnto(t).invert);return new e(n.x,n.y)};e.prototype.projectionOfOnto=function(t){if(!(t instanceof e))return null;var n=t.normal.scale(this.dot(t.normal));return new e(n.x,n.y)};e.prototype.scale=function(t){return new e(this.x*t,this.y*t)};e.prototype.unitNormalDot=function(t){return t instanceof e?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null};e.prototype.reflect=function(t){if(!(t instanceof e))return null;if(t.isZero)return this;var n=t.normal;return this.add(n.scale(2*n.dot(this)).invert)};e.prototype.round=function(t){if(t===void 0){t=0}return new e(p(this.x,t),p(this.y,t))};return e}(m);var x=function(t){__extends(e,t);function e(e,n){return t.call(this,e,n)||this}e.prototype.isAbove=function(t){return this.y<t.y};e.prototype.isBelow=function(t){return this.y>t.y};e.prototype.isLeftOf=function(t){return this.x<t.x};e.prototype.isRightOf=function(t){return this.x>t.x};e.prototype.distanceFrom=function(t){return new _(this.x-t.x,this.y-t.y)};e.prototype.distanceTo=function(t){return this.distanceFrom(t).invert};e.canParse=function(t){return t instanceof e||m.canParse(t)};e.parse=function(t){if(t instanceof e)return t;var n=m.parse(t);return new e(n.x,n.y)};e.tryParse=function(t){return l((function(){return e.parse(t)}),null)};return e}(m);var w=function(){function t(t,e,n,r){if(t===void 0){t=0}if(e===void 0){e=0}if(n===void 0){n=0}if(r===void 0){r=0}this.origin=new x(t,e),this.dimensions=new m(n,r),this.diagonal=x.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}t.prototype.contains=function(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)};t.prototype.aspectToFit=function(e){var n=this.dimensions,r=e.dimensions,i=r.x,o=r.y;var u=n.x,s=n.y;return u>s&&0!==u?(s*=i/u,u=i,s>o&&(s=o,u*=s/n.y)):s>o&&(u*=o/s,s=o),new t(this.origin.x,this.origin.y,u,s)};return t}();t("M",w);var O=t("j",(function(t,e,n){if(n===void 0){n=!1}var r;return function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var u=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(void 0,i)}),e),u&&t.apply(void 0,i)}}));var N=function(){function t(t){this._milliseconds=t}Object.defineProperty(t.prototype,"isRunning",{get:function(){return n.exists(this._intervalId)},enumerable:false,configurable:true});t.prototype.onInterval=function(t){return this.clear(),this._didInterval=t,this};t.prototype.start=function(){var t=this;return this.clear(),this._intervalId=setInterval((function(){t._didInterval()}),this._milliseconds),this};t.prototype.clear=function(){return clearInterval(this._intervalId),this._intervalId=null,this};return t}();t("L",N);var j=function(){function t(t){this._milliseconds=t}Object.defineProperty(t.prototype,"isRunning",{get:function(){return n.exists(this._timeoutId)},enumerable:false,configurable:true});t.prototype.onTimeout=function(t){return this.clear(),this._didTimeout=t,this};t.prototype.start=function(){var t=this;return this.clear(),this._timeoutId=setTimeout((function(){t._didTimeout()}),this._milliseconds),this};t.prototype.clear=function(){return clearTimeout(this._timeoutId),this._timeoutId=null,this};return t}();t("C",j);var P=t("Y",(function(t){return new Promise((function(e){return setTimeout(e,t)}))}));function A(t){var e=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),r=Math.random().toString().substring(2);return n.concat(r).substring(0,e)}function F(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var S=t("R",Object.freeze({__proto__:null,uid:A,uuid:F,suid:function(){return Symbol(A())},suuid:function(){return Symbol(F())}}));Object.freeze({__proto__:null,pattern:function(t){return t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\")},escape:function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?_]+=[^=?_]*(&[^=?_]+=[^=?_]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i})}}}));