@lepid-labs/weft-ui 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/client/_app/immutable/chunks/c3gsJTWR.js +2 -0
  2. package/build/client/_app/immutable/chunks/c3gsJTWR.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/c3gsJTWR.js.gz +0 -0
  4. package/build/client/_app/immutable/entry/{app.BrOsRVdK.js → app.W4C3xcKb.js} +2 -2
  5. package/build/client/_app/immutable/entry/app.W4C3xcKb.js.br +0 -0
  6. package/build/client/_app/immutable/entry/app.W4C3xcKb.js.gz +0 -0
  7. package/build/client/_app/immutable/entry/start.D1YMA5ID.js +1 -0
  8. package/build/client/_app/immutable/entry/start.D1YMA5ID.js.br +2 -0
  9. package/build/client/_app/immutable/entry/start.D1YMA5ID.js.gz +0 -0
  10. package/build/client/_app/immutable/nodes/{1.RUjJt8JB.js → 1.BxCYGOU1.js} +1 -1
  11. package/build/client/_app/immutable/nodes/1.BxCYGOU1.js.br +0 -0
  12. package/build/client/_app/immutable/nodes/1.BxCYGOU1.js.gz +0 -0
  13. package/build/client/_app/immutable/nodes/{2.DNVy3qlH.js → 2.C8EB9KyI.js} +1 -1
  14. package/build/client/_app/immutable/nodes/2.C8EB9KyI.js.br +0 -0
  15. package/build/client/_app/immutable/nodes/2.C8EB9KyI.js.gz +0 -0
  16. package/build/client/_app/version.json +1 -1
  17. package/build/client/_app/version.json.br +0 -0
  18. package/build/client/_app/version.json.gz +0 -0
  19. package/build/server/chunks/{1-Dor5E5cp.js → 1-CTlvUpCD.js} +2 -2
  20. package/build/server/chunks/{1-Dor5E5cp.js.map → 1-CTlvUpCD.js.map} +1 -1
  21. package/build/server/chunks/{2-DbuYTf5d.js → 2-CCkpIxlw.js} +2 -2
  22. package/build/server/chunks/{2-DbuYTf5d.js.map → 2-CCkpIxlw.js.map} +1 -1
  23. package/build/server/index.js +54 -33
  24. package/build/server/index.js.map +1 -1
  25. package/build/server/manifest.js +3 -3
  26. package/build/server/manifest.js.map +1 -1
  27. package/package.json +2 -2
  28. package/build/client/_app/immutable/chunks/-GeNYjE5.js +0 -2
  29. package/build/client/_app/immutable/chunks/-GeNYjE5.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/-GeNYjE5.js.gz +0 -0
  31. package/build/client/_app/immutable/entry/app.BrOsRVdK.js.br +0 -0
  32. package/build/client/_app/immutable/entry/app.BrOsRVdK.js.gz +0 -0
  33. package/build/client/_app/immutable/entry/start.BJfjXNzv.js +0 -1
  34. package/build/client/_app/immutable/entry/start.BJfjXNzv.js.br +0 -0
  35. package/build/client/_app/immutable/entry/start.BJfjXNzv.js.gz +0 -0
  36. package/build/client/_app/immutable/nodes/1.RUjJt8JB.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/1.RUjJt8JB.js.gz +0 -0
  38. package/build/client/_app/immutable/nodes/2.DNVy3qlH.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/2.DNVy3qlH.js.gz +0 -0
@@ -1500,7 +1500,7 @@ const options = {
1500
1500
  ` + head + '\n </head>\n <script>\n // Pre-paint: pick a scheme, then the theme name for it. The style metas\n // are the config channel — a missing half means that scheme does not\n // exist in this deployment, so the choice clamps to what is available.\n const meta = (name) => document.querySelector(`meta[name="${name}"]`)?.content;\n const styles = { dark: meta("weft-style-dark"), light: meta("weft-style-light") };\n const saved = localStorage.getItem("weft-theme");\n const sysPreferred = window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";\n let scheme = saved ?? meta("weft-default-theme") ?? sysPreferred;\n if (!styles[scheme]) scheme = styles.dark ? "dark" : "light";\n document.documentElement.setAttribute("data-theme", scheme);\n if (styles[scheme]) document.documentElement.setAttribute("data-nb-style", styles[scheme]);\n <\/script>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
1501
1501
  error
1502
1502
  },
1503
- version_hash: "1ahfxsu"
1503
+ version_hash: "bx6qgg"
1504
1504
  };
1505
1505
  async function get_hooks() {
1506
1506
  let handle;
@@ -4504,68 +4504,92 @@ function requireCookie() {
4504
4504
  cookie.parse = parse;
4505
4505
  cookie.serialize = serialize;
4506
4506
  var __toString = Object.prototype.toString;
4507
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
4508
- function parse(str, options2) {
4507
+ var __hasOwnProperty = Object.prototype.hasOwnProperty;
4508
+ var cookieNameRegExp = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
4509
+ var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/;
4510
+ var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
4511
+ var pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
4512
+ function parse(str, opt) {
4509
4513
  if (typeof str !== "string") {
4510
4514
  throw new TypeError("argument str must be a string");
4511
4515
  }
4512
4516
  var obj = {};
4513
- var opt = options2 || {};
4514
- var dec = opt.decode || decode;
4517
+ var len = str.length;
4518
+ if (len < 2) return obj;
4519
+ var dec = opt && opt.decode || decode;
4515
4520
  var index = 0;
4516
- while (index < str.length) {
4517
- var eqIdx = str.indexOf("=", index);
4518
- if (eqIdx === -1) {
4519
- break;
4520
- }
4521
- var endIdx = str.indexOf(";", index);
4521
+ var eqIdx = 0;
4522
+ var endIdx = 0;
4523
+ do {
4524
+ eqIdx = str.indexOf("=", index);
4525
+ if (eqIdx === -1) break;
4526
+ endIdx = str.indexOf(";", index);
4522
4527
  if (endIdx === -1) {
4523
- endIdx = str.length;
4524
- } else if (endIdx < eqIdx) {
4528
+ endIdx = len;
4529
+ } else if (eqIdx > endIdx) {
4525
4530
  index = str.lastIndexOf(";", eqIdx - 1) + 1;
4526
4531
  continue;
4527
4532
  }
4528
- var key2 = str.slice(index, eqIdx).trim();
4529
- if (void 0 === obj[key2]) {
4530
- var val = str.slice(eqIdx + 1, endIdx).trim();
4531
- if (val.charCodeAt(0) === 34) {
4532
- val = val.slice(1, -1);
4533
+ var keyStartIdx = startIndex(str, index, eqIdx);
4534
+ var keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
4535
+ var key2 = str.slice(keyStartIdx, keyEndIdx);
4536
+ if (!__hasOwnProperty.call(obj, key2)) {
4537
+ var valStartIdx = startIndex(str, eqIdx + 1, endIdx);
4538
+ var valEndIdx = endIndex(str, endIdx, valStartIdx);
4539
+ if (str.charCodeAt(valStartIdx) === 34 && str.charCodeAt(valEndIdx - 1) === 34) {
4540
+ valStartIdx++;
4541
+ valEndIdx--;
4533
4542
  }
4543
+ var val = str.slice(valStartIdx, valEndIdx);
4534
4544
  obj[key2] = tryDecode(val, dec);
4535
4545
  }
4536
4546
  index = endIdx + 1;
4537
- }
4547
+ } while (index < len);
4538
4548
  return obj;
4539
4549
  }
4540
- function serialize(name, val, options2) {
4541
- var opt = options2 || {};
4542
- var enc = opt.encode || encode2;
4550
+ function startIndex(str, index, max) {
4551
+ do {
4552
+ var code = str.charCodeAt(index);
4553
+ if (code !== 32 && code !== 9) return index;
4554
+ } while (++index < max);
4555
+ return max;
4556
+ }
4557
+ function endIndex(str, index, min) {
4558
+ while (index > min) {
4559
+ var code = str.charCodeAt(--index);
4560
+ if (code !== 32 && code !== 9) return index + 1;
4561
+ }
4562
+ return min;
4563
+ }
4564
+ function serialize(name, val, opt) {
4565
+ var enc = opt && opt.encode || encodeURIComponent;
4543
4566
  if (typeof enc !== "function") {
4544
4567
  throw new TypeError("option encode is invalid");
4545
4568
  }
4546
- if (!fieldContentRegExp.test(name)) {
4569
+ if (!cookieNameRegExp.test(name)) {
4547
4570
  throw new TypeError("argument name is invalid");
4548
4571
  }
4549
4572
  var value = enc(val);
4550
- if (value && !fieldContentRegExp.test(value)) {
4573
+ if (!cookieValueRegExp.test(value)) {
4551
4574
  throw new TypeError("argument val is invalid");
4552
4575
  }
4553
4576
  var str = name + "=" + value;
4577
+ if (!opt) return str;
4554
4578
  if (null != opt.maxAge) {
4555
- var maxAge = opt.maxAge - 0;
4556
- if (isNaN(maxAge) || !isFinite(maxAge)) {
4579
+ var maxAge = Math.floor(opt.maxAge);
4580
+ if (!isFinite(maxAge)) {
4557
4581
  throw new TypeError("option maxAge is invalid");
4558
4582
  }
4559
- str += "; Max-Age=" + Math.floor(maxAge);
4583
+ str += "; Max-Age=" + maxAge;
4560
4584
  }
4561
4585
  if (opt.domain) {
4562
- if (!fieldContentRegExp.test(opt.domain)) {
4586
+ if (!domainValueRegExp.test(opt.domain)) {
4563
4587
  throw new TypeError("option domain is invalid");
4564
4588
  }
4565
4589
  str += "; Domain=" + opt.domain;
4566
4590
  }
4567
4591
  if (opt.path) {
4568
- if (!fieldContentRegExp.test(opt.path)) {
4592
+ if (!pathValueRegExp.test(opt.path)) {
4569
4593
  throw new TypeError("option path is invalid");
4570
4594
  }
4571
4595
  str += "; Path=" + opt.path;
@@ -4626,11 +4650,8 @@ function requireCookie() {
4626
4650
  function decode(str) {
4627
4651
  return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str;
4628
4652
  }
4629
- function encode2(val) {
4630
- return encodeURIComponent(val);
4631
- }
4632
4653
  function isDate(val) {
4633
- return __toString.call(val) === "[object Date]" || val instanceof Date;
4654
+ return __toString.call(val) === "[object Date]";
4634
4655
  }
4635
4656
  function tryDecode(str, decode2) {
4636
4657
  try {