chunk-YEJL5NEF.js 860 B

12345678910111213141516171819202122232425262728293031323334
  1. import {
  2. s
  3. } from "./chunk-2Z2TG5CU.js";
  4. import {
  5. b
  6. } from "./chunk-SQOPWYIT.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), "number" == typeof t[2])
  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 (3 !== t.length || "string" != typeof t[1])
  27. return 1 === t.length && "[object Function]" === r.call(t[0]) ? o(t[0]) : 1 === t.length && "string" == typeof t[0] ? i(t[0]) : void 0;
  28. }
  29. export {
  30. s2 as s
  31. };
  32. //# sourceMappingURL=chunk-YEJL5NEF.js.map