chunk-GCDJLKH4.js 860 B

12345678910111213141516171819202122232425262728293031323334
  1. import {
  2. s
  3. } from "./chunk-Y3WMVFTW.js";
  4. import {
  5. b
  6. } from "./chunk-IHXECKQQ.js";
  7. // node_modules/@arcgis/core/core/accessorSupport/decorators/cast.js
  8. var r = Object.prototype.toString;
  9. function o(n) {
  10. const r2 = "__accessorMetadata__" in n ? b(n) : n;
  11. return function(...t) {
  12. if (t.push(r2), typeof t[2] == "number")
  13. throw new Error("Using @cast has parameter decorator is not supported since 4.16");
  14. return e.apply(this, t);
  15. };
  16. }
  17. function e(t, r2, o2, e2) {
  18. s(t, r2).cast = e2;
  19. }
  20. function i(t) {
  21. return (r2, o2) => {
  22. s(r2, t).cast = r2[o2];
  23. };
  24. }
  25. function s2(...t) {
  26. if (t.length !== 3 || typeof t[1] != "string")
  27. return t.length === 1 && r.call(t[0]) === "[object Function]" ? o(t[0]) : t.length === 1 && typeof t[0] == "string" ? i(t[0]) : void 0;
  28. }
  29. export {
  30. s2 as s
  31. };
  32. //# sourceMappingURL=chunk-GCDJLKH4.js.map