import { M as e, cF as t, v as o, cG as i } from "./index-f50c05c4.js";
import "./lodash-f1e42446.js";
import { lA as r } from "./ant-design-icons-b1480d8d.js";
import "./loglevel-6fb66d22.js";
import "./axios-84bb1c75.js";
import "./redux-devtools-d38e5b33.js";
import "./alasql-0ff6dabf.js";
import "./react-router-a1807b5b.js";
import "./antd-04a23d13.js";
import "react";
import "react-dom";
import "./dayjs-844325ae.js";
import "./fontawesome-2445f580.js";
import "./dnd-kit-56a2f36f.js";
import "./styled-components-1e696d6b.js";
import "./numbro-c1edb412.js";
import "./papaparse-1bac8e5f.js";
import "./uuid-82f303b2.js";
import "./supabase-c27c62e3.js";
import "./fetch-a3c8ad94.js";
import "./react-draggable-60f59f09.js";
import "./remark-gfm-f2973785.js";
import "./buffer-d3713d77.js";
import "./rehype-raw-41b6145f.js";
import "./parse5-6476676e.js";
import "./rehype-sanitize-deb53e9a.js";
import "./simplebar-react-e1b123a3.js";
import "./react-best-gradient-color-picker-4dd60dac.js";
import "./ua-parser-js-094f59ba.js";
import "./clsx-469c2c43.js";
import "./crypto-js-d5eac8ba.js";
import "./codemirror-73d8c217.js";
import "./really-relaxed-json-49b6a70d.js";
import "./immer-c0428a8d.js";
import "./redux-saga-5514e228.js";
import "./hotkeys-js-0dddb21a.js";
import "./cnchar-5678e6bc.js";
import "./react-documents-eb6de859.js";
import "./sql-formatter-69e8df59.js";
import "./rc-trigger-5125aafe.js";
import "./react-json-view-9403d8a1.js";
import "./qrcode-react-cb73d2b6.js";
import "./katex-a34f0265.js";
import "./ecogis-maps-bb0d63f9.js";
import "./devextreme-2fa5bb9a.js";
const a = (e2) => r("div", {}), s = i(function() {
  const t2 = { v1: o("abc") };
  return new e(t2, (e2) => e2.v1).setPropertyViewFn(a).build();
}());
function p(e2) {
  let t2 = new s({ value: e2.toJsonValue() });
  expect(t2.getView().length).toEqual(e2.getView().length);
  for (let o2 = 0; o2 < t2.getView().length; o2++)
    expect(t2.getView()[o2].getView()).toEqual(e2.getView()[o2].getView());
}
test("array move", () => {
  const e2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
  expect(t(e2, 8, 3)).toEqual([0, 1, 2, 8, 3, 4, 5, 6, 7, 9]), expect(t(e2, 0, 4)).toEqual([1, 2, 3, 4, 0, 5, 6, 7, 8, 9]);
}), test("list actions", () => {
  let e2 = new s({ value: [] });
  expect(e2.getView().length).toEqual(0), e2 = e2.reduce(e2.pushAction({ v1: "value1" })), expect(e2.getView().length).toEqual(1), expect(e2.getView()[0].getView()).toEqual("value1"), e2 = e2.reduce(e2.pushAction({ v1: "value2" })), expect(e2.getView().length).toEqual(2), expect(e2.getView()[1].getView()).toEqual("value2"), p(e2), e2 = e2.reduce(e2.pushAction({ v1: "value3" })), expect(e2.getView().length).toEqual(3), e2 = e2.reduce(e2.arrayMoveAction(2, 0)), expect(e2.getView().length).toEqual(3), expect(e2.getView()[0].getView()).toEqual("value3"), expect(e2.getView()[1].getView()).toEqual("value1"), expect(e2.getView()[2].getView()).toEqual("value2"), p(e2), e2 = e2.reduce(e2.deleteAction(1)), expect(e2.getView().length).toEqual(2), expect(e2.getView()[0].getView()).toEqual("value3"), expect(e2.getView()[1].getView()).toEqual("value2");
  const t2 = e2.getView()[0];
  e2 = e2.reduce(e2.clearAction()), expect(e2.getView().length).toEqual(0), e2 = e2.reduce(e2.pushCompAction(t2)), expect(e2.getView().length).toEqual(1), expect(e2.getView()[0].getView()).toEqual("value3");
}), test("list multi action", () => {
  let e2 = new s({ value: [] });
  expect(e2.getView().length).toEqual(0), e2 = e2.reduce(e2.pushAction({ v1: "value1" })), e2 = e2.reduce(e2.pushAction({ v1: "value2" })), expect(e2.getView().length).toEqual(2), e2 = e2.reduce(e2.multiAction([e2.deleteAction(0), e2.pushAction({ v1: "value3" })])), expect(e2.getView().length).toEqual(2), expect(e2.getView()[0].getView()).toEqual("value2"), expect(e2.getView()[1].getView()).toEqual("value3");
});
