@kizmann/pico-js 1.0.13 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +27 -7
  2. package/dist/pico-js.browser.js +2 -0
  3. package/dist/pico-js.browser.js.map +1 -0
  4. package/dist/pico-js.esm.js +2 -0
  5. package/dist/pico-js.esm.js.map +1 -0
  6. package/package.json +20 -7
  7. package/src/dom/DomAttribute.js +374 -0
  8. package/src/dom/DomBuilder.js +152 -0
  9. package/src/dom/DomEvent.js +253 -0
  10. package/src/dom/DomFinder.js +669 -0
  11. package/src/dom/DomForm.js +57 -0
  12. package/src/dom/DomGlobal.js +193 -0
  13. package/src/dom/DomInview.js +332 -0
  14. package/src/dom/DomMeta.js +66 -0
  15. package/src/dom/DomObserver.js +57 -0
  16. package/src/dom/DomRectangle.js +657 -0
  17. package/src/format/FormatFile.js +54 -0
  18. package/src/format/FormatOption.js +108 -0
  19. package/src/format/FormatParam.js +107 -0
  20. package/src/format/FormatParser.js +156 -0
  21. package/src/format/FormatUrl.js +75 -0
  22. package/src/index.browser.js +10 -0
  23. package/src/index.esm.js +138 -0
  24. package/src/now/NowDefault.js +533 -0
  25. package/src/now/NowFormat.js +196 -0
  26. package/src/now/NowGrid.js +251 -0
  27. package/src/now/NowHuman.js +118 -0
  28. package/src/now/NowMatch.js +175 -0
  29. package/src/now/NowRange.js +70 -0
  30. package/src/now/NowWalker.js +544 -0
  31. package/src/tool/scope.js +103 -0
  32. package/src/utils/Array.js +986 -0
  33. package/src/utils/Cookie.js +184 -0
  34. package/src/utils/Data.js +200 -0
  35. package/src/utils/Dom.js +208 -0
  36. package/src/utils/Event.js +140 -0
  37. package/src/utils/Format.js +62 -0
  38. package/src/utils/Hash.js +164 -0
  39. package/src/utils/Locale.js +229 -0
  40. package/src/utils/Mixed.js +887 -0
  41. package/src/utils/Now.js +234 -0
  42. package/src/utils/Number.js +238 -0
  43. package/src/utils/Object.js +655 -0
  44. package/src/utils/Route.js +67 -0
  45. package/src/utils/Runner.js +327 -0
  46. package/src/utils/String.js +618 -0
  47. package/src/{library/element.js → wip/Element.js} +90 -16
  48. package/src/{library/map.js → wip/Map.js} +256 -40
  49. package/types/dom/DomAttribute.d.ts +137 -0
  50. package/types/dom/DomBuilder.d.ts +67 -0
  51. package/types/dom/DomEvent.d.ts +103 -0
  52. package/types/dom/DomFinder.d.ts +321 -0
  53. package/types/dom/DomForm.d.ts +21 -0
  54. package/types/dom/DomGlobal.d.ts +79 -0
  55. package/types/dom/DomInview.d.ts +114 -0
  56. package/types/dom/DomMeta.d.ts +29 -0
  57. package/types/dom/DomObserver.d.ts +21 -0
  58. package/types/dom/DomRectangle.d.ts +270 -0
  59. package/types/format/FormatFile.d.ts +18 -0
  60. package/types/format/FormatOption.d.ts +40 -0
  61. package/types/format/FormatParam.d.ts +39 -0
  62. package/types/format/FormatParser.d.ts +46 -0
  63. package/types/format/FormatUrl.d.ts +17 -0
  64. package/types/index.browser.d.ts +1 -0
  65. package/types/index.esm.d.ts +52 -0
  66. package/types/now/NowDefault.d.ts +183 -0
  67. package/types/now/NowFormat.d.ts +70 -0
  68. package/types/now/NowGrid.d.ts +107 -0
  69. package/types/now/NowHuman.d.ts +37 -0
  70. package/types/now/NowMatch.d.ts +108 -0
  71. package/types/now/NowRange.d.ts +21 -0
  72. package/types/now/NowWalker.d.ts +301 -0
  73. package/types/tool/scope.d.ts +24 -0
  74. package/types/utils/Array.d.ts +480 -0
  75. package/types/utils/Cookie.d.ts +60 -0
  76. package/types/utils/Data.d.ts +91 -0
  77. package/types/utils/Dom.d.ts +138 -0
  78. package/types/utils/Event.d.ts +58 -0
  79. package/types/utils/Format.d.ts +37 -0
  80. package/types/utils/Hash.d.ts +81 -0
  81. package/types/utils/Locale.d.ts +115 -0
  82. package/types/utils/Mixed.d.ts +469 -0
  83. package/types/utils/Now.d.ts +125 -0
  84. package/types/utils/Number.d.ts +127 -0
  85. package/types/utils/Object.d.ts +255 -0
  86. package/types/utils/Route.d.ts +37 -0
  87. package/types/utils/Runner.d.ts +139 -0
  88. package/types/utils/String.d.ts +330 -0
  89. package/types/wip/Element.d.ts +119 -0
  90. package/types/wip/Map.d.ts +254 -0
  91. package/dist/.ignore.js +0 -0
  92. package/dist/pico-js.js +0 -2
  93. package/dist/pico-js.js.map +0 -1
  94. package/src/element/default.js +0 -46
  95. package/src/element/example.js +0 -58
  96. package/src/index.js +0 -90
  97. package/src/library/cookie.js +0 -123
  98. package/src/library/data.js +0 -111
  99. package/src/library/event.js +0 -91
  100. package/src/library/locale.js +0 -84
  101. package/src/library/queue.js +0 -64
  102. package/src/library/route.js +0 -28
  103. package/src/utility/any.js +0 -369
  104. package/src/utility/array.js +0 -410
  105. package/src/utility/dom.js +0 -1425
  106. package/src/utility/now.js +0 -544
  107. package/src/utility/number.js +0 -128
  108. package/src/utility/object.js +0 -429
  109. package/src/utility/string.js +0 -328
  110. package/types/index.d.ts +0 -77
  111. package/types/library/cookie.d.ts +0 -10
  112. package/types/library/data.d.ts +0 -15
  113. package/types/library/element.d.ts +0 -22
  114. package/types/library/event.d.ts +0 -13
  115. package/types/library/locale.d.ts +0 -14
  116. package/types/library/map.d.ts +0 -43
  117. package/types/library/queue.d.ts +0 -18
  118. package/types/library/route.d.ts +0 -11
  119. package/types/utility/any.d.ts +0 -35
  120. package/types/utility/array.d.ts +0 -46
  121. package/types/utility/dom.d.ts +0 -101
  122. package/types/utility/now.d.ts +0 -79
  123. package/types/utility/number.d.ts +0 -17
  124. package/types/utility/object.d.ts +0 -29
  125. package/types/utility/string.d.ts +0 -26
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  <br>
11
11
  </p>
12
12
 
13
- <p align="center">A JS heleper library. <i>Docs following soon</i></p>
13
+ <p align="center">A JS heleper library. <a href="https://pico-js.vanki.de/" target="_blank">Docs are here</a></p>
14
14
 
15
15
  ### Installation
16
16
 
@@ -20,12 +20,12 @@ npm install @kizmann/pico-js [or] yarn add @kizmann/pico-js
20
20
 
21
21
  ### Dependencies
22
22
 
23
- This package is dependent of [moment](https://github.com/moment/moment) (*Right now its required but will be optional or ditched soon*).
23
+ ~~This package is dependent of [moment](https://github.com/moment/moment) (*Right now its required but will be optional or ditched soon*).~~
24
24
 
25
25
  ### CDN Usage
26
26
 
27
27
  ```html
28
- <script src="//unpkg.com/@kizmann/pico-js@latest/dist/pico-js.js"></script>
28
+ <script src="//unpkg.com/@kizmann/pico-js@latest/dist/pico-js.browser.js"></script>
29
29
  ```
30
30
 
31
31
  ```js
@@ -54,7 +54,7 @@ Incase you are not using the babel plugins (ES6) used in *babel.config.js* you w
54
54
  module.exports = {
55
55
  resolve: {
56
56
  alias: {
57
- '@kizmann/pico-js': '@kizmann/pico-js/dist/pico-js.js'
57
+ '@kizmann/pico-js': '@kizmann/pico-js/dist/pico-js.esm.js'
58
58
  }
59
59
  }
60
60
  }
@@ -65,7 +65,7 @@ module.exports = {
65
65
  mix.webpackConfig({
66
66
  resolve: {
67
67
  alias: {
68
- '@kizmann/pico-js': '@kizmann/pico-js/dist/pico-js.js'
68
+ '@kizmann/pico-js': '@kizmann/pico-js/dist/pico-js.esm.js'
69
69
  }
70
70
  }
71
71
  });
@@ -80,8 +80,28 @@ When using VS Code with the ES5 fix from above you need to create or add to your
80
80
  {
81
81
  "compilerOptions": {
82
82
  "paths": {
83
- "@kizmann/pico-js": ["node_modules/@kizmann/pico-js/src/index.js"]
83
+ "@kizmann/pico-js": ["node_modules/@kizmann/pico-js/src/index.esm.js"]
84
84
  }
85
85
  }
86
86
  }
87
- ```
87
+ ```
88
+
89
+ #### Jobs to do:
90
+
91
+ - [ ] Dom.obeserver
92
+ - [ ] Dom.observerResize
93
+ - [ ] Dom.datas
94
+ - [ ] Element rework
95
+ - [ ] Maps rework
96
+
97
+ #### What was killed:
98
+
99
+ - Moment.js
100
+ - UUID library
101
+ - Dom.location
102
+ - Dom.closestScrollable
103
+ - Now.decade
104
+ - Coookie.pattern
105
+ - Locale.pickByCount
106
+ - Str.convertFromOptions
107
+ - Str.convertFromParams
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var t={d:(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e,r,i,s={},n={};t.r(n),t.d(n,{Any:()=>$e,Arr:()=>ve,Cookie:()=>ke,Data:()=>l,Dom:()=>fe,Element:()=>m,Event:()=>Pe,For:()=>me,Hash:()=>Oe,Locale:()=>De,Map:()=>d,Mix:()=>Me,Now:()=>pe,Num:()=>be,Obj:()=>we,Route:()=>u,Run:()=>ge,Str:()=>ye,UUID:()=>je,browser:()=>he,device:()=>de,go:()=>ce});class o{static has(t){return we.has(this.$data,ve.first(t))}static set(t,e){let[r,i]=[null,ve.first(t)];we.has(this.$data,i)&&(r=we.get(this.$data,i)),Me.isEqual(r,e)||(we.set(this.$data,i,e),Pe.fire("store:"+i,e,i))}static unset(t){we.unset(this.$data,[...ve.first(t)])}static get(t,e=null,r=!1){let i=ve.first(t);if(!we.has(this.$data,i)&&!r)return e;we.has(this.$data,i)&&r&&we.set(this.$data,i,e);let s=we.get(this.$data,i,e);return Me.isObj(s)?we.clone(s):s}static find(t,e,r=null){let i=ve.first(t);if(!1===we.has(this.$data,i))return r;if(!1===we.has(e,"id"))return r;let s=ve.findIndex(this.get(i),{id:e.id});return-1===s?r:this.get(i+"."+s)}static replace(t,e){let r=ve.first(t);if(!1===we.has(this.$data,r))return;if(!1===we.has(e,"id"))return;let i=ve.findIndex(this.get(r),{id:be.int(e.id)});-1!==i&&this.set(r+"."+i,e)}static add(t,...e){this.set(t,ve.concat(this.get(t,[]),e))}static remove(t,...e){this.set(t,ve.diff(this.get(t,[]),e))}}e=o,i={},(r=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r="$data"))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i;const l=o;class a{static set(t,e){this.$routes[t]=e}static get(t,e=null,r=null){let i=t;return/^https?:\/\//.test(i)||(i=this.$routes[t]||t),i=De.replace(i,e),Me.isEmpty(r)||(i+="?"+me.castParams(e)),i}static goto(t,e=null,r=null){window.location.href=this.get(t,e,r)}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(a,"$routes",{});const u=a;function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class h{constructor(t,e={}){if(c(this,"map",null),c(this,"markers",{}),c(this,"cluster",null),c(this,"clusterFilter",null),c(this,"clusterOptions",{}),!globalThis.google)throw new Error("Google Maps is required for pi.Map");let r=we.only(e,["lat","lng"]);we.has(e,"styles")||(e.styles=Map.mapStyle),e=we.assign({gestureHandling:"cooperative",scrollwheel:null,zoom:12,center:r},we.except(e,["lat","lng"])),this.map=new globalThis.google.maps.Map(fe.find(t).get(0),e)}static setMapStyle(t=[]){return Map.mapStyle=t,this}static setMarkerStyle(t,e={},r={}){if(!globalThis.google)throw new Error("Google Maps is required for pi.Map");if(!we.has(e,"default"))return console.error("Marker style requires default property");we.has(e,"width")||(e.width=45),we.has(e,"height")||(e.height=45);let i={},s=new globalThis.google.maps.Size(e.width,e.height),n=new globalThis.google.maps.Point(0,0),o=new globalThis.google.maps.Point(e.width/2,e.height);return i.default={url:e.default,size:s,origin:n,anchor:o,scaledSize:s},we.has(e,"hover")&&(i.hover=we.assign({},i.default,{url:e.hover})),we.has(i,"hover")||(i.hover=i.default),we.has(e,"active")&&(i.active=we.assign({},i.default,{url:e.active})),we.has(i,"active")||(i.active=i.default),we.each(r,(t,e)=>{i[e]=we.assign({},i.default,{url:t})}),we.set(Map.markerStyles,t,i),this}clusterMarkers(t={},e=null,r=!0){if(!this.cluster&&!r)return;if(void 0===globalThis.MarkerClusterer)return console.error("Google Maps Cluster library not laoded!");we.has(t,"imagePath")||we.has(t,"styles")||(t.imagePath="//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"),this.cluster&&this.cluster.clearMarkers(),Me.isFunction(e)&&(this.clusterFilter=e);let i=ve.filter(this.markers,t=>{let e=this.getMarkerVisibility(t.key);return Me.isFunction(this.clusterFilter)?e&&this.clusterFilter.call(this,t):e});this.cluster=new globalThis.MarkerClusterer(this.map,ve.each(i,t=>t.marker),this.clusterOptions=t)}styleMarker(t,e=null){let r=we.get(this.markers,t);if(Me.isEmpty(r))return console.error(`Marker "${t}" not found`);Me.isEmpty(e)&&(e=this.getInfoVisibility(t)?"active":"default"),we.has(Map.markerStyles,[r.style,e])&&r.marker.setIcon(we.get(Map.markerStyles,[r.style,e]))}getMarker(t){return we.get(this.markers,t)}getMarkerVisibility(t,e=!1){let r=we.get(this.markers,t);return Me.isEmpty(r)?e:r.marker.getVisible()}getMarkerPositon(t,e=null){let r=we.get(this.markers,t);return Me.isEmpty(r)?e:r.marker.getPosition()}toggleMarker(t){let e=we.get(this.markers,t);return Me.isEmpty(e)?console.error(`Marker "${t}" not found`):e.marker.getVisible()?this.hideMarker(t):this.showMarker(t)}showMarker(t){let e=we.get(this.markers,t);if(Me.isEmpty(e))return console.error(`Marker "${t}" not found`);let r=!e.marker.getVisible();return r&&e.marker.setVisible(!0),r}hideMarker(t){let e=we.get(this.markers,t);if(Me.isEmpty(e))return console.error(`Marker "${t}" not found`);let r=!!e.marker.getVisible();return r&&e.marker.setVisible(!1),this.closeInfo(t),r}enterMarker(t){let e=we.get(this.markers,t);if(Me.isEmpty(e))return console.error(`Marker "${t}" not found`);let r="hover";return this.getInfoVisibility(t)&&(r="active"),this.styleMarker(t,r),this}leaveMarker(t){let e=we.get(this.markers,t);if(Me.isEmpty(e))return console.error(`Marker "${t}" not found`);let r="default";return this.getInfoVisibility(t)&&(r="active"),this.styleMarker(t,r),this}getInfoVisibility(t,e=!1){let r=we.get(this.markers,t);return Me.isEmpty(r)||!we.has(r,"info")?e:!!r.info.getMap()}toggleInfo(t){let e=we.get(this.markers,t);return Me.isEmpty(e)?console.error(`Marker "${t}" not found`):e.info.getMap()?this.closeInfo(t):this.openInfo(t)}openInfo(t){let e=we.get(this.markers,t);if(Me.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!we.has(e,"info"))return!0;let r=!e.info.getMap();return Map.closeInfoWindows&&we.each(Me.keys(this.markers),this.closeInfo.bind(this)),r&&e.info.open(this.map,e.marker),Me.isFunction(e.onOpen)&&e.onOpen(e),this.styleMarker(t,"active"),r}closeInfo(t){let e=we.get(this.markers,t);if(Me.isEmpty(e))return console.error(`InfoWindow "${t}" not found`);if(!we.has(e,"info"))return!1;let r=!!e.info.getMap();return r&&e.info.close(),Me.isFunction(e.onClose)&&e.onClose(e),this.styleMarker(t,"default"),r}createMarker(t=null,e={}){Me.isEmpty(t)&&(t=Oe.uuid());let r={key:t};return we.has(e,"visible")||(e.visible=!0),r.extras=we.except(e,["map","position","lat","lng","html","style","visible","onOpen","onClose"]),we.has(e,"map")||(e.map=this.map),we.has(e,"position")||(e.position=we.only(e,["lat","lng"])),we.has(e,"style")&&(r.style=e.style),r.marker=new globalThis.google.maps.Marker(e),e.visible||r.marker.setVisible(!1),we.assign(r,{onOpen:we.get(e,"onOpen"),onClose:we.get(e,"onClose")}),we.set(this.markers,t,r),this.clusterMarkers(this.clusterOptions,null,!1),we.has(e,"html")?(we.has(r,"style")||(r.style="default"),this.styleMarker(t),r.marker.addListener("mouseover",()=>this.enterMarker(t)),r.marker.addListener("mouseout",()=>this.leaveMarker(t)),r.info=new globalThis.google.maps.InfoWindow({content:'<div class="gw-i-html">'+we.get(e,"html")+"</div>"}),r.marker.addListener("click",()=>this.toggleInfo(t)),r.info.addListener("closeclick",()=>this.closeInfo(t)),r.info.addListener("domready",()=>Pe.fire("MapsDomReady")),we.set(this.markers,t,r),we.get(this.markers,t)):we.get(this.markers,t)}setMarkerPosition(t,e={}){let r=we.get(this.markers,t);if(Me.isEmpty(r))return console.error(`Marker "${t}" not found`);r.marker.setPosition(e)}setMarkerByAddress(t,e){return this.getLocationByAddress(e,e=>{this.setMarkerPosition(t,we.get(e,"0.geometry.location",{}))})}getLocationByAddress(t,e=null){let r=new globalThis.google.maps.Geocoder;return new Promise((i,s)=>{r.geocode({address:t},(t,r)=>{"OK"===r&&(e(t),i(t)),"OK"!==r&&s(t)})})}showMarkers(t=null){let e=this.markers;return Me.isEmpty(t)||(e=we.filter(this.markers,t)),Map.hideMarkers&&we.each(Me.keys(this.markers),this.hideMarker.bind(this)),we.each(e,t=>this.showMarker(t.key)),this.clusterMarkers(this.clusterOptions,null,!1),this}getMarkerBoundry(t=null){let e=this.markers;Me.isEmpty(t)||(e=we.filter(this.markers,t));let r=new globalThis.google.maps.LatLngBounds;return we.each(e,t=>{t.marker.getVisible()&&r.extend(t.marker.getPosition())}),r}focusMarkers(t=null,e=14,r=15){let i=this.getMarkerBoundry(t);return this.map.setCenter(i.getCenter()),this.map.fitBounds(i,r),this.map.getZoom()>e&&this.map.setZoom(e),this}renderDirections(t){let e=new globalThis.google.maps.DirectionsService,r=new globalThis.google.maps.DirectionsRenderer;we.has(t,"map")||(t.map=this.map),we.has(t,"travelMode")||(t.travelMode="DRIVING"),r.setMap(t.map),we.has(t,"panel")&&!fe.find(t.panel).empty()&&r.setPanel(fe.find(t.panel).get(0)),t=we.only(t,["origin","destination","travelMode"]);return new Promise((i,s)=>{e.route(t,(t,e)=>{"OK"===e&&(r.setDirections(t),i(t)),"OK"!==e&&s(t)})})}}c(h,"mapStyle",[]),c(h,"markerStyles",{}),c(h,"hideMarkers",!0),c(h,"closeInfoWindows",!0);const d=h;function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class p{static listen(){document.addEventListener("scroll",p.scroll),p.scroll()}static scroll(){ve.each(this.invi,(t,e)=>{fe.find(t.el).inviewY()&&(ve.removeIndex(this.invi,e),t.cb())})}static alias(t,e){return we.set(this.inis,t,e),this}static bind(t,e,r={}){let i=fe.find(e),s=this.getPrefix(t);i.addClass(s);let n=we.get(this.inis,t,null);if(Me.isEmpty(n))return console.error(`Element "${t}" is not defined.`);let o=(t,e)=>{let r=new n(t.get(0),e);return p.runs.push({el:t.get(0),prefix:s,deamon:r}),t.data(s,r),void 0!==r.bind?r.bind(t.get(0),e):r};return fe.ready(()=>o.call({},i,r)),this}static unbind(t,e,r={}){let i=fe.find(e),s=this.getPrefix(t),n=we.get(this.inis,t,null);if(Me.isEmpty(n))return console.error(`Element "${t}" is not defined.`);return((t,e)=>{let r=t.data(s);if(void 0!==r.unbind)return r.unbind(t.get(0),e)}).call({},i,r),ve.remove(p.runs,{el:i.get(0)}),this}static observe(t,e=!1){let r=this.getPrefix(t),i={childList:!0,subtree:!0,attributes:!0,attributeFilter:[r]},s=()=>{let i=p.getPrefix(t),s=ve.filter(this.runs,{prefix:r});ve.each(s,({el:i})=>{let s=ye.objectify(fe.find(i).attr(r));if(e&&Me.isEmpty(s)&&(s={_plain:fe.find(i).attr(r)}),we.pluck(s,"inview",!1)&&ve.remove(this.invi,{el:i}),!document.body.contains(i))return this.unbind(t,i,s)}),fe.find(`[${r}]:not(.${i})`).each(i=>{let s=ye.objectify(fe.find(i).attr(r));e&&Me.isEmpty(s)&&(s={_plain:fe.find(i).attr(r)});let n=()=>{this.bind(t,i,s)};we.pluck(s,"inview",!1)?this.bindInview(i,n):n()})};return fe.find(document.body).observer(s)(document.body,i),fe.find(document.body).on("dom.change",s),this}static bindInview(t,e){ve.add(this.invi,{el:t,cb:e},{el:t})}static unbindInview(t,e){ve.remove(this.invi,{el:t,cb:e},{el:t})}static getPrefix(t){return t?this.prefix+"-"+t:this.prefix}static setPrefix(t){this.prefix=t}}f(p,"prefix","js"),f(p,"mount","mount"),f(p,"inis",{}),f(p,"runs",[]),f(p,"invi",[]);const m=p;function g(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:{}}class y{static filterNodes(t,e=1){return ve.filter(Me.nodes(t),t=>t.nodeType===e)}static getNodePoint(t,e){let r=null;return null!=fe.doc().elementsFromPoint&&(r=document.elementsFromPoint(t,e)),null!=fe.doc().msElementsFromPoint&&(r=document.msElementsFromPoint(t,e)),r}static getNodeEvent(t,e={}){let r=e.srcElement;null==r&&(r=e.target);let{type:i,clientX:s,clientY:n}=e;return/^(drag[a-z]*|drop$)/.test(i)&&(r=fe.getNodePoint(s,n)),Me.isArr(r)&&(r=ve.first(r)),null==r&&(r=e.target),r.closest(t)}}class b{static _constructFinder(t){return"string"==typeof t&&(t=document.querySelectorAll(t)),t instanceof NodeList&&(t=Me.nodes(t)),t}getNodeType(t=-1){return this.el?this.el.nodeType:t}getNodeParent(t=null){return this.el?fe.find(this.el.parentNode):t}getNodePrev(t=null){return this.el?fe.find(this.el.previousSibling):t}getNodeNext(t=null){return this.el?fe.find(this.el.nextSibling):t}getNodeChilds(t=-1,e=[]){if(!this.el)return e;let r=Me.nodes(this.el.childNodes);return-1===t?r:ve.filter(r,e=>e.nodeType===t)}sanatize(t=1){return this.els=fe.filterNodes(this.els,t),this}filter(t){return"function"!=typeof t&&(t=e=>fe.find(e).is(t)),ve.filter(this.els,t)}except(t){return"function"!=typeof t&&(t=e=>!fe.find(e).is(t)),ve.filter(this.els,t)}find(t){if(null==this.el)return fe.find(null);let e=this.el;e instanceof Window&&(e=document.body);let r=t;return Me.isStr(r)&&(r=e.querySelectorAll(t)),fe.find(r)}get(t=-1){let e=this.els;return-1===t?e:ve.get(e,t)}first(t=0){return this.get(t)}last(t=1){return ve.get(this.els,this.els.length-t)}each(t){return ve.each(this.els,t)}loopParent(t,e=null){null==e&&(e=fe.win());for(let r=this.el;r&&r!==e;r=r.parentNode)t.call({},r);return this}parent(){let t=this.getNodeParent();return null==t?fe.find(null):t}child(t,e=1){for(let t of this.els)if(t.nodeType===e)return fe.find(t);return fe.find(null)}childs(t=null,e=1){let r=this.getNodeChilds(e);return null==t?r:ve.filter(r,e=>fe.find(e).is(t))}closest(t){if(this.el===t)return this.el;for(let e=this;null!=e.el;e=e.getNodeParent())if(e.is(t))return e.el;return null}prev(t=1){let e=this.getNodePrev();for(;null!=e;e=e.getNodePrev())if(e.getNodeType()===t)return fe.find(e);return fe.find(null)}next(t=1){let e=this.getNodeNext();for(;null!=e;e=e.getNodeNext())if(e.getNodeType()===t)return fe.find(e);return fe.find(null)}length(){return this.els.length}is(t){if(this.el===t)return!0;if(null==this.el)return!1;for(let e of this.parent().find(t).get())if(e===this.el)return!0;return!1}matches(t){if(this.el===t)return!0;if(null==this.el)return!1;for(let e of this.find(t).get())if(e===this.el)return!0;return!1}empty(){return this.length()<1||null==this.el}visible(){return null!=this.el&&this.el.is(":visible")}above(t){return this.parent().is(t)}inside(t){return null!=this.closest(t)}contains(t){return null!=this.find(t)}}b.prototype.isParent=function(...t){return console.warn("Dom.isParent() is deprecated, use Dom.above() instead."),this.above(...t)},b.prototype.previous=function(){return console.warn("Dom.previous() is deprecated, use Dom.prev() instead."),this.prev()},b.prototype.where=function(...t){return console.warn("Dom.where() is deprecated, use Dom.filter() instead."),this.filter(...t)},b.prototype.not=function(...t){return console.warn("Dom.not() is deprecated, use Dom.except() instead."),this.except(...t)},b.prototype.getNot=()=>{console.error("Dom.getNot() is not implemented anymore.")};class v{}class w{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}class M{}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(M,"events",[]);class O{bind(t,e,r,i=null,s=!1,n={}){return Me.isPrim(n)&&(n={id:n}),fe.events=ve.append(fe.events,{el:t,event:e,cb:r,selector:i,pause:s,options:n}),t.addEventListener(e,r,n),this}unbind(t,e,r=null,i={}){Me.isPrim(i)&&(i={id:i});let s=ve.filterIndex(fe.events,{el:t,event:e,selector:r,options:i});if(0===s.length)return;return ve.each(s.reverse(),r=>{var i;t.removeEventListener(...(i=fe.events[r],[e,i.cb,i.options]))}),ve.splices(fe.events,s),this}on(t,e,r={},i=!1,s=null){if(Me.isPrim(r)&&(r={id:r}),Me.isArr(t))return ve.each(t,t=>this.on(t,...arguments)),this;let n=t=>{e.call(t.target,t,t.target)};return this.each(e=>{this.bind(e,t,n,s,i,r)}),this}off(t,e=null,r={}){return Me.isArr(t)?(ve.each(t,t=>this.off(t,...arguments)),this):(Me.isObj(e)&&(r=e,e=null),this.each(i=>{this.unbind(i,t,e,r)}),this)}once(t,e,r={}){return r.id=Oe.make(24),this.on(t,i=>{e(i),this.off(t,r)},r),this}live(t,e,r,i={},s=!1){return this.on(t,function(t){let i=fe.getNodeEvent(e,t);null!=i&&r.call({},t,i)},i,s,e),this}fire(t){let e=new Event(t);return this.each(t=>{t.dispatchEvent(e)}),this}}O.prototype.one=function(...t){return console.warn("Dom.one() is deprecated, use Dom.once() instead."),this.once(...t)},O.prototype.delayed=function(){console.error("Dom.delayed() is not implemented anymore.")},O.prototype.pause=function(){console.error("Dom.pause() is not implemented anymore.")},O.prototype.unpause=function(){console.error("Dom.unpause() is not implemented anymore.")};class P{static make(t,e={}){t instanceof fe&&(t=t.el),Me.isStr(t)&&(t=document.createElement(t)),t=we.assign(t,e);let r=new fe(t);return e.class&&r.class(e.class),e.html&&r.html(e.html),r}}class D{prepend(t){return this.each(e=>{null!=e.prepend&&e.prepend(t)}),this}prependTo(t){return fe.find(t).each(t=>{null!=t.prepend&&t.prepend(this.el)}),this}append(t){return this.each(e=>{null!=e.append&&e.append(t)}),this}appendTo(t){return fe.find(t).each(t=>{null!=t.append&&t.append(this.el)}),this}replace(t){return this.parent().each(el,e=>{e.insertBefore(t,e),e.removeChild(e)}),this}}class k{static getDomState(){return document.readyState}static isDomReady(){return"complete"===fe.getDomState()}static isDomComplete(){let t=fe.getDomState();return"complete"===t||"interactive"===t}static ready(t,e=0,r=6e3){let i=()=>{ge.delay(t,e)},[s,n]=[fe.find(document),"DOMContentLoaded"],o=fe.isDomReady;return o()?(ge.wait(()=>{if(o())return i(),!0},10,r),this):(s.on(n,i),this)}static complete(t,e=0,r=6e3){let i=()=>{ge.delay(t,e)},[s,n]=[fe.find(document),"load"],o=fe.isDomComplete;return o()?(ge.wait(()=>{if(o())return i(),!0},10,r),this):(s.on(n,i),this)}}k.required=()=>{console.error("Dom.required() is not implemented anymore.")};class ${isNodeComplete(){return null!=this.el&&(!!this.el.naturalWidth||(!!this.el.naturalHeight||!!this.el.complete))}loaded(t,e=6e3){if(!this.el)return this;let r=this.isNodeComplete;return ge.wait(()=>{if(r.call(this))return t(),!0},10,e),this}}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach(function(e){S(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function S(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class x{static num(t){return"string"==typeof t&&(t=t.replace(/(^\s+|\s$|px)/g,"")),Me.num(t,0)}}class Y{margin(t=null,e=0){let r=this.computed(),i={top:fe.num(r.marginTop),right:fe.num(r.marginRight),bottom:fe.num(r.marginBottom),left:fe.num(r.marginLeft)};return null==t?i:we.get(i,t,e)}padding(t=null,e=0){let r=this.computed(),i={top:fe.num(r.paddingTop),right:fe.num(r.paddingRight),bottom:fe.num(r.paddingBottom),left:fe.num(r.paddingLeft)};return null==t?i:we.get(i,t,e)}height(){return null==this.el?0:this.el instanceof Window?this.el.innerHeight:this.el.offsetHeight}clientHeight(){return null==this.el?0:fe.num(this.computed("height",0))}scrollHeight(){return null==this.el?0:this.el.scrollHeight}innerHeight(){if(null==this.el)return 0;if(this.el instanceof Window)return this.el.innerHeight;let t=this.padding();return this.el.offsetHeight-t.top-t.bottom}realHeight(t={}){let e="auto";return this.actual(()=>e=this.height(),t),e}evaluateHeight(t=null,e=!0){null===(t=fe.find(t))&&(t=this.parent());let r="auto";return this.actual(()=>{r=t.innerHeight()},{display:"none"}),!0===e&&this.style({height:r+"px"}),r}width(){return null==this.el?0:this.el instanceof Window?this.el.innerWidth:this.el.offsetWidth}clientWidth(){return null==this.el?0:fe.num(this.computed("width",0))}scrollWidth(){return null==this.el?0:this.el.scrollWidth}innerWidth(){if(null==this.el)return 0;if(this.el instanceof Window)return this.el.innerWidth;let t=this.padding();return this.el.offsetWidth-t.left-t.right}realWidth(t={}){let e="auto";return this.actual(()=>e=this.width(),t),e}evaluateWidth(t=null,e=!0){null===(t=fe.find(t))&&(t=this.parent());let r="auto";return this.actual(()=>{r=t.innerWidth()},{display:"none"}),!0===e&&this.style({width:r+"px"}),r}offset(t=null,e=null){let r=this.getOffset(e);return null==t?r:we.get(r,t,0)}offsetTop(t=null){return this.offset("top",t)}offsetBottom(t=null){return this.offset("bottom",t)}offsetLeft(t=null){return this.offset("left",t)}offsetRight(t=null){return this.offset("right",t)}loopOffset(t,e=null){null==e&&(e=fe.body());for(let r=this.el;r&&r!==e;r=r.offsetParent)t.call({},r);return this}calcOffset(t,e,r){let i={right:fe.body().scrollWidth-t.left-e,bottom:fe.body().scrollHeight-t.top-r};return N(N({},t),i)}getOffset(t=null){null==t&&(t=fe.body());let e,r={top:0,left:0,bottom:0,right:0};if(null==this.el)return r;e=t=>{r.top+=fe.num(t.offsetTop,0),r.left+=fe.num(t.offsetLeft,0)},this.loopOffset(e),r=this.calcOffset(r,this.width(),this.height());let i=fe.find(t),s={top:0,left:0,bottom:0,right:0};return e=t=>{s.top+=fe.num(t.offsetTop,0),s.left+=fe.num(t.offsetLeft,0)},i.loopOffset(e),s=this.calcOffset(s,i.scrollWidth(),i.scrollHeight()),{top:r.top-s.top,bottom:r.bottom-s.bottom,left:r.left-s.left,right:r.right-s.right}}scroll(t=null,e=null){let r=this.getScroll(e);return null==t?r:we.get(r,t,0)}scrollTop(t=null,e=null){return null==t?this.scroll("top",e):(this.each(e=>{e.scrollTop=t}),this)}scrollLeft(t=null,e=null){return null==t||this.each(e=>{e.scrollLeft=t}),this.scroll("left",e)}getScroll(t=null){null==t&&(t=fe.win());let e,r={top:0,left:0};if(null==this.el)return r;e=t=>{r.top+=fe.num(t.scrollTop||t.pageYOffset||0),r.left+=fe.num(t.scrollLeft||t.pageXOffset||0)},this.loopParent(e);let i={top:0,left:0};return e=t=>{i.top+=fe.num(t.scrollTop||t.pageYOffset||0),i.left+=fe.num(t.scrollLeft||t.pageXOffset||0)},fe.find(t).loopParent(e),{top:r.top-i.top,left:r.left-i.left}}}Y.prototype.loopOffsetParent=function(...t){return console.warn("Dom.loopOffsetParent() is deprecated, use Dom.loopOffset() instead."),this.loopOffset(...t)},Y.prototype.scrollTopGlobal=function(){return console.warn("Dom.scrollTopGlobal() is deprecated, use Dom.scroll('top') instead."),this.scroll("top",null)},Y.prototype.scrollLeftGlobal=function(){return console.warn("Dom.scrollLeftGlobal() is deprecated, use Dom.scroll('left') instead."),this.scroll("left",null)};function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach(function(e){E(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function E(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class A{}class H{attr(t,e=void 0,r=null){if(null==this.el)return e?this:r;let i=this.el.getAttribute(t);return Me.isUndef(e)?i||r:null===e?(this.el.removeAttribute(t),i):(Me.isArr(e)&&(e=e.join(" ")),Me.isObj(e)&&(e=me.castOptions(e)),this.el.setAttribute(t,e),this)}data(t,e=void 0,r=null){return this.attr("data-"+t,e,r)}computed(t=null,e=null){if(null==this.el)return e;if(1!==this.getNodeType())return e;let r=getComputedStyle(this.el);return null==t?r:we.get(r,t,e)}style(t=void 0,e=!0){if(null==this.el)return this;if(null===t)return this.attr("style",null);let r=this.attr("style",void 0,{});return Me.isStr(r)&&(r=me.parseOptions(r)),Me.isUndef(t)?r:(e&&(t=T(T({},r),t)),this.attr("style",t),this)}class(t=void 0,e=!1){if(null==this.el)return this;if(null===t)return this.attr("class","");let r=this.attr("class",void 0,[]);return Me.isStr(r)&&(r=r.split(" ")),Me.isUndef(t)?r:(e&&(t=[...r,...t]),this.attr("class",t),this)}html(t=void 0){return void 0===t?this.el.innerHTML:(this.each(e=>{e.innerHTML=t}),this)}actual(t,e=null){let r=this.attr("style");this.style(e);let i=t(this.el,this.el);return this.attr("style",r),i}hasClass(t){return Me.isArr(t)||(t=[t]),ve.isect(this.class(),t).length>0}addClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>fe.find(e).addClass(t));let e=this.el.className.split(" ");return Me.isStr(t)&&(t=t.split(" ")),e=ve.append(e,...t),this.el.className=ve.unique(e).join(" "),this}remClass(t){if(null==this.el)return this;if(this.els.length>1)return this.each(e=>fe.find(e).remClass(t));let e=this.el.className.split(" ");return Me.isStr(t)&&(t=t.split(" ")),e=ve.diff(e,t),this.el.className=ve.unique(e).join(" "),this}toggleClass(t){return this.els.length>1?this.each(e=>fe.find(e).toggleClass(t)):this.hasClass(t)?this.remClass(t):this.addClass(t)}stateClass(t,e=!0){return this.els.length>1?this.each(e=>fe.find(e).stateClass(t)):e?this.addClass(t):this.remClass(t)}}H.prototype.css=function(...t){return console.warn("Dom.css() is deprecated, use Dom.style() instead."),this.style(...t)},H.prototype.removeClass=function(...t){return console.warn("Dom.removeClass() is deprecated, use Dom.remClass() instead."),this.remClass(...t)};function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){L(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function L(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class G{static inviewMaxY(t,e=null){if(Me.isString(t)&&(t={el:t}),!(t=C(C({},{boundry:null,multiple:!1,threshold:0,mode:"ratio"}),t)).el)throw new Error("Dom.inviewY() requires an element.");let r=[t.threshold,t.mode,t.boundry],i=[];return fe.find(t.el).each(t=>{(t=>fe.find(t).isInviewY(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:ve.first(i)}static inviewMaxX(t,e=null){if(Me.isString(t)&&(t={el:t}),!(t=C(C({},{boundry:null,multiple:!1,threshold:0,mode:"ratio"}),t)).el)throw new Error("Dom.inviewX() requires an element.");let r=[t.threshold,t.mode,t.boundry],i=[];return fe.find(t.el).each(t=>{(t=>fe.find(t).isInviewX(...r))(t)&&(e&&e(t),i.push(t))}),t.multiple?i:ve.first(i)}}class R{viewoffX(){if(null==this.el)return{top:0,bot:0};let[t,e]=[fe.win().innerWidth,this.width()],[r,i]=[this.offset("left"),this.parent().scroll("left")];return{left:Math.max(0,r-i),right:Math.max(0,t-(r+e-i))}}inviewX(t=null){let{left:e,right:r}=fe.find(t).viewoffY(),[i,s]=[fe.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("left")+e,this.scroll("left")+e],l=Math.max(0,o+i-n+e);return l>s&&(l=Math.min(s,i+s-l)),Math.max(0,l)}inratioX(t=null){return 1/this.width()*this.inviewX(t)}isInviewX(t=.1,e="ratio",r=null){return"pixel"===e?this.inviewX(r)>t:this.inratioX(r)>t}viewoffY(){if(null==this.el)return{top:0,bottom:0};let[t,e]=[fe.win().innerHeight,this.height()],[r,i]=[this.offset("top"),this.parent().scroll("top")];return{top:Math.max(0,r-i),bottom:Math.max(0,t-(r+e-i))}}inviewY(t=null){let{top:e,bottom:r}=fe.find(t).viewoffY(),[i,s]=[fe.win().innerHeight-r-e,this.height()],[n,o]=[this.offset("top")+e,this.scroll("top")+e],l=Math.max(0,o+i-n+e);return l>s&&(l=Math.min(s,i+s-l)),Math.min(Math.max(0,l),i)}inratioY(t=null){return 1/this.height()*this.inviewY(t)}isInviewY(t=.1,e="ratio",r=null){return"pixel"===e?this.inviewY(r)>t:this.inratioY(r)>t}}R.prototype.inviewHeight=function(...t){return console.warn("Dom.inviewHeight() is deprecated, use Dom.inviewY() instead."),this.inviewY(...t)},R.prototype.inviewWidth=function(...t){return console.warn("Dom.inviewWidth() is deprecated, use Dom.inviewX() instead."),this.inviewX(...t)};class W{static setMetaTitle(t,e=":value - :title"){return this.$meta.title||(this.$meta.title=fe.doc().title),document.title=De.replace(e,{value:t,title:this.$meta.title}),this}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(W,"$meta",{}),W.title=t=>(console.warn("Dom.title() is deprecated, use Dom.setMetaTitle() instead."),fe.setMetaTitle(t));class B{}class q{}class X{value(t=void 0){return void 0===t?this.el.value:(this.each(e=>{e.value=t}),this)}}function U(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const V=[function(t){return we.each(Me.class(y),(e,r)=>{t[r]=e}),we.each(Me.proto(b),(e,r)=>{t.prototype[r]=e}),t.init.push(b._constructFinder),t},function(t){return we.each(Me.class(k),(e,r)=>{t[r]=e}),we.each(Me.proto($),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(v),(e,r)=>{t[r]=e}),we.each(Me.proto(w),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(M),(e,r)=>{t[r]=e}),we.each(Me.proto(O),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(P),(e,r)=>{t[r]=e}),we.each(Me.proto(D),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(x),(e,r)=>{t[r]=e}),we.each(Me.proto(Y),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(A),(e,r)=>{t[r]=e}),we.each(Me.proto(H),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(G),(e,r)=>{t[r]=e}),we.each(Me.proto(R),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(W),(e,r)=>{t[r]=e}),we.each(Me.proto(B),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.class(q),(e,r)=>{t[r]=e}),we.each(Me.proto(X),(e,r)=>{t.prototype[r]=e}),t}];class z{constructor(t,...e){U(this,"el",null),U(this,"els",[]),ve.each(fe.init,r=>{t=r.call(this,t,...e)}),t instanceof fe&&(t=t.el),Me.isArr(t)||(t=[t]),this.el=t[0],this.els=t}static find(t,...e){return new fe(t,...e)}static extend(t){t.call({},this)}static win(){return null==globalThis.window?{}:window}static doc(){return null==globalThis.document?{}:document}static body(){return this.doc().body?this.doc().body:{}}}U(z,"init",[]);const _=function(){let t=z;for(const e of V)t=e.call(t,t);return t},J={second:/([+-])([0-9]+)\s?seconds?/i,minute:/([+-])([0-9]+)\s?minutes?/i,hour:/([+-])([0-9]+)\s?hours?/i,date:/([+-])([0-9]+)\s?days?/i,month:/([+-])([0-9]+)\s?months?/i,year:/([+-])([0-9]+)\s?years?/i};class K{get(t){return"time"===t?this.value.getTime():/^seconds?$/i.test(t)?this.value.getSeconds():/^minutes?$/i.test(t)?this.value.getMinutes():/^hours?$/i.test(t)?this.value.getHours():/^days?$/i.test(t)?this.value.getDay():/^dates?$/i.test(t)?this.value.getDate():/^months?$/i.test(t)?this.value.getMonth()+1:/^years?$/i.test(t)?this.value.getFullYear():this}set(t,e){Me.isNum(t)||(t=Me.int(t));let r=this.value.getDay();return"day"===e&&(t=t+1-(r||7)),"time"===e&&this.value.setTime(t),/^seconds?$/i.test(e)&&this.value.setSeconds(t),/^minutes?$/i.test(e)&&this.value.setMinutes(t),/^hours?$/i.test(e)&&this.value.setHours(t),/^days?$/i.test(e)&&this.add(t,"date"),/^dates?$/i.test(e)&&this.value.setDate(t),/^months?$/i.test(e)&&this.value.setMonth(t-1),/^years?$/i.test(e)&&this.value.setFullYear(t),this}time(t=null){return null==t?this.get("time"):this.set(t,"time")}second(t=null){return null==t?this.get("second"):this.set(t,"second")}minute(t=null){return null==t?this.get("minute"):this.set(t,"minute")}hour(t=null){return null==t?this.get("hour"):this.set(t,"hour")}day(t=null){return null==t?this.get("day"):this.set(t,"day")}date(t=null){return null==t?this.get("date"):this.set(t,"date")}month(t=null){return null==t?this.get("month"):this.set(t,"month")}year(t=null){return null==t?this.get("year"):this.set(t,"year")}shortyear(){return this.get("year").toString().slice(-2)}add(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)+Me.int(t),e),this}sub(t,e="day"){return/^days?$/i.test(e)&&(e="date"),this.set(this.get(e)-Me.int(t),e),this}isModifible(t){return/^(\s*[+-][0-9]+\s?[a-z]+\s*)+$/i.test(t)}modify(t){return Me.isEmpty(t)||we.each(J,(e,r)=>{ye.match(t,e,([t,e,i])=>{"+"===e?this.add(i,r):this.sub(i,r)})}),this}apply(t,e="YYYY-MM-DD HH:mm:ss",r=[]){t=pe.make(t,e);for(const e of r)this.set(t.get(e),e);return this}applyDate(t,e="YYYY-MM-DD HH:mm:ss"){return this.apply(t,e,["date","month","year"])}applyTime(t,e="YYYY-MM-DD HH:mm:ss"){return this.apply(t,e,["hour","minute","second"])}}PicoNowGridInstance.prototype.addSecond=function(t){return console.warn("Now.addSecond() is deprecated, use Now.add(value, 'second') instead."),this.add(t,"second")},PicoNowGridInstance.prototype.subSecond=function(t){return console.warn("Now.subSecond() is deprecated, use Now.sub(value, 'second') instead."),this.sub(t,"second")},PicoNowGridInstance.prototype.addMinute=function(t){return console.warn("Now.addMinute() is deprecated, use Now.add(value, 'minute') instead."),this.add(t,"minute")},PicoNowGridInstance.prototype.subMinute=function(t){return console.warn("Now.subMinute() is deprecated, use Now.sub(value, 'minute') instead."),this.sub(t,"minute")},PicoNowGridInstance.prototype.addHour=function(t){return console.warn("Now.addHour() is deprecated, use Now.add(value, 'hour') instead."),this.add(t,"hour")},PicoNowGridInstance.prototype.subHour=function(t){return console.warn("Now.subHour() is deprecated, use Now.sub(value, 'hour') instead."),this.sub(t,"hour")},PicoNowGridInstance.prototype.addDates=function(t){return console.warn("Now.addDates() is deprecated, use Now.add(value, 'date') instead."),this.add(t,"date")},PicoNowGridInstance.prototype.subDates=function(t){return console.warn("Now.subDates() is deprecated, use Now.sub(value, 'date') instead."),this.sub(t,"date")},PicoNowGridInstance.prototype.addMonths=function(t){return console.warn("Now.addMonths() is deprecated, use Now.add(value, 'month') instead."),this.add(t,"month")},PicoNowGridInstance.prototype.subMonths=function(t){return console.warn("Now.subMonths() is deprecated, use Now.sub(value, 'month') instead."),this.sub(t,"month")},PicoNowGridInstance.prototype.addYears=function(t){return console.warn("Now.addYears() is deprecated, use Now.add(value, 'year') instead."),this.add(t,"year")},PicoNowGridInstance.prototype.subYears=function(t){return console.warn("Now.subYears() is deprecated, use Now.sub(value, 'year') instead."),this.sub(t,"year")},PicoNowGridInstance.prototype.addDecades=function(t){return console.warn("Now.addDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.add(10*t,"year")},PicoNowGridInstance.prototype.subDecades=function(t){return console.warn("Now.subDecades() is deprecated, use Now.grid(10 * value, 'year') instead."),this.sub(10*t,"year")},PicoNowGridInstance.prototype.humanDay=function(){return console.warn("Now.humanDay() is deprecated, use Now.day() instead."),this.day()},PicoNowGridInstance.prototype.humanMonth=function(){return console.warn("Now.humanMonth() is deprecated, use Now.month() instead."),this.month()};const Z={L:"DD/MM/YYYY",LL:"MMMM DD, YYYY",LLL:"MMMM DD, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},Q={second:"ss",minute:"mm",hour:"HH",date:"DD",month:"MM",year:"YYYY"};class tt{isParsable(t,e="YYYY-MM-DD HH:mm:ss"){for(const r in Q)t=ye.replace(t,Q[r],e);return t===e}parse(t,e="YYYY-MM-DD HH:mm:ss"){return Me.isTime(t)&&(e="HH:mm:ss"),Me.isDate(t)&&(e="YYYY-MM-DD"),this.isModifible(t)?this.modify(t):Me.isIsoDate(t)?(this.value=new Date(t),this):this.parseFormat(t,e)}parseFormat(t,e){if(!this.isParsable(t,e))return this.value=new Date(NaN),this;for(const r in Q)this.set(ye.extract(t,Q[r],e),r);return this}format(t="YYYY-MM-DD HH:mm:ss"){return we.has(Z,t)&&(t=De.trans(Z[t])),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("dddd",()=>this.human("day"))).replace("ddd",()=>this.human("day",3))).replace("dd",()=>this.human("day",2))).replace("MMMM",()=>this.human("month"))).replace("MMM",()=>this.human("month",3))).replace("YYYY",()=>ye.integer(this.year(),4))).replace("MM",()=>ye.integer(this.month(),2))).replace("DD",()=>ye.integer(this.date(),2))).replace("HH",()=>ye.integer(this.hour(),2))).replace("mm",()=>ye.integer(this.minute(),2))).replace("ss",()=>ye.integer(this.second(),2))).replace("YY",()=>ye.integer(this.shortyear(),2))).replace("X",()=>ye.integer(this.time()))).replace("x",()=>ye.integer(this.time()/1e3))}code(t="X"){return Me.int(this.format(t))}}class et{before(t=null,e="x"){return this.code(e)<pe.make(t).code(e)}beforeDate(t=null,e="YYYYMMDD"){return this.before(t,e)}beforeTime(t=null,e="HHmmss"){return this.before(t,e)}after(t=null,e="x"){return this.code(e)>pe.make(t).code(e)}afterDate(t=null,e="YYYYMMDD"){return this.after(t,e)}afterTime(t=null,e="HHmmss"){return this.after(t,e)}equal(t=null,e="x"){return t instanceof pe||(t=pe.make(t)),this.code(e)===t.clone().code(e)}equalDate(t=null,e="YYYYMMDD"){return this.equal(t,e)}equalTime(t=null,e="HHmmss"){return this.equal(t,e)}between(t=null,e=null,r="YYYYMMDD"){let i=[pe.make(t),pe.make(e)];return i[0].after(i[1],r)&&(i=i.reverse()),this.after(i[0],r)&&this.before(i[1],r)}}class rt{grid(t="day"){if(/^seconds?$/i.test(t))return this.getSecondsGrid();if(/^minutes?$/i.test(t))return this.getMinutesGrid();if(/^hours?$/i.test(t))return this.getHoursGrid();if(/^days?$/i.test(t))return this.getDaysGrid();if(/^dates?$/i.test(t))return this.getDatesGrid();if(/^months?$/i.test(t))return this.getMonthsGrid();if(/^years?$/i.test(t))return this.getYearsGrid();if(/^decades?$/i.test(t))return this.getDecadesGrid();throw new Error(`Invalid grid scope type "${t}".`)}getSecondsGrid(t=1){return null==t&&(t=1),ve.make(60/t,e=>this.clone().second(e*t))}getMinutesGrid(t=1){return null==t&&(t=1),ve.make(60/t,e=>this.clone().minute(e*t))}getHoursGrid(t=1){return null==t&&(t=1),ve.make(24/t,e=>this.clone().hour(e*t))}getDaysGrid(){let t=[this.first("date").first("day"),this.last("date").last("day")];return t[0].range(t[1],"date")}getDatesGrid(){let t=[this.first("date"),this.last("date")];return t[0].range(t[1],"date")}getMonthsGrid(){let t=[this.first("month"),this.last("month")];return t[0].range(t[1],"month")}getYearsGrid(){let t=[this.first("year"),this.clone().last("year")];return t[0].range(t[1],"year")}getDecadesGrid(){let t=[this.first("decade"),this.clone().last("decade")];return t[0].range(t[1],"decade")}}rt.prototype.getYears=function(){return console.warn("Now.getYears() is deprecated, use Now.grid('years') instead."),this.grid("years")},rt.prototype.getMonths=function(){return console.warn("Now.getMonths() is deprecated, use Now.grid('months') instead."),this.grid("months")},rt.prototype.getDates=function(){return console.warn("Now.getDates() is deprecated, use Now.grid('dates') instead."),this.grid("dates")},rt.prototype.getHours=function(){return console.warn("Now.getHours() is deprecated, use Now.grid('hours') instead."),this.grid("hours")},rt.prototype.getMinutes=function(){return console.warn("Now.getMinutes() is deprecated, use Now.grid('minutes') instead."),this.grid("minutes")},rt.prototype.getSeconds=function(){return console.warn("Now.getSeconds() is deprecated, use Now.grid('seconds') instead."),this.grid("seconds")};class it{prev(t="date"){return/^days?$/i.test(t)&&(t="date"),/^decades?$/i.test(t)?this.clone().sub(10,"year"):this.clone().sub(1,t)}next(t="day"){return/^days?$/i.test(t)&&(t="date"),/^decades?$/i.test(t)?this.clone().add(10,"year"):this.clone().add(1,t)}prevSecond(){return this.prev("second")}nextSecond(){return this.next("second")}prevMinute(){return this.prev("minute")}nextMinute(){return this.next("minute")}prevHour(){return this.prev("hour")}nextHour(){return this.next("hour")}prevDate(){return this.prev("date")}nextDate(){return this.next("date")}prevMonth(){return this.prev("month")}nextMonth(){return this.next("month")}prevYear(){return this.prev("year")}nextYear(){return this.next("year")}prevDecade(){return this.prev("decade")}nextDecade(){return this.next("decade")}first(t="date"){if(/^seconds?$/i.test(t))return this.firstSecond();if(/^minutes?$/i.test(t))return this.firstMinute();if(/^hours?$/i.test(t))return this.firstHour();if(/^days?$/i.test(t))return this.firstDay();if(/^dates?$/i.test(t))return this.firstDate();if(/^months?$/i.test(t))return this.firstMonth();if(/^years?$/i.test(t))return this.firstYear();if(/^decades?$/i.test(t))return this.firstDecade();throw new Error(`Invalid first scope type "${t}".`)}last(t="date"){if(/^seconds?$/i.test(t))return this.lastSecond();if(/^minutes?$/i.test(t))return this.lastMinute();if(/^hours?$/i.test(t))return this.lastHour();if(/^days?$/i.test(t))return this.lastDay();if(/^dates?$/i.test(t))return this.lastDate();if(/^months?$/i.test(t))return this.lastMonth();if(/^years?$/i.test(t))return this.lastYear();if(/^decades?$/i.test(t))return this.lastDecade();throw new Error(`Invalid last scope type "${t}".`)}firstSecond(){return this.clone().set(0,"second")}lastSecond(){return this.clone().set(59,"second")}firstMinute(){return this.clone().set(0,"minute")}lastMinute(){return this.clone().set(59,"minute")}firstHour(){return this.clone().set(0,"hour")}lastHour(){return this.clone().set(23,"hour")}firstDay(){return this.clone().set(0,"day")}lastDay(){return this.clone().set(6,"day")}firstDate(){return this.clone().set(1,"date")}lastDate(){return this.clone().next("month").set(0,"date")}firstMonth(){return this.clone().set(1,"month")}lastMonth(){return this.clone().set(12,"month")}nthYear(t=0){let e=10*Math.floor(this.year()/10);return this.clone().set(e+t,"year")}firstYear(){return this.nthYear(0)}lastYear(){return this.nthYear(9)}nthDecade(t=0){let e=100*Math.floor(this.year()/100);return this.clone().set(e+10*t,"year")}firstDecade(){return this.nthDecade(0)}lastDecade(){return this.nthDecade(9)}}class st{range(t=null,e="date"){let r="YYYYMMDD";/^months?$/.test(e)&&(r="YYYYMM"),/^years?$/.test(e)&&(r="YYYY");let i=[],s=[this.clone(),pe.make(t)];s[0].afterDate(s[1])&&(s=s.reverse()),s[1].add(1,e);for(let t=s[0];!t.equal(s[1],r);t=t.next(e))ve.append(i,t);return i}}st.prototype.getDatesRange=function(...t){return console.warn("NowRange.getDatesRange() is deprecated, use NowRange.range() instead."),this.range(...t)};const nt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"];class lt{human(t="day",e=null){return/^days?$/i.test(t)?this.getHumanDay(e):/^months?$/i.test(t)?this.getHumanMonth(e):this.get(t)}getHumanDay(t=null){let e=this.day()-1;if(!nt[e])throw new Error(`Invalid day number "${e}".`);let r=De.trans(nt[e]);return null!=t&&(r=r.substring(0,t)),r}getHumanMonth(t=null){let e=this.day()-1;if(!ot[e])throw new Error(`Invalid month number "${e}".`);let r=De.trans(ot[e]);return null!=t&&(r=r.substring(0,t)),r}}function at(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const ut=[function(t){return we.each(Me.proto(K),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.proto(tt),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.proto(et),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.proto(rt),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.proto(it),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.proto(st),(e,r)=>{t.prototype[r]=e}),t},function(t){return we.each(Me.proto(lt),(e,r)=>{t.prototype[r]=e}),t}];class ct{constructor(t=null,e="YYYY-MM-DD HH:mm:ss"){at(this,"input",null),at(this,"value",null),"now"===t&&(t=null);let r=t;return t&&t.toDate&&(t=t.toDate()),t instanceof Date||(t=new Date),this.input=t,Me.isNix(r)&&(this.input=r),this.value=t,Me.isStr(r)&&this.parse(r,e),ve.each(pe.init,t=>{el=t.call(this,el,e)}),this}static extend(t){t.call({},this)}static make(t=null,e="YYYY-MM-DD HH:mm:ss"){return new pe(t,e)}reset(t=null){return null==t&&(t={month:!0,day:!0,time:!0}),t.month&&this.value.setMonth(0),t.day&&this.value.setDate(1),t.time&&this.value.setHours(0,0,0),this}clone(t=!1){return new pe(new Date(this.value),null,t)}valid(){return!isNaN(this.input)}toDate(){return this.value}toUTC(){return this.value.toUTCString()}}at(ct,"init",[]),ct.prototype.resetTime=function(){return console.warn("Now.resetTime() is deprecated, use Now.reset({ time: true }) instead."),this.reset({time:!0})};const ht=function(){let t=ct;for(const e of ut)t=e.call(t,t);return t},dt=[{match:t=>/^(null|undefined)$/i.test(t),parse:t=>Me.null(t)},{match:t=>/^(true|false|yes|no)$/i.test(t),parse:t=>Me.bool(t)},{match:t=>/^-?[0-9]+$/.test(t),parse:t=>Me.int(t)},{match:t=>/^-?[0-9]+\.[0-9]+$/.test(t),parse:t=>Me.num(t)},{match:t=>/^[{\[].*?[}\]]$/.test(t),parse:t=>JSON.parse(t)}],ft=[{match:t=>Me.isArr(t),parse:t=>JSON.stringify(t)}];class pt{static keyed(t,e=null){return Me.isStr(t)?-1===t.indexOf("[")?t:t.replace(/\[([^\]]+)\]/g,".$1"):e}static parsed(t,e=null,r=[]){if(!Me.isStr(t))return e;t=t.replace(/(^"|^'|'$|"$)/g,"");for(let e of r)if(e.match(t))return e.parse(t);for(let e of dt)if(e.match(t))return e.parse(t);return t}static casted(t,e=!1,r=[]){if(e&&(t=encodeURI(t)),Me.isStr(t))return t;for(let e of r)if(e.match(t))return e.parse(t);for(let e of ft)if(e.match(t))return e.parse(t);return Me.str(t)}}const mt={entry:/(?<=^|&|\?)(\s*(?<key>.*?)\s*=\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=&|$)/g};class gt{static castParams(t={}){if(Me.isEmpty(t))return"";return ve.each(t,(t,e)=>this.castParam(e,t)).join("&")}static castParam(t,e,r=null){if(null!=r&&(t=r+"["+t+"]"),!Me.isRef(e))return Me.str(t)+"="+me.casted(e,!0);return ve.each(e,(r,i)=>this.castParam(Me.isArr(e)?"":i,r,t)).join("&")}static parseParams(t){if(Me.isEmpty(t))return{};let e=(t=decodeURIComponent(t)).matchAll(mt.entry);if(null==e)return{};const[r,i]=[me.keyed,me.parsed];return ve.reduce(Array.from(e),(t,{groups:e})=>we.set(t,r(e.key),i(e.val)),{})}}const yt={entry:/(^|;)(\s*(?<key>.*?)\s*:\s*(?<val>".*?"|'.*?'|.*?)\s*)(?=;|$)/g};class bt{static castOptions(t={},e=!0){if(Me.isEmpty(t))return"";return ve.each(t,(t,r)=>this.castOption(r,t,null,e)).join(";")+";"}static castOption(t,e,r=null,i=!0){null!=r&&(t=r+"."+t);let s=i?": ":":";return Me.isObj(e)?ve.map(e,(e,r)=>this.castOption(r,e,t)).join(";"):Me.str(t)+s+me.casted(e,!1)}static parseOptions(t){if(Me.isEmpty(t))return{};let e=t.matchAll(yt.entry);if(null==e)return{};const[r,i]=[me.keyed,me.parsed];return ve.reduce(Array.from(e),(t,{groups:e})=>we.set(t,r(e.key),i(e.val)),{})}}const vt=[["à","a"],["á","a"],["â","a"],["è","e"],["é","e"],["ê","e"],["ì","i"],["í","i"],["ï","i"],["î","i"],["ò","o"],["ó","o"],["ô","o"],["ù","u"],["ú","u"],["û","u"],["ñ","n"],["ç","c"],[".","-"],["·","-"],["/","-"],["_","-"],[",","-"],[":","-"],[";","-"],["ä","ae"],["ö","oe"],["ü","ue"],["ß","ss"]];class wt{static slugify(t){return t=String(t).replace(/(^\s+|\s+$)/g,"").toLowerCase(),ve.each(vt,e=>{t=t.replaceAll(e[0],e[1])}),t.replace(/[^a-z0-9-\s]+/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}}const Mt=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];class Ot{static filesize(t,e=1){Me.isNum(t)||(t=Me.num(t,0));let r=r=>be.fixed(t/Math.pow(1e3,r),e);for(let e=0;e<Mt.length;e++)if(t<=Math.pow(1e3,e+1))return r(e)+" "+Mt[e];return r(Mt.length)}}const Pt=[function(t){return we.each(Me.class(pt),(e,r)=>{t[r]=e}),t},function(t){return we.each(Me.class(gt),(e,r)=>{t[r]=e}),t},function(t){return we.each(Me.class(bt),(e,r)=>{t[r]=e}),t},function(t){return we.each(Me.class(wt),(e,r)=>{t[r]=e}),t},function(t){return we.each(Me.class(Ot),(e,r)=>{t[r]=e}),t}];class Dt{static extend(t){t.call({},this)}}const kt=function(){let t=Dt;for(const e of Pt)t=e.call(t,t);return t};function $t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class jt{static timeout(t,e=0,r=null){let i=jt.$idler.native;return null==r&&(r=Oe.make(12)),i[r="t-"+r]=setInterval(()=>{t()},e),r}static interval(t,e=0,r=null){let i=jt.$idler.native;return null==r&&(r=Oe.make(12)),i[r="i-"+r]=setInterval(()=>{t()},e),r}static clear(t,e="native"){if(Me.isArr(t))return ve.each(t,t=>this.clear(t,e)),this;let r=jt.$idler[e];return!1===/^i-/.test(t)&&clearInterval(r[t]),!1===/^t-/.test(t)&&clearTimeout(r[t]),this}static wait(t,e=0,r=500){let i,s;s=this.timeout(()=>{this.clear([i,s])},e*r),i=this.interval(()=>{t()&&this.clear([i,s])},e)}static frame(t,...e){return requestAnimationFrame(function(){t(...e)}),this}static async(t,...e){return setTimeout(()=>{t(...e)}),this}static delay(t,e=0,...r){let i=setTimeout(()=>{this.async(t,...r)},e);return()=>clearTimeout(i)}static debounce(t,e=100,r=null){let i=jt.$idler.debounce;return null==r&&(r=Oe.make(12)),(...s)=>{i[r]&&clearTimeout(i[r]),i[r]=setTimeout(()=>{this.frame(t,...s)},e)}}static throttle(t,e=100,r=null){let i,s=jt.$idler.throttle;return null==r&&(r=Oe.make(12)),(...n)=>{s[r]&&clearTimeout(s[r]),s[r]=setTimeout(()=>{i=!1},e),i||(this.frame(t,...n),i=!0)}}static framerate(t,e=30){let r=0;return(...i)=>{Date.now()-r<=1e3/e||(this.frame(t,...i),r=Date.now())}}static framebuffer(t,e,r=1e3){return(i,...s)=>{ve.replace(jt.$buffer,{key:e,cb:t,order:r,args:[i,...s],active:!0},{key:e}),i.preventDefault(),jt.runFramebuffer()}}static runFramebuffer(){if(this.$timer.func&&this.$timer.func(),this.$timer.func=this.delay(()=>{this.runFramebuffer()},50),Date.now()-this.$timer.date<=50)return;this.$timer.func&&this.$timer.func(),this.$timer.date=Date.now();let t=ve.filter(this.$buffer,{active:!0});0!==t.length&&this.frame(()=>{ve.each(ve.sort(t,"order"),t=>{t.cb(...t.args),t.active=!1})})}}$t(jt,"$idler",{native:{},debounce:{},throttle:{}}),$t(jt,"$timer",{date:0,func:null}),$t(jt,"$buffer",[]);const Nt=jt;var St;function xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function Yt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class It{static get(t,e){return Me.isStr(t)||(t=Me.str(t)),Me.isInt(e)&&(e=Me.int(e)),t.charAt(e)}static set(t,e,r=""){return Me.isStr(t)||(t=Me.str(t)),Me.isInt(e)&&(e=Me.int(e)),t.substring(0,e)+r+t.substring(e+r.length)}static replace(t,e,r=null){Me.isNull(r)&&(r=t);let i=r.indexOf(e);return-1===i?t:this.set(t,i,e)}static extract(t,e,r=null){Me.isNull(r)&&(r=t);let i=this.range(r,e);return null===i?null:this.slice(t,...i)}static match(t,e,r=null){let i=Me.str(t).match(e);return Me.isEmpty(i)?[]:Me.isFunc(r)?r(i):i}static regex(t){return Me.str(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static uc(t){return Me.str(t).toUpperCase()}static ucfirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lc(t){return Me.str(t).toLowerCase()}static lcfirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static cc(t){return ve.each(me.slugify(t).split("-"),(t,e)=>e?this.ucfirst(t):t).join("")}static kc(t){return me.slugify(t)}static sc(t){return me.slugify(t).replace("-","_")}static pc(t){return ve.each(me.slugify(t).split("-"),t=>this.ucfirst(t)).join("")}static has(t,e){return-1!==this.lc(t).indexOf(this.lc(e))}static range(t,e,r=null){let i=Me.str(t).indexOf(e);return-1===i?r:[i,i+e.length]}static slice(t,e,r){return Me.str(t).slice(e,r)}static string(t,e="-",r=!1){return Me.isEmpty(t)?e:(t=Me.str(t),r?t:t.replace(/<[^>]*>?/gm,""))}static boolean(t,e="Yes",r="No",i="-"){return Me.isEmpty(t)?i:Me.bool(t)?e:r}static number(t,e=null,r=null,i={}){return Me.isNum(t)?(null==r&&(r=De.code()),i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach(function(e){Yt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({maximumFractionDigits:12},i),null!=e&&(i.minimumFractionDigits=e,i.maximumFractionDigits=e),Me.num(t).toLocaleString(r,i)):t}static integer(t,e=0,r="0"){return Me.isNum(t)?(Me.isInt(t)||(t=Me.int(t)),t=Me.int(t),e?Me.str(t).padStart(e,r):Me.str(t)):t}static datetime(t,e="YYYY-MM-DD HH:mm:ss",r="-"){return Me.isDate(t)||(t=pe.make(t)),t.valid()?t.format(e):r}static date(t,e="YYYY-MM-DD",r="-"){return this.datetime(t,e,r)}static time(t,e="HH:mm:ss",r="-"){return this.datetime(t,e,r)}static objectify(t,e="options",r=!1){return Me.isRef(t)?t:("params"===e&&(t=me.parseParams(t)),"options"===e&&(t=me.parseOptions(t)),Me.isRef(t)||(t=JSON.parse(t)),r?Me.vals(t):t)}static stringify(t,e="options"){return Me.isStr(t)?t:"params"===e?me.castParams(t):"options"===e?me.castOptions(t):JSON.stringify(t)}}Yt(It,"upper",(St=It).uc),Yt(It,"lower",St.lc),Yt(It,"camelcase",St.cc),Yt(It,"kebabcase",St.kc),Yt(It,"snakecase",St.sc),Yt(It,"pascalcase",St.pc),It.regexEscape=(...t)=>(console.warn("Str.regexEscape() is deprecated, use Str.regex() instead."),ye.regex(...t)),It.humancase=(...t)=>(console.warn("Str.humancase() is deprecated, use Str.pascalcase() instead."),ye.pascalcase(...t)),It.slugify=(...t)=>(console.warn("Str.slugify() is deprecated, use For.slugify() instead."),me.slugify(...t)),It.options=(...t)=>(console.warn("Str.options() is deprecated, use For.castOptions() instead."),me.castOptions(...t)),It.fromOptions=(...t)=>(console.warn("Str.fromOptions() is deprecated, use For.parseOptions() instead."),me.parseOptions(...t)),It.params=(...t)=>(console.warn("Str.params() is deprecated, use For.castParams() instead."),me.castParams(...t)),It.fromParams=(...t)=>(console.warn("Str.fromParams() is deprecated, use For.parseParams() instead."),me.parseParams(...t)),It.filesize=(...t)=>(console.warn("Str.filesize() is deprecated, use For.filesize() instead."),me.filesize(...t)),It.real=()=>{console.error("Str.real() is not implemented anymore.")},It.array=()=>{console.error("Str.array() is not implemented anymore.")};const Tt=It;function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function At(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(r),!0).forEach(function(e){Ht(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ht(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class Ft{static fixed(t,e=2){return Me.isNum(t)||(t=Me.num(t)),t.toFixed(e)}static float(t){return Me.isNum(t)||(t=Me.num(t)),parseFloat(t)}static int(t){return Me.isNum(t)||(t=Me.num(t)),parseInt(t)}static ceil(t){return Me.isNum(t)||(t=Me.num(t)),Math.ceil(t)}static floor(t){return Me.isNum(t)||(t=Me.num(t)),Math.floor(t)}static round(t){return Me.isNum(t)||(t=Me.num(t)),Math.round(t)}static combine(t){return ve.reduce(t,(t,e)=>t+e,0)}static subtract(t){return ve.reduce(t,(t,e)=>t-e,0)}static decade(t){return Me.isNum(t)||(t=Me.num(t)),10*Math.floor(t/10)}static matrix(t,e=10,r=[]){let i=0;for(let e=20;e>=0;e--)t>=(i=Math.pow(2,e))&&(r.push(i),t-=i);return r}static distance(t,e,r=!1){let i={lat:0,lng:0};[t,e]=[At(At({},i),t),At(At({},i),e)];let s=Math.PI*this.float(t.lat)/180,n=Math.PI*this.float(e.lat)/180,o=(this.float(t.lng)-this.float(e.lng))/180,l=this.combine([Math.sin(s)*Math.sin(n),Math.cos(s)*Math.cos(n)*Math.cos(o)]);return l=180*Math.acos(l>1?1:l)/Math.PI*60*1.1515,r?1.609344*l:l}}Ft.format=(t,...e)=>(console.warn("Num.format() is deprecated, use Str.number() instead."),ye.number(t,e[2]||null)),Ft.random=(...t)=>(console.warn("Num.random() is deprecated, use Hash.number() instead."),Oe.number(...t));const Ct=Ft;class Lt{static all(t){return Me.isArr(t)?t:[t]}static get(t,e,r=null){return Me.isArr(t)?t&&t[e]?t[e]:r:t}static set(t,e,r){return this.splice(t,e,1,r)}static unset(t,e){return this.splice(t,e,1)}static make(t,e=null){let r=new Array(t);null==e&&(e=t=>t);for(let i=0;i<t;i++)r[i]="function"==typeof e?e(i):e;return r}static has(t,e){if(!Me.isPrim(e))return-1!==this.findIndex(t,e);return Me.isArr(t)||(t=[t]),-1!==t.findIndex(t=>t==e)}static unique(t){let e={};for(const r of t)e[r]=!0;return Me.keys(e)}static lengths(t,...e){let r=t.length;for(let t=0;t<e.length;t++)if(e[t].length!==r)return!1;return!0}static first(t,e=null){return this.get(t,0,e)}static second(t,e=null){return this.get(t,2,e)}static third(t,e=null){return this.get(t,2,e)}static last(t,e=null){return this.get(t,t.length-1,e)}static each(t,e,r=null){let[i,s]=[Me.isArr(t),Me.keys(t)],n=t=>i?parseInt(t):t,o=new Array(s.length);for(let r=0;r<s.length;r++)o[r]=e(t[s[r]],n(s[r]));return null!=r?r:o}static map(t,e){let[r,i]=[Me.isArr(t),Me.keys(t)],s=t=>r?parseInt(t):t;for(let r of i)t[r]=e(t[r],s(r));return t}static recursive(t,e,r,i=[]){return null==t?t:this.map(t,s=>(this.recursive(s[e],e,r,[...i,t]),r(s,i)))}static filterIndex(t,e=null){return null==e&&(e=t=>!Me.isEmpty(t)),Me.keys(t).filter(r=>Me.isFunc(e)?e.call({},t[r],r):Me.isRef(e)?this.includes(t[r],e):e===t[r])}static filter(t,e=null){return null==e&&(e=t=>!Me.isEmpty(t)),Me.vals(t).filter((r,i)=>Me.isFunc(e)?e.call({},r,i):Me.isRef(e)?this.includes(r,e):e===t[i])}static findIndex(t,e=null,r=-1){null==e&&(e=t=>!Me.isEmpty(t));for(let r=0;r<t.length;r++){if(Me.isFunc(e)&&e.call({},t[r],r))return r;if(Me.isRef(e)&&this.includes(t[r],e))return r;if(e===t[r])return r}return r}static find(t,e=null,r=null){let i=this.findIndex(t,e);return-1===i?r:t[i]}static sort(t,e=null){return Me.isFunc(e)?this.sortFunc(t,e):null!=e?this.sortDeep(t,e):this.sortPrim(t)}static sortFunc(t,e){let r=Me.keys(t).sort((r,i)=>e.call({},t[r],t[i])),i=[];for(const e of r)i.push(t[e]);return i}static sortDeep(t,e){let r=Me.keys(t).sort((t,r)=>Me.compare(we.get(t,e),we.get(r,e))),i=[];for(const e of r)i.push(t[e]);return i}static sortPrim(t){let e=Me.keys(t).sort((t,e)=>Me.compare(t,e)),r=[];for(const i of e)r.push(t[i]);return r}static merge(t,...e){return t.concat(...e)}static prepend(t,...e){return t.unshift(...e),t}static append(t,...e){return t.push(...e),t}static add(t,e,r=null){return null==r&&(r=e),-1!==this.findIndex(t,r)||t.push(e),t}static replace(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1!==i&&this.splice(t,i,1),t.push(e),t}static remove(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1===i||this.splice(t,i,1),t}static toggle(t,e,r=null){null==r&&(r=e);let i=this.findIndex(t,r);return-1===i?(t.push(e),t):(this.splice(t,i,1),t)}static insert(t,e,r){return this.splice(t,e,0,r),t}static slice(t,e,r=1){return t.slice(parseInt(e),r)}static splice(t,e,r=1,...i){return t.splice(parseInt(e),r,...i)}static splices(t,e,r=1){return this.each(e,e=>{this.splice(t,e,r)}),t}static clone(t){if(Me.isPrim(t))return t;if(Me.isObj(t))return we.clone(t);if(!Me.isArr(t))return t;let e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=this.clone(t[r]);return e}static diff(...t){return t.reduce((t,e)=>t.filter(t=>!e.includes(t)))}static isect(...t){return t.reduce((t,e)=>t.filter(t=>e.includes(t)))}static extract(t,e){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=we.get(t[i],e);return r}static reduce(t,e,r){return Me.vals(t).reduce(e,r)}static chunk(t,e=10){let r=[];for(let i=0;i<t.length;i+=e)r.push(t.slice(i,i+e));return r}static includes(t,e){if(Me.isObj(e))return we.includes(t,e);if(!Me.isArr(e))return t===e;let[r,i]=[!1,e.length];if(0===i)return!0;for(let s=0;!1===r&&s<i;s++)r||=this.has(t,e[s]);return r}static contains(t,e){let r=!0;for(let i of Me.vals(e))r&&=-1!==Me.vals(t).indexOf(i);return r}static matches(t,e){if(Me.isObj(e))return we.matches(t,e);if(!Me.isArr(t))return t===e;e=this.unique(e);let[r,i]=[!0,e.length];if(t.length!==e.length)return!1;for(let s=0;!0===r&&s<i;s++)r&&=this.has(t,e[s]);return r}}Lt.removeIndex=(...t)=>(console.warn("Arr.removeIndex() is deprecated, use Arr.unset() instead."),ve.unset(...t)),Lt.sortString=(...t)=>(console.warn("Arr.sortString() is deprecated, use Arr.sortPrim() instead."),ve.sortPrim(...t)),Lt.push=(...t)=>(console.warn("Arr.push() is deprecated, use Arr.append() instead."),ve.append(...t)),Lt.concat=(...t)=>(console.warn("Arr.concat() is deprecated, use Arr.merge() instead."),ve.merge(...t)),Lt.equal=(...t)=>(console.warn("Arr.equal() is deprecated, use Arr.matches() instead."),ve.matches(...t)),Lt.diffrence=(...t)=>(console.warn("Arr.diffrence() is deprecated, use Arr.diff() instead."),ve.diff(...t)),Lt.intersect=(...t)=>(console.warn("Arr.intersect() is deprecated, use Arr.isect() instead."),ve.isect(...t));const Gt=Lt;class Rt{static keyoptim(t,e=!1,r=null){return null===r&&(r=Me.isStr(t)),!r&&e&&(t=t.join(".")),r||e?t.split("."):t}static has(t,e,r=!1){if(null==t||null==e)return!1;"number"==typeof e&&(e=Me.str(e));const i="string"==typeof e;if(i&&t&&void 0!==t[e])return void 0!==t[e];e=this.keyoptim(e,r,i);let[s,n,o]=[e.pop(),0,e.length];if(0===o)return void 0!==t[s];for(;null!=t&&n<o;)t=t[e[n++]];return null!=t&&void 0!==t[s]}static get(t,e,r=null,i=!1){if(null==t||null==e)return r;"number"==typeof e&&(e=Me.str(e));const s="string"==typeof e;if(s&&t&&void 0!==t[e])return t[e];let n=0,o=(e=this.keyoptim(e,i,s)).length;if(0===o)return r;for(;null!=t&&n<o;)t=t[e[n++]];return null==t?r:t}static set(t,e,r,i=!1){if(null==e)return t;"number"==typeof e&&(e=Me.str(e));const s="string"==typeof e;if(s&&t&&void 0!==t[e])return t[e]=r,t;if(0===(e=this.keyoptim(e,i,s)).length)return t;let n=t;for(let t,i,s=0;s<e.length;s++)t=i=String(e[s]),-1!==i.indexOf("[]")&&(t=i.replace("[]","")),null==n[t]&&(n[t]=t===i?{}:[]),t!==i&&ve.insert(e,s+1,n[t].length),e.length-1===s&&(n[t]=r),n=n[t];return t}static unset(t,e,r=!1){if(null==e)return t;"number"==typeof e&&(e=Me.str(e));const i="string"==typeof e;if(i&&t&&void 0!==t[e])return delete t[e],t;e=this.keyoptim(e,r,i);let[s,n,o,l]=[e.pop(),0,e.length,t];if(0===o)return t;for(;null!=l&&n<o;)l=l[e[n++]];return null==l||delete l[s],t}static empty(t,e){return Me.isEmpty(this.get(t,e))}static remove(t,e){if(!Me.isArr(e))return t;for(let r of e)this.unset(t,r);return t}static each(t,e,r=null){let i={};for(let r of Me.keys(t))i[r]=e(t[r],r);return null!=r?r:i}static map(t,e){let r={};for(let i of Me.keys(t))r[i]=e(t[i],i);return r}static filterIndex(t,e=null){return ve.filterIndex(t,e)}static filter(t,e=null){let r={};for(let i of this.filterIndex(t,e))r[i]=t[i];return r}static flatten(t,e="",r={}){if("object"!=typeof t)return r[e]=t;""!==e&&(e+=".");for(let i of Me.keys(t))this.flatten(t[i],e+i,r);return r}static flattenForm(t,e="",r={}){if("object"!=typeof t)return r[e]=t;let i=t=>e?`${e}[${t}]`:t;for(let e of Me.keys(t))this.flattenForm(t[e],i(e),r);return r}static unpack(t,e={}){return ve.each(Me.keys(t),r=>{this.set(e,r,t[r])}),e}static assign(...t){return Object.assign(...t)}static clone(t,e=null){if(Me.isPrim(t))return t;if(Me.isArr(t))return ve.clone(t);if(!Me.isObj(t))return t;let r={};for(let e of Me.keys(t))r[e]=this.clone(t[e]);return null!=e?this.assign(r,e):r}static pluck(t,e,r=null){let i=this.get(t,e,r);return this.unset(t,e),i}static only(t,e,r=null){let i={};return this.each(t,(t,r)=>{ve.has(e,r)&&(i[r]=t)}),null==r?i:this.assign(i,r)}static except(t,e,r=null){let i={};return this.each(t,(t,r)=>{ve.has(e,r)||(i[r]=t)}),null==r?i:this.assign(i,r)}static includes(t,e){if(Me.isArr(e))return ve.includes(t,e);if(!Me.isObj(e))return t===e;let r=Me.keys(e),[i,s]=[!0,r.length];for(let n=0;!0===i&&n<s;n++)i=this.includes(t[r[n]],e[r[n]]);return i}static matches(t,e){if(Me.isArr(e))return ve.matches(t,e);if(!Me.isObj(t))return t===e;let r=ve.unique([...Me.keys(e),...Me.keys(t)]),[i,s]=[!0,r.length];for(let n=0;!0===i&&n<s;n++)i&&=this.matches(t[r[n]],e[r[n]]);return i}}Rt.values=(...t)=>(console.warn("Obj.values() is deprecated, use Mix.vals() instead."),Me.vals(...t)),Rt.find=(...t)=>(console.warn("Obj.find() is deprecated, use Arr.find() instead."),ve.find(...t)),Rt.findIndex=(...t)=>(console.warn("Obj.findIndex() is deprecated, use Arr.findIndex() instead."),ve.findIndex(...t)),Rt.sort=(...t)=>(console.warn("Obj.sort() is deprecated, use Arr.sort() instead."),ve.sort(...t)),Rt.sortString=(...t)=>(console.warn("Obj.sortString() is deprecated, use Arr.sortDeep() instead."),ve.sortDeep(...t));const Wt=Rt;var Bt;function qt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Xt={iso:/^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/};class Ut{static isEmpty(t){return null==t||("string"==typeof t?""===t:"number"!=typeof t&&("boolean"!=typeof t&&(this.isArr(t)?0===t.length:0===this.len(t))))}static isNull(t){return null===t}static isUndef(t){return void 0===t}static isNix(t){return null==t}static isPrim(t){return"string"==typeof t||"number"==typeof t}static isStr(t){return"string"==typeof t}static isNum(t){return"number"==typeof t||!!this.isStr(t)&&/^-?[0-9]+(\.[0-9]+)?$/.test(t)}static isInt(t){return!!this.isNum(t)&&(this.isStr(t)?/^-?[0-9]+$/.test(t):parseInt(t)===parseFloat(t))}static isBool(t){return"boolean"==typeof t||!!this.isStr(t)&&/^(true|false)$/.test(t)}static isFunc(t){return"function"==typeof t}static isRef(t){return null!=t&&"object"==typeof t}static isObj(t){return null!=t&&Object.getPrototypeOf(t)===Object.prototype}static isArr(t){return null!=t&&Object.getPrototypeOf(t)===Array.prototype}static isIter(t){return!this.isArr(t)&&(!!this.isRef(t)&&this.isFunc(t.entries))}static isIsoDate(t){return t instanceof Date||Xt.iso.test(t)}static isDate(t){return t instanceof Date||/^\d{4}-\d{2}-\d{2}$/.test(t)}static isTime(t){return t instanceof Date||/^\d{2}:\d{2}:\d{2}$/.test(t)}static isEqual(t,e){return t instanceof Node?t.isEqualNode(e):this.isRef(t)?Object.is(t,e):t===e}static iter(t){if(null==t)return{};let e={};for(const[r,i]of t.entries())e[r]=i;return e}static keys(t){return null==t?[]:(this.isIter(t)&&(t=this.iter(t)),Object.keys(t))}static vals(t){if(null==t)return[];if(this.isIter(t)&&(t=this.iter(t)),this.isArr(t)||!ce().chrome)return Object.values(t);let e=this.keys(t);for(let r=0;r<e.length;r++)e[r]=t[e[r]];return e}static nodes(t){return Array.prototype.slice.call(t)}static props(t,e=[]){let r={};for(const i of Object.getOwnPropertyNames(t))e.length&&!ve.has(e,i)&&(r[i]=t[i]);return r}static class(t,e=[]){return e=ve.merge(e,["length","name","prototype","constructor"]),this.props(t,e)}static proto(t,e=[]){return e=ve.merge(e,["constructor"]),this.props(t.prototype,e)}static form(t){let e=new FormData;return we.each(we.flattenForm(t),(t,r)=>{e.append(r,t)}),e}static each(t,e){if(!this.isRef(t))throw new Error("Iterate non object");for(let r of Me.keys(t))e(t[r],r);return this}static len(t){return this.isArr(t)?t.length:this.isRef(t)?this.keys(t).length:this.string(t).length}static compare(t,e){return De.collator().compare(t,e)}static null(t,e=null){return"null"===t||this.isEmpty(t)?null:e}static arr(t){return this.isArr(t)?t:this.isStr(t)?(t=t.replace(/^@?\[?(.*?)]$/g,"$1"),ve.each(t.split(","),t=>t.replace(/(^"|^'|'$|"$)/g,""))):[t]}static str(t){return this.isNix(t)||void 0===t.toString?String(t):t.toString()}static num(t,e=NaN){return this.isPrim(t)?(this.isStr(t)&&(t=parseFloat(t)),t):e}static int(t,e=NaN){return this.isPrim(t)?(this.isStr(t)&&(t=parseFloat(t)),Math.round(t)):e}static bool(t){return this.isRef(t)?!!this.vals(t).length:this.isNum(t)?0!==this.num(t):/^(true|yes)$/i.test(t)}}qt(Ut,"isPrimitive",(Bt=Ut).isPrim),qt(Ut,"isString",Bt.isStr),qt(Ut,"isNumber",Bt.isNum),qt(Ut,"isInteger",Bt.isInt),qt(Ut,"isBoolean",Bt.isBool),qt(Ut,"isFunction",Bt.isFunc),qt(Ut,"isReference",Bt.isRef),qt(Ut,"isObject",Bt.isObj),qt(Ut,"isArray",Bt.isArr),qt(Ut,"isIterable",Bt.isIter),qt(Ut,"length",Bt.len),qt(Ut,"array",Bt.arr),qt(Ut,"string",Bt.str),qt(Ut,"number",Bt.num),qt(Ut,"integer",Bt.int),qt(Ut,"boolean",Bt.bool),Ut.global=function(...t){return console.warn("Mix.global() is deprecated, use go() instead."),ce(...t)},Ut.isPlain=function(...t){return console.warn("Mix.isPlain() is deprecated, use Mix.isObj() instead."),Me.isObj(...t)},Ut.float=function(...t){return console.warn("Mix.float() is deprecated, use Mix.num() instead."),Me.num(...t)},Ut.delay=function(...t){return console.warn("Mix.delay() is deprecated, use Run.delay() instead."),ge.delay(...t)},Ut.async=function(...t){return console.warn("Mix.async() is deprecated, use Run.async() instead."),ge.async(...t)},Ut.debounce=function(...t){return console.warn("Mix.debounce() is deprecated, use Run.debounce() instead."),ge.debounce(...t)},Ut.throttle=function(...t){return console.warn("Mix.throttle() is deprecated, use Run.throttle() instead."),ge.throttle(...t)},Ut.framerate=function(...t){return console.warn("Mix.framerate() is deprecated, use Run.framerate() instead."),ge.framerate(...t)},Ut.convertString=function(...t){return console.warn("Mix.convertString() is deprecated, use Str.string() instead."),ye.string(...t)},Ut.convertDatetime=function(...t){return console.warn("Mix.convertDatetime() is deprecated, use Str.date() instead."),ye.date(...t)},Ut.convertBool=function(...t){return console.warn("Mix.convertBool() is deprecated, use Str.boolean() instead."),ye.boolean(...t)},Ut.convertBoolean=function(...t){return console.warn("Mix.convertBoolean() is deprecated, use Str.boolean() instead."),ye.boolean(...t)};const Vt=Ut;const zt=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"],_t=["8","9","a","b"],Jt=["@","#","$","%","^","&","*","(",")","_","+","-","=","[","]","{","}",";",":",",",".","/","<",">","?"];class Kt{static radix(t=60,e=null){return(e||this.RADIX)[this.number(t-1)]}static number(t=1024,e=0){return Math.floor(Math.random()*(t-e+1))+e}static make(t=6,e=62,r={}){let i="";for(let r=0;r<t;r++)i+=Oe.radix(e);for(const t of Object.keys(r))i=ye.set(i,t,r[t]);return i}static uuid(t=4){let e="";for(let t=0;t<31;t++)e+=15===t?Oe.radix(_t.length,_t):Oe.radix(zt.length,zt);return e.substring(0,8)+"-"+e.substring(8,12)+"-"+t+e.substring(12,15)+"-"+e.substring(15,19)+"-"+e.substring(19,31)}static password(t=24,e=null){let r=[...this.RADIX,...e||Jt],i="";for(let e=0;e<t;e++)i+=Oe.radix(r.length,r);return i}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Kt,"RADIX",["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]);const Zt=Kt;class Qt{static bind(t,e,r={},i=!1){return Me.isArr(t)?ve.each(t,t=>this.bind(t,...arguments),this):(Me.isPrim(r)&&(r={id:r}),this.$events=ve.append(this.$events,{event:t,cb:e,options:r,paused:i}),this)}static unbind(t,e={}){return Me.isArr(t)?ve.each(t,t=>this.unbind(t,...arguments),this):(Me.isPrim(e)&&(e={id:e}),ve.remove(this.$events,{event:t,options:e}),this)}static fire(t,...e){let r=this.$events.filter(e=>e.event===t);return ve.each(r,t=>{t.paused||t.cb.call({},...e)}),this}static pause(t,e={}){if(Me.isArr(t))return ve.each(t,t=>this.pause(t,...arguments),this);let r=ve.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!0),this}static unpause(t,e={}){if(Me.isArr(t))return ve.each(t,t=>this.pause(t,...arguments),this);let r=ve.find(this.$events,{event:t,options:e});return null!=r&&(r.paused=!1),this}}!function(t,e,r){(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Qt,"$events",[]);const te=Qt;function ee(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class re{static has(t=void 0){return void 0===t||Me.has(re.$text,t)}static get(t=void 0,e=null){return void 0===t?re.$text:we.get(re.$text,t,e)}static set(t=void 0,e=void 0){return void 0===e?re.$text=t:we.set(re.$text,t,e)}static code(t=null){return Me.isNull(t)?Me.isNull(De.$code)?(De.$code=(navigator.language||"en-US").replace(/-[A-Z]+$/,""),De.$code):De.$code:De.$code=t}static collator(){return Me.isNull(De.$sort)?(De.$sort=new Intl.Collator(De.code(),{numeric:!0,sensitivity:"base"}),De.$sort):De.$sort}static replace(t,e=null){return null==e||we.each(e,(e,r)=>{t=t.replace(new RegExp(":"+r,"g"),e)}),t}static trans(t,e=null){return t=we.get(re.$text,t,t),De.replace(t,e)}static choice(t,e=0,r={}){return t=we.get(re.$text,t,t),void 0===r.count&&(r.count=e),t=De.countpick(t.split("|"),e),De.replace(t,r)}static countpick(t,e){let r=t.length;return 3===r&&0===e?t[0]:3===r&&1===e?t[1]:3===r&&e>=2?t[2]:2===r&&1===e?t[0]:2===r&&1!==e?t[1]:t[0]}}ee(re,"$text",{}),ee(re,"$sort",null),ee(re,"$code","en");const ie=re;function se(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?se(Object(r),!0).forEach(function(e){oe(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function oe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const le={entry:/(?<=^|;)\s*(?<key>.*?)\s*=\s*(?<value>[^;$]+)/g};class ae{static global(){return null==globalThis.document?"":globalThis.document.cookie||""}static parse(t=!1){if(!t&&this.$cookie)return this.$cookie;this.$cookie={};let e=this.global().matchAll(le.entry);if(null==e)return this.$cookie;return ve.each(Array.from(e),({groups:t})=>{this.$cookie[t.key]=t.value.replaceAll("{:}",";")}),this.$cookie}static get(t,e=null,r="string"){return this.$cookie||this.parse(),null==this.$cookie[t]?e:/^bool(ean)?$/.test(r)||/^num(ber)?$/.test(r)||/^int(eger)?$/.test(r)?Me.bool(this.$cookie[t]):/^obj(ext)?$/.test(r)?me.parseOptions(this.$cookie[t]):Me.str(this.$cookie[t])}static set(t,e,r=null,i={}){this.$cookie||this.parse(),r instanceof pe||(r=pe.make(r||"+7 days")),i=ne({expires:r.toUTC(),path:"/"},i),Me.isRef(e)&&(e=me.castOptions(e,!1)),null!=e&&(this.$cookie[t]=e);let s=t+"="+e.replaceAll(";","{:}");return ve.each(i,(t,e)=>{s+=`;${e}=${t}`}),globalThis.document.cookie=s,this}static forget(t,e={}){e=ne({expires:"Thu, 01 Jan 1970 00:00:01 GMT",path:"/"},e),this.$cookie[t]&&delete this.$cookie[t];let r=`${t}=null`;return ve.each(e,(t,e)=>{r+=`;${e}=${t}`}),globalThis.document.cookie=r,this}}oe(ae,"$cookie",null);const ue=ae,ce=g,he=function(){const t=g();if(!t.navigator)return;let[e,r]=[t.navigator.userAgent,{}];null==r.safari&&(r.safari=/Safari\//.test(e)),null==r.firefox&&(r.firefox=/Firefox\//.test(e)),null==r.edge&&(r.edge=/Edge\//.test(e)),null==r.chrome&&(r.chrome=/Chrome\//.test(e)),t.piuag=r},de=function(){const t=g();if(!t.navigator)return;let[e,r]=[t.navigator.userAgent,{}];null==r.win&&(r.win=/Windows/.test(e)),null==r.osx&&(r.osx=/Macintosh|Mac OS X/.test(e)),null==r.gnu&&(r.gnu=/Linux/.test(e)),null==r.ios&&(r.ios=/iPhone|iPad|iPod/.test(e)),null==r.oid&&(r.oid=/Android/.test(e)),t.piudv=r},fe=_(),pe=ht(),me=kt(),ge=Nt,ye=Tt,be=Ct,ve=Gt,we=Wt,Me=Vt,Oe=Zt,Pe=te,De=ie,ke=ue,$e=new Proxy({},{get:function(t,e){return console.warn(`Any.${e} is deprecated, use Mix.${e}() instead.`),(...t)=>Me[e](...t)}}),je=function(){return console.warn("UUID() is deprecated, use Hash.make() instead."),Oe.make()};"undefined"!=typeof globalThis&&(void 0===globalThis.pi?globalThis.pi=n:globalThis.pix=n);var Ne=window;for(var Se in s)Ne[Se]=s[Se];s.__esModule&&Object.defineProperty(Ne,"__esModule",{value:!0})})();
2
+ //# sourceMappingURL=pico-js.browser.js.map