{"ast":null,"code":"import { addUniqueItem, removeItem } from '../../utils/array.js';\nimport { compareByDepth } from './compare-by-depth.js';\nvar FlatTree = /** @class */function () {\n  function FlatTree() {\n    this.children = [];\n    this.isDirty = false;\n  }\n  FlatTree.prototype.add = function (child) {\n    addUniqueItem(this.children, child);\n    this.isDirty = true;\n  };\n  FlatTree.prototype.remove = function (child) {\n    removeItem(this.children, child);\n    this.isDirty = true;\n  };\n  FlatTree.prototype.forEach = function (callback) {\n    this.isDirty && this.children.sort(compareByDepth);\n    this.isDirty = false;\n    this.children.forEach(callback);\n  };\n  return FlatTree;\n}();\nexport { FlatTree };","map":{"version":3,"names":["addUniqueItem","removeItem","compareByDepth","FlatTree","children","isDirty","prototype","add","child","remove","forEach","callback","sort"],"sources":["C:/ldt/LDT/management/node_modules/framer-motion/dist/es/render/utils/flat-tree.js"],"sourcesContent":["import { addUniqueItem, removeItem } from '../../utils/array.js';\nimport { compareByDepth } from './compare-by-depth.js';\n\nvar FlatTree = /** @class */ (function () {\n    function FlatTree() {\n        this.children = [];\n        this.isDirty = false;\n    }\n    FlatTree.prototype.add = function (child) {\n        addUniqueItem(this.children, child);\n        this.isDirty = true;\n    };\n    FlatTree.prototype.remove = function (child) {\n        removeItem(this.children, child);\n        this.isDirty = true;\n    };\n    FlatTree.prototype.forEach = function (callback) {\n        this.isDirty && this.children.sort(compareByDepth);\n        this.isDirty = false;\n        this.children.forEach(callback);\n    };\n    return FlatTree;\n}());\n\nexport { FlatTree };\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,sBAAsB;AAChE,SAASC,cAAc,QAAQ,uBAAuB;AAEtD,IAAIC,QAAQ,GAAG,aAAe,YAAY;EACtC,SAASA,QAAQA,CAAA,EAAG;IAChB,IAAI,CAACC,QAAQ,GAAG,EAAE;IAClB,IAAI,CAACC,OAAO,GAAG,KAAK;EACxB;EACAF,QAAQ,CAACG,SAAS,CAACC,GAAG,GAAG,UAAUC,KAAK,EAAE;IACtCR,aAAa,CAAC,IAAI,CAACI,QAAQ,EAAEI,KAAK,CAAC;IACnC,IAAI,CAACH,OAAO,GAAG,IAAI;EACvB,CAAC;EACDF,QAAQ,CAACG,SAAS,CAACG,MAAM,GAAG,UAAUD,KAAK,EAAE;IACzCP,UAAU,CAAC,IAAI,CAACG,QAAQ,EAAEI,KAAK,CAAC;IAChC,IAAI,CAACH,OAAO,GAAG,IAAI;EACvB,CAAC;EACDF,QAAQ,CAACG,SAAS,CAACI,OAAO,GAAG,UAAUC,QAAQ,EAAE;IAC7C,IAAI,CAACN,OAAO,IAAI,IAAI,CAACD,QAAQ,CAACQ,IAAI,CAACV,cAAc,CAAC;IAClD,IAAI,CAACG,OAAO,GAAG,KAAK;IACpB,IAAI,CAACD,QAAQ,CAACM,OAAO,CAACC,QAAQ,CAAC;EACnC,CAAC;EACD,OAAOR,QAAQ;AACnB,CAAC,CAAC,CAAE;AAEJ,SAASA,QAAQ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}